@mapxus/mapxus-map-jp 8.3.0 → 8.5.0
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/dist/index.css +23 -6
- package/dist/index.umd.js +2 -1
- package/dist/index.umd.js.LICENSE.txt +14 -0
- package/es/index.d.ts +93 -20
- package/es/index.mjs +2 -1
- package/es/index.mjs.LICENSE.txt +14 -0
- package/es/utils/index.mjs +2 -1
- package/es/utils/index.mjs.LICENSE.txt +14 -0
- package/lib/index.cjs +2 -1
- package/lib/index.cjs.LICENSE.txt +14 -0
- package/lib/utils/index.cjs +2 -1
- package/lib/utils/index.cjs.LICENSE.txt +14 -0
- package/package.json +13 -5
package/es/utils/index.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
var e={7:e=>{var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}h(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&h(e,"error",t,n)}(e,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var i,o,a,u;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=s(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):v(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function h(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return s(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var c=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw c.context=a,c}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)r(s,this,t);else{var u=s.length,l=v(s,u);for(n=0;n<u;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return c(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},o.prototype.listenerCount=m,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},311:(e,t,n)=>{n.d(t,{o:()=>c});var r=n(792),i=n(531),o=n(916),a=n(463);class c{static _instance;_tokenManager=a.t.getInstance();static getInstance(){return c._instance||(c._instance=new c),c._instance}get version(){return r.xv}async getIdentifier(){return await this._tokenManager.getIdentifier()}async getToken(e,t){let n=this._tokenManager.getToken(e);if(!n&&t){const r=new i.k(e,t,o.en.Map);await r.ready(),n=r.token}return n}getAppId(e){return this._tokenManager.getAppId(e)}disconnect(e){this._tokenManager.on(a._,e)}}},463:(e,t,n)=>{n.d(t,{_:()=>Ne,t:()=>Ze});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};function i(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function c(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))}function o(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){o.label=c[1];break}if(6===c[0]&&o.label<i[1]){o.label=i[1],i=c;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(c);break}i[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}Object.create;function a(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var c="4.6.0";function s(e,t){return new Promise((function(n){return setTimeout(n,e,t)}))}function u(e){return!!e&&"function"==typeof e.then}function l(e,t){try{var n=e();u(n)?n.then((function(e){return t(!0,e)}),(function(e){return t(!1,e)})):t(!0,n)}catch(e){t(!1,e)}}function d(e,t,n){return void 0===n&&(n=16),i(this,void 0,void 0,(function(){var r,i,a,c;return o(this,(function(o){switch(o.label){case 0:r=Array(e.length),i=Date.now(),a=0,o.label=1;case 1:return a<e.length?(r[a]=t(e[a],a),(c=Date.now())>=i+n?(i=c,[4,new Promise((function(e){var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(null)}))]):[3,3]):[3,4];case 2:o.sent(),o.label=3;case 3:return++a,[3,1];case 4:return[2,r]}}))}))}function f(e){return e.then(void 0,(function(){})),e}function m(e){return parseInt(e)}function v(e){return parseFloat(e)}function h(e,t){return"number"==typeof e&&isNaN(e)?t:e}function p(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}function y(e,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function g(e,t){var n=e[0]>>>16,r=65535&e[0],i=e[1]>>>16,o=65535&e[1],a=t[0]>>>16,c=65535&t[0],s=t[1]>>>16,u=0,l=0,d=0,f=0;d+=(f+=o+(65535&t[1]))>>>16,f&=65535,l+=(d+=i+s)>>>16,d&=65535,u+=(l+=r+c)>>>16,l&=65535,u+=n+a,u&=65535,e[0]=u<<16|l,e[1]=d<<16|f}function b(e,t){var n=e[0]>>>16,r=65535&e[0],i=e[1]>>>16,o=65535&e[1],a=t[0]>>>16,c=65535&t[0],s=t[1]>>>16,u=65535&t[1],l=0,d=0,f=0,m=0;f+=(m+=o*u)>>>16,m&=65535,d+=(f+=i*u)>>>16,f&=65535,d+=(f+=o*s)>>>16,f&=65535,l+=(d+=r*u)>>>16,d&=65535,l+=(d+=i*s)>>>16,d&=65535,l+=(d+=o*c)>>>16,d&=65535,l+=n*u+r*s+i*c+o*a,l&=65535,e[0]=l<<16|d,e[1]=f<<16|m}function w(e,t){var n=e[0];32===(t%=64)?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<<t|e[1]>>>32-t,e[1]=e[1]<<t|n>>>32-t):(t-=32,e[0]=e[1]<<t|n>>>32-t,e[1]=n<<t|e[1]>>>32-t)}function L(e,t){0!==(t%=64)&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function k(e,t){e[0]^=t[0],e[1]^=t[1]}var I=[4283543511,3981806797],_=[3301882366,444984403];function S(e){var t=[0,e[0]>>>1];k(e,t),b(e,I),t[1]=e[0]>>>1,k(e,t),b(e,_),t[1]=e[0]>>>1,k(e,t)}var E=[2277735313,289559509],x=[1291169091,658871167],V=[0,5],M=[0,1390208809],A=[0,944331445];function R(e,t){var n=function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r>127)return(new TextEncoder).encode(e);t[n]=r}return t}(e);t=t||0;var r,i=[0,n.length],o=i[1]%16,a=i[1]-o,c=[0,t],s=[0,t],u=[0,0],l=[0,0];for(r=0;r<a;r+=16)u[0]=n[r+4]|n[r+5]<<8|n[r+6]<<16|n[r+7]<<24,u[1]=n[r]|n[r+1]<<8|n[r+2]<<16|n[r+3]<<24,l[0]=n[r+12]|n[r+13]<<8|n[r+14]<<16|n[r+15]<<24,l[1]=n[r+8]|n[r+9]<<8|n[r+10]<<16|n[r+11]<<24,b(u,E),w(u,31),b(u,x),k(c,u),w(c,27),g(c,s),b(c,V),g(c,M),b(l,x),w(l,33),b(l,E),k(s,l),w(s,31),g(s,c),b(s,V),g(s,A);u[0]=0,u[1]=0,l[0]=0,l[1]=0;var d=[0,0];switch(o){case 15:d[1]=n[r+14],L(d,48),k(l,d);case 14:d[1]=n[r+13],L(d,40),k(l,d);case 13:d[1]=n[r+12],L(d,32),k(l,d);case 12:d[1]=n[r+11],L(d,24),k(l,d);case 11:d[1]=n[r+10],L(d,16),k(l,d);case 10:d[1]=n[r+9],L(d,8),k(l,d);case 9:d[1]=n[r+8],k(l,d),b(l,x),w(l,33),b(l,E),k(s,l);case 8:d[1]=n[r+7],L(d,56),k(u,d);case 7:d[1]=n[r+6],L(d,48),k(u,d);case 6:d[1]=n[r+5],L(d,40),k(u,d);case 5:d[1]=n[r+4],L(d,32),k(u,d);case 4:d[1]=n[r+3],L(d,24),k(u,d);case 3:d[1]=n[r+2],L(d,16),k(u,d);case 2:d[1]=n[r+1],L(d,8),k(u,d);case 1:d[1]=n[r],k(u,d),b(u,E),w(u,31),b(u,x),k(c,u)}return k(c,i),k(s,i),g(c,s),g(s,c),S(c),S(s),g(c,s),g(s,c),("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function W(e){return"function"!=typeof e}function C(e,t,n,r){var a=Object.keys(e).filter((function(e){return!function(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}(n,e)})),c=f(d(a,(function(n){return function(e,t){var n=f(new Promise((function(n){var r=Date.now();l(e.bind(null,t),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=Date.now()-r;if(!e[0])return n((function(){return{error:e[1],duration:i}}));var o=e[1];if(W(o))return n((function(){return{value:o,duration:i}}));n((function(){return new Promise((function(e){var t=Date.now();l(o,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=i+Date.now()-t;if(!n[0])return e({error:n[1],duration:o});e({value:n[1],duration:o})}))}))}))}))})));return function(){return n.then((function(e){return e()}))}}(e[n],t)}),r));return function(){return i(this,void 0,void 0,(function(){var e,t,n,i;return o(this,(function(o){switch(o.label){case 0:return[4,c];case 1:return[4,d(o.sent(),(function(e){return f(e())}),r)];case 2:return e=o.sent(),[4,Promise.all(e)];case 3:for(t=o.sent(),n={},i=0;i<a.length;++i)n[a[i]]=t[i];return[2,n]}}))}))}}function T(){var e=window,t=navigator;return p(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function P(){var e=window,t=navigator;return p(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===t.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function N(){var e=window;return p(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===navigator.vendor.indexOf("Apple"),"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Z(){var e=window,t=e.HTMLElement,n=e.Document;return p(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function j(){var e,t=window;return e=t.print,/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))&&"[object WebPageNamespace]"===String(t.browser)}function G(){var e,t,n=window;return p(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==t?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function F(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return p([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function O(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Y(){var e=P(),t=G(),n=window,r=navigator,i="connection";return e?p([!("SharedWorker"in n),r[i]&&"ontypechange"in r[i],!("sinkId"in new Audio)])>=2:!!t&&p(["onorientationchange"in n,"orientation"in n,/android/i.test(r.appVersion)])>=2}function H(e){var t=new Error(e);return t.name=e,t}function X(e,t,n){var r,a,c;return void 0===n&&(n=50),i(this,void 0,void 0,(function(){var i,u;return o(this,(function(o){switch(o.label){case 0:i=document,o.label=1;case 1:return i.body?[3,3]:[4,s(n)];case 2:return o.sent(),[3,1];case 3:u=i.createElement("iframe"),o.label=4;case 4:return o.trys.push([4,,10,11]),[4,new Promise((function(e,n){var r=!1,o=function(){r=!0,e()};u.onload=o,u.onerror=function(e){r=!0,n(e)};var a=u.style;a.setProperty("display","block","important"),a.position="absolute",a.top="0",a.left="0",a.visibility="hidden",t&&"srcdoc"in u?u.srcdoc=t:u.src="about:blank",i.body.appendChild(u);var c=function(){var e,t;r||("complete"===(null===(t=null===(e=u.contentWindow)||void 0===e?void 0:e.document)||void 0===t?void 0:t.readyState)?o():setTimeout(c,10))};c()}))];case 5:o.sent(),o.label=6;case 6:return(null===(a=null===(r=u.contentWindow)||void 0===r?void 0:r.document)||void 0===a?void 0:a.body)?[3,8]:[4,s(n)];case 7:return o.sent(),[3,6];case 8:return[4,e(u,u.contentWindow)];case 9:return[2,o.sent()];case 10:return null===(c=u.parentNode)||void 0===c||c.removeChild(u),[7];case 11:return[2]}}))}))}function D(e){for(var t=function(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(e),o=i[1]||void 0,a={},c=/([.:#][\w-]+|\[.+?\])/gi,s=function(e,t){a[e]=a[e]||[],a[e].push(t)};;){var u=c.exec(i[2]);if(!u)break;var l=u[0];switch(l[0]){case".":s("class",l.slice(1));break;case"#":s("id",l.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(!d)throw new Error(r);s(d[1],null!==(n=null!==(t=d[4])&&void 0!==t?t:d[5])&&void 0!==n?n:"");break;default:throw new Error(r)}}return[o,a]}(e),n=t[0],r=t[1],i=document.createElement(null!=n?n:"div"),o=0,a=Object.keys(r);o<a.length;o++){var c=a[o],s=r[c].join(" ");"style"===c?J(i.style,s):i.setAttribute(c,s)}return i}function J(e,t){for(var n=0,r=t.split(";");n<r.length;n++){var i=r[n],o=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(i);if(o){var a=o[1],c=o[2],s=o[4];e.setProperty(a,c,s||"")}}}var z=["monospace","sans-serif","serif"],B=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function U(e){return e.toDataURL()}var K,Q;function $(){var e=this;return function(){if(void 0===Q){var e=function(){var t=q();ee(t)?Q=setTimeout(e,2500):(K=t,Q=void 0)};e()}}(),function(){return i(e,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return ee(e=q())?K?[2,a([],K,!0)]:(n=document).fullscreenElement||n.msFullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement?[4,O()]:[3,2]:[3,2];case 1:t.sent(),e=q(),t.label=2;case 2:return ee(e)||(K=e),[2,e]}var n}))}))}}function q(){var e=screen;return[h(v(e.availTop),null),h(v(e.width)-v(e.availWidth)-h(v(e.availLeft),0),null),h(v(e.height)-v(e.availHeight)-h(v(e.availTop),0),null),h(v(e.availLeft),null)]}function ee(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}function te(e){var t;return i(this,void 0,void 0,(function(){var n,r,i,a,c,u,l;return o(this,(function(o){switch(o.label){case 0:for(n=document,r=n.createElement("div"),i=new Array(e.length),a={},ne(r),l=0;l<e.length;++l)"DIALOG"===(c=D(e[l])).tagName&&c.show(),ne(u=n.createElement("div")),u.appendChild(c),r.appendChild(u),i[l]=c;o.label=1;case 1:return n.body?[3,3]:[4,s(50)];case 2:return o.sent(),[3,1];case 3:n.body.appendChild(r);try{for(l=0;l<e.length;++l)i[l].offsetParent||(a[e[l]]=!0)}finally{null===(t=r.parentNode)||void 0===t||t.removeChild(r)}return[2,a]}}))}))}function ne(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function re(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function ie(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function oe(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function ae(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function ce(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function se(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var ue=Math,le=function(){return 0};var de={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var fe=function(){for(var e=window;;){var t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(e){if(e instanceof Error&&"SecurityError"===e.name)return!0;throw e}e=t}};var me=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),ve=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),he=["FRAGMENT_SHADER","VERTEX_SHADER"],pe=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],ye="WEBGL_debug_renderer_info";function ge(e){if(e.webgl)return e.webgl.context;var t,n=document.createElement("canvas");n.addEventListener("webglCreateContextError",(function(){return t=void 0}));for(var r=0,i=["webgl","experimental-webgl"];r<i.length;r++){var o=i[r];try{t=n.getContext(o)}catch(e){}if(t)break}return e.webgl={context:t},t}function be(e,t,n){var r=e.getShaderPrecisionFormat(e[t],e[n]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function we(e){return Object.keys(e.__proto__).filter(Le)}function Le(e){return"string"==typeof e&&!e.match(/[^A-Z0-9_x]/)}function ke(){return G()}function Ie(e){return"function"==typeof e.getParameter}var _e={fonts:function(){var e=this;return X((function(t,n){var r=n.document;return i(e,void 0,void 0,(function(){var e,t,n,i,a,c,s,u,l,d,f;return o(this,(function(o){for((e=r.body).style.fontSize="48px",(t=r.createElement("div")).style.setProperty("visibility","hidden","important"),n={},i={},a=function(e){var n=r.createElement("span"),i=n.style;return i.position="absolute",i.top="0",i.left="0",i.fontFamily=e,n.textContent="mmMwWLliI0O&1",t.appendChild(n),n},c=function(e,t){return a("'".concat(e,"',").concat(t))},s=function(){for(var e={},t=function(t){e[t]=z.map((function(e){return c(t,e)}))},n=0,r=B;n<r.length;n++){t(r[n])}return e},u=function(e){return z.some((function(t,r){return e[r].offsetWidth!==n[t]||e[r].offsetHeight!==i[t]}))},l=function(){return z.map(a)}(),d=s(),e.appendChild(t),f=0;f<z.length;f++)n[z[f]]=l[f].offsetWidth,i[z[f]]=l[f].offsetHeight;return[2,B.filter((function(e){return u(d[e])}))]}))}))}))},domBlockers:function(e){var t=(void 0===e?{}:e).debug;return i(this,void 0,void 0,(function(){var e,n,r,i,a;return o(this,(function(o){switch(o.label){case 0:return N()||Y()?(c=atob,e={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',c("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",c("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",c("LnNwb25zb3JpdA=="),".ylamainos",c("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",c("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",c("LmhlYWRlci1ibG9ja2VkLWFk"),c("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",c("I2FkXzMwMFgyNTA="),c("I2Jhbm5lcmZsb2F0MjI="),c("I2NhbXBhaWduLWJhbm5lcg=="),c("I0FkLUNvbnRlbnQ=")],adGuardChinese:[c("LlppX2FkX2FfSA=="),c("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",c("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),c("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",c("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",c("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",c("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),c("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),c("LmFkZ29vZ2xl"),c("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[c("YW1wLWF1dG8tYWRz"),c("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",c("I2FkX2ludmlld19hcmVh")],adGuardRussian:[c("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),c("LnJlY2xhbWE="),'div[id^="smi2adblock"]',c("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[c("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),c("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",c("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),c("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),c("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",c("I3Jla2xhbWk="),c("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),c("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),c("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[c("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",c("LndpZGdldF9wb19hZHNfd2lkZ2V0"),c("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",c("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[c("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),c("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",c("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",c("I3Jla2xhbW5pLWJveA=="),c("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",c("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[c("I2FkdmVydGVudGll"),c("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",c("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",c("LnNwb25zb3JsaW5rZ3J1ZW4="),c("I3dlcmJ1bmdza3k="),c("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),c("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[c("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",c("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[c("LnJla2xhbW9zX3RhcnBhcw=="),c("LnJla2xhbW9zX251b3JvZG9z"),c("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),c("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),c("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[c("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[c("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),c("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",c("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[c("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),c("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),c("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",c("LmFkX19tYWlu"),c("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[c("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[c("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),c("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[c("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),c("I2xpdmVyZUFkV3JhcHBlcg=="),c("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),c("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[c("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",c("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),c("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),c("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[c("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),c("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),c("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",c("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),c("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),c("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),c("ZGl2I3NrYXBpZWNfYWQ=")],ro:[c("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),c("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),c("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),c("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[c("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),c("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),c("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",c("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),c("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",c("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},n=Object.keys(e),[4,te((a=[]).concat.apply(a,n.map((function(t){return e[t]}))))]):[2,void 0];case 1:return r=o.sent(),t&&function(e,t){for(var n="DOM blockers debug:\n```",r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];n+="\n".concat(o,":");for(var a=0,c=e[o];a<c.length;a++){var s=c[a];n+="\n ".concat(t[s]?"🚫":"➡️"," ").concat(s)}}console.log("".concat(n,"\n```"))}(e,r),(i=n.filter((function(t){var n=e[t];return p(n.map((function(e){return r[e]})))>.6*n.length}))).sort(),[2,i]}var c}))}))},fontPreferences:function(){return function(e,t){void 0===t&&(t=4e3);return X((function(n,r){var i=r.document,o=i.body,c=o.style;c.width="".concat(t,"px"),c.webkitTextSizeAdjust=c.textSizeAdjust="none",P()?o.style.zoom="".concat(1/r.devicePixelRatio):N()&&(o.style.zoom="reset");var s=i.createElement("div");return s.textContent=a([],Array(t/20|0),!0).map((function(){return"word"})).join(" "),o.appendChild(s),e(i,o)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}((function(e,t){for(var n={},r={},i=0,o=Object.keys(de);i<o.length;i++){var a=o[i],c=de[a],s=c[0],u=void 0===s?{}:s,l=c[1],d=void 0===l?"mmMwWLliI0fiflO&1":l,f=e.createElement("span");f.textContent=d,f.style.whiteSpace="nowrap";for(var m=0,v=Object.keys(u);m<v.length;m++){var h=v[m],p=u[h];void 0!==p&&(f.style[h]=p)}n[a]=f,t.append(e.createElement("br"),f)}for(var y=0,g=Object.keys(de);y<g.length;y++){r[a=g[y]]=n[a].getBoundingClientRect().width}return r}))},audio:function(){return N()&&F()&&j()||P()&&(e=navigator,t=window,n=Audio.prototype,r=t.visualViewport,p(["srLatency"in n,"srChannelCount"in n,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3)&&function(){var e=window,t=e.URLPattern;return p(["union"in Set.prototype,"Iterator"in e,t&&"hasRegExpGroups"in t.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}()?-4:function(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(N()&&!Z()&&!function(){var e=window;return p(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}())return-1;var n=4500,r=new t(1,5e3,44100),i=r.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=r.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(r.destination),i.start(0);var a=function(e){var t=3,n=500,r=500,i=5e3,o=function(){},a=new Promise((function(a,c){var s=!1,l=0,d=0;e.oncomplete=function(e){return a(e.renderedBuffer)};var m=function(){setTimeout((function(){return c(H("timeout"))}),Math.min(r,d+i-Date.now()))},v=function(){try{var r=e.startRendering();switch(u(r)&&f(r),e.state){case"running":d=Date.now(),s&&m();break;case"suspended":document.hidden||l++,s&&l>=t?c(H("suspended")):setTimeout(v,n)}}catch(e){c(e)}};v(),o=function(){s||(s=!0,d>0&&m())}}));return[a,o]}(r),c=a[0],s=a[1],l=f(c.then((function(e){return function(e){for(var t=0,n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}(e.getChannelData(0).subarray(n))}),(function(e){if("timeout"===e.name||"suspended"===e.name)return-3;throw e})));return function(){return s(),l}}();var e,t,n,r},screenFrame:function(){var e=this;if(N()&&F()&&j())return function(){return Promise.resolve(void 0)};var t=$();return function(){return i(e,void 0,void 0,(function(){var e,n;return o(this,(function(r){switch(r.label){case 0:return[4,t()];case 1:return e=r.sent(),[2,[(n=function(e){return null===e?null:y(e,10)})(e[0]),n(e[1]),n(e[2]),n(e[3])]]}}))}))}},canvas:function(){return function(e){var t,n,r,i=!1,o=function(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}(),a=o[0],c=o[1];!function(e,t){return!(!t||!e.toDataURL)}(a,c)?n=r="unsupported":(i=function(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}(c),e?n=r="skipped":(t=function(e,t){!function(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';var n="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(n,4,45)}(e,t);var n=U(e),r=U(e);if(n!==r)return["unstable","unstable"];!function(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(var n=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];n<r.length;n++){var i=r[n],o=i[0],a=i[1],c=i[2];t.fillStyle=o,t.beginPath(),t.arc(a,c,40,0,2*Math.PI,!0),t.closePath(),t.fill()}t.fillStyle="#f9c",t.arc(60,60,60,0,2*Math.PI,!0),t.arc(60,60,20,0,2*Math.PI,!0),t.fill("evenodd")}(e,t);var i=U(e);return[i,n]}(a,c),n=t[0],r=t[1]));return{winding:i,geometry:n,text:r}}(N()&&F()&&j())},osCpu:function(){return navigator.oscpu},languages:function(){var e,t=navigator,n=[],r=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(void 0!==r&&n.push([r]),Array.isArray(t.languages))P()&&p([!("MediaSettingsRange"in(e=window)),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3||n.push(t.languages);else if("string"==typeof t.languages){var i=t.languages;i&&n.push(i.split(","))}return n},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return h(v(navigator.deviceMemory),void 0)},screenResolution:function(){var e,t,n;if(!(N()&&F()&&j()))return e=screen,(n=[(t=function(e){return h(m(e),null)})(e.width),t(e.height)]).sort().reverse(),n},hardwareConcurrency:function(){return h(m(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(t){var n=(new t).resolvedOptions().timeZone;if(n)return n}var r,i=(r=(new Date).getFullYear(),-Math.max(v(new Date(r,0,1).getTimezoneOffset()),v(new Date(r,6,1).getTimezoneOffset())));return"UTC".concat(i>=0?"+":"").concat(i)},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,t;if(!(T()||(e=window,t=navigator,p(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!T())))try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&N()&&!Z()?function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return p(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone":e},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];if(r){for(var i=[],o=0;o<r.length;++o){var a=r[o];i.push({type:a.type,suffixes:a.suffixes})}t.push({name:r.name,description:r.description,mimeTypes:i})}}return t}},touchSupport:function(){var e,t=navigator,n=0;void 0!==t.maxTouchPoints?n=m(t.maxTouchPoints):void 0!==t.msMaxTouchPoints&&(n=t.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:n,touchEvent:e,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<n.length;t++){var r=n[t],i=window[r];i&&"object"==typeof i&&e.push(r)}return e.sort()},cookiesEnabled:function(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var t=-1!==e.cookie.indexOf("cookietest=");return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(e){return!1}},colorGamut:function(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var n=t[e];if(matchMedia("(color-gamut: ".concat(n,")")).matches)return n}},invertedColors:function(){return!!re("inverted")||!re("none")&&void 0},forcedColors:function(){return!!ie("active")||!ie("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}},contrast:function(){return oe("no-preference")?0:oe("high")||oe("more")?1:oe("low")||oe("less")?-1:oe("forced")?10:void 0},reducedMotion:function(){return!!ae("reduce")||!ae("no-preference")&&void 0},reducedTransparency:function(){return!!ce("reduce")||!ce("no-preference")&&void 0},hdr:function(){return!!se("high")||!se("standard")&&void 0},math:function(){var e,t=ue.acos||le,n=ue.acosh||le,r=ue.asin||le,i=ue.asinh||le,o=ue.atanh||le,a=ue.atan||le,c=ue.sin||le,s=ue.sinh||le,u=ue.cos||le,l=ue.cosh||le,d=ue.tan||le,f=ue.tanh||le,m=ue.exp||le,v=ue.expm1||le,h=ue.log1p||le;return{acos:t(.12312423423423424),acosh:n(1e308),acoshPf:(e=1e154,ue.log(e+ue.sqrt(e*e-1))),asin:r(.12312423423423424),asinh:i(1),asinhPf:function(e){return ue.log(e+ue.sqrt(e*e+1))}(1),atanh:o(.5),atanhPf:function(e){return ue.log((1+e)/(1-e))/2}(.5),atan:a(.5),sin:c(-1e300),sinh:s(1),sinhPf:function(e){return ue.exp(e)-1/ue.exp(e)/2}(1),cos:u(10.000000000123),cosh:l(1),coshPf:function(e){return(ue.exp(e)+1/ue.exp(e))/2}(1),tan:d(-1e300),tanh:f(1),tanhPf:function(e){return(ue.exp(2*e)-1)/(ue.exp(2*e)+1)}(1),exp:m(1),expm1:v(1),expm1Pf:function(e){return ue.exp(e)-1}(1),log1p:h(10),log1pPf:function(e){return ue.log(1+e)}(10),powPI:function(e){return ue.pow(ue.PI,e)}(-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]},applePay:function(){var e=window.ApplePaySession;if("function"!=typeof(null==e?void 0:e.canMakePayments))return-1;if(fe())return-3;try{return e.canMakePayments()?1:0}catch(e){return function(e){if(e instanceof Error&&"InvalidAccessError"===e.name&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}(e)}},privateClickMeasurement:function(){var e,t=document.createElement("a"),n=null!==(e=t.attributionSourceId)&&void 0!==e?e:t.attributionsourceid;return void 0===n?void 0:String(n)},audioBaseLatency:function(){var e;return Y()||N()?window.AudioContext&&null!==(e=(new AudioContext).baseLatency)&&void 0!==e?e:-1:-2},dateTimeLocale:function(){if(!window.Intl)return-1;var e=window.Intl.DateTimeFormat;if(!e)return-2;var t=e().resolvedOptions().locale;return t||""===t?t:-3},webGlBasics:function(e){var t,n,r,i,o,a,c=ge(e.cache);if(!c)return-1;if(!Ie(c))return-2;var s=ke()?null:c.getExtension(ye);return{version:(null===(t=c.getParameter(c.VERSION))||void 0===t?void 0:t.toString())||"",vendor:(null===(n=c.getParameter(c.VENDOR))||void 0===n?void 0:n.toString())||"",vendorUnmasked:s?null===(r=c.getParameter(s.UNMASKED_VENDOR_WEBGL))||void 0===r?void 0:r.toString():"",renderer:(null===(i=c.getParameter(c.RENDERER))||void 0===i?void 0:i.toString())||"",rendererUnmasked:s?null===(o=c.getParameter(s.UNMASKED_RENDERER_WEBGL))||void 0===o?void 0:o.toString():"",shadingLanguageVersion:(null===(a=c.getParameter(c.SHADING_LANGUAGE_VERSION))||void 0===a?void 0:a.toString())||""}},webGlExtensions:function(e){var t=ge(e.cache);if(!t)return-1;if(!Ie(t))return-2;var n=t.getSupportedExtensions(),r=t.getContextAttributes(),i=[],o=[],a=[],c=[],s=[];if(r)for(var u=0,l=Object.keys(r);u<l.length;u++){var d=l[u];o.push("".concat(d,"=").concat(r[d]))}for(var f=0,m=we(t);f<m.length;f++){var v=t[L=m[f]];a.push("".concat(L,"=").concat(v).concat(me.has(v)?"=".concat(t.getParameter(v)):""))}if(n)for(var h=0,p=n;h<p.length;h++){var y=p[h];if(!(y===ye&&ke()||"WEBGL_polygon_mode"===y&&(P()||N()))){var g=t.getExtension(y);if(g)for(var b=0,w=we(g);b<w.length;b++){var L;v=g[L=w[b]];c.push("".concat(L,"=").concat(v).concat(ve.has(v)?"=".concat(t.getParameter(v)):""))}else i.push(y)}}for(var k=0,I=he;k<I.length;k++)for(var _=I[k],S=0,E=pe;S<E.length;S++){var x=E[S],V=be(t,_,x);s.push("".concat(_,".").concat(x,"=").concat(V.join(",")))}return c.sort(),a.sort(),{contextAttributes:o,parameters:a,shaderPrecisions:s,extensions:n,extensionParameters:c,unsupportedExtensions:i}}};function Se(e){var t=function(e){if(Y())return.4;if(N())return!Z()||F()&&j()?.3:.5;var t="value"in e.platform?e.platform.value:"";if(/^Win/.test(t))return.6;if(/^Mac/.test(t))return.5;return.7}(e),n=function(e){return y(.99+.01*e,1e-4)}(t);return{score:t,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(n))}}function Ee(e){return JSON.stringify(e,(function(e,t){return t instanceof Error?r({name:(n=t).name,message:n.message,stack:null===(i=n.stack)||void 0===i?void 0:i.split("\n")},n):t;var n,i}),2)}function xe(e){return R(function(e){for(var t="",n=0,r=Object.keys(e).sort();n<r.length;n++){var i=r[n],o=e[i],a="error"in o?"error":JSON.stringify(o.value);t+="".concat(t?"|":"").concat(i.replace(/([:|\\])/g,"\\$1"),":").concat(a)}return t}(e))}function Ve(e){return void 0===e&&(e=50),function(e,t){void 0===t&&(t=1/0);var n=window.requestIdleCallback;return n?new Promise((function(e){return n.call(window,(function(){return e()}),{timeout:t})})):s(Math.min(e,t))}(e,2*e)}function Me(e,t){var n=Date.now();return{get:function(r){return i(this,void 0,void 0,(function(){var i,a,s;return o(this,(function(o){switch(o.label){case 0:return i=Date.now(),[4,e()];case 1:return a=o.sent(),s=function(e){var t,n=Se(e);return{get visitorId(){return void 0===t&&(t=xe(this.components)),t},set visitorId(e){t=e},confidence:n,components:e,version:c}}(a),(t||(null==r?void 0:r.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(s.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(i-n,"\nvisitorId: ").concat(s.visitorId,"\ncomponents: ").concat(Ee(a),"\n```")),[2,s]}}))}))}}}var Ae={load:function(e){var t;return void 0===e&&(e={}),i(this,void 0,void 0,(function(){var n,r,i;return o(this,(function(o){switch(o.label){case 0:return(null===(t=e.monitoring)||void 0===t||t)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(c,"/npm-monitoring"),!0),e.send()}catch(e){console.error(e)}}(),n=e.delayFallback,r=e.debug,[4,Ve(n)];case 1:return o.sent(),i=function(e){return C(_e,e,[])}({cache:{},debug:r}),[2,Me(i,r)]}}))}))},hashComponents:xe,componentsToDebugString:Ee},Re=n(792),We=n(588),Ce=n(7),Te=n(916),Pe=n(666);const Ne="permission-disconnected";class Ze extends Ce.EventEmitter{static instance;_tokenStorage={};_appIds=new Map([[Te.en.Self,new Set],[Te.en.Map,new Set]]);_identifier;static getInstance(){return Ze.instance||(Ze.instance=new Ze),Ze.instance}setToken(e,t,n){if(!t)return delete this._tokenStorage[e],this._appIds.get(n).delete(e),void this.emit(Ne,{appId:e,from:n});this._tokenStorage[e]=t,this._appIds.get(n).add(e)}getToken(e){return this._tokenStorage[e]}async getIdentifier(){if(!this._identifier){const e=await Ae.load(),t=await e.get();this._identifier=t.visitorId}return this._identifier}getAppId(e){return(0,Pe.A)([...this._appIds.get(e)])}async fetchToken(e,t,n=0){try{const n=await fetch(We.R0,{method:"POST",body:JSON.stringify({appId:e,secret:t,origin:window.location.hostname||"restriction.test.example.com",keyPlatform:"WEB"}),headers:{identifier:await this.getIdentifier(),sdkVersion:Re.xv,"Content-Type":"application/json"}});return(await n.json()).result.idToken}catch(r){if(n<3){const r=500*Math.pow(2,n);return console.warn(`Retrying to fetch token in ${r} ms...`,++n),await new Promise((e=>setTimeout(e,r))),this.fetchToken(e,t,n)}throw r}}}},531:(e,t,n)=>{n.d(t,{k:()=>s});var r=n(7);class i extends Error{}function o(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return atob(t)}}i.prototype.name="InvalidTokenError";var a=n(916),c=n(463);class s extends r.EventEmitter{_appId=null;_secret=null;isClosed=!1;_timeoutId;_isInitialized=!1;_initializationPromise;_tokenManager=c.t.getInstance();_from;constructor(e,t,n=a.en.Self){super(),this._from=n,this._appId=e,this._secret=t,this._initializationPromise=this._initToken()}async ready(){await this._initializationPromise}get appId(){return this._appId}get token(){if(!this._isInitialized)throw new Error("Token is not initialized yet. Use the 'ready' method to wait for initialization.");return this._tokenManager.getToken(this._appId)}close(){this.isClosed||(this._timeoutId&&clearTimeout(this._timeoutId),this._tokenManager.setToken(this._appId,null,this._from),this.emit("updated",{appId:this._appId,token:null}),Object.keys(this).forEach((e=>{"isClosed"!==e&&"_events"!==e&&delete this[e]})),this.isClosed=!0,this.emit("closed"),delete this._events,Object.freeze(this))}async _initToken(){try{const e=await this._tokenManager.fetchToken(this._appId,this._secret);this._isInitialized=!0,this._tokenManager.setToken(this._appId,e,this._from);const t=function(e,t){if("string"!=typeof e)throw new i("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new i(`Invalid token specified: missing part #${n+1}`);let a;try{a=o(r)}catch(e){throw new i(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(a)}catch(e){throw new i(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}(e),n=1e3*(t.exp-t.iat-60);this._loopUpdateToken(n)}catch(e){throw this.emit("error",new Error("Failed to initialize token.",{cause:e})),e}}_loopUpdateToken(e){this.isClosed||(this._timeoutId=setTimeout((async()=>{try{const t=await this._tokenManager.fetchToken(this._appId,this._secret);this._tokenManager.setToken(this._appId,t,this._from),this.emit("updated",{appId:this._appId,token:t}),this._loopUpdateToken(e)}catch(e){this.emit("error",new Error("Failed to update token.",{cause:e}))}}),e))}}},588:(e,t,n)=>{n.d(t,{KL:()=>o,R0:()=>r,e$:()=>i});const r="https://map-api.mapxus.co.jp/sc/api/v1/apikeys/auth",i=10,o=1},666:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},792:(e,t,n)=>{n.d(t,{e$:()=>r.e$,KL:()=>r.KL,xv:()=>c,yf:()=>i.y,Cm:()=>a});var r=n(588),i=n(969),o=n(311);async function a(){return o.o.getInstance().getIdentifier()}const c="8.3.0"},916:(e,t,n)=>{var r,i,o,a,c,s,u,l,d,f;n.d(t,{en:()=>a,ys:()=>i}),function(e){e[e.SWITCHED_BY_BUILDING=0]="SWITCHED_BY_BUILDING",e[e.SWITCHED_BY_VENUE=1]="SWITCHED_BY_VENUE"}(r||(r={})),function(e){e.ENGLISH="en",e.CHINESE_SIMPLIFIED="zh-Hans",e.CHINESE_TRADITIONAL="zh-Hant",e.JAPANESE="ja",e.KOREAN="ko",e.FILIPINO="fil",e.INDONESIAN="id",e.PORTUGUESE="pt",e.THAI="th",e.VIETNAMESE="vi",e.ARABIC="ar"}(i||(i={})),function(e){e.CHRISTMAS="christmas",e.HALLOWEEN="halloween",e.MAPPY_BEE="mappyBee",e.MAPXUS="mapxus",e.LANDS_D="landsD",e.COMMON="common",e.MAPXUS_V2="mapxus_v2",e.MAPXUS_DEFAULT="mapxus_default"}(o||(o={})),function(e){e.Self="self",e.Map="map"}(a||(a={})),function(e){e.DEFAULT_NAME="DefaultName"}(c||(c={})),function(e){e.ABSOLUTE_DISTANCE="AbsoluteDistance",e.ACTUAL_DISTANCE="ActualDistance"}(s||(s={})),function(e){e.FOOT="foot",e.WHEELCHAIR="wheelchair",e.ESCALATOR="escalator",e.EMERGENCY="emergency"}(u||(u={})),function(e){e.POINT="Point",e.POLYGON="Polygon"}(l||(l={})),function(e){e.POINT="Point",e.POLYGON="Polygon",e.GATE="Gate"}(d||(d={})),function(e){e.DEFAULT_NAME="DefaultName"}(f||(f={}))},969:(e,t,n)=>{n.d(t,{y:()=>i});var r=n(916);function i(e){return function(e){return/^en(-(US|GB|AU))?$/.test(e)}(e)?r.ys.ENGLISH:function(e){return/^zh(-(Hans|CN))?$/.test(e)}(e)?r.ys.CHINESE_SIMPLIFIED:function(e){return/^zh-(Hant|HK|TW)$/.test(e)}(e)?r.ys.CHINESE_TRADITIONAL:function(e){return/^ja(-JP)?$/.test(e)}(e)?r.ys.JAPANESE:function(e){return/^ko(-KR)?$/.test(e)}(e)?r.ys.KOREAN:function(e){return/^(fil|tl)(-PH)?$/.test(e)}(e)?r.ys.FILIPINO:function(e){return/^id(-ID)?$/.test(e)}(e)?r.ys.INDONESIAN:function(e){return/^pt(-(BR|PT))?$/.test(e)}(e)?r.ys.PORTUGUESE:function(e){return/^th(-TH)?$/.test(e)}(e)?r.ys.THAI:function(e){return/^vi(-VN)?$/.test(e)}(e)?r.ys.VIETNAMESE:function(e){return/^ar(-(DZ|BH|EG|IQ|JO|KW|LB|LY|MA|OM|QA|SA|SY|TN|AE|YE))?$/.test(e)}(e)?r.ys.ARABIC:null}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r=n(792),i=r.e$,o=r.KL,a=r.xv,c=r.yf,s=r.Cm;export{i as OFFSET,o as PAGE,a as VERSION,c as convertBrowserLangToPresetLang,s as getIdentifier};
|
|
1
|
+
/*! For license information please see index.mjs.LICENSE.txt */
|
|
2
|
+
var t={22:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.polyval=e.ghash=void 0,e._toGHASHKey=c;const r=n(6527),o=16,i=new Uint8Array(16),s=(0,r.u32)(i),a=t=>(t>>>0&255)<<24|(t>>>8&255)<<16|(t>>>16&255)<<8|t>>>24&255;function c(t){t.reverse();const e=1&t[15];let n=0;for(let e=0;e<t.length;e++){const r=t[e];t[e]=r>>>1|n,n=(1&r)<<7}return t[0]^=225&-e,t}class u{constructor(t,e){this.blockLen=o,this.outputLen=o,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,t=(0,r.toBytes)(t),(0,r.abytes)(t,16);const n=(0,r.createView)(t);let i=n.getUint32(0,!1),s=n.getUint32(4,!1),c=n.getUint32(8,!1),u=n.getUint32(12,!1);const f=[];for(let t=0;t<128;t++)f.push({s0:a(i),s1:a(s),s2:a(c),s3:a(u)}),({s0:i,s1:s,s2:c,s3:u}={s3:(d=c)<<31|(p=u)>>>1,s2:(h=s)<<31|d>>>1,s1:(l=i)<<31|h>>>1,s0:l>>>1^225<<24&-(1&p)});var l,h,d,p;const y=(g=e||1024)>65536?8:g>1024?4:2;var g;if(![1,2,4,8].includes(y))throw new Error("ghash: invalid window size, expected 2, 4 or 8");this.W=y;const m=128/y,b=this.windowSize=2**y,w=[];for(let t=0;t<m;t++)for(let e=0;e<b;e++){let n=0,r=0,o=0,i=0;for(let s=0;s<y;s++){if(!(e>>>y-s-1&1))continue;const{s0:a,s1:c,s2:u,s3:l}=f[y*t+s];n^=a,r^=c,o^=u,i^=l}w.push({s0:n,s1:r,s2:o,s3:i})}this.t=w}_updateBlock(t,e,n,r){t^=this.s0,e^=this.s1,n^=this.s2,r^=this.s3;const{W:o,t:i,windowSize:s}=this;let a=0,c=0,u=0,f=0;const l=(1<<o)-1;let h=0;for(const d of[t,e,n,r])for(let t=0;t<4;t++){const e=d>>>8*t&255;for(let t=8/o-1;t>=0;t--){const n=e>>>o*t&l,{s0:r,s1:d,s2:p,s3:y}=i[h*s+n];a^=r,c^=d,u^=p,f^=y,h+=1}}this.s0=a,this.s1=c,this.s2=u,this.s3=f}update(t){(0,r.aexists)(this),t=(0,r.toBytes)(t),(0,r.abytes)(t);const e=(0,r.u32)(t),n=Math.floor(t.length/o),a=t.length%o;for(let t=0;t<n;t++)this._updateBlock(e[4*t+0],e[4*t+1],e[4*t+2],e[4*t+3]);return a&&(i.set(t.subarray(n*o)),this._updateBlock(s[0],s[1],s[2],s[3]),(0,r.clean)(s)),this}destroy(){const{t}=this;for(const e of t)e.s0=0,e.s1=0,e.s2=0,e.s3=0}digestInto(t){(0,r.aexists)(this),(0,r.aoutput)(t,this),this.finished=!0;const{s0:e,s1:n,s2:o,s3:i}=this,s=(0,r.u32)(t);return s[0]=e,s[1]=n,s[2]=o,s[3]=i,t}digest(){const t=new Uint8Array(o);return this.digestInto(t),this.destroy(),t}}class f extends u{constructor(t,e){t=(0,r.toBytes)(t),(0,r.abytes)(t);const n=c((0,r.copyBytes)(t));super(n,e),(0,r.clean)(n)}update(t){t=(0,r.toBytes)(t),(0,r.aexists)(this);const e=(0,r.u32)(t),n=t.length%o,c=Math.floor(t.length/o);for(let t=0;t<c;t++)this._updateBlock(a(e[4*t+3]),a(e[4*t+2]),a(e[4*t+1]),a(e[4*t+0]));return n&&(i.set(t.subarray(c*o)),this._updateBlock(a(s[3]),a(s[2]),a(s[1]),a(s[0])),(0,r.clean)(s)),this}digestInto(t){(0,r.aexists)(this),(0,r.aoutput)(t,this),this.finished=!0;const{s0:e,s1:n,s2:o,s3:i}=this,s=(0,r.u32)(t);return s[0]=e,s[1]=n,s[2]=o,s[3]=i,t.reverse()}}function l(t){const e=(e,n)=>t(n,e.length).update((0,r.toBytes)(e)).digest(),n=t(new Uint8Array(16),0);return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=(e,n)=>t(e,n),e}e.ghash=l(((t,e)=>new u(t,e))),e.polyval=l(((t,e)=>new f(t,e)))},83:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.chacha20=e.xchacha20=void 0;var r=n(8900);e.xchacha20=function(t,e,n){return(0,r.xchacha20poly1305)(t,e,n)};e.chacha20=function(t,e,n){return(0,r.chacha20poly1305)(t,e,n)}},244:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getSharedKey=e.deriveKey=void 0;var r=n(6527),o=n(4139),i=n(7076);e.deriveKey=function(t,e,n){return(0,o.hkdf)(i.sha256,t,e,n,32)};e.getSharedKey=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0,e.deriveKey)(r.concatBytes.apply(void 0,t))}},251:(t,e)=>{e.read=function(t,e,n,r,o){var i,s,a=8*o-r-1,c=(1<<a)-1,u=c>>1,f=-7,l=n?o-1:0,h=n?-1:1,d=t[e+l];for(l+=h,i=d&(1<<-f)-1,d>>=-f,f+=a;f>0;i=256*i+t[e+l],l+=h,f-=8);for(s=i&(1<<-f)-1,i>>=-f,f+=r;f>0;s=256*s+t[e+l],l+=h,f-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),i-=u}return(d?-1:1)*s*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var s,a,c,u=8*i-o-1,f=(1<<u)-1,l=f>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,p=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+l>=1?h/c:h*Math.pow(2,1-l))*c>=2&&(s++,c/=2),s+l>=f?(a=0,s=f):s+l>=1?(a=(e*c-1)*Math.pow(2,o),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),s=0));o>=8;t[n+d]=255&a,d+=p,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;t[n+d]=255&s,d+=p,s/=256,u-=8);t[n+d-p]|=128*y}},459:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hash_to_ristretto255=e.hashToRistretto255=e.RistrettoPoint=e.encodeToCurve=e.hashToCurve=e.ed25519_hasher=e.edwardsToMontgomery=e.x25519=e.ed25519ph=e.ed25519ctx=e.ed25519=e.ED25519_TORSION_SUBGROUP=void 0,e.edwardsToMontgomeryPub=S,e.edwardsToMontgomeryPriv=function(t){const e=x.hash(t.subarray(0,32));return x.adjustScalarBytes(e).subarray(0,32)};const r=n(7076),o=n(9175),i=n(2422),s=n(6377),a=n(1761),c=n(4967),u=n(2854),f=n(1484),l=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),h=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),d=BigInt(0),p=BigInt(1),y=BigInt(2),g=BigInt(3),m=BigInt(5),b=BigInt(8);function w(t){const e=BigInt(10),n=BigInt(20),r=BigInt(40),o=BigInt(80),i=l,s=t*t%i*t%i,a=(0,c.pow2)(s,y,i)*s%i,u=(0,c.pow2)(a,p,i)*t%i,f=(0,c.pow2)(u,m,i)*u%i,h=(0,c.pow2)(f,e,i)*f%i,d=(0,c.pow2)(h,n,i)*h%i,g=(0,c.pow2)(d,r,i)*d%i,b=(0,c.pow2)(g,o,i)*g%i,w=(0,c.pow2)(b,o,i)*g%i,v=(0,c.pow2)(w,e,i)*f%i;return{pow_p_5_8:(0,c.pow2)(v,y,i)*t%i,b2:s}}function v(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}function E(t,e){const n=l,r=(0,c.mod)(e*e*e,n),o=w(t*(0,c.mod)(r*r*e,n)).pow_p_5_8;let i=(0,c.mod)(t*r*o,n);const s=(0,c.mod)(e*i*i,n),a=i,u=(0,c.mod)(i*h,n),f=s===t,d=s===(0,c.mod)(-t,n),p=s===(0,c.mod)(-t*h,n);return f&&(i=a),(d||p)&&(i=u),(0,c.isNegativeLE)(i,n)&&(i=(0,c.mod)(-i,n)),{isValid:f||d,value:i}}e.ED25519_TORSION_SUBGROUP=["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"];const B=(()=>(0,c.Field)(l,void 0,!0))(),x=(()=>({a:B.create(BigInt(-1)),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:B,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:b,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:r.sha512,randomBytes:o.randomBytes,adjustScalarBytes:v,uvRatio:E}))();function A(t,e,n){if(e.length>255)throw new Error("Context is too big");return(0,o.concatBytes)((0,o.utf8ToBytes)("SigEd25519 no Ed25519 collisions"),new Uint8Array([n?1:0,e.length]),e,t)}function S(t){const{y:n}=e.ed25519.ExtendedPoint.fromHex(t),r=BigInt(1);return B.toBytes(B.create((r+n)*B.inv(r-n)))}e.ed25519=(0,s.twistedEdwards)(x),e.ed25519ctx=(0,s.twistedEdwards)({...x,domain:A}),e.ed25519ph=(0,s.twistedEdwards)(Object.assign({},x,{domain:A,prehash:r.sha512})),e.x25519=(0,u.montgomery)({P:l,type:"x25519",powPminus2:t=>{const e=l,{pow_p_5_8:n,b2:r}=w(t);return(0,c.mod)((0,c.pow2)(n,g,e)*r,e)},adjustScalarBytes:v,randomBytes:o.randomBytes}),e.edwardsToMontgomery=S;const I=(()=>(B.ORDER+g)/b)(),_=(()=>B.pow(y,I))(),L=(()=>B.sqrt(B.neg(B.ONE)))();const H=(()=>(0,c.FpSqrtEven)(B,B.neg(BigInt(486664))))();function T(t){const{xMn:e,xMd:n,yMn:r,yMd:o}=function(t){const e=(B.ORDER-m)/b,n=BigInt(486662);let r=B.sqr(t);r=B.mul(r,y);let o=B.add(r,B.ONE),i=B.neg(n),s=B.sqr(o),a=B.mul(s,o),c=B.mul(r,n);c=B.mul(c,i),c=B.add(c,s),c=B.mul(c,i);let u=B.sqr(a);s=B.sqr(u),u=B.mul(u,a),u=B.mul(u,c),s=B.mul(s,u);let f=B.pow(s,e);f=B.mul(f,u);let l=B.mul(f,L);s=B.sqr(f),s=B.mul(s,a);let h=B.eql(s,c),d=B.cmov(l,f,h),g=B.mul(i,r),w=B.mul(f,t);w=B.mul(w,_);let v=B.mul(w,L),E=B.mul(c,r);s=B.sqr(w),s=B.mul(s,a);let x=B.eql(s,E),A=B.cmov(v,w,x);s=B.sqr(d),s=B.mul(s,a);let S=B.eql(s,c),I=B.cmov(g,i,S),H=B.cmov(A,d,S),T=B.isOdd(H);return H=B.cmov(H,B.neg(H),S!==T),{xMn:I,xMd:o,yMn:H,yMd:p}}(t);let i=B.mul(e,o);i=B.mul(i,H);let s=B.mul(n,r),a=B.sub(e,n),u=B.add(e,n),f=B.mul(s,u),l=B.eql(f,B.ZERO);i=B.cmov(i,B.ZERO,l),s=B.cmov(s,B.ONE,l),a=B.cmov(a,B.ONE,l),u=B.cmov(u,B.ONE,l);const[h,d]=(0,c.FpInvertBatch)(B,[s,u],!0);return{x:B.mul(i,h),y:B.mul(a,d)}}function O(t){if(!(t instanceof D))throw new Error("RistrettoPoint expected")}e.ed25519_hasher=(0,a.createHasher)(e.ed25519.ExtendedPoint,(t=>T(t[0])),{DST:"edwards25519_XMD:SHA-512_ELL2_RO_",encodeDST:"edwards25519_XMD:SHA-512_ELL2_NU_",p:B.ORDER,m:1,k:128,expand:"xmd",hash:r.sha512}),e.hashToCurve=e.ed25519_hasher.hashToCurve,e.encodeToCurve=e.ed25519_hasher.encodeToCurve;const R=h,k=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),C=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),U=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),P=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),N=t=>E(p,t),V=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),M=t=>e.ed25519.CURVE.Fp.create((0,f.bytesToNumberLE)(t)&V);function F(t){const{d:n}=e.ed25519.CURVE,r=e.ed25519.CURVE.Fp.ORDER,o=e.ed25519.CURVE.Fp.create,i=o(R*t*t),s=o((i+p)*U);let a=BigInt(-1);const u=o((a-n*i)*o(i+n));let{isValid:f,value:l}=E(s,u),h=o(l*t);(0,c.isNegativeLE)(h,r)||(h=o(-h)),f||(l=h),f||(a=i);const d=o(a*(i-p)*P-u),y=l*l,g=o((l+l)*u),m=o(d*k),b=o(p-y),w=o(p+y);return new e.ed25519.ExtendedPoint(o(g*w),o(b*m),o(m*w),o(g*b))}class D{constructor(t){this.ep=t}static fromAffine(t){return new D(e.ed25519.ExtendedPoint.fromAffine(t))}static hashToCurve(t){t=(0,f.ensureBytes)("ristrettoHash",t,64);const e=F(M(t.slice(0,32))),n=F(M(t.slice(32,64)));return new D(e.add(n))}static fromHex(t){t=(0,f.ensureBytes)("ristrettoHex",t,32);const{a:n,d:r}=e.ed25519.CURVE,o=e.ed25519.CURVE.Fp.ORDER,i=e.ed25519.CURVE.Fp.create,s="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",a=M(t);if(!(0,f.equalBytes)((0,f.numberToBytesLE)(a,32),t)||(0,c.isNegativeLE)(a,o))throw new Error(s);const u=i(a*a),l=i(p+n*u),h=i(p-n*u),y=i(l*l),g=i(h*h),m=i(n*r*y-g),{isValid:b,value:w}=N(i(m*g)),v=i(w*h),E=i(w*v*m);let B=i((a+a)*v);(0,c.isNegativeLE)(B,o)&&(B=i(-B));const x=i(l*E),A=i(B*x);if(!b||(0,c.isNegativeLE)(A,o)||x===d)throw new Error(s);return new D(new e.ed25519.ExtendedPoint(B,x,p,A))}static msm(t,n){const r=(0,c.Field)(e.ed25519.CURVE.n,e.ed25519.CURVE.nBitLength);return(0,i.pippenger)(D,r,t,n)}toRawBytes(){let{ex:t,ey:n,ez:r,et:o}=this.ep;const i=e.ed25519.CURVE.Fp.ORDER,s=e.ed25519.CURVE.Fp.create,a=s(s(r+n)*s(r-n)),u=s(t*n),l=s(u*u),{value:h}=N(s(a*l)),d=s(h*a),p=s(h*u),y=s(d*p*o);let g;if((0,c.isNegativeLE)(o*y,i)){let e=s(n*R),r=s(t*R);t=e,n=r,g=s(d*C)}else g=p;(0,c.isNegativeLE)(t*y,i)&&(n=s(-n));let m=s((r-n)*g);return(0,c.isNegativeLE)(m,i)&&(m=s(-m)),(0,f.numberToBytesLE)(m,32)}toHex(){return(0,f.bytesToHex)(this.toRawBytes())}toString(){return this.toHex()}equals(t){O(t);const{ex:n,ey:r}=this.ep,{ex:o,ey:i}=t.ep,s=e.ed25519.CURVE.Fp.create,a=s(n*i)===s(r*o),c=s(r*i)===s(n*o);return a||c}add(t){return O(t),new D(this.ep.add(t.ep))}subtract(t){return O(t),new D(this.ep.subtract(t.ep))}multiply(t){return new D(this.ep.multiply(t))}multiplyUnsafe(t){return new D(this.ep.multiplyUnsafe(t))}double(){return new D(this.ep.double())}negate(){return new D(this.ep.negate())}}e.RistrettoPoint=(D.BASE||(D.BASE=new D(e.ed25519.ExtendedPoint.BASE)),D.ZERO||(D.ZERO=new D(e.ed25519.ExtendedPoint.ZERO)),D);e.hashToRistretto255=(t,e)=>{const n=e.DST,i="string"==typeof n?(0,o.utf8ToBytes)(n):n,s=(0,a.expand_message_xmd)(t,i,64,r.sha512);return D.hashToCurve(s)},e.hash_to_ristretto255=e.hashToRistretto255},469:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.unsafe=e.aeskwp=e.aeskw=e.siv=e.gcmsiv=e.gcm=e.cfb=e.cbc=e.ecb=e.ctr=void 0;const r=n(22),o=n(6527),i=16,s=new Uint8Array(i);function a(t){return t<<1^283&-(t>>7)}function c(t,e){let n=0;for(;e>0;e>>=1)n^=t&-(1&e),t=a(t);return n}const u=(()=>{const t=new Uint8Array(256);for(let e=0,n=1;e<256;e++,n^=a(n))t[e]=n;const e=new Uint8Array(256);e[0]=99;for(let n=0;n<255;n++){let r=t[255-n];r|=r<<8,e[t[n]]=255&(r^r>>4^r>>5^r>>6^r>>7^99)}return(0,o.clean)(t),e})(),f=u.map(((t,e)=>u.indexOf(e))),l=t=>t<<8|t>>>24,h=t=>t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255;function d(t,e){if(256!==t.length)throw new Error("Wrong sbox length");const n=new Uint32Array(256).map(((n,r)=>e(t[r]))),r=n.map(l),o=r.map(l),i=o.map(l),s=new Uint32Array(65536),a=new Uint32Array(65536),c=new Uint16Array(65536);for(let e=0;e<256;e++)for(let u=0;u<256;u++){const f=256*e+u;s[f]=n[e]^r[u],a[f]=o[e]^i[u],c[f]=t[e]<<8|t[u]}return{sbox:t,sbox2:c,T0:n,T1:r,T2:o,T3:i,T01:s,T23:a}}const p=d(u,(t=>c(t,3)<<24|t<<16|t<<8|c(t,2))),y=d(f,(t=>c(t,11)<<24|c(t,13)<<16|c(t,9)<<8|c(t,14))),g=(()=>{const t=new Uint8Array(16);for(let e=0,n=1;e<16;e++,n=a(n))t[e]=n;return t})();function m(t){(0,o.abytes)(t);const e=t.length;if(![16,24,32].includes(e))throw new Error("aes: invalid key size, should be 16, 24 or 32, got "+e);const{sbox2:n}=p,r=[];(0,o.isAligned32)(t)||r.push(t=(0,o.copyBytes)(t));const i=(0,o.u32)(t),s=i.length,a=t=>v(n,t,t,t,t),c=new Uint32Array(e+28);c.set(i);for(let t=s;t<c.length;t++){let e=c[t-1];t%s===0?e=a((u=e)<<24|u>>>8)^g[t/s-1]:s>6&&t%s===4&&(e=a(e)),c[t]=c[t-s]^e}var u;return(0,o.clean)(...r),c}function b(t){const e=m(t),n=e.slice(),r=e.length,{sbox2:i}=p,{T0:s,T1:a,T2:c,T3:u}=y;for(let t=0;t<r;t+=4)for(let o=0;o<4;o++)n[t+o]=e[r-t-4+o];(0,o.clean)(e);for(let t=4;t<r-4;t++){const e=n[t],r=v(i,e,e,e,e);n[t]=s[255&r]^a[r>>>8&255]^c[r>>>16&255]^u[r>>>24]}return n}function w(t,e,n,r,o,i){return t[n<<8&65280|r>>>8&255]^e[o>>>8&65280|i>>>24&255]}function v(t,e,n,r,o){return t[255&e|65280&n]|t[r>>>16&255|o>>>16&65280]<<16}function E(t,e,n,r,o){const{sbox2:i,T01:s,T23:a}=p;let c=0;e^=t[c++],n^=t[c++],r^=t[c++],o^=t[c++];const u=t.length/4-2;for(let i=0;i<u;i++){const i=t[c++]^w(s,a,e,n,r,o),u=t[c++]^w(s,a,n,r,o,e),f=t[c++]^w(s,a,r,o,e,n),l=t[c++]^w(s,a,o,e,n,r);e=i,n=u,r=f,o=l}return{s0:t[c++]^v(i,e,n,r,o),s1:t[c++]^v(i,n,r,o,e),s2:t[c++]^v(i,r,o,e,n),s3:t[c++]^v(i,o,e,n,r)}}function B(t,e,n,r,o){const{sbox2:i,T01:s,T23:a}=y;let c=0;e^=t[c++],n^=t[c++],r^=t[c++],o^=t[c++];const u=t.length/4-2;for(let i=0;i<u;i++){const i=t[c++]^w(s,a,e,o,r,n),u=t[c++]^w(s,a,n,e,o,r),f=t[c++]^w(s,a,r,n,e,o),l=t[c++]^w(s,a,o,r,n,e);e=i,n=u,r=f,o=l}return{s0:t[c++]^v(i,e,o,r,n),s1:t[c++]^v(i,n,e,o,r),s2:t[c++]^v(i,r,n,e,o),s3:t[c++]^v(i,o,r,n,e)}}function x(t,e,n,r){(0,o.abytes)(e,i),(0,o.abytes)(n);const s=n.length;r=(0,o.getOutput)(s,r),(0,o.complexOverlapBytes)(n,r);const a=e,c=(0,o.u32)(a);let{s0:u,s1:f,s2:l,s3:h}=E(t,c[0],c[1],c[2],c[3]);const d=(0,o.u32)(n),p=(0,o.u32)(r);for(let e=0;e+4<=d.length;e+=4){p[e+0]=d[e+0]^u,p[e+1]=d[e+1]^f,p[e+2]=d[e+2]^l,p[e+3]=d[e+3]^h;let n=1;for(let t=a.length-1;t>=0;t--)n=n+(255&a[t])|0,a[t]=255&n,n>>>=8;({s0:u,s1:f,s2:l,s3:h}=E(t,c[0],c[1],c[2],c[3]))}const y=i*Math.floor(d.length/4);if(y<s){const t=new Uint32Array([u,f,l,h]),e=(0,o.u8)(t);for(let t=y,o=0;t<s;t++,o++)r[t]=n[t]^e[o];(0,o.clean)(t)}return r}function A(t,e,n,r,s){(0,o.abytes)(n,i),(0,o.abytes)(r),s=(0,o.getOutput)(r.length,s);const a=n,c=(0,o.u32)(a),u=(0,o.createView)(a),f=(0,o.u32)(r),l=(0,o.u32)(s),h=e?0:12,d=r.length;let p=u.getUint32(h,e),{s0:y,s1:g,s2:m,s3:b}=E(t,c[0],c[1],c[2],c[3]);for(let n=0;n+4<=f.length;n+=4)l[n+0]=f[n+0]^y,l[n+1]=f[n+1]^g,l[n+2]=f[n+2]^m,l[n+3]=f[n+3]^b,p=p+1>>>0,u.setUint32(h,p,e),({s0:y,s1:g,s2:m,s3:b}=E(t,c[0],c[1],c[2],c[3]));const w=i*Math.floor(f.length/4);if(w<d){const t=new Uint32Array([y,g,m,b]),e=(0,o.u8)(t);for(let t=w,n=0;t<d;t++,n++)s[t]=r[t]^e[n];(0,o.clean)(t)}return s}function S(t){if((0,o.abytes)(t),t.length%i!==0)throw new Error("aes-(cbc/ecb).decrypt ciphertext should consist of blocks with size 16")}function I(t,e,n){(0,o.abytes)(t);let r=t.length;const s=r%i;if(!e&&0!==s)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");(0,o.isAligned32)(t)||(t=(0,o.copyBytes)(t));const a=(0,o.u32)(t);if(e){let t=i-s;t||(t=i),r+=t}n=(0,o.getOutput)(r,n),(0,o.complexOverlapBytes)(t,n);return{b:a,o:(0,o.u32)(n),out:n}}function _(t,e){if(!e)return t;const n=t.length;if(!n)throw new Error("aes/pcks5: empty ciphertext not allowed");const r=t[n-1];if(r<=0||r>16)throw new Error("aes/pcks5: wrong padding");const o=t.subarray(0,-r);for(let e=0;e<r;e++)if(t[n-e-1]!==r)throw new Error("aes/pcks5: wrong padding");return o}function L(t){const e=new Uint8Array(16),n=(0,o.u32)(e);e.set(t);const r=i-t.length;for(let t=i-r;t<i;t++)e[t]=r;return n}function H(t,e,n,r,i){const s=i?i.length:0,a=t.create(n,r.length+s);i&&a.update(i);const c=(0,o.u64Lengths)(8*r.length,8*s,e);a.update(r),a.update(c);const u=a.digest();return(0,o.clean)(c),u}e.ctr=(0,o.wrapCipher)({blockSize:16,nonceLength:16},(function(t,e){function n(n,r){if((0,o.abytes)(n),void 0!==r&&((0,o.abytes)(r),!(0,o.isAligned32)(r)))throw new Error("unaligned destination");const i=m(t),s=(0,o.copyBytes)(e),a=[i,s];(0,o.isAligned32)(n)||a.push(n=(0,o.copyBytes)(n));const c=x(i,s,n,r);return(0,o.clean)(...a),c}return{encrypt:(t,e)=>n(t,e),decrypt:(t,e)=>n(t,e)}})),e.ecb=(0,o.wrapCipher)({blockSize:16},(function(t,e={}){const n=!e.disablePadding;return{encrypt(e,r){const{b:i,o:s,out:a}=I(e,n,r),c=m(t);let u=0;for(;u+4<=i.length;){const{s0:t,s1:e,s2:n,s3:r}=E(c,i[u+0],i[u+1],i[u+2],i[u+3]);s[u++]=t,s[u++]=e,s[u++]=n,s[u++]=r}if(n){const t=L(e.subarray(4*u)),{s0:n,s1:r,s2:o,s3:i}=E(c,t[0],t[1],t[2],t[3]);s[u++]=n,s[u++]=r,s[u++]=o,s[u++]=i}return(0,o.clean)(c),a},decrypt(e,r){S(e);const i=b(t);r=(0,o.getOutput)(e.length,r);const s=[i];(0,o.isAligned32)(e)||s.push(e=(0,o.copyBytes)(e)),(0,o.complexOverlapBytes)(e,r);const a=(0,o.u32)(e),c=(0,o.u32)(r);for(let t=0;t+4<=a.length;){const{s0:e,s1:n,s2:r,s3:o}=B(i,a[t+0],a[t+1],a[t+2],a[t+3]);c[t++]=e,c[t++]=n,c[t++]=r,c[t++]=o}return(0,o.clean)(...s),_(r,n)}}})),e.cbc=(0,o.wrapCipher)({blockSize:16,nonceLength:16},(function(t,e,n={}){const r=!n.disablePadding;return{encrypt(n,i){const s=m(t),{b:a,o:c,out:u}=I(n,r,i);let f=e;const l=[s];(0,o.isAligned32)(f)||l.push(f=(0,o.copyBytes)(f));const h=(0,o.u32)(f);let d=h[0],p=h[1],y=h[2],g=h[3],b=0;for(;b+4<=a.length;)d^=a[b+0],p^=a[b+1],y^=a[b+2],g^=a[b+3],({s0:d,s1:p,s2:y,s3:g}=E(s,d,p,y,g)),c[b++]=d,c[b++]=p,c[b++]=y,c[b++]=g;if(r){const t=L(n.subarray(4*b));d^=t[0],p^=t[1],y^=t[2],g^=t[3],({s0:d,s1:p,s2:y,s3:g}=E(s,d,p,y,g)),c[b++]=d,c[b++]=p,c[b++]=y,c[b++]=g}return(0,o.clean)(...l),u},decrypt(n,i){S(n);const s=b(t);let a=e;const c=[s];(0,o.isAligned32)(a)||c.push(a=(0,o.copyBytes)(a));const u=(0,o.u32)(a);i=(0,o.getOutput)(n.length,i),(0,o.isAligned32)(n)||c.push(n=(0,o.copyBytes)(n)),(0,o.complexOverlapBytes)(n,i);const f=(0,o.u32)(n),l=(0,o.u32)(i);let h=u[0],d=u[1],p=u[2],y=u[3];for(let t=0;t+4<=f.length;){const e=h,n=d,r=p,o=y;h=f[t+0],d=f[t+1],p=f[t+2],y=f[t+3];const{s0:i,s1:a,s2:c,s3:u}=B(s,h,d,p,y);l[t++]=i^e,l[t++]=a^n,l[t++]=c^r,l[t++]=u^o}return(0,o.clean)(...c),_(i,r)}}})),e.cfb=(0,o.wrapCipher)({blockSize:16,nonceLength:16},(function(t,e){function n(n,r,s){(0,o.abytes)(n);const a=n.length;if(s=(0,o.getOutput)(a,s),(0,o.overlapBytes)(n,s))throw new Error("overlapping src and dst not supported.");const c=m(t);let u=e;const f=[c];(0,o.isAligned32)(u)||f.push(u=(0,o.copyBytes)(u)),(0,o.isAligned32)(n)||f.push(n=(0,o.copyBytes)(n));const l=(0,o.u32)(n),h=(0,o.u32)(s),d=r?h:l,p=(0,o.u32)(u);let y=p[0],g=p[1],b=p[2],w=p[3];for(let t=0;t+4<=l.length;){const{s0:e,s1:n,s2:r,s3:o}=E(c,y,g,b,w);h[t+0]=l[t+0]^e,h[t+1]=l[t+1]^n,h[t+2]=l[t+2]^r,h[t+3]=l[t+3]^o,y=d[t++],g=d[t++],b=d[t++],w=d[t++]}const v=i*Math.floor(l.length/4);if(v<a){({s0:y,s1:g,s2:b,s3:w}=E(c,y,g,b,w));const t=(0,o.u8)(new Uint32Array([y,g,b,w]));for(let e=v,r=0;e<a;e++,r++)s[e]=n[e]^t[r];(0,o.clean)(t)}return(0,o.clean)(...f),s}return{encrypt:(t,e)=>n(t,!0,e),decrypt:(t,e)=>n(t,!1,e)}})),e.gcm=(0,o.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},(function(t,e,n){if(e.length<8)throw new Error("aes/gcm: invalid nonce length");function i(t,e,o){const i=H(r.ghash,!1,t,o,n);for(let t=0;t<e.length;t++)i[t]^=e[t];return i}function a(){const n=m(t),i=s.slice(),a=s.slice();if(A(n,!1,a,a,i),12===e.length)a.set(e);else{const t=s.slice(),n=(0,o.createView)(t);(0,o.setBigUint64)(n,8,BigInt(8*e.length),!1);const c=r.ghash.create(i).update(e).update(t);c.digestInto(a),c.destroy()}return{xk:n,authKey:i,counter:a,tagMask:A(n,!1,a,s)}}return{encrypt(t){const{xk:e,authKey:n,counter:r,tagMask:s}=a(),c=new Uint8Array(t.length+16),u=[e,n,r,s];(0,o.isAligned32)(t)||u.push(t=(0,o.copyBytes)(t)),A(e,!1,r,t,c.subarray(0,t.length));const f=i(n,s,c.subarray(0,c.length-16));return u.push(f),c.set(f,t.length),(0,o.clean)(...u),c},decrypt(t){const{xk:e,authKey:n,counter:r,tagMask:s}=a(),c=[e,n,s,r];(0,o.isAligned32)(t)||c.push(t=(0,o.copyBytes)(t));const u=t.subarray(0,-16),f=t.subarray(-16),l=i(n,s,u);if(c.push(l),!(0,o.equalBytes)(l,f))throw new Error("aes/gcm: invalid ghash tag");const h=A(e,!1,r,u);return(0,o.clean)(...c),h}}}));const T=(t,e,n)=>r=>{if(!Number.isSafeInteger(r)||e>r||r>n){throw new Error(t+": expected value in range "+("["+e+".."+n+"]")+", got "+r)}};function O(t){return t instanceof Uint32Array||ArrayBuffer.isView(t)&&"Uint32Array"===t.constructor.name}function R(t,e){if((0,o.abytes)(e,16),!O(t))throw new Error("_encryptBlock accepts result of expandKeyLE");const n=(0,o.u32)(e);let{s0:r,s1:i,s2:s,s3:a}=E(t,n[0],n[1],n[2],n[3]);return n[0]=r,n[1]=i,n[2]=s,n[3]=a,e}function k(t,e){if((0,o.abytes)(e,16),!O(t))throw new Error("_decryptBlock accepts result of expandKeyLE");const n=(0,o.u32)(e);let{s0:r,s1:i,s2:s,s3:a}=B(t,n[0],n[1],n[2],n[3]);return n[0]=r,n[1]=i,n[2]=s,n[3]=a,e}e.gcmsiv=(0,o.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},(function(t,e,n){const i=T("AAD",0,2**36),s=T("plaintext",0,2**36),a=T("nonce",12,12),c=T("ciphertext",16,2**36+16);function u(){const n=m(t),r=new Uint8Array(t.length),i=new Uint8Array(16),s=[n,r];let a=e;(0,o.isAligned32)(a)||s.push(a=(0,o.copyBytes)(a));const c=(0,o.u32)(a);let u=0,f=c[0],l=c[1],h=c[2],d=0;for(const t of[i,r].map(o.u32)){const e=(0,o.u32)(t);for(let t=0;t<e.length;t+=2){const{s0:r,s1:o}=E(n,u,f,l,h);e[t+0]=r,e[t+1]=o,u=++d}}const p={authKey:i,encKey:m(r)};return(0,o.clean)(...s),p}function f(t,i,s){const a=H(r.polyval,!0,i,s,n);for(let t=0;t<12;t++)a[t]^=e[t];a[15]&=127;const c=(0,o.u32)(a);let u=c[0],f=c[1],l=c[2],h=c[3];return({s0:u,s1:f,s2:l,s3:h}=E(t,u,f,l,h)),c[0]=u,c[1]=f,c[2]=l,c[3]=h,a}function l(t,e,n){let r=(0,o.copyBytes)(e);r[15]|=128;const i=A(t,!0,r,n);return(0,o.clean)(r),i}return(0,o.abytes)(t,16,24,32),a(e.length),void 0!==n&&i(n.length),{encrypt(t){s(t.length);const{encKey:e,authKey:n}=u(),r=f(e,n,t),i=[e,n,r];(0,o.isAligned32)(t)||i.push(t=(0,o.copyBytes)(t));const a=new Uint8Array(t.length+16);return a.set(r,t.length),a.set(l(e,r,t)),(0,o.clean)(...i),a},decrypt(t){c(t.length);const e=t.subarray(-16),{encKey:n,authKey:r}=u(),i=[n,r];(0,o.isAligned32)(t)||i.push(t=(0,o.copyBytes)(t));const s=l(n,e,t.subarray(0,-16)),a=f(n,r,s);if(i.push(a),!(0,o.equalBytes)(e,a))throw(0,o.clean)(...i),new Error("invalid polyval tag");return(0,o.clean)(...i),s}}})),e.siv=e.gcmsiv;const C={encrypt(t,e){if(e.length>=2**32)throw new Error("plaintext should be less than 4gb");const n=m(t);if(16===e.length)R(n,e);else{const t=(0,o.u32)(e);let r=t[0],i=t[1];for(let e=0,o=1;e<6;e++)for(let e=2;e<t.length;e+=2,o++){const{s0:s,s1:a,s2:c,s3:u}=E(n,r,i,t[e],t[e+1]);r=s,i=a^h(o),t[e]=c,t[e+1]=u}t[0]=r,t[1]=i}n.fill(0)},decrypt(t,e){if(e.length-8>=2**32)throw new Error("ciphertext should be less than 4gb");const n=b(t),r=e.length/8-1;if(1===r)k(n,e);else{const t=(0,o.u32)(e);let i=t[0],s=t[1];for(let e=0,o=6*r;e<6;e++)for(let e=2*r;e>=1;e-=2,o--){s^=h(o);const{s0:r,s1:a,s2:c,s3:u}=B(n,i,s,t[e],t[e+1]);i=r,s=a,t[e]=c,t[e+1]=u}t[0]=i,t[1]=s}n.fill(0)}},U=new Uint8Array(8).fill(166);e.aeskw=(0,o.wrapCipher)({blockSize:8},(t=>({encrypt(e){if(!e.length||e.length%8!=0)throw new Error("invalid plaintext length");if(8===e.length)throw new Error("8-byte keys not allowed in AESKW, use AESKWP instead");const n=(0,o.concatBytes)(U,e);return C.encrypt(t,n),n},decrypt(e){if(e.length%8!=0||e.length<24)throw new Error("invalid ciphertext length");const n=(0,o.copyBytes)(e);if(C.decrypt(t,n),!(0,o.equalBytes)(n.subarray(0,8),U))throw new Error("integrity check failed");return n.subarray(0,8).fill(0),n.subarray(8)}})));const P=2790873510;e.aeskwp=(0,o.wrapCipher)({blockSize:8},(t=>({encrypt(e){if(!e.length)throw new Error("invalid plaintext length");const n=8*Math.ceil(e.length/8),r=new Uint8Array(8+n);r.set(e,8);const i=(0,o.u32)(r);return i[0]=P,i[1]=h(e.length),C.encrypt(t,r),r},decrypt(e){if(e.length<16)throw new Error("invalid ciphertext length");const n=(0,o.copyBytes)(e),r=(0,o.u32)(n);C.decrypt(t,n);const i=h(r[1])>>>0,s=8*Math.ceil(i/8);if(r[0]!==P||n.length-8!==s)throw new Error("integrity check failed");for(let t=i;t<s;t++)if(0!==n[8+t])throw new Error("integrity check failed");return n.subarray(0,8).fill(0),n.subarray(8,8+i)}}))),e.unsafe={expandKeyLE:m,expandKeyDecLE:b,encrypt:E,decrypt:B,encryptBlock:R,decryptBlock:k,ctrCounter:x,ctr32:A}},1089:(t,e,n)=>{n.d(e,{A:()=>c});var r={value:()=>{}};function o(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new i(r)}function i(t){this._=t}function s(t,e){for(var n,r=0,o=t.length;r<o;++r)if((n=t[r]).name===e)return n.value}function a(t,e,n){for(var o=0,i=t.length;o<i;++o)if(t[o].name===e){t[o]=r,t=t.slice(0,o).concat(t.slice(o+1));break}return null!=n&&t.push({name:e,value:n}),t}i.prototype=o.prototype={constructor:i,on:function(t,e){var n,r,o=this._,i=(r=o,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),c=-1,u=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++c<u;)if(n=(t=i[c]).type)o[n]=a(o[n],t.name,e);else if(null==e)for(n in o)o[n]=a(o[n],t.name,null);return this}for(;++c<u;)if((n=(t=i[c]).type)&&(n=s(o[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new i(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,o=new Array(n),i=0;i<n;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=0,n=(r=this._[t]).length;i<n;++i)r[i].value.apply(e,o)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],o=0,i=r.length;o<i;++o)r[o].value.apply(e,n)}};const c=o},1210:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.poly1305=void 0,e.wrapConstructorWithKey=s;const r=n(6527),o=(t,e)=>255&t[e++]|(255&t[e++])<<8;class i{constructor(t){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,t=(0,r.toBytes)(t),(0,r.abytes)(t,32);const e=o(t,0),n=o(t,2),i=o(t,4),s=o(t,6),a=o(t,8),c=o(t,10),u=o(t,12),f=o(t,14);this.r[0]=8191&e,this.r[1]=8191&(e>>>13|n<<3),this.r[2]=7939&(n>>>10|i<<6),this.r[3]=8191&(i>>>7|s<<9),this.r[4]=255&(s>>>4|a<<12),this.r[5]=a>>>1&8190,this.r[6]=8191&(a>>>14|c<<2),this.r[7]=8065&(c>>>11|u<<5),this.r[8]=8191&(u>>>8|f<<8),this.r[9]=f>>>5&127;for(let e=0;e<8;e++)this.pad[e]=o(t,16+2*e)}process(t,e,n=!1){const r=n?0:2048,{h:i,r:s}=this,a=s[0],c=s[1],u=s[2],f=s[3],l=s[4],h=s[5],d=s[6],p=s[7],y=s[8],g=s[9],m=o(t,e+0),b=o(t,e+2),w=o(t,e+4),v=o(t,e+6),E=o(t,e+8),B=o(t,e+10),x=o(t,e+12),A=o(t,e+14);let S=i[0]+(8191&m),I=i[1]+(8191&(m>>>13|b<<3)),_=i[2]+(8191&(b>>>10|w<<6)),L=i[3]+(8191&(w>>>7|v<<9)),H=i[4]+(8191&(v>>>4|E<<12)),T=i[5]+(E>>>1&8191),O=i[6]+(8191&(E>>>14|B<<2)),R=i[7]+(8191&(B>>>11|x<<5)),k=i[8]+(8191&(x>>>8|A<<8)),C=i[9]+(A>>>5|r),U=0,P=U+S*a+I*(5*g)+_*(5*y)+L*(5*p)+H*(5*d);U=P>>>13,P&=8191,P+=T*(5*h)+O*(5*l)+R*(5*f)+k*(5*u)+C*(5*c),U+=P>>>13,P&=8191;let N=U+S*c+I*a+_*(5*g)+L*(5*y)+H*(5*p);U=N>>>13,N&=8191,N+=T*(5*d)+O*(5*h)+R*(5*l)+k*(5*f)+C*(5*u),U+=N>>>13,N&=8191;let V=U+S*u+I*c+_*a+L*(5*g)+H*(5*y);U=V>>>13,V&=8191,V+=T*(5*p)+O*(5*d)+R*(5*h)+k*(5*l)+C*(5*f),U+=V>>>13,V&=8191;let M=U+S*f+I*u+_*c+L*a+H*(5*g);U=M>>>13,M&=8191,M+=T*(5*y)+O*(5*p)+R*(5*d)+k*(5*h)+C*(5*l),U+=M>>>13,M&=8191;let F=U+S*l+I*f+_*u+L*c+H*a;U=F>>>13,F&=8191,F+=T*(5*g)+O*(5*y)+R*(5*p)+k*(5*d)+C*(5*h),U+=F>>>13,F&=8191;let D=U+S*h+I*l+_*f+L*u+H*c;U=D>>>13,D&=8191,D+=T*a+O*(5*g)+R*(5*y)+k*(5*p)+C*(5*d),U+=D>>>13,D&=8191;let j=U+S*d+I*h+_*l+L*f+H*u;U=j>>>13,j&=8191,j+=T*c+O*a+R*(5*g)+k*(5*y)+C*(5*p),U+=j>>>13,j&=8191;let G=U+S*p+I*d+_*h+L*l+H*f;U=G>>>13,G&=8191,G+=T*u+O*c+R*a+k*(5*g)+C*(5*y),U+=G>>>13,G&=8191;let Z=U+S*y+I*p+_*d+L*h+H*l;U=Z>>>13,Z&=8191,Z+=T*f+O*u+R*c+k*a+C*(5*g),U+=Z>>>13,Z&=8191;let W=U+S*g+I*y+_*p+L*d+H*h;U=W>>>13,W&=8191,W+=T*l+O*f+R*u+k*c+C*a,U+=W>>>13,W&=8191,U=(U<<2)+U|0,U=U+P|0,P=8191&U,U>>>=13,N+=U,i[0]=P,i[1]=N,i[2]=V,i[3]=M,i[4]=F,i[5]=D,i[6]=j,i[7]=G,i[8]=Z,i[9]=W}finalize(){const{h:t,pad:e}=this,n=new Uint16Array(10);let o=t[1]>>>13;t[1]&=8191;for(let e=2;e<10;e++)t[e]+=o,o=t[e]>>>13,t[e]&=8191;t[0]+=5*o,o=t[0]>>>13,t[0]&=8191,t[1]+=o,o=t[1]>>>13,t[1]&=8191,t[2]+=o,n[0]=t[0]+5,o=n[0]>>>13,n[0]&=8191;for(let e=1;e<10;e++)n[e]=t[e]+o,o=n[e]>>>13,n[e]&=8191;n[9]-=8192;let i=(1^o)-1;for(let t=0;t<10;t++)n[t]&=i;i=~i;for(let e=0;e<10;e++)t[e]=t[e]&i|n[e];t[0]=65535&(t[0]|t[1]<<13),t[1]=65535&(t[1]>>>3|t[2]<<10),t[2]=65535&(t[2]>>>6|t[3]<<7),t[3]=65535&(t[3]>>>9|t[4]<<4),t[4]=65535&(t[4]>>>12|t[5]<<1|t[6]<<14),t[5]=65535&(t[6]>>>2|t[7]<<11),t[6]=65535&(t[7]>>>5|t[8]<<8),t[7]=65535&(t[8]>>>8|t[9]<<5);let s=t[0]+e[0];t[0]=65535&s;for(let n=1;n<8;n++)s=(t[n]+e[n]|0)+(s>>>16)|0,t[n]=65535&s;(0,r.clean)(n)}update(t){(0,r.aexists)(this),t=(0,r.toBytes)(t),(0,r.abytes)(t);const{buffer:e,blockLen:n}=this,o=t.length;for(let r=0;r<o;){const i=Math.min(n-this.pos,o-r);if(i!==n)e.set(t.subarray(r,r+i),this.pos),this.pos+=i,r+=i,this.pos===n&&(this.process(e,0,!1),this.pos=0);else for(;n<=o-r;r+=n)this.process(t,r)}return this}destroy(){(0,r.clean)(this.h,this.r,this.buffer,this.pad)}digestInto(t){(0,r.aexists)(this),(0,r.aoutput)(t,this),this.finished=!0;const{buffer:e,h:n}=this;let{pos:o}=this;if(o){for(e[o++]=1;o<16;o++)e[o]=0;this.process(e,0,!0)}this.finalize();let i=0;for(let e=0;e<8;e++)t[i++]=n[e]>>>0,t[i++]=n[e]>>>8;return t}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const n=t.slice(0,e);return this.destroy(),n}}function s(t){const e=(e,n)=>t(n).update((0,r.toBytes)(e)).digest(),n=t(new Uint8Array(32));return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=e=>t(e),e}e.poly1305=s((t=>new i(t)))},1484:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.notImplemented=e.bitMask=void 0,e.isBytes=o,e.abytes=i,e.abool=function(t,e){if("boolean"!=typeof e)throw new Error(t+" boolean expected, got "+e)},e.numberToHexUnpadded=s,e.hexToNumber=a,e.bytesToHex=f,e.hexToBytes=d,e.bytesToNumberBE=function(t){return a(f(t))},e.bytesToNumberLE=function(t){return i(t),a(f(Uint8Array.from(t).reverse()))},e.numberToBytesBE=p,e.numberToBytesLE=function(t,e){return p(t,e).reverse()},e.numberToVarBytesBE=function(t){return d(s(t))},e.ensureBytes=function(t,e,n){let r;if("string"==typeof e)try{r=d(e)}catch(e){throw new Error(t+" must be hex string or Uint8Array, cause: "+e)}else{if(!o(e))throw new Error(t+" must be hex string or Uint8Array");r=Uint8Array.from(e)}const i=r.length;if("number"==typeof n&&i!==n)throw new Error(t+" of length "+n+" expected, got "+i);return r},e.concatBytes=y,e.equalBytes=function(t,e){if(t.length!==e.length)return!1;let n=0;for(let r=0;r<t.length;r++)n|=t[r]^e[r];return 0===n},e.utf8ToBytes=function(t){if("string"!=typeof t)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(t))},e.inRange=m,e.aInRange=function(t,e,n,r){if(!m(e,n,r))throw new Error("expected valid "+t+": "+n+" <= n < "+r+", got "+e)},e.bitLen=function(t){let e;for(e=0;t>n;t>>=r,e+=1);return e},e.bitGet=function(t,e){return t>>BigInt(e)&r},e.bitSet=function(t,e,o){return t|(o?r:n)<<BigInt(e)},e.createHmacDrbg=function(t,e,n){if("number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof e||e<2)throw new Error("qByteLen must be a number");if("function"!=typeof n)throw new Error("hmacFn must be a function");let r=b(t),o=b(t),i=0;const s=()=>{r.fill(1),o.fill(0),i=0},a=(...t)=>n(o,r,...t),c=(t=b(0))=>{o=a(w([0]),t),r=a(),0!==t.length&&(o=a(w([1]),t),r=a())},u=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let t=0;const n=[];for(;t<e;){r=a();const e=r.slice();n.push(e),t+=r.length}return y(...n)};return(t,e)=>{let n;for(s(),c(t);!(n=e(u()));)c();return s(),n}},e.validateObject=function(t,e,n={}){const r=(e,n,r)=>{const o=v[n];if("function"!=typeof o)throw new Error("invalid validator function");const i=t[e];if(!(r&&void 0===i||o(i,t)))throw new Error("param "+String(e)+" is invalid. Expected "+n+", got "+i)};for(const[t,n]of Object.entries(e))r(t,n,!1);for(const[t,e]of Object.entries(n))r(t,e,!0);return t},e.memoized=function(t){const e=new WeakMap;return(n,...r)=>{const o=e.get(n);if(void 0!==o)return o;const i=t(n,...r);return e.set(n,i),i}};const n=BigInt(0),r=BigInt(1);function o(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}function i(t){if(!o(t))throw new Error("Uint8Array expected")}function s(t){const e=t.toString(16);return 1&e.length?"0"+e:e}function a(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);return""===t?n:BigInt("0x"+t)}const c="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,u=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function f(t){if(i(t),c)return t.toHex();let e="";for(let n=0;n<t.length;n++)e+=u[t[n]];return e}const l={_0:48,_9:57,A:65,F:70,a:97,f:102};function h(t){return t>=l._0&&t<=l._9?t-l._0:t>=l.A&&t<=l.F?t-(l.A-10):t>=l.a&&t<=l.f?t-(l.a-10):void 0}function d(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);if(c)return Uint8Array.fromHex(t);const e=t.length,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let e=0,o=0;e<n;e++,o+=2){const n=h(t.charCodeAt(o)),i=h(t.charCodeAt(o+1));if(void 0===n||void 0===i){const e=t[o]+t[o+1];throw new Error('hex string expected, got non-hex character "'+e+'" at index '+o)}r[e]=16*n+i}return r}function p(t,e){return d(t.toString(16).padStart(2*e,"0"))}function y(...t){let e=0;for(let n=0;n<t.length;n++){const r=t[n];i(r),e+=r.length}const n=new Uint8Array(e);for(let e=0,r=0;e<t.length;e++){const o=t[e];n.set(o,r),r+=o.length}return n}const g=t=>"bigint"==typeof t&&n<=t;function m(t,e,n){return g(t)&&g(e)&&g(n)&&e<=t&&t<n}e.bitMask=t=>(r<<BigInt(t))-r;const b=t=>new Uint8Array(t),w=t=>Uint8Array.from(t);const v={bigint:t=>"bigint"==typeof t,function:t=>"function"==typeof t,boolean:t=>"boolean"==typeof t,string:t=>"string"==typeof t,stringOrUint8Array:t=>"string"==typeof t||o(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>"function"==typeof t&&Number.isSafeInteger(t.outputLen)};e.notImplemented=()=>{throw new Error("not implemented")}},1635:(t,e,n)=>{n.d(e,{Cl:()=>r,YH:()=>i,fX:()=>s,sH:()=>o});var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};function o(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}function i(t,e){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}Object.create;function s(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}Object.create;"function"==typeof SuppressedError&&SuppressedError},1666:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AEAD_TAG_LENGTH=e.XCHACHA20_NONCE_LENGTH=e.CURVE25519_PUBLIC_KEY_SIZE=e.ETH_PUBLIC_KEY_SIZE=e.UNCOMPRESSED_PUBLIC_KEY_SIZE=e.COMPRESSED_PUBLIC_KEY_SIZE=e.SECRET_KEY_LENGTH=void 0,e.SECRET_KEY_LENGTH=32,e.COMPRESSED_PUBLIC_KEY_SIZE=33,e.UNCOMPRESSED_PUBLIC_KEY_SIZE=65,e.ETH_PUBLIC_KEY_SIZE=64,e.CURVE25519_PUBLIC_KEY_SIZE=32,e.XCHACHA20_NONCE_LENGTH=24,e.AEAD_TAG_LENGTH=16},1705:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DER=e.DERErr=void 0,e.weierstrassPoints=p,e.weierstrass=function(t){const n=function(t){const e=(0,r.validateBasic)(t);return(0,i.validateObject)(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}(t),{Fp:a,n:l,nByteLength:h,nBitLength:d}=n,y=a.BYTES+1,g=2*a.BYTES+1;function m(t){return(0,o.mod)(t,l)}function b(t){return(0,o.invert)(t,l)}const{ProjectivePoint:w,normPrivateKeyToScalar:v,weierstrassEquation:E,isWithinCurveOrder:B}=p({...n,toBytes(t,e,n){const r=e.toAffine(),o=a.toBytes(r.x),s=i.concatBytes;return(0,i.abool)("isCompressed",n),n?s(Uint8Array.from([e.hasEvenY()?2:3]),o):s(Uint8Array.from([4]),o,a.toBytes(r.y))},fromBytes(t){const e=t.length,n=t[0],r=t.subarray(1);if(e!==y||2!==n&&3!==n){if(e===g&&4===n){return{x:a.fromBytes(r.subarray(0,a.BYTES)),y:a.fromBytes(r.subarray(a.BYTES,2*a.BYTES))}}throw new Error("invalid Point, expected length of "+y+", or uncompressed "+g+", got "+e)}{const t=(0,i.bytesToNumberBE)(r);if(!(0,i.inRange)(t,f,a.ORDER))throw new Error("Point is not on curve");const e=E(t);let o;try{o=a.sqrt(e)}catch(t){const e=t instanceof Error?": "+t.message:"";throw new Error("Point is not on curve"+e)}return!(1&~n)!==((o&f)===f)&&(o=a.neg(o)),{x:t,y:o}}}});function x(t){return t>l>>f}const A=(t,e,n)=>(0,i.bytesToNumberBE)(t.slice(e,n));class S{constructor(t,e,n){(0,i.aInRange)("r",t,f,l),(0,i.aInRange)("s",e,f,l),this.r=t,this.s=e,null!=n&&(this.recovery=n),Object.freeze(this)}static fromCompact(t){const e=h;return t=(0,i.ensureBytes)("compactSignature",t,2*e),new S(A(t,0,e),A(t,e,2*e))}static fromDER(t){const{r:n,s:r}=e.DER.toSig((0,i.ensureBytes)("DER",t));return new S(n,r)}assertValidity(){}addRecoveryBit(t){return new S(this.r,this.s,t)}recoverPublicKey(t){const{r:e,s:r,recovery:o}=this,s=H((0,i.ensureBytes)("msgHash",t));if(null==o||![0,1,2,3].includes(o))throw new Error("recovery id invalid");const u=2===o||3===o?e+n.n:e;if(u>=a.ORDER)throw new Error("recovery id 2 or 3 invalid");const f=1&o?"03":"02",l=w.fromHex(f+c(u,a.BYTES)),h=b(u),d=m(-s*h),p=m(r*h),y=w.BASE.multiplyAndAddUnsafe(l,d,p);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return x(this.s)}normalizeS(){return this.hasHighS()?new S(this.r,m(-this.s),this.recovery):this}toDERRawBytes(){return(0,i.hexToBytes)(this.toDERHex())}toDERHex(){return e.DER.hexFromSig(this)}toCompactRawBytes(){return(0,i.hexToBytes)(this.toCompactHex())}toCompactHex(){const t=h;return c(this.r,t)+c(this.s,t)}}const I={isValidPrivateKey(t){try{return v(t),!0}catch(t){return!1}},normPrivateKeyToScalar:v,randomPrivateKey:()=>{const t=(0,o.getMinHashLength)(n.n);return(0,o.mapHashToField)(n.randomBytes(t),n.n)},precompute:(t=8,e=w.BASE)=>(e._setWindowSize(t),e.multiply(BigInt(3)),e)};function _(t){if("bigint"==typeof t)return!1;if(t instanceof w)return!0;const e=(0,i.ensureBytes)("key",t).length,r=a.BYTES,o=r+1,s=2*r+1;return n.allowedPrivateKeyLengths||h===o?void 0:e===o||e===s}const L=n.bits2int||function(t){if(t.length>8192)throw new Error("input is too large");const e=(0,i.bytesToNumberBE)(t),n=8*t.length-d;return n>0?e>>BigInt(n):e},H=n.bits2int_modN||function(t){return m(L(t))},T=(0,i.bitMask)(d);function O(t){return(0,i.aInRange)("num < 2^"+d,t,u,T),(0,i.numberToBytesBE)(t,h)}function R(t,e,r=k){if(["recovered","canonical"].some((t=>t in r)))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:c}=n;let{lowS:l,prehash:h,extraEntropy:d}=r;null==l&&(l=!0),t=(0,i.ensureBytes)("msgHash",t),s(r),h&&(t=(0,i.ensureBytes)("prehashed msgHash",o(t)));const p=H(t),y=v(e),g=[O(y),O(p)];if(null!=d&&!1!==d){const t=!0===d?c(a.BYTES):d;g.push((0,i.ensureBytes)("extraEntropy",t))}const E=(0,i.concatBytes)(...g),A=p;return{seed:E,k2sig:function(t){const e=L(t);if(!B(e))return;const n=b(e),r=w.BASE.multiply(e).toAffine(),o=m(r.x);if(o===u)return;const i=m(n*m(A+o*y));if(i===u)return;let s=(r.x===o?0:2)|Number(r.y&f),a=i;return l&&x(i)&&(a=function(t){return x(t)?m(-t):t}(i),s^=1),new S(o,a,s)}}}const k={lowS:n.lowS,prehash:!1},C={lowS:n.lowS,prehash:!1};return w.BASE._setWindowSize(8),{CURVE:n,getPublicKey:function(t,e=!0){return w.fromPrivateKey(t).toRawBytes(e)},getSharedSecret:function(t,e,n=!0){if(!0===_(t))throw new Error("first arg must be private key");if(!1===_(e))throw new Error("second arg must be public key");return w.fromHex(e).multiply(v(t)).toRawBytes(n)},sign:function(t,e,r=k){const{seed:o,k2sig:s}=R(t,e,r),a=n;return(0,i.createHmacDrbg)(a.hash.outputLen,a.nByteLength,a.hmac)(o,s)},verify:function(t,r,o,a=C){const c=t;r=(0,i.ensureBytes)("msgHash",r),o=(0,i.ensureBytes)("publicKey",o);const{lowS:u,prehash:f,format:l}=a;if(s(a),"strict"in a)throw new Error("options.strict was renamed to lowS");if(void 0!==l&&"compact"!==l&&"der"!==l)throw new Error("format must be compact or der");const h="string"==typeof c||(0,i.isBytes)(c),d=!h&&!l&&"object"==typeof c&&null!==c&&"bigint"==typeof c.r&&"bigint"==typeof c.s;if(!h&&!d)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let p,y;try{if(d&&(p=new S(c.r,c.s)),h){try{"compact"!==l&&(p=S.fromDER(c))}catch(t){if(!(t instanceof e.DER.Err))throw t}p||"der"===l||(p=S.fromCompact(c))}y=w.fromHex(o)}catch(t){return!1}if(!p)return!1;if(u&&p.hasHighS())return!1;f&&(r=n.hash(r));const{r:g,s:v}=p,E=H(r),B=b(v),x=m(E*B),A=m(g*B),I=w.BASE.multiplyAndAddUnsafe(y,x,A)?.toAffine();if(!I)return!1;return m(I.x)===g},ProjectivePoint:w,Signature:S,utils:I}},e.SWUFpSqrtRatio=y,e.mapToCurveSimpleSWU=function(t,e){if((0,o.validateField)(t),!t.isValid(e.A)||!t.isValid(e.B)||!t.isValid(e.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const n=y(t,e.Z);if(!t.isOdd)throw new Error("Fp.isOdd is not implemented!");return r=>{let i,s,a,c,u,f,l,h;i=t.sqr(r),i=t.mul(i,e.Z),s=t.sqr(i),s=t.add(s,i),a=t.add(s,t.ONE),a=t.mul(a,e.B),c=t.cmov(e.Z,t.neg(s),!t.eql(s,t.ZERO)),c=t.mul(c,e.A),s=t.sqr(a),f=t.sqr(c),u=t.mul(f,e.A),s=t.add(s,u),s=t.mul(s,a),f=t.mul(f,c),u=t.mul(f,e.B),s=t.add(s,u),l=t.mul(i,a);const{isValid:d,value:p}=n(s,f);h=t.mul(i,r),h=t.mul(h,p),l=t.cmov(l,a,d),h=t.cmov(h,p,d);const y=t.isOdd(r)===t.isOdd(h);h=t.cmov(t.neg(h),h,y);const g=(0,o.FpInvertBatch)(t,[c],!0)[0];return l=t.mul(l,g),{x:l,y:h}}};const r=n(2422),o=n(4967),i=n(1484);function s(t){void 0!==t.lowS&&(0,i.abool)("lowS",t.lowS),void 0!==t.prehash&&(0,i.abool)("prehash",t.prehash)}class a extends Error{constructor(t=""){super(t)}}function c(t,e){return(0,i.bytesToHex)((0,i.numberToBytesBE)(t,e))}e.DERErr=a,e.DER={Err:a,_tlv:{encode:(t,n)=>{const{Err:r}=e.DER;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(1&n.length)throw new r("tlv.encode: unpadded data");const o=n.length/2,s=(0,i.numberToHexUnpadded)(o);if(s.length/2&128)throw new r("tlv.encode: long form length too big");const a=o>127?(0,i.numberToHexUnpadded)(s.length/2|128):"";return(0,i.numberToHexUnpadded)(t)+a+s+n},decode(t,n){const{Err:r}=e.DER;let o=0;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(n.length<2||n[o++]!==t)throw new r("tlv.decode: wrong tlv");const i=n[o++];let s=0;if(!!(128&i)){const t=127&i;if(!t)throw new r("tlv.decode(long): indefinite length not supported");if(t>4)throw new r("tlv.decode(long): byte length is too big");const e=n.subarray(o,o+t);if(e.length!==t)throw new r("tlv.decode: length bytes not complete");if(0===e[0])throw new r("tlv.decode(long): zero leftmost byte");for(const t of e)s=s<<8|t;if(o+=t,s<128)throw new r("tlv.decode(long): not minimal encoding")}else s=i;const a=n.subarray(o,o+s);if(a.length!==s)throw new r("tlv.decode: wrong value length");return{v:a,l:n.subarray(o+s)}}},_int:{encode(t){const{Err:n}=e.DER;if(t<u)throw new n("integer: negative integers are not allowed");let r=(0,i.numberToHexUnpadded)(t);if(8&Number.parseInt(r[0],16)&&(r="00"+r),1&r.length)throw new n("unexpected DER parsing assertion: unpadded hex");return r},decode(t){const{Err:n}=e.DER;if(128&t[0])throw new n("invalid signature integer: negative");if(0===t[0]&&!(128&t[1]))throw new n("invalid signature integer: unnecessary leading zero");return(0,i.bytesToNumberBE)(t)}},toSig(t){const{Err:n,_int:r,_tlv:o}=e.DER,s=(0,i.ensureBytes)("signature",t),{v:a,l:c}=o.decode(48,s);if(c.length)throw new n("invalid signature: left bytes after parsing");const{v:u,l:f}=o.decode(2,a),{v:l,l:h}=o.decode(2,f);if(h.length)throw new n("invalid signature: left bytes after parsing");return{r:r.decode(u),s:r.decode(l)}},hexFromSig(t){const{_tlv:n,_int:r}=e.DER,o=n.encode(2,r.encode(t.r))+n.encode(2,r.encode(t.s));return n.encode(48,o)}};const u=BigInt(0),f=BigInt(1),l=BigInt(2),h=BigInt(3),d=BigInt(4);function p(t){const e=function(t){const e=(0,r.validateBasic)(t);(0,i.validateObject)(e,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:n,Fp:o,a:s}=e;if(n){if(!o.eql(s,o.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...e})}(t),{Fp:n}=e,s=(0,o.Field)(e.n,e.nBitLength),a=e.toBytes||((t,e,r)=>{const o=e.toAffine();return(0,i.concatBytes)(Uint8Array.from([4]),n.toBytes(o.x),n.toBytes(o.y))}),c=e.fromBytes||(t=>{const e=t.subarray(1);return{x:n.fromBytes(e.subarray(0,n.BYTES)),y:n.fromBytes(e.subarray(n.BYTES,2*n.BYTES))}});function l(t){const{a:r,b:o}=e,i=n.sqr(t),s=n.mul(i,t);return n.add(n.add(s,n.mul(t,r)),o)}function p(t,e){const r=n.sqr(e),o=l(t);return n.eql(r,o)}if(!p(e.Gx,e.Gy))throw new Error("bad curve params: generator point");const y=n.mul(n.pow(e.a,h),d),g=n.mul(n.sqr(e.b),BigInt(27));if(n.is0(n.add(y,g)))throw new Error("bad curve params: a or b");function m(t){const{allowedPrivateKeyLengths:n,nByteLength:r,wrapPrivateKey:s,n:a}=e;if(n&&"bigint"!=typeof t){if((0,i.isBytes)(t)&&(t=(0,i.bytesToHex)(t)),"string"!=typeof t||!n.includes(t.length))throw new Error("invalid private key");t=t.padStart(2*r,"0")}let c;try{c="bigint"==typeof t?t:(0,i.bytesToNumberBE)((0,i.ensureBytes)("private key",t,r))}catch(e){throw new Error("invalid private key, expected hex or "+r+" bytes, got "+typeof t)}return s&&(c=(0,o.mod)(c,a)),(0,i.aInRange)("private key",c,f,a),c}function b(t){if(!(t instanceof E))throw new Error("ProjectivePoint expected")}const w=(0,i.memoized)(((t,e)=>{const{px:r,py:o,pz:i}=t;if(n.eql(i,n.ONE))return{x:r,y:o};const s=t.is0();null==e&&(e=s?n.ONE:n.inv(i));const a=n.mul(r,e),c=n.mul(o,e),u=n.mul(i,e);if(s)return{x:n.ZERO,y:n.ZERO};if(!n.eql(u,n.ONE))throw new Error("invZ was invalid");return{x:a,y:c}})),v=(0,i.memoized)((t=>{if(t.is0()){if(e.allowInfinityPoint&&!n.is0(t.py))return;throw new Error("bad point: ZERO")}const{x:r,y:o}=t.toAffine();if(!n.isValid(r)||!n.isValid(o))throw new Error("bad point: x or y not FE");if(!p(r,o))throw new Error("bad point: equation left != right");if(!t.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0}));class E{constructor(t,e,r){if(null==t||!n.isValid(t))throw new Error("x required");if(null==e||!n.isValid(e)||n.is0(e))throw new Error("y required");if(null==r||!n.isValid(r))throw new Error("z required");this.px=t,this.py=e,this.pz=r,Object.freeze(this)}static fromAffine(t){const{x:e,y:r}=t||{};if(!t||!n.isValid(e)||!n.isValid(r))throw new Error("invalid affine point");if(t instanceof E)throw new Error("projective point not allowed");const o=t=>n.eql(t,n.ZERO);return o(e)&&o(r)?E.ZERO:new E(e,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(t){const e=(0,o.FpInvertBatch)(n,t.map((t=>t.pz)));return t.map(((t,n)=>t.toAffine(e[n]))).map(E.fromAffine)}static fromHex(t){const e=E.fromAffine(c((0,i.ensureBytes)("pointHex",t)));return e.assertValidity(),e}static fromPrivateKey(t){return E.BASE.multiply(m(t))}static msm(t,e){return(0,r.pippenger)(E,s,t,e)}_setWindowSize(t){A.setWindowSize(this,t)}assertValidity(){v(this)}hasEvenY(){const{y:t}=this.toAffine();if(n.isOdd)return!n.isOdd(t);throw new Error("Field doesn't support isOdd")}equals(t){b(t);const{px:e,py:r,pz:o}=this,{px:i,py:s,pz:a}=t,c=n.eql(n.mul(e,a),n.mul(i,o)),u=n.eql(n.mul(r,a),n.mul(s,o));return c&&u}negate(){return new E(this.px,n.neg(this.py),this.pz)}double(){const{a:t,b:r}=e,o=n.mul(r,h),{px:i,py:s,pz:a}=this;let c=n.ZERO,u=n.ZERO,f=n.ZERO,l=n.mul(i,i),d=n.mul(s,s),p=n.mul(a,a),y=n.mul(i,s);return y=n.add(y,y),f=n.mul(i,a),f=n.add(f,f),c=n.mul(t,f),u=n.mul(o,p),u=n.add(c,u),c=n.sub(d,u),u=n.add(d,u),u=n.mul(c,u),c=n.mul(y,c),f=n.mul(o,f),p=n.mul(t,p),y=n.sub(l,p),y=n.mul(t,y),y=n.add(y,f),f=n.add(l,l),l=n.add(f,l),l=n.add(l,p),l=n.mul(l,y),u=n.add(u,l),p=n.mul(s,a),p=n.add(p,p),l=n.mul(p,y),c=n.sub(c,l),f=n.mul(p,d),f=n.add(f,f),f=n.add(f,f),new E(c,u,f)}add(t){b(t);const{px:r,py:o,pz:i}=this,{px:s,py:a,pz:c}=t;let u=n.ZERO,f=n.ZERO,l=n.ZERO;const d=e.a,p=n.mul(e.b,h);let y=n.mul(r,s),g=n.mul(o,a),m=n.mul(i,c),w=n.add(r,o),v=n.add(s,a);w=n.mul(w,v),v=n.add(y,g),w=n.sub(w,v),v=n.add(r,i);let B=n.add(s,c);return v=n.mul(v,B),B=n.add(y,m),v=n.sub(v,B),B=n.add(o,i),u=n.add(a,c),B=n.mul(B,u),u=n.add(g,m),B=n.sub(B,u),l=n.mul(d,v),u=n.mul(p,m),l=n.add(u,l),u=n.sub(g,l),l=n.add(g,l),f=n.mul(u,l),g=n.add(y,y),g=n.add(g,y),m=n.mul(d,m),v=n.mul(p,v),g=n.add(g,m),m=n.sub(y,m),m=n.mul(d,m),v=n.add(v,m),y=n.mul(g,v),f=n.add(f,y),y=n.mul(B,v),u=n.mul(w,u),u=n.sub(u,y),y=n.mul(w,g),l=n.mul(B,l),l=n.add(l,y),new E(u,f,l)}subtract(t){return this.add(t.negate())}is0(){return this.equals(E.ZERO)}wNAF(t){return A.wNAFCached(this,t,E.normalizeZ)}multiplyUnsafe(t){const{endo:r,n:o}=e;(0,i.aInRange)("scalar",t,u,o);const s=E.ZERO;if(t===u)return s;if(this.is0()||t===f)return this;if(!r||A.hasPrecomputes(this))return A.wNAFCachedUnsafe(this,t,E.normalizeZ);let{k1neg:a,k1:c,k2neg:l,k2:h}=r.splitScalar(t),d=s,p=s,y=this;for(;c>u||h>u;)c&f&&(d=d.add(y)),h&f&&(p=p.add(y)),y=y.double(),c>>=f,h>>=f;return a&&(d=d.negate()),l&&(p=p.negate()),p=new E(n.mul(p.px,r.beta),p.py,p.pz),d.add(p)}multiply(t){const{endo:r,n:o}=e;let s,a;if((0,i.aInRange)("scalar",t,f,o),r){const{k1neg:e,k1:o,k2neg:i,k2:c}=r.splitScalar(t);let{p:u,f}=this.wNAF(o),{p:l,f:h}=this.wNAF(c);u=A.constTimeNegate(e,u),l=A.constTimeNegate(i,l),l=new E(n.mul(l.px,r.beta),l.py,l.pz),s=u.add(l),a=f.add(h)}else{const{p:e,f:n}=this.wNAF(t);s=e,a=n}return E.normalizeZ([s,a])[0]}multiplyAndAddUnsafe(t,e,n){const r=E.BASE,o=(t,e)=>e!==u&&e!==f&&t.equals(r)?t.multiply(e):t.multiplyUnsafe(e),i=o(this,e).add(o(t,n));return i.is0()?void 0:i}toAffine(t){return w(this,t)}isTorsionFree(){const{h:t,isTorsionFree:n}=e;if(t===f)return!0;if(n)return n(E,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:t,clearCofactor:n}=e;return t===f?this:n?n(E,this):this.multiplyUnsafe(e.h)}toRawBytes(t=!0){return(0,i.abool)("isCompressed",t),this.assertValidity(),a(E,this,t)}toHex(t=!0){return(0,i.abool)("isCompressed",t),(0,i.bytesToHex)(this.toRawBytes(t))}}E.BASE=new E(e.Gx,e.Gy,n.ONE),E.ZERO=new E(n.ZERO,n.ONE,n.ZERO);const{endo:B,nBitLength:x}=e,A=(0,r.wNAF)(E,B?Math.ceil(x/2):x);return{CURVE:e,ProjectivePoint:E,normPrivateKeyToScalar:m,weierstrassEquation:l,isWithinCurveOrder:function(t){return(0,i.inRange)(t,f,e.n)}}}function y(t,e){const n=t.ORDER;let r=u;for(let t=n-f;t%l===u;t/=l)r+=f;const o=r,i=l<<o-f-f,s=i*l,a=(n-f)/s,c=(a-f)/l,p=s-f,y=i,g=t.pow(e,a),m=t.pow(e,(a+f)/l);let b=(e,n)=>{let r=g,i=t.pow(n,p),s=t.sqr(i);s=t.mul(s,n);let a=t.mul(e,s);a=t.pow(a,c),a=t.mul(a,i),i=t.mul(a,n),s=t.mul(a,e);let u=t.mul(s,i);a=t.pow(u,y);let h=t.eql(a,t.ONE);i=t.mul(s,m),a=t.mul(u,r),s=t.cmov(i,s,h),u=t.cmov(a,u,h);for(let e=o;e>f;e--){let n=e-l;n=l<<n-f;let o=t.pow(u,n);const a=t.eql(o,t.ONE);i=t.mul(s,r),r=t.mul(r,r),o=t.mul(u,r),s=t.cmov(i,s,a),u=t.cmov(o,u,a)}return{isValid:h,value:s}};if(t.ORDER%d===h){const n=(t.ORDER-h)/d,r=t.sqrt(t.neg(e));b=(e,o)=>{let i=t.sqr(o);const s=t.mul(e,o);i=t.mul(i,s);let a=t.pow(i,n);a=t.mul(a,s);const c=t.mul(a,r),u=t.mul(t.sqr(a),o),f=t.eql(u,e);return{isValid:f,value:t.cmov(c,a,f)}}}return b}},1761:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.expand_message_xmd=u,e.expand_message_xof=f,e.hash_to_field=l,e.isogenyMap=function(t,e){const n=e.map((t=>Array.from(t).reverse()));return(e,o)=>{const[i,s,a,c]=n.map((n=>n.reduce(((n,r)=>t.add(t.mul(n,e),r))))),[u,f]=(0,r.FpInvertBatch)(t,[s,c],!0);return e=t.mul(i,u),o=t.mul(o,t.mul(a,f)),{x:e,y:o}}},e.createHasher=function(t,e,n){if("function"!=typeof e)throw new Error("mapToCurve() must be defined");function r(n){return t.fromAffine(e(n))}function o(e){const n=e.clearCofactor();return n.equals(t.ZERO)?t.ZERO:(n.assertValidity(),n)}return{defaults:n,hashToCurve(t,e){const i=l(t,2,{...n,DST:n.DST,...e}),s=r(i[0]),a=r(i[1]);return o(s.add(a))},encodeToCurve:(t,e)=>o(r(l(t,1,{...n,DST:n.encodeDST,...e})[0])),mapToCurve(t){if(!Array.isArray(t))throw new Error("expected array of bigints");for(const e of t)if("bigint"!=typeof e)throw new Error("expected array of bigints");return o(r(t))}}};const r=n(4967),o=n(1484),i=o.bytesToNumberBE;function s(t,e){if(c(t),c(e),t<0||t>=1<<8*e)throw new Error("invalid I2OSP input: "+t);const n=Array.from({length:e}).fill(0);for(let r=e-1;r>=0;r--)n[r]=255&t,t>>>=8;return new Uint8Array(n)}function a(t,e){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t[r]^e[r];return n}function c(t){if(!Number.isSafeInteger(t))throw new Error("number expected")}function u(t,e,n,r){(0,o.abytes)(t),(0,o.abytes)(e),c(n),e.length>255&&(e=r((0,o.concatBytes)((0,o.utf8ToBytes)("H2C-OVERSIZE-DST-"),e)));const{outputLen:i,blockLen:u}=r,f=Math.ceil(n/i);if(n>65535||f>255)throw new Error("expand_message_xmd: invalid lenInBytes");const l=(0,o.concatBytes)(e,s(e.length,1)),h=s(0,u),d=s(n,2),p=new Array(f),y=r((0,o.concatBytes)(h,t,d,s(0,1),l));p[0]=r((0,o.concatBytes)(y,s(1,1),l));for(let t=1;t<=f;t++){const e=[a(y,p[t-1]),s(t+1,1),l];p[t]=r((0,o.concatBytes)(...e))}return(0,o.concatBytes)(...p).slice(0,n)}function f(t,e,n,r,i){if((0,o.abytes)(t),(0,o.abytes)(e),c(n),e.length>255){const t=Math.ceil(2*r/8);e=i.create({dkLen:t}).update((0,o.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(e).digest()}if(n>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:n}).update(t).update(s(n,2)).update(e).update(s(e.length,1)).digest()}function l(t,e,n){(0,o.validateObject)(n,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:s,k:a,m:l,hash:h,expand:d,DST:p}=n;(0,o.abytes)(t),c(e);const y="string"==typeof p?(0,o.utf8ToBytes)(p):p,g=s.toString(2).length,m=Math.ceil((g+a)/8),b=e*l*m;let w;if("xmd"===d)w=u(t,y,b,h);else if("xof"===d)w=f(t,y,b,a,h);else{if("_internal_pass"!==d)throw new Error('expand must be "xmd" or "xof"');w=t}const v=new Array(e);for(let t=0;t<e;t++){const e=new Array(l);for(let n=0;n<l;n++){const o=m*(n+t*l),a=w.subarray(o,o+m);e[n]=(0,r.mod)(i(a),s)}v[t]=e}return v}},2158:function(t,e,n){var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(9378),e),o(n(244),e),o(n(3503),e),o(n(7757),e)},2318:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toBig=e.shrSL=e.shrSH=e.rotrSL=e.rotrSH=e.rotrBL=e.rotrBH=e.rotr32L=e.rotr32H=e.rotlSL=e.rotlSH=e.rotlBL=e.rotlBH=e.add5L=e.add5H=e.add4L=e.add4H=e.add3L=e.add3H=void 0,e.add=w,e.fromBig=o,e.split=i;const n=BigInt(2**32-1),r=BigInt(32);function o(t,e=!1){return e?{h:Number(t&n),l:Number(t>>r&n)}:{h:0|Number(t>>r&n),l:0|Number(t&n)}}function i(t,e=!1){const n=t.length;let r=new Uint32Array(n),i=new Uint32Array(n);for(let s=0;s<n;s++){const{h:n,l:a}=o(t[s],e);[r[s],i[s]]=[n,a]}return[r,i]}const s=(t,e)=>BigInt(t>>>0)<<r|BigInt(e>>>0);e.toBig=s;const a=(t,e,n)=>t>>>n;e.shrSH=a;const c=(t,e,n)=>t<<32-n|e>>>n;e.shrSL=c;const u=(t,e,n)=>t>>>n|e<<32-n;e.rotrSH=u;const f=(t,e,n)=>t<<32-n|e>>>n;e.rotrSL=f;const l=(t,e,n)=>t<<64-n|e>>>n-32;e.rotrBH=l;const h=(t,e,n)=>t>>>n-32|e<<64-n;e.rotrBL=h;const d=(t,e)=>e;e.rotr32H=d;const p=(t,e)=>t;e.rotr32L=p;const y=(t,e,n)=>t<<n|e>>>32-n;e.rotlSH=y;const g=(t,e,n)=>e<<n|t>>>32-n;e.rotlSL=g;const m=(t,e,n)=>e<<n-32|t>>>64-n;e.rotlBH=m;const b=(t,e,n)=>t<<n-32|e>>>64-n;function w(t,e,n,r){const o=(e>>>0)+(r>>>0);return{h:t+n+(o/2**32|0)|0,l:0|o}}e.rotlBL=b;const v=(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0);e.add3L=v;const E=(t,e,n,r)=>e+n+r+(t/2**32|0)|0;e.add3H=E;const B=(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0);e.add4L=B;const x=(t,e,n,r,o)=>e+n+r+o+(t/2**32|0)|0;e.add4H=x;const A=(t,e,n,r,o)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(o>>>0);e.add5L=A;const S=(t,e,n,r,o,i)=>e+n+r+o+i+(t/2**32|0)|0;e.add5H=S;const I={fromBig:o,split:i,toBig:s,shrSH:a,shrSL:c,rotrSH:u,rotrSL:f,rotrBH:l,rotrBL:h,rotr32H:d,rotr32L:p,rotlSH:y,rotlSL:g,rotlBH:m,rotlBL:b,add:w,add3L:v,add3H:E,add4L:B,add4H:x,add5H:S,add5L:A};e.default=I},2422:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.wNAF=function(t,e){return{constTimeNegate:a,hasPrecomputes:t=>1!==y(t),unsafeLadder(e,n,r=t.ZERO){let o=e;for(;n>i;)n&s&&(r=r.add(o)),o=o.double(),n>>=s;return r},precomputeWindow(t,n){const{windows:r,windowSize:o}=u(n,e),i=[];let s=t,a=s;for(let t=0;t<r;t++){a=s,i.push(a);for(let t=1;t<o;t++)a=a.add(s),i.push(a);s=a.double()}return i},wNAF(n,r,o){let i=t.ZERO,s=t.BASE;const c=u(n,e);for(let t=0;t<c.windows;t++){const{nextN:e,offset:n,isZero:u,isNeg:l,isNegF:h,offsetF:d}=f(o,t,c);o=e,u?s=s.add(a(h,r[d])):i=i.add(a(l,r[n]))}return{p:i,f:s}},wNAFUnsafe(n,r,o,s=t.ZERO){const a=u(n,e);for(let t=0;t<a.windows&&o!==i;t++){const{nextN:e,offset:n,isZero:i,isNeg:c}=f(o,t,a);if(o=e,!i){const t=r[n];s=s.add(c?t.negate():t)}}return s},getPrecomputes(t,e,n){let r=d.get(e);return r||(r=this.precomputeWindow(e,t),1!==t&&d.set(e,n(r))),r},wNAFCached(t,e,n){const r=y(t);return this.wNAF(r,this.getPrecomputes(r,t,n),e)},wNAFCachedUnsafe(t,e,n,r){const o=y(t);return 1===o?this.unsafeLadder(t,e,r):this.wNAFUnsafe(o,this.getPrecomputes(o,t,n),e,r)},setWindowSize(t,n){c(n,e),p.set(t,n),d.delete(t)}}},e.pippenger=function(t,e,n,r){l(n,t),h(r,e);const i=n.length,s=r.length;if(i!==s)throw new Error("arrays of points and scalars must have equal length");const a=t.ZERO,c=(0,o.bitLen)(BigInt(i));let u=1;c>12?u=c-3:c>4?u=c-2:c>0&&(u=2);const f=(0,o.bitMask)(u),d=new Array(Number(f)+1).fill(a),p=Math.floor((e.BITS-1)/u)*u;let y=a;for(let t=p;t>=0;t-=u){d.fill(a);for(let e=0;e<s;e++){const o=r[e],i=Number(o>>BigInt(t)&f);d[i]=d[i].add(n[e])}let e=a;for(let t=d.length-1,n=a;t>0;t--)n=n.add(d[t]),e=e.add(n);if(y=y.add(e),0!==t)for(let t=0;t<u;t++)y=y.double()}return y},e.precomputeMSMUnsafe=function(t,e,n,r){c(r,e.BITS),l(n,t);const i=t.ZERO,s=2**r-1,a=Math.ceil(e.BITS/r),u=(0,o.bitMask)(r),f=n.map((t=>{const e=[];for(let n=0,r=t;n<s;n++)e.push(r),r=r.add(t);return e}));return t=>{if(h(t,e),t.length>n.length)throw new Error("array of scalars must be smaller than array of points");let o=i;for(let e=0;e<a;e++){if(o!==i)for(let t=0;t<r;t++)o=o.double();const n=BigInt(a*r-(e+1)*r);for(let e=0;e<t.length;e++){const r=t[e],i=Number(r>>n&u);i&&(o=o.add(f[e][i-1]))}}return o}},e.validateBasic=function(t){return(0,r.validateField)(t.Fp),(0,o.validateObject)(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,r.nLength)(t.n,t.nBitLength),...t,p:t.Fp.ORDER})};const r=n(4967),o=n(1484),i=BigInt(0),s=BigInt(1);function a(t,e){const n=e.negate();return t?n:e}function c(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw new Error("invalid window size, expected [1.."+e+"], got W="+t)}function u(t,e){c(t,e);const n=2**t;return{windows:Math.ceil(e/t)+1,windowSize:2**(t-1),mask:(0,o.bitMask)(t),maxNumber:n,shiftBy:BigInt(t)}}function f(t,e,n){const{windowSize:r,mask:o,maxNumber:i,shiftBy:a}=n;let c=Number(t&o),u=t>>a;c>r&&(c-=i,u+=s);const f=e*r;return{nextN:u,offset:f+Math.abs(c)-1,isZero:0===c,isNeg:c<0,isNegF:e%2!=0,offsetF:f}}function l(t,e){if(!Array.isArray(t))throw new Error("array expected");t.forEach(((t,n)=>{if(!(t instanceof e))throw new Error("invalid point at index "+n)}))}function h(t,e){if(!Array.isArray(t))throw new Error("array of scalars expected");t.forEach(((t,n)=>{if(!e.isValid(t))throw new Error("invalid scalar at index "+n)}))}const d=new WeakMap,p=new WeakMap;function y(t){return p.get(t)||1}},2506:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.rotl=function(t,e){return t<<e|t>>>32-e},e.createCipher=function(t,e){const{allowShortKeys:n,extendNonceFn:o,counterLength:i,counterRight:s,rounds:p}=(0,r.checkOpts)({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},e);if("function"!=typeof t)throw new Error("core must be a function");return(0,r.anumber)(i),(0,r.anumber)(p),(0,r.abool)(s),(0,r.abool)(n),(e,y,g,m,b=0)=>{(0,r.abytes)(e),(0,r.abytes)(y),(0,r.abytes)(g);const w=g.length;if(void 0===m&&(m=new Uint8Array(w)),(0,r.abytes)(m),(0,r.anumber)(b),b<0||b>=h)throw new Error("arx: counter overflow");if(m.length<w)throw new Error(`arx: output (${m.length}) is shorter than data (${w})`);const v=[];let E,B,x=e.length;if(32===x)v.push(E=(0,r.copyBytes)(e)),B=c;else{if(16!==x||!n)throw new Error(`arx: invalid 32-byte key, got length=${x}`);E=new Uint8Array(32),E.set(e),E.set(e,16),B=a,v.push(E)}u(y)||v.push(y=(0,r.copyBytes)(y));const A=(0,r.u32)(E);if(o){if(24!==y.length)throw new Error("arx: extended nonce must be 24 bytes");o(B,A,(0,r.u32)(y.subarray(0,16)),A),y=y.subarray(16)}const S=16-i;if(S!==y.length)throw new Error(`arx: nonce must be ${S} or 16 bytes`);if(12!==S){const t=new Uint8Array(12);t.set(y,s?0:12-y.length),y=t,v.push(y)}const I=(0,r.u32)(y);return function(t,e,n,o,i,s,a,c){const p=i.length,y=new Uint8Array(f),g=(0,r.u32)(y),m=u(i)&&u(s),b=m?(0,r.u32)(i):d,w=m?(0,r.u32)(s):d;for(let r=0;r<p;a++){if(t(e,n,o,g,a,c),a>=h)throw new Error("arx: counter overflow");const u=Math.min(f,p-r);if(m&&u===f){const t=r/4;if(r%4!=0)throw new Error("arx: invalid block position");for(let e,n=0;n<l;n++)e=t+n,w[e]=b[e]^g[n];r+=f}else{for(let t,e=0;e<u;e++)t=r+e,s[t]=i[t]^y[e];r+=u}}}(t,B,A,I,g,m,b,p),(0,r.clean)(...v),m}};const r=n(6527),o=t=>Uint8Array.from(t.split("").map((t=>t.charCodeAt(0)))),i=o("expand 16-byte k"),s=o("expand 32-byte k"),a=(0,r.u32)(i),c=(0,r.u32)(s);function u(t){return t.byteOffset%4==0}const f=64,l=16,h=2**32-1,d=new Uint32Array},2557:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=void 0;var r=n(6527),o=n(2158),i=function(){function t(t,e){var n=(0,o.convertPublicKeyFormat)(t,!0,e),r=(0,o.convertPublicKeyFormat)(t,!1,e);this.data=n,this.dataUncompressed=n.length!==r.length?r:null}return t.fromHex=function(e,n){return new t((0,o.hexToPublicKey)(e,n),n)},Object.defineProperty(t.prototype,"_uncompressed",{get:function(){return null!==this.dataUncompressed?this.dataUncompressed:this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uncompressed",{get:function(){return Buffer.from(this._uncompressed)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"compressed",{get:function(){return Buffer.from(this.data)},enumerable:!1,configurable:!0}),t.prototype.toBytes=function(t){return void 0===t&&(t=!0),t?this.data:this._uncompressed},t.prototype.toHex=function(t){return void 0===t&&(t=!0),(0,r.bytesToHex)(this.toBytes(t))},t.prototype.decapsulate=function(t,e){void 0===e&&(e=!1);var n=this.toBytes(e),r=t.multiply(this,e);return(0,o.getSharedKey)(n,r)},t.prototype.equals=function(t){return(0,r.equalBytes)(this.data,t.data)},t}();e.PublicKey=i},2658:(t,e,n)=>{n.d(e,{S:()=>o,d:()=>i});let r=[];const o={[Symbol.for("mapxus/callers-register")]:t=>{r=t}};function i(){return r}},2854:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.montgomery=function(t){const e=(h=t,(0,o.validateObject)(h,{adjustScalarBytes:"function",powPminus2:"function"}),Object.freeze({...h})),{P:n,type:c,adjustScalarBytes:u,powPminus2:f}=e,l="x25519"===c;var h;if(!l&&"x448"!==c)throw new Error("invalid type");const d=l?255:448,p=l?32:56,y=l?BigInt(9):BigInt(5),g=l?BigInt(121665):BigInt(39081),m=l?a**BigInt(254):a**BigInt(447),b=l?BigInt(8)*a**BigInt(251)-s:BigInt(4)*a**BigInt(445)-s,w=m+b+s,v=t=>(0,r.mod)(t,n),E=B(y);function B(t){return(0,o.numberToBytesLE)(v(t),p)}function x(t,e){const r=function(t,e){(0,o.aInRange)("u",t,i,n),(0,o.aInRange)("scalar",e,m,w);const r=e,a=t;let c=s,u=i,l=t,h=s,p=i;for(let t=BigInt(d-1);t>=i;t--){const e=r>>t&s;p^=e,({x_2:c,x_3:l}=S(p,c,l)),({x_2:u,x_3:h}=S(p,u,h)),p=e;const n=c+u,o=v(n*n),i=c-u,f=v(i*i),d=o-f,y=l+h,m=v((l-h)*n),b=v(y*i),w=m+b,E=m-b;l=v(w*w),h=v(a*v(E*E)),c=v(o*f),u=v(d*(o+v(g*d)))}({x_2:c,x_3:l}=S(p,c,l)),({x_2:u,x_3:h}=S(p,u,h));const y=f(u);return v(c*y)}(function(t){const e=(0,o.ensureBytes)("u coordinate",t,p);return l&&(e[31]&=127),v((0,o.bytesToNumberLE)(e))}(e),function(t){return(0,o.bytesToNumberLE)(u((0,o.ensureBytes)("scalar",t,p)))}(t));if(r===i)throw new Error("invalid private or public key received");return B(r)}function A(t){return x(t,E)}function S(t,e,n){const r=v(t*(e-n));return{x_2:e=v(e-r),x_3:n=v(n+r)}}return{scalarMult:x,scalarMultBase:A,getSharedSecret:(t,e)=>x(t,e),getPublicKey:t=>A(t),utils:{randomPrivateKey:()=>e.randomBytes(p)},GuBytes:E.slice()}};const r=n(4967),o=n(1484),i=BigInt(0),s=BigInt(1),a=BigInt(2)},3503:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHex=e.remove0x=void 0;var r=n(6527);e.remove0x=function(t){return t.startsWith("0x")||t.startsWith("0X")?t.slice(2):t};e.decodeHex=function(t){return(0,r.hexToBytes)((0,e.remove0x)(t))}},3562:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getHash=s,e.createCurve=function(t,e){const n=e=>(0,i.weierstrass)({...t,...s(e)});return{...n(e),create:n}};const r=n(9615),o=n(9175),i=n(1705);function s(t){return{hash:t,hmac:(e,...n)=>(0,r.hmac)(t,e,(0,o.concatBytes)(...n)),randomBytes:o.randomBytes}}},3574:(t,e,n)=>{n.d(e,{ys:()=>r.y});n(4760);var r=n(6612);n(9408),n(8884),n(6358),n(5405),n(8412)},4139:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hkdf=void 0,e.extract=i,e.expand=c;const r=n(9615),o=n(9175);function i(t,e,n){return(0,o.ahash)(t),void 0===n&&(n=new Uint8Array(t.outputLen)),(0,r.hmac)(t,(0,o.toBytes)(n),(0,o.toBytes)(e))}const s=Uint8Array.from([0]),a=Uint8Array.of();function c(t,e,n,i=32){(0,o.ahash)(t),(0,o.anumber)(i);const c=t.outputLen;if(i>255*c)throw new Error("Length should be <= 255*HashLen");const u=Math.ceil(i/c);void 0===n&&(n=a);const f=new Uint8Array(u*c),l=r.hmac.create(t,e),h=l._cloneInto(),d=new Uint8Array(l.outputLen);for(let t=0;t<u;t++)s[0]=t+1,h.update(0===t?a:d).update(n).update(s).digestInto(d),f.set(d,c*t),l._cloneInto(h);return l.destroy(),h.destroy(),(0,o.clean)(d,s),f.slice(0,i)}e.hkdf=(t,e,n,r,o)=>c(t,i(t,e,n),r,o)},4760:(t,e,n)=>{var r;!function(t){t[t.SWITCHED_BY_BUILDING=0]="SWITCHED_BY_BUILDING",t[t.SWITCHED_BY_VENUE=1]="SWITCHED_BY_VENUE"}(r||(r={}))},4928:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ephemeralKeySize=e.symmetricNonceLength=e.symmetricAlgorithm=e.isHkdfKeyCompressed=e.isEphemeralKeyCompressed=e.ellipticCurve=e.ECIES_CONFIG=void 0;var r=n(1666),o=function(){this.ellipticCurve="secp256k1",this.isEphemeralKeyCompressed=!1,this.isHkdfKeyCompressed=!1,this.symmetricAlgorithm="aes-256-gcm",this.symmetricNonceLength=16};e.ECIES_CONFIG=new o;e.ellipticCurve=function(){return e.ECIES_CONFIG.ellipticCurve};e.isEphemeralKeyCompressed=function(){return e.ECIES_CONFIG.isEphemeralKeyCompressed};e.isHkdfKeyCompressed=function(){return e.ECIES_CONFIG.isHkdfKeyCompressed};e.symmetricAlgorithm=function(){return e.ECIES_CONFIG.symmetricAlgorithm};e.symmetricNonceLength=function(){return e.ECIES_CONFIG.symmetricNonceLength};e.ephemeralKeySize=function(){var t={secp256k1:e.ECIES_CONFIG.isEphemeralKeyCompressed?r.COMPRESSED_PUBLIC_KEY_SIZE:r.UNCOMPRESSED_PUBLIC_KEY_SIZE,x25519:r.CURVE25519_PUBLIC_KEY_SIZE,ed25519:r.CURVE25519_PUBLIC_KEY_SIZE};if(e.ECIES_CONFIG.ellipticCurve in t)return t[e.ECIES_CONFIG.ellipticCurve];throw new Error("Not implemented")}},4967:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isNegativeLE=void 0,e.mod=h,e.pow=function(t,e,n){return w(x(n),t,e)},e.pow2=function(t,e,n){let r=t;for(;e-- >i;)r*=r,r%=n;return r},e.invert=d,e.tonelliShanks=g,e.FpSqrt=m,e.validateField=function(t){const e=b.reduce(((t,e)=>(t[e]="function",t)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,o.validateObject)(t,e)},e.FpPow=w,e.FpInvertBatch=v,e.FpDiv=function(t,e,n){return t.mul(e,"bigint"==typeof n?d(n,t.ORDER):t.inv(n))},e.FpLegendre=E,e.FpIsSquare=function(t,e){return 1===E(t,e)},e.nLength=B,e.Field=x,e.FpSqrtOdd=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const n=t.sqrt(e);return t.isOdd(n)?n:t.neg(n)},e.FpSqrtEven=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const n=t.sqrt(e);return t.isOdd(n)?t.neg(n):n},e.hashToPrivateScalar=function(t,e,n=!1){const r=(t=(0,o.ensureBytes)("privateHash",t)).length,i=B(e).nByteLength+8;if(i<24||r<i||r>1024)throw new Error("hashToPrivateScalar: expected "+i+"-1024 bytes of input, got "+r);return h(n?(0,o.bytesToNumberLE)(t):(0,o.bytesToNumberBE)(t),e-s)+s},e.getFieldBytesLength=A,e.getMinHashLength=S,e.mapHashToField=function(t,e,n=!1){const r=t.length,i=A(e),a=S(e);if(r<16||r<a||r>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+r);const c=h(n?(0,o.bytesToNumberLE)(t):(0,o.bytesToNumberBE)(t),e-s)+s;return n?(0,o.numberToBytesLE)(c,i):(0,o.numberToBytesBE)(c,i)};const r=n(9175),o=n(1484),i=BigInt(0),s=BigInt(1),a=BigInt(2),c=BigInt(3),u=BigInt(4),f=BigInt(5),l=BigInt(8);function h(t,e){const n=t%e;return n>=i?n:e+n}function d(t,e){if(t===i)throw new Error("invert: expected non-zero number");if(e<=i)throw new Error("invert: expected positive modulus, got "+e);let n=h(t,e),r=e,o=i,a=s,c=s,u=i;for(;n!==i;){const t=r/n,e=r%n,i=o-c*t,s=a-u*t;r=n,n=e,o=c,a=u,c=i,u=s}if(r!==s)throw new Error("invert: does not exist");return h(o,e)}function p(t,e){const n=(t.ORDER+s)/u,r=t.pow(e,n);if(!t.eql(t.sqr(r),e))throw new Error("Cannot find square root");return r}function y(t,e){const n=(t.ORDER-f)/l,r=t.mul(e,a),o=t.pow(r,n),i=t.mul(e,o),s=t.mul(t.mul(i,a),o),c=t.mul(i,t.sub(s,t.ONE));if(!t.eql(t.sqr(c),e))throw new Error("Cannot find square root");return c}function g(t){if(t<BigInt(3))throw new Error("sqrt is not defined for small field");let e=t-s,n=0;for(;e%a===i;)e/=a,n++;let r=a;const o=x(t);for(;1===E(o,r);)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===n)return p;let c=o.pow(r,e);const u=(e+s)/a;return function(t,r){if(t.is0(r))return r;if(1!==E(t,r))throw new Error("Cannot find square root");let o=n,i=t.mul(t.ONE,c),a=t.pow(r,e),f=t.pow(r,u);for(;!t.eql(a,t.ONE);){if(t.is0(a))return t.ZERO;let e=1,n=t.sqr(a);for(;!t.eql(n,t.ONE);)if(e++,n=t.sqr(n),e===o)throw new Error("Cannot find square root");const r=s<<BigInt(o-e-1),c=t.pow(i,r);o=e,i=t.sqr(c),a=t.mul(a,i),f=t.mul(f,c)}return f}}function m(t){return t%u===c?p:t%l===f?y:g(t)}e.isNegativeLE=(t,e)=>(h(t,e)&s)===s;const b=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function w(t,e,n){if(n<i)throw new Error("invalid exponent, negatives unsupported");if(n===i)return t.ONE;if(n===s)return e;let r=t.ONE,o=e;for(;n>i;)n&s&&(r=t.mul(r,o)),o=t.sqr(o),n>>=s;return r}function v(t,e,n=!1){const r=new Array(e.length).fill(n?t.ZERO:void 0),o=e.reduce(((e,n,o)=>t.is0(n)?e:(r[o]=e,t.mul(e,n))),t.ONE),i=t.inv(o);return e.reduceRight(((e,n,o)=>t.is0(n)?e:(r[o]=t.mul(e,r[o]),t.mul(e,n))),i),r}function E(t,e){const n=(t.ORDER-s)/a,r=t.pow(e,n),o=t.eql(r,t.ONE),i=t.eql(r,t.ZERO),c=t.eql(r,t.neg(t.ONE));if(!o&&!i&&!c)throw new Error("invalid Legendre symbol result");return o?1:i?0:-1}function B(t,e){void 0!==e&&(0,r.anumber)(e);const n=void 0!==e?e:t.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function x(t,e,n=!1,r={}){if(t<=i)throw new Error("invalid field: expected ORDER > 0, got "+t);const{nBitLength:a,nByteLength:c}=B(t,e);if(c>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let u;const f=Object.freeze({ORDER:t,isLE:n,BITS:a,BYTES:c,MASK:(0,o.bitMask)(a),ZERO:i,ONE:s,create:e=>h(e,t),isValid:e=>{if("bigint"!=typeof e)throw new Error("invalid field element: expected bigint, got "+typeof e);return i<=e&&e<t},is0:t=>t===i,isOdd:t=>(t&s)===s,neg:e=>h(-e,t),eql:(t,e)=>t===e,sqr:e=>h(e*e,t),add:(e,n)=>h(e+n,t),sub:(e,n)=>h(e-n,t),mul:(e,n)=>h(e*n,t),pow:(t,e)=>w(f,t,e),div:(e,n)=>h(e*d(n,t),t),sqrN:t=>t*t,addN:(t,e)=>t+e,subN:(t,e)=>t-e,mulN:(t,e)=>t*e,inv:e=>d(e,t),sqrt:r.sqrt||(e=>(u||(u=m(t)),u(f,e))),toBytes:t=>n?(0,o.numberToBytesLE)(t,c):(0,o.numberToBytesBE)(t,c),fromBytes:t=>{if(t.length!==c)throw new Error("Field.fromBytes: expected "+c+" bytes, got "+t.length);return n?(0,o.bytesToNumberLE)(t):(0,o.bytesToNumberBE)(t)},invertBatch:t=>v(f,t),cmov:(t,e,n)=>n?e:t});return Object.freeze(f)}function A(t){if("bigint"!=typeof t)throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function S(t){const e=A(t);return e+Math.ceil(e/2)}},4969:(t,e,n)=>{n.d(e,{y:()=>o});var r=n(3574);function o(t){let e=null;return!function(t){return/^en(-(US|GB|AU))?$/.test(t)}(t)?!function(t){return/^zh(-(Hans|CN))?$/.test(t)}(t)?!function(t){return/^zh-(Hant|HK|MO)$/.test(t)}(t)?!function(t){return"zh-TW"===t}(t)?!function(t){return/^ja(-JP)?$/.test(t)}(t)?!function(t){return/^ko(-KR)?$/.test(t)}(t)?!function(t){return/^(fil|tl)(-PH)?$/.test(t)}(t)?!function(t){return/^id(-ID)?$/.test(t)}(t)?!function(t){return/^pt(-(BR|PT))?$/.test(t)}(t)?!function(t){return/^th(-TH)?$/.test(t)}(t)?!function(t){return/^vi(-VN)?$/.test(t)}(t)?function(t){return/^ar(-(DZ|BH|EG|IQ|JO|KW|LB|LY|MA|OM|QA|SA|SY|TN|AE|YE))?$/.test(t)}(t)&&(e=r.ys.ARABIC):e=r.ys.VIETNAMESE:e=r.ys.THAI:e=r.ys.PORTUGUESE:e=r.ys.INDONESIAN:e=r.ys.FILIPINO:e=r.ys.KOREAN:e=r.ys.JAPANESE:e=r.ys.CHINESE_TRADITIONAL_TW:e=r.ys.CHINESE_TRADITIONAL:e=r.ys.CHINESE_SIMPLIFIED:e=r.ys.ENGLISH,e}},5145:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},5295:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PrivateKey=void 0;var r=n(6527),o=n(2158),i=n(2557),s=function(){function t(t,e){if(this.curve=e,void 0===t)this.data=(0,o.getValidSecret)(e);else{if(!(0,o.isValidPrivateKey)(t,e))throw new Error("Invalid private key");this.data=t}this.publicKey=new i.PublicKey((0,o.getPublicKey)(this.data,e),e)}return t.fromHex=function(e,n){return new t((0,o.decodeHex)(e),n)},Object.defineProperty(t.prototype,"secret",{get:function(){return Buffer.from(this.data)},enumerable:!1,configurable:!0}),t.prototype.toHex=function(){return(0,r.bytesToHex)(this.data)},t.prototype.encapsulate=function(t,e){void 0===e&&(e=!1);var n=this.publicKey.toBytes(e),r=this.multiply(t,e);return(0,o.getSharedKey)(n,r)},t.prototype.multiply=function(t,e){return void 0===e&&(e=!1),(0,o.getSharedPoint)(this.data,t.toBytes(!0),e,this.curve)},t.prototype.equals=function(t){return(0,r.equalBytes)(this.data,t.data)},t}();e.PrivateKey=s},5297:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},5405:(t,e,n)=>{var r;!function(t){t.FOOT="foot",t.WHEELCHAIR="wheelchair",t.ESCALATOR="escalator",t.EMERGENCY="emergency"}(r||(r={}))},5461:(t,e,n)=>{n.d(e,{U:()=>a,l:()=>s});var r=n(9588);const o="-webkit-extension-67d8e3e8-";let i=null;async function s(){let t=sessionStorage.getItem(o);if(!t)try{a(),await c(Date.now()),t=sessionStorage.getItem(o)}catch(t){throw new Error("Failed to fetch public key: "+t)}return t}function a(){sessionStorage.removeItem(o),i&&(clearTimeout(i),i=null)}async function c(t){try{const n=await fetch(`${r.kk}?timestamp=${t}`,{method:"GET",headers:{"Content-Type":"text/plain"}}),{headers:s}=n,a=parseInt(s.get("x-retry-in"));i=setTimeout((async()=>{await c(t)}),1e3*a),e=await n.text(),sessionStorage.setItem(o,e)}catch(t){throw t}var e}},6358:(t,e,n)=>{var r,o;!function(t){t.DEFAULT_NAME="DefaultName"}(r||(r={})),function(t){t.ABSOLUTE_DISTANCE="AbsoluteDistance",t.ACTUAL_DISTANCE="ActualDistance"}(o||(o={}))},6377:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.twistedEdwards=function(t){const e=function(t){const e=(0,r.validateBasic)(t);return(0,i.validateObject)(t,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...e})}(t),{Fp:n,n:l,prehash:h,hash:d,randomBytes:p,nByteLength:y,h:g}=e,m=c<<BigInt(8*y)-a,b=n.create,w=(0,o.Field)(e.n,e.nBitLength);if(!function(t,r){const o=n.sqr(t),i=n.sqr(r),s=n.add(n.mul(e.a,o),i),a=n.add(n.ONE,n.mul(e.d,n.mul(o,i)));return n.eql(s,a)}(e.Gx,e.Gy))throw new Error("bad curve params: generator point");const v=e.uvRatio||((t,e)=>{try{return{isValid:!0,value:n.sqrt(t*n.inv(e))}}catch(t){return{isValid:!1,value:s}}}),E=e.adjustScalarBytes||(t=>t),B=e.domain||((t,e,n)=>{if((0,i.abool)("phflag",n),e.length||n)throw new Error("Contexts/pre-hash are not supported");return t});function x(t,e,n=!1){const r=n?a:s;(0,i.aInRange)("coordinate "+t,e,r,m)}function A(t){if(!(t instanceof _))throw new Error("ExtendedPoint expected")}const S=(0,i.memoized)(((t,e)=>{const{ex:r,ey:o,ez:i}=t,c=t.is0();null==e&&(e=c?u:n.inv(i));const f=b(r*e),l=b(o*e),h=b(i*e);if(c)return{x:s,y:a};if(h!==a)throw new Error("invZ was invalid");return{x:f,y:l}})),I=(0,i.memoized)((t=>{const{a:n,d:r}=e;if(t.is0())throw new Error("bad point: ZERO");const{ex:o,ey:i,ez:s,et:a}=t,c=b(o*o),u=b(i*i),f=b(s*s),l=b(f*f),h=b(c*n);if(b(f*b(h+u))!==b(l+b(r*b(c*u))))throw new Error("bad point: equation left != right (1)");if(b(o*i)!==b(s*a))throw new Error("bad point: equation left != right (2)");return!0}));class _{constructor(t,e,n,r){x("x",t),x("y",e),x("z",n,!0),x("t",r),this.ex=t,this.ey=e,this.ez=n,this.et=r,Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(t){if(t instanceof _)throw new Error("extended point not allowed");const{x:e,y:n}=t||{};return x("x",e),x("y",n),new _(e,n,a,b(e*n))}static normalizeZ(t){const e=(0,o.FpInvertBatch)(n,t.map((t=>t.ez)));return t.map(((t,n)=>t.toAffine(e[n]))).map(_.fromAffine)}static msm(t,e){return(0,r.pippenger)(_,w,t,e)}_setWindowSize(t){T.setWindowSize(this,t)}assertValidity(){I(this)}equals(t){A(t);const{ex:e,ey:n,ez:r}=this,{ex:o,ey:i,ez:s}=t,a=b(e*s),c=b(o*r),u=b(n*s),f=b(i*r);return a===c&&u===f}is0(){return this.equals(_.ZERO)}negate(){return new _(b(-this.ex),this.ey,this.ez,b(-this.et))}double(){const{a:t}=e,{ex:n,ey:r,ez:o}=this,i=b(n*n),s=b(r*r),a=b(c*b(o*o)),u=b(t*i),f=n+r,l=b(b(f*f)-i-s),h=u+s,d=h-a,p=u-s,y=b(l*d),g=b(h*p),m=b(l*p),w=b(d*h);return new _(y,g,w,m)}add(t){A(t);const{a:n,d:r}=e,{ex:o,ey:i,ez:s,et:a}=this,{ex:c,ey:u,ez:f,et:l}=t,h=b(o*c),d=b(i*u),p=b(a*r*l),y=b(s*f),g=b((o+i)*(c+u)-h-d),m=y-p,w=y+p,v=b(d-n*h),E=b(g*m),B=b(w*v),x=b(g*v),S=b(m*w);return new _(E,B,S,x)}subtract(t){return this.add(t.negate())}wNAF(t){return T.wNAFCached(this,t,_.normalizeZ)}multiply(t){const e=t;(0,i.aInRange)("scalar",e,a,l);const{p:n,f:r}=this.wNAF(e);return _.normalizeZ([n,r])[0]}multiplyUnsafe(t,e=_.ZERO){const n=t;return(0,i.aInRange)("scalar",n,s,l),n===s?H:this.is0()||n===a?this:T.wNAFCachedUnsafe(this,n,_.normalizeZ,e)}isSmallOrder(){return this.multiplyUnsafe(g).is0()}isTorsionFree(){return T.unsafeLadder(this,l).is0()}toAffine(t){return S(this,t)}clearCofactor(){const{h:t}=e;return t===a?this:this.multiplyUnsafe(t)}static fromHex(t,r=!1){const{d:o,a:c}=e,u=n.BYTES;t=(0,i.ensureBytes)("pointHex",t,u),(0,i.abool)("zip215",r);const f=t.slice(),l=t[u-1];f[u-1]=-129&l;const h=(0,i.bytesToNumberLE)(f),d=r?m:n.ORDER;(0,i.aInRange)("pointHex.y",h,s,d);const p=b(h*h),y=b(p-a),g=b(o*p-c);let{isValid:w,value:E}=v(y,g);if(!w)throw new Error("Point.fromHex: invalid y coordinate");const B=(E&a)===a,x=!!(128&l);if(!r&&E===s&&x)throw new Error("Point.fromHex: x=0 and x_0=1");return x!==B&&(E=b(-E)),_.fromAffine({x:E,y:h})}static fromPrivateKey(t){const{scalar:e}=k(t);return L.multiply(e)}toRawBytes(){const{x:t,y:e}=this.toAffine(),r=(0,i.numberToBytesLE)(e,n.BYTES);return r[r.length-1]|=t&a?128:0,r}toHex(){return(0,i.bytesToHex)(this.toRawBytes())}}_.BASE=new _(e.Gx,e.Gy,a,b(e.Gx*e.Gy)),_.ZERO=new _(s,a,a,s);const{BASE:L,ZERO:H}=_,T=(0,r.wNAF)(_,8*y);function O(t){return(0,o.mod)(t,l)}function R(t){return O((0,i.bytesToNumberLE)(t))}function k(t){const e=n.BYTES;t=(0,i.ensureBytes)("private key",t,e);const r=(0,i.ensureBytes)("hashed private key",d(t),2*e),o=E(r.slice(0,e));return{head:o,prefix:r.slice(e,2*e),scalar:R(o)}}function C(t){const{head:e,prefix:n,scalar:r}=k(t),o=L.multiply(r),i=o.toRawBytes();return{head:e,prefix:n,scalar:r,point:o,pointBytes:i}}function U(t=Uint8Array.of(),...e){const n=(0,i.concatBytes)(...e);return R(d(B(n,(0,i.ensureBytes)("context",t),!!h)))}const P=f;L._setWindowSize(8);return{CURVE:e,getPublicKey:function(t){return C(t).pointBytes},sign:function(t,e,r={}){t=(0,i.ensureBytes)("message",t),h&&(t=h(t));const{prefix:o,scalar:a,pointBytes:c}=C(e),u=U(r.context,o,t),f=L.multiply(u).toRawBytes(),d=O(u+U(r.context,f,c,t)*a);(0,i.aInRange)("signature.s",d,s,l);const p=(0,i.concatBytes)(f,(0,i.numberToBytesLE)(d,n.BYTES));return(0,i.ensureBytes)("result",p,2*n.BYTES)},verify:function(t,e,r,o=P){const{context:s,zip215:a}=o,c=n.BYTES;t=(0,i.ensureBytes)("signature",t,2*c),e=(0,i.ensureBytes)("message",e),r=(0,i.ensureBytes)("publicKey",r,c),void 0!==a&&(0,i.abool)("zip215",a),h&&(e=h(e));const u=(0,i.bytesToNumberLE)(t.slice(c,2*c));let f,l,d;try{f=_.fromHex(r,a),l=_.fromHex(t.slice(0,c),a),d=L.multiplyUnsafe(u)}catch(t){return!1}if(!a&&f.isSmallOrder())return!1;const p=U(s,l.toRawBytes(),f.toRawBytes(),e);return l.add(f.multiplyUnsafe(p)).subtract(d).clearCofactor().equals(_.ZERO)},ExtendedPoint:_,utils:{getExtendedPublicKey:C,randomPrivateKey:()=>p(n.BYTES),precompute:(t=8,e=_.BASE)=>(e._setWindowSize(t),e.multiply(BigInt(3)),e)}}};const r=n(2422),o=n(4967),i=n(1484),s=BigInt(0),a=BigInt(1),c=BigInt(2),u=BigInt(8),f={zip215:!0}},6527:(t,e)=>{function n(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}function r(t){if("boolean"!=typeof t)throw new Error(`boolean expected, not ${t}`)}function o(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function i(t,...e){if(!n(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function s(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}Object.defineProperty(e,"__esModule",{value:!0}),e.wrapCipher=e.Hash=e.nextTick=e.isLE=void 0,e.isBytes=n,e.abool=r,e.anumber=o,e.abytes=i,e.ahash=function(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.createHasher");o(t.outputLen),o(t.blockLen)},e.aexists=function(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")},e.aoutput=function(t,e){i(t);const n=e.outputLen;if(t.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)},e.u8=function(t){return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)},e.u32=function(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))},e.clean=function(...t){for(let e=0;e<t.length;e++)t[e].fill(0)},e.createView=s,e.bytesToHex=u,e.hexToBytes=h,e.hexToNumber=d,e.bytesToNumberBE=function(t){return d(u(t))},e.numberToBytesBE=function(t,e){return h(t.toString(16).padStart(2*e,"0"))},e.utf8ToBytes=p,e.bytesToUtf8=function(t){return(new TextDecoder).decode(t)},e.toBytes=function(t){if("string"==typeof t)t=p(t);else{if(!n(t))throw new Error("Uint8Array expected, got "+typeof t);t=b(t)}return t},e.overlapBytes=y,e.complexOverlapBytes=function(t,e){if(y(t,e)&&t.byteOffset<e.byteOffset)throw new Error("complex overlap of input and output is not supported")},e.concatBytes=function(...t){let e=0;for(let n=0;n<t.length;n++){const r=t[n];i(r),e+=r.length}const n=new Uint8Array(e);for(let e=0,r=0;e<t.length;e++){const o=t[e];n.set(o,r),r+=o.length}return n},e.checkOpts=function(t,e){if(null==e||"object"!=typeof e)throw new Error("options must be defined");return Object.assign(t,e)},e.equalBytes=function(t,e){if(t.length!==e.length)return!1;let n=0;for(let r=0;r<t.length;r++)n|=t[r]^e[r];return 0===n},e.getOutput=function(t,e,n=!0){if(void 0===e)return new Uint8Array(t);if(e.length!==t)throw new Error("invalid output length, expected "+t+", got: "+e.length);if(n&&!m(e))throw new Error("invalid output, must be aligned");return e},e.setBigUint64=g,e.u64Lengths=function(t,e,n){r(n);const o=new Uint8Array(16),i=s(o);return g(i,0,BigInt(e),n),g(i,8,BigInt(t),n),o},e.isAligned32=m,e.copyBytes=b,e.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];const a=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),c=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function u(t){if(i(t),a)return t.toHex();let e="";for(let n=0;n<t.length;n++)e+=c[t[n]];return e}const f={_0:48,_9:57,A:65,F:70,a:97,f:102};function l(t){return t>=f._0&&t<=f._9?t-f._0:t>=f.A&&t<=f.F?t-(f.A-10):t>=f.a&&t<=f.f?t-(f.a-10):void 0}function h(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);if(a)return Uint8Array.fromHex(t);const e=t.length,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let e=0,o=0;e<n;e++,o+=2){const n=l(t.charCodeAt(o)),i=l(t.charCodeAt(o+1));if(void 0===n||void 0===i){const e=t[o]+t[o+1];throw new Error('hex string expected, got non-hex character "'+e+'" at index '+o)}r[e]=16*n+i}return r}function d(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);return BigInt(""===t?"0":"0x"+t)}function p(t){if("string"!=typeof t)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(t))}function y(t,e){return t.buffer===e.buffer&&t.byteOffset<e.byteOffset+e.byteLength&&e.byteOffset<t.byteOffset+t.byteLength}e.nextTick=async()=>{};e.Hash=class{};function g(t,e,n,r){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,n,r);const o=BigInt(32),i=BigInt(4294967295),s=Number(n>>o&i),a=Number(n&i),c=r?4:0,u=r?0:4;t.setUint32(e+c,s,r),t.setUint32(e+u,a,r)}function m(t){return t.byteOffset%4==0}function b(t){return Uint8Array.from(t)}e.wrapCipher=(t,n)=>{function r(r,...o){if(i(r),!e.isLE)throw new Error("Non little-endian hardware is not yet supported");if(void 0!==t.nonceLength){const e=o[0];if(!e)throw new Error("nonce / iv required");t.varSizeNonce?i(e):i(e,t.nonceLength)}const s=t.tagLength;s&&void 0!==o[1]&&i(o[1]);const a=n(r,...o),c=(t,e)=>{if(void 0!==e){if(2!==t)throw new Error("cipher output not supported");i(e)}};let u=!1;return{encrypt(t,e){if(u)throw new Error("cannot encrypt() twice with same key + nonce");return u=!0,i(t),c(a.encrypt.length,e),a.encrypt(t,e)},decrypt(t,e){if(i(t),s&&t.length<s)throw new Error("invalid ciphertext length: smaller than tagLength="+s);return c(a.decrypt.length,e),a.decrypt(t,e)}}}return Object.assign(r,t),r}},6568:(t,e,n)=>{n.d(e,{Ay:()=>_t});var r=n(1635),o="4.6.2";function i(t,e){return new Promise((function(n){return setTimeout(n,t,e)}))}function s(t){return!!t&&"function"==typeof t.then}function a(t,e){try{var n=t();s(n)?n.then((function(t){return e(!0,t)}),(function(t){return e(!1,t)})):e(!0,n)}catch(t){e(!1,t)}}function c(t,e,n){return void 0===n&&(n=16),(0,r.sH)(this,void 0,void 0,(function(){var o,i,s,a;return(0,r.YH)(this,(function(r){switch(r.label){case 0:o=Array(t.length),i=Date.now(),s=0,r.label=1;case 1:return s<t.length?(o[s]=e(t[s],s),(a=Date.now())>=i+n?(i=a,[4,new Promise((function(t){var e=new MessageChannel;e.port1.onmessage=function(){return t()},e.port2.postMessage(null)}))]):[3,3]):[3,4];case 2:r.sent(),r.label=3;case 3:return++s,[3,1];case 4:return[2,o]}}))}))}function u(t){return t.then(void 0,(function(){})),t}function f(t){return parseInt(t)}function l(t){return parseFloat(t)}function h(t,e){return"number"==typeof t&&isNaN(t)?e:t}function d(t){return t.reduce((function(t,e){return t+(e?1:0)}),0)}function p(t,e){if(void 0===e&&(e=1),Math.abs(e)>=1)return Math.round(t/e)*e;var n=1/e;return Math.round(t*n)/n}function y(t,e){var n=t[0]>>>16,r=65535&t[0],o=t[1]>>>16,i=65535&t[1],s=e[0]>>>16,a=65535&e[0],c=e[1]>>>16,u=0,f=0,l=0,h=0;l+=(h+=i+(65535&e[1]))>>>16,h&=65535,f+=(l+=o+c)>>>16,l&=65535,u+=(f+=r+a)>>>16,f&=65535,u+=n+s,u&=65535,t[0]=u<<16|f,t[1]=l<<16|h}function g(t,e){var n=t[0]>>>16,r=65535&t[0],o=t[1]>>>16,i=65535&t[1],s=e[0]>>>16,a=65535&e[0],c=e[1]>>>16,u=65535&e[1],f=0,l=0,h=0,d=0;h+=(d+=i*u)>>>16,d&=65535,l+=(h+=o*u)>>>16,h&=65535,l+=(h+=i*c)>>>16,h&=65535,f+=(l+=r*u)>>>16,l&=65535,f+=(l+=o*c)>>>16,l&=65535,f+=(l+=i*a)>>>16,l&=65535,f+=n*u+r*c+o*a+i*s,f&=65535,t[0]=f<<16|l,t[1]=h<<16|d}function m(t,e){var n=t[0];32===(e%=64)?(t[0]=t[1],t[1]=n):e<32?(t[0]=n<<e|t[1]>>>32-e,t[1]=t[1]<<e|n>>>32-e):(e-=32,t[0]=t[1]<<e|n>>>32-e,t[1]=n<<e|t[1]>>>32-e)}function b(t,e){0!==(e%=64)&&(e<32?(t[0]=t[1]>>>32-e,t[1]=t[1]<<e):(t[0]=t[1]<<e-32,t[1]=0))}function w(t,e){t[0]^=e[0],t[1]^=e[1]}var v=[4283543511,3981806797],E=[3301882366,444984403];function B(t){var e=[0,t[0]>>>1];w(t,e),g(t,v),e[1]=t[0]>>>1,w(t,e),g(t,E),e[1]=t[0]>>>1,w(t,e)}var x=[2277735313,289559509],A=[1291169091,658871167],S=[0,5],I=[0,1390208809],_=[0,944331445];function L(t,e){var n=function(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r>127)return(new TextEncoder).encode(t);e[n]=r}return e}(t);e=e||0;var r,o=[0,n.length],i=o[1]%16,s=o[1]-i,a=[0,e],c=[0,e],u=[0,0],f=[0,0];for(r=0;r<s;r+=16)u[0]=n[r+4]|n[r+5]<<8|n[r+6]<<16|n[r+7]<<24,u[1]=n[r]|n[r+1]<<8|n[r+2]<<16|n[r+3]<<24,f[0]=n[r+12]|n[r+13]<<8|n[r+14]<<16|n[r+15]<<24,f[1]=n[r+8]|n[r+9]<<8|n[r+10]<<16|n[r+11]<<24,g(u,x),m(u,31),g(u,A),w(a,u),m(a,27),y(a,c),g(a,S),y(a,I),g(f,A),m(f,33),g(f,x),w(c,f),m(c,31),y(c,a),g(c,S),y(c,_);u[0]=0,u[1]=0,f[0]=0,f[1]=0;var l=[0,0];switch(i){case 15:l[1]=n[r+14],b(l,48),w(f,l);case 14:l[1]=n[r+13],b(l,40),w(f,l);case 13:l[1]=n[r+12],b(l,32),w(f,l);case 12:l[1]=n[r+11],b(l,24),w(f,l);case 11:l[1]=n[r+10],b(l,16),w(f,l);case 10:l[1]=n[r+9],b(l,8),w(f,l);case 9:l[1]=n[r+8],w(f,l),g(f,A),m(f,33),g(f,x),w(c,f);case 8:l[1]=n[r+7],b(l,56),w(u,l);case 7:l[1]=n[r+6],b(l,48),w(u,l);case 6:l[1]=n[r+5],b(l,40),w(u,l);case 5:l[1]=n[r+4],b(l,32),w(u,l);case 4:l[1]=n[r+3],b(l,24),w(u,l);case 3:l[1]=n[r+2],b(l,16),w(u,l);case 2:l[1]=n[r+1],b(l,8),w(u,l);case 1:l[1]=n[r],w(u,l),g(u,x),m(u,31),g(u,A),w(a,u)}return w(a,o),w(c,o),y(a,c),y(c,a),B(a),B(c),y(a,c),y(c,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)}function H(t){return"function"!=typeof t}function T(t,e,n,o){var i=Object.keys(t).filter((function(t){return!function(t,e){for(var n=0,r=t.length;n<r;++n)if(t[n]===e)return!0;return!1}(n,t)})),s=u(c(i,(function(n){return function(t,e){var n=u(new Promise((function(n){var r=Date.now();a(t.bind(null,e),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var o=Date.now()-r;if(!t[0])return n((function(){return{error:t[1],duration:o}}));var i=t[1];if(H(i))return n((function(){return{value:i,duration:o}}));n((function(){return new Promise((function(t){var e=Date.now();a(i,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=o+Date.now()-e;if(!n[0])return t({error:n[1],duration:i});t({value:n[1],duration:i})}))}))}))}))})));return function(){return n.then((function(t){return t()}))}}(t[n],e)}),o));return function(){return(0,r.sH)(this,void 0,void 0,(function(){var t,e,n,a;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,s];case 1:return[4,c(r.sent(),(function(t){return u(t())}),o)];case 2:return t=r.sent(),[4,Promise.all(t)];case 3:for(e=r.sent(),n={},a=0;a<i.length;++a)n[i[a]]=e[a];return[2,n]}}))}))}}function O(){var t=window,e=navigator;return d(["MSCSSMatrix"in t,"msSetImmediate"in t,"msIndexedDB"in t,"msMaxTouchPoints"in e,"msPointerEnabled"in e])>=4}function R(){var t=window,e=navigator;return d(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,0===(e.vendor||"").indexOf("Google"),"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function k(){var t=window;return d(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,0===navigator.vendor.indexOf("Apple"),"RGBColor"in t,"WebKitMediaKeys"in t])>=4}function C(){var t=window,e=t.HTMLElement,n=t.Document;return d(["safari"in t,!("ongestureend"in t),!("TouchEvent"in t),!("orientation"in t),e&&!("autocapitalize"in e.prototype),n&&"pointerLockElement"in n.prototype])>=4}function U(){var t,e=window;return t=e.print,/^function\s.*?\{\s*\[native code]\s*}$/.test(String(t))&&"[object WebPageNamespace]"===String(e.browser)}function P(){var t,e,n=window;return d(["buildID"in navigator,"MozAppearance"in(null!==(e=null===(t=document.documentElement)||void 0===t?void 0:t.style)&&void 0!==e?e:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function N(){var t=window,e=navigator,n=t.CSS,r=t.HTMLButtonElement;return d([!("getStorageUpdates"in e),r&&"popover"in r.prototype,"CSSCounterStyleRule"in t,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function V(){var t=document;return(t.exitFullscreen||t.msExitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen).call(t)}function M(){var t=R(),e=P(),n=window,r=navigator,o="connection";return t?d([!("SharedWorker"in n),r[o]&&"ontypechange"in r[o],!("sinkId"in new Audio)])>=2:!!e&&d(["onorientationchange"in n,"orientation"in n,/android/i.test(r.appVersion)])>=2}function F(t){var e=new Error(t);return e.name=t,e}function D(t,e,n){var o,s,a;return void 0===n&&(n=50),(0,r.sH)(this,void 0,void 0,(function(){var c,u;return(0,r.YH)(this,(function(r){switch(r.label){case 0:c=document,r.label=1;case 1:return c.body?[3,3]:[4,i(n)];case 2:return r.sent(),[3,1];case 3:u=c.createElement("iframe"),r.label=4;case 4:return r.trys.push([4,,10,11]),[4,new Promise((function(t,n){var r=!1,o=function(){r=!0,t()};u.onload=o,u.onerror=function(t){r=!0,n(t)};var i=u.style;i.setProperty("display","block","important"),i.position="absolute",i.top="0",i.left="0",i.visibility="hidden",e&&"srcdoc"in u?u.srcdoc=e:u.src="about:blank",c.body.appendChild(u);var s=function(){var t,e;r||("complete"===(null===(e=null===(t=u.contentWindow)||void 0===t?void 0:t.document)||void 0===e?void 0:e.readyState)?o():setTimeout(s,10))};s()}))];case 5:r.sent(),r.label=6;case 6:return(null===(s=null===(o=u.contentWindow)||void 0===o?void 0:o.document)||void 0===s?void 0:s.body)?[3,8]:[4,i(n)];case 7:return r.sent(),[3,6];case 8:return[4,t(u,u.contentWindow)];case 9:return[2,r.sent()];case 10:return null===(a=u.parentNode)||void 0===a||a.removeChild(u),[7];case 11:return[2]}}))}))}function j(t){for(var e=function(t){for(var e,n,r="Unexpected syntax '".concat(t,"'"),o=/^\s*([a-z-]*)(.*)$/i.exec(t),i=o[1]||void 0,s={},a=/([.:#][\w-]+|\[.+?\])/gi,c=function(t,e){s[t]=s[t]||[],s[t].push(e)};;){var u=a.exec(o[2]);if(!u)break;var f=u[0];switch(f[0]){case".":c("class",f.slice(1));break;case"#":c("id",f.slice(1));break;case"[":var l=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(f);if(!l)throw new Error(r);c(l[1],null!==(n=null!==(e=l[4])&&void 0!==e?e:l[5])&&void 0!==n?n:"");break;default:throw new Error(r)}}return[i,s]}(t),n=e[0],r=e[1],o=document.createElement(null!=n?n:"div"),i=0,s=Object.keys(r);i<s.length;i++){var a=s[i],c=r[a].join(" ");"style"===a?G(o.style,c):o.setAttribute(a,c)}return o}function G(t,e){for(var n=0,r=e.split(";");n<r.length;n++){var o=r[n],i=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(o);if(i){var s=i[1],a=i[2],c=i[4];t.setProperty(s,a,c||"")}}}var Z=["monospace","sans-serif","serif"],W=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function z(t){return t.toDataURL()}var Y,K;function q(){var t=this;return function(){if(void 0===K){var t=function(){var e=X();J(e)?K=setTimeout(t,2500):(Y=e,K=void 0)};t()}}(),function(){return(0,r.sH)(t,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(e){switch(e.label){case 0:return J(t=X())?Y?[2,(0,r.fX)([],Y,!0)]:(n=document).fullscreenElement||n.msFullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement?[4,V()]:[3,2]:[3,2];case 1:e.sent(),t=X(),e.label=2;case 2:return J(t)||(Y=t),[2,t]}var n}))}))}}function X(){var t=screen;return[h(l(t.availTop),null),h(l(t.width)-l(t.availWidth)-h(l(t.availLeft),0),null),h(l(t.height)-l(t.availHeight)-h(l(t.availTop),0),null),h(l(t.availLeft),null)]}function J(t){for(var e=0;e<4;++e)if(t[e])return!1;return!0}function $(t){var e;return(0,r.sH)(this,void 0,void 0,(function(){var n,o,s,a,c,u,f;return(0,r.YH)(this,(function(r){switch(r.label){case 0:for(n=document,o=n.createElement("div"),s=new Array(t.length),a={},Q(o),f=0;f<t.length;++f)"DIALOG"===(c=j(t[f])).tagName&&c.show(),Q(u=n.createElement("div")),u.appendChild(c),o.appendChild(u),s[f]=c;r.label=1;case 1:return n.body?[3,3]:[4,i(50)];case 2:return r.sent(),[3,1];case 3:n.body.appendChild(o);try{for(f=0;f<t.length;++f)s[f].offsetParent||(a[t[f]]=!0)}finally{null===(e=o.parentNode)||void 0===e||e.removeChild(o)}return[2,a]}}))}))}function Q(t){t.style.setProperty("visibility","hidden","important"),t.style.setProperty("display","block","important")}function tt(t){return matchMedia("(inverted-colors: ".concat(t,")")).matches}function et(t){return matchMedia("(forced-colors: ".concat(t,")")).matches}function nt(t){return matchMedia("(prefers-contrast: ".concat(t,")")).matches}function rt(t){return matchMedia("(prefers-reduced-motion: ".concat(t,")")).matches}function ot(t){return matchMedia("(prefers-reduced-transparency: ".concat(t,")")).matches}function it(t){return matchMedia("(dynamic-range: ".concat(t,")")).matches}var st=Math,at=function(){return 0};var ct={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var ut=function(){for(var t=window;;){var e=t.parent;if(!e||e===t)return!1;try{if(e.location.origin!==t.location.origin)return!0}catch(t){if(t instanceof Error&&"SecurityError"===t.name)return!0;throw t}t=e}};var ft=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),lt=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),ht=["FRAGMENT_SHADER","VERTEX_SHADER"],dt=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],pt="WEBGL_debug_renderer_info";function yt(t){if(t.webgl)return t.webgl.context;var e,n=document.createElement("canvas");n.addEventListener("webglCreateContextError",(function(){return e=void 0}));for(var r=0,o=["webgl","experimental-webgl"];r<o.length;r++){var i=o[r];try{e=n.getContext(i)}catch(t){}if(e)break}return t.webgl={context:e},e}function gt(t,e,n){var r=t.getShaderPrecisionFormat(t[e],t[n]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function mt(t){return Object.keys(t.__proto__).filter(bt)}function bt(t){return"string"==typeof t&&!t.match(/[^A-Z0-9_x]/)}function wt(){return P()}function vt(t){return"function"==typeof t.getParameter}var Et={fonts:function(){var t=this;return D((function(e,n){var o=n.document;return(0,r.sH)(t,void 0,void 0,(function(){var t,e,n,i,s,a,c,u,f,l,h;return(0,r.YH)(this,(function(r){for((t=o.body).style.fontSize="48px",(e=o.createElement("div")).style.setProperty("visibility","hidden","important"),n={},i={},s=function(t){var n=o.createElement("span"),r=n.style;return r.position="absolute",r.top="0",r.left="0",r.fontFamily=t,n.textContent="mmMwWLliI0O&1",e.appendChild(n),n},a=function(t,e){return s("'".concat(t,"',").concat(e))},c=function(){for(var t={},e=function(e){t[e]=Z.map((function(t){return a(e,t)}))},n=0,r=W;n<r.length;n++){e(r[n])}return t},u=function(t){return Z.some((function(e,r){return t[r].offsetWidth!==n[e]||t[r].offsetHeight!==i[e]}))},f=function(){return Z.map(s)}(),l=c(),t.appendChild(e),h=0;h<Z.length;h++)n[Z[h]]=f[h].offsetWidth,i[Z[h]]=f[h].offsetHeight;return[2,W.filter((function(t){return u(l[t])}))]}))}))}))},domBlockers:function(t){var e=(void 0===t?{}:t).debug;return(0,r.sH)(this,void 0,void 0,(function(){var t,n,o,i,s;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return k()||M()?(a=atob,t={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',a("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",a("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",a("LnNwb25zb3JpdA=="),".ylamainos",a("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",a("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",a("LmhlYWRlci1ibG9ja2VkLWFk"),a("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",a("I2FkXzMwMFgyNTA="),a("I2Jhbm5lcmZsb2F0MjI="),a("I2NhbXBhaWduLWJhbm5lcg=="),a("I0FkLUNvbnRlbnQ=")],adGuardChinese:[a("LlppX2FkX2FfSA=="),a("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",a("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),a("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",a("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",a("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",a("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),a("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),a("LmFkZ29vZ2xl"),a("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[a("YW1wLWF1dG8tYWRz"),a("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",a("I2FkX2ludmlld19hcmVh")],adGuardRussian:[a("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),a("LnJlY2xhbWE="),'div[id^="smi2adblock"]',a("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[a("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),a("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",a("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),a("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),a("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",a("I3Jla2xhbWk="),a("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),a("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),a("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[a("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",a("LndpZGdldF9wb19hZHNfd2lkZ2V0"),a("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",a("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[a("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),a("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",a("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",a("I3Jla2xhbW5pLWJveA=="),a("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",a("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[a("I2FkdmVydGVudGll"),a("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",a("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",a("LnNwb25zb3JsaW5rZ3J1ZW4="),a("I3dlcmJ1bmdza3k="),a("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),a("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[a("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",a("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[a("LnJla2xhbW9zX3RhcnBhcw=="),a("LnJla2xhbW9zX251b3JvZG9z"),a("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),a("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),a("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[a("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[a("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),a("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",a("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[a("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),a("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),a("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",a("LmFkX19tYWlu"),a("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[a("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[a("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),a("I2xpdmVyZUFkV3JhcHBlcg=="),a("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),a("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[a("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",a("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),a("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),a("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[a("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),a("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),a("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",a("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),a("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),a("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),a("ZGl2I3NrYXBpZWNfYWQ=")],ro:[a("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),a("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[a("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),a("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),a("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",a("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),a("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",a("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},n=Object.keys(t),[4,$((s=[]).concat.apply(s,n.map((function(e){return t[e]}))))]):[2,void 0];case 1:return o=r.sent(),e&&function(t,e){for(var n="DOM blockers debug:\n```",r=0,o=Object.keys(t);r<o.length;r++){var i=o[r];n+="\n".concat(i,":");for(var s=0,a=t[i];s<a.length;s++){var c=a[s];n+="\n ".concat(e[c]?"🚫":"➡️"," ").concat(c)}}console.log("".concat(n,"\n```"))}(t,o),(i=n.filter((function(e){var n=t[e];return d(n.map((function(t){return o[t]})))>.6*n.length}))).sort(),[2,i]}var a}))}))},fontPreferences:function(){return function(t,e){void 0===e&&(e=4e3);return D((function(n,o){var i=o.document,s=i.body,a=s.style;a.width="".concat(e,"px"),a.webkitTextSizeAdjust=a.textSizeAdjust="none",R()?s.style.zoom="".concat(1/o.devicePixelRatio):k()&&(s.style.zoom="reset");var c=i.createElement("div");return c.textContent=(0,r.fX)([],Array(e/20|0),!0).map((function(){return"word"})).join(" "),s.appendChild(c),t(i,s)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}((function(t,e){for(var n={},r={},o=0,i=Object.keys(ct);o<i.length;o++){var s=i[o],a=ct[s],c=a[0],u=void 0===c?{}:c,f=a[1],l=void 0===f?"mmMwWLliI0fiflO&1":f,h=t.createElement("span");h.textContent=l,h.style.whiteSpace="nowrap";for(var d=0,p=Object.keys(u);d<p.length;d++){var y=p[d],g=u[y];void 0!==g&&(h.style[y]=g)}n[s]=h,e.append(t.createElement("br"),h)}for(var m=0,b=Object.keys(ct);m<b.length;m++){r[s=b[m]]=n[s].getBoundingClientRect().width}return r}))},audio:function(){return k()&&N()&&U()||R()&&(t=navigator,e=window,n=Audio.prototype,r=e.visualViewport,d(["srLatency"in n,"srChannelCount"in n,"devicePosture"in t,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3)&&function(){var t=window,e=t.URLPattern;return d(["union"in Set.prototype,"Iterator"in t,e&&"hasRegExpGroups"in e.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}()?-4:function(){var t=window,e=t.OfflineAudioContext||t.webkitOfflineAudioContext;if(!e)return-2;if(k()&&!C()&&!function(){var t=window;return d(["DOMRectList"in t,"RTCPeerConnectionIceEvent"in t,"SVGGeometryElement"in t,"ontransitioncancel"in t])>=3}())return-1;var n=4500,r=new e(1,5e3,44100),o=r.createOscillator();o.type="triangle",o.frequency.value=1e4;var i=r.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.25,o.connect(i),i.connect(r.destination),o.start(0);var a=function(t){var e=3,n=500,r=500,o=5e3,i=function(){},a=new Promise((function(a,c){var f=!1,l=0,h=0;t.oncomplete=function(t){return a(t.renderedBuffer)};var d=function(){setTimeout((function(){return c(F("timeout"))}),Math.min(r,h+o-Date.now()))},p=function(){try{var r=t.startRendering();switch(s(r)&&u(r),t.state){case"running":h=Date.now(),f&&d();break;case"suspended":document.hidden||l++,f&&l>=e?c(F("suspended")):setTimeout(p,n)}}catch(t){c(t)}};p(),i=function(){f||(f=!0,h>0&&d())}}));return[a,i]}(r),c=a[0],f=a[1],l=u(c.then((function(t){return function(t){for(var e=0,n=0;n<t.length;++n)e+=Math.abs(t[n]);return e}(t.getChannelData(0).subarray(n))}),(function(t){if("timeout"===t.name||"suspended"===t.name)return-3;throw t})));return function(){return f(),l}}();var t,e,n,r},screenFrame:function(){var t=this;if(k()&&N()&&U())return function(){return Promise.resolve(void 0)};var e=q();return function(){return(0,r.sH)(t,void 0,void 0,(function(){var t,n;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,e()];case 1:return t=r.sent(),[2,[(n=function(t){return null===t?null:p(t,10)})(t[0]),n(t[1]),n(t[2]),n(t[3])]]}}))}))}},canvas:function(){return function(t){var e,n,r,o=!1,i=function(){var t=document.createElement("canvas");return t.width=1,t.height=1,[t,t.getContext("2d")]}(),s=i[0],a=i[1];!function(t,e){return!(!e||!t.toDataURL)}(s,a)?n=r="unsupported":(o=function(t){return t.rect(0,0,10,10),t.rect(2,2,6,6),!t.isPointInPath(5,5,"evenodd")}(a),t?n=r="skipped":(e=function(t,e){!function(t,e){t.width=240,t.height=60,e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(100,1,62,20),e.fillStyle="#069",e.font='11pt "Times New Roman"';var n="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));e.fillText(n,2,15),e.fillStyle="rgba(102, 204, 0, 0.2)",e.font="18pt Arial",e.fillText(n,4,45)}(t,e);var n=z(t),r=z(t);if(n!==r)return["unstable","unstable"];!function(t,e){t.width=122,t.height=110,e.globalCompositeOperation="multiply";for(var n=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];n<r.length;n++){var o=r[n],i=o[0],s=o[1],a=o[2];e.fillStyle=i,e.beginPath(),e.arc(s,a,40,0,2*Math.PI,!0),e.closePath(),e.fill()}e.fillStyle="#f9c",e.arc(60,60,60,0,2*Math.PI,!0),e.arc(60,60,20,0,2*Math.PI,!0),e.fill("evenodd")}(t,e);var o=z(t);return[o,n]}(s,a),n=e[0],r=e[1]));return{winding:o,geometry:n,text:r}}(k()&&N()&&U())},osCpu:function(){return navigator.oscpu},languages:function(){var t,e=navigator,n=[],r=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(void 0!==r&&n.push([r]),Array.isArray(e.languages))R()&&d([!("MediaSettingsRange"in(t=window)),"RTCEncodedAudioFrame"in t,""+t.Intl=="[object Intl]",""+t.Reflect=="[object Reflect]"])>=3||n.push(e.languages);else if("string"==typeof e.languages){var o=e.languages;o&&n.push(o.split(","))}return n},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return h(l(navigator.deviceMemory),void 0)},screenResolution:function(){var t,e,n;if(!(k()&&N()&&U()))return t=screen,(n=[(e=function(t){return h(f(t),null)})(t.width),e(t.height)]).sort().reverse(),n},hardwareConcurrency:function(){return h(f(navigator.hardwareConcurrency),void 0)},timezone:function(){var t,e=null===(t=window.Intl)||void 0===t?void 0:t.DateTimeFormat;if(e){var n=(new e).resolvedOptions().timeZone;if(n)return n}var r,o=(r=(new Date).getFullYear(),-Math.max(l(new Date(r,0,1).getTimezoneOffset()),l(new Date(r,6,1).getTimezoneOffset())));return"UTC".concat(o>=0?"+":"").concat(o)},sessionStorage:function(){try{return!!window.sessionStorage}catch(t){return!0}},localStorage:function(){try{return!!window.localStorage}catch(t){return!0}},indexedDB:function(){var t,e;if(!(O()||(t=window,e=navigator,d(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!O())))try{return!!window.indexedDB}catch(t){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var t=navigator.platform;return"MacIntel"===t&&k()&&!C()?function(){if("iPad"===navigator.platform)return!0;var t=screen,e=t.width/t.height;return d(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}()?"iPad":"iPhone":t},plugins:function(){var t=navigator.plugins;if(t){for(var e=[],n=0;n<t.length;++n){var r=t[n];if(r){for(var o=[],i=0;i<r.length;++i){var s=r[i];o.push({type:s.type,suffixes:s.suffixes})}e.push({name:r.name,description:r.description,mimeTypes:o})}}return e}},touchSupport:function(){var t,e=navigator,n=0;void 0!==e.maxTouchPoints?n=f(e.maxTouchPoints):void 0!==e.msMaxTouchPoints&&(n=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(e){t=!1}return{maxTouchPoints:n,touchEvent:t,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var t=[],e=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];e<n.length;e++){var r=n[e],o=window[r];o&&"object"==typeof o&&t.push(r)}return t.sort()},cookiesEnabled:function(){var t=document;try{t.cookie="cookietest=1; SameSite=Strict;";var e=-1!==t.cookie.indexOf("cookietest=");return t.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(t){return!1}},colorGamut:function(){for(var t=0,e=["rec2020","p3","srgb"];t<e.length;t++){var n=e[t];if(matchMedia("(color-gamut: ".concat(n,")")).matches)return n}},invertedColors:function(){return!!tt("inverted")||!tt("none")&&void 0},forcedColors:function(){return!!et("active")||!et("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var t=0;t<=100;++t)if(matchMedia("(max-monochrome: ".concat(t,")")).matches)return t;throw new Error("Too high value")}},contrast:function(){return nt("no-preference")?0:nt("high")||nt("more")?1:nt("low")||nt("less")?-1:nt("forced")?10:void 0},reducedMotion:function(){return!!rt("reduce")||!rt("no-preference")&&void 0},reducedTransparency:function(){return!!ot("reduce")||!ot("no-preference")&&void 0},hdr:function(){return!!it("high")||!it("standard")&&void 0},math:function(){var t,e=st.acos||at,n=st.acosh||at,r=st.asin||at,o=st.asinh||at,i=st.atanh||at,s=st.atan||at,a=st.sin||at,c=st.sinh||at,u=st.cos||at,f=st.cosh||at,l=st.tan||at,h=st.tanh||at,d=st.exp||at,p=st.expm1||at,y=st.log1p||at;return{acos:e(.12312423423423424),acosh:n(1e308),acoshPf:(t=1e154,st.log(t+st.sqrt(t*t-1))),asin:r(.12312423423423424),asinh:o(1),asinhPf:function(t){return st.log(t+st.sqrt(t*t+1))}(1),atanh:i(.5),atanhPf:function(t){return st.log((1+t)/(1-t))/2}(.5),atan:s(.5),sin:a(-1e300),sinh:c(1),sinhPf:function(t){return st.exp(t)-1/st.exp(t)/2}(1),cos:u(10.000000000123),cosh:f(1),coshPf:function(t){return(st.exp(t)+1/st.exp(t))/2}(1),tan:l(-1e300),tanh:h(1),tanhPf:function(t){return(st.exp(2*t)-1)/(st.exp(2*t)+1)}(1),exp:d(1),expm1:p(1),expm1Pf:function(t){return st.exp(t)-1}(1),log1p:y(10),log1pPf:function(t){return st.log(1+t)}(10),powPI:function(t){return st.pow(st.PI,t)}(-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var t=new Float32Array(1),e=new Uint8Array(t.buffer);return t[0]=1/0,t[0]=t[0]-t[0],e[3]},applePay:function(){var t=window.ApplePaySession;if("function"!=typeof(null==t?void 0:t.canMakePayments))return-1;if(ut())return-3;try{return t.canMakePayments()?1:0}catch(t){return function(t){if(t instanceof Error&&"InvalidAccessError"===t.name&&/\bfrom\b.*\binsecure\b/i.test(t.message))return-2;throw t}(t)}},privateClickMeasurement:function(){var t,e=document.createElement("a"),n=null!==(t=e.attributionSourceId)&&void 0!==t?t:e.attributionsourceid;return void 0===n?void 0:String(n)},audioBaseLatency:function(){if(!(M()||k()))return-2;if(!window.AudioContext)return-1;var t=(new AudioContext).baseLatency;return null==t?-1:isFinite(t)?t:-3},dateTimeLocale:function(){if(!window.Intl)return-1;var t=window.Intl.DateTimeFormat;if(!t)return-2;var e=t().resolvedOptions().locale;return e||""===e?e:-3},webGlBasics:function(t){var e,n,r,o,i,s,a=yt(t.cache);if(!a)return-1;if(!vt(a))return-2;var c=wt()?null:a.getExtension(pt);return{version:(null===(e=a.getParameter(a.VERSION))||void 0===e?void 0:e.toString())||"",vendor:(null===(n=a.getParameter(a.VENDOR))||void 0===n?void 0:n.toString())||"",vendorUnmasked:c?null===(r=a.getParameter(c.UNMASKED_VENDOR_WEBGL))||void 0===r?void 0:r.toString():"",renderer:(null===(o=a.getParameter(a.RENDERER))||void 0===o?void 0:o.toString())||"",rendererUnmasked:c?null===(i=a.getParameter(c.UNMASKED_RENDERER_WEBGL))||void 0===i?void 0:i.toString():"",shadingLanguageVersion:(null===(s=a.getParameter(a.SHADING_LANGUAGE_VERSION))||void 0===s?void 0:s.toString())||""}},webGlExtensions:function(t){var e=yt(t.cache);if(!e)return-1;if(!vt(e))return-2;var n=e.getSupportedExtensions(),r=e.getContextAttributes(),o=[],i=[],s=[],a=[],c=[];if(r)for(var u=0,f=Object.keys(r);u<f.length;u++){var l=f[u];i.push("".concat(l,"=").concat(r[l]))}for(var h=0,d=mt(e);h<d.length;h++){var p=e[E=d[h]];s.push("".concat(E,"=").concat(p).concat(ft.has(p)?"=".concat(e.getParameter(p)):""))}if(n)for(var y=0,g=n;y<g.length;y++){var m=g[y];if(!(m===pt&&wt()||"WEBGL_polygon_mode"===m&&(R()||k()))){var b=e.getExtension(m);if(b)for(var w=0,v=mt(b);w<v.length;w++){var E;p=b[E=v[w]];a.push("".concat(E,"=").concat(p).concat(lt.has(p)?"=".concat(e.getParameter(p)):""))}else o.push(m)}}for(var B=0,x=ht;B<x.length;B++)for(var A=x[B],S=0,I=dt;S<I.length;S++){var _=I[S],L=gt(e,A,_);c.push("".concat(A,".").concat(_,"=").concat(L.join(",")))}return a.sort(),s.sort(),{contextAttributes:i,parameters:s,shaderPrecisions:c,extensions:n,extensionParameters:a,unsupportedExtensions:o}}};function Bt(t){var e=function(t){if(M())return.4;if(k())return!C()||N()&&U()?.3:.5;var e="value"in t.platform?t.platform.value:"";if(/^Win/.test(e))return.6;if(/^Mac/.test(e))return.5;return.7}(t),n=function(t){return p(.99+.01*t,1e-4)}(e);return{score:e,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(n))}}function xt(t){return JSON.stringify(t,(function(t,e){return e instanceof Error?(n=e,(0,r.Cl)({name:n.name,message:n.message,stack:null===(o=n.stack)||void 0===o?void 0:o.split("\n")},n)):e;var n,o}),2)}function At(t){return L(function(t){for(var e="",n=0,r=Object.keys(t).sort();n<r.length;n++){var o=r[n],i=t[o],s="error"in i?"error":JSON.stringify(i.value);e+="".concat(e?"|":"").concat(o.replace(/([:|\\])/g,"\\$1"),":").concat(s)}return e}(t))}function St(t){return void 0===t&&(t=50),function(t,e){void 0===e&&(e=1/0);var n=window.requestIdleCallback;return n?new Promise((function(t){return n.call(window,(function(){return t()}),{timeout:e})})):i(Math.min(t,e))}(t,2*t)}function It(t,e){var n=Date.now();return{get:function(i){return(0,r.sH)(this,void 0,void 0,(function(){var s,a,c;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return s=Date.now(),[4,t()];case 1:return a=r.sent(),c=function(t){var e,n=Bt(t);return{get visitorId(){return void 0===e&&(e=At(this.components)),e},set visitorId(t){e=t},confidence:n,components:t,version:o}}(a),(e||(null==i?void 0:i.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(c.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(s-n,"\nvisitorId: ").concat(c.visitorId,"\ncomponents: ").concat(xt(a),"\n```")),[2,c]}}))}))}}}var _t={load:function(t){var e;return void 0===t&&(t={}),(0,r.sH)(this,void 0,void 0,(function(){var n,i,s;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return(null===(e=t.monitoring)||void 0===e||e)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var t=new XMLHttpRequest;t.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(o,"/npm-monitoring"),!0),t.send()}catch(t){console.error(t)}}(),n=t.delayFallback,i=t.debug,[4,St(n)];case 1:return r.sent(),s=function(t){return T(Et,t,[])}({cache:{},debug:i}),[2,It(s,i)]}}))}))},hashComponents:At,componentsToDebugString:xt}},6612:(t,e,n)=>{var r;n.d(e,{y:()=>r}),function(t){t.ENGLISH="en",t.CHINESE_SIMPLIFIED="zh-Hans",t.CHINESE_TRADITIONAL="zh-Hant",t.CHINESE_TRADITIONAL_TW="zh-Hant-TW",t.JAPANESE="ja",t.KOREAN="ko",t.FILIPINO="fil",t.INDONESIAN="id",t.PORTUGUESE="pt",t.THAI="th",t.VIETNAMESE="vi",t.ARABIC="ar"}(r||(r={}))},6748:(t,e,n)=>{e.VV=void 0,e.w=function(t,e){return Buffer.from(function(t,e){var n=(0,o.ellipticCurve)(),a=new i.PrivateKey(void 0,n),c=t instanceof Uint8Array?new i.PublicKey(t,n):i.PublicKey.fromHex(t,n),u=a.encapsulate(c,(0,o.isHkdfKeyCompressed)()),f=a.publicKey.toBytes((0,o.isEphemeralKeyCompressed)()),l=(0,s.symEncrypt)(u,e);return(0,r.concatBytes)(f,l)}(t,e))};var r=n(6527),o=n(4928),i=n(9065),s=n(2158);var a=n(4928);Object.defineProperty(e,"VV",{enumerable:!0,get:function(){return a.ECIES_CONFIG}});var c=n(9065);s.aesEncrypt,s.aesDecrypt,s.symEncrypt,s.symDecrypt,s.decodeHex,s.getValidSecret,s.remove0x},7076:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sha512_224=e.sha512_256=e.sha384=e.sha512=e.sha224=e.sha256=e.SHA512_256=e.SHA512_224=e.SHA384=e.SHA512=e.SHA224=e.SHA256=void 0;const r=n(7202),o=n(2318),i=n(9175),s=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=new Uint32Array(64);class c extends r.HashMD{constructor(t=32){super(64,t,8,!1),this.A=0|r.SHA256_IV[0],this.B=0|r.SHA256_IV[1],this.C=0|r.SHA256_IV[2],this.D=0|r.SHA256_IV[3],this.E=0|r.SHA256_IV[4],this.F=0|r.SHA256_IV[5],this.G=0|r.SHA256_IV[6],this.H=0|r.SHA256_IV[7]}get(){const{A:t,B:e,C:n,D:r,E:o,F:i,G:s,H:a}=this;return[t,e,n,r,o,i,s,a]}set(t,e,n,r,o,i,s,a){this.A=0|t,this.B=0|e,this.C=0|n,this.D=0|r,this.E=0|o,this.F=0|i,this.G=0|s,this.H=0|a}process(t,e){for(let n=0;n<16;n++,e+=4)a[n]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=a[t-15],n=a[t-2],r=(0,i.rotr)(e,7)^(0,i.rotr)(e,18)^e>>>3,o=(0,i.rotr)(n,17)^(0,i.rotr)(n,19)^n>>>10;a[t]=o+a[t-7]+r+a[t-16]|0}let{A:n,B:o,C:c,D:u,E:f,F:l,G:h,H:d}=this;for(let t=0;t<64;t++){const e=d+((0,i.rotr)(f,6)^(0,i.rotr)(f,11)^(0,i.rotr)(f,25))+(0,r.Chi)(f,l,h)+s[t]+a[t]|0,p=((0,i.rotr)(n,2)^(0,i.rotr)(n,13)^(0,i.rotr)(n,22))+(0,r.Maj)(n,o,c)|0;d=h,h=l,l=f,f=u+e|0,u=c,c=o,o=n,n=e+p|0}n=n+this.A|0,o=o+this.B|0,c=c+this.C|0,u=u+this.D|0,f=f+this.E|0,l=l+this.F|0,h=h+this.G|0,d=d+this.H|0,this.set(n,o,c,u,f,l,h,d)}roundClean(){(0,i.clean)(a)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,i.clean)(this.buffer)}}e.SHA256=c;class u extends c{constructor(){super(28),this.A=0|r.SHA224_IV[0],this.B=0|r.SHA224_IV[1],this.C=0|r.SHA224_IV[2],this.D=0|r.SHA224_IV[3],this.E=0|r.SHA224_IV[4],this.F=0|r.SHA224_IV[5],this.G=0|r.SHA224_IV[6],this.H=0|r.SHA224_IV[7]}}e.SHA224=u;const f=(()=>o.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((t=>BigInt(t)))))(),l=(()=>f[0])(),h=(()=>f[1])(),d=new Uint32Array(80),p=new Uint32Array(80);class y extends r.HashMD{constructor(t=64){super(128,t,16,!1),this.Ah=0|r.SHA512_IV[0],this.Al=0|r.SHA512_IV[1],this.Bh=0|r.SHA512_IV[2],this.Bl=0|r.SHA512_IV[3],this.Ch=0|r.SHA512_IV[4],this.Cl=0|r.SHA512_IV[5],this.Dh=0|r.SHA512_IV[6],this.Dl=0|r.SHA512_IV[7],this.Eh=0|r.SHA512_IV[8],this.El=0|r.SHA512_IV[9],this.Fh=0|r.SHA512_IV[10],this.Fl=0|r.SHA512_IV[11],this.Gh=0|r.SHA512_IV[12],this.Gl=0|r.SHA512_IV[13],this.Hh=0|r.SHA512_IV[14],this.Hl=0|r.SHA512_IV[15]}get(){const{Ah:t,Al:e,Bh:n,Bl:r,Ch:o,Cl:i,Dh:s,Dl:a,Eh:c,El:u,Fh:f,Fl:l,Gh:h,Gl:d,Hh:p,Hl:y}=this;return[t,e,n,r,o,i,s,a,c,u,f,l,h,d,p,y]}set(t,e,n,r,o,i,s,a,c,u,f,l,h,d,p,y){this.Ah=0|t,this.Al=0|e,this.Bh=0|n,this.Bl=0|r,this.Ch=0|o,this.Cl=0|i,this.Dh=0|s,this.Dl=0|a,this.Eh=0|c,this.El=0|u,this.Fh=0|f,this.Fl=0|l,this.Gh=0|h,this.Gl=0|d,this.Hh=0|p,this.Hl=0|y}process(t,e){for(let n=0;n<16;n++,e+=4)d[n]=t.getUint32(e),p[n]=t.getUint32(e+=4);for(let t=16;t<80;t++){const e=0|d[t-15],n=0|p[t-15],r=o.rotrSH(e,n,1)^o.rotrSH(e,n,8)^o.shrSH(e,n,7),i=o.rotrSL(e,n,1)^o.rotrSL(e,n,8)^o.shrSL(e,n,7),s=0|d[t-2],a=0|p[t-2],c=o.rotrSH(s,a,19)^o.rotrBH(s,a,61)^o.shrSH(s,a,6),u=o.rotrSL(s,a,19)^o.rotrBL(s,a,61)^o.shrSL(s,a,6),f=o.add4L(i,u,p[t-7],p[t-16]),l=o.add4H(f,r,c,d[t-7],d[t-16]);d[t]=0|l,p[t]=0|f}let{Ah:n,Al:r,Bh:i,Bl:s,Ch:a,Cl:c,Dh:u,Dl:f,Eh:y,El:g,Fh:m,Fl:b,Gh:w,Gl:v,Hh:E,Hl:B}=this;for(let t=0;t<80;t++){const e=o.rotrSH(y,g,14)^o.rotrSH(y,g,18)^o.rotrBH(y,g,41),x=o.rotrSL(y,g,14)^o.rotrSL(y,g,18)^o.rotrBL(y,g,41),A=y&m^~y&w,S=g&b^~g&v,I=o.add5L(B,x,S,h[t],p[t]),_=o.add5H(I,E,e,A,l[t],d[t]),L=0|I,H=o.rotrSH(n,r,28)^o.rotrBH(n,r,34)^o.rotrBH(n,r,39),T=o.rotrSL(n,r,28)^o.rotrBL(n,r,34)^o.rotrBL(n,r,39),O=n&i^n&a^i&a,R=r&s^r&c^s&c;E=0|w,B=0|v,w=0|m,v=0|b,m=0|y,b=0|g,({h:y,l:g}=o.add(0|u,0|f,0|_,0|L)),u=0|a,f=0|c,a=0|i,c=0|s,i=0|n,s=0|r;const k=o.add3L(L,T,R);n=o.add3H(k,_,H,O),r=0|k}({h:n,l:r}=o.add(0|this.Ah,0|this.Al,0|n,0|r)),({h:i,l:s}=o.add(0|this.Bh,0|this.Bl,0|i,0|s)),({h:a,l:c}=o.add(0|this.Ch,0|this.Cl,0|a,0|c)),({h:u,l:f}=o.add(0|this.Dh,0|this.Dl,0|u,0|f)),({h:y,l:g}=o.add(0|this.Eh,0|this.El,0|y,0|g)),({h:m,l:b}=o.add(0|this.Fh,0|this.Fl,0|m,0|b)),({h:w,l:v}=o.add(0|this.Gh,0|this.Gl,0|w,0|v)),({h:E,l:B}=o.add(0|this.Hh,0|this.Hl,0|E,0|B)),this.set(n,r,i,s,a,c,u,f,y,g,m,b,w,v,E,B)}roundClean(){(0,i.clean)(d,p)}destroy(){(0,i.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}e.SHA512=y;class g extends y{constructor(){super(48),this.Ah=0|r.SHA384_IV[0],this.Al=0|r.SHA384_IV[1],this.Bh=0|r.SHA384_IV[2],this.Bl=0|r.SHA384_IV[3],this.Ch=0|r.SHA384_IV[4],this.Cl=0|r.SHA384_IV[5],this.Dh=0|r.SHA384_IV[6],this.Dl=0|r.SHA384_IV[7],this.Eh=0|r.SHA384_IV[8],this.El=0|r.SHA384_IV[9],this.Fh=0|r.SHA384_IV[10],this.Fl=0|r.SHA384_IV[11],this.Gh=0|r.SHA384_IV[12],this.Gl=0|r.SHA384_IV[13],this.Hh=0|r.SHA384_IV[14],this.Hl=0|r.SHA384_IV[15]}}e.SHA384=g;const m=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),b=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class w extends y{constructor(){super(28),this.Ah=0|m[0],this.Al=0|m[1],this.Bh=0|m[2],this.Bl=0|m[3],this.Ch=0|m[4],this.Cl=0|m[5],this.Dh=0|m[6],this.Dl=0|m[7],this.Eh=0|m[8],this.El=0|m[9],this.Fh=0|m[10],this.Fl=0|m[11],this.Gh=0|m[12],this.Gl=0|m[13],this.Hh=0|m[14],this.Hl=0|m[15]}}e.SHA512_224=w;class v extends y{constructor(){super(32),this.Ah=0|b[0],this.Al=0|b[1],this.Bh=0|b[2],this.Bl=0|b[3],this.Ch=0|b[4],this.Cl=0|b[5],this.Dh=0|b[6],this.Dl=0|b[7],this.Eh=0|b[8],this.El=0|b[9],this.Fh=0|b[10],this.Fl=0|b[11],this.Gh=0|b[12],this.Gl=0|b[13],this.Hh=0|b[14],this.Hl=0|b[15]}}e.SHA512_256=v,e.sha256=(0,i.createHasher)((()=>new c)),e.sha224=(0,i.createHasher)((()=>new u)),e.sha512=(0,i.createHasher)((()=>new y)),e.sha384=(0,i.createHasher)((()=>new g)),e.sha512_256=(0,i.createHasher)((()=>new v)),e.sha512_224=(0,i.createHasher)((()=>new w))},7202:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SHA512_IV=e.SHA384_IV=e.SHA224_IV=e.SHA256_IV=e.HashMD=void 0,e.setBigUint64=o,e.Chi=function(t,e,n){return t&e^~t&n},e.Maj=function(t,e,n){return t&e^t&n^e&n};const r=n(9175);function o(t,e,n,r){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,n,r);const o=BigInt(32),i=BigInt(4294967295),s=Number(n>>o&i),a=Number(n&i),c=r?4:0,u=r?0:4;t.setUint32(e+c,s,r),t.setUint32(e+u,a,r)}class i extends r.Hash{constructor(t,e,n,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=e,this.padOffset=n,this.isLE=o,this.buffer=new Uint8Array(t),this.view=(0,r.createView)(this.buffer)}update(t){(0,r.aexists)(this),t=(0,r.toBytes)(t),(0,r.abytes)(t);const{view:e,buffer:n,blockLen:o}=this,i=t.length;for(let s=0;s<i;){const a=Math.min(o-this.pos,i-s);if(a!==o)n.set(t.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===o&&(this.process(e,0),this.pos=0);else{const e=(0,r.createView)(t);for(;o<=i-s;s+=o)this.process(e,s)}}return this.length+=t.length,this.roundClean(),this}digestInto(t){(0,r.aexists)(this),(0,r.aoutput)(t,this),this.finished=!0;const{buffer:e,view:n,blockLen:i,isLE:s}=this;let{pos:a}=this;e[a++]=128,(0,r.clean)(this.buffer.subarray(a)),this.padOffset>i-a&&(this.process(n,0),a=0);for(let t=a;t<i;t++)e[t]=0;o(n,i-8,BigInt(8*this.length),s),this.process(n,0);const c=(0,r.createView)(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const f=u/4,l=this.get();if(f>l.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t<f;t++)c.setUint32(4*t,l[t],s)}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const n=t.slice(0,e);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:e,buffer:n,length:r,finished:o,destroyed:i,pos:s}=this;return t.destroyed=i,t.finished=o,t.length=r,t.pos=s,r%e&&t.buffer.set(n),t}clone(){return this._cloneInto()}}e.HashMD=i,e.SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),e.SHA224_IV=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),e.SHA384_IV=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),e.SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])},7311:(t,e,n)=>{n.d(e,{o:()=>u});var r=n(6568),o=n(8330),i=n(8693),s=n(1089);const a="tokenUpdated",c={maxRetries:3,initialDelay:500};class u{static instance;_appId="";_secret="";_platform;_accessToken="";_expiredTime=0;_version="";_identifier="";_webIdentifier="";_tokenGetter;_tokenPending=null;_dispatch=(0,s.A)(a);_globalDispatcher;constructor(){}static getInstance(){return u.instance||(u.instance=new u),u.instance}async setAccessByAppKey(t){this._tokenGetter=this._fetchToken.bind(this);const{appId:e,secret:n,platform:r}=t;this._appId=e,this._secret=n,this._platform=r,this._version=r?.sdkVersion||o.rE,this._identifier=r?.identifier||await this.getWebIdentifier()}setTokenGetter(t){this._tokenGetter=t}async setupTokenManager(){if(!this._tokenGetter)throw new Error("getTokenAsync() is not set!");const{maxRetries:t,initialDelay:e}=c;let n=0;for(;n<=t;)try{const t=await this._tokenGetter();if(t)return void this._updateContext(t)}catch(r){if(n++,n>t)throw this._globalDispatcher.call("unauthorized"),r;await this._retryDelay(n,e)}}getSdkVersion(){return this._version||o.rE}async getIdentifier(){return this._identifier||await this.getWebIdentifier()}async getAccessToken(){if(this._accessToken&&!this._isTokenExpired)return this._accessToken;if(this._tokenPending)return this._tokenPending;if(!this._tokenGetter)throw new Error("Token getter not configured. Call setGetTokenAsync() first.");return this._tokenPending=this._tokenGetter().then((t=>(this._updateContext(t),this._dispatch.call(a,null,t.accessToken),t.accessToken))).catch((t=>{throw this._tokenPending=null,t})).finally((()=>{this._tokenPending=null})),this._tokenPending}async getWebIdentifier(){if(!this._webIdentifier){const t=await r.Ay.load(),e=await t.get();this._webIdentifier=e.visitorId}return this._webIdentifier}on(t,e){return this._dispatch.on(t,e),{off:()=>this._dispatch.on(t,null)}}setGlobalDispatcher(t){this._globalDispatcher=t}getGlobalDispatcher(){return this._globalDispatcher}clearState(){this._appId="",this._secret="",this._platform=void 0,this._webIdentifier="",this._tokenPending=null,this._tokenGetter=void 0,this._accessToken="",this._expiredTime=0,this._version="",this._identifier=""}get _isTokenExpired(){return this._expiredTime<=Date.now()}_updateContext(t){const{accessToken:e,expiredTime:n,identifier:r,sdkVersion:o}=t;this._accessToken=e,this._expiredTime=n,void 0!==r&&(this._identifier=r),void 0!==o&&(this._version=o)}_fetchToken(){return(0,i.i)(this._appId,this._secret,this._platform)}async _retryDelay(t,e){const n=e*Math.pow(2,t-1);return console.warn(`Retrying in ${n} ms... (Attempt ${t})`),new Promise((t=>setTimeout(t,n)))}}},7526:(t,e)=>{e.byteLength=function(t){var e=a(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,i=a(t),s=i[0],c=i[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,s,c)),f=0,l=c>0?s-4:s;for(n=0;n<l;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],u[f++]=e>>16&255,u[f++]=e>>8&255,u[f++]=255&e;2===c&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,u[f++]=255&e);1===c&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,u[f++]=e>>8&255,u[f++]=255&e);return u},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],s=16383,a=0,u=r-o;a<u;a+=s)i.push(c(t,a,a+s>u?u:a+s));1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=i[s],r[i.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,r){for(var o,i,s=[],a=e;a<r;a+=3)o=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7678:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.aes256cbc=e.aes256gcm=void 0;var r=n(469);e.aes256gcm=function(t,e,n){return(0,r.gcm)(t,e,n)};e.aes256cbc=function(t,e,n){return(0,r.cbc)(t,e)}},7757:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.aesDecrypt=e.aesEncrypt=e.symDecrypt=e.symEncrypt=void 0;var r=n(6527),o=n(8489),i=n(7678),s=n(83),a=n(4928),c=n(1666);e.symEncrypt=function(t,e,n){return u(f,t,e,n)};function u(t,e,n,r){var o=(0,a.symmetricAlgorithm)();if("aes-256-gcm"===o)return t(i.aes256gcm,e,n,(0,a.symmetricNonceLength)(),c.AEAD_TAG_LENGTH,r);if("xchacha20"===o)return t(s.xchacha20,e,n,c.XCHACHA20_NONCE_LENGTH,c.AEAD_TAG_LENGTH,r);if("aes-256-cbc"===o)return t(i.aes256cbc,e,n,16,0);throw new Error("Not implemented")}function f(t,e,n,i,s,a){var c=(0,o.randomBytes)(i),u=t(e,c,a).encrypt(n);if(0===s)return(0,r.concatBytes)(c,u);var f=u.length-s,l=u.subarray(0,f),h=u.subarray(f);return(0,r.concatBytes)(c,h,l)}function l(t,e,n,o,i,s){var a=n.subarray(0,o),c=t(e,Uint8Array.from(a),s),u=n.subarray(o);if(0===i)return c.decrypt(u);var f=u.subarray(0,i),l=u.subarray(i);return c.decrypt((0,r.concatBytes)(l,f))}e.symDecrypt=function(t,e,n){return u(l,t,e,n)},e.aesEncrypt=e.symEncrypt,e.aesDecrypt=e.symDecrypt},7808:(t,e,n)=>{n.d(e,{Cm:()=>o,EC:()=>s,Uk:()=>i});var r=n(7311);function o(){return r.o.getInstance().getIdentifier()}function i(t){r.o.getInstance().setTokenGetter(t)}function s(){return r.o.getInstance().setupTokenManager()}},8167:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(8287),o=n(6748);void 0===globalThis.Buffer&&(globalThis.Buffer=r.hp),o.VV.ellipticCurve="secp256k1",o.VV.symmetricAlgorithm="aes-256-gcm";const i=new TextEncoder;function s(t,e){return(0,o.w)(t,i.encode(e)).toString("hex")}},8287:(t,e,n)=>{const r=n(7526),o=n(251),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.hp=c,e.IS=50;const s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return u(t,e,n)}function u(t,e,n){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|y(t,e);let r=a(n);const o=r.write(t,e);o!==n&&(r=r.slice(0,o));return r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(q(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(q(t,ArrayBuffer)||t&&q(t.buffer,ArrayBuffer))return d(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(q(t,SharedArrayBuffer)||t&&q(t.buffer,SharedArrayBuffer)))return d(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,n);const o=function(t){if(c.isBuffer(t)){const e=0|p(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!=typeof t.length||X(t.length)?a(0):h(t);if("Buffer"===t.type&&Array.isArray(t.data))return h(t.data)}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return f(t),a(t<0?0:0|p(t))}function h(t){const e=t.length<0?0:0|p(t.length),n=a(e);for(let r=0;r<e;r+=1)n[r]=255&t[r];return n}function d(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,c.prototype),r}function p(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function y(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||q(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(t).length;default:if(o)return r?-1:z(t).length;e=(""+e).toLowerCase(),o=!0}}function g(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,n);case"utf8":case"utf-8":return I(this,e,n);case"ascii":return L(this,e,n);case"latin1":case"binary":return H(this,e,n);case"base64":return S(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,o){let i,s=1,a=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){let r=-1;for(i=n;i<a;i++)if(u(t,i)===u(e,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===c)return r*s}else-1!==r&&(i-=i-r),r=-1}else for(n+c>a&&(n=a-c),i=n;i>=0;i--){let n=!0;for(let r=0;r<c;r++)if(u(t,i+r)!==u(e,r)){n=!1;break}if(n)return i}return-1}function v(t,e,n,r){n=Number(n)||0;const o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=e.length;let s;for(r>i/2&&(r=i/2),s=0;s<r;++s){const r=parseInt(e.substr(2*s,2),16);if(X(r))return s;t[n+s]=r}return s}function E(t,e,n,r){return K(z(e,t.length-n),t,n,r)}function B(t,e,n,r){return K(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function x(t,e,n,r){return K(Y(e),t,n,r)}function A(t,e,n,r){return K(function(t,e){let n,r,o;const i=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(e,t.length-n),t,n,r)}function S(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function I(t,e,n){n=Math.min(t.length,n);const r=[];let o=e;for(;o<n;){const e=t[o];let i=null,s=e>239?4:e>223?3:e>191?2:1;if(o+s<=n){let n,r,a,c;switch(s){case 1:e<128&&(i=e);break;case 2:n=t[o+1],128==(192&n)&&(c=(31&e)<<6|63&n,c>127&&(i=c));break;case 3:n=t[o+1],r=t[o+2],128==(192&n)&&128==(192&r)&&(c=(15&e)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:n=t[o+1],r=t[o+2],a=t[o+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(c=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=s}return function(t){const e=t.length;if(e<=_)return String.fromCharCode.apply(String,t);let n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=_));return n}(r)}c.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,n){return u(t,e,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,n){return function(t,e,n){return f(t),t<=0?a(t):void 0!==e?"string"==typeof n?a(t).fill(e,n):a(t).fill(e):a(t)}(t,e,n)},c.allocUnsafe=function(t){return l(t)},c.allocUnsafeSlow=function(t){return l(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(q(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),q(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);let n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const r=c.allocUnsafe(e);let o=0;for(n=0;n<t.length;++n){let e=t[n];if(q(e,Uint8Array))o+e.length>r.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(r,o)):Uint8Array.prototype.set.call(r,e,o);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,o)}o+=e.length}return r},c.byteLength=y,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)m(this,e,e+1);return this},c.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},c.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},c.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?I(this,0,t):g.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){let t="";const n=e.IS;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(t,e,n,r,o){if(q(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;let i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0);const a=Math.min(i,s),u=this.slice(r,o),f=t.slice(e,n);for(let t=0;t<a;++t)if(u[t]!==f[t]){i=u[t],s=f[t];break}return i<s?-1:s<i?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return v(this,t,e,n);case"utf8":case"utf-8":return E(this,t,e,n);case"ascii":case"latin1":case"binary":return B(this,t,e,n);case"base64":return x(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const _=4096;function L(t,e,n){let r="";n=Math.min(t.length,n);for(let o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}function H(t,e,n){let r="";n=Math.min(t.length,n);for(let o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function T(t,e,n){const r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=e;r<n;++r)o+=J[t[r]];return o}function O(t,e,n){const r=t.slice(e,n);let o="";for(let t=0;t<r.length-1;t+=2)o+=String.fromCharCode(r[t]+256*r[t+1]);return o}function R(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function k(t,e,n,r,o,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function C(t,e,n,r,o){j(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,n}function U(t,e,n,r,o){j(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n+7]=i,i>>=8,t[n+6]=i,i>>=8,t[n+5]=i,i>>=8,t[n+4]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=s,s>>=8,t[n+2]=s,s>>=8,t[n+1]=s,s>>=8,t[n]=s,n+8}function P(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(t,e,n,r,i){return e=+e,n>>>=0,i||P(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function V(t,e,n,r,i){return e=+e,n>>>=0,i||P(t,0,n,8),o.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const r=this.subarray(t,e);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||R(t,e,this.length);let r=this[t],o=1,i=0;for(;++i<e&&(o*=256);)r+=this[t+i]*o;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||R(t,e,this.length);let r=this[t+--e],o=1;for(;e>0&&(o*=256);)r+=this[t+--e]*o;return r},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=$((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Z(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,o=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))})),c.prototype.readBigUInt64BE=$((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Z(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],o=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)})),c.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||R(t,e,this.length);let r=this[t],o=1,i=0;for(;++i<e&&(o*=256);)r+=this[t+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||R(t,e,this.length);let r=e,o=1,i=this[t+--r];for(;r>0&&(o*=256);)i+=this[t+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},c.prototype.readInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||R(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||R(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=$((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Z(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),c.prototype.readBigInt64BE=$((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Z(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)})),c.prototype.readFloatLE=function(t,e){return t>>>=0,e||R(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||R(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||R(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||R(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){k(this,t,e,n,Math.pow(2,8*n)-1,0)}let o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){k(this,t,e,n,Math.pow(2,8*n)-1,0)}let o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=$((function(t,e=0){return C(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=$((function(t,e=0){return U(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);k(this,t,e,n,r-1,-r)}let o=0,i=1,s=0;for(this[e]=255&t;++o<n&&(i*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/i|0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);k(this,t,e,n,r-1,-r)}let o=n-1,i=1,s=0;for(this[e+o]=255&t;--o>=0&&(i*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/i|0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||k(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=$((function(t,e=0){return C(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=$((function(t,e=0){return U(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(t,e,n){return N(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return N(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return V(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return V(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);const o=r-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),o},c.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){const e=t.charCodeAt(0);("utf8"===r&&e<128||"latin1"===r)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{const i=c.isBuffer(t)?t:c.from(t,r),s=i.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=i[o%s]}return this};const M={};function F(t,e,n){M[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function D(t){let e="",n=t.length;const r="-"===t[0]?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function j(t,e,n,r,o,i){if(t>n||t<e){const r="bigint"==typeof e?"n":"";let o;throw o=i>3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new M.ERR_OUT_OF_RANGE("value",o,t)}!function(t,e,n){G(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||Z(e,t.length-(n+1))}(r,o,i)}function G(t,e){if("number"!=typeof t)throw new M.ERR_INVALID_ARG_TYPE(e,"number",t)}function Z(t,e,n){if(Math.floor(t)!==t)throw G(t,n),new M.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new M.ERR_BUFFER_OUT_OF_BOUNDS;throw new M.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=D(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=D(o)),o+="n"),r+=` It must be ${e}. Received ${o}`,r}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function z(t,e){let n;e=e||1/0;const r=t.length;let o=null;const i=[];for(let s=0;s<r;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function Y(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function K(t,e,n,r){let o;for(o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function q(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function X(t){return t!=t}const J=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)e[r+o]=t[n]+t[o]}return e}();function $(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},8330:t=>{t.exports={rE:"8.5.0"}},8412:(t,e,n)=>{var r,o,i;!function(t){t.POINT="Point",t.POLYGON="Polygon"}(r||(r={})),function(t){t.POINT="Point",t.POLYGON="Polygon",t.GATE="Gate"}(o||(o={})),function(t){t.DEFAULT_NAME="DefaultName"}(i||(i={}))},8489:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.gcm=e.ctr=e.cbc=e.utils=void 0,e.randomBytes=i,e.getWebcryptoSubtle=s,e.managedNonce=function(t){const{nonceLength:e}=t;return(0,o.anumber)(e),(n,...r)=>({encrypt(s,...a){const c=i(e),u=t(n,c,...r).encrypt(s,...a),f=(0,o.concatBytes)(c,u);return u.fill(0),f},decrypt(o,...i){const s=o.subarray(0,e),a=o.subarray(e);return t(n,s,...r).decrypt(a,...i)}})};const r=n(5297),o=n(6527);function i(t=32){if(r.crypto&&"function"==typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(t));if(r.crypto&&"function"==typeof r.crypto.randomBytes)return Uint8Array.from(r.crypto.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")}function s(){if(r.crypto&&"object"==typeof r.crypto.subtle&&null!=r.crypto.subtle)return r.crypto.subtle;throw new Error("crypto.subtle must be defined")}e.utils={async encrypt(t,e,n,r){const o=s(),i=await o.importKey("raw",t,e,!0,["encrypt"]),a=await o.encrypt(n,i,r);return new Uint8Array(a)},async decrypt(t,e,n,r){const o=s(),i=await o.importKey("raw",t,e,!0,["decrypt"]),a=await o.decrypt(n,i,r);return new Uint8Array(a)}};const a="AES-CBC",c="AES-CTR",u="AES-GCM";function f(t){return(n,r,i)=>{(0,o.abytes)(n),(0,o.abytes)(r);const s={name:t,length:8*n.length},f=function(t,e,n){if(t===a)return{name:a,iv:e};if(t===c)return{name:c,counter:e,length:64};if(t===u)return n?{name:u,iv:e,additionalData:n}:{name:u,iv:e};throw new Error("unknown aes block mode")}(t,r,i);let l=!1;return{encrypt(t){if((0,o.abytes)(t),l)throw new Error("Cannot encrypt() twice with same key / nonce");return l=!0,e.utils.encrypt(n,s,f,t)},decrypt:t=>((0,o.abytes)(t),e.utils.decrypt(n,s,f,t))}}}e.cbc=f(a),e.ctr=f(c),e.gcm=(()=>f(u))()},8510:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.secp256k1_hasher=e.schnorr=e.secp256k1=void 0;const r=n(7076),o=n(9175),i=n(3562),s=n(1761),a=n(4967),c=n(1484),u=n(1705),f=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),l=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h=BigInt(0),d=BigInt(1),p=BigInt(2),y=(t,e)=>(t+e/p)/e;function g(t){const e=f,n=BigInt(3),r=BigInt(6),o=BigInt(11),i=BigInt(22),s=BigInt(23),c=BigInt(44),u=BigInt(88),l=t*t*t%e,h=l*l*t%e,d=(0,a.pow2)(h,n,e)*h%e,y=(0,a.pow2)(d,n,e)*h%e,g=(0,a.pow2)(y,p,e)*l%e,b=(0,a.pow2)(g,o,e)*g%e,w=(0,a.pow2)(b,i,e)*b%e,v=(0,a.pow2)(w,c,e)*w%e,E=(0,a.pow2)(v,u,e)*v%e,B=(0,a.pow2)(E,c,e)*w%e,x=(0,a.pow2)(B,n,e)*h%e,A=(0,a.pow2)(x,s,e)*b%e,S=(0,a.pow2)(A,r,e)*l%e,I=(0,a.pow2)(S,p,e);if(!m.eql(m.sqr(I),t))throw new Error("Cannot find square root");return I}const m=(0,a.Field)(f,void 0,void 0,{sqrt:g});e.secp256k1=(0,i.createCurve)({a:h,b:BigInt(7),Fp:m,n:l,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=l,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-d*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=n,s=BigInt("0x100000000000000000000000000000000"),c=y(i*t,e),u=y(-r*t,e);let f=(0,a.mod)(t-c*n-u*o,e),h=(0,a.mod)(-c*r-u*i,e);const p=f>s,g=h>s;if(p&&(f=e-f),g&&(h=e-h),f>s||h>s)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:p,k1:f,k2neg:g,k2:h}}}},r.sha256);const b={};function w(t,...e){let n=b[t];if(void 0===n){const e=(0,r.sha256)(Uint8Array.from(t,(t=>t.charCodeAt(0))));n=(0,c.concatBytes)(e,e),b[t]=n}return(0,r.sha256)((0,c.concatBytes)(n,...e))}const v=t=>t.toRawBytes(!0).slice(1),E=t=>(0,c.numberToBytesBE)(t,32),B=t=>(0,a.mod)(t,f),x=t=>(0,a.mod)(t,l),A=(()=>e.secp256k1.ProjectivePoint)();function S(t){let n=e.secp256k1.utils.normPrivateKeyToScalar(t),r=A.fromPrivateKey(n);return{scalar:r.hasEvenY()?n:x(-n),bytes:v(r)}}function I(t){(0,c.aInRange)("x",t,d,f);const e=B(t*t);let n=g(B(e*t+BigInt(7)));n%p!==h&&(n=B(-n));const r=new A(t,n,d);return r.assertValidity(),r}const _=c.bytesToNumberBE;function L(...t){return x(_(w("BIP0340/challenge",...t)))}function H(t){return S(t).bytes}function T(t,e,n=(0,o.randomBytes)(32)){const r=(0,c.ensureBytes)("message",t),{bytes:i,scalar:s}=S(e),a=(0,c.ensureBytes)("auxRand",n,32),u=E(s^_(w("BIP0340/aux",a))),f=w("BIP0340/nonce",u,i,r),l=x(_(f));if(l===h)throw new Error("sign failed: k is zero");const{bytes:d,scalar:p}=S(l),y=L(d,i,r),g=new Uint8Array(64);if(g.set(d,0),g.set(E(x(p+y*s)),32),!O(g,r,i))throw new Error("sign: Invalid signature produced");return g}function O(t,e,n){const r=(0,c.ensureBytes)("signature",t,64),o=(0,c.ensureBytes)("message",e),i=(0,c.ensureBytes)("publicKey",n,32);try{const t=I(_(i)),e=_(r.subarray(0,32));if(!(0,c.inRange)(e,d,f))return!1;const n=_(r.subarray(32,64));if(!(0,c.inRange)(n,d,l))return!1;const h=L(E(e),v(t),o),p=(s=t,a=n,u=x(-h),A.BASE.multiplyAndAddUnsafe(s,a,u));return!(!p||!p.hasEvenY()||p.toAffine().x!==e)}catch(t){return!1}var s,a,u}e.schnorr={getPublicKey:H,sign:T,verify:O,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:I,pointToBytes:v,numberToBytesBE:c.numberToBytesBE,bytesToNumberBE:c.bytesToNumberBE,taggedHash:w,mod:a.mod}};const R=(()=>(0,s.isogenyMap)(m,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((t=>t.map((t=>BigInt(t)))))))(),k=(()=>(0,u.mapToCurveSimpleSWU)(m,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:m.create(BigInt("-11"))}))();e.secp256k1_hasher=(0,s.createHasher)(e.secp256k1.ProjectivePoint,(t=>{const{x:e,y:n}=k(m.create(t[0]));return R(e,n)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:m.ORDER,m:1,k:128,expand:"xmd",hash:r.sha256}),e.hashToCurve=e.secp256k1_hasher.hashToCurve,e.encodeToCurve=e.secp256k1_hasher.encodeToCurve},8693:(t,e,n)=>{n.d(e,{i:()=>f});var r=n(2658),o=n(5461),i=n(7808),s=n(9588),a=n(8167),c=n(8330);const u=["CORE_SDK",...(0,r.d)()];async function f(t,e,n,r){if(!t||!e)throw new Error("appId and secret are required");try{const f=await(0,o.l)(),h=await async function(t,e=l){return t??async function(t){return{identifier:await(0,i.Cm)(),origin:t,keyPlatform:"WEB",sdkVersion:c.rE}}(e)}(n,r),{identifier:d,sdkVersion:p,...y}=h,g={"Content-Type":"text/plain",sdkVersion:p},m=function(t,e){return(0,a.Z)(t,JSON.stringify(e))}(f,{appId:t,secret:e,identifier:d,timestamp:Date.now(),products:u,...y}),b=await fetch(s.R0,{method:"POST",body:m,headers:g});if(!b.ok){const t=await b.json(),{code:e,message:n}=t;if(401===b.status&&7001005===e)throw(0,o.U)(),new Error(n);throw new Error(n||`HTTP error! status: ${b.status}`)}const w=await b.json(),{accessToken:v,expiresIn:E}=w;return{accessToken:v,expiredTime:Date.now()+1e3*(E-90)}}catch(t){throw t instanceof Error?new Error(`Failed to get access token: ${t.message}`,{cause:t}):new Error(`Failed to get access token: ${String(t)}`)}}const l="undefined"!=typeof window&&window.location?.hostname?window.location.hostname:"restriction.test.example.com"},8884:(t,e,n)=>{var r;!function(t){t.Access="access_control",t.Map="map"}(r||(r={}))},8900:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.xchacha20poly1305=e.chacha20poly1305=e._poly1305_aead=e.chacha12=e.chacha8=e.xchacha20=e.chacha20=e.chacha20orig=void 0,e.hchacha=a;const r=n(2506),o=n(1210),i=n(6527);function s(t,e,n,o,i,s=20){let a=t[0],c=t[1],u=t[2],f=t[3],l=e[0],h=e[1],d=e[2],p=e[3],y=e[4],g=e[5],m=e[6],b=e[7],w=i,v=n[0],E=n[1],B=n[2],x=a,A=c,S=u,I=f,_=l,L=h,H=d,T=p,O=y,R=g,k=m,C=b,U=w,P=v,N=E,V=B;for(let t=0;t<s;t+=2)x=x+_|0,U=(0,r.rotl)(U^x,16),O=O+U|0,_=(0,r.rotl)(_^O,12),x=x+_|0,U=(0,r.rotl)(U^x,8),O=O+U|0,_=(0,r.rotl)(_^O,7),A=A+L|0,P=(0,r.rotl)(P^A,16),R=R+P|0,L=(0,r.rotl)(L^R,12),A=A+L|0,P=(0,r.rotl)(P^A,8),R=R+P|0,L=(0,r.rotl)(L^R,7),S=S+H|0,N=(0,r.rotl)(N^S,16),k=k+N|0,H=(0,r.rotl)(H^k,12),S=S+H|0,N=(0,r.rotl)(N^S,8),k=k+N|0,H=(0,r.rotl)(H^k,7),I=I+T|0,V=(0,r.rotl)(V^I,16),C=C+V|0,T=(0,r.rotl)(T^C,12),I=I+T|0,V=(0,r.rotl)(V^I,8),C=C+V|0,T=(0,r.rotl)(T^C,7),x=x+L|0,V=(0,r.rotl)(V^x,16),k=k+V|0,L=(0,r.rotl)(L^k,12),x=x+L|0,V=(0,r.rotl)(V^x,8),k=k+V|0,L=(0,r.rotl)(L^k,7),A=A+H|0,U=(0,r.rotl)(U^A,16),C=C+U|0,H=(0,r.rotl)(H^C,12),A=A+H|0,U=(0,r.rotl)(U^A,8),C=C+U|0,H=(0,r.rotl)(H^C,7),S=S+T|0,P=(0,r.rotl)(P^S,16),O=O+P|0,T=(0,r.rotl)(T^O,12),S=S+T|0,P=(0,r.rotl)(P^S,8),O=O+P|0,T=(0,r.rotl)(T^O,7),I=I+_|0,N=(0,r.rotl)(N^I,16),R=R+N|0,_=(0,r.rotl)(_^R,12),I=I+_|0,N=(0,r.rotl)(N^I,8),R=R+N|0,_=(0,r.rotl)(_^R,7);let M=0;o[M++]=a+x|0,o[M++]=c+A|0,o[M++]=u+S|0,o[M++]=f+I|0,o[M++]=l+_|0,o[M++]=h+L|0,o[M++]=d+H|0,o[M++]=p+T|0,o[M++]=y+O|0,o[M++]=g+R|0,o[M++]=m+k|0,o[M++]=b+C|0,o[M++]=w+U|0,o[M++]=v+P|0,o[M++]=E+N|0,o[M++]=B+V|0}function a(t,e,n,o){let i=t[0],s=t[1],a=t[2],c=t[3],u=e[0],f=e[1],l=e[2],h=e[3],d=e[4],p=e[5],y=e[6],g=e[7],m=n[0],b=n[1],w=n[2],v=n[3];for(let t=0;t<20;t+=2)i=i+u|0,m=(0,r.rotl)(m^i,16),d=d+m|0,u=(0,r.rotl)(u^d,12),i=i+u|0,m=(0,r.rotl)(m^i,8),d=d+m|0,u=(0,r.rotl)(u^d,7),s=s+f|0,b=(0,r.rotl)(b^s,16),p=p+b|0,f=(0,r.rotl)(f^p,12),s=s+f|0,b=(0,r.rotl)(b^s,8),p=p+b|0,f=(0,r.rotl)(f^p,7),a=a+l|0,w=(0,r.rotl)(w^a,16),y=y+w|0,l=(0,r.rotl)(l^y,12),a=a+l|0,w=(0,r.rotl)(w^a,8),y=y+w|0,l=(0,r.rotl)(l^y,7),c=c+h|0,v=(0,r.rotl)(v^c,16),g=g+v|0,h=(0,r.rotl)(h^g,12),c=c+h|0,v=(0,r.rotl)(v^c,8),g=g+v|0,h=(0,r.rotl)(h^g,7),i=i+f|0,v=(0,r.rotl)(v^i,16),y=y+v|0,f=(0,r.rotl)(f^y,12),i=i+f|0,v=(0,r.rotl)(v^i,8),y=y+v|0,f=(0,r.rotl)(f^y,7),s=s+l|0,m=(0,r.rotl)(m^s,16),g=g+m|0,l=(0,r.rotl)(l^g,12),s=s+l|0,m=(0,r.rotl)(m^s,8),g=g+m|0,l=(0,r.rotl)(l^g,7),a=a+h|0,b=(0,r.rotl)(b^a,16),d=d+b|0,h=(0,r.rotl)(h^d,12),a=a+h|0,b=(0,r.rotl)(b^a,8),d=d+b|0,h=(0,r.rotl)(h^d,7),c=c+u|0,w=(0,r.rotl)(w^c,16),p=p+w|0,u=(0,r.rotl)(u^p,12),c=c+u|0,w=(0,r.rotl)(w^c,8),p=p+w|0,u=(0,r.rotl)(u^p,7);let E=0;o[E++]=i,o[E++]=s,o[E++]=a,o[E++]=c,o[E++]=m,o[E++]=b,o[E++]=w,o[E++]=v}e.chacha20orig=(0,r.createCipher)(s,{counterRight:!1,counterLength:8,allowShortKeys:!0}),e.chacha20=(0,r.createCipher)(s,{counterRight:!1,counterLength:4,allowShortKeys:!1}),e.xchacha20=(0,r.createCipher)(s,{counterRight:!1,counterLength:8,extendNonceFn:a,allowShortKeys:!1}),e.chacha8=(0,r.createCipher)(s,{counterRight:!1,counterLength:4,rounds:8}),e.chacha12=(0,r.createCipher)(s,{counterRight:!1,counterLength:4,rounds:12});const c=new Uint8Array(16),u=(t,e)=>{t.update(e);const n=e.length%16;n&&t.update(c.subarray(n))},f=new Uint8Array(32);function l(t,e,n,r,s){const a=t(e,n,f),c=o.poly1305.create(a);s&&u(c,s),u(c,r);const l=(0,i.u64Lengths)(r.length,s?s.length:0,!0);c.update(l);const h=c.digest();return(0,i.clean)(a,l),h}e._poly1305_aead=t=>(e,n,r)=>{const o=16;return{encrypt(s,a){const c=s.length;(a=(0,i.getOutput)(c+o,a,!1)).set(s);const u=a.subarray(0,-16);t(e,n,u,u,1);const f=l(t,e,n,u,r);return a.set(f,c),(0,i.clean)(f),a},decrypt(s,a){a=(0,i.getOutput)(s.length-o,a,!1);const c=s.subarray(0,-16),u=s.subarray(-16),f=l(t,e,n,c,r);if(!(0,i.equalBytes)(u,f))throw new Error("invalid tag");return a.set(s.subarray(0,-16)),t(e,n,a,a,1),(0,i.clean)(f),a}}},e.chacha20poly1305=(0,i.wrapCipher)({blockSize:64,nonceLength:12,tagLength:16},(0,e._poly1305_aead)(e.chacha20)),e.xchacha20poly1305=(0,i.wrapCipher)({blockSize:64,nonceLength:24,tagLength:16},(0,e._poly1305_aead)(e.xchacha20))},9065:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=e.PrivateKey=void 0;var r=n(5295);Object.defineProperty(e,"PrivateKey",{enumerable:!0,get:function(){return r.PrivateKey}});var o=n(2557);Object.defineProperty(e,"PublicKey",{enumerable:!0,get:function(){return o.PublicKey}})},9175:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.Hash=e.nextTick=e.swap32IfBE=e.byteSwapIfBE=e.swap8IfBE=e.isLE=void 0,e.isBytes=o,e.anumber=i,e.abytes=s,e.ahash=function(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.createHasher");i(t.outputLen),i(t.blockLen)},e.aexists=function(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")},e.aoutput=function(t,e){s(t);const n=e.outputLen;if(t.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)},e.u8=function(t){return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)},e.u32=function(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))},e.clean=function(...t){for(let e=0;e<t.length;e++)t[e].fill(0)},e.createView=function(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)},e.rotr=function(t,e){return t<<32-e|t>>>e},e.rotl=function(t,e){return t<<e|t>>>32-e>>>0},e.byteSwap=a,e.byteSwap32=c,e.bytesToHex=function(t){if(s(t),u)return t.toHex();let e="";for(let n=0;n<t.length;n++)e+=f[t[n]];return e},e.hexToBytes=function(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);if(u)return Uint8Array.fromHex(t);const e=t.length,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let e=0,o=0;e<n;e++,o+=2){const n=h(t.charCodeAt(o)),i=h(t.charCodeAt(o+1));if(void 0===n||void 0===i){const e=t[o]+t[o+1];throw new Error('hex string expected, got non-hex character "'+e+'" at index '+o)}r[e]=16*n+i}return r},e.asyncLoop=async function(t,n,r){let o=Date.now();for(let i=0;i<t;i++){r(i);const t=Date.now()-o;t>=0&&t<n||(await(0,e.nextTick)(),o+=t)}},e.utf8ToBytes=d,e.bytesToUtf8=function(t){return(new TextDecoder).decode(t)},e.toBytes=p,e.kdfInputToBytes=function(t){"string"==typeof t&&(t=d(t));return s(t),t},e.concatBytes=function(...t){let e=0;for(let n=0;n<t.length;n++){const r=t[n];s(r),e+=r.length}const n=new Uint8Array(e);for(let e=0,r=0;e<t.length;e++){const o=t[e];n.set(o,r),r+=o.length}return n},e.checkOpts=function(t,e){if(void 0!==e&&"[object Object]"!=={}.toString.call(e))throw new Error("options should be object or undefined");return Object.assign(t,e)},e.createHasher=y,e.createOptHasher=g,e.createXOFer=m,e.randomBytes=function(t=32){if(r.crypto&&"function"==typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(t));if(r.crypto&&"function"==typeof r.crypto.randomBytes)return Uint8Array.from(r.crypto.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")};const r=n(5145);function o(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}function i(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function s(t,...e){if(!o(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function a(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}function c(t){for(let e=0;e<t.length;e++)t[e]=a(t[e]);return t}e.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],e.swap8IfBE=e.isLE?t=>t:t=>a(t),e.byteSwapIfBE=e.swap8IfBE,e.swap32IfBE=e.isLE?t=>t:c;const u=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),f=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));const l={_0:48,_9:57,A:65,F:70,a:97,f:102};function h(t){return t>=l._0&&t<=l._9?t-l._0:t>=l.A&&t<=l.F?t-(l.A-10):t>=l.a&&t<=l.f?t-(l.a-10):void 0}function d(t){if("string"!=typeof t)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(t))}function p(t){return"string"==typeof t&&(t=d(t)),s(t),t}e.nextTick=async()=>{};function y(t){const e=e=>t().update(p(e)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function g(t){const e=(e,n)=>t(n).update(p(e)).digest(),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=e=>t(e),e}function m(t){const e=(e,n)=>t(n).update(p(e)).digest(),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=e=>t(e),e}e.Hash=class{},e.wrapConstructor=y,e.wrapConstructorWithOpts=g,e.wrapXOFConstructorWithOpts=m},9378:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hexToPublicKey=e.convertPublicKeyFormat=e.getSharedPoint=e.getPublicKey=e.isValidPrivateKey=e.getValidSecret=void 0;var r=n(8489),o=n(459),i=n(8510),s=n(4928),a=n(1666),c=n(3503);e.getValidSecret=function(t){var n;do{n=(0,r.randomBytes)(a.SECRET_KEY_LENGTH)}while(!(0,e.isValidPrivateKey)(n,t));return n};e.isValidPrivateKey=function(t,e){return u(e||(0,s.ellipticCurve)(),(function(e){return e.utils.isValidPrivateKey(t)}),(function(){return!0}),(function(){return!0}))};e.getPublicKey=function(t,e){return u(e||(0,s.ellipticCurve)(),(function(e){return e.getPublicKey(t)}),(function(e){return e.getPublicKey(t)}),(function(e){return e.getPublicKey(t)}))};e.getSharedPoint=function(t,e,n,r){return u(r||(0,s.ellipticCurve)(),(function(r){return r.getSharedSecret(t,e,n)}),(function(n){return n.getSharedSecret(t,e)}),(function(n){return l(n,t,e)}))};e.convertPublicKeyFormat=function(t,e,n){return u(n||(0,s.ellipticCurve)(),(function(n){return n.getSharedSecret(BigInt(1),t,e)}),(function(){return t}),(function(){return t}))};function u(t,e,n,r){if("secp256k1"===t)return e(i.secp256k1);if("x25519"===t)return n(o.x25519);if("ed25519"===t)return r(o.ed25519);throw new Error("Not implemented")}e.hexToPublicKey=function(t,e){var n=(0,c.decodeHex)(t);return u(e||(0,s.ellipticCurve)(),(function(){return f(n)}),(function(){return n}),(function(){return n}))};var f=function(t){if(t.length===a.ETH_PUBLIC_KEY_SIZE){var e=new Uint8Array(1+t.length);return e.set([4]),e.set(t,1),e}return t},l=function(t,e,n){var r=t.utils.getExtendedPublicKey(e).scalar;return t.ExtendedPoint.fromHex(n).multiply(r).toRawBytes()}},9408:(t,e,n)=>{var r;!function(t){t.CHRISTMAS="christmas",t.HALLOWEEN="halloween",t.MAPPY_BEE="mappyBee",t.MAPXUS="mapxus",t.LANDS_D="landsD",t.COMMON="common",t.MAPXUS_V2="mapxus_v2",t.MAPXUS_DEFAULT="mapxus_default"}(r||(r={}))},9489:(t,e,n)=>{n.d(e,{S:()=>i});var r=n(1089),o=n(7311);const i=["unauthorized","initError"],s=globalThis,a=(0,r.A)(...i);o.o.getInstance().setGlobalDispatcher(a),s.MapxusMapEvents=s.MapxusMapEvents||{},s.MapxusMapEvents.on=function(t,e){return a.on(t,e),{off:()=>a.on(t,null)}}},9588:(t,e,n)=>{n.d(e,{KL:()=>s,R0:()=>r,e$:()=>i,kk:()=>o});const r="https://map-api.mapxus.co.jp/accounts/v1/auth/secure-token",o="https://map-sdk.mapxus.co.jp/prod/static/resources/manifest-z6frc5.dat",i=10,s=1},9615:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const r=n(9175);class o extends r.Hash{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,(0,r.ahash)(t);const n=(0,r.toBytes)(e);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,i=new Uint8Array(o);i.set(n.length>o?t.create().update(n).digest():n);for(let t=0;t<i.length;t++)i[t]^=54;this.iHash.update(i),this.oHash=t.create();for(let t=0;t<i.length;t++)i[t]^=106;this.oHash.update(i),(0,r.clean)(i)}update(t){return(0,r.aexists)(this),this.iHash.update(t),this}digestInto(t){(0,r.aexists)(this),(0,r.abytes)(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:e,iHash:n,finished:r,destroyed:o,blockLen:i,outputLen:s}=this;return t.finished=r,t.destroyed=o,t.blockLen=i,t.outputLen=s,t.oHash=e._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}e.HMAC=o;e.hmac=(t,e,n)=>new o(t,e).update(n).digest(),e.hmac.create=(t,e)=>new o(t,e)}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};n.d(r,{Cm:()=>c.Cm,EC:()=>c.EC,KL:()=>i.KL,SN:()=>u.S,Sr:()=>f.S,Uk:()=>c.Uk,e$:()=>i.e$,iD:()=>a.i,xv:()=>l,yf:()=>s.y});var o=n(8330),i=n(9588),s=n(4969),a=n(8693),c=n(7808),u=n(2658),f=n(9489);const l=o.rE,h=r.Sr,d=r.e$,p=r.KL,y=r.xv,g=r.SN,m=r.yf,b=r.iD,w=r.Cm,v=r.Uk,E=r.EC;export{h as ERRORS,d as OFFSET,p as PAGE,y as VERSION,g as __internal,m as convertBrowserLangToPresetLang,b as getAccessToken,w as getIdentifier,v as setGetTokenAsync,E as setupTokenManager};
|