@shrfe/assets 1.0.51 → 1.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/sfe-styles.css +2 -1
- package/js/shrfe-core-umd.js +81 -39
- package/package.json +1 -1
- package/wc-lib/{p-cea7b953.js → p-24b2ff34.js} +1 -1
- package/wc-lib/{p-8daec64e.entry.js → p-29d0d97f.entry.js} +1 -1
- package/wc-lib/{p-e4e5446d.entry.js → p-2cf0f722.entry.js} +1 -1
- package/wc-lib/{p-e23bcbf5.entry.js → p-2e3b332a.entry.js} +1 -1
- package/wc-lib/{p-0e84a10c.entry.js → p-3027bf0d.entry.js} +1 -1
- package/wc-lib/{p-da4efbf0.entry.js → p-3e162ead.entry.js} +1 -1
- package/wc-lib/{p-3a4d665c.entry.js → p-3e2e0a67.entry.js} +1 -1
- package/wc-lib/{p-c25495c6.entry.js → p-3f04da21.entry.js} +3 -3
- package/wc-lib/{p-e23122af.entry.js → p-478dccb7.entry.js} +1 -1
- package/wc-lib/{p-477cf8af.entry.js → p-56a35a98.entry.js} +1 -1
- package/wc-lib/{p-b71d6e8a.entry.js → p-6e0bd2ad.entry.js} +1 -1
- package/wc-lib/{p-3ec327f0.entry.js → p-8f3c12cc.entry.js} +1 -1
- package/wc-lib/{p-05245dba.entry.js → p-ac4e29a1.entry.js} +1 -1
- package/wc-lib/{p-4477dcff.entry.js → p-b954e8ac.entry.js} +1 -1
- package/wc-lib/{p-b139f889.entry.js → p-bbca04e1.entry.js} +1 -1
- package/wc-lib/{p-1f557680.entry.js → p-c1f1a36a.entry.js} +1 -1
- package/wc-lib/{p-a7d78db7.entry.js → p-dad2a7ad.entry.js} +1 -1
- package/wc-lib/{p-633ed2be.entry.js → p-dc1d8c5d.entry.js} +1 -1
- package/wc-lib/{p-b6d11b78.entry.js → p-eb400dbb.entry.js} +1 -1
- package/wc-lib/{p-09e03f1a.entry.js → p-f6e8903e.entry.js} +1 -1
- package/wc-lib/wc-lib.esm.js +1 -1
- /package/wc-lib/{p-_XYgBHWR.js → p-sJYf_nlQ.js} +0 -0
package/js/shrfe-core-umd.js
CHANGED
|
@@ -1,39 +1,81 @@
|
|
|
1
|
-
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["SHR_UI_CORE"]=t():e["SHR_UI_CORE"]=t()})(this,function(){return function(){var e={6660:function(e,t,r){e.exports=r(8226)},8427:function(e,t,r){"use strict";var n=r(4345),i=r(6435),o=r(5905),s=r(3025),a=r(3916),c=r(6135),u=r(6923),l=r(1792),h=r(292),d=r(9945);e.exports=function(e){return new Promise(function(t,r){var p,f=e.data,g=e.headers,m=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}n.isFormData(f)&&delete g["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(w+":"+b)}var _=a(e.baseURL,e.url);function k(){if(y){var n="getAllResponseHeaders"in y?c(y.getAllResponseHeaders()):null,o=m&&"text"!==m&&"json"!==m?y.response:y.responseText,s={data:o,status:y.status,statusText:y.statusText,headers:n,config:e,request:y};i(function(e){t(e),v()},function(e){r(e),v()},s),y=null}}if(y.open(e.method.toUpperCase(),s(_,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=k:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(k)},y.onabort=function(){y&&(r(l("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){r(l("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||h.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(l(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},n.isStandardBrowserEnv()){var S=(e.withCredentials||u(_))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;S&&(g[e.xsrfHeaderName]=S)}"setRequestHeader"in y&&n.forEach(g,function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete g[t]:y.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),m&&"json"!==m&&(y.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){y&&(r(!e||e&&e.type?new d("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),f||(f=null),y.send(f)})}},8226:function(e,t,r){"use strict";var n=r(4345),i=r(5063),o=r(9560),s=r(4816),a=r(292);function c(e){var t=new o(e),r=i(o.prototype.request,t);return n.extend(r,o.prototype,t),n.extend(r,t),r.create=function(t){return c(s(e,t))},r}var u=c(a);u.Axios=o,u.Cancel=r(9945),u.CancelToken=r(5912),u.isCancel=r(6945),u.VERSION=r(9978).version,u.all=function(e){return Promise.all(e)},u.spread=r(8127),u.isAxiosError=r(8568),e.exports=u,e.exports["default"]=u},9945: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},5912:function(e,t,r){"use strict";var n=r(9945);function i(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;this.promise.then(function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}}),this.promise.then=function(e){var t,n=new Promise(function(e){r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e,t=new i(function(t){e=t});return{token:t,cancel:e}},e.exports=i},6945:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},9560:function(e,t,r){"use strict";var n=r(4345),i=r(3025),o=r(546),s=r(1617),a=r(4816),c=r(6552),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e,t){if("string"===typeof e?(t=t||{},t.url=e):t=e||{},!t.url)throw new Error("Provided config url is not valid");t=a(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach(function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,n.unshift(e.fulfilled,e.rejected))});var o,l=[];if(this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)}),!i){var h=[s,void 0];Array.prototype.unshift.apply(h,n),h=h.concat(l),o=Promise.resolve(t);while(h.length)o=o.then(h.shift(),h.shift());return o}var d=t;while(n.length){var p=n.shift(),f=n.shift();try{d=p(d)}catch(g){f(g);break}}try{o=s(d)}catch(g){return Promise.reject(g)}while(l.length)o=o.then(l.shift(),l.shift());return o},l.prototype.getUri=function(e){if(!e.url)throw new Error("Provided config url is not valid");return e=a(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(e){l.prototype[e]=function(t,r){return this.request(a(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(a(n||{},{method:e,url:t,data:r}))}}),e.exports=l},546:function(e,t,r){"use strict";var n=r(4345);function i(){this.handlers=[]}i.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},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},3916:function(e,t,r){"use strict";var n=r(4860),i=r(7825);e.exports=function(e,t){return e&&!n(t)?i(e,t):t}},1792:function(e,t,r){"use strict";var n=r(7148);e.exports=function(e,t,r,i,o){var s=new Error(e);return n(s,t,r,i,o)}},1617:function(e,t,r){"use strict";var n=r(4345),i=r(7638),o=r(6945),s=r(292),a=r(9945);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a("canceled")}e.exports=function(e){c(e),e.headers=e.headers||{},e.data=i.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]});var t=e.adapter||s.adapter;return t(e).then(function(t){return c(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(c(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},7148:function(e){"use strict";e.exports=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,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,status:this.response&&this.response.status?this.response.status:null}},e}},4816:function(e,t,r){"use strict";var n=r(4345);e.exports=function(e,t){t=t||{};var r={};function i(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 o(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:i(void 0,e[r]):i(e[r],t[r])}function s(e){if(!n.isUndefined(t[e]))return i(void 0,t[e])}function a(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:i(void 0,e[r]):i(void 0,t[r])}function c(r){return r in t?i(e[r],t[r]):r in e?i(void 0,e[r]):void 0}var u={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c};return n.forEach(Object.keys(e).concat(Object.keys(t)),function(e){var t=u[e]||o,i=t(e);n.isUndefined(i)&&t!==c||(r[e]=i)}),r}},6435:function(e,t,r){"use strict";var n=r(1792);e.exports=function(e,t,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},7638:function(e,t,r){"use strict";var n=r(4345),i=r(292);e.exports=function(e,t,r){var o=this||i;return n.forEach(r,function(r){e=r.call(o,e,t)}),e}},292:function(e,t,r){"use strict";var n=r(4345),i=r(2327),o=r(7148),s={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function c(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=r(8427)),e}function u(e,t,r){if(n.isString(e))try{return(t||JSON.parse)(e),n.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(r||JSON.stringify)(e)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:c(),transformRequest:[function(e,t){return i(t,"Accept"),i(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)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(a(t,"application/json"),u(e)):e}],transformResponse:[function(e){var t=this.transitional||l.transitional,r=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,s=!r&&"json"===this.responseType;if(s||i&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(s){if("SyntaxError"===a.name)throw o(a,this,"E_JSON_PARSE");throw a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],function(e){l.headers[e]={}}),n.forEach(["post","put","patch"],function(e){l.headers[e]=n.merge(s)}),e.exports=l},9978:function(e){e.exports={version:"0.25.0"}},5063:function(e){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},3025:function(e,t,r){"use strict";var n=r(4345);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var o;if(r)o=r(t);else if(n.isURLSearchParams(t))o=t.toString();else{var s=[];n.forEach(t,function(e,t){null!==e&&"undefined"!==typeof e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(i(t)+"="+i(e))}))}),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7825:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},5905:function(e,t,r){"use strict";var n=r(4345);e.exports=n.isStandardBrowserEnv()?function(){return{write:function(e,t,r,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(i)&&a.push("path="+i),n.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},4860:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},8568:function(e,t,r){"use strict";var n=r(4345);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},6923:function(e,t,r){"use strict";var n=r(4345);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){var r=n.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return function(){return!0}}()},2327:function(e,t,r){"use strict";var n=r(4345);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},6135:function(e,t,r){"use strict";var n=r(4345),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,s={};return e?(n.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t){if(s[t]&&i.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([r]):s[t]?s[t]+", "+r:r}}),s):s}},8127:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},6552:function(e,t,r){"use strict";var n=r(9978).version,i={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var o={};function s(e,t,r){if("object"!==typeof e)throw new TypeError("options must be an object");var n=Object.keys(e),i=n.length;while(i-- >0){var o=n[i],s=t[o];if(s){var a=e[o],c=void 0===a||s(a,o,e);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+o)}}i.transitional=function(e,t,r){function i(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new Error(i(n," has been removed"+(t?" in "+t:"")));return t&&!o[n]&&(o[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:s,validators:i}},4345:function(e,t,r){"use strict";var n=r(5063),i=Object.prototype.toString;function o(e){return Array.isArray(e)}function s(e){return"undefined"===typeof e}function a(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function c(e){return"[object ArrayBuffer]"===i.call(e)}function u(e){return"[object FormData]"===i.call(e)}function l(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer),t}function h(e){return"string"===typeof e}function d(e){return"number"===typeof e}function p(e){return null!==e&&"object"===typeof e}function f(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function g(e){return"[object Date]"===i.call(e)}function m(e){return"[object File]"===i.call(e)}function v(e){return"[object Blob]"===i.call(e)}function y(e){return"[object Function]"===i.call(e)}function w(e){return p(e)&&y(e.pipe)}function b(e){return"[object URLSearchParams]"===i.call(e)}function _(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function k(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function S(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function x(){var e={};function t(t,r){f(e[r])&&f(t)?e[r]=x(e[r],t):f(t)?e[r]=x({},t):o(t)?e[r]=t.slice():e[r]=t}for(var r=0,n=arguments.length;r<n;r++)S(arguments[r],t);return e}function C(e,t,r){return S(t,function(t,i){e[i]=r&&"function"===typeof t?n(t,r):t}),e}function E(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:o,isArrayBuffer:c,isBuffer:a,isFormData:u,isArrayBufferView:l,isString:h,isNumber:d,isObject:p,isPlainObject:f,isUndefined:s,isDate:g,isFile:m,isBlob:v,isFunction:y,isStream:w,isURLSearchParams:b,isStandardBrowserEnv:k,forEach:S,merge:x,extend:C,trim:_,stripBOM:E}},6598:function(e,t,r){(function(t,n){e.exports=n(r(518),r(2201),r(2989),r(953),r(4768))})(0,function(e){return function(){var t=e,r=t.lib,n=r.BlockCipher,i=t.algo,o=[],s=[],a=[],c=[],u=[],l=[],h=[],d=[],p=[],f=[];(function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var i=n^n<<1^n<<2^n<<3^n<<4;i=i>>>8^255&i^99,o[r]=i,s[i]=r;var g=e[r],m=e[g],v=e[m],y=257*e[i]^16843008*i;a[r]=y<<24|y>>>8,c[r]=y<<16|y>>>16,u[r]=y<<8|y>>>24,l[r]=y;y=16843009*v^65537*m^257*g^16843008*r;h[i]=y<<24|y>>>8,d[i]=y<<16|y>>>16,p[i]=y<<8|y>>>24,f[i]=y,r?(r=g^e[e[e[v^g]]],n^=e[e[n]]):r=n=1}})();var g=[0,1,2,4,8,16,32,64,128,27,54],m=i.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=this._nRounds=r+6,i=4*(n+1),s=this._keySchedule=[],a=0;a<i;a++)a<r?s[a]=t[a]:(l=s[a-1],a%r?r>6&&a%r==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=l<<8|l>>>24,l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=g[a/r|0]<<24),s[a]=s[a-r]^l);for(var c=this._invKeySchedule=[],u=0;u<i;u++){a=i-u;if(u%4)var l=s[a];else l=s[a-4];c[u]=u<4||a<=4?l:h[o[l>>>24]]^d[o[l>>>16&255]]^p[o[l>>>8&255]]^f[o[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,c,u,l,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,h,d,p,f,s);r=e[t+1];e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,s,a){for(var c=this._nRounds,u=e[t]^r[0],l=e[t+1]^r[1],h=e[t+2]^r[2],d=e[t+3]^r[3],p=4,f=1;f<c;f++){var g=n[u>>>24]^i[l>>>16&255]^o[h>>>8&255]^s[255&d]^r[p++],m=n[l>>>24]^i[h>>>16&255]^o[d>>>8&255]^s[255&u]^r[p++],v=n[h>>>24]^i[d>>>16&255]^o[u>>>8&255]^s[255&l]^r[p++],y=n[d>>>24]^i[u>>>16&255]^o[l>>>8&255]^s[255&h]^r[p++];u=g,l=m,h=v,d=y}g=(a[u>>>24]<<24|a[l>>>16&255]<<16|a[h>>>8&255]<<8|a[255&d])^r[p++],m=(a[l>>>24]<<24|a[h>>>16&255]<<16|a[d>>>8&255]<<8|a[255&u])^r[p++],v=(a[h>>>24]<<24|a[d>>>16&255]<<16|a[u>>>8&255]<<8|a[255&l])^r[p++],y=(a[d>>>24]<<24|a[u>>>16&255]<<16|a[l>>>8&255]<<8|a[255&h])^r[p++];e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=y},keySize:8});t.AES=n._createHelper(m)}(),e.AES})},7035:function(e,t,r){(function(t,n){e.exports=n(r(518),r(2201),r(2989),r(953),r(4768))})(0,function(e){return function(){var t=e,r=t.lib,n=r.BlockCipher,i=t.algo;const o=16,s=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var c={pbox:[],sbox:[]};function u(e,t){let r=t>>24&255,n=t>>16&255,i=t>>8&255,o=255&t,s=e.sbox[0][r]+e.sbox[1][n];return s^=e.sbox[2][i],s+=e.sbox[3][o],s}function l(e,t,r){let n,i=t,s=r;for(let a=0;a<o;++a)i^=e.pbox[a],s=u(e,i)^s,n=i,i=s,s=n;return n=i,i=s,s=n,s^=e.pbox[o],i^=e.pbox[o+1],{left:i,right:s}}function h(e,t,r){let n,i=t,s=r;for(let a=o+1;a>1;--a)i^=e.pbox[a],s=u(e,i)^s,n=i,i=s,s=n;return n=i,i=s,s=n,s^=e.pbox[1],i^=e.pbox[0],{left:i,right:s}}function d(e,t,r){for(let o=0;o<4;o++){e.sbox[o]=[];for(let t=0;t<256;t++)e.sbox[o][t]=a[o][t]}let n=0;for(let a=0;a<o+2;a++)e.pbox[a]=s[a]^t[n],n++,n>=r&&(n=0);let i=0,c=0,u=0;for(let s=0;s<o+2;s+=2)u=l(e,i,c),i=u.left,c=u.right,e.pbox[s]=i,e.pbox[s+1]=c;for(let o=0;o<4;o++)for(let t=0;t<256;t+=2)u=l(e,i,c),i=u.left,c=u.right,e.sbox[o][t]=i,e.sbox[o][t+1]=c;return!0}var p=i.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4;d(c,t,r)}},encryptBlock:function(e,t){var r=l(c,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},decryptBlock:function(e,t){var r=h(c,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=n._createHelper(p)}(),e.Blowfish})},4768:function(e,t,r){(function(t,n){e.exports=n(r(518),r(953))})(0,function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,i=n.Base,o=n.WordArray,s=n.BufferedBlockAlgorithm,a=r.enc,c=(a.Utf8,a.Base64),u=r.algo,l=u.EvpKDF,h=n.Cipher=s.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?S:b}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()}),d=(n.StreamCipher=h.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),r.mode={}),p=n.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),f=d.CBC=function(){var e=p.extend();function r(e,r,n){var i,o=this._iv;o?(i=o,this._iv=t):i=this._prevBlock;for(var s=0;s<n;s++)e[r+s]^=i[s]}return e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),e.Decryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=e.slice(t,t+i);n.decryptBlock(e,t),r.call(this,e,t,i),this._prevBlock=o}}),e}(),g=r.pad={},m=g.Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,i=n<<24|n<<16|n<<8|n,s=[],a=0;a<n;a+=4)s.push(i);var c=o.create(s,n);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},v=(n.BlockCipher=h.extend({cfg:h.cfg.extend({mode:f,padding:m}),reset:function(){var e;h.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),y=r.format={},w=y.OpenSSL={stringify:function(e){var t,r=e.ciphertext,n=e.salt;return t=n?o.create([1398893684,1701076831]).concat(n).concat(r):r,t.toString(c)},parse:function(e){var t,r=c.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=o.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),v.create({ciphertext:r,salt:t})}},b=n.SerializableCipher=i.extend({cfg:i.extend({format:w}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),s=i.cfg;return v.create({ciphertext:o,key:r,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=e.createDecryptor(r,n).finalize(t.ciphertext);return i},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=r.kdf={},k=_.OpenSSL={execute:function(e,t,r,n,i){if(n||(n=o.random(8)),i)s=l.create({keySize:t+r,hasher:i}).compute(e,n);else var s=l.create({keySize:t+r}).compute(e,n);var a=o.create(s.words.slice(t),4*r);return s.sigBytes=4*t,v.create({key:s,iv:a,salt:n})}},S=n.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:k}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=n.kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=i.iv;var o=b.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);n.iv=i.iv;var o=b.decrypt.call(this,e,t,i.key,n);return o}})}()})},518:function(e,t,r){(function(t,r){e.exports=r()})(0,function(){var e=e||function(e,t){var n;if("undefined"!==typeof window&&window.crypto&&(n=window.crypto),"undefined"!==typeof self&&self.crypto&&(n=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!==typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&"undefined"!==typeof r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(5156)}catch(m){}var i=function(){if(n){if("function"===typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"===typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},a=s.lib={},c=a.Base=function(){return{extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=a.WordArray=c.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||h).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var s=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=s<<24-(n+o)%4*8}else for(var a=0;a<i;a+=4)t[n+a>>>2]=r[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(i());return new u.init(t,e)}}),l=s.enc={},h=l.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new u.init(r,t/2)}},d=l.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new u.init(r,t)}},p=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,s=this.blockSize,a=4*s,c=o/a;c=t?e.ceil(c):e.max((0|c)-this._minBufferSize,0);var l=c*s,h=e.min(4*l,o);if(l){for(var d=0;d<l;d+=s)this._doProcessBlock(i,d);r=i.splice(0,l),n.sigBytes-=h}return new u.init(r,h)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(a.Hasher=f.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new g.HMAC.init(e,r).finalize(t)}}}),s.algo={});return s}(Math);return e})},2201:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=t.enc;i.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var s=t[o>>>2]>>>24-o%4*8&255,a=t[o+1>>>2]>>>24-(o+1)%4*8&255,c=t[o+2>>>2]>>>24-(o+2)%4*8&255,u=s<<16|a<<8|c,l=0;l<4&&o+.75*l<r;l++)i.push(n.charAt(u>>>6*(3-l)&63));var h=n.charAt(64);if(h)while(i.length%4)i.push(h);return i.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var i=0;i<r.length;i++)n[r.charCodeAt(i)]=i}var s=r.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return o(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function o(e,t,r){for(var i=[],o=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2,c=r[e.charCodeAt(s)]>>>6-s%4*2,u=a|c;i[o>>>2]|=u<<24-o%4*8,o++}return n.create(i,o)}}(),e.enc.Base64})},1332:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=t.enc;i.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],s=0;s<n;s+=3)for(var a=r[s>>>2]>>>24-s%4*8&255,c=r[s+1>>>2]>>>24-(s+1)%4*8&255,u=r[s+2>>>2]>>>24-(s+2)%4*8&255,l=a<<16|c<<8|u,h=0;h<4&&s+.75*h<n;h++)o.push(i.charAt(l>>>6*(3-h)&63));var d=i.charAt(64);if(d)while(o.length%4)o.push(d);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var r=e.length,n=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s<n.length;s++)i[n.charCodeAt(s)]=s}var a=n.charAt(64);if(a){var c=e.indexOf(a);-1!==c&&(r=c)}return o(e,r,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function o(e,t,r){for(var i=[],o=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2,c=r[e.charCodeAt(s)]>>>6-s%4*2,u=a|c;i[o>>>2]|=u<<24-o%4*8,o++}return n.create(i,o)}}(),e.enc.Base64url})},7894:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=t.enc;i.Utf16=i.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return n.create(r,2*t)}};function o(e){return e<<8&4278255360|e>>>8&16711935}i.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i+=2){var s=o(t[i>>>2]>>>16-i%4*8&65535);n.push(String.fromCharCode(s))}return n.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16})},953:function(e,t,r){(function(t,n){e.exports=n(r(518),r(648),r(6002))})(0,function(e){return function(){var t=e,r=t.lib,n=r.Base,i=r.WordArray,o=t.algo,s=o.MD5,a=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:s,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var r,n=this.cfg,o=n.hasher.create(),s=i.create(),a=s.words,c=n.keySize,u=n.iterations;while(a.length<c){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var l=1;l<u;l++)r=o.finalize(r),o.reset();s.concat(r)}return s.sigBytes=4*c,s}});t.EvpKDF=function(e,t,r){return a.create(r).compute(e,t)}}(),e.EvpKDF})},5770:function(e,t,r){(function(t,n){e.exports=n(r(518),r(4768))})(0,function(e){return function(){var t=e,r=t.lib,n=r.CipherParams,i=t.enc,o=i.Hex,s=t.format;s.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var t=o.parse(e);return n.create({ciphertext:t})}}}(),e.format.Hex})},6002:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){(function(){var t=e,r=t.lib,n=r.Base,i=t.enc,o=i.Utf8,s=t.algo;s.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),a=i.words,c=s.words,u=0;u<r;u++)a[u]^=1549556828,c[u]^=909522486;i.sigBytes=s.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);t.reset();var n=t.finalize(this._oKey.clone().concat(r));return n}})})()})},8705:function(e,t,r){(function(t,n){e.exports=n(r(518),r(5703),r(1253),r(7894),r(2201),r(1332),r(2989),r(648),r(2110),r(8623),r(1759),r(2078),r(6882),r(6261),r(6002),r(3604),r(953),r(4768),r(1330),r(8944),r(9071),r(3974),r(1561),r(6782),r(3846),r(3673),r(3622),r(9805),r(5770),r(6598),r(3865),r(3556),r(3537),r(6333),r(7035))})(0,function(e){return e})},1253:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(){if("function"==typeof ArrayBuffer){var t=e,r=t.lib,n=r.WordArray,i=n.init,o=n.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],n=0;n<t;n++)r[n>>>2]|=e[n]<<24-n%4*8;i.call(this,r,t)}else i.apply(this,arguments)};o.prototype=n}}(),e.lib.WordArray})},2989:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=[];(function(){for(var e=0;e<64;e++)a[e]=4294967296*t.abs(t.sin(e+1))|0})();var c=s.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,s=e[t+0],c=e[t+1],p=e[t+2],f=e[t+3],g=e[t+4],m=e[t+5],v=e[t+6],y=e[t+7],w=e[t+8],b=e[t+9],_=e[t+10],k=e[t+11],S=e[t+12],x=e[t+13],C=e[t+14],E=e[t+15],O=o[0],A=o[1],I=o[2],T=o[3];O=u(O,A,I,T,s,7,a[0]),T=u(T,O,A,I,c,12,a[1]),I=u(I,T,O,A,p,17,a[2]),A=u(A,I,T,O,f,22,a[3]),O=u(O,A,I,T,g,7,a[4]),T=u(T,O,A,I,m,12,a[5]),I=u(I,T,O,A,v,17,a[6]),A=u(A,I,T,O,y,22,a[7]),O=u(O,A,I,T,w,7,a[8]),T=u(T,O,A,I,b,12,a[9]),I=u(I,T,O,A,_,17,a[10]),A=u(A,I,T,O,k,22,a[11]),O=u(O,A,I,T,S,7,a[12]),T=u(T,O,A,I,x,12,a[13]),I=u(I,T,O,A,C,17,a[14]),A=u(A,I,T,O,E,22,a[15]),O=l(O,A,I,T,c,5,a[16]),T=l(T,O,A,I,v,9,a[17]),I=l(I,T,O,A,k,14,a[18]),A=l(A,I,T,O,s,20,a[19]),O=l(O,A,I,T,m,5,a[20]),T=l(T,O,A,I,_,9,a[21]),I=l(I,T,O,A,E,14,a[22]),A=l(A,I,T,O,g,20,a[23]),O=l(O,A,I,T,b,5,a[24]),T=l(T,O,A,I,C,9,a[25]),I=l(I,T,O,A,f,14,a[26]),A=l(A,I,T,O,w,20,a[27]),O=l(O,A,I,T,x,5,a[28]),T=l(T,O,A,I,p,9,a[29]),I=l(I,T,O,A,y,14,a[30]),A=l(A,I,T,O,S,20,a[31]),O=h(O,A,I,T,m,4,a[32]),T=h(T,O,A,I,w,11,a[33]),I=h(I,T,O,A,k,16,a[34]),A=h(A,I,T,O,C,23,a[35]),O=h(O,A,I,T,c,4,a[36]),T=h(T,O,A,I,g,11,a[37]),I=h(I,T,O,A,y,16,a[38]),A=h(A,I,T,O,_,23,a[39]),O=h(O,A,I,T,x,4,a[40]),T=h(T,O,A,I,s,11,a[41]),I=h(I,T,O,A,f,16,a[42]),A=h(A,I,T,O,v,23,a[43]),O=h(O,A,I,T,b,4,a[44]),T=h(T,O,A,I,S,11,a[45]),I=h(I,T,O,A,E,16,a[46]),A=h(A,I,T,O,p,23,a[47]),O=d(O,A,I,T,s,6,a[48]),T=d(T,O,A,I,y,10,a[49]),I=d(I,T,O,A,C,15,a[50]),A=d(A,I,T,O,m,21,a[51]),O=d(O,A,I,T,S,6,a[52]),T=d(T,O,A,I,f,10,a[53]),I=d(I,T,O,A,_,15,a[54]),A=d(A,I,T,O,c,21,a[55]),O=d(O,A,I,T,w,6,a[56]),T=d(T,O,A,I,E,10,a[57]),I=d(I,T,O,A,v,15,a[58]),A=d(A,I,T,O,x,21,a[59]),O=d(O,A,I,T,g,6,a[60]),T=d(T,O,A,I,k,10,a[61]),I=d(I,T,O,A,p,15,a[62]),A=d(A,I,T,O,b,21,a[63]),o[0]=o[0]+O|0,o[1]=o[1]+A|0,o[2]=o[2]+I|0,o[3]=o[3]+T|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/4294967296),s=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),e.sigBytes=4*(r.length+1),this._process();for(var a=this._hash,c=a.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return a},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,n,i,o,s){var a=e+(t&r|~t&n)+i+s;return(a<<o|a>>>32-o)+t}function l(e,t,r,n,i,o,s){var a=e+(t&n|r&~n)+i+s;return(a<<o|a>>>32-o)+t}function h(e,t,r,n,i,o,s){var a=e+(t^r^n)+i+s;return(a<<o|a>>>32-o)+t}function d(e,t,r,n,i,o,s){var a=e+(r^(t|~n))+i+s;return(a<<o|a>>>32-o)+t}r.MD5=o._createHelper(c),r.HmacMD5=o._createHmacHelper(c)}(Math),e.MD5})},1330:function(e,t,r){(function(t,n){e.exports=n(r(518),r(4768))})(0,function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function r(e,t,r,n){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var s=0;s<r;s++)e[t+s]^=i[s]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i,n),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=e.slice(t,t+i);r.call(this,e,t,i,n),this._prevBlock=o}}),t}(),e.mode.CFB})},9071:function(e,t,r){(function(t,n){e.exports=n(r(518),r(4768))})(0,function(e){
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.algo,s=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=n.create([0,1518500249,1859775393,2400959708,2840853838]),h=n.create([1352829926,1548603684,1836072691,2053994217,0]),d=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,d,w,b,_,k,S,x,C,E,O,A=this._hash.words,I=l.words,T=h.words,M=s.words,R=a.words,P=c.words,L=u.words;k=o=A[0],S=d=A[1],x=w=A[2],C=b=A[3],E=_=A[4];for(r=0;r<80;r+=1)O=o+e[t+M[r]]|0,O+=r<16?p(d,w,b)+I[0]:r<32?f(d,w,b)+I[1]:r<48?g(d,w,b)+I[2]:r<64?m(d,w,b)+I[3]:v(d,w,b)+I[4],O|=0,O=y(O,P[r]),O=O+_|0,o=_,_=b,b=y(w,10),w=d,d=O,O=k+e[t+R[r]]|0,O+=r<16?v(S,x,C)+T[0]:r<32?m(S,x,C)+T[1]:r<48?g(S,x,C)+T[2]:r<64?f(S,x,C)+T[3]:p(S,x,C)+T[4],O|=0,O=y(O,L[r]),O=O+E|0,k=E,E=C,C=y(x,10),x=S,S=O;O=A[1]+w+C|0,A[1]=A[2]+b+E|0,A[2]=A[3]+_+k|0,A[3]=A[4]+o+S|0,A[4]=A[0]+d+x|0,A[0]=O},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function f(e,t,r){return e&t|~e&r}function g(e,t,r){return(e|~t)^r}function m(e,t,r){return e&r|t&~r}function v(e,t,r){return e^(t|~r)}function y(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(d),t.HmacRIPEMD160=i._createHmacHelper(d)}(Math),e.RIPEMD160})},648:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.algo,s=[],a=o.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],c=r[4],u=0;u<80;u++){if(u<16)s[u]=0|e[t+u];else{var l=s[u-3]^s[u-8]^s[u-14]^s[u-16];s[u]=l<<1|l>>>31}var h=(n<<5|n>>>27)+c+s[u];h+=u<20?1518500249+(i&o|~i&a):u<40?1859775393+(i^o^a):u<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,c=a,a=o,o=i<<30|i>>>2,i=n,n=h}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(a),t.HmacSHA1=i._createHmacHelper(a)}(),e.SHA1})},8623:function(e,t,r){(function(t,n){e.exports=n(r(518),r(2110))})(0,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=t.algo,o=i.SHA256,s=i.SHA224=o.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=o._createHelper(s),t.HmacSHA224=o._createHmacHelper(s)}(),e.SHA224})},2110:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=[],c=[];(function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}var n=2,i=0;while(i<64)e(n)&&(i<8&&(a[i]=r(t.pow(n,.5))),c[i]=r(t.pow(n,1/3)),i++),n++})();var u=[],l=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],a=r[4],l=r[5],h=r[6],d=r[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var f=u[p-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,m=u[p-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[p]=g+u[p-7]+v+u[p-16]}var y=a&l^~a&h,w=n&i^n&o^i&o,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=(a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25),k=d+_+y+c[p]+u[p],S=b+w;d=h,h=l,l=a,a=s+k|0,s=o,o=i,i=n,n=k+S|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+l|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=t.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=o._createHelper(l),r.HmacSHA256=o._createHmacHelper(l)}(Math),e.SHA256})},6882:function(e,t,r){(function(t,n){e.exports=n(r(518),r(5703))})(0,function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.x64,a=s.Word,c=r.algo,u=[],l=[],h=[];(function(){for(var e=1,t=0,r=0;r<24;r++){u[e+5*t]=(r+1)*(r+2)/2%64;var n=t%5,i=(2*e+3*t)%5;e=n,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,s=0;s<24;s++){for(var c=0,d=0,p=0;p<7;p++){if(1&o){var f=(1<<p)-1;f<32?d^=1<<f:c^=1<<f-32}128&o?o=o<<1^113:o<<=1}h[s]=a.create(c,d)}})();var d=[];(function(){for(var e=0;e<25;e++)d[e]=a.create()})();var p=c.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=e[t+2*i],s=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);var a=r[i];a.high^=s,a.low^=o}for(var c=0;c<24;c++){for(var p=0;p<5;p++){for(var f=0,g=0,m=0;m<5;m++){a=r[p+5*m];f^=a.high,g^=a.low}var v=d[p];v.high=f,v.low=g}for(p=0;p<5;p++){var y=d[(p+4)%5],w=d[(p+1)%5],b=w.high,_=w.low;for(f=y.high^(b<<1|_>>>31),g=y.low^(_<<1|b>>>31),m=0;m<5;m++){a=r[p+5*m];a.high^=f,a.low^=g}}for(var k=1;k<25;k++){a=r[k];var S=a.high,x=a.low,C=u[k];C<32?(f=S<<C|x>>>32-C,g=x<<C|S>>>32-C):(f=x<<C-32|S>>>64-C,g=S<<C-32|x>>>64-C);var E=d[l[k]];E.high=f,E.low=g}var O=d[0],A=r[0];O.high=A.high,O.low=A.low;for(p=0;p<5;p++)for(m=0;m<5;m++){k=p+5*m,a=r[k];var I=d[k],T=d[(p+1)%5+5*m],M=d[(p+2)%5+5*m];a.high=I.high^~T.high&M.high,a.low=I.low^~T.low&M.low}a=r[0];var R=h[c];a.high^=R.high,a.low^=R.low}},_doFinalize:function(){var e=this._data,r=e.words,n=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(t.ceil((n+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*r.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,c=a/8,u=[],l=0;l<c;l++){var h=s[l],d=h.high,p=h.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),u.push(p),u.push(d)}return new i.init(u,a)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});r.SHA3=o._createHelper(p),r.HmacSHA3=o._createHmacHelper(p)}(Math),e.SHA3})},2078:function(e,t,r){(function(t,n){e.exports=n(r(518),r(5703),r(1759))})(0,function(e){return function(){var t=e,r=t.x64,n=r.Word,i=r.WordArray,o=t.algo,s=o.SHA512,a=o.SHA384=s.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=s._createHelper(a),t.HmacSHA384=s._createHmacHelper(a)}(),e.SHA384})},1759:function(e,t,r){(function(t,n){e.exports=n(r(518),r(5703))})(0,function(e){return function(){var t=e,r=t.lib,n=r.Hasher,i=t.x64,o=i.Word,s=i.WordArray,a=t.algo;function c(){return o.create.apply(o,arguments)}var u=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],l=[];(function(){for(var e=0;e<80;e++)l[e]=c()})();var h=a.SHA512=n.extend({_doReset:function(){this._hash=new s.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],a=r[4],c=r[5],h=r[6],d=r[7],p=n.high,f=n.low,g=i.high,m=i.low,v=o.high,y=o.low,w=s.high,b=s.low,_=a.high,k=a.low,S=c.high,x=c.low,C=h.high,E=h.low,O=d.high,A=d.low,I=p,T=f,M=g,R=m,P=v,L=y,D=w,B=b,N=_,j=k,F=S,U=x,z=C,q=E,H=O,$=A,W=0;W<80;W++){var V,Y,X=l[W];if(W<16)Y=X.high=0|e[t+2*W],V=X.low=0|e[t+2*W+1];else{var J=l[W-15],G=J.high,K=J.low,Z=(G>>>1|K<<31)^(G>>>8|K<<24)^G>>>7,Q=(K>>>1|G<<31)^(K>>>8|G<<24)^(K>>>7|G<<25),ee=l[W-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=l[W-7],se=oe.high,ae=oe.low,ce=l[W-16],ue=ce.high,le=ce.low;V=Q+ae,Y=Z+se+(V>>>0<Q>>>0?1:0),V+=ie,Y=Y+ne+(V>>>0<ie>>>0?1:0),V+=le,Y=Y+ue+(V>>>0<le>>>0?1:0),X.high=Y,X.low=V}var he=N&F^~N&z,de=j&U^~j&q,pe=I&M^I&P^M&P,fe=T&R^T&L^R&L,ge=(I>>>28|T<<4)^(I<<30|T>>>2)^(I<<25|T>>>7),me=(T>>>28|I<<4)^(T<<30|I>>>2)^(T<<25|I>>>7),ve=(N>>>14|j<<18)^(N>>>18|j<<14)^(N<<23|j>>>9),ye=(j>>>14|N<<18)^(j>>>18|N<<14)^(j<<23|N>>>9),we=u[W],be=we.high,_e=we.low,ke=$+ye,Se=H+ve+(ke>>>0<$>>>0?1:0),xe=(ke=ke+de,Se=Se+he+(ke>>>0<de>>>0?1:0),ke=ke+_e,Se=Se+be+(ke>>>0<_e>>>0?1:0),ke=ke+V,Se=Se+Y+(ke>>>0<V>>>0?1:0),me+fe),Ce=ge+pe+(xe>>>0<me>>>0?1:0);H=z,$=q,z=F,q=U,F=N,U=j,j=B+ke|0,N=D+Se+(j>>>0<B>>>0?1:0)|0,D=P,B=L,P=M,L=R,M=I,R=T,T=ke+xe|0,I=Se+Ce+(T>>>0<ke>>>0?1:0)|0}f=n.low=f+T,n.high=p+I+(f>>>0<T>>>0?1:0),m=i.low=m+R,i.high=g+M+(m>>>0<R>>>0?1:0),y=o.low=y+L,o.high=v+P+(y>>>0<L>>>0?1:0),b=s.low=b+B,s.high=w+D+(b>>>0<B>>>0?1:0),k=a.low=k+j,a.high=_+N+(k>>>0<j>>>0?1:0),x=c.low=x+U,c.high=S+F+(x>>>0<U>>>0?1:0),E=h.low=E+q,h.high=C+z+(E>>>0<q>>>0?1:0),A=d.low=A+$,d.high=O+H+(A>>>0<$>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process();var i=this._hash.toX32();return i},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(h),t.HmacSHA512=n._createHmacHelper(h)}(),e.SHA512})},3865:function(e,t,r){(function(t,n){e.exports=n(r(518),r(2201),r(2989),r(953),r(4768))})(0,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=r.BlockCipher,o=t.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=i.extend({_doReset:function(){for(var e=this._key,t=e.words,r=[],n=0;n<56;n++){var i=s[n]-1;r[n]=t[i>>>5]>>>31-i%32&1}for(var o=this._subKeys=[],u=0;u<16;u++){var l=o[u]=[],h=c[u];for(n=0;n<24;n++)l[n/6|0]|=r[(a[n]-1+h)%28]<<31-n%6,l[4+(n/6|0)]|=r[28+(a[n+24]-1+h)%28]<<31-n%6;l[0]=l[0]<<1|l[0]>>>31;for(n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),d.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,s=this._rBlock,a=0,c=0;c<8;c++)a|=u[c][((s^i[c])&l[c])>>>0];this._lBlock=s,this._rBlock=o^a}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function p(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}t.DES=i._createHelper(h);var f=o.TripleDES=i.extend({_doReset:function(){var e=this._key,t=e.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var r=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),o=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=h.createEncryptor(n.create(r)),this._des2=h.createEncryptor(n.create(i)),this._des3=h.createEncryptor(n.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(f)}(),e.TripleDES})},5703:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(t){var r=e,n=r.lib,i=n.Base,o=n.WordArray,s=r.x64={};s.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=i.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var i=e[n];r.push(i.high),r.push(i.low)}return o.create(r,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}})}(),e})},2242:function(e){
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
(function(t,r){e.exports=r()})(self,()=>(()=>{var e={594(e,t){"use strict";var r=this&&this.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var n=256,i=function(){function e(e){void 0===e&&(e="="),this._paddingCharacter=e}return e.prototype.encodedLength=function(e){return this._paddingCharacter?(e+2)/3*4|0:(8*e+5)/6|0},e.prototype.encode=function(e){for(var t="",r=0;r<e.length-2;r+=3){var n=e[r]<<16|e[r+1]<<8|e[r+2];t+=this._encodeByte(n>>>18&63),t+=this._encodeByte(n>>>12&63),t+=this._encodeByte(n>>>6&63),t+=this._encodeByte(n>>>0&63)}var i=e.length-r;if(i>0){n=e[r]<<16|(2===i?e[r+1]<<8:0);t+=this._encodeByte(n>>>18&63),t+=this._encodeByte(n>>>12&63),t+=2===i?this._encodeByte(n>>>6&63):this._paddingCharacter||"",t+=this._paddingCharacter||""}return t},e.prototype.maxDecodedLength=function(e){return this._paddingCharacter?e/4*3|0:(6*e+7)/8|0},e.prototype.decodedLength=function(e){return this.maxDecodedLength(e.length-this._getPaddingLength(e))},e.prototype.decode=function(e){if(0===e.length)return new Uint8Array(0);for(var t=this._getPaddingLength(e),r=e.length-t,i=new Uint8Array(this.maxDecodedLength(r)),o=0,s=0,a=0,c=0,u=0,l=0,h=0;s<r-4;s+=4)c=this._decodeChar(e.charCodeAt(s+0)),u=this._decodeChar(e.charCodeAt(s+1)),l=this._decodeChar(e.charCodeAt(s+2)),h=this._decodeChar(e.charCodeAt(s+3)),i[o++]=c<<2|u>>>4,i[o++]=u<<4|l>>>2,i[o++]=l<<6|h,a|=c&n,a|=u&n,a|=l&n,a|=h&n;if(s<r-1&&(c=this._decodeChar(e.charCodeAt(s)),u=this._decodeChar(e.charCodeAt(s+1)),i[o++]=c<<2|u>>>4,a|=c&n,a|=u&n),s<r-2&&(l=this._decodeChar(e.charCodeAt(s+2)),i[o++]=u<<4|l>>>2,a|=l&n),s<r-3&&(h=this._decodeChar(e.charCodeAt(s+3)),i[o++]=l<<6|h,a|=h&n),0!==a)throw new Error("Base64Coder: incorrect characters for decoding");return i},e.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-15,t+=62-e>>>8&3,String.fromCharCode(t)},e.prototype._decodeChar=function(e){var t=n;return t+=(42-e&e-44)>>>8&-n+e-43+62,t+=(46-e&e-48)>>>8&-n+e-47+63,t+=(47-e&e-58)>>>8&-n+e-48+52,t+=(64-e&e-91)>>>8&-n+e-65+0,t+=(96-e&e-123)>>>8&-n+e-97+26,t},e.prototype._getPaddingLength=function(e){var t=0;if(this._paddingCharacter){for(var r=e.length-1;r>=0;r--){if(e[r]!==this._paddingCharacter)break;t++}if(e.length<4||t>2)throw new Error("Base64Coder: incorrect padding")}return t},e}();t.Coder=i;var o=new i;function s(e){return o.encode(e)}function a(e){return o.decode(e)}t.encode=s,t.decode=a;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-13,t+=62-e>>>8&49,String.fromCharCode(t)},t.prototype._decodeChar=function(e){var t=n;return t+=(44-e&e-46)>>>8&-n+e-45+62,t+=(94-e&e-96)>>>8&-n+e-95+63,t+=(47-e&e-58)>>>8&-n+e-48+52,t+=(64-e&e-91)>>>8&-n+e-65+0,t+=(96-e&e-123)>>>8&-n+e-97+26,t},t}(i);t.URLSafeCoder=c;var u=new c;function l(e){return u.encode(e)}function h(e){return u.decode(e)}t.encodeURLSafe=l,t.decodeURLSafe=h,t.encodedLength=function(e){return o.encodedLength(e)},t.maxDecodedLength=function(e){return o.maxDecodedLength(e)},t.decodedLength=function(e){return o.decodedLength(e)}},978(e,t){"use strict";var r="utf8: invalid string",n="utf8: invalid source encoding";function i(e){for(var t=new Uint8Array(o(e)),r=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t[r++]=i:i<2048?(t[r++]=192|i>>6,t[r++]=128|63&i):i<55296?(t[r++]=224|i>>12,t[r++]=128|i>>6&63,t[r++]=128|63&i):(1023&e.charCodeAt(n),t[r++]=240|i>>18,t[r++]=128|i>>12&63,t[r++]=128|i>>6&63,t[r++]=128|63&i)}return t}function o(e){for(var t=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);if(i<128)0;else if(i<2048)0;else if(i<55296)0;else{if(!(i<=57343))throw new Error(r);if(n>=e.length-1)throw new Error(r);0}}return t}function s(e){for(var t=[],r=0;r<e.length;r++){var i=e[r];if(128&i){var o=void 0;if(i<224){if(r>=e.length)throw new Error(n);var s=e[++r];if(128!==(192&s))throw new Error(n);i=(31&i)<<6|63&s,o=128}else if(i<240){if(r>=e.length-1)throw new Error(n);s=e[++r];var a=e[++r];if(128!==(192&s)||128!==(192&a))throw new Error(n);i=(15&i)<<12|(63&s)<<6|63&a,o=2048}else{if(!(i<248))throw new Error(n);if(r>=e.length-2)throw new Error(n);s=e[++r],a=e[++r];var c=e[++r];if(128!==(192&s)||128!==(192&a)||128!==(192&c))throw new Error(n);i=(15&i)<<18|(63&s)<<12|(63&a)<<6|63&c,o=65536}if(i<o||i>=55296&&i<=57343)throw new Error(n);if(i>=65536){if(i>1114111)throw new Error(n);i-=65536,t.push(String.fromCharCode(55296|i>>10)),i=56320|1023&i}}t.push(String.fromCharCode(i))}return t.join("")}t.D4=s},721(e,t,r){e.exports=r(207)["default"]},207(e,t,r){"use strict";r.d(t,{default:()=>Ar});class n{constructor(e,t){this.lastId=0,this.prefix=e,this.name=t}create(e){this.lastId++;var t=this.lastId,r=this.prefix+t,n=this.name+"["+t+"]",i=!1,o=function(){i||(e.apply(null,arguments),i=!0)};return this[t]=o,{number:t,id:r,name:n,callback:o}}remove(e){delete this[e.number]}}var i=new n("_pusher_script_","Pusher.ScriptReceivers"),o={VERSION:"8.5.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""};const s=o;class a{constructor(e){this.options=e,this.receivers=e.receivers||i,this.loading={}}load(e,t,r){var n=this;if(n.loading[e]&&n.loading[e].length>0)n.loading[e].push(r);else{n.loading[e]=[r];var i=Gt.createScriptRequest(n.getPath(e,t)),o=n.receivers.create(function(t){if(n.receivers.remove(o),n.loading[e]){var r=n.loading[e];delete n.loading[e];for(var s=function(e){e||i.cleanup()},a=0;a<r.length;a++)r[a](t,s)}});i.send(o)}}getRoot(e){var t,r=Gt.getDocument().location.protocol;return t=e&&e.useTLS||"https:"===r?this.options.cdn_https:this.options.cdn_http,t.replace(/\/*$/,"")+"/"+this.options.version}getPath(e,t){return this.getRoot(t)+"/"+e+this.options.suffix+".js"}}var c=new n("_pusher_dependencies","Pusher.DependenciesReceivers"),u=new a({cdn_http:s.cdn_http,cdn_https:s.cdn_https,version:s.VERSION,suffix:s.dependency_suffix,receivers:c});const l={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}},h=function(e){const t="See:",r=l.urls[e];if(!r)return"";let n;return r.fullUrl?n=r.fullUrl:r.path&&(n=l.baseUrl+r.path),n?`${t} ${n}`:""},d={buildLogSuffix:h};var p;(function(e){e["UserAuthentication"]="user-authentication",e["ChannelAuthorization"]="channel-authorization"})(p||(p={}));class f extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class g extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class m extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class v extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class y extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class w extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class b extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class _ extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class k extends Error{constructor(e,t){super(t),this.status=e,Object.setPrototypeOf(this,new.target.prototype)}}const S=function(e,t,r,n,i){const o=Gt.createXHR();for(var s in o.open("POST",r.endpoint,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.headers)o.setRequestHeader(s,r.headers[s]);if(null!=r.headersProvider){let e=r.headersProvider();for(var s in e)o.setRequestHeader(s,e[s])}return o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status){let t,r=!1;try{t=JSON.parse(o.responseText),r=!0}catch(e){i(new k(200,`JSON returned from ${n.toString()} endpoint was invalid, yet status code was 200. Data was: ${o.responseText}`),null)}r&&i(null,t)}else{let e="";switch(n){case p.UserAuthentication:e=d.buildLogSuffix("authenticationEndpoint");break;case p.ChannelAuthorization:e=`Clients must be authorized to join private or presence channels. ${d.buildLogSuffix("authorizationEndpoint")}`;break}i(new k(o.status,`Unable to retrieve auth string from ${n.toString()} endpoint - received status: ${o.status} from ${r.endpoint}. ${e}`),null)}},o.send(t),o},x=S;function C(e){return L(R(e))}for(var E=String.fromCharCode,O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A={},I=0,T=O.length;I<T;I++)A[O.charAt(I)]=I;var M=function(e){var t=e.charCodeAt(0);return t<128?e:t<2048?E(192|t>>>6)+E(128|63&t):E(224|t>>>12&15)+E(128|t>>>6&63)+E(128|63&t)},R=function(e){return e.replace(/[^\x00-\x7F]/g,M)},P=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),n=[O.charAt(r>>>18),O.charAt(r>>>12&63),t>=2?"=":O.charAt(r>>>6&63),t>=1?"=":O.charAt(63&r)];return n.join("")},L=window.btoa||function(e){return e.replace(/[\s\S]{1,3}/g,P)};class D{constructor(e,t,r,n){this.clear=t,this.timer=e(()=>{this.timer&&(this.timer=n(this.timer))},r)}isRunning(){return null!==this.timer}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}const B=D;function N(e){window.clearTimeout(e)}function j(e){window.clearInterval(e)}class F extends B{constructor(e,t){super(setTimeout,N,e,function(e){return t(),null})}}class U extends B{constructor(e,t){super(setInterval,j,e,function(e){return t(),e})}}var z={now(){return Date.now?Date.now():(new Date).valueOf()},defer(e){return new F(0,e)},method(e,...t){var r=Array.prototype.slice.call(arguments,1);return function(t){return t[e].apply(t,r.concat(arguments))}}};const q=z;function H(e,...t){for(var r=0;r<t.length;r++){var n=t[r];for(var i in n)n[i]&&n[i].constructor&&n[i].constructor===Object?e[i]=H(e[i]||{},n[i]):e[i]=n[i]}return e}function $(){for(var e=["Pusher"],t=0;t<arguments.length;t++)"string"===typeof arguments[t]?e.push(arguments[t]):e.push(se(arguments[t]));return e.join(" : ")}function W(e,t){var r=Array.prototype.indexOf;if(null===e)return-1;if(r&&e.indexOf===r)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}function V(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t(e[r],r,e)}function Y(e){var t=[];return V(e,function(e,r){t.push(r)}),t}function X(e){var t=[];return V(e,function(e){t.push(e)}),t}function J(e,t,r){for(var n=0;n<e.length;n++)t.call(r||window,e[n],n,e)}function G(e,t){for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n,e,r));return r}function K(e,t){var r={};return V(e,function(e,n){r[n]=t(e)}),r}function Z(e,t){t=t||function(e){return!!e};for(var r=[],n=0;n<e.length;n++)t(e[n],n,e,r)&&r.push(e[n]);return r}function Q(e,t){var r={};return V(e,function(n,i){(t&&t(n,i,e,r)||Boolean(n))&&(r[i]=n)}),r}function ee(e){var t=[];return V(e,function(e,r){t.push([r,e])}),t}function te(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r,e))return!0;return!1}function re(e,t){for(var r=0;r<e.length;r++)if(!t(e[r],r,e))return!1;return!0}function ne(e){return K(e,function(e){return"object"===typeof e&&(e=se(e)),encodeURIComponent(C(e.toString()))})}function ie(e){var t=Q(e,function(e){return void 0!==e}),r=G(ee(ne(t)),q.method("join","=")).join("&");return r}function oe(e){var t=[],r=[];return function e(n,i){var o,s,a;switch(typeof n){case"object":if(!n)return null;for(o=0;o<t.length;o+=1)if(t[o]===n)return{$ref:r[o]};if(t.push(n),r.push(i),"[object Array]"===Object.prototype.toString.apply(n))for(a=[],o=0;o<n.length;o+=1)a[o]=e(n[o],i+"["+o+"]");else for(s in a={},n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=e(n[s],i+"["+JSON.stringify(s)+"]"));return a;case"number":case"string":case"boolean":return n}}(e,"$")}function se(e){try{return JSON.stringify(e)}catch(t){return JSON.stringify(oe(e))}}class ae{constructor(){this.globalLog=e=>{window.console&&window.console.log&&window.console.log(e)}}debug(...e){this.log(this.globalLog,e)}warn(...e){this.log(this.globalLogWarn,e)}error(...e){this.log(this.globalLogError,e)}globalLogWarn(e){window.console&&window.console.warn?window.console.warn(e):this.globalLog(e)}globalLogError(e){window.console&&window.console.error?window.console.error(e):this.globalLogWarn(e)}log(e,...t){var r=$.apply(this,arguments);if(Ar.log)Ar.log(r);else if(Ar.logToConsole){const t=e.bind(this);t(r)}}}const ce=new ae;var ue=function(e,t,r,n,i){void 0===r.headers&&null==r.headersProvider||ce.warn(`To send headers with the ${n.toString()} request, you must use AJAX, rather than JSONP.`);var o=e.nextAuthCallbackID.toString();e.nextAuthCallbackID++;var s=e.getDocument(),a=s.createElement("script");e.auth_callbacks[o]=function(e){i(null,e)};var c="Pusher.auth_callbacks['"+o+"']";a.src=r.endpoint+"?callback="+encodeURIComponent(c)+"&"+t;var u=s.getElementsByTagName("head")[0]||s.documentElement;u.insertBefore(a,u.firstChild)};const le=ue;class he{constructor(e){this.src=e}send(e){var t=this,r="Error loading "+t.src;t.script=document.createElement("script"),t.script.id=e.id,t.script.src=t.src,t.script.type="text/javascript",t.script.charset="UTF-8",t.script.addEventListener?(t.script.onerror=function(){e.callback(r)},t.script.onload=function(){e.callback(null)}):t.script.onreadystatechange=function(){"loaded"!==t.script.readyState&&"complete"!==t.script.readyState||e.callback(null)},void 0===t.script.async&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(t.errorScript=document.createElement("script"),t.errorScript.id=e.id+"_error",t.errorScript.text=e.name+"('"+r+"');",t.script.async=t.errorScript.async=!1):t.script.async=!0;var n=document.getElementsByTagName("head")[0];n.insertBefore(t.script,n.firstChild),t.errorScript&&n.insertBefore(t.errorScript,t.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class de{constructor(e,t){this.url=e,this.data=t}send(e){if(!this.request){var t=ie(this.data),r=this.url+"/"+e.number+"?"+t;this.request=Gt.createScriptRequest(r),this.request.send(e)}}cleanup(){this.request&&this.request.cleanup()}}var pe=function(e,t){return function(r,n){var o="http"+(t?"s":"")+"://",s=o+(e.host||e.options.host)+e.options.path,a=Gt.createJSONPRequest(s,r),c=Gt.ScriptReceivers.create(function(t,r){i.remove(c),a.cleanup(),r&&r.host&&(e.host=r.host),n&&n(t,r)});a.send(c)}},fe={name:"jsonp",getAgent:pe};const ge=fe;function me(e,t,r){var n=e+(t.useTLS?"s":""),i=t.useTLS?t.hostTLS:t.hostNonTLS;return n+"://"+i+r}function ve(e,t){var r="/app/"+e,n="?protocol="+s.PROTOCOL+"&client=js&version="+s.VERSION+(t?"&"+t:"");return r+n}var ye={getInitial:function(e,t){var r=(t.httpPath||"")+ve(e,"flash=false");return me("ws",t,r)}},we={getInitial:function(e,t){var r=(t.httpPath||"/pusher")+ve(e);return me("http",t,r)}},be={getInitial:function(e,t){return me("http",t,t.httpPath||"/pusher")},getPath:function(e,t){return ve(e)}};class _e{constructor(){this._callbacks={}}get(e){return this._callbacks[ke(e)]}add(e,t,r){var n=ke(e);this._callbacks[n]=this._callbacks[n]||[],this._callbacks[n].push({fn:t,context:r})}remove(e,t,r){if(e||t||r){var n=e?[ke(e)]:Y(this._callbacks);t||r?this.removeCallback(n,t,r):this.removeAllCallbacks(n)}else this._callbacks={}}removeCallback(e,t,r){J(e,function(e){this._callbacks[e]=Z(this._callbacks[e]||[],function(e){return t&&t!==e.fn||r&&r!==e.context}),0===this._callbacks[e].length&&delete this._callbacks[e]},this)}removeAllCallbacks(e){J(e,function(e){delete this._callbacks[e]},this)}}function ke(e){return"_"+e}class Se{constructor(e){this.callbacks=new _e,this.global_callbacks=[],this.failThrough=e}bind(e,t,r){return this.callbacks.add(e,t,r),this}bind_global(e){return this.global_callbacks.push(e),this}unbind(e,t,r){return this.callbacks.remove(e,t,r),this}unbind_global(e){return e?(this.global_callbacks=Z(this.global_callbacks||[],t=>t!==e),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(e,t,r){for(var n=0;n<this.global_callbacks.length;n++)this.global_callbacks[n](e,t);var i=this.callbacks.get(e),o=[];if(r?o.push(t,r):t&&o.push(t),i&&i.length>0)for(n=0;n<i.length;n++)i[n].fn.apply(i[n].context||window,o);else this.failThrough&&this.failThrough(e,t);return this}}class xe extends Se{constructor(e,t,r,n,i){super(),this.initialize=Gt.transportConnectionInitializer,this.hooks=e,this.name=t,this.priority=r,this.key=n,this.options=i,this.state="new",this.timeline=i.timeline,this.activityTimeout=i.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return Boolean(this.hooks.handlesActivityChecks)}supportsPing(){return Boolean(this.hooks.supportsPing)}connect(){if(this.socket||"initialized"!==this.state)return!1;var e=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(e,this.options)}catch(t){return q.defer(()=>{this.onError(t),this.changeState("closed")}),!1}return this.bindListeners(),ce.debug("Connecting",{transport:this.name,url:e}),this.changeState("connecting"),!0}close(){return!!this.socket&&(this.socket.close(),!0)}send(e){return"open"===this.state&&(q.defer(()=>{this.socket&&this.socket.send(e)}),!0)}ping(){"open"===this.state&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(e){this.emit("error",{type:"WebSocketError",error:e}),this.timeline.error(this.buildTimelineMessage({error:e.toString()}))}onClose(e){e?this.changeState("closed",{code:e.code,reason:e.reason,wasClean:e.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(e){this.emit("message",e)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=e=>{this.onError(e)},this.socket.onclose=e=>{this.onClose(e)},this.socket.onmessage=e=>{this.onMessage(e)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(e,t){this.state=e,this.timeline.info(this.buildTimelineMessage({state:e,params:t})),this.emit(e,t)}buildTimelineMessage(e){return H({cid:this.id},e)}}class Ce{constructor(e){this.hooks=e}isSupported(e){return this.hooks.isSupported(e)}createConnection(e,t,r,n){return new xe(this.hooks,e,t,r,n)}}var Ee=new Ce({urls:ye,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return Boolean(Gt.getWebSocketAPI())},isSupported:function(){return Boolean(Gt.getWebSocketAPI())},getSocket:function(e){return Gt.createWebSocket(e)}}),Oe={urls:we,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},Ae=H({getSocket:function(e){return Gt.HTTPFactory.createStreamingSocket(e)}},Oe),Ie=H({getSocket:function(e){return Gt.HTTPFactory.createPollingSocket(e)}},Oe),Te={isSupported:function(){return Gt.isXHRSupported()}},Me=new Ce(H({},Ae,Te)),Re=new Ce(H({},Ie,Te)),Pe={ws:Ee,xhr_streaming:Me,xhr_polling:Re};const Le=Pe;var De=new Ce({file:"sockjs",urls:be,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return void 0!==window.SockJS},getSocket:function(e,t){return new window.SockJS(e,null,{js_path:u.getPath("sockjs",{useTLS:t.useTLS}),ignore_null_origin:t.ignoreNullOrigin})},beforeOpen:function(e,t){e.send(JSON.stringify({path:t}))}}),Be={isSupported:function(e){var t=Gt.isXDRSupported(e.useTLS);return t}},Ne=new Ce(H({},Ae,Be)),je=new Ce(H({},Ie,Be));Le.xdr_streaming=Ne,Le.xdr_polling=je,Le.sockjs=De;const Fe=Le;class Ue extends Se{constructor(){super();var e=this;void 0!==window.addEventListener&&(window.addEventListener("online",function(){e.emit("online")},!1),window.addEventListener("offline",function(){e.emit("offline")},!1))}isOnline(){return void 0===window.navigator.onLine||window.navigator.onLine}}var ze=new Ue;class qe{constructor(e,t,r){this.manager=e,this.transport=t,this.minPingDelay=r.minPingDelay,this.maxPingDelay=r.maxPingDelay,this.pingDelay=void 0}createConnection(e,t,r,n){n=H({},n,{activityTimeout:this.pingDelay});var i=this.transport.createConnection(e,t,r,n),o=null,s=function(){i.unbind("open",s),i.bind("closed",a),o=q.now()},a=e=>{if(i.unbind("closed",a),1002===e.code||1003===e.code)this.manager.reportDeath();else if(!e.wasClean&&o){var t=q.now()-o;t<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(t/2,this.minPingDelay))}};return i.bind("open",s),i}isSupported(e){return this.manager.isAlive()&&this.transport.isSupported(e)}}const He={decodeMessage:function(e){try{var t=JSON.parse(e.data),r=t.data;if("string"===typeof r)try{r=JSON.parse(t.data)}catch(i){}var n={event:t.event,channel:t.channel,data:r};return t.user_id&&(n.user_id=t.user_id),n}catch(i){throw{type:"MessageParseError",error:i,data:e.data}}},encodeMessage:function(e){return JSON.stringify(e)},processHandshake:function(e){var t=He.decodeMessage(e);if("pusher:connection_established"===t.event){if(!t.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:t.data.socket_id,activityTimeout:1e3*t.data.activity_timeout}}if("pusher:error"===t.event)return{action:this.getCloseAction(t.data),error:this.getCloseError(t.data)};throw"Invalid handshake"},getCloseAction:function(e){return e.code<4e3?e.code>=1002&&e.code<=1004?"backoff":null:4e3===e.code?"tls_only":e.code<4100?"refused":e.code<4200?"backoff":e.code<4300?"retry":"refused"},getCloseError:function(e){return 1e3!==e.code&&1001!==e.code?{type:"PusherError",data:{code:e.code,message:e.reason||e.message}}:null}},$e=He;class We extends Se{constructor(e,t){super(),this.id=e,this.transport=t,this.activityTimeout=t.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(e){return this.transport.send(e)}send_event(e,t,r){var n={event:e,data:t};return r&&(n.channel=r),ce.debug("Event sent",n),this.send($e.encodeMessage(n))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var e={message:e=>{var t;try{t=$e.decodeMessage(e)}catch(r){this.emit("error",{type:"MessageParseError",error:r,data:e.data})}if(void 0!==t){switch(ce.debug("Event recd",t),t.event){case"pusher:error":this.emit("error",{type:"PusherError",data:t.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",t)}},activity:()=>{this.emit("activity")},error:e=>{this.emit("error",e)},closed:e=>{t(),e&&e.code&&this.handleCloseEvent(e),this.transport=null,this.emit("closed")}},t=()=>{V(e,(e,t)=>{this.transport.unbind(t,e)})};V(e,(e,t)=>{this.transport.bind(t,e)})}handleCloseEvent(e){var t=$e.getCloseAction(e),r=$e.getCloseError(e);r&&this.emit("error",r),t&&this.emit(t,{action:t,error:r})}}class Ve{constructor(e,t){this.transport=e,this.callback=t,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=e=>{var t;this.unbindListeners();try{t=$e.processHandshake(e)}catch(r){return this.finish("error",{error:r}),void this.transport.close()}"connected"===t.action?this.finish("connected",{connection:new We(t.id,this.transport),activityTimeout:t.activityTimeout}):(this.finish(t.action,{error:t.error}),this.transport.close())},this.onClosed=e=>{this.unbindListeners();var t=$e.getCloseAction(e)||"backoff",r=$e.getCloseError(e);this.finish(t,{error:r})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(e,t){this.callback(H({transport:this.transport,action:e},t))}}class Ye{constructor(e,t){this.timeline=e,this.options=t||{}}send(e,t){this.timeline.isEmpty()||this.timeline.send(Gt.TimelineTransport.getAgent(this,e),t)}}class Xe extends Se{constructor(e,t){super(function(t,r){ce.debug("No callbacks on "+e+" for "+t)}),this.name=e,this.pusher=t,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(e,t){return t(null,{auth:""})}trigger(e,t){if(0!==e.indexOf("client-"))throw new f("Event '"+e+"' does not start with 'client-'");if(!this.subscribed){var r=d.buildLogSuffix("triggeringClientEvents");ce.warn(`Client event triggered before channel 'subscription_succeeded' event . ${r}`)}return this.pusher.send_event(e,t,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(e){var t=e.event,r=e.data;if("pusher_internal:subscription_succeeded"===t)this.handleSubscriptionSucceededEvent(e);else if("pusher_internal:subscription_count"===t)this.handleSubscriptionCountEvent(e);else if(0!==t.indexOf("pusher_internal:")){var n={};this.emit(t,r,n)}}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",e.data)}handleSubscriptionCountEvent(e){e.data.subscription_count&&(this.subscriptionCount=e.data.subscription_count),this.emit("pusher:subscription_count",e.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(e,t)=>{e?(this.subscriptionPending=!1,ce.error(e.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:e.message},e instanceof k?{status:e.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:t.auth,channel_data:t.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class Je extends Xe{authorize(e,t){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:e},t)}}class Ge{constructor(){this.reset()}get(e){return Object.prototype.hasOwnProperty.call(this.members,e)?{id:e,info:this.members[e]}:null}each(e){V(this.members,(t,r)=>{e(this.get(r))})}setMyID(e){this.myID=e}onSubscription(e){this.members=e.presence.hash,this.count=e.presence.count,this.me=this.get(this.myID)}addMember(e){return null===this.get(e.user_id)&&this.count++,this.members[e.user_id]=e.user_info,this.get(e.user_id)}removeMember(e){var t=this.get(e.user_id);return t&&(delete this.members[e.user_id],this.count--),t}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var Ke=function(e,t,r,n){function i(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function s(e){try{c(n.next(e))}catch(t){o(t)}}function a(e){try{c(n["throw"](e))}catch(t){o(t)}}function c(e){e.done?r(e.value):i(e.value).then(s,a)}c((n=n.apply(e,t||[])).next())})};class Ze extends Je{constructor(e,t){super(e,t),this.members=new Ge}authorize(e,t){super.authorize(e,(e,r)=>Ke(this,void 0,void 0,function*(){if(!e)if(null!=r.channel_data){var n=JSON.parse(r.channel_data);this.members.setMyID(n.user_id)}else{if(yield this.pusher.user.signinDonePromise,null==this.pusher.user.user_data){let e=d.buildLogSuffix("authorizationEndpoint");return ce.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${e}, or the user should be signed in.`),void t("Invalid auth response")}this.members.setMyID(this.pusher.user.user_data.id)}t(e,r)}))}handleEvent(e){var t=e.event;if(0===t.indexOf("pusher_internal:"))this.handleInternalEvent(e);else{var r=e.data,n={};e.user_id&&(n.user_id=e.user_id),this.emit(t,r,n)}}handleInternalEvent(e){var t=e.event,r=e.data;switch(t){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(e);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(e);break;case"pusher_internal:member_added":var n=this.members.addMember(r);this.emit("pusher:member_added",n);break;case"pusher_internal:member_removed":var i=this.members.removeMember(r);i&&this.emit("pusher:member_removed",i);break}}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(e.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var Qe=r(978),et=r(594);class tt extends Je{constructor(e,t,r){super(e,t),this.key=null,this.nacl=r}authorize(e,t){super.authorize(e,(e,r)=>{if(e)return void t(e,r);let n=r["shared_secret"];n?(this.key=(0,et.decode)(n),delete r["shared_secret"],t(null,r)):t(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null)})}trigger(e,t){throw new w("Client events are not currently supported for encrypted channels")}handleEvent(e){var t=e.event,r=e.data;0!==t.indexOf("pusher_internal:")&&0!==t.indexOf("pusher:")?this.handleEncryptedEvent(t,r):super.handleEvent(e)}handleEncryptedEvent(e,t){if(!this.key)return void ce.debug("Received encrypted event before key has been retrieved from the authEndpoint");if(!t.ciphertext||!t.nonce)return void ce.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+t);let r=(0,et.decode)(t.ciphertext);if(r.length<this.nacl.secretbox.overheadLength)return void ce.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${r.length}`);let n=(0,et.decode)(t.nonce);if(n.length<this.nacl.secretbox.nonceLength)return void ce.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${n.length}`);let i=this.nacl.secretbox.open(r,n,this.key);if(null===i)return ce.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),void this.authorize(this.pusher.connection.socket_id,(t,o)=>{t?ce.error(`Failed to make a request to the authEndpoint: ${o}. Unable to fetch new key, so dropping encrypted event`):(i=this.nacl.secretbox.open(r,n,this.key),null!==i?this.emit(e,this.getDataToEmit(i)):ce.error("Failed to decrypt event with new key. Dropping encrypted event"))});this.emit(e,this.getDataToEmit(i))}getDataToEmit(e){let t=(0,Qe.D4)(e);try{return JSON.parse(t)}catch(r){return t}}}class rt extends Se{constructor(e,t){super(),this.state="initialized",this.connection=null,this.key=e,this.options=t,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var r=Gt.getNetwork();r.bind("online",()=>{this.timeline.info({netinfo:"online"}),"connecting"!==this.state&&"unavailable"!==this.state||this.retryIn(0)}),r.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}switchCluster(e){this.key=e,this.updateStrategy(),this.retryIn(0)}connect(){this.connection||this.runner||(this.strategy.isSupported()?(this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()):this.updateState("failed"))}send(e){return!!this.connection&&this.connection.send(e)}send_event(e,t,r){return!!this.connection&&this.connection.send_event(e,t,r)}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var e=(t,r)=>{t?this.runner=this.strategy.connect(0,e):"error"===r.action?(this.emit("error",{type:"HandshakeError",error:r.error}),this.timeline.error({handshakeError:r.error})):(this.abortConnecting(),this.handshakeCallbacks[r.action](r))};this.runner=this.strategy.connect(0,e)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var e=this.abandonConnection();e.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(e){this.timeline.info({action:"retry",delay:e}),e>0&&this.emit("connecting_in",Math.round(e/1e3)),this.retryTimer=new F(e||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new F(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new F(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new F(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(e){return H({},e,{message:e=>{this.resetActivityCheck(),this.emit("message",e)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:e=>{this.emit("error",e)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(e){return H({},e,{connected:e=>{this.activityTimeout=Math.min(this.options.activityTimeout,e.activityTimeout,e.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(e.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let e=e=>t=>{t.error&&this.emit("error",{type:"WebSocketError",error:t.error}),e(t)};return{tls_only:e(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:e(()=>{this.disconnect()}),backoff:e(()=>{this.retryIn(1e3)}),retry:e(()=>{this.retryIn(0)})}}setConnection(e){for(var t in this.connection=e,this.connectionCallbacks)this.connection.bind(t,this.connectionCallbacks[t]);this.resetActivityCheck()}abandonConnection(){if(this.connection){for(var e in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(e,this.connectionCallbacks[e]);var t=this.connection;return this.connection=null,t}}updateState(e,t){var r=this.state;if(this.state=e,r!==e){var n=e;"connected"===n&&(n+=" with new socket ID "+t.socket_id),ce.debug("State changed",r+" -> "+n),this.timeline.info({state:e,params:t}),this.emit("state_change",{previous:r,current:e}),this.emit(e,t)}}shouldRetry(){return"connecting"===this.state||"connected"===this.state}}class nt{constructor(){this.channels={}}add(e,t){return this.channels[e]||(this.channels[e]=it(e,t)),this.channels[e]}all(){return X(this.channels)}find(e){return this.channels[e]}remove(e){var t=this.channels[e];return delete this.channels[e],t}disconnect(){V(this.channels,function(e){e.disconnect()})}}function it(e,t){if(0===e.indexOf("private-encrypted-")){if(t.config.nacl)return st.createEncryptedChannel(e,t,t.config.nacl);let r="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",n=d.buildLogSuffix("encryptedChannelSupport");throw new w(`${r}. ${n}`)}if(0===e.indexOf("private-"))return st.createPrivateChannel(e,t);if(0===e.indexOf("presence-"))return st.createPresenceChannel(e,t);if(0===e.indexOf("#"))throw new g('Cannot create a channel with name "'+e+'".');return st.createChannel(e,t)}var ot={createChannels(){return new nt},createConnectionManager(e,t){return new rt(e,t)},createChannel(e,t){return new Xe(e,t)},createPrivateChannel(e,t){return new Je(e,t)},createPresenceChannel(e,t){return new Ze(e,t)},createEncryptedChannel(e,t,r){return new tt(e,t,r)},createTimelineSender(e,t){return new Ye(e,t)},createHandshake(e,t){return new Ve(e,t)},createAssistantToTheTransportManager(e,t,r){return new qe(e,t,r)}};const st=ot;class at{constructor(e){this.options=e||{},this.livesLeft=this.options.lives||1/0}getAssistant(e){return st.createAssistantToTheTransportManager(this,e,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class ct{constructor(e,t){this.strategies=e,this.loop=Boolean(t.loop),this.failFast=Boolean(t.failFast),this.timeout=t.timeout,this.timeoutLimit=t.timeoutLimit}isSupported(){return te(this.strategies,q.method("isSupported"))}connect(e,t){var r=this.strategies,n=0,i=this.timeout,o=null,s=(a,c)=>{c?t(null,c):(n+=1,this.loop&&(n%=r.length),n<r.length?(i&&(i*=2,this.timeoutLimit&&(i=Math.min(i,this.timeoutLimit))),o=this.tryStrategy(r[n],e,{timeout:i,failFast:this.failFast},s)):t(!0))};return o=this.tryStrategy(r[n],e,{timeout:i,failFast:this.failFast},s),{abort:function(){o.abort()},forceMinPriority:function(t){e=t,o&&o.forceMinPriority(t)}}}tryStrategy(e,t,r,n){var i=null,o=null;return r.timeout>0&&(i=new F(r.timeout,function(){o.abort(),n(!0)})),o=e.connect(t,function(e,t){e&&i&&i.isRunning()&&!r.failFast||(i&&i.ensureAborted(),n(e,t))}),{abort:function(){i&&i.ensureAborted(),o.abort()},forceMinPriority:function(e){o.forceMinPriority(e)}}}}class ut{constructor(e){this.strategies=e}isSupported(){return te(this.strategies,q.method("isSupported"))}connect(e,t){return lt(this.strategies,e,function(e,r){return function(n,i){r[e].error=n,n?ht(r)&&t(!0):(J(r,function(e){e.forceMinPriority(i.transport.priority)}),t(null,i))}})}}function lt(e,t,r){var n=G(e,function(e,n,i,o){return e.connect(t,r(n,o))});return{abort:function(){J(n,dt)},forceMinPriority:function(e){J(n,function(t){t.forceMinPriority(e)})}}}function ht(e){return re(e,function(e){return Boolean(e.error)})}function dt(e){e.error||e.aborted||(e.abort(),e.aborted=!0)}class pt{constructor(e,t,r){this.strategy=e,this.transports=t,this.ttl=r.ttl||18e5,this.usingTLS=r.useTLS,this.timeline=r.timeline}isSupported(){return this.strategy.isSupported()}connect(e,t){var r=this.usingTLS,n=gt(r),i=n&&n.cacheSkipCount?n.cacheSkipCount:0,o=[this.strategy];if(n&&n.timestamp+this.ttl>=q.now()){var s=this.transports[n.transport];s&&(["ws","wss"].includes(n.transport)||i>3?(this.timeline.info({cached:!0,transport:n.transport,latency:n.latency}),o.push(new ct([s],{timeout:2*n.latency+1e3,failFast:!0}))):i++)}var a=q.now(),c=o.pop().connect(e,function n(s,u){s?(vt(r),o.length>0?(a=q.now(),c=o.pop().connect(e,n)):t(s)):(mt(r,u.transport.name,q.now()-a,i),t(null,u))});return{abort:function(){c.abort()},forceMinPriority:function(t){e=t,c&&c.forceMinPriority(t)}}}}function ft(e){return"pusherTransport"+(e?"TLS":"NonTLS")}function gt(e){var t=Gt.getLocalStorage();if(t)try{var r=t[ft(e)];if(r)return JSON.parse(r)}catch(n){vt(e)}return null}function mt(e,t,r,n){var i=Gt.getLocalStorage();if(i)try{i[ft(e)]=se({timestamp:q.now(),transport:t,latency:r,cacheSkipCount:n})}catch(o){}}function vt(e){var t=Gt.getLocalStorage();if(t)try{delete t[ft(e)]}catch(r){}}class yt{constructor(e,{delay:t}){this.strategy=e,this.options={delay:t}}isSupported(){return this.strategy.isSupported()}connect(e,t){var r,n=this.strategy,i=new F(this.options.delay,function(){r=n.connect(e,t)});return{abort:function(){i.ensureAborted(),r&&r.abort()},forceMinPriority:function(t){e=t,r&&r.forceMinPriority(t)}}}}class wt{constructor(e,t,r){this.test=e,this.trueBranch=t,this.falseBranch=r}isSupported(){var e=this.test()?this.trueBranch:this.falseBranch;return e.isSupported()}connect(e,t){var r=this.test()?this.trueBranch:this.falseBranch;return r.connect(e,t)}}class bt{constructor(e){this.strategy=e}isSupported(){return this.strategy.isSupported()}connect(e,t){var r=this.strategy.connect(e,function(e,n){n&&r.abort(),t(e,n)});return r}}function _t(e){return function(){return e.isSupported()}}var kt=function(e,t,r){var n={};function i(t,i,o,s,a){var c=r(e,t,i,o,s,a);return n[t]=c,c}var o,s=Object.assign({},t,{hostNonTLS:e.wsHost+":"+e.wsPort,hostTLS:e.wsHost+":"+e.wssPort,httpPath:e.wsPath}),a=Object.assign({},s,{useTLS:!0}),c=Object.assign({},t,{hostNonTLS:e.httpHost+":"+e.httpPort,hostTLS:e.httpHost+":"+e.httpsPort,httpPath:e.httpPath}),u={loop:!0,timeout:15e3,timeoutLimit:6e4},l=new at({minPingDelay:1e4,maxPingDelay:e.activityTimeout}),h=new at({lives:2,minPingDelay:1e4,maxPingDelay:e.activityTimeout}),d=i("ws","ws",3,s,l),p=i("wss","ws",3,a,l),f=i("sockjs","sockjs",1,c),g=i("xhr_streaming","xhr_streaming",1,c,h),m=i("xdr_streaming","xdr_streaming",1,c,h),v=i("xhr_polling","xhr_polling",1,c),y=i("xdr_polling","xdr_polling",1,c),w=new ct([d],u),b=new ct([p],u),_=new ct([f],u),k=new ct([new wt(_t(g),g,m)],u),S=new ct([new wt(_t(v),v,y)],u),x=new ct([new wt(_t(k),new ut([k,new yt(S,{delay:4e3})]),S)],u),C=new wt(_t(x),x,_);return o=t.useTLS?new ut([w,new yt(C,{delay:2e3})]):new ut([w,new yt(b,{delay:2e3}),new yt(C,{delay:5e3})]),new pt(new bt(new wt(_t(d),o,C)),n,{ttl:18e5,timeline:t.timeline,useTLS:t.useTLS})};const St=kt;function xt(){var e=this;e.timeline.info(e.buildTimelineMessage({transport:e.name+(e.options.useTLS?"s":"")})),e.hooks.isInitialized()?e.changeState("initialized"):e.hooks.file?(e.changeState("initializing"),u.load(e.hooks.file,{useTLS:e.options.useTLS},function(t,r){e.hooks.isInitialized()?(e.changeState("initialized"),r(!0)):(t&&e.onError(t),e.onClose(),r(!1))})):e.onClose()}var Ct={getRequest:function(e){var t=new window.XDomainRequest;return t.ontimeout=function(){e.emit("error",new m),e.close()},t.onerror=function(t){e.emit("error",t),e.close()},t.onprogress=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText)},t.onload=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText),e.emit("finished",200),e.close()},t},abortRequest:function(e){e.ontimeout=e.onerror=e.onprogress=e.onload=null,e.abort()}};const Et=Ct,Ot=262144;class At extends Se{constructor(e,t,r){super(),this.hooks=e,this.method=t,this.url=r}start(e){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},Gt.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(e)}close(){this.unloader&&(Gt.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(e,t){while(1){var r=this.advanceBuffer(t);if(!r)break;this.emit("chunk",{status:e,data:r})}this.isBufferTooLong(t)&&this.emit("buffer_too_long")}advanceBuffer(e){var t=e.slice(this.position),r=t.indexOf("\n");return-1!==r?(this.position+=r+1,t.slice(0,r)):null}isBufferTooLong(e){return this.position===e.length&&e.length>Ot}}var It;(function(e){e[e["CONNECTING"]=0]="CONNECTING",e[e["OPEN"]=1]="OPEN",e[e["CLOSED"]=3]="CLOSED"})(It||(It={}));const Tt=It;var Mt=1;class Rt{constructor(e,t){this.hooks=e,this.session=Nt(1e3)+"/"+jt(8),this.location=Pt(t),this.readyState=Tt.CONNECTING,this.openStream()}send(e){return this.sendRaw(JSON.stringify([e]))}ping(){this.hooks.sendHeartbeat(this)}close(e,t){this.onClose(e,t,!0)}sendRaw(e){if(this.readyState!==Tt.OPEN)return!1;try{return Gt.createSocketRequest("POST",Dt(Lt(this.location,this.session))).start(e),!0}catch(t){return!1}}reconnect(){this.closeStream(),this.openStream()}onClose(e,t,r){this.closeStream(),this.readyState=Tt.CLOSED,this.onclose&&this.onclose({code:e,reason:t,wasClean:r})}onChunk(e){if(200===e.status){var t;this.readyState===Tt.OPEN&&this.onActivity();var r=e.data.slice(0,1);switch(r){case"o":t=JSON.parse(e.data.slice(1)||"{}"),this.onOpen(t);break;case"a":t=JSON.parse(e.data.slice(1)||"[]");for(var n=0;n<t.length;n++)this.onEvent(t[n]);break;case"m":t=JSON.parse(e.data.slice(1)||"null"),this.onEvent(t);break;case"h":this.hooks.onHeartbeat(this);break;case"c":t=JSON.parse(e.data.slice(1)||"[]"),this.onClose(t[0],t[1],!0);break}}}onOpen(e){this.readyState===Tt.CONNECTING?(e&&e.hostname&&(this.location.base=Bt(this.location.base,e.hostname)),this.readyState=Tt.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(e){this.readyState===Tt.OPEN&&this.onmessage&&this.onmessage({data:e})}onActivity(){this.onactivity&&this.onactivity()}onError(e){this.onerror&&this.onerror(e)}openStream(){this.stream=Gt.createSocketRequest("POST",Dt(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",e=>{this.onChunk(e)}),this.stream.bind("finished",e=>{this.hooks.onFinished(this,e)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(e){q.defer(()=>{this.onError(e),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function Pt(e){var t=/([^\?]*)\/*(\??.*)/.exec(e);return{base:t[1],queryString:t[2]}}function Lt(e,t){return e.base+"/"+t+"/xhr_send"}function Dt(e){var t=-1===e.indexOf("?")?"?":"&";return e+t+"t="+ +new Date+"&n="+Mt++}function Bt(e,t){var r=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(e);return r[1]+t+r[3]}function Nt(e){return Gt.randomInt(e)}function jt(e){for(var t=[],r=0;r<e;r++)t.push(Nt(32).toString(32));return t.join("")}const Ft=Rt;var Ut={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr_streaming"+e.queryString},onHeartbeat:function(e){e.sendRaw("[]")},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){e.onClose(1006,"Connection interrupted ("+t+")",!1)}};const zt=Ut;var qt={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr"+e.queryString},onHeartbeat:function(){},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){200===t?e.reconnect():e.onClose(1006,"Connection interrupted ("+t+")",!1)}};const Ht=qt;var $t={getRequest:function(e){var t=Gt.getXHRAPI(),r=new t;return r.onreadystatechange=r.onprogress=function(){switch(r.readyState){case 3:r.responseText&&r.responseText.length>0&&e.onChunk(r.status,r.responseText);break;case 4:r.responseText&&r.responseText.length>0&&e.onChunk(r.status,r.responseText),e.emit("finished",r.status),e.close();break}},r},abortRequest:function(e){e.onreadystatechange=null,e.abort()}};const Wt=$t;var Vt={createStreamingSocket(e){return this.createSocket(zt,e)},createPollingSocket(e){return this.createSocket(Ht,e)},createSocket(e,t){return new Ft(e,t)},createXHR(e,t){return this.createRequest(Wt,e,t)},createRequest(e,t,r){return new At(e,t,r)}};const Yt=Vt;Yt.createXDR=function(e,t){return this.createRequest(Et,e,t)};const Xt=Yt;var Jt={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:i,DependenciesReceivers:c,getDefaultStrategy:St,Transports:Fe,transportConnectionInitializer:xt,HTTPFactory:Xt,TimelineTransport:ge,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(e){window.Pusher=e;var t=()=>{this.onDocumentBody(e.ready)};window.JSON?t():u.load("json2",{},t)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:x,jsonp:le}},onDocumentBody(e){document.body?e():setTimeout(()=>{this.onDocumentBody(e)},0)},createJSONPRequest(e,t){return new de(e,t)},createScriptRequest(e){return new he(e)},getLocalStorage(){try{return window.localStorage}catch(e){return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var e=this.getXHRAPI();return new e},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return ze},createWebSocket(e){var t=this.getWebSocketAPI();return new t(e)},createSocketRequest(e,t){if(this.isXHRSupported())return this.HTTPFactory.createXHR(e,t);if(this.isXDRSupported(0===t.indexOf("https:")))return this.HTTPFactory.createXDR(e,t);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var e=this.getXHRAPI();return Boolean(e)&&void 0!==(new e).withCredentials},isXDRSupported(e){var t=e?"https:":"http:",r=this.getProtocol();return Boolean(window["XDomainRequest"])&&r===t},addUnloadListener(e){void 0!==window.addEventListener?window.addEventListener("unload",e,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",e)},removeUnloadListener(e){void 0!==window.addEventListener?window.removeEventListener("unload",e,!1):void 0!==window.detachEvent&&window.detachEvent("onunload",e)},randomInt(e){const t=function(){const e=window.crypto||window["msCrypto"],t=e.getRandomValues(new Uint32Array(1))[0];return t/Math.pow(2,32)};return Math.floor(t()*e)}};const Gt=Jt;var Kt;(function(e){e[e["ERROR"]=3]="ERROR",e[e["INFO"]=6]="INFO",e[e["DEBUG"]=7]="DEBUG"})(Kt||(Kt={}));const Zt=Kt;class Qt{constructor(e,t,r){this.key=e,this.session=t,this.events=[],this.options=r||{},this.sent=0,this.uniqueID=0}log(e,t){e<=this.options.level&&(this.events.push(H({},t,{timestamp:q.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(e){this.log(Zt.ERROR,e)}info(e){this.log(Zt.INFO,e)}debug(e){this.log(Zt.DEBUG,e)}isEmpty(){return 0===this.events.length}send(e,t){var r=H({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],e(r,(e,r)=>{e||this.sent++,t&&t(e,r)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class er{constructor(e,t,r,n){this.name=e,this.priority=t,this.transport=r,this.options=n||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(e,t){if(!this.isSupported())return tr(new _,t);if(this.priority<e)return tr(new v,t);var r=!1,n=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),i=null,o=function(){n.unbind("initialized",o),n.connect()},s=function(){i=st.createHandshake(n,function(e){r=!0,u(),t(null,e)})},a=function(e){u(),t(e)},c=function(){var e;u(),e=se(n),t(new y(e))},u=function(){n.unbind("initialized",o),n.unbind("open",s),n.unbind("error",a),n.unbind("closed",c)};return n.bind("initialized",o),n.bind("open",s),n.bind("error",a),n.bind("closed",c),n.initialize(),{abort:()=>{r||(u(),i?i.close():n.close())},forceMinPriority:e=>{r||this.priority<e&&(i?i.close():n.close())}}}}function tr(e,t){return q.defer(function(){t(e)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:rr}=Gt;var nr=function(e,t,r,n,i,o){var s=rr[r];if(!s)throw new b(r);var a,c=(!e.enabledTransports||-1!==W(e.enabledTransports,t))&&(!e.disabledTransports||-1===W(e.disabledTransports,t));return c?(i=Object.assign({ignoreNullOrigin:e.ignoreNullOrigin},i),a=new er(t,n,o?o.getAssistant(s):s,i)):a=ir,a},ir={isSupported:function(){return!1},connect:function(e,t){var r=q.defer(function(){t(new _)});return{abort:function(){r.ensureAborted()},forceMinPriority:function(){}}}};function or(e){if(null==e)throw"You must pass an options object";if(null==e.cluster)throw"Options object must provide a cluster";"disableStats"in e&&ce.warn("The disableStats option is deprecated in favor of enableStats")}const sr=(e,t)=>{var r="socket_id="+encodeURIComponent(e.socketId);for(var n in t.params)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(t.params[n]);if(null!=t.paramsProvider){let e=t.paramsProvider();for(var n in e)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(e[n])}return r},ar=e=>{if("undefined"===typeof Gt.getAuthorizers()[e.transport])throw`'${e.transport}' is not a recognized auth transport`;return(t,r)=>{const n=sr(t,e);Gt.getAuthorizers()[e.transport](Gt,n,e,p.UserAuthentication,r)}},cr=ar,ur=(e,t)=>{var r="socket_id="+encodeURIComponent(e.socketId);for(var n in r+="&channel_name="+encodeURIComponent(e.channelName),t.params)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(t.params[n]);if(null!=t.paramsProvider){let e=t.paramsProvider();for(var n in e)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(e[n])}return r},lr=e=>{if("undefined"===typeof Gt.getAuthorizers()[e.transport])throw`'${e.transport}' is not a recognized auth transport`;return(t,r)=>{const n=ur(t,e);Gt.getAuthorizers()[e.transport](Gt,n,e,p.ChannelAuthorization,r)}},hr=lr,dr=(e,t,r)=>{const n={authTransport:t.transport,authEndpoint:t.endpoint,auth:{params:t.params,headers:t.headers}};return(t,i)=>{const o=e.channel(t.channelName),s=r(o,n);s.authorize(t.socketId,i)}};function pr(e,t){let r={activityTimeout:e.activityTimeout||s.activityTimeout,cluster:e.cluster,httpPath:e.httpPath||s.httpPath,httpPort:e.httpPort||s.httpPort,httpsPort:e.httpsPort||s.httpsPort,pongTimeout:e.pongTimeout||s.pongTimeout,statsHost:e.statsHost||s.stats_host,unavailableTimeout:e.unavailableTimeout||s.unavailableTimeout,wsPath:e.wsPath||s.wsPath,wsPort:e.wsPort||s.wsPort,wssPort:e.wssPort||s.wssPort,enableStats:yr(e),httpHost:fr(e),useTLS:vr(e),wsHost:gr(e),userAuthenticator:br(e),channelAuthorizer:kr(e,t)};return"disabledTransports"in e&&(r.disabledTransports=e.disabledTransports),"enabledTransports"in e&&(r.enabledTransports=e.enabledTransports),"ignoreNullOrigin"in e&&(r.ignoreNullOrigin=e.ignoreNullOrigin),"timelineParams"in e&&(r.timelineParams=e.timelineParams),"nacl"in e&&(r.nacl=e.nacl),r}function fr(e){return e.httpHost?e.httpHost:e.cluster?`sockjs-${e.cluster}.pusher.com`:s.httpHost}function gr(e){return e.wsHost?e.wsHost:mr(e.cluster)}function mr(e){return`ws-${e}.pusher.com`}function vr(e){return"https:"===Gt.getProtocol()||!1!==e.forceTLS}function yr(e){return"enableStats"in e?e.enableStats:"disableStats"in e&&!e.disableStats}const wr=e=>"customHandler"in e&&null!=e["customHandler"];function br(e){const t=Object.assign(Object.assign({},s.userAuthentication),e.userAuthentication);return wr(t)?t["customHandler"]:cr(t)}function _r(e,t){let r;if("channelAuthorization"in e)r=Object.assign(Object.assign({},s.channelAuthorization),e.channelAuthorization);else if(r={transport:e.authTransport||s.authTransport,endpoint:e.authEndpoint||s.authEndpoint},"auth"in e&&("params"in e.auth&&(r.params=e.auth.params),"headers"in e.auth&&(r.headers=e.auth.headers)),"authorizer"in e)return{customHandler:dr(t,r,e.authorizer)};return r}function kr(e,t){const r=_r(e,t);return wr(r)?r["customHandler"]:hr(r)}class Sr extends Se{constructor(e){super(function(e,t){ce.debug(`No callbacks on watchlist events for ${e}`)}),this.pusher=e,this.bindWatchlistInternalEvent()}handleEvent(e){e.data.events.forEach(e=>{this.emit(e.name,e)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",e=>{var t=e.event;"pusher_internal:watchlist_events"===t&&this.handleEvent(e)})}}function xr(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});return{promise:r,resolve:e,reject:t}}const Cr=xr;class Er extends Se{constructor(e){super(function(e,t){ce.debug("No callbacks on user for "+e)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(e,t)=>{if(e)return ce.warn(`Error during signin: ${e}`),void this._cleanup();this.pusher.send_event("pusher:signin",{auth:t.auth,user_data:t.user_data})},this.pusher=e,this.pusher.connection.bind("state_change",({previous:e,current:t})=>{"connected"!==e&&"connected"===t&&this._signin(),"connected"===e&&"connected"!==t&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new Sr(e),this.pusher.connection.bind("message",e=>{var t=e.event;"pusher:signin_success"===t&&this._onSigninSuccess(e.data),this.serverToUserChannel&&this.serverToUserChannel.name===e.channel&&this.serverToUserChannel.handleEvent(e)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),"connected"===this.pusher.connection.state&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(e){try{this.user_data=JSON.parse(e.user_data)}catch(t){return ce.error(`Failed parsing user data after signin: ${e.user_data}`),void this._cleanup()}if("string"!==typeof this.user_data.id||""===this.user_data.id)return ce.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),void this._cleanup();this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const e=e=>{e.subscriptionPending&&e.subscriptionCancelled?e.reinstateSubscription():e.subscriptionPending||"connected"!==this.pusher.connection.state||e.subscribe()};this.serverToUserChannel=new Xe(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((e,t)=>{0!==e.indexOf("pusher_internal:")&&0!==e.indexOf("pusher:")&&this.emit(e,t)}),e(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested)return;if(this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:e,resolve:t,reject:r}=Cr();e.done=!1;const n=()=>{e.done=!0};e.then(n).catch(n),this.signinDonePromise=e,this._signinDoneResolve=t}}class Or{static ready(){Or.isReady=!0;for(var e=0,t=Or.instances.length;e<t;e++)Or.instances[e].connect()}static getClientFeatures(){return Y(Q({ws:Gt.Transports.ws},function(e){return e.isSupported({})}))}constructor(e,t){Ir(e),or(t),this.key=e,this.options=t,this.config=pr(this.options,this),this.channels=st.createChannels(),this.global_emitter=new Se,this.sessionID=Gt.randomInt(1e9),this.timeline=new Qt(this.key,this.sessionID,{cluster:this.config.cluster,features:Or.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:Zt.INFO,version:s.VERSION}),this.config.enableStats&&(this.timelineSender=st.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+Gt.TimelineTransport.name}));var r=e=>Gt.getDefaultStrategy(this.config,e,nr);this.connection=st.createConnectionManager(this.key,{getStrategy:r,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:Boolean(this.config.useTLS)}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",e=>{var t=e.event,r=0===t.indexOf("pusher_internal:");if(e.channel){var n=this.channel(e.channel);n&&n.handleEvent(e)}r||this.global_emitter.emit(e.event,e.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",e=>{ce.warn(e)}),Or.instances.push(this),this.timeline.info({instances:Or.instances.length}),this.user=new Er(this),Or.isReady&&this.connect()}switchCluster(e){const{appKey:t,cluster:r}=e;this.key=t,this.options=Object.assign(Object.assign({},this.options),{cluster:r}),this.config=pr(this.options,this),this.connection.switchCluster(this.key)}channel(e){return this.channels.find(e)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var e=this.connection.isUsingTLS(),t=this.timelineSender;this.timelineSenderTimer=new U(6e4,function(){t.send(e)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(e,t,r){return this.global_emitter.bind(e,t,r),this}unbind(e,t,r){return this.global_emitter.unbind(e,t,r),this}bind_global(e){return this.global_emitter.bind_global(e),this}unbind_global(e){return this.global_emitter.unbind_global(e),this}unbind_all(e){return this.global_emitter.unbind_all(),this}subscribeAll(){var e;for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)}subscribe(e){var t=this.channels.add(e,this);return t.subscriptionPending&&t.subscriptionCancelled?t.reinstateSubscription():t.subscriptionPending||"connected"!==this.connection.state||t.subscribe(),t}unsubscribe(e){var t=this.channels.find(e);t&&t.subscriptionPending?t.cancelSubscription():(t=this.channels.remove(e),t&&t.subscribed&&t.unsubscribe())}send_event(e,t,r){return this.connection.send_event(e,t,r)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}Or.instances=[],Or.isReady=!1,Or.logToConsole=!1,Or.Runtime=Gt,Or.ScriptReceivers=Gt.ScriptReceivers,Or.DependenciesReceivers=Gt.DependenciesReceivers,Or.auth_callbacks=Gt.auth_callbacks;const Ar=Or;function Ir(e){if(null===e||void 0===e)throw"You must pass your app key when you instantiate Pusher."}Gt.setup(Or)}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}(()=>{r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();var n=r(721);return n})())},6586:function(e){
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
(function(t,r){e.exports=r()})(0,function(){"use strict";function e(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function t(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function r(t,r){return t.get(e(t,r))}function n(e,r,n){t(e,r),r.set(e,n)}function i(t,r,n){return t.set(e(t,r),n),n}const o=100,s={},a=()=>{s.previousActiveElement instanceof HTMLElement?(s.previousActiveElement.focus(),s.previousActiveElement=null):document.body&&document.body.focus()},c=e=>new Promise(t=>{if(!e)return t();const r=window.scrollX,n=window.scrollY;s.restoreFocusTimeout=setTimeout(()=>{a(),t()},o),window.scrollTo(r,n)}),u="swal2-",l=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"],h=l.reduce((e,t)=>(e[t]=u+t,e),{}),d=["success","warning","info","question","error"],p=d.reduce((e,t)=>(e[t]=u+t,e),{}),f="SweetAlert2:",g=e=>e.charAt(0).toUpperCase()+e.slice(1),m=e=>{console.warn(`${f} ${"object"===typeof e?e.join(" "):e}`)},v=e=>{console.error(`${f} ${e}`)},y=[],w=e=>{y.includes(e)||(y.push(e),m(e))},b=(e,t=null)=>{w(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},_=e=>"function"===typeof e?e():e,k=e=>e&&"function"===typeof e.toPromise,S=e=>k(e)?e.toPromise():Promise.resolve(e),x=e=>e&&Promise.resolve(e)===e,C=()=>navigator.userAgent.includes("Firefox"),E=()=>document.body.querySelector(`.${h.container}`),O=e=>{const t=E();return t?t.querySelector(e):null},A=e=>O(`.${e}`),I=()=>A(h.popup),T=()=>A(h.icon),M=()=>A(h["icon-content"]),R=()=>A(h.title),P=()=>A(h["html-container"]),L=()=>A(h.image),D=()=>A(h["progress-steps"]),B=()=>A(h["validation-message"]),N=()=>O(`.${h.actions} .${h.confirm}`),j=()=>O(`.${h.actions} .${h.cancel}`),F=()=>O(`.${h.actions} .${h.deny}`),U=()=>A(h["input-label"]),z=()=>O(`.${h.loader}`),q=()=>A(h.actions),H=()=>A(h.footer),$=()=>A(h["timer-progress-bar"]),W=()=>A(h.close),V='\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n',Y=()=>{const e=I();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),r=Array.from(t).sort((e,t)=>{const r=parseInt(e.getAttribute("tabindex")||"0"),n=parseInt(t.getAttribute("tabindex")||"0");return r>n?1:r<n?-1:0}),n=e.querySelectorAll(V),i=Array.from(n).filter(e=>"-1"!==e.getAttribute("tabindex"));return[...new Set(r.concat(i))].filter(e=>pe(e))},X=()=>Z(document.body,h.shown)&&!Z(document.body,h["toast-shown"])&&!Z(document.body,h["no-backdrop"]),J=()=>{const e=I();return!!e&&Z(e,h.toast)},G=()=>{const e=I();return!!e&&e.hasAttribute("data-loading")},K=(e,t)=>{if(e.textContent="",t){const r=new DOMParser,n=r.parseFromString(t,"text/html"),i=n.querySelector("head");i&&Array.from(i.childNodes).forEach(t=>{e.appendChild(t)});const o=n.querySelector("body");o&&Array.from(o.childNodes).forEach(t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)})}},Z=(e,t)=>{if(!t)return!1;const r=t.split(/\s+/);for(let n=0;n<r.length;n++)if(!e.classList.contains(r[n]))return!1;return!0},Q=(e,t)=>{Array.from(e.classList).forEach(r=>{Object.values(h).includes(r)||Object.values(p).includes(r)||Object.values(t.showClass||{}).includes(r)||e.classList.remove(r)})},ee=(e,t,r)=>{if(Q(e,t),!t.customClass)return;const n=t.customClass[r];n&&("string"===typeof n||n.forEach?ie(e,n):m(`Invalid type of customClass.${r}! Expected string or iterable object, got "${typeof n}"`))},te=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${h.popup} > .${h[t]}`);case"checkbox":return e.querySelector(`.${h.popup} > .${h.checkbox} input`);case"radio":return e.querySelector(`.${h.popup} > .${h.radio} input:checked`)||e.querySelector(`.${h.popup} > .${h.radio} input:first-child`);case"range":return e.querySelector(`.${h.popup} > .${h.range} input`);default:return e.querySelector(`.${h.popup} > .${h.input}`)}},re=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},ne=(e,t,r)=>{if(!e||!t)return;const n="string"===typeof t?t.split(/\s+/).filter(Boolean):t,i=Array.isArray(e)?e:[e];i.forEach(e=>{n.forEach(t=>{r?e.classList.add(t):e.classList.remove(t)})})},ie=(e,t)=>{ne(e,t,!0)},oe=(e,t)=>{ne(e,t,!1)},se=(e,t)=>{const r=Array.from(e.children);for(let n=0;n<r.length;n++){const e=r[n];if(e instanceof HTMLElement&&Z(e,t))return e}},ae=(e,t,r)=>{r===`${parseInt(`${r}`)}`&&(r=parseInt(r)),r||0===r?e.style.setProperty(t,"number"===typeof r?`${r}px`:r):e.style.removeProperty(t)},ce=(e,t="flex")=>{e&&(e.style.display=t)},ue=e=>{e&&(e.style.display="none")},le=(e,t="block")=>{e&&new MutationObserver(()=>{de(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},he=(e,t,r,n)=>{const i=e.querySelector(t);i&&i.style.setProperty(r,n)},de=(e,t,r="flex")=>{t?ce(e,r):ue(e)},pe=e=>Boolean(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),fe=()=>!pe(N())&&!pe(F())&&!pe(j()),ge=e=>Boolean(e.scrollHeight>e.clientHeight),me=(e,t)=>{let r=e;while(r&&r!==t){if(ge(r))return!0;r=r.parentElement}return!1},ve=e=>{const t=window.getComputedStyle(e),r=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return r>0||n>0},ye=(e,t=!1)=>{const r=$();r&&pe(r)&&(t&&(r.style.transition="none",r.style.width="100%"),setTimeout(()=>{r.style.transition=`width ${e/1e3}s linear`,r.style.width="0%"},10))},we=()=>{const e=$();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const r=parseInt(window.getComputedStyle(e).width),n=t/r*100;e.style.width=`${n}%`},be=()=>"undefined"===typeof window||"undefined"===typeof document,_e=`\n <div aria-labelledby="${h.title}" aria-describedby="${h["html-container"]}" class="${h.popup}" tabindex="-1">\n <button type="button" class="${h.close}"></button>\n <ul class="${h["progress-steps"]}"></ul>\n <div class="${h.icon}"></div>\n <img class="${h.image}" />\n <h2 class="${h.title}" id="${h.title}"></h2>\n <div class="${h["html-container"]}" id="${h["html-container"]}"></div>\n <input class="${h.input}" id="${h.input}" />\n <input type="file" class="${h.file}" />\n <div class="${h.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${h.select}" id="${h.select}"></select>\n <div class="${h.radio}"></div>\n <label class="${h.checkbox}">\n <input type="checkbox" id="${h.checkbox}" />\n <span class="${h.label}"></span>\n </label>\n <textarea class="${h.textarea}" id="${h.textarea}"></textarea>\n <div class="${h["validation-message"]}" id="${h["validation-message"]}"></div>\n <div class="${h.actions}">\n <div class="${h.loader}"></div>\n <button type="button" class="${h.confirm}"></button>\n <button type="button" class="${h.deny}"></button>\n <button type="button" class="${h.cancel}"></button>\n </div>\n <div class="${h.footer}"></div>\n <div class="${h["timer-progress-bar-container"]}">\n <div class="${h["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),ke=()=>{const e=E();return!!e&&(e.remove(),oe([document.documentElement,document.body],[h["no-backdrop"],h["toast-shown"],h["has-column"]]),!0)},Se=()=>{s.currentInstance&&s.currentInstance.resetValidationMessage()},xe=()=>{const e=I();if(!e)return;const t=se(e,h.input),r=se(e,h.file),n=e.querySelector(`.${h.range} input`),i=e.querySelector(`.${h.range} output`),o=se(e,h.select),s=e.querySelector(`.${h.checkbox} input`),a=se(e,h.textarea);t&&(t.oninput=Se),r&&(r.onchange=Se),o&&(o.onchange=Se),s&&(s.onchange=Se),a&&(a.oninput=Se),n&&i&&(n.oninput=()=>{Se(),i.value=n.value},n.onchange=()=>{Se(),i.value=n.value})},Ce=e=>{if("string"===typeof e){const t=document.querySelector(e);if(!t)throw new Error(`Target element "${e}" not found`);return t}return e},Ee=e=>{const t=I();t&&(t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true"))},Oe=e=>{"rtl"===window.getComputedStyle(e).direction&&(ie(E(),h.rtl),s.isRTL=!0)},Ae=e=>{const t=ke();if(be())return void v("SweetAlert2 requires document to initialize");const r=document.createElement("div");r.className=h.container,t&&ie(r,h["no-transition"]),K(r,_e),r.dataset["swal2Theme"]=e.theme;const n=Ce(e.target||"body");n.appendChild(r),e.topLayer&&(r.setAttribute("popover",""),r.showPopover()),Ee(e),Oe(n),xe()},Ie=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"===typeof e?Te(e,t):e&&K(t,e)},Te=(e,t)=>{"jquery"in e?Me(t,e):K(t,e.toString())},Me=(e,t)=>{if(e.textContent="",0 in t)for(let r=0;r in t;r++)e.appendChild(t[r].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Re=(e,t)=>{const r=q(),n=z();r&&n&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?ce(r):ue(r),ee(r,t,"actions"),Pe(r,n,t),K(n,t.loaderHtml||""),ee(n,t,"loader"))};function Pe(e,t,r){const n=N(),i=F(),o=j();n&&i&&o&&(Be(n,"confirm",r),Be(i,"deny",r),Be(o,"cancel",r),Le(n,i,o,r),r.reverseButtons&&(r.toast?(e.insertBefore(o,n),e.insertBefore(i,n)):(e.insertBefore(o,t),e.insertBefore(i,t),e.insertBefore(n,t))))}function Le(e,t,r,n){if(!n.buttonsStyling)return void oe([e,t,r],h.styled);ie([e,t,r],h.styled);const i=[[e,"confirm",n.confirmButtonColor],[t,"deny",n.denyButtonColor],[r,"cancel",n.cancelButtonColor]];i.forEach(([e,t,r])=>{r&&e.style.setProperty(`--swal2-${t}-button-background-color`,r),De(e)})}function De(e){const t=window.getComputedStyle(e);if(t.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const r=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-focus-box-shadow",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${r}`))}function Be(e,t,r){const n=g(t);de(e,r[`show${n}Button`],"inline-block"),K(e,r[`${t}ButtonText`]||""),e.setAttribute("aria-label",r[`${t}ButtonAriaLabel`]||""),e.className=h[t],ee(e,r,`${t}Button`)}const Ne=(e,t)=>{const r=W();r&&(K(r,t.closeButtonHtml||""),ee(r,t,"closeButton"),de(r,t.showCloseButton),r.setAttribute("aria-label",t.closeButtonAriaLabel||""))},je=(e,t)=>{const r=E();r&&(Fe(r,t.backdrop),Ue(r,t.position),ze(r,t.grow),ee(r,t,"container"))};function Fe(e,t){"string"===typeof t?e.style.background=t:t||ie([document.documentElement,document.body],h["no-backdrop"])}function Ue(e,t){t&&(t in h?ie(e,h[t]):(m('The "position" parameter is not valid, defaulting to "center"'),ie(e,h.center)))}function ze(e,t){t&&ie(e,h[`grow-${t}`])}var qe={innerParams:new WeakMap,domCache:new WeakMap,focusedElement:new WeakMap};const He=["input","file","range","select","radio","checkbox","textarea"],$e=(e,t)=>{const r=I();if(!r)return;const n=qe.innerParams.get(e),i=!n||t.input!==n.input;He.forEach(e=>{const n=se(r,h[e]);n&&(Ye(e,t.inputAttributes),n.className=h[e],i&&ue(n))}),t.input&&(i&&We(t),Xe(t))},We=e=>{if(!e.input)return;if(!Qe[e.input])return void v(`Unexpected type of input! Expected ${Object.keys(Qe).join(" | ")}, got "${e.input}"`);const t=Ke(e.input);if(!t)return;const r=Qe[e.input](t,e);ce(t),e.inputAutoFocus&&setTimeout(()=>{re(r)})},Ve=e=>{for(let t=0;t<e.attributes.length;t++){const r=e.attributes[t].name;["id","type","value","style"].includes(r)||e.removeAttribute(r)}},Ye=(e,t)=>{const r=I();if(!r)return;const n=te(r,e);if(n){Ve(n);for(const e in t)n.setAttribute(e,t[e])}},Xe=e=>{if(!e.input)return;const t=Ke(e.input);t&&ee(t,e,"input")},Je=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},Ge=(e,t,r)=>{if(r.inputLabel){const n=document.createElement("label"),i=h["input-label"];n.setAttribute("for",e.id),n.className=i,"object"===typeof r.customClass&&ie(n,r.customClass.inputLabel),n.innerText=r.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Ke=e=>{const t=I();if(t)return se(t,h[e]||h.input)},Ze=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:x(t)||m(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Qe={};Qe.text=Qe.email=Qe.password=Qe.number=Qe.tel=Qe.url=Qe.search=Qe.date=Qe["datetime-local"]=Qe.time=Qe.week=Qe.month=(e,t)=>{const r=e;return Ze(r,t.inputValue),Ge(r,r,t),Je(r,t),r.type=t.input,r},Qe.file=(e,t)=>{const r=e;return Ge(r,r,t),Je(r,t),r},Qe.range=(e,t)=>{const r=e,n=r.querySelector("input"),i=r.querySelector("output");return n&&(Ze(n,t.inputValue),n.type=t.input,Ge(n,e,t)),i&&Ze(i,t.inputValue),e},Qe.select=(e,t)=>{const r=e;if(r.textContent="",t.inputPlaceholder){const e=document.createElement("option");K(e,t.inputPlaceholder),e.value="",e.disabled=!0,e.selected=!0,r.appendChild(e)}return Ge(r,r,t),r},Qe.radio=e=>{const t=e;return t.textContent="",e},Qe.checkbox=(e,t)=>{const r=I();if(!r)throw new Error("Popup not found");const n=te(r,"checkbox");if(!n)throw new Error("Checkbox input not found");n.value="1",n.checked=Boolean(t.inputValue);const i=e,o=i.querySelector("span");if(o){const e=t.inputPlaceholder||t.inputLabel;e&&K(o,e)}return n},Qe.textarea=(e,t)=>{const r=e;Ze(r,t.inputValue),Je(r,t),Ge(r,r,t);const n=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const e=I();if(!e)return;const i=parseInt(window.getComputedStyle(e).width),o=()=>{if(!document.body.contains(r))return;const e=r.offsetWidth+n(r),o=I();o&&(e>i?o.style.width=`${e}px`:ae(o,"width",t.width))};new MutationObserver(o).observe(r,{attributes:!0,attributeFilter:["style"]})}}),r};const et=(e,t)=>{const r=P();r&&(le(r),ee(r,t,"htmlContainer"),t.html?(Ie(t.html,r),ce(r,"block")):t.text?(r.textContent=t.text,ce(r,"block")):ue(r),$e(e,t))},tt=(e,t)=>{const r=H();r&&(le(r),de(r,Boolean(t.footer),"block"),t.footer&&Ie(t.footer,r),ee(r,t,"footer"))},rt=(e,t)=>{const r=qe.innerParams.get(e),n=T();if(!n)return;if(r&&t.icon===r.icon)return at(n,t),void nt(n,t);if(!t.icon&&!t.iconHtml)return void ue(n);if(t.icon&&-1===Object.keys(p).indexOf(t.icon))return v(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void ue(n);ce(n),at(n,t),nt(n,t),ie(n,t.showClass&&t.showClass.icon);const i=window.matchMedia("(prefers-color-scheme: dark)");i.addEventListener("change",it)},nt=(e,t)=>{for(const[r,n]of Object.entries(p))t.icon!==r&&oe(e,n);ie(e,t.icon&&p[t.icon]),ct(e,t),it(),ee(e,t,"icon")},it=()=>{const e=I();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),r=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let n=0;n<r.length;n++)r[n].style.backgroundColor=t},ot=e=>`\n ${e.animation?'<div class="swal2-success-circular-line-left"></div>':""}\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div>\n ${e.animation?'<div class="swal2-success-fix"></div>':""}\n ${e.animation?'<div class="swal2-success-circular-line-right"></div>':""}\n`,st='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n',at=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let r=e.innerHTML,n="";if(t.iconHtml)n=ut(t.iconHtml);else if("success"===t.icon)n=ot(t),r=r.replace(/ style=".*?"/g,"");else if("error"===t.icon)n=st;else if(t.icon){const e={question:"?",warning:"!",info:"i"};n=ut(e[t.icon])}r.trim()!==n.trim()&&K(e,n)},ct=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const r of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])he(e,r,"background-color",t.iconColor);he(e,".swal2-success-ring","border-color",t.iconColor)}},ut=e=>`<div class="${h["icon-content"]}">${e}</div>`,lt=(e,t)=>{const r=L();r&&(t.imageUrl?(ce(r,""),r.setAttribute("src",t.imageUrl),r.setAttribute("alt",t.imageAlt||""),ae(r,"width",t.imageWidth),ae(r,"height",t.imageHeight),r.className=h.image,ee(r,t,"image")):ue(r))};let ht=!1,dt=0,pt=0,ft=0,gt=0;const mt=e=>{e.addEventListener("mousedown",yt),document.body.addEventListener("mousemove",wt),e.addEventListener("mouseup",bt),e.addEventListener("touchstart",yt),document.body.addEventListener("touchmove",wt),e.addEventListener("touchend",bt)},vt=e=>{e.removeEventListener("mousedown",yt),document.body.removeEventListener("mousemove",wt),e.removeEventListener("mouseup",bt),e.removeEventListener("touchstart",yt),document.body.removeEventListener("touchmove",wt),e.removeEventListener("touchend",bt)},yt=e=>{const t=I();if(!t)return;const r=T();if(e.target===t||r&&r.contains(e.target)){ht=!0;const r=_t(e);dt=r.clientX,pt=r.clientY,ft=parseInt(t.style.insetInlineStart)||0,gt=parseInt(t.style.insetBlockStart)||0,ie(t,"swal2-dragging")}},wt=e=>{const t=I();if(t&&ht){let{clientX:r,clientY:n}=_t(e);const i=r-dt;t.style.insetInlineStart=`${ft+(s.isRTL?-i:i)}px`,t.style.insetBlockStart=`${gt+(n-pt)}px`}},bt=()=>{const e=I();ht=!1,oe(e,"swal2-dragging")},_t=e=>{const t=e.type.startsWith("touch")?e.touches[0]:e;return{clientX:t.clientX,clientY:t.clientY}},kt=(e,t)=>{const r=E(),n=I();if(r&&n){if(t.toast){ae(r,"width",t.width),n.style.width="100%";const e=z();e&&n.insertBefore(e,T())}else ae(n,"width",t.width);ae(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),ue(B()),St(n,t),t.draggable&&!t.toast?(ie(n,h.draggable),mt(n)):(oe(n,h.draggable),vt(n))}},St=(e,t)=>{const r=t.showClass||{};e.className=`${h.popup} ${pe(e)?r.popup:""}`,t.toast?(ie([document.documentElement,document.body],h["toast-shown"]),ie(e,h.toast)):ie(e,h.modal),ee(e,t,"popup"),"string"===typeof t.customClass&&ie(e,t.customClass),t.icon&&ie(e,h[`icon-${t.icon}`])},xt=(e,t)=>{const r=D();if(!r)return;const{progressSteps:n,currentProgressStep:i}=t;n&&0!==n.length&&void 0!==i?(ce(r),r.textContent="",i>=n.length&&m("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach((e,o)=>{const s=Ct(e);if(r.appendChild(s),o===i&&ie(s,h["active-progress-step"]),o!==n.length-1){const e=Et(t);r.appendChild(e)}})):ue(r)},Ct=e=>{const t=document.createElement("li");return ie(t,h["progress-step"]),K(t,e),t},Et=e=>{const t=document.createElement("li");return ie(t,h["progress-step-line"]),e.progressStepsDistance&&ae(t,"width",e.progressStepsDistance),t},Ot=(e,t)=>{const r=R();r&&(le(r),de(r,Boolean(t.title||t.titleText),"block"),t.title&&Ie(t.title,r),t.titleText&&(r.innerText=t.titleText),ee(r,t,"title"))},At=(e,t)=>{var r;kt(e,t),je(e,t),xt(e,t),rt(e,t),lt(e,t),Ot(e,t),Ne(e,t),et(e,t),Re(e,t),tt(e,t);const n=I();"function"===typeof t.didRender&&n&&t.didRender(n),null===(r=s.eventEmitter)||void 0===r||r.emit("didRender",n)},It=()=>pe(I()),Tt=()=>{var e;return null===(e=N())||void 0===e?void 0:e.click()},Mt=()=>{var e;return null===(e=F())||void 0===e?void 0:e.click()},Rt=()=>{var e;return null===(e=j())||void 0===e?void 0:e.click()},Pt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Lt=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){const t=e.keydownHandler;e.keydownTarget.removeEventListener("keydown",t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},Dt=(e,t,r)=>{if(Lt(e),!t.toast){const n=e=>Ft(t,e,r);e.keydownHandler=n;const i=t.keydownListenerCapture?window:I();if(i){e.keydownTarget=i,e.keydownListenerCapture=t.keydownListenerCapture;const r=n;e.keydownTarget.addEventListener("keydown",r,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}},Bt=(e,t)=>{var r;const n=Y();return n.length?(e+=t,-2===e&&(e=n.length-1),e===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus(),!(C()&&n[e]instanceof HTMLIFrameElement)):(null===(r=I())||void 0===r||r.focus(),!0)},Nt=["ArrowRight","ArrowDown"],jt=["ArrowLeft","ArrowUp"],Ft=(e,t,r)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Ut(t,e):"Tab"===t.key?zt(t):[...Nt,...jt].includes(t.key)?qt(t.key):"Escape"===t.key&&Ht(t,e,r)))},Ut=(e,t)=>{if(!_(t.allowEnterKey))return;const r=I();if(!r||!t.input)return;const n=te(r,t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;Tt(),e.preventDefault()}},zt=e=>{const t=e.target,r=Y();let n=-1;for(let o=0;o<r.length;o++)if(t===r[o]){n=o;break}let i=!0;i=e.shiftKey?Bt(n,-1):Bt(n,1),e.stopPropagation(),i&&e.preventDefault()},qt=e=>{const t=q(),r=N(),n=F(),i=j();if(!t||!r||!n||!i)return;const o=[r,n,i];if(document.activeElement instanceof HTMLElement&&!o.includes(document.activeElement))return;const s=Nt.includes(e)?"nextElementSibling":"previousElementSibling";let a=document.activeElement;if(a){for(let e=0;e<t.children.length;e++){if(a=a[s],!a)return;if(a instanceof HTMLButtonElement&&pe(a))break}a instanceof HTMLButtonElement&&a.focus()}},Ht=(e,t,r)=>{e.preventDefault(),_(t.allowEscapeKey)&&r(Pt.esc)};var $t={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Wt=()=>{const e=E(),t=Array.from(document.body.children);t.forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},Vt=()=>{const e=Array.from(document.body.children);e.forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},Yt="undefined"!==typeof window&&Boolean(window.GestureEvent),Xt=Yt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Jt=()=>{if(Yt&&!Z(document.body,h.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",ie(document.body,h.iosfix),Gt()}},Gt=()=>{const e=E();if(!e)return;let t;e.ontouchstart=e=>{t=Kt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Kt=e=>{const t=e.target,r=E(),n=P();return!(!r||!n)&&(!Zt(e)&&!Qt(e)&&(t===r||!(ge(r)||!(t instanceof HTMLElement)||me(t,n)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||ge(n)&&n.contains(t))))},Zt=e=>Boolean(e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType),Qt=e=>e.touches&&e.touches.length>1,er=()=>{if(Z(document.body,h.iosfix)){const e=parseInt(document.body.style.top,10);oe(document.body,h.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},tr=()=>{const e=document.createElement("div");e.className=h["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let rr=null;const nr=e=>{null===rr&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(rr=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${rr+tr()}px`)},ir=()=>{null!==rr&&(document.body.style.paddingRight=`${rr}px`,rr=null)};function or(e,t,r,n){J()?fr(e,n):(c(r).then(()=>fr(e,n)),Lt(s)),Yt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),X()&&(ir(),er(),Vt()),sr()}function sr(){oe([document.documentElement,document.body],[h.shown,h["height-auto"],h["no-backdrop"],h["toast-shown"]])}function ar(e){e=hr(e);const t=$t.swalPromiseResolve.get(this),r=cr(this);this.isAwaitingPromise?e.isDismissed||(lr(this),t(e)):r&&t(e)}const cr=e=>{const t=I();if(!t)return!1;const r=qe.innerParams.get(e);if(!r||Z(t,r.hideClass.popup))return!1;oe(t,r.showClass.popup),ie(t,r.hideClass.popup);const n=E();return oe(n,r.showClass.backdrop),ie(n,r.hideClass.backdrop),dr(e,t,r),!0};function ur(e){const t=$t.swalPromiseReject.get(this);lr(this),t&&t(e)}const lr=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,qe.innerParams.get(e)||e._destroy())},hr=e=>"undefined"===typeof e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),dr=(e,t,r)=>{var n;const i=E(),o=ve(t);"function"===typeof r.willClose&&r.willClose(t),null===(n=s.eventEmitter)||void 0===n||n.emit("willClose",t),o&&i?pr(e,t,i,Boolean(r.returnFocus),r.didClose):i&&or(e,i,Boolean(r.returnFocus),r.didClose)},pr=(e,t,r,n,i)=>{s.swalCloseEventFinishedCallback=or.bind(null,e,r,n,i);const o=function(e){var r;e.target===t&&(null===(r=s.swalCloseEventFinishedCallback)||void 0===r||r.call(s),delete s.swalCloseEventFinishedCallback,t.removeEventListener("animationend",o),t.removeEventListener("transitionend",o))};t.addEventListener("animationend",o),t.addEventListener("transitionend",o)},fr=(e,t)=>{setTimeout(()=>{var r;"function"===typeof t&&t.bind(e.params)(),null===(r=s.eventEmitter)||void 0===r||r.emit("didClose"),e._destroy&&e._destroy()})},gr=e=>{let t=I();if(t||new yi,t=I(),!t)return;const r=z();J()?ue(T()):mr(t,e),ce(r),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},mr=(e,t)=>{const r=q(),n=z();r&&n&&(!t&&pe(N())&&(t=N()),ce(r),t&&(ue(t),n.setAttribute("data-button-to-replace",t.className),r.insertBefore(n,t)),ie([e,r],h.loading))},vr=(e,t)=>{"select"===t.input||"radio"===t.input?kr(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(k(t.inputValue)||x(t.inputValue))&&(gr(N()),Sr(e,t))},yr=(e,t)=>{const r=e.getInput();if(!r)return null;switch(t.input){case"checkbox":return wr(r);case"radio":return br(r);case"file":return _r(r);default:return t.inputAutoTrim?r.value.trim():r.value}},wr=e=>e.checked?1:0,br=e=>e.checked?e.value:null,_r=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,kr=(e,t)=>{const r=I();if(!r)return;const n=e=>{"select"===t.input?xr(r,Er(e),t):"radio"===t.input&&Cr(r,Er(e),t)};k(t.inputOptions)||x(t.inputOptions)?(gr(N()),S(t.inputOptions).then(t=>{e.hideLoading(),n(t)})):"object"===typeof t.inputOptions?n(t.inputOptions):v("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},Sr=(e,t)=>{const r=e.getInput();r&&(ue(r),S(t.inputValue).then(n=>{r.value="number"===t.input?`${parseFloat(n)||0}`:`${n}`,ce(r),r.focus(),e.hideLoading()}).catch(t=>{v(`Error in inputValue promise: ${t}`),r.value="",ce(r),r.focus(),e.hideLoading()}))};function xr(e,t,r){const n=se(e,h.select);if(!n)return;const i=(e,t,n)=>{const i=document.createElement("option");i.value=n,K(i,t),i.selected=Or(n,r.inputValue),e.appendChild(i)};t.forEach(e=>{const t=e[0],r=e[1];if(Array.isArray(r)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),r.forEach(t=>i(e,t[1],t[0]))}else i(n,r,t)}),n.focus()}function Cr(e,t,r){const n=se(e,h.radio);if(!n)return;t.forEach(e=>{const t=e[0],i=e[1],o=document.createElement("input"),s=document.createElement("label");o.type="radio",o.name=h.radio,o.value=t,Or(t,r.inputValue)&&(o.checked=!0);const a=document.createElement("span");K(a,i),a.className=h.label,s.appendChild(o),s.appendChild(a),n.appendChild(s)});const i=n.querySelectorAll("input");i.length&&i[0].focus()}const Er=e=>{const t=e instanceof Map?Array.from(e):Object.entries(e);return t.map(([e,t])=>[e,"object"===typeof t?Er(t):t])},Or=(e,t)=>Boolean(t)&&null!==t&&void 0!==t&&t.toString()===e.toString(),Ar=e=>{const t=qe.innerParams.get(e);e.disableButtons(),t.input?Mr(e,"confirm"):Br(e,!0)},Ir=e=>{const t=qe.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Mr(e,"deny"):Pr(e,!1)},Tr=(e,t)=>{e.disableButtons(),t(Pt.cancel)},Mr=(e,t)=>{const r=qe.innerParams.get(e);if(!r.input)return void v(`The "input" parameter is needed to be set when using returnInputValueOn${g(t)}`);const n=e.getInput(),i=yr(e,r);r.inputValidator?Rr(e,i,t):n&&!n.checkValidity()?(e.enableButtons(),e.showValidationMessage(r.validationMessage||n.validationMessage)):"deny"===t?Pr(e,i):Br(e,i)},Rr=(e,t,r)=>{const n=qe.innerParams.get(e);e.disableInput();const i=Promise.resolve().then(()=>S(n.inputValidator(t,n.validationMessage)));i.then(n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===r?Pr(e,t):Br(e,t)})},Pr=(e,t)=>{const r=qe.innerParams.get(e);if(r.showLoaderOnDeny&&gr(F()),r.preDeny){e.isAwaitingPromise=!0;const n=Promise.resolve().then(()=>S(r.preDeny(t,r.validationMessage)));n.then(r=>{!1===r?(e.hideLoading(),lr(e)):e.close({isDenied:!0,value:"undefined"===typeof r?t:r})}).catch(t=>Dr(e,t))}else e.close({isDenied:!0,value:t})},Lr=(e,t)=>{e.close({isConfirmed:!0,value:t})},Dr=(e,t)=>{e.rejectPromise(t)},Br=(e,t)=>{const r=qe.innerParams.get(e);if(r.showLoaderOnConfirm&&gr(),r.preConfirm){e.resetValidationMessage(),e.isAwaitingPromise=!0;const n=Promise.resolve().then(()=>S(r.preConfirm(t,r.validationMessage)));n.then(r=>{pe(B())||!1===r?(e.hideLoading(),lr(e)):Lr(e,"undefined"===typeof r?t:r)}).catch(t=>Dr(e,t))}else Lr(e,t)};function Nr(){const e=qe.innerParams.get(this);if(!e)return;const t=qe.domCache.get(this);ue(t.loader),J()?e.icon&&ce(T()):jr(t),oe([t.popup,t.actions],h.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1;const r=qe.focusedElement.get(this);r instanceof HTMLElement&&document.activeElement===document.body&&r.focus(),qe.focusedElement.delete(this)}const jr=e=>{const t=e.loader.getAttribute("data-button-to-replace"),r=t?e.popup.getElementsByClassName(t):[];r.length?ce(r[0],"inline-block"):fe()&&ue(e.actions)};function Fr(){const e=qe.innerParams.get(this),t=qe.domCache.get(this);return t?te(t.popup,e.input):null}function Ur(e,t,r){const n=qe.domCache.get(e);t.forEach(e=>{n[e].disabled=r})}function zr(e,t){const r=I();if(r&&e)if("radio"===e.type){const e=r.querySelectorAll(`[name="${h.radio}"]`);for(let r=0;r<e.length;r++)e[r].disabled=t}else e.disabled=t}function qr(){Ur(this,["confirmButton","denyButton","cancelButton"],!1);const e=qe.focusedElement.get(this);e instanceof HTMLElement&&document.activeElement===document.body&&e.focus(),qe.focusedElement.delete(this)}function Hr(){qe.focusedElement.set(this,document.activeElement),Ur(this,["confirmButton","denyButton","cancelButton"],!0)}function $r(){zr(this.getInput(),!1)}function Wr(){zr(this.getInput(),!0)}function Vr(e){const t=qe.domCache.get(this),r=qe.innerParams.get(this);K(t.validationMessage,e),t.validationMessage.className=h["validation-message"],r.customClass&&r.customClass.validationMessage&&ie(t.validationMessage,r.customClass.validationMessage),ce(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid","true"),n.setAttribute("aria-describedby",h["validation-message"]),re(n),ie(n,h.inputerror))}function Yr(){const e=qe.domCache.get(this);e.validationMessage&&ue(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),oe(t,h.inputerror))}const Xr={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},Jr=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],Gr={allowEnterKey:void 0},Kr=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Zr=e=>Object.prototype.hasOwnProperty.call(Xr,e),Qr=e=>-1!==Jr.indexOf(e),en=e=>Gr[e],tn=e=>{Zr(e)||m(`Unknown parameter "${e}"`)},rn=e=>{Kr.includes(e)&&m(`The parameter "${e}" is incompatible with toasts`)},nn=e=>{const t=en(e);t&&b(e,t)},on=e=>{!1===e.backdrop&&e.allowOutsideClick&&m('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(e.theme)&&m(`Invalid theme "${e.theme}"`);for(const t in e)tn(t),e.toast&&rn(t),nn(t)};function sn(e){const t=E(),r=I(),n=qe.innerParams.get(this);if(!r||Z(r,n.hideClass.popup))return void m("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const i=an(e),o=Object.assign({},n,i);on(o),t&&(t.dataset["swal2Theme"]=o.theme),At(this,o),qe.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const an=e=>{const t={};return Object.keys(e).forEach(r=>{if(Qr(r)){const n=e;t[r]=n[r]}else m(`Invalid parameter to update: ${r}`)}),t};function cn(){var e;const t=qe.domCache.get(this),r=qe.innerParams.get(this);r?(t.popup&&s.swalCloseEventFinishedCallback&&(s.swalCloseEventFinishedCallback(),delete s.swalCloseEventFinishedCallback),"function"===typeof r.didDestroy&&r.didDestroy(),null===(e=s.eventEmitter)||void 0===e||e.emit("didDestroy"),un(this)):ln(this)}const un=e=>{ln(e),delete e.params,delete s.keydownHandler,delete s.keydownTarget,delete s.currentInstance},ln=e=>{e.isAwaitingPromise?(hn(qe,e),e.isAwaitingPromise=!0):(hn($t,e),hn(qe,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},hn=(e,t)=>{for(const r in e)e[r].delete(t)};var dn=Object.freeze({__proto__:null,_destroy:cn,close:ar,closeModal:ar,closePopup:ar,closeToast:ar,disableButtons:Hr,disableInput:Wr,disableLoading:Nr,enableButtons:qr,enableInput:$r,getInput:Fr,handleAwaitingPromise:lr,hideLoading:Nr,rejectPromise:ur,resetValidationMessage:Yr,showValidationMessage:Vr,update:sn});const pn=(e,t,r)=>{e.toast?fn(e,t,r):(vn(t),yn(t),wn(e,t,r))},fn=(e,t,r)=>{t.popup.onclick=()=>{e&&(gn(e)||e.timer||e.input)||r(Pt.close)}},gn=e=>Boolean(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let mn=!1;const vn=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(mn=!0)}}},yn=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(mn=!0)}}},wn=(e,t,r)=>{t.container.onclick=n=>{mn?mn=!1:n.target===t.container&&_(e.allowOutsideClick)&&r(Pt.backdrop)}},bn=e=>"object"===typeof e&&null!==e&&"jquery"in e,_n=e=>e instanceof Element||bn(e),kn=e=>{const t={};return"object"!==typeof e[0]||_n(e[0])?["title","html","icon"].forEach((r,n)=>{const i=e[n];"string"===typeof i||_n(i)?t[r]=i:void 0!==i&&v(`Unexpected type of ${r}! Expected "string" or "Element", got ${typeof i}`)}):Object.assign(t,e[0]),t};function Sn(...e){return new this(...e)}function xn(e){class t extends(this){_main(t,r){return super._main(t,Object.assign({},e,r))}}return t}const Cn=()=>s.timeout&&s.timeout.getTimerLeft(),En=()=>{if(s.timeout)return we(),s.timeout.stop()},On=()=>{if(s.timeout){const e=s.timeout.start();return ye(e),e}},An=()=>{const e=s.timeout;return e&&(e.running?En():On())},In=e=>{if(s.timeout){const t=s.timeout.increase(e);return ye(t,!0),t}},Tn=()=>Boolean(s.timeout&&s.timeout.isRunning());let Mn=!1;const Rn={};function Pn(e="data-swal-template"){Rn[e]=this,Mn||(document.body.addEventListener("click",Ln),Mn=!0)}const Ln=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in Rn){const r=t.getAttribute&&t.getAttribute(e);if(r)return void Rn[e].fire({template:r})}};class Dn{constructor(){this.events={}}_getHandlersByEventName(e){return"undefined"===typeof this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const r=this._getHandlersByEventName(e);r.includes(t)||r.push(t)}once(e,t){const r=(...n)=>{this.removeListener(e,r),t.apply(this,n)};this.on(e,r)}emit(e,...t){this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,t)}catch(v){console.error(v)}})}removeListener(e,t){const r=this._getHandlersByEventName(e),n=r.indexOf(t);n>-1&&r.splice(n,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}}s.eventEmitter=new Dn;const Bn=(e,t)=>{s.eventEmitter&&s.eventEmitter.on(e,t)},Nn=(e,t)=>{s.eventEmitter&&s.eventEmitter.once(e,t)},jn=(e,t)=>{s.eventEmitter&&(e?t?s.eventEmitter.removeListener(e,t):s.eventEmitter.removeAllListeners(e):s.eventEmitter.reset())};var Fn=Object.freeze({__proto__:null,argsToParams:kn,bindClickHandler:Pn,clickCancel:Rt,clickConfirm:Tt,clickDeny:Mt,enableLoading:gr,fire:Sn,getActions:q,getCancelButton:j,getCloseButton:W,getConfirmButton:N,getContainer:E,getDenyButton:F,getFocusableElements:Y,getFooter:H,getHtmlContainer:P,getIcon:T,getIconContent:M,getImage:L,getInputLabel:U,getLoader:z,getPopup:I,getProgressSteps:D,getTimerLeft:Cn,getTimerProgressBar:$,getTitle:R,getValidationMessage:B,increaseTimer:In,isDeprecatedParameter:en,isLoading:G,isTimerRunning:Tn,isUpdatableParameter:Qr,isValidParameter:Zr,isVisible:It,mixin:xn,off:jn,on:Bn,once:Nn,resumeTimer:On,showLoading:gr,stopTimer:En,toggleTimer:An});class Un{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const zn=["swal-title","swal-html","swal-footer"],qn=e=>{const t="string"===typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const r=t.content;Gn(r);const n=Object.assign(Hn(r),$n(r),Wn(r),Vn(r),Yn(r),Xn(r),Jn(r,zn));return n},Hn=e=>{const t={},r=Array.from(e.querySelectorAll("swal-param"));return r.forEach(e=>{Kn(e,["name","value"]);const r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(r in Xr&&"boolean"===typeof Xr[r]?t[r]="false"!==n:r in Xr&&"object"===typeof Xr[r]?t[r]=JSON.parse(n):t[r]=n)}),t},$n=e=>{const t={},r=Array.from(e.querySelectorAll("swal-function-param"));return r.forEach(e=>{const r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(t[r]=new Function(`return ${n}`)())}),t},Wn=e=>{const t={},r=Array.from(e.querySelectorAll("swal-button"));return r.forEach(e=>{Kn(e,["type","color","aria-label"]);const r=e.getAttribute("type");if(!r||!["confirm","cancel","deny"].includes(r))return;t[`${r}ButtonText`]=e.innerHTML,t[`show${g(r)}Button`]=!0;const n=e.getAttribute("color");null!==n&&(t[`${r}ButtonColor`]=n);const i=e.getAttribute("aria-label");null!==i&&(t[`${r}ButtonAriaLabel`]=i)}),t},Vn=e=>{const t={},r=e.querySelector("swal-image");if(r){Kn(r,["src","width","height","alt"]);const e=r.getAttribute("src");null!==e&&(t.imageUrl=e||void 0);const n=r.getAttribute("width");null!==n&&(t.imageWidth=n||void 0);const i=r.getAttribute("height");null!==i&&(t.imageHeight=i||void 0);const o=r.getAttribute("alt");null!==o&&(t.imageAlt=o||void 0)}return t},Yn=e=>{const t={},r=e.querySelector("swal-icon");return r&&(Kn(r,["type","color"]),r.hasAttribute("type")&&(t.icon=r.getAttribute("type")),r.hasAttribute("color")&&(t.iconColor=r.getAttribute("color")),t.iconHtml=r.innerHTML),t},Xn=e=>{const t={},r=e.querySelector("swal-input");r&&(Kn(r,["type","label","placeholder","value"]),t.input=r.getAttribute("type")||"text",r.hasAttribute("label")&&(t.inputLabel=r.getAttribute("label")),r.hasAttribute("placeholder")&&(t.inputPlaceholder=r.getAttribute("placeholder")),r.hasAttribute("value")&&(t.inputValue=r.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach(e=>{Kn(e,["value"]);const r=e.getAttribute("value");if(!r)return;const n=e.innerHTML;t.inputOptions[r]=n})),t},Jn=(e,t)=>{const r={};for(const n in t){const i=t[n],o=e.querySelector(i);o&&(Kn(o,[]),r[i.replace(/^swal-/,"")]=o.innerHTML.trim())}return r},Gn=e=>{const t=zn.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{const r=e.tagName.toLowerCase();t.includes(r)||m(`Unrecognized element <${r}>`)})},Kn=(e,t)=>{Array.from(e.attributes).forEach(r=>{-1===t.indexOf(r.name)&&m([`Unrecognized attribute "${r.name}" on <${e.tagName.toLowerCase()}>.`,""+(t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element.")])})},Zn=10,Qn=e=>{var t,r;const n=E(),i=I();if(!n||!i)return;"function"===typeof e.willOpen&&e.willOpen(i),null===(t=s.eventEmitter)||void 0===t||t.emit("willOpen",i);const o=window.getComputedStyle(document.body),a=o.overflowY;if(ni(n,i,e),setTimeout(()=>{ti(n,i)},Zn),X()&&(ri(n,void 0!==e.scrollbarPadding&&e.scrollbarPadding,a),Wt()),Xt&&!1===e.backdrop&&i.scrollHeight>n.clientHeight&&(n.style.pointerEvents="auto"),J()||s.previousActiveElement||(s.previousActiveElement=document.activeElement),"function"===typeof e.didOpen){const t=e.didOpen;setTimeout(()=>t(i))}null===(r=s.eventEmitter)||void 0===r||r.emit("didOpen",i)},ei=e=>{const t=I();if(!t||e.target!==t)return;const r=E();r&&(t.removeEventListener("animationend",ei),t.removeEventListener("transitionend",ei),r.style.overflowY="auto",oe(r,h["no-transition"]))},ti=(e,t)=>{ve(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",ei),t.addEventListener("transitionend",ei)):e.style.overflowY="auto"},ri=(e,t,r)=>{Jt(),t&&"hidden"!==r&&nr(r),setTimeout(()=>{e.scrollTop=0})},ni=(e,t,r)=>{var n;null!==(n=r.showClass)&&void 0!==n&&n.backdrop&&ie(e,r.showClass.backdrop),r.animation?(t.style.setProperty("opacity","0","important"),ce(t,"grid"),setTimeout(()=>{var e;null!==(e=r.showClass)&&void 0!==e&&e.popup&&ie(t,r.showClass.popup),t.style.removeProperty("opacity")},Zn)):ce(t,"grid"),ie([document.documentElement,document.body],h.shown),r.heightAuto&&r.backdrop&&!r.toast&&ie([document.documentElement,document.body],h["height-auto"])};var ii={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function oi(e){e.inputValidator||("email"===e.input&&(e.inputValidator=ii["email"]),"url"===e.input&&(e.inputValidator=ii["url"]))}function si(e){(!e.target||"string"===typeof e.target&&!document.querySelector(e.target)||"string"!==typeof e.target&&!e.target.appendChild)&&(m('Target parameter is not valid, defaulting to "body"'),e.target="body")}function ai(e){oi(e),e.showLoaderOnConfirm&&!e.preConfirm&&m("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),si(e),"string"===typeof e.title&&(e.title=e.title.split("\n").join("<br />")),Ae(e)}let ci;var ui=new WeakMap;class li{constructor(...e){if(n(this,ui,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),"undefined"===typeof window)return;ci=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,i(ui,this,this._main(ci.params))}_main(e,t={}){if(on(Object.assign({},t,e)),s.currentInstance){const e=$t.swalPromiseResolve.get(s.currentInstance),{isAwaitingPromise:t}=s.currentInstance;s.currentInstance._destroy(),t||e({isDismissed:!0}),X()&&Vt()}s.currentInstance=ci;const r=di(e,t);ai(r),Object.freeze(r),s.timeout&&(s.timeout.stop(),delete s.timeout),clearTimeout(s.restoreFocusTimeout);const n=pi(ci);return At(ci,r),qe.innerParams.set(ci,r),hi(ci,n,r)}then(e){return r(ui,this).then(e)}finally(e){return r(ui,this).finally(e)}}const hi=(e,t,r)=>new Promise((n,i)=>{const o=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};$t.swalPromiseResolve.set(e,n),$t.swalPromiseReject.set(e,i),t.confirmButton.onclick=()=>{Ar(e)},t.denyButton.onclick=()=>{Ir(e)},t.cancelButton.onclick=()=>{Tr(e,o)},t.closeButton.onclick=()=>{o(Pt.close)},pn(r,t,o),Dt(s,r,o),vr(e,r),Qn(r),fi(s,r,o),gi(t,r),setTimeout(()=>{t.container.scrollTop=0})}),di=(e,t)=>{const r=qn(e),n=Object.assign({},Xr,t,r,e);return n.showClass=Object.assign({},Xr.showClass,n.showClass),n.hideClass=Object.assign({},Xr.hideClass,n.hideClass),!1===n.animation&&(n.showClass={backdrop:"swal2-noanimation"},n.hideClass={}),n},pi=e=>{const t={popup:I(),container:E(),actions:q(),confirmButton:N(),denyButton:F(),cancelButton:j(),loader:z(),closeButton:W(),validationMessage:B(),progressSteps:D()};return qe.domCache.set(e,t),t},fi=(e,t,r)=>{const n=$();ue(n),t.timer&&(e.timeout=new Un(()=>{r("timer"),delete e.timeout},t.timer),t.timerProgressBar&&n&&(ce(n),ee(n,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&ye(t.timer)})))},gi=(e,t)=>{if(!t.toast)return _(t.allowEnterKey)?void(mi(e)||vi(e,t)||Bt(-1,1)):(b("allowEnterKey","preConfirm: () => false"),void e.popup.focus())},mi=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const r of t)if(r instanceof HTMLElement&&pe(r))return r.focus(),!0;return!1},vi=(e,t)=>t.focusDeny&&pe(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&pe(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!pe(e.confirmButton))&&(e.confirmButton.focus(),!0);li.prototype.disableButtons=Hr,li.prototype.enableButtons=qr,li.prototype.getInput=Fr,li.prototype.disableInput=Wr,li.prototype.enableInput=$r,li.prototype.hideLoading=Nr,li.prototype.disableLoading=Nr,li.prototype.showValidationMessage=Vr,li.prototype.resetValidationMessage=Yr,li.prototype.close=ar,li.prototype.closePopup=ar,li.prototype.closeModal=ar,li.prototype.closeToast=ar,li.prototype.rejectPromise=ur,li.prototype.update=sn,li.prototype._destroy=cn,Object.assign(li,Fn),Object.keys(dn).forEach(e=>{li[e]=function(...t){if(ci&&ci[e])return ci[e](...t)}}),li.DismissReason=Pt,li.version="11.26.24";const yi=li;return yi.default=yi,yi}),"undefined"!==typeof this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var r=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(r),r.styleSheet)r.styleSheet.disabled||(r.styleSheet.cssText=t);else try{r.innerHTML=t}catch(e){r.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:auto}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:auto}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}')},5156:function(){}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}!function(){r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,{a:t}),t}}(),function(){r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}();var n={};return function(){"use strict";r.r(n),r.d(n,{AlertService:function(){return t},DataModifierService:function(){return o},DraggableService:function(){return a},EventBus:function(){return Cl},HTTPBaseService:function(){return $c},HelperService:function(){return e},HttpProcess:function(){return i},MixpanelService:function(){return xP},ShrEventBus:function(){return El},ShrPusherService:function(){return Ml},default:function(){return CP}});var e={};r.r(e),r.d(e,{allowOnlyNumber:function(){return yo},allowedDecimalPlaces:function(){return wo},customPasswordValidator:function(){return vo},dateFormatter:function(){return xo},decrypt:function(){return ao},decryptWithPrivateKey:function(){return uo},encrypt:function(){return so},encryptWithPublicKey:function(){return co},fromNow:function(){return Eo},getBgColorFromName:function(){return io},getLocalStorageItem:function(){return ho},getObjectProperty:function(){return ro},getSessionStorageItem:function(){return go},getTextColorFromName:function(){return oo},highlightText:function(){return bo},httpBuildQuery:function(){return ko},imageExists:function(){return _o},isArray:function(){return Ki},isEmptyObj:function(){return to},isFunction:function(){return Zi},isObject:function(){return Qi},isString:function(){return Gi},loadRemoteEmbeddable:function(){return Co},numberFormat:function(){return Oo},removeLocalStorageItem:function(){return po},removeSessionStorageItem:function(){return mo},setLocalStorageItem:function(){return lo},setObjectProperty:function(){return no},setSessionStorageItem:function(){return fo},ucFirst:function(){return eo},uuid:function(){return So}});var t={};r.r(t),r.d(t,{alert:function(){return Rc},fire:function(){return Mc},toast:function(){return Pc}});var i={};r.r(i),r.d(i,{makeRequest:function(){return kl},makeRequestToExecute:function(){return Sl}});var o={};r.r(o),r.d(o,{alterUsersForProfileStrip:function(){return xl}});const s={enableDragSort:e=>{window.onload=()=>{const t=document.querySelectorAll(e);Array.prototype.map.call(t,r=>{s.enableDragList(r),shrSafeLog(e,t)})}},enableDragList:e=>{Array.prototype.map.call(e.children,e=>{s.enableDragItem(e)})},enableDragItem:e=>{e.setAttribute("draggable",new Boolean(!0).toString()),e.ondrag=s.handleDrag,e.ondragend=s.handleDrop},handleDrag:e=>{const t=e.target,r=t.parentNode,n=e.clientX,i=e.clientY;t.classList.add("drag-sort-active");let o=null===document.elementFromPoint(n,i)?t:document.elementFromPoint(n,i);r===o?.parentNode&&(o=o!==t.nextSibling?o:o.nextSibling,r?.insertBefore(t,o))},handleDrop:e=>{e.target?.classList.remove("drag-sort-active")}};var a=s,c=r(6660),u=r.n(c);
|
|
32
|
-
|
|
33
|
-
function l(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var h={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function d(e,t){function r(r,n,i){if("undefined"!==typeof document){i=l({},t,i),"number"===typeof i.expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var s in i)i[s]&&(o+="; "+s,!0!==i[s]&&(o+="="+i[s].split(";")[0]));return document.cookie=r+"="+e.write(n,r)+o}}function n(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var o=r[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(n[a]=e.read(s,a),t===a)break}catch(c){}}return t?n[t]:n}}return Object.create({set:r,get:n,remove:function(e,t){r(e,"",l({},t,{expires:-1}))},withAttributes:function(e){return d(this.converter,l({},this.attributes,e))},withConverter:function(e){return d(l({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var p=d(h,{path:"/"}),f="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,g=f,m="object"==typeof self&&self&&self.Object===Object&&self,v=g||m||Function("return this")(),y=v,w=y.Symbol,b=w,_=Object.prototype,k=_.hasOwnProperty,S=_.toString,x=b?b.toStringTag:void 0;function C(e){var t=k.call(e,x),r=e[x];try{e[x]=void 0;var n=!0}catch(o){}var i=S.call(e);return n&&(t?e[x]=r:delete e[x]),i}var E=C,O=Object.prototype,A=O.toString;function I(e){return A.call(e)}var T=I,M="[object Null]",R="[object Undefined]",P=b?b.toStringTag:void 0;function L(e){return null==e?void 0===e?R:M:P&&P in Object(e)?E(e):T(e)}var D=L;function B(e,t){return function(r){return e(t(r))}}var N=B,j=N(Object.getPrototypeOf,Object),F=j;function U(e){return null!=e&&"object"==typeof e}var z=U,q="[object Object]",H=Function.prototype,$=Object.prototype,W=H.toString,V=$.hasOwnProperty,Y=W.call(Object);function X(e){if(!z(e)||D(e)!=q)return!1;var t=F(e);if(null===t)return!0;var r=V.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&W.call(r)==Y}var J=X,G=Array.isArray,K=G,Z="[object Symbol]";function Q(e){return"symbol"==typeof e||z(e)&&D(e)==Z}var ee=Q,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/;function ne(e,t){if(K(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!ee(e))||(re.test(e)||!te.test(e)||null!=t&&e in Object(t))}var ie=ne;function oe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var se=oe,ae="[object AsyncFunction]",ce="[object Function]",ue="[object GeneratorFunction]",le="[object Proxy]";function he(e){if(!se(e))return!1;var t=D(e);return t==ce||t==ue||t==ae||t==le}var de=he,pe=y["__core-js_shared__"],fe=pe,ge=function(){var e=/[^.]+$/.exec(fe&&fe.keys&&fe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function me(e){return!!ge&&ge in e}var ve=me,ye=Function.prototype,we=ye.toString;function be(e){if(null!=e){try{return we.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var _e=be,ke=/[\\^$.*+?()[\]{}|]/g,Se=/^\[object .+?Constructor\]$/,xe=Function.prototype,Ce=Object.prototype,Ee=xe.toString,Oe=Ce.hasOwnProperty,Ae=RegExp("^"+Ee.call(Oe).replace(ke,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ie(e){if(!se(e)||ve(e))return!1;var t=de(e)?Ae:Se;return t.test(_e(e))}var Te=Ie;function Me(e,t){return null==e?void 0:e[t]}var Re=Me;function Pe(e,t){var r=Re(e,t);return Te(r)?r:void 0}var Le=Pe,De=Le(Object,"create"),Be=De;function Ne(){this.__data__=Be?Be(null):{},this.size=0}var je=Ne;function Fe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ue=Fe,ze="__lodash_hash_undefined__",qe=Object.prototype,He=qe.hasOwnProperty;function $e(e){var t=this.__data__;if(Be){var r=t[e];return r===ze?void 0:r}return He.call(t,e)?t[e]:void 0}var We=$e,Ve=Object.prototype,Ye=Ve.hasOwnProperty;function Xe(e){var t=this.__data__;return Be?void 0!==t[e]:Ye.call(t,e)}var Je=Xe,Ge="__lodash_hash_undefined__";function Ke(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Be&&void 0===t?Ge:t,this}var Ze=Ke;function Qe(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}Qe.prototype.clear=je,Qe.prototype["delete"]=Ue,Qe.prototype.get=We,Qe.prototype.has=Je,Qe.prototype.set=Ze;var et=Qe;function tt(){this.__data__=[],this.size=0}var rt=tt;function nt(e,t){return e===t||e!==e&&t!==t}var it=nt;function ot(e,t){var r=e.length;while(r--)if(it(e[r][0],t))return r;return-1}var st=ot,at=Array.prototype,ct=at.splice;function ut(e){var t=this.__data__,r=st(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ct.call(t,r,1),--this.size,!0}var lt=ut;function ht(e){var t=this.__data__,r=st(t,e);return r<0?void 0:t[r][1]}var dt=ht;function pt(e){return st(this.__data__,e)>-1}var ft=pt;function gt(e,t){var r=this.__data__,n=st(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var mt=gt;function vt(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}vt.prototype.clear=rt,vt.prototype["delete"]=lt,vt.prototype.get=dt,vt.prototype.has=ft,vt.prototype.set=mt;var yt=vt,wt=Le(y,"Map"),bt=wt;function _t(){this.size=0,this.__data__={hash:new et,map:new(bt||yt),string:new et}}var kt=_t;function St(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var xt=St;function Ct(e,t){var r=e.__data__;return xt(t)?r["string"==typeof t?"string":"hash"]:r.map}var Et=Ct;function Ot(e){var t=Et(this,e)["delete"](e);return this.size-=t?1:0,t}var At=Ot;function It(e){return Et(this,e).get(e)}var Tt=It;function Mt(e){return Et(this,e).has(e)}var Rt=Mt;function Pt(e,t){var r=Et(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Lt=Pt;function Dt(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}Dt.prototype.clear=kt,Dt.prototype["delete"]=At,Dt.prototype.get=Tt,Dt.prototype.has=Rt,Dt.prototype.set=Lt;var Bt=Dt,Nt="Expected a function";function jt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(Nt);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(jt.Cache||Bt),r}jt.Cache=Bt;var Ft=jt,Ut=500;function zt(e){var t=Ft(e,function(e){return r.size===Ut&&r.clear(),e}),r=t.cache;return t}var qt=zt,Ht=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$t=/\\(\\)?/g,Wt=qt(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ht,function(e,r,n,i){t.push(n?i.replace($t,"$1"):r||e)}),t}),Vt=Wt;function Yt(e,t){var r=-1,n=null==e?0:e.length,i=Array(n);while(++r<n)i[r]=t(e[r],r,e);return i}var Xt=Yt,Jt=1/0,Gt=b?b.prototype:void 0,Kt=Gt?Gt.toString:void 0;function Zt(e){if("string"==typeof e)return e;if(K(e))return Xt(e,Zt)+"";if(ee(e))return Kt?Kt.call(e):"";var t=e+"";return"0"==t&&1/e==-Jt?"-0":t}var Qt=Zt;function er(e){return null==e?"":Qt(e)}var tr=er;function rr(e,t){return K(e)?e:ie(e,t)?[e]:Vt(tr(e))}var nr=rr,ir=1/0;function or(e){if("string"==typeof e||ee(e))return e;var t=e+"";return"0"==t&&1/e==-ir?"-0":t}var sr=or;function ar(e,t){t=nr(t,e);var r=0,n=t.length;while(null!=e&&r<n)e=e[sr(t[r++])];return r&&r==n?e:void 0}var cr=ar;function ur(e,t,r){var n=null==e?void 0:cr(e,t);return void 0===n?r:n}var lr=ur,hr=function(){try{var e=Le(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),dr=hr;function pr(e,t,r){"__proto__"==t&&dr?dr(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var fr=pr,gr=Object.prototype,mr=gr.hasOwnProperty;function vr(e,t,r){var n=e[t];mr.call(e,t)&&it(n,r)&&(void 0!==r||t in e)||fr(e,t,r)}var yr=vr,wr=9007199254740991,br=/^(?:0|[1-9]\d*)$/;function _r(e,t){var r=typeof e;return t=null==t?wr:t,!!t&&("number"==r||"symbol"!=r&&br.test(e))&&e>-1&&e%1==0&&e<t}var kr=_r;function Sr(e,t,r,n){if(!se(e))return e;t=nr(t,e);var i=-1,o=t.length,s=o-1,a=e;while(null!=a&&++i<o){var c=sr(t[i]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var l=a[c];u=n?n(l,c,a):void 0,void 0===u&&(u=se(l)?l:kr(t[i+1])?[]:{})}yr(a,c,u),a=a[c]}return e}var xr=Sr;function Cr(e,t,r){return null==e?e:xr(e,t,r)}var Er=Cr,Or=r(8705);const Ar="AES-256-CBC",Ir=parseInt(Ar.match(/\d+/)?.[0]),Tr=(e,t)=>{const r=Or.lib.WordArray.random(16),n=Or.lib.WordArray.random(256),i=999,o=Ir/4,s=Or.PBKDF2(t,n,{hasher:Or.algo.SHA512,keySize:o/8,iterations:i}),a=Or.AES.encrypt(e,s,{mode:Or.mode.CBC,iv:r}),c=Or.enc.Base64.stringify(a.ciphertext),u={ciphertext:c,iv:Or.enc.Hex.stringify(r),salt:Or.enc.Hex.stringify(n),iterations:i};return Or.enc.Base64.stringify(Or.enc.Utf8.parse(JSON.stringify(u)))},Mr=(e,t)=>{const r=JSON.parse(Or.enc.Utf8.stringify(Or.enc.Base64.parse(e))),n=Or.enc.Hex.parse(r.salt),i=Or.enc.Hex.parse(r.iv),o=r.ciphertext;let s=parseInt(r.iterations);s<=0&&(s=999);const a=Ir/4,c=Or.PBKDF2(t,n,{hasher:Or.algo.SHA512,keySize:a/8,iterations:s}),u=Or.AES.decrypt(o,c,{mode:Or.mode.CBC,iv:i});return u.toString(Or.enc.Utf8)},Rr="-----BEGIN PUBLIC KEY-----",Pr="-----END PUBLIC KEY-----",Lr="-----BEGIN PRIVATE KEY-----",Dr="-----END PRIVATE KEY-----",Br=()=>{if("undefined"!==typeof globalThis&&globalThis.crypto?.subtle)return globalThis.crypto.subtle;throw new Error("Web Crypto API is not available in this environment")},Nr=(e,t,r,n)=>{if(!e.includes(t)||!e.includes(r))throw new Error(`Invalid ${n} key format: expected PEM`);const i=e.replace(t,"").replace(r,"").replace(/\s+/g,"");if("function"!==typeof atob)throw new Error("Base64 decoding is not available in this environment");const o=atob(i),s=new Uint8Array(o.length);for(let a=0;a<o.length;a++)s[a]=o.charCodeAt(a);return s.buffer},jr=e=>{let t="";const r=new Uint8Array(e);if(r.forEach(e=>{t+=String.fromCharCode(e)}),"function"!==typeof btoa)throw new Error("Base64 encoding is not available in this environment");return btoa(t)},Fr=e=>{if("function"!==typeof atob)throw new Error("Base64 decoding is not available in this environment");const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r.buffer},Ur=async(e,t)=>{const r=Br(),n="public"===t?Nr(e,Rr,Pr,"public"):Nr(e,Lr,Dr,"private");return r.importKey("public"===t?"spki":"pkcs8",n,{name:"RSA-OAEP",hash:"SHA-256"},!1,"public"===t?["encrypt"]:["decrypt"])},zr=async(e,t)=>{const r=Br(),n=await Ur(t,"public"),i=(new TextEncoder).encode(e),o=await r.encrypt({name:"RSA-OAEP"},n,i);return jr(o)},qr=async(e,t)=>{const r=Br(),n=await Ur(t,"private"),i=Fr(e),o=await r.decrypt({name:"RSA-OAEP"},n,i);return(new TextDecoder).decode(o)};var Hr={encrypt:Tr,decrypt:Mr,encryptWithPublicKey:zr,decryptWithPrivateKey:qr};function $r(e){return $r="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},$r(e)}function Wr(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Vr(e){return Wr(1,arguments),e instanceof Date||"object"===$r(e)&&"[object Date]"===Object.prototype.toString.call(e)}function Yr(e){Wr(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===$r(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Xr(e){if(Wr(1,arguments),!Vr(e)&&"number"!==typeof e)return!1;var t=Yr(e);return!isNaN(Number(t))}function Jr(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Gr(e,t){Wr(2,arguments);var r=Yr(e).getTime(),n=Jr(t);return new Date(r+n)}function Kr(e,t){Wr(2,arguments);var r=Jr(t);return Gr(e,-r)}var Zr=864e5;function Qr(e){Wr(1,arguments);var t=Yr(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),i=r-n;return Math.floor(i/Zr)+1}function en(e){Wr(1,arguments);var t=1,r=Yr(e),n=r.getUTCDay(),i=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}function tn(e){Wr(1,arguments);var t=Yr(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=en(n),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var s=en(o);return t.getTime()>=i.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function rn(e){Wr(1,arguments);var t=tn(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=en(r);return n}var nn=6048e5;function on(e){Wr(1,arguments);var t=Yr(e),r=en(t).getTime()-rn(t).getTime();return Math.round(r/nn)+1}var sn={};function an(){return sn}function cn(e,t){var r,n,i,o,s,a,c,u;Wr(1,arguments);var l=an(),h=Jr(null!==(r=null!==(n=null!==(i=null!==(o=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==o?o:null===t||void 0===t||null===(s=t.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==i?i:l.weekStartsOn)&&void 0!==n?n:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==r?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Yr(e),p=d.getUTCDay(),f=(p<h?7:0)+p-h;return d.setUTCDate(d.getUTCDate()-f),d.setUTCHours(0,0,0,0),d}function un(e,t){var r,n,i,o,s,a,c,u;Wr(1,arguments);var l=Yr(e),h=l.getUTCFullYear(),d=an(),p=Jr(null!==(r=null!==(n=null!==(i=null!==(o=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null===t||void 0===t||null===(s=t.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==i?i:d.firstWeekContainsDate)&&void 0!==n?n:null===(c=d.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==r?r:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(h+1,0,p),f.setUTCHours(0,0,0,0);var g=cn(f,t),m=new Date(0);m.setUTCFullYear(h,0,p),m.setUTCHours(0,0,0,0);var v=cn(m,t);return l.getTime()>=g.getTime()?h+1:l.getTime()>=v.getTime()?h:h-1}function ln(e,t){var r,n,i,o,s,a,c,u;Wr(1,arguments);var l=an(),h=Jr(null!==(r=null!==(n=null!==(i=null!==(o=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null===t||void 0===t||null===(s=t.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==i?i:l.firstWeekContainsDate)&&void 0!==n?n:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==r?r:1),d=un(e,t),p=new Date(0);p.setUTCFullYear(d,0,h),p.setUTCHours(0,0,0,0);var f=cn(p,t);return f}var hn=6048e5;function dn(e,t){Wr(1,arguments);var r=Yr(e),n=cn(r,t).getTime()-ln(r,t).getTime();return Math.round(n/hn)+1}function pn(e,t){var r=e<0?"-":"",n=Math.abs(e).toString();while(n.length<t)n="0"+n;return r+n}var fn={y:function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return pn("yy"===t?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):pn(r+1,2)},d:function(e,t){return pn(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return"am"===r?"a.m.":"p.m."}},h:function(e,t){return pn(e.getUTCHours()%12||12,t.length)},H:function(e,t){return pn(e.getUTCHours(),t.length)},m:function(e,t){return pn(e.getUTCMinutes(),t.length)},s:function(e,t){return pn(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,n=e.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,r-3));return pn(i,t.length)}},gn=fn,mn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},vn={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return gn.y(e,t)},Y:function(e,t,r,n){var i=un(e,n),o=i>0?i:1-i;if("YY"===t){var s=o%100;return pn(s,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):pn(o,t.length)},R:function(e,t){var r=tn(e);return pn(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return pn(r,t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return pn(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return pn(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return gn.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return pn(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var i=dn(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):pn(i,t.length)},I:function(e,t,r){var n=on(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):pn(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):gn.d(e,t)},D:function(e,t,r){var n=Qr(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):pn(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return pn(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return pn(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return pn(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours(),i=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,i=e.getUTCHours();switch(n=12===i?mn.noon:0===i?mn.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,i=e.getUTCHours();switch(n=i>=17?mn.evening:i>=12?mn.afternoon:i>=4?mn.morning:mn.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return gn.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):gn.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):pn(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):pn(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):gn.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):gn.s(e,t)},S:function(e,t){return gn.S(e,t)},X:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return wn(o);case"XXXX":case"XX":return bn(o);case"XXXXX":case"XXX":default:return bn(o,":")}},x:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return wn(o);case"xxxx":case"xx":return bn(o);case"xxxxx":case"xxx":default:return bn(o,":")}},O:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+yn(o,":");case"OOOO":default:return"GMT"+bn(o,":")}},z:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+yn(o,":");case"zzzz":default:return"GMT"+bn(o,":")}},t:function(e,t,r,n){var i=n._originalDate||e,o=Math.floor(i.getTime()/1e3);return pn(o,t.length)},T:function(e,t,r,n){var i=n._originalDate||e,o=i.getTime();return pn(o,t.length)}};function yn(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(0===o)return r+String(i);var s=t||"";return r+String(i)+s+pn(o,2)}function wn(e,t){if(e%60===0){var r=e>0?"-":"+";return r+pn(Math.abs(e)/60,2)}return bn(e,t)}function bn(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),o=pn(Math.floor(i/60),2),s=pn(i%60,2);return n+o+r+s}var _n=vn,kn=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Sn=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},xn=function(e,t){var r,n=e.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return kn(e,t);switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;case"PPPP":default:r=t.dateTime({width:"full"});break}return r.replace("{{date}}",kn(i,t)).replace("{{time}}",Sn(o,t))},Cn={p:Sn,P:xn},En=Cn;function On(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var An=["D","DD"],In=["YY","YYYY"];function Tn(e){return-1!==An.indexOf(e)}function Mn(e){return-1!==In.indexOf(e)}function Rn(e,t,r){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Pn={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ln=function(e,t,r){var n,i=Pn[e];return n="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!==r&&void 0!==r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},Dn=Ln;function Bn(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var Nn={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},jn={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Fn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Un={date:Bn({formats:Nn,defaultWidth:"full"}),time:Bn({formats:jn,defaultWidth:"full"}),dateTime:Bn({formats:Fn,defaultWidth:"full"})},zn=Un,qn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Hn=function(e,t,r,n){return qn[e]},$n=Hn;function Wn(e){return function(t,r){var n,i=null!==r&&void 0!==r&&r.context?String(r.context):"standalone";if("formatting"===i&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=null!==r&&void 0!==r&&r.width?String(r.width):o;n=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,c=null!==r&&void 0!==r&&r.width?String(r.width):e.defaultWidth;n=e.values[c]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return n[u]}}var Vn={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Yn={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Xn={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Jn={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Gn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Kn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Zn=function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Qn={ordinalNumber:Zn,era:Wn({values:Vn,defaultWidth:"wide"}),quarter:Wn({values:Yn,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Wn({values:Xn,defaultWidth:"wide"}),day:Wn({values:Jn,defaultWidth:"wide"}),dayPeriod:Wn({values:Gn,defaultWidth:"wide",formattingValues:Kn,defaultFormattingWidth:"wide"})},ei=Qn;function ti(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s,a=o[0],c=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?ni(c,function(e){return e.test(a)}):ri(c,function(e){return e.test(a)});s=e.valueCallback?e.valueCallback(u):u,s=r.valueCallback?r.valueCallback(s):s;var l=t.slice(a.length);return{value:s,rest:l}}}function ri(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function ni(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function ii(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=r.valueCallback?r.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var oi=/^(\d+)(th|st|nd|rd)?/i,si=/\d+/i,ai={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ci={any:[/^b/i,/^(a|c)/i]},ui={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},li={any:[/1/i,/2/i,/3/i,/4/i]},hi={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},di={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},pi={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},fi={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},gi={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},mi={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},vi={ordinalNumber:ii({matchPattern:oi,parsePattern:si,valueCallback:function(e){return parseInt(e,10)}}),era:ti({matchPatterns:ai,defaultMatchWidth:"wide",parsePatterns:ci,defaultParseWidth:"any"}),quarter:ti({matchPatterns:ui,defaultMatchWidth:"wide",parsePatterns:li,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ti({matchPatterns:hi,defaultMatchWidth:"wide",parsePatterns:di,defaultParseWidth:"any"}),day:ti({matchPatterns:pi,defaultMatchWidth:"wide",parsePatterns:fi,defaultParseWidth:"any"}),dayPeriod:ti({matchPatterns:gi,defaultMatchWidth:"any",parsePatterns:mi,defaultParseWidth:"any"})},yi=vi,wi={code:"en-US",formatDistance:Dn,formatLong:zn,formatRelative:$n,localize:ei,match:yi,options:{weekStartsOn:0,firstWeekContainsDate:1}},bi=wi,_i=bi,ki=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Si=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xi=/^'([^]*?)'?$/,Ci=/''/g,Ei=/[a-zA-Z]/;function Oi(e,t,r){var n,i,o,s,a,c,u,l,h,d,p,f,g,m,v,y,w,b;Wr(2,arguments);var _=String(t),k=an(),S=null!==(n=null!==(i=null===r||void 0===r?void 0:r.locale)&&void 0!==i?i:k.locale)&&void 0!==n?n:_i,x=Jr(null!==(o=null!==(s=null!==(a=null!==(c=null===r||void 0===r?void 0:r.firstWeekContainsDate)&&void 0!==c?c:null===r||void 0===r||null===(u=r.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==a?a:k.firstWeekContainsDate)&&void 0!==s?s:null===(h=k.locale)||void 0===h||null===(d=h.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==o?o:1);if(!(x>=1&&x<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=Jr(null!==(p=null!==(f=null!==(g=null!==(m=null===r||void 0===r?void 0:r.weekStartsOn)&&void 0!==m?m:null===r||void 0===r||null===(v=r.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==g?g:k.weekStartsOn)&&void 0!==f?f:null===(w=k.locale)||void 0===w||null===(b=w.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==p?p:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!S.localize)throw new RangeError("locale must contain localize property");if(!S.formatLong)throw new RangeError("locale must contain formatLong property");var E=Yr(e);if(!Xr(E))throw new RangeError("Invalid time value");var O=On(E),A=Kr(E,O),I={firstWeekContainsDate:x,weekStartsOn:C,locale:S,_originalDate:E},T=_.match(Si).map(function(e){var t=e[0];if("p"===t||"P"===t){var r=En[t];return r(e,S.formatLong)}return e}).join("").match(ki).map(function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return Ai(n);var o=_n[i];if(o)return null!==r&&void 0!==r&&r.useAdditionalWeekYearTokens||!Mn(n)||Rn(n,t,String(e)),null!==r&&void 0!==r&&r.useAdditionalDayOfYearTokens||!Tn(n)||Rn(n,t,String(e)),o(A,n,S.localize,I);if(i.match(Ei))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("");return T}function Ai(e){var t=e.match(xi);return t?t[1].replace(Ci,"'"):e}function Ii(e,t){Wr(2,arguments);var r=Yr(e),n=Yr(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function Ti(e,t){Wr(2,arguments);var r=Yr(e),n=Yr(t),i=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth();return 12*i+o}function Mi(e){Wr(1,arguments);var t=Yr(e);return t.setHours(23,59,59,999),t}function Ri(e){Wr(1,arguments);var t=Yr(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Pi(e){Wr(1,arguments);var t=Yr(e);return Mi(t).getTime()===Ri(t).getTime()}function Li(e,t){Wr(2,arguments);var r,n=Yr(e),i=Yr(t),o=Ii(n,i),s=Math.abs(Ti(n,i));if(s<1)r=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*s);var a=Ii(n,i)===-o;Pi(Yr(e))&&1===s&&1===Ii(e,i)&&(a=!1),r=o*(s-Number(a))}return 0===r?0:r}function Di(e,t){return Wr(2,arguments),Yr(e).getTime()-Yr(t).getTime()}var Bi={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},Ni="trunc";function ji(e){return e?Bi[e]:Bi[Ni]}function Fi(e,t,r){Wr(2,arguments);var n=Di(e,t)/1e3;return ji(null===r||void 0===r?void 0:r.roundingMethod)(n)}function Ui(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function zi(e){return Ui({},e)}var qi=1440,Hi=2520,$i=43200,Wi=86400;function Vi(e,t,r){var n,i;Wr(2,arguments);var o=an(),s=null!==(n=null!==(i=null===r||void 0===r?void 0:r.locale)&&void 0!==i?i:o.locale)&&void 0!==n?n:_i;if(!s.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=Ii(e,t);if(isNaN(a))throw new RangeError("Invalid time value");var c,u,l=Ui(zi(r),{addSuffix:Boolean(null===r||void 0===r?void 0:r.addSuffix),comparison:a});a>0?(c=Yr(t),u=Yr(e)):(c=Yr(e),u=Yr(t));var h,d=Fi(u,c),p=(On(u)-On(c))/1e3,f=Math.round((d-p)/60);if(f<2)return null!==r&&void 0!==r&&r.includeSeconds?d<5?s.formatDistance("lessThanXSeconds",5,l):d<10?s.formatDistance("lessThanXSeconds",10,l):d<20?s.formatDistance("lessThanXSeconds",20,l):d<40?s.formatDistance("halfAMinute",0,l):d<60?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",1,l):0===f?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",f,l);if(f<45)return s.formatDistance("xMinutes",f,l);if(f<90)return s.formatDistance("aboutXHours",1,l);if(f<qi){var g=Math.round(f/60);return s.formatDistance("aboutXHours",g,l)}if(f<Hi)return s.formatDistance("xDays",1,l);if(f<$i){var m=Math.round(f/qi);return s.formatDistance("xDays",m,l)}if(f<Wi)return h=Math.round(f/$i),s.formatDistance("aboutXMonths",h,l);if(h=Li(u,c),h<12){var v=Math.round(f/$i);return s.formatDistance("xMonths",v,l)}var y=h%12,w=Math.floor(h/12);return y<3?s.formatDistance("aboutXYears",w,l):y<9?s.formatDistance("overXYears",w,l):s.formatDistance("almostXYears",w+1,l)}function Yi(e,t){return Wr(1,arguments),Vi(e,Date.now(),t)}const Xi=new Map,Ji=new Map,Gi=e=>"string"===typeof e||e instanceof String,Ki=e=>Array.isArray(e),Zi=e=>"function"===typeof e,Qi=e=>!!e&&e.constructor===Object,eo=e=>e[0].toUpperCase()+e.substring(1).toLowerCase(),to=e=>J(e)&&!Object.keys(e).length,ro=(e,t,r)=>{const n=lr(e,t,r);return n||r},no=(e,t,r)=>Er(e,t,r),io=e=>{let t=0;e.split("").forEach(e=>{t=e.charCodeAt(0)+((t<<5)-t)});let r="#";for(let n=0;n<3;n++){const e=t>>8*n&255;r+=e.toString(16).padStart(2,"0")}return r},oo=(e,t="#FFFFFF",r="#000000")=>{const n=io(e),i="#"===n.charAt(0)?n.substring(1,7):n,o=parseInt(i.substring(0,2),16),s=parseInt(i.substring(2,4),16),a=parseInt(i.substring(4,6),16),c=[o/255,s/255,a/255],u=c.map(e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)),l=.2126*u[0]+.7152*u[1]+.0722*u[2];return l>.179?r:t},so=(e,t="")=>Hr.encrypt(e,t),ao=(e,t="")=>Hr.decrypt(e,t),co=async(e,t)=>await Hr.encryptWithPublicKey(e,t),uo=async(e,t)=>await Hr.decryptWithPrivateKey(e,t),lo=(e,t,r="production")=>{Xi.set(e,JSON.stringify(t)),"production"===r?localStorage.setItem(e,so(JSON.stringify(t))):localStorage.setItem(e,JSON.stringify(t))},ho=(e,t="production")=>{if(Xi.has(e))return JSON.parse(Xi.get(e));const r=localStorage.getItem(e);if(null==r)return null;try{const n="production"===t?JSON.parse(ao(r)):JSON.parse(r);return Xi.set(e,JSON.stringify(n)),n}catch{return localStorage.removeItem(e),null}},po=e=>{Xi.delete(e),localStorage.removeItem(e)},fo=(e,t,r="production")=>{Ji.set(e,JSON.stringify(t)),"production"===r?sessionStorage.setItem(e,so(JSON.stringify(t))):sessionStorage.setItem(e,JSON.stringify(t))},go=(e,t="production")=>{if(Ji.has(e))return JSON.parse(Ji.get(e));const r=sessionStorage.getItem(e);if(null==r)return null;try{const n="production"===t?JSON.parse(ao(r)):JSON.parse(r);return Ji.set(e,JSON.stringify(n)),n}catch{return sessionStorage.removeItem(e),null}},mo=e=>{Ji.delete(e),sessionStorage.removeItem(e)},vo=e=>{const t=/[A-Z]/.test(e),r=/[a-z]/.test(e),n=/[0-9]/.test(e),i=/[#?!@$%^&*-]/.test(e);return t&&r&&n&&i},yo=e=>{if(e=e||window.event,"paste"==e.type){const t=e,r=t.clipboardData?.getData("Text");return!isNaN(r)||t.preventDefault()}{const t=e,r=t.which?t.which:t.keyCode;return!(r>31&&(r<48||r>57)&&46!==r)||t.preventDefault()}},wo=(e,t)=>{if(e=e||window.event,"paste"==e.type){const r=e,n=r.clipboardData?.getData("Text"),i=n?.indexOf(".");return!(n.split(".").length>2||t<=0&&2===n.split(".").length||2===n.split(".").length&&i+1!=n.length-t)||r.preventDefault()}{const r=e,n=r.which?r.which:r.keyCode;if(t<=0)return!(["keyup","keydown"].includes(e.type)&&190===n||"keypress"==r.type&&46===n)||r.preventDefault();{const e=r.target,i=e.value,o=i.indexOf(".");return!(o>=0&&o<i.length-t||46===n&&2===i.split(".").length)||r.preventDefault()}}},bo=(e,t,r="success")=>e.replace(new RegExp(t,"gi"),e=>`<span class='text-${r}'>${e}</span>`),_o=(e,t)=>{const r=new Image;if(r.src=e,r.complete)return void 0!=t&&t(!0),!0;r.onload=()=>(void 0!=t&&t(!0),!0),r.onerror=()=>(void 0!=t&&t(!1),!1)},ko=e=>{const t=encodeURIComponent,r=Object.keys(e).map(r=>t(r)+"="+t(e[r])).join("&");return r},So=(e,t)=>{let r=e||"";return r+=Math.random().toString(36).substring(2,8)+Math.random().toString(36).substring(2,8),r+=t||"",r},xo=(e,t="dd-MM-yyyy")=>Oi(new Date(e),t),Co=e=>(window.__LOADED_EMBEDDABLES__||(window.__LOADED_EMBEDDABLES__=new Set),window.__LOADED_EMBEDDABLES__.has(e)?Promise.resolve({}):new Function("u","return import(u)")(e).then(t=>(window.__LOADED_EMBEDDABLES__.add(e),t))),Eo=e=>Yi(new Date(e),{addSuffix:!0}),Oo=(e,t,r,n)=>{t=t||0,"string"===typeof e&&(e=parseFloat(e)),r&&n||(r=".",n=",");let i=Math.round(Math.abs(e)*Math.pow(10,t))+"";i=1>e&&-1<e&&i.length<=t?Array(t-i.length+1).join("0")+i:i;let o=t?i.slice(0,-1*t):i.slice(0);const s=parseInt(o)||0;o=0==s?"0":o;const a=t?i.slice(-1*t):"";let c="";while(o.length>3)c=n+o.slice(-3)+c,o=o.slice(0,-3);return(e<0?"-":"")+o+c+(a?r+a:"")},Ao=new Map,Io="@accessToken",To="idms_token",Mo="@refreshToken",Ro="@refreshTokenPath";class Po{encryptionKey;constructor(e){e="",this.encryptionKey=e}get(e){if(Ao.has(e))return JSON.parse(Ao.get(e));const t=p.get(e);if(!t)return;let r="";try{r=JSON.parse(ao(t,this.encryptionKey))}catch{return void p.remove(e)}return Ao.set(e,JSON.stringify(r)),r}set(e,t,r){Ao.set(e,JSON.stringify(t)),t=so(JSON.stringify(t),this.encryptionKey),p.set(e,t,r)}remove(e,t){Ao.delete(e),p.remove(e,t)}getToken(){return this.get(Io)}saveToken(e,t){this.set(Io,e,t)}removeToken(e){this.remove(Io,e)}removeLocalStorageToken(){po(To)}getRefreshToken(){return this.get(Mo)}saveRefreshToken(e){this.set(Mo,e)}removeRefreshToken(e){this.remove(Mo,e)}clearAll(){Object.keys(p.get()).forEach(e=>{p.remove(e),p.remove(e,{path:"/"})}),Ao.clear()}getRefreshTokenPath(){let e=this.get(Ro);return e||(e=ho(Ro)),e}saveRefreshTokenPath(e){lo(Ro,e),this.set(Ro,e)}removeRefreshTokenPath(e){po(Ro),this.remove(Ro,e)}}var Lo=Po,Do=r(6586),Bo=r.n(Do);function No(){this.__data__=new yt,this.size=0}var jo=No;function Fo(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}var Uo=Fo;function zo(e){return this.__data__.get(e)}var qo=zo;function Ho(e){return this.__data__.has(e)}var $o=Ho,Wo=200;function Vo(e,t){var r=this.__data__;if(r instanceof yt){var n=r.__data__;if(!bt||n.length<Wo-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Bt(n)}return r.set(e,t),this.size=r.size,this}var Yo=Vo;function Xo(e){var t=this.__data__=new yt(e);this.size=t.size}Xo.prototype.clear=jo,Xo.prototype["delete"]=Uo,Xo.prototype.get=qo,Xo.prototype.has=$o,Xo.prototype.set=Yo;var Jo=Xo;function Go(e,t,r){(void 0!==r&&!it(e[t],r)||void 0===r&&!(t in e))&&fr(e,t,r)}var Ko=Go;function Zo(e){return function(t,r,n){var i=-1,o=Object(t),s=n(t),a=s.length;while(a--){var c=s[e?a:++i];if(!1===r(o[c],c,o))break}return t}}var Qo=Zo,es=Qo(),ts=es,rs="object"==typeof exports&&exports&&!exports.nodeType&&exports,ns=rs&&"object"==typeof module&&module&&!module.nodeType&&module,is=ns&&ns.exports===rs,os=is?y.Buffer:void 0,ss=os?os.allocUnsafe:void 0;function as(e,t){if(t)return e.slice();var r=e.length,n=ss?ss(r):new e.constructor(r);return e.copy(n),n}var cs=as,us=y.Uint8Array,ls=us;function hs(e){var t=new e.constructor(e.byteLength);return new ls(t).set(new ls(e)),t}var ds=hs;function ps(e,t){var r=t?ds(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var fs=ps;function gs(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n)t[r]=e[r];return t}var ms=gs,vs=Object.create,ys=function(){function e(){}return function(t){if(!se(t))return{};if(vs)return vs(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),ws=ys,bs=Object.prototype;function _s(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||bs;return e===r}var ks=_s;function Ss(e){return"function"!=typeof e.constructor||ks(e)?{}:ws(F(e))}var xs=Ss,Cs="[object Arguments]";function Es(e){return z(e)&&D(e)==Cs}var Os=Es,As=Object.prototype,Is=As.hasOwnProperty,Ts=As.propertyIsEnumerable,Ms=Os(function(){return arguments}())?Os:function(e){return z(e)&&Is.call(e,"callee")&&!Ts.call(e,"callee")},Rs=Ms,Ps=9007199254740991;function Ls(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ps}var Ds=Ls;function Bs(e){return null!=e&&Ds(e.length)&&!de(e)}var Ns=Bs;function js(e){return z(e)&&Ns(e)}var Fs=js;function Us(){return!1}var zs=Us,qs="object"==typeof exports&&exports&&!exports.nodeType&&exports,Hs=qs&&"object"==typeof module&&module&&!module.nodeType&&module,$s=Hs&&Hs.exports===qs,Ws=$s?y.Buffer:void 0,Vs=Ws?Ws.isBuffer:void 0,Ys=Vs||zs,Xs=Ys,Js="[object Arguments]",Gs="[object Array]",Ks="[object Boolean]",Zs="[object Date]",Qs="[object Error]",ea="[object Function]",ta="[object Map]",ra="[object Number]",na="[object Object]",ia="[object RegExp]",oa="[object Set]",sa="[object String]",aa="[object WeakMap]",ca="[object ArrayBuffer]",ua="[object DataView]",la="[object Float32Array]",ha="[object Float64Array]",da="[object Int8Array]",pa="[object Int16Array]",fa="[object Int32Array]",ga="[object Uint8Array]",ma="[object Uint8ClampedArray]",va="[object Uint16Array]",ya="[object Uint32Array]",wa={};function ba(e){return z(e)&&Ds(e.length)&&!!wa[D(e)]}wa[la]=wa[ha]=wa[da]=wa[pa]=wa[fa]=wa[ga]=wa[ma]=wa[va]=wa[ya]=!0,wa[Js]=wa[Gs]=wa[ca]=wa[Ks]=wa[ua]=wa[Zs]=wa[Qs]=wa[ea]=wa[ta]=wa[ra]=wa[na]=wa[ia]=wa[oa]=wa[sa]=wa[aa]=!1;var _a=ba;function ka(e){return function(t){return e(t)}}var Sa=ka,xa="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ca=xa&&"object"==typeof module&&module&&!module.nodeType&&module,Ea=Ca&&Ca.exports===xa,Oa=Ea&&g.process,Aa=function(){try{var e=Ca&&Ca.require&&Ca.require("util").types;return e||Oa&&Oa.binding&&Oa.binding("util")}catch(t){}}(),Ia=Aa,Ta=Ia&&Ia.isTypedArray,Ma=Ta?Sa(Ta):_a,Ra=Ma;function Pa(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var La=Pa;function Da(e,t,r,n){var i=!r;r||(r={});var o=-1,s=t.length;while(++o<s){var a=t[o],c=n?n(r[a],e[a],a,r,e):void 0;void 0===c&&(c=e[a]),i?fr(r,a,c):yr(r,a,c)}return r}var Ba=Da;function Na(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}var ja=Na,Fa=Object.prototype,Ua=Fa.hasOwnProperty;function za(e,t){var r=K(e),n=!r&&Rs(e),i=!r&&!n&&Xs(e),o=!r&&!n&&!i&&Ra(e),s=r||n||i||o,a=s?ja(e.length,String):[],c=a.length;for(var u in e)!t&&!Ua.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||kr(u,c))||a.push(u);return a}var qa=za;function Ha(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}var $a=Ha,Wa=Object.prototype,Va=Wa.hasOwnProperty;function Ya(e){if(!se(e))return $a(e);var t=ks(e),r=[];for(var n in e)("constructor"!=n||!t&&Va.call(e,n))&&r.push(n);return r}var Xa=Ya;function Ja(e){return Ns(e)?qa(e,!0):Xa(e)}var Ga=Ja;function Ka(e){return Ba(e,Ga(e))}var Za=Ka;function Qa(e,t,r,n,i,o,s){var a=La(e,r),c=La(t,r),u=s.get(c);if(u)Ko(e,r,u);else{var l=o?o(a,c,r+"",e,t,s):void 0,h=void 0===l;if(h){var d=K(c),p=!d&&Xs(c),f=!d&&!p&&Ra(c);l=c,d||p||f?K(a)?l=a:Fs(a)?l=ms(a):p?(h=!1,l=cs(c,!0)):f?(h=!1,l=fs(c,!0)):l=[]:J(c)||Rs(c)?(l=a,Rs(a)?l=Za(a):se(a)&&!de(a)||(l=xs(c))):h=!1}h&&(s.set(c,l),i(l,c,n,o,s),s["delete"](c)),Ko(e,r,l)}}var ec=Qa;function tc(e,t,r,n,i){e!==t&&ts(t,function(o,s){if(i||(i=new Jo),se(o))ec(e,t,s,r,tc,n,i);else{var a=n?n(La(e,s),o,s+"",e,t,i):void 0;void 0===a&&(a=o),Ko(e,s,a)}},Ga)}var rc=tc;function nc(e){return e}var ic=nc;function oc(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var sc=oc,ac=Math.max;function cc(e,t,r){return t=ac(void 0===t?e.length-1:t,0),function(){var n=arguments,i=-1,o=ac(n.length-t,0),s=Array(o);while(++i<o)s[i]=n[t+i];i=-1;var a=Array(t+1);while(++i<t)a[i]=n[i];return a[t]=r(s),sc(e,this,a)}}var uc=cc;function lc(e){return function(){return e}}var hc=lc,dc=dr?function(e,t){return dr(e,"toString",{configurable:!0,enumerable:!1,value:hc(t),writable:!0})}:ic,pc=dc,fc=800,gc=16,mc=Date.now;function vc(e){var t=0,r=0;return function(){var n=mc(),i=gc-(n-r);if(r=n,i>0){if(++t>=fc)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var yc=vc,wc=yc(pc),bc=wc;function _c(e,t){return bc(uc(e,t,ic),e+"")}var kc=_c;function Sc(e,t,r){if(!se(r))return!1;var n=typeof t;return!!("number"==n?Ns(r)&&kr(t,r.length):"string"==n&&t in r)&&it(r[t],e)}var xc=Sc;function Cc(e){return kc(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&xc(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);while(++n<i){var a=r[n];a&&e(t,a,n,o)}return t})}var Ec=Cc,Oc=Ec(function(e,t,r){rc(e,t,r)}),Ac=Oc;const Ic="calc(var(--sfe-stack-level-alert) + 1)",Tc=e=>{const t=e.closest(".swal2-container");t?.style.setProperty("z-index",Ic)},Mc=e=>{const t=e.didOpen;return Bo().fire({...e,didOpen:e=>{Tc(e),t?.(e)}})},Rc=(e,t)=>{const r={confirmButtonText:"Yes",cancelButtonText:"No",customClass:{confirmButton:"btn btn-primary",cancelButton:"btn btn-danger"},reverseButtons:!0},n={showCancelButton:!t,showCloseButton:!1,buttonsStyling:!1},i=Ac(r,e,n);return Mc({html:`<div class="d-flex flex-column">\n <div class="icon d-flex wpx-76 hpx-76 bg-${i.iconColor}-lt-2 rounded-circle mx-auto mt-4">\n <span class="material-icons fw-700 fs-40 text-${i.iconColor}-dk-1 my-auto mx-auto">\n ${i.iconName}\n </span>\n </div>\n <div class="title text-secondary fw-500 fs-20 lh-24 mx-auto mt-4 px-4 text-center">${i.subject}</div>\n <div class="message text-secondary-muted fw-400 fs-15 lh-23 mx-auto mt-2 px-4">${i.message}</div>\n </div>`,...i})},Pc=(e,t,r)=>{let n,i;switch(e){case"success":n="check_circle",i="success";break;case"warning":n="error",i="warning";break;case"error":n="cancel",i="danger";break;case"info":default:n="help",i="primary";break}Mc({toast:!0,position:"top",showConfirmButton:!1,timer:5e3,timerProgressBar:!1,showCancelButton:!1,didOpen:e=>{e.addEventListener("mouseenter",Bo().stopTimer),e.addEventListener("mouseleave",Bo().resumeTimer),e.querySelector(".swal2-cancel")?.addEventListener("click",()=>{Bo().close()})},html:`<div class="d-flex justify-content-between">\n <div class="d-flex flex-grow-1 align-items-start">\n <div class="me-2 mt-1">\n <span class="material-icons text-${i} fs-18">\n ${n}\n </span>\n </div>\n <div class="flex-grow-1 me-2 text-left mt-1 mb-2">\n <p class="text-${i} mb-1 fs-16 fw-500">${t}</p>\n <small class="m-0 text-secondary-muted fs-15 fw-normal">${r}</small>\n </div>\n </div>\n <span class="swal2-cancel material-icons small cursor-pointer text-secondary-lt-1"">clear</span>\n </div>`})},Lc="@appClient",Dc="@loggedInUser",Bc="@refreshTokenPath",Nc="@appLoginUrl";class jc{encryptionKey;tokenService;constructor(e){this.encryptionKey=e,this.tokenService=new Lo(e)}redirectToLogin(){this.logOut(),Pc("error","Error","You need to sign in."),setTimeout(()=>{location.href="/login"},2e3)}hasValidToken(e){if(!0!==e.meta?.protected)return!0;const t=this.tokenService.getToken();return!!t||(this.redirectToLogin(),!1)}setClientDetails(e){lo(Lc,e)}getClientDetails(){return ho(Lc)}removeClientDetails(){po(Lc)}setLoggedInUser(e){lo(Dc,e)}getLoggedInUser(){return ho(Dc)}removeLoggedInUser(){po(Dc)}isLoggedIn(){return!!this.hasLoggedIn()}logOut(e){e?this.clearAll():(this.tokenService.removeLocalStorageToken(),this.tokenService.removeToken(),this.tokenService.removeRefreshToken(),this.removeLoggedInUser(),this.removeRefreshTokenPath(),this.removeLoginUrl(),this.clearGlobaThis())}hasLoggedIn(){const e=this.getLoggedInUser();return!!e?.id}clearAll(){localStorage.clear(),sessionStorage.clear(),this.tokenService.clearAll(),this.clearGlobaThis()}clearGlobaThis(){const e=globalThis,t=e["__shr_http_refresh_state__"];t&&(t.accessToken=null)}getLoginUrl(){return ho(Nc)}saveLoginUrl(e){lo(Nc,e)}removeLoginUrl(){po(Nc)}getRefreshTokenPath(){return ho(Bc)}saveRefreshTokenPath(e){lo(Bc,e)}removeRefreshTokenPath(){po(Bc)}}var Fc=jc;const Uc={"X-Requested-With":"XMLHttpRequest"},zc="__shr_http_refresh_state__";function qc(){const e=globalThis;return e[zc]||(e[zc]={isRefreshing:!1,failedQueue:[],accessToken:null}),e[zc]}function Hc(e,t=null){const r=qc();r.failedQueue.forEach(({resolve:r,reject:n})=>{e?n(e):r(t)}),r.failedQueue=[]}class $c{tokenService;authService;instance;token;apiBaseUrl;loginUrl;timeout;projectType;httpHeaders;defaultError;constructor(e){this.tokenService=new Lo(e?.encryptionKey),this.authService=new Fc(e?.encryptionKey),this.apiBaseUrl=e?.apiBaseUrl||"/",this.loginUrl=e?.loginUrl,this.timeout=e?.timeout||2e4,this.projectType=e?.projectType,this.httpHeaders=e?.httpHeaders||{},this.defaultError=e?.defaultError,this.instance=u().create({baseURL:this.apiBaseUrl}),this.token=this.tokenService.getToken(),this.initializeRequestInterceptor(),this.initializeResponseInterceptor()}getInstance=()=>this.instance;getInstance2=()=>({get:this.get,post:this.post,put:this.put,patch:this.patch,delete:this.delete,request:this.request,defaults:this.instance.defaults,instance:this.instance});get=(e,t)=>this.instance.get(e,t);post=(e,t,r)=>this.instance.post(e,t,r);put=(e,t,r)=>this.instance.put(e,t,r);patch=(e,t,r)=>this.instance.patch(e,t,r);delete=(e,t)=>this.instance.delete(e,t);request=e=>this.instance.request(e);resolveError(e,t,r){if(!r)return{showMessage:!0,defaultMessage:t};if("string"===typeof r)return{showMessage:!0,defaultMessage:r};const n=r(e);return"string"===typeof n&&""!==n.trim()?{showMessage:!0,defaultMessage:n}:{showMessage:!1!==n,defaultMessage:t}}rejectIfOffline(){if("undefined"!==typeof navigator&&!navigator.onLine){const e=new Error("No internet access!"),{showMessage:t,defaultMessage:r}=this.resolveError(e,"No internet access!",this.defaultError?.onNetworkError);return t&&Pc("error","Error",r),e}return null}initializeRequestInterceptor=()=>{this.instance.interceptors.request.use(this.handleRequest,e=>Promise.reject(e))};handleRequest=e=>{const t=qc();this.token=t.accessToken??this.tokenService.getToken(),this.token&&!t.accessToken&&(t.accessToken=this.token),e.timeout=this.timeout,e.headers={...e.headers||{},...this.httpHeaders||{},...Uc},this.token&&(e.headers.Authorization=`Bearer ${this.token}`);const r=this.rejectIfOffline();return r?Promise.reject(r):e};initializeResponseInterceptor=()=>{this.instance.interceptors.response.use(e=>{if(e.headers&&e.headers.authorization){const t=e.headers.authorization.split(" ")[1];this.token=t,this.tokenService.saveToken(this.token),qc().accessToken=t}return e},this.handleError)};handleError=async e=>{if(!e.config)return Promise.reject(e);const t=e.config,r=!0===t?._skipAuthRedirect,n=!0===t?._hideDefaultMessage,i=e.response?.status;if(401===i&&!t?._retry&&!r){const r=qc();if(r.isRefreshing)return new Promise((e,t)=>{r.failedQueue.push({resolve:e,reject:t})}).then(e=>(t.headers.Authorization=`Bearer ${e}`,this.instance(t)));t._retry=!0,r.isRefreshing=!0;try{const e=await this.refreshToken(),{access_token:n,refresh_token:i}=e.data?.data??{};this.tokenService.saveToken(n),this.tokenService.saveRefreshToken(i),r.accessToken=n,Hc(null,n),r.isRefreshing=!1;const o=this.rejectIfOffline();return o?Promise.reject(o):(t.headers.Authorization=`Bearer ${n}`,this.instance(t))}catch(c){Hc(c,null),r.isRefreshing=!1,r.accessToken=null;const{showMessage:t,defaultMessage:n}=this.resolveError(e,"Your session has expired, you need to sign in again.");return t&&(Pc("error","Error",n),setTimeout(()=>{let e=this.authService.getLoginUrl();e||(e="function"===typeof this.loginUrl?this.loginUrl():this.loginUrl),e&&(location.href=e)},1e3)),this.authService.logOut(),Promise.reject(e.response||e)}}const o={403:this.defaultError?.onForbidden,500:this.defaultError?.onServerError,400:this.defaultError?.onBadRequest,422:this.defaultError?.onValidationError,404:this.defaultError?.onNotFound},s=e.response?.data?.message,a={403:"You do not have permission to perform this action",500:s||"Unable to process request at this time, please try again",400:s||"Bad Request",422:s||"Validation error",404:"Resource not found"};if(i&&o[i]){const{showMessage:t,defaultMessage:r}=this.resolveError(e,a[i],o[i]);t&&!n&&Pc("error","Error",r)}return Promise.reject(e.response||e)};async refreshToken(){let e=this.authService.getRefreshTokenPath();e||(e=`${location.origin}/api/v2/auth/refresh-token-web`);const t={refresh_token:this.tokenService.getRefreshToken(),ums_user_id:this.authService.getLoggedInUser()?.ums_user_id};return u().post(e,t)}}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
function Wc(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return e=>e in t}const Vc=Object.assign,Yc=Object.prototype.hasOwnProperty,Xc=(e,t)=>Yc.call(e,t),Jc=Array.isArray,Gc=e=>"[object Map]"===tu(e),Kc=e=>"string"===typeof e,Zc=e=>"symbol"===typeof e,Qc=e=>null!==e&&"object"===typeof e,eu=Object.prototype.toString,tu=e=>eu.call(e),ru=e=>tu(e).slice(8,-1),nu=e=>Kc(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,iu=e=>{const t=Object.create(null);return r=>{const n=t[r];return n||(t[r]=e(r))}},ou=/-\w/g,su=(iu(e=>e.replace(ou,e=>e.slice(1).toUpperCase())),/\B([A-Z])/g),au=(iu(e=>e.replace(su,"-$1").toLowerCase()),iu(e=>e.charAt(0).toUpperCase()+e.slice(1))),cu=(iu(e=>{const t=e?`on${au(e)}`:"";return t}),(e,t)=>!Object.is(e,t));let uu;let lu,hu,du=0;function pu(){du++}function fu(){if(--du>0)return;if(hu){let e=hu;hu=void 0;while(e){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;while(lu){let r=lu;lu=void 0;while(r){const n=r.next;if(r.next=void 0,r.flags&=-9,1&r.flags)try{r.trigger()}catch(t){e||(e=t)}r=n}}if(e)throw e}let gu=!0;const mu=[];function vu(){mu.push(gu),gu=!1}function yu(){const e=mu.pop();gu=void 0===e||e}class wu{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class bu{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!uu||!gu||uu===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==uu)t=this.activeLink=new wu(uu,this),uu.deps?(t.prevDep=uu.depsTail,uu.depsTail.nextDep=t,uu.depsTail=t):uu.deps=uu.depsTail=t,_u(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=uu.depsTail,t.nextDep=void 0,uu.depsTail.nextDep=t,uu.depsTail=t,uu.deps===t&&(uu.deps=e)}return t}trigger(e){this.version++,this.notify(e)}notify(e){pu();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{fu()}}}function _u(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)_u(e)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const ku=new WeakMap,Su=Symbol(""),xu=Symbol(""),Cu=Symbol("");function Eu(e,t,r){if(gu&&uu){let t=ku.get(e);t||ku.set(e,t=new Map);let n=t.get(r);n||(t.set(r,n=new bu),n.map=t,n.key=r),n.track()}}function Ou(e,t,r,n,i,o){const s=ku.get(e);if(!s)return void 0;const a=e=>{e&&e.trigger()};if(pu(),"clear"===t)s.forEach(a);else{const i=Jc(e),o=i&&nu(r);if(i&&"length"===r){const e=Number(n);s.forEach((t,r)=>{("length"===r||r===Cu||!Zc(r)&&r>=e)&&a(t)})}else switch((void 0!==r||s.has(void 0))&&a(s.get(r)),o&&a(s.get(Cu)),t){case"add":i?o&&a(s.get("length")):(a(s.get(Su)),Gc(e)&&a(s.get(xu)));break;case"delete":i||(a(s.get(Su)),Gc(e)&&a(s.get(xu)));break;case"set":Gc(e)&&a(s.get(Su));break}}fu()}function Au(e,t){const r=ku.get(e);return r&&r.get(t)}function Iu(e){const t=fl(e);return t===e?t:(Eu(t,"iterate",Cu),dl(e)?t:t.map(gl))}function Tu(e){return Eu(e=fl(e),"iterate",Cu),e}function Mu(e,t){return hl(e)?ll(e)?ml(gl(t)):ml(t):gl(t)}const Ru={__proto__:null,[Symbol.iterator](){return Pu(this,Symbol.iterator,e=>Mu(this,e))},concat(...e){return Iu(this).concat(...e.map(e=>Jc(e)?Iu(e):e))},entries(){return Pu(this,"entries",e=>(e[1]=Mu(this,e[1]),e))},every(e,t){return Du(this,"every",e,t,void 0,arguments)},filter(e,t){return Du(this,"filter",e,t,e=>e.map(e=>Mu(this,e)),arguments)},find(e,t){return Du(this,"find",e,t,e=>Mu(this,e),arguments)},findIndex(e,t){return Du(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Du(this,"findLast",e,t,e=>Mu(this,e),arguments)},findLastIndex(e,t){return Du(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Du(this,"forEach",e,t,void 0,arguments)},includes(...e){return Nu(this,"includes",e)},indexOf(...e){return Nu(this,"indexOf",e)},join(e){return Iu(this).join(e)},lastIndexOf(...e){return Nu(this,"lastIndexOf",e)},map(e,t){return Du(this,"map",e,t,void 0,arguments)},pop(){return ju(this,"pop")},push(...e){return ju(this,"push",e)},reduce(e,...t){return Bu(this,"reduce",e,t)},reduceRight(e,...t){return Bu(this,"reduceRight",e,t)},shift(){return ju(this,"shift")},some(e,t){return Du(this,"some",e,t,void 0,arguments)},splice(...e){return ju(this,"splice",e)},toReversed(){return Iu(this).toReversed()},toSorted(e){return Iu(this).toSorted(e)},toSpliced(...e){return Iu(this).toSpliced(...e)},unshift(...e){return ju(this,"unshift",e)},values(){return Pu(this,"values",e=>Mu(this,e))}};function Pu(e,t,r){const n=Tu(e),i=n[t]();return n===e||dl(e)||(i._next=i.next,i.next=()=>{const e=i._next();return e.done||(e.value=r(e.value)),e}),i}const Lu=Array.prototype;function Du(e,t,r,n,i,o){const s=Tu(e),a=s!==e&&!dl(e),c=s[t];if(c!==Lu[t]){const t=c.apply(e,o);return a?gl(t):t}let u=r;s!==e&&(a?u=function(t,n){return r.call(this,Mu(e,t),n,e)}:r.length>2&&(u=function(t,n){return r.call(this,t,n,e)}));const l=c.call(s,u,n);return a&&i?i(l):l}function Bu(e,t,r,n){const i=Tu(e),o=i!==e&&!dl(e);let s=r,a=!1;i!==e&&(o?(a=0===n.length,s=function(t,n,i){return a&&(a=!1,t=Mu(e,t)),r.call(this,t,Mu(e,n),i,e)}):r.length>3&&(s=function(t,n,i){return r.call(this,t,n,i,e)}));const c=i[t](s,...n);return a?Mu(e,c):c}function Nu(e,t,r){const n=fl(e);Eu(n,"iterate",Cu);const i=n[t](...r);return-1!==i&&!1!==i||!pl(r[0])?i:(r[0]=fl(r[0]),n[t](...r))}function ju(e,t,r=[]){vu(),pu();const n=fl(e)[t].apply(e,r);return fu(),yu(),n}const Fu=Wc("__proto__,__v_isRef,__isVue"),Uu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(Zc));function zu(e){Zc(e)||(e=String(e));const t=fl(this);return Eu(t,"has",e),t.hasOwnProperty(e)}class qu{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){if("__v_skip"===t)return e["__v_skip"];const n=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!n;if("__v_isReadonly"===t)return n;if("__v_isShallow"===t)return i;if("__v_raw"===t)return r===(n?i?il:nl:i?rl:tl).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=Jc(e);if(!n){let e;if(o&&(e=Ru[t]))return e;if("hasOwnProperty"===t)return zu}const s=Reflect.get(e,t,vl(e)?e:r);if(Zc(t)?Uu.has(t):Fu(t))return s;if(n||Eu(e,"get",t),i)return s;if(vl(s)){const e=o&&nu(t)?s:s.value;return n&&Qc(e)?cl(e):e}return Qc(s)?n?cl(s):al(s):s}}class Hu extends qu{constructor(e=!1){super(!1,e)}set(e,t,r,n){let i=e[t];const o=Jc(e)&&nu(t);if(!this._isShallow){const e=hl(i);if(dl(r)||hl(r)||(i=fl(i),r=fl(r)),!o&&vl(i)&&!vl(r))return e||(i.value=r),!0}const s=o?Number(t)<e.length:Xc(e,t),a=Reflect.set(e,t,r,vl(e)?e:n);return e===fl(n)&&(s?cu(r,i)&&Ou(e,"set",t,r,i):Ou(e,"add",t,r)),a}deleteProperty(e,t){const r=Xc(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&Ou(e,"delete",t,void 0,n),i}has(e,t){const r=Reflect.has(e,t);return Zc(t)&&Uu.has(t)||Eu(e,"has",t),r}ownKeys(e){return Eu(e,"iterate",Jc(e)?"length":Su),Reflect.ownKeys(e)}}class $u extends qu{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Wu=new Hu,Vu=new $u,Yu=e=>e,Xu=e=>Reflect.getPrototypeOf(e);function Ju(e,t,r){return function(...n){const i=this["__v_raw"],o=fl(i),s=Gc(o),a="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=i[e](...n),l=r?Yu:t?ml:gl;return!t&&Eu(o,"iterate",c?xu:Su),Vc(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[l(e[0]),l(e[1])]:l(e),done:t}}})}}function Gu(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Ku(e,t){const r={get(r){const n=this["__v_raw"],i=fl(n),o=fl(r);e||(cu(r,o)&&Eu(i,"get",r),Eu(i,"get",o));const{has:s}=Xu(i),a=t?Yu:e?ml:gl;return s.call(i,r)?a(n.get(r)):s.call(i,o)?a(n.get(o)):void(n!==i&&n.get(r))},get size(){const t=this["__v_raw"];return!e&&Eu(fl(t),"iterate",Su),t.size},has(t){const r=this["__v_raw"],n=fl(r),i=fl(t);return e||(cu(t,i)&&Eu(n,"has",t),Eu(n,"has",i)),t===i?r.has(t):r.has(t)||r.has(i)},forEach(r,n){const i=this,o=i["__v_raw"],s=fl(o),a=t?Yu:e?ml:gl;return!e&&Eu(s,"iterate",Su),o.forEach((e,t)=>r.call(n,a(e),a(t),i))}};Vc(r,e?{add:Gu("add"),set:Gu("set"),delete:Gu("delete"),clear:Gu("clear")}:{add(e){const r=fl(this),n=Xu(r),i=fl(e),o=t||dl(e)||hl(e)?e:i,s=n.has.call(r,o)||cu(e,o)&&n.has.call(r,e)||cu(i,o)&&n.has.call(r,i);return s||(r.add(o),Ou(r,"add",o,o)),this},set(e,r){t||dl(r)||hl(r)||(r=fl(r));const n=fl(this),{has:i,get:o}=Xu(n);let s=i.call(n,e);s||(e=fl(e),s=i.call(n,e));const a=o.call(n,e);return n.set(e,r),s?cu(r,a)&&Ou(n,"set",e,r,a):Ou(n,"add",e,r),this},delete(e){const t=fl(this),{has:r,get:n}=Xu(t);let i=r.call(t,e);i||(e=fl(e),i=r.call(t,e));const o=n?n.call(t,e):void 0,s=t.delete(e);return i&&Ou(t,"delete",e,void 0,o),s},clear(){const e=fl(this),t=0!==e.size,r=void 0,n=e.clear();return t&&Ou(e,"clear",void 0,void 0,r),n}});const n=["keys","values","entries",Symbol.iterator];return n.forEach(n=>{r[n]=Ju(n,e,t)}),r}function Zu(e,t){const r=Ku(e,t);return(t,n,i)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get(Xc(r,n)&&n in t?r:t,n,i)}const Qu={get:Zu(!1,!1)},el={get:Zu(!0,!1)};const tl=new WeakMap,rl=new WeakMap,nl=new WeakMap,il=new WeakMap;function ol(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function sl(e){return e["__v_skip"]||!Object.isExtensible(e)?0:ol(ru(e))}function al(e){return hl(e)?e:ul(e,!1,Wu,Qu,tl)}function cl(e){return ul(e,!0,Vu,el,nl)}function ul(e,t,r,n,i){if(!Qc(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const o=sl(e);if(0===o)return e;const s=i.get(e);if(s)return s;const a=new Proxy(e,2===o?n:r);return i.set(e,a),a}function ll(e){return hl(e)?ll(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function hl(e){return!(!e||!e["__v_isReadonly"])}function dl(e){return!(!e||!e["__v_isShallow"])}function pl(e){return!!e&&!!e["__v_raw"]}function fl(e){const t=e&&e["__v_raw"];return t?fl(t):e}const gl=e=>Qc(e)?al(e):e,ml=e=>Qc(e)?cl(e):e;function vl(e){return!!e&&!0===e["__v_isRef"]}function yl(e){return vl(e)?e.value:e}function wl(e){const t=Jc(e)?new Array(e.length):{};for(const r in e)t[r]=_l(e,r);return t}class bl{constructor(e,t,r){this._object=e,this._defaultValue=r,this["__v_isRef"]=!0,this._value=void 0,this._key=Zc(t)?t:String(t),this._raw=fl(e);let n=!0,i=e;if(!Jc(e)||Zc(this._key)||!nu(this._key))do{n=!pl(i)||dl(i)}while(n&&(i=i["__v_raw"]));this._shallow=n}get value(){let e=this._object[this._key];return this._shallow&&(e=yl(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&vl(this._raw[this._key])){const t=this._object[this._key];if(vl(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return Au(this._raw,this._key)}}function _l(e,t,r){return new bl(e,t,r)}function kl(e,t,r){const n=al({isLoading:!1,isSuccessful:!1,hasError:!1,response:null,error:null});return n.isLoading=!0,n.error=null,e.request(t).then(r).then(e=>{n.response=e,n.isSuccessful=!0}).catch(e=>{n.error=e?.data,n.hasError=!0}).finally(()=>{n.isLoading=!1}),n}function Sl(e,t,r){const n=al({response:null,error:null,isLoading:!1,isSuccessful:!1,hasError:!1}),i=async i=>{const o=e.request(i?{...t,...i}:t);n.isLoading=!0;try{const e=await o.then(r);return n.response=e,n.error=null,n.isSuccessful=!0,n.hasError=!1,e}catch(s){throw n.response=null,n.error=s?.data,n.isSuccessful=!1,n.hasError=!0,new Error(s?.data)}finally{n.isLoading=!1}};return{...wl(n),execute:i}}const xl=(e,t,r)=>{if(Array.isArray(e)){const n=[];return e.forEach(e=>{n.push(xl(e,t,r))}),n}return e.___group_name=ro(e,t,""),e.___identity=ro(e,r,""),e};class Cl{eventTarget;constructor(e=""){this.eventTarget=document.appendChild(document.createComment(e))}on(e,t){this.eventTarget.addEventListener(e,t)}once(e,t){this.eventTarget.addEventListener(e,t,{once:!0})}off(e,t){this.eventTarget.removeEventListener(e,t)}emit(e,t){const r=new CustomEvent(e,{detail:t});return this.eventTarget.dispatchEvent(r)}}const El=new Cl("shr-event-bus");var Ol=r(2242),Al=r.n(Ol);class Il{pusher;setupPusherConnection(e,t){this.pusher=new(Al())(e,t)}}var Tl,Ml=new Il;if("undefined"===typeof window){var Rl={hostname:""};Tl={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Rl,referrer:""},screen:{width:0,height:0},location:Rl,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else Tl=window;var Pl={DEBUG:!1,LIB_VERSION:"2.78.0"},Ll="__mp_targeting",Dl="__mp_recorder",Bl="__MP_RECORDER_FILENAME__",Nl="__MP_TARGETING_FILENAME__";function jl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Fl(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(u){return void r(u)}a.done?t(c):Promise.resolve(c).then(n,i)}function Ul(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){Fl(o,n,i,s,a,"next",e)}function a(e){Fl(o,n,i,s,a,"throw",e)}s(void 0)})}}function zl(e,t,r){return zl=eh()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=Function.bind.apply(e,n),o=new i;return r&&Gl(o,r.prototype),o},zl.apply(null,arguments)}function ql(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Hl(e,t,r){return t&&ql(e.prototype,t),e}function $l(){return $l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$l.apply(this,arguments)}function Wl(e){return Wl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Wl(e)}function Vl(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gl(e,t)}function Yl(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Xl(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function Jl(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function Gl(e,t){return Gl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Gl(e,t)}function Kl(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Zl(e,t){if(e){if("string"===typeof e)return jl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jl(e,t):void 0}}function Ql(e){var t="function"===typeof Map?new Map:void 0;return Ql=function(e){if(null===e||!Xl(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return zl(e,arguments,Wl(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Gl(r,e)},Ql(e)}function eh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(bA){}return(eh=function(){return!!e})()}function th(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Zl(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function rh(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return c([e,t])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function nh(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var ih,oh=Object.defineProperty,sh=function(e,t,r){return t in e?oh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ah=function(e,t,r){return sh(e,"symbol"!==("undefined"===typeof t?"undefined":Kl(t))?t+"":t,r)},ch=Object.defineProperty,uh=function(e,t,r){return t in e?ch(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},lh=function(e,t,r){return uh(e,"symbol"!==("undefined"===typeof t?"undefined":Kl(t))?t+"":t,r)},hh=function(e){return e[e["Document"]=0]="Document",e[e["DocumentType"]=1]="DocumentType",e[e["Element"]=2]="Element",e[e["Text"]=3]="Text",e[e["CDATA"]=4]="CDATA",e[e["Comment"]=5]="Comment",e}(hh||{}),dh={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ph={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},fh={},gh=function(){return!!globalThis.Zone};function mh(e){if(fh[e])return fh[e];var t=globalThis[e],r=t.prototype,n=e in dh?dh[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in ph?ph[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"===typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!gh())return fh[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?fh[e]=u:r}catch(l){return r}}var vh={};function yh(e,t,r){var n,i=e+"."+String(r);if(vh[i])return vh[i].call(t);var o=mh(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(vh[i]=s,s.call(t)):t[r]}var wh={};function bh(e,t,r){var n=e+"."+String(r);if(wh[n])return wh[n].bind(t);var i=mh(e),o=i[r];return"function"!==typeof o?t[r]:(wh[n]=o,o.bind(t))}function _h(e){return yh("Node",e,"childNodes")}function kh(e){return yh("Node",e,"parentNode")}function Sh(e){return yh("Node",e,"parentElement")}function xh(e){return yh("Node",e,"textContent")}function Ch(e,t){return bh("Node",e,"contains")(t)}function Eh(e){return bh("Node",e,"getRootNode")()}function Oh(e){return e&&"host"in e?yh("ShadowRoot",e,"host"):null}function Ah(e){return e.styleSheets}function Ih(e){return e&&"shadowRoot"in e?yh("Element",e,"shadowRoot"):null}function Th(e,t){return yh("Element",e,"querySelector")(t)}function Mh(e,t){return yh("Element",e,"querySelectorAll")(t)}function Rh(){return mh("MutationObserver").constructor}function Ph(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var Lh={childNodes:_h,parentNode:kh,parentElement:Sh,textContent:xh,contains:Ch,getRootNode:Eh,host:Oh,styleSheets:Ah,shadowRoot:Ih,querySelector:Th,querySelectorAll:Mh,mutationObserver:Rh,patch:Ph};function Dh(e){return e.nodeType===e.ELEMENT_NODE}function Bh(e){var t=e&&"host"in e&&"mode"in e&&Lh.host(e)||null;return Boolean(t&&"shadowRoot"in t&&Lh.shadowRoot(t)===e)}function Nh(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function jh(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Fh(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function Uh(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);var n=Array.from(t,function(e){return zh(e,r)}).join("");return jh(n)}catch(i){return null}}function zh(e,t){if(Hh(e)){var r;try{r=Uh(e.styleSheet)||Fh(e)}catch(i){r=e.cssText}return e.styleSheet.href?id(r,e.styleSheet.href):r}var n=e.cssText;return $h(e)&&e.selectorText.includes(":")&&(n=qh(n)),t?id(n,t):n}function qh(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Hh(e){return"styleSheet"in e}function $h(e){return"selectorText"in e}var Wh=function(){function e(){lh(this,"idNodeMap",new Map),lh(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return r.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function Vh(){return new Wh}function Yh(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&Xh(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function Xh(e){return e.toLowerCase()}var Jh="__rrweb_original__";function Gh(e){var t=e.getContext("2d");if(!t)return!0;for(var r=50,n=0;n<e.width;n+=r)for(var i=0;i<e.height;i+=r){var o=t.getImageData,s=Jh in o?o[Jh]:o,a=new Uint32Array(s.call(t,n,i,Math.min(r,e.width-n),Math.min(r,e.height-i)).data.buffer);if(a.some(function(e){return 0!==e}))return!1}return!0}function Kh(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Xh(t):null}function Zh(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(s){return null}var n,i=/\.([0-9a-z]+)(?:$)/i,o=r.pathname.match(i);return null!=(n=null==o?void 0:o[1])?n:null}function Qh(e){var t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}var ed=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,td=/^(?:[a-z+]+:)?\/\//i,rd=/^www\..*/i,nd=/^(data:)([^,]*),(.*)/i;function id(e,t){return(e||"").replace(ed,function(e,r,n,i,o,s){var a=n||o||s,c=r||i||"";if(!a)return e;if(td.test(a)||rd.test(a))return"url("+c+a+c+")";if(nd.test(a))return"url("+c+a+c+")";if("/"===a[0])return"url("+c+(Qh(t)+a)+c+")";var u=t.split("/"),l=a.split("/");u.pop();for(var h,d=th(l);!(h=d()).done;){var p=h.value;"."!==p&&(".."===p?u.pop():u.push(p))}return"url("+c+u.join("/")+c+")"})}function od(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function sd(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"===typeof e)for(var s=od(e,r),a=s.length/e.length,c=1;c<n.length;c++)if(n[c].textContent&&"string"===typeof n[c].textContent){for(var u=od(n[c].textContent,r),l=100,h=3;h<u.length;h++)if(!u[h].match(/[a-zA-Z0-9]/)&&-1===u.indexOf(u.substring(0,h),1))break;for(;h<u.length;h++){var d=u.substring(0,h),p=s.split(d),f=-1;if(2===p.length)f=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[c-1].textContent)f=s.indexOf(d,1);else if(1===p.length){if(d=d.substring(0,d.length-1),p=s.split(d),p.length<=1)return i.push(e),i;h=l+1}else h===u.length-1&&(f=s.indexOf(d));if(p.length>=2&&h>l){var g=n[c-1].textContent;if(g&&"string"===typeof g){var m=od(g).length;f=s.indexOf(d,m)}-1===f&&(f=p[0].length)}if(-1!==f){for(var v=Math.floor(f/a);v>0&&v<e.length;){if(o+=1,o>50*n.length)return i.push(e),i;var y=od(e.substring(0,v),r);if(y.length===f){i.push(e.substring(0,v)),e=e.substring(v),s=s.substring(f);break}y.length<f?v+=Math.max(1,Math.floor((f-y.length)/a)):v-=Math.max(1,Math.floor((y.length-f)*a))}break}}}return i.push(e),i}function ad(e,t){return sd(e,t).join("/* rr_split */")}var cd,ud,ld=1,hd=new RegExp("[^a-z0-9-_:]"),dd=-2;function pd(){return ld++}function fd(e){if(Yl(e,HTMLFormElement))return"form";var t=Xh(e.tagName);return hd.test(t)?"div":t}var gd=/^[^ \t\n\r\u000c]+/,md=/^[, \t\n\r\u000c]+/;function vd(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}var i=[];while(1){if(n(md),r>=t.length)break;var o=n(gd);if(","===o.slice(-1))o=wd(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=wd(e,o);var a=!1;while(1){var c=t.charAt(r);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else{if(","===c){r+=1,i.push((o+s).trim());break}"("===c&&(a=!0)}s+=c,r+=1}}}return i.join(", ")}var yd=new WeakMap;function wd(e,t){return t&&""!==t.trim()?_d(e,t):t}function bd(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function _d(e,t){var r=yd.get(e);if(r||(r=e.createElement("a"),yd.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function kd(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?wd(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?vd(e,n):"style"===r?id(n,_d(e)):"object"===t&&"data"===r?wd(e,n):n:wd(e,n):n}function Sd(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function xd(e,t,r){try{if("string"===typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(o){}return!1}function Cd(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&Cd(Lh.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&Cd(Lh.parentNode(e),t,r)}function Ed(e,t,r,n){var i;if(Dh(e)){if(i=e,!Lh.childNodes(i).length)return!1}else{if(null===Lh.parentElement(e))return!1;i=Lh.parentElement(e)}try{if("string"===typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(Cd(i,t,n))return!0;if(r)if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}catch(o){}return!1}function Od(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(c){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}function Ad(e,t,r){var n,i=!1;try{n=e.sheet}catch(s){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}function Id(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskTextFn,h=t.maskInputFn,d=t.dataURLOptions,p=void 0===d?{}:d,f=t.inlineImages,g=t.recordCanvas,m=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,w=t.cssCaptured,b=void 0!==w&&w,_=Td(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:hh.Document,childNodes:[],compatMode:e.compatMode}:{type:hh.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:hh.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return Rd(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:u,maskInputFn:h,dataURLOptions:p,inlineImages:f,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:y,rootId:_});case e.TEXT_NODE:return Md(e,{doc:r,needsMask:s,maskTextFn:l,rootId:_,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:hh.CDATA,textContent:"",rootId:_};case e.COMMENT_NODE:return{type:hh.Comment,textContent:Lh.textContent(e)||"",rootId:_};default:return!1}}function Td(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}function Md(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=Lh.parentNode(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;return l?c="SCRIPT_PLACEHOLDER":o||(c=Lh.textContent(e),u&&c&&(c=id(c,_d(t.doc)))),!u&&!l&&c&&r&&(c=n?n(c,Lh.parentElement(e)):c.replace(/[\S]/g,"*")),{type:hh.Text,textContent:c||"",rootId:i}}function Rd(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,c=void 0===a?{}:a,u=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,d=t.inlineImages,p=t.recordCanvas,f=t.keepIframeSrcFn,g=t.newlyAddedElement,m=void 0!==g&&g,v=t.rootId,y=xd(e,i,o),w=fd(e),b={},_=e.attributes.length,k=0;k<_;k++){var S=e.attributes[k];Sd(w,S.name,S.value)||(b[S.name]=kd(n,w,Xh(S.name),S.value))}if("link"===w&&s){var x=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),C=null;x&&(C=Uh(x)),C&&(delete b.rel,delete b.href,b._cssText=C)}if("style"===w&&e.sheet){var E=Uh(e.sheet);E&&(e.childNodes.length>1&&(E=ad(E,e)),b._cssText=E)}if("input"===w||"textarea"===w||"select"===w){var O=e.value,A=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&O?b.value=Yh({element:e,type:Kh(e),tagName:w,value:O,maskInputOptions:c,maskInputFn:u}):A&&(b.checked=A)}if("option"===w&&(e.selected&&!c["select"]?b.selected=!0:delete b.selected),"dialog"===w&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===w&&p)if("2d"===e.__context)Gh(e)||(b.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var I=e.toDataURL(h.type,h.quality),T=n.createElement("canvas");T.width=e.width,T.height=e.height;var M=T.toDataURL(h.type,h.quality);I!==M&&(b.rr_dataURL=I)}if("img"===w&&d){cd||(cd=n.createElement("canvas"),ud=cd.getContext("2d"));var R=e,P=R.currentSrc||R.getAttribute("src")||"<unknown-src>",L=R.crossOrigin,D=function(){R.removeEventListener("load",D);try{cd.width=R.naturalWidth,cd.height=R.naturalHeight,ud.drawImage(R,0,0),b.rr_dataURL=cd.toDataURL(h.type,h.quality)}catch(e){if("anonymous"!==R.crossOrigin)return R.crossOrigin="anonymous",void(R.complete&&0!==R.naturalWidth?D():R.addEventListener("load",D));console.warn("Cannot inline img src="+P+"! Error: "+e)}"anonymous"===R.crossOrigin&&(L?b.crossOrigin=L:R.removeAttribute("crossorigin"))};R.complete&&0!==R.naturalWidth?D():R.addEventListener("load",D)}if("audio"===w||"video"===w){var B=b;B.rr_mediaState=e.paused?"paused":"played",B.rr_mediaCurrentTime=e.currentTime,B.rr_mediaPlaybackRate=e.playbackRate,B.rr_mediaMuted=e.muted,B.rr_mediaLoop=e.loop,B.rr_mediaVolume=e.volume}if(m||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),y){var N=e.getBoundingClientRect(),j=N.width,F=N.height;b={class:b.class,rr_width:j+"px",rr_height:F+"px"}}"iframe"!==w||f(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(w)&&(r=!0)}catch(U){}return{type:hh.Element,tagName:w,attributes:b,childNodes:[],isSVG:bd(e)||void 0,needBlock:y,rootId:v,isCustom:r}}function Pd(e){return void 0===e||null===e?"":e.toLowerCase()}function Ld(e,t){if(t.comment&&e.type===hh.Comment)return!0;if(e.type===hh.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"===typeof e.attributes.href&&"js"===Zh(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Pd(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Pd(e.attributes.name)||"icon"===Pd(e.attributes.rel)||"apple-touch-icon"===Pd(e.attributes.rel)||"shortcut icon"===Pd(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Pd(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Pd(e.attributes.property).match(/^(og|twitter|fb):/)||Pd(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Pd(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Pd(e.attributes.name)||"googlebot"===Pd(e.attributes.name)||"bingbot"===Pd(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Pd(e.attributes.name)||"generator"===Pd(e.attributes.name)||"framework"===Pd(e.attributes.name)||"publisher"===Pd(e.attributes.name)||"progid"===Pd(e.attributes.name)||Pd(e.attributes.property).match(/^article:/)||Pd(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Pd(e.attributes.name)||"yandex-verification"===Pd(e.attributes.name)||"csrf-token"===Pd(e.attributes.name)||"p:domain_verify"===Pd(e.attributes.name)||"verify-v1"===Pd(e.attributes.name)||"verification"===Pd(e.attributes.name)||"shopify-checkout-api-token"===Pd(e.attributes.name)))return!0}}return!1}function Dd(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,u=void 0!==c&&c,l=t.inlineStylesheet,h=void 0===l||l,d=t.maskInputOptions,p=void 0===d?{}:d,f=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,w=t.inlineImages,b=void 0!==w&&w,_=t.recordCanvas,k=void 0!==_&&_,S=t.onSerialize,x=t.onIframeLoad,C=t.iframeLoadTimeout,E=void 0===C?5e3:C,O=t.onStylesheetLoad,A=t.stylesheetLoadTimeout,I=void 0===A?5e3:A,T=t.keepIframeSrcFn,M=void 0===T?function(){return!1}:T,R=t.newlyAddedElement,P=void 0!==R&&R,L=t.cssCaptured,D=void 0!==L&&L,B=t.needsMask,N=t.preserveWhiteSpace,j=void 0===N||N;if(!B){var F=void 0===B;B=Ed(e,s,a,F)}var U,z=Id(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,keepIframeSrcFn:M,newlyAddedElement:P,cssCaptured:D});if(!z)return console.warn(e,"not serialized"),null;U=n.hasNode(e)?n.getId(e):Ld(z,m)||!j&&z.type===hh.Text&&!z.textContent.replace(/^\s+|\s+$/gm,"").length?dd:pd();var q=Object.assign(z,{id:U});if(n.add(e,q),U===dd)return null;S&&S(e);var H=!u;if(q.type===hh.Element){H=H&&!q.needBlock,delete q.needBlock;var $=Lh.shadowRoot(e);$&&Nh($)&&(q.isShadowHost=!0)}if((q.type===hh.Document||q.type===hh.Element)&&H){m.headWhitespace&&q.type===hh.Element&&"head"===q.tagName&&(j=!1);var W={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:O,stylesheetLoadTimeout:I,keepIframeSrcFn:M,cssCaptured:!1};if(q.type===hh.Element&&"textarea"===q.tagName&&void 0!==q.attributes.value);else{q.type===hh.Element&&void 0!==q.attributes._cssText&&"string"===typeof q.attributes._cssText&&(W.cssCaptured=!0);for(var V,Y=th(Array.from(Lh.childNodes(e)));!(V=Y()).done;){var X=V.value,J=Dd(X,W);J&&q.childNodes.push(J)}}var G=null;if(Dh(e)&&(G=Lh.shadowRoot(e)))for(var K,Z=th(Array.from(Lh.childNodes(G)));!(K=Z()).done;){var Q=K.value,ee=Dd(Q,W);ee&&(Nh(G)&&(ee.isShadow=!0),q.childNodes.push(ee))}}var te=Lh.parentNode(e);return te&&Bh(te)&&Nh(te)&&(q.isShadow=!0),q.type===hh.Element&&"iframe"===q.tagName&&Od(e,function(){var t=e.contentDocument;if(t&&x){var r=Dd(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:O,stylesheetLoadTimeout:I,keepIframeSrcFn:M});r&&x(e,r)}},E),q.type===hh.Element&&"link"===q.tagName&&"string"===typeof q.attributes.rel&&("stylesheet"===q.attributes.rel||"preload"===q.attributes.rel&&"string"===typeof q.attributes.href&&"css"===Zh(q.attributes.href))&&Ad(e,function(){if(O){var t=Dd(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:O,stylesheetLoadTimeout:I,keepIframeSrcFn:M});t&&O(e,t)}},I),q}function Bd(e,t){var r=t||{},n=r.mirror,i=void 0===n?new Wh:n,o=r.blockClass,s=void 0===o?"rr-block":o,a=r.blockSelector,c=void 0===a?null:a,u=r.maskTextClass,l=void 0===u?"rr-mask":u,h=r.maskTextSelector,d=void 0===h?null:h,p=r.inlineStylesheet,f=void 0===p||p,g=r.inlineImages,m=void 0!==g&&g,v=r.recordCanvas,y=void 0!==v&&v,w=r.maskAllInputs,b=void 0!==w&&w,_=r.maskTextFn,k=r.maskInputFn,S=r.slimDOM,x=void 0!==S&&S,C=r.dataURLOptions,E=r.preserveWhiteSpace,O=r.onSerialize,A=r.onIframeLoad,I=r.iframeLoadTimeout,T=r.onStylesheetLoad,M=r.stylesheetLoadTimeout,R=r.keepIframeSrcFn,P=void 0===R?function(){return!1}:R,L=!0===b?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===b?{password:!0}:b,D=!0===x||"all"===x?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===x,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===x?{}:x;return Dd(e,{doc:e,mirror:i,blockClass:s,blockSelector:c,maskTextClass:l,maskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:L,maskTextFn:_,maskInputFn:k,slimDOMOptions:D,dataURLOptions:C,inlineImages:m,recordCanvas:y,preserveWhiteSpace:E,onSerialize:O,onIframeLoad:A,iframeLoadTimeout:I,onStylesheetLoad:T,stylesheetLoadTimeout:M,keepIframeSrcFn:P,newlyAddedElement:!1})}function Nd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function jd(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return Yl(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var Fd={exports:{}},Ud=String,zd=function(){return{isColorSupported:!1,reset:Ud,bold:Ud,dim:Ud,italic:Ud,underline:Ud,inverse:Ud,hidden:Ud,strikethrough:Ud,black:Ud,red:Ud,green:Ud,yellow:Ud,blue:Ud,magenta:Ud,cyan:Ud,white:Ud,gray:Ud,bgBlack:Ud,bgRed:Ud,bgGreen:Ud,bgYellow:Ud,bgBlue:Ud,bgMagenta:Ud,bgCyan:Ud,bgWhite:Ud}};Fd.exports=zd(),Fd.exports.createColors=zd;var qd=Fd.exports,Hd={},$d=Object.freeze(Object.defineProperty({__proto__:null,default:Hd},Symbol.toStringTag,{value:"Module"})),Wd=jd($d),Vd=qd,Yd=Wd,Xd=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof i&&("number"===typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}Vl(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Vd.isColorSupported),Yd&&e&&(r=Yd(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=Vd.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Ql(Error)),Jd=Xd;Xd.default=Xd;var Gd={};Gd.isClean=Symbol("isClean"),Gd.my=Symbol("my");var Kd={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Zd(e){return e[0].toUpperCase()+e.slice(1)}var Qd=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if("undefined"!==typeof e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&(n=e.raws[t],"undefined"!==typeof n))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Kd[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+Zd(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=Kd[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,"undefined"!==typeof t))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,"undefined"!==typeof t))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),ep=Qd;Qd.default=Qd;var tp=ep;function rp(e,t){var r=new tp(t);r.stringify(e)}var np=rp;rp.default=rp;var ip=Gd.isClean,op=Gd.my,sp=Jd,ap=ep,cp=np;function up(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o="undefined"===typeof i?"undefined":Kl(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return up(e,r)}):("object"===o&&null!==i&&(i=up(i)),r[n]=i)}return r}var lp=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[ip]=!1,this[op]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=th(e[t]);!(r=n()).done;){var i=r.value;"function"===typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=up(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new sp(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[ip]){this[ip]=!1;var e=this;while(e=e.parent)e[ip]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"===typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new ap;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=th(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===("undefined"===typeof e?"undefined":Kl(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Kl(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=cp),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},Hl(e,[{key:"proxyOf",get:function(){return this}}]),e}(),hp=lp;lp.default=lp;var dp=hp,pp=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=$l({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Vl(t,e),Hl(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(dp),fp=pp;pp.default=pp;var gp="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",mp=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=gp[64*Math.random()|0];return t},vp={nanoid:mp},yp=Wd.SourceMapConsumer,wp=Wd.SourceMapGenerator,bp=Wd.existsSync,_p=Wd.readFileSync,kp=Wd.dirname,Sp=Wd.join;function xp(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var Cp=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=kp(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new yp(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return xp(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":Kl(e))&&("string"===typeof e.mappings||"string"===typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=kp(e),bp(e))return this.mapFile=e,_p(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"===typeof t)return t;if("function"!==typeof t){if(Yl(t,yp))return wp.fromSourceMap(t).toString();if(Yl(t,wp))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Sp(kp(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Ep=Cp;Cp.default=Cp;var Op=Wd.SourceMapConsumer,Ap=Wd.SourceMapGenerator,Ip=Wd.fileURLToPath,Tp=Wd.pathToFileURL,Mp=Wd.isAbsolute,Rp=Wd.resolve,Pp=vp.nanoid,Lp=Wd,Dp=Jd,Bp=Ep,Np=Symbol("fromOffsetCache"),jp=Boolean(Op&&Ap),Fp=Boolean(Rp&&Mp),Up=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Kl(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Fp||/^\w+:\/\//.test(t.from)||Mp(t.from)?this.file=t.from:this.file=Rp(t.from)),Fp&&jp){var r=new Bp(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Pp(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===("undefined"===typeof t?"undefined":Kl(t))){var a=t,c=r;if("number"===typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"===typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return i=d?new Dp(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new Dp(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Tp&&(i.input.url=Tp(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[Np])r=this[Np];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[Np]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Rp(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"===typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=Mp(a.source)?Tp(a.source):new URL(a.source,this.map.consumer().sourceRoot||Tp(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Ip)throw new Error("file: protocol is not available in this PostCSS build");c.file=Ip(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=$l({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Hl(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),zp=Up;Up.default=Up,Lp&&Lp.registerInput&&Lp.registerInput(Up);var qp=Wd.SourceMapConsumer,Hp=Wd.SourceMapGenerator,$p=Wd.dirname,Wp=Wd.relative,Vp=Wd.resolve,Yp=Wd.sep,Xp=Wd.pathToFileURL,Jp=zp,Gp=Boolean(qp&&Hp),Kp=Boolean($p&&Vp&&Wp&&Yp),Zp=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"===typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"===typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=th(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||$p(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new qp(r.text),o.sourcesContent&&(o.sourcesContent=null)):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Kp&&Gp&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Hp.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Hp({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new Hp({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),t=a.match(/\n/g),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?$p(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=$p(Vp(r,this.mapOpts.annotation)));var n=Wp(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new Jp(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Xp){var r=Xp(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Yp&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Qp=Zp,ef=hp,tf=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Vl(t,e),t}(ef),rf=tf;tf.default=tf;var nf,of,sf,af,cf=Gd.isClean,uf=Gd.my,lf=fp,hf=rf,df=hp;function pf(e){return e.map(function(e){return e.nodes&&(e.nodes=pf(e.nodes)),delete e.source,e})}function ff(e){if(e[cf]=!1,e.proxyOf.nodes)for(var t,r=th(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;ff(n)}}var gf=function(e){function t(){return e.apply(this,arguments)||this}Vl(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=th(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=th(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=th(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;this.indexes[n]+=1}return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"===typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"===typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"===typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=th(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=th(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=pf(nf(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=th(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=th(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new lf(e)]}else if(e.selector)e=[new of(e)];else if(e.name)e=[new sf(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new hf(e)]}var l=e.map(function(e){return e[uf]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[cf]&&ff(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=th(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=th(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=th(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?Yl(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?Yl(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?Yl(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},Hl(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(df);gf.registerParse=function(e){nf=e},gf.registerRule=function(e){of=e},gf.registerAtRule=function(e){sf=e},gf.registerRoot=function(e){af=e};var mf=gf;gf.default=gf,gf.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,sf.prototype):"rule"===e.type?Object.setPrototypeOf(e,of.prototype):"decl"===e.type?Object.setPrototypeOf(e,lf.prototype):"comment"===e.type?Object.setPrototypeOf(e,hf.prototype):"root"===e.type&&Object.setPrototypeOf(e,af.prototype),e[uf]=!0,e.nodes&&e.nodes.forEach(function(e){gf.rebuild(e)})};var vf,yf,wf=mf,bf=function(e){function t(t){var r;return r=e.call(this,$l({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Vl(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new vf(new yf,this,e);return t.stringify()},t}(wf);bf.registerLazyResult=function(e){vf=e},bf.registerProcessor=function(e){yf=e};var _f=bf;bf.default=bf;var kf=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),Sf=kf;kf.default=kf;var xf=Sf,Cf=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new xf(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Hl(e,[{key:"content",get:function(){return this.css}}]),e}(),Ef=Cf;Cf.default=Cf;var Of="'".charCodeAt(0),Af='"'.charCodeAt(0),If="\\".charCodeAt(0),Tf="/".charCodeAt(0),Mf="\n".charCodeAt(0),Rf=" ".charCodeAt(0),Pf="\f".charCodeAt(0),Lf="\t".charCodeAt(0),Df="\r".charCodeAt(0),Bf="[".charCodeAt(0),Nf="]".charCodeAt(0),jf="(".charCodeAt(0),Ff=")".charCodeAt(0),Uf="{".charCodeAt(0),zf="}".charCodeAt(0),qf=";".charCodeAt(0),Hf="*".charCodeAt(0),$f=":".charCodeAt(0),Wf="@".charCodeAt(0),Vf=/[\t\n\f\r "#'()/;[\\\]{}]/g,Yf=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Xf=/.[\r\n"'(/\\]/,Jf=/[\da-f]/i,Gf=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,g=0,m=[],v=[];function y(){return g}function w(t){throw e.error("Unclosed "+t,g)}function b(){return 0===v.length&&g>=f}function _(e){if(v.length)return v.pop();if(!(g>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(g),r){case Mf:case Rf:case Lf:case Df:case Pf:n=g;do{n+=1,r=d.charCodeAt(n)}while(r===Rf||r===Mf||r===Lf||r===Df||r===Pf);h=["space",d.slice(g,n)],g=n-1;break;case Bf:case Nf:case Uf:case zf:case $f:case qf:case Ff:var y=String.fromCharCode(r);h=[y,y,g];break;case jf:if(u=m.length?m.pop()[1]:"",l=d.charCodeAt(g+1),"url"===u&&l!==Of&&l!==Af&&l!==Rf&&l!==Mf&&l!==Lf&&l!==Pf&&l!==Df){n=g;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=g;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===If)c-=1,a=!a}while(a);h=["brackets",d.slice(g,n+1),g,n],g=n}else n=d.indexOf(")",g+1),o=d.slice(g,n+1),-1===n||Xf.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Of:case Af:i=r===Of?"'":'"',n=g;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=g+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===If)c-=1,a=!a}while(a);h=["string",d.slice(g,n+1),g,n],g=n;break;case Wf:Vf.lastIndex=g+1,Vf.test(d),n=0===Vf.lastIndex?d.length-1:Vf.lastIndex-2,h=["at-word",d.slice(g,n+1),g,n],g=n;break;case If:n=g,s=!0;while(d.charCodeAt(n+1)===If)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==Tf&&r!==Rf&&r!==Mf&&r!==Lf&&r!==Df&&r!==Pf&&(n+=1,Jf.test(d.charAt(n)))){while(Jf.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===Rf&&(n+=1)}h=["word",d.slice(g,n+1),g,n],g=n;break;default:r===Tf&&d.charCodeAt(g+1)===Hf?(n=d.indexOf("*/",g+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(g,n+1),g,n],g=n):(Yf.lastIndex=g+1,Yf.test(d),n=0===Yf.lastIndex?d.length-1:Yf.lastIndex-2,h=["word",d.slice(g,n+1),g,n],m.push(h),g=n);break}return g++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},Kf=mf,Zf=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Vl(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Kf),Qf=Zf;Zf.default=Zf,Kf.registerAtRule(Zf);var eg,tg,rg=mf,ng=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Vl(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=th(i);!(o=s()).done;){var a=o.value;a.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new eg(new tg,this,e);return t.stringify()},t}(rg);ng.registerLazyResult=function(e){eg=e},ng.registerProcessor=function(e){tg=e};var ig=ng;ng.default=ng,rg.registerRoot(ng);var og={comma:function(e){return og.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return og.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=th(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},sg=og;og.default=og;var ag=mf,cg=sg,ug=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Vl(t,e),Hl(t,[{key:"selectors",get:function(){return cg.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(ag),lg=ug;ug.default=ug,ag.registerRule(ug);var hg=fp,dg=Gf,pg=rf,fg=Qf,gg=ig,mg=lg,vg={empty:!0,space:!0};function yg(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var wg=function(){function e(e){this.input=e,this.root=new gg,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new fg;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){n=a.length-1,r=a[n];while(r&&"space"===r[0])r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=th(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new pg;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=dg(this.input)},t.decl=function(e,t){var r=new hg;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||yg(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new mg;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",vg[a]||vg[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new mg;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),bg=wg,_g=mf,kg=bg,Sg=zp;function xg(e,t){var r=new Sg(e,t),n=new kg(r);try{n.parse()}catch(i){throw i}return n.root}var Cg=xg;xg.default=xg,_g.registerParse(xg);var Eg=Gd.isClean,Og=Gd.my,Ag=Qp,Ig=np,Tg=mf,Mg=_f,Rg=Ef,Pg=Cg,Lg=ig,Dg={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Bg={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Ng={Once:!0,postcssPlugin:!0,prepare:!0},jg=0;function Fg(e){return"object"===("undefined"===typeof e?"undefined":Kl(e))&&"function"===typeof e.then}function Ug(e){var t=!1,r=Dg[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,jg,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,jg,r+"Exit"]:[r,r+"Exit"]}function zg(e){var t;return t="document"===e.type?["Document",jg,"DocumentExit"]:"root"===e.type?["Root",jg,"RootExit"]:Ug(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function qg(e){return e[Eg]=!1,e.nodes&&e.nodes.forEach(function(e){return qg(e)}),e}var Hg={},$g=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Kl(r))||null===r||"root"!==r.type&&"document"!==r.type)if(Yl(r,e)||Yl(r,Rg))i=qg(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Pg;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[Og]&&Tg.rebuild(i)}else i=qg(r);this.result=new Rg(t,i,n),this.helpers=$l({},Hg,{postcss:Hg,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Kl(e))&&e.prepare?$l({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(n){console&&console.error&&console.error(n)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=th(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Kl(i)))for(var o in i){if(!Bg[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Ng[o])if("object"===Kl(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"===typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return Ul(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return rh(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!Fg(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[Eg])return[3,14];o[Eg]=!0,s=[zg(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!Fg(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return rh(this,function(a){switch(a.label){case 0:t=d.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=th(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,nh(l())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===("undefined"===typeof e?"undefined":Kl(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return Fg(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"===typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Ig;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Ag(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=th(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(Fg(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[Eg])i[Eg]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=th(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=th(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Fg(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[Eg])return a[Eg]=!0,void e.push(zg(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===jg)return void(r.nodes&&r.nodes.length&&(r[Eg]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Eg]=!0;for(var r,n=Ug(e),i=th(n);!(r=i()).done;){var o=r.value;if(o===jg)e.nodes&&e.each(function(e){e[Eg]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Hl(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();$g.registerPostcss=function(e){Hg=e};var Wg=$g;$g.default=$g,Lg.registerLazyResult($g),Mg.registerLazyResult($g);var Vg=Qp,Yg=np,Xg=Cg,Jg=Ef,Gg=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Yg;this.result=new Jg(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Vg(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Hl(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Xg;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Kg=Gg;Gg.default=Gg;var Zg=Kg,Qg=Wg,em=_f,tm=ig,rm=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=th(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Kl(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Kl(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Kl(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Qg(this,e,t):new Zg(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),nm=rm;rm.default=rm,tm.registerProcessor(rm),em.registerProcessor(rm);var im=fp,om=Ep,sm=rf,am=Qf,cm=zp,um=ig,lm=lg;function hm(e,t){if(Array.isArray(e))return e.map(function(e){return hm(e)});var r=e.inputs,n=Jl(e,["inputs"]);if(r){t=[];for(var i,o=th(r);!(i=o()).done;){var s=i.value,a=$l({},s,{__proto__:cm.prototype});a.map&&(a.map=$l({},a.map,{__proto__:om.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return hm(e,t)})),n.source){var c=n.source,u=c.inputId,l=Jl(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new um(n);if("decl"===n.type)return new im(n);if("rule"===n.type)return new lm(n);if("comment"===n.type)return new sm(n);if("atrule"===n.type)return new am(n);throw new Error("Unknown node type: "+e.type)}var dm=hm;hm.default=hm;var pm=Jd,fm=fp,gm=Wg,mm=mf,vm=nm,ym=np,wm=dm,bm=_f,_m=Sf,km=rf,Sm=Qf,xm=Ef,Cm=zp,Em=Cg,Om=sg,Am=lg,Im=ig,Tm=hp;function Mm(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new vm(t)}Mm.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new vm).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Mm([i(r)]).process(e,t)},i},Mm.stringify=ym,Mm.parse=Em,Mm.fromJSON=wm,Mm.list=Om,Mm.comment=function(e){return new km(e)},Mm.atRule=function(e){return new Sm(e)},Mm.decl=function(e){return new fm(e)},Mm.rule=function(e){return new Am(e)},Mm.root=function(e){return new Im(e)},Mm.document=function(e){return new bm(e)},Mm.CssSyntaxError=pm,Mm.Declaration=fm,Mm.Container=mm,Mm.Processor=vm,Mm.Document=bm,Mm.Comment=km,Mm.Warning=_m,Mm.AtRule=Sm,Mm.Result=xm,Mm.Input=Cm,Mm.Rule=Am,Mm.Root=Im,Mm.Node=Tm,gm.registerPostcss(Mm);var Rm=Mm;Mm.default=Mm;var Pm=Nd(Rm);Pm.stringify,Pm.fromJSON,Pm.plugin,Pm.parse,Pm.list,Pm.document,Pm.comment,Pm.atRule,Pm.rule,Pm.decl,Pm.root,Pm.CssSyntaxError,Pm.Declaration,Pm.Container,Pm.Processor,Pm.Document,Pm.Comment,Pm.Warning,Pm.AtRule,Pm.Result,Pm.Input,Pm.Rule,Pm.Root,Pm.Node;var Lm=Object.defineProperty,Dm=function(e,t,r){return t in e?Lm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Bm=function(e,t,r){return Dm(e,"symbol"!==("undefined"===typeof t?"undefined":Kl(t))?t+"":t,r)};function Nm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function jm(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return Yl(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var Fm={exports:{}},Um=String,zm=function(){return{isColorSupported:!1,reset:Um,bold:Um,dim:Um,italic:Um,underline:Um,inverse:Um,hidden:Um,strikethrough:Um,black:Um,red:Um,green:Um,yellow:Um,blue:Um,magenta:Um,cyan:Um,white:Um,gray:Um,bgBlack:Um,bgRed:Um,bgGreen:Um,bgYellow:Um,bgBlue:Um,bgMagenta:Um,bgCyan:Um,bgWhite:Um}};Fm.exports=zm(),Fm.exports.createColors=zm;var qm=Fm.exports,Hm={},$m=Object.freeze(Object.defineProperty({__proto__:null,default:Hm},Symbol.toStringTag,{value:"Module"})),Wm=jm($m),Vm=qm,Ym=Wm,Xm=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof i&&("number"===typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}Vl(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Vm.isColorSupported),Ym&&e&&(r=Ym(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=Vm.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Ql(Error)),Jm=Xm;Xm.default=Xm;var Gm={};Gm.isClean=Symbol("isClean"),Gm.my=Symbol("my");var Km={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Zm(e){return e[0].toUpperCase()+e.slice(1)}var Qm=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if("undefined"!==typeof e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&(n=e.raws[t],"undefined"!==typeof n))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Km[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+Zm(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=Km[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,"undefined"!==typeof t))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,"undefined"!==typeof t))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),ev=Qm;Qm.default=Qm;var tv=ev;function rv(e,t){var r=new tv(t);r.stringify(e)}var nv=rv;rv.default=rv;var iv=Gm.isClean,ov=Gm.my,sv=Jm,av=ev,cv=nv;function uv(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o="undefined"===typeof i?"undefined":Kl(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return uv(e,r)}):("object"===o&&null!==i&&(i=uv(i)),r[n]=i)}return r}var lv=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[iv]=!1,this[ov]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=th(e[t]);!(r=n()).done;){var i=r.value;"function"===typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=uv(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new sv(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[iv]){this[iv]=!1;var e=this;while(e=e.parent)e[iv]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"===typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new av;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=th(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===("undefined"===typeof e?"undefined":Kl(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Kl(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=cv),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},Hl(e,[{key:"proxyOf",get:function(){return this}}]),e}(),hv=lv;lv.default=lv;var dv=hv,pv=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=$l({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Vl(t,e),Hl(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(dv),fv=pv;pv.default=pv;var gv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",mv=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=gv[64*Math.random()|0];return t},vv={nanoid:mv},yv=Wm.SourceMapConsumer,wv=Wm.SourceMapGenerator,bv=Wm.existsSync,_v=Wm.readFileSync,kv=Wm.dirname,Sv=Wm.join;function xv(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var Cv=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=kv(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new yv(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return xv(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":Kl(e))&&("string"===typeof e.mappings||"string"===typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=kv(e),bv(e))return this.mapFile=e,_v(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"===typeof t)return t;if("function"!==typeof t){if(Yl(t,yv))return wv.fromSourceMap(t).toString();if(Yl(t,wv))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Sv(kv(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Ev=Cv;Cv.default=Cv;var Ov=Wm.SourceMapConsumer,Av=Wm.SourceMapGenerator,Iv=Wm.fileURLToPath,Tv=Wm.pathToFileURL,Mv=Wm.isAbsolute,Rv=Wm.resolve,Pv=vv.nanoid,Lv=Wm,Dv=Jm,Bv=Ev,Nv=Symbol("fromOffsetCache"),jv=Boolean(Ov&&Av),Fv=Boolean(Rv&&Mv),Uv=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Kl(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Fv||/^\w+:\/\//.test(t.from)||Mv(t.from)?this.file=t.from:this.file=Rv(t.from)),Fv&&jv){var r=new Bv(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Pv(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===("undefined"===typeof t?"undefined":Kl(t))){var a=t,c=r;if("number"===typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"===typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return i=d?new Dv(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new Dv(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Tv&&(i.input.url=Tv(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[Nv])r=this[Nv];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[Nv]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Rv(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"===typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=Mv(a.source)?Tv(a.source):new URL(a.source,this.map.consumer().sourceRoot||Tv(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Iv)throw new Error("file: protocol is not available in this PostCSS build");c.file=Iv(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=$l({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Hl(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),zv=Uv;Uv.default=Uv,Lv&&Lv.registerInput&&Lv.registerInput(Uv);var qv=Wm.SourceMapConsumer,Hv=Wm.SourceMapGenerator,$v=Wm.dirname,Wv=Wm.relative,Vv=Wm.resolve,Yv=Wm.sep,Xv=Wm.pathToFileURL,Jv=zv,Gv=Boolean(qv&&Hv),Kv=Boolean($v&&Vv&&Wv&&Yv),Zv=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"===typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"===typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=th(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||$v(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new qv(r.text),o.sourcesContent&&(o.sourcesContent=null)):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Kv&&Gv&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Hv.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Hv({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new Hv({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),t=a.match(/\n/g),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?$v(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=$v(Vv(r,this.mapOpts.annotation)));var n=Wv(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new Jv(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Xv){var r=Xv(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Yv&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Qv=Zv,ey=hv,ty=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Vl(t,e),t}(ey),ry=ty;ty.default=ty;var ny,iy,oy,sy,ay=Gm.isClean,cy=Gm.my,uy=fv,ly=ry,hy=hv;function dy(e){return e.map(function(e){return e.nodes&&(e.nodes=dy(e.nodes)),delete e.source,e})}function py(e){if(e[ay]=!1,e.proxyOf.nodes)for(var t,r=th(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;py(n)}}var fy=function(e){function t(){return e.apply(this,arguments)||this}Vl(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=th(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=th(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=th(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;this.indexes[n]+=1}return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"===typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"===typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"===typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=th(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=th(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=dy(ny(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=th(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=th(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new uy(e)]}else if(e.selector)e=[new iy(e)];else if(e.name)e=[new oy(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new ly(e)]}var l=e.map(function(e){return e[cy]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[ay]&&py(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=th(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=th(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=th(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?Yl(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?Yl(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?Yl(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},Hl(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(hy);fy.registerParse=function(e){ny=e},fy.registerRule=function(e){iy=e},fy.registerAtRule=function(e){oy=e},fy.registerRoot=function(e){sy=e};var gy=fy;fy.default=fy,fy.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,oy.prototype):"rule"===e.type?Object.setPrototypeOf(e,iy.prototype):"decl"===e.type?Object.setPrototypeOf(e,uy.prototype):"comment"===e.type?Object.setPrototypeOf(e,ly.prototype):"root"===e.type&&Object.setPrototypeOf(e,sy.prototype),e[cy]=!0,e.nodes&&e.nodes.forEach(function(e){fy.rebuild(e)})};var my,vy,yy=gy,wy=function(e){function t(t){var r;return r=e.call(this,$l({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Vl(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new my(new vy,this,e);return t.stringify()},t}(yy);wy.registerLazyResult=function(e){my=e},wy.registerProcessor=function(e){vy=e};var by=wy;wy.default=wy;var _y=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),ky=_y;_y.default=_y;var Sy=ky,xy=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new Sy(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Hl(e,[{key:"content",get:function(){return this.css}}]),e}(),Cy=xy;xy.default=xy;var Ey="'".charCodeAt(0),Oy='"'.charCodeAt(0),Ay="\\".charCodeAt(0),Iy="/".charCodeAt(0),Ty="\n".charCodeAt(0),My=" ".charCodeAt(0),Ry="\f".charCodeAt(0),Py="\t".charCodeAt(0),Ly="\r".charCodeAt(0),Dy="[".charCodeAt(0),By="]".charCodeAt(0),Ny="(".charCodeAt(0),jy=")".charCodeAt(0),Fy="{".charCodeAt(0),Uy="}".charCodeAt(0),zy=";".charCodeAt(0),qy="*".charCodeAt(0),Hy=":".charCodeAt(0),$y="@".charCodeAt(0),Wy=/[\t\n\f\r "#'()/;[\\\]{}]/g,Vy=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Yy=/.[\r\n"'(/\\]/,Xy=/[\da-f]/i,Jy=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,g=0,m=[],v=[];function y(){return g}function w(t){throw e.error("Unclosed "+t,g)}function b(){return 0===v.length&&g>=f}function _(e){if(v.length)return v.pop();if(!(g>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(g),r){case Ty:case My:case Py:case Ly:case Ry:n=g;do{n+=1,r=d.charCodeAt(n)}while(r===My||r===Ty||r===Py||r===Ly||r===Ry);h=["space",d.slice(g,n)],g=n-1;break;case Dy:case By:case Fy:case Uy:case Hy:case zy:case jy:var y=String.fromCharCode(r);h=[y,y,g];break;case Ny:if(u=m.length?m.pop()[1]:"",l=d.charCodeAt(g+1),"url"===u&&l!==Ey&&l!==Oy&&l!==My&&l!==Ty&&l!==Py&&l!==Ry&&l!==Ly){n=g;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=g;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===Ay)c-=1,a=!a}while(a);h=["brackets",d.slice(g,n+1),g,n],g=n}else n=d.indexOf(")",g+1),o=d.slice(g,n+1),-1===n||Yy.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Ey:case Oy:i=r===Ey?"'":'"',n=g;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=g+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===Ay)c-=1,a=!a}while(a);h=["string",d.slice(g,n+1),g,n],g=n;break;case $y:Wy.lastIndex=g+1,Wy.test(d),n=0===Wy.lastIndex?d.length-1:Wy.lastIndex-2,h=["at-word",d.slice(g,n+1),g,n],g=n;break;case Ay:n=g,s=!0;while(d.charCodeAt(n+1)===Ay)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==Iy&&r!==My&&r!==Ty&&r!==Py&&r!==Ly&&r!==Ry&&(n+=1,Xy.test(d.charAt(n)))){while(Xy.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===My&&(n+=1)}h=["word",d.slice(g,n+1),g,n],g=n;break;default:r===Iy&&d.charCodeAt(g+1)===qy?(n=d.indexOf("*/",g+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(g,n+1),g,n],g=n):(Vy.lastIndex=g+1,Vy.test(d),n=0===Vy.lastIndex?d.length-1:Vy.lastIndex-2,h=["word",d.slice(g,n+1),g,n],m.push(h),g=n);break}return g++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},Gy=gy,Ky=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Vl(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Gy),Zy=Ky;Ky.default=Ky,Gy.registerAtRule(Ky);var Qy,ew,tw=gy,rw=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Vl(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=th(i);!(o=s()).done;){var a=o.value;a.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new Qy(new ew,this,e);return t.stringify()},t}(tw);rw.registerLazyResult=function(e){Qy=e},rw.registerProcessor=function(e){ew=e};var nw=rw;rw.default=rw,tw.registerRoot(rw);var iw={comma:function(e){return iw.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return iw.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=th(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},ow=iw;iw.default=iw;var sw=gy,aw=ow,cw=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Vl(t,e),Hl(t,[{key:"selectors",get:function(){return aw.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(sw),uw=cw;cw.default=cw,sw.registerRule(cw);var lw=fv,hw=Jy,dw=ry,pw=Zy,fw=nw,gw=uw,mw={empty:!0,space:!0};function vw(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var yw=function(){function e(e){this.input=e,this.root=new fw,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new pw;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){n=a.length-1,r=a[n];while(r&&"space"===r[0])r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=th(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new dw;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=hw(this.input)},t.decl=function(e,t){var r=new lw;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||vw(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new gw;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",mw[a]||mw[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new gw;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),ww=yw,bw=gy,_w=ww,kw=zv;function Sw(e,t){var r=new kw(e,t),n=new _w(r);try{n.parse()}catch(i){throw i}return n.root}var xw=Sw;Sw.default=Sw,bw.registerParse(Sw);var Cw=Gm.isClean,Ew=Gm.my,Ow=Qv,Aw=nv,Iw=gy,Tw=by,Mw=Cy,Rw=xw,Pw=nw,Lw={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Dw={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Bw={Once:!0,postcssPlugin:!0,prepare:!0},Nw=0;function jw(e){return"object"===("undefined"===typeof e?"undefined":Kl(e))&&"function"===typeof e.then}function Fw(e){var t=!1,r=Lw[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Nw,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Nw,r+"Exit"]:[r,r+"Exit"]}function Uw(e){var t;return t="document"===e.type?["Document",Nw,"DocumentExit"]:"root"===e.type?["Root",Nw,"RootExit"]:Fw(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function zw(e){return e[Cw]=!1,e.nodes&&e.nodes.forEach(function(e){return zw(e)}),e}var qw={},Hw=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Kl(r))||null===r||"root"!==r.type&&"document"!==r.type)if(Yl(r,e)||Yl(r,Mw))i=zw(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Rw;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[Ew]&&Iw.rebuild(i)}else i=zw(r);this.result=new Mw(t,i,n),this.helpers=$l({},qw,{postcss:qw,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Kl(e))&&e.prepare?$l({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(n){console&&console.error&&console.error(n)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=th(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Kl(i)))for(var o in i){if(!Dw[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Bw[o])if("object"===Kl(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"===typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return Ul(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return rh(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!jw(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[Cw])return[3,14];o[Cw]=!0,s=[Uw(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!jw(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return rh(this,function(a){switch(a.label){case 0:t=d.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=th(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,nh(l())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===("undefined"===typeof e?"undefined":Kl(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return jw(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"===typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Aw;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Ow(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=th(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(jw(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[Cw])i[Cw]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=th(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=th(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(jw(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[Cw])return a[Cw]=!0,void e.push(Uw(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===Nw)return void(r.nodes&&r.nodes.length&&(r[Cw]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Cw]=!0;for(var r,n=Fw(e),i=th(n);!(r=i()).done;){var o=r.value;if(o===Nw)e.nodes&&e.each(function(e){e[Cw]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Hl(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();Hw.registerPostcss=function(e){qw=e};var $w=Hw;Hw.default=Hw,Pw.registerLazyResult(Hw),Tw.registerLazyResult(Hw);var Ww=Qv,Vw=nv,Yw=xw,Xw=Cy,Jw=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Vw;this.result=new Xw(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Ww(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Hl(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Yw;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Gw=Jw;Jw.default=Jw;var Kw=Gw,Zw=$w,Qw=by,eb=nw,tb=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=th(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Kl(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Kl(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Kl(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Zw(this,e,t):new Kw(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),rb=tb;tb.default=tb,eb.registerProcessor(tb),Qw.registerProcessor(tb);var nb=fv,ib=Ev,ob=ry,sb=Zy,ab=zv,cb=nw,ub=uw;function lb(e,t){if(Array.isArray(e))return e.map(function(e){return lb(e)});var r=e.inputs,n=Jl(e,["inputs"]);if(r){t=[];for(var i,o=th(r);!(i=o()).done;){var s=i.value,a=$l({},s,{__proto__:ab.prototype});a.map&&(a.map=$l({},a.map,{__proto__:ib.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return lb(e,t)})),n.source){var c=n.source,u=c.inputId,l=Jl(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new cb(n);if("decl"===n.type)return new nb(n);if("rule"===n.type)return new ub(n);if("comment"===n.type)return new ob(n);if("atrule"===n.type)return new sb(n);throw new Error("Unknown node type: "+e.type)}var hb=lb;lb.default=lb;var db=Jm,pb=fv,fb=$w,gb=gy,mb=rb,vb=nv,yb=hb,wb=by,bb=ky,_b=ry,kb=Zy,Sb=Cy,xb=zv,Cb=xw,Eb=ow,Ob=uw,Ab=nw,Ib=hv;function Tb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new mb(t)}Tb.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new mb).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Tb([i(r)]).process(e,t)},i},Tb.stringify=vb,Tb.parse=Cb,Tb.fromJSON=yb,Tb.list=Eb,Tb.comment=function(e){return new _b(e)},Tb.atRule=function(e){return new kb(e)},Tb.decl=function(e){return new pb(e)},Tb.rule=function(e){return new Ob(e)},Tb.root=function(e){return new Ab(e)},Tb.document=function(e){return new wb(e)},Tb.CssSyntaxError=db,Tb.Declaration=pb,Tb.Container=gb,Tb.Processor=mb,Tb.Document=wb,Tb.Comment=_b,Tb.Warning=bb,Tb.AtRule=kb,Tb.Result=Sb,Tb.Input=xb,Tb.Rule=Ob,Tb.Root=Ab,Tb.Node=Ib,fb.registerPostcss(Tb);var Mb=Tb;Tb.default=Tb;var Rb=Nm(Mb);Rb.stringify,Rb.fromJSON,Rb.plugin,Rb.parse,Rb.list,Rb.document,Rb.comment,Rb.atRule,Rb.rule,Rb.decl,Rb.root,Rb.CssSyntaxError,Rb.Declaration,Rb.Container,Rb.Processor,Rb.Document,Rb.Comment,Rb.Warning,Rb.AtRule,Rb.Result,Rb.Input,Rb.Rule,Rb.Root,Rb.Node;var Pb=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Bm(this,"parentElement",null),Bm(this,"parentNode",null),Bm(this,"ownerDocument"),Bm(this,"firstChild",null),Bm(this,"lastChild",null),Bm(this,"previousSibling",null),Bm(this,"nextSibling",null),Bm(this,"ELEMENT_NODE",1),Bm(this,"TEXT_NODE",3),Bm(this,"nodeType"),Bm(this,"nodeName"),Bm(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!Yl(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;while(t.parentNode){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},Hl(e,[{key:"childNodes",get:function(){var e=[],t=this.firstChild;while(t)e.push(t),t=t.nextSibling;return e}}]),e}(),Lb={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Db={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Bb={},Nb=function(){return!!globalThis.Zone};function jb(e){if(Bb[e])return Bb[e];var t=globalThis[e],r=t.prototype,n=e in Lb?Lb[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Db?Db[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"===typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!Nb())return Bb[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?Bb[e]=u:r}catch(l){return r}}var Fb={};function Ub(e,t,r){var n,i=e+"."+String(r);if(Fb[i])return Fb[i].call(t);var o=jb(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Fb[i]=s,s.call(t)):t[r]}var zb={};function qb(e,t,r){var n=e+"."+String(r);if(zb[n])return zb[n].bind(t);var i=jb(e),o=i[r];return"function"!==typeof o?t[r]:(zb[n]=o,o.bind(t))}function Hb(e){return Ub("Node",e,"childNodes")}function $b(e){return Ub("Node",e,"parentNode")}function Wb(e){return Ub("Node",e,"parentElement")}function Vb(e){return Ub("Node",e,"textContent")}function Yb(e,t){return qb("Node",e,"contains")(t)}function Xb(e){return qb("Node",e,"getRootNode")()}function Jb(e){return e&&"host"in e?Ub("ShadowRoot",e,"host"):null}function Gb(e){return e.styleSheets}function Kb(e){return e&&"shadowRoot"in e?Ub("Element",e,"shadowRoot"):null}function Zb(e,t){return Ub("Element",e,"querySelector")(t)}function Qb(e,t){return Ub("Element",e,"querySelectorAll")(t)}function e_(){return jb("MutationObserver").constructor}function t_(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var r_={childNodes:Hb,parentNode:$b,parentElement:Wb,textContent:Vb,contains:Yb,getRootNode:Xb,host:Jb,styleSheets:Gb,shadowRoot:Kb,querySelector:Zb,querySelectorAll:Qb,mutationObserver:e_,patch:t_};function n_(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var i_="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",o_={map:{},getId:function(){return console.error(i_),-1},getNode:function(){return console.error(i_),null},removeNodeFromMap:function(){console.error(i_)},has:function(){return console.error(i_),!1},reset:function(){console.error(i_)}};function s_(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var c=Date.now();i||!1!==r.leading||(i=c);var u=t-(c-i),l=this;u<=0||u>t?(n&&(clearTimeout(n),n=null),i=c,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},u))}}function a_(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return a_(e,t,o||{},!0)}}"undefined"!==typeof window&&window.Proxy&&window.Reflect&&(o_=new Proxy(o_,{get:function(e,t,r){return"map"===t&&console.error(i_),Reflect.get(e,t,r)}}));var c_=Date.now;function u_(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=r_.parentElement(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=r_.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function l_(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function h_(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function d_(e){if(!e)return null;var t=e.nodeType===e.ELEMENT_NODE?e:r_.parentElement(e);return t}function p_(e,t,r,n){if(!e)return!1;var i=d_(e);if(!i)return!1;try{if("string"===typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(Cd(i,t,n))return!0}catch(o){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function f_(e,t){return-1!==t.getId(e)}function g_(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||t.getId(e)===dd}function m_(e,t){if(Bh(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=r_.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||m_(n,t))}function v_(e){return Boolean(e.changedTouches)}function y_(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function w_(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function b_(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function __(e){return!!e&&(Yl(e,Pb)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(r_.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(c_=function(){return(new Date).getTime()});var k_=function(){function e(){ah(this,"id",1),ah(this,"styleIDMap",new WeakMap),ah(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function S_(e){var t,r=null;return"getRootNode"in e&&(null==(t=r_.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&r_.host(r_.getRootNode(e))&&(r=r_.host(r_.getRootNode(e))),r}function x_(e){var t,r=e;while(t=S_(r))r=t;return r}function C_(e){var t=e.ownerDocument;if(!t)return!1;var r=x_(e);return r_.contains(t,r)}function E_(e){var t=e.ownerDocument;return!!t&&(r_.contains(t,e)||C_(e))}var O_=function(e){return e[e["DomContentLoaded"]=0]="DomContentLoaded",e[e["Load"]=1]="Load",e[e["FullSnapshot"]=2]="FullSnapshot",e[e["IncrementalSnapshot"]=3]="IncrementalSnapshot",e[e["Meta"]=4]="Meta",e[e["Custom"]=5]="Custom",e[e["Plugin"]=6]="Plugin",e}(O_||{}),A_=function(e){return e[e["Mutation"]=0]="Mutation",e[e["MouseMove"]=1]="MouseMove",e[e["MouseInteraction"]=2]="MouseInteraction",e[e["Scroll"]=3]="Scroll",e[e["ViewportResize"]=4]="ViewportResize",e[e["Input"]=5]="Input",e[e["TouchMove"]=6]="TouchMove",e[e["MediaInteraction"]=7]="MediaInteraction",e[e["StyleSheetRule"]=8]="StyleSheetRule",e[e["CanvasMutation"]=9]="CanvasMutation",e[e["Font"]=10]="Font",e[e["Log"]=11]="Log",e[e["Drag"]=12]="Drag",e[e["StyleDeclaration"]=13]="StyleDeclaration",e[e["Selection"]=14]="Selection",e[e["AdoptedStyleSheet"]=15]="AdoptedStyleSheet",e[e["CustomElement"]=16]="CustomElement",e}(A_||{}),I_=function(e){return e[e["MouseUp"]=0]="MouseUp",e[e["MouseDown"]=1]="MouseDown",e[e["Click"]=2]="Click",e[e["ContextMenu"]=3]="ContextMenu",e[e["DblClick"]=4]="DblClick",e[e["Focus"]=5]="Focus",e[e["Blur"]=6]="Blur",e[e["TouchStart"]=7]="TouchStart",e[e["TouchMove_Departed"]=8]="TouchMove_Departed",e[e["TouchEnd"]=9]="TouchEnd",e[e["TouchCancel"]=10]="TouchCancel",e}(I_||{}),T_=function(e){return e[e["Mouse"]=0]="Mouse",e[e["Pen"]=1]="Pen",e[e["Touch"]=2]="Touch",e}(T_||{}),M_=function(e){return e[e["2D"]=0]="2D",e[e["WebGL"]=1]="WebGL",e[e["WebGL2"]=2]="WebGL2",e}(M_||{}),R_=function(e){return e[e["Play"]=0]="Play",e[e["Pause"]=1]="Pause",e[e["Seeked"]=2]="Seeked",e[e["VolumeChange"]=3]="VolumeChange",e[e["RateChange"]=4]="RateChange",e}(R_||{}),P_=function(e){return e[e["Document"]=0]="Document",e[e["DocumentType"]=1]="DocumentType",e[e["Element"]=2]="Element",e[e["Text"]=3]="Text",e[e["CDATA"]=4]="CDATA",e[e["Comment"]=5]="Comment",e}(P_||{});function L_(e){return"__ln"in e}var D_,B_=function(){function e(){ah(this,"length",0),ah(this,"head",null),ah(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&L_(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&L_(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),N_=function(e,t){return e+"@"+t},j_=function(){function e(){var e=this;ah(this,"frozen",!1),ah(this,"locked",!1),ah(this,"texts",[]),ah(this,"attributes",[]),ah(this,"attributeMap",new WeakMap),ah(this,"removes",[]),ah(this,"mapRemoves",[]),ah(this,"movedMap",{}),ah(this,"addedSet",new Set),ah(this,"movedSet",new Set),ah(this,"droppedSet",new Set),ah(this,"removesSubTreeCache",new Set),ah(this,"mutationCb"),ah(this,"blockClass"),ah(this,"blockSelector"),ah(this,"maskTextClass"),ah(this,"maskTextSelector"),ah(this,"inlineStylesheet"),ah(this,"maskInputOptions"),ah(this,"maskTextFn"),ah(this,"maskInputFn"),ah(this,"keepIframeSrcFn"),ah(this,"recordCanvas"),ah(this,"inlineImages"),ah(this,"slimDOMOptions"),ah(this,"dataURLOptions"),ah(this,"doc"),ah(this,"mirror"),ah(this,"iframeManager"),ah(this,"stylesheetManager"),ah(this,"shadowDomManager"),ah(this,"canvasManager"),ah(this,"processedNodeManager"),ah(this,"unattachedDoc"),ah(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),ah(this,"emit",function(){if(!e.frozen&&!e.locked){var t=[],r=new Set,n=new B_,i=function(t){var r=t,n=dd;while(n===dd)r=r&&r.nextSibling,n=r&&e.mirror.getId(r);return n},o=function(o){var s=r_.parentNode(o);if(s&&E_(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var c=s.tagName;if("TEXTAREA"===c)return;"STYLE"===c&&e.addedSet.has(s)&&(a=!0)}var u=Bh(s)?e.mirror.getId(S_(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=Dd(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){w_(t,e.mirror)&&e.iframeManager.addIframe(t),b_(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),__(o)&&e.shadowDomManager.addShadowRoot(r_.shadowRoot(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:u,nextId:l,node:h}),r.add(h.id))}};while(e.mapRemoves.length){var s=e.mapRemoves.shift();e.cleanupRemovedNode(s),e.mirror.removeNodeFromMap(s)}for(var a,c=th(e.movedSet);!(a=c()).done;){var u=a.value;z_(e.removesSubTreeCache,u,e.mirror)&&!e.movedSet.has(r_.parentNode(u))||o(u)}for(var l,h=th(e.addedSet);!(l=h()).done;){var d=l.value;H_(e.droppedSet,d)||z_(e.removesSubTreeCache,d,e.mirror)?H_(e.movedSet,d)?o(d):e.droppedSet.add(d):o(d)}var p=null;while(n.length){var f=null;if(p){var g=e.mirror.getId(r_.parentNode(p.value)),m=i(p.value);-1!==g&&-1!==m&&(f=p)}if(!f){var v=n.tail;while(v){var y=v;if(v=v.previous,y){var w=e.mirror.getId(r_.parentNode(y.value)),b=i(y.value);if(-1===b)continue;if(-1!==w){f=y;break}var _=y.value,k=r_.parentNode(_);if(k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var S=r_.host(k),x=e.mirror.getId(S);if(-1!==x){f=y;break}}}}}if(!f){while(n.head)n.removeNode(n.head.value);break}p=f.previous,n.removeNode(f.value),o(f.value)}var C={texts:e.texts.map(function(t){var r=t.node,n=r_.parentNode(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"===typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(C.texts.length||C.attributes.length||C.removes.length||C.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(C))}}),ah(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(r_.childNodes(t),function(e){return r_.textContent(e)||""}).join("");r.attributes.value=Yh({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:Kh(t),value:n,maskInputFn:e.maskInputFn})}),ah(this,"processMutation",function(t){if(!g_(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=r_.textContent(t.target);p_(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:Ed(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,d_(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=Kh(n);o=Yh({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(p_(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o)){if(n.contentDocument)return;i="rr_src"}if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!Sd(n.tagName,i))if(a.attributes[i]=kd(e.doc,Xh(n.tagName),Xh(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(v){e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(var u,l=th(Array.from(n.style));!(u=l()).done;){var h=u.value,d=n.style.getPropertyValue(h),p=n.style.getPropertyPriority(h);d!==c.style.getPropertyValue(h)||p!==c.style.getPropertyPriority(h)?a.styleDiff[h]=""===p?d:[d,p]:a._unchangedStyles[h]=[d,p]}for(var f,g=th(Array.from(c.style));!(f=g()).done;){var m=f.value;""===n.style.getPropertyValue(m)&&(a.styleDiff[m]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes["rr_open_mode"]="modal":a.attributes["rr_open_mode"]="non-modal");break;case"childList":if(p_(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=Bh(t.target)?e.mirror.getId(r_.host(t.target)):e.mirror.getId(t.target);p_(t.target,e.blockClass,e.blockSelector,!1)||g_(r,e.mirror,e.slimDOMOptions)||!f_(r,e.mirror)||(e.addedSet.has(r)?(F_(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||m_(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[N_(n,i)]?F_(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!Bh(t.target)||!Nh(t.target))||void 0}),U_(r,e.removesSubTreeCache))),e.mapRemoves.push(r))});break}}),ah(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!e.addedSet.has(t)&&!e.movedSet.has(t)){if(e.mirror.hasNode(t)){if(g_(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[N_(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);p_(t,e.blockClass,e.blockSelector,!1)||(r_.childNodes(t).forEach(function(t){return e.genAdds(t)}),__(t)&&r_.childNodes(r_.shadowRoot(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}}),ah(this,"cleanupRemovedNode",function(t){if("IFRAME"===t.nodeName)try{e.iframeManager.removeIframe(t)}catch(r){}else try{e.stylesheetManager.cleanupStylesheetsForRemovedNode(t)}catch(r){}t.childNodes.forEach(function(t){e.cleanupRemovedNode(t)})})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function F_(e,t){e.delete(t),r_.childNodes(t).forEach(function(t){return F_(e,t)})}function U_(e,t){var r=[e];while(r.length){var n=r.pop();t.has(n)||(t.add(n),r_.childNodes(n).forEach(function(e){return r.push(e)}))}}function z_(e,t,r){return 0!==e.size&&q_(e,t)}function q_(e,t,r){var n=r_.parentNode(t);return!!n&&e.has(n)}function H_(e,t){return 0!==e.size&&$_(e,t)}function $_(e,t){var r=r_.parentNode(t);return!!r&&(!!e.has(r)||$_(e,r))}function W_(e){D_=e}function V_(){D_=void 0}var Y_=function(e){if(!D_)return e;var t=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(i){if(D_&&!0===D_(i))return;throw i}};return t},X_=[];function J_(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(r){}return e&&e.target}function G_(e,t){var r=new j_;X_.push(r),r.init(e);var n=new(e_())(Y_(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function K_(e){for(var t=X_.length-1;t>=0;t--){var r=X_[t];r.getDoc()===e&&X_.splice(t,1)}}function Z_(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o,s="number"===typeof r.mousemove?r.mousemove:50,a="number"===typeof r.mousemoveCallback?r.mousemoveCallback:500,c=[],u=s_(Y_(function(e){var r=Date.now()-o;t(c.map(function(e){return e.timeOffset-=r,e}),e),c=[],o=null}),a),l=Y_(s_(Y_(function(e){var t=J_(e),r=v_(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=c_()),c.push({x:n,y:s,id:i.getId(t),timeOffset:c_()-o}),u("undefined"!==typeof DragEvent&&Yl(e,DragEvent)?A_.Drag:Yl(e,MouseEvent)?A_.MouseMove:A_.TouchMove)}),s,{trailing:!1})),h=[n_("mousemove",l,n),n_("touchmove",l,n),n_("drag",l,n)];return Y_(function(){h.forEach(function(e){return e()})})}function Q_(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[],u=null,l=function(e){return function(r){var s=J_(r);if(!p_(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=T_.Mouse;break;case"touch":a=T_.Touch;break;case"pen":a=T_.Pen;break}a===T_.Touch?I_[e]===I_.MouseDown?c="TouchStart":I_[e]===I_.MouseUp&&(c="TouchEnd"):T_.Pen}else v_(r)&&(a=T_.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===T_.Touch||c.startsWith("Mouse")&&a===T_.Mouse)&&(a=null)):I_[e]===I_.Click&&(a=u,u=null);var l=v_(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),d=l.clientX,p=l.clientY;Y_(t)($l({type:I_[c],id:h,x:d,y:p},null!==a&&{pointerType:a}))}}}};return Object.keys(I_).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var t=Xh(e),n=l(e);if(window.PointerEvent)switch(I_[e]){case I_.MouseDown:case I_.MouseUp:t=t.replace("mouse","pointer");break;case I_.TouchStart:case I_.TouchEnd:return}c.push(n_(t,n,r))}),Y_(function(){c.forEach(function(e){return e()})})}function ek(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling,a=Y_(s_(Y_(function(e){var s=J_(e);if(s&&!p_(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var c=u_(r.defaultView);t({id:a,x:c.left,y:c.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100));return n_("scroll",a,r)}function tk(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1,s=Y_(s_(Y_(function(){var e=l_(),t=h_();i===e&&o===t||(r({width:Number(t),height:Number(e)}),i=e,o=t)}),200));return n_("resize",s,n)}var rk=["INPUT","TEXTAREA","SELECT"],nk=new WeakMap;function ik(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function d(e){var t=J_(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=r_.parentElement(t)),t&&l&&!(rk.indexOf(l)<0)&&!p_(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var d=t.value,f=!1,g=Kh(t)||"";"radio"===g||"checkbox"===g?f=t.checked:(c[l.toLowerCase()]||c[g])&&(d=Yh({element:t,maskInputOptions:c,tagName:l,type:g,value:d,maskInputFn:u})),p(t,h?{text:d,isChecked:f,userTriggered:n}:{text:d,isChecked:f});var m=t.name;"radio"===g&&m&&f&&r.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach(function(e){if(e!==t){var r=e.value;p(e,h?{text:r,isChecked:!f,userTriggered:!1}:{text:r,isChecked:!f})}})}}function p(e,r){var i=nk.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){nk.set(e,r);var o=n.getId(e);Y_(t)($l({},r,{id:o}))}}var f="last"===l.input?["change"]:["input","change"],g=f.map(function(e){return n_(e,Y_(d),r)}),m=r.defaultView;if(!m)return function(){g.forEach(function(e){return e()})};var v,y=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),w=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];y&&y.set&&(v=g).push.apply(v,[].concat(w.map(function(e){return a_(e[0],e[1],{set:function(){Y_(d)({target:this,isTrusted:!1})}},!1,m)})));return Y_(function(){g.forEach(function(e){return e()})})}function ok(e){var t=[];function r(e,t){if(mk("CSSGroupingRule")&&Yl(e.parentRule,CSSGroupingRule)||mk("CSSMediaRule")&&Yl(e.parentRule,CSSMediaRule)||mk("CSSSupportsRule")&&Yl(e.parentRule,CSSSupportsRule)||mk("CSSConditionRule")&&Yl(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules),n=r.indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var i=Array.from(e.parentStyleSheet.cssRules),o=i.indexOf(e);t.unshift(o)}return t}return r(e,t)}function sk(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function ak(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Y_(function(e,t,o){var s=o[0],a=o[1],c=sk(t,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:a}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a,c,u=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:Y_(function(e,t,o){var s=o[0],a=sk(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:s}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(a=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:Y_(function(e,t,o){var s=o[0],a=sk(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replace:s}),e.apply(t,o)})})),o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:Y_(function(e,t,o){var s=o[0],a=sk(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replaceSync:s}),e.apply(t,o)})}));var l={};vk("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(vk("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),vk("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),vk("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],o=e[1];h[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(h[t].insertRule,{apply:Y_(function(e,t,o){var s=o[0],a=o[1],c=sk(t.parentStyleSheet,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:[].concat(ok(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:Y_(function(e,t,o){var s=o[0],a=sk(t.parentStyleSheet,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:[].concat(ok(t),[s])}]}),e.apply(t,o)})})}),Y_(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=u,a&&(o.CSSStyleSheet.prototype.replace=a),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}function ck(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(r_.host(t));var c="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,u=(null==c?void 0:c.prototype)?Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&c&&u?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var e;return null==(e=u.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=u.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(n){}return r}}),Y_(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function uk(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Y_(function(e,t,s){var c,u=s[0],l=s[1],h=s[2];if(i.has(u))return a.apply(t,[u,l,h]);var d=sk(null==(c=t.parentRule)?void 0:c.parentStyleSheet,n,o.styleMirror),p=d.id,f=d.styleId;return(p&&-1!==p||f&&-1!==f)&&r({id:p,styleId:f,set:{property:u,value:l,priority:h},index:ok(t.parentRule)}),e.apply(t,s)})});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:Y_(function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=sk(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,d=l.styleId;return(h&&-1!==h||d&&-1!==d)&&r({id:h,styleId:d,remove:{property:u},index:ok(t.parentRule)}),e.apply(t,s)})}),Y_(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c})}function lk(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,i=e.mirror,o=e.sampling,s=e.doc,a=Y_(function(e){return s_(Y_(function(o){var s=J_(o);if(s&&!p_(s,r,n,!0)){var a=s.currentTime,c=s.volume,u=s.muted,l=s.playbackRate,h=s.loop;t({type:e,id:i.getId(s),currentTime:a,volume:c,muted:u,playbackRate:l,loop:h})}}),o.media||500)}),c=[n_("play",a(R_.Play),s),n_("pause",a(R_.Pause),s),n_("seeked",a(R_.Seeked),s),n_("volumechange",a(R_.VolumeChange),s),n_("ratechange",a(R_.RateChange),s)];return Y_(function(){c.forEach(function(e){return e()})})}function hk(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!==typeof t,descriptors:r,fontSource:"string"===typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=t_(r.fonts,"add",function(e){return function(r){return setTimeout(Y_(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=s}),i.push(a),Y_(function(){i.forEach(function(e){return e()})})}function dk(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=Y_(function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],c=e.rangeCount||0,u=0;u<c;u++){var l=e.getRangeAt(u),h=l.startContainer,d=l.startOffset,p=l.endContainer,f=l.endOffset,g=p_(h,n,i,!0)||p_(p,n,i,!0);g||a.push({start:r.getId(h),startOffset:d,end:r.getId(p),endOffset:f})}o({ranges:a})}});return a(),n_("selectionchange",a)}function pk(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;if(!n||!n.customElements)return function(){};var i=t_(n.customElements,"define",function(e){return function(t,n,i){try{r({define:{name:t}})}catch(o){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}});return i}function fk(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,c=e.mediaInteractionCb,u=e.styleSheetRuleCb,l=e.styleDeclarationCb,h=e.canvasMutationCb,d=e.fontCb,p=e.selectionCb,f=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o;t.mutation&&(o=t).mutation.apply(o,[].concat(n));r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o;t.mousemove&&(o=t).mousemove.apply(o,[].concat(r));n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;t.mouseInteraction&&(o=t).mouseInteraction.apply(o,[].concat(r));i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.scroll&&(i=t).scroll.apply(i,[].concat(r));o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.viewportResize&&(i=t).viewportResize.apply(i,[].concat(r));s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.input&&(i=t).input.apply(i,[].concat(r));a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.mediaInteaction&&(i=t).mediaInteaction.apply(i,[].concat(r));c.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleSheetRule&&(i=t).styleSheetRule.apply(i,[].concat(r));u.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleDeclaration&&(i=t).styleDeclaration.apply(i,[].concat(r));l.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.canvasMutation&&(i=t).canvasMutation.apply(i,[].concat(r));h.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.font&&(i=t).font.apply(i,[].concat(r));d.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.selection&&(i=t).selection.apply(i,[].concat(r));p.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.customElement&&(i=t).customElement.apply(i,[].concat(r));f.apply(void 0,[].concat(r))}}function gk(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};fk(e,t),e.recordDOM&&(r=G_(e,e.doc));var i=Z_(e),o=Q_(e),s=ek(e),a=tk(e,{win:n}),c=ik(e),u=lk(e),l=function(){},h=function(){},d=function(){},p=function(){};e.recordDOM&&(l=ak(e,{win:n}),h=ck(e,e.doc),d=uk(e,{win:n}),e.collectFonts&&(p=hk(e)));for(var f,g=dk(e),m=pk(e),v=[],y=th(e.plugins);!(f=y()).done;){var w=f.value;v.push(w.observer(w.callback,n,w.options))}return Y_(function(){X_.forEach(function(e){return e.reset()}),null==r||r.disconnect(),i(),o(),s(),a(),c(),u(),l(),h(),d(),p(),g(),m(),v.forEach(function(e){return e()})})}function mk(e){return"undefined"!==typeof window[e]}function vk(e){return Boolean("undefined"!==typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var yk=function(){function e(e){ah(this,"iframeIdToRemoteIdMap",new WeakMap),ah(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!==typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),wk=function(){function e(e){ah(this,"iframes",new WeakMap),ah(this,"crossOriginIframeMap",new WeakMap),ah(this,"crossOriginIframeMirror",new yk(pd)),ah(this,"crossOriginIframeStyleMirror"),ah(this,"crossOriginIframeRootIdMap",new WeakMap),ah(this,"iframeContentDocumentMap",new WeakMap),ah(this,"iframeObserverCleanupMap",new WeakMap),ah(this,"mirror"),ah(this,"mutationCb"),ah(this,"wrappedEmit"),ah(this,"loadListener"),ah(this,"stylesheetManager"),ah(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new yk(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(n){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin){var r=e.source;if(r){var n=this.crossOriginIframeMap.get(e.source);if(n){var i=this.transformCrossOriginEvent(n,t.data.event);i&&this.wrappedEmit(i,t.data.isCheckout)}}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case O_.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:O_.IncrementalSnapshot,data:{source:A_.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case O_.Meta:case O_.Load:case O_.DomContentLoaded:return!1;case O_.Plugin:return t;case O_.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case O_.IncrementalSnapshot:switch(t.data.source){case A_.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case A_.Drag:case A_.TouchMove:case A_.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case A_.ViewportResize:return!1;case A_.MediaInteraction:case A_.MouseInteraction:case A_.Scroll:case A_.CanvasMutation:case A_.Input:return this.replaceIds(t.data,e,["id"]),t;case A_.StyleSheetRule:case A_.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case A_.Font:return t;case A_.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case A_.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=th(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"===typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===P_.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),bk=function(){function e(e){ah(this,"shadowDoms",new WeakSet),ah(this,"mutationCb"),ah(this,"scrollCb"),ah(this,"bypassOptions"),ah(this,"mirror"),ah(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(Nh(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=G_($l({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(ek($l({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(r_.host(e))),r.restoreHandlers.push(ck({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(t_(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=r_.shadowRoot(this);return o&&E_(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),_k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kk="undefined"===typeof Uint8Array?[]:new Uint8Array(256),Sk=0;Sk<_k.length;Sk++)kk[_k.charCodeAt(Sk)]=Sk;var xk=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=_k[r[t]>>2],i+=_k[(3&r[t])<<4|r[t+1]>>4],i+=_k[(15&r[t+1])<<2|r[t+2]>>6],i+=_k[63&r[t+2]];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i},Ck=new Map;function Ek(e,t){var r=Ck.get(e);return r||(r=new Map,Ck.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var Ok=function(e,t,r){if(e&&(Tk(e,t)||"object"===("undefined"===typeof e?"undefined":Kl(e)))){var n=e.constructor.name,i=Ek(r,n),o=i.indexOf(e);return-1===o&&(o=i.length,i.push(e)),o}};function Ak(e,t,r){if(Yl(e,Array))return e.map(function(e){return Ak(e,t,r)});if(null===e)return e;if(Yl(e,Float32Array)||Yl(e,Float64Array)||Yl(e,Int32Array)||Yl(e,Uint32Array)||Yl(e,Uint8Array)||Yl(e,Uint16Array)||Yl(e,Int16Array)||Yl(e,Int8Array)||Yl(e,Uint8ClampedArray)){var n=e.constructor.name;return{rr_type:n,args:[Object.values(e)]}}if(Yl(e,ArrayBuffer)){var i=e.constructor.name,o=xk(e);return{rr_type:i,base64:o}}if(Yl(e,DataView)){var s=e.constructor.name;return{rr_type:s,args:[Ak(e.buffer,t,r),e.byteOffset,e.byteLength]}}if(Yl(e,HTMLImageElement)){var a=e.constructor.name,c=e.src;return{rr_type:a,src:c}}if(Yl(e,HTMLCanvasElement)){var u="HTMLImageElement",l=e.toDataURL();return{rr_type:u,src:l}}if(Yl(e,ImageData)){var h=e.constructor.name;return{rr_type:h,args:[Ak(e.data,t,r),e.width,e.height]}}if(Tk(e,t)||"object"===("undefined"===typeof e?"undefined":Kl(e))){var d=e.constructor.name,p=Ok(e,t,r);return{rr_type:d,index:p}}return e}var Ik=function(e,t,r){return e.map(function(e){return Ak(e,t,r)})},Tk=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],n=r.filter(function(e){return"function"===typeof t[e]});return Boolean(n.find(function(r){return Yl(e,t[r])}))};function Mk(e,t,r,n){for(var i,o=function(){var o=i.value;try{if("function"!==typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var a=t_(t.CanvasRenderingContext2D.prototype,o,function(i){return function(){for(var s=this,a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return p_(this.canvas,r,n,!0)||setTimeout(function(){var r=Ik(c,t,s);e(s.canvas,{type:M_["2D"],property:o,args:r})},0),i.apply(this,c)}});s.push(a)}catch(u){var c=a_(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:M_["2D"],property:o,args:[t],setter:!0})}});s.push(c)}},s=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),c=th(a);!(i=c()).done;)o();return function(){s.forEach(function(e){return e()})}}function Rk(e){return"experimental-webgl"===e?"webgl":e}function Pk(e,t,r,n){var i=[];try{var o=t_(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!p_(this,t,r,!0)){var c=Rk(i);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===Kl(s[0])){var u=s[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function Lk(e,t,r,n,i,o){for(var s,a=function(){var a=s.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return"continue";try{if("function"!==typeof e[a])return"continue";var u=t_(e,a,function(e){return function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var l=e.apply(this,c);if(Ok(l,o,this),"tagName"in this.canvas&&!p_(this.canvas,n,i,!0)){var h=Ik(c,o,this),d={type:t,property:a,args:h};r(this.canvas,d)}return l}});c.push(u)}catch(h){var l=a_(e,a,{set:function(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});c.push(l)}},c=[],u=Object.getOwnPropertyNames(e),l=th(u);!(s=l()).done;)a();return c}function Dk(e,t,r,n){var i,o,s=[];((i=s).push.apply(i,[].concat(Lk(t.WebGLRenderingContext.prototype,M_.WebGL,e,r,n,t))),"undefined"!==typeof t.WebGL2RenderingContext)&&(o=s).push.apply(o,[].concat(Lk(t.WebGL2RenderingContext.prototype,M_.WebGL2,e,r,n,t)));return function(){s.forEach(function(e){return e()})}}var Bk="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Nk=function(e){return Uint8Array.from(atob(e),function(e){return e.charCodeAt(0)})},jk="undefined"!==typeof window&&window.Blob&&new Blob([Nk(Bk)],{type:"text/javascript;charset=utf-8"});function Fk(e){var t;try{if(t=jk&&(window.URL||window.webkitURL).createObjectURL(jk),!t)throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(n){return new Worker("data:text/javascript;base64,"+Bk,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var Uk,zk,qk,Hk=function(){function e(e){var t=this;ah(this,"pendingCanvasMutations",new Map),ah(this,"rafStamps",{latestId:0,invokeId:null}),ah(this,"mirror"),ah(this,"mutationCb"),ah(this,"resetObservers"),ah(this,"frozen",!1),ah(this,"locked",!1),ah(this,"processMutation",function(e,r){var n=t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId;!n&&t.rafStamps.invokeId||(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"===typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:c})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o=this,s=Pk(t,r,n,!0),a=new Map,c=new Fk;c.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,c=r.height;o.mutationCb({id:t,type:M_["2D"],commands:[{property:"clearRect",args:[0,0,s,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var u,l=1e3/e,h=0,d=function(){var e=[];return t.document.querySelectorAll("canvas").forEach(function(t){p_(t,r,n,!0)||e.push(t)}),e},p=function(e){if(h&&e-h<l)u=requestAnimationFrame(p);else{h=e;var t=o;d().forEach(Ul(function(e){var r,n,o,s;return rh(this,function(u){switch(u.label){case 0:return n=t.mirror.getId(e),a.get(n)?[2]:0===e.width||0===e.height?[2]:(a.set(n,!0),["webgl","webgl2"].includes(e.__context)&&(o=e.getContext(e.__context),!1===(null==(r=null==o?void 0:o.getContextAttributes())?void 0:r.preserveDrawingBuffer)&&o.clear(o.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return s=u.sent(),c.postMessage({id:n,bitmap:s,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[s]),[2]}})})),u=requestAnimationFrame(p)}};u=requestAnimationFrame(p),this.resetObservers=function(){s(),cancelAnimationFrame(u)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=Pk(e,t,r,!1),i=Mk(this.processMutation.bind(this),e,t,r),o=Dk(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){e.type;var t=Jl(e,["type"]);return t}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),$k=function(){function e(e){ah(this,"trackedLinkElements",new WeakSet),ah(this,"mutationCb"),ah(this,"adoptedStyleSheetCb"),ah(this,"styleMirror",new k_),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var r,n=function(){var e=i.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:zh(t,e.href),index:r}})})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=th(e);!(i=a()).done;)r=this,n();s.length>0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var r=e;if(r.adoptedStyleSheets)for(var n,i=th(r.adoptedStyleSheets);!(n=i()).done;){var o=n.value;this.styleMirror.remove(o)}}if("STYLE"===e.nodeName){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}if("LINK"===e.nodeName&&"stylesheet"===e.rel){var a=e;a.sheet&&this.styleMirror.remove(a.sheet)}e.childNodes&&e.childNodes.forEach(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch(c){}},t.trackStylesheetInLinkElement=function(e){},e}(),Wk=function(){function e(){ah(this,"nodeMap",new WeakMap),ah(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}();function Vk(e){try{var t=new URL(e).origin;return"null"!==t?t:null}catch(r){return null}}function Yk(e){if(!Array.isArray(e)||0===e.length)throw new Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var t=new Set,r=0;r<e.length;r++){var n=e[r];if("string"!==typeof n)throw new Error("[rrweb] allowedIframeOrigins["+r+"] must be a string, got "+("undefined"===typeof n?"undefined":Kl(n))+".");var i=Vk(n);i&&t.add(i)}return Object.freeze(t)}var Xk=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var Jk=document.createElement("iframe");document.body.appendChild(Jk),Array.from=(null==(ih=Jk.contentWindow)?void 0:ih.Array.from)||Array.from,document.body.removeChild(Jk)}}catch(EP){console.debug("Unable to override Array.from",EP)}var Gk,Kk=Vh();function Zk(e){void 0===e&&(e={});var t,r=e.emit,n=e.checkoutEveryNms,i=e.checkoutEveryNth,o=e.blockClass,s=void 0===o?"rr-block":o,a=e.blockSelector,c=void 0===a?null:a,u=e.ignoreClass,l=void 0===u?"rr-ignore":u,h=e.ignoreSelector,d=void 0===h?null:h,p=e.maskTextClass,f=void 0===p?"rr-mask":p,g=e.maskTextSelector,m=void 0===g?null:g,v=e.inlineStylesheet,y=void 0===v||v,w=e.maskAllInputs,b=e.maskInputOptions,_=e.slimDOMOptions,k=e.maskInputFn,S=e.maskTextFn,x=e.hooks,C=e.packFn,E=e.sampling,O=void 0===E?{}:E,A=e.dataURLOptions,I=void 0===A?{}:A,T=e.mousemoveWait,M=e.recordDOM,R=void 0===M||M,P=e.recordCanvas,L=void 0!==P&&P,D=e.recordCrossOriginIframes,B=void 0!==D&&D,N=e.allowedIframeOrigins,j=e.recordAfter,F=void 0===j?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":j,U=e.userTriggeredOnInput,z=void 0!==U&&U,q=e.collectFonts,H=void 0!==q&&q,$=e.inlineImages,W=void 0!==$&&$,V=e.plugins,Y=e.keepIframeSrcFn,X=void 0===Y?function(){return!1}:Y,J=e.ignoreCSSAttributes,G=void 0===J?new Set([]):J,K=e.errorHandler;W_(K),B&&N&&N.length>0&&(t=Yk(N),0===t.size&&(t=void 0));var Z=!B||window.parent===window,Q=!1;if(!Z)try{window.parent.document&&(Q=!1)}catch(we){Q=!0}if(Z&&!r)throw new Error("emit function is required");if(!Z&&!Q)return function(){};void 0!==T&&void 0===O.mousemove&&(O.mousemove=T),Kk.reset();var ee,te=!0===w?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==b?b:{password:!0},re=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_,headTitleMutations:"all"===_}:_||{};y_();var ne=0,ie=function(e){for(var t,r=th(V||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return C&&!Q&&(e=C(e)),e};Uk=function(e,o){var s,a=e;if(a.timestamp=c_(),!(null==(s=X_[0])?void 0:s.isFrozen())||a.type===O_.FullSnapshot||a.type===O_.IncrementalSnapshot&&a.data.source===A_.Mutation||X_.forEach(function(e){return e.unfreeze()}),Z)null==r||r(ie(a),o);else if(Q){var c={type:"rrweb",event:ie(a),origin:window.location.origin,isCheckout:o};if(t)for(var u,l=th(t);!(u=l()).done;){var h=u.value;window.parent.postMessage(c,h)}else window.parent.postMessage(c,"*")}if(a.type===O_.FullSnapshot)ee=a,ne=0;else if(a.type===O_.IncrementalSnapshot){if(a.data.source===A_.Mutation&&a.data.isAttachIframe)return;ne++;var d=i&&ne>=i,p=n&&a.timestamp-ee.timestamp>n;(d||p)&&zk(!0)}};for(var oe,se=function(e){Uk({type:O_.IncrementalSnapshot,data:$l({source:A_.Mutation},e)})},ae=function(e){return Uk({type:O_.IncrementalSnapshot,data:$l({source:A_.Scroll},e)})},ce=function(e){return Uk({type:O_.IncrementalSnapshot,data:$l({source:A_.CanvasMutation},e)})},ue=function(e){return Uk({type:O_.IncrementalSnapshot,data:$l({source:A_.AdoptedStyleSheet},e)})},le=new $k({mutationCb:se,adoptedStyleSheetCb:ue}),he=new wk({mirror:Kk,mutationCb:se,stylesheetManager:le,recordCrossOriginIframes:B,wrappedEmit:Uk}),de=th(V||[]);!(oe=de()).done;){var pe=oe.value;pe.getMirror&&pe.getMirror({nodeMirror:Kk,crossOriginIframeMirror:he.crossOriginIframeMirror,crossOriginIframeStyleMirror:he.crossOriginIframeStyleMirror})}var fe=new Wk;qk=new Hk({recordCanvas:L,mutationCb:ce,win:window,blockClass:s,blockSelector:c,mirror:Kk,sampling:O.canvas,dataURLOptions:I});var ge=new bk({mutationCb:se,scrollCb:ae,bypassOptions:{blockClass:s,blockSelector:c,maskTextClass:f,maskTextSelector:m,inlineStylesheet:y,maskInputOptions:te,dataURLOptions:I,maskTextFn:S,maskInputFn:k,recordCanvas:L,inlineImages:W,sampling:O,slimDOMOptions:re,iframeManager:he,stylesheetManager:le,canvasManager:qk,keepIframeSrcFn:X,processedNodeManager:fe},mirror:Kk});zk=function(e){if(void 0===e&&(e=!1),R){Uk({type:O_.Meta,data:{href:window.location.href,width:h_(),height:l_()}},e),le.reset(),ge.init(),X_.forEach(function(e){return e.lock()});var t=Bd(document,{mirror:Kk,blockClass:s,blockSelector:c,maskTextClass:f,maskTextSelector:m,inlineStylesheet:y,maskAllInputs:te,maskTextFn:S,maskInputFn:k,slimDOM:re,dataURLOptions:I,recordCanvas:L,inlineImages:W,onSerialize:function(e){w_(e,Kk)&&he.addIframe(e),b_(e,Kk)&&le.trackLinkElement(e),__(e)&&ge.addShadowRoot(r_.shadowRoot(e),document)},onIframeLoad:function(e,t){he.attachIframe(e,t),ge.observeAttachShadow(e)},onStylesheetLoad:function(e,t){le.attachLinkElement(e,t)},keepIframeSrcFn:X});if(!t)return console.warn("Failed to snapshot the document");Uk({type:O_.FullSnapshot,data:{node:t,initialOffset:u_(window)}},e),X_.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&le.adoptStyleSheets(document.adoptedStyleSheets,Kk.getId(document))}};try{var me=[],ve=function(e){var t;return Y_(gk)({mutationCb:se,mousemoveCb:function(e,t){return Uk({type:O_.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return Uk({type:O_.IncrementalSnapshot,data:$l({source:A_.MouseInteraction},e)})},scrollCb:ae,viewportResizeCb:function(e){return Uk({type:O_.IncrementalSnapshot,data:$l({source:A_.ViewportResize},e)})},inputCb:function(e){return Uk({type:O_.IncrementalSnapshot,data:$l({source:A_.Input},e)})},mediaInteractionCb:function(e){return Uk({type:O_.IncrementalSnapshot,data:$l({source:A_.MediaInteraction},e)})},styleSheetRuleCb:function(e){return Uk({type:O_.IncrementalSnapshot,data:$l({source:A_.StyleSheetRule},e)})},styleDeclarationCb:function(e){return Uk({type:O_.IncrementalSnapshot,data:$l({source:A_.StyleDeclaration},e)})},canvasMutationCb:ce,fontCb:function(e){return Uk({type:O_.IncrementalSnapshot,data:$l({source:A_.Font},e)})},selectionCb:function(e){Uk({type:O_.IncrementalSnapshot,data:$l({source:A_.Selection},e)})},customElementCb:function(e){Uk({type:O_.IncrementalSnapshot,data:$l({source:A_.CustomElement},e)})},blockClass:s,ignoreClass:l,ignoreSelector:d,maskTextClass:f,maskTextSelector:m,maskInputOptions:te,inlineStylesheet:y,sampling:O,recordDOM:R,recordCanvas:L,inlineImages:W,userTriggeredOnInput:z,collectFonts:H,doc:e,maskInputFn:k,maskTextFn:S,keepIframeSrcFn:X,blockSelector:c,slimDOMOptions:re,dataURLOptions:I,mirror:Kk,iframeManager:he,stylesheetManager:le,shadowDomManager:ge,processedNodeManager:fe,canvasManager:qk,ignoreCSSAttributes:G,plugins:(null==(t=null==V?void 0:V.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return Uk({type:O_.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},x)};he.addLoadListener(function(e){try{var t=e.contentDocument,r=ve(t);me.push(r);var n=he.getObserverCleanup(e);he.setObserverCleanup(e,function(){if(n)try{n()}catch(we){}try{r();var e=me.indexOf(r);-1!==e&&me.splice(e,1),K_(t)}catch(we){}})}catch(i){console.warn(i)}});var ye=function(){zk(),me.push(ve(document)),Xk=!0};return"interactive"===document.readyState||"complete"===document.readyState?ye():(me.push(n_("DOMContentLoaded",function(){Uk({type:O_.DomContentLoaded,data:{}}),"DOMContentLoaded"===F&&ye()})),me.push(n_("load",function(){Uk({type:O_.Load,data:{}}),"load"===F&&ye()},window))),function(){me.forEach(function(e){try{e()}catch(r){var t=String(r).toLowerCase();t.includes("cross-origin")||console.warn(r)}}),fe.destroy(),Xk=!1,V_()}}catch(be){console.warn(be)}}Zk.addCustomEvent=function(e,t){if(!Xk)throw new Error("please add custom event after start recording");Uk({type:O_.Custom,data:{tag:e,payload:t}})},Zk.freezePage=function(){X_.forEach(function(e){return e.freeze()})},Zk.takeFullSnapshot=function(e){if(!Xk)throw new Error("please take full snapshot after start recording");zk(e)},Zk.mirror=Kk,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(Gk||(Gk={})),Zk.addCustomEvent,Zk.freezePage,Zk.takeFullSnapshot;var Qk={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},eS={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},tS={},rS=function(){return!!globalThis.Zone};function nS(e){if(tS[e])return tS[e];var t=globalThis[e],r=t.prototype,n=e in Qk?Qk[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in eS?eS[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"===typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!rS())return tS[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?tS[e]=u:r}catch(l){return r}}var iS={};function oS(e,t,r){var n,i=e+"."+String(r);if(iS[i])return iS[i].call(t);var o=nS(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(iS[i]=s,s.call(t)):t[r]}var sS={};function aS(e,t,r){var n=e+"."+String(r);if(sS[n])return sS[n].bind(t);var i=nS(e),o=i[r];return"function"!==typeof o?t[r]:(sS[n]=o,o.bind(t))}function cS(e){return oS("Node",e,"childNodes")}function uS(e){return oS("Node",e,"parentNode")}function lS(e){return oS("Node",e,"parentElement")}function hS(e){return oS("Node",e,"textContent")}function dS(e,t){return aS("Node",e,"contains")(t)}function pS(e){return aS("Node",e,"getRootNode")()}function fS(e){return e&&"host"in e?oS("ShadowRoot",e,"host"):null}function gS(e){return e.styleSheets}function mS(e){return e&&"shadowRoot"in e?oS("Element",e,"shadowRoot"):null}function vS(e,t){return oS("Element",e,"querySelector")(t)}function yS(e,t){return oS("Element",e,"querySelectorAll")(t)}function wS(){return nS("MutationObserver").constructor}function bS(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var _S={childNodes:cS,parentNode:uS,parentElement:lS,textContent:hS,contains:dS,getRootNode:pS,host:fS,styleSheets:gS,shadowRoot:mS,querySelector:vS,querySelectorAll:yS,mutationObserver:wS,patch:bS};function kS(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return kS(_S.parentNode(e),t);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return kS(_S.parentNode(e),t)}function SS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function xS(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return Yl(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var CS={exports:{}},ES=String,OS=function(){return{isColorSupported:!1,reset:ES,bold:ES,dim:ES,italic:ES,underline:ES,inverse:ES,hidden:ES,strikethrough:ES,black:ES,red:ES,green:ES,yellow:ES,blue:ES,magenta:ES,cyan:ES,white:ES,gray:ES,bgBlack:ES,bgRed:ES,bgGreen:ES,bgYellow:ES,bgBlue:ES,bgMagenta:ES,bgCyan:ES,bgWhite:ES}};CS.exports=OS(),CS.exports.createColors=OS;var AS=CS.exports,IS={},TS=Object.freeze(Object.defineProperty({__proto__:null,default:IS},Symbol.toStringTag,{value:"Module"})),MS=xS(TS),RS=AS,PS=MS,LS=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof i&&("number"===typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}Vl(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=RS.isColorSupported),PS&&e&&(r=PS(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=RS.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Ql(Error)),DS=LS;LS.default=LS;var BS={};BS.isClean=Symbol("isClean"),BS.my=Symbol("my");var NS={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function jS(e){return e[0].toUpperCase()+e.slice(1)}var FS=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if("undefined"!==typeof e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&(n=e.raws[t],"undefined"!==typeof n))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return NS[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+jS(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=NS[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,"undefined"!==typeof t))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,"undefined"!==typeof t))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),US=FS;FS.default=FS;var zS=US;function qS(e,t){var r=new zS(t);r.stringify(e)}var HS=qS;qS.default=qS;var $S=BS.isClean,WS=BS.my,VS=DS,YS=US,XS=HS;function JS(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o="undefined"===typeof i?"undefined":Kl(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return JS(e,r)}):("object"===o&&null!==i&&(i=JS(i)),r[n]=i)}return r}var GS=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[$S]=!1,this[WS]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=th(e[t]);!(r=n()).done;){var i=r.value;"function"===typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=JS(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new VS(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[$S]){this[$S]=!1;var e=this;while(e=e.parent)e[$S]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"===typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new YS;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=th(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===("undefined"===typeof e?"undefined":Kl(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Kl(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=XS),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},Hl(e,[{key:"proxyOf",get:function(){return this}}]),e}(),KS=GS;GS.default=GS;var ZS=KS,QS=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=$l({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Vl(t,e),Hl(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(ZS),ex=QS;QS.default=QS;var tx="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",rx=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=tx[64*Math.random()|0];return t},nx={nanoid:rx},ix=MS.SourceMapConsumer,ox=MS.SourceMapGenerator,sx=MS.existsSync,ax=MS.readFileSync,cx=MS.dirname,ux=MS.join;function lx(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var hx=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=cx(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new ix(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return lx(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":Kl(e))&&("string"===typeof e.mappings||"string"===typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=cx(e),sx(e))return this.mapFile=e,ax(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"===typeof t)return t;if("function"!==typeof t){if(Yl(t,ix))return ox.fromSourceMap(t).toString();if(Yl(t,ox))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=ux(cx(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),dx=hx;hx.default=hx;var px=MS.SourceMapConsumer,fx=MS.SourceMapGenerator,gx=MS.fileURLToPath,mx=MS.pathToFileURL,vx=MS.isAbsolute,yx=MS.resolve,wx=nx.nanoid,bx=MS,_x=DS,kx=dx,Sx=Symbol("fromOffsetCache"),xx=Boolean(px&&fx),Cx=Boolean(yx&&vx),Ex=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Kl(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Cx||/^\w+:\/\//.test(t.from)||vx(t.from)?this.file=t.from:this.file=yx(t.from)),Cx&&xx){var r=new kx(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+wx(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===("undefined"===typeof t?"undefined":Kl(t))){var a=t,c=r;if("number"===typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"===typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return i=d?new _x(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new _x(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(mx&&(i.input.url=mx(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[Sx])r=this[Sx];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[Sx]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:yx(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"===typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=vx(a.source)?mx(a.source):new URL(a.source,this.map.consumer().sourceRoot||mx(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!gx)throw new Error("file: protocol is not available in this PostCSS build");c.file=gx(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=$l({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Hl(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Ox=Ex;Ex.default=Ex,bx&&bx.registerInput&&bx.registerInput(Ex);var Ax=MS.SourceMapConsumer,Ix=MS.SourceMapGenerator,Tx=MS.dirname,Mx=MS.relative,Rx=MS.resolve,Px=MS.sep,Lx=MS.pathToFileURL,Dx=Ox,Bx=Boolean(Ax&&Ix),Nx=Boolean(Tx&&Rx&&Mx&&Px),jx=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"===typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"===typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=th(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Tx(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Ax(r.text),o.sourcesContent&&(o.sourcesContent=null)):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Nx&&Bx&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Ix.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Ix({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new Ix({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),t=a.match(/\n/g),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Tx(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=Tx(Rx(r,this.mapOpts.annotation)));var n=Mx(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new Dx(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Lx){var r=Lx(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Px&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Fx=jx,Ux=KS,zx=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Vl(t,e),t}(Ux),qx=zx;zx.default=zx;var Hx,$x,Wx,Vx,Yx=BS.isClean,Xx=BS.my,Jx=ex,Gx=qx,Kx=KS;function Zx(e){return e.map(function(e){return e.nodes&&(e.nodes=Zx(e.nodes)),delete e.source,e})}function Qx(e){if(e[Yx]=!1,e.proxyOf.nodes)for(var t,r=th(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;Qx(n)}}var eC=function(e){function t(){return e.apply(this,arguments)||this}Vl(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=th(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=th(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=th(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;this.indexes[n]+=1}return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"===typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"===typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"===typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=th(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=th(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=Zx(Hx(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=th(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=th(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new Jx(e)]}else if(e.selector)e=[new $x(e)];else if(e.name)e=[new Wx(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Gx(e)]}var l=e.map(function(e){return e[Xx]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[Yx]&&Qx(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=th(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=th(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=th(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?Yl(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?Yl(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?Yl(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},Hl(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(Kx);eC.registerParse=function(e){Hx=e},eC.registerRule=function(e){$x=e},eC.registerAtRule=function(e){Wx=e},eC.registerRoot=function(e){Vx=e};var tC=eC;eC.default=eC,eC.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Wx.prototype):"rule"===e.type?Object.setPrototypeOf(e,$x.prototype):"decl"===e.type?Object.setPrototypeOf(e,Jx.prototype):"comment"===e.type?Object.setPrototypeOf(e,Gx.prototype):"root"===e.type&&Object.setPrototypeOf(e,Vx.prototype),e[Xx]=!0,e.nodes&&e.nodes.forEach(function(e){eC.rebuild(e)})};var rC,nC,iC=tC,oC=function(e){function t(t){var r;return r=e.call(this,$l({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Vl(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new rC(new nC,this,e);return t.stringify()},t}(iC);oC.registerLazyResult=function(e){rC=e},oC.registerProcessor=function(e){nC=e};var sC=oC;oC.default=oC;var aC=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),cC=aC;aC.default=aC;var uC=cC,lC=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new uC(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Hl(e,[{key:"content",get:function(){return this.css}}]),e}(),hC=lC;lC.default=lC;var dC="'".charCodeAt(0),pC='"'.charCodeAt(0),fC="\\".charCodeAt(0),gC="/".charCodeAt(0),mC="\n".charCodeAt(0),vC=" ".charCodeAt(0),yC="\f".charCodeAt(0),wC="\t".charCodeAt(0),bC="\r".charCodeAt(0),_C="[".charCodeAt(0),kC="]".charCodeAt(0),SC="(".charCodeAt(0),xC=")".charCodeAt(0),CC="{".charCodeAt(0),EC="}".charCodeAt(0),OC=";".charCodeAt(0),AC="*".charCodeAt(0),IC=":".charCodeAt(0),TC="@".charCodeAt(0),MC=/[\t\n\f\r "#'()/;[\\\]{}]/g,RC=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,PC=/.[\r\n"'(/\\]/,LC=/[\da-f]/i,DC=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,g=0,m=[],v=[];function y(){return g}function w(t){throw e.error("Unclosed "+t,g)}function b(){return 0===v.length&&g>=f}function _(e){if(v.length)return v.pop();if(!(g>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(g),r){case mC:case vC:case wC:case bC:case yC:n=g;do{n+=1,r=d.charCodeAt(n)}while(r===vC||r===mC||r===wC||r===bC||r===yC);h=["space",d.slice(g,n)],g=n-1;break;case _C:case kC:case CC:case EC:case IC:case OC:case xC:var y=String.fromCharCode(r);h=[y,y,g];break;case SC:if(u=m.length?m.pop()[1]:"",l=d.charCodeAt(g+1),"url"===u&&l!==dC&&l!==pC&&l!==vC&&l!==mC&&l!==wC&&l!==yC&&l!==bC){n=g;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=g;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===fC)c-=1,a=!a}while(a);h=["brackets",d.slice(g,n+1),g,n],g=n}else n=d.indexOf(")",g+1),o=d.slice(g,n+1),-1===n||PC.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case dC:case pC:i=r===dC?"'":'"',n=g;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=g+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===fC)c-=1,a=!a}while(a);h=["string",d.slice(g,n+1),g,n],g=n;break;case TC:MC.lastIndex=g+1,MC.test(d),n=0===MC.lastIndex?d.length-1:MC.lastIndex-2,h=["at-word",d.slice(g,n+1),g,n],g=n;break;case fC:n=g,s=!0;while(d.charCodeAt(n+1)===fC)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==gC&&r!==vC&&r!==mC&&r!==wC&&r!==bC&&r!==yC&&(n+=1,LC.test(d.charAt(n)))){while(LC.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===vC&&(n+=1)}h=["word",d.slice(g,n+1),g,n],g=n;break;default:r===gC&&d.charCodeAt(g+1)===AC?(n=d.indexOf("*/",g+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(g,n+1),g,n],g=n):(RC.lastIndex=g+1,RC.test(d),n=0===RC.lastIndex?d.length-1:RC.lastIndex-2,h=["word",d.slice(g,n+1),g,n],m.push(h),g=n);break}return g++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},BC=tC,NC=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Vl(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(BC),jC=NC;NC.default=NC,BC.registerAtRule(NC);var FC,UC,zC=tC,qC=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Vl(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=th(i);!(o=s()).done;){var a=o.value;a.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new FC(new UC,this,e);return t.stringify()},t}(zC);qC.registerLazyResult=function(e){FC=e},qC.registerProcessor=function(e){UC=e};var HC=qC;qC.default=qC,zC.registerRoot(qC);var $C={comma:function(e){return $C.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return $C.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=th(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},WC=$C;$C.default=$C;var VC=tC,YC=WC,XC=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Vl(t,e),Hl(t,[{key:"selectors",get:function(){return YC.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(VC),JC=XC;XC.default=XC,VC.registerRule(XC);var GC=ex,KC=DC,ZC=qx,QC=jC,eE=HC,tE=JC,rE={empty:!0,space:!0};function nE(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var iE=function(){function e(e){this.input=e,this.root=new eE,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new QC;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){n=a.length-1,r=a[n];while(r&&"space"===r[0])r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=th(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new ZC;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=KC(this.input)},t.decl=function(e,t){var r=new GC;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||nE(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new tE;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",rE[a]||rE[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new tE;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),oE=iE,sE=tC,aE=oE,cE=Ox;function uE(e,t){var r=new cE(e,t),n=new aE(r);try{n.parse()}catch(i){throw i}return n.root}var lE=uE;uE.default=uE,sE.registerParse(uE);var hE=BS.isClean,dE=BS.my,pE=Fx,fE=HS,gE=tC,mE=sC,vE=hC,yE=lE,wE=HC,bE={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},_E={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},kE={Once:!0,postcssPlugin:!0,prepare:!0},SE=0;function xE(e){return"object"===("undefined"===typeof e?"undefined":Kl(e))&&"function"===typeof e.then}function CE(e){var t=!1,r=bE[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,SE,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,SE,r+"Exit"]:[r,r+"Exit"]}function EE(e){var t;return t="document"===e.type?["Document",SE,"DocumentExit"]:"root"===e.type?["Root",SE,"RootExit"]:CE(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function OE(e){return e[hE]=!1,e.nodes&&e.nodes.forEach(function(e){return OE(e)}),e}var AE={},IE=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Kl(r))||null===r||"root"!==r.type&&"document"!==r.type)if(Yl(r,e)||Yl(r,vE))i=OE(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=yE;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[dE]&&gE.rebuild(i)}else i=OE(r);this.result=new vE(t,i,n),this.helpers=$l({},AE,{postcss:AE,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Kl(e))&&e.prepare?$l({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(EP){console&&console.error&&console.error(EP)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=th(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Kl(i)))for(var o in i){if(!_E[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!kE[o])if("object"===Kl(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"===typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return Ul(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return rh(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!xE(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[hE])return[3,14];o[hE]=!0,s=[EE(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!xE(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return rh(this,function(a){switch(a.label){case 0:t=d.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=th(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,nh(l())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===("undefined"===typeof e?"undefined":Kl(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return xE(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"===typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=fE;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new pE(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=th(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(xE(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[hE])i[hE]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=th(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=th(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(xE(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[hE])return a[hE]=!0,void e.push(EE(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===SE)return void(r.nodes&&r.nodes.length&&(r[hE]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[hE]=!0;for(var r,n=CE(e),i=th(n);!(r=i()).done;){var o=r.value;if(o===SE)e.nodes&&e.each(function(e){e[hE]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Hl(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();IE.registerPostcss=function(e){AE=e};var TE=IE;IE.default=IE,wE.registerLazyResult(IE),mE.registerLazyResult(IE);var ME=Fx,RE=HS,PE=lE,LE=hC,DE=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=RE;this.result=new LE(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new ME(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Hl(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=PE;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),BE=DE;DE.default=DE;var NE=BE,jE=TE,FE=sC,UE=HC,zE=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=th(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Kl(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Kl(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Kl(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new jE(this,e,t):new NE(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),qE=zE;zE.default=zE,UE.registerProcessor(zE),FE.registerProcessor(zE);var HE=ex,$E=dx,WE=qx,VE=jC,YE=Ox,XE=HC,JE=JC;function GE(e,t){if(Array.isArray(e))return e.map(function(e){return GE(e)});var r=e.inputs,n=Jl(e,["inputs"]);if(r){t=[];for(var i,o=th(r);!(i=o()).done;){var s=i.value,a=$l({},s,{__proto__:YE.prototype});a.map&&(a.map=$l({},a.map,{__proto__:$E.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return GE(e,t)})),n.source){var c=n.source,u=c.inputId,l=Jl(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new XE(n);if("decl"===n.type)return new HE(n);if("rule"===n.type)return new JE(n);if("comment"===n.type)return new WE(n);if("atrule"===n.type)return new VE(n);throw new Error("Unknown node type: "+e.type)}var KE=GE;GE.default=GE;var ZE=DS,QE=ex,eO=TE,tO=tC,rO=qE,nO=HS,iO=KE,oO=sC,sO=cC,aO=qx,cO=jC,uO=hC,lO=Ox,hO=lE,dO=WC,pO=JC,fO=HC,gO=KS;function mO(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new rO(t)}mO.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new rO).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return mO([i(r)]).process(e,t)},i},mO.stringify=nO,mO.parse=hO,mO.fromJSON=iO,mO.list=dO,mO.comment=function(e){return new aO(e)},mO.atRule=function(e){return new cO(e)},mO.decl=function(e){return new QE(e)},mO.rule=function(e){return new pO(e)},mO.root=function(e){return new fO(e)},mO.document=function(e){return new oO(e)},mO.CssSyntaxError=ZE,mO.Declaration=QE,mO.Container=tO,mO.Processor=rO,mO.Document=oO,mO.Comment=aO,mO.Warning=sO,mO.AtRule=cO,mO.Result=uO,mO.Input=lO,mO.Rule=pO,mO.Root=fO,mO.Node=gO,eO.registerPostcss(mO);var vO=mO;mO.default=mO;var yO=SS(vO);yO.stringify,yO.fromJSON,yO.plugin,yO.parse,yO.list,yO.document,yO.comment,yO.atRule,yO.rule,yO.decl,yO.root,yO.CssSyntaxError,yO.Declaration,yO.Container,yO.Processor,yO.Document,yO.Comment,yO.Warning,yO.AtRule,yO.Result,yO.Input,yO.Rule,yO.Root,yO.Node;var wO=Object.defineProperty,bO=function(e,t,r){return t in e?wO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},_O=function(e,t,r){return bO(e,"symbol"!==("undefined"===typeof t?"undefined":Kl(t))?t+"":t,r)};function kO(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var SO=function(){function e(e){_O(this,"fileName"),_O(this,"functionName"),_O(this,"lineNumber"),_O(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}var t=e.prototype;return t.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),xO=/(^|@)\S+:\d+/,CO=/^\s*at .*(\S+:\d+|\(native\))/m,EO=/^(eval@)?(\[native code])?$/,OO={parse:function(e){return e?"undefined"!==typeof e.stacktrace||"undefined"!==typeof e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(CO)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/,r=t.exec(e.replace(/[()]/g,""));if(!r)throw new Error("Cannot parse given url: "+e);return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(CO)},this);return t.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=r?t.replace(r[0],""):t;var n=t.split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new SO({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){var t=e.stack.split("\n").filter(function(e){return!e.match(EO)},this);return t.map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new SO({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new SO({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new SO({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new SO({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(xO)&&!e.match(/^Error created at/)},this);return t.map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=t.shift()||"",i=n.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new SO({functionName:i,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function AO(e){if(!e||!e.outerHTML)return"";var t="";while(e.parentElement){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var s=n.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function IO(e){return"[object Object]"===Object.prototype.toString.call(e)}function TO(e,t){if(0===t)return!0;for(var r,n=Object.keys(e),i=th(n);!(r=i()).done;){var o=r.value;if(IO(e[o])&&TO(e[o],t-1))return!0}return!1}function MO(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var r=n.indexOf(this);~r?n.splice(r+1):n.push(this),~r?i.splice(r,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(o(t))return s(t);if("bigint"===("undefined"===typeof t?"undefined":Kl(t)))return t.toString()+"n";if(Yl(t,Event)){var a={};for(var c in t){var u=t[c];Array.isArray(u)?a[c]=AO(u.length?u[0]:null):a[c]=u}return a}return Yl(t,Node)?Yl(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:Yl(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t});function o(e){return!!(IO(e)&&Object.keys(e).length>r.numOfKeysLimit)||("function"===typeof e||!(!IO(e)||!TO(e,r.depthOfLimit)))}function s(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"..."),t}}var RO={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function PO(e,t,r){var n,i=r?Object.assign({},RO,r):RO,o=i.logger;if(!o)return function(){};n="string"===typeof o?t[o]:o;var s=0,a=!1,c=[];if(i.level.includes("error")){var u=function(t){var r=t.message,n=t.error,o=OO.parse(n).map(function(e){return e.toString()}),s=[MO(r,i.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",u),c.push(function(){t.removeEventListener("error",u)});var l=function(t){var r,n;Yl(t.reason,Error)?(r=t.reason,n=[MO("Uncaught (in promise) "+r.name+": "+r.message,i.stringifyOptions)]):(r=new Error,n=[MO("Uncaught (in promise)",i.stringifyOptions),MO(t.reason,i.stringifyOptions)]);var o=OO.parse(r).map(function(e){return e.toString()});e({level:"error",trace:o,payload:n})};t.addEventListener("unhandledrejection",l),c.push(function(){t.removeEventListener("unhandledrejection",l)})}for(var h,d=th(i.level);!(h=d()).done;){var p=h.value;c.push(f(n,p))}return function(){c.forEach(function(e){return e()})};function f(t,r){var n=this;return t[r]?kO(t,r,function(t){var o=n;return function(){for(var n=arguments.length,c=new Array(n),u=0;u<n;u++)c[u]=arguments[u];if(t.apply(o,c),("assert"!==r||!c[0])&&!a){a=!0;try{var l=OO.parse(new Error).map(function(e){return e.toString()}).splice(1),h="assert"===r?c.slice(1):c,d=h.map(function(e){return MO(e,i.stringifyOptions)});s++,s<i.lengthThreshold?e({level:r,trace:l,payload:d}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[MO("The number of log records reached the threshold.")]})}catch(p){t.apply(void 0,[].concat(["rrweb logger error:",p],c))}finally{a=!1}}}}):function(){}}}var LO,DO,BO,NO="rrweb/console@1",jO=function(e){return{name:NO,observer:PO,options:e}},FO=Tl["setImmediate"],UO=Object.prototype.toString,zO="undefined"!==typeof FO?function(e){return FO(e)}:setTimeout;try{Object.defineProperty({},"x",{}),LO=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(EP){LO=function(e,t,r){return e[t]=r,e}}function qO(e,t){BO.add(e,t),DO||(DO=zO(BO.drain))}function HO(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"===typeof t&&t}function $O(){for(var e=0;e<this.chain.length;e++)WO(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function WO(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg),n===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=HO(n))?i.call(n,r.resolve,r.reject):r.resolve(n))}catch(EP){r.reject(EP)}}function VO(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=HO(e))?qO(function(){var n=new JO(r);try{t.call(e,function(){VO.apply(n,arguments)},function(){YO.apply(n,arguments)})}catch(EP){YO.call(n,EP)}}):(r.msg=e,r.state=1,r.chain.length>0&&qO($O,r))}catch(EP){YO.call(new JO(r),EP)}}}function YO(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&qO($O,t))}function XO(e,t,r,n){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)})(i)}function JO(e){this.def=e,this.triggered=!1}function GO(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function KO(e){if("function"!==typeof e)throw TypeError("Not a function");if(0!==this["__NPO__"])throw TypeError("Not a promise");this["__NPO__"]=1;var t=new GO(this);this["then"]=function(e,r){var n={success:"function"!==typeof e||e,failure:"function"===typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!==typeof e||"function"!==typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&qO($O,t),n.promise},this["catch"]=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){VO.call(t,e)},function(e){YO.call(t,e)})}catch(EP){YO.call(t,EP)}}BO=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;e=t=DO=void 0;while(r)r.fn.call(r.self),r=r.next}}}();var ZO,QO=LO({},"constructor",KO,!1);KO.prototype=QO,LO(QO,"__NPO__",0,!1),LO(KO,"resolve",function(e){var t=this;return e&&"object"===typeof e&&1===e["__NPO__"]?e:new t(function(t,r){if("function"!==typeof t||"function"!==typeof r)throw TypeError("Not a function");t(e)})}),LO(KO,"reject",function(e){return new this(function(t,r){if("function"!==typeof t||"function"!==typeof r)throw TypeError("Not a function");r(e)})}),LO(KO,"all",function(e){var t=this;return"[object Array]"!==UO.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!==typeof r||"function"!==typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;XO(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),LO(KO,"race",function(e){var t=this;return"[object Array]"!==UO.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!==typeof r||"function"!==typeof n)throw TypeError("Not a function");XO(t,e,function(e,t){r(t)},n)})}),ZO="undefined"!==typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:KO;var eA=864e5,tA=8e3,rA=Array.prototype,nA=Function.prototype,iA=Object.prototype,oA=rA.slice,sA=iA.toString,aA=iA.hasOwnProperty,cA=Tl.console,uA=Tl.navigator,lA=Tl.document,hA=Tl.opera,dA=Tl.screen,pA=uA.userAgent,fA=nA.bind,gA=rA.forEach,mA=rA.indexOf,vA=rA.map,yA=Array.isArray,wA={},bA={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},_A={log:function(){if(Pl.DEBUG&&!bA.isUndefined(cA)&&cA)try{cA.log.apply(cA,arguments)}catch(EP){bA.each(arguments,function(e){cA.log(e)})}},warn:function(){if(Pl.DEBUG&&!bA.isUndefined(cA)&&cA){var e=["Mixpanel warning:"].concat(bA.toArray(arguments));try{cA.warn.apply(cA,e)}catch(EP){bA.each(e,function(e){cA.warn(e)})}}},error:function(){if(Pl.DEBUG&&!bA.isUndefined(cA)&&cA){var e=["Mixpanel error:"].concat(bA.toArray(arguments));try{cA.error.apply(cA,e)}catch(EP){bA.each(e,function(e){cA.error(e)})}}},critical:function(){if(!bA.isUndefined(cA)&&cA){var e=["Mixpanel error:"].concat(bA.toArray(arguments));try{cA.error.apply(cA,e)}catch(EP){bA.each(e,function(e){cA.error(e)})}}}},kA=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(_A,arguments)}},SA=function(e){return{log:kA(_A.log,e),error:kA(_A.error,e),critical:kA(_A.critical,e)}},xA=function(e){return function(){try{return e.apply(this,arguments)}catch(t){_A.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Pl.DEBUG&&_A.critical(t)}}},CA=function(e){var t=e.prototype;for(var r in t)"function"===typeof t[r]&&(t[r]=xA(t[r]))};bA.bind=function(e,t){var r,n;if(fA&&e.bind===fA)return fA.apply(e,oA.call(arguments,1));if(!bA.isFunction(e))throw new TypeError;return r=oA.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(oA.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(oA.call(arguments)));return Object(s)===s?s:o},n},bA.each=function(e,t,r){if(null!==e&&void 0!==e)if(gA&&e.forEach===gA)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===wA)return}else for(var o in e)if(aA.call(e,o)&&t.call(r,e[o],o,e)===wA)return},bA.extend=function(e){return bA.each(oA.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},bA.isArray=yA||function(e){return"[object Array]"===sA.call(e)},bA.isFunction=function(e){return"function"===typeof e},bA.isArguments=function(e){return!(!e||!aA.call(e,"callee"))},bA.toArray=function(e){return e?e.toArray?e.toArray():bA.isArray(e)||bA.isArguments(e)?oA.call(e):bA.values(e):[]},bA.map=function(e,t,r){if(vA&&e.map===vA)return e.map(t,r);var n=[];return bA.each(e,function(e){n.push(t.call(r,e))}),n},bA.keys=function(e){var t=[];return null===e||bA.each(e,function(e,r){t[t.length]=r}),t},bA.values=function(e){var t=[];return null===e||bA.each(e,function(e){t[t.length]=e}),t},bA.include=function(e,t){var r=!1;return null===e?r:mA&&e.indexOf===mA?-1!=e.indexOf(t):(bA.each(e,function(e){if(r||(r=e===t))return wA}),r)},bA.includes=function(e,t){return-1!==e.indexOf(t)},bA.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},bA.isObject=function(e){return e===Object(e)&&!bA.isArray(e)},bA.isEmptyObject=function(e){if(bA.isObject(e)){for(var t in e)if(aA.call(e,t))return!1;return!0}return!1},bA.isUndefined=function(e){return void 0===e},bA.isString=function(e){return"[object String]"==sA.call(e)},bA.isDate=function(e){return"[object Date]"==sA.call(e)},bA.isNumber=function(e){return"[object Number]"==sA.call(e)},bA.isElement=function(e){return!(!e||1!==e.nodeType)},bA.encodeDates=function(e){return bA.each(e,function(t,r){bA.isDate(t)?e[r]=bA.formatDate(t):bA.isObject(t)&&(e[r]=bA.encodeDates(t))}),e},bA.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},bA.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},bA.strip_empty_properties=function(e){var t={};return bA.each(e,function(e,r){bA.isString(e)&&e.length>0&&(t[r]=e)}),t},bA.truncate=function(e,t){var r;return"string"===typeof e?r=e.slice(0,t):bA.isArray(e)?(r=[],bA.each(e,function(e){r.push(bA.truncate(e,t))})):bA.isObject(e)?(r={},bA.each(e,function(e,n){r[n]=bA.truncate(e,t)})):r=e,r},bA.JSONEncode=function(){return function(e){var t=e,r=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"===typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},n=function(e,t){var i="",o=" ",s=0,a="",c="",u=0,l=i,h=[],d=t[e];switch(d&&"object"===typeof d&&"function"===typeof d.toJSON&&(d=d.toJSON(e)),typeof d){case"string":return r(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(i+=o,h=[],"[object Array]"===sA.apply(d)){for(u=d.length,s=0;s<u;s+=1)h[s]=n(s,d)||"null";return c=0===h.length?"[]":i?"[\n"+i+h.join(",\n"+i)+"\n"+l+"]":"["+h.join(",")+"]",i=l,c}for(a in d)aA.call(d,a)&&(c=n(a,d),c&&h.push(r(a)+(i?": ":":")+c));return c=0===h.length?"{}":i?"{"+h.join(",")+l+"}":"{"+h.join(",")+"}",i=l,c}};return n("",{"":t})}}(),bA.JSONDecode=function(){var e,t,r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},o=function(t){var n=new SyntaxError(t);throw n.at=e,n.text=r,n},s=function(n){return n&&n!==t&&o("Expected '"+n+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},a=function(){var e,r="";"-"===t&&(r="-",s("-"));while(t>="0"&&t<="9")r+=t,s();if("."===t){r+=".";while(s()&&t>="0"&&t<="9")r+=t}if("e"===t||"E"===t){r+=t,s(),"-"!==t&&"+"!==t||(r+=t,s());while(t>="0"&&t<="9")r+=t,s()}if(e=+r,isFinite(e))return e;o("Bad number")},c=function(){var e,r,n,a="";if('"'===t)while(s()){if('"'===t)return s(),a;if("\\"===t)if(s(),"u"===t){for(n=0,r=0;r<4;r+=1){if(e=parseInt(s(),16),!isFinite(e))break;n=16*n+e}a+=String.fromCharCode(n)}else{if("string"!==typeof i[t])break;a+=i[t]}else a+=t}o("Bad string")},u=function(){while(t&&t<=" ")s()},l=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')},h=function(){var e=[];if("["===t){if(s("["),u(),"]"===t)return s("]"),e;while(t){if(e.push(n()),u(),"]"===t)return s("]"),e;s(","),u()}}o("Bad array")},d=function(){var e,r={};if("{"===t){if(s("{"),u(),"}"===t)return s("}"),r;while(t){if(e=c(),u(),s(":"),Object.hasOwnProperty.call(r,e)&&o('Duplicate key "'+e+'"'),r[e]=n(),u(),"}"===t)return s("}"),r;s(","),u()}}o("Bad object")};return n=function(){switch(u(),t){case"{":return d();case"[":return h();case'"':return c();case"-":return a();default:return t>="0"&&t<="9"?a():l()}},function(i){var s;return r=i,e=0,t=" ",s=n(),u(),t&&o("Syntax error"),s}}(),bA.base64Encode=function(e){var t,r,n,i,o,s,a,c,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=0,h=0,d="",p=[];if(!e)return e;e=bA.utf8Encode(e);do{t=e.charCodeAt(l++),r=e.charCodeAt(l++),n=e.charCodeAt(l++),c=t<<16|r<<8|n,i=c>>18&63,o=c>>12&63,s=c>>6&63,a=63&c,p[h++]=u.charAt(i)+u.charAt(o)+u.charAt(s)+u.charAt(a)}while(l<e.length);switch(d=p.join(""),e.length%3){case 1:d=d.slice(0,-2)+"==";break;case 2:d=d.slice(0,-1)+"=";break}return d},bA.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,n,i="",o=0;for(t=r=0,o=e.length,n=0;n<o;n++){var s=e.charCodeAt(n),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=n+1)}return r>t&&(i+=e.substring(t,e.length)),i},bA.UUID=function(){try{return Tl["crypto"]["randomUUID"]()}catch(EP){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",bA.map(e,function(e){return e.toString(16)}).join("")}};var EA=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];bA.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<EA.length;t++)if(-1!==e.indexOf(EA[t]))return!0;return!1},bA.HTTPBuildQuery=function(e,t){var r,n,i=[];return bA.isUndefined(t)&&(t="&"),bA.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},bA.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r="[\\?&]"+t+"=([^&#]*)",n=new RegExp(r),i=n.exec(e);if(null===i||i&&"string"!==typeof i[1]&&i[1].length)return"";var o=i[1];try{o=decodeURIComponent(o)}catch(EP){_A.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},bA.cookie={get:function(e){for(var t=e+"=",r=lA.cookie.split(";"),n=0;n<r.length;n++){var i=r[n];while(" "==i.charAt(0))i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=bA.JSONDecode(bA.cookie.get(e))||{}}catch(EP){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=HA(lA.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),lA.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=HA(lA.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*60*60*1e3),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var d=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return lA.cookie=d,d},remove:function(e,t,r){bA.cookie.set(e,"",-1,t,!1,!1,r)}};var OA=function(e){var t=!0;try{var r="__mplss_"+FA(8),n="xyz";e.setItem(r,n),e.getItem(r)!==n&&(t=!1),e.removeItem(r)}catch(EP){t=!1}return t},AA=null,IA=function(e,t){return null===AA||t?AA=OA(e||Tl.localStorage):AA},TA=null,MA=function(e,t){return null===TA||t?TA=OA(e||Tl.sessionStorage):TA};function RA(e,t,r){var n=function(e){_A.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||_A.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(EP){n(EP)}return null},parse:function(t){try{return bA.JSONDecode(e.getItem(t))||{}}catch(EP){}return null},set:function(t,r){try{e.setItem(t,r)}catch(EP){n(EP)}},remove:function(t){try{e.removeItem(t)}catch(EP){n(EP)}}}}var PA=null,LA=null;try{PA=Tl.localStorage,LA=Tl.sessionStorage}catch(OP){}bA.localStorage=RA(PA,"localStorage",IA),bA.sessionStorage=RA(LA,"sessionStorage",MA),bA.register_event=function(){var e=function(e,r,n,i,o){if(e)if(e.addEventListener&&!i)e.addEventListener(r,n,!!o);else{var s="on"+r,a=e[s];e[s]=t(e,n,a)}else _A.error("No valid element provided to register_event")};function t(e,t,n){var i=function(i){if(i=i||r(Tl.event),i){var o,s,a=!0;return bA.isFunction(n)&&(o=n(i)),s=t.call(e,i),!1!==o&&!1!==s||(a=!1),a}};return i}function r(e){return e&&(e.preventDefault=r.preventDefault,e.stopPropagation=r.stopPropagation),e}return r.preventDefault=function(){this.returnValue=!1},r.stopPropagation=function(){this.cancelBubble=!0},e}();var DA=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');bA.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!lA.getElementsByTagName)return[];var n,i,o,s,a,c,u,l,h,d,p=t.split(" "),f=[lA];for(c=0;c<p.length;c++)if(n=p[c].replace(/^\s+/,"").replace(/\s+$/,""),n.indexOf("#")>-1){i=n.split("#"),o=i[0];var g=i[1],m=lA.getElementById(g);if(!m||o&&m.nodeName.toLowerCase()!=o)return[];f=[m]}else if(n.indexOf(".")>-1){i=n.split("."),o=i[0];var v=i[1];for(o||(o="*"),s=[],a=0,u=0;u<f.length;u++)for(h="*"==o?e(f[u]):f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];for(f=[],d=0,u=0;u<s.length;u++)s[u].className&&bA.isString(s[u].className)&&r(s[u],v)&&(f[d++]=s[u])}else{var y=n.match(DA);if(y){o=y[1];var w,b=y[2],_=y[3],k=y[4];for(o||(o="*"),s=[],a=0,u=0;u<f.length;u++)for(h="*"==o?e(f[u]):f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];switch(f=[],d=0,_){case"=":w=function(e){return e.getAttribute(b)==k};break;case"~":w=function(e){return e.getAttribute(b).match(new RegExp("\\b"+k+"\\b"))};break;case"|":w=function(e){return e.getAttribute(b).match(new RegExp("^"+k+"-?"))};break;case"^":w=function(e){return 0===e.getAttribute(b).indexOf(k)};break;case"$":w=function(e){return e.getAttribute(b).lastIndexOf(k)==e.getAttribute(b).length-k.length};break;case"*":w=function(e){return e.getAttribute(b).indexOf(k)>-1};break;default:w=function(e){return e.getAttribute(b)}}for(f=[],d=0,u=0;u<s.length;u++)w(s[u])&&(f[d++]=s[u])}else{for(o=n,s=[],a=0,u=0;u<f.length;u++)for(h=f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];f=s}}return f}return function(e){return bA.isElement(e)?[e]:bA.isObject(e)&&!bA.isUndefined(e.length)?e:n.call(this,e)}}();var BA=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],NA=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];bA.info={campaignParams:function(e){var t="",r={};return bA.each(BA,function(n){t=bA.getQueryParam(lA.URL,n),t.length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return bA.each(NA,function(r){e=bA.getQueryParam(lA.URL,r),e.length&&(t[r]=e)}),t},marketingParams:function(){return bA.extend(bA.info.campaignParams(),bA.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=bA.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n["$search_engine"]=t;var i=bA.getQueryParam(e,r);i.length&&(n["mp_keyword"]=i)}return n},browser:function(e,t,r){return t=t||"",r||bA.includes(e," OPR/")?bA.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":bA.includes(e,"IEMobile")||bA.includes(e,"WPDesktop")?"Internet Explorer Mobile":bA.includes(e,"SamsungBrowser/")?"Samsung Internet":bA.includes(e,"Edge")||bA.includes(e,"Edg/")?"Microsoft Edge":bA.includes(e,"FBIOS")?"Facebook Mobile":bA.includes(e,"Whale/")?"Whale Browser":bA.includes(e,"Chrome")?"Chrome":bA.includes(e,"CriOS")?"Chrome iOS":bA.includes(e,"UCWEB")||bA.includes(e,"UCBrowser")?"UC Browser":bA.includes(e,"FxiOS")?"Firefox iOS":bA.includes(t,"Apple")?bA.includes(e,"Mobile")?"Mobile Safari":"Safari":bA.includes(e,"Android")?"Android Mobile":bA.includes(e,"Konqueror")?"Konqueror":bA.includes(e,"Firefox")?"Firefox":bA.includes(e,"MSIE")||bA.includes(e,"Trident/")?"Internet Explorer":bA.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n=bA.info.browser(e,t,r),i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},o=i[n];if(void 0===o)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var e=pA;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return Tl.location.href},properties:function(e){return"object"!==typeof e&&(e={}),bA.extend(bA.strip_empty_properties({$os:bA.info.os(),$browser:bA.info.browser(pA,uA.vendor,hA),$referrer:lA.referrer,$referring_domain:bA.info.referringDomain(lA.referrer),$device:bA.info.device(pA)}),{$current_url:bA.info.currentUrl(),$browser_version:bA.info.browserVersion(pA,uA.vendor,hA),$screen_height:dA.height,$screen_width:dA.width,mp_lib:"web",$lib_version:Pl.LIB_VERSION,$insert_id:FA(),time:bA.timestamp()/1e3},bA.strip_empty_properties(e))},people_properties:function(){return bA.extend(bA.strip_empty_properties({$os:bA.info.os(),$browser:bA.info.browser(pA,uA.vendor,hA)}),{$browser_version:bA.info.browserVersion(pA,uA.vendor,hA)})},mpPageViewProperties:function(){return bA.strip_empty_properties({current_page_title:lA.title,current_domain:Tl.location.hostname,current_url_path:Tl.location.pathname,current_url_protocol:Tl.location.protocol,current_url_search:Tl.location.search})}};var jA=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new ZO(function(i){setTimeout(function(){var t=e.apply(o,[n]);r=null,n=[],i(t)},t)})),r}},FA=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},UA=function(){var e=bA.UUID().replace(/-/g,""),t=bA.UUID().replace(/-/g,"").substring(0,16),r="01";return"00-"+e+"-"+t+"-"+r},zA=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,qA=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,HA=function(e){var t=qA,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=zA);var i=e.match(t);return i?i[0]:""},$A=function(){var e=Tl.navigator["onLine"];return bA.isUndefined(e)||e},WA=function(){},VA=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},YA=null,XA=null;"undefined"!==typeof JSON&&(YA=JSON.stringify,XA=JSON.parse),YA=YA||bA.JSONEncode,XA=XA||bA.JSONDecode;var JA=function(e,t,r){if(!Tl.CompressionStream)return!1;var n=bA.info.browser(e,t,r),i=bA.info.browserVersion(e,t,r);return!(("Safari"===n||"Mobile Safari"===n)&&i>=16.4&&i<16.6)};bA["info"]=bA.info,bA["info"]["browser"]=bA.info.browser,bA["info"]["browserVersion"]=bA.info.browserVersion,bA["info"]["device"]=bA.info.device,bA["info"]["properties"]=bA.info.properties,bA["isBlockedUA"]=bA.isBlockedUA,bA["isEmptyObject"]=bA.isEmptyObject,bA["isObject"]=bA.isObject,bA["JSONDecode"]=bA.JSONDecode,bA["JSONEncode"]=bA.JSONEncode,bA["toArray"]=bA.toArray,bA["NPO"]=KO;var GA="mixpanelBrowserDb",KA="mixpanelRecordingEvents",ZA="mixpanelRecordingRegistry",QA=1,eI=[KA,ZA],tI=function(e){this.dbPromise=null,this.storeName=e};tI.prototype._openDb=function(){return new ZO(function(e,t){var r=Tl.indexedDB.open(GA,QA);r["onerror"]=function(){t(r.error)},r["onsuccess"]=function(){e(r.result)},r["onupgradeneeded"]=function(e){var t=e.target.result;eI.forEach(function(e){t.createObjectStore(e)})}})},tI.prototype.init=function(){return Tl.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof Tl["IDBDatabase"]?ZO.resolve():ZO.reject(e)})):ZO.reject("indexedDB is not supported in this browser")},tI.prototype.isInitialized=function(){return!!this.dbPromise},tI.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new ZO(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch(function(e){return e&&"InvalidStateError"===e["name"]?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):ZO.reject(e)}.bind(this))},tI.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},tI.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},tI.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},tI.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var rI="__mp_opt_in_out_";function nI(e,t){gI(!0,e,t)}function iI(e,t){gI(!1,e,t)}function oI(e,t){return"1"===pI(e,t)}function sI(e,t){if(fI(t))return _A.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===pI(e,t);return r&&_A.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function aI(e){return mI(e,function(e){return this.get_config(e)})}function cI(e){return mI(e,function(e){return this._get_config(e)})}function uI(e){return mI(e,function(e){return this._get_config(e)})}function lI(e,t){t=t||{},hI(t).remove(dI(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function hI(e){return e=e||{},"localStorage"===e.persistenceType?bA.localStorage:bA.cookie}function dI(e,t){return t=t||{},(t.persistencePrefix||rI)+e}function pI(e,t){return hI(t).get(dI(e,t))}function fI(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||Tl,r=t["navigator"]||{},n=!1;return bA.each([r["doNotTrack"],r["msDoNotTrack"],t["doNotTrack"]],function(e){bA.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}function gI(e,t,r){bA.isString(t)&&t.length?(r=r||{},hI(r).set(dI(t,r),e?1:0,bA.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):_A.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function mI(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=sI(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(EP){_A.error("Unexpected error when checking tracking opt-out status: "+EP)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"===typeof c&&c(0)}}var vI=SA("lock"),yI=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||Tl.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||ZO};yI.prototype.withLock=function(e,t){var r=this.promiseImpl;return new r(bA.bind(function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=s+":X",h=s+":Y",d=s+":Z",p=function(e){if((new Date).getTime()-o>c)return vI.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(d),u.removeItem(h),void m();setTimeout(function(){try{e()}catch(EP){n(EP)}},a*(Math.random()+.1))},f=function(e,t){e()?t():p(function(){f(e,t)})},g=function(){var e=u.getItem(h);return(!e||e===i)&&(u.setItem(h,i),u.getItem(h)===i||(IA(u,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){u.setItem(l,i),f(g,function(){u.getItem(l)!==i?p(function(){u.getItem(h)===i?f(function(){return!u.getItem(d)},v):m()}):v()})},v=function(){u.setItem(d,"1");var t=function(){u.removeItem(d),u.getItem(h)===i&&u.removeItem(h),u.getItem(l)===i&&u.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(!IA(u,!0))throw new Error("localStorage support check failed");m()}catch(EP){n(EP)}},this))};var wI=function(e){this.storage=e||Tl.localStorage};wI.prototype.init=function(){return ZO.resolve()},wI.prototype.isInitialized=function(){return!0},wI.prototype.setItem=function(e,t){return new ZO(bA.bind(function(r,n){try{this.storage.setItem(e,YA(t))}catch(i){n(i)}r()},this))},wI.prototype.getItem=function(e){return new ZO(bA.bind(function(t,r){var n;try{n=XA(this.storage.getItem(e))}catch(i){r(i)}t(n)},this))},wI.prototype.removeItem=function(e){return new ZO(bA.bind(function(t,r){try{this.storage.removeItem(e)}catch(n){r(n)}t()},this))};var bI=SA("batch"),_I=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new wI,this.lock=new yI(e,{storage:t.sharedLockStorage||Tl.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||bA.bind(bI.error,bI),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=jA(bA.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=bA.bind(function(e){return this._enqueuePersisted([e])},this)};_I.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?ZO.resolve():this.queueStorage.init().then(bA.bind(function(){this.initialized=!0},this)).catch(bA.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},_I.prototype.enqueue=function(e,t){var r={id:FA(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),ZO.resolve(!0))},_I.prototype._enqueuePersisted=function(e){var t=bA.bind(function(){return this.ensureInit().then(bA.bind(function(){return this.readFromStorage()},this)).then(bA.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(bA.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(bA.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(bA.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},_I.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(bA.bind(function(){return this.readFromStorage()},this)).then(bA.bind(function(r){if(r.length){var n={};bA.each(t,function(e){n[e["id"]]=!0});for(var i=0;i<r.length;i++){var o=r[i];if((new Date).getTime()>o["flushAfter"]&&!n[o["id"]]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):ZO.resolve(t)};var kI=function(e,t){var r=[];return bA.each(e,function(e){e["id"]&&!t[e["id"]]&&r.push(e)}),r};_I.prototype.removeItemsByID=function(e){var t={};if(bA.each(e,function(e){t[e]=!0}),this.memQueue=kI(this.memQueue,t),this.usePersistence){var r=bA.bind(function(){return this.ensureInit().then(bA.bind(function(){return this.readFromStorage()},this)).then(bA.bind(function(e){return e=kI(e,t),this.saveToStorage(e)},this)).then(bA.bind(function(){return this.readFromStorage()},this)).then(bA.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n["id"]&&t[n["id"]])throw new Error("Item not removed from storage")}return!0},this)).catch(bA.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(bA.bind(function(e){return this.reportError("Error acquiring storage lock",e),!IA(this.lock.storage,!0)&&r().then(bA.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(bA.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}return ZO.resolve(!0)};var SI=function(e,t){var r=[];return bA.each(e,function(e){var n=e["id"];if(n in t){var i=t[n];null!==i&&(e["payload"]=i,r.push(e))}else r.push(e)}),r};_I.prototype.updatePayloads=function(e){return this.memQueue=SI(this.memQueue,e),this.usePersistence?this.lock.withLock(bA.bind(function(){return this.ensureInit().then(bA.bind(function(){return this.readFromStorage()},this)).then(bA.bind(function(t){return t=SI(t,e),this.saveToStorage(t)},this)).catch(bA.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(bA.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):ZO.resolve(!0)},_I.prototype.readFromStorage=function(){return this.ensureInit().then(bA.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(bA.bind(function(e){return e&&(bA.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(bA.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},_I.prototype.saveToStorage=function(e){return this.ensureInit().then(bA.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(bA.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},_I.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(bA.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):ZO.resolve()};var xI=6e5,CI=SA("batch"),EI=function(e,t){this.errorReporter=t.errorReporter,this.queue=new _I(e,{errorReporter:bA.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig["batch_size"],this.flushInterval=this.libConfig["batch_flush_interval_ms"],this.stopped=!this.libConfig["batch_autostart"],this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};EI.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},EI.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},EI.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},EI.prototype.clear=function(){return this.queue.clear()},EI.prototype.resetBatchSize=function(){this.batchSize=this.libConfig["batch_size"]},EI.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig["batch_flush_interval_ms"])},EI.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(bA.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},EI.prototype.sendRequestPromise=function(e,t){return new ZO(bA.bind(function(r){this.sendRequest(e,t,r)},this))},EI.prototype.flush=function(e){if(this.requestInProgress)return CI.log("Flush: Request already in progress"),ZO.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig["batch_request_timeout_ms"],r=(new Date).getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(bA.bind(function(i){var o=i.length===n,s=[],a={};if(bA.each(i,function(e){var t=e["payload"];if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t["event"]&&t["properties"]&&(t["properties"]=bA.extend({},t["properties"],{mp_sent_by_lib_version:Pl.LIB_VERSION}));var r=!0,n=e["id"];n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e["id"]]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),ZO.resolve();var c=bA.bind(function(){return this.queue.removeItemsByID(bA.map(i,function(e){return e["id"]})).then(bA.bind(function(e){return bA.each(i,bA.bind(function(e){var t=e["id"];t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),ZO.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),ZO.resolve())},this))},this),u=bA.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(bA.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(bA.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!$A()||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(xI,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),ZO.resolve()}if(bA.isObject(o)&&413===o.httpStatusCode){if(i.length>1){var u=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,u,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),ZO.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c()}return c()}catch(EP){this.reportError("Error handling API response",EP),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),CI.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(bA.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},EI.prototype.reportError=function(e,t){if(CI.error.apply(CI.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){CI.error(t)}};var OI=function(e){var t=Date.now();return!e||t>e["maxExpires"]||t>e["idleExpires"]},AI=250,II=function(e,t){if(!bA.isArray(e))return e&&t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var r=[],n=0;n<e.length;n++)try{var i=new URL(e[n]).origin;if("null"===i){t.critical(e[n]+" has an opaque origin. Skipping this entry.");continue}r.push(i)}catch(o){t.critical(e[n]+" is not a valid origin URL. Skipping this entry.")}return r},TI="change",MI="click",RI="hashchange",PI="input",LI="load",DI="mp_locationchange",BI="popstate",NI="scrollend",jI="scroll",FI="select",UI="submit",zI="toggle",qI="visibilitychange",HI=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],$I=["mp-include"],WI=["mp-no-track"],VI=WI.concat(["mp-sensitive"]),YI=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],XI={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},JI={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},GI={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},KI=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],ZI=5,QI=SA("autocapture");function eT(e){for(var t={},r=tT(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function tT(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function rT(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!uT(e));return e}function nT(e,t,r,n,i,o){var s={$classes:tT(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s["$id"]=a),mT(e,t,i,o)&&bA.each(YI.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);vT(n)&&(s["$attr-"+t]=n)}});var c=1,u=1,l=e;while(l=rT(l))c++,l.tagName===e.tagName&&u++;return s["$nth_child"]=c,s["$nth_of_type"]=u,s}function iT(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.capturedForHeatMap||!1,l={};bA.each(i,function(e){l[e]=!0});var h=null,d="undefined"===typeof e.target?e.srcElement:e.target;if(hT(d)&&(d=d.parentNode),fT(d,e)&&aT(d,e,r,n)&&!cT(d,e,o,s)){var p=[d],f=d;while(f.parentNode&&!lT(f,"body"))p.push(f.parentNode),f=f.parentNode;var g,m=[],v=!1;if(bA.each(p,function(t){var i=mT(t,e,r,n);l["href"]||"a"!==t.tagName.toLowerCase()||(g=t.getAttribute("href"),g=i&&vT(g)&&g),cT(t,e,o,s)&&(v=!0),m.push(nT(t,e,l,c,r,n))},this),!v){var y=lA["documentElement"];if(h={$event_type:e.type,$host:Tl.location.host,$pathname:Tl.location.pathname,$elements:m,$el_attr__href:g,$viewportHeight:Math.max(y["clientHeight"],Tl["innerHeight"]||0),$viewportWidth:Math.max(y["clientWidth"],Tl["innerWidth"]||0),$pageHeight:lA["body"]["offsetHeight"]||0,$pageWidth:lA["body"]["offsetWidth"]||0},bA.each(c,function(e){if(!l[e]&&d.hasAttribute(e)){var t=d.getAttribute(e);vT(t)&&(h["$el_attr__"+e]=t)}}),a&&(w=oT(d,e,r,n),w&&w.length&&(h["$el_text"]=w)),e.type===MI&&(bA.each(HI,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h["$captured_for_heatmap"]=!0),d=sT(e)),a){var w=oT(d,e,r,n);w&&w.length&&(h["$el_text"]=w)}if(d){if(!aT(d,e,r,n)||cT(d,e,o,s))return null;var b=nT(d,e,l,c,r,n);h["$target"]=b,h["$el_classes"]=b["$classes"],bA.extend(h,bA.strip_empty_properties({$el_id:b["$id"],$el_tag_name:b["$tag_name"]}))}}}return h}function oT(e,t,r,n){var i="";return mT(e,t,r,n)&&e.childNodes&&e.childNodes.length&&bA.each(e.childNodes,function(e){hT(e)&&e.textContent&&(i+=bA.trim(e.textContent).split(/(\s+)/).filter(vT).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),bA.trim(i)}function sT(e){for(var t=e.target,r=e["composedPath"](),n=0;n<r.length;n++){var i=r[n];if(lT(i,"a")||lT(i,"button")||lT(i,"input")||lT(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}function aT(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(EP){return QI.critical("Error while checking element in allowElementCallback",EP),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(EP){QI.critical("Error while checking selector: "+o,EP)}}return!1}function cT(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(EP){return QI.critical("Error while checking element in blockElementCallback",EP),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(EP){QI.critical("Error while checking selector: "+o,EP)}}var s=eT(e);for(i=0;i<WI.length;i++)if(s[WI[i]])return!0;return!1}function uT(e){return e&&1===e.nodeType}function lT(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function hT(e){return e&&3===e.nodeType}function dT(){try{var e=lA.createElement("div");return!!e["matches"]}catch(EP){return!1}}function pT(){return"undefined"!==typeof WeakSet}function fT(e,t){if(!e||lT(e,"html")||!uT(e))return!1;var r=e.tagName.toLowerCase();switch(r){case"form":return t.type===UI;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===TI:t.type===MI;case"select":case"textarea":return t.type===TI;default:return t.type===MI}}function gT(e){var t=(e.name||e.id||"").toString().toLowerCase();if("string"===typeof t){var r=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(r.test(t.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function mT(e,t,r,n){var i;if(!aT(e,t,r,n))return!1;for(var o=e;o.parentNode&&!lT(o,"body");o=o.parentNode){var s=eT(o);for(i=0;i<VI.length;i++)if(s[VI[i]])return!1}var a=eT(e);for(i=0;i<$I.length;i++)if(a[$I[i]])return!0;if(lT(e,"input")||lT(e,"select")||lT(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"===typeof c)switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}return!gT(e)}function vT(e){if(null===e||bA.isUndefined(e))return!1;if("string"===typeof e){e=bA.trim(e);var t=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(t.test((e||"").replace(/[- ]/g,"")))return!1;var r=/(^\d{3}-?\d{2}-?\d{4}$)/;if(r.test(e))return!1}return!0}function yT(e){var t="onscrollend"in Tl,r=xA(e),n=NI;if(!t){var i=null,o=100;r=xA(function(){clearTimeout(i),i=setTimeout(e,o)}),n=jI}return{listener:r,eventType:n}}function wT(e){for(var t=0;t<KI.length;t++)if(e.hasAttribute(KI[t]))return!0;return!1}function bT(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return XI[r]}function _T(e){var t=e.tagName.toLowerCase();return"button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||(!!e.isContentEditable||(!!(e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend)||(!!wT(e)||(!!bT(e)||(!("a"!==t||!e.hasAttribute("href"))||!!e.hasAttribute("tabindex"))))))}function kT(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(JI[t])return!0;if(_T(e))return!1;var r=e.parentElement,n=0;while(r&&n<ZI){if(_T(r))return!1;if(r.getRootNode&&r.getRootNode()!==lA){var i=r.getRootNode();if(i.host&&_T(i.host))return!1}r=r.parentElement,n++}return!!GI[t]}function ST(e){return"composedPath"in e?e["composedPath"]():[]}function xT(e){var t=ST(e);return t&&t.length>0?t[0]:e["target"]||e["srcElement"]}var CT=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",ET="data-rr-is-password",OT=["password","email","tel","hidden"];function AT(e){return e?Array.isArray(e)?e:[e]:[]}function IT(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=AT(r).join(","),t.input.unmaskingSelector=AT(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),c=e.get_config("record_mask_text_class"),u=AT(o);if(c)if(c instanceof RegExp)t.text._legacyClassRegex=c;else{var l="."+c;-1===u.indexOf(l)&&u.push(l)}return t.text.maskingSelector=u.join(","),t.text.unmaskingSelector=AT(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}function TT(e,t){return!!t&&!!e.closest(t)}function MT(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==OT.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!(!n||""===n||"off"===n)||(!!e.hasAttribute(ET)||(!!gT(e)||(t.input.maskAll?!TT(e,t.input.unmaskingSelector):!!TT(e,t.input.maskingSelector)||!!TT(e,CT))))}function RT(e,t){return!!e&&(!(!t.text._legacyClassRegex||!kS(e,t.text._legacyClassRegex))||(t.text.maskAll?!TT(e,t.text.unmaskingSelector):!!TT(e,t.text.maskingSelector)||!!TT(e,CT)))}var PT=SA("network-plugin");function LT(e){return Math.round(Date.now()-e.performance.now())}var DT={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function BT(e){return"navigation"===e.entryType}function NT(e){return"resource"===e.entryType}function jT(e,t){for(var r=e.length,n=r-1;n>=0;n-=1)if(t(e[n]))return e[n]}function FT(e,t,r){if(!(t in e)||"function"!==typeof e[t])return function(){};var n=e[t],i=r(n);return e[t]=i,function(){e[t]=n}}var UT=1048576;function zT(e){return e&&"string"===typeof e&&e.length>UT?(PT.error("Body truncated from "+e.length+" to "+UT+" characters"),e.substring(0,UT)+"... [truncated]"):e}function qT(e,t,r){if(!t.PerformanceObserver)return PT.error("PerformanceObserver not supported"),function(){};if(r.recordInitialRequests){var n=t.performance.getEntries().filter(function(e){return BT(e)||NT(e)&&r.initiatorTypes.includes(e.initiatorType)});e({requests:n.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:LT(t)}}),isInitial:!0})}var i=new t.PerformanceObserver(function(n){var i=n.getEntries().filter(function(e){return NT(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType});e({requests:i.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:LT(t)}})})});return i.observe({entryTypes:["navigation","resource"]}),function(){i.disconnect()}}function HT(e,t,r){return!(!t[e]||0===t[e].length)&&t[e].includes(r.toLowerCase())}function $T(e,t,r){return!(!t[e]||0===t[e].length)&&VA(r,t[e])}function WT(e){if(null===e||void 0===e)return null;var t;if("string"===typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=bA.HTTPBuildQuery(e);else{if(!bA.isObject(e))return"Cannot read body of type "+typeof e;try{t=JSON.stringify(e)}catch(r){return"Failed to stringify response object"}}return zT(t)}function VT(e){return new Promise(function(t){var r=setTimeout(function(){t("Timeout while trying to read body")},500);try{e.clone().text().then(function(e){clearTimeout(r),t(zT(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(n){clearTimeout(r),t("Failed to read body: "+String(n))}})}function YT(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return PT.error("Cannot find performance entry"),Promise.resolve(null);var s=e.performance.getEntriesByName(r),a=jT(s,function(e){return NT(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!i||e.startTime<=i)});return a?Promise.resolve(a):new Promise(function(e){setTimeout(e,50*o)}).then(function(){return YT(e,t,r,n,i,o+1)})}function XT(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=FT(t.XMLHttpRequest.prototype,"open",function(n){return function(i,o,s,a,c){void 0===s&&(s=!0);var u,l,h=this,d=new Request(o,{method:i}),p={},f={},g=h.setRequestHeader.bind(h);h.setRequestHeader=function(e,t){return HT("request",r.recordHeaders,e)&&(f[e]=t),g(e,t)},p.requestHeaders=f;var m=h.send.bind(h);h.send=function(e){return $T("request",r.recordBodyUrls,d.url)&&(p.requestBody=WT(e)),u=t.performance.now(),m(e)},h.addEventListener("readystatechange",function(){if(h.readyState===h.DONE){l=t.performance.now();var n={},i=h.getAllResponseHeaders();if(i){var o=i.trim().split(/[\r\n]+/);o.forEach(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&HT("response",r.recordHeaders,i)&&(n[i]=o)}}})}p.responseHeaders=n,$T("response",r.recordBodyUrls,d.url)&&(p.responseBody=WT(h.response)),YT(t,"xmlhttprequest",d.url,u,l).then(function(r){if(r){var n={url:r.name,method:d.method,initiatorType:r.initiatorType,status:h.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:LT(t),requestHeaders:p.requestHeaders,requestBody:p.requestBody,responseHeaders:p.responseHeaders,responseBody:p.responseBody};e({requests:[n]})}else PT.error("Failed to get performance entry for XHR request to "+d.url)}).catch(function(e){PT.error("Error recording XHR request to "+d.url+": "+String(e))})}}),n.call(h,i,o,s,a,c)}});return function(){n()}}function JT(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=FT(t,"fetch",function(n){return function(){var i,o,s,a,c=new Request(arguments[0],arguments[1]),u={},l=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var d={};c.headers.forEach(function(e,t){HT("request",r.recordHeaders,t)&&(d[t]=e)}),u.requestHeaders=d,$T("request",r.recordBodyUrls,c.url)&&(l=VT(c).then(function(e){u.requestBody=e})),o=t.performance.now(),a=n.apply(t,arguments).then(function(e){i=e,s=t.performance.now();var n={};return i.headers.forEach(function(e,t){HT("response",r.recordHeaders,t)&&(n[t]=e)}),u.responseHeaders=n,$T("response",r.recordBodyUrls,c.url)&&(h=VT(i).then(function(e){u.responseBody=e})),i})}catch(p){a=Promise.reject(p)}return Promise.all([l,h,a]).then(function(){return YT(t,"fetch",c.url,o,s)}).then(function(r){if(r){var n={url:r.name,method:c.method,initiatorType:r.initiatorType,status:i?i.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:LT(t),requestHeaders:u.requestHeaders,requestBody:u.requestBody,responseHeaders:u.responseHeaders,responseBody:u.responseBody};e({requests:[n]})}else PT.error("Failed to get performance entry for fetch request to "+c.url)}).catch(function(e){PT.error("Error recording fetch request to "+c.url+": "+String(e))}),a}});return function(){n()}}function GT(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},DT.recordHeaders,r.recordHeaders||{}),i=Object.assign({},DT.recordBodyUrls,r.recordBodyUrls||{});r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i});var o=Object.assign({},DT,r),s=function(t){var r=t.requests.filter(function(e){var t=VA(e.url,o.ignoreRequestUrls||[]);return!t&&!o.ignoreRequestFn(e)});(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=qT(s,t,o),c=XT(s,t,o),u=JT(s,t,o);return function(){a(),c(),u()}}var KT="rrweb/network@1.mp",ZT=function(e){return{name:KT,observer:GT,options:e}},QT=SA("recorder"),eM=Tl["CompressionStream"],tM={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},rM=new Set([A_.MouseMove,A_.MouseInteraction,A_.Scroll,A_.ViewportResize,A_.Input,A_.TouchMove,A_.MediaInteraction,A_.Drag,A_.Selection]);function nM(e){return e.type===O_.IncrementalSnapshot&&rM.has(e.data.source)}var iM=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||WA,this._onMaxLengthReached=e.onMaxLengthReached||WA,this._onBatchSent=e.onBatchSent||WA,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=eA,this.recordMinMs=0;var t=IA(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new tI(KA),this.batcher=new EI(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:tM,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:AI,sharedLockTimeoutMS:1e4})};iM.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e["$device_id"]=t);var r=this._mixpanel.get_property("$user_id");return r&&(e["$user_id"]=r),e},iM.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},iM.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},iM.prototype.get_config=function(e){return this.getConfig(e)},iM.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>eA&&(this.recordMaxMs=eA,QT.critical("record_max_ms cannot be greater than "+eA+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=bA.info.currentUrl(),this.replayStartUrl=bA.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r=this.getConfig("record_block_selector");""!==r&&null!==r||(r=void 0);var n=IT(this._mixpanel),i=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,i.push(ZT(o))}this.getConfig("record_console")&&i.push(jO({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var a=II(this.getConfig("record_allowed_iframe_origins"),QT);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(nM(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(MT,n),maskTextFn:this._getMaskFn(RT,n),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(EP){this.reportError("Unexpected error when starting rrweb recording.",EP)}if("function"!==typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var c=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),c)}else QT.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},iM.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(EP){this.reportError("Error with rrweb stopRecording",EP)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},iM.prototype.isRrwebStopped=function(){return null===this._stopRecording},iM.prototype.flushEventsWithOptOut=function(e,t,r){var n=function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,t,r,n)},iM.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},iM.deserialize=function(e,t){var r=new iM(bA.extend({},t,{replayId:e["replayId"],batchStartUrl:e["batchStartUrl"],replayStartUrl:e["replayStartUrl"],idleExpires:e["idleExpires"],maxExpires:e["maxExpires"],replayStartTime:e["replayStartTime"],lastEventTimestamp:e["lastEventTimestamp"],seqNo:e["seqNo"],sharedLockStorage:t.sharedLockStorage}));return r},iM.prototype._getApiRoute=function(){return this.getConfig("api_routes")["record"]},iM.prototype._sendRequest=function(e,t,r,n){var i=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=bA.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");Tl["fetch"](o+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},iM.prototype._flushEvents=aI(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,c=0;c<n;c++)o=Math.min(o,e[c].timestamp),s=Math.max(s,e[c].timestamp),e[c].type===O_.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a)return r({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var u=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:Pl.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),JA(pA,uA.vendor,hA)){var d=new Blob([h],{type:"application/json"}).stream(),p=d.pipeThrough(new eM("gzip"));new Response(p).blob().then(function(e){l["format"]="gzip",this._sendRequest(i,l,e,r)}.bind(this))}else l["format"]="body",this._sendRequest(i,l,h,r)}}),iM.prototype.reportError=function(e,t){QT.error.apply(QT.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){QT.error(t)}},iM.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},iM.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>tA?(QT.critical("record_min_ms cannot be greater than "+tA+"ms. Capping value."),tA):e},iM.prototype._getMaskFn=function(e,t){return function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(EP){this.reportError("Error checking if text should be masked, defaulting to masked",EP)}if(i){var o=Math.min(r.length,1e4);return"*".repeat(o)}return r}.bind(this)};var oM=function(e){this.idb=new tI(ZA),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};oM.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},oM.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},oM.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return ZO.resolve();var t=e["tabId"];return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),ZO.resolve())},oM.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return OI(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):ZO.resolve(null)},oM.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},oM.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e["maxExpires"]=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},oM.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):ZO.resolve()},oM.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter(function(e){return OI(e)}).map(function(e){var t=iM.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return t.unloadPersistedData().then(function(){return this.idb.removeItem(e["tabId"])}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return ZO.all(t)}.bind(this)).catch(this.handleError.bind(this)):ZO.resolve([])};var sM=SA("recorder"),aM=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||Zk,this.sharedLockStorage=r,this.recordingRegistry=new oM({mixpanelInstance:this.mixpanelInstance,errorReporter:sM.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};function cM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}aM.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){sM.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){sM.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),n=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this["__flushPromise"]=this.activeRecording.batcher._flushPromise}.bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:bA.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=iM.deserialize(e.activeSerializedRecording,i):this.activeRecording=new iM(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}sM.log("Recording already in progress, skipping startRecording.")},aM.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},aM.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},aM.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return ZO.resolve()},aM.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),ZO.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(sM.log("No resumable recording found."),null)}.bind(this))},aM.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},aM.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},aM.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(aM.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),Tl[Dl]=aM;var uM,lM={exports:{}};lM.exports;function hM(){return uM||(uM=1,function(e){(function(t,r){e.exports=r()})(0,function(){function e(e){for(var t=[],r=0,n=e.length;r<n;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var t={},r={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(e){return t.truthy(e)},"!":function(e){return!t.truthy(e)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||"undefined"===typeof t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var r=void 0===t?null:t,n=this;if("undefined"===typeof e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++){if(null===n||void 0===n)return r;if(n=n[i[o]],void 0===n)return r}return n},missing:function(){for(var e=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=t.apply({var:i},this);null!==o&&""!==o||e.push(i)}return e},missing_some:function(e,r){var n=t.apply({missing:r},this);return r.length-n.length>=e?[]:n}};return t.is_logic=function(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},t.truthy=function(e){return(!Array.isArray(e)||0!==e.length)&&!!e},t.get_operator=function(e){return Object.keys(e)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(e,n){if(Array.isArray(e))return e.map(function(e){return t.apply(e,n)});if(!t.is_logic(e))return e;var i,o,s,a,c,u=t.get_operator(e),l=e[u];if(Array.isArray(l)||(l=[l]),"if"===u||"?:"==u){for(i=0;i<l.length-1;i+=2)if(t.truthy(t.apply(l[i],n)))return t.apply(l[i+1],n);return l.length===i+1?t.apply(l[i],n):null}if("and"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),!t.truthy(o))return o;return o}if("or"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),t.truthy(o))return o;return o}if("filter"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.filter(function(e){return t.truthy(t.apply(s,e))}):[];if("map"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.map(function(e){return t.apply(s,e)}):[];if("reduce"===u)return a=t.apply(l[0],n),s=l[1],c="undefined"!==typeof l[2]?t.apply(l[2],n):null,Array.isArray(a)?a.reduce(function(e,r){return t.apply(s,{current:r,accumulator:e})},c):c;if("all"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(!t.truthy(t.apply(s,a[i])))return!1;return!0}if("none"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!0;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!1;return!0}if("some"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!0;return!1}if(l=l.map(function(e){return t.apply(e,n)}),r.hasOwnProperty(u)&&"function"===typeof r[u])return r[u].apply(n,l);if(u.indexOf(".")>0){var h=String(u).split("."),d=r;for(i=0;i<h.length;i++){if(!d.hasOwnProperty(h[i]))throw new Error("Unrecognized operation "+u+" (failed at "+h.slice(0,i+1).join(".")+")");d=d[h[i]]}return d.apply(n,l)}throw new Error("Unrecognized operation "+u)},t.uses_data=function(r){var n=[];if(t.is_logic(r)){var i=t.get_operator(r),o=r[i];Array.isArray(o)||(o=[o]),"var"===i?n.push(o[0]):o.forEach(function(e){n.push.apply(n,t.uses_data(e))})}return e(n)},t.add_operation=function(e,t){r[e]=t},t.rm_operation=function(e){delete r[e]},t.rule_like=function(e,r){if(r===e)return!0;if("@"===r)return!0;if("number"===r)return"number"===typeof e;if("string"===r)return"string"===typeof e;if("array"===r)return Array.isArray(e)&&!t.is_logic(e);if(t.is_logic(r)){if(t.is_logic(e)){var n=t.get_operator(r),i=t.get_operator(e);if("@"===n||n===i)return t.rule_like(t.get_values(e,!1),t.get_values(r,!1))}return!1}if(Array.isArray(r)){if(Array.isArray(e)){if(r.length!==e.length)return!1;for(var o=0;o<r.length;o+=1)if(!t.rule_like(e[o],r[o]))return!1;return!0}return!1}return!1},t})}(lM)),lM.exports}var dM=hM(),pM=cM(dM),fM=function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!bA.isEmptyObject(n))try{i=pM.apply(n,t||{})}catch(o){return{matches:!1,error:o.toString()}}return{matches:i}},gM={};gM["eventMatchesCriteria"]=fM,Tl[Ll]=Promise.resolve(gM);var mM=30,vM=1e3,yM=4,wM=!1;function bM(){this.clicks=[]}function _M(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}bM.prototype.isRageClick=function(e,t){t=t||{};var r=t["threshold_px"]||mM,n=t["timeout_ms"]||vM,i=t["click_count"]||yM,o=t["interactive_elements_only"]||wM;if(o){var s=xT(e);if(!s||kT(s))return!1}var a=Date.now(),c=e["pageX"],u=e["pageY"],l=this.clicks[this.clicks.length-1];if(l&&a-l.timestamp<n&&Math.sqrt(Math.pow(c-l.x,2)+Math.pow(u-l.y,2))<r){if(this.clicks.push({x:c,y:u,timestamp:a}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:c,y:u,timestamp:a}];return!1},_M.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return xT(e)},_M.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=ST(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},_M.prototype.observeShadowRoot=function(e){if(this.observedShadowRoots&&!this.observedShadowRoots.has(e)){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(n){QI.critical("Error while observing shadow root",n)}}},_M.prototype.start=function(){this.observedShadowRoots||(pT()?this.observedShadowRoots=new WeakSet:QI.critical("Shadow DOM observation unavailable: WeakSet not supported"))},_M.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(t){QI.critical("Error while disconnecting shadow DOM observer",t)}this.shadowObservers=[],this.observedShadowRoots=null}};var kM=500,SM=[TI,PI,UI,FI,zI],xM=[NI],CM=[RI],EM={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function OM(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}OM.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e["target"]||e["srcElement"]),!(!t||kT(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},OM.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},OM.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e["timeout_ms"],r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},OM.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},OM.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},OM.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},OM.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e["timeout_ms"],r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)}else this.processingActive=!1},OM.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;SM.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),CM.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),xM.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,EM)}catch(r){QI.critical("Error while setting up mutation observer",r)}if(window.customElements)try{this.shadowDOMObserver=new _M(function(){e.recordChangeEvent()},EM),this.shadowDOMObserver.start()}catch(r){QI.critical("Error while setting up shadow DOM observer",r),this.shadowDOMObserver=null}}},OM.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(r){QI.critical("Error while removing event listener",r)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(r){QI.critical("Error while disconnecting mutation observer",r)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(r){QI.critical("Error while stopping shadow DOM observer",r)}this.shadowDOMObserver=null}}};var AM="autocapture",IM="track_pageview",TM="full-url",MM="url-with-path-and-query-string",RM="url-with-path",PM="allow_element_callback",LM="allow_selectors",DM="allow_url_regexes",BM="block_attrs",NM="block_element_callback",jM="block_selectors",FM="block_url_regexes",UM="capture_extra_attrs",zM="capture_text_content",qM="scroll_capture_all",HM="scroll_depth_percent_checkpoints",$M="click",WM="dead_click",VM="input",YM="pageview",XM="rage_click",JM="scroll",GM="page_leave",KM="submit",ZM={};ZM[LM]=[],ZM[DM]=[],ZM[BM]=[],ZM[NM]=null,ZM[jM]=[],ZM[FM]=[],ZM[UM]=[],ZM[zM]=!1,ZM[qM]=!1,ZM[HM]=[25,50,75,100],ZM[$M]=!0,ZM[WM]=!0,ZM[VM]=!0,ZM[YM]=TM,ZM[XM]=!0,ZM[JM]=!0,ZM[GM]=!1,ZM[KM]=!0;var QM={$mp_autocapture:!0},eR="$mp_click",tR="$mp_dead_click",rR="$mp_input_change",nR="$mp_rage_click",iR="$mp_scroll",oR="$mp_submit",sR="$mp_page_leave",aR=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};aR.prototype.init=function(){dT()?(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()):QI.critical("Autocapture unavailable: missing required DOM APIs")},aR.prototype.getFullConfig=function(){var e=this.mp.get_config(AM);return e?bA.isObject(e)?bA.extend({},ZM,e):ZM:{}},aR.prototype.getConfig=function(e){return this.getFullConfig()[e]},aR.prototype.currentUrlBlocked=function(){var e=bA.info.currentUrl(),t=this.getConfig(DM)||[];if(t.length)try{return!VA(e,t)}catch(EP){return QI.critical("Error while checking block URL regexes: ",EP),!0}var r=this.getConfig(FM)||[];if(!r||!r.length)return!1;try{return VA(e,r)}catch(EP){return QI.critical("Error while checking block URL regexes: ",EP),!0}},aR.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(AM)?this.getConfig(YM):this.mp.get_config(IM)},aR.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===eR&&!this.getConfig($M)||t===nR&&!this._getClickTrackingConfig(XM)||t===tR&&!this._getClickTrackingConfig(WM)),n=iT(e,{allowElementCallback:this.getConfig(PM),allowSelectors:this.getConfig(LM),blockAttrs:this.getConfig(BM),blockElementCallback:this.getConfig(NM),blockSelectors:this.getConfig(jM),captureExtraAttrs:this.getConfig(UM),captureTextContent:this.getConfig(zM),capturedForHeatMap:r});n&&(bA.extend(n,QM),this.mp.track(t,n))}},aR.prototype.initPageListeners=function(){if(Tl.removeEventListener(BI,this.listenerPopstate),Tl.removeEventListener(RI,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(GM)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){Tl.dispatchEvent(new Event(DI))},this.listenerHashchange=function(){Tl.dispatchEvent(new Event(DI))},Tl.addEventListener(BI,this.listenerPopstate),Tl.addEventListener(RI,this.listenerHashchange);var e=Tl.history.pushState;"function"===typeof e&&(Tl.history.pushState=function(t,r,n){e.call(Tl.history,t,r,n),Tl.dispatchEvent(new Event(DI))});var t=Tl.history.replaceState;"function"===typeof t&&(Tl.history.replaceState=function(e,r,n){t.call(Tl.history,e,r,n),Tl.dispatchEvent(new Event(DI))})}},aR.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"===typeof t?t:{}:null},aR.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(GM)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(lA.documentElement.clientHeight,Tl.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=bA.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||bA.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(lA.documentElement.clientWidth,Tl.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},QM);this.mp.track(sR,s,{transport:"sendBeacon"})}},aR.prototype._initScrollDepthTracking=function(){if(Tl.removeEventListener(jI,this.listenerScrollDepth),Tl.removeEventListener(NI,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){QI.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(lA.documentElement.clientHeight,Tl.innerHeight||0);var e=function(){if(!this.currentUrlBlocked()){var e=Math.max(lA.documentElement.clientHeight,Tl.innerHeight||0)+Tl.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=lA.body.scrollHeight}}.bind(this),t=yT(e);this.listenerScrollDepth=t.listener,Tl.addEventListener(t.eventType,this.listenerScrollDepth)}},aR.prototype.initClickTracking=function(){Tl.removeEventListener(MI,this.listenerClick),(this.getConfig($M)||this.mp.get_config("record_heatmap_data"))&&(QI.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig($M)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,eR)}.bind(this),Tl.addEventListener(MI,this.listenerClick))},aR.prototype.initDeadClickTracking=function(){var e=this._getClickTrackingConfig(WM);e||this.mp.get_config("record_heatmap_data")?(QI.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new OM(function(e){this.trackDomEvent(e,tR)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(WM);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r["timeout_ms"]||(r["timeout_ms"]=kM),this._deadClickTracker.trackClick(e,r)}}.bind(this),Tl.addEventListener(MI,this.listenerDeadClick))):this.stopDeadClickTracking()},aR.prototype.initInputTracking=function(){Tl.removeEventListener(TI,this.listenerChange),this.getConfig(VM)&&(QI.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(VM)&&this.trackDomEvent(e,rR)}.bind(this),Tl.addEventListener(TI,this.listenerChange))},aR.prototype.initPageviewTracking=function(){if(Tl.removeEventListener(DI,this.listenerLocationchange),this.pageviewTrackingConfig()){QI.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(QM)),t&&(e=bA.info.currentUrl()),this.listenerLocationchange=xA(function(){if(!this.currentUrlBlocked()){var t=bA.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(i===TM?r=t!==e:i===MM?r=t.split("#")[0]!==e.split("#")[0]:i===RM&&(r=n),r){var o=this.mp.track_pageview(QM);o&&(e=t),n&&(this.lastScrollCheckpoint=0,QI.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)),Tl.addEventListener(DI,this.listenerLocationchange)}},aR.prototype.initRageClickTracking=function(){Tl.removeEventListener(MI,this.listenerRageClick);var e=this._getClickTrackingConfig(XM);(e||this.mp.get_config("record_heatmap_data"))&&(QI.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new bM),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(XM);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,nR))}.bind(this),Tl.addEventListener(MI,this.listenerRageClick))},aR.prototype.initScrollTracking=function(){if(Tl.removeEventListener(NI,this.listenerScroll),Tl.removeEventListener(jI,this.listenerScroll),this.getConfig(JM)){QI.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=function(){if(this.getConfig(JM)&&!this.currentUrlBlocked()){var e=this.getConfig(qM),t=(this.getConfig(HM)||[]).slice().sort(function(e,t){return e-t}),r=Tl.scrollY,n=bA.extend({$scroll_top:r},QM);try{var i=lA.body.scrollHeight,o=Math.round(r/(i-Tl.innerHeight)*100);if(n["$scroll_height"]=i,n["$scroll_percentage"]=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(n["$scroll_checkpoint"]=a,this.lastScrollCheckpoint=a,e=!0)}}catch(EP){QI.critical("Error while calculating scroll percentage",EP)}e&&this.mp.track(iR,n)}}.bind(this),t=yT(e);this.listenerScroll=t.listener,Tl.addEventListener(t.eventType,this.listenerScroll)}},aR.prototype.initSubmitTracking=function(){Tl.removeEventListener(UI,this.listenerSubmit),this.getConfig(KM)&&(QI.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(KM)&&this.trackDomEvent(e,oR)}.bind(this),Tl.addEventListener(UI,this.listenerSubmit))},aR.prototype.initPageLeaveTracking=function(){if(lA.removeEventListener(qI,this.listenerPageLeaveVisibilitychange),Tl.removeEventListener(DI,this.listenerPageLeaveLocationchange),Tl.removeEventListener(LI,this.listenerPageLoad),this.getConfig(GM)||this.mp.get_config("record_heatmap_data")){QI.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=bA.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=lA.body.scrollHeight}.bind(this),Tl.addEventListener(LI,this.listenerPageLoad),this.listenerPageLeaveLocationchange=xA(function(t){if(!this.currentUrlBlocked()){var r=bA.info.currentUrl(),n=r!==e;n&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(lA.documentElement.clientHeight,Tl.innerHeight||0),this.previousScrollHeight=lA.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),Tl.addEventListener(DI,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){lA.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),lA.addEventListener(qI,this.listenerPageLeaveVisibilitychange)}},aR.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(Tl.removeEventListener(MI,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},CA(aR);var cR=function(e,t){return Tl[Ll]&&"function"===typeof Tl[Ll].then||(Tl[Ll]=new Promise(function(r){e(t,r)}).then(function(){var e=Tl[Ll];if(e&&"function"===typeof e.then)return e;throw new Error("targeting failed to load")}).catch(function(e){throw delete Tl[Ll],e})),Tl[Ll]},uR=SA("flags"),lR="flags",hR="context",dR={};dR[hR]={};var pR=function(e,t){return e+":"+t},fR=function(e){return e.split(":")[0]},gR=function(e){this.fetch=Tl["fetch"],this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};gR.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags().catch(function(){uR.error("Error fetching flags during init")}),this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={}):uR.critical("Feature Flags unavailable: missing minimum required APIs")},gR.prototype.getFullConfig=function(){var e=this.getMpConfig(lR);return e?bA.isObject(e)?bA.extend({},dR,e):dR:{}},gR.prototype.getConfig=function(e){return this.getFullConfig()[e]},gR.prototype.isSystemEnabled=function(){return!!this.getMpConfig(lR)},gR.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return uR.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(lR);bA.isObject(r)||(r={});var n=t&&t["replace"]?{}:this.getConfig(hR);r[hR]=bA.extend({},n,e);var i={};return i[lR]=r,this.setMpConfig(i),this.fetchFlags().catch(function(){uR.error("Error fetching flags during updateContext")})},gR.prototype.areFlagsReady=function(){return this.isSystemEnabled()||uR.error("Feature Flags not enabled"),!!this.flags},gR.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r=UA();uR.log("Fetching flags for distinct ID: "+e);var n=bA.extend({distinct_id:e,device_id:t},this.getConfig(hR)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",Pl.LIB_VERSION);var o=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(Tl,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then(function(e){return this.markFetchComplete(),e.json()}.bind(this)).then(function(e){var t=e["flags"];if(!t)throw new Error("No flags in API response");var n=new Map,i={};bA.each(t,function(e,t){var r=!1,i=t+":";if(bA.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(i)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&n.set(t,o)}else n.set(t,{key:e["variant_key"],value:e["variant_value"],experiment_id:e["experiment_id"],is_experiment_active:e["is_experiment_active"],is_qa_tester:e["is_qa_tester"]})},this);var o=e["pending_first_time_events"];o&&o.length>0&&bA.each(o,function(e){var t=e["flag_key"],r=pR(t,e["first_time_event_hash"]);this.activatedFirstTimeEvents[r]||(i[r]={flag_key:t,flag_id:e["flag_id"],project_id:e["project_id"],first_time_event_hash:e["first_time_event_hash"],event_name:e["event_name"],property_filters:e["property_filters"],pending_variant:e["pending_variant"]})},this),this.activatedFirstTimeEvents&&bA.each(this.activatedFirstTimeEvents,function(e,t){var r=fR(t);e&&!n.has(r)&&this.flags&&this.flags.has(r)&&n.set(r,this.flags.get(r))},this),this.flags=n,this.pendingFirstTimeEvents=i,this._traceparent=r,this._loadTargetingIfNeeded()}.bind(this)).catch(function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),uR.error(e),e}.bind(this)),this.fetchPromise},gR.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(uR.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},gR.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):uR.error("Fetch in progress started time not set, cannot mark fetch complete")},gR.prototype._loadTargetingIfNeeded=function(){var e=!1;bA.each(this.pendingFirstTimeEvents,function(t){t["property_filters"]&&!bA.isEmptyObject(t["property_filters"])&&(e=!0)}),e&&this.getTargeting().then(function(){uR.log("targeting loaded for property filter evaluation")})},gR.prototype.getTargeting=function(){return cR(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(e){uR.error("Failed to load targeting: "+e)}.bind(this))},gR.prototype.checkFirstTimeEvents=function(e,t){this.pendingFirstTimeEvents&&!bA.isEmptyObject(this.pendingFirstTimeEvents)&&(Tl[Ll]&&bA.isFunction(Tl[Ll].then)?Tl[Ll].then(function(r){this._processFirstTimeEventCheck(e,t,r)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(e,t,null)}.bind(this)):this._processFirstTimeEventCheck(e,t,null))},gR.prototype._processFirstTimeEventCheck=function(e,t,r){bA.each(this.pendingFirstTimeEvents,function(n,i){if(!this.activatedFirstTimeEvents[i]){var o,s=n["flag_key"];if(r||!n["property_filters"]||bA.isEmptyObject(n["property_filters"])){if(r){var a={event_name:n["event_name"],property_filters:n["property_filters"]};o=r["eventMatchesCriteria"](e,t,a)}else o={matches:e===n["event_name"],error:null};if(o.error)uR.error('Error checking first-time event for flag "'+s+'": '+o.error);else if(o.matches){uR.log('First-time event matched for flag "'+s+'": '+e);var c={key:n["pending_variant"]["variant_key"],value:n["pending_variant"]["variant_value"],experiment_id:n["pending_variant"]["experiment_id"],is_experiment_active:n["pending_variant"]["is_experiment_active"]};this.flags.set(s,c),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n["flag_id"],n["project_id"],n["first_time_event_hash"])}}else uR.warn('Skipping event check for "'+s+'" - property filters require targeting library')}},this)},gR.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute()+"/"+e+"/first-time-events"},gR.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=UA(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",Pl.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString(),a={distinct_id:n,project_id:t,first_time_event_hash:r};uR.log("Recording first-time event for flag: "+e),this.fetch.call(Tl,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify(a)}).catch(function(t){uR.error("Failed to record first-time event for flag "+e+": "+t)})},gR.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,t)}.bind(this)).catch(function(e){return uR.error(e),t}):new Promise(function(e){uR.critical("Feature Flags not initialized"),e(t)})},gR.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return uR.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(uR.log('No flag found: "'+e+'"'),t)},gR.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e["value"]}).catch(function(e){return uR.error(e),t})},gR.prototype.getFeatureData=function(e,t){return uR.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},gR.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t})["value"]},gR.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return uR.error(e),t})},gR.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(uR.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},gR.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t["key"],$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t["experiment_id"]&&(r["$experiment_id"]=t["experiment_id"]),"undefined"!==t["is_experiment_active"]&&(r["$is_experiment_active"]=t["is_experiment_active"]),"undefined"!==t["is_qa_tester"]&&(r["$is_qa_tester"]=t["is_qa_tester"]),this.track("$experiment_started",r)}},gR.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},gR.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!==typeof Promise&&"undefined"!==typeof Map&&"undefined"!==typeof Set},CA(gR),gR.prototype["are_flags_ready"]=gR.prototype.areFlagsReady,gR.prototype["get_variant"]=gR.prototype.getVariant,gR.prototype["get_variant_sync"]=gR.prototype.getVariantSync,gR.prototype["get_variant_value"]=gR.prototype.getVariantValue,gR.prototype["get_variant_value_sync"]=gR.prototype.getVariantValueSync,gR.prototype["is_enabled"]=gR.prototype.isEnabled,gR.prototype["is_enabled_sync"]=gR.prototype.isEnabledSync,gR.prototype["load_flags"]=gR.prototype.loadFlags,gR.prototype["update_context"]=gR.prototype.updateContext,gR.prototype["when_ready"]=gR.prototype.whenReady,gR.prototype["get_feature_data"]=gR.prototype.getFeatureData,gR.prototype["getTargeting"]=gR.prototype.getTargeting;var mR=SA("recorder"),vR="mp_iframe_handshake_request",yR="mp_iframe_handshake_response",wR=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};wR.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return _A.log("Load recorder check skipped due to disable_persistence config"),ZO.resolve(!1);var e=new tI(ZA),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(OI(e[r])||e[r]["tabId"]===t)return!0;return!1}).catch(bA.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},wR.prototype.checkAndStartSessionRecording=function(e,t){if(!Tl["MutationObserver"])return _A.critical("Browser does not support MutationObserver; skipping session recording"),ZO.resolve();var r=bA.bind(function(e){return new ZO(bA.bind(function(t){var r=xA(bA.bind(function(){this._recorder=this._recorder||new Tl[Dl](this.mixpanelInstance),this._recorder["resumeRecording"](e),t()},this));if(bA.isUndefined(Tl[Dl])){var n=this.recorderSrc||this.libBasePath+Bl;this.loadExtraBundle(n,r)}else r()},this))},this),n=II(this.getMpConfig("record_allowed_iframe_origins"),mR),i=n.length>0;if(i&&(this._setupParentFrameListener(n),Tl.parent!==Tl))return this._setupChildFrameListener(n,r),this._sendParentFrameRequestWithRetry(n),ZO.resolve();var o=bA.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,s=o>0&&100*Math.random()<=o;return e||s?r(!0):this.shouldLoadRecorder().then(bA.bind(function(e){return e?r(!1):ZO.resolve()},this))},wR.prototype.isRecording=function(){if(!this._recorder||!bA.isFunction(this._recorder["isRecording"]))return!1;try{return this._recorder["isRecording"]()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},wR.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var i=n[e];if(i&&"number"===typeof i["percentage"]){var o=i["percentage"],s=i["property_filters"];if(s&&!bA.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+Nl;cR(this.loadExtraBundle,a).then(function(r){try{var n=r["eventMatchesCriteria"](e,t,{event_name:e,property_filters:s});n["matches"]&&this.checkAndStartSessionRecording(!1,o)}catch(EP){_A.critical("Could not parse recording event trigger properties logic:",EP)}}.bind(this)).catch(function(e){_A.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,o)}}},wR.prototype.stopSessionRecording=function(){return this._recorder?this._recorder["stopRecording"]():ZO.resolve()},wR.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder["pauseRecording"]():ZO.resolve()},wR.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder["resumeRecording"]():ZO.resolve()},wR.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},wR.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e["$mp_replay_id"]=t),e},wR.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();if(t){var r=bA.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")});e="https://mixpanel.com/projects/replay-redirect?"+r}return e},wR.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder["replayId"]),e||null},wR.prototype.getRecorder=function(){return this._recorder},wR.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(n){if(-1!==e.indexOf(n.origin)){var i=n.data;i&&i["type"]===yR&&i["token"]===r.getMpConfig("token")&&i["replayId"]&&(r._parentReplayId=i["replayId"],i["distinctId"]&&r.mixpanelInstance["identify"](i["distinctId"]),r._parentFrameRetryActive=!1,Tl.removeEventListener("message",r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},Tl.addEventListener("message",this._childFrameMessageHandler)}},wR.prototype._sendParentFrameRequest=function(e){var t={};t["type"]=vR,t["token"]=this.getMpConfig("token");for(var r=0;r<e.length;r++)try{Tl.parent.postMessage(t,e[r])}catch(n){}},wR.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,r=10,n=0,i=50;function o(){setTimeout(function(){!t._parentFrameRetryActive||t._parentReplayId||++n>=r||(t._sendParentFrameRequest(e),i*=2,o())},i)}this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e),o()},wR.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(r){if(-1!==e.indexOf(r.origin)){var n=r.data;if(n&&n["type"]===vR&&n["token"]===t.getMpConfig("token")){var i=t.getSessionReplayId();if(i){var o={};o["type"]=yR,o["token"]=t.getMpConfig("token"),o["replayId"]=i,o["distinctId"]=t.getDistinctId(),r.source.postMessage(o,r.origin)}}}},Tl.addEventListener("message",this._parentFrameMessageHandler)}},CA(wR);var bR=function(){};bR.prototype.create_properties=function(){},bR.prototype.event_handler=function(){},bR.prototype.after_track_handler=function(){},bR.prototype.init=function(e){return this.mp=e,this},bR.prototype.track=function(e,t,r,n){var i=this,o=bA.dom_query(e);if(0!==o.length)return bA.each(o,function(e){bA.register_event(e,this.override_event,function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))})},this),!0;_A.error("The DOM query ("+e+") returned 0 elements")},bR.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},bR.prototype.create_properties=function(e,t){var r;return r="function"===typeof e?e(t):bA.extend({},e),r};var _R=function(){this.override_event="click"};bA.inherit(_R,bR),_R.prototype.create_properties=function(e,t){var r=_R.superclass.create_properties.apply(this,arguments);return t.href&&(r["url"]=t.href),r},_R.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},_R.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var kR=function(){this.override_event="submit"};bA.inherit(kR,bR),kR.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},kR.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var SR="$set",xR="$set_once",CR="$unset",ER="$add",OR="$append",AR="$union",IR="$remove",TR="$delete",MR={set_action:function(e,t){var r={},n={};return bA.isObject(e)?bA.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[SR]=n,r},unset_action:function(e){var t={},r=[];return bA.isArray(e)||(e=[e]),bA.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[CR]=r,t},set_once_action:function(e,t){var r={},n={};return bA.isObject(e)?bA.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[xR]=n,r},union_action:function(e,t){var r={},n={};return bA.isObject(e)?bA.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=bA.isArray(e)?e:[e])},this):n[e]=bA.isArray(t)?t:[t],r[AR]=n,r},append_action:function(e,t){var r={},n={};return bA.isObject(e)?bA.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[OR]=n,r},remove_action:function(e,t){var r={},n={};return bA.isObject(e)?bA.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[IR]=n,r},delete_action:function(){var e={};return e[TR]="",e}},RR=function(){};bA.extend(RR.prototype,MR),RR.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},RR.prototype.set=uI(function(e,t,r){var n=this.set_action(e,t);return bA.isObject(e)&&(r=t),this._send_request(n,r)}),RR.prototype.set_once=uI(function(e,t,r){var n=this.set_once_action(e,t);return bA.isObject(e)&&(r=t),this._send_request(n,r)}),RR.prototype.unset=uI(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),RR.prototype.union=uI(function(e,t,r){bA.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),RR.prototype["delete"]=uI(function(e){var t=this.delete_action();return this._send_request(t,e)}),RR.prototype.remove=uI(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),RR.prototype._send_request=function(e,t){e["$group_key"]=this._group_key,e["$group_id"]=this._group_id,e["$token"]=this._get_config("token");var r=bA.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes")["groups"],batcher:this._mixpanel.request_batchers.groups},t)},RR.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},RR.prototype._get_config=function(e){return this._mixpanel.get_config(e)},RR.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},RR.prototype["remove"]=RR.prototype.remove,RR.prototype["set"]=RR.prototype.set,RR.prototype["set_once"]=RR.prototype.set_once,RR.prototype["union"]=RR.prototype.union,RR.prototype["unset"]=RR.prototype.unset,RR.prototype["toString"]=RR.prototype.toString;var PR=function(){};bA.extend(PR.prototype,MR),PR.prototype._init=function(e){this._mixpanel=e},PR.prototype.set=cI(function(e,t,r){var n=this.set_action(e,t);return bA.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel["persistence"].update_referrer_info(document.referrer),n[SR]=bA.extend({},bA.info.people_properties(),n[SR]),this._send_request(n,r)}),PR.prototype.set_once=cI(function(e,t,r){var n=this.set_once_action(e,t);return bA.isObject(e)&&(r=t),this._send_request(n,r)}),PR.prototype.unset=cI(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),PR.prototype.increment=cI(function(e,t,r){var n={},i={};return bA.isObject(e)?(bA.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void _A.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}},this),r=t):(bA.isUndefined(t)&&(t=1),i[e]=t),n[ER]=i,this._send_request(n,r)}),PR.prototype.append=cI(function(e,t,r){bA.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),PR.prototype.remove=cI(function(e,t,r){bA.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),PR.prototype.union=cI(function(e,t,r){bA.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),PR.prototype.track_charge=cI(function(){_A.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),PR.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},PR.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}_A.error("mixpanel.people.delete_user() requires you to call identify() first")},PR.prototype.toString=function(){return this._mixpanel.toString()+".people"},PR.prototype._send_request=function(e,t){e["$token"]=this._get_config("token"),e["$distinct_id"]=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e["$device_id"]=r),n&&(e["$user_id"]=n),i&&(e["$had_persisted_distinct_id"]=i);var o=bA.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes")["engage"],batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),bA.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),bA.truncate(o,255))},PR.prototype._get_config=function(e){return this._mixpanel.get_config(e)},PR.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},PR.prototype._enqueue=function(e){SR in e?this._mixpanel["persistence"]._add_to_people_queue(SR,e):xR in e?this._mixpanel["persistence"]._add_to_people_queue(xR,e):CR in e?this._mixpanel["persistence"]._add_to_people_queue(CR,e):ER in e?this._mixpanel["persistence"]._add_to_people_queue(ER,e):OR in e?this._mixpanel["persistence"]._add_to_people_queue(OR,e):IR in e?this._mixpanel["persistence"]._add_to_people_queue(IR,e):AR in e?this._mixpanel["persistence"]._add_to_people_queue(AR,e):_A.error("Invalid call to _enqueue():",e)},PR.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=bA.extend({},this._mixpanel["persistence"].load_queue(e)),s=o;bA.isUndefined(o)||!bA.isObject(o)||bA.isEmptyObject(o)||(i._mixpanel["persistence"]._pop_from_people_queue(e,o),i._mixpanel["persistence"].save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel["persistence"]._add_to_people_queue(e,o),bA.isUndefined(r)||r(t,n)}))},PR.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(SR,this.set,e),this._flush_one_queue(xR,this.set_once,n),this._flush_one_queue(CR,this.unset,o,function(e){return bA.keys(e)}),this._flush_one_queue(ER,this.increment,t),this._flush_one_queue(AR,this.union,i);var c=this._mixpanel["persistence"].load_queue(OR);if(!bA.isUndefined(c)&&bA.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(OR,u),bA.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)c=this._mixpanel["persistence"].load_queue(OR),u=c.pop(),a._mixpanel["persistence"].save(),bA.isEmptyObject(u)||a.append(u,l);var d=this._mixpanel["persistence"].load_queue(IR);if(!bA.isUndefined(d)&&bA.isArray(d)&&d.length)for(var p,f=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(IR,p),bA.isUndefined(s)||s(e,t)},g=d.length-1;g>=0;g--)d=this._mixpanel["persistence"].load_queue(IR),p=d.pop(),a._mixpanel["persistence"].save(),bA.isEmptyObject(p)||a.remove(p,f)},PR.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},PR.prototype["set"]=PR.prototype.set,PR.prototype["set_once"]=PR.prototype.set_once,PR.prototype["unset"]=PR.prototype.unset,PR.prototype["increment"]=PR.prototype.increment,PR.prototype["append"]=PR.prototype.append,PR.prototype["remove"]=PR.prototype.remove,PR.prototype["union"]=PR.prototype.union,PR.prototype["track_charge"]=PR.prototype.track_charge,PR.prototype["clear_charges"]=PR.prototype.clear_charges,PR.prototype["delete_user"]=PR.prototype.delete_user,PR.prototype["toString"]=PR.prototype.toString;var LR,DR="__mps",BR="__mpso",NR="__mpus",jR="__mpa",FR="__mpap",UR="__mpr",zR="__mpu",qR="$people_distinct_id",HR="__alias",$R="__timers",WR=[DR,BR,NR,jR,FR,UR,zR,qR,HR,$R],VR=function(e){this["props"]={},this.campaign_params_saved=!1,e["persistence_name"]?this.name="mp_"+e["persistence_name"]:this.name="mp_"+e["token"]+"_mixpanel";var t=e["persistence"];"cookie"!==t&&"localStorage"!==t&&(_A.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e["persistence"]="cookie"),"localStorage"===t&&bA.localStorage.is_supported()?this.storage=bA.localStorage:this.storage=bA.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};VR.prototype.properties=function(){var e={};return this.load(),bA.each(this["props"],function(t,r){bA.include(WR,r)||(e[r]=t)}),e},VR.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this["props"]=bA.extend({},e))}},VR.prototype.upgrade=function(){var e,t;this.storage===bA.localStorage?(e=bA.cookie.parse(this.name),bA.cookie.remove(this.name),bA.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===bA.cookie&&(t=bA.localStorage.parse(this.name),bA.localStorage.remove(this.name),t&&this.register_once(t))},VR.prototype.save=function(){this.disabled||this.storage.set(this.name,YA(this["props"]),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},VR.prototype.load_prop=function(e){return this.load(),this["props"][e]},VR.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},VR.prototype.clear=function(){this.remove(),this["props"]={}},VR.prototype.register_once=function(e,t,r){return!!bA.isObject(e)&&("undefined"===typeof t&&(t="None"),this.expire_days="undefined"===typeof r?this.default_expiry:r,this.load(),bA.each(e,function(e,r){this["props"].hasOwnProperty(r)&&this["props"][r]!==t||(this["props"][r]=e)},this),this.save(),!0)},VR.prototype.register=function(e,t){return!!bA.isObject(e)&&(this.expire_days="undefined"===typeof t?this.default_expiry:t,this.load(),bA.extend(this["props"],e),this.save(),!0)},VR.prototype.unregister=function(e){this.load(),e in this["props"]&&(delete this["props"][e],this.save())},VR.prototype.update_search_keyword=function(e){this.register(bA.info.searchInfo(e))},VR.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:bA.info.referringDomain(e)||"$direct"},"")},VR.prototype.get_referrer_info=function(){return bA.strip_empty_properties({$initial_referrer:this["props"]["$initial_referrer"],$initial_referring_domain:this["props"]["$initial_referring_domain"]})},VR.prototype.update_config=function(e){this.default_expiry=this.expire_days=e["cookie_expiration"],this.set_disabled(e["disable_persistence"]),this.set_cookie_domain(e["cookie_domain"]),this.set_cross_site(e["cross_site_cookie"]),this.set_cross_subdomain(e["cross_subdomain_cookie"]),this.set_secure(e["secure_cookie"])},VR.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},VR.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},VR.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},VR.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},VR.prototype.get_cross_subdomain=function(){return this.cross_subdomain},VR.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},VR.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(SR),o=this._get_or_create_queue(xR),s=this._get_or_create_queue(CR),a=this._get_or_create_queue(ER),c=this._get_or_create_queue(AR),u=this._get_or_create_queue(IR,[]),l=this._get_or_create_queue(OR,[]);r===DR?(bA.extend(i,n),this._pop_from_people_queue(ER,n),this._pop_from_people_queue(AR,n),this._pop_from_people_queue(CR,n)):r===BR?(bA.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(CR,n)):r===NR?bA.each(n,function(e){bA.each([i,o,a,c],function(t){e in t&&delete t[e]}),bA.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===jR?(bA.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(CR,n)):r===zR?(bA.each(n,function(e,t){bA.isArray(e)&&(t in c||(c[t]=[]),bA.each(e,function(e){bA.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(CR,n)):r===UR?(u.push(n),this._pop_from_people_queue(OR,n)):r===FR&&(l.push(n),this._pop_from_people_queue(CR,n)),_A.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),_A.log(t),this.save()},VR.prototype._pop_from_people_queue=function(e,t){var r=this["props"][this._get_queue_key(e)];bA.isUndefined(r)||bA.each(t,function(t,n){e===OR||e===IR?bA.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},VR.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},VR.prototype._get_queue_key=function(e){return e===SR?DR:e===xR?BR:e===CR?NR:e===ER?jR:e===OR?FR:e===IR?UR:e===AR?zR:void _A.error("Invalid queue:",e)},VR.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=bA.isUndefined(t)?{}:t,this["props"][r]||(this["props"][r]=t)},VR.prototype.set_event_timer=function(e,t){var r=this.load_prop($R)||{};r[e]=t,this["props"][$R]=r,this.save()},VR.prototype.remove_event_timer=function(e){var t=this.load_prop($R)||{},r=t[e];return bA.isUndefined(r)||(delete this["props"][$R][e],this.save()),r};var YR,XR=function(e,t){throw new Error(e+" not available in this build.")},JR=0,GR=1,KR="mixpanel",ZR="base64",QR="json",eP="$device:",tP="strict",rP="fallback",nP="disabled",iP=Tl.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,oP=!iP&&-1===pA.indexOf("MSIE")&&-1===pA.indexOf("Mozilla"),sP=null;uA["sendBeacon"]&&(sP=function(){return uA["sendBeacon"].apply(uA,arguments)});var aP={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},cP={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:aP,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:ZR,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:WA,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:WA,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:eA,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:nP},uP=!1,lP=function(){},hP=function(e,t,r){var n,i=r===KR?YR:YR[r];if(i&&LR===JR)n=i;else{if(i&&!bA.isArray(i))return void _A.error("You have already initialized "+r);n=new lP}if(n._cached_groups={},n._init(e,t,r),n["people"]=new PR,n["people"]._init(n),!n.get_config("skip_first_touch_marketing")){var o=bA.info.campaignParams(null),s={},a=!1;bA.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n["people"].set_once(s)}Pl.DEBUG=Pl.DEBUG||n.get_config("debug");var c=LR===JR?"module":"snippet";return Tl.dispatchEvent(new Tl.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:c,token:e,name:r,info:bA.info}})),!bA.isUndefined(i)&&bA.isArray(i)&&(n._execute_array.call(n["people"],i["people"]),n._execute_array(i)),n};lP.prototype.init=function(e,t,r){if(bA.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==KR){var n=hP(e,t,r);return YR[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},lP.prototype._init=function(e,t,r){t=t||{},this["__loaded"]=!0,this["config"]={};var n={};if(!("api_payload_format"in t)){var i=t["api_host"]||cP["api_host"];i.match(/\.mixpanel\.com/)&&(n["api_payload_format"]=QR)}if(this.hooks={},this.set_config(bA.extend({},cP,n,t,{name:r,token:e,callback_fn:(r===KR?r:KR+"."+r)+"._jsc"})),this.recorderManager=new wR({mixpanelInstance:this,getConfigFunc:bA.bind(this.get_config,this),setConfigFunc:bA.bind(this.set_config,this),getTabIdFunc:bA.bind(this.get_tab_id,this),reportErrorFunc:bA.bind(this.report_error,this),getDistinctIdFunc:bA.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:XR}),this["_jsc"]=WA,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(bA.localStorage.is_supported(!0)&&iP){if(this.init_batchers(),sP&&Tl.addEventListener){var o=bA.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);Tl.addEventListener("pagehide",function(e){e["persisted"]&&o()}),Tl.addEventListener("visibilitychange",function(){"hidden"===lA["visibilityState"]&&o()})}}else this._batch_requests=!1,_A.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),bA.each(this.get_batcher_configs(),function(e){_A.log("Clearing batch queue "+e.queue_key),bA.localStorage.remove(e.queue_key)});this["persistence"]=this["cookie"]=new VR(this["config"]),this.unpersisted_superprops={},this._gdpr_init();var s=bA.UUID();this.get_distinct_id()||this.register_once({distinct_id:eP+s,$device_id:s},""),this.flags=new gR({getFullApiRoute:bA.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes")["flags"]},this),getConfigFunc:bA.bind(this.get_config,this),setConfigFunc:bA.bind(this.set_config,this),getPropertyFunc:bA.bind(this.get_property,this),trackingFunc:bA.bind(this.track,this),loadExtraBundle:XR,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+Nl}),this.flags.init(),this["flags"]=this.flags,this.autocapture=new aR(this),this.autocapture.init(),this._init_tab_id();var a=this.get_config("remote_settings_mode");this.__session_recording_init_promise=a===tP||a===rP?this._fetch_remote_settings(a).then(bA.bind(function(){return this._check_and_start_session_recording()},this)):this._check_and_start_session_recording()},lP.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))_A.log("Tab ID initialization skipped due to disable_persistence config");else if(bA.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;!bA.sessionStorage.get(r)&&bA.sessionStorage.get(t)||bA.sessionStorage.set(t,"$tab-"+bA.UUID()),bA.sessionStorage.set(r,"1"),this.tab_id=bA.sessionStorage.get(t),Tl.addEventListener("beforeunload",function(){bA.sessionStorage.remove(r)})}catch(EP){this.report_error("Error initializing tab id",EP)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},lP.prototype.get_tab_id=function(){return this.tab_id||null},lP.prototype._check_and_start_session_recording=aI(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),lP.prototype._start_recording_on_event=function(e,t){return this.recorderManager.startRecordingOnEvent(e,t)},lP.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},lP.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},lP.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},lP.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},lP.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},lP.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},lP.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},lP.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},lP.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},lP.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this["people"].set_once(this["persistence"].get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=bA.info.campaignParams(null);bA.each(e,function(e,t){this.unregister(t)}.bind(this))}},lP.prototype._set_default_superprops=function(){this["persistence"].update_search_keyword(lA.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(bA.info.campaignParams()),this.get_config("save_referrer")&&this["persistence"].update_referrer_info(lA.referrer)},lP.prototype._dom_loaded=function(){bA.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||bA.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},lP.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!uP)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},lP.prototype._prepare_callback=function(e,t){if(bA.isUndefined(e))return null;if(iP){var r=function(r){e(r,t)};return r}var n=this["_jsc"],i=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+i+"]";return n[i]=function(r){delete n[i],e(r,t)},o},lP.prototype._send_request=function(e,t,r,n){var i=!0;if(oP)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!bA.isFunction(r)&&"string"!==typeof r||(n=r,r=null),r=bA.extend(o,r||{}),iP||(r.method="GET");var a="POST"===r.method,c=sP&&a&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t["verbose"]&&(u=!0),this.get_config("test")&&(t["test"]=1),u&&(t["verbose"]=1),this.get_config("img")&&(t["img"]=1),iP||(n?t["callback"]=n:(u||this.get_config("test"))&&(t["callback"]="(function(){})")),t["ip"]=this.get_config("ip")?1:0,t["_"]=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t["data"]),delete t["data"]),bA.extend(t,this.get_config("api_extra_query_params")),e+="?"+bA.HTTPBuildQuery(t);var l=this;if("img"in t){var h=lA.createElement("img");h.src=e,lA.body.appendChild(h)}else if(c){try{i=sP(e,s)}catch(v){l.report_error(v),i=!1}try{n&&n(i?1:0)}catch(v){l.report_error(v)}}else if(iP)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var p=this.get_config("xhr_headers");if(a&&(p["Content-Type"]="application/x-www-form-urlencoded"),bA.each(p,function(e,t){d.setRequestHeader(t,e)}),r.timeout_ms&&"undefined"!==typeof d.timeout){d.timeout=r.timeout_ms;var f=(new Date).getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var e;if(4===d.readyState)if(200===d.status){if(n)if(u){var t;try{t=bA.JSONDecode(d.responseText)}catch(v){if(l.report_error(v),!r.ignore_json_errors)return;t=d.responseText}n(t)}else n(Number(d.responseText))}else if(e=d.timeout&&!d.status&&(new Date).getTime()-f>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,l.report_error(e),n)if(u){var i=d["responseHeaders"]||{};n({status:0,httpStatusCode:d["status"],error:e,retryAfter:i["Retry-After"]})}else n(0)},d.send(s)}catch(v){l.report_error(v),i=!1}else{var g=lA.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=lA.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},lP.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&t.set_config({record_sessions_percent:0})};if(!Tl["AbortController"])return _A.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes")["settings"],i={$lib_version:Pl.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=bA.HTTPBuildQuery(i),s=n+"?"+o,a=new AbortController,c=setTimeout(function(){a.abort()},500),u={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:a.signal};return Tl["fetch"](s,u).then(function(e){return clearTimeout(c),e["ok"]?e.json():(_A.critical("Network response was not ok"),void r())}).then(function(e){if(e&&e["sdk_config"]&&e["sdk_config"]["config"]){var n=e["sdk_config"]["config"],i={};bA.each(n,function(e,t){cP.hasOwnProperty(t)&&(i[t]=e)}),bA.isEmptyObject(i)?(_A.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()}).catch(function(e){clearTimeout(c),_A.critical("Failed to fetch remote settings",e),r()})},lP.prototype._execute_array=function(e){var t,r=[],n=[],i=[];bA.each(e,function(e){e&&(t=e[0],bA.isArray(t)?i.push(e):"function"===typeof e?e.call(this):bA.isArray(e)&&"alias"===t?r.push(e):bA.isArray(e)&&-1!==t.indexOf("track")&&"function"===typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){bA.each(e,function(e){if(bA.isArray(e[0])){var r=t;bA.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},lP.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},lP.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},lP.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=bA.bind(function(e){return new EI(e.queue_key,{libConfig:this["config"],errorReporter:this.get_config("error_reporter"),sendRequestFunc:bA.bind(function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:bA.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:bA.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},lP.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,bA.each(this.request_batchers,function(e){e.start()}))},lP.prototype.stop_batch_senders=function(){this._batch_requests=!1,bA.each(this.request_batchers,function(e){e.stop(),e.clear()})},lP.prototype.push=function(e){this._execute_array([e])},lP.prototype.enable=function(e){var t,r,n,i;if("undefined"===typeof e)this._flags.disable_all_events=!1;else{for(t={},r=[],n=0;n<e.length;n++)t[e[n]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||r.push(this.__disabled_events[i]);this.__disabled_events=r}},lP.prototype.disable=function(e){"undefined"===typeof e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},lP.prototype._encode_data_for_request=function(e){var t=YA(e);return this.get_config("api_payload_format")===ZR&&(t=bA.base64Encode(t)),{data:t}},lP.prototype._track_or_batch=function(e,t){var r=bA.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||WA;var a=!0,c=bA.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r),r&&(r=r[0])),r?(_A.log("MIXPANEL REQUEST:"),_A.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):c()}):a=c(),a&&r},lP.prototype.track=aI(function(e,t,r,n){var i;if(!r||!r.skip_hooks){if(i=this._run_hook("before_track",e,t),null===i)return;e=i[0],t=i[1]}n||"function"!==typeof r||(n=r,r=null),r=r||{};var o=r["transport"];o&&(r.transport=o);var s=r["send_immediately"];if("function"!==typeof n&&(n=WA),bA.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){t=bA.extend({},t),t["token"]=this.get_config("token");var a=this["persistence"].remove_event_timer(e);if(!bA.isUndefined(a)){var c=(new Date).getTime()-a;t["$duration"]=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?bA.info.marketingParams():{};t=bA.extend({},bA.info.properties({mp_loader:this.get_config("mp_loader")}),u,this["persistence"].properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");bA.isArray(l)?bA.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(e,t);var h={event:e,properties:t};return i=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes")["track"],batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}n(0)}}),lP.prototype.set_group=aI(function(e,t,r){bA.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this["people"].set(e,t,r)}),lP.prototype.add_group=aI(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this["people"].union(e,t,r)}),lP.prototype.remove_group=aI(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this["people"].remove(e,t,r)}),lP.prototype.track_with_groups=aI(function(e,t,r,n){var i=bA.extend({},t||{});return bA.each(r,function(e,t){null!==e&&void 0!==e&&(i[t]=e)}),this.track(e,i,n)}),lP.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},lP.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},lP.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||(n=new RR,n._init(this,e,t),this._cached_groups[r]=n),n},lP.prototype.track_pageview=aI(function(e,t){"object"!==typeof e&&(e={}),t=t||{};var r=t["event_name"]||"$mp_web_page_view",n=bA.extend(bA.info.mpPageViewProperties(),bA.info.campaignParams(),bA.info.clickParams()),i=bA.extend({},n,e);return this.track(r,i)}),lP.prototype.track_links=function(){return this._track_dom.call(this,_R,arguments)},lP.prototype.track_forms=function(){return this._track_dom.call(this,kR,arguments)},lP.prototype.time_event=function(e){bA.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this["persistence"].set_event_timer(e,(new Date).getTime())};var dP={persistent:!0},pP=function(e){var t;return t=bA.isObject(e)?e:bA.isUndefined(e)?{}:{days:e},bA.extend({},dP,t)};lP.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0],t=r[1];var n=pP(t);n["persistent"]?this["persistence"].register(e,n["days"]):bA.extend(this.unpersisted_superprops,e)}},lP.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1],r=n[2];var i=pP(r);i["persistent"]?this["persistence"].register_once(e,t,i["days"]):("undefined"===typeof t&&(t="None"),bA.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},lP.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],t=r[1],t=pP(t),t["persistent"]?this["persistence"].unregister(e):delete this.unpersisted_superprops[e])},lP.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},lP.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this._run_hook("before_identify",e);if(null===c)return-1;e=c[0];var u=this.get_distinct_id();if(e&&u!==e){if("string"===typeof e&&0===e.indexOf(eP))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==u&&e!==this.get_property(HR)&&(this.unregister(HR),this.register({distinct_id:e})),this._flags.identify_called=!0,this["people"]._flush(t,r,n,i,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags().catch(function(){_A.error("[flags] Error fetching flags during identify")})},lP.prototype.reset=function(){this.stop_session_recording(),this["persistence"].clear(),this._flags.identify_called=!1;var e=bA.UUID();this.register_once({distinct_id:eP+e,$device_id:e},""),this._check_and_start_session_recording()},lP.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},lP.prototype.alias=function(e,t){if(e===this.get_property(qR))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return bA.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(HR,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},lP.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},lP.prototype.set_config=function(e){if(bA.isObject(e)){bA.extend(this["config"],e);var t=e["batch_size"];t&&bA.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this["config"]["persistence_name"]=this["config"]["cookie_name"]),this.get_config("disable_persistence")||(this["config"]["disable_persistence"]=this["config"]["disable_cookie"]),this["persistence"]&&this["persistence"].update_config(this["config"]),Pl.DEBUG=Pl.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),bA.isObject(e["hooks"])&&(this.hooks={},bA.each(e["hooks"],function(e,t){if(bA.isFunction(e))this.hooks[t]=[e];else if(bA.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)bA.isFunction(e[r])||_A.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else _A.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}},lP.prototype.get_config=function(e){return this["config"][e]},lP.prototype._run_hook=function(e){var t=oA.call(arguments,1);return bA.each(this.hooks[e],function(r){if(null===t)return null;var n=r.apply(this,t);"undefined"===typeof n?(this.report_error(e+" hook did not return a valid value"),t=null):(bA.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},lP.prototype.get_property=function(e){return this["persistence"].load_prop([e])},lP.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},lP.prototype.toString=function(){var e=this.get_config("name");return e!==KR&&(e=KR+"."+e),e},lP.prototype._event_is_disabled=function(e){return bA.isBlockedUA(pA)||this._flags.disable_all_events||bA.include(this.__disabled_events,e)},lP.prototype._gdpr_init=function(){var e="localStorage"===this.get_config("opt_out_tracking_persistence_type");e&&bA.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!bA.cookie.get("mp_optout")||(bA.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},lP.prototype._gdpr_update_persistence=function(e){var t;if(e&&e["clear_persistence"])t=!0;else{if(!e||!e["enable_persistence"])return;t=!1}this.get_config("disable_persistence")||this["persistence"].disabled===t||this["persistence"].set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},lP.prototype._gdpr_call_func=function(e,t){return t=bA.extend({track:bA.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),bA.localStorage.is_supported()||(t["persistence_type"]="cookie"),e(this.get_config("token"),{track:t["track"],trackEventName:t["track_event_name"],trackProperties:t["track_properties"],persistenceType:t["persistence_type"],persistencePrefix:t["cookie_prefix"],cookieDomain:t["cookie_domain"],cookieExpiration:t["cookie_expiration"],crossSiteCookie:t["cross_site_cookie"],crossSubdomainCookie:t["cross_subdomain_cookie"],secureCookie:t["secure_cookie"],ignoreDnt:t["ignore_dnt"]})},lP.prototype.opt_in_tracking=function(e){e=bA.extend({enable_persistence:!0},e),this._gdpr_call_func(nI,e),this._gdpr_update_persistence(e)},lP.prototype.opt_out_tracking=function(e){e=bA.extend({clear_persistence:!0,delete_user:!0},e),e["delete_user"]&&this["people"]&&this["people"]._identify_called()&&(this["people"].delete_user(),this["people"].clear_charges()),this._gdpr_call_func(iI,e),this._gdpr_update_persistence(e)},lP.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(oI,e)},lP.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(sI,e)},lP.prototype.clear_opt_in_out_tracking=function(e){e=bA.extend({enable_persistence:!0},e),this._gdpr_call_func(lI,e),this._gdpr_update_persistence(e)},lP.prototype.report_error=function(e,t){_A.error.apply(_A.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){_A.error(t)}},lP.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},lP.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(r=this.hooks[e].indexOf(t),-1!==r?this.hooks[e].splice(r,1):_A.log("remove_hook failed. Matching hook was not found"))},lP.prototype["init"]=lP.prototype.init,lP.prototype["reset"]=lP.prototype.reset,lP.prototype["enable"]=lP.prototype.enable,lP.prototype["disable"]=lP.prototype.disable,lP.prototype["time_event"]=lP.prototype.time_event,lP.prototype["track"]=lP.prototype.track,lP.prototype["track_links"]=lP.prototype.track_links,lP.prototype["track_forms"]=lP.prototype.track_forms,lP.prototype["track_pageview"]=lP.prototype.track_pageview,lP.prototype["register"]=lP.prototype.register,lP.prototype["register_once"]=lP.prototype.register_once,lP.prototype["unregister"]=lP.prototype.unregister,lP.prototype["identify"]=lP.prototype.identify,lP.prototype["alias"]=lP.prototype.alias,lP.prototype["name_tag"]=lP.prototype.name_tag,lP.prototype["set_config"]=lP.prototype.set_config,lP.prototype["get_config"]=lP.prototype.get_config,lP.prototype["get_api_host"]=lP.prototype.get_api_host,lP.prototype["get_property"]=lP.prototype.get_property,lP.prototype["get_distinct_id"]=lP.prototype.get_distinct_id,lP.prototype["toString"]=lP.prototype.toString,lP.prototype["opt_out_tracking"]=lP.prototype.opt_out_tracking,lP.prototype["opt_in_tracking"]=lP.prototype.opt_in_tracking,lP.prototype["has_opted_out_tracking"]=lP.prototype.has_opted_out_tracking,lP.prototype["has_opted_in_tracking"]=lP.prototype.has_opted_in_tracking,lP.prototype["clear_opt_in_out_tracking"]=lP.prototype.clear_opt_in_out_tracking,lP.prototype["get_group"]=lP.prototype.get_group,lP.prototype["set_group"]=lP.prototype.set_group,lP.prototype["add_group"]=lP.prototype.add_group,lP.prototype["remove_group"]=lP.prototype.remove_group,lP.prototype["add_hook"]=lP.prototype.add_hook,lP.prototype["remove_hook"]=lP.prototype.remove_hook,lP.prototype["track_with_groups"]=lP.prototype.track_with_groups,lP.prototype["start_batch_senders"]=lP.prototype.start_batch_senders,lP.prototype["stop_batch_senders"]=lP.prototype.stop_batch_senders,lP.prototype["start_session_recording"]=lP.prototype.start_session_recording,lP.prototype["stop_session_recording"]=lP.prototype.stop_session_recording,lP.prototype["pause_session_recording"]=lP.prototype.pause_session_recording,lP.prototype["resume_session_recording"]=lP.prototype.resume_session_recording,lP.prototype["get_session_recording_properties"]=lP.prototype.get_session_recording_properties,lP.prototype["get_session_replay_url"]=lP.prototype.get_session_replay_url,lP.prototype["get_tab_id"]=lP.prototype.get_tab_id,lP.prototype["DEFAULT_API_ROUTES"]=aP,lP.prototype["__get_recorder"]=lP.prototype.__get_recorder,lP.prototype["__get_recording_init_promise"]=lP.prototype.__get_recording_init_promise,VR.prototype["properties"]=VR.prototype.properties,VR.prototype["update_search_keyword"]=VR.prototype.update_search_keyword,VR.prototype["update_referrer_info"]=VR.prototype.update_referrer_info,VR.prototype["get_cross_subdomain"]=VR.prototype.get_cross_subdomain,VR.prototype["clear"]=VR.prototype.clear;var fP={},gP=function(){bA.each(fP,function(e,t){t!==KR&&(YR[t]=e)}),YR["_"]=bA},mP=function(){YR["init"]=function(e,t,r){if(r)return YR[r]||(YR[r]=fP[r]=hP(e,t,r),YR[r]._loaded()),YR[r];var n=YR;fP[KR]?n=fP[KR]:e&&(n=hP(e,t,KR),n._loaded(),fP[KR]=n),YR=n,LR===GR&&(Tl[KR]=YR),gP()}},vP=function(){function e(){e.done||(e.done=!0,uP=!0,oP=!1,bA.each(fP,function(e){e._dom_loaded()}))}function t(){try{lA.documentElement.doScroll("left")}catch(r){return void setTimeout(t,1)}e()}if(lA.addEventListener)"complete"===lA.readyState?e():lA.addEventListener("DOMContentLoaded",e,!1);else if(lA.attachEvent){lA.attachEvent("onreadystatechange",e);var r=!1;try{r=null===Tl.frameElement}catch(n){}lA.documentElement.doScroll&&r&&t()}bA.register_event(Tl,"load",e,!0)};function yP(e){return XR=e,LR=JR,YR=new lP,mP(),YR["init"](),vP(),YR}function wP(e,t){t()}var bP=yP(wP);const _P="@mixpanelIdentificationData",kP=e=>{let t={};return e?.name?(t["$name"]=e?.name,delete e.name):(t["$first_name"]=e?.first_name,t["$last_name"]=e?.last_name,delete e?.first_name,delete e?.last_name),e?.email&&(t["$email"]=e?.email,delete e?.email),e?.phone&&(t["$phone"]=e?.phone,delete e?.phone),t=Object.assign({},t,e),t},SP={setMixpanelIdentificationData:e=>{lo(_P,e)},getMixpanelIdentificationData:()=>ho(_P),hasMixpanelIdentificationData:()=>!!SP.getMixpanelIdentificationData(),init:(e,t)=>{bP.init(e,Object.assign({},t,{ignore_dnt:!0}))},initIdentify:(e,t,r,n)=>{const i=r||SP.getMixpanelIdentificationData(),o=kP(i);if("production"===e&&o){SP.init(t,n);const e=window.location.hostname;let r=`${e}`;o?.company&&(r+=`.${o?.company?.name}`),o?.employee_code&&(r+=`.${o?.employee_code}`),(o?.name||o?.first_name&&o?.last_name)&&(r+=o?.name?`.${o.name}`:`.${o?.first_name}.${o?.last_name}`),bP.identify(r),bP.people.set({...o,company_domain:e})}},trackEvent:(e,t,r)=>{"production"===e&&bP.track(t,r)}};var xP=SP,CP={}}(),n}()});
|
|
1
|
+
(function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["SHR_UI_CORE"]=t():e["SHR_UI_CORE"]=t()})(this,function(){return function(){var e={6660:function(e,t,r){e.exports=r(8226)},8427:function(e,t,r){"use strict";var n=r(4345),i=r(6435),o=r(5905),s=r(3025),a=r(3916),c=r(6135),u=r(6923),l=r(1792),h=r(292),d=r(9945);e.exports=function(e){return new Promise(function(t,r){var f=e.data,p=e.headers,g=e.responseType,m;function v(){e.cancelToken&&e.cancelToken.unsubscribe(m),e.signal&&e.signal.removeEventListener("abort",m)}n.isFormData(f)&&delete p["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(b+":"+w)}var x=a(e.baseURL,e.url);function _(){if(y){var n="getAllResponseHeaders"in y?c(y.getAllResponseHeaders()):null,o=g&&"text"!==g&&"json"!==g?y.response:y.responseText,s={data:o,status:y.status,statusText:y.statusText,headers:n,config:e,request:y};i(function(e){t(e),v()},function(e){r(e),v()},s),y=null}}if(y.open(e.method.toUpperCase(),s(x,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=_:y.onreadystatechange=function(){!y||4!==y.readyState||(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(_)},y.onabort=function(){y&&(r(l("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){r(l("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||h.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(l(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},n.isStandardBrowserEnv()){var k=(e.withCredentials||u(x))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(p[e.xsrfHeaderName]=k)}"setRequestHeader"in y&&n.forEach(p,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete p[t]:y.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),g&&"json"!==g&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(m=function(e){y&&(r(!e||e&&e.type?new d("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(m),e.signal&&(e.signal.aborted?m():e.signal.addEventListener("abort",m))),f||(f=null),y.send(f)})}},8226:function(e,t,r){"use strict";var n=r(4345),i=r(5063),o=r(9560),s=r(4816),a=r(292);function c(e){var t=new o(e),r=i(o.prototype.request,t);return n.extend(r,o.prototype,t),n.extend(r,t),r.create=function(t){return c(s(e,t))},r}var u=c(a);u.Axios=o,u.Cancel=r(9945),u.CancelToken=r(5912),u.isCancel=r(6945),u.VERSION=r(9978).version,u.all=function(e){return Promise.all(e)},u.spread=r(8127),u.isAxiosError=r(8568),e.exports=u,e.exports["default"]=u},9945: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},5912:function(e,t,r){"use strict";var n=r(9945);function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;this.promise.then(function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}}),this.promise.then=function(e){var t,n=new Promise(function(e){r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e,t=new i(function(t){e=t});return{token:t,cancel:e}},e.exports=i},6945:function(e){"use strict";e.exports=function(e){return!!(e&&e.__CANCEL__)}},9560:function(e,t,r){"use strict";var n=r(4345),i=r(3025),o=r(546),s=r(1617),a=r(4816),c=r(6552),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e,t){if("string"==typeof e?(t=t||{}).url=e:t=e||{},!t.url)throw Error("Provided config url is not valid");(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(i=i&&e.synchronous,n.unshift(e.fulfilled,e.rejected))});var o=[],l;if(this.interceptors.response.forEach(function(e){o.push(e.fulfilled,e.rejected)}),!i){var h=[s,void 0];Array.prototype.unshift.apply(h,n),h=h.concat(o),l=Promise.resolve(t);while(h.length)l=l.then(h.shift(),h.shift());return l}var d=t;while(n.length){var f=n.shift(),p=n.shift();try{d=f(d)}catch(e){p(e);break}}try{l=s(d)}catch(e){return Promise.reject(e)}while(o.length)l=l.then(o.shift(),o.shift());return l},l.prototype.getUri=function(e){if(!e.url)throw Error("Provided config url is not valid");return i((e=a(this.defaults,e)).url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(e){l.prototype[e]=function(t,r){return this.request(a(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(a(n||{},{method:e,url:t,data:r}))}}),e.exports=l},546:function(e,t,r){"use strict";var n=r(4345);function i(){this.handlers=[]}i.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},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},3916:function(e,t,r){"use strict";var n=r(4860),i=r(7825);e.exports=function(e,t){return e&&!n(t)?i(e,t):t}},1792:function(e,t,r){"use strict";var n=r(7148);e.exports=function(e,t,r,i,o){var s=Error(e);return n(s,t,r,i,o)}},1617:function(e,t,r){"use strict";var n=r(4345),i=r(7638),o=r(6945),s=r(292),a=r(9945);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a("canceled")}e.exports=function(e){c(e),e.headers=e.headers||{},e.data=i.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]});var t=e.adapter||s.adapter;return t(e).then(function(t){return c(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t},function(t){return!o(t)&&(c(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},7148:function(e){"use strict";e.exports=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,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,status:this.response&&this.response.status?this.response.status:null}},e}},4816:function(e,t,r){"use strict";var n=r(4345);e.exports=function(e,t){t=t||{};var r={};function i(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 o(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:i(void 0,e[r]):i(e[r],t[r])}function s(e){if(!n.isUndefined(t[e]))return i(void 0,t[e])}function a(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:i(void 0,e[r]):i(void 0,t[r])}function c(r){return r in t?i(e[r],t[r]):r in e?i(void 0,e[r]):void 0}var u={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c};return n.forEach(Object.keys(e).concat(Object.keys(t)),function(e){var t=u[e]||o,i=t(e);n.isUndefined(i)&&t!==c||(r[e]=i)}),r}},6435:function(e,t,r){"use strict";var n=r(1792);e.exports=function(e,t,r){var i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}},7638:function(e,t,r){"use strict";var n=r(4345),i=r(292);e.exports=function(e,t,r){var o=this||i;return n.forEach(r,function(r){e=r.call(o,e,t)}),e}},292:function(e,t,r){"use strict";var n=r(4345),i=r(2327),o=r(7148),s={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function c(){var e;return"u">typeof XMLHttpRequest?e=r(8427):"u">typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(e=r(8427)),e}function u(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)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:c(),transformRequest:[function(e,t){return(i(t,"Accept"),i(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)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(a(t,"application/json"),u(e)):e}],transformResponse:[function(e){var t=this.transitional||l.transitional,r=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,s=!r&&"json"===this.responseType;if(s||i&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(s){if("SyntaxError"===e.name)throw o(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},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],function(e){l.headers[e]={}}),n.forEach(["post","put","patch"],function(e){l.headers[e]=n.merge(s)}),e.exports=l},9978:function(e){e.exports={version:"0.25.0"}},5063:function(e){"use strict";e.exports=function(e,t){return function(){for(var r=Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},3025:function(e,t,r){"use strict";var n=r(4345);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var o;if(r)o=r(t);else if(n.isURLSearchParams(t))o=t.toString();else{var s=[];n.forEach(t,function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(i(t)+"="+i(e))}))}),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7825:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},5905:function(e,t,r){"use strict";var n=r(4345);e.exports=n.isStandardBrowserEnv()?function(){return{write:function(e,t,r,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(i)&&a.push("path="+i),n.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},4860:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},8568:function(e,t,r){"use strict";var n=r(4345);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},6923:function(e,t,r){"use strict";var n=r(4345);e.exports=n.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a"),r;function i(r){var n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=i(window.location.href),function(e){var t=n.isString(e)?i(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return function(){return!0}}()},2327:function(e,t,r){"use strict";var n=r(4345);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},6135:function(e,t,r){"use strict";var n=r(4345),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t={},r,o,s;return e&&n.forEach(e.split("\n"),function(e){s=e.indexOf(":"),r=n.trim(e.substr(0,s)).toLowerCase(),o=n.trim(e.substr(s+1)),r&&(t[r]&&i.indexOf(r)>=0||("set-cookie"===r?t[r]=(t[r]?t[r]:[]).concat([o]):t[r]=t[r]?t[r]+", "+o:o))}),t}},8127:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},6552:function(e,t,r){"use strict";var n=r(9978).version,i={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var o={};i.transitional=function(e,t,r){function i(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw Error(i(n," has been removed"+(t?" in "+t:"")));return t&&!o[n]&&(o[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw TypeError("options must be an object");var n=Object.keys(e),i=n.length;while(i-- >0){var o=n[i],s=t[o];if(s){var a=e[o],c=void 0===a||s(a,o,e);if(!0!==c)throw TypeError("option "+o+" must be "+c);continue}if(!0!==r)throw Error("Unknown option "+o)}},validators:i}},4345:function(e,t,r){"use strict";var n=r(5063),i=Object.prototype.toString;function o(e){return Array.isArray(e)}function s(e){return void 0===e}function a(e){return"[object ArrayBuffer]"===i.call(e)}function c(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&a(e.buffer)}function u(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function h(e){return"[object Function]"===i.call(e)}function d(e){return u(e)&&h(e.pipe)}function f(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function p(){var e={};function t(t,r){l(e[r])&&l(t)?e[r]=p(e[r],t):l(t)?e[r]=p({},t):o(t)?e[r]=t.slice():e[r]=t}for(var r=0,n=arguments.length;r<n;r++)f(arguments[r],t);return e}function g(e,t,r){return f(t,function(t,i){r&&"function"==typeof t?e[i]=n(t,r):e[i]=t}),e}e.exports={isArray:o,isArrayBuffer:a,isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===i.call(e)},isArrayBufferView:c,isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:u,isPlainObject:l,isUndefined:s,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:h,isStream:d,isURLSearchParams:function(e){return"[object URLSearchParams]"===i.call(e)},isStandardBrowserEnv:function(){return(!("u">typeof navigator)||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"u">typeof window&&"u">typeof document},forEach:f,merge:p,extend:g,trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},6598:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(2201),r(2989),r(953),r(4768))})(0,function(e){return function(){var t=e,r=t.lib,n=r.BlockCipher,i=t.algo,o=[],s=[],a=[],c=[],u=[],l=[],h=[],d=[],f=[],p=[];(function(){for(var e=[],t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=0,n=0,t=0;t<256;t++){var i=n^n<<1^n<<2^n<<3^n<<4;i=i>>>8^255&i^99,o[r]=i,s[i]=r;var g=e[r],m=e[g],v=e[m],y=257*e[i]^0x1010100*i;a[r]=y<<24|y>>>8,c[r]=y<<16|y>>>16,u[r]=y<<8|y>>>24,l[r]=y;var y=0x1010101*v^65537*m^257*g^0x1010100*r;h[i]=y<<24|y>>>8,d[i]=y<<16|y>>>16,f[i]=y<<8|y>>>24,p[i]=y,r?(r=g^e[e[e[v^g]]],n^=e[e[n]]):r=n=1}})();var g=[0,1,2,4,8,16,32,64,128,27,54],m=i.AES=n.extend({_doReset:function(){var e;if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,r=t.words,n=t.sigBytes/4,i=this._nRounds=n+6,s=(i+1)*4,a=this._keySchedule=[],c=0;c<s;c++)c<n?a[c]=r[c]:(e=a[c-1],c%n?n>6&&c%n==4&&(e=o[e>>>24]<<24|o[e>>>16&255]<<16|o[e>>>8&255]<<8|o[255&e]):e=(o[(e=e<<8|e>>>24)>>>24]<<24|o[e>>>16&255]<<16|o[e>>>8&255]<<8|o[255&e])^g[c/n|0]<<24,a[c]=a[c-n]^e);for(var u=this._invKeySchedule=[],l=0;l<s;l++){var c=s-l;if(l%4)var e=a[c];else var e=a[c-4];l<4||c<=4?u[l]=e:u[l]=h[o[e>>>24]]^d[o[e>>>16&255]]^f[o[e>>>8&255]]^p[o[255&e]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,c,u,l,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,h,d,f,p,s);var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,s,a){for(var c=this._nRounds,u=e[t]^r[0],l=e[t+1]^r[1],h=e[t+2]^r[2],d=e[t+3]^r[3],f=4,p=1;p<c;p++){var g=n[u>>>24]^i[l>>>16&255]^o[h>>>8&255]^s[255&d]^r[f++],m=n[l>>>24]^i[h>>>16&255]^o[d>>>8&255]^s[255&u]^r[f++],v=n[h>>>24]^i[d>>>16&255]^o[u>>>8&255]^s[255&l]^r[f++],y=n[d>>>24]^i[u>>>16&255]^o[l>>>8&255]^s[255&h]^r[f++];u=g,l=m,h=v,d=y}var g=(a[u>>>24]<<24|a[l>>>16&255]<<16|a[h>>>8&255]<<8|a[255&d])^r[f++],m=(a[l>>>24]<<24|a[h>>>16&255]<<16|a[d>>>8&255]<<8|a[255&u])^r[f++],v=(a[h>>>24]<<24|a[d>>>16&255]<<16|a[u>>>8&255]<<8|a[255&l])^r[f++],y=(a[d>>>24]<<24|a[u>>>16&255]<<16|a[l>>>8&255]<<8|a[255&h])^r[f++];e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=y},keySize:8});t.AES=n._createHelper(m)}(),e.AES})},7035:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(2201),r(2989),r(953),r(4768))})(0,function(e){return function(){var t=e,r=t.lib,n=r.BlockCipher,i=t.algo;let o=16,s=[0x243f6a88,0x85a308d3,0x13198a2e,0x3707344,0xa4093822,0x299f31d0,0x82efa98,0xec4e6c89,0x452821e6,0x38d01377,0xbe5466cf,0x34e90c6c,0xc0ac29b7,0xc97c50dd,0x3f84d5b5,0xb5470917,0x9216d5d9,0x8979fb1b],a=[[0xd1310ba6,0x98dfb5ac,0x2ffd72db,0xd01adfb7,0xb8e1afed,0x6a267e96,0xba7c9045,0xf12c7f99,0x24a19947,0xb3916cf7,0x801f2e2,0x858efc16,0x636920d8,0x71574e69,0xa458fea3,0xf4933d7e,0xd95748f,0x728eb658,0x718bcd58,0x82154aee,0x7b54a41d,0xc25a59b5,0x9c30d539,0x2af26013,0xc5d1b023,0x286085f0,0xca417918,0xb8db38ef,0x8e79dcb0,0x603a180e,0x6c9e0e8b,0xb01e8a3e,0xd71577c1,0xbd314b27,0x78af2fda,0x55605c60,0xe65525f3,0xaa55ab94,0x57489862,0x63e81440,0x55ca396a,0x2aab10b6,0xb4cc5c34,0x1141e8ce,0xa15486af,0x7c72e993,0xb3ee1411,0x636fbc2a,0x2ba9c55d,0x741831f6,0xce5c3e16,0x9b87931e,0xafd6ba33,0x6c24cf5c,0x7a325381,0x28958677,0x3b8f4898,0x6b4bb9af,0xc4bfe81b,0x66282193,0x61d809cc,0xfb21a991,0x487cac60,0x5dec8032,0xef845d5d,0xe98575b1,0xdc262302,0xeb651b88,0x23893e81,0xd396acc5,0xf6d6ff3,0x83f44239,0x2e0b4482,0xa4842004,0x69c8f04a,0x9e1f9b5e,0x21c66842,0xf6e96c9a,0x670c9c61,0xabd388f0,0x6a51a0d2,0xd8542f68,0x960fa728,0xab5133a3,0x6eef0b6c,0x137a3be4,0xba3bf050,0x7efb2a98,0xa1f1651d,0x39af0176,0x66ca593e,0x82430e88,0x8cee8619,0x456f9fb4,0x7d84a5c3,0x3b8b5ebe,0xe06f75d8,0x85c12073,0x401a449f,0x56c16aa6,0x4ed3aa62,0x363f7706,0x1bfedf72,0x429b023d,0x37d0d724,0xd00a1248,0xdb0fead3,0x49f1c09b,0x75372c9,0x80991b7b,0x25d479d8,0xf6e8def7,0xe3fe501a,0xb6794c3b,0x976ce0bd,0x4c006ba,0xc1a94fb6,0x409f60c4,0x5e5c9ec2,0x196a2463,0x68fb6faf,0x3e6c53b5,0x1339b2eb,0x3b52ec6f,0x6dfc511f,0x9b30952c,0xcc814544,0xaf5ebd09,0xbee3d004,0xde334afd,0x660f2807,0x192e4bb3,0xc0cba857,0x45c8740f,0xd20b5f39,0xb9d3fbdb,0x5579c0bd,0x1a60320a,0xd6a100c6,0x402c7279,0x679f25fe,0xfb1fa3cc,0x8ea5e9f8,0xdb3222f8,0x3c7516df,0xfd616b15,0x2f501ec8,0xad0552ab,0x323db5fa,0xfd238760,0x53317b48,0x3e00df82,0x9e5c57bb,0xca6f8ca0,0x1a87562e,0xdf1769db,0xd542a8f6,0x287effc3,0xac6732c6,0x8c4f5573,0x695b27b0,0xbbca58c8,0xe1ffa35d,0xb8f011a0,0x10fa3d98,0xfd2183b8,0x4afcb56c,0x2dd1d35b,0x9a53e479,0xb6f84565,0xd28e49bc,0x4bfb9790,0xe1ddf2da,0xa4cb7e33,0x62fb1341,0xcee4c6e8,0xef20cada,0x36774c01,0xd07e9efe,0x2bf11fb4,0x95dbda4d,0xae909198,0xeaad8e71,0x6b93d5a0,0xd08ed1d0,0xafc725e0,0x8e3c5b2f,0x8e7594b7,0x8ff6e2fb,0xf2122b64,0x8888b812,0x900df01c,0x4fad5ea0,0x688fc31c,0xd1cff191,0xb3a8c1ad,0x2f2f2218,0xbe0e1777,0xea752dfe,0x8b021fa1,0xe5a0cc0f,0xb56f74e8,0x18acf3d6,0xce89e299,0xb4a84fe0,0xfd13e0b7,0x7cc43b81,0xd2ada8d9,0x165fa266,0x80957705,0x93cc7314,0x211a1477,0xe6ad2065,0x77b5fa86,0xc75442f5,0xfb9d35cf,0xebcdaf0c,0x7b3e89a0,0xd6411bd3,0xae1e7e49,2428461,0x2071b35e,0x226800bb,0x57b8e0af,0x2464369b,0xf009b91e,0x5563911d,0x59dfa6aa,0x78c14389,0xd95a537f,0x207d5ba2,0x2e5b9c5,0x83260376,0x6295cfa9,0x11c81968,0x4e734a41,0xb3472dca,0x7b14a94a,0x1b510052,0x9a532915,0xd60f573f,0xbc9bc6e4,0x2b60a476,0x81e67400,0x8ba6fb5,0x571be91f,0xf296ec6b,0x2a0dd915,0xb6636521,0xe7b9f9b6,0xff34052e,0xc5855664,0x53b02d5d,0xa99f8fa1,0x8ba4799,0x6e85076a],[0x4b7a70e9,0xb5b32944,0xdb75092e,0xc4192623,290971e4,0x49a7df7d,0x9cee60b8,0x8fedb266,0xecaa8c71,0x699a17ff,0x5664526c,0xc2b19ee1,0x193602a5,0x75094c29,0xa0591340,0xe4183a3e,0x3f54989a,0x5b429d65,0x6b8fe4d6,0x99f73fd6,0xa1d29c07,0xefe830f5,0x4d2d38e6,0xf0255dc1,0x4cdd2086,0x8470eb26,0x6382e9c6,0x21ecc5e,0x9686b3f,0x3ebaefc9,0x3c971814,0x6b6a70a1,0x687f3584,0x52a0e286,0xb79c5305,0xaa500737,0x3e07841c,0x7fdeae5c,0x8e7d44ec,0x5716f2b8,0xb03ada37,0xf0500c0d,0xf01c1f04,0x200b3ff,0xae0cf51a,0x3cb574b2,0x25837a58,0xdc0921bd,0xd19113f9,0x7ca92ff6,0x94324773,0x22f54701,0x3ae5e581,0x37c2dadc,0xc8b57634,0x9af3dda7,0xa9446146,0xfd0030e,0xecc8c73e,0xa4751e41,0xe238cd99,0x3bea0e2f,0x3280bba1,0x183eb331,0x4e548b38,0x4f6db908,0x6f420d03,0xf60a04bf,0x2cb81290,0x24977c79,0x5679b072,0xbcaf89af,0xde9a771f,0xd9930810,0xb38bae12,0xdccf3f2e,0x5512721f,0x2e6b7124,0x501adde6,0x9f84cd87,0x7a584718,0x7408da17,0xbc9f9abc,0xe94b7d8c,0xec7aec3a,0xdb851dfa,0x63094366,0xc464c3d2,0xef1c1847,0x3215d908,0xdd433b37,0x24c2ba16,0x12a14d43,0x2a65c451,0x50940002,0x133ae4dd,0x71dff89e,0x10314e55,0x81ac77d6,0x5f11199b,0x43556f1,0xd7a3c76b,0x3c11183b,0x5924a509,0xf28fe6ed,0x97f1fbfa,0x9ebabf2c,0x1e153c6e,0x86e34570,0xeae96fb1,0x860e5e0a,0x5a3e2ab3,0x771fe71c,0x4e3d06fa,0x2965dcb9,0x99e71d0f,0x803e89d6,0x5266c825,0x2e4cc978,0x9c10b36a,0xc6150eba,0x94e2ea78,0xa5fc3c53,0x1e0a2df4,0xf2f74ea7,0x361d2b3d,0x1939260f,0x19c27960,0x5223a708,0xf71312b6,0xebadfe6e,0xeac31f66,0xe3bc4595,0xa67bc883,0xb17f37d1,0x18cff28,0xc332ddef,0xbe6c5aa5,0x65582185,0x68ab9802,0xeecea50f,0xdb2f953b,0x2aef7dad,0x5b6e2f84,0x1521b628,0x29076170,0xecdd4775,0x619f1510,0x13cca830,0xeb61bd96,0x334fe1e,0xaa0363cf,0xb5735c90,0x4c70a239,0xd59e9e0b,0xcbaade14,0xeecc86bc,0x60622ca7,0x9cab5cab,0xb2f3846e,0x648b1eaf,0x19bdf0ca,0xa02369b9,0x655abb50,0x40685a32,0x3c2ab4b3,0x319ee9d5,0xc021b8f7,0x9b540b19,0x875fa099,0x95f7997e,0x623d7da8,0xf837889a,0x97e32d77,0x11ed935f,0x16681281,0xe358829,0xc7e61fd6,0x96dedfa1,0x7858ba99,0x57f584a5,0x1b227263,0x9b83c3ff,0x1ac24696,0xcdb30aeb,0x532e3054,0x8fd948e4,0x6dbc3128,0x58ebf2ef,0x34c6ffea,0xfe28ed61,0xee7c3c73,0x5d4a14d9,0xe864b7e3,0x42105d14,0x203e13e0,0x45eee2b6,0xa3aaabea,0xdb6c4f15,0xfacb4fd0,0xc742f442,0xef6abbb5,0x654f3b1d,0x41cd2105,0xd81e799e,0x86854dc7,0xe44b476a,0x3d816250,0xcf62a1f2,0x5b8d2646,0xfc8883a0,0xc1c7b6a3,0x7f1524c3,0x69cb7492,0x47848a0b,0x5692b285,0x95bbf00,0xad19489d,0x1462b174,0x23820e00,0x58428d2a,0xc55f5ea,0x1dadf43e,0x233f7061,0x3372f092,0x8d937e41,0xd65fecf1,0x6c223bdb,0x7cde3759,0xcbee7460,0x4085f2a7,0xce77326e,0xa6078084,0x19f8509e,0xe8efd855,0x61d99735,0xa969a7aa,0xc50c06c2,0x5a04abfc,0x800bcadc,0x9e447a2e,0xc3453484,0xfdd56705,0xe1e9ec9,0xdb73dbd3,0x105588cd,0x675fda79,0xe3674340,0xc5c43465,0x713e38d8,0x3d28f89e,0xf16dff20,0x153e21e7,0x8fb03d4a,0xe6e39f2b,0xdb83adf7],[0xe93d5a68,0x948140f7,0xf64c261c,0x94692934,0x411520f7,0x7602d4f7,0xbcf46b2e,0xd4a20068,0xd4082471,0x3320f46a,0x43b7d4b7,0x500061af,0x1e39f62e,0x97244546,0x14214f74,0xbf8b8840,0x4d95fc1d,0x96b591af,0x70f4ddd3,0x66a02f45,0xbfbc09ec,0x3bd9785,0x7fac6dd0,0x31cb8504,0x96eb27b3,0x55fd3941,0xda2547e6,0xabca0a9a,0x28507825,0x530429f4,0xa2c86da,0xe9b66dfb,0x68dc1462,0xd7486900,0x680ec0a4,0x27a18dee,0x4f3ffea2,0xe887ad8c,0xb58ce006,0x7af4d6b6,0xaace1e7c,0xd3375fec,0xce78a399,0x406b2a42,0x20fe9e35,0xd9f385b9,0xee39d7ab,0x3b124e8b,0x1dc9faf7,0x4b6d1856,0x26a36631,0xeae397b2,0x3a6efa74,0xdd5b4332,0x6841e7f7,0xca7820fb,0xfb0af54e,0xd8feb397,0x454056ac,0xba489527,0x55533a3a,0x20838d87,0xfe6ba9b7,0xd096954b,0x55a867bc,0xa1159a58,0xcca92963,0x99e1db33,0xa62a4a56,0x3f3125f9,0x5ef47e1c,0x9029317c,0xfdf8e802,0x4272f70,0x80bb155c,0x5282ce3,0x95c11548,0xe4c66d22,0x48c1133f,0xc70f86dc,0x7f9c9ee,0x41041f0f,0x404779a4,0x5d886e17,0x325f51eb,0xd59bc0d1,0xf2bcc18f,0x41113564,0x257b7834,0x602a9c60,0xdff8e8a3,0x1f636c1b,0xe12b4c2,0x2e1329e,0xaf664fd1,0xcad18115,0x6b2395e0,0x333e92e1,0x3b240b62,0xeebeb922,0x85b2a20e,0xe6ba0d99,0xde720c8c,0x2da2f728,0xd0127845,0x95b794fd,0x647d0862,0xe7ccf5f0,0x5449a36f,0x877d48fa,0xc39dfd27,0xf33e8d1e,0xa476341,0x992eff74,0x3a6f6eab,0xf4f8fd37,0xa812dc60,0xa1ebddf8,0x991be14c,0xdb6e6b0d,0xc67b5510,0x6d672c37,0x2765d43b,0xdcd0e804,0xf1290dc7,0xcc00ffa3,0xb5390f92,0x690fed0b,0x667b9ffb,0xcedb7d9c,0xa091cf0b,0xd9155ea3,0xbb132f88,0x515bad24,0x7b9479bf,0x763bd6eb,0x37392eb3,0xcc115979,0x8026e297,0xf42e312d,0x6842ada7,0xc66a2b3b,0x12754ccc,0x782ef11c,0x6a124237,0xb79251e7,0x6a1bbe6,0x4bfb6350,0x1a6b1018,0x11caedfa,0x3d25bdd8,0xe2e1c3c9,0x44421659,0xa121386,0xd90cec6e,0xd5abea2a,0x64af674e,0xda86a85f,0xbebfe988,0x64e4c3fe,0x9dbc8057,0xf0f7c086,0x60787bf8,0x6003604d,0xd1fd8346,0xf6381fb0,0x7745ae04,0xd736fccc,0x83426b33,0xf01eab71,0xb0804187,0x3c005e5f,0x77a057be,0xbde8ae24,0x55464299,0xbf582e61,0x4e58f48f,0xf2ddfda2,0xf474ef38,0x8789bdc2,0x5366f9c3,0xc8b38e74,0xb475f255,0x46fcd9b9,0x7aeb2661,0x8b1ddf84,0x846a0e79,0x915f95e2,0x466e598e,0x20b45770,0x8cd55591,0xc902de4c,0xb90bace1,0xbb8205d0,0x11a86248,0x7574a99e,0xb77f19b6,0xe0a9dc09,0x662d09a1,0xc4324633,0xe85a1f02,0x9f0be8c,0x4a99a025,0x1d6efe10,0x1ab93d1d,0xba5a4df,0xa186f20f,0x2868f169,0xdcb7da83,0x573906fe,0xa1e2ce9b,0x4fcd7f52,0x50115e01,0xa70683fa,0xa002b5c4,0xde6d027,0x9af88c27,0x773f8641,0xc3604c06,0x61a806b5,0xf0177a28,0xc0f586e0,6314154,0x30dc7d62,0x11e69ed7,0x2338ea63,0x53c2dd94,0xc2c21634,0xbbcbee56,0x90bcb6de,0xebfc7da1,0xce591d76,0x6f05e409,0x4b7c0188,0x39720a3d,0x7c927c24,0x86e3725f,0x724d9db9,0x1ac15bb4,0xd39eb8fc,0xed545578,0x8fca5b5,0xd83d7cd3,0x4dad0fc4,0x1e50ef5e,0xb161e6f8,0xa28514d9,0x6c51133c,0x6fd5c7e7,0x56e14ec4,0x362abfce,0xddc6c837,0xd79a3234,0x92638212,0x670efa8e,0x406000e0],[0x3a39ce37,0xd3faf5cf,0xabc27737,0x5ac52d1b,0x5cb0679e,0x4fa33742,0xd3822740,0x99bc9bbe,0xd5118e9d,0xbf0f7315,0xd62d1c7e,0xc700c47b,0xb78c1b6b,0x21a19045,0xb26eb1be,0x6a366eb4,0x5748ab2f,0xbc946e79,0xc6a376d2,0x6549c2c8,0x530ff8ee,0x468dde7d,0xd5730a1d,0x4cd04dc6,0x2939bbdb,0xa9ba4650,0xac9526e8,0xbe5ee304,0xa1fad5f0,0x6a2d519a,0x63ef8ce2,0x9a86ee22,0xc089c2b8,0x43242ef6,0xa51e03aa,0x9cf2d0a4,0x83c061ba,0x9be96a4d,0x8fe51550,0xba645bd6,0x2826a2f9,0xa73a3ae1,0x4ba99586,0xef5562e9,0xc72fefd3,0xf752f7da,0x3f046f69,0x77fa0a59,0x80e4a915,0x87b08601,0x9b09e6ad,0x3b3ee593,0xe990fd5a,0x9e34d797,0x2cf0b7d9,0x22b8b51,0x96d5ac3a,0x17da67d,0xd1cf3ed6,0x7c7d2d28,0x1f9f25cf,0xadf2b89b,0x5ad6b472,0x5a88f54c,0xe029ac71,0xe019a5e6,0x47b0acfd,0xed93fa9b,0xe8d3c48d,0x283b57cc,0xf8d56629,0x79132e28,0x785f0191,0xed756055,0xf7960e44,0xe3d35e8c,0x15056dd4,0x88f46dba,0x3a16125,0x564f0bd,0xc3eb9e15,0x3c9057a2,0x97271aec,0xa93a072a,0x1b3f6d9b,0x1e6321f5,0xf59c66fb,0x26dcf319,0x7533d928,0xb155fdf5,0x3563482,0x8aba3cbb,0x28517711,0xc20ad9f8,0xabcc5167,0xccad925f,0x4de81751,0x3830dc8e,0x379d5862,0x9320f991,0xea7a90c2,0xfb3e7bce,0x5121ce64,0x774fbe32,0xa8b6e37e,0xc3293d46,0x48de5369,0x6413e680,0xa2ae0810,0xdd6db224,0x69852dfd,0x9072166,0xb39a460a,0x6445c0dd,0x586cdecf,0x1c20c8ae,0x5bbef7dd,0x1b588d40,0xccd2017f,0x6bb4e3bb,0xdda26a7e,0x3a59ff45,0x3e350a44,0xbcb4cdd5,0x72eacea8,0xfa6484bb,0x8d6612ae,0xbf3c6f47,0xd29be463,0x542f5d9e,0xaec2771b,0xf64e6370,0x740e0d8d,0xe75b1357,0xf8721671,0xaf537d5d,0x4040cb08,0x4eb4e2cc,0x34d2466a,0x115af84,3786409e3,0x95983a1d,0x6b89fb4,0xce6ea048,0x6f3f3b82,0x3520ab82,0x11a1d4b,0x277227f8,0x611560b1,0xe7933fdc,0xbb3a792b,0x344525bd,0xa08839e1,0x51ce794b,0x2f32c9b7,0xa01fbac9,0xe01cc87e,0xbcc7d1f6,0xcf0111c3,0xa1e8aac7,0x1a908749,0xd44fbd9a,0xd0dadecb,0xd50ada38,0x339c32a,0xc6913667,0x8df9317c,0xe0b12b4f,0xf79e59b7,0x43f5bb3a,0xf2d519ff,0x27d9459c,0xbf97222c,0x15e6fc2a,0xf91fc71,0x9b941525,0xfae59361,0xceb69ceb,0xc2a86459,0x12baa8d1,0xb6c1075e,0xe3056a0c,0x10d25065,0xcb03a442,0xe0ec6e0e,0x1698db3b,0x4c98a0be,0x3278e964,0x9f1f9532,0xe0d392df,0xd3a0342b,0x8971f21e,0x1b0a7441,0x4ba3348c,0xc5be7120,0xc37632d8,0xdf359f8d,0x9b992f2e,0xe60b6f47,0xfe3f11d,0xe54cda54,0x1edad891,0xce6279cf,0xcd3e7e6f,0x1618b166,0xfd2c1d05,0x848fd2c5,0xf6fb2299,0xf523f357,0xa6327623,0x93a83531,0x56cccd02,0xacf08162,0x5a75ebb5,0x6e163697,0x88d273cc,0xde966292,0x81b949d0,0x4c50901b,0x71c65614,0xe6c6c7bd,0x327a140a,0x45e1d006,0xc3f27b9a,0xc9aa53fd,0x62a80f00,0xbb25bfe2,0x35bdd2f6,0x71126905,0xb2040222,0xb6cbcf7c,0xcd769c2b,0x53113ec0,0x1640e3d3,0x38abbd60,0x2547adf0,0xba38209c,0xf746ce76,0x77afa1c5,0x20756060,0x85cbfe4e,0x8ae88dd8,0x7aaaf9b0,0x4cf9aa7e,0x1948c25c,0x2fb8a8c,0x1c36ae4,0xd6ebe1f9,0x90d4f869,0xa65cdea0,0x3f09252d,0xc208e69f,0xb74e6132,0xce77e25b,0x578fdfe3,0x3ac372e6]];var c={pbox:[],sbox:[]};function u(e,t){let r=t>>24&255,n=t>>16&255,i=t>>8&255,o=255&t,s=e.sbox[0][r]+e.sbox[1][n];return s^=e.sbox[2][i],s+=e.sbox[3][o]}function l(e,t,r){let n=t,i=r,s;for(let t=0;t<o;++t)n^=e.pbox[t],i=u(e,n)^i,s=n,n=i,i=s;return s=n,n=i,i=s^e.pbox[o],{left:n^=e.pbox[o+1],right:i}}function h(e,t,r){let n=t,i=r,s;for(let t=o+1;t>1;--t)n^=e.pbox[t],i=u(e,n)^i,s=n,n=i,i=s;return s=n,n=i,i=s^e.pbox[1],{left:n^=e.pbox[0],right:i}}function d(e,t,r){for(let t=0;t<4;t++){e.sbox[t]=[];for(let r=0;r<256;r++)e.sbox[t][r]=a[t][r]}let n=0;for(let i=0;i<o+2;i++)e.pbox[i]=s[i]^t[n],++n>=r&&(n=0);let i=0,c=0,u=0;for(let t=0;t<o+2;t+=2)i=(u=l(e,i,c)).left,c=u.right,e.pbox[t]=i,e.pbox[t+1]=c;for(let t=0;t<4;t++)for(let r=0;r<256;r+=2)i=(u=l(e,i,c)).left,c=u.right,e.sbox[t][r]=i,e.sbox[t][r+1]=c;return!0}var f=i.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4;d(c,t,r)}},encryptBlock:function(e,t){var r=l(c,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},decryptBlock:function(e,t){var r=h(c,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=n._createHelper(f)}(),e.Blowfish})},4768:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(953))})(0,function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,i=n.Base,o=n.WordArray,s=n.BufferedBlockAlgorithm,a=r.enc;a.Utf8;var c=a.Base64,u=r.algo,l=u.EvpKDF,h=n.Cipher=s.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?k:w}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()});n.StreamCipher=h.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1});var d=r.mode={},f=n.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var e=f.extend();function r(e,r,n){var i,o=this._iv;o?(i=o,this._iv=t):i=this._prevBlock;for(var s=0;s<n;s++)e[r+s]^=i[s]}return e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),e.Decryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=e.slice(t,t+i);n.decryptBlock(e,t),r.call(this,e,t,i),this._prevBlock=o}}),e}(),g=r.pad={},m=g.Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,i=n<<24|n<<16|n<<8|n,s=[],a=0;a<n;a+=4)s.push(i);var c=o.create(s,n);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=h.extend({cfg:h.cfg.extend({mode:p,padding:m}),reset:function(){var e;h.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var v=n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),y=r.format={},b=y.OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?o.create([0x53616c74,0x65645f5f]).concat(r).concat(t):t).toString(c)},parse:function(e){var t,r=c.parse(e),n=r.words;return 0x53616c74==n[0]&&0x65645f5f==n[1]&&(t=o.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),v.create({ciphertext:r,salt:t})}},w=n.SerializableCipher=i.extend({cfg:i.extend({format:b}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),s=i.cfg;return v.create({ciphertext:o,key:r,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=e.createDecryptor(r,n).finalize(t.ciphertext);return i},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),x=r.kdf={},_=x.OpenSSL={execute:function(e,t,r,n,i){if(n||(n=o.random(8)),i)var s=l.create({keySize:t+r,hasher:i}).compute(e,n);else var s=l.create({keySize:t+r}).compute(e,n);var a=o.create(s.words.slice(t),4*r);return s.sigBytes=4*t,v.create({key:s,iv:a,salt:n})}},k=n.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:_}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=n.kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=i.iv;var o=w.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);n.iv=i.iv;var o=w.decrypt.call(this,e,t,i.key,n);return o}})}()})},518:function(e,t,r){(function(t,r){e.exports=r()})(0,function(){var e=e||function(e,t){var n;if("u">typeof window&&window.crypto&&(n=window.crypto),"u">typeof self&&self.crypto&&(n=self.crypto),"u">typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"u">typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(891)}catch(e){}var i=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},a=s.lib={},c=a.Base=function(){return{extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=a.WordArray=c.extend({init:function(e,r){e=this.words=e||[],t!=r?this.sigBytes=r:this.sigBytes=4*e.length},toString:function(e){return(e||h).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var s=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=s<<24-(n+o)%4*8}else for(var a=0;a<i;a+=4)t[n+a>>>2]=r[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=0xffffffff<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(i());return new u.init(t,e)}}),l=s.enc={},h=l.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new u.init(r,t/2)}},d=l.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new u.init(r,t)}},f=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},p=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,s=this.blockSize,a=4*s,c=o/a;c=t?e.ceil(c):e.max((0|c)-this._minBufferSize,0);var l=c*s,h=e.min(4*l,o);if(l){for(var d=0;d<l;d+=s)this._doProcessBlock(i,d);r=i.splice(0,l),n.sigBytes-=h}return new u.init(r,h)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=p.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new g.HMAC.init(e,r).finalize(t)}}});var g=s.algo={};return s}(Math);return e})},2201:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=t.enc;function o(e,t,r){for(var i=[],o=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2,c=r[e.charCodeAt(s)]>>>6-s%4*2,u=a|c;i[o>>>2]|=u<<24-o%4*8,o++}return n.create(i,o)}i.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var s=t[o>>>2]>>>24-o%4*8&255,a=t[o+1>>>2]>>>24-(o+1)%4*8&255,c=t[o+2>>>2]>>>24-(o+2)%4*8&255,u=s<<16|a<<8|c,l=0;l<4&&o+.75*l<r;l++)i.push(n.charAt(u>>>6*(3-l)&63));var h=n.charAt(64);if(h)while(i.length%4)i.push(h);return i.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var i=0;i<r.length;i++)n[r.charCodeAt(i)]=i}var s=r.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return o(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64})},1332:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=t.enc;function o(e,t,r){for(var i=[],o=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2,c=r[e.charCodeAt(s)]>>>6-s%4*2,u=a|c;i[o>>>2]|=u<<24-o%4*8,o++}return n.create(i,o)}i.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],s=0;s<n;s+=3)for(var a=r[s>>>2]>>>24-s%4*8&255,c=r[s+1>>>2]>>>24-(s+1)%4*8&255,u=r[s+2>>>2]>>>24-(s+2)%4*8&255,l=a<<16|c<<8|u,h=0;h<4&&s+.75*h<n;h++)o.push(i.charAt(l>>>6*(3-h)&63));var d=i.charAt(64);if(d)while(o.length%4)o.push(d);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var r=e.length,n=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s<n.length;s++)i[n.charCodeAt(s)]=s}var a=n.charAt(64);if(a){var c=e.indexOf(a);-1!==c&&(r=c)}return o(e,r,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url})},7894:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=t.enc;function o(e){return e<<8&0xff00ff00|e>>>8&0xff00ff}i.Utf16=i.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return n.create(r,2*t)}},i.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i+=2){var s=o(t[i>>>2]>>>16-i%4*8&65535);n.push(String.fromCharCode(s))}return n.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16})},953:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(648),r(6002))})(0,function(e){return function(){var t=e,r=t.lib,n=r.Base,i=r.WordArray,o=t.algo,s=o.MD5,a=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:s,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var r,n=this.cfg,o=n.hasher.create(),s=i.create(),a=s.words,c=n.keySize,u=n.iterations;while(a.length<c){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var l=1;l<u;l++)r=o.finalize(r),o.reset();s.concat(r)}return s.sigBytes=4*c,s}});t.EvpKDF=function(e,t,r){return a.create(r).compute(e,t)}}(),e.EvpKDF})},5770:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(4768))})(0,function(e){return function(){var t=e,r=t.lib,n=r.CipherParams,i=t.enc,o=i.Hex,s=t.format;s.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var t=o.parse(e);return n.create({ciphertext:t})}}}(),e.format.Hex})},6002:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){(function(){var t=e,r=t.lib,n=r.Base,i=t.enc,o=i.Utf8,s=t.algo;s.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),a=i.words,c=s.words,u=0;u<r;u++)a[u]^=0x5c5c5c5c,c[u]^=0x36363636;i.sigBytes=s.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);t.reset();var n=t.finalize(this._oKey.clone().concat(r));return n}})})()})},8705:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(5703),r(1253),r(7894),r(2201),r(1332),r(2989),r(648),r(2110),r(8623),r(1759),r(2078),r(6882),r(6261),r(6002),r(3604),r(953),r(4768),r(1330),r(8944),r(9071),r(3974),r(1561),r(6782),r(3846),r(3673),r(3622),r(9805),r(5770),r(6598),r(3865),r(3556),r(3537),r(6333),r(7035))})(0,function(e){return e})},1253:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(){if("function"==typeof ArrayBuffer){var t=e,r=t.lib,n=r.WordArray,i=n.init,o=n.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"u">typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],n=0;n<t;n++)r[n>>>2]|=e[n]<<24-n%4*8;i.call(this,r,t)}else i.apply(this,arguments)};o.prototype=n}}(),e.lib.WordArray})},2989:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=[];(function(){for(var e=0;e<64;e++)a[e]=0x100000000*t.abs(t.sin(e+1))|0})();var c=s.MD5=o.extend({_doReset:function(){this._hash=new i.init([0x67452301,0xefcdab89,0x98badcfe,0x10325476])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=(i<<8|i>>>24)&0xff00ff|(i<<24|i>>>8)&0xff00ff00}var o=this._hash.words,s=e[t+0],c=e[t+1],f=e[t+2],p=e[t+3],g=e[t+4],m=e[t+5],v=e[t+6],y=e[t+7],b=e[t+8],w=e[t+9],x=e[t+10],_=e[t+11],k=e[t+12],S=e[t+13],C=e[t+14],E=e[t+15],O=o[0],I=o[1],T=o[2],A=o[3];O=u(O,I,T,A,s,7,a[0]),A=u(A,O,I,T,c,12,a[1]),T=u(T,A,O,I,f,17,a[2]),I=u(I,T,A,O,p,22,a[3]),O=u(O,I,T,A,g,7,a[4]),A=u(A,O,I,T,m,12,a[5]),T=u(T,A,O,I,v,17,a[6]),I=u(I,T,A,O,y,22,a[7]),O=u(O,I,T,A,b,7,a[8]),A=u(A,O,I,T,w,12,a[9]),T=u(T,A,O,I,x,17,a[10]),I=u(I,T,A,O,_,22,a[11]),O=u(O,I,T,A,k,7,a[12]),A=u(A,O,I,T,S,12,a[13]),T=u(T,A,O,I,C,17,a[14]),I=u(I,T,A,O,E,22,a[15]),O=l(O,I,T,A,c,5,a[16]),A=l(A,O,I,T,v,9,a[17]),T=l(T,A,O,I,_,14,a[18]),I=l(I,T,A,O,s,20,a[19]),O=l(O,I,T,A,m,5,a[20]),A=l(A,O,I,T,x,9,a[21]),T=l(T,A,O,I,E,14,a[22]),I=l(I,T,A,O,g,20,a[23]),O=l(O,I,T,A,w,5,a[24]),A=l(A,O,I,T,C,9,a[25]),T=l(T,A,O,I,p,14,a[26]),I=l(I,T,A,O,b,20,a[27]),O=l(O,I,T,A,S,5,a[28]),A=l(A,O,I,T,f,9,a[29]),T=l(T,A,O,I,y,14,a[30]),I=l(I,T,A,O,k,20,a[31]),O=h(O,I,T,A,m,4,a[32]),A=h(A,O,I,T,b,11,a[33]),T=h(T,A,O,I,_,16,a[34]),I=h(I,T,A,O,C,23,a[35]),O=h(O,I,T,A,c,4,a[36]),A=h(A,O,I,T,g,11,a[37]),T=h(T,A,O,I,y,16,a[38]),I=h(I,T,A,O,x,23,a[39]),O=h(O,I,T,A,S,4,a[40]),A=h(A,O,I,T,s,11,a[41]),T=h(T,A,O,I,p,16,a[42]),I=h(I,T,A,O,v,23,a[43]),O=h(O,I,T,A,w,4,a[44]),A=h(A,O,I,T,k,11,a[45]),T=h(T,A,O,I,E,16,a[46]),I=h(I,T,A,O,f,23,a[47]),O=d(O,I,T,A,s,6,a[48]),A=d(A,O,I,T,y,10,a[49]),T=d(T,A,O,I,C,15,a[50]),I=d(I,T,A,O,m,21,a[51]),O=d(O,I,T,A,k,6,a[52]),A=d(A,O,I,T,p,10,a[53]),T=d(T,A,O,I,x,15,a[54]),I=d(I,T,A,O,c,21,a[55]),O=d(O,I,T,A,b,6,a[56]),A=d(A,O,I,T,E,10,a[57]),T=d(T,A,O,I,v,15,a[58]),I=d(I,T,A,O,S,21,a[59]),O=d(O,I,T,A,g,6,a[60]),A=d(A,O,I,T,_,10,a[61]),T=d(T,A,O,I,f,15,a[62]),I=d(I,T,A,O,w,21,a[63]),o[0]=o[0]+O|0,o[1]=o[1]+I|0,o[2]=o[2]+T|0,o[3]=o[3]+A|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/0x100000000),s=n;r[(i+64>>>9<<4)+15]=(o<<8|o>>>24)&0xff00ff|(o<<24|o>>>8)&0xff00ff00,r[(i+64>>>9<<4)+14]=(s<<8|s>>>24)&0xff00ff|(s<<24|s>>>8)&0xff00ff00,e.sigBytes=(r.length+1)*4,this._process();for(var a=this._hash,c=a.words,u=0;u<4;u++){var l=c[u];c[u]=(l<<8|l>>>24)&0xff00ff|(l<<24|l>>>8)&0xff00ff00}return a},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,n,i,o,s){var a=e+(t&r|~t&n)+i+s;return(a<<o|a>>>32-o)+t}function l(e,t,r,n,i,o,s){var a=e+(t&n|r&~n)+i+s;return(a<<o|a>>>32-o)+t}function h(e,t,r,n,i,o,s){var a=e+(t^r^n)+i+s;return(a<<o|a>>>32-o)+t}function d(e,t,r,n,i,o,s){var a=e+(r^(t|~n))+i+s;return(a<<o|a>>>32-o)+t}r.MD5=o._createHelper(c),r.HmacMD5=o._createHmacHelper(c)}(Math),e.MD5})},1330:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(4768))})(0,function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function r(e,t,r,n){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var s=0;s<r;s++)e[t+s]^=i[s]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i,n),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=e.slice(t,t+i);r.call(this,e,t,i,n),this._prevBlock=o}}),t}(),e.mode.CFB})},9071:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(4768))})(0,function(e){return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(e){if((e>>24&255)===255){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0+(t<<16)+(r<<8)+n}else e+=0x1000000;return e}function n(e){return 0===(e[0]=r(e[0]))&&(e[1]=r(e[1])),e}var i=t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),n(s);var a=s.slice(0);r.encryptBlock(a,0);for(var c=0;c<i;c++)e[t+c]^=a[c]}});return t.Decryptor=i,t}(),e.mode.CTRGladman})},8944:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(4768))})(0,function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var s=o.slice(0);r.encryptBlock(s,0),o[n-1]=o[n-1]+1|0;for(var a=0;a<n;a++)e[t+a]^=s[a]}});return t.Decryptor=r,t}(),e.mode.CTR})},1561:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(4768))})(0,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB})},3974:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(4768))})(0,function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var s=0;s<n;s++)e[t+s]^=o[s]}});return t.Decryptor=r,t}(),e.mode.OFB})},6782:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(4768))})(0,function(e){return e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923})},3846:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(4768))})(0,function(e){return e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126})},3673:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(4768))})(0,function(e){return e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([0x80000000],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971})},9805:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(4768))})(0,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})},3622:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(4768))})(0,function(e){return e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1,r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding})},3604:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(2110),r(6002))})(0,function(e){return function(){var t=e,r=t.lib,n=r.Base,i=r.WordArray,o=t.algo,s=o.SHA256,a=o.HMAC,c=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:s,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var r=this.cfg,n=a.create(r.hasher,e),o=i.create(),s=i.create([1]),c=o.words,u=s.words,l=r.keySize,h=r.iterations;while(c.length<l){var d=n.update(t).finalize(s);n.reset();for(var f=d.words,p=f.length,g=d,m=1;m<h;m++){g=n.finalize(g),n.reset();for(var v=g.words,y=0;y<p;y++)f[y]^=v[y]}o.concat(d),u[0]++}return o.sigBytes=4*l,o}});t.PBKDF2=function(e,t,r){return c.create(r).compute(e,t)}}(),e.PBKDF2})},6333:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(2201),r(2989),r(953),r(4768))})(0,function(e){return function(){var t=e,r=t.lib,n=r.StreamCipher,i=t.algo,o=[],s=[],a=[],c=i.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,0xffff0000&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,0xffff0000&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,0xffff0000&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,0xffff0000&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)u.call(this);for(var i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,s=o[0],a=o[1],c=(s<<8|s>>>24)&0xff00ff|(s<<24|s>>>8)&0xff00ff00,l=(a<<8|a>>>24)&0xff00ff|(a<<24|a>>>8)&0xff00ff00,h=c>>>16|0xffff0000&l,d=l<<16|65535&c;n[0]^=c,n[1]^=h,n[2]^=l,n[3]^=d,n[4]^=c,n[5]^=h,n[6]^=l,n[7]^=d;for(var i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(e,t){var r=this._X;u.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=(o[n]<<8|o[n]>>>24)&0xff00ff|(o[n]<<24|o[n]>>>8)&0xff00ff00,e[t+n]^=o[n]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,r=0;r<8;r++)s[r]=t[r];t[0]=t[0]+0x4d34d34d+this._b|0,t[1]=t[1]+0xd34d34d3+ +(t[0]>>>0<s[0]>>>0)|0,t[2]=t[2]+0x34d34d34+ +(t[1]>>>0<s[1]>>>0)|0,t[3]=t[3]+0x4d34d34d+ +(t[2]>>>0<s[2]>>>0)|0,t[4]=t[4]+0xd34d34d3+ +(t[3]>>>0<s[3]>>>0)|0,t[5]=t[5]+0x34d34d34+ +(t[4]>>>0<s[4]>>>0)|0,t[6]=t[6]+0x4d34d34d+ +(t[5]>>>0<s[5]>>>0)|0,t[7]=t[7]+0xd34d34d3+ +(t[6]>>>0<s[6]>>>0)|0,this._b=+(t[7]>>>0<s[7]>>>0);for(var r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,o=n>>>16,c=((i*i>>>17)+i*o>>>15)+o*o,u=((0xffff0000&n)*n|0)+((65535&n)*n|0);a[r]=c^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=n._createHelper(c)}(),e.RabbitLegacy})},3537:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(2201),r(2989),r(953),r(4768))})(0,function(e){return function(){var t=e,r=t.lib,n=r.StreamCipher,i=t.algo,o=[],s=[],a=[],c=i.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=(e[r]<<8|e[r]>>>24)&0xff00ff|(e[r]<<24|e[r]>>>8)&0xff00ff00;var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,0xffff0000&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,0xffff0000&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,0xffff0000&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,0xffff0000&e[3]|65535&e[0]];this._b=0;for(var r=0;r<4;r++)u.call(this);for(var r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,s=o[0],a=o[1],c=(s<<8|s>>>24)&0xff00ff|(s<<24|s>>>8)&0xff00ff00,l=(a<<8|a>>>24)&0xff00ff|(a<<24|a>>>8)&0xff00ff00,h=c>>>16|0xffff0000&l,d=l<<16|65535&c;i[0]^=c,i[1]^=h,i[2]^=l,i[3]^=d,i[4]^=c,i[5]^=h,i[6]^=l,i[7]^=d;for(var r=0;r<4;r++)u.call(this)}},_doProcessBlock:function(e,t){var r=this._X;u.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=(o[n]<<8|o[n]>>>24)&0xff00ff|(o[n]<<24|o[n]>>>8)&0xff00ff00,e[t+n]^=o[n]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,r=0;r<8;r++)s[r]=t[r];t[0]=t[0]+0x4d34d34d+this._b|0,t[1]=t[1]+0xd34d34d3+ +(t[0]>>>0<s[0]>>>0)|0,t[2]=t[2]+0x34d34d34+ +(t[1]>>>0<s[1]>>>0)|0,t[3]=t[3]+0x4d34d34d+ +(t[2]>>>0<s[2]>>>0)|0,t[4]=t[4]+0xd34d34d3+ +(t[3]>>>0<s[3]>>>0)|0,t[5]=t[5]+0x34d34d34+ +(t[4]>>>0<s[4]>>>0)|0,t[6]=t[6]+0x4d34d34d+ +(t[5]>>>0<s[5]>>>0)|0,t[7]=t[7]+0xd34d34d3+ +(t[6]>>>0<s[6]>>>0)|0,this._b=+(t[7]>>>0<s[7]>>>0);for(var r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,o=n>>>16,c=((i*i>>>17)+i*o>>>15)+o*o,u=((0xffff0000&n)*n|0)+((65535&n)*n|0);a[r]=c^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=n._createHelper(c)}(),e.Rabbit})},3556:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(2201),r(2989),r(953),r(4768))})(0,function(e){return function(){var t=e,r=t.lib,n=r.StreamCipher,i=t.algo,o=i.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;for(var i=0,o=0;i<256;i++){var s=i%r,a=t[s>>>2]>>>24-s%4*8&255;o=(o+n[i]+a)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=s.call(this)},keySize:8,ivSize:0});function s(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}t.RC4=n._createHelper(o);var a=i.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)s.call(this)}});t.RC4Drop=n._createHelper(a)}(),e.RC4})},6261:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=i.create([0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e]),d=i.create([0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0]),f=s.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=(i<<8|i>>>24)&0xff00ff|(i<<24|i>>>8)&0xff00ff00}var o=this._hash.words,s=h.words,f=d.words,w=a.words,x=c.words,_=u.words,k=l.words,S,C,E,O,I,T,A,M,R,P,L;T=S=o[0],A=C=o[1],M=E=o[2],R=O=o[3],P=I=o[4];for(var r=0;r<80;r+=1)L=S+e[t+w[r]]|0,r<16?L+=p(C,E,O)+s[0]:r<32?L+=g(C,E,O)+s[1]:r<48?L+=m(C,E,O)+s[2]:r<64?L+=v(C,E,O)+s[3]:L+=y(C,E,O)+s[4],L|=0,L=(L=b(L,_[r]))+I|0,S=I,I=O,O=b(E,10),E=C,C=L,L=T+e[t+x[r]]|0,r<16?L+=y(A,M,R)+f[0]:r<32?L+=v(A,M,R)+f[1]:r<48?L+=m(A,M,R)+f[2]:r<64?L+=g(A,M,R)+f[3]:L+=p(A,M,R)+f[4],L|=0,L=(L=b(L,k[r]))+P|0,T=P,P=R,R=b(M,10),M=A,A=L;L=o[1]+E+R|0,o[1]=o[2]+O+P|0,o[2]=o[3]+I+T|0,o[3]=o[4]+S+A|0,o[4]=o[0]+C+M|0,o[0]=L},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[(n+64>>>9<<4)+14]=(r<<8|r>>>24)&0xff00ff|(r<<24|r>>>8)&0xff00ff00,e.sigBytes=(t.length+1)*4,this._process();for(var i=this._hash,o=i.words,s=0;s<5;s++){var a=o[s];o[s]=(a<<8|a>>>24)&0xff00ff|(a<<24|a>>>8)&0xff00ff00}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function g(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function v(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function b(e,t){return e<<t|e>>>32-t}r.RIPEMD160=o._createHelper(f),r.HmacRIPEMD160=o._createHmacHelper(f)}(Math),e.RIPEMD160})},648:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.algo,s=[],a=o.SHA1=i.extend({_doReset:function(){this._hash=new n.init([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],c=r[4],u=0;u<80;u++){if(u<16)s[u]=0|e[t+u];else{var l=s[u-3]^s[u-8]^s[u-14]^s[u-16];s[u]=l<<1|l>>>31}var h=(n<<5|n>>>27)+c+s[u];u<20?h+=(i&o|~i&a)+0x5a827999:u<40?h+=(i^o^a)+0x6ed9eba1:u<60?h+=(i&o|i&a|o&a)-0x70e44324:h+=(i^o^a)-0x359d3e2a,c=a,a=o,o=i<<30|i>>>2,i=n,n=h}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[(n+64>>>9<<4)+14]=Math.floor(r/0x100000000),t[(n+64>>>9<<4)+15]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(a),t.HmacSHA1=i._createHmacHelper(a)}(),e.SHA1})},8623:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(2110))})(0,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=t.algo,o=i.SHA256,s=i.SHA224=o.extend({_doReset:function(){this._hash=new n.init([0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=o._createHelper(s),t.HmacSHA224=o._createHmacHelper(s)}(),e.SHA224})},2110:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=[],c=[];(function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(e){return(e-(0|e))*0x100000000|0}var n=2,i=0;while(i<64)e(n)&&(i<8&&(a[i]=r(t.pow(n,.5))),c[i]=r(t.pow(n,1/3)),i++),n++})();var u=[],l=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],a=r[4],l=r[5],h=r[6],d=r[7],f=0;f<64;f++){if(f<16)u[f]=0|e[t+f];else{var p=u[f-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=u[f-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[f]=g+u[f-7]+v+u[f-16]}var y=a&l^~a&h,b=n&i^n&o^i&o,w=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),x=(a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25),_=d+x+y+c[f]+u[f],k=w+b;d=h,h=l,l=a,a=s+_|0,s=o,o=i,i=n,n=_+k|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+l|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[(i+64>>>9<<4)+14]=t.floor(n/0x100000000),r[(i+64>>>9<<4)+15]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=o._createHelper(l),r.HmacSHA256=o._createHmacHelper(l)}(Math),e.SHA256})},6882:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(5703))})(0,function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.x64,a=s.Word,c=r.algo,u=[],l=[],h=[];(function(){for(var e=1,t=0,r=0;r<24;r++){u[e+5*t]=(r+1)*(r+2)/2%64;var n=t%5,i=(2*e+3*t)%5;e=n,t=i}for(var e=0;e<5;e++)for(var t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,s=0;s<24;s++){for(var c=0,d=0,f=0;f<7;f++){if(1&o){var p=(1<<f)-1;p<32?d^=1<<p:c^=1<<p-32}128&o?o=o<<1^113:o<<=1}h[s]=a.create(c,d)}})();var d=[];(function(){for(var e=0;e<25;e++)d[e]=a.create()})();var f=c.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=e[t+2*i],s=e[t+2*i+1];o=(o<<8|o>>>24)&0xff00ff|(o<<24|o>>>8)&0xff00ff00,s=(s<<8|s>>>24)&0xff00ff|(s<<24|s>>>8)&0xff00ff00;var a=r[i];a.high^=s,a.low^=o}for(var c=0;c<24;c++){for(var f=0;f<5;f++){for(var p=0,g=0,m=0;m<5;m++){var a=r[f+5*m];p^=a.high,g^=a.low}var v=d[f];v.high=p,v.low=g}for(var f=0;f<5;f++)for(var y=d[(f+4)%5],b=d[(f+1)%5],w=b.high,x=b.low,p=y.high^(w<<1|x>>>31),g=y.low^(x<<1|w>>>31),m=0;m<5;m++){var a=r[f+5*m];a.high^=p,a.low^=g}for(var _=1;_<25;_++){var p,g,a=r[_],k=a.high,S=a.low,C=u[_];C<32?(p=k<<C|S>>>32-C,g=S<<C|k>>>32-C):(p=S<<C-32|k>>>64-C,g=k<<C-32|S>>>64-C);var E=d[l[_]];E.high=p,E.low=g}var O=d[0],I=r[0];O.high=I.high,O.low=I.low;for(var f=0;f<5;f++)for(var m=0;m<5;m++){var _=f+5*m,a=r[_],T=d[_],A=d[(f+1)%5+5*m],M=d[(f+2)%5+5*m];a.high=T.high^~A.high&M.high,a.low=T.low^~A.low&M.low}var a=r[0],R=h[c];a.high^=R.high,a.low^=R.low}},_doFinalize:function(){var e=this._data,r=e.words;this._nDataBytes;var n=8*e.sigBytes,o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(t.ceil((n+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*r.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,c=a/8,u=[],l=0;l<c;l++){var h=s[l],d=h.high,f=h.low;d=(d<<8|d>>>24)&0xff00ff|(d<<24|d>>>8)&0xff00ff00,f=(f<<8|f>>>24)&0xff00ff|(f<<24|f>>>8)&0xff00ff00,u.push(f),u.push(d)}return new i.init(u,a)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});r.SHA3=o._createHelper(f),r.HmacSHA3=o._createHmacHelper(f)}(Math),e.SHA3})},2078:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(5703),r(1759))})(0,function(e){return function(){var t=e,r=t.x64,n=r.Word,i=r.WordArray,o=t.algo,s=o.SHA512,a=o.SHA384=s.extend({_doReset:function(){this._hash=new i.init([new n.init(0xcbbb9d5d,0xc1059ed8),new n.init(0x629a292a,0x367cd507),new n.init(0x9159015a,0x3070dd17),new n.init(0x152fecd8,0xf70e5939),new n.init(0x67332667,0xffc00b31),new n.init(0x8eb44a87,0x68581511),new n.init(0xdb0c2e0d,0x64f98fa7),new n.init(0x47b5481d,0xbefa4fa4)])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=s._createHelper(a),t.HmacSHA384=s._createHmacHelper(a)}(),e.SHA384})},1759:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(5703))})(0,function(e){return function(){var t=e,r=t.lib,n=r.Hasher,i=t.x64,o=i.Word,s=i.WordArray,a=t.algo;function c(){return o.create.apply(o,arguments)}var u=[c(0x428a2f98,0xd728ae22),c(0x71374491,0x23ef65cd),c(0xb5c0fbcf,0xec4d3b2f),c(0xe9b5dba5,0x8189dbbc),c(0x3956c25b,0xf348b538),c(0x59f111f1,0xb605d019),c(0x923f82a4,0xaf194f9b),c(0xab1c5ed5,0xda6d8118),c(0xd807aa98,0xa3030242),c(0x12835b01,0x45706fbe),c(0x243185be,0x4ee4b28c),c(0x550c7dc3,0xd5ffb4e2),c(0x72be5d74,0xf27b896f),c(0x80deb1fe,0x3b1696b1),c(0x9bdc06a7,0x25c71235),c(0xc19bf174,0xcf692694),c(0xe49b69c1,0x9ef14ad2),c(0xefbe4786,0x384f25e3),c(0xfc19dc6,0x8b8cd5b5),c(0x240ca1cc,0x77ac9c65),c(0x2de92c6f,0x592b0275),c(0x4a7484aa,0x6ea6e483),c(0x5cb0a9dc,0xbd41fbd4),c(0x76f988da,0x831153b5),c(0x983e5152,0xee66dfab),c(0xa831c66d,0x2db43210),c(0xb00327c8,0x98fb213f),c(0xbf597fc7,0xbeef0ee4),c(0xc6e00bf3,0x3da88fc2),c(0xd5a79147,0x930aa725),c(0x6ca6351,0xe003826f),c(0x14292967,0xa0e6e70),c(0x27b70a85,0x46d22ffc),c(0x2e1b2138,0x5c26c926),c(0x4d2c6dfc,0x5ac42aed),c(0x53380d13,0x9d95b3df),c(0x650a7354,0x8baf63de),c(0x766a0abb,0x3c77b2a8),c(0x81c2c92e,0x47edaee6),c(0x92722c85,0x1482353b),c(0xa2bfe8a1,0x4cf10364),c(0xa81a664b,0xbc423001),c(0xc24b8b70,0xd0f89791),c(0xc76c51a3,0x654be30),c(0xd192e819,0xd6ef5218),c(0xd6990624,0x5565a910),c(0xf40e3585,0x5771202a),c(0x106aa070,0x32bbd1b8),c(0x19a4c116,0xb8d2d0c8),c(0x1e376c08,0x5141ab53),c(0x2748774c,0xdf8eeb99),c(0x34b0bcb5,0xe19b48a8),c(0x391c0cb3,0xc5c95a63),c(0x4ed8aa4a,0xe3418acb),c(0x5b9cca4f,0x7763e373),c(0x682e6ff3,0xd6b2b8a3),c(0x748f82ee,0x5defb2fc),c(0x78a5636f,0x43172f60),c(0x84c87814,0xa1f0ab72),c(0x8cc70208,0x1a6439ec),c(0x90befffa,0x23631e28),c(0xa4506ceb,0xde82bde9),c(0xbef9a3f7,0xb2c67915),c(0xc67178f2,0xe372532b),c(0xca273ece,0xea26619c),c(0xd186b8c7,0x21c0c207),c(0xeada7dd6,0xcde0eb1e),c(0xf57d4f7f,0xee6ed178),c(0x6f067aa,0x72176fba),c(0xa637dc5,0xa2c898a6),c(0x113f9804,0xbef90dae),c(0x1b710b35,0x131c471b),c(0x28db77f5,0x23047d84),c(0x32caab7b,0x40c72493),c(0x3c9ebe0a,0x15c9bebc),c(0x431d67c4,0x9c100d4c),c(0x4cc5d4be,0xcb3e42b6),c(0x597f299c,0xfc657e2a),c(0x5fcb6fab,0x3ad6faec),c(0x6c44198c,0x4a475817)],l=[];(function(){for(var e=0;e<80;e++)l[e]=c()})();var h=a.SHA512=n.extend({_doReset:function(){this._hash=new s.init([new o.init(0x6a09e667,0xf3bcc908),new o.init(0xbb67ae85,0x84caa73b),new o.init(0x3c6ef372,0xfe94f82b),new o.init(0xa54ff53a,0x5f1d36f1),new o.init(0x510e527f,0xade682d1),new o.init(0x9b05688c,0x2b3e6c1f),new o.init(0x1f83d9ab,0xfb41bd6b),new o.init(0x5be0cd19,0x137e2179)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],a=r[4],c=r[5],h=r[6],d=r[7],f=n.high,p=n.low,g=i.high,m=i.low,v=o.high,y=o.low,b=s.high,w=s.low,x=a.high,_=a.low,k=c.high,S=c.low,C=h.high,E=h.low,O=d.high,I=d.low,T=f,A=p,M=g,R=m,P=v,L=y,D=b,N=w,B=x,F=_,j=k,U=S,z=C,q=E,H=O,$=I,W=0;W<80;W++){var V,Y,X=l[W];if(W<16)Y=X.high=0|e[t+2*W],V=X.low=0|e[t+2*W+1];else{var G=l[W-15],J=G.high,K=G.low,Z=(J>>>1|K<<31)^(J>>>8|K<<24)^J>>>7,Q=(K>>>1|J<<31)^(K>>>8|J<<24)^(K>>>7|J<<25),ee=l[W-2],et=ee.high,er=ee.low,en=(et>>>19|er<<13)^(et<<3|er>>>29)^et>>>6,ei=(er>>>19|et<<13)^(er<<3|et>>>29)^(er>>>6|et<<26),eo=l[W-7],es=eo.high,ea=eo.low,ec=l[W-16],eu=ec.high,el=ec.low;Y=Z+es+ +((V=Q+ea)>>>0<Q>>>0),V+=ei,Y=Y+en+ +(V>>>0<ei>>>0),V+=el,X.high=Y=Y+eu+ +(V>>>0<el>>>0),X.low=V}var eh=B&j^~B&z,ed=F&U^~F&q,ef=T&M^T&P^M&P,ep=A&R^A&L^R&L,eg=(T>>>28|A<<4)^(T<<30|A>>>2)^(T<<25|A>>>7),em=(A>>>28|T<<4)^(A<<30|T>>>2)^(A<<25|T>>>7),ev=(B>>>14|F<<18)^(B>>>18|F<<14)^(B<<23|F>>>9),ey=(F>>>14|B<<18)^(F>>>18|B<<14)^(F<<23|B>>>9),eb=u[W],ew=eb.high,ex=eb.low,e_=$+ey,ek=H+ev+ +(e_>>>0<$>>>0),e_=e_+ed,ek=ek+eh+ +(e_>>>0<ed>>>0),e_=e_+ex,ek=ek+ew+ +(e_>>>0<ex>>>0),e_=e_+V,ek=ek+Y+ +(e_>>>0<V>>>0),eS=em+ep,eC=eg+ef+ +(eS>>>0<em>>>0);H=z,$=q,z=j,q=U,j=B,U=F,B=D+ek+ +((F=N+e_|0)>>>0<N>>>0)|0,D=P,N=L,P=M,L=R,M=T,R=A,T=ek+eC+ +((A=e_+eS|0)>>>0<e_>>>0)|0}p=n.low=p+A,n.high=f+T+ +(p>>>0<A>>>0),m=i.low=m+R,i.high=g+M+ +(m>>>0<R>>>0),y=o.low=y+L,o.high=v+P+ +(y>>>0<L>>>0),w=s.low=w+N,s.high=b+D+ +(w>>>0<N>>>0),_=a.low=_+F,a.high=x+B+ +(_>>>0<F>>>0),S=c.low=S+U,c.high=k+j+ +(S>>>0<U>>>0),E=h.low=E+q,h.high=C+z+ +(E>>>0<q>>>0),I=d.low=I+$,d.high=O+H+ +(I>>>0<$>>>0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[(n+128>>>10<<5)+30]=Math.floor(r/0x100000000),t[(n+128>>>10<<5)+31]=r,e.sigBytes=4*t.length,this._process();var i=this._hash.toX32();return i},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(h),t.HmacSHA512=n._createHmacHelper(h)}(),e.SHA512})},3865:function(e,t,r){(function(t,n,i){e.exports=n(r(518),r(2201),r(2989),r(953),r(4768))})(0,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=r.BlockCipher,o=t.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,0x10000000:32768,0x20000000:8421378,0x30000000:2,0x40000000:512,0x50000000:8421890,0x60000000:8389122,0x70000000:8388608,0x80000000:514,0x90000000:8389120,0xa0000000:33280,0xb0000000:8421376,0xc0000000:32770,0xd0000000:8388610,0xe0000000:0,0xf0000000:33282,0x8000000:0,0x18000000:8421890,0x28000000:33282,0x38000000:32768,0x48000000:8421888,0x58000000:512,0x68000000:8421378,0x78000000:2,0x88000000:8389120,0x98000000:33280,0xa8000000:8421376,0xb8000000:8389122,0xc8000000:8388610,0xd8000000:32770,0xe8000000:514,0xf8000000:8388608,1:32768,0x10000001:2,0x20000001:8421888,0x30000001:8388608,0x40000001:8421378,0x50000001:33280,0x60000001:512,0x70000001:8389122,0x80000001:8421890,0x90000001:8421376,0xa0000001:8388610,0xb0000001:33282,0xc0000001:514,0xd0000001:8389120,0xe0000001:32770,0xf0000001:0,0x8000001:8421890,0x18000001:8421376,0x28000001:8388608,0x38000001:512,0x48000001:32768,0x58000001:8388610,0x68000001:2,0x78000001:33282,0x88000001:32770,0x98000001:8389122,0xa8000001:514,0xb8000001:8421888,0xc8000001:8389120,0xd8000001:0,0xe8000001:33280,0xf8000001:8421378},{0:0x40084010,0x1000000:16384,0x2000000:524288,0x3000000:0x40080010,0x4000000:0x40000010,0x5000000:0x40084000,0x6000000:0x40004000,0x7000000:16,0x8000000:540672,0x9000000:0x40004010,0xa000000:0x40000000,0xb000000:540688,0xc000000:524304,0xd000000:0,0xe000000:16400,0xf000000:0x40080000,8388608:0x40004000,0x1800000:540688,0x2800000:16,0x3800000:0x40004010,0x4800000:0x40084010,0x5800000:0x40000000,0x6800000:524288,0x7800000:0x40080010,0x8800000:524304,0x9800000:0,0xa800000:16384,0xb800000:0x40080000,0xc800000:0x40000010,0xd800000:540672,0xe800000:0x40084000,0xf800000:16400,0x10000000:0,0x11000000:0x40080010,0x12000000:0x40004010,0x13000000:0x40084000,0x14000000:0x40080000,0x15000000:16,0x16000000:540688,0x17000000:16384,0x18000000:16400,0x19000000:524288,0x1a000000:524304,0x1b000000:0x40000010,0x1c000000:540672,0x1d000000:0x40004000,0x1e000000:0x40000000,0x1f000000:0x40084010,0x10800000:540688,0x11800000:524288,0x12800000:0x40080000,0x13800000:16384,0x14800000:0x40004000,0x15800000:0x40084010,0x16800000:16,0x17800000:0x40000000,0x18800000:0x40084000,0x19800000:0x40000010,0x1a800000:0x40004010,0x1b800000:524304,0x1c800000:0,0x1d800000:16400,0x1e800000:0x40080010,0x1f800000:540672},{0:260,1048576:0,2097152:0x4000100,3145728:65796,4194304:65540,5242880:0x4000004,6291456:0x4010104,7340032:0x4010000,8388608:0x4000000,9437184:0x4010100,0xa00000:65792,0xb00000:0x4010004,0xc00000:0x4000104,0xd00000:65536,0xe00000:4,0xf00000:256,524288:0x4010100,1572864:0x4010004,2621440:0,3670016:0x4000100,4718592:0x4000004,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,0xa80000:0x4010000,0xb80000:65796,0xc80000:65792,0xd80000:0x4000104,0xe80000:0x4010104,0xf80000:0x4000000,0x1000000:0x4010100,0x1100000:65540,0x1200000:65536,0x1300000:0x4000100,0x1400000:256,0x1500000:0x4010104,0x1600000:0x4000004,0x1700000:0,0x1800000:0x4000104,0x1900000:0x4000000,0x1a00000:4,0x1b00000:65792,0x1c00000:0x4010000,0x1d00000:260,0x1e00000:65796,0x1f00000:0x4010004,0x1080000:0x4000000,0x1180000:260,0x1280000:0x4010100,0x1380000:0,0x1480000:65540,0x1580000:0x4000100,0x1680000:256,0x1780000:0x4010004,0x1880000:65536,0x1980000:0x4010104,0x1a80000:65796,0x1b80000:0x4000004,0x1c80000:0x4000104,0x1d80000:0x4010000,0x1e80000:4,0x1f80000:65792},{0:0x80401000,65536:0x80001040,131072:4198464,196608:0x80400000,262144:0,327680:4198400,393216:0x80000040,458752:4194368,524288:0x80000000,589824:4194304,655360:64,720896:0x80001000,786432:0x80400040,851968:4160,917504:4096,983040:0x80401040,32768:0x80001040,98304:64,163840:0x80400040,229376:0x80001000,294912:4198400,360448:0x80401040,425984:0,491520:0x80400000,557056:4096,622592:0x80401000,688128:4194304,753664:4160,819200:0x80000000,884736:4194368,950272:4198464,1015808:0x80000040,1048576:4194368,1114112:4198400,1179648:0x80000040,1245184:0,1310720:4160,1376256:0x80400040,1441792:0x80401000,1507328:0x80001040,1572864:0x80401040,1638400:0x80000000,1703936:0x80400000,1769472:4198464,1835008:0x80001000,1900544:4194304,1966080:64,2031616:4096,1081344:0x80400000,1146880:0x80401040,1212416:0,1277952:4198400,1343488:4194368,1409024:0x80000000,1474560:0x80001040,1540096:64,1605632:0x80000040,1671168:4096,1736704:0x80001000,1802240:0x80400040,1867776:4160,1933312:0x80401000,1998848:4194304,2064384:4198464},{0:128,4096:0x1040000,8192:262144,12288:0x20000000,16384:0x20040080,20480:0x1000080,24576:0x21000080,28672:262272,32768:0x1000000,36864:0x20040000,40960:0x20000080,45056:0x21040080,49152:0x21040000,53248:0,57344:0x1040080,61440:0x21000000,2048:0x1040080,6144:0x21000080,10240:128,14336:0x1040000,18432:262144,22528:0x20040080,26624:0x21040000,30720:0x20000000,34816:0x20040000,38912:0,43008:0x21040080,47104:0x1000080,51200:0x20000080,55296:0x21000000,59392:0x1000000,63488:262272,65536:262144,69632:128,73728:0x20000000,77824:0x21000080,81920:0x1000080,86016:0x21040000,90112:0x20040080,94208:0x1000000,98304:0x21040080,102400:0x21000000,106496:0x1040000,110592:0x20040000,114688:262272,118784:0x20000080,122880:0,126976:0x1040080,67584:0x21000080,71680:0x1000000,75776:0x1040000,79872:0x20040080,83968:0x20000000,88064:0x1040080,92160:128,96256:0x21040000,100352:262272,104448:0x21040080,108544:0,112640:0x21000000,116736:0x1000080,120832:262144,124928:0x20040000,129024:0x20000080},{0:0x10000008,256:8192,512:0x10200000,768:0x10202008,1024:0x10002000,1280:2097152,1536:2097160,1792:0x10000000,2048:0,2304:0x10002008,2560:2105344,2816:8,3072:0x10200008,3328:2105352,3584:8200,3840:0x10202000,128:0x10200000,384:0x10202008,640:8,896:2097152,1152:2105352,1408:0x10000008,1664:0x10002000,1920:8200,2176:2097160,2432:8192,2688:0x10002008,2944:0x10200008,3200:0,3456:0x10202000,3712:2105344,3968:0x10000000,4096:0x10002000,4352:0x10200008,4608:0x10202008,4864:8200,5120:2097152,5376:0x10000000,5632:0x10000008,5888:2105344,6144:2105352,6400:0,6656:8,6912:0x10200000,7168:8192,7424:0x10002008,7680:0x10202000,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:0x10000008,5248:0x10002000,5504:8200,5760:0x10202008,6016:0x10200000,6272:0x10202000,6528:0x10200008,6784:8192,7040:2105352,7296:2097160,7552:0,7808:0x10000000,8064:0x10002008},{0:1048576,16:0x2000401,32:1024,48:1049601,64:0x2100401,80:0,96:1,112:0x2100001,128:0x2000400,144:1048577,160:0x2000001,176:0x2100400,192:0x2100000,208:1025,224:1049600,240:0x2000000,8:0x2100001,24:0,40:0x2000401,56:0x2100400,72:1048576,88:0x2000001,104:0x2000000,120:1025,136:1049601,152:0x2000400,168:0x2100000,184:1048577,200:1024,216:0x2100401,232:1,248:1049600,256:0x2000000,272:1048576,288:0x2000401,304:0x2100001,320:1048577,336:0x2000400,352:0x2100400,368:1049601,384:1025,400:0x2100401,416:1049600,432:1,448:0,464:0x2100000,480:0x2000001,496:1024,264:1049600,280:0x2000401,296:0x2100001,312:1,328:0x2000000,344:1048576,360:1025,376:0x2100400,392:0x2000001,408:0x2100000,424:0,440:0x2100401,456:1049601,472:1024,488:0x2000400,504:1048577},{0:0x8000820,1:131072,2:0x8000000,3:32,4:131104,5:0x8020820,6:0x8020800,7:2048,8:0x8020000,9:0x8000800,10:133120,11:0x8020020,12:2080,13:0,14:0x8000020,15:133152,0x80000000:2048,0x80000001:0x8020820,0x80000002:0x8000820,0x80000003:0x8000000,0x80000004:0x8020000,0x80000005:133120,0x80000006:133152,0x80000007:32,0x80000008:0x8000020,0x80000009:2080,0x8000000a:131104,0x8000000b:0x8020800,0x8000000c:0,0x8000000d:0x8020020,0x8000000e:0x8000800,0x8000000f:131072,16:133152,17:0x8020800,18:32,19:2048,20:0x8000800,21:0x8000020,22:0x8020020,23:131072,24:0,25:131104,26:0x8020000,27:0x8000820,28:0x8020820,29:133120,30:2080,31:0x8000000,0x80000010:131072,0x80000011:2048,0x80000012:0x8020020,0x80000013:133152,0x80000014:32,0x80000015:0x8020000,0x80000016:0x8000000,0x80000017:0x8000820,0x80000018:0x8020820,0x80000019:0x8000020,0x8000001a:0x8000800,0x8000001b:0,0x8000001c:133120,0x8000001d:2080,0x8000001e:131104,0x8000001f:0x8020800}],l=[0xf8000001,0x1f800000,0x1f80000,2064384,129024,8064,504,0x8000001f],h=o.DES=i.extend({_doReset:function(){for(var e=this._key,t=e.words,r=[],n=0;n<56;n++){var i=s[n]-1;r[n]=t[i>>>5]>>>31-i%32&1}for(var o=this._subKeys=[],u=0;u<16;u++){for(var l=o[u]=[],h=c[u],n=0;n<24;n++)l[n/6|0]|=r[(a[n]-1+h)%28]<<31-n%6,l[4+(n/6|0)]|=r[28+(a[n+24]-1+h)%28]<<31-n%6;l[0]=l[0]<<1|l[0]>>>31;for(var n=1;n<7;n++)l[n]=l[n]>>>(n-1)*4+3;l[7]=l[7]<<5|l[7]>>>27}for(var d=this._invSubKeys=[],n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,0xf0f0f0f),d.call(this,16,65535),f.call(this,2,0x33333333),f.call(this,8,0xff00ff),d.call(this,1,0x55555555);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,s=this._rBlock,a=0,c=0;c<8;c++)a|=u[c][((s^i[c])&l[c])>>>0];this._lBlock=s,this._rBlock=o^a}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,0x55555555),f.call(this,8,0xff00ff),f.call(this,2,0x33333333),d.call(this,16,65535),d.call(this,4,0xf0f0f0f),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function f(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}t.DES=i._createHelper(h);var p=o.TripleDES=i.extend({_doReset:function(){var e=this._key,t=e.words;if(2!==t.length&&4!==t.length&&t.length<6)throw Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var r=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),o=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=h.createEncryptor(n.create(r)),this._des2=h.createEncryptor(n.create(i)),this._des3=h.createEncryptor(n.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),e.TripleDES})},5703:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(t){var r=e,n=r.lib,i=n.Base,o=n.WordArray,s=r.x64={};s.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=i.extend({init:function(e,r){e=this.words=e||[],t!=r?this.sigBytes=r:this.sigBytes=8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var i=e[n];r.push(i.high),r.push(i.low)}return o.create(r,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}})}(),e})},2242:function(e){(function(t,r){e.exports=r()})(self,()=>(()=>{var e={594(e,t){"use strict";var r=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var n=256,i=function(){function e(e){void 0===e&&(e="="),this._paddingCharacter=e}return e.prototype.encodedLength=function(e){return this._paddingCharacter?(e+2)/3*4|0:(8*e+5)/6|0},e.prototype.encode=function(e){for(var t="",r=0;r<e.length-2;r+=3){var n=e[r]<<16|e[r+1]<<8|e[r+2];t+=this._encodeByte(n>>>18&63),t+=this._encodeByte(n>>>12&63),t+=this._encodeByte(n>>>6&63),t+=this._encodeByte(n>>>0&63)}var i=e.length-r;if(i>0){var n=e[r]<<16|(2===i?e[r+1]<<8:0);t+=this._encodeByte(n>>>18&63),t+=this._encodeByte(n>>>12&63),2===i?t+=this._encodeByte(n>>>6&63):t+=this._paddingCharacter||"",t+=this._paddingCharacter||""}return t},e.prototype.maxDecodedLength=function(e){return this._paddingCharacter?e/4*3|0:(6*e+7)/8|0},e.prototype.decodedLength=function(e){return this.maxDecodedLength(e.length-this._getPaddingLength(e))},e.prototype.decode=function(e){if(0===e.length)return new Uint8Array(0);for(var t=this._getPaddingLength(e),r=e.length-t,i=new Uint8Array(this.maxDecodedLength(r)),o=0,s=0,a=0,c=0,u=0,l=0,h=0;s<r-4;s+=4)c=this._decodeChar(e.charCodeAt(s+0)),u=this._decodeChar(e.charCodeAt(s+1)),l=this._decodeChar(e.charCodeAt(s+2)),h=this._decodeChar(e.charCodeAt(s+3)),i[o++]=c<<2|u>>>4,i[o++]=u<<4|l>>>2,i[o++]=l<<6|h,a|=c&n,a|=u&n,a|=l&n,a|=h&n;if(s<r-1&&(c=this._decodeChar(e.charCodeAt(s)),u=this._decodeChar(e.charCodeAt(s+1)),i[o++]=c<<2|u>>>4,a|=c&n,a|=u&n),s<r-2&&(l=this._decodeChar(e.charCodeAt(s+2)),i[o++]=u<<4|l>>>2,a|=l&n),s<r-3&&(h=this._decodeChar(e.charCodeAt(s+3)),i[o++]=l<<6|h,a|=h&n),0!==a)throw Error("Base64Coder: incorrect characters for decoding");return i},e.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-15,String.fromCharCode(t+=62-e>>>8&3)},e.prototype._decodeChar=function(e){var t=n;return t+=(42-e&e-44)>>>8&-n+e-43+62,t+=(46-e&e-48)>>>8&-n+e-47+63,t+=(47-e&e-58)>>>8&-n+e-48+52,t+=(64-e&e-91)>>>8&-n+e-65+0,t+=(96-e&e-123)>>>8&-n+e-97+26},e.prototype._getPaddingLength=function(e){var t=0;if(this._paddingCharacter){for(var r=e.length-1;r>=0;r--){if(e[r]!==this._paddingCharacter)break;t++}if(e.length<4||t>2)throw Error("Base64Coder: incorrect padding")}return t},e}();t.Coder=i;var o=new i;t.encode=function(e){return o.encode(e)},t.decode=function(e){return o.decode(e)};var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-13,String.fromCharCode(t+=62-e>>>8&49)},t.prototype._decodeChar=function(e){var t=n;return t+=(44-e&e-46)>>>8&-n+e-45+62,t+=(94-e&e-96)>>>8&-n+e-95+63,t+=(47-e&e-58)>>>8&-n+e-48+52,t+=(64-e&e-91)>>>8&-n+e-65+0,t+=(96-e&e-123)>>>8&-n+e-97+26},t}(i);t.URLSafeCoder=s;var a=new s;t.encodeURLSafe=function(e){return a.encode(e)},t.decodeURLSafe=function(e){return a.decode(e)},t.encodedLength=function(e){return o.encodedLength(e)},t.maxDecodedLength=function(e){return o.maxDecodedLength(e)},t.decodedLength=function(e){return o.decodedLength(e)}},978(e,t){"use strict";var r="utf8: invalid source encoding";t.D4=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if(128&i){var o=void 0;if(i<224){if(n>=e.length)throw Error(r);var s=e[++n];if((192&s)!==128)throw Error(r);i=(31&i)<<6|63&s,o=128}else if(i<240){if(n>=e.length-1)throw Error(r);var s=e[++n],a=e[++n];if((192&s)!==128||(192&a)!==128)throw Error(r);i=(15&i)<<12|(63&s)<<6|63&a,o=2048}else if(i<248){if(n>=e.length-2)throw Error(r);var s=e[++n],a=e[++n],c=e[++n];if((192&s)!==128||(192&a)!==128||(192&c)!==128)throw Error(r);i=(15&i)<<18|(63&s)<<12|(63&a)<<6|63&c,o=65536}else throw Error(r);if(i<o||i>=55296&&i<=57343)throw Error(r);if(i>=65536){if(i>1114111)throw Error(r);i-=65536,t.push(String.fromCharCode(55296|i>>10)),i=56320|1023&i}}t.push(String.fromCharCode(i))}return t.join("")}},721(e,t,r){e.exports=r(207)["default"]},207(e,t,r){"use strict";r.d(t,{default:()=>rc});class n{constructor(e,t){this.lastId=0,this.prefix=e,this.name=t}create(e){this.lastId++;var t=this.lastId,r=this.prefix+t,n=this.name+"["+t+"]",i=!1,o=function(){i||(e.apply(null,arguments),i=!0)};return this[t]=o,{number:t,id:r,name:n,callback:o}}remove(e){delete this[e.number]}}var i=new n("_pusher_script_","Pusher.ScriptReceivers"),o={VERSION:"8.5.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""};let s=o;class a{constructor(e){this.options=e,this.receivers=e.receivers||i,this.loading={}}load(e,t,r){var n=this;if(n.loading[e]&&n.loading[e].length>0)n.loading[e].push(r);else{n.loading[e]=[r];var i=tU.createScriptRequest(n.getPath(e,t)),o=n.receivers.create(function(t){if(n.receivers.remove(o),n.loading[e]){var r=n.loading[e];delete n.loading[e];for(var s=function(e){e||i.cleanup()},a=0;a<r.length;a++)r[a](t,s)}});i.send(o)}}getRoot(e){var t=tU.getDocument().location.protocol;return(e&&e.useTLS||"https:"===t?this.options.cdn_https:this.options.cdn_http).replace(/\/*$/,"")+"/"+this.options.version}getPath(e,t){return this.getRoot(t)+"/"+e+this.options.suffix+".js"}}var c=new n("_pusher_dependencies","Pusher.DependenciesReceivers"),u=new a({cdn_http:s.cdn_http,cdn_https:s.cdn_https,version:s.VERSION,suffix:s.dependency_suffix,receivers:c});let l={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}},h=function(e){let t="See:",r=l.urls[e];if(!r)return"";let n;return(r.fullUrl?n=r.fullUrl:r.path&&(n=l.baseUrl+r.path),n)?`${t} ${n}`:""},d={buildLogSuffix:h};var f;(function(e){e["UserAuthentication"]="user-authentication",e["ChannelAuthorization"]="channel-authorization"})(f||(f={}));class p extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class g extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class m extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class v extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class y extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class b extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class w extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class x extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class _ extends Error{constructor(e,t){super(t),this.status=e,Object.setPrototypeOf(this,new.target.prototype)}}let k=function(e,t,r,n,i){let o=tU.createXHR();for(var s in o.open("POST",r.endpoint,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.headers)o.setRequestHeader(s,r.headers[s]);if(null!=r.headersProvider){let e=r.headersProvider();for(var s in e)o.setRequestHeader(s,e[s])}return o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status){let e,t=!1;try{e=JSON.parse(o.responseText),t=!0}catch(e){i(new _(200,`JSON returned from ${n.toString()} endpoint was invalid, yet status code was 200. Data was: ${o.responseText}`),null)}t&&i(null,e)}else{let e="";switch(n){case f.UserAuthentication:e=d.buildLogSuffix("authenticationEndpoint");break;case f.ChannelAuthorization:e=`Clients must be authorized to join private or presence channels. ${d.buildLogSuffix("authorizationEndpoint")}`;break}i(new _(o.status,`Unable to retrieve auth string from ${n.toString()} endpoint - received status: ${o.status} from ${r.endpoint}. ${e}`),null)}},o.send(t),o},S=k;function C(e){return L(R(e))}for(var E=String.fromCharCode,O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",I={},T=0,A=O.length;T<A;T++)I[O.charAt(T)]=T;var M=function(e){var t=e.charCodeAt(0);return t<128?e:t<2048?E(192|t>>>6)+E(128|63&t):E(224|t>>>12&15)+E(128|t>>>6&63)+E(128|63&t)},R=function(e){return e.replace(/[^\x00-\x7F]/g,M)},P=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),n=[O.charAt(r>>>18),O.charAt(r>>>12&63),t>=2?"=":O.charAt(r>>>6&63),t>=1?"=":O.charAt(63&r)];return n.join("")},L=window.btoa||function(e){return e.replace(/[\s\S]{1,3}/g,P)};class D{constructor(e,t,r,n){this.clear=t,this.timer=e(()=>{this.timer&&(this.timer=n(this.timer))},r)}isRunning(){return null!==this.timer}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}let N=D;function B(e){window.clearTimeout(e)}function F(e){window.clearInterval(e)}class j extends N{constructor(e,t){super(setTimeout,B,e,function(e){return t(),null})}}class U extends N{constructor(e,t){super(setInterval,F,e,function(e){return t(),e})}}var z={now(){return Date.now?Date.now():new Date().valueOf()},defer(e){return new j(0,e)},method(e){var t=Array.prototype.slice.call(arguments,1);return function(r){return r[e].apply(r,t.concat(arguments))}}};let q=z;function H(e,...t){for(var r=0;r<t.length;r++){var n=t[r];for(var i in n)n[i]&&n[i].constructor&&n[i].constructor===Object?e[i]=H(e[i]||{},n[i]):e[i]=n[i]}return e}function $(){for(var e=["Pusher"],t=0;t<arguments.length;t++)"string"==typeof arguments[t]?e.push(arguments[t]):e.push(es(arguments[t]));return e.join(" : ")}function W(e,t){var r=Array.prototype.indexOf;if(null===e)return -1;if(r&&e.indexOf===r)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return -1}function V(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t(e[r],r,e)}function Y(e){var t=[];return V(e,function(e,r){t.push(r)}),t}function X(e){var t=[];return V(e,function(e){t.push(e)}),t}function G(e,t,r){for(var n=0;n<e.length;n++)t.call(r||window,e[n],n,e)}function J(e,t){for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n,e,r));return r}function K(e,t){var r={};return V(e,function(e,n){r[n]=t(e)}),r}function Z(e,t){t=t||function(e){return!!e};for(var r=[],n=0;n<e.length;n++)t(e[n],n,e,r)&&r.push(e[n]);return r}function Q(e,t){var r={};return V(e,function(n,i){(t&&t(n,i,e,r)||n)&&(r[i]=n)}),r}function ee(e){var t=[];return V(e,function(e,r){t.push([r,e])}),t}function et(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r,e))return!0;return!1}function er(e,t){for(var r=0;r<e.length;r++)if(!t(e[r],r,e))return!1;return!0}function en(e){return K(e,function(e){return"object"==typeof e&&(e=es(e)),encodeURIComponent(C(e.toString()))})}function ei(e){var t=Q(e,function(e){return void 0!==e}),r=J(ee(en(t)),q.method("join","=")).join("&");return r}function eo(e){var t=[],r=[];return function e(n,i){var o,s,a;switch(typeof n){case"object":if(!n)return null;for(o=0;o<t.length;o+=1)if(t[o]===n)return{$ref:r[o]};if(t.push(n),r.push(i),"[object Array]"===Object.prototype.toString.apply(n))for(o=0,a=[];o<n.length;o+=1)a[o]=e(n[o],i+"["+o+"]");else for(s in a={},n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=e(n[s],i+"["+JSON.stringify(s)+"]"));return a;case"number":case"string":case"boolean":return n}}(e,"$")}function es(e){try{return JSON.stringify(e)}catch(t){return JSON.stringify(eo(e))}}class ea{constructor(){this.globalLog=e=>{window.console&&window.console.log&&window.console.log(e)}}debug(...e){this.log(this.globalLog,e)}warn(...e){this.log(this.globalLogWarn,e)}error(...e){this.log(this.globalLogError,e)}globalLogWarn(e){window.console&&window.console.warn?window.console.warn(e):this.globalLog(e)}globalLogError(e){window.console&&window.console.error?window.console.error(e):this.globalLogWarn(e)}log(e){var t=$.apply(this,arguments);if(rc.log)rc.log(t);else if(rc.logToConsole){let r=e.bind(this);r(t)}}}let ec=new ea;var eu=function(e,t,r,n,i){(void 0!==r.headers||null!=r.headersProvider)&&ec.warn(`To send headers with the ${n.toString()} request, you must use AJAX, rather than JSONP.`);var o=e.nextAuthCallbackID.toString();e.nextAuthCallbackID++;var s=e.getDocument(),a=s.createElement("script");e.auth_callbacks[o]=function(e){i(null,e)};var c="Pusher.auth_callbacks['"+o+"']";a.src=r.endpoint+"?callback="+encodeURIComponent(c)+"&"+t;var u=s.getElementsByTagName("head")[0]||s.documentElement;u.insertBefore(a,u.firstChild)};let el=eu;class eh{constructor(e){this.src=e}send(e){var t=this,r="Error loading "+t.src;t.script=document.createElement("script"),t.script.id=e.id,t.script.src=t.src,t.script.type="text/javascript",t.script.charset="UTF-8",t.script.addEventListener?(t.script.onerror=function(){e.callback(r)},t.script.onload=function(){e.callback(null)}):t.script.onreadystatechange=function(){("loaded"===t.script.readyState||"complete"===t.script.readyState)&&e.callback(null)},void 0===t.script.async&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(t.errorScript=document.createElement("script"),t.errorScript.id=e.id+"_error",t.errorScript.text=e.name+"('"+r+"');",t.script.async=t.errorScript.async=!1):t.script.async=!0;var n=document.getElementsByTagName("head")[0];n.insertBefore(t.script,n.firstChild),t.errorScript&&n.insertBefore(t.errorScript,t.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class ed{constructor(e,t){this.url=e,this.data=t}send(e){if(!this.request){var t=ei(this.data),r=this.url+"/"+e.number+"?"+t;this.request=tU.createScriptRequest(r),this.request.send(e)}}cleanup(){this.request&&this.request.cleanup()}}var ef=function(e,t){return function(r,n){var o="http"+(t?"s":"")+"://",s=o+(e.host||e.options.host)+e.options.path,a=tU.createJSONPRequest(s,r),c=tU.ScriptReceivers.create(function(t,r){i.remove(c),a.cleanup(),r&&r.host&&(e.host=r.host),n&&n(t,r)});a.send(c)}},ep={name:"jsonp",getAgent:ef};let eg=ep;function em(e,t,r){var n=e+(t.useTLS?"s":""),i=t.useTLS?t.hostTLS:t.hostNonTLS;return n+"://"+i+r}function ev(e,t){var r="/app/"+e,n="?protocol="+s.PROTOCOL+"&client=js&version="+s.VERSION+(t?"&"+t:"");return r+n}var ey={getInitial:function(e,t){var r=(t.httpPath||"")+ev(e,"flash=false");return em("ws",t,r)}},eb={getInitial:function(e,t){var r=(t.httpPath||"/pusher")+ev(e);return em("http",t,r)}},ew={getInitial:function(e,t){return em("http",t,t.httpPath||"/pusher")},getPath:function(e,t){return ev(e)}};class ex{constructor(){this._callbacks={}}get(e){return this._callbacks[e_(e)]}add(e,t,r){var n=e_(e);this._callbacks[n]=this._callbacks[n]||[],this._callbacks[n].push({fn:t,context:r})}remove(e,t,r){if(!e&&!t&&!r){this._callbacks={};return}var n=e?[e_(e)]:Y(this._callbacks);t||r?this.removeCallback(n,t,r):this.removeAllCallbacks(n)}removeCallback(e,t,r){G(e,function(e){this._callbacks[e]=Z(this._callbacks[e]||[],function(e){return t&&t!==e.fn||r&&r!==e.context}),0===this._callbacks[e].length&&delete this._callbacks[e]},this)}removeAllCallbacks(e){G(e,function(e){delete this._callbacks[e]},this)}}function e_(e){return"_"+e}class ek{constructor(e){this.callbacks=new ex,this.global_callbacks=[],this.failThrough=e}bind(e,t,r){return this.callbacks.add(e,t,r),this}bind_global(e){return this.global_callbacks.push(e),this}unbind(e,t,r){return this.callbacks.remove(e,t,r),this}unbind_global(e){return e?this.global_callbacks=Z(this.global_callbacks||[],t=>t!==e):this.global_callbacks=[],this}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(e,t,r){for(var n=0;n<this.global_callbacks.length;n++)this.global_callbacks[n](e,t);var i=this.callbacks.get(e),o=[];if(r?o.push(t,r):t&&o.push(t),i&&i.length>0)for(var n=0;n<i.length;n++)i[n].fn.apply(i[n].context||window,o);else this.failThrough&&this.failThrough(e,t);return this}}class eS extends ek{constructor(e,t,r,n,i){super(),this.initialize=tU.transportConnectionInitializer,this.hooks=e,this.name=t,this.priority=r,this.key=n,this.options=i,this.state="new",this.timeline=i.timeline,this.activityTimeout=i.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||"initialized"!==this.state)return!1;var e=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(e,this.options)}catch(e){return q.defer(()=>{this.onError(e),this.changeState("closed")}),!1}return this.bindListeners(),ec.debug("Connecting",{transport:this.name,url:e}),this.changeState("connecting"),!0}close(){return!!this.socket&&(this.socket.close(),!0)}send(e){return"open"===this.state&&(q.defer(()=>{this.socket&&this.socket.send(e)}),!0)}ping(){"open"===this.state&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(e){this.emit("error",{type:"WebSocketError",error:e}),this.timeline.error(this.buildTimelineMessage({error:e.toString()}))}onClose(e){e?this.changeState("closed",{code:e.code,reason:e.reason,wasClean:e.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(e){this.emit("message",e)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=e=>{this.onError(e)},this.socket.onclose=e=>{this.onClose(e)},this.socket.onmessage=e=>{this.onMessage(e)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(e,t){this.state=e,this.timeline.info(this.buildTimelineMessage({state:e,params:t})),this.emit(e,t)}buildTimelineMessage(e){return H({cid:this.id},e)}}class eC{constructor(e){this.hooks=e}isSupported(e){return this.hooks.isSupported(e)}createConnection(e,t,r,n){return new eS(this.hooks,e,t,r,n)}}var eE=new eC({urls:ey,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!tU.getWebSocketAPI()},isSupported:function(){return!!tU.getWebSocketAPI()},getSocket:function(e){return tU.createWebSocket(e)}}),eO={urls:eb,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},eI=H({getSocket:function(e){return tU.HTTPFactory.createStreamingSocket(e)}},eO),eT=H({getSocket:function(e){return tU.HTTPFactory.createPollingSocket(e)}},eO),eA={isSupported:function(){return tU.isXHRSupported()}},eM=new eC(H({},eI,eA)),eR=new eC(H({},eT,eA)),eP={ws:eE,xhr_streaming:eM,xhr_polling:eR};let eL=eP;var eD=new eC({file:"sockjs",urls:ew,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return void 0!==window.SockJS},getSocket:function(e,t){return new window.SockJS(e,null,{js_path:u.getPath("sockjs",{useTLS:t.useTLS}),ignore_null_origin:t.ignoreNullOrigin})},beforeOpen:function(e,t){e.send(JSON.stringify({path:t}))}}),eN={isSupported:function(e){var t=tU.isXDRSupported(e.useTLS);return t}},eB=new eC(H({},eI,eN)),eF=new eC(H({},eT,eN));eL.xdr_streaming=eB,eL.xdr_polling=eF,eL.sockjs=eD;let ej=eL;class eU extends ek{constructor(){super();var e=this;void 0!==window.addEventListener&&(window.addEventListener("online",function(){e.emit("online")},!1),window.addEventListener("offline",function(){e.emit("offline")},!1))}isOnline(){return void 0===window.navigator.onLine||window.navigator.onLine}}var ez=new eU;class eq{constructor(e,t,r){this.manager=e,this.transport=t,this.minPingDelay=r.minPingDelay,this.maxPingDelay=r.maxPingDelay,this.pingDelay=void 0}createConnection(e,t,r,n){n=H({},n,{activityTimeout:this.pingDelay});var i=this.transport.createConnection(e,t,r,n),o=null,s=function(){i.unbind("open",s),i.bind("closed",a),o=q.now()},a=e=>{if(i.unbind("closed",a),1002===e.code||1003===e.code)this.manager.reportDeath();else if(!e.wasClean&&o){var t=q.now()-o;t<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(t/2,this.minPingDelay))}};return i.bind("open",s),i}isSupported(e){return this.manager.isAlive()&&this.transport.isSupported(e)}}let eH={decodeMessage:function(e){try{var t=JSON.parse(e.data),r=t.data;if("string"==typeof r)try{r=JSON.parse(t.data)}catch(e){}var n={event:t.event,channel:t.channel,data:r};return t.user_id&&(n.user_id=t.user_id),n}catch(t){throw{type:"MessageParseError",error:t,data:e.data}}},encodeMessage:function(e){return JSON.stringify(e)},processHandshake:function(e){var t=eH.decodeMessage(e);if("pusher:connection_established"===t.event){if(!t.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:t.data.socket_id,activityTimeout:1e3*t.data.activity_timeout}}if("pusher:error"===t.event)return{action:this.getCloseAction(t.data),error:this.getCloseError(t.data)};throw"Invalid handshake"},getCloseAction:function(e){if(e.code<4e3)if(e.code>=1002&&e.code<=1004)return"backoff";else return null;if(4e3===e.code)return"tls_only";if(e.code<4100)return"refused";if(e.code<4200)return"backoff";if(e.code<4300)return"retry";else return"refused"},getCloseError:function(e){return 1e3!==e.code&&1001!==e.code?{type:"PusherError",data:{code:e.code,message:e.reason||e.message}}:null}},e$=eH;class eW extends ek{constructor(e,t){super(),this.id=e,this.transport=t,this.activityTimeout=t.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(e){return this.transport.send(e)}send_event(e,t,r){var n={event:e,data:t};return r&&(n.channel=r),ec.debug("Event sent",n),this.send(e$.encodeMessage(n))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var e={message:e=>{var t;try{t=e$.decodeMessage(e)}catch(t){this.emit("error",{type:"MessageParseError",error:t,data:e.data})}if(void 0!==t){switch(ec.debug("Event recd",t),t.event){case"pusher:error":this.emit("error",{type:"PusherError",data:t.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",t)}},activity:()=>{this.emit("activity")},error:e=>{this.emit("error",e)},closed:e=>{t(),e&&e.code&&this.handleCloseEvent(e),this.transport=null,this.emit("closed")}},t=()=>{V(e,(e,t)=>{this.transport.unbind(t,e)})};V(e,(e,t)=>{this.transport.bind(t,e)})}handleCloseEvent(e){var t=e$.getCloseAction(e),r=e$.getCloseError(e);r&&this.emit("error",r),t&&this.emit(t,{action:t,error:r})}}class eV{constructor(e,t){this.transport=e,this.callback=t,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=e=>{var t;this.unbindListeners();try{t=e$.processHandshake(e)}catch(e){this.finish("error",{error:e}),this.transport.close();return}"connected"===t.action?this.finish("connected",{connection:new eW(t.id,this.transport),activityTimeout:t.activityTimeout}):(this.finish(t.action,{error:t.error}),this.transport.close())},this.onClosed=e=>{this.unbindListeners();var t=e$.getCloseAction(e)||"backoff",r=e$.getCloseError(e);this.finish(t,{error:r})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(e,t){this.callback(H({transport:this.transport,action:e},t))}}class eY{constructor(e,t){this.timeline=e,this.options=t||{}}send(e,t){this.timeline.isEmpty()||this.timeline.send(tU.TimelineTransport.getAgent(this,e),t)}}class eX extends ek{constructor(e,t){super(function(t,r){ec.debug("No callbacks on "+e+" for "+t)}),this.name=e,this.pusher=t,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(e,t){return t(null,{auth:""})}trigger(e,t){if(0!==e.indexOf("client-"))throw new p("Event '"+e+"' does not start with 'client-'");if(!this.subscribed){var r=d.buildLogSuffix("triggeringClientEvents");ec.warn(`Client event triggered before channel 'subscription_succeeded' event . ${r}`)}return this.pusher.send_event(e,t,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(e){var t=e.event,r=e.data;if("pusher_internal:subscription_succeeded"===t)this.handleSubscriptionSucceededEvent(e);else if("pusher_internal:subscription_count"===t)this.handleSubscriptionCountEvent(e);else if(0!==t.indexOf("pusher_internal:")){var n={};this.emit(t,r,n)}}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",e.data)}handleSubscriptionCountEvent(e){e.data.subscription_count&&(this.subscriptionCount=e.data.subscription_count),this.emit("pusher:subscription_count",e.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(e,t)=>{e?(this.subscriptionPending=!1,ec.error(e.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:e.message},e instanceof _?{status:e.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:t.auth,channel_data:t.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class eG extends eX{authorize(e,t){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:e},t)}}class eJ{constructor(){this.reset()}get(e){return Object.prototype.hasOwnProperty.call(this.members,e)?{id:e,info:this.members[e]}:null}each(e){V(this.members,(t,r)=>{e(this.get(r))})}setMyID(e){this.myID=e}onSubscription(e){this.members=e.presence.hash,this.count=e.presence.count,this.me=this.get(this.myID)}addMember(e){return null===this.get(e.user_id)&&this.count++,this.members[e.user_id]=e.user_info,this.get(e.user_id)}removeMember(e){var t=this.get(e.user_id);return t&&(delete this.members[e.user_id],this.count--),t}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var eK=function(e,t,r,n){function i(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n["throw"](e))}catch(e){o(e)}}function c(e){e.done?r(e.value):i(e.value).then(s,a)}c((n=n.apply(e,t||[])).next())})};class eZ extends eG{constructor(e,t){super(e,t),this.members=new eJ}authorize(e,t){super.authorize(e,(e,r)=>eK(this,void 0,void 0,function*(){if(!e)if(null!=r.channel_data){var n=JSON.parse(r.channel_data);this.members.setMyID(n.user_id)}else if(yield this.pusher.user.signinDonePromise,null!=this.pusher.user.user_data)this.members.setMyID(this.pusher.user.user_data.id);else{let e=d.buildLogSuffix("authorizationEndpoint");ec.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${e}, or the user should be signed in.`),t("Invalid auth response");return}t(e,r)}))}handleEvent(e){var t=e.event;if(0===t.indexOf("pusher_internal:"))this.handleInternalEvent(e);else{var r=e.data,n={};e.user_id&&(n.user_id=e.user_id),this.emit(t,r,n)}}handleInternalEvent(e){var t=e.event,r=e.data;switch(t){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(e);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(e);break;case"pusher_internal:member_added":var n=this.members.addMember(r);this.emit("pusher:member_added",n);break;case"pusher_internal:member_removed":var i=this.members.removeMember(r);i&&this.emit("pusher:member_removed",i);break}}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(e.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var eQ=r(978),e0=r(594);class e1 extends eG{constructor(e,t,r){super(e,t),this.key=null,this.nacl=r}authorize(e,t){super.authorize(e,(e,r)=>{if(e)return void t(e,r);let n=r["shared_secret"];n?(this.key=(0,e0.decode)(n),delete r["shared_secret"],t(null,r)):t(Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null)})}trigger(e,t){throw new b("Client events are not currently supported for encrypted channels")}handleEvent(e){var t=e.event,r=e.data;0===t.indexOf("pusher_internal:")||0===t.indexOf("pusher:")?super.handleEvent(e):this.handleEncryptedEvent(t,r)}handleEncryptedEvent(e,t){if(!this.key)return void ec.debug("Received encrypted event before key has been retrieved from the authEndpoint");if(!t.ciphertext||!t.nonce)return void ec.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+t);let r=(0,e0.decode)(t.ciphertext);if(r.length<this.nacl.secretbox.overheadLength)return void ec.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${r.length}`);let n=(0,e0.decode)(t.nonce);if(n.length<this.nacl.secretbox.nonceLength)return void ec.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${n.length}`);let i=this.nacl.secretbox.open(r,n,this.key);if(null===i){ec.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(t,o)=>{t?ec.error(`Failed to make a request to the authEndpoint: ${o}. Unable to fetch new key, so dropping encrypted event`):null===(i=this.nacl.secretbox.open(r,n,this.key))?ec.error("Failed to decrypt event with new key. Dropping encrypted event"):this.emit(e,this.getDataToEmit(i))});return}this.emit(e,this.getDataToEmit(i))}getDataToEmit(e){let t=(0,eQ.D4)(e);try{return JSON.parse(t)}catch(e){return t}}}class e2 extends ek{constructor(e,t){super(),this.state="initialized",this.connection=null,this.key=e,this.options=t,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var r=tU.getNetwork();r.bind("online",()=>{this.timeline.info({netinfo:"online"}),("connecting"===this.state||"unavailable"===this.state)&&this.retryIn(0)}),r.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}switchCluster(e){this.key=e,this.updateStrategy(),this.retryIn(0)}connect(){if(!this.connection&&!this.runner){if(!this.strategy.isSupported())return void this.updateState("failed");this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(e){return!!this.connection&&this.connection.send(e)}send_event(e,t,r){return!!this.connection&&this.connection.send_event(e,t,r)}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var e=(t,r)=>{t?this.runner=this.strategy.connect(0,e):"error"===r.action?(this.emit("error",{type:"HandshakeError",error:r.error}),this.timeline.error({handshakeError:r.error})):(this.abortConnecting(),this.handshakeCallbacks[r.action](r))};this.runner=this.strategy.connect(0,e)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var e=this.abandonConnection();e.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(e){this.timeline.info({action:"retry",delay:e}),e>0&&this.emit("connecting_in",Math.round(e/1e3)),this.retryTimer=new j(e||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new j(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new j(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new j(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(e){return H({},e,{message:e=>{this.resetActivityCheck(),this.emit("message",e)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:e=>{this.emit("error",e)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(e){return H({},e,{connected:e=>{this.activityTimeout=Math.min(this.options.activityTimeout,e.activityTimeout,e.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(e.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let e=e=>t=>{t.error&&this.emit("error",{type:"WebSocketError",error:t.error}),e(t)};return{tls_only:e(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:e(()=>{this.disconnect()}),backoff:e(()=>{this.retryIn(1e3)}),retry:e(()=>{this.retryIn(0)})}}setConnection(e){for(var t in this.connection=e,this.connectionCallbacks)this.connection.bind(t,this.connectionCallbacks[t]);this.resetActivityCheck()}abandonConnection(){if(this.connection){for(var e in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(e,this.connectionCallbacks[e]);var t=this.connection;return this.connection=null,t}}updateState(e,t){var r=this.state;if(this.state=e,r!==e){var n=e;"connected"===n&&(n+=" with new socket ID "+t.socket_id),ec.debug("State changed",r+" -> "+n),this.timeline.info({state:e,params:t}),this.emit("state_change",{previous:r,current:e}),this.emit(e,t)}}shouldRetry(){return"connecting"===this.state||"connected"===this.state}}class e4{constructor(){this.channels={}}add(e,t){return this.channels[e]||(this.channels[e]=e5(e,t)),this.channels[e]}all(){return X(this.channels)}find(e){return this.channels[e]}remove(e){var t=this.channels[e];return delete this.channels[e],t}disconnect(){V(this.channels,function(e){e.disconnect()})}}function e5(e,t){if(0===e.indexOf("private-encrypted-")){if(t.config.nacl)return e6.createEncryptedChannel(e,t,t.config.nacl);let r="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",n=d.buildLogSuffix("encryptedChannelSupport");throw new b(`${r}. ${n}`)}if(0===e.indexOf("private-"))return e6.createPrivateChannel(e,t);if(0===e.indexOf("presence-"))return e6.createPresenceChannel(e,t);if(0!==e.indexOf("#"))return e6.createChannel(e,t);throw new g('Cannot create a channel with name "'+e+'".')}var e8={createChannels(){return new e4},createConnectionManager(e,t){return new e2(e,t)},createChannel(e,t){return new eX(e,t)},createPrivateChannel(e,t){return new eG(e,t)},createPresenceChannel(e,t){return new eZ(e,t)},createEncryptedChannel(e,t,r){return new e1(e,t,r)},createTimelineSender(e,t){return new eY(e,t)},createHandshake(e,t){return new eV(e,t)},createAssistantToTheTransportManager(e,t,r){return new eq(e,t,r)}};let e6=e8;class e3{constructor(e){this.options=e||{},this.livesLeft=this.options.lives||1/0}getAssistant(e){return e6.createAssistantToTheTransportManager(this,e,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class e7{constructor(e,t){this.strategies=e,this.loop=!!t.loop,this.failFast=!!t.failFast,this.timeout=t.timeout,this.timeoutLimit=t.timeoutLimit}isSupported(){return et(this.strategies,q.method("isSupported"))}connect(e,t){var r=this.strategies,n=0,i=this.timeout,o=null,s=(a,c)=>{c?t(null,c):(n+=1,this.loop&&(n%=r.length),n<r.length?(i&&(i*=2,this.timeoutLimit&&(i=Math.min(i,this.timeoutLimit))),o=this.tryStrategy(r[n],e,{timeout:i,failFast:this.failFast},s)):t(!0))};return o=this.tryStrategy(r[n],e,{timeout:i,failFast:this.failFast},s),{abort:function(){o.abort()},forceMinPriority:function(t){e=t,o&&o.forceMinPriority(t)}}}tryStrategy(e,t,r,n){var i=null,o=null;return r.timeout>0&&(i=new j(r.timeout,function(){o.abort(),n(!0)})),o=e.connect(t,function(e,t){(!(e&&i&&i.isRunning())||r.failFast)&&(i&&i.ensureAborted(),n(e,t))}),{abort:function(){i&&i.ensureAborted(),o.abort()},forceMinPriority:function(e){o.forceMinPriority(e)}}}}class e9{constructor(e){this.strategies=e}isSupported(){return et(this.strategies,q.method("isSupported"))}connect(e,t){return te(this.strategies,e,function(e,r){return function(n,i){if(r[e].error=n,n){tt(r)&&t(!0);return}G(r,function(e){e.forceMinPriority(i.transport.priority)}),t(null,i)}})}}function te(e,t,r){var n=J(e,function(e,n,i,o){return e.connect(t,r(n,o))});return{abort:function(){G(n,tr)},forceMinPriority:function(e){G(n,function(t){t.forceMinPriority(e)})}}}function tt(e){return er(e,function(e){return!!e.error})}function tr(e){e.error||e.aborted||(e.abort(),e.aborted=!0)}class tn{constructor(e,t,r){this.strategy=e,this.transports=t,this.ttl=r.ttl||18e5,this.usingTLS=r.useTLS,this.timeline=r.timeline}isSupported(){return this.strategy.isSupported()}connect(e,t){var r=this.usingTLS,n=to(r),i=n&&n.cacheSkipCount?n.cacheSkipCount:0,o=[this.strategy];if(n&&n.timestamp+this.ttl>=q.now()){var s=this.transports[n.transport];s&&(["ws","wss"].includes(n.transport)||i>3?(this.timeline.info({cached:!0,transport:n.transport,latency:n.latency}),o.push(new e7([s],{timeout:2*n.latency+1e3,failFast:!0}))):i++)}var a=q.now(),c=o.pop().connect(e,function n(s,u){s?(ta(r),o.length>0?(a=q.now(),c=o.pop().connect(e,n)):t(s)):(ts(r,u.transport.name,q.now()-a,i),t(null,u))});return{abort:function(){c.abort()},forceMinPriority:function(t){e=t,c&&c.forceMinPriority(t)}}}}function ti(e){return"pusherTransport"+(e?"TLS":"NonTLS")}function to(e){var t=tU.getLocalStorage();if(t)try{var r=t[ti(e)];if(r)return JSON.parse(r)}catch(t){ta(e)}return null}function ts(e,t,r,n){var i=tU.getLocalStorage();if(i)try{i[ti(e)]=es({timestamp:q.now(),transport:t,latency:r,cacheSkipCount:n})}catch(e){}}function ta(e){var t=tU.getLocalStorage();if(t)try{delete t[ti(e)]}catch(e){}}class tc{constructor(e,{delay:t}){this.strategy=e,this.options={delay:t}}isSupported(){return this.strategy.isSupported()}connect(e,t){var r=this.strategy,n,i=new j(this.options.delay,function(){n=r.connect(e,t)});return{abort:function(){i.ensureAborted(),n&&n.abort()},forceMinPriority:function(t){e=t,n&&n.forceMinPriority(t)}}}}class tu{constructor(e,t,r){this.test=e,this.trueBranch=t,this.falseBranch=r}isSupported(){var e=this.test()?this.trueBranch:this.falseBranch;return e.isSupported()}connect(e,t){var r=this.test()?this.trueBranch:this.falseBranch;return r.connect(e,t)}}class tl{constructor(e){this.strategy=e}isSupported(){return this.strategy.isSupported()}connect(e,t){var r=this.strategy.connect(e,function(e,n){n&&r.abort(),t(e,n)});return r}}function th(e){return function(){return e.isSupported()}}var td=function(e,t,r){var n={};function i(t,i,o,s,a){var c=r(e,t,i,o,s,a);return n[t]=c,c}var o=Object.assign({},t,{hostNonTLS:e.wsHost+":"+e.wsPort,hostTLS:e.wsHost+":"+e.wssPort,httpPath:e.wsPath}),s=Object.assign({},o,{useTLS:!0}),a=Object.assign({},t,{hostNonTLS:e.httpHost+":"+e.httpPort,hostTLS:e.httpHost+":"+e.httpsPort,httpPath:e.httpPath}),c={loop:!0,timeout:15e3,timeoutLimit:6e4},u=new e3({minPingDelay:1e4,maxPingDelay:e.activityTimeout}),l=new e3({lives:2,minPingDelay:1e4,maxPingDelay:e.activityTimeout}),h=i("ws","ws",3,o,u),d=i("wss","ws",3,s,u),f=i("sockjs","sockjs",1,a),p=i("xhr_streaming","xhr_streaming",1,a,l),g=i("xdr_streaming","xdr_streaming",1,a,l),m=i("xhr_polling","xhr_polling",1,a),v=i("xdr_polling","xdr_polling",1,a),y=new e7([h],c),b=new e7([d],c),w=new e7([f],c),x=new e7([new tu(th(p),p,g)],c),_=new e7([new tu(th(m),m,v)],c),k=new e7([new tu(th(x),new e9([x,new tc(_,{delay:4e3})]),_)],c),S=new tu(th(k),k,w),C;return C=new e9(t.useTLS?[y,new tc(S,{delay:2e3})]:[y,new tc(b,{delay:2e3}),new tc(S,{delay:5e3})]),new tn(new tl(new tu(th(h),C,S)),n,{ttl:18e5,timeline:t.timeline,useTLS:t.useTLS})};let tf=td;function tp(){var e=this;e.timeline.info(e.buildTimelineMessage({transport:e.name+(e.options.useTLS?"s":"")})),e.hooks.isInitialized()?e.changeState("initialized"):e.hooks.file?(e.changeState("initializing"),u.load(e.hooks.file,{useTLS:e.options.useTLS},function(t,r){e.hooks.isInitialized()?(e.changeState("initialized"),r(!0)):(t&&e.onError(t),e.onClose(),r(!1))})):e.onClose()}var tg={getRequest:function(e){var t=new window.XDomainRequest;return t.ontimeout=function(){e.emit("error",new m),e.close()},t.onerror=function(t){e.emit("error",t),e.close()},t.onprogress=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText)},t.onload=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText),e.emit("finished",200),e.close()},t},abortRequest:function(e){e.ontimeout=e.onerror=e.onprogress=e.onload=null,e.abort()}};let tm=tg,tv=262144;class ty extends ek{constructor(e,t,r){super(),this.hooks=e,this.method=t,this.url=r}start(e){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},tU.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(e)}close(){this.unloader&&(tU.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(e,t){while(1){var r=this.advanceBuffer(t);if(r)this.emit("chunk",{status:e,data:r});else break}this.isBufferTooLong(t)&&this.emit("buffer_too_long")}advanceBuffer(e){var t=e.slice(this.position),r=t.indexOf("\n");return -1!==r?(this.position+=r+1,t.slice(0,r)):null}isBufferTooLong(e){return this.position===e.length&&e.length>tv}}var tb;(function(e){e[e["CONNECTING"]=0]="CONNECTING",e[e["OPEN"]=1]="OPEN",e[e["CLOSED"]=3]="CLOSED"})(tb||(tb={}));let tw=tb;var tx=1;class t_{constructor(e,t){this.hooks=e,this.session=tO(1e3)+"/"+tI(8),this.location=tk(t),this.readyState=tw.CONNECTING,this.openStream()}send(e){return this.sendRaw(JSON.stringify([e]))}ping(){this.hooks.sendHeartbeat(this)}close(e,t){this.onClose(e,t,!0)}sendRaw(e){if(this.readyState!==tw.OPEN)return!1;try{return tU.createSocketRequest("POST",tC(tS(this.location,this.session))).start(e),!0}catch(e){return!1}}reconnect(){this.closeStream(),this.openStream()}onClose(e,t,r){this.closeStream(),this.readyState=tw.CLOSED,this.onclose&&this.onclose({code:e,reason:t,wasClean:r})}onChunk(e){if(200===e.status){var t;this.readyState===tw.OPEN&&this.onActivity();var r=e.data.slice(0,1);switch(r){case"o":t=JSON.parse(e.data.slice(1)||"{}"),this.onOpen(t);break;case"a":t=JSON.parse(e.data.slice(1)||"[]");for(var n=0;n<t.length;n++)this.onEvent(t[n]);break;case"m":t=JSON.parse(e.data.slice(1)||"null"),this.onEvent(t);break;case"h":this.hooks.onHeartbeat(this);break;case"c":t=JSON.parse(e.data.slice(1)||"[]"),this.onClose(t[0],t[1],!0);break}}}onOpen(e){this.readyState===tw.CONNECTING?(e&&e.hostname&&(this.location.base=tE(this.location.base,e.hostname)),this.readyState=tw.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(e){this.readyState===tw.OPEN&&this.onmessage&&this.onmessage({data:e})}onActivity(){this.onactivity&&this.onactivity()}onError(e){this.onerror&&this.onerror(e)}openStream(){this.stream=tU.createSocketRequest("POST",tC(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",e=>{this.onChunk(e)}),this.stream.bind("finished",e=>{this.hooks.onFinished(this,e)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(e){q.defer(()=>{this.onError(e),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function tk(e){var t=/([^\?]*)\/*(\??.*)/.exec(e);return{base:t[1],queryString:t[2]}}function tS(e,t){return e.base+"/"+t+"/xhr_send"}function tC(e){var t=-1===e.indexOf("?")?"?":"&";return e+t+"t="+ +new Date+"&n="+tx++}function tE(e,t){var r=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(e);return r[1]+t+r[3]}function tO(e){return tU.randomInt(e)}function tI(e){for(var t=[],r=0;r<e;r++)t.push(tO(32).toString(32));return t.join("")}let tT=t_;var tA={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr_streaming"+e.queryString},onHeartbeat:function(e){e.sendRaw("[]")},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){e.onClose(1006,"Connection interrupted ("+t+")",!1)}};let tM=tA;var tR={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr"+e.queryString},onHeartbeat:function(){},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){200===t?e.reconnect():e.onClose(1006,"Connection interrupted ("+t+")",!1)}};let tP=tR;var tL={getRequest:function(e){var t=tU.getXHRAPI(),r=new t;return r.onreadystatechange=r.onprogress=function(){switch(r.readyState){case 3:r.responseText&&r.responseText.length>0&&e.onChunk(r.status,r.responseText);break;case 4:r.responseText&&r.responseText.length>0&&e.onChunk(r.status,r.responseText),e.emit("finished",r.status),e.close();break}},r},abortRequest:function(e){e.onreadystatechange=null,e.abort()}};let tD=tL;var tN={createStreamingSocket(e){return this.createSocket(tM,e)},createPollingSocket(e){return this.createSocket(tP,e)},createSocket(e,t){return new tT(e,t)},createXHR(e,t){return this.createRequest(tD,e,t)},createRequest(e,t,r){return new ty(e,t,r)}};let tB=tN;tB.createXDR=function(e,t){return this.createRequest(tm,e,t)};let tF=tB;var tj={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:i,DependenciesReceivers:c,getDefaultStrategy:tf,Transports:ej,transportConnectionInitializer:tp,HTTPFactory:tF,TimelineTransport:eg,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(e){window.Pusher=e;var t=()=>{this.onDocumentBody(e.ready)};window.JSON?t():u.load("json2",{},t)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:S,jsonp:el}},onDocumentBody(e){document.body?e():setTimeout(()=>{this.onDocumentBody(e)},0)},createJSONPRequest(e,t){return new ed(e,t)},createScriptRequest(e){return new eh(e)},getLocalStorage(){try{return window.localStorage}catch(e){return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var e=this.getXHRAPI();return new e},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return ez},createWebSocket(e){var t=this.getWebSocketAPI();return new t(e)},createSocketRequest(e,t){if(this.isXHRSupported())return this.HTTPFactory.createXHR(e,t);if(this.isXDRSupported(0===t.indexOf("https:")))return this.HTTPFactory.createXDR(e,t);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var e=this.getXHRAPI();return!!e&&void 0!==new e().withCredentials},isXDRSupported(e){var t=e?"https:":"http:",r=this.getProtocol();return!!window["XDomainRequest"]&&r===t},addUnloadListener(e){void 0!==window.addEventListener?window.addEventListener("unload",e,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",e)},removeUnloadListener(e){void 0!==window.addEventListener?window.removeEventListener("unload",e,!1):void 0!==window.detachEvent&&window.detachEvent("onunload",e)},randomInt(e){let t=function(){let e=window.crypto||window["msCrypto"],t=e.getRandomValues(new Uint32Array(1))[0];return t/0x100000000};return Math.floor(t()*e)}};let tU=tj;var tz;(function(e){e[e["ERROR"]=3]="ERROR",e[e["INFO"]=6]="INFO",e[e["DEBUG"]=7]="DEBUG"})(tz||(tz={}));let tq=tz;class tH{constructor(e,t,r){this.key=e,this.session=t,this.events=[],this.options=r||{},this.sent=0,this.uniqueID=0}log(e,t){e<=this.options.level&&(this.events.push(H({},t,{timestamp:q.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(e){this.log(tq.ERROR,e)}info(e){this.log(tq.INFO,e)}debug(e){this.log(tq.DEBUG,e)}isEmpty(){return 0===this.events.length}send(e,t){var r=H({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],e(r,(e,r)=>{!e&&this.sent++,t&&t(e,r)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class t${constructor(e,t,r,n){this.name=e,this.priority=t,this.transport=r,this.options=n||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(e,t){if(!this.isSupported())return tW(new x,t);if(this.priority<e)return tW(new v,t);var r=!1,n=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),i=null,o=function(){n.unbind("initialized",o),n.connect()},s=function(){i=e6.createHandshake(n,function(e){r=!0,u(),t(null,e)})},a=function(e){u(),t(e)},c=function(){u(),t(new y(es(n)))},u=function(){n.unbind("initialized",o),n.unbind("open",s),n.unbind("error",a),n.unbind("closed",c)};return n.bind("initialized",o),n.bind("open",s),n.bind("error",a),n.bind("closed",c),n.initialize(),{abort:()=>{r||(u(),i?i.close():n.close())},forceMinPriority:e=>{!r&&this.priority<e&&(i?i.close():n.close())}}}}function tW(e,t){return q.defer(function(){t(e)}),{abort:function(){},forceMinPriority:function(){}}}let{Transports:tV}=tU;var tY=function(e,t,r,n,i,o){var s=tV[r];if(!s)throw new w(r);var a=(!e.enabledTransports||-1!==W(e.enabledTransports,t))&&(!e.disabledTransports||-1===W(e.disabledTransports,t)),c;return a?(i=Object.assign({ignoreNullOrigin:e.ignoreNullOrigin},i),c=new t$(t,n,o?o.getAssistant(s):s,i)):c=tX,c},tX={isSupported:function(){return!1},connect:function(e,t){var r=q.defer(function(){t(new x)});return{abort:function(){r.ensureAborted()},forceMinPriority:function(){}}}};function tG(e){if(null==e)throw"You must pass an options object";if(null==e.cluster)throw"Options object must provide a cluster";"disableStats"in e&&ec.warn("The disableStats option is deprecated in favor of enableStats")}let tJ=(e,t)=>{var r="socket_id="+encodeURIComponent(e.socketId);for(var n in t.params)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(t.params[n]);if(null!=t.paramsProvider){let e=t.paramsProvider();for(var n in e)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(e[n])}return r},tK=e=>{if(void 0===tU.getAuthorizers()[e.transport])throw`'${e.transport}' is not a recognized auth transport`;return(t,r)=>{let n=tJ(t,e);tU.getAuthorizers()[e.transport](tU,n,e,f.UserAuthentication,r)}},tZ=tK,tQ=(e,t)=>{var r="socket_id="+encodeURIComponent(e.socketId);for(var n in r+="&channel_name="+encodeURIComponent(e.channelName),t.params)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(t.params[n]);if(null!=t.paramsProvider){let e=t.paramsProvider();for(var n in e)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(e[n])}return r},t0=e=>{if(void 0===tU.getAuthorizers()[e.transport])throw`'${e.transport}' is not a recognized auth transport`;return(t,r)=>{let n=tQ(t,e);tU.getAuthorizers()[e.transport](tU,n,e,f.ChannelAuthorization,r)}},t1=t0,t2=(e,t,r)=>{let n={authTransport:t.transport,authEndpoint:t.endpoint,auth:{params:t.params,headers:t.headers}};return(t,i)=>{let o=e.channel(t.channelName),s=r(o,n);s.authorize(t.socketId,i)}};function t4(e,t){let r={activityTimeout:e.activityTimeout||s.activityTimeout,cluster:e.cluster,httpPath:e.httpPath||s.httpPath,httpPort:e.httpPort||s.httpPort,httpsPort:e.httpsPort||s.httpsPort,pongTimeout:e.pongTimeout||s.pongTimeout,statsHost:e.statsHost||s.stats_host,unavailableTimeout:e.unavailableTimeout||s.unavailableTimeout,wsPath:e.wsPath||s.wsPath,wsPort:e.wsPort||s.wsPort,wssPort:e.wssPort||s.wssPort,enableStats:t7(e),httpHost:t5(e),useTLS:t3(e),wsHost:t8(e),userAuthenticator:re(e),channelAuthorizer:rr(e,t)};return"disabledTransports"in e&&(r.disabledTransports=e.disabledTransports),"enabledTransports"in e&&(r.enabledTransports=e.enabledTransports),"ignoreNullOrigin"in e&&(r.ignoreNullOrigin=e.ignoreNullOrigin),"timelineParams"in e&&(r.timelineParams=e.timelineParams),"nacl"in e&&(r.nacl=e.nacl),r}function t5(e){return e.httpHost?e.httpHost:e.cluster?`sockjs-${e.cluster}.pusher.com`:s.httpHost}function t8(e){return e.wsHost?e.wsHost:t6(e.cluster)}function t6(e){return`ws-${e}.pusher.com`}function t3(e){if("https:"===tU.getProtocol());else if(!1===e.forceTLS)return!1;return!0}function t7(e){return"enableStats"in e?e.enableStats:"disableStats"in e&&!e.disableStats}let t9=e=>"customHandler"in e&&null!=e["customHandler"];function re(e){let t=Object.assign(Object.assign({},s.userAuthentication),e.userAuthentication);return t9(t)?t["customHandler"]:tZ(t)}function rt(e,t){let r;if("channelAuthorization"in e)r=Object.assign(Object.assign({},s.channelAuthorization),e.channelAuthorization);else if(r={transport:e.authTransport||s.authTransport,endpoint:e.authEndpoint||s.authEndpoint},"auth"in e&&("params"in e.auth&&(r.params=e.auth.params),"headers"in e.auth&&(r.headers=e.auth.headers)),"authorizer"in e)return{customHandler:t2(t,r,e.authorizer)};return r}function rr(e,t){let r=rt(e,t);return t9(r)?r["customHandler"]:t1(r)}class rn extends ek{constructor(e){super(function(e,t){ec.debug(`No callbacks on watchlist events for ${e}`)}),this.pusher=e,this.bindWatchlistInternalEvent()}handleEvent(e){e.data.events.forEach(e=>{this.emit(e.name,e)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",e=>{var t=e.event;"pusher_internal:watchlist_events"===t&&this.handleEvent(e)})}}function ri(){let e,t,r=new Promise((r,n)=>{e=r,t=n});return{promise:r,resolve:e,reject:t}}let ro=ri;class rs extends ek{constructor(e){super(function(e,t){ec.debug("No callbacks on user for "+e)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(e,t)=>{if(e){ec.warn(`Error during signin: ${e}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:t.auth,user_data:t.user_data})},this.pusher=e,this.pusher.connection.bind("state_change",({previous:e,current:t})=>{"connected"!==e&&"connected"===t&&this._signin(),"connected"===e&&"connected"!==t&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new rn(e),this.pusher.connection.bind("message",e=>{var t=e.event;"pusher:signin_success"===t&&this._onSigninSuccess(e.data),this.serverToUserChannel&&this.serverToUserChannel.name===e.channel&&this.serverToUserChannel.handleEvent(e)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),"connected"===this.pusher.connection.state&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(e){try{this.user_data=JSON.parse(e.user_data)}catch(t){ec.error(`Failed parsing user data after signin: ${e.user_data}`),this._cleanup();return}if("string"!=typeof this.user_data.id||""===this.user_data.id){ec.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){let e=e=>{e.subscriptionPending&&e.subscriptionCancelled?e.reinstateSubscription():e.subscriptionPending||"connected"!==this.pusher.connection.state||e.subscribe()};this.serverToUserChannel=new eX(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((e,t)=>{0!==e.indexOf("pusher_internal:")&&0!==e.indexOf("pusher:")&&this.emit(e,t)}),e(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;let{promise:e,resolve:t,reject:r}=ro();e.done=!1;let n=()=>{e.done=!0};e.then(n).catch(n),this.signinDonePromise=e,this._signinDoneResolve=t}}class ra{static ready(){ra.isReady=!0;for(var e=0,t=ra.instances.length;e<t;e++)ra.instances[e].connect()}static getClientFeatures(){return Y(Q({ws:tU.Transports.ws},function(e){return e.isSupported({})}))}constructor(e,t){ru(e),tG(t),this.key=e,this.options=t,this.config=t4(this.options,this),this.channels=e6.createChannels(),this.global_emitter=new ek,this.sessionID=tU.randomInt(1e9),this.timeline=new tH(this.key,this.sessionID,{cluster:this.config.cluster,features:ra.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:tq.INFO,version:s.VERSION}),this.config.enableStats&&(this.timelineSender=e6.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+tU.TimelineTransport.name}));var r=e=>tU.getDefaultStrategy(this.config,e,tY);this.connection=e6.createConnectionManager(this.key,{getStrategy:r,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",e=>{var t=e.event,r=0===t.indexOf("pusher_internal:");if(e.channel){var n=this.channel(e.channel);n&&n.handleEvent(e)}r||this.global_emitter.emit(e.event,e.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",e=>{ec.warn(e)}),ra.instances.push(this),this.timeline.info({instances:ra.instances.length}),this.user=new rs(this),ra.isReady&&this.connect()}switchCluster(e){let{appKey:t,cluster:r}=e;this.key=t,this.options=Object.assign(Object.assign({},this.options),{cluster:r}),this.config=t4(this.options,this),this.connection.switchCluster(this.key)}channel(e){return this.channels.find(e)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var e=this.connection.isUsingTLS(),t=this.timelineSender;this.timelineSenderTimer=new U(6e4,function(){t.send(e)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(e,t,r){return this.global_emitter.bind(e,t,r),this}unbind(e,t,r){return this.global_emitter.unbind(e,t,r),this}bind_global(e){return this.global_emitter.bind_global(e),this}unbind_global(e){return this.global_emitter.unbind_global(e),this}unbind_all(e){return this.global_emitter.unbind_all(),this}subscribeAll(){var e;for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)}subscribe(e){var t=this.channels.add(e,this);return t.subscriptionPending&&t.subscriptionCancelled?t.reinstateSubscription():t.subscriptionPending||"connected"!==this.connection.state||t.subscribe(),t}unsubscribe(e){var t=this.channels.find(e);t&&t.subscriptionPending?t.cancelSubscription():(t=this.channels.remove(e))&&t.subscribed&&t.unsubscribe()}send_event(e,t,r){return this.connection.send_event(e,t,r)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}ra.instances=[],ra.isReady=!1,ra.logToConsole=!1,ra.Runtime=tU,ra.ScriptReceivers=tU.ScriptReceivers,ra.DependenciesReceivers=tU.DependenciesReceivers,ra.auth_callbacks=tU.auth_callbacks;let rc=ra;function ru(e){if(null==e)throw"You must pass your app key when you instantiate Pusher."}tU.setup(ra)}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}(()=>{r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();var n=r(721);return n})())},6586:function(e){(function(t,r){e.exports=r()})(0,function(){"use strict";function e(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw TypeError("Private element is not present on this object")}function t(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function r(t,r){return t.get(e(t,r))}function n(e,r,n){t(e,r),r.set(e,n)}function i(t,r,n){return t.set(e(t,r),n),n}let o=100,s={},a=()=>{s.previousActiveElement instanceof HTMLElement?(s.previousActiveElement.focus(),s.previousActiveElement=null):document.body&&document.body.focus()},c=e=>new Promise(t=>{if(!e)return t();let r=window.scrollX,n=window.scrollY;s.restoreFocusTimeout=setTimeout(()=>{a(),t()},o),window.scrollTo(r,n)}),u="swal2-",l=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"],h=l.reduce((e,t)=>(e[t]=u+t,e),{}),d=["success","warning","info","question","error"],f=d.reduce((e,t)=>(e[t]=u+t,e),{}),p="SweetAlert2:",g=e=>e.charAt(0).toUpperCase()+e.slice(1),m=e=>{console.warn(`${p} ${"object"==typeof e?e.join(" "):e}`)},v=e=>{console.error(`${p} ${e}`)},y=[],b=e=>{y.includes(e)||(y.push(e),m(e))},w=(e,t=null)=>{b(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},x=e=>"function"==typeof e?e():e,_=e=>e&&"function"==typeof e.toPromise,k=e=>_(e)?e.toPromise():Promise.resolve(e),S=e=>e&&Promise.resolve(e)===e,C=()=>navigator.userAgent.includes("Firefox"),E=()=>document.body.querySelector(`.${h.container}`),O=e=>{let t=E();return t?t.querySelector(e):null},I=e=>O(`.${e}`),T=()=>I(h.popup),A=()=>I(h.icon),M=()=>I(h["icon-content"]),R=()=>I(h.title),P=()=>I(h["html-container"]),L=()=>I(h.image),D=()=>I(h["progress-steps"]),N=()=>I(h["validation-message"]),B=()=>O(`.${h.actions} .${h.confirm}`),F=()=>O(`.${h.actions} .${h.cancel}`),j=()=>O(`.${h.actions} .${h.deny}`),U=()=>I(h["input-label"]),z=()=>O(`.${h.loader}`),q=()=>I(h.actions),H=()=>I(h.footer),$=()=>I(h["timer-progress-bar"]),W=()=>I(h.close),V=`
|
|
2
|
+
a[href],
|
|
3
|
+
area[href],
|
|
4
|
+
input:not([disabled]),
|
|
5
|
+
select:not([disabled]),
|
|
6
|
+
textarea:not([disabled]),
|
|
7
|
+
button:not([disabled]),
|
|
8
|
+
iframe,
|
|
9
|
+
object,
|
|
10
|
+
embed,
|
|
11
|
+
[tabindex="0"],
|
|
12
|
+
[contenteditable],
|
|
13
|
+
audio[controls],
|
|
14
|
+
video[controls],
|
|
15
|
+
summary
|
|
16
|
+
`,Y=()=>{let e=T();if(!e)return[];let t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),r=Array.from(t).sort((e,t)=>{let r=parseInt(e.getAttribute("tabindex")||"0"),n=parseInt(t.getAttribute("tabindex")||"0");return r>n?1:r<n?-1:0}),n=e.querySelectorAll(V),i=Array.from(n).filter(e=>"-1"!==e.getAttribute("tabindex"));return[...new Set(r.concat(i))].filter(e=>ef(e))},X=()=>Z(document.body,h.shown)&&!Z(document.body,h["toast-shown"])&&!Z(document.body,h["no-backdrop"]),G=()=>{let e=T();return!!e&&Z(e,h.toast)},J=()=>{let e=T();return!!e&&e.hasAttribute("data-loading")},K=(e,t)=>{if(e.textContent="",t){let r=new DOMParser,n=r.parseFromString(t,"text/html"),i=n.querySelector("head");i&&Array.from(i.childNodes).forEach(t=>{e.appendChild(t)});let o=n.querySelector("body");o&&Array.from(o.childNodes).forEach(t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)})}},Z=(e,t)=>!!t&&t.split(/\s+/).every(t=>e.classList.contains(t)),Q=(e,t)=>{Array.from(e.classList).forEach(r=>{Object.values(h).includes(r)||Object.values(f).includes(r)||Object.values(t.showClass||{}).includes(r)||e.classList.remove(r)})},ee=(e,t,r)=>{if(Q(e,t),!t.customClass)return;let n=t.customClass[r];if(n){if("string"!=typeof n&&!n.forEach)return void m(`Invalid type of customClass.${r}! Expected string or iterable object, got "${typeof n}"`);ei(e,n)}},et=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${h.popup} > .${h[t]}`);case"checkbox":return e.querySelector(`.${h.popup} > .${h.checkbox} input`);case"radio":return e.querySelector(`.${h.popup} > .${h.radio} input:checked`)||e.querySelector(`.${h.popup} > .${h.radio} input:first-child`);case"range":return e.querySelector(`.${h.popup} > .${h.range} input`);default:return e.querySelector(`.${h.popup} > .${h.input}`)}},er=e=>{if(e.focus(),"file"!==e.type){let t=e.value;e.value="",e.value=t}},en=(e,t,r)=>{if(!e||!t)return;let n="string"==typeof t?t.split(/\s+/).filter(Boolean):t,i=Array.isArray(e)?e:[e];i.forEach(e=>{n.forEach(t=>{r?e.classList.add(t):e.classList.remove(t)})})},ei=(e,t)=>{en(e,t,!0)},eo=(e,t)=>{en(e,t,!1)},es=(e,t)=>Array.from(e.children).find(e=>e instanceof HTMLElement&&Z(e,t)),ea=(e,t,r)=>{r===`${parseInt(`${r}`)}`&&(r=parseInt(r)),r||0===r?e.style.setProperty(t,"number"==typeof r?`${r}px`:r):e.style.removeProperty(t)},ec=(e,t="flex")=>{e&&(e.style.display=t)},eu=e=>{e&&(e.style.display="none")},el=(e,t="block")=>{e&&new MutationObserver(()=>{ed(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},eh=(e,t,r,n)=>{let i=e.querySelector(t);i&&i.style.setProperty(r,n)},ed=(e,t,r="flex")=>{t?ec(e,r):eu(e)},ef=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),ep=()=>!ef(B())&&!ef(j())&&!ef(F()),eg=e=>e.scrollHeight>e.clientHeight,em=(e,t)=>{let r=e;while(r&&r!==t){if(eg(r))return!0;r=r.parentElement}return!1},ev=e=>{let t=window.getComputedStyle(e),r=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return r>0||n>0},ey=(e,t=!1)=>{let r=$();r&&ef(r)&&(t&&(r.style.transition="none",r.style.width="100%"),setTimeout(()=>{r.style.transition=`width ${e/1e3}s linear`,r.style.width="0%"},10))},eb=()=>{let e=$();if(!e)return;let t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";let r=parseInt(window.getComputedStyle(e).width),n=t/r*100;e.style.width=`${n}%`},ew=()=>"u"<typeof window||"u"<typeof document,ex=`
|
|
17
|
+
<div aria-labelledby="${h.title}" aria-describedby="${h["html-container"]}" class="${h.popup}" tabindex="-1">
|
|
18
|
+
<button type="button" class="${h.close}"></button>
|
|
19
|
+
<ul class="${h["progress-steps"]}"></ul>
|
|
20
|
+
<div class="${h.icon}"></div>
|
|
21
|
+
<img class="${h.image}" />
|
|
22
|
+
<h2 class="${h.title}" id="${h.title}"></h2>
|
|
23
|
+
<div class="${h["html-container"]}" id="${h["html-container"]}"></div>
|
|
24
|
+
<input class="${h.input}" id="${h.input}" />
|
|
25
|
+
<input type="file" class="${h.file}" />
|
|
26
|
+
<div class="${h.range}">
|
|
27
|
+
<input type="range" />
|
|
28
|
+
<output></output>
|
|
29
|
+
</div>
|
|
30
|
+
<select class="${h.select}" id="${h.select}"></select>
|
|
31
|
+
<div class="${h.radio}"></div>
|
|
32
|
+
<label class="${h.checkbox}">
|
|
33
|
+
<input type="checkbox" id="${h.checkbox}" />
|
|
34
|
+
<span class="${h.label}"></span>
|
|
35
|
+
</label>
|
|
36
|
+
<textarea class="${h.textarea}" id="${h.textarea}"></textarea>
|
|
37
|
+
<div class="${h["validation-message"]}" id="${h["validation-message"]}"></div>
|
|
38
|
+
<div class="${h.actions}">
|
|
39
|
+
<div class="${h.loader}"></div>
|
|
40
|
+
<button type="button" class="${h.confirm}"></button>
|
|
41
|
+
<button type="button" class="${h.deny}"></button>
|
|
42
|
+
<button type="button" class="${h.cancel}"></button>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="${h.footer}"></div>
|
|
45
|
+
<div class="${h["timer-progress-bar-container"]}">
|
|
46
|
+
<div class="${h["timer-progress-bar"]}"></div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
`.replace(/(^|\n)\s*/g,""),e_=()=>{let e=E();return!!e&&(e.remove(),eo([document.documentElement,document.body],[h["no-backdrop"],h["toast-shown"],h["has-column"]]),!0)},ek=()=>{s.currentInstance&&s.currentInstance.resetValidationMessage()},eS=()=>{let e=T();if(!e)return;let t=es(e,h.input),r=es(e,h.file),n=e.querySelector(`.${h.range} input`),i=e.querySelector(`.${h.range} output`),o=es(e,h.select),s=e.querySelector(`.${h.checkbox} input`),a=es(e,h.textarea);t&&(t.oninput=ek),r&&(r.onchange=ek),o&&(o.onchange=ek),s&&(s.onchange=ek),a&&(a.oninput=ek),n&&i&&(n.oninput=()=>{ek(),i.value=n.value},n.onchange=()=>{ek(),i.value=n.value})},eC=e=>{if("string"==typeof e){let t=document.querySelector(e);if(!t)throw Error(`Target element "${e}" not found`);return t}return e},eE=e=>{let t=T();t&&(t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true"))},eO=e=>{"rtl"===window.getComputedStyle(e).direction&&(ei(E(),h.rtl),s.isRTL=!0)},eI=e=>{let t=e_();if(ew())return void v("SweetAlert2 requires document to initialize");let r=document.createElement("div");r.className=h.container,t&&ei(r,h["no-transition"]),K(r,ex),r.dataset["swal2Theme"]=e.theme;let n=eC(e.target||"body");n.appendChild(r),e.topLayer&&(r.setAttribute("popover",""),r.showPopover()),eE(e),eO(n),eS()},eT=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?eA(e,t):e&&K(t,e)},eA=(e,t)=>{"jquery"in e?eM(t,e):K(t,e.toString())},eM=(e,t)=>{if(e.textContent="",0 in t)for(let r=0;r in t;r++)e.appendChild(t[r].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},eR=(e,t)=>{let r=q(),n=z();r&&n&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?ec(r):eu(r),ee(r,t,"actions"),eP(r,n,t),K(n,t.loaderHtml||""),ee(n,t,"loader"))};function eP(e,t,r){let n=B(),i=j(),o=F();n&&i&&o&&(eN(n,"confirm",r),eN(i,"deny",r),eN(o,"cancel",r),eL(n,i,o,r),r.reverseButtons&&(r.toast?(e.insertBefore(o,n),e.insertBefore(i,n)):(e.insertBefore(o,t),e.insertBefore(i,t),e.insertBefore(n,t))))}function eL(e,t,r,n){if(!n.buttonsStyling)return void eo([e,t,r],h.styled);ei([e,t,r],h.styled);let i=[[e,"confirm",n.confirmButtonColor],[t,"deny",n.denyButtonColor],[r,"cancel",n.cancelButtonColor]];i.forEach(([e,t,r])=>{r&&e.style.setProperty(`--swal2-${t}-button-background-color`,r),eD(e)})}function eD(e){let t=window.getComputedStyle(e);if(t.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;let r=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-focus-box-shadow",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${r}`))}function eN(e,t,r){let n=g(t);ed(e,r[`show${n}Button`],"inline-block"),K(e,r[`${t}ButtonText`]||""),e.setAttribute("aria-label",r[`${t}ButtonAriaLabel`]||""),e.className=h[t],ee(e,r,`${t}Button`)}let eB=(e,t)=>{let r=W();r&&(K(r,t.closeButtonHtml||""),ee(r,t,"closeButton"),ed(r,t.showCloseButton),r.setAttribute("aria-label",t.closeButtonAriaLabel||""))},eF=(e,t)=>{let r=E();r&&(ej(r,t.backdrop),eU(r,t.position),ez(r,t.grow),ee(r,t,"container"))};function ej(e,t){"string"==typeof t?e.style.background=t:t||ei([document.documentElement,document.body],h["no-backdrop"])}function eU(e,t){t&&(t in h?ei(e,h[t]):(m('The "position" parameter is not valid, defaulting to "center"'),ei(e,h.center)))}function ez(e,t){t&&ei(e,h[`grow-${t}`])}var eq={innerParams:new WeakMap,domCache:new WeakMap,focusedElement:new WeakMap};let eH=["input","file","range","select","radio","checkbox","textarea"],e$=(e,t)=>{let r=T();if(!r)return;let n=eq.innerParams.get(e),i=!n||t.input!==n.input;eH.forEach(e=>{let n=es(r,h[e]);n&&(eY(e,t.inputAttributes),n.className=h[e],i&&eu(n))}),t.input&&(i&&eW(t),eX(t))},eW=e=>{if(!e.input)return;if(!eQ[e.input])return void v(`Unexpected type of input! Expected ${Object.keys(eQ).join(" | ")}, got "${e.input}"`);let t=eK(e.input);if(!t)return;let r=eQ[e.input](t,e);ec(t),e.inputAutoFocus&&setTimeout(()=>{er(r)})},eV=e=>{for(let{name:t}of Array.from(e.attributes))["id","type","value","style"].includes(t)||e.removeAttribute(t)},eY=(e,t)=>{let r=T();if(!r)return;let n=et(r,e);if(n)for(let e in eV(n),t)n.setAttribute(e,t[e])},eX=e=>{if(!e.input)return;let t=eK(e.input);t&&ee(t,e,"input")},eG=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},eJ=(e,t,r)=>{if(r.inputLabel){let n=document.createElement("label"),i=h["input-label"];n.setAttribute("for",e.id),n.className=i,"object"==typeof r.customClass&&ei(n,r.customClass.inputLabel),n.innerText=r.inputLabel,t.insertAdjacentElement("beforebegin",n)}},eK=e=>{let t=T();if(t)return es(t,h[e]||h.input)},eZ=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:S(t)||m(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},eQ={};eQ.text=eQ.email=eQ.password=eQ.number=eQ.tel=eQ.url=eQ.search=eQ.date=eQ["datetime-local"]=eQ.time=eQ.week=eQ.month=(e,t)=>{let r=e;return eZ(r,t.inputValue),eJ(r,r,t),eG(r,t),r.type=t.input,r},eQ.file=(e,t)=>{let r=e;return eJ(r,r,t),eG(r,t),r},eQ.range=(e,t)=>{let r=e,n=r.querySelector("input"),i=r.querySelector("output");return n&&(eZ(n,t.inputValue),n.type=t.input,eJ(n,e,t)),i&&eZ(i,t.inputValue),e},eQ.select=(e,t)=>{let r=e;if(r.textContent="",t.inputPlaceholder){let e=document.createElement("option");K(e,t.inputPlaceholder),e.value="",e.disabled=!0,e.selected=!0,r.appendChild(e)}return eJ(r,r,t),r},eQ.radio=e=>{let t=e;return t.textContent="",e},eQ.checkbox=(e,t)=>{let r=T();if(!r)throw Error("Popup not found");let n=et(r,"checkbox");if(!n)throw Error("Checkbox input not found");n.value="1",n.checked=!!t.inputValue;let i=e,o=i.querySelector("span");if(o){let e=t.inputPlaceholder||t.inputLabel;e&&K(o,e)}return n},eQ.textarea=(e,t)=>{let r=e;eZ(r,t.inputValue),eG(r,t),eJ(r,r,t);let n=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight);return setTimeout(()=>{if("MutationObserver"in window){let e=T();if(!e)return;let i=parseInt(window.getComputedStyle(e).width),o=()=>{if(!document.body.contains(r))return;let e=r.offsetWidth+n(r),o=T();o&&(e>i?o.style.width=`${e}px`:ea(o,"width",t.width))};new MutationObserver(o).observe(r,{attributes:!0,attributeFilter:["style"]})}}),r};let e0=(e,t)=>{let r=P();r&&(el(r),ee(r,t,"htmlContainer"),t.html?(eT(t.html,r),ec(r,"block")):t.text?(r.textContent=t.text,ec(r,"block")):eu(r),e$(e,t))},e1=(e,t)=>{let r=H();r&&(el(r),ed(r,!!t.footer,"block"),t.footer&&eT(t.footer,r),ee(r,t,"footer"))},e2=(e,t)=>{let r=eq.innerParams.get(e),n=A();if(!n)return;if(r&&t.icon===r.icon){e3(n,t),e4(n,t);return}if(!t.icon&&!t.iconHtml)return void eu(n);if(t.icon&&-1===Object.keys(f).indexOf(t.icon)){v(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),eu(n);return}ec(n),e3(n,t),e4(n,t),ei(n,t.showClass&&t.showClass.icon);let i=window.matchMedia("(prefers-color-scheme: dark)");i.addEventListener("change",e5)},e4=(e,t)=>{for(let[r,n]of Object.entries(f))t.icon!==r&&eo(e,n);ei(e,t.icon&&f[t.icon]),e7(e,t),e5(),ee(e,t,"icon")},e5=()=>{let e=T();if(!e)return;let t=window.getComputedStyle(e).getPropertyValue("background-color"),r=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");r.forEach(e=>{e.style.backgroundColor=t})},e8=e=>`
|
|
50
|
+
${e.animation?'<div class="swal2-success-circular-line-left"></div>':""}
|
|
51
|
+
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
52
|
+
<div class="swal2-success-ring"></div>
|
|
53
|
+
${e.animation?'<div class="swal2-success-fix"></div>':""}
|
|
54
|
+
${e.animation?'<div class="swal2-success-circular-line-right"></div>':""}
|
|
55
|
+
`,e6=`
|
|
56
|
+
<span class="swal2-x-mark">
|
|
57
|
+
<span class="swal2-x-mark-line-left"></span>
|
|
58
|
+
<span class="swal2-x-mark-line-right"></span>
|
|
59
|
+
</span>
|
|
60
|
+
`,e3=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let r=e.innerHTML,n="";if(t.iconHtml)n=e9(t.iconHtml);else if("success"===t.icon)n=e8(t),r=r.replace(/ style=".*?"/g,"");else if("error"===t.icon)n=e6;else if(t.icon){let e={question:"?",warning:"!",info:"i"};n=e9(e[t.icon])}r.trim()!==n.trim()&&K(e,n)},e7=(e,t)=>{if(t.iconColor){for(let r of(e.style.color=t.iconColor,e.style.borderColor=t.iconColor,[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"]))eh(e,r,"background-color",t.iconColor);eh(e,".swal2-success-ring","border-color",t.iconColor)}},e9=e=>`<div class="${h["icon-content"]}">${e}</div>`,te=(e,t)=>{let r=L();if(r){if(!t.imageUrl)return void eu(r);ec(r,""),r.setAttribute("src",t.imageUrl),r.setAttribute("alt",t.imageAlt||""),ea(r,"width",t.imageWidth),ea(r,"height",t.imageHeight),r.className=h.image,ee(r,t,"image")}},tt=!1,tr=0,tn=0,ti=0,to=0,ts=e=>{e.addEventListener("mousedown",tc),document.body.addEventListener("mousemove",tu),e.addEventListener("mouseup",tl),e.addEventListener("touchstart",tc),document.body.addEventListener("touchmove",tu),e.addEventListener("touchend",tl)},ta=e=>{e.removeEventListener("mousedown",tc),document.body.removeEventListener("mousemove",tu),e.removeEventListener("mouseup",tl),e.removeEventListener("touchstart",tc),document.body.removeEventListener("touchmove",tu),e.removeEventListener("touchend",tl)},tc=e=>{let t=T();if(!t)return;let r=A();if(e.target===t||r&&r.contains(e.target)){tt=!0;let r=th(e);tr=r.clientX,tn=r.clientY,ti=parseInt(t.style.insetInlineStart)||0,to=parseInt(t.style.insetBlockStart)||0,ei(t,"swal2-dragging")}},tu=e=>{let t=T();if(t&&tt){let{clientX:r,clientY:n}=th(e),i=r-tr;t.style.insetInlineStart=`${ti+(s.isRTL?-i:i)}px`,t.style.insetBlockStart=`${to+(n-tn)}px`}},tl=()=>{let e=T();tt=!1,eo(e,"swal2-dragging")},th=e=>{let t=e.type.startsWith("touch")?e.touches[0]:e;return{clientX:t.clientX,clientY:t.clientY}},td=(e,t)=>{let r=E(),n=T();if(r&&n){if(t.toast){ea(r,"width",t.width),n.style.width="100%";let e=z();e&&n.insertBefore(e,A())}else ea(n,"width",t.width);ea(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),eu(N()),tf(n,t),t.draggable&&!t.toast?(ei(n,h.draggable),ts(n)):(eo(n,h.draggable),ta(n))}},tf=(e,t)=>{let r=t.showClass||{};e.className=`${h.popup} ${ef(e)?r.popup:""}`,t.toast?(ei([document.documentElement,document.body],h["toast-shown"]),ei(e,h.toast)):ei(e,h.modal),ee(e,t,"popup"),"string"==typeof t.customClass&&ei(e,t.customClass),t.icon&&ei(e,h[`icon-${t.icon}`])},tp=(e,t)=>{let r=D();if(!r)return;let{progressSteps:n,currentProgressStep:i}=t;n&&0!==n.length&&void 0!==i?(ec(r),r.textContent="",i>=n.length&&m("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach((e,o)=>{let s=tg(e);if(r.appendChild(s),o===i&&ei(s,h["active-progress-step"]),o!==n.length-1){let e=tm(t);r.appendChild(e)}})):eu(r)},tg=e=>{let t=document.createElement("li");return ei(t,h["progress-step"]),K(t,e),t},tm=e=>{let t=document.createElement("li");return ei(t,h["progress-step-line"]),e.progressStepsDistance&&ea(t,"width",e.progressStepsDistance),t},tv=(e,t)=>{let r=R();r&&(el(r),ed(r,!!(t.title||t.titleText),"block"),t.title&&eT(t.title,r),t.titleText&&(r.innerText=t.titleText),ee(r,t,"title"))},ty=(e,t)=>{var r;td(e,t),eF(e,t),tp(e,t),e2(e,t),te(e,t),tv(e,t),eB(e,t),e0(e,t),eR(e,t),e1(e,t);let n=T();"function"==typeof t.didRender&&n&&t.didRender(n),null==(r=s.eventEmitter)||r.emit("didRender",n)},tb=()=>ef(T()),tw=()=>{var e;return null==(e=B())?void 0:e.click()},tx=()=>{var e;return null==(e=j())?void 0:e.click()},t_=()=>{var e;return null==(e=F())?void 0:e.click()},tk=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),tS=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){let t=e.keydownHandler;e.keydownTarget.removeEventListener("keydown",t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},tC=(e,t,r)=>{if(tS(e),!t.toast){let n=e=>tT(t,e,r);e.keydownHandler=n;let i=t.keydownListenerCapture?window:T();if(i){e.keydownTarget=i,e.keydownListenerCapture=t.keydownListenerCapture;let r=n;e.keydownTarget.addEventListener("keydown",r,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}},tE=(e,t)=>{var r;let n=Y();return n.length?(-2===(e+=t)&&(e=n.length-1),e===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus(),!(C()&&n[e]instanceof HTMLIFrameElement)):(null==(r=T())||r.focus(),!0)},tO=["ArrowRight","ArrowDown"],tI=["ArrowLeft","ArrowUp"],tT=(e,t,r)=>{!e||t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?tA(t,e):"Tab"===t.key?tM(t):[...tO,...tI].includes(t.key)?tR(t.key):"Escape"===t.key&&tP(t,e,r))},tA=(e,t)=>{if(!x(t.allowEnterKey))return;let r=T();if(!r||!t.input)return;let n=et(r,t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;tw(),e.preventDefault()}},tM=e=>{let t=e.target,r=Y(),n=r.findIndex(e=>e===t),i=!0;i=e.shiftKey?tE(n,-1):tE(n,1),e.stopPropagation(),i&&e.preventDefault()},tR=e=>{let t=q(),r=B(),n=j(),i=F();if(!t||!r||!n||!i)return;let o=[r,n,i];if(document.activeElement instanceof HTMLElement&&!o.includes(document.activeElement))return;let s=tO.includes(e)?"nextElementSibling":"previousElementSibling",a=document.activeElement;if(a){for(let e=0;e<t.children.length;e++){if(!(a=a[s]))return;if(a instanceof HTMLButtonElement&&ef(a))break}a instanceof HTMLButtonElement&&a.focus()}},tP=(e,t,r)=>{e.preventDefault(),x(t.allowEscapeKey)&&r(tk.esc)};var tL={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};let tD=()=>{let e=E(),t=Array.from(document.body.children);t.forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},tN=()=>{let e=Array.from(document.body.children);e.forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},tB="u">typeof window&&!!window.GestureEvent,tF=tB&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,tj=()=>{if(tB&&!Z(document.body,h.iosfix)){let e=document.body.scrollTop;document.body.style.top=`${-1*e}px`,ei(document.body,h.iosfix),tU()}},tU=()=>{let e=E();if(!e)return;let t;e.ontouchstart=e=>{t=tz(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},tz=e=>{let t=e.target,r=E(),n=P();return!(!r||!n||tq(e)||tH(e))&&!!(t===r||!eg(r)&&t instanceof HTMLElement&&!em(t,n)&&"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!(eg(n)&&n.contains(t)))},tq=e=>!!(e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType),tH=e=>e.touches&&e.touches.length>1,t$=()=>{if(Z(document.body,h.iosfix)){let e=parseInt(document.body.style.top,10);eo(document.body,h.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},tW=()=>{let e=document.createElement("div");e.className=h["scrollbar-measure"],document.body.appendChild(e);let t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},tV=null,tY=e=>{null===tV&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(tV=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${tV+tW()}px`)},tX=()=>{null!==tV&&(document.body.style.paddingRight=`${tV}px`,tV=null)};function tG(e,t,r,n){G()?t5(e,n):(c(r).then(()=>t5(e,n)),tS(s)),tB?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),X()&&(tX(),t$(),tN()),tJ()}function tJ(){eo([document.documentElement,document.body],[h.shown,h["height-auto"],h["no-backdrop"],h["toast-shown"]])}function tK(e){e=t1(e);let t=tL.swalPromiseResolve.get(this),r=tZ(this);this.isAwaitingPromise?e.isDismissed||(t0(this),t(e)):r&&t(e)}let tZ=e=>{let t=T();if(!t)return!1;let r=eq.innerParams.get(e);if(!r||Z(t,r.hideClass.popup))return!1;eo(t,r.showClass.popup),ei(t,r.hideClass.popup);let n=E();return eo(n,r.showClass.backdrop),ei(n,r.hideClass.backdrop),t2(e,t,r),!0};function tQ(e){let t=tL.swalPromiseReject.get(this);t0(this),t&&t(e)}let t0=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,eq.innerParams.get(e)||e._destroy())},t1=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),t2=(e,t,r)=>{var n;let i=E(),o=ev(t);"function"==typeof r.willClose&&r.willClose(t),null==(n=s.eventEmitter)||n.emit("willClose",t),o&&i?t4(e,t,i,!!r.returnFocus,r.didClose):i&&tG(e,i,!!r.returnFocus,r.didClose)},t4=(e,t,r,n,i)=>{s.swalCloseEventFinishedCallback=tG.bind(null,e,r,n,i);let o=function(e){if(e.target===t){var r;null==(r=s.swalCloseEventFinishedCallback)||r.call(s),delete s.swalCloseEventFinishedCallback,t.removeEventListener("animationend",o),t.removeEventListener("transitionend",o)}};t.addEventListener("animationend",o),t.addEventListener("transitionend",o)},t5=(e,t)=>{setTimeout(()=>{var r;"function"==typeof t&&t.bind(e.params)(),null==(r=s.eventEmitter)||r.emit("didClose"),e._destroy&&e._destroy()})},t8=e=>{let t=T();if(t||new nz,!(t=T()))return;let r=z();G()?eu(A()):t6(t,e),ec(r),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},t6=(e,t)=>{let r=q(),n=z();r&&n&&(!t&&ef(B())&&(t=B()),ec(r),t&&(eu(t),n.setAttribute("data-button-to-replace",t.className),r.insertBefore(n,t)),ei([e,r],h.loading))},t3=(e,t)=>{"select"===t.input||"radio"===t.input?rr(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(_(t.inputValue)||S(t.inputValue))&&(t8(B()),rn(e,t))},t7=(e,t)=>{let r=e.getInput();if(!r)return null;switch(t.input){case"checkbox":return t9(r);case"radio":return re(r);case"file":return rt(r);default:return t.inputAutoTrim?r.value.trim():r.value}},t9=e=>+!!e.checked,re=e=>e.checked?e.value:null,rt=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,rr=(e,t)=>{let r=T();if(!r)return;let n=e=>{"select"===t.input?ri(r,rs(e),t):"radio"===t.input&&ro(r,rs(e),t)};_(t.inputOptions)||S(t.inputOptions)?(t8(B()),k(t.inputOptions).then(t=>{e.hideLoading(),n(t)})):"object"==typeof t.inputOptions?n(t.inputOptions):v(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},rn=(e,t)=>{let r=e.getInput();r&&(eu(r),k(t.inputValue).then(n=>{r.value="number"===t.input?`${parseFloat(n)||0}`:`${n}`,ec(r),r.focus(),e.hideLoading()}).catch(t=>{v(`Error in inputValue promise: ${t}`),r.value="",ec(r),r.focus(),e.hideLoading()}))};function ri(e,t,r){let n=es(e,h.select);if(!n)return;let i=(e,t,n)=>{let i=document.createElement("option");i.value=n,K(i,t),i.selected=ra(n,r.inputValue),e.appendChild(i)};t.forEach(e=>{let t=e[0],r=e[1];if(Array.isArray(r)){let e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),r.forEach(t=>i(e,t[1],t[0]))}else i(n,r,t)}),n.focus()}function ro(e,t,r){let n=es(e,h.radio);if(!n)return;t.forEach(e=>{let t=e[0],i=e[1],o=document.createElement("input"),s=document.createElement("label");o.type="radio",o.name=h.radio,o.value=t,ra(t,r.inputValue)&&(o.checked=!0);let a=document.createElement("span");K(a,i),a.className=h.label,s.appendChild(o),s.appendChild(a),n.appendChild(s)});let i=n.querySelectorAll("input");i.length&&i[0].focus()}let rs=e=>{let t=e instanceof Map?Array.from(e):Object.entries(e);return t.map(([e,t])=>[e,"object"==typeof t?rs(t):t])},ra=(e,t)=>!!t&&null!=t&&t.toString()===e.toString(),rc=e=>{let t=eq.innerParams.get(e);e.disableButtons(),t.input?rh(e,"confirm"):rm(e,!0)},ru=e=>{let t=eq.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?rh(e,"deny"):rf(e,!1)},rl=(e,t)=>{e.disableButtons(),t(tk.cancel)},rh=(e,t)=>{let r=eq.innerParams.get(e);if(!r.input)return void v(`The "input" parameter is needed to be set when using returnInputValueOn${g(t)}`);let n=e.getInput(),i=t7(e,r);r.inputValidator?rd(e,i,t):n&&!n.checkValidity()?(e.enableButtons(),e.showValidationMessage(r.validationMessage||n.validationMessage)):"deny"===t?rf(e,i):rm(e,i)},rd=(e,t,r)=>{let n=eq.innerParams.get(e);e.disableInput();let i=Promise.resolve().then(()=>k(n.inputValidator(t,n.validationMessage)));i.then(n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===r?rf(e,t):rm(e,t)})},rf=(e,t)=>{let r=eq.innerParams.get(e);if(r.showLoaderOnDeny&&t8(j()),r.preDeny){e.isAwaitingPromise=!0;let n=Promise.resolve().then(()=>k(r.preDeny(t,r.validationMessage)));n.then(r=>{!1===r?(e.hideLoading(),t0(e)):e.close({isDenied:!0,value:void 0===r?t:r})}).catch(t=>rg(e,t))}else e.close({isDenied:!0,value:t})},rp=(e,t)=>{e.close({isConfirmed:!0,value:t})},rg=(e,t)=>{e.rejectPromise(t)},rm=(e,t)=>{let r=eq.innerParams.get(e);if(r.showLoaderOnConfirm&&t8(),r.preConfirm){e.resetValidationMessage(),e.isAwaitingPromise=!0;let n=Promise.resolve().then(()=>k(r.preConfirm(t,r.validationMessage)));n.then(r=>{ef(N())||!1===r?(e.hideLoading(),t0(e)):rp(e,void 0===r?t:r)}).catch(t=>rg(e,t))}else rp(e,t)};function rv(){let e=eq.innerParams.get(this);if(!e)return;let t=eq.domCache.get(this);eu(t.loader),G()?e.icon&&ec(A()):ry(t),eo([t.popup,t.actions],h.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),this.enableButtons()}let ry=e=>{let t=e.loader.getAttribute("data-button-to-replace"),r=t?e.popup.getElementsByClassName(t):[];r.length?ec(r[0],"inline-block"):ep()&&eu(e.actions)};function rb(){let e=eq.innerParams.get(this),t=eq.domCache.get(this);return t?et(t.popup,e.input):null}function rw(e,t,r){let n=eq.domCache.get(e);t.forEach(e=>{n[e].disabled=r})}function rx(e,t){let r=T();if(r&&e)if("radio"===e.type){let e=r.querySelectorAll(`[name="${h.radio}"]`);e.forEach(e=>{e.disabled=t})}else e.disabled=t}function r_(){rw(this,["confirmButton","denyButton","cancelButton"],!1);let e=eq.focusedElement.get(this);e instanceof HTMLElement&&document.activeElement===document.body&&e.focus(),eq.focusedElement.delete(this)}function rk(){eq.focusedElement.set(this,document.activeElement),rw(this,["confirmButton","denyButton","cancelButton"],!0)}function rS(){rx(this.getInput(),!1)}function rC(){rx(this.getInput(),!0)}function rE(e){let t=eq.domCache.get(this),r=eq.innerParams.get(this);K(t.validationMessage,e),t.validationMessage.className=h["validation-message"],r.customClass&&r.customClass.validationMessage&&ei(t.validationMessage,r.customClass.validationMessage),ec(t.validationMessage);let n=this.getInput();n&&(n.setAttribute("aria-invalid","true"),n.setAttribute("aria-describedby",h["validation-message"]),er(n),ei(n,h.inputerror))}function rO(){let e=eq.domCache.get(this);e.validationMessage&&eu(e.validationMessage);let t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),eo(t,h.inputerror))}let rI={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},rT=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],rA={allowEnterKey:void 0},rM=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],rR=e=>Object.prototype.hasOwnProperty.call(rI,e),rP=e=>-1!==rT.indexOf(e),rL=e=>rA[e],rD=e=>{rR(e)||m(`Unknown parameter "${e}"`)},rN=e=>{rM.includes(e)&&m(`The parameter "${e}" is incompatible with toasts`)},rB=e=>{let t=rL(e);t&&w(e,t)},rF=e=>{for(let t in!1===e.backdrop&&e.allowOutsideClick&&m('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(e.theme)&&m(`Invalid theme "${e.theme}"`),e)rD(t),e.toast&&rN(t),rB(t)};function rj(e){let t=E(),r=T(),n=eq.innerParams.get(this);if(!r||Z(r,n.hideClass.popup))return void m("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");let i=rU(e),o=Object.assign({},n,i);rF(o),t&&(t.dataset["swal2Theme"]=o.theme),ty(this,o),eq.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}let rU=e=>{let t={};return Object.keys(e).forEach(r=>{if(rP(r)){let n=e;t[r]=n[r]}else m(`Invalid parameter to update: ${r}`)}),t};function rz(){var e;let t=eq.domCache.get(this),r=eq.innerParams.get(this);r?(t.popup&&s.swalCloseEventFinishedCallback&&(s.swalCloseEventFinishedCallback(),delete s.swalCloseEventFinishedCallback),"function"==typeof r.didDestroy&&r.didDestroy(),null==(e=s.eventEmitter)||e.emit("didDestroy"),rq(this)):rH(this)}let rq=e=>{rH(e),delete e.params,delete s.keydownHandler,delete s.keydownTarget,delete s.currentInstance},rH=e=>{e.isAwaitingPromise?(r$(eq,e),e.isAwaitingPromise=!0):(r$(tL,e),r$(eq,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},r$=(e,t)=>{for(let r in e)e[r].delete(t)};var rW=Object.freeze({__proto__:null,_destroy:rz,close:tK,closeModal:tK,closePopup:tK,closeToast:tK,disableButtons:rk,disableInput:rC,disableLoading:rv,enableButtons:r_,enableInput:rS,getInput:rb,handleAwaitingPromise:t0,hideLoading:rv,rejectPromise:tQ,resetValidationMessage:rO,showValidationMessage:rE,update:rj});let rV=(e,t,r)=>{e.toast?rY(e,t,r):(rJ(t),rK(t),rZ(e,t,r))},rY=(e,t,r)=>{t.popup.onclick=()=>{e&&(rX(e)||e.timer||e.input)||r(tk.close)}},rX=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton),rG=!1,rJ=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(rG=!0)}}},rK=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(rG=!0)}}},rZ=(e,t,r)=>{t.container.onclick=n=>{if(rG){rG=!1;return}n.target===t.container&&x(e.allowOutsideClick)&&r(tk.backdrop)}},rQ=e=>"object"==typeof e&&null!==e&&"jquery"in e,r0=e=>e instanceof Element||rQ(e),r1=e=>{let t={};return"object"!=typeof e[0]||r0(e[0])?["title","html","icon"].forEach((r,n)=>{let i=e[n];"string"==typeof i||r0(i)?t[r]=i:void 0!==i&&v(`Unexpected type of ${r}! Expected "string" or "Element", got ${typeof i}`)}):Object.assign(t,e[0]),t};function r2(...e){return new this(...e)}function r4(e){class t extends this{_main(t,r){return super._main(t,Object.assign({},e,r))}}return t}let r5=()=>s.timeout&&s.timeout.getTimerLeft(),r8=()=>{if(s.timeout)return eb(),s.timeout.stop()},r6=()=>{if(s.timeout){let e=s.timeout.start();return ey(e),e}},r3=()=>{let e=s.timeout;return e&&(e.running?r8():r6())},r7=e=>{if(s.timeout){let t=s.timeout.increase(e);return ey(t,!0),t}},r9=()=>!!(s.timeout&&s.timeout.isRunning()),ne=!1,nt={};function nr(e="data-swal-template"){nt[e]=this,ne||(document.body.addEventListener("click",nn),ne=!0)}let nn=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(let e in nt){let r=t.getAttribute&&t.getAttribute(e);if(r)return void nt[e].fire({template:r})}};class ni{constructor(){this.events={}}_getHandlersByEventName(e){return void 0===this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){let r=this._getHandlersByEventName(e);r.includes(t)||r.push(t)}once(e,t){let r=(...n)=>{this.removeListener(e,r),t.apply(this,n)};this.on(e,r)}emit(e,...t){this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,t)}catch(e){console.error(e)}})}removeListener(e,t){let r=this._getHandlersByEventName(e),n=r.indexOf(t);n>-1&&r.splice(n,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}}s.eventEmitter=new ni;let no=(e,t)=>{s.eventEmitter&&s.eventEmitter.on(e,t)},ns=(e,t)=>{s.eventEmitter&&s.eventEmitter.once(e,t)},na=(e,t)=>{if(s.eventEmitter){if(!e)return void s.eventEmitter.reset();t?s.eventEmitter.removeListener(e,t):s.eventEmitter.removeAllListeners(e)}};var nc=Object.freeze({__proto__:null,argsToParams:r1,bindClickHandler:nr,clickCancel:t_,clickConfirm:tw,clickDeny:tx,enableLoading:t8,fire:r2,getActions:q,getCancelButton:F,getCloseButton:W,getConfirmButton:B,getContainer:E,getDenyButton:j,getFocusableElements:Y,getFooter:H,getHtmlContainer:P,getIcon:A,getIconContent:M,getImage:L,getInputLabel:U,getLoader:z,getPopup:T,getProgressSteps:D,getTimerLeft:r5,getTimerProgressBar:$,getTitle:R,getValidationMessage:N,increaseTimer:r7,isDeprecatedParameter:rL,isLoading:J,isTimerRunning:r9,isUpdatableParameter:rP,isValidParameter:rR,isVisible:tb,mixin:r4,off:na,on:no,once:ns,resumeTimer:r6,showLoading:t8,stopTimer:r8,toggleTimer:r3});class nu{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){let t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}let nl=["swal-title","swal-html","swal-footer"],nh=e=>{let t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};let r=t.content;nb(r);let n=Object.assign(nd(r),nf(r),np(r),ng(r),nm(r),nv(r),ny(r,nl));return n},nd=e=>{let t={},r=Array.from(e.querySelectorAll("swal-param"));return r.forEach(e=>{nw(e,["name","value"]);let r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(r in rI&&"boolean"==typeof rI[r]?t[r]="false"!==n:r in rI&&"object"==typeof rI[r]?t[r]=JSON.parse(n):t[r]=n)}),t},nf=e=>{let t={},r=Array.from(e.querySelectorAll("swal-function-param"));return r.forEach(e=>{let r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(t[r]=Function(`return ${n}`)())}),t},np=e=>{let t={},r=Array.from(e.querySelectorAll("swal-button"));return r.forEach(e=>{nw(e,["type","color","aria-label"]);let r=e.getAttribute("type");if(!r||!["confirm","cancel","deny"].includes(r))return;t[`${r}ButtonText`]=e.innerHTML,t[`show${g(r)}Button`]=!0;let n=e.getAttribute("color");null!==n&&(t[`${r}ButtonColor`]=n);let i=e.getAttribute("aria-label");null!==i&&(t[`${r}ButtonAriaLabel`]=i)}),t},ng=e=>{let t={},r=e.querySelector("swal-image");if(r){nw(r,["src","width","height","alt"]);let e=r.getAttribute("src");null!==e&&(t.imageUrl=e||void 0);let n=r.getAttribute("width");null!==n&&(t.imageWidth=n||void 0);let i=r.getAttribute("height");null!==i&&(t.imageHeight=i||void 0);let o=r.getAttribute("alt");null!==o&&(t.imageAlt=o||void 0)}return t},nm=e=>{let t={},r=e.querySelector("swal-icon");return r&&(nw(r,["type","color"]),r.hasAttribute("type")&&(t.icon=r.getAttribute("type")),r.hasAttribute("color")&&(t.iconColor=r.getAttribute("color")),t.iconHtml=r.innerHTML),t},nv=e=>{let t={},r=e.querySelector("swal-input");r&&(nw(r,["type","label","placeholder","value"]),t.input=r.getAttribute("type")||"text",r.hasAttribute("label")&&(t.inputLabel=r.getAttribute("label")),r.hasAttribute("placeholder")&&(t.inputPlaceholder=r.getAttribute("placeholder")),r.hasAttribute("value")&&(t.inputValue=r.getAttribute("value")));let n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach(e=>{nw(e,["value"]);let r=e.getAttribute("value");if(!r)return;let n=e.innerHTML;t.inputOptions[r]=n})),t},ny=(e,t)=>{let r={};for(let n in t){let i=t[n],o=e.querySelector(i);o&&(nw(o,[]),r[i.replace(/^swal-/,"")]=o.innerHTML.trim())}return r},nb=e=>{let t=nl.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{let r=e.tagName.toLowerCase();t.includes(r)||m(`Unrecognized element <${r}>`)})},nw=(e,t)=>{Array.from(e.attributes).forEach(r=>{-1===t.indexOf(r.name)&&m([`Unrecognized attribute "${r.name}" on <${e.tagName.toLowerCase()}>.`,`${t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."}`])})},nx=10,n_=e=>{var t,r;let n=E(),i=T();if(!n||!i)return;"function"==typeof e.willOpen&&e.willOpen(i),null==(t=s.eventEmitter)||t.emit("willOpen",i);let o=window.getComputedStyle(document.body),a=o.overflowY;if(nE(n,i,e),setTimeout(()=>{nS(n,i)},nx),X()&&(nC(n,void 0!==e.scrollbarPadding&&e.scrollbarPadding,a),tD()),tF&&!1===e.backdrop&&i.scrollHeight>n.clientHeight&&(n.style.pointerEvents="auto"),G()||s.previousActiveElement||(s.previousActiveElement=document.activeElement),"function"==typeof e.didOpen){let t=e.didOpen;setTimeout(()=>t(i))}null==(r=s.eventEmitter)||r.emit("didOpen",i)},nk=e=>{let t=T();if(!t||e.target!==t)return;let r=E();r&&(t.removeEventListener("animationend",nk),t.removeEventListener("transitionend",nk),r.style.overflowY="auto",eo(r,h["no-transition"]))},nS=(e,t)=>{ev(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",nk),t.addEventListener("transitionend",nk)):e.style.overflowY="auto"},nC=(e,t,r)=>{tj(),t&&"hidden"!==r&&tY(r),setTimeout(()=>{e.scrollTop=0})},nE=(e,t,r)=>{var n;null!=(n=r.showClass)&&n.backdrop&&ei(e,r.showClass.backdrop),r.animation?(t.style.setProperty("opacity","0","important"),ec(t,"grid"),setTimeout(()=>{var e;null!=(e=r.showClass)&&e.popup&&ei(t,r.showClass.popup),t.style.removeProperty("opacity")},nx)):ec(t,"grid"),ei([document.documentElement,document.body],h.shown),r.heightAuto&&r.backdrop&&!r.toast&&ei([document.documentElement,document.body],h["height-auto"])};var nO={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function nI(e){e.inputValidator||("email"===e.input&&(e.inputValidator=nO["email"]),"url"===e.input&&(e.inputValidator=nO["url"]))}function nT(e){e.target&&("string"!=typeof e.target||document.querySelector(e.target))&&("string"==typeof e.target||e.target.appendChild)||(m('Target parameter is not valid, defaulting to "body"'),e.target="body")}function nA(e){nI(e),e.showLoaderOnConfirm&&!e.preConfirm&&m("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),nT(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),eI(e)}let nM;var nR=new WeakMap;class nP{constructor(...e){if(n(this,nR,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),"u"<typeof window)return;nM=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,i(nR,this,this._main(nM.params))}_main(e,t={}){if(rF(Object.assign({},t,e)),s.currentInstance){let e=tL.swalPromiseResolve.get(s.currentInstance),{isAwaitingPromise:t}=s.currentInstance;s.currentInstance._destroy(),t||e({isDismissed:!0}),X()&&tN()}s.currentInstance=nM;let r=nD(e,t);nA(r),Object.freeze(r),s.timeout&&(s.timeout.stop(),delete s.timeout),clearTimeout(s.restoreFocusTimeout);let n=nN(nM);return ty(nM,r),eq.innerParams.set(nM,r),nL(nM,n,r)}then(e){return r(nR,this).then(e)}finally(e){return r(nR,this).finally(e)}}let nL=(e,t,r)=>new Promise((n,i)=>{let o=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};tL.swalPromiseResolve.set(e,n),tL.swalPromiseReject.set(e,i),t.confirmButton.onclick=()=>{rc(e)},t.denyButton.onclick=()=>{ru(e)},t.cancelButton.onclick=()=>{rl(e,o)},t.closeButton.onclick=()=>{o(tk.close)},rV(r,t,o),tC(s,r,o),t3(e,r),n_(r),nB(s,r,o),nF(t,r),setTimeout(()=>{t.container.scrollTop=0})}),nD=(e,t)=>{let r=nh(e),n=Object.assign({},rI,t,r,e);return n.showClass=Object.assign({},rI.showClass,n.showClass),n.hideClass=Object.assign({},rI.hideClass,n.hideClass),!1===n.animation&&(n.showClass={backdrop:"swal2-noanimation"},n.hideClass={}),n},nN=e=>{let t={popup:T(),container:E(),actions:q(),confirmButton:B(),denyButton:j(),cancelButton:F(),loader:z(),closeButton:W(),validationMessage:N(),progressSteps:D()};return eq.domCache.set(e,t),t},nB=(e,t,r)=>{let n=$();eu(n),t.timer&&(e.timeout=new nu(()=>{r("timer"),delete e.timeout},t.timer),t.timerProgressBar&&n&&(ec(n),ee(n,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&ey(t.timer)})))},nF=(e,t)=>{if(!t.toast){if(!x(t.allowEnterKey)){w("allowEnterKey","preConfirm: () => false"),e.popup.focus();return}nj(e)||nU(e,t)||tE(-1,1)}},nj=e=>{let t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(let e of t)if(e instanceof HTMLElement&&ef(e))return e.focus(),!0;return!1},nU=(e,t)=>t.focusDeny&&ef(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&ef(e.cancelButton)?(e.cancelButton.focus(),!0):!!(t.focusConfirm&&ef(e.confirmButton))&&(e.confirmButton.focus(),!0);nP.prototype.disableButtons=rk,nP.prototype.enableButtons=r_,nP.prototype.getInput=rb,nP.prototype.disableInput=rC,nP.prototype.enableInput=rS,nP.prototype.hideLoading=rv,nP.prototype.disableLoading=rv,nP.prototype.showValidationMessage=rE,nP.prototype.resetValidationMessage=rO,nP.prototype.close=tK,nP.prototype.closePopup=tK,nP.prototype.closeModal=tK,nP.prototype.closeToast=tK,nP.prototype.rejectPromise=tQ,nP.prototype.update=rj,nP.prototype._destroy=rz,Object.assign(nP,nc),Object.keys(rW).forEach(e=>{nP[e]=function(...t){if(nM&&nM[e])return nM[e](...t)}}),nP.DismissReason=tk,nP.version="11.26.25";let nz=nP;return nz.default=nz,nz}),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"u">typeof document&&function(e,t){var r=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(r),r.styleSheet)r.styleSheet.disabled||(r.styleSheet.cssText=t);else try{r.innerHTML=t}catch(e){r.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:auto}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:auto}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}')},891:function(){}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}!function(){r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,{a:t}),t}}(),function(){r.d=function(e,t,n){var i=function(t,n){for(var i in t)if(r.o(t,i)&&!r.o(e,i)){var o={enumerable:!0};o[n]=t[i],Object.defineProperty(e,i,o)}};i(t,"get"),i(n,"value")}}(),function(){r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}()}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){r.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}();var n={};return!function(){"use strict";r.r(n),r.d(n,{AlertService:function(){return t},DataModifierService:function(){return o},DraggableService:function(){return a},EventBus:function(){return cG},HTTPBaseService:function(){return aI},HelperService:function(){return e},HttpProcess:function(){return i},MixpanelService:function(){return Ix},ShrEventBus:function(){return cJ},ShrPusherService:function(){return c0},default:function(){return I_}});var e={};r.r(e),r.d(e,{allowOnlyNumber:function(){return iR},allowedDecimalPlaces:function(){return iP},customPasswordValidator:function(){return iM},dateFormatter:function(){return iF},decrypt:function(){return i_},decryptWithPrivateKey:function(){return iS},encrypt:function(){return ix},encryptWithPublicKey:function(){return ik},fromNow:function(){return iU},getBgColorFromName:function(){return ib},getLocalStorageItem:function(){return iE},getObjectProperty:function(){return iv},getSessionStorageItem:function(){return iT},getTextColorFromName:function(){return iw},highlightText:function(){return iL},httpBuildQuery:function(){return iN},imageExists:function(){return iD},isArray:function(){return ih},isEmptyObj:function(){return im},isFunction:function(){return id},isObject:function(){return ip},isString:function(){return il},loadRemoteEmbeddable:function(){return ij},numberFormat:function(){return iz},removeLocalStorageItem:function(){return iO},removeSessionStorageItem:function(){return iA},setLocalStorageItem:function(){return iC},setObjectProperty:function(){return iy},setSessionStorageItem:function(){return iI},ucFirst:function(){return ig},uuid:function(){return iB}});var t={};r.r(t),r.d(t,{alert:function(){return ag},fire:function(){return ap},toast:function(){return am}});var i={};r.r(i),r.d(i,{makeRequest:function(){return cV},makeRequestToExecute:function(){return cY}});var o={};r.r(o),r.d(o,{alterUsersForProfileStrip:function(){return cX}});let s={enableDragSort:e=>{window.onload=()=>{let t=document.querySelectorAll(e);Array.prototype.map.call(t,r=>{s.enableDragList(r),shrSafeLog(e,t)})}},enableDragList:e=>{Array.prototype.map.call(e.children,e=>{s.enableDragItem(e)})},enableDragItem:e=>{e.setAttribute("draggable",new Boolean(!0).toString()),e.ondrag=s.handleDrag,e.ondragend=s.handleDrop},handleDrag:e=>{let t=e.target,r=t.parentNode,n=e.clientX,i=e.clientY;t.classList.add("drag-sort-active");let o=null===document.elementFromPoint(n,i)?t:document.elementFromPoint(n,i);r===o?.parentNode&&(o=o!==t.nextSibling?o:o.nextSibling,r?.insertBefore(t,o))},handleDrop:e=>{e.target?.classList.remove("drag-sort-active")}};var a=s,c=r(6660),u=r.n(c);function l(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)"__proto__"!==n&&(e[n]=r[n])}return e}var h={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function d(e,t){function r(r,n,i){if("u">typeof document){"number"==typeof(i=l({},t,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var s in i)i[s]&&(o+="; "+s,!0!==i[s]&&(o+="="+i[s].split(";")[0]));return document.cookie=r+"="+e.write(n,r)+o}}return Object.create({set:r,get:function(t){if("u">typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var o=r[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(a in n||(n[a]=e.read(s,a)),t===a)break}catch(e){}}return t?n[t]:n}},remove:function(e,t){r(e,"",l({},t,{expires:-1}))},withAttributes:function(e){return d(this.converter,l({},this.attributes,e))},withConverter:function(e){return d(l({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var f=d(h,{path:"/"}),p="object"==typeof global&&global&&global.Object===Object&&global,g=p,m="object"==typeof self&&self&&self.Object===Object&&self,v=g||m||Function("return this")(),y=v,b=y.Symbol,w=b,x=Object.prototype,_=x.hasOwnProperty,k=x.toString,S=w?w.toStringTag:void 0;function C(e){var t=_.call(e,S),r=e[S];try{e[S]=void 0;var n=!0}catch(e){}var i=k.call(e);return n&&(t?e[S]=r:delete e[S]),i}var E=C,O=Object.prototype,I=O.toString;function T(e){return I.call(e)}var A=T,M="[object Null]",R="[object Undefined]",P=w?w.toStringTag:void 0;function L(e){return null==e?void 0===e?R:M:P&&P in Object(e)?E(e):A(e)}var D=L;function N(e,t){return function(r){return e(t(r))}}var B=N,F=B(Object.getPrototypeOf,Object),j=F;function U(e){return null!=e&&"object"==typeof e}var z=U,q="[object Object]",H=Function.prototype,$=Object.prototype,W=H.toString,V=$.hasOwnProperty,Y=W.call(Object);function X(e){if(!z(e)||D(e)!=q)return!1;var t=j(e);if(null===t)return!0;var r=V.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&W.call(r)==Y}var G=X,J=Array.isArray,K=J,Z="[object Symbol]";function Q(e){return"symbol"==typeof e||z(e)&&D(e)==Z}var ee=Q,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,er=/^\w*$/;function en(e,t){if(K(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||ee(e))||er.test(e)||!et.test(e)||null!=t&&e in Object(t)}var ei=en;function eo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var es=eo,ea="[object AsyncFunction]",ec="[object Function]",eu="[object GeneratorFunction]",el="[object Proxy]";function eh(e){if(!es(e))return!1;var t=D(e);return t==ec||t==eu||t==ea||t==el}var ed=eh,ef=y["__core-js_shared__"],ep=ef,eg=function(){var e=/[^.]+$/.exec(ep&&ep.keys&&ep.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function em(e){return!!eg&&eg in e}var ev=em,ey=Function.prototype,eb=ey.toString;function ew(e){if(null!=e){try{return eb.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var ex=ew,e_=/[\\^$.*+?()[\]{}|]/g,ek=/^\[object .+?Constructor\]$/,eS=Function.prototype,eC=Object.prototype,eE=eS.toString,eO=eC.hasOwnProperty,eI=RegExp("^"+eE.call(eO).replace(e_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eT(e){if(!es(e)||ev(e))return!1;var t=ed(e)?eI:ek;return t.test(ex(e))}var eA=eT;function eM(e,t){return null==e?void 0:e[t]}var eR=eM;function eP(e,t){var r=eR(e,t);return eA(r)?r:void 0}var eL=eP,eD=eL(Object,"create"),eN=eD;function eB(){this.__data__=eN?eN(null):{},this.size=0}var eF=eB;function ej(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}var eU=ej,ez="__lodash_hash_undefined__",eq=Object.prototype,eH=eq.hasOwnProperty;function e$(e){var t=this.__data__;if(eN){var r=t[e];return r===ez?void 0:r}return eH.call(t,e)?t[e]:void 0}var eW=e$,eV=Object.prototype,eY=eV.hasOwnProperty;function eX(e){var t=this.__data__;return eN?void 0!==t[e]:eY.call(t,e)}var eG=eX,eJ="__lodash_hash_undefined__";function eK(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=eN&&void 0===t?eJ:t,this}var eZ=eK;function eQ(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}eQ.prototype.clear=eF,eQ.prototype["delete"]=eU,eQ.prototype.get=eW,eQ.prototype.has=eG,eQ.prototype.set=eZ;var e0=eQ;function e1(){this.__data__=[],this.size=0}var e2=e1;function e4(e,t){return e===t||e!==e&&t!==t}var e5=e4;function e8(e,t){var r=e.length;while(r--)if(e5(e[r][0],t))return r;return -1}var e6=e8,e3=Array.prototype,e7=e3.splice;function e9(e){var t=this.__data__,r=e6(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():e7.call(t,r,1),--this.size,!0}var te=e9;function tt(e){var t=this.__data__,r=e6(t,e);return r<0?void 0:t[r][1]}var tr=tt;function tn(e){return e6(this.__data__,e)>-1}var ti=tn;function to(e,t){var r=this.__data__,n=e6(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var ts=to;function ta(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}ta.prototype.clear=e2,ta.prototype["delete"]=te,ta.prototype.get=tr,ta.prototype.has=ti,ta.prototype.set=ts;var tc=ta,tu=eL(y,"Map"),tl=tu;function th(){this.size=0,this.__data__={hash:new e0,map:new(tl||tc),string:new e0}}var td=th;function tf(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var tp=tf;function tg(e,t){var r=e.__data__;return tp(t)?r["string"==typeof t?"string":"hash"]:r.map}var tm=tg;function tv(e){var t=tm(this,e)["delete"](e);return this.size-=!!t,t}var ty=tv;function tb(e){return tm(this,e).get(e)}var tw=tb;function tx(e){return tm(this,e).has(e)}var t_=tx;function tk(e,t){var r=tm(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this}var tS=tk;function tC(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}tC.prototype.clear=td,tC.prototype["delete"]=ty,tC.prototype.get=tw,tC.prototype.has=t_,tC.prototype.set=tS;var tE=tC,tO="Expected a function";function tI(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError(tO);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(tI.Cache||tE),r}tI.Cache=tE;var tT=tI,tA=500;function tM(e){var t=tT(e,function(e){return r.size===tA&&r.clear(),e}),r=t.cache;return t}var tR=tM,tP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tL=/\\(\\)?/g,tD=tR(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(tP,function(e,r,n,i){t.push(n?i.replace(tL,"$1"):r||e)}),t}),tN=tD;function tB(e,t){var r=-1,n=null==e?0:e.length,i=Array(n);while(++r<n)i[r]=t(e[r],r,e);return i}var tF=tB,tj=1/0,tU=w?w.prototype:void 0,tz=tU?tU.toString:void 0;function tq(e){if("string"==typeof e)return e;if(K(e))return tF(e,tq)+"";if(ee(e))return tz?tz.call(e):"";var t=e+"";return"0"==t&&1/e==-tj?"-0":t}var tH=tq;function t$(e){return null==e?"":tH(e)}var tW=t$;function tV(e,t){return K(e)?e:ei(e,t)?[e]:tN(tW(e))}var tY=tV,tX=1/0;function tG(e){if("string"==typeof e||ee(e))return e;var t=e+"";return"0"==t&&1/e==-tX?"-0":t}var tJ=tG;function tK(e,t){t=tY(t,e);var r=0,n=t.length;while(null!=e&&r<n)e=e[tJ(t[r++])];return r&&r==n?e:void 0}var tZ=tK;function tQ(e,t,r){var n=null==e?void 0:tZ(e,t);return void 0===n?r:n}var t0=tQ,t1=function(){try{var e=eL(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),t2=t1;function t4(e,t,r){"__proto__"==t&&t2?t2(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var t5=t4,t8=Object.prototype,t6=t8.hasOwnProperty;function t3(e,t,r){var n=e[t];t6.call(e,t)&&e5(n,r)&&(void 0!==r||t in e)||t5(e,t,r)}var t7=t3,t9=0x1fffffffffffff,re=/^(?:0|[1-9]\d*)$/;function rt(e,t){var r=typeof e;return!!(t=null==t?t9:t)&&("number"==r||"symbol"!=r&&re.test(e))&&e>-1&&e%1==0&&e<t}var rr=rt;function rn(e,t,r,n){if(!es(e))return e;t=tY(t,e);var i=-1,o=t.length,s=o-1,a=e;while(null!=a&&++i<o){var c=tJ(t[i]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)break;if(i!=s){var l=a[c];void 0===(u=n?n(l,c,a):void 0)&&(u=es(l)?l:rr(t[i+1])?[]:{})}t7(a,c,u),a=a[c]}return e}var ri=rn;function ro(e,t,r){return null==e?e:ri(e,t,r)}var rs=ro,ra=r(8705);let rc="AES-256-CBC",ru=parseInt(rc.match(/\d+/)?.[0]),rl=(e,t)=>{let r=ra.lib.WordArray.random(16),n=ra.lib.WordArray.random(256),i=999,o=ru/4,s=ra.PBKDF2(t,n,{hasher:ra.algo.SHA512,keySize:o/8,iterations:i}),a=ra.AES.encrypt(e,s,{mode:ra.mode.CBC,iv:r}),c=ra.enc.Base64.stringify(a.ciphertext),u={ciphertext:c,iv:ra.enc.Hex.stringify(r),salt:ra.enc.Hex.stringify(n),iterations:i};return ra.enc.Base64.stringify(ra.enc.Utf8.parse(JSON.stringify(u)))},rh=(e,t)=>{let r=JSON.parse(ra.enc.Utf8.stringify(ra.enc.Base64.parse(e))),n=ra.enc.Hex.parse(r.salt),i=ra.enc.Hex.parse(r.iv),o=r.ciphertext,s=parseInt(r.iterations);s<=0&&(s=999);let a=ru/4,c=ra.PBKDF2(t,n,{hasher:ra.algo.SHA512,keySize:a/8,iterations:s}),u=ra.AES.decrypt(o,c,{mode:ra.mode.CBC,iv:i});return u.toString(ra.enc.Utf8)},rd="-----BEGIN PUBLIC KEY-----",rf="-----END PUBLIC KEY-----",rp="-----BEGIN PRIVATE KEY-----",rg="-----END PRIVATE KEY-----",rm=()=>{if("u">typeof globalThis&&globalThis.crypto?.subtle)return globalThis.crypto.subtle;throw Error("Web Crypto API is not available in this environment")},rv=(e,t,r,n)=>{if(!e.includes(t)||!e.includes(r))throw Error(`Invalid ${n} key format: expected PEM`);let i=e.replace(t,"").replace(r,"").replace(/\s+/g,"");if("function"!=typeof atob)throw Error("Base64 decoding is not available in this environment");let o=atob(i),s=new Uint8Array(o.length);for(let e=0;e<o.length;e++)s[e]=o.charCodeAt(e);return s.buffer},ry=e=>{let t="",r=new Uint8Array(e);if(r.forEach(e=>{t+=String.fromCharCode(e)}),"function"!=typeof btoa)throw Error("Base64 encoding is not available in this environment");return btoa(t)},rb=e=>{if("function"!=typeof atob)throw Error("Base64 decoding is not available in this environment");let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer},rw=async(e,t)=>{let r=rm(),n="public"===t?rv(e,rd,rf,"public"):rv(e,rp,rg,"private");return r.importKey("public"===t?"spki":"pkcs8",n,{name:"RSA-OAEP",hash:"SHA-256"},!1,"public"===t?["encrypt"]:["decrypt"])},rx=async(e,t)=>{let r=rm(),n=await rw(t,"public"),i=new TextEncoder().encode(e),o=await r.encrypt({name:"RSA-OAEP"},n,i);return ry(o)},r_=async(e,t)=>{let r=rm(),n=await rw(t,"private"),i=rb(e),o=await r.decrypt({name:"RSA-OAEP"},n,i);return new TextDecoder().decode(o)};var rk={encrypt:rl,decrypt:rh,encryptWithPublicKey:rx,decryptWithPrivateKey:r_};function rS(e){return(rS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rC(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function rE(e){return rC(1,arguments),e instanceof Date||"object"===rS(e)&&"[object Date]"===Object.prototype.toString.call(e)}function rO(e){rC(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===rS(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"u">typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}function rI(e){if(rC(1,arguments),!rE(e)&&"number"!=typeof e)return!1;var t=rO(e);return!isNaN(Number(t))}function rT(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function rA(e,t){rC(2,arguments);var r=rO(e).getTime(),n=rT(t);return new Date(r+n)}function rM(e,t){rC(2,arguments);var r=rT(t);return rA(e,-r)}var rR=864e5;function rP(e){rC(1,arguments);var t=rO(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),i=r-n;return Math.floor(i/rR)+1}function rL(e){rC(1,arguments);var t=1,r=rO(e),n=r.getUTCDay(),i=7*(n<t)+n-t;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}function rD(e){rC(1,arguments);var t=rO(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=rL(n),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var s=rL(o);return t.getTime()>=i.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function rN(e){rC(1,arguments);var t=rD(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=rL(r);return n}var rB=6048e5;function rF(e){rC(1,arguments);var t=rO(e),r=rL(t).getTime()-rN(t).getTime();return Math.round(r/rB)+1}var rj={};function rU(){return rj}function rz(e,t){var r,n,i,o,s,a,c,u;rC(1,arguments);var l=rU(),h=rT(null!=(r=null!=(n=null!=(i=null!=(o=null==t?void 0:t.weekStartsOn)?o:null==t||null==(s=t.locale)||null==(a=s.options)?void 0:a.weekStartsOn)?i:l.weekStartsOn)?n:null==(c=l.locale)||null==(u=c.options)?void 0:u.weekStartsOn)?r:0);if(!(h>=0&&h<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=rO(e),f=d.getUTCDay(),p=7*(f<h)+f-h;return d.setUTCDate(d.getUTCDate()-p),d.setUTCHours(0,0,0,0),d}function rq(e,t){var r,n,i,o,s,a,c,u;rC(1,arguments);var l=rO(e),h=l.getUTCFullYear(),d=rU(),f=rT(null!=(r=null!=(n=null!=(i=null!=(o=null==t?void 0:t.firstWeekContainsDate)?o:null==t||null==(s=t.locale)||null==(a=s.options)?void 0:a.firstWeekContainsDate)?i:d.firstWeekContainsDate)?n:null==(c=d.locale)||null==(u=c.options)?void 0:u.firstWeekContainsDate)?r:1);if(!(f>=1&&f<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(h+1,0,f),p.setUTCHours(0,0,0,0);var g=rz(p,t),m=new Date(0);m.setUTCFullYear(h,0,f),m.setUTCHours(0,0,0,0);var v=rz(m,t);return l.getTime()>=g.getTime()?h+1:l.getTime()>=v.getTime()?h:h-1}function rH(e,t){var r,n,i,o,s,a,c,u;rC(1,arguments);var l=rU(),h=rT(null!=(r=null!=(n=null!=(i=null!=(o=null==t?void 0:t.firstWeekContainsDate)?o:null==t||null==(s=t.locale)||null==(a=s.options)?void 0:a.firstWeekContainsDate)?i:l.firstWeekContainsDate)?n:null==(c=l.locale)||null==(u=c.options)?void 0:u.firstWeekContainsDate)?r:1),d=rq(e,t),f=new Date(0);f.setUTCFullYear(d,0,h),f.setUTCHours(0,0,0,0);var p=rz(f,t);return p}var r$=6048e5;function rW(e,t){rC(1,arguments);var r=rO(e),n=rz(r,t).getTime()-rH(r,t).getTime();return Math.round(n/r$)+1}function rV(e,t){var r=e<0?"-":"",n=Math.abs(e).toString();while(n.length<t)n="0"+n;return r+n}var rY={y:function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return rV("yy"===t?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):rV(r+1,2)},d:function(e,t){return rV(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return"am"===r?"a.m.":"p.m."}},h:function(e,t){return rV(e.getUTCHours()%12||12,t.length)},H:function(e,t){return rV(e.getUTCHours(),t.length)},m:function(e,t){return rV(e.getUTCMinutes(),t.length)},s:function(e,t){return rV(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,n=e.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,r-3));return rV(i,t.length)}},rX=rY,rG={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},rJ={G:function(e,t,r){var n=+(e.getUTCFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return rX.y(e,t)},Y:function(e,t,r,n){var i=rq(e,n),o=i>0?i:1-i;if("YY"===t){var s=o%100;return rV(s,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):rV(o,t.length)},R:function(e,t){var r=rD(e);return rV(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return rV(r,t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return rV(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return rV(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return rX.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return rV(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var i=rW(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):rV(i,t.length)},I:function(e,t,r){var n=rF(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):rV(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):rX.d(e,t)},D:function(e,t,r){var n=rP(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):rV(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return rV(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return rV(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return rV(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours(),i=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n=e.getUTCHours(),i;switch(i=12===n?rG.noon:0===n?rG.midnight:n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n=e.getUTCHours(),i;switch(i=n>=17?rG.evening:n>=12?rG.afternoon:n>=4?rG.morning:rG.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return rX.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):rX.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):rV(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):rV(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):rX.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):rX.s(e,t)},S:function(e,t){return rX.S(e,t)},X:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return rZ(o);case"XXXX":case"XX":return rQ(o);case"XXXXX":case"XXX":default:return rQ(o,":")}},x:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return rZ(o);case"xxxx":case"xx":return rQ(o);case"xxxxx":case"xxx":default:return rQ(o,":")}},O:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+rK(o,":");case"OOOO":default:return"GMT"+rQ(o,":")}},z:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+rK(o,":");case"zzzz":default:return"GMT"+rQ(o,":")}},t:function(e,t,r,n){var i=n._originalDate||e,o=Math.floor(i.getTime()/1e3);return rV(o,t.length)},T:function(e,t,r,n){var i=n._originalDate||e,o=i.getTime();return rV(o,t.length)}};function rK(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(0===o)return r+String(i);var s=t||"";return r+String(i)+s+rV(o,2)}function rZ(e,t){if(e%60===0){var r=e>0?"-":"+";return r+rV(Math.abs(e)/60,2)}return rQ(e,t)}function rQ(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),o=rV(Math.floor(i/60),2),s=rV(i%60,2);return n+o+r+s}var r0=rJ,r1=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},r2=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},r4=function(e,t){var r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return r1(e,t);var o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",r1(n,t)).replace("{{time}}",r2(i,t))},r5={p:r2,P:r4},r8=r5;function r6(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var r3=["D","DD"],r7=["YY","YYYY"];function r9(e){return -1!==r3.indexOf(e)}function ne(e){return -1!==r7.indexOf(e)}function nt(e,t,r){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var nr={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},nn=function(e,t,r){var n,i=nr[e];if(n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix)if(r.comparison&&r.comparison>0)return"in "+n;else return n+" ago";return n},ni=nn;function no(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var ns={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},na={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},nc={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},nu={date:no({formats:ns,defaultWidth:"full"}),time:no({formats:na,defaultWidth:"full"}),dateTime:no({formats:nc,defaultWidth:"full"})},nl=nu,nh={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},nd=function(e,t,r,n){return nh[e]},nf=nd;function np(e){return function(t,r){var n=null!=r&&r.context?String(r.context):"standalone",i;if("formatting"===n&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=null!=r&&r.width?String(r.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,c=null!=r&&r.width?String(r.width):e.defaultWidth;i=e.values[c]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var ng={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},nm={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},nv={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ny={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},nb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},nw={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},nx=function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},n_={ordinalNumber:nx,era:np({values:ng,defaultWidth:"wide"}),quarter:np({values:nm,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:np({values:nv,defaultWidth:"wide"}),day:np({values:ny,defaultWidth:"wide"}),dayPeriod:np({values:nb,defaultWidth:"wide",formattingValues:nw,defaultFormattingWidth:"wide"})},nk=n_;function nS(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s=o[0],a=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(a)?nE(a,function(e){return e.test(s)}):nC(a,function(e){return e.test(s)}),u;u=e.valueCallback?e.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;var l=t.slice(s.length);return{value:u,rest:l}}}function nC(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function nE(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function nO(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=r.valueCallback?r.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var nI=/^(\d+)(th|st|nd|rd)?/i,nT=/\d+/i,nA={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},nM={any:[/^b/i,/^(a|c)/i]},nR={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},nP={any:[/1/i,/2/i,/3/i,/4/i]},nL={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},nD={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},nN={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},nB={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},nF={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},nj={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},nU={ordinalNumber:nO({matchPattern:nI,parsePattern:nT,valueCallback:function(e){return parseInt(e,10)}}),era:nS({matchPatterns:nA,defaultMatchWidth:"wide",parsePatterns:nM,defaultParseWidth:"any"}),quarter:nS({matchPatterns:nR,defaultMatchWidth:"wide",parsePatterns:nP,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:nS({matchPatterns:nL,defaultMatchWidth:"wide",parsePatterns:nD,defaultParseWidth:"any"}),day:nS({matchPatterns:nN,defaultMatchWidth:"wide",parsePatterns:nB,defaultParseWidth:"any"}),dayPeriod:nS({matchPatterns:nF,defaultMatchWidth:"any",parsePatterns:nj,defaultParseWidth:"any"})},nz=nU,nq={code:"en-US",formatDistance:ni,formatLong:nl,formatRelative:nf,localize:nk,match:nz,options:{weekStartsOn:0,firstWeekContainsDate:1}},nH=nq,n$=nH,nW=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nV=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,nY=/^'([^]*?)'?$/,nX=/''/g,nG=/[a-zA-Z]/;function nJ(e,t,r){var n,i,o,s,a,c,u,l,h,d,f,p,g,m,v,y,b,w;rC(2,arguments);var x=String(t),_=rU(),k=null!=(n=null!=(i=null==r?void 0:r.locale)?i:_.locale)?n:n$,S=rT(null!=(o=null!=(s=null!=(a=null!=(c=null==r?void 0:r.firstWeekContainsDate)?c:null==r||null==(u=r.locale)||null==(l=u.options)?void 0:l.firstWeekContainsDate)?a:_.firstWeekContainsDate)?s:null==(h=_.locale)||null==(d=h.options)?void 0:d.firstWeekContainsDate)?o:1);if(!(S>=1&&S<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=rT(null!=(f=null!=(p=null!=(g=null!=(m=null==r?void 0:r.weekStartsOn)?m:null==r||null==(v=r.locale)||null==(y=v.options)?void 0:y.weekStartsOn)?g:_.weekStartsOn)?p:null==(b=_.locale)||null==(w=b.options)?void 0:w.weekStartsOn)?f:0);if(!(C>=0&&C<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw RangeError("locale must contain localize property");if(!k.formatLong)throw RangeError("locale must contain formatLong property");var E=rO(e);if(!rI(E))throw RangeError("Invalid time value");var O=r6(E),I=rM(E,O),T={firstWeekContainsDate:S,weekStartsOn:C,locale:k,_originalDate:E},A=x.match(nV).map(function(e){var t=e[0];if("p"===t||"P"===t){var r=r8[t];return r(e,k.formatLong)}return e}).join("").match(nW).map(function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return nK(n);var o=r0[i];if(o)return!(null!=r&&r.useAdditionalWeekYearTokens)&&ne(n)&&nt(n,t,String(e)),!(null!=r&&r.useAdditionalDayOfYearTokens)&&r9(n)&&nt(n,t,String(e)),o(I,n,k.localize,T);if(i.match(nG))throw RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("");return A}function nK(e){var t=e.match(nY);return t?t[1].replace(nX,"'"):e}function nZ(e,t){rC(2,arguments);var r=rO(e),n=rO(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function nQ(e,t){rC(2,arguments);var r=rO(e),n=rO(t),i=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth();return 12*i+o}function n0(e){rC(1,arguments);var t=rO(e);return t.setHours(23,59,59,999),t}function n1(e){rC(1,arguments);var t=rO(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function n2(e){rC(1,arguments);var t=rO(e);return n0(t).getTime()===n1(t).getTime()}function n4(e,t){rC(2,arguments);var r=rO(e),n=rO(t),i=nZ(r,n),o=Math.abs(nQ(r,n)),s;if(o<1)s=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*o);var a=nZ(r,n)===-i;n2(rO(e))&&1===o&&1===nZ(e,n)&&(a=!1),s=i*(o-Number(a))}return 0===s?0:s}function n5(e,t){return rC(2,arguments),rO(e).getTime()-rO(t).getTime()}var n8={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},n6="trunc";function n3(e){return e?n8[e]:n8[n6]}function n7(e,t,r){rC(2,arguments);var n=n5(e,t)/1e3;return n3(null==r?void 0:r.roundingMethod)(n)}function n9(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function ie(e){return n9({},e)}var it=1440,ir=2520,ii=43200,io=86400;function is(e,t,r){var n,i;rC(2,arguments);var o=rU(),s=null!=(n=null!=(i=null==r?void 0:r.locale)?i:o.locale)?n:n$;if(!s.formatDistance)throw RangeError("locale must contain formatDistance property");var a=nZ(e,t);if(isNaN(a))throw RangeError("Invalid time value");var c=n9(ie(r),{addSuffix:!!(null==r?void 0:r.addSuffix),comparison:a}),u,l;a>0?(u=rO(t),l=rO(e)):(u=rO(e),l=rO(t));var h=n7(l,u),d=(r6(l)-r6(u))/1e3,f=Math.round((h-d)/60),p;if(f<2)if(null!=r&&r.includeSeconds)if(h<5)return s.formatDistance("lessThanXSeconds",5,c);else if(h<10)return s.formatDistance("lessThanXSeconds",10,c);else if(h<20)return s.formatDistance("lessThanXSeconds",20,c);else if(h<40)return s.formatDistance("halfAMinute",0,c);else if(h<60)return s.formatDistance("lessThanXMinutes",1,c);else return s.formatDistance("xMinutes",1,c);else if(0===f)return s.formatDistance("lessThanXMinutes",1,c);else return s.formatDistance("xMinutes",f,c);if(f<45)return s.formatDistance("xMinutes",f,c);if(f<90)return s.formatDistance("aboutXHours",1,c);if(f<it){var g=Math.round(f/60);return s.formatDistance("aboutXHours",g,c)}if(f<ir)return s.formatDistance("xDays",1,c);else if(f<ii){var m=Math.round(f/it);return s.formatDistance("xDays",m,c)}else if(f<io)return p=Math.round(f/ii),s.formatDistance("aboutXMonths",p,c);if((p=n4(l,u))<12){var v=Math.round(f/ii);return s.formatDistance("xMonths",v,c)}var y=p%12,b=Math.floor(p/12);return y<3?s.formatDistance("aboutXYears",b,c):y<9?s.formatDistance("overXYears",b,c):s.formatDistance("almostXYears",b+1,c)}function ia(e,t){return rC(1,arguments),is(e,Date.now(),t)}let ic=new Map,iu=new Map,il=e=>"string"==typeof e||e instanceof String,ih=e=>Array.isArray(e),id=e=>"function"==typeof e,ip=e=>!!e&&e.constructor===Object,ig=e=>e[0].toUpperCase()+e.substring(1).toLowerCase(),im=e=>G(e)&&!Object.keys(e).length,iv=(e,t,r)=>{let n=t0(e,t,r);return n||r},iy=(e,t,r)=>rs(e,t,r),ib=e=>{let t=0;e.split("").forEach(e=>{t=e.charCodeAt(0)+((t<<5)-t)});let r="#";for(let e=0;e<3;e++){let n=t>>8*e&255;r+=n.toString(16).padStart(2,"0")}return r},iw=(e,t="#FFFFFF",r="#000000")=>{let n=ib(e),i="#"===n.charAt(0)?n.substring(1,7):n,o=parseInt(i.substring(0,2),16),s=parseInt(i.substring(2,4),16),a=parseInt(i.substring(4,6),16),c=[o/255,s/255,a/255],u=c.map(e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)),l=.2126*u[0]+.7152*u[1]+.0722*u[2];return l>.179?r:t},ix=(e,t="")=>rk.encrypt(e,t),i_=(e,t="")=>rk.decrypt(e,t),ik=async(e,t)=>await rk.encryptWithPublicKey(e,t),iS=async(e,t)=>await rk.decryptWithPrivateKey(e,t),iC=(e,t,r="production")=>{ic.set(e,JSON.stringify(t)),"production"===r?localStorage.setItem(e,ix(JSON.stringify(t))):localStorage.setItem(e,JSON.stringify(t))},iE=(e,t="production")=>{if(ic.has(e))return JSON.parse(ic.get(e));let r=localStorage.getItem(e);if(null==r)return null;try{let n="production"===t?JSON.parse(i_(r)):JSON.parse(r);return ic.set(e,JSON.stringify(n)),n}catch{return localStorage.removeItem(e),null}},iO=e=>{ic.delete(e),localStorage.removeItem(e)},iI=(e,t,r="production")=>{iu.set(e,JSON.stringify(t)),"production"===r?sessionStorage.setItem(e,ix(JSON.stringify(t))):sessionStorage.setItem(e,JSON.stringify(t))},iT=(e,t="production")=>{if(iu.has(e))return JSON.parse(iu.get(e));let r=sessionStorage.getItem(e);if(null==r)return null;try{let n="production"===t?JSON.parse(i_(r)):JSON.parse(r);return iu.set(e,JSON.stringify(n)),n}catch{return sessionStorage.removeItem(e),null}},iA=e=>{iu.delete(e),sessionStorage.removeItem(e)},iM=e=>{let t=/[A-Z]/.test(e),r=/[a-z]/.test(e),n=/[0-9]/.test(e),i=/[#?!@$%^&*-]/.test(e);return t&&r&&n&&i},iR=e=>{if("paste"==(e=e||window.event).type){let t=e,r=t.clipboardData?.getData("Text");return!isNaN(r)||t.preventDefault()}{let t=e,r=t.which?t.which:t.keyCode;return!(r>31)||!(r<48)&&!(r>57)||46===r||t.preventDefault()}},iP=(e,t)=>{if("paste"==(e=e||window.event).type){let r=e,n=r.clipboardData?.getData("Text"),i=n?.indexOf(".");return!(n.split(".").length>2)&&(!(t<=0)||2!==n.split(".").length)&&(2!==n.split(".").length||i+1==n.length-t)||r.preventDefault()}{let r=e,n=r.which?r.which:r.keyCode;if(t<=0)return(!["keyup","keydown"].includes(e.type)||190!==n)&&("keypress"!=r.type||46!==n)||r.preventDefault();{let e=r.target,i=e.value,o=i.indexOf(".");return(!(o>=0)||!(o<i.length-t))&&(46!==n||2!==i.split(".").length)||r.preventDefault()}}},iL=(e,t,r="success")=>e.replace(RegExp(t,"gi"),e=>`<span class='text-${r}'>${e}</span>`),iD=(e,t)=>{let r=new Image;if(r.src=e,r.complete)return t?.(!0),!0;r.onload=()=>(t?.(!0),!0),r.onerror=()=>(t?.(!1),!1)},iN=e=>{let t=encodeURIComponent,r=Object.keys(e).map(r=>t(r)+"="+t(e[r])).join("&");return r},iB=(e,t)=>{let r=e||"";return r+=Math.random().toString(36).substring(2,8)+Math.random().toString(36).substring(2,8),r+=t||""},iF=(e,t="dd-MM-yyyy")=>nJ(new Date(e),t),ij=e=>(window.__LOADED_EMBEDDABLES__||(window.__LOADED_EMBEDDABLES__=new Set),window.__LOADED_EMBEDDABLES__.has(e))?Promise.resolve({}):Function("u","return import(u)")(e).then(t=>(window.__LOADED_EMBEDDABLES__.add(e),t)),iU=e=>ia(new Date(e),{addSuffix:!0}),iz=(e,t,r,n)=>{t=t||0,"string"==typeof e&&(e=parseFloat(e)),r&&n||(r=".",n=",");let i=Math.round(Math.abs(e)*Math.pow(10,t))+"";i=1>e&&-1<e&&i.length<=t?Array(t-i.length+1).join("0")+i:i;let o=t?i.slice(0,-1*t):i.slice(0),s=parseInt(o)||0;o=0==s?"0":o;let a=t?i.slice(-1*t):"",c="";while(o.length>3)c=n+o.slice(-3)+c,o=o.slice(0,-3);return(e<0?"-":"")+o+c+(a?r+a:"")},iq=new Map,iH="@accessToken",i$="idms_token",iW="@refreshToken";class iV{encryptionKey;constructor(e){e="",this.encryptionKey=e}get(e){if(iq.has(e))return JSON.parse(iq.get(e));let t=f.get(e);if(!t)return;let r="";try{r=JSON.parse(i_(t,this.encryptionKey))}catch{f.remove(e);return}return iq.set(e,JSON.stringify(r)),r}set(e,t,r){iq.set(e,JSON.stringify(t)),t=ix(JSON.stringify(t),this.encryptionKey),f.set(e,t,r)}remove(e,t){iq.delete(e),f.remove(e,t)}getToken(){return this.get(iH)}saveToken(e,t){this.set(iH,e,t)}removeToken(e){this.remove(iH,e)}removeLocalStorageToken(){iO(i$)}getRefreshToken(){return this.get(iW)}saveRefreshToken(e){this.set(iW,e)}removeRefreshToken(e){this.remove(iW,e)}clearAll(){Object.keys(f.get()).forEach(e=>{f.remove(e),f.remove(e,{path:"/"})}),iq.clear()}}var iY=iV,iX=r(6586),iG=r.n(iX);function iJ(){this.__data__=new tc,this.size=0}var iK=iJ;function iZ(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}var iQ=iZ;function i0(e){return this.__data__.get(e)}var i1=i0;function i2(e){return this.__data__.has(e)}var i4=i2,i5=200;function i8(e,t){var r=this.__data__;if(r instanceof tc){var n=r.__data__;if(!tl||n.length<i5-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new tE(n)}return r.set(e,t),this.size=r.size,this}var i6=i8;function i3(e){var t=this.__data__=new tc(e);this.size=t.size}i3.prototype.clear=iK,i3.prototype["delete"]=iQ,i3.prototype.get=i1,i3.prototype.has=i4,i3.prototype.set=i6;var i7=i3;function i9(e,t,r){(void 0===r||e5(e[t],r))&&(void 0!==r||t in e)||t5(e,t,r)}var oe=i9;function ot(e){return function(t,r,n){var i=-1,o=Object(t),s=n(t),a=s.length;while(a--){var c=s[e?a:++i];if(!1===r(o[c],c,o))break}return t}}var or=ot,on=or(),oi=on,oo="object"==typeof exports&&exports&&!exports.nodeType&&exports,os=oo&&"object"==typeof module&&module&&!module.nodeType&&module,oa=os&&os.exports===oo,oc=oa?y.Buffer:void 0,ou=oc?oc.allocUnsafe:void 0;function ol(e,t){if(t)return e.slice();var r=e.length,n=ou?ou(r):new e.constructor(r);return e.copy(n),n}var oh=ol,od=y.Uint8Array,of=od;function op(e){var t=new e.constructor(e.byteLength);return new of(t).set(new of(e)),t}var og=op;function om(e,t){var r=t?og(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var ov=om;function oy(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n)t[r]=e[r];return t}var ob=oy,ow=Object.create,ox=function(){function e(){}return function(t){if(!es(t))return{};if(ow)return ow(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),o_=ox,ok=Object.prototype;function oS(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||ok;return e===r}var oC=oS;function oE(e){return"function"!=typeof e.constructor||oC(e)?{}:o_(j(e))}var oO=oE,oI="[object Arguments]";function oT(e){return z(e)&&D(e)==oI}var oA=oT,oM=Object.prototype,oR=oM.hasOwnProperty,oP=oM.propertyIsEnumerable,oL=oA(function(){return arguments}())?oA:function(e){return z(e)&&oR.call(e,"callee")&&!oP.call(e,"callee")},oD=oL,oN=0x1fffffffffffff;function oB(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=oN}var oF=oB;function oj(e){return null!=e&&oF(e.length)&&!ed(e)}var oU=oj;function oz(e){return z(e)&&oU(e)}var oq=oz;function oH(){return!1}var o$=oH,oW="object"==typeof exports&&exports&&!exports.nodeType&&exports,oV=oW&&"object"==typeof module&&module&&!module.nodeType&&module,oY=oV&&oV.exports===oW,oX=oY?y.Buffer:void 0,oG=oX?oX.isBuffer:void 0,oJ=oG||o$,oK=oJ,oZ="[object Arguments]",oQ="[object Array]",o0="[object Boolean]",o1="[object Date]",o2="[object Error]",o4="[object Function]",o5="[object Map]",o8="[object Number]",o6="[object Object]",o3="[object RegExp]",o7="[object Set]",o9="[object String]",se="[object WeakMap]",st="[object ArrayBuffer]",sr="[object DataView]",sn="[object Float32Array]",si="[object Float64Array]",so="[object Int8Array]",ss="[object Int16Array]",sa="[object Int32Array]",sc="[object Uint8Array]",su="[object Uint8ClampedArray]",sl="[object Uint16Array]",sh="[object Uint32Array]",sd={};function sf(e){return z(e)&&oF(e.length)&&!!sd[D(e)]}sd[sn]=sd[si]=sd[so]=sd[ss]=sd[sa]=sd[sc]=sd[su]=sd[sl]=sd[sh]=!0,sd[oZ]=sd[oQ]=sd[st]=sd[o0]=sd[sr]=sd[o1]=sd[o2]=sd[o4]=sd[o5]=sd[o8]=sd[o6]=sd[o3]=sd[o7]=sd[o9]=sd[se]=!1;var sp=sf;function sg(e){return function(t){return e(t)}}var sm=sg,sv="object"==typeof exports&&exports&&!exports.nodeType&&exports,sy=sv&&"object"==typeof module&&module&&!module.nodeType&&module,sb=sy&&sy.exports===sv,sw=sb&&g.process,sx=function(){try{var e=sy&&sy.require&&sy.require("util").types;if(e)return e;return sw&&sw.binding&&sw.binding("util")}catch(e){}}(),s_=sx,sk=s_&&s_.isTypedArray,sS=sk?sm(sk):sp,sC=sS;function sE(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var sO=sE;function sI(e,t,r,n){var i=!r;r||(r={});var o=-1,s=t.length;while(++o<s){var a=t[o],c=n?n(r[a],e[a],a,r,e):void 0;void 0===c&&(c=e[a]),i?t5(r,a,c):t7(r,a,c)}return r}var sT=sI;function sA(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}var sM=sA,sR=Object.prototype,sP=sR.hasOwnProperty;function sL(e,t){var r=K(e),n=!r&&oD(e),i=!r&&!n&&oK(e),o=!r&&!n&&!i&&sC(e),s=r||n||i||o,a=s?sM(e.length,String):[],c=a.length;for(var u in e)(t||sP.call(e,u))&&!(s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||rr(u,c)))&&a.push(u);return a}var sD=sL;function sN(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}var sB=sN,sF=Object.prototype,sj=sF.hasOwnProperty;function sU(e){if(!es(e))return sB(e);var t=oC(e),r=[];for(var n in e)"constructor"==n&&(t||!sj.call(e,n))||r.push(n);return r}var sz=sU;function sq(e){return oU(e)?sD(e,!0):sz(e)}var sH=sq;function s$(e){return sT(e,sH(e))}var sW=s$;function sV(e,t,r,n,i,o,s){var a=sO(e,r),c=sO(t,r),u=s.get(c);if(u)return void oe(e,r,u);var l=o?o(a,c,r+"",e,t,s):void 0,h=void 0===l;if(h){var d=K(c),f=!d&&oK(c),p=!d&&!f&&sC(c);l=c,d||f||p?K(a)?l=a:oq(a)?l=ob(a):f?(h=!1,l=oh(c,!0)):p?(h=!1,l=ov(c,!0)):l=[]:G(c)||oD(c)?(l=a,oD(a)?l=sW(a):(!es(a)||ed(a))&&(l=oO(c))):h=!1}h&&(s.set(c,l),i(l,c,n,o,s),s["delete"](c)),oe(e,r,l)}var sY=sV;function sX(e,t,r,n,i){e!==t&&oi(t,function(o,s){if(i||(i=new i7),es(o))sY(e,t,s,r,sX,n,i);else{var a=n?n(sO(e,s),o,s+"",e,t,i):void 0;void 0===a&&(a=o),oe(e,s,a)}},sH)}var sG=sX;function sJ(e){return e}var sK=sJ;function sZ(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var sQ=sZ,s0=Math.max;function s1(e,t,r){return t=s0(void 0===t?e.length-1:t,0),function(){var n=arguments,i=-1,o=s0(n.length-t,0),s=Array(o);while(++i<o)s[i]=n[t+i];i=-1;var a=Array(t+1);while(++i<t)a[i]=n[i];return a[t]=r(s),sQ(e,this,a)}}var s2=s1;function s4(e){return function(){return e}}var s5=s4,s8=t2?function(e,t){return t2(e,"toString",{configurable:!0,enumerable:!1,value:s5(t),writable:!0})}:sK,s6=s8,s3=800,s7=16,s9=Date.now;function ae(e){var t=0,r=0;return function(){var n=s9(),i=s7-(n-r);if(r=n,i>0){if(++t>=s3)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var at=ae,ar=at(s6),an=ar;function ai(e,t){return an(s2(e,t,sK),e+"")}var ao=ai;function as(e,t,r){if(!es(r))return!1;var n=typeof t;return("number"==n?!!(oU(r)&&rr(t,r.length)):"string"==n&&t in r)&&e5(r[t],e)}var aa=as;function ac(e){return ao(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&aa(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);while(++n<i){var a=r[n];a&&e(t,a,n,o)}return t})}var au=ac,al=au(function(e,t,r){sG(e,t,r)}),ah=al;let ad="calc(var(--sfe-stack-level-alert) + 1)",af=e=>{let t=e.closest(".swal2-container");t?.style.setProperty("z-index",ad)},ap=e=>{let t=e.didOpen;return iG().fire({...e,didOpen:e=>{af(e),t?.(e)}})},ag=(e,t)=>{let r={confirmButtonText:"Yes",cancelButtonText:"No",customClass:{confirmButton:"btn btn-primary",cancelButton:"btn btn-danger"},reverseButtons:!0},n={showCancelButton:!t,showCloseButton:!1,buttonsStyling:!1},i=ah(r,e,n);return ap({html:`<div class="d-flex flex-column">
|
|
61
|
+
<div class="icon d-flex wpx-76 hpx-76 bg-${i.iconColor}-lt-2 rounded-circle mx-auto mt-4">
|
|
62
|
+
<span class="material-icons fw-700 fs-40 text-${i.iconColor}-dk-1 my-auto mx-auto">
|
|
63
|
+
${i.iconName}
|
|
64
|
+
</span>
|
|
65
|
+
</div>
|
|
66
|
+
<div class="title text-secondary fw-500 fs-20 lh-24 mx-auto mt-4 px-4 text-center">${i.subject}</div>
|
|
67
|
+
<div class="message text-secondary-muted fw-400 fs-15 lh-23 mx-auto mt-2 px-4">${i.message}</div>
|
|
68
|
+
</div>`,...i})},am=(e,t,r)=>{let n,i;switch(e){case"success":n="check_circle",i="success";break;case"warning":n="error",i="warning";break;case"error":n="cancel",i="danger";break;case"info":default:n="help",i="primary";break}ap({toast:!0,position:"top",showConfirmButton:!1,timer:5e3,timerProgressBar:!1,showCancelButton:!1,didOpen:e=>{e.addEventListener("mouseenter",iG().stopTimer),e.addEventListener("mouseleave",iG().resumeTimer),e.querySelector(".swal2-cancel")?.addEventListener("click",()=>{iG().close()})},html:`<div class="d-flex justify-content-between">
|
|
69
|
+
<div class="d-flex flex-grow-1 align-items-start">
|
|
70
|
+
<div class="me-2 mt-1">
|
|
71
|
+
<span class="material-icons text-${i} fs-18">
|
|
72
|
+
${n}
|
|
73
|
+
</span>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="flex-grow-1 me-2 text-left mt-1 mb-2">
|
|
76
|
+
<p class="text-${i} mb-1 fs-16 fw-500">${t}</p>
|
|
77
|
+
<small class="m-0 text-secondary-muted fs-15 fw-normal">${r}</small>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
<span class="swal2-cancel material-icons small cursor-pointer text-secondary-lt-1"">clear</span>
|
|
81
|
+
</div>`})},av="@appClient",ay="@loggedInUser",ab="@refreshTokenPath",aw="@appLoginUrl",ax="@redirectUrl";class a_{encryptionKey;tokenService;constructor(e){this.encryptionKey=e,this.tokenService=new iY(e)}redirectToLogin(){this.logOut(),am("error","Error","You need to sign in."),setTimeout(()=>{location.href="/login"},2e3)}hasValidToken(e){if(e.meta?.protected!==!0)return!0;let t=this.tokenService.getToken();return!!t||(this.redirectToLogin(),!1)}setClientDetails(e){iC(av,e)}getClientDetails(){return iE(av)}removeClientDetails(){iO(av)}setLoggedInUser(e){iC(ay,e)}getLoggedInUser(){return iE(ay)}removeLoggedInUser(){iO(ay)}isLoggedIn(){return this.hasLoggedIn()&&!!this.tokenService.getToken()}logOut(e){e?this.clearAll():(this.tokenService.removeLocalStorageToken(),this.tokenService.removeToken(),this.tokenService.removeRefreshToken(),this.removeLoggedInUser(),this.removeRefreshTokenPath(),this.removeLoginUrl(),this.clearGlobaThis())}hasLoggedIn(){let e=this.getLoggedInUser();return!!e?.id}clearAll(){localStorage.clear(),sessionStorage.clear(),this.tokenService.clearAll(),this.clearGlobaThis()}clearGlobaThis(){let e=globalThis,t=e["__shr_http_refresh_state__"];t&&(t.accessToken=null)}getLoginUrl(){return iE(aw)}saveLoginUrl(e){iC(aw,e)}removeLoginUrl(){iO(aw)}getRefreshTokenPath(){return iE(ab)}saveRefreshTokenPath(e){iC(ab,e)}removeRefreshTokenPath(){iO(ab)}getRedirectUrl(){return iE(ax)}saveRedirectUrl(e){let t=new URL(window.location.href),r=t.searchParams.get("intended_url")||t.searchParams.get("referer"),n=e||r||window.location.href;iC(ax,decodeURIComponent(n))}removeRedirectUrl(){iO(ax)}}var ak=a_;let aS={"X-Requested-With":"XMLHttpRequest"},aC="__shr_http_refresh_state__";function aE(){let e=globalThis;return e[aC]||(e[aC]={isRefreshing:!1,failedQueue:[],accessToken:null}),e[aC]}function aO(e,t=null){let r=aE();r.failedQueue.forEach(({resolve:r,reject:n})=>{e?n(e):r(t)}),r.failedQueue=[]}class aI{tokenService;authService;instance;token;apiBaseUrl;loginUrl;timeout;projectType;httpHeaders;defaultError;constructor(e){this.tokenService=new iY(e?.encryptionKey),this.authService=new ak(e?.encryptionKey),this.apiBaseUrl=e?.apiBaseUrl||"/",this.loginUrl=e?.loginUrl,this.timeout=e?.timeout||2e4,this.projectType=e?.projectType,this.httpHeaders=e?.httpHeaders||{},this.defaultError=e?.defaultError,this.instance=u().create({baseURL:this.apiBaseUrl}),this.token=this.tokenService.getToken(),this.initializeRequestInterceptor(),this.initializeResponseInterceptor()}getInstance=()=>this.instance;getInstance2=()=>({get:this.get,post:this.post,put:this.put,patch:this.patch,delete:this.delete,request:this.request,defaults:this.instance.defaults,instance:this.instance});get=(e,t)=>this.instance.get(e,t);post=(e,t,r)=>this.instance.post(e,t,r);put=(e,t,r)=>this.instance.put(e,t,r);patch=(e,t,r)=>this.instance.patch(e,t,r);delete=(e,t)=>this.instance.delete(e,t);request=e=>this.instance.request(e);resolveError(e,t,r){if(!r)return{showMessage:!0,defaultMessage:t};if("string"==typeof r)return{showMessage:!0,defaultMessage:r};let n=r(e);return"string"==typeof n&&""!==n.trim()?{showMessage:!0,defaultMessage:n}:{showMessage:!1!==n,defaultMessage:t}}rejectIfOffline(){if("u">typeof navigator&&!navigator.onLine){let e=Error("No internet access!"),{showMessage:t,defaultMessage:r}=this.resolveError(e,"No internet access!",this.defaultError?.onNetworkError);return t&&am("error","Error",r),e}return null}initializeRequestInterceptor=()=>{this.instance.interceptors.request.use(this.handleRequest,e=>Promise.reject(e))};handleRequest=e=>{let t=aE();this.token=t.accessToken??this.tokenService.getToken(),this.token&&!t.accessToken&&(t.accessToken=this.token),e.timeout=this.timeout,e.headers={...e.headers||{},...this.httpHeaders||{},...aS},this.token&&(e.headers.Authorization=`Bearer ${this.token}`);let r=this.rejectIfOffline();return r?Promise.reject(r):e};initializeResponseInterceptor=()=>{this.instance.interceptors.response.use(e=>{if(e.headers&&e.headers.authorization){let t=e.headers.authorization.split(" ")[1];this.token=t,this.tokenService.saveToken(this.token),aE().accessToken=t}return e},this.handleError)};handleError=async e=>{if(!e.config)return Promise.reject(e);let t=e.config,r=t?._skipAuthRedirect===!0,n=t?._hideDefaultMessage===!0,i=e.response?.status;if(401===i&&!t?._retry&&!r){let r=aE();if(r.isRefreshing)return new Promise((e,t)=>{r.failedQueue.push({resolve:e,reject:t})}).then(e=>(t.headers.Authorization=`Bearer ${e}`,this.instance(t)));t._retry=!0,r.isRefreshing=!0;try{let e=await this.refreshToken(),{access_token:n,refresh_token:i}=e.data?.data??{};this.tokenService.saveToken(n),this.tokenService.saveRefreshToken(i),r.accessToken=n,aO(null,n),r.isRefreshing=!1;let o=this.rejectIfOffline();if(o)return Promise.reject(o);return t.headers.Authorization=`Bearer ${n}`,this.instance(t)}catch(i){aO(i,null),r.isRefreshing=!1,r.accessToken=null;let{showMessage:t,defaultMessage:n}=this.resolveError(e,"Your session has expired, you need to sign in again.");return t&&(am("error","Error",n),setTimeout(()=>{let e=this.authService.getLoginUrl();e||(e="function"==typeof this.loginUrl?this.loginUrl():this.loginUrl),e&&(location.href=e)},1e3)),this.authService.logOut(),Promise.reject(e.response||e)}}let o={403:this.defaultError?.onForbidden,500:this.defaultError?.onServerError,400:this.defaultError?.onBadRequest,422:this.defaultError?.onValidationError,404:this.defaultError?.onNotFound},s=e.response?.data?.message,a={403:"You do not have permission to perform this action",500:s||"Unable to process request at this time, please try again",400:s||"Bad Request",422:s||"Validation error",404:"Resource not found"};if(i&&o[i]){let{showMessage:t,defaultMessage:r}=this.resolveError(e,a[i],o[i]);t&&!n&&am("error","Error",r)}return Promise.reject(e.response||e)};async refreshToken(){let e=this.authService.getRefreshTokenPath();e||(iC("refresh-token-path-not-found",!0),e=`${location.origin}/api/v2/auth/refresh-token-web`);let t={refresh_token:this.tokenService.getRefreshToken(),ums_user_id:this.authService.getLoggedInUser()?.ums_user_id};return u().post(e,t)}}function aT(e){let t=Object.create(null);for(let r of e.split(","))t[r]=1;return e=>e in t}let aA=Object.assign,aM=Object.prototype.hasOwnProperty,aR=(e,t)=>aM.call(e,t),aP=Array.isArray,aL=e=>"[object Map]"===aj(e),aD=e=>"string"==typeof e,aN=e=>"symbol"==typeof e,aB=e=>null!==e&&"object"==typeof e,aF=Object.prototype.toString,aj=e=>aF.call(e),aU=e=>aj(e).slice(8,-1),az=e=>aD(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,aq=(e,t)=>!Object.is(e,t),aH,a$=0,aW,aV;function aY(){a$++}function aX(){if(--a$>0)return;if(aV){let e=aV;aV=void 0;while(e){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;while(aW){let t=aW;aW=void 0;while(t){let r=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=r}}if(e)throw e}let aG=!0,aJ=[];function aK(){aJ.push(aG),aG=!1}function aZ(){let e=aJ.pop();aG=void 0===e||e}let aQ=0;class a0{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class a1{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!aH||!aG||aH===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==aH)t=this.activeLink=new a0(aH,this),aH.deps?(t.prevDep=aH.depsTail,aH.depsTail.nextDep=t,aH.depsTail=t):aH.deps=aH.depsTail=t,a2(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=aH.depsTail,t.nextDep=void 0,aH.depsTail.nextDep=t,aH.depsTail=t,aH.deps===t&&(aH.deps=e)}return t}trigger(e){this.version++,aQ++,this.notify(e)}notify(e){aY();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{aX()}}}function a2(e){if(e.dep.sc++,4&e.sub.flags){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)a2(e)}let r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}let a4=new WeakMap,a5=Symbol(""),a8=Symbol(""),a6=Symbol("");function a3(e,t,r){if(aG&&aH){let t=a4.get(e);t||a4.set(e,t=new Map);let n=t.get(r);n||(t.set(r,n=new a1),n.map=t,n.key=r),n.track()}}function a7(e,t,r,n,i,o){let s=a4.get(e);if(!s)return void aQ++;let a=e=>{e&&e.trigger()};if(aY(),"clear"===t)s.forEach(a);else{let i=aP(e),o=i&&az(r);if(i&&"length"===r){let e=Number(n);s.forEach((t,r)=>{("length"===r||r===a6||!aN(r)&&r>=e)&&a(t)})}else switch((void 0!==r||s.has(void 0))&&a(s.get(r)),o&&a(s.get(a6)),t){case"add":i?o&&a(s.get("length")):(a(s.get(a5)),aL(e)&&a(s.get(a8)));break;case"delete":!i&&(a(s.get(a5)),aL(e)&&a(s.get(a8)));break;case"set":aL(e)&&a(s.get(a5));break}}aX()}function a9(e,t){let r=a4.get(e);return r&&r.get(t)}function ce(e){let t=cF(e);return t===e?t:(a3(t,"iterate",a6),cN(e)?t:t.map(cj))}function ct(e){return a3(e=cF(e),"iterate",a6),e}function cr(e,t){return cD(e)?cL(e)?cU(cj(t)):cU(t):cj(t)}let cn={__proto__:null,[Symbol.iterator](){return ci(this,Symbol.iterator,e=>cr(this,e))},concat(...e){return ce(this).concat(...e.map(e=>aP(e)?ce(e):e))},entries(){return ci(this,"entries",e=>(e[1]=cr(this,e[1]),e))},every(e,t){return cs(this,"every",e,t,void 0,arguments)},filter(e,t){return cs(this,"filter",e,t,e=>e.map(e=>cr(this,e)),arguments)},find(e,t){return cs(this,"find",e,t,e=>cr(this,e),arguments)},findIndex(e,t){return cs(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return cs(this,"findLast",e,t,e=>cr(this,e),arguments)},findLastIndex(e,t){return cs(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return cs(this,"forEach",e,t,void 0,arguments)},includes(...e){return cc(this,"includes",e)},indexOf(...e){return cc(this,"indexOf",e)},join(e){return ce(this).join(e)},lastIndexOf(...e){return cc(this,"lastIndexOf",e)},map(e,t){return cs(this,"map",e,t,void 0,arguments)},pop(){return cu(this,"pop")},push(...e){return cu(this,"push",e)},reduce(e,...t){return ca(this,"reduce",e,t)},reduceRight(e,...t){return ca(this,"reduceRight",e,t)},shift(){return cu(this,"shift")},some(e,t){return cs(this,"some",e,t,void 0,arguments)},splice(...e){return cu(this,"splice",e)},toReversed(){return ce(this).toReversed()},toSorted(e){return ce(this).toSorted(e)},toSpliced(...e){return ce(this).toSpliced(...e)},unshift(...e){return cu(this,"unshift",e)},values(){return ci(this,"values",e=>cr(this,e))}};function ci(e,t,r){let n=ct(e),i=n[t]();return n===e||cN(e)||(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=r(e.value)),e}),i}let co=Array.prototype;function cs(e,t,r,n,i,o){let s=ct(e),a=s!==e&&!cN(e),c=s[t];if(c!==co[t]){let t=c.apply(e,o);return a?cj(t):t}let u=r;s!==e&&(a?u=function(t,n){return r.call(this,cr(e,t),n,e)}:r.length>2&&(u=function(t,n){return r.call(this,t,n,e)}));let l=c.call(s,u,n);return a&&i?i(l):l}function ca(e,t,r,n){let i=ct(e),o=i!==e&&!cN(e),s=r,a=!1;i!==e&&(o?(a=0===n.length,s=function(t,n,i){return a&&(a=!1,t=cr(e,t)),r.call(this,t,cr(e,n),i,e)}):r.length>3&&(s=function(t,n,i){return r.call(this,t,n,i,e)}));let c=i[t](s,...n);return a?cr(e,c):c}function cc(e,t,r){let n=cF(e);a3(n,"iterate",a6);let i=n[t](...r);return(-1===i||!1===i)&&cB(r[0])?(r[0]=cF(r[0]),n[t](...r)):i}function cu(e,t,r=[]){aK(),aY();let n=cF(e)[t].apply(e,r);return aX(),aZ(),n}let cl=aT("__proto__,__v_isRef,__isVue"),ch=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(aN));function cd(e){aN(e)||(e=String(e));let t=cF(this);return a3(t,"has",e),t.hasOwnProperty(e)}class cf{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){if("__v_skip"===t)return e["__v_skip"];let n=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!n;if("__v_isReadonly"===t)return n;if("__v_isShallow"===t)return i;if("__v_raw"===t)return r===(n?i?cT:cI:i?cO:cE).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;let o=aP(e);if(!n){let e;if(o&&(e=cn[t]))return e;if("hasOwnProperty"===t)return cd}let s=Reflect.get(e,t,cz(e)?e:r);if((aN(t)?ch.has(t):cl(t))||(n||a3(e,"get",t),i))return s;if(cz(s)){let e=o&&az(t)?s:s.value;return n&&aB(e)?cR(e):e}return aB(s)?n?cR(s):cM(s):s}}class cp extends cf{constructor(e=!1){super(!1,e)}set(e,t,r,n){let i=e[t],o=aP(e)&&az(t);if(!this._isShallow){let e=cD(i);if(cN(r)||cD(r)||(i=cF(i),r=cF(r)),!o&&cz(i)&&!cz(r))if(e)return!0;else return i.value=r,!0}let s=o?Number(t)<e.length:aR(e,t),a=Reflect.set(e,t,r,cz(e)?e:n);return e===cF(n)&&a&&(s?aq(r,i)&&a7(e,"set",t,r,i):a7(e,"add",t,r)),a}deleteProperty(e,t){let r=aR(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&a7(e,"delete",t,void 0,n),i}has(e,t){let r=Reflect.has(e,t);return aN(t)&&ch.has(t)||a3(e,"has",t),r}ownKeys(e){return a3(e,"iterate",aP(e)?"length":a5),Reflect.ownKeys(e)}}class cg extends cf{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}let cm=new cp,cv=new cg,cy=e=>e,cb=e=>Reflect.getPrototypeOf(e);function cw(e,t,r){return function(...n){let i=this["__v_raw"],o=cF(i),s=aL(o),a="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=i[e](...n),l=r?cy:t?cU:cj;return t||a3(o,"iterate",c?a8:a5),aA(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[l(e[0]),l(e[1])]:l(e),done:t}}})}}function cx(e){return function(){return"delete"!==e&&("clear"===e?void 0:this)}}function c_(e,t){let r={get(r){let n=this["__v_raw"],i=cF(n),o=cF(r);e||(aq(r,o)&&a3(i,"get",r),a3(i,"get",o));let{has:s}=cb(i),a=t?cy:e?cU:cj;return s.call(i,r)?a(n.get(r)):s.call(i,o)?a(n.get(o)):void(n!==i&&n.get(r))},get size(){let t=this["__v_raw"];return e||a3(cF(t),"iterate",a5),t.size},has(t){let r=this["__v_raw"],n=cF(r),i=cF(t);return e||(aq(t,i)&&a3(n,"has",t),a3(n,"has",i)),t===i?r.has(t):r.has(t)||r.has(i)},forEach(r,n){let i=this,o=i["__v_raw"],s=cF(o),a=t?cy:e?cU:cj;return e||a3(s,"iterate",a5),o.forEach((e,t)=>r.call(n,a(e),a(t),i))}};aA(r,e?{add:cx("add"),set:cx("set"),delete:cx("delete"),clear:cx("clear")}:{add(e){let r=cF(this),n=cb(r),i=cF(e),o=t||cN(e)||cD(e)?e:i,s=n.has.call(r,o)||aq(e,o)&&n.has.call(r,e)||aq(i,o)&&n.has.call(r,i);return s||(r.add(o),a7(r,"add",o,o)),this},set(e,r){t||cN(r)||cD(r)||(r=cF(r));let n=cF(this),{has:i,get:o}=cb(n),s=i.call(n,e);s||(e=cF(e),s=i.call(n,e));let a=o.call(n,e);return n.set(e,r),s?aq(r,a)&&a7(n,"set",e,r,a):a7(n,"add",e,r),this},delete(e){let t=cF(this),{has:r,get:n}=cb(t),i=r.call(t,e);i||(e=cF(e),i=r.call(t,e));let o=n?n.call(t,e):void 0,s=t.delete(e);return i&&a7(t,"delete",e,void 0,o),s},clear(){let e=cF(this),t=0!==e.size,r,n=e.clear();return t&&a7(e,"clear",void 0,void 0,r),n}});let n=["keys","values","entries",Symbol.iterator];return n.forEach(n=>{r[n]=cw(n,e,t)}),r}function ck(e,t){let r=c_(e,t);return(t,n,i)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get(aR(r,n)&&n in t?r:t,n,i)}let cS={get:ck(!1,!1)},cC={get:ck(!0,!1)},cE=new WeakMap,cO=new WeakMap,cI=new WeakMap,cT=new WeakMap;function cA(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function cM(e){return cD(e)?e:cP(e,!1,cm,cS,cE)}function cR(e){return cP(e,!0,cv,cC,cI)}function cP(e,t,r,n,i){if(!aB(e)||e["__v_raw"]&&!(t&&e["__v_isReactive"])||e["__v_skip"]||!Object.isExtensible(e))return e;let o=i.get(e);if(o)return o;let s=cA(aU(e));if(0===s)return e;let a=new Proxy(e,2===s?n:r);return i.set(e,a),a}function cL(e){return cD(e)?cL(e["__v_raw"]):!!(e&&e["__v_isReactive"])}function cD(e){return!!(e&&e["__v_isReadonly"])}function cN(e){return!!(e&&e["__v_isShallow"])}function cB(e){return!!e&&!!e["__v_raw"]}function cF(e){let t=e&&e["__v_raw"];return t?cF(t):e}let cj=e=>aB(e)?cM(e):e,cU=e=>aB(e)?cR(e):e;function cz(e){return!!e&&!0===e["__v_isRef"]}function cq(e){return cz(e)?e.value:e}function cH(e){let t=aP(e)?Array(e.length):{};for(let r in e)t[r]=cW(e,r);return t}class c${constructor(e,t,r){this._object=e,this._defaultValue=r,this["__v_isRef"]=!0,this._value=void 0,this._key=aN(t)?t:String(t),this._raw=cF(e);let n=!0,i=e;if(!aP(e)||aN(this._key)||!az(this._key))do n=!cB(i)||cN(i);while(n&&(i=i["__v_raw"]))this._shallow=n}get value(){let e=this._object[this._key];return this._shallow&&(e=cq(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&cz(this._raw[this._key])){let t=this._object[this._key];if(cz(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return a9(this._raw,this._key)}}function cW(e,t,r){return new c$(e,t,r)}function cV(e,t,r){let n=cM({isLoading:!1,isSuccessful:!1,hasError:!1,response:null,error:null});return n.isLoading=!0,n.error=null,e.request(t).then(r).then(e=>{n.response=e,n.isSuccessful=!0}).catch(e=>{n.error=e?.data,n.hasError=!0}).finally(()=>{n.isLoading=!1}),n}function cY(e,t,r){let n=cM({response:null,error:null,isLoading:!1,isSuccessful:!1,hasError:!1}),i=async i=>{let o=e.request(i?{...t,...i}:t);n.isLoading=!0;try{let e=await o.then(r);return n.response=e,n.error=null,n.isSuccessful=!0,n.hasError=!1,e}catch(e){throw n.response=null,n.error=e?.data,n.isSuccessful=!1,n.hasError=!0,Error(e?.data)}finally{n.isLoading=!1}};return{...cH(n),execute:i}}let cX=(e,t,r)=>{if(!Array.isArray(e))return e.___group_name=iv(e,t,""),e.___identity=iv(e,r,""),e;{let n=[];return e.forEach(e=>{n.push(cX(e,t,r))}),n}};class cG{eventTarget;constructor(e=""){this.eventTarget=document.appendChild(document.createComment(e))}on(e,t){this.eventTarget.addEventListener(e,t)}once(e,t){this.eventTarget.addEventListener(e,t,{once:!0})}off(e,t){this.eventTarget.removeEventListener(e,t)}emit(e,t){let r=new CustomEvent(e,{detail:t});return this.eventTarget.dispatchEvent(r)}}let cJ=new cG("shr-event-bus");var cK=r(2242),cZ=r.n(cK);class cQ{pusher;setupPusherConnection(e,t){this.pusher=new(cZ())(e,t)}}var c0=new cQ,c1;if("u"<typeof window){var c2={hostname:""};c1={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:c2,referrer:""},screen:{width:0,height:0},location:c2,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else c1=window;var c4={DEBUG:!1,LIB_VERSION:"2.80.0"},c5="__mp_targeting",c8="__mp_recorder",c6="__MP_RECORDER_FILENAME__",c3="__MP_TARGETING_FILENAME__";function c7(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c9(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,i)}function ue(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){c9(o,n,i,s,a,"next",e)}function a(e){c9(o,n,i,s,a,"throw",e)}s(void 0)})}}function ut(e,t,r){return(ut=up()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=Function.bind.apply(e,n),o=new i;return r&&ul(o,r.prototype),o}).apply(null,arguments)}function ur(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function un(e,t,r){return t&&ur(e.prototype,t),e}function ui(){return(ui=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function uo(e){return(uo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function us(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ul(e,t)}function ua(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function uc(e){return -1!==Function.toString.call(e).indexOf("[native code]")}function uu(e,t){if(null==e)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],t.indexOf(i)>=0||(r[i]=e[i]);return r}function ul(e,t){return(ul=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function uh(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function ud(e,t){if(e){if("string"==typeof e)return c7(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c7(e,t)}}function uf(e){var t="function"==typeof Map?new Map:void 0;return(uf=function(e){if(null===e||!uc(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ut(e,arguments,uo(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ul(r,e)})(e)}function up(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(up=function(){return!!e})()}function ug(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=ud(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function um(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function uv(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var uy=Object.defineProperty,ub=function(e,t,r){return t in e?uy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},uw=function(e,t,r){return ub(e,(void 0===t?"undefined":uh(t))!=="symbol"?t+"":t,r)},ux,u_=Object.defineProperty,uk=function(e,t,r){return t in e?u_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},uS=function(e,t,r){return uk(e,(void 0===t?"undefined":uh(t))!=="symbol"?t+"":t,r)},uC=function(e){return e[e["Document"]=0]="Document",e[e["DocumentType"]=1]="DocumentType",e[e["Element"]=2]="Element",e[e["Text"]=3]="Text",e[e["CDATA"]=4]="CDATA",e[e["Comment"]=5]="Comment",e}(uC||{}),uE={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},uO={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},uI={},uT=function(){return!!globalThis.Zone};function uA(e){if(uI[e])return uI[e];var t=globalThis[e],r=t.prototype,n=e in uE?uE[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in uO?uO[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!uT())return uI[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;if(document.body.removeChild(a),!u)return r;return uI[e]=u}catch(e){return r}}var uM={};function uR(e,t,r){var n,i=e+"."+String(r);if(uM[i])return uM[i].call(t);var o=uA(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(uM[i]=s,s.call(t)):t[r]}var uP={};function uL(e,t,r){var n=e+"."+String(r);if(uP[n])return uP[n].bind(t);var i=uA(e),o=i[r];return"function"!=typeof o?t[r]:(uP[n]=o,o.bind(t))}function uD(e){return uR("Node",e,"childNodes")}function uN(e){return uR("Node",e,"parentNode")}function uB(e){return uR("Node",e,"parentElement")}function uF(e){return uR("Node",e,"textContent")}function uj(e,t){return uL("Node",e,"contains")(t)}function uU(e){return uL("Node",e,"getRootNode")()}function uz(e){return e&&"host"in e?uR("ShadowRoot",e,"host"):null}function uq(e){return e.styleSheets}function uH(e){return e&&"shadowRoot"in e?uR("Element",e,"shadowRoot"):null}function u$(e,t){return uR("Element",e,"querySelector")(t)}function uW(e,t){return uR("Element",e,"querySelectorAll")(t)}function uV(){return uA("MutationObserver").constructor}function uY(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var uX={childNodes:uD,parentNode:uN,parentElement:uB,textContent:uF,contains:uj,getRootNode:uU,host:uz,styleSheets:uq,shadowRoot:uH,querySelector:u$,querySelectorAll:uW,mutationObserver:uV,patch:uY};function uG(e){return e.nodeType===e.ELEMENT_NODE}function uJ(e){var t=e&&"host"in e&&"mode"in e&&uX.host(e)||null;return!!(t&&"shadowRoot"in t&&uX.shadowRoot(t)===e)}function uK(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function uZ(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function uQ(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function u0(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);var n=Array.from(t,function(e){return u1(e,r)}).join("");return uZ(n)}catch(e){return null}}function u1(e,t){if(u4(e)){var r;try{r=u0(e.styleSheet)||uQ(e)}catch(t){r=e.cssText}return e.styleSheet.href?lc(r,e.styleSheet.href):r}var n=e.cssText;return(u5(e)&&e.selectorText.includes(":")&&(n=u2(n)),t)?lc(n,t):n}function u2(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function u4(e){return"styleSheet"in e}function u5(e){return"selectorText"in e}var u8=function(){function e(){uS(this,"idNodeMap",new Map),uS(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return -1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return r.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function u6(){return new u8}function u3(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&u7(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function u7(e){return e.toLowerCase()}var u9="__rrweb_original__";function le(e){var t=e.getContext("2d");if(!t)return!0;for(var r=50,n=0;n<e.width;n+=r)for(var i=0;i<e.height;i+=r){var o=t.getImageData,s=u9 in o?o[u9]:o,a=new Uint32Array(s.call(t,n,i,Math.min(r,e.width-n),Math.min(r,e.height-i)).data.buffer);if(a.some(function(e){return 0!==e}))return!1}return!0}function lt(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?u7(t):null}function lr(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var n=/\.([0-9a-z]+)(?:$)/i,i=r.pathname.match(n),o;return null!=(o=null==i?void 0:i[1])?o:null}function ln(e){return(e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}var li=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,lo=/^(?:[a-z+]+:)?\/\//i,ls=/^www\..*/i,la=/^(data:)([^,]*),(.*)/i;function lc(e,t){return(e||"").replace(li,function(e,r,n,i,o,s){var a=n||o||s,c=r||i||"";if(!a)return e;if(lo.test(a)||ls.test(a)||la.test(a))return"url("+c+a+c+")";if("/"===a[0])return"url("+c+(ln(t)+a)+c+")";var u=t.split("/"),l=a.split("/");u.pop();for(var h=ug(l),d;!(d=h()).done;){var f=d.value;"."!==f&&(".."===f?u.pop():u.push(f))}return"url("+c+u.join("/")+c+")"})}function lu(e,t){return(void 0===t&&(t=!1),t)?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function ll(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e){for(var s=lu(e,r),a=s.length/e.length,c=1;c<n.length;c++)if(n[c].textContent&&"string"==typeof n[c].textContent){for(var u=lu(n[c].textContent,r),l=100,h=3;h<u.length&&(u[h].match(/[a-zA-Z0-9]/)||-1!==u.indexOf(u.substring(0,h),1));h++);for(;h<u.length;h++){var d=u.substring(0,h),f=s.split(d),p=-1;if(2===f.length)p=f[0].length;else if(f.length>2&&""===f[0]&&""!==n[c-1].textContent)p=s.indexOf(d,1);else if(1===f.length){if(d=d.substring(0,d.length-1),(f=s.split(d)).length<=1)return i.push(e),i;h=l+1}else h===u.length-1&&(p=s.indexOf(d));if(f.length>=2&&h>l){var g=n[c-1].textContent;if(g&&"string"==typeof g){var m=lu(g).length;p=s.indexOf(d,m)}-1===p&&(p=f[0].length)}if(-1!==p){for(var v=Math.floor(p/a);v>0&&v<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var y=lu(e.substring(0,v),r);if(y.length===p){i.push(e.substring(0,v)),e=e.substring(v),s=s.substring(p);break}y.length<p?v+=Math.max(1,Math.floor((p-y.length)/a)):v-=Math.max(1,Math.floor((y.length-p)*a))}break}}}}return i.push(e),i}function lh(e,t){return ll(e,t).join("/* rr_split */")}var ld=1,lf=RegExp("[^a-z0-9-_:]"),lp=-2;function lg(){return ld++}function lm(e){if(ua(e,HTMLFormElement))return"form";var t=u7(e.tagName);return lf.test(t)?"div":t}var lv,ly,lb=/^[^ \t\n\r\u000c]+/,lw=/^[, \t\n\r\u000c]+/;function lx(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}var i=[];while(1){if(n(lw),r>=t.length)break;var o=n(lb);if(","===o.slice(-1))o=lk(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=lk(e,o);var a=!1;while(1){var c=t.charAt(r);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else if(","===c){r+=1,i.push((o+s).trim());break}else"("===c&&(a=!0);s+=c,r+=1}}}return i.join(", ")}var l_=new WeakMap;function lk(e,t){return t&&""!==t.trim()?lC(e,t):t}function lS(e){return!!("svg"===e.tagName||e.ownerSVGElement)}function lC(e,t){var r=l_.get(e);if(r||(r=e.createElement("a"),l_.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function lE(e,t,r,n){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return lk(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return lk(e,n);if("srcset"===r)return lx(e,n);if("style"===r)return lc(n,lC(e));else if("object"===t&&"data"===r)return lk(e,n);return n}function lO(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function lI(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}function lT(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&lT(uX.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&lT(uX.parentNode(e),t,r)}function lA(e,t,r,n){var i;if(uG(e)){if(i=e,!uX.childNodes(i).length)return!1}else{if(null===uX.parentElement(e))return!1;i=uX.parentElement(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(lT(i,t,n))return!0;if(r){if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}}catch(e){}return!1}function lM(e,t,r){var n=e.contentWindow;if(n){var i=!1,o;try{o=n.document.readyState}catch(e){return}if("complete"!==o){var s=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(s),i=!0,t()});return}var a="about:blank";if(n.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}function lR(e,t,r){var n=!1,i;try{i=e.sheet}catch(e){return}if(!i){var o=setTimeout(function(){n||(t(),n=!0)},r);e.addEventListener("load",function(){clearTimeout(o),n=!0,t()})}}function lP(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskTextFn,h=t.maskInputFn,d=t.dataURLOptions,f=void 0===d?{}:d,p=t.inlineImages,g=t.recordCanvas,m=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,b=t.cssCaptured,w=void 0!==b&&b,x=lL(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:uC.Document,childNodes:[],compatMode:e.compatMode};return{type:uC.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:uC.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:x};case e.ELEMENT_NODE:return lN(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:u,maskInputFn:h,dataURLOptions:f,inlineImages:p,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:y,rootId:x});case e.TEXT_NODE:return lD(e,{doc:r,needsMask:s,maskTextFn:l,rootId:x,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:uC.CDATA,textContent:"",rootId:x};case e.COMMENT_NODE:return{type:uC.Comment,textContent:uX.textContent(e)||"",rootId:x};default:return!1}}function lL(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}function lD(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=uX.parentNode(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;return l?c="SCRIPT_PLACEHOLDER":!o&&(c=uX.textContent(e),u&&c&&(c=lc(c,lC(t.doc)))),!u&&!l&&c&&r&&(c=n?n(c,uX.parentElement(e)):c.replace(/[\S]/g,"*")),{type:uC.Text,textContent:c||"",rootId:i}}function lN(e,t){for(var r=t.doc,n=t.blockClass,i=t.blockSelector,o=t.inlineStylesheet,s=t.maskInputOptions,a=void 0===s?{}:s,c=t.maskInputFn,u=t.dataURLOptions,l=void 0===u?{}:u,h=t.inlineImages,d=t.recordCanvas,f=t.keepIframeSrcFn,p=t.newlyAddedElement,g=void 0!==p&&p,m=t.rootId,v=lI(e,n,i),y=lm(e),b={},w=e.attributes.length,x=0;x<w;x++){var _=e.attributes[x];lO(y,_.name,_.value)||(b[_.name]=lE(r,y,u7(_.name),_.value))}if("link"===y&&o){var k=Array.from(r.styleSheets).find(function(t){return t.href===e.href}),S=null;k&&(S=u0(k)),S&&(delete b.rel,delete b.href,b._cssText=S)}if("style"===y&&e.sheet){var C=u0(e.sheet);C&&(e.childNodes.length>1&&(C=lh(C,e)),b._cssText=C)}if("input"===y||"textarea"===y||"select"===y){var E=e.value,O=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&E?b.value=u3({element:e,type:lt(e),tagName:y,value:E,maskInputOptions:a,maskInputFn:c}):O&&(b.checked=O)}if("option"===y&&(e.selected&&!a["select"]?b.selected=!0:delete b.selected),"dialog"===y&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===y&&d){if("2d"===e.__context)le(e)||(b.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){var I=e.toDataURL(l.type,l.quality),T=r.createElement("canvas");T.width=e.width,T.height=e.height;var A=T.toDataURL(l.type,l.quality);I!==A&&(b.rr_dataURL=I)}}if("img"===y&&h){lv||(ly=(lv=r.createElement("canvas")).getContext("2d"));var M=e,R=M.currentSrc||M.getAttribute("src")||"<unknown-src>",P=M.crossOrigin,L=function(){M.removeEventListener("load",L);try{lv.width=M.naturalWidth,lv.height=M.naturalHeight,ly.drawImage(M,0,0),b.rr_dataURL=lv.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==M.crossOrigin){M.crossOrigin="anonymous",M.complete&&0!==M.naturalWidth?L():M.addEventListener("load",L);return}console.warn("Cannot inline img src="+R+"! Error: "+e)}"anonymous"===M.crossOrigin&&(P?b.crossOrigin=P:M.removeAttribute("crossorigin"))};M.complete&&0!==M.naturalWidth?L():M.addEventListener("load",L)}if("audio"===y||"video"===y){var D=b;D.rr_mediaState=e.paused?"paused":"played",D.rr_mediaCurrentTime=e.currentTime,D.rr_mediaPlaybackRate=e.playbackRate,D.rr_mediaMuted=e.muted,D.rr_mediaLoop=e.loop,D.rr_mediaVolume=e.volume}if(!g&&(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),v){var N=e.getBoundingClientRect(),B=N.width,F=N.height;b={class:b.class,rr_width:""+B+"px",rr_height:""+F+"px"}}var j;"iframe"!==y||f(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(y)&&(j=!0)}catch(e){}return{type:uC.Element,tagName:y,attributes:b,childNodes:[],isSVG:lS(e)||void 0,needBlock:v,rootId:m,isCustom:j}}function lB(e){return null==e?"":e.toLowerCase()}function lF(e,t){if(t.comment&&e.type===uC.Comment)return!0;if(e.type===uC.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===lr(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(lB(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===lB(e.attributes.name)||"icon"===lB(e.attributes.rel)||"apple-touch-icon"===lB(e.attributes.rel)||"shortcut icon"===lB(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&lB(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(lB(e.attributes.property).match(/^(og|twitter|fb):/)||lB(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===lB(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===lB(e.attributes.name)||"googlebot"===lB(e.attributes.name)||"bingbot"===lB(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===lB(e.attributes.name)||"generator"===lB(e.attributes.name)||"framework"===lB(e.attributes.name)||"publisher"===lB(e.attributes.name)||"progid"===lB(e.attributes.name)||lB(e.attributes.property).match(/^article:/)||lB(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===lB(e.attributes.name)||"yandex-verification"===lB(e.attributes.name)||"csrf-token"===lB(e.attributes.name)||"p:domain_verify"===lB(e.attributes.name)||"verify-v1"===lB(e.attributes.name)||"verification"===lB(e.attributes.name)||"shopify-checkout-api-token"===lB(e.attributes.name)))return!0}}return!1}function lj(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,u=void 0!==c&&c,l=t.inlineStylesheet,h=void 0===l||l,d=t.maskInputOptions,f=void 0===d?{}:d,p=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,b=t.inlineImages,w=void 0!==b&&b,x=t.recordCanvas,_=void 0!==x&&x,k=t.onSerialize,S=t.onIframeLoad,C=t.iframeLoadTimeout,E=void 0===C?5e3:C,O=t.onStylesheetLoad,I=t.stylesheetLoadTimeout,T=void 0===I?5e3:I,A=t.keepIframeSrcFn,M=void 0===A?function(){return!1}:A,R=t.newlyAddedElement,P=void 0!==R&&R,L=t.cssCaptured,D=void 0!==L&&L,N=t.needsMask,B=t.preserveWhiteSpace,F=void 0===B||B;if(!N){var j=void 0===N;N=lA(e,s,a,j)}var U=lP(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:N,inlineStylesheet:h,maskInputOptions:f,maskTextFn:p,maskInputFn:g,dataURLOptions:y,inlineImages:w,recordCanvas:_,keepIframeSrcFn:M,newlyAddedElement:P,cssCaptured:D});if(!U)return console.warn(e,"not serialized"),null;var z;z=n.hasNode(e)?n.getId(e):!lF(U,m)&&(F||U.type!==uC.Text||U.textContent.replace(/^\s+|\s+$/gm,"").length)?lg():lp;var q=Object.assign(U,{id:z});if(n.add(e,q),z===lp)return null;k&&k(e);var H=!u;if(q.type===uC.Element){H=H&&!q.needBlock,delete q.needBlock;var $=uX.shadowRoot(e);$&&uK($)&&(q.isShadowHost=!0)}if((q.type===uC.Document||q.type===uC.Element)&&H){m.headWhitespace&&q.type===uC.Element&&"head"===q.tagName&&(F=!1);var W={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:f,maskTextFn:p,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:_,preserveWhiteSpace:F,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:O,stylesheetLoadTimeout:T,keepIframeSrcFn:M,cssCaptured:!1};if(q.type===uC.Element&&"textarea"===q.tagName&&void 0!==q.attributes.value);else{q.type===uC.Element&&void 0!==q.attributes._cssText&&"string"==typeof q.attributes._cssText&&(W.cssCaptured=!0);for(var V=ug(Array.from(uX.childNodes(e))),Y;!(Y=V()).done;){var X=Y.value,G=lj(X,W);G&&q.childNodes.push(G)}}var J=null;if(uG(e)&&(J=uX.shadowRoot(e)))for(var K=ug(Array.from(uX.childNodes(J))),Z;!(Z=K()).done;){var Q=Z.value,ee=lj(Q,W);ee&&(uK(J)&&(ee.isShadow=!0),q.childNodes.push(ee))}}var et=uX.parentNode(e);return et&&uJ(et)&&uK(et)&&(q.isShadow=!0),q.type===uC.Element&&"iframe"===q.tagName&&lM(e,function(){var t=e.contentDocument;if(t&&S){var r=lj(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:p,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:_,preserveWhiteSpace:F,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:O,stylesheetLoadTimeout:T,keepIframeSrcFn:M});r&&S(e,r)}},E),q.type===uC.Element&&"link"===q.tagName&&"string"==typeof q.attributes.rel&&("stylesheet"===q.attributes.rel||"preload"===q.attributes.rel&&"string"==typeof q.attributes.href&&"css"===lr(q.attributes.href))&&lR(e,function(){if(O){var t=lj(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:p,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:_,preserveWhiteSpace:F,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:O,stylesheetLoadTimeout:T,keepIframeSrcFn:M});t&&O(e,t)}},T),q}function lU(e,t){var r=t||{},n=r.mirror,i=void 0===n?new u8:n,o=r.blockClass,s=void 0===o?"rr-block":o,a=r.blockSelector,c=void 0===a?null:a,u=r.maskTextClass,l=void 0===u?"rr-mask":u,h=r.maskTextSelector,d=void 0===h?null:h,f=r.inlineStylesheet,p=void 0===f||f,g=r.inlineImages,m=void 0!==g&&g,v=r.recordCanvas,y=void 0!==v&&v,b=r.maskAllInputs,w=void 0!==b&&b,x=r.maskTextFn,_=r.maskInputFn,k=r.slimDOM,S=void 0!==k&&k,C=r.dataURLOptions,E=r.preserveWhiteSpace,O=r.onSerialize,I=r.onIframeLoad,T=r.iframeLoadTimeout,A=r.onStylesheetLoad,M=r.stylesheetLoadTimeout,R=r.keepIframeSrcFn,P=void 0===R?function(){return!1}:R,L=!0===w?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===w?{password:!0}:w,D=!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===S,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===S?{}:S;return lj(e,{doc:e,mirror:i,blockClass:s,blockSelector:c,maskTextClass:l,maskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:L,maskTextFn:x,maskInputFn:_,slimDOMOptions:D,dataURLOptions:C,inlineImages:m,recordCanvas:y,preserveWhiteSpace:E,onSerialize:O,onIframeLoad:I,iframeLoadTimeout:T,onStylesheetLoad:A,stylesheetLoadTimeout:M,keepIframeSrcFn:P,newlyAddedElement:!1})}function lz(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function lq(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return ua(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var lH={exports:{}},l$=String,lW=function(){return{isColorSupported:!1,reset:l$,bold:l$,dim:l$,italic:l$,underline:l$,inverse:l$,hidden:l$,strikethrough:l$,black:l$,red:l$,green:l$,yellow:l$,blue:l$,magenta:l$,cyan:l$,white:l$,gray:l$,bgBlack:l$,bgRed:l$,bgGreen:l$,bgYellow:l$,bgBlue:l$,bgMagenta:l$,bgCyan:l$,bgWhite:l$}};lH.exports=lW(),lH.exports.createColors=lW;var lV=lH.exports,lY={},lX=Object.freeze(Object.defineProperty({__proto__:null,default:lY},Symbol.toStringTag,{value:"Module"})),lG=lq(lX),lJ=lV,lK=lG,lZ=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}us(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=lJ.isColorSupported),lK&&e&&(r=lK(r));var n=r.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),s=String(o).length,a,c;if(e){var u=lJ.createColors(!0),l=u.bold,h=u.gray,d=u.red;a=function(e){return l(d(e))},c=function(e){return h(e)}}else a=c=function(e){return e};return n.slice(i,o).map(function(e,r){var n=i+1+r,o=" "+(" "+n).slice(-s)+" | ";if(n===t.line){var u=c(o.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return a(">")+c(o)+e+"\n "+u+a("^")}return" "+c(o)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(uf(Error)),lQ=lZ;lZ.default=lZ;var l0={};l0.isClean=Symbol("isClean"),l0.my=Symbol("my");var l1={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function l2(e){return e[0].toUpperCase()+e.slice(1)}var l4=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r=this.raw(e,"between","beforeOpen"),n;this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return l1[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+l2(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=l1[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),l5=l4;l4.default=l4;var l8=l5;function l6(e,t){var r=new l8(t);r.stringify(e)}var l3=l6;l6.default=l6;var l7=l0.isClean,l9=l0.my,he=lQ,ht=l5,hr=l3;function hn(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":uh(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return hn(e,r)}):("object"===o&&null!==i&&(i=hn(i)),r[n]=i)}return r}var hi=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[l7]=!1,this[l9]=!0,e)if("nodes"===t){this.nodes=[];for(var r=ug(e[t]),n;!(n=r()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=hn(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new he(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[l7]){this[l7]=!1;var e=this;while(e=e.parent)e[l7]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new ht;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n=this,i=!1,o=ug(t),s;!(s=o()).done;){var a=s.value;a===this?i=!0:i?(this.parent.insertAfter(n,a),n=a):this.parent.insertBefore(n,a)}i||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":uh(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":uh(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=hr),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},un(e,[{key:"proxyOf",get:function(){return this}}]),e}(),ho=hi;hi.default=hi;var hs=ho,ha=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=ui({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return us(t,e),un(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(hs),hc=ha;ha.default=ha;var hu="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",hl=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=hu[64*Math.random()|0];return t},hh={nanoid:hl},hd=lG.SourceMapConsumer,hf=lG.SourceMapGenerator,hp=lG.existsSync,hg=lG.readFileSync,hm=lG.dirname,hv=lG.join;function hy(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var hb=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=hm(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new hd(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return hy(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":uh(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=hm(e),hp(e))return this.mapFile=e,hg(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(ua(t,hd))return hf.fromSourceMap(t).toString();else if(ua(t,hf))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=hv(hm(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),hw=hb;hb.default=hb;var hx=lG.SourceMapConsumer,h_=lG.SourceMapGenerator,hk=lG.fileURLToPath,hS=lG.pathToFileURL,hC=lG.isAbsolute,hE=lG.resolve,hO=hh.nanoid,hI=lG,hT=lQ,hA=hw,hM=Symbol("fromOffsetCache"),hR=!!(hx&&h_),hP=!!(hE&&hC),hL=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":uh(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!hP||/^\w+:\/\//.test(t.from)||hC(t.from)?this.file=t.from:this.file=hE(t.from)),hP&&hR){var r=new hA(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+hO(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&(void 0===t?"undefined":uh(t))==="object"){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return(i=d?new hT(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new hT(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(hS&&(i.input.url=hS(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[hM])r=this[hM];else{var n=this.css.split("\n");r=Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[hM]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c=r.length-2,u;while(a<c)if(e<r[u=a+(c-a>>1)])c=u-1;else if(e>=r[u+1])a=u+1;else{a=u;break}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:hE(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i=this.map.consumer(),o=i.originalPositionFor({column:t,line:e});if(!o.source)return!1;var s,a;"number"==typeof r&&(s=i.originalPositionFor({column:n,line:r})),a=hC(o.source)?hS(o.source):new URL(o.source,this.map.consumer().sourceRoot||hS(this.map.mapFile));var c={column:o.column,endColumn:s&&s.column,endLine:s&&s.line,line:o.line,url:a.toString()};if("file:"===a.protocol)if(hk)c.file=hk(a);else throw Error("file: protocol is not available in this PostCSS build");var u=i.sourceContentFor(o.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=ui({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},un(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),hD=hL;hL.default=hL,hI&&hI.registerInput&&hI.registerInput(hL);var hN=lG.SourceMapConsumer,hB=lG.SourceMapGenerator,hF=lG.dirname,hj=lG.relative,hU=lG.resolve,hz=lG.sep,hq=lG.pathToFileURL,hH=hD,h$=!!(hN&&hB),hW=!!(hF&&hU&&hj&&hz),hV=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e=ug(this.previous()),t;!(t=e()).done;){var r=t.value,n=this.toUrl(this.path(r.file)),i=r.root||hF(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new hN(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),hW&&h$&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=hB.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new hB({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new hB({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,s;this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(i.generated.line=t,i.generated.column=r-1,c.source&&c.source.start?(i.source=e.sourcePath(c),i.original.line=c.source.start.line,i.original.column=c.source.start.column-1):(i.source=n,i.original.line=1,i.original.column=0),e.map.addMapping(i)),(o=a.match(/\n/g))?(t+=o.length,s=a.lastIndexOf("\n"),r=a.length-s):r+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;(!h||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(i.source=e.sourcePath(c),i.original.line=c.source.end.line,i.original.column=c.source.end.column-1,i.generated.line=t,i.generated.column=r-2):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=t,i.generated.column=r-1),e.map.addMapping(i))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?hF(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=hF(hU(r,this.mapOpts.annotation)));var n=hj(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new hH(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(hq){var r=hq(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===hz&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),hY=hV,hX=ho,hG=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return us(t,e),t}(hX),hJ=hG;hG.default=hG;var hK=l0.isClean,hZ=l0.my,hQ=hc,h0=hJ,h1=ho,h2,h4,h5,h8;function h6(e){return e.map(function(e){return e.nodes&&(e.nodes=h6(e.nodes)),delete e.source,e})}function h3(e){if(e[hK]=!1,e.proxyOf.nodes)for(var t=ug(e.proxyOf.nodes),r;!(r=t()).done;){var n=r.value;h3(n)}}var h7=function(e){function t(){return e.apply(this,arguments)||this}us(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=ug(t),i;!(i=n()).done;)for(var o=i.value,s=this.normalize(o,this.last),a=ug(s),c;!(c=a()).done;){var u=c.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r=ug(this.nodes),n;!(n=r()).done;){var i=n.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t=this.getIterator(),r,n;while(this.indexes[t]<this.proxyOf.nodes.length){if(r=this.indexes[t],!1===(n=e(this.proxyOf.nodes[r],r)))break;this.indexes[t]+=1}return delete this.indexes[t],n}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(var i=ug(n),o;!(o=i()).done;){var s=o.value;this.proxyOf.nodes.splice(r+1,0,s)}var a;for(var c in this.indexes)r<(a=this.indexes[c])&&(this.indexes[c]=a+n.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r=this.index(e),n=0===r&&"prepend",i=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(var o=ug(i),s;!(s=o()).done;){var a=s.value;this.proxyOf.nodes.splice(r,0,a)}var c;for(var u in this.indexes)r<=(c=this.indexes[u])&&(this.indexes[u]=c+i.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=h6(h2(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i=ug(e),o;!(o=i()).done;){var s=o.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a=ug(e),c;!(c=a()).done;){var u=c.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new hQ(e)]}else if(e.selector)e=[new h4(e)];else if(e.name)e=[new h5(e)];else if(e.text)e=[new h0(e)];else throw Error("Unknown node type in node creation");var l=e.map(function(e){return e[hZ]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[hK]&&h3(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n=ug(t),i;!(i=n()).done;){for(var o=i.value,s=this.normalize(o,this.first,"prepend").reverse(),a=ug(s),c;!(c=a()).done;){var u=c.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+s.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e=ug(this.proxyOf.nodes),t;!(t=e()).done;){var r=t.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},un(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(h1);h7.registerParse=function(e){h2=e},h7.registerRule=function(e){h4=e},h7.registerAtRule=function(e){h5=e},h7.registerRoot=function(e){h8=e};var h9=h7;h7.default=h7,h7.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,h5.prototype):"rule"===e.type?Object.setPrototypeOf(e,h4.prototype):"decl"===e.type?Object.setPrototypeOf(e,hQ.prototype):"comment"===e.type?Object.setPrototypeOf(e,h0.prototype):"root"===e.type&&Object.setPrototypeOf(e,h8.prototype),e[hZ]=!0,e.nodes&&e.nodes.forEach(function(e){h7.rebuild(e)})};var de=h9,dt,dr,dn=function(e){function t(t){var r;return(r=e.call(this,ui({type:"document"},t))||this).nodes||(r.nodes=[]),r}us(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new dt(new dr,this,e);return t.stringify()},t}(de);dn.registerLazyResult=function(e){dt=e},dn.registerProcessor=function(e){dr=e};var di=dn;dn.default=dn;var ds=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),da=ds;ds.default=ds;var dc=da,du=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new dc(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},un(e,[{key:"content",get:function(){return this.css}}]),e}(),dl=du;du.default=du;var dh=39,dd=34,df=92,dp=47,dg=10,dm=32,dv=12,dy=9,db=13,dw=91,dx=93,d_=40,dk=41,dS=123,dC=125,dE=59,dO=42,dI=58,dT=64,dA=/[\t\n\f\r "#'()/;[\\\]{}]/g,dM=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,dR=/.[\r\n"'(/\\]/,dP=/[\da-f]/i,dL=function(e,t){void 0===t&&(t={});var r=e.css.valueOf(),n=t.ignoreErrors,i,o,s,a,c,u,l,h,d,f,p=r.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=p},nextToken:function(e){if(v.length)return v.pop();if(!(g>=p)){var t=!!e&&e.ignoreUnclosed;switch(i=r.charCodeAt(g)){case dg:case dm:case dy:case db:case dv:o=g;do o+=1,i=r.charCodeAt(o);while(i===dm||i===dg||i===dy||i===db||i===dv)f=["space",r.slice(g,o)],g=o-1;break;case dw:case dx:case dS:case dC:case dI:case dE:case dk:var b=String.fromCharCode(i);f=[b,b,g];break;case d_:if(h=m.length?m.pop()[1]:"",d=r.charCodeAt(g+1),"url"===h&&d!==dh&&d!==dd&&d!==dm&&d!==dg&&d!==dy&&d!==dv&&d!==db){o=g;do{if(u=!1,-1===(o=r.indexOf(")",o+1)))if(n||t){o=g;break}else y("bracket");l=o;while(r.charCodeAt(l-1)===df)l-=1,u=!u}while(u)f=["brackets",r.slice(g,o+1),g,o],g=o}else o=r.indexOf(")",g+1),a=r.slice(g,o+1),-1===o||dR.test(a)?f=["(","(",g]:(f=["brackets",a,g,o],g=o);break;case dh:case dd:s=i===dh?"'":'"',o=g;do{if(u=!1,-1===(o=r.indexOf(s,o+1)))if(n||t){o=g+1;break}else y("string");l=o;while(r.charCodeAt(l-1)===df)l-=1,u=!u}while(u)f=["string",r.slice(g,o+1),g,o],g=o;break;case dT:dA.lastIndex=g+1,dA.test(r),o=0===dA.lastIndex?r.length-1:dA.lastIndex-2,f=["at-word",r.slice(g,o+1),g,o],g=o;break;case df:o=g,c=!0;while(r.charCodeAt(o+1)===df)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==dp&&i!==dm&&i!==dg&&i!==dy&&i!==db&&i!==dv&&(o+=1,dP.test(r.charAt(o)))){while(dP.test(r.charAt(o+1)))o+=1;r.charCodeAt(o+1)===dm&&(o+=1)}f=["word",r.slice(g,o+1),g,o],g=o;break;default:i===dp&&r.charCodeAt(g+1)===dO?(0===(o=r.indexOf("*/",g+2)+1)&&(n||t?o=r.length:y("comment")),f=["comment",r.slice(g,o+1),g,o]):(dM.lastIndex=g+1,dM.test(r),o=0===dM.lastIndex?r.length-1:dM.lastIndex-2,f=["word",r.slice(g,o+1),g,o],m.push(f)),g=o;break}return g++,f}},position:function(){return g}}},dD=h9,dN=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}us(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(dD),dB=dN;dN.default=dN,dD.registerAtRule(dN);var dF=h9,dj,dU,dz=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}us(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o=ug(i),s;!(s=o()).done;){var a=s.value;a.raws.before=r.raws.before}}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new dj(new dU,this,e);return t.stringify()},t}(dF);dz.registerLazyResult=function(e){dj=e},dz.registerProcessor=function(e){dU=e};var dq=dz;dz.default=dz,dF.registerRoot(dz);var dH={comma:function(e){return dH.split(e,[","],!0)},space:function(e){var t=[" ","\n"," "];return dH.split(e,t)},split:function(e,t,r){for(var n=[],i="",o=!1,s=0,a=!1,c="",u=!1,l=ug(e),h;!(h=l()).done;){var d=h.value;u?u=!1:"\\"===d?u=!0:a?d===c&&(a=!1):'"'===d||"'"===d?(a=!0,c=d):"("===d?s+=1:")"===d?s>0&&(s-=1):0===s&&t.includes(d)&&(o=!0),o?(""!==i&&n.push(i.trim()),i="",o=!1):i+=d}return(r||""!==i)&&n.push(i.trim()),n}},d$=dH;dH.default=dH;var dW=h9,dV=d$,dY=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return us(t,e),un(t,[{key:"selectors",get:function(){return dV.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(dW),dX=dY;dY.default=dY,dW.registerRule(dY);var dG=hc,dJ=dL,dK=hJ,dZ=dB,dQ=dq,d0=dX,d1={empty:!0,space:!0};function d2(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var d4=function(){function e(e){this.input=e,this.root=new dQ,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t=new dZ,r,n,i;t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if("("===(r=(e=this.tokenizer.nextToken())[0])||"["===r?c.push("("===r?")":"]"):"{"===r&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),0===c.length)if(";"===r){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if("{"===r){s=!0;break}else if("}"===r){if(a.length>0){i=a.length-1,n=a[i];while(n&&"space"===n[0])n=a[--i];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),s&&(t.nodes=[],this.current=t)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r=0,n,i=t-1;i>=0&&("space"===(n=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}},t.colon=function(e){for(var t=0,r,n,i,o=ug(e.entries()),s;!(s=o()).done;){var a=s.value,c=a[0],u=a[1];if("("===(n=(r=u)[0])&&(t+=1),")"===n&&(t-=1),0===t&&":"===n)if(i)if("word"===i[0]&&"progid"===i[1])continue;else return c;else this.doubleColon(r);i=r}return!1},t.comment=function(e){var t=new dK;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=dJ(this.input)},t.decl=function(e,t){var r=new dG;this.init(r,e[0][2]);var n=e[e.length-1];";"===n[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||d2(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;r.prop+=e.shift()[1]}var o;r.raws.between="";while(e.length){if(":"===(o=e.shift())[0]){r.raws.between+=o[1];break}"word"===o[0]&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1]}("_"===r.prop[0]||"*"===r.prop[0])&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s=[],a;while(e.length){if("space"!==(a=e[0][0])&&"comment"!==a)break;s.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(o=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===o[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var f=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==o[0]&&"comment"!==o[0])break}var p=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});p&&(r.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(r,"value",s.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new d0;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if("space"!==(c=a[a.length-1][0])&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s=r.length,a="",c=!0,u,l,h=0;h<s;h+=1)"space"!==(o=(i=r[h])[0])||h!==s-1||n?"comment"===o?(l=r[h-1]?r[h-1][0]:"empty",u=r[h+1]?r[h+1][0]:"empty",d1[l]||d1[u]||","===a.slice(-1)?c=!1:a+=i[1]):a+=i[1]:c=!1;if(!c){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:a}}e[t]=a},t.rule=function(e){e.pop();var t=new d0;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if("space"!==(t=e[e.length-1][0])&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if("space"!==(t=e[0][0])&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t="";while(e.length){if("space"!==e[e.length-1][0])break;t=e.pop()[1]+t}return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),d5=d4,d8=h9,d6=d5,d3=hD;function d7(e,t){var r=new d3(e,t),n=new d6(r);try{n.parse()}catch(e){throw e}return n.root}var d9=d7;d7.default=d7,d8.registerParse(d7);var fe=l0.isClean,ft=l0.my,fr=hY,fn=l3,fi=h9,fo=di,fs=dl,fa=d9,fc=dq,fu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},fl={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},fh={Once:!0,postcssPlugin:!0,prepare:!0},fd=0;function ff(e){return(void 0===e?"undefined":uh(e))==="object"&&"function"==typeof e.then}function fp(e){var t=!1,r=fu[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,fd,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,fd,r+"Exit"]:[r,r+"Exit"]}function fg(e){return{eventIndex:0,events:"document"===e.type?["Document",fd,"DocumentExit"]:"root"===e.type?["Root",fd,"RootExit"]:fp(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function fm(e){return e[fe]=!1,e.nodes&&e.nodes.forEach(function(e){return fm(e)}),e}var fv={},fy=function(){function e(t,r,n){var i=this,o;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":uh(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))o=fm(r);else if(ua(r,e)||ua(r,fs))o=fm(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=fa;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{o=s(r,n)}catch(e){this.processed=!0,this.error=e}o&&!o[ft]&&fi.rebuild(o)}this.result=new fs(t,o,n),this.helpers=ui({},fv,{postcss:fv,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":uh(e))==="object"&&e.prepare?ui({},e,e.prepare(i.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},r=ug(this.plugins),n;!(n=r()).done;){var i=n.value;if((void 0===i?"undefined":uh(i))==="object")for(var o in i){if(!fl[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!fh[o])if("object"===uh(i[o]))for(var s in i[o])t(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&t(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return ue(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return um(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!ff(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[fe])return[3,14];o[fe]=!0,s=[fg(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!ff(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return um(this,function(s){switch(s.label){case 0:r=(t=d.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=ug(e.listeners.OnceExit),f.label=15;case 15:if((d=h()).done)return[3,18];return[5,uv(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":uh(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(ff(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=fn;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new fr(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=ug(this.plugins),t;!(t=e()).done;){var r=t.value,n=this.runOnRoot(r);if(ff(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[fe])i[fe]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o=ug(i.nodes),s;!(s=o()).done;){var a=s.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r=ug(e),n;!(n=r()).done;){var i=n.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(ff(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){var a=t.iterator,c;while(c=r.nodes[r.indexes[a]])if(r.indexes[a]+=1,!c[fe]){c[fe]=!0,e.push(fg(c));return}t.iterator=0,delete r.indexes[a]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===fd){r.nodes&&r.nodes.length&&(r[fe]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[fe]=!0;for(var r=fp(e),n=ug(r),i;!(i=n()).done;){var o=i.value;if(o===fd)e.nodes&&e.each(function(e){e[fe]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},un(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();fy.registerPostcss=function(e){fv=e};var fb=fy;fy.default=fy,fc.registerLazyResult(fy),fo.registerLazyResult(fy);var fw=hY,fx=l3,f_=d9,fk=dl,fS=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=fx;this.result=new fk(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new fw(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},un(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=f_;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),fC=fS;fS.default=fS;var fE=fC,fO=fb,fI=di,fT=dq,fA=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t=[],r=ug(e),n;!(n=r()).done;){var i=n.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":uh(i))==="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if((void 0===i?"undefined":uh(i))==="object"&&i.postcssPlugin)t.push(i);else if("function"==typeof i)t.push(i);else if((void 0===i?"undefined":uh(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return t},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new fO(this,e,t):new fE(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),fM=fA;fA.default=fA,fT.registerProcessor(fA),fI.registerProcessor(fA);var fR=hc,fP=hw,fL=hJ,fD=dB,fN=hD,fB=dq,fF=dX;function fj(e,t){if(Array.isArray(e))return e.map(function(e){return fj(e)});var r=e.inputs,n=uu(e,["inputs"]);if(r){t=[];for(var i=ug(r),o;!(o=i()).done;){var s=o.value,a=ui({},s,{__proto__:fN.prototype});a.map&&(a.map=ui({},a.map,{__proto__:fP.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return fj(e,t)})),n.source){var c=n.source,u=c.inputId,l=uu(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new fB(n);if("decl"===n.type)return new fR(n);if("rule"===n.type)return new fF(n);if("comment"===n.type)return new fL(n);if("atrule"===n.type)return new fD(n);else throw Error("Unknown node type: "+e.type)}var fU=fj;fj.default=fj;var fz=lQ,fq=hc,fH=fb,f$=h9,fW=fM,fV=l3,fY=fU,fX=di,fG=da,fJ=hJ,fK=dB,fZ=dl,fQ=hD,f0=d9,f1=d$,f2=dX,f4=dq,f5=ho;function f8(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new fW(t)}f8.plugin=function(e,t){var r=!1;function n(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new fW().version,s}var i;return Object.defineProperty(n,"postcss",{get:function(){return i||(i=n()),i}}),n.process=function(e,t,r){return f8([n(r)]).process(e,t)},n},f8.stringify=fV,f8.parse=f0,f8.fromJSON=fY,f8.list=f1,f8.comment=function(e){return new fJ(e)},f8.atRule=function(e){return new fK(e)},f8.decl=function(e){return new fq(e)},f8.rule=function(e){return new f2(e)},f8.root=function(e){return new f4(e)},f8.document=function(e){return new fX(e)},f8.CssSyntaxError=fz,f8.Declaration=fq,f8.Container=f$,f8.Processor=fW,f8.Document=fX,f8.Comment=fJ,f8.Warning=fG,f8.AtRule=fK,f8.Result=fZ,f8.Input=fQ,f8.Rule=f2,f8.Root=f4,f8.Node=f5,fH.registerPostcss(f8);var f6=f8;f8.default=f8;var f3=lz(f6);f3.stringify,f3.fromJSON,f3.plugin,f3.parse,f3.list,f3.document,f3.comment,f3.atRule,f3.rule,f3.decl,f3.root,f3.CssSyntaxError,f3.Declaration,f3.Container,f3.Processor,f3.Document,f3.Comment,f3.Warning,f3.AtRule,f3.Result,f3.Input,f3.Rule,f3.Root,f3.Node;var f7=Object.defineProperty,f9=function(e,t,r){return t in e?f7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},pe=function(e,t,r){return f9(e,(void 0===t?"undefined":uh(t))!=="symbol"?t+"":t,r)};function pt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function pr(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return ua(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var pn={exports:{}},pi=String,po=function(){return{isColorSupported:!1,reset:pi,bold:pi,dim:pi,italic:pi,underline:pi,inverse:pi,hidden:pi,strikethrough:pi,black:pi,red:pi,green:pi,yellow:pi,blue:pi,magenta:pi,cyan:pi,white:pi,gray:pi,bgBlack:pi,bgRed:pi,bgGreen:pi,bgYellow:pi,bgBlue:pi,bgMagenta:pi,bgCyan:pi,bgWhite:pi}};pn.exports=po(),pn.exports.createColors=po;var ps=pn.exports,pa={},pc=Object.freeze(Object.defineProperty({__proto__:null,default:pa},Symbol.toStringTag,{value:"Module"})),pu=pr(pc),pl=ps,ph=pu,pd=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}us(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=pl.isColorSupported),ph&&e&&(r=ph(r));var n=r.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),s=String(o).length,a,c;if(e){var u=pl.createColors(!0),l=u.bold,h=u.gray,d=u.red;a=function(e){return l(d(e))},c=function(e){return h(e)}}else a=c=function(e){return e};return n.slice(i,o).map(function(e,r){var n=i+1+r,o=" "+(" "+n).slice(-s)+" | ";if(n===t.line){var u=c(o.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return a(">")+c(o)+e+"\n "+u+a("^")}return" "+c(o)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(uf(Error)),pf=pd;pd.default=pd;var pp={};pp.isClean=Symbol("isClean"),pp.my=Symbol("my");var pg={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function pm(e){return e[0].toUpperCase()+e.slice(1)}var pv=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r=this.raw(e,"between","beforeOpen"),n;this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return pg[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+pm(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=pg[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),py=pv;pv.default=pv;var pb=py;function pw(e,t){var r=new pb(t);r.stringify(e)}var px=pw;pw.default=pw;var p_=pp.isClean,pk=pp.my,pS=pf,pC=py,pE=px;function pO(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":uh(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return pO(e,r)}):("object"===o&&null!==i&&(i=pO(i)),r[n]=i)}return r}var pI=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[p_]=!1,this[pk]=!0,e)if("nodes"===t){this.nodes=[];for(var r=ug(e[t]),n;!(n=r()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=pO(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new pS(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[p_]){this[p_]=!1;var e=this;while(e=e.parent)e[p_]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new pC;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n=this,i=!1,o=ug(t),s;!(s=o()).done;){var a=s.value;a===this?i=!0:i?(this.parent.insertAfter(n,a),n=a):this.parent.insertBefore(n,a)}i||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":uh(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":uh(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=pE),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},un(e,[{key:"proxyOf",get:function(){return this}}]),e}(),pT=pI;pI.default=pI;var pA=pT,pM=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=ui({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return us(t,e),un(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(pA),pR=pM;pM.default=pM;var pP="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",pL=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=pP[64*Math.random()|0];return t},pD={nanoid:pL},pN=pu.SourceMapConsumer,pB=pu.SourceMapGenerator,pF=pu.existsSync,pj=pu.readFileSync,pU=pu.dirname,pz=pu.join;function pq(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var pH=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=pU(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new pN(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return pq(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":uh(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=pU(e),pF(e))return this.mapFile=e,pj(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(ua(t,pN))return pB.fromSourceMap(t).toString();else if(ua(t,pB))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=pz(pU(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),p$=pH;pH.default=pH;var pW=pu.SourceMapConsumer,pV=pu.SourceMapGenerator,pY=pu.fileURLToPath,pX=pu.pathToFileURL,pG=pu.isAbsolute,pJ=pu.resolve,pK=pD.nanoid,pZ=pu,pQ=pf,p0=p$,p1=Symbol("fromOffsetCache"),p2=!!(pW&&pV),p4=!!(pJ&&pG),p5=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":uh(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!p4||/^\w+:\/\//.test(t.from)||pG(t.from)?this.file=t.from:this.file=pJ(t.from)),p4&&p2){var r=new p0(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+pK(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&(void 0===t?"undefined":uh(t))==="object"){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return(i=d?new pQ(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new pQ(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(pX&&(i.input.url=pX(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[p1])r=this[p1];else{var n=this.css.split("\n");r=Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[p1]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c=r.length-2,u;while(a<c)if(e<r[u=a+(c-a>>1)])c=u-1;else if(e>=r[u+1])a=u+1;else{a=u;break}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:pJ(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i=this.map.consumer(),o=i.originalPositionFor({column:t,line:e});if(!o.source)return!1;var s,a;"number"==typeof r&&(s=i.originalPositionFor({column:n,line:r})),a=pG(o.source)?pX(o.source):new URL(o.source,this.map.consumer().sourceRoot||pX(this.map.mapFile));var c={column:o.column,endColumn:s&&s.column,endLine:s&&s.line,line:o.line,url:a.toString()};if("file:"===a.protocol)if(pY)c.file=pY(a);else throw Error("file: protocol is not available in this PostCSS build");var u=i.sourceContentFor(o.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=ui({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},un(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),p8=p5;p5.default=p5,pZ&&pZ.registerInput&&pZ.registerInput(p5);var p6=pu.SourceMapConsumer,p3=pu.SourceMapGenerator,p7=pu.dirname,p9=pu.relative,ge=pu.resolve,gt=pu.sep,gr=pu.pathToFileURL,gn=p8,gi=!!(p6&&p3),go=!!(p7&&ge&&p9&>),gs=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e=ug(this.previous()),t;!(t=e()).done;){var r=t.value,n=this.toUrl(this.path(r.file)),i=r.root||p7(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new p6(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),go&&gi&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=p3.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new p3({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new p3({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,s;this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(i.generated.line=t,i.generated.column=r-1,c.source&&c.source.start?(i.source=e.sourcePath(c),i.original.line=c.source.start.line,i.original.column=c.source.start.column-1):(i.source=n,i.original.line=1,i.original.column=0),e.map.addMapping(i)),(o=a.match(/\n/g))?(t+=o.length,s=a.lastIndexOf("\n"),r=a.length-s):r+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;(!h||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(i.source=e.sourcePath(c),i.original.line=c.source.end.line,i.original.column=c.source.end.column-1,i.generated.line=t,i.generated.column=r-2):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=t,i.generated.column=r-1),e.map.addMapping(i))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?p7(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=p7(ge(r,this.mapOpts.annotation)));var n=p9(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new gn(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(gr){var r=gr(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===gt&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),ga=gs,gc=pT,gu=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return us(t,e),t}(gc),gl=gu;gu.default=gu;var gh=pp.isClean,gd=pp.my,gf=pR,gp=gl,gg=pT,gm,gv,gy,gb;function gw(e){return e.map(function(e){return e.nodes&&(e.nodes=gw(e.nodes)),delete e.source,e})}function gx(e){if(e[gh]=!1,e.proxyOf.nodes)for(var t=ug(e.proxyOf.nodes),r;!(r=t()).done;){var n=r.value;gx(n)}}var g_=function(e){function t(){return e.apply(this,arguments)||this}us(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=ug(t),i;!(i=n()).done;)for(var o=i.value,s=this.normalize(o,this.last),a=ug(s),c;!(c=a()).done;){var u=c.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r=ug(this.nodes),n;!(n=r()).done;){var i=n.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t=this.getIterator(),r,n;while(this.indexes[t]<this.proxyOf.nodes.length){if(r=this.indexes[t],!1===(n=e(this.proxyOf.nodes[r],r)))break;this.indexes[t]+=1}return delete this.indexes[t],n}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(var i=ug(n),o;!(o=i()).done;){var s=o.value;this.proxyOf.nodes.splice(r+1,0,s)}var a;for(var c in this.indexes)r<(a=this.indexes[c])&&(this.indexes[c]=a+n.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r=this.index(e),n=0===r&&"prepend",i=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(var o=ug(i),s;!(s=o()).done;){var a=s.value;this.proxyOf.nodes.splice(r,0,a)}var c;for(var u in this.indexes)r<=(c=this.indexes[u])&&(this.indexes[u]=c+i.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=gw(gm(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i=ug(e),o;!(o=i()).done;){var s=o.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a=ug(e),c;!(c=a()).done;){var u=c.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new gf(e)]}else if(e.selector)e=[new gv(e)];else if(e.name)e=[new gy(e)];else if(e.text)e=[new gp(e)];else throw Error("Unknown node type in node creation");var l=e.map(function(e){return e[gd]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[gh]&&gx(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n=ug(t),i;!(i=n()).done;){for(var o=i.value,s=this.normalize(o,this.first,"prepend").reverse(),a=ug(s),c;!(c=a()).done;){var u=c.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+s.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e=ug(this.proxyOf.nodes),t;!(t=e()).done;){var r=t.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},un(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(gg);g_.registerParse=function(e){gm=e},g_.registerRule=function(e){gv=e},g_.registerAtRule=function(e){gy=e},g_.registerRoot=function(e){gb=e};var gk=g_;g_.default=g_,g_.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,gy.prototype):"rule"===e.type?Object.setPrototypeOf(e,gv.prototype):"decl"===e.type?Object.setPrototypeOf(e,gf.prototype):"comment"===e.type?Object.setPrototypeOf(e,gp.prototype):"root"===e.type&&Object.setPrototypeOf(e,gb.prototype),e[gd]=!0,e.nodes&&e.nodes.forEach(function(e){g_.rebuild(e)})};var gS=gk,gC,gE,gO=function(e){function t(t){var r;return(r=e.call(this,ui({type:"document"},t))||this).nodes||(r.nodes=[]),r}us(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new gC(new gE,this,e);return t.stringify()},t}(gS);gO.registerLazyResult=function(e){gC=e},gO.registerProcessor=function(e){gE=e};var gI=gO;gO.default=gO;var gT=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),gA=gT;gT.default=gT;var gM=gA,gR=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new gM(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},un(e,[{key:"content",get:function(){return this.css}}]),e}(),gP=gR;gR.default=gR;var gL=39,gD=34,gN=92,gB=47,gF=10,gj=32,gU=12,gz=9,gq=13,gH=91,g$=93,gW=40,gV=41,gY=123,gX=125,gG=59,gJ=42,gK=58,gZ=64,gQ=/[\t\n\f\r "#'()/;[\\\]{}]/g,g0=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,g1=/.[\r\n"'(/\\]/,g2=/[\da-f]/i,g4=function(e,t){void 0===t&&(t={});var r=e.css.valueOf(),n=t.ignoreErrors,i,o,s,a,c,u,l,h,d,f,p=r.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=p},nextToken:function(e){if(v.length)return v.pop();if(!(g>=p)){var t=!!e&&e.ignoreUnclosed;switch(i=r.charCodeAt(g)){case gF:case gj:case gz:case gq:case gU:o=g;do o+=1,i=r.charCodeAt(o);while(i===gj||i===gF||i===gz||i===gq||i===gU)f=["space",r.slice(g,o)],g=o-1;break;case gH:case g$:case gY:case gX:case gK:case gG:case gV:var b=String.fromCharCode(i);f=[b,b,g];break;case gW:if(h=m.length?m.pop()[1]:"",d=r.charCodeAt(g+1),"url"===h&&d!==gL&&d!==gD&&d!==gj&&d!==gF&&d!==gz&&d!==gU&&d!==gq){o=g;do{if(u=!1,-1===(o=r.indexOf(")",o+1)))if(n||t){o=g;break}else y("bracket");l=o;while(r.charCodeAt(l-1)===gN)l-=1,u=!u}while(u)f=["brackets",r.slice(g,o+1),g,o],g=o}else o=r.indexOf(")",g+1),a=r.slice(g,o+1),-1===o||g1.test(a)?f=["(","(",g]:(f=["brackets",a,g,o],g=o);break;case gL:case gD:s=i===gL?"'":'"',o=g;do{if(u=!1,-1===(o=r.indexOf(s,o+1)))if(n||t){o=g+1;break}else y("string");l=o;while(r.charCodeAt(l-1)===gN)l-=1,u=!u}while(u)f=["string",r.slice(g,o+1),g,o],g=o;break;case gZ:gQ.lastIndex=g+1,gQ.test(r),o=0===gQ.lastIndex?r.length-1:gQ.lastIndex-2,f=["at-word",r.slice(g,o+1),g,o],g=o;break;case gN:o=g,c=!0;while(r.charCodeAt(o+1)===gN)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==gB&&i!==gj&&i!==gF&&i!==gz&&i!==gq&&i!==gU&&(o+=1,g2.test(r.charAt(o)))){while(g2.test(r.charAt(o+1)))o+=1;r.charCodeAt(o+1)===gj&&(o+=1)}f=["word",r.slice(g,o+1),g,o],g=o;break;default:i===gB&&r.charCodeAt(g+1)===gJ?(0===(o=r.indexOf("*/",g+2)+1)&&(n||t?o=r.length:y("comment")),f=["comment",r.slice(g,o+1),g,o]):(g0.lastIndex=g+1,g0.test(r),o=0===g0.lastIndex?r.length-1:g0.lastIndex-2,f=["word",r.slice(g,o+1),g,o],m.push(f)),g=o;break}return g++,f}},position:function(){return g}}},g5=gk,g8=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}us(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(g5),g6=g8;g8.default=g8,g5.registerAtRule(g8);var g3=gk,g7,g9,me=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}us(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o=ug(i),s;!(s=o()).done;){var a=s.value;a.raws.before=r.raws.before}}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new g7(new g9,this,e);return t.stringify()},t}(g3);me.registerLazyResult=function(e){g7=e},me.registerProcessor=function(e){g9=e};var mt=me;me.default=me,g3.registerRoot(me);var mr={comma:function(e){return mr.split(e,[","],!0)},space:function(e){var t=[" ","\n"," "];return mr.split(e,t)},split:function(e,t,r){for(var n=[],i="",o=!1,s=0,a=!1,c="",u=!1,l=ug(e),h;!(h=l()).done;){var d=h.value;u?u=!1:"\\"===d?u=!0:a?d===c&&(a=!1):'"'===d||"'"===d?(a=!0,c=d):"("===d?s+=1:")"===d?s>0&&(s-=1):0===s&&t.includes(d)&&(o=!0),o?(""!==i&&n.push(i.trim()),i="",o=!1):i+=d}return(r||""!==i)&&n.push(i.trim()),n}},mn=mr;mr.default=mr;var mi=gk,mo=mn,ms=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return us(t,e),un(t,[{key:"selectors",get:function(){return mo.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(mi),ma=ms;ms.default=ms,mi.registerRule(ms);var mc=pR,mu=g4,ml=gl,mh=g6,md=mt,mf=ma,mp={empty:!0,space:!0};function mg(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var mm=function(){function e(e){this.input=e,this.root=new md,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t=new mh,r,n,i;t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if("("===(r=(e=this.tokenizer.nextToken())[0])||"["===r?c.push("("===r?")":"]"):"{"===r&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),0===c.length)if(";"===r){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if("{"===r){s=!0;break}else if("}"===r){if(a.length>0){i=a.length-1,n=a[i];while(n&&"space"===n[0])n=a[--i];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),s&&(t.nodes=[],this.current=t)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r=0,n,i=t-1;i>=0&&("space"===(n=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}},t.colon=function(e){for(var t=0,r,n,i,o=ug(e.entries()),s;!(s=o()).done;){var a=s.value,c=a[0],u=a[1];if("("===(n=(r=u)[0])&&(t+=1),")"===n&&(t-=1),0===t&&":"===n)if(i)if("word"===i[0]&&"progid"===i[1])continue;else return c;else this.doubleColon(r);i=r}return!1},t.comment=function(e){var t=new ml;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=mu(this.input)},t.decl=function(e,t){var r=new mc;this.init(r,e[0][2]);var n=e[e.length-1];";"===n[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||mg(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;r.prop+=e.shift()[1]}var o;r.raws.between="";while(e.length){if(":"===(o=e.shift())[0]){r.raws.between+=o[1];break}"word"===o[0]&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1]}("_"===r.prop[0]||"*"===r.prop[0])&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s=[],a;while(e.length){if("space"!==(a=e[0][0])&&"comment"!==a)break;s.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(o=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===o[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var f=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==o[0]&&"comment"!==o[0])break}var p=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});p&&(r.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(r,"value",s.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new mf;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if("space"!==(c=a[a.length-1][0])&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s=r.length,a="",c=!0,u,l,h=0;h<s;h+=1)"space"!==(o=(i=r[h])[0])||h!==s-1||n?"comment"===o?(l=r[h-1]?r[h-1][0]:"empty",u=r[h+1]?r[h+1][0]:"empty",mp[l]||mp[u]||","===a.slice(-1)?c=!1:a+=i[1]):a+=i[1]:c=!1;if(!c){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:a}}e[t]=a},t.rule=function(e){e.pop();var t=new mf;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if("space"!==(t=e[e.length-1][0])&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if("space"!==(t=e[0][0])&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t="";while(e.length){if("space"!==e[e.length-1][0])break;t=e.pop()[1]+t}return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),mv=mm,my=gk,mb=mv,mw=p8;function mx(e,t){var r=new mw(e,t),n=new mb(r);try{n.parse()}catch(e){throw e}return n.root}var m_=mx;mx.default=mx,my.registerParse(mx);var mk=pp.isClean,mS=pp.my,mC=ga,mE=px,mO=gk,mI=gI,mT=gP,mA=m_,mM=mt,mR={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},mP={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},mL={Once:!0,postcssPlugin:!0,prepare:!0},mD=0;function mN(e){return(void 0===e?"undefined":uh(e))==="object"&&"function"==typeof e.then}function mB(e){var t=!1,r=mR[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,mD,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,mD,r+"Exit"]:[r,r+"Exit"]}function mF(e){return{eventIndex:0,events:"document"===e.type?["Document",mD,"DocumentExit"]:"root"===e.type?["Root",mD,"RootExit"]:mB(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function mj(e){return e[mk]=!1,e.nodes&&e.nodes.forEach(function(e){return mj(e)}),e}var mU={},mz=function(){function e(t,r,n){var i=this,o;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":uh(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))o=mj(r);else if(ua(r,e)||ua(r,mT))o=mj(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=mA;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{o=s(r,n)}catch(e){this.processed=!0,this.error=e}o&&!o[mS]&&mO.rebuild(o)}this.result=new mT(t,o,n),this.helpers=ui({},mU,{postcss:mU,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":uh(e))==="object"&&e.prepare?ui({},e,e.prepare(i.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},r=ug(this.plugins),n;!(n=r()).done;){var i=n.value;if((void 0===i?"undefined":uh(i))==="object")for(var o in i){if(!mP[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!mL[o])if("object"===uh(i[o]))for(var s in i[o])t(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&t(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return ue(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return um(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!mN(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[mk])return[3,14];o[mk]=!0,s=[mF(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!mN(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return um(this,function(s){switch(s.label){case 0:r=(t=d.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=ug(e.listeners.OnceExit),f.label=15;case 15:if((d=h()).done)return[3,18];return[5,uv(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":uh(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(mN(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=mE;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new mC(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=ug(this.plugins),t;!(t=e()).done;){var r=t.value,n=this.runOnRoot(r);if(mN(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[mk])i[mk]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o=ug(i.nodes),s;!(s=o()).done;){var a=s.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r=ug(e),n;!(n=r()).done;){var i=n.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(mN(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){var a=t.iterator,c;while(c=r.nodes[r.indexes[a]])if(r.indexes[a]+=1,!c[mk]){c[mk]=!0,e.push(mF(c));return}t.iterator=0,delete r.indexes[a]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===mD){r.nodes&&r.nodes.length&&(r[mk]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[mk]=!0;for(var r=mB(e),n=ug(r),i;!(i=n()).done;){var o=i.value;if(o===mD)e.nodes&&e.each(function(e){e[mk]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},un(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();mz.registerPostcss=function(e){mU=e};var mq=mz;mz.default=mz,mM.registerLazyResult(mz),mI.registerLazyResult(mz);var mH=ga,m$=px,mW=m_,mV=gP,mY=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=m$;this.result=new mV(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new mH(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},un(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=mW;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),mX=mY;mY.default=mY;var mG=mX,mJ=mq,mK=gI,mZ=mt,mQ=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t=[],r=ug(e),n;!(n=r()).done;){var i=n.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":uh(i))==="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if((void 0===i?"undefined":uh(i))==="object"&&i.postcssPlugin)t.push(i);else if("function"==typeof i)t.push(i);else if((void 0===i?"undefined":uh(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return t},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new mJ(this,e,t):new mG(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),m0=mQ;mQ.default=mQ,mZ.registerProcessor(mQ),mK.registerProcessor(mQ);var m1=pR,m2=p$,m4=gl,m5=g6,m8=p8,m6=mt,m3=ma;function m7(e,t){if(Array.isArray(e))return e.map(function(e){return m7(e)});var r=e.inputs,n=uu(e,["inputs"]);if(r){t=[];for(var i=ug(r),o;!(o=i()).done;){var s=o.value,a=ui({},s,{__proto__:m8.prototype});a.map&&(a.map=ui({},a.map,{__proto__:m2.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return m7(e,t)})),n.source){var c=n.source,u=c.inputId,l=uu(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new m6(n);if("decl"===n.type)return new m1(n);if("rule"===n.type)return new m3(n);if("comment"===n.type)return new m4(n);if("atrule"===n.type)return new m5(n);else throw Error("Unknown node type: "+e.type)}var m9=m7;m7.default=m7;var ve=pf,vt=pR,vr=mq,vn=gk,vi=m0,vo=px,vs=m9,va=gI,vc=gA,vu=gl,vl=g6,vh=gP,vd=p8,vf=m_,vp=mn,vg=ma,vm=mt,vv=pT;function vy(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new vi(t)}vy.plugin=function(e,t){var r=!1;function n(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new vi().version,s}var i;return Object.defineProperty(n,"postcss",{get:function(){return i||(i=n()),i}}),n.process=function(e,t,r){return vy([n(r)]).process(e,t)},n},vy.stringify=vo,vy.parse=vf,vy.fromJSON=vs,vy.list=vp,vy.comment=function(e){return new vu(e)},vy.atRule=function(e){return new vl(e)},vy.decl=function(e){return new vt(e)},vy.rule=function(e){return new vg(e)},vy.root=function(e){return new vm(e)},vy.document=function(e){return new va(e)},vy.CssSyntaxError=ve,vy.Declaration=vt,vy.Container=vn,vy.Processor=vi,vy.Document=va,vy.Comment=vu,vy.Warning=vc,vy.AtRule=vl,vy.Result=vh,vy.Input=vd,vy.Rule=vg,vy.Root=vm,vy.Node=vv,vr.registerPostcss(vy);var vb=vy;vy.default=vy;var vw=pt(vb);vw.stringify,vw.fromJSON,vw.plugin,vw.parse,vw.list,vw.document,vw.comment,vw.atRule,vw.rule,vw.decl,vw.root,vw.CssSyntaxError,vw.Declaration,vw.Container,vw.Processor,vw.Document,vw.Comment,vw.Warning,vw.AtRule,vw.Result,vw.Input,vw.Rule,vw.Root,vw.Node;var vx=function(){function e(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];pe(this,"parentElement",null),pe(this,"parentNode",null),pe(this,"ownerDocument"),pe(this,"firstChild",null),pe(this,"lastChild",null),pe(this,"previousSibling",null),pe(this,"nextSibling",null),pe(this,"ELEMENT_NODE",1),pe(this,"TEXT_NODE",3),pe(this,"nodeType"),pe(this,"nodeName"),pe(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!ua(t,e)||t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;while(t.parentNode){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},un(e,[{key:"childNodes",get:function(){var e=[],t=this.firstChild;while(t)e.push(t),t=t.nextSibling;return e}}]),e}(),v_={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},vk={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},vS={},vC=function(){return!!globalThis.Zone};function vE(e){if(vS[e])return vS[e];var t=globalThis[e],r=t.prototype,n=e in v_?v_[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in vk?vk[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!vC())return vS[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;if(document.body.removeChild(a),!u)return r;return vS[e]=u}catch(e){return r}}var vO={};function vI(e,t,r){var n,i=e+"."+String(r);if(vO[i])return vO[i].call(t);var o=vE(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(vO[i]=s,s.call(t)):t[r]}var vT={};function vA(e,t,r){var n=e+"."+String(r);if(vT[n])return vT[n].bind(t);var i=vE(e),o=i[r];return"function"!=typeof o?t[r]:(vT[n]=o,o.bind(t))}function vM(e){return vI("Node",e,"childNodes")}function vR(e){return vI("Node",e,"parentNode")}function vP(e){return vI("Node",e,"parentElement")}function vL(e){return vI("Node",e,"textContent")}function vD(e,t){return vA("Node",e,"contains")(t)}function vN(e){return vA("Node",e,"getRootNode")()}function vB(e){return e&&"host"in e?vI("ShadowRoot",e,"host"):null}function vF(e){return e.styleSheets}function vj(e){return e&&"shadowRoot"in e?vI("Element",e,"shadowRoot"):null}function vU(e,t){return vI("Element",e,"querySelector")(t)}function vz(e,t){return vI("Element",e,"querySelectorAll")(t)}function vq(){return vE("MutationObserver").constructor}function vH(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var v$={childNodes:vM,parentNode:vR,parentElement:vP,textContent:vL,contains:vD,getRootNode:vN,host:vB,styleSheets:vF,shadowRoot:vj,querySelector:vU,querySelectorAll:vz,mutationObserver:vq,patch:vH};function vW(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var vV="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",vY={map:{},getId:function(){return console.error(vV),-1},getNode:function(){return console.error(vV),null},removeNodeFromMap:function(){console.error(vV)},has:function(){return console.error(vV),!1},reset:function(){console.error(vV)}};function vX(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=Array(o),a=0;a<o;a++)s[a]=arguments[a];var c=Date.now();i||!1!==r.leading||(i=c);var u=t-(c-i),l=this;u<=0||u>t?(n&&(clearTimeout(n),n=null),i=c,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},u))}}function vG(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return vG(e,t,o||{},!0)}}"u">typeof window&&window.Proxy&&window.Reflect&&(vY=new Proxy(vY,{get:function(e,t,r){return"map"===t&&console.error(vV),Reflect.get(e,t,r)}}));var vJ=Date.now;function vK(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=v$.parentElement(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=v$.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function vZ(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function vQ(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function v0(e){if(!e)return null;var t=e.nodeType===e.ELEMENT_NODE?e:v$.parentElement(e);return t}function v1(e,t,r,n){if(!e)return!1;var i=v0(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t)||n&&null!==i.closest("."+t))return!0}else if(lT(i,t,n))return!0}catch(e){}return!!(r&&(i.matches(r)||n&&null!==i.closest(r)))||!1}function v2(e,t){return -1!==t.getId(e)}function v4(e,t,r){return"TITLE"===e.tagName&&!!r.headTitleMutations||t.getId(e)===lp}function v5(e,t){if(uJ(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=v$.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||v5(n,t))}function v8(e){return!!e.changedTouches}function v6(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function v3(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function v7(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function v9(e){return!!e&&(ua(e,vx)&&"shadowRoot"in e?!!e.shadowRoot:!!v$.shadowRoot(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(vJ=function(){return new Date().getTime()});var ye=function(){function e(){uw(this,"id",1),uw(this,"styleIDMap",new WeakMap),uw(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){if(this.has(e))return this.getId(e);var r;return r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function yt(e){var t,r=null;return"getRootNode"in e&&(null==(t=v$.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&v$.host(v$.getRootNode(e))&&(r=v$.host(v$.getRootNode(e))),r}function yr(e){var t=e,r;while(r=yt(t))t=r;return t}function yn(e){var t=e.ownerDocument;if(!t)return!1;var r=yr(e);return v$.contains(t,r)}function yi(e){var t=e.ownerDocument;return!!t&&(v$.contains(t,e)||yn(e))}var yo=function(e){return e[e["DomContentLoaded"]=0]="DomContentLoaded",e[e["Load"]=1]="Load",e[e["FullSnapshot"]=2]="FullSnapshot",e[e["IncrementalSnapshot"]=3]="IncrementalSnapshot",e[e["Meta"]=4]="Meta",e[e["Custom"]=5]="Custom",e[e["Plugin"]=6]="Plugin",e}(yo||{}),ys=function(e){return e[e["Mutation"]=0]="Mutation",e[e["MouseMove"]=1]="MouseMove",e[e["MouseInteraction"]=2]="MouseInteraction",e[e["Scroll"]=3]="Scroll",e[e["ViewportResize"]=4]="ViewportResize",e[e["Input"]=5]="Input",e[e["TouchMove"]=6]="TouchMove",e[e["MediaInteraction"]=7]="MediaInteraction",e[e["StyleSheetRule"]=8]="StyleSheetRule",e[e["CanvasMutation"]=9]="CanvasMutation",e[e["Font"]=10]="Font",e[e["Log"]=11]="Log",e[e["Drag"]=12]="Drag",e[e["StyleDeclaration"]=13]="StyleDeclaration",e[e["Selection"]=14]="Selection",e[e["AdoptedStyleSheet"]=15]="AdoptedStyleSheet",e[e["CustomElement"]=16]="CustomElement",e}(ys||{}),ya=function(e){return e[e["MouseUp"]=0]="MouseUp",e[e["MouseDown"]=1]="MouseDown",e[e["Click"]=2]="Click",e[e["ContextMenu"]=3]="ContextMenu",e[e["DblClick"]=4]="DblClick",e[e["Focus"]=5]="Focus",e[e["Blur"]=6]="Blur",e[e["TouchStart"]=7]="TouchStart",e[e["TouchMove_Departed"]=8]="TouchMove_Departed",e[e["TouchEnd"]=9]="TouchEnd",e[e["TouchCancel"]=10]="TouchCancel",e}(ya||{}),yc=function(e){return e[e["Mouse"]=0]="Mouse",e[e["Pen"]=1]="Pen",e[e["Touch"]=2]="Touch",e}(yc||{}),yu=function(e){return e[e["2D"]=0]="2D",e[e["WebGL"]=1]="WebGL",e[e["WebGL2"]=2]="WebGL2",e}(yu||{}),yl=function(e){return e[e["Play"]=0]="Play",e[e["Pause"]=1]="Pause",e[e["Seeked"]=2]="Seeked",e[e["VolumeChange"]=3]="VolumeChange",e[e["RateChange"]=4]="RateChange",e}(yl||{}),yh=function(e){return e[e["Document"]=0]="Document",e[e["DocumentType"]=1]="DocumentType",e[e["Element"]=2]="Element",e[e["Text"]=3]="Text",e[e["CDATA"]=4]="CDATA",e[e["Comment"]=5]="Comment",e}(yh||{});function yd(e){return"__ln"in e}var yf=function(){function e(){uw(this,"length",0),uw(this,"head",null),uw(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&yd(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&yd(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),yp=function(e,t){return e+"@"+t},yg=function(){function e(){var e=this;uw(this,"frozen",!1),uw(this,"locked",!1),uw(this,"texts",[]),uw(this,"attributes",[]),uw(this,"attributeMap",new WeakMap),uw(this,"removes",[]),uw(this,"mapRemoves",[]),uw(this,"movedMap",{}),uw(this,"addedSet",new Set),uw(this,"movedSet",new Set),uw(this,"droppedSet",new Set),uw(this,"removesSubTreeCache",new Set),uw(this,"mutationCb"),uw(this,"blockClass"),uw(this,"blockSelector"),uw(this,"maskTextClass"),uw(this,"maskTextSelector"),uw(this,"inlineStylesheet"),uw(this,"maskInputOptions"),uw(this,"maskTextFn"),uw(this,"maskInputFn"),uw(this,"keepIframeSrcFn"),uw(this,"recordCanvas"),uw(this,"inlineImages"),uw(this,"slimDOMOptions"),uw(this,"dataURLOptions"),uw(this,"doc"),uw(this,"mirror"),uw(this,"iframeManager"),uw(this,"stylesheetManager"),uw(this,"shadowDomManager"),uw(this,"canvasManager"),uw(this,"processedNodeManager"),uw(this,"unattachedDoc"),uw(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),uw(this,"emit",function(){if(!e.frozen&&!e.locked){var t=[],r=new Set,n=new yf,i=function(t){var r=t,n=lp;while(n===lp)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},o=function(o){var s=v$.parentNode(o);if(s&&yi(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var c=s.tagName;if("TEXTAREA"===c)return;"STYLE"===c&&e.addedSet.has(s)&&(a=!0)}var u=uJ(s)?e.mirror.getId(yt(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=lj(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){v3(t,e.mirror)&&e.iframeManager.addIframe(t),v7(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),v9(o)&&e.shadowDomManager.addShadowRoot(v$.shadowRoot(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:u,nextId:l,node:h}),r.add(h.id))}};while(e.mapRemoves.length){var s=e.mapRemoves.shift();e.cleanupRemovedNode(s),e.mirror.removeNodeFromMap(s)}for(var a=ug(e.movedSet),c;!(c=a()).done;){var u=c.value;(!yy(e.removesSubTreeCache,u,e.mirror)||e.movedSet.has(v$.parentNode(u)))&&o(u)}for(var l=ug(e.addedSet),h;!(h=l()).done;){var d=h.value;yw(e.droppedSet,d)||yy(e.removesSubTreeCache,d,e.mirror)?yw(e.movedSet,d)?o(d):e.droppedSet.add(d):o(d)}var f=null;while(n.length){var p=null;if(f){var g=e.mirror.getId(v$.parentNode(f.value)),m=i(f.value);-1!==g&&-1!==m&&(p=f)}if(!p){var v=n.tail;while(v){var y=v;if(v=v.previous,y){var b=e.mirror.getId(v$.parentNode(y.value)),w=i(y.value);if(-1===w)continue;if(-1!==b){p=y;break}var x=y.value,_=v$.parentNode(x);if(_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=v$.host(_),S=e.mirror.getId(k);if(-1!==S){p=y;break}}}}}if(!p){while(n.head)n.removeNode(n.head.value);break}f=p.previous,n.removeNode(p.value),o(p.value)}var C={texts:e.texts.map(function(t){var r=t.node,n=v$.parentNode(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"==typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(C.texts.length||C.attributes.length||C.removes.length||C.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(C))}}),uw(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(v$.childNodes(t),function(e){return v$.textContent(e)||""}).join("");r.attributes.value=u3({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:lt(t),value:n,maskInputFn:e.maskInputFn})}),uw(this,"processMutation",function(t){if(!v4(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=v$.textContent(t.target);v1(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:lA(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,v0(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=lt(n);o=u3({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(v1(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o))if(n.contentDocument)return;else i="rr_src";if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!lO(n.tagName,i))if(a.attributes[i]=lE(e.doc,u7(n.tagName),u7(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(var u=ug(Array.from(n.style)),l;!(l=u()).done;){var h=l.value,d=n.style.getPropertyValue(h),f=n.style.getPropertyPriority(h);d!==c.style.getPropertyValue(h)||f!==c.style.getPropertyPriority(h)?""===f?a.styleDiff[h]=d:a.styleDiff[h]=[d,f]:a._unchangedStyles[h]=[d,f]}for(var p=ug(Array.from(c.style)),g;!(g=p()).done;){var m=g.value;""===n.style.getPropertyValue(m)&&(a.styleDiff[m]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes["rr_open_mode"]="modal":a.attributes["rr_open_mode"]="non-modal");break;case"childList":if(v1(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=uJ(t.target)?e.mirror.getId(v$.host(t.target)):e.mirror.getId(t.target);!(v1(t.target,e.blockClass,e.blockSelector,!1)||v4(r,e.mirror,e.slimDOMOptions))&&v2(r,e.mirror)&&(e.addedSet.has(r)?(ym(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||v5(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[yp(n,i)]?ym(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!!(uJ(t.target)&&uK(t.target))||void 0}),yv(r,e.removesSubTreeCache))),e.mapRemoves.push(r))});break}}),uw(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!(e.addedSet.has(t)||e.movedSet.has(t))){if(e.mirror.hasNode(t)){if(v4(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[yp(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);!v1(t,e.blockClass,e.blockSelector,!1)&&(v$.childNodes(t).forEach(function(t){return e.genAdds(t)}),v9(t)&&v$.childNodes(v$.shadowRoot(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}}),uw(this,"cleanupRemovedNode",function(t){if("IFRAME"===t.nodeName)try{e.iframeManager.removeIframe(t)}catch(e){}else try{e.stylesheetManager.cleanupStylesheetsForRemovedNode(t)}catch(e){}t.childNodes.forEach(function(t){e.cleanupRemovedNode(t)})})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function ym(e,t){e.delete(t),v$.childNodes(t).forEach(function(t){return ym(e,t)})}function yv(e,t){var r=[e];while(r.length){var n=r.pop();if(t.has(n))continue;t.add(n),v$.childNodes(n).forEach(function(e){return r.push(e)})}}function yy(e,t,r){return 0!==e.size&&yb(e,t)}function yb(e,t,r){var n=v$.parentNode(t);return!!n&&e.has(n)}function yw(e,t){return 0!==e.size&&yx(e,t)}function yx(e,t){var r=v$.parentNode(t);return!!r&&(!!e.has(r)||yx(e,r))}var y_;function yk(e){y_=e}function yS(){y_=void 0}var yC=function(e){if(!y_)return e;var t=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(e){if(y_&&!0===y_(e))return;throw e}};return t},yE=[];function yO(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function yI(e,t){var r=new yg;yE.push(r),r.init(e);var n=new(vq())(yC(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function yT(e){for(var t=yE.length-1;t>=0;t--){var r=yE[t];r.getDoc()===e&&yE.splice(t,1)}}function yA(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o="number"==typeof r.mousemove?r.mousemove:50,s="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,a=[],c,u=vX(yC(function(e){var r=Date.now()-c;t(a.map(function(e){return e.timeOffset-=r,e}),e),a=[],c=null}),s),l=yC(vX(yC(function(e){var t=yO(e),r=v8(e)?e.changedTouches[0]:e,n=r.clientX,o=r.clientY;c||(c=vJ()),a.push({x:n,y:o,id:i.getId(t),timeOffset:vJ()-c}),u("u">typeof DragEvent&&ua(e,DragEvent)?ys.Drag:ua(e,MouseEvent)?ys.MouseMove:ys.TouchMove)}),o,{trailing:!1})),h=[vW("mousemove",l,n),vW("touchmove",l,n),vW("drag",l,n)];return yC(function(){h.forEach(function(e){return e()})})}function yM(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[],u=null,l=function(e){return function(r){var s=yO(r);if(!v1(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=yc.Mouse;break;case"touch":a=yc.Touch;break;case"pen":a=yc.Pen;break}a===yc.Touch?ya[e]===ya.MouseDown?c="TouchStart":ya[e]===ya.MouseUp&&(c="TouchEnd"):yc.Pen}else v8(r)&&(a=yc.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===yc.Touch||c.startsWith("Mouse")&&a===yc.Mouse)&&(a=null)):ya[e]===ya.Click&&(a=u,u=null);var l=v8(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),d=l.clientX,f=l.clientY;yC(t)(ui({type:ya[c],id:h,x:d,y:f},null!==a&&{pointerType:a}))}}}};return Object.keys(ya).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var t=u7(e),n=l(e);if(window.PointerEvent)switch(ya[e]){case ya.MouseDown:case ya.MouseUp:t=t.replace("mouse","pointer");break;case ya.TouchStart:case ya.TouchEnd:return}c.push(vW(t,n,r))}),yC(function(){c.forEach(function(e){return e()})})}function yR(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling,a=yC(vX(yC(function(e){var s=yO(e);if(!(!s||v1(s,i,o,!0))){var a=n.getId(s);if(s===r&&r.defaultView){var c=vK(r.defaultView);t({id:a,x:c.left,y:c.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100));return vW("scroll",a,r)}function yP(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1,s=yC(vX(yC(function(){var e=vZ(),t=vQ();(i!==e||o!==t)&&(r({width:Number(t),height:Number(e)}),i=e,o=t)}),200));return vW("resize",s,n)}var yL=["INPUT","TEXTAREA","SELECT"],yD=new WeakMap;function yN(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function d(e){var t=yO(e),n=e.isTrusted,l=t&&t.tagName;if((t&&"OPTION"===l&&(t=v$.parentElement(t)),!(!t||!l||yL.indexOf(l)<0||v1(t,i,o,!0)))&&!(t.classList.contains(s)||a&&t.matches(a))){var d=t.value,p=!1,g=lt(t)||"";"radio"===g||"checkbox"===g?p=t.checked:(c[l.toLowerCase()]||c[g])&&(d=u3({element:t,maskInputOptions:c,tagName:l,type:g,value:d,maskInputFn:u})),f(t,h?{text:d,isChecked:p,userTriggered:n}:{text:d,isChecked:p});var m=t.name;"radio"===g&&m&&p&&r.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach(function(e){if(e!==t){var r=e.value;f(e,h?{text:r,isChecked:!p,userTriggered:!1}:{text:r,isChecked:!p})}})}}function f(e,r){var i=yD.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){yD.set(e,r);var o=n.getId(e);yC(t)(ui({},r,{id:o}))}}var p="last"===l.input?["change"]:["input","change"],g=p.map(function(e){return vW(e,yC(d),r)}),m=r.defaultView;if(!m)return function(){g.forEach(function(e){return e()})};var v=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),y=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];if(v&&v.set){var b;(b=g).push.apply(b,[].concat(y.map(function(e){return vG(e[0],e[1],{set:function(){yC(d)({target:this,isTrusted:!1})}},!1,m)})))}return yC(function(){g.forEach(function(e){return e()})})}function yB(e){var t=[];return function(e,t){if(yX("CSSGroupingRule")&&ua(e.parentRule,CSSGroupingRule)||yX("CSSMediaRule")&&ua(e.parentRule,CSSMediaRule)||yX("CSSSupportsRule")&&ua(e.parentRule,CSSSupportsRule)||yX("CSSConditionRule")&&ua(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules),n=r.indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var i=Array.from(e.parentStyleSheet.cssRules),o=i.indexOf(e);t.unshift(o)}return t}(e,t)}function yF(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function yj(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:yC(function(e,t,o){var s=o[0],a=o[1],c=yF(t,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:a}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a=o.CSSStyleSheet.prototype.deleteRule,c,u;o.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:yC(function(e,t,o){var s=o[0],a=yF(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:s}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(c=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:yC(function(e,t,o){var s=o[0],a=yF(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replace:s}),e.apply(t,o)})})),o.CSSStyleSheet.prototype.replaceSync&&(u=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:yC(function(e,t,o){var s=o[0],a=yF(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replaceSync:s}),e.apply(t,o)})}));var l={};yG("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(yG("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),yG("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),yG("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],o=e[1];h[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(h[t].insertRule,{apply:yC(function(e,t,o){var s=o[0],a=o[1],c=yF(t.parentStyleSheet,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:[].concat(yB(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:yC(function(e,t,o){var s=o[0],a=yF(t.parentStyleSheet,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:[].concat(yB(t),[s])}]}),e.apply(t,o)})})}),yC(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=a,c&&(o.CSSStyleSheet.prototype.replace=c),u&&(o.CSSStyleSheet.prototype.replaceSync=u),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}function yU(e,t){var r=e.mirror,n=e.stylesheetManager,i,o,s,a=null;a="#document"===t.nodeName?r.getId(t):r.getId(v$.host(t));var c="#document"===t.nodeName?null==(i=t.defaultView)?void 0:i.Document:null==(s=null==(o=t.ownerDocument)?void 0:o.defaultView)?void 0:s.ShadowRoot,u=(null==c?void 0:c.prototype)?Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&c&&u?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var e;return null==(e=u.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=u.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{n.adoptStyleSheets(e,a)}catch(e){}return r}}),yC(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function yz(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:yC(function(e,t,s){var c,u=s[0],l=s[1],h=s[2];if(i.has(u))return a.apply(t,[u,l,h]);var d=yF(null==(c=t.parentRule)?void 0:c.parentStyleSheet,n,o.styleMirror),f=d.id,p=d.styleId;return(f&&-1!==f||p&&-1!==p)&&r({id:f,styleId:p,set:{property:u,value:l,priority:h},index:yB(t.parentRule)}),e.apply(t,s)})});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:yC(function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=yF(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,d=l.styleId;return(h&&-1!==h||d&&-1!==d)&&r({id:h,styleId:d,remove:{property:u},index:yB(t.parentRule)}),e.apply(t,s)})}),yC(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c})}function yq(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,i=e.mirror,o=e.sampling,s=e.doc,a=yC(function(e){return vX(yC(function(o){var s=yO(o);if(!(!s||v1(s,r,n,!0))){var a=s.currentTime,c=s.volume,u=s.muted,l=s.playbackRate,h=s.loop;t({type:e,id:i.getId(s),currentTime:a,volume:c,muted:u,playbackRate:l,loop:h})}}),o.media||500)}),c=[vW("play",a(yl.Play),s),vW("pause",a(yl.Pause),s),vW("seeked",a(yl.Seeked),s),vW("volumechange",a(yl.VolumeChange),s),vW("ratechange",a(yl.RateChange),s)];return yC(function(){c.forEach(function(e){return e()})})}function yH(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=vH(r.fonts,"add",function(e){return function(r){return setTimeout(yC(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=s}),i.push(a),yC(function(){i.forEach(function(e){return e()})})}function y$(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=yC(function(){var e=t.getSelection();if(e&&(!s||null==e||!e.isCollapsed)){s=e.isCollapsed||!1;for(var a=[],c=e.rangeCount||0,u=0;u<c;u++){var l=e.getRangeAt(u),h=l.startContainer,d=l.startOffset,f=l.endContainer,p=l.endOffset,g=v1(h,n,i,!0)||v1(f,n,i,!0);g||a.push({start:r.getId(h),startOffset:d,end:r.getId(f),endOffset:p})}o({ranges:a})}});return a(),vW("selectionchange",a)}function yW(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;if(!n||!n.customElements)return function(){};var i=vH(n.customElements,"define",function(e){return function(t,n,i){try{r({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}});return i}function yV(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,c=e.mediaInteractionCb,u=e.styleSheetRuleCb,l=e.styleDeclarationCb,h=e.canvasMutationCb,d=e.fontCb,f=e.selectionCb,p=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];if(t.mutation){var o;(o=t).mutation.apply(o,[].concat(n))}r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];if(t.mousemove){var o;(o=t).mousemove.apply(o,[].concat(r))}n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.mouseInteraction){var o;(o=t).mouseInteraction.apply(o,[].concat(r))}i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.scroll){var i;(i=t).scroll.apply(i,[].concat(r))}o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.viewportResize){var i;(i=t).viewportResize.apply(i,[].concat(r))}s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.input){var i;(i=t).input.apply(i,[].concat(r))}a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.mediaInteaction){var i;(i=t).mediaInteaction.apply(i,[].concat(r))}c.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.styleSheetRule){var i;(i=t).styleSheetRule.apply(i,[].concat(r))}u.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.styleDeclaration){var i;(i=t).styleDeclaration.apply(i,[].concat(r))}l.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.canvasMutation){var i;(i=t).canvasMutation.apply(i,[].concat(r))}h.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.font){var i;(i=t).font.apply(i,[].concat(r))}d.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.selection){var i;(i=t).selection.apply(i,[].concat(r))}f.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(t.customElement){var i;(i=t).customElement.apply(i,[].concat(r))}p.apply(void 0,[].concat(r))}}function yY(e,t){void 0===t&&(t={});var r=e.doc.defaultView;if(!r)return function(){};var n;yV(e,t),e.recordDOM&&(n=yI(e,e.doc));var i=yA(e),o=yM(e),s=yR(e),a=yP(e,{win:r}),c=yN(e),u=yq(e),l=function(){},h=function(){},d=function(){},f=function(){};e.recordDOM&&(l=yj(e,{win:r}),h=yU(e,e.doc),d=yz(e,{win:r}),e.collectFonts&&(f=yH(e)));for(var p=y$(e),g=yW(e),m=[],v=ug(e.plugins),y;!(y=v()).done;){var b=y.value;m.push(b.observer(b.callback,r,b.options))}return yC(function(){yE.forEach(function(e){return e.reset()}),null==n||n.disconnect(),i(),o(),s(),a(),c(),u(),l(),h(),d(),f(),p(),g(),m.forEach(function(e){return e()})})}function yX(e){return void 0!==window[e]}function yG(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var yJ=function(){function e(e){uw(this,"iframeIdToRemoteIdMap",new WeakMap),uw(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),yK=function(){function e(e){uw(this,"iframes",new WeakMap),uw(this,"crossOriginIframeMap",new WeakMap),uw(this,"crossOriginIframeMirror",new yJ(lg)),uw(this,"crossOriginIframeStyleMirror"),uw(this,"crossOriginIframeRootIdMap",new WeakMap),uw(this,"iframeContentDocumentMap",new WeakMap),uw(this,"iframeObserverCleanupMap",new WeakMap),uw(this,"mirror"),uw(this,"mutationCb"),uw(this,"wrappedEmit"),uw(this,"loadListener"),uw(this,"stylesheetManager"),uw(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new yJ(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(e){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin){var r=e.source;if(r){var n=this.crossOriginIframeMap.get(e.source);if(n){var i=this.transformCrossOriginEvent(n,t.data.event);i&&this.wrappedEmit(i,t.data.isCheckout)}}}},t.transformCrossOriginEvent=function(e,t){var r=this,n;switch(t.type){case yo.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:yo.IncrementalSnapshot,data:{source:ys.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case yo.Meta:case yo.Load:case yo.DomContentLoaded:break;case yo.Plugin:return t;case yo.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case yo.IncrementalSnapshot:switch(t.data.source){case ys.Mutation:return t.data.adds.forEach(function(t){r.replaceIds(t,e,["parentId","nextId","previousId"]),r.replaceIdOnNode(t.node,e);var n=r.crossOriginIframeRootIdMap.get(e);n&&r.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(function(t){r.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){r.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){r.replaceIds(t,e,["id"])}),t;case ys.Drag:case ys.TouchMove:case ys.MouseMove:return t.data.positions.forEach(function(t){r.replaceIds(t,e,["id"])}),t;case ys.ViewportResize:return!1;case ys.MediaInteraction:case ys.MouseInteraction:case ys.Scroll:case ys.CanvasMutation:case ys.Input:return this.replaceIds(t.data,e,["id"]),t;case ys.StyleSheetRule:case ys.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case ys.Font:return t;case ys.Selection:return t.data.ranges.forEach(function(t){r.replaceIds(t,e,["start","end"])}),t;case ys.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEach(function(t){r.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i=ug(n),o;!(o=i()).done;){var s=o.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===yh.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),yZ=function(){function e(e){uw(this,"shadowDoms",new WeakSet),uw(this,"mutationCb"),uw(this,"scrollCb"),uw(this,"bypassOptions"),uw(this,"mirror"),uw(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(uK(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=yI(ui({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(yR(ui({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(v$.host(e))),r.restoreHandlers.push(yU({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(vH(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=v$.shadowRoot(this);return o&&yi(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),yQ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y0="u"<typeof Uint8Array?[]:new Uint8Array(256),y1=0;y1<yQ.length;y1++)y0[yQ.charCodeAt(y1)]=y1;var y2=function(e){var t=new Uint8Array(e),r,n=t.length,i="";for(r=0;r<n;r+=3)i+=yQ[t[r]>>2],i+=yQ[(3&t[r])<<4|t[r+1]>>4],i+=yQ[(15&t[r+1])<<2|t[r+2]>>6],i+=yQ[63&t[r+2]];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i},y4=new Map;function y5(e,t){var r=y4.get(e);return r||(r=new Map,y4.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var y8=function(e,t,r){if(e&&(y7(e,t)||(void 0===e?"undefined":uh(e))==="object")){var n=e.constructor.name,i=y5(r,n),o=i.indexOf(e);return -1===o&&(o=i.length,i.push(e)),o}};function y6(e,t,r){if(ua(e,Array))return e.map(function(e){return y6(e,t,r)});if(null===e);else if(ua(e,Float32Array)||ua(e,Float64Array)||ua(e,Int32Array)||ua(e,Uint32Array)||ua(e,Uint8Array)||ua(e,Uint16Array)||ua(e,Int16Array)||ua(e,Int8Array)||ua(e,Uint8ClampedArray)){var n=e.constructor.name;return{rr_type:n,args:[Object.values(e)]}}else if(ua(e,ArrayBuffer)){var i=e.constructor.name,o=y2(e);return{rr_type:i,base64:o}}else if(ua(e,DataView)){var s=e.constructor.name;return{rr_type:s,args:[y6(e.buffer,t,r),e.byteOffset,e.byteLength]}}else if(ua(e,HTMLImageElement)){var a=e.constructor.name,c=e.src;return{rr_type:a,src:c}}else if(ua(e,HTMLCanvasElement)){var u="HTMLImageElement",l=e.toDataURL();return{rr_type:u,src:l}}else if(ua(e,ImageData)){var h=e.constructor.name;return{rr_type:h,args:[y6(e.data,t,r),e.width,e.height]}}else if(y7(e,t)||(void 0===e?"undefined":uh(e))==="object"){var d=e.constructor.name,f=y8(e,t,r);return{rr_type:d,index:f}}return e}var y3=function(e,t,r){return e.map(function(e){return y6(e,t,r)})},y7=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],n=r.filter(function(e){return"function"==typeof t[e]});return!!n.find(function(r){return ua(e,t[r])})};function y9(e,t,r,n){for(var i=function(){var i=c.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[i])return"continue";var s=vH(t.CanvasRenderingContext2D.prototype,i,function(o){return function(){for(var s=this,a=arguments.length,c=Array(a),u=0;u<a;u++)c[u]=arguments[u];return v1(this.canvas,r,n,!0)||setTimeout(function(){var r=y3(c,t,s);e(s.canvas,{type:yu["2D"],property:i,args:r})},0),o.apply(this,c)}});o.push(s)}catch(r){var a=vG(t.CanvasRenderingContext2D.prototype,i,{set:function(t){e(this.canvas,{type:yu["2D"],property:i,args:[t],setter:!0})}});o.push(a)}},o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),a=ug(s),c;!(c=a()).done;)i();return function(){o.forEach(function(e){return e()})}}function be(e){return"experimental-webgl"===e?"webgl":e}function bt(e,t,r,n){var i=[];try{var o=vH(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!v1(this,t,r,!0)){var c=be(i);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===uh(s[0])){var u=s[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function br(e,t,r,n,i,o){for(var s=function(){var s=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(s))return"continue";try{if("function"!=typeof e[s])return"continue";var c=vH(e,s,function(e){return function(){for(var a=arguments.length,c=Array(a),u=0;u<a;u++)c[u]=arguments[u];var l=e.apply(this,c);if(y8(l,o,this),"tagName"in this.canvas&&!v1(this.canvas,n,i,!0)){var h=y3(c,o,this),d={type:t,property:s,args:h};r(this.canvas,d)}return l}});a.push(c)}catch(n){var u=vG(e,s,{set:function(e){r(this.canvas,{type:t,property:s,args:[e],setter:!0})}});a.push(u)}},a=[],c=Object.getOwnPropertyNames(e),u=ug(c),l;!(l=u()).done;)s();return a}function bn(e,t,r,n){var i,o=[];if((i=o).push.apply(i,[].concat(br(t.WebGLRenderingContext.prototype,yu.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext){var s;(s=o).push.apply(s,[].concat(br(t.WebGL2RenderingContext.prototype,yu.WebGL2,e,r,n,t)))}return function(){o.forEach(function(e){return e()})}}var bi="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",bo=function(e){return Uint8Array.from(atob(e),function(e){return e.charCodeAt(0)})},bs="u">typeof window&&window.Blob&&new Blob([bo(bi)],{type:"text/javascript;charset=utf-8"});function ba(e){var t;try{if(!(t=bs&&(window.URL||window.webkitURL).createObjectURL(bs)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;base64,"+bi,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var bc=function(){function e(e){var t=this;uw(this,"pendingCanvasMutations",new Map),uw(this,"rafStamps",{latestId:0,invokeId:null}),uw(this,"mirror"),uw(this,"mutationCb"),uw(this,"resetObservers"),uw(this,"frozen",!1),uw(this,"locked",!1),uw(this,"processMutation",function(e,r){var n=t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId;(n||!t.rafStamps.invokeId)&&(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:c})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o=this,s=bt(t,r,n,!0),a=new Map,c=new ba;c.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,c=r.height;o.mutationCb({id:t,type:yu["2D"],commands:[{property:"clearRect",args:[0,0,s,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var u=1e3/e,l=0,h,d=function(){var e=[];return t.document.querySelectorAll("canvas").forEach(function(t){v1(t,r,n,!0)||e.push(t)}),e},f=function(e){if(l&&e-l<u){h=requestAnimationFrame(f);return}l=e;var t=o;d().forEach(ue(function(e){var r,n,o,s;return um(this,function(u){switch(u.label){case 0:if(n=t.mirror.getId(e),a.get(n)||0===e.width||0===e.height)return[2];return a.set(n,!0),["webgl","webgl2"].includes(e.__context)&&(null==(r=null==(o=e.getContext(e.__context))?void 0:o.getContextAttributes())?void 0:r.preserveDrawingBuffer)===!1&&o.clear(o.COLOR_BUFFER_BIT),[4,createImageBitmap(e)];case 1:return s=u.sent(),c.postMessage({id:n,bitmap:s,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[s]),[2]}})})),h=requestAnimationFrame(f)};h=requestAnimationFrame(f),this.resetObservers=function(){s(),cancelAnimationFrame(h)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=bt(e,t,r,!1),i=y9(this.processMutation.bind(this),e,t,r),o=bn(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){e.type;var t=uu(e,["type"]);return t}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),bu=function(){function e(e){uw(this,"trackedLinkElements",new WeakSet),uw(this,"mutationCb"),uw(this,"adoptedStyleSheetCb"),uw(this,"styleMirror",new ye),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var r,n=function(){var e=a.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),o.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:u1(t,e.href),index:r}})})),i.styleIds.push(t)};if(0!==e.length){for(var i={id:t,styleIds:[]},o=[],s=ug(e),a;!(a=s()).done;)r=this,n();o.length>0&&(i.styles=o),this.adoptedStyleSheetCb(i)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var r=e;if(r.adoptedStyleSheets)for(var n=ug(r.adoptedStyleSheets),i;!(i=n()).done;){var o=i.value;this.styleMirror.remove(o)}}if("STYLE"===e.nodeName){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}if("LINK"===e.nodeName&&"stylesheet"===e.rel){var a=e;a.sheet&&this.styleMirror.remove(a.sheet)}e.childNodes&&e.childNodes.forEach(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch(e){}},t.trackStylesheetInLinkElement=function(e){},e}(),bl=function(){function e(){uw(this,"nodeMap",new WeakMap),uw(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}();function bh(e){try{var t=new URL(e).origin;return"null"!==t?t:null}catch(e){return null}}function bd(e){if(!Array.isArray(e)||0===e.length)throw Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var t=new Set,r=0;r<e.length;r++){var n=e[r];if("string"!=typeof n)throw Error("[rrweb] allowedIframeOrigins["+r+"] must be a string, got "+(void 0===n?"undefined":uh(n))+".");var i=bh(n);i&&t.add(i)}return Object.freeze(t)}var bf,bp,bg,bm=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var bv=document.createElement("iframe");document.body.appendChild(bv),Array.from=(null==(ux=bv.contentWindow)?void 0:ux.Array.from)||Array.from,document.body.removeChild(bv)}}catch(e){console.debug("Unable to override Array.from",e)}var by=u6();function bb(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,s=e.blockSelector,a=void 0===s?null:s,c=e.ignoreClass,u=void 0===c?"rr-ignore":c,l=e.ignoreSelector,h=void 0===l?null:l,d=e.maskTextClass,f=void 0===d?"rr-mask":d,p=e.maskTextSelector,g=void 0===p?null:p,m=e.inlineStylesheet,v=void 0===m||m,y=e.maskAllInputs,b=e.maskInputOptions,w=e.slimDOMOptions,x=e.maskInputFn,_=e.maskTextFn,k=e.hooks,S=e.packFn,C=e.sampling,E=void 0===C?{}:C,O=e.dataURLOptions,I=void 0===O?{}:O,T=e.mousemoveWait,A=e.recordDOM,M=void 0===A||A,R=e.recordCanvas,P=void 0!==R&&R,L=e.recordCrossOriginIframes,D=void 0!==L&&L,N=e.allowedIframeOrigins,B=e.recordAfter,F=void 0===B?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":B,j=e.userTriggeredOnInput,U=void 0!==j&&j,z=e.collectFonts,q=void 0!==z&&z,H=e.inlineImages,$=void 0!==H&&H,W=e.plugins,V=e.keepIframeSrcFn,Y=void 0===V?function(){return!1}:V,X=e.ignoreCSSAttributes,G=void 0===X?new Set([]):X,J=e.errorHandler,K;yk(J),D&&N&&N.length>0&&0===(K=bd(N)).size&&(K=void 0);var Z=!D||window.parent===window,Q=!1;if(!Z)try{window.parent.document&&(Q=!1)}catch(e){Q=!0}if(Z&&!t)throw Error("emit function is required");if(!Z&&!Q)return function(){};void 0!==T&&void 0===E.mousemove&&(E.mousemove=T),by.reset();var ee=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==b?b:{password:!0},et=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w,headTitleMutations:"all"===w}:w||{},er;v6();var en=0,ei=function(e){for(var t=ug(W||[]),r;!(r=t()).done;){var n=r.value;n.eventProcessor&&(e=n.eventProcessor(e))}return S&&!Q&&(e=S(e)),e};bf=function(e,i){var o,s=e;if(s.timestamp=vJ(),(null==(o=yE[0])?void 0:o.isFrozen())&&s.type!==yo.FullSnapshot&&(s.type!==yo.IncrementalSnapshot||s.data.source!==ys.Mutation)&&yE.forEach(function(e){return e.unfreeze()}),Z)null==t||t(ei(s),i);else if(Q){var a={type:"rrweb",event:ei(s),origin:window.location.origin,isCheckout:i};if(K)for(var c=ug(K),u;!(u=c()).done;){var l=u.value;window.parent.postMessage(a,l)}else window.parent.postMessage(a,"*")}if(s.type===yo.FullSnapshot)er=s,en=0;else if(s.type===yo.IncrementalSnapshot){if(s.data.source===ys.Mutation&&s.data.isAttachIframe)return;en++;var h=n&&en>=n,d=r&&s.timestamp-er.timestamp>r;(h||d)&&bp(!0)}};for(var eo=function(e){bf({type:yo.IncrementalSnapshot,data:ui({source:ys.Mutation},e)})},es=function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.Scroll},e)})},ea=function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.CanvasMutation},e)})},ec=function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.AdoptedStyleSheet},e)})},eu=new bu({mutationCb:eo,adoptedStyleSheetCb:ec}),el=new yK({mirror:by,mutationCb:eo,stylesheetManager:eu,recordCrossOriginIframes:D,wrappedEmit:bf}),eh=ug(W||[]),ed;!(ed=eh()).done;){var ef=ed.value;ef.getMirror&&ef.getMirror({nodeMirror:by,crossOriginIframeMirror:el.crossOriginIframeMirror,crossOriginIframeStyleMirror:el.crossOriginIframeStyleMirror})}var ep=new bl;bg=new bc({recordCanvas:P,mutationCb:ea,win:window,blockClass:o,blockSelector:a,mirror:by,sampling:E.canvas,dataURLOptions:I});var eg=new yZ({mutationCb:eo,scrollCb:es,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:g,inlineStylesheet:v,maskInputOptions:ee,dataURLOptions:I,maskTextFn:_,maskInputFn:x,recordCanvas:P,inlineImages:$,sampling:E,slimDOMOptions:et,iframeManager:el,stylesheetManager:eu,canvasManager:bg,keepIframeSrcFn:Y,processedNodeManager:ep},mirror:by});bp=function(e){if(void 0===e&&(e=!1),M){bf({type:yo.Meta,data:{href:window.location.href,width:vQ(),height:vZ()}},e),eu.reset(),eg.init(),yE.forEach(function(e){return e.lock()});var t=lU(document,{mirror:by,blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:g,inlineStylesheet:v,maskAllInputs:ee,maskTextFn:_,maskInputFn:x,slimDOM:et,dataURLOptions:I,recordCanvas:P,inlineImages:$,onSerialize:function(e){v3(e,by)&&el.addIframe(e),v7(e,by)&&eu.trackLinkElement(e),v9(e)&&eg.addShadowRoot(v$.shadowRoot(e),document)},onIframeLoad:function(e,t){el.attachIframe(e,t),eg.observeAttachShadow(e)},onStylesheetLoad:function(e,t){eu.attachLinkElement(e,t)},keepIframeSrcFn:Y});if(!t)return console.warn("Failed to snapshot the document");bf({type:yo.FullSnapshot,data:{node:t,initialOffset:vK(window)}},e),yE.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&eu.adoptStyleSheets(document.adoptedStyleSheets,by.getId(document))}};try{var em=[],ev=function(e){var t;return yC(yY)({mutationCb:eo,mousemoveCb:function(e,t){return bf({type:yo.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.MouseInteraction},e)})},scrollCb:es,viewportResizeCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.ViewportResize},e)})},inputCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.Input},e)})},mediaInteractionCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.MediaInteraction},e)})},styleSheetRuleCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.StyleSheetRule},e)})},styleDeclarationCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.StyleDeclaration},e)})},canvasMutationCb:ea,fontCb:function(e){return bf({type:yo.IncrementalSnapshot,data:ui({source:ys.Font},e)})},selectionCb:function(e){bf({type:yo.IncrementalSnapshot,data:ui({source:ys.Selection},e)})},customElementCb:function(e){bf({type:yo.IncrementalSnapshot,data:ui({source:ys.CustomElement},e)})},blockClass:o,ignoreClass:u,ignoreSelector:h,maskTextClass:f,maskTextSelector:g,maskInputOptions:ee,inlineStylesheet:v,sampling:E,recordDOM:M,recordCanvas:P,inlineImages:$,userTriggeredOnInput:U,collectFonts:q,doc:e,maskInputFn:x,maskTextFn:_,keepIframeSrcFn:Y,blockSelector:a,slimDOMOptions:et,dataURLOptions:I,mirror:by,iframeManager:el,stylesheetManager:eu,shadowDomManager:eg,processedNodeManager:ep,canvasManager:bg,ignoreCSSAttributes:G,plugins:(null==(t=null==W?void 0:W.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return bf({type:yo.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},k)};el.addLoadListener(function(e){try{var t=e.contentDocument,r=ev(t);em.push(r);var n=el.getObserverCleanup(e);el.setObserverCleanup(e,function(){if(n)try{n()}catch(e){}try{r();var e=em.indexOf(r);-1!==e&&em.splice(e,1),yT(t)}catch(e){}})}catch(e){console.warn(e)}});var ey=function(){bp(),em.push(ev(document)),bm=!0};return"interactive"===document.readyState||"complete"===document.readyState?ey():(em.push(vW("DOMContentLoaded",function(){bf({type:yo.DomContentLoaded,data:{}}),"DOMContentLoaded"===F&&ey()})),em.push(vW("load",function(){bf({type:yo.Load,data:{}}),"load"===F&&ey()},window))),function(){em.forEach(function(e){try{e()}catch(e){var t=String(e).toLowerCase();t.includes("cross-origin")||console.warn(e)}}),ep.destroy(),bm=!1,yS()}}catch(e){console.warn(e)}}var bw;bb.addCustomEvent=function(e,t){if(!bm)throw Error("please add custom event after start recording");bf({type:yo.Custom,data:{tag:e,payload:t}})},bb.freezePage=function(){yE.forEach(function(e){return e.freeze()})},bb.takeFullSnapshot=function(e){if(!bm)throw Error("please take full snapshot after start recording");bp(e)},bb.mirror=by,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(bw||(bw={})),bb.addCustomEvent,bb.freezePage,bb.takeFullSnapshot;var bx={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},b_={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},bk={},bS=function(){return!!globalThis.Zone};function bC(e){if(bk[e])return bk[e];var t=globalThis[e],r=t.prototype,n=e in bx?bx[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in b_?b_[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!bS())return bk[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;if(document.body.removeChild(a),!u)return r;return bk[e]=u}catch(e){return r}}var bE={};function bO(e,t,r){var n,i=e+"."+String(r);if(bE[i])return bE[i].call(t);var o=bC(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(bE[i]=s,s.call(t)):t[r]}var bI={};function bT(e,t,r){var n=e+"."+String(r);if(bI[n])return bI[n].bind(t);var i=bC(e),o=i[r];return"function"!=typeof o?t[r]:(bI[n]=o,o.bind(t))}function bA(e){return bO("Node",e,"childNodes")}function bM(e){return bO("Node",e,"parentNode")}function bR(e){return bO("Node",e,"parentElement")}function bP(e){return bO("Node",e,"textContent")}function bL(e,t){return bT("Node",e,"contains")(t)}function bD(e){return bT("Node",e,"getRootNode")()}function bN(e){return e&&"host"in e?bO("ShadowRoot",e,"host"):null}function bB(e){return e.styleSheets}function bF(e){return e&&"shadowRoot"in e?bO("Element",e,"shadowRoot"):null}function bj(e,t){return bO("Element",e,"querySelector")(t)}function bU(e,t){return bO("Element",e,"querySelectorAll")(t)}function bz(){return bC("MutationObserver").constructor}function bq(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var bH={childNodes:bA,parentNode:bM,parentElement:bR,textContent:bP,contains:bL,getRootNode:bD,host:bN,styleSheets:bB,shadowRoot:bF,querySelector:bj,querySelectorAll:bU,mutationObserver:bz,patch:bq};function b$(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return b$(bH.parentNode(e),t);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return b$(bH.parentNode(e),t)}function bW(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function bV(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return ua(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var bY={exports:{}},bX=String,bG=function(){return{isColorSupported:!1,reset:bX,bold:bX,dim:bX,italic:bX,underline:bX,inverse:bX,hidden:bX,strikethrough:bX,black:bX,red:bX,green:bX,yellow:bX,blue:bX,magenta:bX,cyan:bX,white:bX,gray:bX,bgBlack:bX,bgRed:bX,bgGreen:bX,bgYellow:bX,bgBlue:bX,bgMagenta:bX,bgCyan:bX,bgWhite:bX}};bY.exports=bG(),bY.exports.createColors=bG;var bJ=bY.exports,bK={},bZ=Object.freeze(Object.defineProperty({__proto__:null,default:bK},Symbol.toStringTag,{value:"Module"})),bQ=bV(bZ),b0=bJ,b1=bQ,b2=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}us(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=b0.isColorSupported),b1&&e&&(r=b1(r));var n=r.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),s=String(o).length,a,c;if(e){var u=b0.createColors(!0),l=u.bold,h=u.gray,d=u.red;a=function(e){return l(d(e))},c=function(e){return h(e)}}else a=c=function(e){return e};return n.slice(i,o).map(function(e,r){var n=i+1+r,o=" "+(" "+n).slice(-s)+" | ";if(n===t.line){var u=c(o.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return a(">")+c(o)+e+"\n "+u+a("^")}return" "+c(o)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(uf(Error)),b4=b2;b2.default=b2;var b5={};b5.isClean=Symbol("isClean"),b5.my=Symbol("my");var b8={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function b6(e){return e[0].toUpperCase()+e.slice(1)}var b3=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r=this.raw(e,"between","beforeOpen"),n;this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return b8[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+b6(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=b8[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),b7=b3;b3.default=b3;var b9=b7;function we(e,t){var r=new b9(t);r.stringify(e)}var wt=we;we.default=we;var wr=b5.isClean,wn=b5.my,wi=b4,wo=b7,ws=wt;function wa(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":uh(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return wa(e,r)}):("object"===o&&null!==i&&(i=wa(i)),r[n]=i)}return r}var wc=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[wr]=!1,this[wn]=!0,e)if("nodes"===t){this.nodes=[];for(var r=ug(e[t]),n;!(n=r()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=wa(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new wi(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[wr]){this[wr]=!1;var e=this;while(e=e.parent)e[wr]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new wo;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n=this,i=!1,o=ug(t),s;!(s=o()).done;){var a=s.value;a===this?i=!0:i?(this.parent.insertAfter(n,a),n=a):this.parent.insertBefore(n,a)}i||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":uh(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":uh(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=ws),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},un(e,[{key:"proxyOf",get:function(){return this}}]),e}(),wu=wc;wc.default=wc;var wl=wu,wh=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=ui({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return us(t,e),un(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(wl),wd=wh;wh.default=wh;var wf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",wp=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=wf[64*Math.random()|0];return t},wg={nanoid:wp},wm=bQ.SourceMapConsumer,wv=bQ.SourceMapGenerator,wy=bQ.existsSync,wb=bQ.readFileSync,ww=bQ.dirname,wx=bQ.join;function w_(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var wk=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ww(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new wm(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return w_(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":uh(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=ww(e),wy(e))return this.mapFile=e,wb(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(ua(t,wm))return wv.fromSourceMap(t).toString();else if(ua(t,wv))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=wx(ww(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),wS=wk;wk.default=wk;var wC=bQ.SourceMapConsumer,wE=bQ.SourceMapGenerator,wO=bQ.fileURLToPath,wI=bQ.pathToFileURL,wT=bQ.isAbsolute,wA=bQ.resolve,wM=wg.nanoid,wR=bQ,wP=b4,wL=wS,wD=Symbol("fromOffsetCache"),wN=!!(wC&&wE),wB=!!(wA&&wT),wF=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":uh(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!wB||/^\w+:\/\//.test(t.from)||wT(t.from)?this.file=t.from:this.file=wA(t.from)),wB&&wN){var r=new wL(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+wM(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&(void 0===t?"undefined":uh(t))==="object"){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return(i=d?new wP(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new wP(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(wI&&(i.input.url=wI(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[wD])r=this[wD];else{var n=this.css.split("\n");r=Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[wD]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c=r.length-2,u;while(a<c)if(e<r[u=a+(c-a>>1)])c=u-1;else if(e>=r[u+1])a=u+1;else{a=u;break}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:wA(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i=this.map.consumer(),o=i.originalPositionFor({column:t,line:e});if(!o.source)return!1;var s,a;"number"==typeof r&&(s=i.originalPositionFor({column:n,line:r})),a=wT(o.source)?wI(o.source):new URL(o.source,this.map.consumer().sourceRoot||wI(this.map.mapFile));var c={column:o.column,endColumn:s&&s.column,endLine:s&&s.line,line:o.line,url:a.toString()};if("file:"===a.protocol)if(wO)c.file=wO(a);else throw Error("file: protocol is not available in this PostCSS build");var u=i.sourceContentFor(o.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=ui({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},un(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),wj=wF;wF.default=wF,wR&&wR.registerInput&&wR.registerInput(wF);var wU=bQ.SourceMapConsumer,wz=bQ.SourceMapGenerator,wq=bQ.dirname,wH=bQ.relative,w$=bQ.resolve,wW=bQ.sep,wV=bQ.pathToFileURL,wY=wj,wX=!!(wU&&wz),wG=!!(wq&&w$&&wH&&wW),wJ=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e=ug(this.previous()),t;!(t=e()).done;){var r=t.value,n=this.toUrl(this.path(r.file)),i=r.root||wq(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new wU(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),wG&&wX&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=wz.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new wz({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new wz({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,s;this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(i.generated.line=t,i.generated.column=r-1,c.source&&c.source.start?(i.source=e.sourcePath(c),i.original.line=c.source.start.line,i.original.column=c.source.start.column-1):(i.source=n,i.original.line=1,i.original.column=0),e.map.addMapping(i)),(o=a.match(/\n/g))?(t+=o.length,s=a.lastIndexOf("\n"),r=a.length-s):r+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;(!h||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(i.source=e.sourcePath(c),i.original.line=c.source.end.line,i.original.column=c.source.end.column-1,i.generated.line=t,i.generated.column=r-2):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=t,i.generated.column=r-1),e.map.addMapping(i))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?wq(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=wq(w$(r,this.mapOpts.annotation)));var n=wH(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new wY(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(wV){var r=wV(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===wW&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),wK=wJ,wZ=wu,wQ=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return us(t,e),t}(wZ),w0=wQ;wQ.default=wQ;var w1=b5.isClean,w2=b5.my,w4=wd,w5=w0,w8=wu,w6,w3,w7,w9;function xe(e){return e.map(function(e){return e.nodes&&(e.nodes=xe(e.nodes)),delete e.source,e})}function xt(e){if(e[w1]=!1,e.proxyOf.nodes)for(var t=ug(e.proxyOf.nodes),r;!(r=t()).done;){var n=r.value;xt(n)}}var xr=function(e){function t(){return e.apply(this,arguments)||this}us(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=ug(t),i;!(i=n()).done;)for(var o=i.value,s=this.normalize(o,this.last),a=ug(s),c;!(c=a()).done;){var u=c.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r=ug(this.nodes),n;!(n=r()).done;){var i=n.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t=this.getIterator(),r,n;while(this.indexes[t]<this.proxyOf.nodes.length){if(r=this.indexes[t],!1===(n=e(this.proxyOf.nodes[r],r)))break;this.indexes[t]+=1}return delete this.indexes[t],n}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(var i=ug(n),o;!(o=i()).done;){var s=o.value;this.proxyOf.nodes.splice(r+1,0,s)}var a;for(var c in this.indexes)r<(a=this.indexes[c])&&(this.indexes[c]=a+n.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r=this.index(e),n=0===r&&"prepend",i=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(var o=ug(i),s;!(s=o()).done;){var a=s.value;this.proxyOf.nodes.splice(r,0,a)}var c;for(var u in this.indexes)r<=(c=this.indexes[u])&&(this.indexes[u]=c+i.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=xe(w6(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i=ug(e),o;!(o=i()).done;){var s=o.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a=ug(e),c;!(c=a()).done;){var u=c.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new w4(e)]}else if(e.selector)e=[new w3(e)];else if(e.name)e=[new w7(e)];else if(e.text)e=[new w5(e)];else throw Error("Unknown node type in node creation");var l=e.map(function(e){return e[w2]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[w1]&&xt(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n=ug(t),i;!(i=n()).done;){for(var o=i.value,s=this.normalize(o,this.first,"prepend").reverse(),a=ug(s),c;!(c=a()).done;){var u=c.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+s.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e=ug(this.proxyOf.nodes),t;!(t=e()).done;){var r=t.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?ua(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},un(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(w8);xr.registerParse=function(e){w6=e},xr.registerRule=function(e){w3=e},xr.registerAtRule=function(e){w7=e},xr.registerRoot=function(e){w9=e};var xn=xr;xr.default=xr,xr.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,w7.prototype):"rule"===e.type?Object.setPrototypeOf(e,w3.prototype):"decl"===e.type?Object.setPrototypeOf(e,w4.prototype):"comment"===e.type?Object.setPrototypeOf(e,w5.prototype):"root"===e.type&&Object.setPrototypeOf(e,w9.prototype),e[w2]=!0,e.nodes&&e.nodes.forEach(function(e){xr.rebuild(e)})};var xi=xn,xo,xs,xa=function(e){function t(t){var r;return(r=e.call(this,ui({type:"document"},t))||this).nodes||(r.nodes=[]),r}us(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new xo(new xs,this,e);return t.stringify()},t}(xi);xa.registerLazyResult=function(e){xo=e},xa.registerProcessor=function(e){xs=e};var xc=xa;xa.default=xa;var xu=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),xl=xu;xu.default=xu;var xh=xl,xd=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new xh(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},un(e,[{key:"content",get:function(){return this.css}}]),e}(),xf=xd;xd.default=xd;var xp=39,xg=34,xm=92,xv=47,xy=10,xb=32,xw=12,xx=9,x_=13,xk=91,xS=93,xC=40,xE=41,xO=123,xI=125,xT=59,xA=42,xM=58,xR=64,xP=/[\t\n\f\r "#'()/;[\\\]{}]/g,xL=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,xD=/.[\r\n"'(/\\]/,xN=/[\da-f]/i,xB=function(e,t){void 0===t&&(t={});var r=e.css.valueOf(),n=t.ignoreErrors,i,o,s,a,c,u,l,h,d,f,p=r.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=p},nextToken:function(e){if(v.length)return v.pop();if(!(g>=p)){var t=!!e&&e.ignoreUnclosed;switch(i=r.charCodeAt(g)){case xy:case xb:case xx:case x_:case xw:o=g;do o+=1,i=r.charCodeAt(o);while(i===xb||i===xy||i===xx||i===x_||i===xw)f=["space",r.slice(g,o)],g=o-1;break;case xk:case xS:case xO:case xI:case xM:case xT:case xE:var b=String.fromCharCode(i);f=[b,b,g];break;case xC:if(h=m.length?m.pop()[1]:"",d=r.charCodeAt(g+1),"url"===h&&d!==xp&&d!==xg&&d!==xb&&d!==xy&&d!==xx&&d!==xw&&d!==x_){o=g;do{if(u=!1,-1===(o=r.indexOf(")",o+1)))if(n||t){o=g;break}else y("bracket");l=o;while(r.charCodeAt(l-1)===xm)l-=1,u=!u}while(u)f=["brackets",r.slice(g,o+1),g,o],g=o}else o=r.indexOf(")",g+1),a=r.slice(g,o+1),-1===o||xD.test(a)?f=["(","(",g]:(f=["brackets",a,g,o],g=o);break;case xp:case xg:s=i===xp?"'":'"',o=g;do{if(u=!1,-1===(o=r.indexOf(s,o+1)))if(n||t){o=g+1;break}else y("string");l=o;while(r.charCodeAt(l-1)===xm)l-=1,u=!u}while(u)f=["string",r.slice(g,o+1),g,o],g=o;break;case xR:xP.lastIndex=g+1,xP.test(r),o=0===xP.lastIndex?r.length-1:xP.lastIndex-2,f=["at-word",r.slice(g,o+1),g,o],g=o;break;case xm:o=g,c=!0;while(r.charCodeAt(o+1)===xm)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==xv&&i!==xb&&i!==xy&&i!==xx&&i!==x_&&i!==xw&&(o+=1,xN.test(r.charAt(o)))){while(xN.test(r.charAt(o+1)))o+=1;r.charCodeAt(o+1)===xb&&(o+=1)}f=["word",r.slice(g,o+1),g,o],g=o;break;default:i===xv&&r.charCodeAt(g+1)===xA?(0===(o=r.indexOf("*/",g+2)+1)&&(n||t?o=r.length:y("comment")),f=["comment",r.slice(g,o+1),g,o]):(xL.lastIndex=g+1,xL.test(r),o=0===xL.lastIndex?r.length-1:xL.lastIndex-2,f=["word",r.slice(g,o+1),g,o],m.push(f)),g=o;break}return g++,f}},position:function(){return g}}},xF=xn,xj=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}us(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(xF),xU=xj;xj.default=xj,xF.registerAtRule(xj);var xz=xn,xq,xH,x$=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}us(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o=ug(i),s;!(s=o()).done;){var a=s.value;a.raws.before=r.raws.before}}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new xq(new xH,this,e);return t.stringify()},t}(xz);x$.registerLazyResult=function(e){xq=e},x$.registerProcessor=function(e){xH=e};var xW=x$;x$.default=x$,xz.registerRoot(x$);var xV={comma:function(e){return xV.split(e,[","],!0)},space:function(e){var t=[" ","\n"," "];return xV.split(e,t)},split:function(e,t,r){for(var n=[],i="",o=!1,s=0,a=!1,c="",u=!1,l=ug(e),h;!(h=l()).done;){var d=h.value;u?u=!1:"\\"===d?u=!0:a?d===c&&(a=!1):'"'===d||"'"===d?(a=!0,c=d):"("===d?s+=1:")"===d?s>0&&(s-=1):0===s&&t.includes(d)&&(o=!0),o?(""!==i&&n.push(i.trim()),i="",o=!1):i+=d}return(r||""!==i)&&n.push(i.trim()),n}},xY=xV;xV.default=xV;var xX=xn,xG=xY,xJ=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return us(t,e),un(t,[{key:"selectors",get:function(){return xG.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(xX),xK=xJ;xJ.default=xJ,xX.registerRule(xJ);var xZ=wd,xQ=xB,x0=w0,x1=xU,x2=xW,x4=xK,x5={empty:!0,space:!0};function x8(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var x6=function(){function e(e){this.input=e,this.root=new x2,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t=new x1,r,n,i;t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if("("===(r=(e=this.tokenizer.nextToken())[0])||"["===r?c.push("("===r?")":"]"):"{"===r&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),0===c.length)if(";"===r){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if("{"===r){s=!0;break}else if("}"===r){if(a.length>0){i=a.length-1,n=a[i];while(n&&"space"===n[0])n=a[--i];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),s&&(t.nodes=[],this.current=t)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r=0,n,i=t-1;i>=0&&("space"===(n=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}},t.colon=function(e){for(var t=0,r,n,i,o=ug(e.entries()),s;!(s=o()).done;){var a=s.value,c=a[0],u=a[1];if("("===(n=(r=u)[0])&&(t+=1),")"===n&&(t-=1),0===t&&":"===n)if(i)if("word"===i[0]&&"progid"===i[1])continue;else return c;else this.doubleColon(r);i=r}return!1},t.comment=function(e){var t=new x0;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=xQ(this.input)},t.decl=function(e,t){var r=new xZ;this.init(r,e[0][2]);var n=e[e.length-1];";"===n[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||x8(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;r.prop+=e.shift()[1]}var o;r.raws.between="";while(e.length){if(":"===(o=e.shift())[0]){r.raws.between+=o[1];break}"word"===o[0]&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1]}("_"===r.prop[0]||"*"===r.prop[0])&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s=[],a;while(e.length){if("space"!==(a=e[0][0])&&"comment"!==a)break;s.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(o=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===o[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var f=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==o[0]&&"comment"!==o[0])break}var p=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});p&&(r.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(r,"value",s.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new x4;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if("space"!==(c=a[a.length-1][0])&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s=r.length,a="",c=!0,u,l,h=0;h<s;h+=1)"space"!==(o=(i=r[h])[0])||h!==s-1||n?"comment"===o?(l=r[h-1]?r[h-1][0]:"empty",u=r[h+1]?r[h+1][0]:"empty",x5[l]||x5[u]||","===a.slice(-1)?c=!1:a+=i[1]):a+=i[1]:c=!1;if(!c){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:a}}e[t]=a},t.rule=function(e){e.pop();var t=new x4;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if("space"!==(t=e[e.length-1][0])&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if("space"!==(t=e[0][0])&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t="";while(e.length){if("space"!==e[e.length-1][0])break;t=e.pop()[1]+t}return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),x3=x6,x7=xn,x9=x3,_e=wj;function _t(e,t){var r=new _e(e,t),n=new x9(r);try{n.parse()}catch(e){throw e}return n.root}var _r=_t;_t.default=_t,x7.registerParse(_t);var _n=b5.isClean,_i=b5.my,_o=wK,_s=wt,_a=xn,_c=xc,_u=xf,_l=_r,_h=xW,_d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},_f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},_p={Once:!0,postcssPlugin:!0,prepare:!0},_g=0;function _m(e){return(void 0===e?"undefined":uh(e))==="object"&&"function"==typeof e.then}function _v(e){var t=!1,r=_d[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,_g,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,_g,r+"Exit"]:[r,r+"Exit"]}function _y(e){return{eventIndex:0,events:"document"===e.type?["Document",_g,"DocumentExit"]:"root"===e.type?["Root",_g,"RootExit"]:_v(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function _b(e){return e[_n]=!1,e.nodes&&e.nodes.forEach(function(e){return _b(e)}),e}var _w={},_x=function(){function e(t,r,n){var i=this,o;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":uh(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))o=_b(r);else if(ua(r,e)||ua(r,_u))o=_b(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=_l;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{o=s(r,n)}catch(e){this.processed=!0,this.error=e}o&&!o[_i]&&_a.rebuild(o)}this.result=new _u(t,o,n),this.helpers=ui({},_w,{postcss:_w,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":uh(e))==="object"&&e.prepare?ui({},e,e.prepare(i.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},r=ug(this.plugins),n;!(n=r()).done;){var i=n.value;if((void 0===i?"undefined":uh(i))==="object")for(var o in i){if(!_f[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!_p[o])if("object"===uh(i[o]))for(var s in i[o])t(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&t(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return ue(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return um(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!_m(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[_n])return[3,14];o[_n]=!0,s=[_y(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!_m(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return um(this,function(s){switch(s.label){case 0:r=(t=d.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=ug(e.listeners.OnceExit),f.label=15;case 15:if((d=h()).done)return[3,18];return[5,uv(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":uh(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(_m(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=_s;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new _o(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=ug(this.plugins),t;!(t=e()).done;){var r=t.value,n=this.runOnRoot(r);if(_m(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[_n])i[_n]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o=ug(i.nodes),s;!(s=o()).done;){var a=s.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r=ug(e),n;!(n=r()).done;){var i=n.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(_m(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){var a=t.iterator,c;while(c=r.nodes[r.indexes[a]])if(r.indexes[a]+=1,!c[_n]){c[_n]=!0,e.push(_y(c));return}t.iterator=0,delete r.indexes[a]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===_g){r.nodes&&r.nodes.length&&(r[_n]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[_n]=!0;for(var r=_v(e),n=ug(r),i;!(i=n()).done;){var o=i.value;if(o===_g)e.nodes&&e.each(function(e){e[_n]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},un(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();_x.registerPostcss=function(e){_w=e};var __=_x;_x.default=_x,_h.registerLazyResult(_x),_c.registerLazyResult(_x);var _k=wK,_S=wt,_C=_r,_E=xf,_O=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=_S;this.result=new _E(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new _k(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},un(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=_C;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),_I=_O;_O.default=_O;var _T=_I,_A=__,_M=xc,_R=xW,_P=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t=[],r=ug(e),n;!(n=r()).done;){var i=n.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":uh(i))==="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if((void 0===i?"undefined":uh(i))==="object"&&i.postcssPlugin)t.push(i);else if("function"==typeof i)t.push(i);else if((void 0===i?"undefined":uh(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return t},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new _A(this,e,t):new _T(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),_L=_P;_P.default=_P,_R.registerProcessor(_P),_M.registerProcessor(_P);var _D=wd,_N=wS,_B=w0,_F=xU,_j=wj,_U=xW,_z=xK;function _q(e,t){if(Array.isArray(e))return e.map(function(e){return _q(e)});var r=e.inputs,n=uu(e,["inputs"]);if(r){t=[];for(var i=ug(r),o;!(o=i()).done;){var s=o.value,a=ui({},s,{__proto__:_j.prototype});a.map&&(a.map=ui({},a.map,{__proto__:_N.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return _q(e,t)})),n.source){var c=n.source,u=c.inputId,l=uu(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new _U(n);if("decl"===n.type)return new _D(n);if("rule"===n.type)return new _z(n);if("comment"===n.type)return new _B(n);if("atrule"===n.type)return new _F(n);else throw Error("Unknown node type: "+e.type)}var _H=_q;_q.default=_q;var _$=b4,_W=wd,_V=__,_Y=xn,_X=_L,_G=wt,_J=_H,_K=xc,_Z=xl,_Q=w0,_0=xU,_1=xf,_2=wj,_4=_r,_5=xY,_8=xK,_6=xW,_3=wu;function _7(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new _X(t)}_7.plugin=function(e,t){var r=!1;function n(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new _X().version,s}var i;return Object.defineProperty(n,"postcss",{get:function(){return i||(i=n()),i}}),n.process=function(e,t,r){return _7([n(r)]).process(e,t)},n},_7.stringify=_G,_7.parse=_4,_7.fromJSON=_J,_7.list=_5,_7.comment=function(e){return new _Q(e)},_7.atRule=function(e){return new _0(e)},_7.decl=function(e){return new _W(e)},_7.rule=function(e){return new _8(e)},_7.root=function(e){return new _6(e)},_7.document=function(e){return new _K(e)},_7.CssSyntaxError=_$,_7.Declaration=_W,_7.Container=_Y,_7.Processor=_X,_7.Document=_K,_7.Comment=_Q,_7.Warning=_Z,_7.AtRule=_0,_7.Result=_1,_7.Input=_2,_7.Rule=_8,_7.Root=_6,_7.Node=_3,_V.registerPostcss(_7);var _9=_7;_7.default=_7;var ke=bW(_9);ke.stringify,ke.fromJSON,ke.plugin,ke.parse,ke.list,ke.document,ke.comment,ke.atRule,ke.rule,ke.decl,ke.root,ke.CssSyntaxError,ke.Declaration,ke.Container,ke.Processor,ke.Document,ke.Comment,ke.Warning,ke.AtRule,ke.Result,ke.Input,ke.Rule,ke.Root,ke.Node;var kt=Object.defineProperty,kr=function(e,t,r){return t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},kn=function(e,t,r){return kr(e,(void 0===t?"undefined":uh(t))!=="symbol"?t+"":t,r)};function ki(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var ko=function(){function e(e){kn(this,"fileName"),kn(this,"functionName"),kn(this,"lineNumber"),kn(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}var t=e.prototype;return t.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),ks=/(^|@)\S+:\d+/,ka=/^\s*at .*(\S+:\d+|\(native\))/m,kc=/^(eval@)?(\[native code])?$/,ku={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(ka)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/,r=t.exec(e.replace(/[()]/g,""));if(!r)throw Error("Cannot parse given url: "+e);return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(ka)},this);return t.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=r?t.replace(r[0],""):t;var n=t.split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new ko({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){var t=e.stack.split("\n").filter(function(e){return!e.match(kc)},this);return t.map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new ko({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new ko({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new ko({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new ko({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(ks)&&!e.match(/^Error created at/)},this);return t.map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=t.shift()||"",i=n.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new ko({functionName:i,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function kl(e){if(!e||!e.outerHTML)return"";var t="";while(e.parentElement){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var s=n.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function kh(e){return"[object Object]"===Object.prototype.toString.call(e)}function kd(e,t){if(0===t)return!0;for(var r=Object.keys(e),n=ug(r),i;!(i=n()).done;){var o=i.value;if(kh(e[o])&&kd(e[o],t-1))return!0}return!1}function kf(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var r=n.indexOf(this);~r?n.splice(r+1):n.push(this),~r?i.splice(r,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(o(t))return s(t);if((void 0===t?"undefined":uh(t))==="bigint")return t.toString()+"n";if(ua(t,Event)){var a={};for(var c in t){var u=t[c];Array.isArray(u)?a[c]=kl(u.length?u[0]:null):a[c]=u}return a}return ua(t,Node)?ua(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:ua(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t});function o(e){return!!(kh(e)&&Object.keys(e).length>r.numOfKeysLimit||"function"==typeof e||kh(e)&&kd(e,r.depthOfLimit))}function s(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=""+t.slice(0,r.stringLengthLimit)+"..."),t}}var kp={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function kg(e,t,r){var n=r?Object.assign({},kp,r):kp,i=n.logger;if(!i)return function(){};var o;o="string"==typeof i?t[i]:i;var s=0,a=!1,c=[];if(n.level.includes("error")){var u=function(t){var r=t.message,i=t.error,o=ku.parse(i).map(function(e){return e.toString()}),s=[kf(r,n.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",u),c.push(function(){t.removeEventListener("error",u)});var l=function(t){var r,i;ua(t.reason,Error)?i=[kf("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,n.stringifyOptions)]:(r=Error(),i=[kf("Uncaught (in promise)",n.stringifyOptions),kf(t.reason,n.stringifyOptions)]);var o=ku.parse(r).map(function(e){return e.toString()});e({level:"error",trace:o,payload:i})};t.addEventListener("unhandledrejection",l),c.push(function(){t.removeEventListener("unhandledrejection",l)})}for(var h=ug(n.level),d;!(d=h()).done;){var f=d.value;c.push(p(o,f))}return function(){c.forEach(function(e){return e()})};function p(t,r){var i=this;return t[r]?ki(t,r,function(t){var o=i;return function(){for(var i=arguments.length,c=Array(i),u=0;u<i;u++)c[u]=arguments[u];if((t.apply(o,c),"assert"!==r||!c[0])&&!a){a=!0;try{var l=ku.parse(Error()).map(function(e){return e.toString()}).splice(1),h="assert"===r?c.slice(1):c,d=h.map(function(e){return kf(e,n.stringifyOptions)});++s<n.lengthThreshold?e({level:r,trace:l,payload:d}):s===n.lengthThreshold&&e({level:"warn",trace:[],payload:[kf("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,[].concat(["rrweb logger error:",e],c))}finally{a=!1}}}}):function(){}}}var km="rrweb/console@1",kv=function(e){return{name:km,observer:kg,options:e}},ky=c1["setImmediate"],kb,kw,kx,k_=Object.prototype.toString,kk=void 0!==ky?function(e){return ky(e)}:setTimeout;try{Object.defineProperty({},"x",{}),kb=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){kb=function(e,t,r){return e[t]=r,e}}function kS(e,t){kx.add(e,t),kw||(kw=kk(kx.drain))}function kC(e){var t,r=typeof e;return null!==e&&("object"===r||"function"===r)&&(t=e.then),"function"==typeof t&&t}function kE(){for(var e=0;e<this.chain.length;e++)kO(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function kO(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=kC(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}function kI(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=kC(e))?kS(function(){var n=new kM(r);try{t.call(e,function(){kI.apply(n,arguments)},function(){kT.apply(n,arguments)})}catch(e){kT.call(n,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&kS(kE,r))}catch(e){kT.call(new kM(r),e)}}}function kT(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&kS(kE,t))}function kA(e,t,r,n){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)})(i)}function kM(e){this.def=e,this.triggered=!1}function kR(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function kP(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this["__NPO__"])throw TypeError("Not a promise");this["__NPO__"]=1;var t=new kR(this);this["then"]=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&kS(kE,t),n.promise},this["catch"]=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){kI.call(t,e)},function(e){kT.call(t,e)})}catch(e){kT.call(t,e)}}kx=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;e=t=kw=void 0;while(r)r.fn.call(r.self),r=r.next}}}();var kL=kb({},"constructor",kP,!1),kD;kP.prototype=kL,kb(kL,"__NPO__",0,!1),kb(kP,"resolve",function(e){var t=this;return e&&"object"==typeof e&&1===e["__NPO__"]?e:new t(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),kb(kP,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),kb(kP,"all",function(e){var t=this;return"[object Array]"!==k_.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;kA(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),kb(kP,"race",function(e){var t=this;return"[object Array]"!==k_.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");kA(t,e,function(e,t){r(t)},n)})}),kD="u">typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:kP;var kN=864e5,kB=8e3,kF=Array.prototype,kj=Function.prototype,kU=Object.prototype,kz=kF.slice,kq=kU.toString,kH=kU.hasOwnProperty,k$=c1.console,kW=c1.navigator,kV=c1.document,kY=c1.opera,kX=c1.screen,kG=kW.userAgent,kJ=kj.bind,kK=kF.forEach,kZ=kF.indexOf,kQ=kF.map,k0=Array.isArray,k1={},k2={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},k4={log:function(){if(c4.DEBUG&&!k2.isUndefined(k$)&&k$)try{k$.log.apply(k$,arguments)}catch(e){k2.each(arguments,function(e){k$.log(e)})}},warn:function(){if(c4.DEBUG&&!k2.isUndefined(k$)&&k$){var e=["Mixpanel warning:"].concat(k2.toArray(arguments));try{k$.warn.apply(k$,e)}catch(t){k2.each(e,function(e){k$.warn(e)})}}},error:function(){if(c4.DEBUG&&!k2.isUndefined(k$)&&k$){var e=["Mixpanel error:"].concat(k2.toArray(arguments));try{k$.error.apply(k$,e)}catch(t){k2.each(e,function(e){k$.error(e)})}}},critical:function(){if(!k2.isUndefined(k$)&&k$){var e=["Mixpanel error:"].concat(k2.toArray(arguments));try{k$.error.apply(k$,e)}catch(t){k2.each(e,function(e){k$.error(e)})}}}},k5=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(k4,arguments)}},k8=function(e){return{log:k5(k4.log,e),warn:k5(k4.warn,e),error:k5(k4.error,e),critical:k5(k4.critical,e)}},k6=function(e){return function(){try{return e.apply(this,arguments)}catch(e){k4.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),c4.DEBUG&&k4.critical(e)}}},k3=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=k6(t[r]))};k2.bind=function(e,t){var r,n;if(kJ&&e.bind===kJ)return kJ.apply(e,kz.call(arguments,1));if(!k2.isFunction(e))throw TypeError();return r=kz.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(kz.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(kz.call(arguments)));return Object(s)===s?s:o}},k2.each=function(e,t,r){if(null!=e){if(kK&&e.forEach===kK)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===k1)return}else for(var o in e)if(kH.call(e,o)&&t.call(r,e[o],o,e)===k1)return}},k2.extend=function(e){return k2.each(kz.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},k2.isArray=k0||function(e){return"[object Array]"===kq.call(e)},k2.isFunction=function(e){return"function"==typeof e},k2.isArguments=function(e){return!!(e&&kH.call(e,"callee"))},k2.toArray=function(e){return e?e.toArray?e.toArray():k2.isArray(e)||k2.isArguments(e)?kz.call(e):k2.values(e):[]},k2.map=function(e,t,r){if(kQ&&e.map===kQ)return e.map(t,r);var n=[];return k2.each(e,function(e){n.push(t.call(r,e))}),n},k2.keys=function(e){var t=[];return null===e||k2.each(e,function(e,r){t[t.length]=r}),t},k2.values=function(e){var t=[];return null===e||k2.each(e,function(e){t[t.length]=e}),t},k2.include=function(e,t){var r=!1;return null===e?r:kZ&&e.indexOf===kZ?-1!=e.indexOf(t):(k2.each(e,function(e){if(r||(r=e===t))return k1}),r)},k2.includes=function(e,t){return -1!==e.indexOf(t)},k2.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},k2.isObject=function(e){return e===Object(e)&&!k2.isArray(e)},k2.isEmptyObject=function(e){if(k2.isObject(e)){for(var t in e)if(kH.call(e,t))return!1;return!0}return!1},k2.isUndefined=function(e){return void 0===e},k2.isString=function(e){return"[object String]"==kq.call(e)},k2.isDate=function(e){return"[object Date]"==kq.call(e)},k2.isNumber=function(e){return"[object Number]"==kq.call(e)},k2.isElement=function(e){return!!(e&&1===e.nodeType)},k2.encodeDates=function(e){return k2.each(e,function(t,r){k2.isDate(t)?e[r]=k2.formatDate(t):k2.isObject(t)&&(e[r]=k2.encodeDates(t))}),e},k2.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},k2.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},k2.strip_empty_properties=function(e){var t={};return k2.each(e,function(e,r){k2.isString(e)&&e.length>0&&(t[r]=e)}),t},k2.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):k2.isArray(e)?(r=[],k2.each(e,function(e){r.push(k2.truncate(e,t))})):k2.isObject(e)?(r={},k2.each(e,function(e,n){r[n]=k2.truncate(e,t)})):r=e,r},k2.JSONEncode=function(){return function(e){var t=e,r=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},n=function(e,t){var i="",o=" ",s=0,a="",c="",u=0,l=i,h=[],d=t[e];switch(d&&"object"==typeof d&&"function"==typeof d.toJSON&&(d=d.toJSON(e)),typeof d){case"string":return r(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(i+=o,h=[],"[object Array]"===kq.apply(d)){for(u=d.length,s=0;s<u;s+=1)h[s]=n(s,d)||"null";return c=0===h.length?"[]":i?"[\n"+i+h.join(",\n"+i)+"\n"+l+"]":"["+h.join(",")+"]",i=l,c}for(a in d)kH.call(d,a)&&(c=n(a,d))&&h.push(r(a)+(i?": ":":")+c);return c=0===h.length?"{}":i?"{"+h.join(",")+l+"}":"{"+h.join(",")+"}",i=l,c}};return n("",{"":t})}}(),k2.JSONDecode=function(){var e,t,r={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},n,i=function(t){var r=SyntaxError(t);throw r.at=e,r.text=n,r},o=function(r){return r&&r!==t&&i("Expected '"+r+"' instead of '"+t+"'"),t=n.charAt(e),e+=1,t},s=function(){var e,r="";"-"===t&&(r="-",o("-"));while(t>="0"&&t<="9")r+=t,o();if("."===t){r+=".";while(o()&&t>="0"&&t<="9")r+=t}if("e"===t||"E"===t){r+=t,o(),("-"===t||"+"===t)&&(r+=t,o());while(t>="0"&&t<="9")r+=t,o()}if(isFinite(e=+r))return e;i("Bad number")},a=function(){var e,n,s="",a;if('"'===t)while(o()){if('"'===t)return o(),s;if("\\"===t)if(o(),"u"===t){for(n=0,a=0;n<4;n+=1){if(!isFinite(e=parseInt(o(),16)))break;a=16*a+e}s+=String.fromCharCode(a)}else if("string"==typeof r[t])s+=r[t];else break;else s+=t}i("Bad string")},c=function(){while(t&&t<=" ")o()},u=function(){switch(t){case"t":return o("t"),o("r"),o("u"),o("e"),!0;case"f":return o("f"),o("a"),o("l"),o("s"),o("e"),!1;case"n":return o("n"),o("u"),o("l"),o("l"),null}i('Unexpected "'+t+'"')},l,h=function(){var e=[];if("["===t){if(o("["),c(),"]"===t)return o("]"),e;while(t){if(e.push(l()),c(),"]"===t)return o("]"),e;o(","),c()}}i("Bad array")},d=function(){var e,r={};if("{"===t){if(o("{"),c(),"}"===t)return o("}"),r;while(t){if(e=a(),c(),o(":"),Object.hasOwnProperty.call(r,e)&&i('Duplicate key "'+e+'"'),r[e]=l(),c(),"}"===t)return o("}"),r;o(","),c()}}i("Bad object")};return l=function(){switch(c(),t){case"{":return d();case"[":return h();case'"':return a();case"-":return s();default:return t>="0"&&t<="9"?s():u()}},function(r){var o;return n=r,e=0,t=" ",o=l(),c(),t&&i("Syntax error"),o}}(),k2.base64Encode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r,n,i,o,s,a,c=0,u=0,l="",h=[];if(!e)return e;e=k2.utf8Encode(e);do r=e.charCodeAt(c++),n=(a=r<<16|e.charCodeAt(c++)<<8|e.charCodeAt(c++))>>18&63,i=a>>12&63,o=a>>6&63,s=63&a,h[u++]=t.charAt(n)+t.charAt(i)+t.charAt(o)+t.charAt(s);while(c<e.length)switch(l=h.join(""),e.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"=";break}return l},k2.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t="",r,n,i=0,o;for(r=n=0,i=e.length,o=0;o<i;o++){var s=e.charCodeAt(o),a=null;s<128?n++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(n>r&&(t+=e.substring(r,n)),t+=a,r=n=o+1)}return n>r&&(t+=e.substring(r,e.length)),t},k2.UUID=function(){try{return c1["crypto"]["randomUUID"]()}catch(r){for(var e=Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",k2.map(e,function(e){return e.toString(16)}).join("")}};var k7=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];k2.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<k7.length;t++)if(-1!==e.indexOf(k7[t]))return!0;return!1},k2.HTTPBuildQuery=function(e,t){var r,n,i=[];return k2.isUndefined(t)&&(t="&"),k2.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},k2.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r="[\\?&]"+t+"=([^&#]*)",n=new RegExp(r),i=n.exec(e);if(null===i||i&&"string"!=typeof i[1]&&i[1].length)return"";var o=i[1];try{o=decodeURIComponent(o)}catch(e){k4.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},k2.cookie={get:function(e){for(var t=e+"=",r=kV.cookie.split(";"),n=0;n<r.length;n++){var i=r[n];while(" "==i.charAt(0))i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=k2.JSONDecode(k2.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=Sg(kV.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),kV.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=Sg(kV.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*36e5),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var d=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return kV.cookie=d,d},remove:function(e,t,r){k2.cookie.set(e,"",-1,t,!1,!1,r)}};var k9=function(e){var t=!0;try{var r="__mplss_"+Sh(8),n="xyz";e.setItem(r,n),e.getItem(r)!==n&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},Se=null,St=function(e,t){return null===Se||t?Se=k9(e):Se},Sr=null,Sn=function(e,t){return null===Sr||t?Sr=k9(e):Sr};function Si(e,t,r){var n=function(e){k4.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||k4.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(e){n(e)}return null},parse:function(t){try{return k2.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){n(e)}},remove:function(t){try{e.removeItem(t)}catch(e){n(e)}}}}var So=function(){try{return c1.localStorage}catch(e){return null}},Ss=function(){try{return c1.sessionStorage}catch(e){return null}};k2.localStorage=Si(So(),"localStorage",St),k2.sessionStorage=Si(Ss(),"sessionStorage",Sn),k2.register_event=function(){var e=function(e,r,n,i,o){if(!e)return void k4.error("No valid element provided to register_event");if(e.addEventListener&&!i)e.addEventListener(r,n,!!o);else{var s="on"+r,a=e[s];e[s]=t(e,n,a)}};function t(e,t,n){var i=function(i){if(i=i||r(c1.event)){var o=!0,s,a;return k2.isFunction(n)&&(s=n(i)),a=t.call(e,i),(!1===s||!1===a)&&(o=!1),o}};return i}function r(e){return e&&(e.preventDefault=r.preventDefault,e.stopPropagation=r.stopPropagation),e}return r.preventDefault=function(){this.returnValue=!1},r.stopPropagation=function(){this.cancelBubble=!0},e}();var Sa=RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');k2.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!kV.getElementsByTagName)return[];var n=t.split(" "),i,o,s,a,c,u,l,h,d,f,p=[kV];for(u=0;u<n.length;u++){if((i=n[u].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){s=(o=i.split("#"))[0];var g=o[1],m=kV.getElementById(g);if(!m||s&&m.nodeName.toLowerCase()!=s)return[];p=[m];continue}if(i.indexOf(".")>-1){s=(o=i.split("."))[0];var v=o[1];for(!s&&(s="*"),a=[],c=0,l=0;l<p.length;l++)for(d="*"==s?e(p[l]):p[l].getElementsByTagName(s),h=0;h<d.length;h++)a[c++]=d[h];for(l=0,p=[],f=0;l<a.length;l++)a[l].className&&k2.isString(a[l].className)&&r(a[l],v)&&(p[f++]=a[l]);continue}var y=i.match(Sa);if(y){s=y[1];var b=y[2],w=y[3],x=y[4];for(!s&&(s="*"),a=[],c=0,l=0;l<p.length;l++)for(d="*"==s?e(p[l]):p[l].getElementsByTagName(s),h=0;h<d.length;h++)a[c++]=d[h];var _;switch(p=[],f=0,w){case"=":_=function(e){return e.getAttribute(b)==x};break;case"~":_=function(e){return e.getAttribute(b).match(RegExp("\\b"+x+"\\b"))};break;case"|":_=function(e){return e.getAttribute(b).match(RegExp("^"+x+"-?"))};break;case"^":_=function(e){return 0===e.getAttribute(b).indexOf(x)};break;case"$":_=function(e){return e.getAttribute(b).lastIndexOf(x)==e.getAttribute(b).length-x.length};break;case"*":_=function(e){return e.getAttribute(b).indexOf(x)>-1};break;default:_=function(e){return e.getAttribute(b)}}for(l=0,p=[],f=0;l<a.length;l++)_(a[l])&&(p[f++]=a[l]);continue}for(s=i,a=[],c=0,l=0;l<p.length;l++)for(d=p[l].getElementsByTagName(s),h=0;h<d.length;h++)a[c++]=d[h];p=a}return p}return function(e){return k2.isElement(e)?[e]:k2.isObject(e)&&!k2.isUndefined(e.length)?e:n.call(this,e)}}();var Sc=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Su=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];k2.info={campaignParams:function(e){var t="",r={};return k2.each(Sc,function(n){(t=k2.getQueryParam(kV.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return k2.each(Su,function(r){(e=k2.getQueryParam(kV.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return k2.extend(k2.info.campaignParams(),k2.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=k2.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n["$search_engine"]=t;var i=k2.getQueryParam(e,r);i.length&&(n["mp_keyword"]=i)}return n},browser:function(e,t,r){if(t=t||"",r||k2.includes(e," OPR/"))return k2.includes(e,"Mini")?"Opera Mini":"Opera";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(k2.includes(e,"IEMobile")||k2.includes(e,"WPDesktop"))return"Internet Explorer Mobile";if(k2.includes(e,"SamsungBrowser/"))return"Samsung Internet";if(k2.includes(e,"Edge")||k2.includes(e,"Edg/"))return"Microsoft Edge";else if(k2.includes(e,"FBIOS"))return"Facebook Mobile";else if(k2.includes(e,"Whale/"))return"Whale Browser";else if(k2.includes(e,"Chrome"))return"Chrome";else if(k2.includes(e,"CriOS"))return"Chrome iOS";else if(k2.includes(e,"UCWEB")||k2.includes(e,"UCBrowser"))return"UC Browser";else if(k2.includes(e,"FxiOS"))return"Firefox iOS";else if(k2.includes(t,"Apple"))return k2.includes(e,"Mobile")?"Mobile Safari":"Safari";else if(k2.includes(e,"Android"))return"Android Mobile";else if(k2.includes(e,"Konqueror"))return"Konqueror";else if(k2.includes(e,"Firefox"))return"Firefox";else if(k2.includes(e,"MSIE")||k2.includes(e,"Trident/"))return"Internet Explorer";else if(k2.includes(e,"Gecko"))return"Mozilla";else return""},browserVersion:function(e,t,r){var n=k2.info.browser(e,t,r),i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},o=i[n];if(void 0===o)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var e=kG;if(/Windows/i.test(e))return/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows";if(/(iPhone|iPad|iPod)/.test(e))return"iOS";if(/Android/.test(e))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(/Mac/i.test(e))return"Mac OS X";else if(/Linux/.test(e))return"Linux";else if(/CrOS/.test(e))return"Chrome OS";else return""},device:function(e){if(/Windows Phone/i.test(e)||/WPDesktop/.test(e))return"Windows Phone";if(/iPad/.test(e))return"iPad";if(/iPod/.test(e))return"iPod Touch";if(/iPhone/.test(e))return"iPhone";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";else if(/Android/.test(e))return"Android";else return""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return c1.location.href},properties:function(e){return"object"!=typeof e&&(e={}),k2.extend(k2.strip_empty_properties({$os:k2.info.os(),$browser:k2.info.browser(kG,kW.vendor,kY),$referrer:kV.referrer,$referring_domain:k2.info.referringDomain(kV.referrer),$device:k2.info.device(kG)}),{$current_url:k2.info.currentUrl(),$browser_version:k2.info.browserVersion(kG,kW.vendor,kY),$screen_height:kX.height,$screen_width:kX.width,mp_lib:"web",$lib_version:c4.LIB_VERSION,$insert_id:Sh(),time:k2.timestamp()/1e3},k2.strip_empty_properties(e))},people_properties:function(){return k2.extend(k2.strip_empty_properties({$os:k2.info.os(),$browser:k2.info.browser(kG,kW.vendor,kY)}),{$browser_version:k2.info.browserVersion(kG,kW.vendor,kY)})},mpPageViewProperties:function(){return k2.strip_empty_properties({current_page_title:kV.title,current_domain:c1.location.hostname,current_url_path:c1.location.pathname,current_url_protocol:c1.location.protocol,current_url_search:c1.location.search})}};var Sl=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new kD(function(i){setTimeout(function(){var t=e.apply(o,[n]);r=null,n=[],i(t)},t)})),r}},Sh=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},Sd=function(){var e=k2.UUID().replace(/-/g,""),t=k2.UUID().replace(/-/g,"").substring(0,16),r="01";return"00-"+e+"-"+t+"-"+r},Sf=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Sp=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Sg=function(e){var t=Sp,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Sf);var i=e.match(t);return i?i[0]:""},Sm=function(){var e=c1.navigator["onLine"];return k2.isUndefined(e)||e},Sv=function(){},Sy=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},Sb=null,Sw=null;"u">typeof JSON&&(Sb=JSON.stringify,Sw=JSON.parse),Sb=Sb||k2.JSONEncode,Sw=Sw||k2.JSONDecode;var Sx=function(e,t,r){if(!c1.CompressionStream)return!1;var n=k2.info.browser(e,t,r),i=k2.info.browserVersion(e,t,r);return"Safari"!==n&&"Mobile Safari"!==n||!(i>=16.4)||!(i<16.6)};k2["info"]=k2.info,k2["info"]["browser"]=k2.info.browser,k2["info"]["browserVersion"]=k2.info.browserVersion,k2["info"]["device"]=k2.info.device,k2["info"]["properties"]=k2.info.properties,k2["isBlockedUA"]=k2.isBlockedUA,k2["isEmptyObject"]=k2.isEmptyObject,k2["isObject"]=k2.isObject,k2["JSONDecode"]=k2.JSONDecode,k2["JSONEncode"]=k2.JSONEncode,k2["toArray"]=k2.toArray,k2["NPO"]=kP;var S_=function(e,t,r){this.dbName=e,this.storeName=t,this.version=r.version,this.storeNamesInDb=r.storeNames,this.dbPromise=null};S_.prototype._openDb=function(){var e=this.dbName,t=this.version,r=this.storeNamesInDb;return new kD(function(n,i){var o=c1.indexedDB.open(e,t);o["onerror"]=function(){i(o.error)},o["onsuccess"]=function(){n(o.result)},o["onupgradeneeded"]=function(e){var t=e.target.result;r.forEach(function(e){t.objectStoreNames.contains(e)||t.createObjectStore(e)})}})},S_.prototype.init=function(){return c1.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof c1["IDBDatabase"]?kD.resolve():kD.reject(e)})):kD.reject("indexedDB is not supported in this browser")},S_.prototype.isInitialized=function(){return!!this.dbPromise},S_.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new kD(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch((function(e){return e&&"InvalidStateError"===e["name"]?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):kD.reject(e)}).bind(this))},S_.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},S_.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},S_.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},S_.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var Sk="mixpanelBrowserDb",SS="mixpanelRecordingEvents",SC="mixpanelRecordingRegistry",SE={version:1,storeNames:[SS,SC]},SO="__mp_opt_in_out_";function SI(e,t){SU(!0,e,t)}function ST(e,t){SU(!1,e,t)}function SA(e,t){return"1"===SF(e,t)}function SM(e,t){if(Sj(t))return k4.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===SF(e,t);return r&&k4.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function SR(e){return Sz(e,function(e){return this.get_config(e)})}function SP(e){return Sz(e,function(e){return this._get_config(e)})}function SL(e){return Sz(e,function(e){return this._get_config(e)})}function SD(e,t){SN(t=t||{}).remove(SB(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function SN(e){return"localStorage"===(e=e||{}).persistenceType?k2.localStorage:k2.cookie}function SB(e,t){return((t=t||{}).persistencePrefix||SO)+e}function SF(e,t){return SN(t).get(SB(e,t))}function Sj(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||c1,r=t["navigator"]||{},n=!1;return k2.each([r["doNotTrack"],r["msDoNotTrack"],t["doNotTrack"]],function(e){k2.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}function SU(e,t,r){k2.isString(t)&&t.length?(SN(r=r||{}).set(SB(t,r),+!!e,k2.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):k4.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function Sz(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=SM(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){k4.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}}var Sq=k8("lock"),SH=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||So(),this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||kD};SH.prototype.withLock=function(e,t){var r=this.promiseImpl;return new r(k2.bind(function(r,n){var i=t||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=s+":X",h=s+":Y",d=s+":Z",f=function(e){if(new Date().getTime()-o>c){Sq.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(d),u.removeItem(h),m();return}setTimeout(function(){try{e()}catch(e){n(e)}},a*(Math.random()+.1))},p=function(e,t){e()?t():f(function(){p(e,t)})},g=function(){var e=u.getItem(h);return(!e||e===i)&&(u.setItem(h,i),u.getItem(h)===i||(St(u,!0)||n(Error("localStorage support dropped while acquiring lock")),!1))},m=function(){u.setItem(l,i),p(g,function(){u.getItem(l)===i?v():f(function(){u.getItem(h)!==i?m():p(function(){return!u.getItem(d)},v)})})},v=function(){u.setItem(d,"1");var t=function(){u.removeItem(d),u.getItem(h)===i&&u.removeItem(h),u.getItem(l)===i&&u.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(St(u,!0))m();else throw Error("localStorage support check failed")}catch(e){n(e)}},this))};var S$=function(e){this.storage=e||So()};S$.prototype.init=function(){return this.storage?kD.resolve():kD.reject(Error("localStorage is not available"))},S$.prototype.isInitialized=function(){return!0},S$.prototype.setItem=function(e,t){return new kD(k2.bind(function(r,n){try{this.storage.setItem(e,Sb(t))}catch(e){n(e)}r()},this))},S$.prototype.getItem=function(e){return new kD(k2.bind(function(t,r){var n;try{n=Sw(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},S$.prototype.removeItem=function(e){return new kD(k2.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var SW=k8("batch"),SV=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new S$,this.lock=new SH(e,{storage:t.sharedLockStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||k2.bind(SW.error,SW),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=Sl(k2.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=k2.bind(function(e){return this._enqueuePersisted([e])},this)};SV.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?kD.resolve():this.queueStorage.init().then(k2.bind(function(){this.initialized=!0},this)).catch(k2.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},SV.prototype.enqueue=function(e,t){var r={id:Sh(),flushAfter:new Date().getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),kD.resolve(!0))},SV.prototype._enqueuePersisted=function(e){var t=k2.bind(function(){return this.ensureInit().then(k2.bind(function(){return this.readFromStorage()},this)).then(k2.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(k2.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(k2.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(k2.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},SV.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(k2.bind(function(){return this.readFromStorage()},this)).then(k2.bind(function(r){if(r.length){var n={};k2.each(t,function(e){n[e["id"]]=!0});for(var i=0;i<r.length;i++){var o=r[i];if(new Date().getTime()>o["flushAfter"]&&!n[o["id"]]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):kD.resolve(t)};var SY=function(e,t){var r=[];return k2.each(e,function(e){e["id"]&&!t[e["id"]]&&r.push(e)}),r};SV.prototype.removeItemsByID=function(e){var t={};if(k2.each(e,function(e){t[e]=!0}),this.memQueue=SY(this.memQueue,t),!this.usePersistence)return kD.resolve(!0);var r=k2.bind(function(){return this.ensureInit().then(k2.bind(function(){return this.readFromStorage()},this)).then(k2.bind(function(e){return e=SY(e,t),this.saveToStorage(e)},this)).then(k2.bind(function(){return this.readFromStorage()},this)).then(k2.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n["id"]&&t[n["id"]])throw Error("Item not removed from storage")}return!0},this)).catch(k2.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(k2.bind(function(e){return this.reportError("Error acquiring storage lock",e),!St(this.lock.storage,!0)&&r().then(k2.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(k2.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))};var SX=function(e,t){var r=[];return k2.each(e,function(e){var n=e["id"];if(n in t){var i=t[n];null!==i&&(e["payload"]=i,r.push(e))}else r.push(e)}),r};SV.prototype.updatePayloads=function(e){return(this.memQueue=SX(this.memQueue,e),this.usePersistence)?this.lock.withLock(k2.bind(function(){return this.ensureInit().then(k2.bind(function(){return this.readFromStorage()},this)).then(k2.bind(function(t){return t=SX(t,e),this.saveToStorage(t)},this)).catch(k2.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(k2.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):kD.resolve(!0)},SV.prototype.readFromStorage=function(){return this.ensureInit().then(k2.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(k2.bind(function(e){return e&&!k2.isArray(e)&&(this.reportError("Invalid storage entry:",e),e=null),e||[]},this)).catch(k2.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},SV.prototype.saveToStorage=function(e){return this.ensureInit().then(k2.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(k2.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},SV.prototype.clear=function(){return(this.memQueue=[],this.usePersistence)?this.ensureInit().then(k2.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):kD.resolve()};var SG=6e5,SJ=k8("batch"),SK=function(e,t){this.errorReporter=t.errorReporter,this.queue=new SV(e,{errorReporter:k2.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig["batch_size"],this.flushInterval=this.libConfig["batch_flush_interval_ms"],this.stopped=!this.libConfig["batch_autostart"],this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};SK.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},SK.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},SK.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},SK.prototype.clear=function(){return this.queue.clear()},SK.prototype.resetBatchSize=function(){this.batchSize=this.libConfig["batch_size"]},SK.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig["batch_flush_interval_ms"])},SK.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(k2.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},SK.prototype.sendRequestPromise=function(e,t){return new kD(k2.bind(function(r){this.sendRequest(e,t,r)},this))},SK.prototype.flush=function(e){if(this.requestInProgress)return SJ.log("Flush: Request already in progress"),kD.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig["batch_request_timeout_ms"],r=new Date().getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(k2.bind(function(i){var o=i.length===n,s=[],a={};if(k2.each(i,function(e){var t=e["payload"];if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t["event"]&&t["properties"]&&(t["properties"]=k2.extend({},t["properties"],{mp_sent_by_lib_version:c4.LIB_VERSION}));var r=!0,n=e["id"];n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e["id"]]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),kD.resolve();var c=k2.bind(function(){return this.queue.removeItemsByID(k2.map(i,function(e){return e["id"]})).then(k2.bind(function(e){return(k2.each(i,k2.bind(function(e){var t=e["id"];t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e)?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o)?(this.resetFlush(),kD.resolve()):this.flush():(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),kD.resolve())},this))},this),u=k2.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(k2.isObject(o)&&"timeout"===o.error&&new Date().getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(k2.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!Sm()||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(SG,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),kD.resolve()}else{if(!k2.isObject(o)||413!==o.httpStatusCode)return c();if(!(i.length>1))return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c();var u=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,u,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),kD.resolve()}}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),SJ.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(k2.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},SK.prototype.reportError=function(e,t){if(SJ.error.apply(SJ.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){SJ.error(e)}};var SZ=function(e){var t=Date.now();return!e||t>e["maxExpires"]||t>e["idleExpires"]},SQ=250,S0=function(e,t){if(!k2.isArray(e))return e&&t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var r=[],n=0;n<e.length;n++)try{var i=new URL(e[n]).origin;if("null"===i){t.critical(e[n]+" has an opaque origin. Skipping this entry.");continue}r.push(i)}catch(r){t.critical(e[n]+" is not a valid origin URL. Skipping this entry.")}return r},S1="change",S2="click",S4="hashchange",S5="input",S8="load",S6="mp_locationchange",S3="popstate",S7="scrollend",S9="scroll",Ce="select",Ct="submit",Cr="toggle",Cn="visibilitychange",Ci=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Co=["mp-include"],Cs=["mp-no-track"],Ca=Cs.concat(["mp-sensitive"]),Cc=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Cu={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},Cl={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},Ch={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},Cd=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],Cf=5,Cp=k8("autocapture");function Cg(e){for(var t={},r=Cm(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function Cm(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function Cv(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!CS(e))return e}function Cy(e,t,r,n,i,o){var s={$classes:Cm(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s["$id"]=a),CM(e,t,i,o)&&k2.each(Cc.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);CR(n)&&(s["$attr-"+t]=n)}});var c=1,u=1,l=e;while(l=Cv(l))c++,l.tagName===e.tagName&&u++;return s["$nth_child"]=c,s["$nth_of_type"]=u,s}function Cb(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.capturedForHeatMap||!1,l={};k2.each(i,function(e){l[e]=!0});var h=null,d=void 0===e.target?e.srcElement:e.target;if(CE(d)&&(d=d.parentNode),CT(d,e)&&C_(d,e,r,n)&&!Ck(d,e,o,s)){var f=[d],p=d;while(p.parentNode&&!CC(p,"body"))f.push(p.parentNode),p=p.parentNode;var g=[],m,v=!1;if(k2.each(f,function(t){var i=CM(t,e,r,n);l["href"]||"a"!==t.tagName.toLowerCase()||(m=t.getAttribute("href"),m=i&&CR(m)&&m),Ck(t,e,o,s)&&(v=!0),g.push(Cy(t,e,l,c,r,n))},this),!v){var y=kV["documentElement"];if(h={$event_type:e.type,$host:c1.location.host,$pathname:c1.location.pathname,$elements:g,$el_attr__href:m,$viewportHeight:Math.max(y["clientHeight"],c1["innerHeight"]||0),$viewportWidth:Math.max(y["clientWidth"],c1["innerWidth"]||0),$pageHeight:kV["body"]["offsetHeight"]||0,$pageWidth:kV["body"]["offsetWidth"]||0},k2.each(c,function(e){if(!l[e]&&d.hasAttribute(e)){var t=d.getAttribute(e);CR(t)&&(h["$el_attr__"+e]=t)}}),a&&(b=Cw(d,e,r,n))&&b.length&&(h["$el_text"]=b),e.type===S2&&(k2.each(Ci,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h["$captured_for_heatmap"]=!0),d=Cx(e)),a){var b=Cw(d,e,r,n);b&&b.length&&(h["$el_text"]=b)}if(d){if(!C_(d,e,r,n)||Ck(d,e,o,s))return null;var w=Cy(d,e,l,c,r,n);h["$target"]=w,h["$el_classes"]=w["$classes"],k2.extend(h,k2.strip_empty_properties({$el_id:w["$id"],$el_tag_name:w["$tag_name"]}))}}}return h}function Cw(e,t,r,n){var i="";return CM(e,t,r,n)&&e.childNodes&&e.childNodes.length&&k2.each(e.childNodes,function(e){CE(e)&&e.textContent&&(i+=k2.trim(e.textContent).split(/(\s+)/).filter(CR).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),k2.trim(i)}function Cx(e){for(var t=e.target,r=e["composedPath"](),n=0;n<r.length;n++){var i=r[n];if(CC(i,"a")||CC(i,"button")||CC(i,"input")||CC(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}function C_(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return Cp.critical("Error while checking element in allowElementCallback",e),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(e){Cp.critical("Error while checking selector: "+o,e)}}return!1}function Ck(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(e){return Cp.critical("Error while checking element in blockElementCallback",e),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(e){Cp.critical("Error while checking selector: "+o,e)}}var s=Cg(e);for(i=0;i<Cs.length;i++)if(s[Cs[i]])return!0;return!1}function CS(e){return e&&1===e.nodeType}function CC(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function CE(e){return e&&3===e.nodeType}function CO(){try{var e=kV.createElement("div");return!!e["matches"]}catch(e){return!1}}function CI(){return"u">typeof WeakSet}function CT(e,t){if(!e||CC(e,"html")||!CS(e))return!1;var r=e.tagName.toLowerCase();switch(r){case"form":return t.type===Ct;case"input":if(-1===["button","submit"].indexOf(e.getAttribute("type")))return t.type===S1;return t.type===S2;case"select":case"textarea":return t.type===S1;default:return t.type===S2}}function CA(e){var t=(e.name||e.id||"").toString().toLowerCase();if("string"==typeof t){var r=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(r.test(t.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function CM(e,t,r,n){var i;if(!C_(e,t,r,n))return!1;for(var o=e;o.parentNode&&!CC(o,"body");o=o.parentNode){var s=Cg(o);for(i=0;i<Ca.length;i++)if(s[Ca[i]])return!1}var a=Cg(e);for(i=0;i<Co.length;i++)if(a[Co[i]])return!0;if(CC(e,"input")||CC(e,"select")||CC(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}return!CA(e)}function CR(e){if(null===e||k2.isUndefined(e))return!1;if("string"==typeof e){e=k2.trim(e);var t=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(t.test((e||"").replace(/[- ]/g,"")))return!1;var r=/(^\d{3}-?\d{2}-?\d{4}$)/;if(r.test(e))return!1}return!0}function CP(e){var t="onscrollend"in c1,r=k6(e),n=S7;if(!t){var i=null,o=100;r=k6(function(){clearTimeout(i),i=setTimeout(e,o)}),n=S9}return{listener:r,eventType:n}}function CL(e){for(var t=0;t<Cd.length;t++)if(e.hasAttribute(Cd[t]))return!0;return!1}function CD(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return Cu[r]}function CN(e){var t=e.tagName.toLowerCase();return!!("button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||CL(e)||CD(e)||"a"===t&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function CB(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(Cl[t])return!0;if(CN(e))return!1;var r=e.parentElement,n=0;while(r&&n<Cf){if(CN(r))return!1;if(r.getRootNode&&r.getRootNode()!==kV){var i=r.getRootNode();if(i.host&&CN(i.host))return!1}r=r.parentElement,n++}return!!Ch[t]}function CF(e){return"composedPath"in e?e["composedPath"]():[]}function Cj(e){var t=CF(e);return t&&t.length>0?t[0]:e["target"]||e["srcElement"]}var CU=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",Cz="data-rr-is-password",Cq=["password","email","tel","hidden"];function CH(e){return e?Array.isArray(e)?e:[e]:[]}function C$(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=CH(r).join(","),t.input.unmaskingSelector=CH(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),c=e.get_config("record_mask_text_class"),u=CH(o);if(c)if(c instanceof RegExp)t.text._legacyClassRegex=c;else{var l="."+c;-1===u.indexOf(l)&&u.push(l)}return t.text.maskingSelector=u.join(","),t.text.unmaskingSelector=CH(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}function CW(e,t){return!!t&&!!e.closest(t)}function CV(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==Cq.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!!(n&&""!==n&&"off"!==n||e.hasAttribute(Cz)||CA(e))||(t.input.maskAll?!CW(e,t.input.unmaskingSelector):!!(CW(e,t.input.maskingSelector)||CW(e,CU)))}function CY(e,t){return!!e&&(!!(t.text._legacyClassRegex&&b$(e,t.text._legacyClassRegex))||(t.text.maskAll?!CW(e,t.text.unmaskingSelector):!!(CW(e,t.text.maskingSelector)||CW(e,CU))))}var CX=k8("network-plugin");function CG(e){return Math.round(Date.now()-e.performance.now())}var CJ={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function CK(e){return"navigation"===e.entryType}function CZ(e){return"resource"===e.entryType}function CQ(e,t){for(var r=e.length,n=r-1;n>=0;n-=1)if(t(e[n]))return e[n]}function C0(e,t,r){if(!(t in e)||"function"!=typeof e[t])return function(){};var n=e[t],i=r(n);return e[t]=i,function(){e[t]=n}}var C1=1048576;function C2(e){return e&&"string"==typeof e&&e.length>C1?(CX.error("Body truncated from "+e.length+" to "+C1+" characters"),e.substring(0,C1)+"... [truncated]"):e}function C4(e,t,r){if(!t.PerformanceObserver)return CX.error("PerformanceObserver not supported"),function(){};if(r.recordInitialRequests){var n=t.performance.getEntries().filter(function(e){return CK(e)||CZ(e)&&r.initiatorTypes.includes(e.initiatorType)});e({requests:n.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:CG(t)}}),isInitial:!0})}var i=new t.PerformanceObserver(function(n){var i=n.getEntries().filter(function(e){return CZ(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType});e({requests:i.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:CG(t)}})})});return i.observe({entryTypes:["navigation","resource"]}),function(){i.disconnect()}}function C5(e,t,r){return!!t[e]&&0!==t[e].length&&t[e].includes(r.toLowerCase())}function C8(e,t,r){return!!t[e]&&0!==t[e].length&&Sy(r,t[e])}function C6(e){if(null==e)return null;var t;if("string"==typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=k2.HTTPBuildQuery(e);else if(!k2.isObject(e))return"Cannot read body of type "+typeof e;else try{t=JSON.stringify(e)}catch(e){return"Failed to stringify response object"}return C2(t)}function C3(e){return new Promise(function(t){var r=setTimeout(function(){t("Timeout while trying to read body")},500);try{e.clone().text().then(function(e){clearTimeout(r),t(C2(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(e){clearTimeout(r),t("Failed to read body: "+String(e))}})}function C7(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return CX.error("Cannot find performance entry"),Promise.resolve(null);var s=e.performance.getEntriesByName(r),a=CQ(s,function(e){return CZ(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!i||e.startTime<=i)});return a?Promise.resolve(a):new Promise(function(e){setTimeout(e,50*o)}).then(function(){return C7(e,t,r,n,i,o+1)})}function C9(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=C0(t.XMLHttpRequest.prototype,"open",function(n){return function(i,o,s,a,c){void 0===s&&(s=!0);var u=this,l=new Request(o,{method:i}),h={},d,f,p={},g=u.setRequestHeader.bind(u);u.setRequestHeader=function(e,t){return C5("request",r.recordHeaders,e)&&(p[e]=t),g(e,t)},h.requestHeaders=p;var m=u.send.bind(u);u.send=function(e){return C8("request",r.recordBodyUrls,l.url)&&(h.requestBody=C6(e)),d=t.performance.now(),m(e)},u.addEventListener("readystatechange",function(){if(u.readyState===u.DONE){f=t.performance.now();var n={},i=u.getAllResponseHeaders();if(i){var o=i.trim().split(/[\r\n]+/);o.forEach(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&C5("response",r.recordHeaders,i)&&(n[i]=o)}}})}h.responseHeaders=n,C8("response",r.recordBodyUrls,l.url)&&(h.responseBody=C6(u.response)),C7(t,"xmlhttprequest",l.url,d,f).then(function(r){if(!r)return void CX.error("Failed to get performance entry for XHR request to "+l.url);var n={url:r.name,method:l.method,initiatorType:r.initiatorType,status:u.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:CG(t),requestHeaders:h.requestHeaders,requestBody:h.requestBody,responseHeaders:h.responseHeaders,responseBody:h.responseBody};e({requests:[n]})}).catch(function(e){CX.error("Error recording XHR request to "+l.url+": "+String(e))})}}),n.call(u,i,o,s,a,c)}});return function(){n()}}function Ee(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=C0(t,"fetch",function(n){return function(){var i=new Request(arguments[0],arguments[1]),o,s={},a,c,u,l=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var d={};i.headers.forEach(function(e,t){C5("request",r.recordHeaders,t)&&(d[t]=e)}),s.requestHeaders=d,C8("request",r.recordBodyUrls,i.url)&&(l=C3(i).then(function(e){s.requestBody=e})),a=t.performance.now(),u=n.apply(t,arguments).then(function(e){o=e,c=t.performance.now();var n={};return o.headers.forEach(function(e,t){C5("response",r.recordHeaders,t)&&(n[t]=e)}),s.responseHeaders=n,C8("response",r.recordBodyUrls,i.url)&&(h=C3(o).then(function(e){s.responseBody=e})),o})}catch(e){u=Promise.reject(e)}return Promise.all([l,h,u]).then(function(){return C7(t,"fetch",i.url,a,c)}).then(function(r){if(!r)return void CX.error("Failed to get performance entry for fetch request to "+i.url);var n={url:r.name,method:i.method,initiatorType:r.initiatorType,status:o?o.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:CG(t),requestHeaders:s.requestHeaders,requestBody:s.requestBody,responseHeaders:s.responseHeaders,responseBody:s.responseBody};e({requests:[n]})}).catch(function(e){CX.error("Error recording fetch request to "+i.url+": "+String(e))}),u}});return function(){n()}}function Et(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},CJ.recordHeaders,r.recordHeaders||{}),i=Object.assign({},CJ.recordBodyUrls,r.recordBodyUrls||{});r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i});var o=Object.assign({},CJ,r),s=function(t){var r=t.requests.filter(function(e){var t=Sy(e.url,o.ignoreRequestUrls||[]);return!t&&!o.ignoreRequestFn(e)});(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=C4(s,t,o),c=C9(s,t,o),u=Ee(s,t,o);return function(){a(),c(),u()}}var Er="rrweb/network@1.mp",En=function(e){return{name:Er,observer:Et,options:e}},Ei=k8("recorder"),Eo=c1["CompressionStream"],Es={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Ea=new Set([ys.MouseMove,ys.MouseInteraction,ys.Scroll,ys.ViewportResize,ys.Input,ys.TouchMove,ys.MediaInteraction,ys.Drag,ys.Selection]);function Ec(e){return e.type===yo.IncrementalSnapshot&&Ea.has(e.data.source)}var Eu=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||Sv,this._onMaxLengthReached=e.onMaxLengthReached||Sv,this._onBatchSent=e.onBatchSent||Sv,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=kN,this.recordMinMs=0,this._recordMinMsCheckStart=null;var t=St(e.sharedLockStorage||So(),!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new S_(Sk,SS,SE),this.batcher=new SK(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Es,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:SQ,sharedLockTimeoutMS:1e4})};Eu.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e["$device_id"]=t);var r=this._mixpanel.get_property("$user_id");return r&&(e["$user_id"]=r),e},Eu.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch((function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}).bind(this)).then((function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))}).bind(this))},Eu.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Eu.prototype.get_config=function(e){return this.getConfig(e)},Eu.prototype.startRecording=function(e){if(null===this._rrwebRecord)return void this.reportError("rrweb record function not provided. ");if(null!==this._stopRecording)return void Ei.log("Recording already in progress, skipping startRecording.");this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>kN&&(this.recordMaxMs=kN,Ei.critical("record_max_ms cannot be greater than "+kN+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=k2.info.currentUrl(),this.replayStartUrl=k2.info.currentUrl()),e||this.recordMinMs>0?(this.batcher.stop(),this._recordMinMsCheckStart=null):this.batcher.start();var t=(function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=new Date().getTime()+e}).bind(this);t();var r=this.getConfig("record_block_selector");(""===r||null===r)&&(r=void 0);var n=C$(this._mixpanel),i=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,i.push(En(o))}this.getConfig("record_console")&&i.push(kv({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var a=S0(this.getConfig("record_allowed_iframe_origins"),Ei);try{this._stopRecording=this._rrwebRecord({emit:(function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(null===this._recordMinMsCheckStart&&(this._recordMinMsCheckStart=e.timestamp),Ec(e)&&(this.batcher.stopped&&e.timestamp-this._recordMinMsCheckStart>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(CV,n),maskTextFn:this._getMaskFn(CY,n),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var c=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),c)},Eu.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},Eu.prototype.isRrwebStopped=function(){return null===this._stopRecording},Eu.prototype.flushEventsWithOptOut=function(e,t,r){var n=(function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(e,t,r,n)},Eu.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},Eu.deserialize=function(e,t){var r=new Eu(k2.extend({},t,{replayId:e["replayId"],batchStartUrl:e["batchStartUrl"],replayStartUrl:e["replayStartUrl"],idleExpires:e["idleExpires"],maxExpires:e["maxExpires"],replayStartTime:e["replayStartTime"],lastEventTimestamp:e["lastEventTimestamp"],seqNo:e["seqNo"],sharedLockStorage:t.sharedLockStorage}));return r},Eu.prototype._getApiRoute=function(){return this.getConfig("api_routes")["record"]},Eu.prototype._sendRequest=function(e,t,r,n){var i=(function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=k2.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}).bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");c1["fetch"](o+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},Eu.prototype._flushEvents=SR(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,c=0;c<n;c++)o=Math.min(o,e[c].timestamp),s=Math.max(s,e[c].timestamp),e[c].type===yo.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a){r({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var u=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:c4.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),Sx(kG,kW.vendor,kY)){var d=new Blob([h],{type:"application/json"}).stream(),f=d.pipeThrough(new Eo("gzip"));new Response(f).blob().then((function(e){l["format"]="gzip",this._sendRequest(i,l,e,r)}).bind(this))}else l["format"]="body",this._sendRequest(i,l,h,r)}}),Eu.prototype.reportError=function(e,t){Ei.error.apply(Ei.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.getConfig("error_reporter")(e,t)}catch(e){Ei.error(e)}},Eu.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Eu.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>kB?(Ei.critical("record_min_ms cannot be greater than "+kB+"ms. Capping value."),kB):e},Eu.prototype._getMaskFn=function(e,t){return(function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(e){this.reportError("Error checking if text should be masked, defaulting to masked",e)}if(!i)return r;var o=Math.min(r.length,1e4);return"*".repeat(o)}).bind(this)};var El=function(e){this.idb=new S_(Sk,SC,SE),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};El.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},El.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},El.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return kD.resolve();var t=e["tabId"];return t?this.idb.init().then((function(){return this.idb.setItem(t,e)}).bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),kD.resolve())},El.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(e){return SZ(e)?null:e}).bind(this)).catch(this.handleError.bind(this)):kD.resolve(null)},El.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},El.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then((function(e){if(e)return e["maxExpires"]=0,this.setActiveRecording(e)}).bind(this)).catch(this.handleError.bind(this))},El.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):kD.resolve()},El.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(e){var t=e.filter(function(e){return SZ(e)}).map((function(e){var t=Eu.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return t.unloadPersistedData().then((function(){return this.idb.removeItem(e["tabId"])}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return kD.all(t)}).bind(this)).catch(this.handleError.bind(this)):kD.resolve([])};var Eh=k8("recorder"),Ed=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||bb,this.sharedLockStorage=r,this.recordingRegistry=new El({mixpanelInstance:this.mixpanelInstance,errorReporter:Eh.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};function Ef(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}Ed.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped())return void Eh.log("Recording already in progress, skipping startRecording.");var t=(function(){Eh.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),r=(function(){Eh.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),n=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this["__flushPromise"]=this.activeRecording.batcher._flushPromise}).bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:k2.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Eu.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Eu(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},Ed.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then((function(){return this.recordingRegistry.clearActiveRecording()}).bind(this)).then((function(){this.stopRecordingInProgress=!1}).bind(this))},Ed.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Ed.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return kD.resolve()},Ed.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),kD.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Eh.log("No resumable recording found."),null)}).bind(this))},Ed.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Ed.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},Ed.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(Ed.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),c1[c8]=Ed;var Ep={exports:{}},Eg;function Em(){return Eg||(Eg=1,function(e,t){(function(t,r){e.exports=r()})(0,function(){function e(e){for(var t=[],r=0,n=e.length;r<n;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var t={},r={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(e){return t.truthy(e)},"!":function(e){return!t.truthy(e)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!!t&&void 0!==t.indexOf&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var r=void 0===t?null:t,n=this;if(void 0===e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++)if(null==n||void 0===(n=n[i[o]]))return r;return n},missing:function(){for(var e=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=t.apply({var:i},this);(null===o||""===o)&&e.push(i)}return e},missing_some:function(e,r){var n=t.apply({missing:r},this);return r.length-n.length>=e?[]:n}};return t.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},t.truthy=function(e){return(!Array.isArray(e)||0!==e.length)&&!!e},t.get_operator=function(e){return Object.keys(e)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(e,n){if(Array.isArray(e))return e.map(function(e){return t.apply(e,n)});if(!t.is_logic(e))return e;var i=t.get_operator(e),o=e[i],s,a,c,u,l;if(Array.isArray(o)||(o=[o]),"if"===i||"?:"==i){for(s=0;s<o.length-1;s+=2)if(t.truthy(t.apply(o[s],n)))return t.apply(o[s+1],n);return o.length===s+1?t.apply(o[s],n):null}if("and"===i){for(s=0;s<o.length&&(a=t.apply(o[s],n),t.truthy(a));s+=1);return a}if("or"===i){for(s=0;s<o.length&&(a=t.apply(o[s],n),!t.truthy(a));s+=1);return a}if("filter"===i)return(u=t.apply(o[0],n),c=o[1],Array.isArray(u))?u.filter(function(e){return t.truthy(t.apply(c,e))}):[];if("map"===i)return(u=t.apply(o[0],n),c=o[1],Array.isArray(u))?u.map(function(e){return t.apply(c,e)}):[];else if("reduce"===i)return(u=t.apply(o[0],n),c=o[1],l=void 0!==o[2]?t.apply(o[2],n):null,Array.isArray(u))?u.reduce(function(e,r){return t.apply(c,{current:r,accumulator:e})},l):l;else if("all"===i){if(u=t.apply(o[0],n),c=o[1],!Array.isArray(u)||!u.length)return!1;for(s=0;s<u.length;s+=1)if(!t.truthy(t.apply(c,u[s])))return!1;return!0}else if("none"===i){if(u=t.apply(o[0],n),c=o[1],!Array.isArray(u)||!u.length)return!0;for(s=0;s<u.length;s+=1)if(t.truthy(t.apply(c,u[s])))return!1;return!0}else if("some"===i){if(u=t.apply(o[0],n),c=o[1],!Array.isArray(u)||!u.length)return!1;for(s=0;s<u.length;s+=1)if(t.truthy(t.apply(c,u[s])))return!0;return!1}if(o=o.map(function(e){return t.apply(e,n)}),r.hasOwnProperty(i)&&"function"==typeof r[i])return r[i].apply(n,o);if(i.indexOf(".")>0){var h=String(i).split("."),d=r;for(s=0;s<h.length;s++){if(!d.hasOwnProperty(h[s]))throw Error("Unrecognized operation "+i+" (failed at "+h.slice(0,s+1).join(".")+")");d=d[h[s]]}return d.apply(n,o)}throw Error("Unrecognized operation "+i)},t.uses_data=function(r){var n=[];if(t.is_logic(r)){var i=t.get_operator(r),o=r[i];Array.isArray(o)||(o=[o]),"var"===i?n.push(o[0]):o.forEach(function(e){n.push.apply(n,t.uses_data(e))})}return e(n)},t.add_operation=function(e,t){r[e]=t},t.rm_operation=function(e){delete r[e]},t.rule_like=function(e,r){if(r===e||"@"===r)return!0;if("number"===r)return"number"==typeof e;if("string"===r)return"string"==typeof e;if("array"===r)return Array.isArray(e)&&!t.is_logic(e);if(t.is_logic(r)){if(t.is_logic(e)){var n=t.get_operator(r),i=t.get_operator(e);if("@"===n||n===i)return t.rule_like(t.get_values(e,!1),t.get_values(r,!1))}return!1}if(Array.isArray(r)&&Array.isArray(e)){if(r.length!==e.length)return!1;for(var o=0;o<r.length;o+=1)if(!t.rule_like(e[o],r[o]))return!1;return!0}return!1},t})}(Ep)),Ep.exports}Ep.exports;var Ev=Em(),Ey=Ef(Ev),Eb=function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!k2.isEmptyObject(n))try{i=Ey.apply(n,t||{})}catch(e){return{matches:!1,error:e.toString()}}return{matches:i}},Ew={};Ew["eventMatchesCriteria"]=Eb,c1[c5]=Promise.resolve(Ew);var Ex=30,E_=1e3,Ek=4,ES=!1;function EC(){this.clicks=[]}function EE(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}EC.prototype.isRageClick=function(e,t){t=t||{};var r=t["threshold_px"]||Ex,n=t["timeout_ms"]||E_,i=t["click_count"]||Ek,o=t["interactive_elements_only"]||ES;if(o){var s=Cj(e);if(!s||CB(s))return!1}var a=Date.now(),c=e["pageX"],u=e["pageY"],l=this.clicks[this.clicks.length-1];if(l&&a-l.timestamp<n&&Math.sqrt(Math.pow(c-l.x,2)+Math.pow(u-l.y,2))<r){if(this.clicks.push({x:c,y:u,timestamp:a}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:c,y:u,timestamp:a}];return!1},EE.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return Cj(e)},EE.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=CF(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},EE.prototype.observeShadowRoot=function(e){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(e))){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){Cp.critical("Error while observing shadow root",e)}}},EE.prototype.start=function(){if(!this.observedShadowRoots){if(!CI())return void Cp.critical("Shadow DOM observation unavailable: WeakSet not supported");this.observedShadowRoots=new WeakSet}},EE.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){Cp.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var EO=500,EI=[S1,S5,Ct,Ce,Cr],ET=[S7],EA=[S4],EM={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function ER(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}ER.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e["target"]||e["srcElement"]),!(!t||CB(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},ER.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},ER.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e["timeout_ms"],r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},ER.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},ER.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},ER.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},ER.prototype.processRecursively=function(e){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var t=e["timeout_ms"],r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)},ER.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;EI.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),EA.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),ET.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,EM)}catch(e){Cp.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new EE(function(){e.recordChangeEvent()},EM),this.shadowDOMObserver.start()}catch(e){Cp.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},ER.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){Cp.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){Cp.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){Cp.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var EP="autocapture",EL="track_pageview",ED="full-url",EN="url-with-path-and-query-string",EB="url-with-path",EF="allow_element_callback",Ej="allow_selectors",EU="allow_url_regexes",Ez="block_attrs",Eq="block_element_callback",EH="block_selectors",E$="block_url_regexes",EW="capture_extra_attrs",EV="capture_text_content",EY="scroll_capture_all",EX="scroll_depth_percent_checkpoints",EG="click",EJ="dead_click",EK="input",EZ="pageview",EQ="rage_click",E0="scroll",E1="page_leave",E2="submit",E4={};E4[Ej]=[],E4[EU]=[],E4[Ez]=[],E4[Eq]=null,E4[EH]=[],E4[E$]=[],E4[EW]=[],E4[EV]=!1,E4[EY]=!1,E4[EX]=[25,50,75,100],E4[EG]=!0,E4[EJ]=!0,E4[EK]=!0,E4[EZ]=ED,E4[EQ]=!0,E4[E0]=!0,E4[E1]=!1,E4[E2]=!0;var E5={$mp_autocapture:!0},E8="$mp_click",E6="$mp_dead_click",E3="$mp_input_change",E7="$mp_rage_click",E9="$mp_scroll",Oe="$mp_submit",Ot="$mp_page_leave",Or=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};Or.prototype.init=function(){CO()?(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()):Cp.critical("Autocapture unavailable: missing required DOM APIs")},Or.prototype.getFullConfig=function(){var e=this.mp.get_config(EP);return e?k2.isObject(e)?k2.extend({},E4,e):E4:{}},Or.prototype.getConfig=function(e){return this.getFullConfig()[e]},Or.prototype.currentUrlBlocked=function(){var e=k2.info.currentUrl(),t=this.getConfig(EU)||[];if(t.length)try{return!Sy(e,t)}catch(e){return Cp.critical("Error while checking block URL regexes: ",e),!0}var r=this.getConfig(E$)||[];if(!r||!r.length)return!1;try{return Sy(e,r)}catch(e){return Cp.critical("Error while checking block URL regexes: ",e),!0}},Or.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(EP)?this.getConfig(EZ):this.mp.get_config(EL)},Or.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===E8&&!this.getConfig(EG)||t===E7&&!this._getClickTrackingConfig(EQ)||t===E6&&!this._getClickTrackingConfig(EJ)),n=Cb(e,{allowElementCallback:this.getConfig(EF),allowSelectors:this.getConfig(Ej),blockAttrs:this.getConfig(Ez),blockElementCallback:this.getConfig(Eq),blockSelectors:this.getConfig(EH),captureExtraAttrs:this.getConfig(EW),captureTextContent:this.getConfig(EV),capturedForHeatMap:r});n&&(k2.extend(n,E5),this.mp.track(t,n))}},Or.prototype.initPageListeners=function(){if(c1.removeEventListener(S3,this.listenerPopstate),c1.removeEventListener(S4,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(E1)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){c1.dispatchEvent(new Event(S6))},this.listenerHashchange=function(){c1.dispatchEvent(new Event(S6))},c1.addEventListener(S3,this.listenerPopstate),c1.addEventListener(S4,this.listenerHashchange);var e=c1.history.pushState;"function"==typeof e&&(c1.history.pushState=function(t,r,n){e.call(c1.history,t,r,n),c1.dispatchEvent(new Event(S6))});var t=c1.history.replaceState;"function"==typeof t&&(c1.history.replaceState=function(e,r,n){t.call(c1.history,e,r,n),c1.dispatchEvent(new Event(S6))})}},Or.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},Or.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(E1)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(kV.documentElement.clientHeight,c1.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=k2.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||k2.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(kV.documentElement.clientWidth,c1.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},E5);this.mp.track(Ot,s,{transport:"sendBeacon"})}},Or.prototype._initScrollDepthTracking=function(){if(c1.removeEventListener(S9,this.listenerScrollDepth),c1.removeEventListener(S7,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){Cp.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(kV.documentElement.clientHeight,c1.innerHeight||0);var e=(function(){if(!this.currentUrlBlocked()){var e=Math.max(kV.documentElement.clientHeight,c1.innerHeight||0)+c1.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=kV.body.scrollHeight}}).bind(this),t=CP(e);this.listenerScrollDepth=t.listener,c1.addEventListener(t.eventType,this.listenerScrollDepth)}},Or.prototype.initClickTracking=function(){c1.removeEventListener(S2,this.listenerClick,!0),(this.getConfig(EG)||this.mp.get_config("record_heatmap_data"))&&(Cp.log("Initializing click tracking"),this.listenerClick=(function(e){(this.getConfig(EG)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,E8)}).bind(this),c1.addEventListener(S2,this.listenerClick,!0))},Or.prototype.initDeadClickTracking=function(){var e=this._getClickTrackingConfig(EJ);e||this.mp.get_config("record_heatmap_data")?(Cp.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new ER((function(e){this.trackDomEvent(e,E6)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(e){var t=this._getClickTrackingConfig(EJ);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r["timeout_ms"]||(r["timeout_ms"]=EO),this._deadClickTracker.trackClick(e,r)}}).bind(this),c1.addEventListener(S2,this.listenerDeadClick,!0))):this.stopDeadClickTracking()},Or.prototype.initInputTracking=function(){c1.removeEventListener(S1,this.listenerChange,!0),this.getConfig(EK)&&(Cp.log("Initializing input tracking"),this.listenerChange=(function(e){this.getConfig(EK)&&this.trackDomEvent(e,E3)}).bind(this),c1.addEventListener(S1,this.listenerChange,!0))},Or.prototype.initPageviewTracking=function(){if(c1.removeEventListener(S6,this.listenerLocationchange),this.pageviewTrackingConfig()||this.mp.get_config("record_heatmap_data")){Cp.log("Initializing pageview tracking");var e="",t=!1;(this.pageviewTrackingConfig()||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&(t=this.mp.track_pageview(E5)),t&&(e=k2.info.currentUrl()),this.listenerLocationchange=k6((function(){if(!this.currentUrlBlocked()){var t=k2.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(!i&&this.mp.is_recording_heatmap_data()&&(i=ED),i===ED?r=t!==e:i===EN?r=t.split("#")[0]!==e.split("#")[0]:i===EB&&(r=n),r){var o=this.mp.track_pageview(E5);o&&(e=t),n&&(this.lastScrollCheckpoint=0,Cp.log("Path change: re-initializing scroll depth checkpoints"))}}}).bind(this)),c1.addEventListener(S6,this.listenerLocationchange)}},Or.prototype.initRageClickTracking=function(){c1.removeEventListener(S2,this.listenerRageClick,!0);var e=this._getClickTrackingConfig(EQ);(e||this.mp.get_config("record_heatmap_data"))&&(Cp.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new EC),this.listenerRageClick=(function(e){var t=this._getClickTrackingConfig(EQ);(t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,E7)}).bind(this),c1.addEventListener(S2,this.listenerRageClick,!0))},Or.prototype.initScrollTracking=function(){if(c1.removeEventListener(S7,this.listenerScroll),c1.removeEventListener(S9,this.listenerScroll),this.getConfig(E0)){Cp.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=(function(){if(this.getConfig(E0)&&!this.currentUrlBlocked()){var e=this.getConfig(EY),t=(this.getConfig(EX)||[]).slice().sort(function(e,t){return e-t}),r=c1.scrollY,n=k2.extend({$scroll_top:r},E5);try{var i=kV.body.scrollHeight,o=Math.round(r/(i-c1.innerHeight)*100);if(n["$scroll_height"]=i,n["$scroll_percentage"]=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(n["$scroll_checkpoint"]=a,this.lastScrollCheckpoint=a,e=!0)}}catch(e){Cp.critical("Error while calculating scroll percentage",e)}e&&this.mp.track(E9,n)}}).bind(this),t=CP(e);this.listenerScroll=t.listener,c1.addEventListener(t.eventType,this.listenerScroll)}},Or.prototype.initSubmitTracking=function(){c1.removeEventListener(Ct,this.listenerSubmit,!0),this.getConfig(E2)&&(Cp.log("Initializing submit tracking"),this.listenerSubmit=(function(e){this.getConfig(E2)&&this.trackDomEvent(e,Oe)}).bind(this),c1.addEventListener(Ct,this.listenerSubmit,!0))},Or.prototype.initPageLeaveTracking=function(){if(kV.removeEventListener(Cn,this.listenerPageLeaveVisibilitychange),c1.removeEventListener(S6,this.listenerPageLeaveLocationchange),c1.removeEventListener(S8,this.listenerPageLoad),this.getConfig(E1)||this.mp.get_config("record_heatmap_data")){Cp.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=k2.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=kV.body.scrollHeight}).bind(this),c1.addEventListener(S8,this.listenerPageLoad),this.listenerPageLeaveLocationchange=k6((function(t){if(!this.currentUrlBlocked()){var r=k2.info.currentUrl(),n=r!==e;n&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(kV.documentElement.clientHeight,c1.innerHeight||0),this.previousScrollHeight=kV.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),c1.addEventListener(S6,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(t){kV.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}).bind(this),kV.addEventListener(Cn,this.listenerPageLeaveVisibilitychange)}},Or.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(c1.removeEventListener(S2,this.listenerDeadClick,!0),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},k3(Or);var On=function(e,t){return c1[c5]&&"function"==typeof c1[c5].then||(c1[c5]=new Promise(function(r){e(t,r)}).then(function(){var e=c1[c5];if(e&&"function"==typeof e.then)return e;throw Error("targeting failed to load")}).catch(function(e){throw delete c1[c5],e})),c1[c5]},Oi=k8("flags"),Oo="mixpanelFlagsDb",Os="mixpanelFlags",Oa={version:1,storeNames:[Os]},Oc="persisted_variants_for_",Ou=864e5,Ol=Object.freeze({NETWORK_ONLY:"networkOnly",NETWORK_FIRST:"networkFirst",PERSISTENCE_UNTIL_NETWORK_SUCCESS:"persistenceUntilNetworkSuccess"}),Oh=[Ol.NETWORK_ONLY,Ol.NETWORK_FIRST,Ol.PERSISTENCE_UNTIL_NETWORK_SUCCESS],Od=function(e,t,r){this.idb=new S_(Oo,Os,Oa),this.persistenceConfig=e,this.persistedVariantsKey=Oc+t,this.isGloballyDisabled=r||function(){return!1}};Od.prototype.getPolicy=function(){return this.isGloballyDisabled()||!this._isConfigValid()?Ol.NETWORK_ONLY:this.persistenceConfig["variantLookupPolicy"]},Od.prototype.getTtlMs=function(){if(!this._isConfigValid())return Ou;var e=this.persistenceConfig["persistenceTtlMs"];return null==e?Ou:e},Od.prototype._isConfigValid=function(){var e=this.persistenceConfig;return!!e&&(-1===Oh.indexOf(e["variantLookupPolicy"])?(Oi.error("Invalid variantLookupPolicy:",e["variantLookupPolicy"]),!1):void 0===e["persistenceTtlMs"]||null===e["persistenceTtlMs"]||!(e["persistenceTtlMs"]<=0)||(Oi.error("If provided, persistenceTtlMs must be a positive number. Provided value:",e["persistenceTtlMs"]),!1))},Od.prototype.loadFlagsFromStorage=function(e){var t=k2.bind(function(){return this.clear().then(function(){return null}).catch(function(){return null})},this);if(this.getPolicy()===Ol.NETWORK_ONLY)return t();var r=this.getTtlMs();return this.idb.init().then(k2.bind(function(){return this.idb.getItem(this.persistedVariantsKey)},this)).then(k2.bind(function(n){if(!n)return Oi.log("No persisted variants found in IndexedDB"),null;if(r&&Date.now()-n["persistedAt"]>=r)return Oi.log("Persisted variants are expiring"),null;if(!e||n["distinctId"]!==e["distinct_id"])return Oi.log("Persisted variants found, but for a different distinct_id so clearing."),t();var i=new Map;return k2.each(n["flagVariants"],function(e,t){i.set(t,{key:e["variant_key"],value:e["variant_value"],experiment_id:e["experiment_id"],is_experiment_active:e["is_experiment_active"],is_qa_tester:e["is_qa_tester"],variant_source:"persistence",persisted_at_in_ms:n["persistedAt"],ttl_in_ms:r})}),Oi.log("Loaded",i.size,"variants from IndexedDB for distinct_id",n["distinctId"]),{flags:i,pendingFirstTimeEvents:n["pendingFirstTimeEvents"]||{},persistedAtMs:n["persistedAt"],ttlMs:r}},this)).catch(k2.bind(function(e){return Oi.error("Failed to load persisted variants from IndexedDB, so clearing",e),t()},this))},Od.prototype.save=function(e,t,r){if(this.getPolicy()===Ol.NETWORK_ONLY)return Promise.resolve();var n={};t.forEach(function(e,t){n[t]={variant_key:e["key"],variant_value:e["value"],experiment_id:e["experiment_id"],is_experiment_active:e["is_experiment_active"],is_qa_tester:e["is_qa_tester"]}});var i={persistedAt:Date.now(),distinctId:e&&e["distinct_id"],context:e,flagVariants:n,pendingFirstTimeEvents:r||{}};return this.idb.init().then(k2.bind(function(){return this.idb.setItem(this.persistedVariantsKey,i)},this)).then(function(){Oi.log("Saved",t.size,"variants to IndexedDB for distinct_id",i["distinctId"])}).catch(function(e){Oi.error("Failed to persist variants to IndexedDB:",e)})},Od.prototype.clear=function(){return this.isGloballyDisabled()?Promise.resolve():this.idb.init().then(k2.bind(function(){return this.idb.removeItem(this.persistedVariantsKey)},this)).then(function(){Oi.log("Cleared persisted variants from IndexedDB")}).catch(function(e){Oi.error("Failed to clear persisted variants from IndexedDB:",e)})};var Of=k8("flags"),Op="flags",Og="context",Om="persistence",Ov={};Ov[Og]={};var Oy=function(e,t){return e+":"+t},Ob=function(e){return e.split(":")[0]},Ow=function(e){return k2.isObject(e)?k2.extend({},e,{variant_source:"fallback"}):{value:e,variant_source:"fallback"}},Ox=function(e){this.fetch=c1["fetch"],this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};function O_(e){return null!=e}Ox.prototype.init=function(){return this.minApisSupported()?(this.flags=null,this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence=new Od(this.getConfig(Om),this.getMpConfig("token"),k2.bind(function(){return this.getMpConfig("disable_persistence")},this)),this.persistenceLoadedPromise=this.persistence.loadFlagsFromStorage(this._buildContext()).then(k2.bind(function(e){e&&(this.flags=e.flags,this.pendingFirstTimeEvents=e.pendingFirstTimeEvents,this._loadedPersistedAtMs=e.persistedAtMs,this._loadedTtlMs=e.ttlMs)},this)),this.persistenceLoadedPromise.then(k2.bind(function(){return this.fetchFlags()},this)).catch(function(){Of.error("Error initializing feature flags")})):void Of.critical("Feature Flags unavailable: missing minimum required APIs")},Ox.prototype._buildContext=function(){return k2.extend({distinct_id:this.getMpProperty("distinct_id"),device_id:this.getMpProperty("$device_id")},this.getConfig(Og))},Ox.prototype.reset=function(){return this.persistence?(this.flags=null,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this.trackedFeatures=new Set,this.fetchPromise=null,this._fetchInProgressStartTime=null,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence.clear().then(k2.bind(function(){return this.fetchFlags()},this)).catch(function(){Of.error("Error during flags reset")})):Promise.resolve()},Ox.prototype.getFullConfig=function(){var e=this.getMpConfig(Op);return e?k2.isObject(e)?k2.extend({},Ov,e):Ov:{}},Ox.prototype.getConfig=function(e){return this.getFullConfig()[e]},Ox.prototype.isSystemEnabled=function(){return!!this.getMpConfig(Op)},Ox.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return Of.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(Op);k2.isObject(r)||(r={});var n=t&&t["replace"]?{}:this.getConfig(Og);r[Og]=k2.extend({},n,e);var i={};return i[Op]=r,this.setMpConfig(i),this.fetchFlags().catch(function(){Of.error("Error fetching flags during updateContext")})},Ox.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Of.error("Feature Flags not enabled"),!!this.flags},Ox.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this._buildContext(),t=e["distinct_id"],r=Sd();Of.log("Fetching flags for distinct ID: "+t);var n=new URLSearchParams;n.set("context",JSON.stringify(e)),n.set("token",this.getMpConfig("token")),n.set("mp_lib","web"),n.set("$lib_version",c4.LIB_VERSION);var i=this.getFullApiRoute()+"?"+n.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(c1,i,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then((function(e){return this.markFetchComplete(),e.json()}).bind(this)).then((function(t){var n=t["flags"];if(!n)throw Error("No flags in API response");var i=new Map,o={};k2.each(n,function(e,t){var r=!1,n=t+":";if(k2.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(n)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&i.set(t,o)}else i.set(t,{key:e["variant_key"],value:e["variant_value"],experiment_id:e["experiment_id"],is_experiment_active:e["is_experiment_active"],is_qa_tester:e["is_qa_tester"],variant_source:"network"})},this);var s=t["pending_first_time_events"];s&&s.length>0&&k2.each(s,function(e){var t=e["flag_key"],r=Oy(t,e["first_time_event_hash"]);this.activatedFirstTimeEvents[r]||(o[r]={flag_key:t,flag_id:e["flag_id"],project_id:e["project_id"],first_time_event_hash:e["first_time_event_hash"],event_name:e["event_name"],property_filters:e["property_filters"],pending_variant:e["pending_variant"]})},this),this.activatedFirstTimeEvents&&k2.each(this.activatedFirstTimeEvents,function(e,t){var r=Ob(t);e&&!i.has(r)&&this.flags&&this.flags.has(r)&&i.set(r,this.flags.get(r))},this),this.flags=i,this.trackedFeatures=new Set,this.pendingFirstTimeEvents=o,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this._traceparent=r,this._loadTargetingIfNeeded(),this.persistence.save(e,this.flags,this.pendingFirstTimeEvents)}).bind(this)).catch((function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),Of.error(e),e}).bind(this)),this.fetchPromise},Ox.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(Of.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},Ox.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):Of.error("Fetch in progress started time not set, cannot mark fetch complete")},Ox.prototype._loadTargetingIfNeeded=function(){var e=!1;k2.each(this.pendingFirstTimeEvents,function(t){t["property_filters"]&&!k2.isEmptyObject(t["property_filters"])&&(e=!0)}),e&&this.getTargeting().then(function(){Of.log("targeting loaded for property filter evaluation")})},Ox.prototype.getTargeting=function(){return On(this.loadExtraBundle.bind(this),this.targetingSrc).catch((function(e){Of.error("Failed to load targeting: "+e)}).bind(this))},Ox.prototype.checkFirstTimeEvents=function(e,t){!this.pendingFirstTimeEvents||k2.isEmptyObject(this.pendingFirstTimeEvents)||(c1[c5]&&k2.isFunction(c1[c5].then)?c1[c5].then((function(r){this._processFirstTimeEventCheck(e,t,r)}).bind(this)).catch((function(){this._processFirstTimeEventCheck(e,t,null)}).bind(this)):this._processFirstTimeEventCheck(e,t,null))},Ox.prototype._processFirstTimeEventCheck=function(e,t,r){k2.each(this.pendingFirstTimeEvents,function(n,i){if(!this.activatedFirstTimeEvents[i]){var o=n["flag_key"],s;if(!r&&n["property_filters"]&&!k2.isEmptyObject(n["property_filters"]))return void Of.warn('Skipping event check for "'+o+'" - property filters require targeting library');if(r){var a={event_name:n["event_name"],property_filters:n["property_filters"]};s=r["eventMatchesCriteria"](e,t,a)}else s={matches:e===n["event_name"],error:null};if(s.error)return void Of.error('Error checking first-time event for flag "'+o+'": '+s.error);if(s.matches){Of.log('First-time event matched for flag "'+o+'": '+e);var c={key:n["pending_variant"]["variant_key"],value:n["pending_variant"]["variant_value"],experiment_id:n["pending_variant"]["experiment_id"],is_experiment_active:n["pending_variant"]["is_experiment_active"]};this.flags.set(o,c),this.trackedFeatures.delete(o),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n["flag_id"],n["project_id"],n["first_time_event_hash"])}}},this)},Ox.prototype.getFirstTimeEventApiRoute=function(e){var t=this.getFullApiRoute().replace(/\/$/,"");return t+"/"+e+"/first-time-events"},Ox.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=Sd(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",c4.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString(),a={distinct_id:n,project_id:t,first_time_event_hash:r};Of.log("Recording first-time event for flag: "+e),this.fetch.call(c1,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify(a)}).catch(function(t){Of.error("Failed to record first-time event for flag "+e+": "+t)})},Ox.prototype.getVariant=function(e,t){if(!this.persistenceLoadedPromise)return new Promise(function(e){Of.critical("Feature Flags not initialized"),e(Ow(t))});var r=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(k2.bind(function(){if(r===Ol.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getVariantSync(e,t):this.fetchPromise?this.fetchPromise.then(k2.bind(function(){return this.getVariantSync(e,t)},this)).catch(function(e){return Of.error(e),Ow(t)}):Ow(t);var n=k2.bind(function(){return this.getVariantSync(e,t)},this);return this.fetchPromise?this.fetchPromise.then(n).catch(n):Ow(t)},this))},Ox.prototype._loadedPersistenceIsStale=function(){return!!this._loadedPersistedAtMs&&!!this._loadedTtlMs&&Date.now()-this._loadedPersistedAtMs>=this._loadedTtlMs},Ox.prototype.getVariantSync=function(e,t){if(this._loadedPersistenceIsStale())return Of.log('Loaded persisted variants are past TTL so returning fallback for "'+e+'"'),Ow(t);if(!this.areFlagsReady())return Of.log("Flags not loaded yet"),Ow(t);var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(Of.log('No flag found: "'+e+'"'),Ow(t))},Ox.prototype.getAllVariants=function(){if(!this.persistenceLoadedPromise)return Of.critical("Feature Flags not initialized"),Promise.resolve(new Map);var e=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(k2.bind(function(){if(e===Ol.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getAllVariantsSync():this.fetchPromise?this.fetchPromise.then(k2.bind(function(){return this.getAllVariantsSync()},this)).catch(function(e){return Of.error(e),new Map}):new Map;var t=k2.bind(this.getAllVariantsSync,this);return this.fetchPromise?this.fetchPromise.then(t).catch(t):new Map},this))},Ox.prototype.getAllVariantsSync=function(){return this._loadedPersistenceIsStale()?(Of.log("Loaded persisted variants are past TTL so returning empty Map"),new Map):this.flags||new Map},Ox.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e["value"]}).catch(function(e){return Of.error(e),t})},Ox.prototype.getFeatureData=function(e,t){return Of.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},Ox.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t})["value"]},Ox.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then((function(){return this.isEnabledSync(e,t)}).bind(this)).catch(function(e){return Of.error(e),t})},Ox.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(Of.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},Ox.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t["key"],$experiment_type:"feature_flag","Variant fetch start time":O_(this._fetchStartTime)?new Date(this._fetchStartTime).toISOString():null,"Variant fetch complete time":O_(this._fetchCompleteTime)?new Date(this._fetchCompleteTime).toISOString():null,"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};O_(t["experiment_id"])&&(r["$experiment_id"]=t["experiment_id"]),O_(t["is_experiment_active"])&&(r["$is_experiment_active"]=t["is_experiment_active"]),O_(t["is_qa_tester"])&&(r["$is_qa_tester"]=t["is_qa_tester"]),O_(t["variant_source"])&&(r["$variant_source"]=t["variant_source"]),O_(t["persisted_at_in_ms"])&&(r["$persisted_at_in_ms"]=t["persisted_at_in_ms"]),O_(t["ttl_in_ms"])&&(r["$ttl_in_ms"]=t["ttl_in_ms"]),this.track("$experiment_started",r)}},Ox.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},Ox.prototype.minApisSupported=function(){return!!this.fetch&&"u">typeof Promise&&"u">typeof Map&&"u">typeof Set},k3(Ox),Ox.prototype["are_flags_ready"]=Ox.prototype.areFlagsReady,Ox.prototype["get_variant"]=Ox.prototype.getVariant,Ox.prototype["get_variant_sync"]=Ox.prototype.getVariantSync,Ox.prototype["get_all_variants"]=Ox.prototype.getAllVariants,Ox.prototype["get_all_variants_sync"]=Ox.prototype.getAllVariantsSync,Ox.prototype["get_variant_value"]=Ox.prototype.getVariantValue,Ox.prototype["get_variant_value_sync"]=Ox.prototype.getVariantValueSync,Ox.prototype["is_enabled"]=Ox.prototype.isEnabled,Ox.prototype["is_enabled_sync"]=Ox.prototype.isEnabledSync,Ox.prototype["load_flags"]=Ox.prototype.loadFlags,Ox.prototype["update_context"]=Ox.prototype.updateContext,Ox.prototype["when_ready"]=Ox.prototype.whenReady,Ox.prototype["get_feature_data"]=Ox.prototype.getFeatureData,Ox.prototype["getTargeting"]=Ox.prototype.getTargeting;var Ok=k8("recorder"),OS="mp_iframe_handshake_request",OC="mp_iframe_handshake_response",OE=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};OE.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return k4.log("Load recorder check skipped due to disable_persistence config"),kD.resolve(!1);var e=new S_(Sk,SC,SE),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(SZ(e[r])||e[r]["tabId"]===t)return!0;return!1}).catch(k2.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},OE.prototype.checkAndStartSessionRecording=function(e,t){if(!c1["MutationObserver"])return k4.critical("Browser does not support MutationObserver; skipping session recording"),kD.resolve();var r=k2.bind(function(e){return new kD(k2.bind(function(t){var r=k6(k2.bind(function(){this._recorder=this._recorder||new c1[c8](this.mixpanelInstance),this._recorder["resumeRecording"](e),t()},this));if(k2.isUndefined(c1[c8])){var n=this.recorderSrc||this.libBasePath+c6;this.loadExtraBundle(n,r)}else r()},this))},this),n=S0(this.getMpConfig("record_allowed_iframe_origins"),Ok),i=n.length>0;if(i&&(this._setupParentFrameListener(n),c1.parent!==c1))return this._setupChildFrameListener(n,r),this._sendParentFrameRequestWithRetry(n),kD.resolve();var o=k2.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,s=o>0&&100*Math.random()<=o;return e||s?r(!0):this.shouldLoadRecorder().then(k2.bind(function(e){return e?r(!1):kD.resolve()},this))},OE.prototype.isRecording=function(){if(!this._recorder||!k2.isFunction(this._recorder["isRecording"]))return!1;try{return this._recorder["isRecording"]()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},OE.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var i=n[e];if(i&&"number"==typeof i["percentage"]){var o=i["percentage"],s=i["property_filters"];if(s&&!k2.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+c3;On(this.loadExtraBundle,a).then((function(r){try{var n=r["eventMatchesCriteria"](e,t,{event_name:e,property_filters:s});n["matches"]&&this.checkAndStartSessionRecording(!1,o)}catch(e){k4.critical("Could not parse recording event trigger properties logic:",e)}}).bind(this)).catch(function(e){k4.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,o)}}},OE.prototype.stopSessionRecording=function(){return this._recorder?this._recorder["stopRecording"]():kD.resolve()},OE.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder["pauseRecording"]():kD.resolve()},OE.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder["resumeRecording"]():kD.resolve()},OE.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},OE.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e["$mp_replay_id"]=t),e},OE.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();if(t){var r=k2.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")});e="https://mixpanel.com/projects/replay-redirect?"+r}return e},OE.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder["replayId"]),e||null},OE.prototype.getRecorder=function(){return this._recorder},OE.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(n){if(-1!==e.indexOf(n.origin)){var i=n.data;i&&i["type"]===OC&&i["token"]===r.getMpConfig("token")&&i["replayId"]&&(r._parentReplayId=i["replayId"],i["distinctId"]&&r.mixpanelInstance["identify"](i["distinctId"]),r._parentFrameRetryActive=!1,c1.removeEventListener("message",r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},c1.addEventListener("message",this._childFrameMessageHandler)}},OE.prototype._sendParentFrameRequest=function(e){var t={};t["type"]=OS,t["token"]=this.getMpConfig("token");for(var r=0;r<e.length;r++)try{c1.parent.postMessage(t,e[r])}catch(e){}},OE.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,r=10,n=0,i=50;function o(){setTimeout(function(){!t._parentFrameRetryActive||t._parentReplayId||++n>=r||(t._sendParentFrameRequest(e),i*=2,o())},i)}this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e),o()},OE.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(r){if(-1!==e.indexOf(r.origin)){var n=r.data;if(n&&n["type"]===OS&&n["token"]===t.getMpConfig("token")){var i=t.getSessionReplayId();if(i){var o={};o["type"]=OC,o["token"]=t.getMpConfig("token"),o["replayId"]=i,o["distinctId"]=t.getDistinctId(),r.source.postMessage(o,r.origin)}}}},c1.addEventListener("message",this._parentFrameMessageHandler)}},k3(OE);var OO=function(){};OO.prototype.create_properties=function(){},OO.prototype.event_handler=function(){},OO.prototype.after_track_handler=function(){},OO.prototype.init=function(e){return this.mp=e,this},OO.prototype.track=function(e,t,r,n){var i=this,o=k2.dom_query(e);return 0===o.length?void k4.error("The DOM query ("+e+") returned 0 elements"):(k2.each(o,function(e){k2.register_event(e,this.override_event,function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))})},this),!0)},OO.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},OO.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):k2.extend({},e)};var OI=function(){this.override_event="click"};k2.inherit(OI,OO),OI.prototype.create_properties=function(e,t){var r=OI.superclass.create_properties.apply(this,arguments);return t.href&&(r["url"]=t.href),r},OI.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},OI.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var OT=function(){this.override_event="submit"};k2.inherit(OT,OO),OT.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},OT.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var OA="$set",OM="$set_once",OR="$unset",OP="$add",OL="$append",OD="$union",ON="$remove",OB="$delete",OF={set_action:function(e,t){var r={},n={};return k2.isObject(e)?k2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[OA]=n,r},unset_action:function(e){var t={},r=[];return k2.isArray(e)||(e=[e]),k2.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[OR]=r,t},set_once_action:function(e,t){var r={},n={};return k2.isObject(e)?k2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[OM]=n,r},union_action:function(e,t){var r={},n={};return k2.isObject(e)?k2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=k2.isArray(e)?e:[e])},this):n[e]=k2.isArray(t)?t:[t],r[OD]=n,r},append_action:function(e,t){var r={},n={};return k2.isObject(e)?k2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[OL]=n,r},remove_action:function(e,t){var r={},n={};return k2.isObject(e)?k2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[ON]=n,r},delete_action:function(){var e={};return e[OB]="",e}},Oj=function(){};k2.extend(Oj.prototype,OF),Oj.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},Oj.prototype.set=SL(function(e,t,r){var n=this.set_action(e,t);return k2.isObject(e)&&(r=t),this._send_request(n,r)}),Oj.prototype.set_once=SL(function(e,t,r){var n=this.set_once_action(e,t);return k2.isObject(e)&&(r=t),this._send_request(n,r)}),Oj.prototype.unset=SL(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Oj.prototype.union=SL(function(e,t,r){k2.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Oj.prototype["delete"]=SL(function(e){var t=this.delete_action();return this._send_request(t,e)}),Oj.prototype.remove=SL(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),Oj.prototype._send_request=function(e,t){e["$group_key"]=this._group_key,e["$group_id"]=this._group_id,e["$token"]=this._get_config("token");var r=k2.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes")["groups"],batcher:this._mixpanel.request_batchers.groups},t)},Oj.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},Oj.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Oj.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},Oj.prototype["remove"]=Oj.prototype.remove,Oj.prototype["set"]=Oj.prototype.set,Oj.prototype["set_once"]=Oj.prototype.set_once,Oj.prototype["union"]=Oj.prototype.union,Oj.prototype["unset"]=Oj.prototype.unset,Oj.prototype["toString"]=Oj.prototype.toString;var OU=function(){};k2.extend(OU.prototype,OF),OU.prototype._init=function(e){this._mixpanel=e},OU.prototype.set=SP(function(e,t,r){var n=this.set_action(e,t);return k2.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel["persistence"].update_referrer_info(document.referrer),n[OA]=k2.extend({},k2.info.people_properties(),n[OA]),this._send_request(n,r)}),OU.prototype.set_once=SP(function(e,t,r){var n=this.set_once_action(e,t);return k2.isObject(e)&&(r=t),this._send_request(n,r)}),OU.prototype.unset=SP(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),OU.prototype.increment=SP(function(e,t,r){var n={},i={};return k2.isObject(e)?(k2.each(e,function(e,t){if(!this._is_reserved_property(t))if(isNaN(parseFloat(e)))return void k4.error("Invalid increment value passed to mixpanel.people.increment - must be a number");else i[t]=e},this),r=t):(k2.isUndefined(t)&&(t=1),i[e]=t),n[OP]=i,this._send_request(n,r)}),OU.prototype.append=SP(function(e,t,r){k2.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),OU.prototype.remove=SP(function(e,t,r){k2.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),OU.prototype.union=SP(function(e,t,r){k2.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),OU.prototype.track_charge=SP(function(){k4.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),OU.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},OU.prototype.delete_user=function(){if(!this._identify_called())return void k4.error("mixpanel.people.delete_user() requires you to call identify() first");var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},OU.prototype.toString=function(){return this._mixpanel.toString()+".people"},OU.prototype._send_request=function(e,t){e["$token"]=this._get_config("token"),e["$distinct_id"]=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e["$device_id"]=r),n&&(e["$user_id"]=n),i&&(e["$had_persisted_distinct_id"]=i);var o=k2.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes")["engage"],batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),k2.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),k2.truncate(o,255))},OU.prototype._get_config=function(e){return this._mixpanel.get_config(e)},OU.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},OU.prototype._enqueue=function(e){OA in e?this._mixpanel["persistence"]._add_to_people_queue(OA,e):OM in e?this._mixpanel["persistence"]._add_to_people_queue(OM,e):OR in e?this._mixpanel["persistence"]._add_to_people_queue(OR,e):OP in e?this._mixpanel["persistence"]._add_to_people_queue(OP,e):OL in e?this._mixpanel["persistence"]._add_to_people_queue(OL,e):ON in e?this._mixpanel["persistence"]._add_to_people_queue(ON,e):OD in e?this._mixpanel["persistence"]._add_to_people_queue(OD,e):k4.error("Invalid call to _enqueue():",e)},OU.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=k2.extend({},this._mixpanel["persistence"].load_queue(e)),s=o;!k2.isUndefined(o)&&k2.isObject(o)&&!k2.isEmptyObject(o)&&(i._mixpanel["persistence"]._pop_from_people_queue(e,o),i._mixpanel["persistence"].save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel["persistence"]._add_to_people_queue(e,o),k2.isUndefined(r)||r(t,n)}))},OU.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(OA,this.set,e),this._flush_one_queue(OM,this.set_once,n),this._flush_one_queue(OR,this.unset,o,function(e){return k2.keys(e)}),this._flush_one_queue(OP,this.increment,t),this._flush_one_queue(OD,this.union,i);var c=this._mixpanel["persistence"].load_queue(OL);if(!k2.isUndefined(c)&&k2.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(OL,u),k2.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)u=(c=this._mixpanel["persistence"].load_queue(OL)).pop(),a._mixpanel["persistence"].save(),k2.isEmptyObject(u)||a.append(u,l);var d=this._mixpanel["persistence"].load_queue(ON);if(!k2.isUndefined(d)&&k2.isArray(d)&&d.length)for(var f,p=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(ON,f),k2.isUndefined(s)||s(e,t)},g=d.length-1;g>=0;g--)f=(d=this._mixpanel["persistence"].load_queue(ON)).pop(),a._mixpanel["persistence"].save(),k2.isEmptyObject(f)||a.remove(f,p)},OU.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},OU.prototype["set"]=OU.prototype.set,OU.prototype["set_once"]=OU.prototype.set_once,OU.prototype["unset"]=OU.prototype.unset,OU.prototype["increment"]=OU.prototype.increment,OU.prototype["append"]=OU.prototype.append,OU.prototype["remove"]=OU.prototype.remove,OU.prototype["union"]=OU.prototype.union,OU.prototype["track_charge"]=OU.prototype.track_charge,OU.prototype["clear_charges"]=OU.prototype.clear_charges,OU.prototype["delete_user"]=OU.prototype.delete_user,OU.prototype["toString"]=OU.prototype.toString;var Oz="__mps",Oq="__mpso",OH="__mpus",O$="__mpa",OW="__mpap",OV="__mpr",OY="__mpu",OX="$people_distinct_id",OG="__alias",OJ="__timers",OK=[Oz,Oq,OH,O$,OW,OV,OY,OX,OG,OJ],OZ=function(e){this["props"]={},this.campaign_params_saved=!1,e["persistence_name"]?this.name="mp_"+e["persistence_name"]:this.name="mp_"+e["token"]+"_mixpanel";var t=e["persistence"];"cookie"!==t&&"localStorage"!==t&&(k4.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e["persistence"]="cookie"),"localStorage"===t&&k2.localStorage.is_supported()?this.storage=k2.localStorage:this.storage=k2.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()},OQ;OZ.prototype.properties=function(){var e={};return this.load(),k2.each(this["props"],function(t,r){k2.include(OK,r)||(e[r]=t)}),e},OZ.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this["props"]=k2.extend({},e))}},OZ.prototype.upgrade=function(){var e,t;this.storage===k2.localStorage?(e=k2.cookie.parse(this.name),k2.cookie.remove(this.name),k2.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===k2.cookie&&(t=k2.localStorage.parse(this.name),k2.localStorage.remove(this.name),t&&this.register_once(t))},OZ.prototype.save=function(){this.disabled||this.storage.set(this.name,Sb(this["props"]),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},OZ.prototype.load_prop=function(e){return this.load(),this["props"][e]},OZ.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},OZ.prototype.clear=function(){this.remove(),this["props"]={}},OZ.prototype.register_once=function(e,t,r){return!!k2.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),k2.each(e,function(e,r){this["props"].hasOwnProperty(r)&&this["props"][r]!==t||(this["props"][r]=e)},this),this.save(),!0)},OZ.prototype.register=function(e,t){return!!k2.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),k2.extend(this["props"],e),this.save(),!0)},OZ.prototype.unregister=function(e){this.load(),e in this["props"]&&(delete this["props"][e],this.save())},OZ.prototype.update_search_keyword=function(e){this.register(k2.info.searchInfo(e))},OZ.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:k2.info.referringDomain(e)||"$direct"},"")},OZ.prototype.get_referrer_info=function(){return k2.strip_empty_properties({$initial_referrer:this["props"]["$initial_referrer"],$initial_referring_domain:this["props"]["$initial_referring_domain"]})},OZ.prototype.update_config=function(e){this.default_expiry=this.expire_days=e["cookie_expiration"],this.set_disabled(e["disable_persistence"]),this.set_cookie_domain(e["cookie_domain"]),this.set_cross_site(e["cross_site_cookie"]),this.set_cross_subdomain(e["cross_subdomain_cookie"]),this.set_secure(e["secure_cookie"])},OZ.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},OZ.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},OZ.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},OZ.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},OZ.prototype.get_cross_subdomain=function(){return this.cross_subdomain},OZ.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},OZ.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(OA),o=this._get_or_create_queue(OM),s=this._get_or_create_queue(OR),a=this._get_or_create_queue(OP),c=this._get_or_create_queue(OD),u=this._get_or_create_queue(ON,[]),l=this._get_or_create_queue(OL,[]);r===Oz?(k2.extend(i,n),this._pop_from_people_queue(OP,n),this._pop_from_people_queue(OD,n),this._pop_from_people_queue(OR,n)):r===Oq?(k2.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(OR,n)):r===OH?k2.each(n,function(e){k2.each([i,o,a,c],function(t){e in t&&delete t[e]}),k2.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===O$?(k2.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(OR,n)):r===OY?(k2.each(n,function(e,t){k2.isArray(e)&&(t in c||(c[t]=[]),k2.each(e,function(e){k2.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(OR,n)):r===OV?(u.push(n),this._pop_from_people_queue(OL,n)):r===OW&&(l.push(n),this._pop_from_people_queue(OR,n)),k4.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),k4.log(t),this.save()},OZ.prototype._pop_from_people_queue=function(e,t){var r=this["props"][this._get_queue_key(e)];k2.isUndefined(r)||k2.each(t,function(t,n){e===OL||e===ON?k2.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},OZ.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},OZ.prototype._get_queue_key=function(e){return e===OA?Oz:e===OM?Oq:e===OR?OH:e===OP?O$:e===OL?OW:e===ON?OV:e===OD?OY:void k4.error("Invalid queue:",e)},OZ.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=k2.isUndefined(t)?{}:t,this["props"][r]||(this["props"][r]=t)},OZ.prototype.set_event_timer=function(e,t){var r=this.load_prop(OJ)||{};r[e]=t,this["props"][OJ]=r,this.save()},OZ.prototype.remove_event_timer=function(e){var t=this.load_prop(OJ)||{},r=t[e];return k2.isUndefined(r)||(delete this["props"][OJ][e],this.save()),r};var O0=function(e,t){throw Error(e+" not available in this build.")},O1,O2=0,O4=1,O5="mixpanel",O8="base64",O6="json",O3="$device:",O7="strict",O9="fallback",Ie="disabled",It=c1.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Ir=!It&&-1===kG.indexOf("MSIE")&&-1===kG.indexOf("Mozilla"),In=null;kW["sendBeacon"]&&(In=function(){return kW["sendBeacon"].apply(kW,arguments)});var Ii={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},Io={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:Ii,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:O8,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Sv,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Sv,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:kN,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:Ie},Is=!1,Ia=function(){},Ic=function(e,t,r){var n,i=r===O5?O1:O1[r];if(i&&OQ===O2)n=i;else{if(i&&!k2.isArray(i))return void k4.error("You have already initialized "+r);n=new Ia}if(n._cached_groups={},n._init(e,t,r),n["people"]=new OU,n["people"]._init(n),!n.get_config("skip_first_touch_marketing")){var o=k2.info.campaignParams(null),s={},a=!1;k2.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n["people"].set_once(s)}c4.DEBUG=c4.DEBUG||n.get_config("debug");var c=OQ===O2?"module":"snippet";return c1.dispatchEvent(new c1.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:c,token:e,name:r,info:k2.info}})),!k2.isUndefined(i)&&k2.isArray(i)&&(n._execute_array.call(n["people"],i["people"]),n._execute_array(i)),n};Ia.prototype.init=function(e,t,r){if(k2.isUndefined(r))return void this.report_error("You must name your new library: init(token, config, name)");if(r===O5)return void this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");var n=Ic(e,t,r);return O1[r]=n,n._loaded(),n},Ia.prototype._init=function(e,t,r){t=t||{},this["__loaded"]=!0,this["config"]={};var n={};if(!("api_payload_format"in t)){var i=t["api_host"]||Io["api_host"];i.match(/\.mixpanel\.com/)&&(n["api_payload_format"]=O6)}if(this.hooks={},this.set_config(k2.extend({},Io,n,t,{name:r,token:e,callback_fn:(r===O5?r:O5+"."+r)+"._jsc"})),this.recorderManager=new OE({mixpanelInstance:this,getConfigFunc:k2.bind(this.get_config,this),setConfigFunc:k2.bind(this.set_config,this),getTabIdFunc:k2.bind(this.get_tab_id,this),reportErrorFunc:k2.bind(this.report_error,this),getDistinctIdFunc:k2.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:O0}),this["_jsc"]=Sv,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this._remote_settings_strict_disabled=!1,this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(k2.localStorage.is_supported(!0)&&It){if(this.init_batchers(),In&&c1.addEventListener){var o=k2.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);c1.addEventListener("pagehide",function(e){e["persisted"]&&o()}),c1.addEventListener("visibilitychange",function(){"hidden"===kV["visibilityState"]&&o()})}}else this._batch_requests=!1,k4.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),k2.each(this.get_batcher_configs(),function(e){k4.log("Clearing batch queue "+e.queue_key),k2.localStorage.remove(e.queue_key)});this["persistence"]=this["cookie"]=new OZ(this["config"]),this.unpersisted_superprops={},this._gdpr_init();var s=k2.UUID();this.get_distinct_id()||this.register_once({distinct_id:O3+s,$device_id:s},""),this.flags=new Ox({getFullApiRoute:k2.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes")["flags"]},this),getConfigFunc:k2.bind(this.get_config,this),setConfigFunc:k2.bind(this.set_config,this),getPropertyFunc:k2.bind(this.get_property,this),trackingFunc:k2.bind(this.track,this),loadExtraBundle:O0,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+c3}),this.flags.init(),this["flags"]=this.flags,this._init_tab_id();var a=this.get_config("remote_settings_mode");a===O7||a===O9?this.__session_recording_init_promise=this._fetch_remote_settings(a).then(k2.bind(function(){return this._check_and_start_session_recording()},this)):this.__session_recording_init_promise=this._check_and_start_session_recording(),this.autocapture=new Or(this),this.autocapture.init()},Ia.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))k4.log("Tab ID initialization skipped due to disable_persistence config");else if(k2.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;(k2.sessionStorage.get(r)||!k2.sessionStorage.get(t))&&k2.sessionStorage.set(t,"$tab-"+k2.UUID()),k2.sessionStorage.set(r,"1"),this.tab_id=k2.sessionStorage.get(t),c1.addEventListener("beforeunload",function(){k2.sessionStorage.remove(r)})}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},Ia.prototype.get_tab_id=function(){return this.tab_id||null},Ia.prototype._check_and_start_session_recording=SR(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),Ia.prototype._start_recording_on_event=k6(function(e,t){this.__session_recording_init_promise&&this.__session_recording_init_promise.then(k2.bind(function(){if(!this._remote_settings_strict_disabled)return this.recorderManager.startRecordingOnEvent(e,t)},this))}),Ia.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},Ia.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},Ia.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},Ia.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},Ia.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},Ia.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},Ia.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},Ia.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},Ia.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},Ia.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this["people"].set_once(this["persistence"].get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=k2.info.campaignParams(null);k2.each(e,(function(e,t){this.unregister(t)}).bind(this))}},Ia.prototype._set_default_superprops=function(){this["persistence"].update_search_keyword(kV.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(k2.info.campaignParams()),this.get_config("save_referrer")&&this["persistence"].update_referrer_info(kV.referrer)},Ia.prototype._dom_loaded=function(){k2.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||k2.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},Ia.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Is)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},Ia.prototype._prepare_callback=function(e,t){if(k2.isUndefined(e))return null;if(It){var r=function(r){e(r,t)};return r}var n=this["_jsc"],i=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+i+"]";return n[i]=function(r){delete n[i],e(r,t)},o},Ia.prototype._send_request=function(e,t,r,n){var i=!0;if(Ir)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!n&&(k2.isFunction(r)||"string"==typeof r)&&(n=r,r=null),r=k2.extend(o,r||{}),It||(r.method="GET");var a="POST"===r.method,c=In&&a&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t["verbose"]&&(u=!0),this.get_config("test")&&(t["test"]=1),u&&(t["verbose"]=1),this.get_config("img")&&(t["img"]=1),!It&&(n?t["callback"]=n:(u||this.get_config("test"))&&(t["callback"]="(function(){})")),t["ip"]=+!!this.get_config("ip"),t["_"]=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(t["data"]),delete t["data"]),k2.extend(t,this.get_config("api_extra_query_params")),e+="?"+k2.HTTPBuildQuery(t);var l=this;if("img"in t){var h=kV.createElement("img");h.src=e,kV.body.appendChild(h)}else if(c){try{i=In(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(+!!i)}catch(e){l.report_error(e)}}else if(It)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),k2.each(f,function(e,t){d.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==d.timeout){d.timeout=r.timeout_ms;var p=new Date().getTime()}d.withCredentials=!0,d.onreadystatechange=function(){if(4===d.readyState)if(200===d.status){if(n)if(u){var e;try{e=k2.JSONDecode(d.responseText)}catch(t){if(l.report_error(t),!r.ignore_json_errors)return;e=d.responseText}n(e)}else n(Number(d.responseText))}else{var t;if(t=d.timeout&&!d.status&&new Date().getTime()-p>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,l.report_error(t),n)if(u){var i=d["responseHeaders"]||{};n({status:0,httpStatusCode:d["status"],error:t,retryAfter:i["Retry-After"]})}else n(0)}},d.send(s)}catch(e){l.report_error(e),i=!1}else{var g=kV.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=kV.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},Ia.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&(t.set_config({record_sessions_percent:0}),t._remote_settings_strict_disabled=!0)};if(!c1["AbortController"])return k4.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes")["settings"],i={$lib_version:c4.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=k2.HTTPBuildQuery(i),s=n+"?"+o,a=new AbortController,c=setTimeout(function(){a.abort()},500),u={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:a.signal};return c1["fetch"](s,u).then(function(e){if(clearTimeout(c),!e["ok"]){k4.critical("Network response was not ok"),r();return}return e.json()}).then(function(e){if(e&&e["sdk_config"]&&e["sdk_config"]["config"]){var n=e["sdk_config"]["config"],i={};k2.each(n,function(e,t){Io.hasOwnProperty(t)&&(i[t]=e)}),k2.isEmptyObject(i)?(k4.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()}).catch(function(e){clearTimeout(c),k4.critical("Failed to fetch remote settings",e),r()})},Ia.prototype._execute_array=function(e){var t,r=[],n=[],i=[];k2.each(e,function(e){e&&(t=e[0],k2.isArray(t)?i.push(e):"function"==typeof e?e.call(this):k2.isArray(e)&&"alias"===t?r.push(e):k2.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){k2.each(e,function(e){if(k2.isArray(e[0])){var r=t;k2.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},Ia.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},Ia.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},Ia.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=k2.bind(function(e){return new SK(e.queue_key,{libConfig:this["config"],errorReporter:this.get_config("error_reporter"),sendRequestFunc:k2.bind(function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:k2.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:k2.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},Ia.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,k2.each(this.request_batchers,function(e){e.start()}))},Ia.prototype.stop_batch_senders=function(){this._batch_requests=!1,k2.each(this.request_batchers,function(e){e.stop(),e.clear()})},Ia.prototype.push=function(e){this._execute_array([e])},Ia.prototype.enable=function(e){var t,r,n,i;if(void 0===e)this._flags.disable_all_events=!1;else{for(n=0,t={},r=[];n<e.length;n++)t[e[n]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||r.push(this.__disabled_events[i]);this.__disabled_events=r}},Ia.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},Ia.prototype._encode_data_for_request=function(e){var t=Sb(e);return this.get_config("api_payload_format")===O8&&(t=k2.base64Encode(t)),{data:t}},Ia.prototype._track_or_batch=function(e,t){var r=k2.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||Sv;var a=!0,c=k2.bind(function(){return(!s.skip_hooks&&(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r)?(k4.log("MIXPANEL REQUEST:"),k4.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):c()}):a=c(),a&&r},Ia.prototype.track=SR(function(e,t,r,n){var i;if(!(r&&r.skip_hooks)){if(null===(i=this._run_hook("before_track",e,t)))return;e=i[0],t=i[1]}n||"function"!=typeof r||(n=r,r=null),r=r||{};var o=r["transport"];o&&(r.transport=o);var s=r["send_immediately"];if("function"!=typeof n&&(n=Sv),k2.isUndefined(e))return void this.report_error("No event name provided to mixpanel.track");if(this._event_is_disabled(e))return void n(0);(t=k2.extend({},t))["token"]=this.get_config("token");var a=this["persistence"].remove_event_timer(e);if(!k2.isUndefined(a)){var c=new Date().getTime()-a;t["$duration"]=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?k2.info.marketingParams():{};t=k2.extend({},k2.info.properties({mp_loader:this.get_config("mp_loader")}),u,this["persistence"].properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");k2.isArray(l)?k2.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(e,t);var h={event:e,properties:t};return i=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes")["track"],batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}),Ia.prototype.set_group=SR(function(e,t,r){k2.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this["people"].set(e,t,r)}),Ia.prototype.add_group=SR(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this["people"].union(e,t,r)}),Ia.prototype.remove_group=SR(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this["people"].remove(e,t,r)}),Ia.prototype.track_with_groups=SR(function(e,t,r,n){var i=k2.extend({},t||{});return k2.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),Ia.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},Ia.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},Ia.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return(void 0===n||n._group_key!==e||n._group_id!==t)&&((n=new Oj)._init(this,e,t),this._cached_groups[r]=n),n},Ia.prototype.track_pageview=SR(function(e,t){"object"!=typeof e&&(e={}),t=t||{};var r=t["event_name"]||"$mp_web_page_view",n=k2.extend(k2.info.mpPageViewProperties(),k2.info.campaignParams(),k2.info.clickParams()),i=k2.extend({},n,e);return this.is_recording_heatmap_data()&&(i["$captured_for_heatmap"]=!0),this.track(r,i)}),Ia.prototype.track_links=function(){return this._track_dom.call(this,OI,arguments)},Ia.prototype.track_forms=function(){return this._track_dom.call(this,OT,arguments)},Ia.prototype.time_event=function(e){k2.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this["persistence"].set_event_timer(e,new Date().getTime())};var Iu={persistent:!0},Il=function(e){var t;return t=k2.isObject(e)?e:k2.isUndefined(e)?{}:{days:e},k2.extend({},Iu,t)};Ia.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0],t=r[1];var n=Il(t);n["persistent"]?this["persistence"].register(e,n["days"]):k2.extend(this.unpersisted_superprops,e)}},Ia.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1],r=n[2];var i=Il(r);i["persistent"]?this["persistence"].register_once(e,t,i["days"]):(void 0===t&&(t="None"),k2.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},Ia.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],(t=Il(t=r[1]))["persistent"]?this["persistence"].unregister(e):delete this.unpersisted_superprops[e])},Ia.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},Ia.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this._run_hook("before_identify",e);if(null===c)return -1;e=c[0];var u=this.get_distinct_id();if(e&&u!==e){if("string"==typeof e&&0===e.indexOf(O3))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==u&&e!==this.get_property(OG)&&(this.unregister(OG),this.register({distinct_id:e})),this._flags.identify_called=!0,this["people"]._flush(t,r,n,i,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags().catch(function(){k4.error("[flags] Error fetching flags during identify")})},Ia.prototype.reset=function(){this.stop_session_recording(),this["persistence"].clear(),this._flags.identify_called=!1;var e=k2.UUID();this.register_once({distinct_id:O3+e,$device_id:e},""),this._check_and_start_session_recording(),this.flags.reset()},Ia.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},Ia.prototype.alias=function(e,t){if(e===this.get_property(OX))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return(k2.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(OG,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},Ia.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},Ia.prototype.set_config=function(e){if(k2.isObject(e)){k2.extend(this["config"],e);var t=e["batch_size"];t&&k2.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this["config"]["persistence_name"]=this["config"]["cookie_name"]),this.get_config("disable_persistence")||(this["config"]["disable_persistence"]=this["config"]["disable_cookie"]),this["persistence"]&&this["persistence"].update_config(this["config"]),c4.DEBUG=c4.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),k2.isObject(e["hooks"])&&(this.hooks={},k2.each(e["hooks"],function(e,t){if(k2.isFunction(e))this.hooks[t]=[e];else if(k2.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)k2.isFunction(e[r])||k4.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else k4.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}},Ia.prototype.get_config=function(e){return this["config"][e]},Ia.prototype._run_hook=function(e){var t=kz.call(arguments,1);return k2.each(this.hooks[e],function(r){if(null===t)return null;var n=r.apply(this,t);void 0===n?(this.report_error(e+" hook did not return a valid value"),t=null):(k2.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},Ia.prototype.get_property=function(e){return this["persistence"].load_prop([e])},Ia.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},Ia.prototype.toString=function(){var e=this.get_config("name");return e!==O5&&(e=O5+"."+e),e},Ia.prototype._event_is_disabled=function(e){return k2.isBlockedUA(kG)||this._flags.disable_all_events||k2.include(this.__disabled_events,e)},Ia.prototype._gdpr_init=function(){var e="localStorage"===this.get_config("opt_out_tracking_persistence_type");e&&k2.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||k2.cookie.get("mp_optout"))&&(k2.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},Ia.prototype._gdpr_update_persistence=function(e){var t;if(e&&e["clear_persistence"])t=!0;else{if(!e||!e["enable_persistence"])return;t=!1}this.get_config("disable_persistence")||this["persistence"].disabled===t||this["persistence"].set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},Ia.prototype._gdpr_call_func=function(e,t){return t=k2.extend({track:k2.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),k2.localStorage.is_supported()||(t["persistence_type"]="cookie"),e(this.get_config("token"),{track:t["track"],trackEventName:t["track_event_name"],trackProperties:t["track_properties"],persistenceType:t["persistence_type"],persistencePrefix:t["cookie_prefix"],cookieDomain:t["cookie_domain"],cookieExpiration:t["cookie_expiration"],crossSiteCookie:t["cross_site_cookie"],crossSubdomainCookie:t["cross_subdomain_cookie"],secureCookie:t["secure_cookie"],ignoreDnt:t["ignore_dnt"]})},Ia.prototype.opt_in_tracking=function(e){e=k2.extend({enable_persistence:!0},e),this._gdpr_call_func(SI,e),this._gdpr_update_persistence(e)},Ia.prototype.opt_out_tracking=function(e){(e=k2.extend({clear_persistence:!0,delete_user:!0},e))["delete_user"]&&this["people"]&&this["people"]._identify_called()&&(this["people"].delete_user(),this["people"].clear_charges()),this._gdpr_call_func(ST,e),this._gdpr_update_persistence(e)},Ia.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(SA,e)},Ia.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(SM,e)},Ia.prototype.clear_opt_in_out_tracking=function(e){e=k2.extend({enable_persistence:!0},e),this._gdpr_call_func(SD,e),this._gdpr_update_persistence(e)},Ia.prototype.report_error=function(e,t){k4.error.apply(k4.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){k4.error(e)}},Ia.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},Ia.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):k4.log("remove_hook failed. Matching hook was not found"))},Ia.prototype["init"]=Ia.prototype.init,Ia.prototype["reset"]=Ia.prototype.reset,Ia.prototype["enable"]=Ia.prototype.enable,Ia.prototype["disable"]=Ia.prototype.disable,Ia.prototype["time_event"]=Ia.prototype.time_event,Ia.prototype["track"]=Ia.prototype.track,Ia.prototype["track_links"]=Ia.prototype.track_links,Ia.prototype["track_forms"]=Ia.prototype.track_forms,Ia.prototype["track_pageview"]=Ia.prototype.track_pageview,Ia.prototype["register"]=Ia.prototype.register,Ia.prototype["register_once"]=Ia.prototype.register_once,Ia.prototype["unregister"]=Ia.prototype.unregister,Ia.prototype["identify"]=Ia.prototype.identify,Ia.prototype["alias"]=Ia.prototype.alias,Ia.prototype["name_tag"]=Ia.prototype.name_tag,Ia.prototype["set_config"]=Ia.prototype.set_config,Ia.prototype["get_config"]=Ia.prototype.get_config,Ia.prototype["get_api_host"]=Ia.prototype.get_api_host,Ia.prototype["get_property"]=Ia.prototype.get_property,Ia.prototype["get_distinct_id"]=Ia.prototype.get_distinct_id,Ia.prototype["toString"]=Ia.prototype.toString,Ia.prototype["opt_out_tracking"]=Ia.prototype.opt_out_tracking,Ia.prototype["opt_in_tracking"]=Ia.prototype.opt_in_tracking,Ia.prototype["has_opted_out_tracking"]=Ia.prototype.has_opted_out_tracking,Ia.prototype["has_opted_in_tracking"]=Ia.prototype.has_opted_in_tracking,Ia.prototype["clear_opt_in_out_tracking"]=Ia.prototype.clear_opt_in_out_tracking,Ia.prototype["get_group"]=Ia.prototype.get_group,Ia.prototype["set_group"]=Ia.prototype.set_group,Ia.prototype["add_group"]=Ia.prototype.add_group,Ia.prototype["remove_group"]=Ia.prototype.remove_group,Ia.prototype["add_hook"]=Ia.prototype.add_hook,Ia.prototype["remove_hook"]=Ia.prototype.remove_hook,Ia.prototype["track_with_groups"]=Ia.prototype.track_with_groups,Ia.prototype["start_batch_senders"]=Ia.prototype.start_batch_senders,Ia.prototype["stop_batch_senders"]=Ia.prototype.stop_batch_senders,Ia.prototype["start_session_recording"]=Ia.prototype.start_session_recording,Ia.prototype["stop_session_recording"]=Ia.prototype.stop_session_recording,Ia.prototype["pause_session_recording"]=Ia.prototype.pause_session_recording,Ia.prototype["resume_session_recording"]=Ia.prototype.resume_session_recording,Ia.prototype["get_session_recording_properties"]=Ia.prototype.get_session_recording_properties,Ia.prototype["get_session_replay_url"]=Ia.prototype.get_session_replay_url,Ia.prototype["get_tab_id"]=Ia.prototype.get_tab_id,Ia.prototype["DEFAULT_API_ROUTES"]=Ii,Ia.prototype["__get_recorder"]=Ia.prototype.__get_recorder,Ia.prototype["__get_recording_init_promise"]=Ia.prototype.__get_recording_init_promise,OZ.prototype["properties"]=OZ.prototype.properties,OZ.prototype["update_search_keyword"]=OZ.prototype.update_search_keyword,OZ.prototype["update_referrer_info"]=OZ.prototype.update_referrer_info,OZ.prototype["get_cross_subdomain"]=OZ.prototype.get_cross_subdomain,OZ.prototype["clear"]=OZ.prototype.clear;var Ih={},Id=function(){k2.each(Ih,function(e,t){t!==O5&&(O1[t]=e)}),O1["_"]=k2},If=function(){O1["init"]=function(e,t,r){if(r)return O1[r]||(O1[r]=Ih[r]=Ic(e,t,r),O1[r]._loaded()),O1[r];var n=O1;Ih[O5]?n=Ih[O5]:e&&((n=Ic(e,t,O5))._loaded(),Ih[O5]=n),O1=n,OQ===O4&&(c1[O5]=O1),Id()}},Ip=function(){function e(){e.done||(e.done=!0,Is=!0,Ir=!1,k2.each(Ih,function(e){e._dom_loaded()}))}function t(){try{kV.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}if(kV.addEventListener)"complete"===kV.readyState?e():kV.addEventListener("DOMContentLoaded",e,!1);else if(kV.attachEvent){kV.attachEvent("onreadystatechange",e);var r=!1;try{r=null===c1.frameElement}catch(e){}kV.documentElement.doScroll&&r&&t()}k2.register_event(c1,"load",e,!0)};function Ig(e){return O0=e,OQ=O2,O1=new Ia,If(),O1["init"](),Ip(),O1}function Im(e,t){t()}var Iv=Ig(Im);let Iy="@mixpanelIdentificationData",Ib=e=>{let t={};return e?.name?(t["$name"]=e?.name,delete e.name):(t["$first_name"]=e?.first_name,t["$last_name"]=e?.last_name,delete e?.first_name,delete e?.last_name),e?.email&&(t["$email"]=e?.email,delete e?.email),e?.phone&&(t["$phone"]=e?.phone,delete e?.phone),t=Object.assign({},t,e)},Iw={};Iw.setMixpanelIdentificationData=e=>{iC(Iy,e)},Iw.getMixpanelIdentificationData=()=>iE(Iy),Iw.hasMixpanelIdentificationData=()=>!!Iw.getMixpanelIdentificationData(),Iw.init=(e,t)=>{Iv.init(e,Object.assign({},t,{ignore_dnt:!0}))},Iw.initIdentify=(e,t,r,n)=>{let i=r||Iw.getMixpanelIdentificationData(),o=Ib(i);if("production"===e&&o){Iw.init(t,n);let e=window.location.hostname,r=`${e}`;o?.company&&(r+=`.${o?.company?.name}`),o?.employee_code&&(r+=`.${o?.employee_code}`),(o?.name||o?.first_name&&o?.last_name)&&(r+=o?.name?`.${o.name}`:`.${o?.first_name}.${o?.last_name}`),Iv.identify(r),Iv.people.set({...o,company_domain:e})}},Iw.trackEvent=(e,t,r)=>{"production"===e&&Iv.track(t,r)};var Ix=Iw,I_={}}(),n}()});
|