UNPKG

@lightninglabs/lnc-web

Version:

Lightning Node Connect npm module for web

2 lines 321 kB
/*! For license information please see index.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@lightninglabs/lnc-web"]=t():e["@lightninglabs/lnc-web"]=t()}(this,()=>(()=>{var e={7289(e,t,r){"use strict";var n=r(6763);(()=>{const e=()=>{const e=new Error("not implemented");return e.code="ENOSYS",e};if(!globalThis.fs){let t="";globalThis.fs={constants:{O_WRONLY:-1,O_RDWR:-1,O_CREAT:-1,O_TRUNC:-1,O_APPEND:-1,O_EXCL:-1},writeSync(e,o){t+=r.decode(o);const i=t.lastIndexOf("\n");return-1!=i&&(n.log(t.substring(0,i)),t=t.substring(i+1)),o.length},write(t,r,n,o,i,a){0===n&&o===r.length&&null===i?a(null,this.writeSync(t,r)):a(e())},chmod(t,r,n){n(e())},chown(t,r,n,o){o(e())},close(t,r){r(e())},fchmod(t,r,n){n(e())},fchown(t,r,n,o){o(e())},fstat(t,r){r(e())},fsync(e,t){t(null)},ftruncate(t,r,n){n(e())},lchown(t,r,n,o){o(e())},link(t,r,n){n(e())},lstat(t,r){r(e())},mkdir(t,r,n){n(e())},open(t,r,n,o){o(e())},read(t,r,n,o,i,a){a(e())},readdir(t,r){r(e())},readlink(t,r){r(e())},rename(t,r,n){n(e())},rmdir(t,r){r(e())},stat(t,r){r(e())},symlink(t,r,n){n(e())},truncate(t,r,n){n(e())},unlink(t,r){r(e())},utimes(t,r,n,o){o(e())}}}if(globalThis.process||(globalThis.process={getuid:()=>-1,getgid:()=>-1,geteuid:()=>-1,getegid:()=>-1,getgroups(){throw e()},pid:-1,ppid:-1,umask(){throw e()},cwd(){throw e()},chdir(){throw e()}}),!globalThis.crypto)throw new Error("globalThis.crypto is not available, polyfill required (crypto.getRandomValues only)");if(!globalThis.performance)throw new Error("globalThis.performance is not available, polyfill required (performance.now only)");if(!globalThis.TextEncoder)throw new Error("globalThis.TextEncoder is not available, polyfill required");if(!globalThis.TextDecoder)throw new Error("globalThis.TextDecoder is not available, polyfill required");const t=new TextEncoder("utf-8"),r=new TextDecoder("utf-8");globalThis.Go=class{constructor(){this.argv=["js"],this.env={},this.exit=e=>{0!==e&&n.warn("exit code:",e)},this._exitPromise=new Promise(e=>{this._resolveExitPromise=e}),this._pendingEvent=null,this._scheduledTimeouts=new Map,this._nextCallbackTimeoutID=1;const e=(e,t)=>{this.mem.setUint32(e+0,t,!0),this.mem.setUint32(e+4,Math.floor(t/4294967296),!0)},o=e=>this.mem.getUint32(e+0,!0)+4294967296*this.mem.getInt32(e+4,!0),i=e=>{const t=this.mem.getFloat64(e,!0);if(0===t)return;if(!isNaN(t))return t;const r=this.mem.getUint32(e,!0);return this._values[r]},a=(e,t)=>{const r=2146959360;if("number"==typeof t&&0!==t)return isNaN(t)?(this.mem.setUint32(e+4,r,!0),void this.mem.setUint32(e,0,!0)):void this.mem.setFloat64(e,t,!0);if(void 0===t)return void this.mem.setFloat64(e,0,!0);let n=this._ids.get(t);void 0===n&&(n=this._idPool.pop(),void 0===n&&(n=this._values.length),this._values[n]=t,this._goRefCounts[n]=0,this._ids.set(t,n)),this._goRefCounts[n]++;let o=0;switch(typeof t){case"object":null!==t&&(o=1);break;case"string":o=2;break;case"symbol":o=3;break;case"function":o=4}this.mem.setUint32(e+4,r|o,!0),this.mem.setUint32(e,n,!0)},s=e=>{const t=o(e+0),r=o(e+8);return new Uint8Array(this._inst.exports.mem.buffer,t,r)},c=e=>{const t=o(e+0),r=o(e+8),n=new Array(r);for(let e=0;e<r;e++)n[e]=i(t+8*e);return n},u=e=>{const t=o(e+0),n=o(e+8);return r.decode(new DataView(this._inst.exports.mem.buffer,t,n))},l=Date.now()-performance.now();this.importObject={_gotest:{add:(e,t)=>e+t},gojs:{"runtime.wasmExit":e=>{e>>>=0;const t=this.mem.getInt32(e+8,!0);this.exited=!0,delete this._inst,delete this._values,delete this._goRefCounts,delete this._ids,delete this._idPool,this.exit(t)},"runtime.wasmWrite":e=>{const t=o((e>>>=0)+8),r=o(e+16),n=this.mem.getInt32(e+24,!0);fs.writeSync(t,new Uint8Array(this._inst.exports.mem.buffer,r,n))},"runtime.resetMemoryDataView":e=>{this.mem=new DataView(this._inst.exports.mem.buffer)},"runtime.nanotime1":t=>{e((t>>>=0)+8,1e6*(l+performance.now()))},"runtime.walltime":t=>{t>>>=0;const r=(new Date).getTime();e(t+8,r/1e3),this.mem.setInt32(t+16,r%1e3*1e6,!0)},"runtime.scheduleTimeoutEvent":e=>{e>>>=0;const t=this._nextCallbackTimeoutID;this._nextCallbackTimeoutID++,this._scheduledTimeouts.set(t,setTimeout(()=>{for(this._resume();this._scheduledTimeouts.has(t);)n.warn("scheduleTimeoutEvent: missed timeout event"),this._resume()},o(e+8))),this.mem.setInt32(e+16,t,!0)},"runtime.clearTimeoutEvent":e=>{e>>>=0;const t=this.mem.getInt32(e+8,!0);clearTimeout(this._scheduledTimeouts.get(t)),this._scheduledTimeouts.delete(t)},"runtime.getRandomData":e=>{e>>>=0,crypto.getRandomValues(s(e+8))},"syscall/js.finalizeRef":e=>{e>>>=0;const t=this.mem.getUint32(e+8,!0);if(this._goRefCounts[t]--,0===this._goRefCounts[t]){const e=this._values[t];this._values[t]=null,this._ids.delete(e),this._idPool.push(t)}},"syscall/js.stringVal":e=>{a((e>>>=0)+24,u(e+8))},"syscall/js.valueGet":e=>{e>>>=0;const t=Reflect.get(i(e+8),u(e+16));e=this._inst.exports.getsp()>>>0,a(e+32,t)},"syscall/js.valueSet":e=>{e>>>=0,Reflect.set(i(e+8),u(e+16),i(e+32))},"syscall/js.valueDelete":e=>{e>>>=0,Reflect.deleteProperty(i(e+8),u(e+16))},"syscall/js.valueIndex":e=>{a((e>>>=0)+24,Reflect.get(i(e+8),o(e+16)))},"syscall/js.valueSetIndex":e=>{e>>>=0,Reflect.set(i(e+8),o(e+16),i(e+24))},"syscall/js.valueCall":e=>{e>>>=0;try{const t=i(e+8),r=Reflect.get(t,u(e+16)),n=c(e+32),o=Reflect.apply(r,t,n);e=this._inst.exports.getsp()>>>0,a(e+56,o),this.mem.setUint8(e+64,1)}catch(t){e=this._inst.exports.getsp()>>>0,a(e+56,t),this.mem.setUint8(e+64,0)}},"syscall/js.valueInvoke":e=>{e>>>=0;try{const t=i(e+8),r=c(e+16),n=Reflect.apply(t,void 0,r);e=this._inst.exports.getsp()>>>0,a(e+40,n),this.mem.setUint8(e+48,1)}catch(t){e=this._inst.exports.getsp()>>>0,a(e+40,t),this.mem.setUint8(e+48,0)}},"syscall/js.valueNew":e=>{e>>>=0;try{const t=i(e+8),r=c(e+16),n=Reflect.construct(t,r);e=this._inst.exports.getsp()>>>0,a(e+40,n),this.mem.setUint8(e+48,1)}catch(t){e=this._inst.exports.getsp()>>>0,a(e+40,t),this.mem.setUint8(e+48,0)}},"syscall/js.valueLength":t=>{e((t>>>=0)+16,parseInt(i(t+8).length))},"syscall/js.valuePrepareString":r=>{r>>>=0;const n=t.encode(String(i(r+8)));a(r+16,n),e(r+24,n.length)},"syscall/js.valueLoadString":e=>{const t=i((e>>>=0)+8);s(e+16).set(t)},"syscall/js.valueInstanceOf":e=>{e>>>=0,this.mem.setUint8(e+24,i(e+8)instanceof i(e+16)?1:0)},"syscall/js.copyBytesToGo":t=>{const r=s((t>>>=0)+8),n=i(t+32);if(!(n instanceof Uint8Array||n instanceof Uint8ClampedArray))return void this.mem.setUint8(t+48,0);const o=n.subarray(0,r.length);r.set(o),e(t+40,o.length),this.mem.setUint8(t+48,1)},"syscall/js.copyBytesToJS":t=>{const r=i((t>>>=0)+8),n=s(t+16);if(!(r instanceof Uint8Array||r instanceof Uint8ClampedArray))return void this.mem.setUint8(t+48,0);const o=n.subarray(0,r.length);r.set(o),e(t+40,o.length),this.mem.setUint8(t+48,1)},debug:e=>{n.log(e)}}}}async run(e){if(!(e instanceof WebAssembly.Instance))throw new Error("Go.run: WebAssembly.Instance expected");this._inst=e,this.mem=new DataView(this._inst.exports.mem.buffer),this._values=[NaN,0,null,!0,!1,globalThis,this],this._goRefCounts=new Array(this._values.length).fill(1/0),this._ids=new Map([[0,1],[null,2],[!0,3],[!1,4],[globalThis,5],[this,6]]),this._idPool=[],this.exited=!1;let r=4096;const n=e=>{const n=r,o=t.encode(e+"\0");return new Uint8Array(this.mem.buffer,r,o.length).set(o),r+=o.length,r%8!=0&&(r+=8-r%8),n},o=this.argv.length,i=[];this.argv.forEach(e=>{i.push(n(e))}),i.push(0),Object.keys(this.env).sort().forEach(e=>{i.push(n(`${e}=${this.env[e]}`))}),i.push(0);const a=r;if(i.forEach(e=>{this.mem.setUint32(r,e,!0),this.mem.setUint32(r+4,0,!0),r+=8}),r>=12288)throw new Error("total length of command line and environment variables exceeds limit");this._inst.exports.run(o,a),this.exited&&this._resolveExitPromise(),await this._exitPromise}_resume(){if(this.exited)throw new Error("Go program has already exited");this._inst.exports.resume(),this.exited&&this._resolveExitPromise()}_makeFuncWrapper(e){const t=this;return function(){const r={id:e,this:this,args:arguments};return t._pendingEvent=r,t._resume(),r.result}}}})()},3318(e){var t;t=()=>(()=>{"use strict";var e={5804(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(2495);t.default=function(e,t){this.faradayServer=e(n.serviceNames.frdrpc.FaradayServer,t)}},3586(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LitApi=t.TaprootAssetsApi=t.FaradayApi=t.PoolApi=t.LoopApi=t.LndApi=void 0;var o=r(728);Object.defineProperty(t,"LndApi",{enumerable:!0,get:function(){return n(o).default}});var i=r(3762);Object.defineProperty(t,"LoopApi",{enumerable:!0,get:function(){return n(i).default}});var a=r(7082);Object.defineProperty(t,"PoolApi",{enumerable:!0,get:function(){return n(a).default}});var s=r(5804);Object.defineProperty(t,"FaradayApi",{enumerable:!0,get:function(){return n(s).default}});var c=r(9147);Object.defineProperty(t,"TaprootAssetsApi",{enumerable:!0,get:function(){return n(c).default}});var u=r(2191);Object.defineProperty(t,"LitApi",{enumerable:!0,get:function(){return n(u).default}})},2191(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(2495);t.default=function(e,t){this.autopilot=e(n.serviceNames.litrpc.Autopilot,t),this.firewall=e(n.serviceNames.litrpc.Firewall,t),this.sessions=e(n.serviceNames.litrpc.Sessions,t),this.status=e(n.serviceNames.litrpc.Status,t)}},728(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(2495);t.default=function(e,t){this.autopilot=e(n.serviceNames.autopilotrpc.Autopilot,t),this.chainNotifier=e(n.serviceNames.chainrpc.ChainNotifier,t),this.invoices=e(n.serviceNames.invoicesrpc.Invoices,t),this.lightning=e(n.serviceNames.lnrpc.Lightning,t),this.router=e(n.serviceNames.routerrpc.Router,t),this.signer=e(n.serviceNames.signrpc.Signer,t),this.walletKit=e(n.serviceNames.walletrpc.WalletKit,t),this.walletUnlocker=e(n.serviceNames.lnrpc.WalletUnlocker,t),this.watchtower=e(n.serviceNames.watchtowerrpc.Watchtower,t),this.watchtowerClient=e(n.serviceNames.wtclientrpc.WatchtowerClient,t)}},3762(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(2495);t.default=function(e,t){this.swapClient=e(n.serviceNames.looprpc.SwapClient,t),this.debug=e(n.serviceNames.looprpc.Debug,t)}},7082(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(2495);t.default=function(e,t){this.trader=e(n.serviceNames.poolrpc.Trader,t),this.channelAuctioneer=e(n.serviceNames.poolrpc.ChannelAuctioneer,t),this.hashmail=e(n.serviceNames.poolrpc.HashMail,t)}},9147(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(2495);t.default=function(e,t){this.taprootAssets=e(n.serviceNames.taprpc.TaprootAssets,t),this.assetWallet=e(n.serviceNames.assetwalletrpc.AssetWallet,t),this.mint=e(n.serviceNames.mintrpc.Mint,t),this.priceOracle=e(n.serviceNames.priceoraclerpc.PriceOracle,t),this.rfq=e(n.serviceNames.rfqrpc.Rfq,t),this.tapChannels=e(n.serviceNames.tapchannelrpc.TaprootAssetChannels,t),this.tapDev=e(n.serviceNames.tapdevrpc.TapDev,t),this.universe=e(n.serviceNames.universerpc.Universe,t)}},4245(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.subscriptionMethods=t.TaprootAssetsApi=t.LitApi=t.FaradayApi=t.PoolApi=t.LoopApi=t.LndApi=t.snakeKeysToCamel=t.isObject=t.camelKeysToSnake=void 0,o(r(4578),t);var i=r(1022);Object.defineProperty(t,"camelKeysToSnake",{enumerable:!0,get:function(){return i.camelKeysToSnake}}),Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return i.isObject}}),Object.defineProperty(t,"snakeKeysToCamel",{enumerable:!0,get:function(){return i.snakeKeysToCamel}});var a=r(3586);Object.defineProperty(t,"LndApi",{enumerable:!0,get:function(){return a.LndApi}}),Object.defineProperty(t,"LoopApi",{enumerable:!0,get:function(){return a.LoopApi}}),Object.defineProperty(t,"PoolApi",{enumerable:!0,get:function(){return a.PoolApi}}),Object.defineProperty(t,"FaradayApi",{enumerable:!0,get:function(){return a.FaradayApi}}),Object.defineProperty(t,"LitApi",{enumerable:!0,get:function(){return a.LitApi}}),Object.defineProperty(t,"TaprootAssetsApi",{enumerable:!0,get:function(){return a.TaprootAssetsApi}});var s=r(2495);Object.defineProperty(t,"subscriptionMethods",{enumerable:!0,get:function(){return s.subscriptionMethods}})},9444(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(5712),t)},1241(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(4376),t)},9926(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(2277),t)},6636(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(8647),t)},8925(e,t){var r,n,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.CloseRecommendationRequest_Metric=t.EntryType=t.FiatBackend=t.Granularity=void 0,(i=t.Granularity||(t.Granularity={})).UNKNOWN_GRANULARITY="UNKNOWN_GRANULARITY",i.MINUTE="MINUTE",i.FIVE_MINUTES="FIVE_MINUTES",i.FIFTEEN_MINUTES="FIFTEEN_MINUTES",i.THIRTY_MINUTES="THIRTY_MINUTES",i.HOUR="HOUR",i.SIX_HOURS="SIX_HOURS",i.TWELVE_HOURS="TWELVE_HOURS",i.DAY="DAY",i.UNRECOGNIZED="UNRECOGNIZED",(o=t.FiatBackend||(t.FiatBackend={})).UNKNOWN_FIATBACKEND="UNKNOWN_FIATBACKEND",o.COINCAP="COINCAP",o.COINDESK="COINDESK",o.CUSTOM="CUSTOM",o.COINGECKO="COINGECKO",o.UNRECOGNIZED="UNRECOGNIZED",(n=t.EntryType||(t.EntryType={})).UNKNOWN="UNKNOWN",n.LOCAL_CHANNEL_OPEN="LOCAL_CHANNEL_OPEN",n.REMOTE_CHANNEL_OPEN="REMOTE_CHANNEL_OPEN",n.CHANNEL_OPEN_FEE="CHANNEL_OPEN_FEE",n.CHANNEL_CLOSE="CHANNEL_CLOSE",n.RECEIPT="RECEIPT",n.PAYMENT="PAYMENT",n.FEE="FEE",n.CIRCULAR_RECEIPT="CIRCULAR_RECEIPT",n.FORWARD="FORWARD",n.FORWARD_FEE="FORWARD_FEE",n.CIRCULAR_PAYMENT="CIRCULAR_PAYMENT",n.CIRCULAR_FEE="CIRCULAR_FEE",n.SWEEP="SWEEP",n.SWEEP_FEE="SWEEP_FEE",n.CHANNEL_CLOSE_FEE="CHANNEL_CLOSE_FEE",n.UNRECOGNIZED="UNRECOGNIZED",(r=t.CloseRecommendationRequest_Metric||(t.CloseRecommendationRequest_Metric={})).UNKNOWN="UNKNOWN",r.UPTIME="UPTIME",r.REVENUE="REVENUE",r.INCOMING_VOLUME="INCOMING_VOLUME",r.OUTGOING_VOLUME="OUTGOING_VOLUME",r.TOTAL_VOLUME="TOTAL_VOLUME",r.UNRECOGNIZED="UNRECOGNIZED"},8507(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(8925),t)},4578(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.universerpc=t.taprpc=t.tapdevrpc=t.tapchannelrpc=t.rfqrpc=t.priceoraclerpc=t.mintrpc=t.authmailboxrpc=t.assetwalletrpc=t.poolrpc=t.looprpc=t.wtclientrpc=t.watchtowerrpc=t.walletrpc=t.signrpc=t.routerrpc=t.peersrpc=t.lnrpc=t.invoicesrpc=t.chainrpc=t.autopilotrpc=t.litrpc=t.frdrpc=void 0;var a=i(r(8507));t.frdrpc=a;var s=i(r(2844));t.litrpc=s;var c=i(r(9926));t.autopilotrpc=c;var u=i(r(6636));t.chainrpc=u;var l=i(r(8561));t.invoicesrpc=l;var p=i(r(1419));t.lnrpc=p;var f=i(r(1908));t.peersrpc=f;var h=i(r(6534));t.routerrpc=h;var E=i(r(8054));t.signrpc=E;var y=i(r(718));t.walletrpc=y;var d=i(r(5109));t.watchtowerrpc=d;var _=i(r(7685));t.wtclientrpc=_;var O=i(r(7967));t.looprpc=O;var v=i(r(2471));t.poolrpc=v;var T=i(r(9444));t.assetwalletrpc=T;var g=i(r(1241));t.authmailboxrpc=g;var N=i(r(1393));t.mintrpc=N;var S=i(r(2162));t.priceoraclerpc=S;var A=i(r(4386));t.rfqrpc=A;var b=i(r(8933));t.tapchannelrpc=b;var C=i(r(8753));t.tapdevrpc=C;var R=i(r(5600));t.taprpc=R;var I=i(r(7164));t.universerpc=I},8561(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(4195),t)},8650(e,t){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ActionState=void 0,(r=t.ActionState||(t.ActionState={})).STATE_UNKNOWN="STATE_UNKNOWN",r.STATE_PENDING="STATE_PENDING",r.STATE_DONE="STATE_DONE",r.STATE_ERROR="STATE_ERROR",r.UNRECOGNIZED="UNRECOGNIZED"},5547(e,t){Object.defineProperty(t,"__esModule",{value:!0})},1199(e,t){var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SessionState=t.SessionType=void 0,(n=t.SessionType||(t.SessionType={})).TYPE_MACAROON_READONLY="TYPE_MACAROON_READONLY",n.TYPE_MACAROON_ADMIN="TYPE_MACAROON_ADMIN",n.TYPE_MACAROON_CUSTOM="TYPE_MACAROON_CUSTOM",n.TYPE_UI_PASSWORD="TYPE_UI_PASSWORD",n.TYPE_AUTOPILOT="TYPE_AUTOPILOT",n.TYPE_MACAROON_ACCOUNT="TYPE_MACAROON_ACCOUNT",n.UNRECOGNIZED="UNRECOGNIZED",(r=t.SessionState||(t.SessionState={})).STATE_CREATED="STATE_CREATED",r.STATE_IN_USE="STATE_IN_USE",r.STATE_REVOKED="STATE_REVOKED",r.STATE_EXPIRED="STATE_EXPIRED",r.STATE_RESERVED="STATE_RESERVED",r.UNRECOGNIZED="UNRECOGNIZED"},6440(e,t){Object.defineProperty(t,"__esModule",{value:!0})},2844(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(8650),t),o(r(5547),t),o(r(1199),t),o(r(6440),t)},2277(e,t){Object.defineProperty(t,"__esModule",{value:!0})},8647(e,t){Object.defineProperty(t,"__esModule",{value:!0})},4195(e,t){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.LookupModifier=void 0,(r=t.LookupModifier||(t.LookupModifier={})).DEFAULT="DEFAULT",r.HTLC_SET_ONLY="HTLC_SET_ONLY",r.HTLC_SET_BLANK="HTLC_SET_BLANK",r.UNRECOGNIZED="UNRECOGNIZED"},4377(e,t){var r,n,o,i,a,s,c,u,l,p,f,h,E,y,d,_,O,v,T,g,N,S;Object.defineProperty(t,"__esModule",{value:!0}),t.Failure_FailureCode=t.HTLCAttempt_HTLCStatus=t.Payment_PaymentStatus=t.Invoice_InvoiceState=t.ChannelEventUpdate_UpdateType=t.PendingChannelsResponse_ForceClosedChannel_AnchorState=t.PeerEvent_EventType=t.Peer_SyncType=t.ChannelCloseSummary_ClosureType=t.UpdateFailure=t.FeatureBit=t.PaymentFailureReason=t.InvoiceHTLCState=t.NodeMetricType=t.GraphCacheStatus=t.ResolutionOutcome=t.ResolutionType=t.Initiator=t.CommitmentType=t.AddressType=t.CoinSelectionStrategy=t.OutputScriptType=void 0,(S=t.OutputScriptType||(t.OutputScriptType={})).SCRIPT_TYPE_PUBKEY_HASH="SCRIPT_TYPE_PUBKEY_HASH",S.SCRIPT_TYPE_SCRIPT_HASH="SCRIPT_TYPE_SCRIPT_HASH",S.SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH="SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH",S.SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH="SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH",S.SCRIPT_TYPE_PUBKEY="SCRIPT_TYPE_PUBKEY",S.SCRIPT_TYPE_MULTISIG="SCRIPT_TYPE_MULTISIG",S.SCRIPT_TYPE_NULLDATA="SCRIPT_TYPE_NULLDATA",S.SCRIPT_TYPE_NON_STANDARD="SCRIPT_TYPE_NON_STANDARD",S.SCRIPT_TYPE_WITNESS_UNKNOWN="SCRIPT_TYPE_WITNESS_UNKNOWN",S.SCRIPT_TYPE_WITNESS_V1_TAPROOT="SCRIPT_TYPE_WITNESS_V1_TAPROOT",S.UNRECOGNIZED="UNRECOGNIZED",(N=t.CoinSelectionStrategy||(t.CoinSelectionStrategy={})).STRATEGY_USE_GLOBAL_CONFIG="STRATEGY_USE_GLOBAL_CONFIG",N.STRATEGY_LARGEST="STRATEGY_LARGEST",N.STRATEGY_RANDOM="STRATEGY_RANDOM",N.UNRECOGNIZED="UNRECOGNIZED",(g=t.AddressType||(t.AddressType={})).WITNESS_PUBKEY_HASH="WITNESS_PUBKEY_HASH",g.NESTED_PUBKEY_HASH="NESTED_PUBKEY_HASH",g.UNUSED_WITNESS_PUBKEY_HASH="UNUSED_WITNESS_PUBKEY_HASH",g.UNUSED_NESTED_PUBKEY_HASH="UNUSED_NESTED_PUBKEY_HASH",g.TAPROOT_PUBKEY="TAPROOT_PUBKEY",g.UNUSED_TAPROOT_PUBKEY="UNUSED_TAPROOT_PUBKEY",g.UNRECOGNIZED="UNRECOGNIZED",(T=t.CommitmentType||(t.CommitmentType={})).UNKNOWN_COMMITMENT_TYPE="UNKNOWN_COMMITMENT_TYPE",T.LEGACY="LEGACY",T.STATIC_REMOTE_KEY="STATIC_REMOTE_KEY",T.ANCHORS="ANCHORS",T.SCRIPT_ENFORCED_LEASE="SCRIPT_ENFORCED_LEASE",T.TAPROOT="TAPROOT",T.SIMPLE_TAPROOT_FINAL="SIMPLE_TAPROOT_FINAL",T.SIMPLE_TAPROOT="SIMPLE_TAPROOT",T.SIMPLE_TAPROOT_OVERLAY="SIMPLE_TAPROOT_OVERLAY",T.UNRECOGNIZED="UNRECOGNIZED",(v=t.Initiator||(t.Initiator={})).INITIATOR_UNKNOWN="INITIATOR_UNKNOWN",v.INITIATOR_LOCAL="INITIATOR_LOCAL",v.INITIATOR_REMOTE="INITIATOR_REMOTE",v.INITIATOR_BOTH="INITIATOR_BOTH",v.UNRECOGNIZED="UNRECOGNIZED",(O=t.ResolutionType||(t.ResolutionType={})).TYPE_UNKNOWN="TYPE_UNKNOWN",O.ANCHOR="ANCHOR",O.INCOMING_HTLC="INCOMING_HTLC",O.OUTGOING_HTLC="OUTGOING_HTLC",O.COMMIT="COMMIT",O.UNRECOGNIZED="UNRECOGNIZED",(_=t.ResolutionOutcome||(t.ResolutionOutcome={})).OUTCOME_UNKNOWN="OUTCOME_UNKNOWN",_.CLAIMED="CLAIMED",_.UNCLAIMED="UNCLAIMED",_.ABANDONED="ABANDONED",_.FIRST_STAGE="FIRST_STAGE",_.TIMEOUT="TIMEOUT",_.UNRECOGNIZED="UNRECOGNIZED",(d=t.GraphCacheStatus||(t.GraphCacheStatus={})).GRAPH_CACHE_STATUS_DISABLED="GRAPH_CACHE_STATUS_DISABLED",d.GRAPH_CACHE_STATUS_LOADING="GRAPH_CACHE_STATUS_LOADING",d.GRAPH_CACHE_STATUS_LOADED="GRAPH_CACHE_STATUS_LOADED",d.GRAPH_CACHE_STATUS_FAILED="GRAPH_CACHE_STATUS_FAILED",d.UNRECOGNIZED="UNRECOGNIZED",(y=t.NodeMetricType||(t.NodeMetricType={})).UNKNOWN="UNKNOWN",y.BETWEENNESS_CENTRALITY="BETWEENNESS_CENTRALITY",y.UNRECOGNIZED="UNRECOGNIZED",(E=t.InvoiceHTLCState||(t.InvoiceHTLCState={})).ACCEPTED="ACCEPTED",E.SETTLED="SETTLED",E.CANCELED="CANCELED",E.UNRECOGNIZED="UNRECOGNIZED",(h=t.PaymentFailureReason||(t.PaymentFailureReason={})).FAILURE_REASON_NONE="FAILURE_REASON_NONE",h.FAILURE_REASON_TIMEOUT="FAILURE_REASON_TIMEOUT",h.FAILURE_REASON_NO_ROUTE="FAILURE_REASON_NO_ROUTE",h.FAILURE_REASON_ERROR="FAILURE_REASON_ERROR",h.FAILURE_REASON_INCORRECT_PAYMENT_DETAILS="FAILURE_REASON_INCORRECT_PAYMENT_DETAILS",h.FAILURE_REASON_INSUFFICIENT_BALANCE="FAILURE_REASON_INSUFFICIENT_BALANCE",h.FAILURE_REASON_CANCELED="FAILURE_REASON_CANCELED",h.UNRECOGNIZED="UNRECOGNIZED",(f=t.FeatureBit||(t.FeatureBit={})).DATALOSS_PROTECT_REQ="DATALOSS_PROTECT_REQ",f.DATALOSS_PROTECT_OPT="DATALOSS_PROTECT_OPT",f.INITIAL_ROUING_SYNC="INITIAL_ROUING_SYNC",f.UPFRONT_SHUTDOWN_SCRIPT_REQ="UPFRONT_SHUTDOWN_SCRIPT_REQ",f.UPFRONT_SHUTDOWN_SCRIPT_OPT="UPFRONT_SHUTDOWN_SCRIPT_OPT",f.GOSSIP_QUERIES_REQ="GOSSIP_QUERIES_REQ",f.GOSSIP_QUERIES_OPT="GOSSIP_QUERIES_OPT",f.TLV_ONION_REQ="TLV_ONION_REQ",f.TLV_ONION_OPT="TLV_ONION_OPT",f.EXT_GOSSIP_QUERIES_REQ="EXT_GOSSIP_QUERIES_REQ",f.EXT_GOSSIP_QUERIES_OPT="EXT_GOSSIP_QUERIES_OPT",f.STATIC_REMOTE_KEY_REQ="STATIC_REMOTE_KEY_REQ",f.STATIC_REMOTE_KEY_OPT="STATIC_REMOTE_KEY_OPT",f.PAYMENT_ADDR_REQ="PAYMENT_ADDR_REQ",f.PAYMENT_ADDR_OPT="PAYMENT_ADDR_OPT",f.MPP_REQ="MPP_REQ",f.MPP_OPT="MPP_OPT",f.WUMBO_CHANNELS_REQ="WUMBO_CHANNELS_REQ",f.WUMBO_CHANNELS_OPT="WUMBO_CHANNELS_OPT",f.ANCHORS_REQ="ANCHORS_REQ",f.ANCHORS_OPT="ANCHORS_OPT",f.ANCHORS_ZERO_FEE_HTLC_REQ="ANCHORS_ZERO_FEE_HTLC_REQ",f.ANCHORS_ZERO_FEE_HTLC_OPT="ANCHORS_ZERO_FEE_HTLC_OPT",f.ROUTE_BLINDING_REQUIRED="ROUTE_BLINDING_REQUIRED",f.ROUTE_BLINDING_OPTIONAL="ROUTE_BLINDING_OPTIONAL",f.AMP_REQ="AMP_REQ",f.AMP_OPT="AMP_OPT",f.UNRECOGNIZED="UNRECOGNIZED",(p=t.UpdateFailure||(t.UpdateFailure={})).UPDATE_FAILURE_UNKNOWN="UPDATE_FAILURE_UNKNOWN",p.UPDATE_FAILURE_PENDING="UPDATE_FAILURE_PENDING",p.UPDATE_FAILURE_NOT_FOUND="UPDATE_FAILURE_NOT_FOUND",p.UPDATE_FAILURE_INTERNAL_ERR="UPDATE_FAILURE_INTERNAL_ERR",p.UPDATE_FAILURE_INVALID_PARAMETER="UPDATE_FAILURE_INVALID_PARAMETER",p.UNRECOGNIZED="UNRECOGNIZED",(l=t.ChannelCloseSummary_ClosureType||(t.ChannelCloseSummary_ClosureType={})).COOPERATIVE_CLOSE="COOPERATIVE_CLOSE",l.LOCAL_FORCE_CLOSE="LOCAL_FORCE_CLOSE",l.REMOTE_FORCE_CLOSE="REMOTE_FORCE_CLOSE",l.BREACH_CLOSE="BREACH_CLOSE",l.FUNDING_CANCELED="FUNDING_CANCELED",l.ABANDONED="ABANDONED",l.UNRECOGNIZED="UNRECOGNIZED",(u=t.Peer_SyncType||(t.Peer_SyncType={})).UNKNOWN_SYNC="UNKNOWN_SYNC",u.ACTIVE_SYNC="ACTIVE_SYNC",u.PASSIVE_SYNC="PASSIVE_SYNC",u.PINNED_SYNC="PINNED_SYNC",u.UNRECOGNIZED="UNRECOGNIZED",(c=t.PeerEvent_EventType||(t.PeerEvent_EventType={})).PEER_ONLINE="PEER_ONLINE",c.PEER_OFFLINE="PEER_OFFLINE",c.UNRECOGNIZED="UNRECOGNIZED",(s=t.PendingChannelsResponse_ForceClosedChannel_AnchorState||(t.PendingChannelsResponse_ForceClosedChannel_AnchorState={})).LIMBO="LIMBO",s.RECOVERED="RECOVERED",s.LOST="LOST",s.UNRECOGNIZED="UNRECOGNIZED",(a=t.ChannelEventUpdate_UpdateType||(t.ChannelEventUpdate_UpdateType={})).OPEN_CHANNEL="OPEN_CHANNEL",a.CLOSED_CHANNEL="CLOSED_CHANNEL",a.ACTIVE_CHANNEL="ACTIVE_CHANNEL",a.INACTIVE_CHANNEL="INACTIVE_CHANNEL",a.PENDING_OPEN_CHANNEL="PENDING_OPEN_CHANNEL",a.FULLY_RESOLVED_CHANNEL="FULLY_RESOLVED_CHANNEL",a.CHANNEL_FUNDING_TIMEOUT="CHANNEL_FUNDING_TIMEOUT",a.CHANNEL_UPDATE="CHANNEL_UPDATE",a.UNRECOGNIZED="UNRECOGNIZED",(i=t.Invoice_InvoiceState||(t.Invoice_InvoiceState={})).OPEN="OPEN",i.SETTLED="SETTLED",i.CANCELED="CANCELED",i.ACCEPTED="ACCEPTED",i.UNRECOGNIZED="UNRECOGNIZED",(o=t.Payment_PaymentStatus||(t.Payment_PaymentStatus={})).UNKNOWN="UNKNOWN",o.IN_FLIGHT="IN_FLIGHT",o.SUCCEEDED="SUCCEEDED",o.FAILED="FAILED",o.INITIATED="INITIATED",o.UNRECOGNIZED="UNRECOGNIZED",(n=t.HTLCAttempt_HTLCStatus||(t.HTLCAttempt_HTLCStatus={})).IN_FLIGHT="IN_FLIGHT",n.SUCCEEDED="SUCCEEDED",n.FAILED="FAILED",n.UNRECOGNIZED="UNRECOGNIZED",(r=t.Failure_FailureCode||(t.Failure_FailureCode={})).RESERVED="RESERVED",r.INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS",r.INCORRECT_PAYMENT_AMOUNT="INCORRECT_PAYMENT_AMOUNT",r.FINAL_INCORRECT_CLTV_EXPIRY="FINAL_INCORRECT_CLTV_EXPIRY",r.FINAL_INCORRECT_HTLC_AMOUNT="FINAL_INCORRECT_HTLC_AMOUNT",r.FINAL_EXPIRY_TOO_SOON="FINAL_EXPIRY_TOO_SOON",r.INVALID_REALM="INVALID_REALM",r.EXPIRY_TOO_SOON="EXPIRY_TOO_SOON",r.INVALID_ONION_VERSION="INVALID_ONION_VERSION",r.INVALID_ONION_HMAC="INVALID_ONION_HMAC",r.INVALID_ONION_KEY="INVALID_ONION_KEY",r.AMOUNT_BELOW_MINIMUM="AMOUNT_BELOW_MINIMUM",r.FEE_INSUFFICIENT="FEE_INSUFFICIENT",r.INCORRECT_CLTV_EXPIRY="INCORRECT_CLTV_EXPIRY",r.CHANNEL_DISABLED="CHANNEL_DISABLED",r.TEMPORARY_CHANNEL_FAILURE="TEMPORARY_CHANNEL_FAILURE",r.REQUIRED_NODE_FEATURE_MISSING="REQUIRED_NODE_FEATURE_MISSING",r.REQUIRED_CHANNEL_FEATURE_MISSING="REQUIRED_CHANNEL_FEATURE_MISSING",r.UNKNOWN_NEXT_PEER="UNKNOWN_NEXT_PEER",r.TEMPORARY_NODE_FAILURE="TEMPORARY_NODE_FAILURE",r.PERMANENT_NODE_FAILURE="PERMANENT_NODE_FAILURE",r.PERMANENT_CHANNEL_FAILURE="PERMANENT_CHANNEL_FAILURE",r.EXPIRY_TOO_FAR="EXPIRY_TOO_FAR",r.MPP_TIMEOUT="MPP_TIMEOUT",r.INVALID_ONION_PAYLOAD="INVALID_ONION_PAYLOAD",r.INVALID_ONION_BLINDING="INVALID_ONION_BLINDING",r.INTERNAL_FAILURE="INTERNAL_FAILURE",r.UNKNOWN_FAILURE="UNKNOWN_FAILURE",r.UNREADABLE_FAILURE="UNREADABLE_FAILURE",r.UNRECOGNIZED="UNRECOGNIZED"},9353(e,t){var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureSet=t.UpdateAction=void 0,(n=t.UpdateAction||(t.UpdateAction={})).ADD="ADD",n.REMOVE="REMOVE",n.UNRECOGNIZED="UNRECOGNIZED",(r=t.FeatureSet||(t.FeatureSet={})).SET_INIT="SET_INIT",r.SET_LEGACY_GLOBAL="SET_LEGACY_GLOBAL",r.SET_NODE_ANN="SET_NODE_ANN",r.SET_INVOICE="SET_INVOICE",r.SET_INVOICE_AMP="SET_INVOICE_AMP",r.UNRECOGNIZED="UNRECOGNIZED"},7543(e,t){var r,n,o,i,a;Object.defineProperty(t,"__esModule",{value:!0}),t.HtlcEvent_EventType=t.MissionControlConfig_ProbabilityModel=t.ChanStatusAction=t.ResolveHoldForwardAction=t.FailureDetail=void 0,(a=t.FailureDetail||(t.FailureDetail={})).UNKNOWN="UNKNOWN",a.NO_DETAIL="NO_DETAIL",a.ONION_DECODE="ONION_DECODE",a.LINK_NOT_ELIGIBLE="LINK_NOT_ELIGIBLE",a.ON_CHAIN_TIMEOUT="ON_CHAIN_TIMEOUT",a.HTLC_EXCEEDS_MAX="HTLC_EXCEEDS_MAX",a.INSUFFICIENT_BALANCE="INSUFFICIENT_BALANCE",a.INCOMPLETE_FORWARD="INCOMPLETE_FORWARD",a.HTLC_ADD_FAILED="HTLC_ADD_FAILED",a.FORWARDS_DISABLED="FORWARDS_DISABLED",a.INVOICE_CANCELED="INVOICE_CANCELED",a.INVOICE_UNDERPAID="INVOICE_UNDERPAID",a.INVOICE_EXPIRY_TOO_SOON="INVOICE_EXPIRY_TOO_SOON",a.INVOICE_NOT_OPEN="INVOICE_NOT_OPEN",a.MPP_INVOICE_TIMEOUT="MPP_INVOICE_TIMEOUT",a.ADDRESS_MISMATCH="ADDRESS_MISMATCH",a.SET_TOTAL_MISMATCH="SET_TOTAL_MISMATCH",a.SET_TOTAL_TOO_LOW="SET_TOTAL_TOO_LOW",a.SET_OVERPAID="SET_OVERPAID",a.UNKNOWN_INVOICE="UNKNOWN_INVOICE",a.INVALID_KEYSEND="INVALID_KEYSEND",a.MPP_IN_PROGRESS="MPP_IN_PROGRESS",a.CIRCULAR_ROUTE="CIRCULAR_ROUTE",a.INVOICE_ALREADY_SETTLED="INVOICE_ALREADY_SETTLED",a.HTLC_INVOICE_TYPE_MISMATCH="HTLC_INVOICE_TYPE_MISMATCH",a.AMP_ERROR="AMP_ERROR",a.AMP_RECONSTRUCTION="AMP_RECONSTRUCTION",a.EXTERNAL_VALIDATION_FAILED="EXTERNAL_VALIDATION_FAILED",a.UNRECOGNIZED="UNRECOGNIZED",(i=t.ResolveHoldForwardAction||(t.ResolveHoldForwardAction={})).SETTLE="SETTLE",i.FAIL="FAIL",i.RESUME="RESUME",i.RESUME_MODIFIED="RESUME_MODIFIED",i.UNRECOGNIZED="UNRECOGNIZED",(o=t.ChanStatusAction||(t.ChanStatusAction={})).ENABLE="ENABLE",o.DISABLE="DISABLE",o.AUTO="AUTO",o.UNRECOGNIZED="UNRECOGNIZED",(n=t.MissionControlConfig_ProbabilityModel||(t.MissionControlConfig_ProbabilityModel={})).APRIORI="APRIORI",n.BIMODAL="BIMODAL",n.UNRECOGNIZED="UNRECOGNIZED",(r=t.HtlcEvent_EventType||(t.HtlcEvent_EventType={})).UNKNOWN="UNKNOWN",r.SEND="SEND",r.RECEIVE="RECEIVE",r.FORWARD="FORWARD",r.UNRECOGNIZED="UNRECOGNIZED"},5636(e,t){var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.MuSig2Version=t.SignMethod=void 0,(n=t.SignMethod||(t.SignMethod={})).SIGN_METHOD_WITNESS_V0="SIGN_METHOD_WITNESS_V0",n.SIGN_METHOD_TAPROOT_KEY_SPEND_BIP0086="SIGN_METHOD_TAPROOT_KEY_SPEND_BIP0086",n.SIGN_METHOD_TAPROOT_KEY_SPEND="SIGN_METHOD_TAPROOT_KEY_SPEND",n.SIGN_METHOD_TAPROOT_SCRIPT_SPEND="SIGN_METHOD_TAPROOT_SCRIPT_SPEND",n.UNRECOGNIZED="UNRECOGNIZED",(r=t.MuSig2Version||(t.MuSig2Version={})).MUSIG2_VERSION_UNDEFINED="MUSIG2_VERSION_UNDEFINED",r.MUSIG2_VERSION_V040="MUSIG2_VERSION_V040",r.MUSIG2_VERSION_V100RC2="MUSIG2_VERSION_V100RC2",r.UNRECOGNIZED="UNRECOGNIZED"},4219(e,t){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.WalletState=void 0,(r=t.WalletState||(t.WalletState={})).NON_EXISTING="NON_EXISTING",r.LOCKED="LOCKED",r.UNLOCKED="UNLOCKED",r.RPC_ACTIVE="RPC_ACTIVE",r.SERVER_ACTIVE="SERVER_ACTIVE",r.WAITING_TO_START="WAITING_TO_START",r.UNRECOGNIZED="UNRECOGNIZED"},5779(e,t){var r,n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeAddressType=t.WitnessType=t.AddressType=void 0,(o=t.AddressType||(t.AddressType={})).UNKNOWN="UNKNOWN",o.WITNESS_PUBKEY_HASH="WITNESS_PUBKEY_HASH",o.NESTED_WITNESS_PUBKEY_HASH="NESTED_WITNESS_PUBKEY_HASH",o.HYBRID_NESTED_WITNESS_PUBKEY_HASH="HYBRID_NESTED_WITNESS_PUBKEY_HASH",o.TAPROOT_PUBKEY="TAPROOT_PUBKEY",o.UNRECOGNIZED="UNRECOGNIZED",(n=t.WitnessType||(t.WitnessType={})).UNKNOWN_WITNESS="UNKNOWN_WITNESS",n.COMMITMENT_TIME_LOCK="COMMITMENT_TIME_LOCK",n.COMMITMENT_NO_DELAY="COMMITMENT_NO_DELAY",n.COMMITMENT_REVOKE="COMMITMENT_REVOKE",n.HTLC_OFFERED_REVOKE="HTLC_OFFERED_REVOKE",n.HTLC_ACCEPTED_REVOKE="HTLC_ACCEPTED_REVOKE",n.HTLC_OFFERED_TIMEOUT_SECOND_LEVEL="HTLC_OFFERED_TIMEOUT_SECOND_LEVEL",n.HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL="HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL",n.HTLC_OFFERED_REMOTE_TIMEOUT="HTLC_OFFERED_REMOTE_TIMEOUT",n.HTLC_ACCEPTED_REMOTE_SUCCESS="HTLC_ACCEPTED_REMOTE_SUCCESS",n.HTLC_SECOND_LEVEL_REVOKE="HTLC_SECOND_LEVEL_REVOKE",n.WITNESS_KEY_HASH="WITNESS_KEY_HASH",n.NESTED_WITNESS_KEY_HASH="NESTED_WITNESS_KEY_HASH",n.COMMITMENT_ANCHOR="COMMITMENT_ANCHOR",n.COMMITMENT_NO_DELAY_TWEAKLESS="COMMITMENT_NO_DELAY_TWEAKLESS",n.COMMITMENT_TO_REMOTE_CONFIRMED="COMMITMENT_TO_REMOTE_CONFIRMED",n.HTLC_OFFERED_TIMEOUT_SECOND_LEVEL_INPUT_CONFIRMED="HTLC_OFFERED_TIMEOUT_SECOND_LEVEL_INPUT_CONFIRMED",n.HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL_INPUT_CONFIRMED="HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL_INPUT_CONFIRMED",n.LEASE_COMMITMENT_TIME_LOCK="LEASE_COMMITMENT_TIME_LOCK",n.LEASE_COMMITMENT_TO_REMOTE_CONFIRMED="LEASE_COMMITMENT_TO_REMOTE_CONFIRMED",n.LEASE_HTLC_OFFERED_TIMEOUT_SECOND_LEVEL="LEASE_HTLC_OFFERED_TIMEOUT_SECOND_LEVEL",n.LEASE_HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL="LEASE_HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL",n.TAPROOT_PUB_KEY_SPEND="TAPROOT_PUB_KEY_SPEND",n.TAPROOT_LOCAL_COMMIT_SPEND="TAPROOT_LOCAL_COMMIT_SPEND",n.TAPROOT_REMOTE_COMMIT_SPEND="TAPROOT_REMOTE_COMMIT_SPEND",n.TAPROOT_ANCHOR_SWEEP_SPEND="TAPROOT_ANCHOR_SWEEP_SPEND",n.TAPROOT_HTLC_OFFERED_TIMEOUT_SECOND_LEVEL="TAPROOT_HTLC_OFFERED_TIMEOUT_SECOND_LEVEL",n.TAPROOT_HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL="TAPROOT_HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL",n.TAPROOT_HTLC_SECOND_LEVEL_REVOKE="TAPROOT_HTLC_SECOND_LEVEL_REVOKE",n.TAPROOT_HTLC_ACCEPTED_REVOKE="TAPROOT_HTLC_ACCEPTED_REVOKE",n.TAPROOT_HTLC_OFFERED_REVOKE="TAPROOT_HTLC_OFFERED_REVOKE",n.TAPROOT_HTLC_OFFERED_REMOTE_TIMEOUT="TAPROOT_HTLC_OFFERED_REMOTE_TIMEOUT",n.TAPROOT_HTLC_LOCAL_OFFERED_TIMEOUT="TAPROOT_HTLC_LOCAL_OFFERED_TIMEOUT",n.TAPROOT_HTLC_ACCEPTED_REMOTE_SUCCESS="TAPROOT_HTLC_ACCEPTED_REMOTE_SUCCESS",n.TAPROOT_HTLC_ACCEPTED_LOCAL_SUCCESS="TAPROOT_HTLC_ACCEPTED_LOCAL_SUCCESS",n.TAPROOT_COMMITMENT_REVOKE="TAPROOT_COMMITMENT_REVOKE",n.TAPROOT_LOCAL_COMMIT_SPEND_FINAL="TAPROOT_LOCAL_COMMIT_SPEND_FINAL",n.TAPROOT_REMOTE_COMMIT_SPEND_FINAL="TAPROOT_REMOTE_COMMIT_SPEND_FINAL",n.TAPROOT_HTLC_OFFERED_TIMEOUT_SECOND_LEVEL_FINAL="TAPROOT_HTLC_OFFERED_TIMEOUT_SECOND_LEVEL_FINAL",n.TAPROOT_HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL_FINAL="TAPROOT_HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL_FINAL",n.TAPROOT_HTLC_OFFERED_REMOTE_TIMEOUT_FINAL="TAPROOT_HTLC_OFFERED_REMOTE_TIMEOUT_FINAL",n.TAPROOT_HTLC_ACCEPTED_REMOTE_SUCCESS_FINAL="TAPROOT_HTLC_ACCEPTED_REMOTE_SUCCESS_FINAL",n.TAPROOT_COMMITMENT_REVOKE_FINAL="TAPROOT_COMMITMENT_REVOKE_FINAL",n.UNRECOGNIZED="UNRECOGNIZED",(r=t.ChangeAddressType||(t.ChangeAddressType={})).CHANGE_ADDRESS_TYPE_UNSPECIFIED="CHANGE_ADDRESS_TYPE_UNSPECIFIED",r.CHANGE_ADDRESS_TYPE_P2TR="CHANGE_ADDRESS_TYPE_P2TR",r.UNRECOGNIZED="UNRECOGNIZED"},5577(e,t){Object.defineProperty(t,"__esModule",{value:!0})},4899(e,t){Object.defineProperty(t,"__esModule",{value:!0})},6035(e,t){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.PolicyType=void 0,(r=t.PolicyType||(t.PolicyType={})).LEGACY="LEGACY",r.ANCHOR="ANCHOR",r.TAPROOT="TAPROOT",r.UNRECOGNIZED="UNRECOGNIZED"},1419(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(4377),t),o(r(4219),t),o(r(5577),t)},1730(e,t){var r,n,o,i,a,s,c,u,l,p;Object.defineProperty(t,"__esModule",{value:!0}),t.ListSwapsFilter_SwapTypeFilter=t.StaticAddressLoopInSwapState=t.DepositState=t.AutoReason=t.LiquidityRuleType=t.LoopInSource=t.FailureReason=t.SwapState=t.SwapType=t.AddressType=void 0,(p=t.AddressType||(t.AddressType={})).ADDRESS_TYPE_UNKNOWN="ADDRESS_TYPE_UNKNOWN",p.TAPROOT_PUBKEY="TAPROOT_PUBKEY",p.UNRECOGNIZED="UNRECOGNIZED",(l=t.SwapType||(t.SwapType={})).LOOP_OUT="LOOP_OUT",l.LOOP_IN="LOOP_IN",l.UNRECOGNIZED="UNRECOGNIZED",(u=t.SwapState||(t.SwapState={})).INITIATED="INITIATED",u.PREIMAGE_REVEALED="PREIMAGE_REVEALED",u.HTLC_PUBLISHED="HTLC_PUBLISHED",u.SUCCESS="SUCCESS",u.FAILED="FAILED",u.INVOICE_SETTLED="INVOICE_SETTLED",u.UNRECOGNIZED="UNRECOGNIZED",(c=t.FailureReason||(t.FailureReason={})).FAILURE_REASON_NONE="FAILURE_REASON_NONE",c.FAILURE_REASON_OFFCHAIN="FAILURE_REASON_OFFCHAIN",c.FAILURE_REASON_TIMEOUT="FAILURE_REASON_TIMEOUT",c.FAILURE_REASON_SWEEP_TIMEOUT="FAILURE_REASON_SWEEP_TIMEOUT",c.FAILURE_REASON_INSUFFICIENT_VALUE="FAILURE_REASON_INSUFFICIENT_VALUE",c.FAILURE_REASON_TEMPORARY="FAILURE_REASON_TEMPORARY",c.FAILURE_REASON_INCORRECT_AMOUNT="FAILURE_REASON_INCORRECT_AMOUNT",c.FAILURE_REASON_ABANDONED="FAILURE_REASON_ABANDONED",c.FAILURE_REASON_INSUFFICIENT_CONFIRMED_BALANCE="FAILURE_REASON_INSUFFICIENT_CONFIRMED_BALANCE",c.FAILURE_REASON_INCORRECT_HTLC_AMT_SWEPT="FAILURE_REASON_INCORRECT_HTLC_AMT_SWEPT",c.UNRECOGNIZED="UNRECOGNIZED",(s=t.LoopInSource||(t.LoopInSource={})).LOOP_IN_SOURCE_WALLET="LOOP_IN_SOURCE_WALLET",s.LOOP_IN_SOURCE_STATIC_ADDRESS="LOOP_IN_SOURCE_STATIC_ADDRESS",s.UNRECOGNIZED="UNRECOGNIZED",(a=t.LiquidityRuleType||(t.LiquidityRuleType={})).UNKNOWN="UNKNOWN",a.THRESHOLD="THRESHOLD",a.UNRECOGNIZED="UNRECOGNIZED",(i=t.AutoReason||(t.AutoReason={})).AUTO_REASON_UNKNOWN="AUTO_REASON_UNKNOWN",i.AUTO_REASON_BUDGET_NOT_STARTED="AUTO_REASON_BUDGET_NOT_STARTED",i.AUTO_REASON_SWEEP_FEES="AUTO_REASON_SWEEP_FEES",i.AUTO_REASON_BUDGET_ELAPSED="AUTO_REASON_BUDGET_ELAPSED",i.AUTO_REASON_IN_FLIGHT="AUTO_REASON_IN_FLIGHT",i.AUTO_REASON_SWAP_FEE="AUTO_REASON_SWAP_FEE",i.AUTO_REASON_MINER_FEE="AUTO_REASON_MINER_FEE",i.AUTO_REASON_PREPAY="AUTO_REASON_PREPAY",i.AUTO_REASON_FAILURE_BACKOFF="AUTO_REASON_FAILURE_BACKOFF",i.AUTO_REASON_LOOP_OUT="AUTO_REASON_LOOP_OUT",i.AUTO_REASON_LOOP_IN="AUTO_REASON_LOOP_IN",i.AUTO_REASON_LIQUIDITY_OK="AUTO_REASON_LIQUIDITY_OK",i.AUTO_REASON_BUDGET_INSUFFICIENT="AUTO_REASON_BUDGET_INSUFFICIENT",i.AUTO_REASON_FEE_INSUFFICIENT="AUTO_REASON_FEE_INSUFFICIENT",i.AUTO_REASON_STATIC_LOOP_IN_NO_CANDIDATE="AUTO_REASON_STATIC_LOOP_IN_NO_CANDIDATE",i.AUTO_REASON_CUSTOM_CHANNEL_DATA="AUTO_REASON_CUSTOM_CHANNEL_DATA",i.UNRECOGNIZED="UNRECOGNIZED",(o=t.DepositState||(t.DepositState={})).UNKNOWN_STATE="UNKNOWN_STATE",o.DEPOSITED="DEPOSITED",o.WITHDRAWING="WITHDRAWING",o.WITHDRAWN="WITHDRAWN",o.LOOPING_IN="LOOPING_IN",o.LOOPED_IN="LOOPED_IN",o.SWEEP_HTLC_TIMEOUT="SWEEP_HTLC_TIMEOUT",o.HTLC_TIMEOUT_SWEPT="HTLC_TIMEOUT_SWEPT",o.PUBLISH_EXPIRED="PUBLISH_EXPIRED",o.WAIT_FOR_EXPIRY_SWEEP="WAIT_FOR_EXPIRY_SWEEP",o.EXPIRED="EXPIRED",o.OPENING_CHANNEL="OPENING_CHANNEL",o.CHANNEL_PUBLISHED="CHANNEL_PUBLISHED",o.UNRECOGNIZED="UNRECOGNIZED",(n=t.StaticAddressLoopInSwapState||(t.StaticAddressLoopInSwapState={})).UNKNOWN_STATIC_ADDRESS_SWAP_STATE="UNKNOWN_STATIC_ADDRESS_SWAP_STATE",n.INIT_HTLC="INIT_HTLC",n.SIGN_HTLC_TX="SIGN_HTLC_TX",n.MONITOR_INVOICE_HTLC_TX="MONITOR_INVOICE_HTLC_TX",n.PAYMENT_RECEIVED="PAYMENT_RECEIVED",n.SWEEP_STATIC_ADDRESS_HTLC_TIMEOUT="SWEEP_STATIC_ADDRESS_HTLC_TIMEOUT",n.MONITOR_HTLC_TIMEOUT_SWEEP="MONITOR_HTLC_TIMEOUT_SWEEP",n.HTLC_STATIC_ADDRESS_TIMEOUT_SWEPT="HTLC_STATIC_ADDRESS_TIMEOUT_SWEPT",n.SUCCEEDED="SUCCEEDED",n.SUCCEEDED_TRANSITIONING_FAILED="SUCCEEDED_TRANSITIONING_FAILED",n.UNLOCK_DEPOSITS="UNLOCK_DEPOSITS",n.FAILED_STATIC_ADDRESS_SWAP="FAILED_STATIC_ADDRESS_SWAP",n.UNRECOGNIZED="UNRECOGNIZED",(r=t.ListSwapsFilter_SwapTypeFilter||(t.ListSwapsFilter_SwapTypeFilter={})).ANY="ANY",r.LOOP_OUT="LOOP_OUT",r.LOOP_IN="LOOP_IN",r.UNRECOGNIZED="UNRECOGNIZED"},66(e,t){Object.defineProperty(t,"__esModule",{value:!0})},7967(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(1730),t),o(r(66),t)},1393(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(5398),t)},1908(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(9353),t)},3029(e,t){var r,n,o,i,a,s,c,u,l,p,f,h,E,y;Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidOrder_FailReason=t.AccountDiff_AccountState=t.SubscribeError_Error=t.OrderReject_OrderRejectReason=t.OrderMatchReject_RejectReason=t.DurationBucketState=t.OrderState=t.ChannelConfirmationConstraints=t.ChannelAnnouncementConstraints=t.NodeTier=t.AuctionType=t.OrderChannelType=t.AuctionAccountState=t.ChannelType=void 0,(y=t.ChannelType||(t.ChannelType={})).TWEAKLESS="TWEAKLESS",y.ANCHORS="ANCHORS",y.SCRIPT_ENFORCED_LEASE="SCRIPT_ENFORCED_LEASE",y.SIMPLE_TAPROOT="SIMPLE_TAPROOT",y.UNRECOGNIZED="UNRECOGNIZED",(E=t.AuctionAccountState||(t.AuctionAccountState={})).STATE_PENDING_OPEN="STATE_PENDING_OPEN",E.STATE_OPEN="STATE_OPEN",E.STATE_EXPIRED="STATE_EXPIRED",E.STATE_PENDING_UPDATE="STATE_PENDING_UPDATE",E.STATE_CLOSED="STATE_CLOSED",E.STATE_PENDING_BATCH="STATE_PENDING_BATCH",E.STATE_EXPIRED_PENDING_UPDATE="STATE_EXPIRED_PENDING_UPDATE",E.UNRECOGNIZED="UNRECOGNIZED",(h=t.OrderChannelType||(t.OrderChannelType={})).ORDER_CHANNEL_TYPE_UNKNOWN="ORDER_CHANNEL_TYPE_UNKNOWN",h.ORDER_CHANNEL_TYPE_PEER_DEPENDENT="ORDER_CHANNEL_TYPE_PEER_DEPENDENT",h.ORDER_CHANNEL_TYPE_SCRIPT_ENFORCED="ORDER_CHANNEL_TYPE_SCRIPT_ENFORCED",h.ORDER_CHANNEL_TYPE_SIMPLE_TAPROOT="ORDER_CHANNEL_TYPE_SIMPLE_TAPROOT",h.UNRECOGNIZED="UNRECOGNIZED",(f=t.AuctionType||(t.AuctionType={})).AUCTION_TYPE_BTC_INBOUND_LIQUIDITY="AUCTION_TYPE_BTC_INBOUND_LIQUIDITY",f.AUCTION_TYPE_BTC_OUTBOUND_LIQUIDITY="AUCTION_TYPE_BTC_OUTBOUND_LIQUIDITY",f.UNRECOGNIZED="UNRECOGNIZED",(p=t.NodeTier||(t.NodeTier={})).TIER_DEFAULT="TIER_DEFAULT",p.TIER_0="TIER_0",p.TIER_1="TIER_1",p.UNRECOGNIZED="UNRECOGNIZED",(l=t.ChannelAnnouncementConstraints||(t.ChannelAnnouncementConstraints={})).ANNOUNCEMENT_NO_PREFERENCE="ANNOUNCEMENT_NO_PREFERENCE",l.ONLY_ANNOUNCED="ONLY_ANNOUNCED",l.ONLY_UNANNOUNCED="ONLY_UNANNOUNCED",l.UNRECOGNIZED="UNRECOGNIZED",(u=t.ChannelConfirmationConstraints||(t.ChannelConfirmationConstraints={})).CONFIRMATION_NO_PREFERENCE="CONFIRMATION_NO_PREFERENCE",u.ONLY_CONFIRMED="ONLY_CONFIRMED",u.ONLY_ZEROCONF="ONLY_ZEROCONF",u.UNRECOGNIZED="UNRECOGNIZED",(c=t.OrderState||(t.OrderState={})).ORDER_SUBMITTED="ORDER_SUBMITTED",c.ORDER_CLEARED="ORDER_CLEARED",c.ORDER_PARTIALLY_FILLED="ORDER_PARTIALLY_FILLED",c.ORDER_EXECUTED="ORDER_EXECUTED",c.ORDER_CANCELED="ORDER_CANCELED",c.ORDER_EXPIRED="ORDER_EXPIRED",c.ORDER_FAILED="ORDER_FAILED",c.UNRECOGNIZED="UNRECOGNIZED",(s=t.DurationBucketState||(t.DurationBucketState={})).NO_MARKET="NO_MARKET",s.MARKET_CLOSED="MARKET_CLOSED",s.ACCEPTING_ORDERS="ACCEPTING_ORDERS",s.MARKET_OPEN="MARKET_OPEN",s.UNRECOGNIZED="UNRECOGNIZED",(a=t.OrderMatchReject_RejectReason||(t.OrderMatchReject_RejectReason={})).UNKNOWN="UNKNOWN",a.SERVER_MISBEHAVIOR="SERVER_MISBEHAVIOR",a.BATCH_VERSION_MISMATCH="BATCH_VERSION_MISMATCH",a.PARTIAL_REJECT="PARTIAL_REJECT",a.UNRECOGNIZED="UNRECOGNIZED",(i=t.OrderReject_OrderRejectReason||(t.OrderReject_OrderRejectReason={})).DUPLICATE_PEER="DUPLICATE_PEER",i.CHANNEL_FUNDING_FAILED="CHANNEL_FUNDING_FAILED",i.UNRECOGNIZED="UNRECOGNIZED",(o=t.SubscribeError_Error||(t.SubscribeError_Error={})).UNKNOWN="UNKNOWN",o.SERVER_SHUTDOWN="SERVER_SHUTDOWN",o.ACCOUNT_DOES_NOT_EXIST="ACCOUNT_DOES_NOT_EXIST",o.INCOMPLETE_ACCOUNT_RESERVATION="INCOMPLETE_ACCOUNT_RESERVATION",o.UNRECOGNIZED="UNRECOGNIZED",(n=t.AccountDiff_AccountState||(t.AccountDiff_AccountState={})).OUTPUT_RECREATED="OUTPUT_RECREATED",n.OUTPUT_DUST_EXTENDED_OFFCHAIN="OUTPUT_DUST_EXTENDED_OFFCHAIN",n.OUTPUT_DUST_ADDED_TO_FEES="OUTPUT_DUST_ADDED_TO_FEES",n.OUTPUT_FULLY_SPENT="OUTPUT_FULLY_SPENT",n.UNRECOGNIZED="UNRECOGNIZED",(r=t.InvalidOrder_FailReason||(t.InvalidOrder_FailReason={})).INVALID_AMT="INVALID_AMT",r.UNRECOGNIZED="UNRECOGNIZED"},4541(e,t){Object.defineProperty(t,"__esModule",{value:!0})},7521(e,t){var r,n,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.MatchRejectReason=t.MatchState=t.AccountState=t.AccountVersion=void 0,(i=t.AccountVersion||(t.AccountVersion={})).ACCOUNT_VERSION_LND_DEPENDENT="ACCOUNT_VERSION_LND_DEPENDENT",i.ACCOUNT_VERSION_LEGACY="ACCOUNT_VERSION_LEGACY",i.ACCOUNT_VERSION_TAPROOT="ACCOUNT_VERSION_TAPROOT",i.ACCOUNT_VERSION_TAPROOT_V2="ACCOUNT_VERSION_TAPROOT_V2",i.UNRECOGNIZED="UNRECOGNIZED",(o=t.AccountState||(t.AccountState={})).PENDING_OPEN="PENDING_OPEN",o.PENDING_UPDATE="PENDING_UPDATE",o.OPEN="OPEN",o.EXPIRED="EXPIRED",o.PENDING_CLOSED="PENDING_CLOSED",o.CLOSED="CLOSED",o.RECOVERY_FAILED="RECOVERY_FAILED",o.PENDING_BATCH="PENDING_BATCH",o.UNRECOGNIZED="UNRECOGNIZED",(n=t.MatchState||(t.MatchState={})).PREPARE="PREPARE",n.ACCEPTED="ACCEPTED",n.REJECTED="REJECTED",n.SIGNED="SIGNED",n.FINALIZED="FINALIZED",n.UNRECOGNIZED="UNRECOGNIZED",(r=t.MatchRejectReason||(t.MatchRejectReason={})).NONE="NONE",r.SERVER_MISBEHAVIOR="SERVER_MISBEHAVIOR",r.BATCH_VERSION_MISMATCH="BATCH_VERSION_MISMATCH",r.PARTIAL_REJECT_COLLATERAL="PARTIAL_REJECT_COLLATERAL",r.PARTIAL_REJECT_DUPLICATE_PEER="PARTIAL_REJECT_DUPLICATE_PEER",r.PARTIAL_REJECT_CHANNEL_FUNDING_FAILED="PARTIAL_REJECT_CHANNEL_FUNDING_FAILED",r.UNRECOGNIZED="UNRECOGNIZED"},2471(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(3029),t),o(r(4541),t),o(r(7521),t)},2162(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(9719),t)},4386(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(1380),t)},6534(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(7543),t)},2495(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.subscriptionMethods=t.serviceNames=void 0,t.serviceNames={frdrpc:{FaradayServer:"frdrpc.FaradayServer"},litrpc:{Firewall:"litrpc.Firewall",Autopilot:"litrpc.Autopilot",Sessions:"litrpc.Sessions",Status:"litrpc.Status"},autopilotrpc:{Autopilot:"autopilotrpc.Autopilot"},chainrpc:{ChainNotifier:"chainrpc.ChainNotifier"},invoicesrpc:{Invoices:"invoicesrpc.Invoices"},lnrpc:{Lightning:"lnrpc.Lightning",State:"lnrpc.State",WalletUnlocker:"lnrpc.WalletUnlocker"},peersrpc:{Peers:"peersrpc.Peers"},routerrpc:{Router:"routerrpc.Router"},signrpc:{Signer:"signrpc.Signer"},walletrpc:{WalletKit:"walletrpc.WalletKit"},watchtowerrpc:{Watchtower:"watchtowerrpc.Watchtower"},wtclientrpc:{WatchtowerClient:"wtclientrpc.WatchtowerClient"},looprpc:{SwapClient:"looprpc.SwapClient",Debug:"looprpc.Debug"},poolrpc:{ChannelAuctioneer:"poolrpc.ChannelAuctioneer",HashMail:"poolrpc.HashMail",Trader:"poolrpc.Trader"},assetwalletrpc:{AssetWallet:"assetwalletrpc.AssetWallet"},authmailboxrpc:{Mailbox:"authmailboxrpc.Mailbox"},mintrpc:{Mint:"mintrpc.Mint"},priceoraclerpc:{PriceOracle:"priceoraclerpc.PriceOracle"},rfqrpc:{Rfq:"rfqrpc.Rfq"},tapchannelrpc:{TaprootAssetChannels:"tapchannelrpc.TaprootAssetChannels"},tapdevrpc:{TapDev:"tapdevrpc.TapDev"},taprpc:{TaprootAssets:"taprpc.TaprootAssets"},universerpc:{Universe:"universerpc.Universe"}},t.subscriptionMethods=["chainrpc.ChainNotifier.RegisterConfirmationsNtfn","chainrpc.ChainNotifier.RegisterSpendNtfn","chainrpc.ChainNotifier.RegisterBlockEpochNtfn","invoicesrpc.Invoices.SubscribeSingleInvoice","invoicesrpc.Invoices.HtlcModifier","lnrpc.Lightning.SubscribeTransactions","lnrpc.Lightning.SubscribePeerEvents","lnrpc.Lightning.SubscribeChannelEvents","lnrpc.Lightning.OpenChannel","lnrpc.Lightning.ChannelAcceptor","lnrpc.Lightning.CloseChannel","lnrpc.Lightning.SubscribeInvoices","lnrpc.Lightning.SubscribeChannelGraph","lnrpc.Lightning.SubscribeChannelBackups","lnrpc.Lightning.RegisterRPCMiddleware","lnrpc.Lightning.SubscribeCustomMessages","lnrpc.Lightning.SubscribeOnionMessages","routerrpc.Router.SendPaymentV2","routerrpc.Router.TrackPaymentV2","routerrpc.Router.TrackPayments","routerrpc.Router.SubscribeHtlcEvents","routerrpc.Router.HtlcInterceptor","lnrpc.State.SubscribeState","looprpc.SwapClient.Monitor","lnrpc.Lightning.SubscribeTransactions","lnrpc.Lightning.SubscribePeerEvents","lnrpc.Lightning.SubscribeChannelEvents","lnrpc.Lightning.OpenChannel","lnrpc.Lightning.ChannelAcceptor","lnrpc.Lightning.CloseChannel","lnrpc.Lightning.SubscribeInvoices","lnrpc.Lightning.SubscribeChannelGraph","lnrpc.Lightning.SubscribeChannelBackups","lnrpc.Lightning.RegisterRPCMiddleware","lnrpc.Lightning.SubscribeCustomMessages","lnrpc.Lightning.SubscribeOnionMessages","poolrpc.ChannelAuctioneer.SubscribeBatchAuction","poolrpc.ChannelAuctioneer.SubscribeSidecar","poolrpc.HashMail.RecvStream","authmailboxrpc.Mailbox.ReceiveMessages","lnrpc.Lightning.SubscribeTransactions","lnrpc.Lightning.SubscribePeerEvents","lnrpc.Lightning.SubscribeChannelEvents","lnrpc.Lightning.OpenChannel","lnrpc.Lightning.ChannelAcceptor","lnrpc.Lightning.CloseChannel","lnrpc.Lightning.SubscribeInvoices","lnrpc.Lightning.SubscribeChannelGraph","lnrpc.Lightning.SubscribeChannelBackups","lnrpc.Lightning.RegisterRPCMiddleware","lnrpc.Lightning.SubscribeCustomMessages","lnrpc.Lightning.SubscribeOnionMessages","mintrpc.Mint.SubscribeMintEvents","rfqrpc.Rfq.SubscribeRfqEventNtfns","routerrpc.Router.SendPaymentV2","routerrpc.Router.TrackPaymentV2","routerrpc.Router.TrackPayments","routerrpc.Router.SubscribeHtlcEvents","routerrpc.Router.HtlcInterceptor","tapchannelrpc.TaprootAssetChannels.SendPayment","tapdevrpc.TapDev.SubscribeSendAssetEventNtfns","tapdevrpc.TapDev.SubscribeReceiveAssetEventNtfns","taprpc.TaprootAssets.SubscribeReceiveEvents","taprpc.TaprootAssets.SubscribeSendEvents"]},8054(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(5636),t)},8933(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(6190),t)},5712(e,t){var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.BackupMode=t.CoinSelectType=void 0,(n=t.CoinSelectType||(t.CoinSelectType={})).COIN_SELECT_DEFAULT="COIN_SELECT_DEFAULT",n.COIN_SELECT_BIP86_ONLY="COIN_SELECT_BIP86_ONLY",n.COIN_SELECT_SCRIPT_TREES_ALLOWED="COIN_SELECT_SCRIPT_TREES_ALLOWED",n.UNRECOGNIZED="UNRECOGNIZED",(r=t.BackupMode||(t.BackupMode={})).RAW="RAW",r.COMPACT="COMPACT",r.OPTIMISTIC="OPTIMISTIC",r.UNRECOGNIZED="UNRECOGNIZED"},4376(e,t){Object.defineProperty(t,"__esModule",{value:!0})},5398(e,t){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.BatchState=void 0,(r=t.BatchState||(t.BatchState={})).BATCH_STATE_UNKNOWN="BATCH_STATE_UNKNOWN",r.BATCH_STATE_PENDING="BATCH_STATE_PENDING",r.BATCH_STATE_FROZEN="BATCH_STATE_FROZEN",r.BATCH_STATE_COMMITTED="BATCH_STATE_COMMITTED",r.BATCH_STATE_BROADCAST="BATCH_STATE_BROADCAST",r.BATCH_STATE_CONFIRMED="BATCH_STATE_CONFIRMED",r.BATCH_STATE_FINALIZED="BATCH_STATE_FINALIZED",r.BATCH_STATE_SEEDLING_CANCELLED="BATCH_STATE_SEEDLING_CANCELLED",r.BATCH_STATE_SPROUT_CANCELLED="BATCH_STATE_SPROUT_CANCELLED",r.UNRECOGNIZED="UNRECOGNIZED"},9719(e,t){var r,n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorCode=t.Intent=t.TransactionType=void 0,(o=t.TransactionType||(t.TransactionType={})).PURCHASE="PURCHASE",o.SALE="SALE",o.UNRECOGNIZED="UNRECOGNIZED",(n=t.Intent||(t.Intent={})).INTENT_UNSPECIFIED="INTENT_UNSPECIFIED",n.INTENT_PAY_INVOICE_HINT="INTENT_PAY_INVOICE_HINT",n.INTENT_PAY_INVOICE="INTENT_PAY_INVOICE",n.INTENT_PAY_INVOICE_QUALIFY="INTENT_PAY_INVOICE_QUALIFY",n.INTENT_RECV_PAYMENT_HINT="INTENT_RECV_PAYMENT_HINT",n.INTENT_RECV_PAYMENT="INTENT_RECV_PAYMENT",n.INTENT_RECV_PAYMENT_QUALIFY="INTENT_RECV_PAYMENT_QUALIFY",n.UNRECOGNIZED="UNRECOGNIZED",(r=t.ErrorCode||(t.ErrorCode={})).UNSPECIFIED_ORACLE_ERROR_CODE="UNSPECIFIED_ORACLE_ERROR_CODE",r.UNSUPPORTED_ASSET_ORACLE_ERROR_CODE="UNSUPPORTED_ASSET_ORACLE_ERROR_CODE",r.UNRECOGNIZED="UNRECOGNIZED"},1380(e,t){var r,n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.RfqPolicyType=t.QuoteRespStatus=t.ExecutionPolicy=void 0,(o=t.ExecutionPolicy||(t.ExecutionPolicy={})).EXECUTION_POLICY_IOC="EXECUTION_POLICY_IOC",o.EXECUTION_POLICY_FOK="EXECUTION_POLICY_FOK",o.UNRECOGNIZED="UNRECOGNIZED",(n=t.QuoteRespStatus||(t.QuoteRespStatus={})).INVALID_ASSET_RATES="INVALID_ASSET_RATES",n.INVALID_EXPIRY="INVALID_EXPIRY",n.PRICE_ORACLE_QUERY_ERR="PRICE_ORACLE_QUERY_ERR",n.PORTFOLIO_PILOT_ERR="PORTFOLIO_PILOT_ERR",n.VALID_ACCEPT_QUOTE="VALID_ACCEPT_QUOTE",n.MIN_FILL_NOT_MET="MIN_FILL_NOT_MET",n.RATE_BOUND_MISS="RATE_BOUND_MISS",n.FOK_NOT_VIABLE="FOK_NOT_VIABLE",n.UNRECOGNIZED="UNRECOGNIZED",(r=t.RfqPolicyType||(t.RfqPolicyType={})).RFQ_POLICY_TYPE_SALE="RFQ_POLICY_TYPE_SALE",r.RFQ_POLICY_TYPE_PURCHASE="RFQ_POLICY_TYPE_PURCHASE",r.UNRECOGNIZED="UNRECOGNIZED"},6190(e,t){Object.defineProperty(t,"__esModule",{value:!0})},3126(e,t){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ProofTransferType=void 0,(r=t.ProofTransferType||(t.ProofTransferType={})).PROOF_TRANSFER_TYPE_SEND="PROOF_TRANSFER_TYPE_SEND",r.PROOF_TRANSFER_TYPE_RECEIVE="PROOF_TRANSFER_TYPE_RECEIVE",r.UNRECOGNIZED="UNRECOGNIZED"},8960(e,t){var r,n,o,i,a,s,c,u,l,p;Object.defineProperty(t,"__esModule",{value:!0}),t.ParcelType=t.SendState=t.AddrEventStatus=t.ScriptKeyType=t.AddrVersion=t.ProofDeliveryStatus=t.OutputType=t.AssetVersion=t.AssetMetaType=t.AssetType=void 0,(p=t.AssetType||(t.AssetType={})).NORMAL="NORMAL",p.COLLECTIBLE="COLLECTIBLE",p.UNRECOGNIZED="UNRECOGNIZED",(l=t.AssetMetaType||(t.AssetMetaType={})).META_TYPE_OPAQUE="META_TYPE_OPAQUE",l.META_TYPE_JSON="META_TYPE_JSON",l.UNRECOGNIZED="UNRECOGNIZED",(u=t.AssetVersion||(t.AssetVersion={})).ASSET_VERSION_V0="ASSET_VERSION_V0",u.ASSET_VERSION_V1="ASSET_VERSION_V1",u.UNRECOGNIZED="UNRECOGNIZED",(c=t.OutputType||(t.OutputType={})).OUTPUT_TYPE_SIMPLE="OUTPUT_TYPE_SIMPLE",c.OUTPUT_TYPE_SPLIT_ROOT="OUTPUT_TYPE_SPLIT_ROOT",c.UNRECOGNIZED="UNRECOGNIZED",(s=t.ProofDeliveryStatus||(t.ProofDeliveryStatus={})).PROOF_DELIVERY_STATUS_NOT_APPLICABLE="PROOF_DELIVERY_STATUS_NOT_APPLICABLE",s.PROOF_DELIVERY_STATUS_COMPLETE="PROOF_DELIVERY_STATUS_COMPLETE",s.PROOF_DELIVERY_STATUS_PENDING="PROOF_DELIVERY_STATUS_PENDING",s.UNRECOGNIZED="UNRECOGNIZED",(a=t.AddrVersion||(t.AddrVersion={})).ADDR_VERSION_UNSPECIFIED="ADDR_VERSION_UNSPECIFIED",a.ADDR_VERSION_V0="ADDR_VERSION_V0",a.ADDR_VERSION_V1="ADDR_VERSION_V1",a.ADDR_VERSION_V2="ADDR_VERSION_V2",a.UNRECOGNIZED="UNRECOGNIZED",(i=t.ScriptKeyType||(t.ScriptKeyType={})).SCRIPT_KEY_UNKNOWN="SCRIPT_KEY_UNKNOWN",i.SCRIPT_KEY_BIP86="SCRIPT_KEY_BIP86",i.SCRIPT_KEY_SCRIPT_PATH_EXTERNAL="SCRIPT_KEY_SCRIPT_PATH_EXTERNAL",i.SCRIPT_KEY_BURN="SCRIPT_KEY_BURN",i.SCRIPT_KEY_TOMBSTONE="SCRIPT_KEY_TOMBSTONE",i.SCRIPT_KEY_CHANNEL="SCRIPT_KEY_CHANNEL",i.SCRIPT_KEY_UNIQUE_PEDERSEN="SCRIPT_KEY_UNIQUE_PEDERSEN",i.UNRECOGNIZED="UNRECOGNIZED",(o=t.AddrEventStatus||(t.AddrEventStatus={})).ADDR_EVENT_STATUS_UNKNOWN="ADDR_EVENT_STATUS_UNKNOWN",o.ADDR_EVENT_STATUS_TRANSACTION_DETECTED="ADDR_EVENT_STATUS_TRANSACTION_DETECTED",o.ADDR_EVENT_STATUS_TRANSACTION_CONFIRMED="ADDR_EVENT_STATUS_TRANSACTION_CONFIRMED",o.ADDR_EVENT_STATUS_PROOF_RECEIVED="ADDR_EVENT_STATUS_PROOF_RECEIVED",o.ADDR_EVENT_STATUS_COMPLETED="ADDR_EVENT_STATUS_COMPLETED",o.UNRECOGNIZED="UNRECOGNIZED",(n=t.SendState||(t.SendState={})).SEND_STATE_VIRTUAL_INPUT_SELECT="SEND_STATE_VIRTUAL_INPUT_SELECT",n.SEND_STATE_VIRTUAL_SIGN="SEND_STATE_VIRTUAL_SIGN",n.SEND_STATE_ANCHOR_SIGN="SEND_STATE_ANCHOR_SIGN",n.SEND_STATE_LOG_COMMITMENT="SEND_STATE_LOG_COMMITMENT",n.SEND_STATE_BROADCAST="SEND_STATE_BROADCAST",n.SEND_STATE_WAIT_CONFIRMATION="SEND_STATE_WAIT_CONFIRMATION",n.SEND_STATE_STORE_PROOFS="SEND_STATE_STORE_PROOFS",n.SEND_STATE_TRANSFER_PROOFS="SEND_STATE_TRANSFER_PROOFS",n.SEND_STATE_COMPLETED="SEND_STATE_COMPLETED",n.UNRECOGNIZED="UNRECOGNIZED",(r=t.ParcelType||(t.ParcelType={})).PARCEL_TYPE_ADDRESS="PARCEL_TYPE_ADDRESS",r.PARCEL_TYPE_PRE_SIGNED="PARCEL_TYPE_PRE_SIGNED",r.PARCEL_TYPE_PENDING="PARCEL_TYPE_PENDING",r.PARCEL_TYPE_PRE_ANCHORED="PARCEL_TYPE_PRE_ANCHORED",r.UNRECOGNIZED="UNRECOGNIZED"},5558(e,t){var r,n,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetTypeFilter=t.AssetQuerySort=t.UniverseSyncMode=t.ProofType=void 0,(i=t.ProofType||(t.ProofType={})).PROOF_TYPE_UNSPECIFIED="PROOF_TYPE_UNSPECIFIED",i.PROOF_TYPE_ISSUANCE="PROOF_TYPE_ISSUANCE",i.PROOF_TYPE_TRANSFER="PROOF_TYPE_TRANSFER",i.UNRECOGNIZED="UNRECOGNIZED",(o=t.UniverseSyncMode||(t.UniverseSyncMode={})).SYNC_ISSUANCE_ONLY="SYNC_ISSUANCE_ONLY",o.SYNC_FULL="SYNC_FULL",o.UNRECOGNIZED="UNRECOGNIZED",(n=t.AssetQuerySort||(t.AssetQuerySort={})).SORT_BY_NONE="SORT_BY_NONE",n.SORT_BY_ASSET_NAME="SORT_BY_ASSET_NAME",n.SORT_BY_ASSET_ID="SORT_BY_ASSET_ID",n.SORT_BY_ASSET_TYPE="SORT_BY_ASSET_TYPE",n.SORT_BY_TOTAL_SYNCS="SORT_BY_TOTAL_SYNCS",n.SORT_BY_TOTAL_PROOFS="SORT_BY_TOTAL_PROOFS",n.SORT_BY_GENESIS_HEIGHT="SORT_BY_GENESIS_HEIGHT",n.SORT_BY_TOTAL_SUPPLY="SORT_BY_TOTAL_SUPPLY",n.UNRECOGNIZED="UNRECOGNIZED",(r=t.AssetTypeFilter||(t.AssetTypeFilter={})).FILTER_ASSET_NONE="FILTER_ASSET_NONE",r.FILTER_ASSET_NORMAL="FILTER_ASSET_NORMAL",r.FILTER_ASSET_COLLECTIBLE="FILTER_ASSET_COLLECTIBLE",r.UNRECOGNIZED="UNRECOGNIZED"},8753(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(3126),t)},5600(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(8960),t)},7164(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(5558),t)},718(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(5779),t)},5109(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(4899),t)},7685(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(6035),t)},1022(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.camelKeysToSnake=t.snakeKeysToCamel=t.isObject=void 0;var r=function(e){return Array.isArray(e)};t.isObject=function(e){return e===Object(e)&&!r(e)&&"function"!=typeof e},t.snakeKeysToCamel=function(e){if((0,t.isObject)(e)){var n={};return Object.keys(e).forEach(function(r){var o;n[(o=r,o.replace(/([-_][a-z])/gi,function(e){return e.toUpperCase().replace("-","").replace("_","")}))]=(0,t.snakeKeysToCamel)(e[r])}),n}return r(e)?e.map(function(e){return(0,t.snakeKeysToCamel)(e)}):e},t.camelKeysToSnake=function(e){if((0,t.isObject)(e)){var n={};return Object.keys(e).forEach(function(r){var o;n[(o=r,o.replace(/[A-Z]/g,function(e){return"_".concat(e.toLowerCase())}))]=(0,t.camelKeysToSnake)(e[r])}),n}return r(e)?e.map(function(e){return(0,t.camelKeysToSnake)(e)}):e}}},t={};return function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}(4245)})(),e.exports=t()},4148(e,t,r){"use strict";var n=r(5606),o=r(6763);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function s(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=function(e){if("object"!==i(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}var u,l,p=r(9597).codes,f=p.ERR_AMBIGUOUS_ARGUMENT,h=p.ERR_INVALID_ARG_TYPE,E=p.ERR_INVALID_ARG_VALUE,y=p.ERR_INVALID_RETURN_VALUE,d=p.ERR_MISSING_ARGS,_=r(3918),O=r(537).inspect,v=r(537).types,T=v.isPromise,g=v.isRegExp,N=r(9133)(),S=r(9394)(),A=r(8075)("RegExp.prototype.test");function b(){var e=r(2299);u=e.isDeepEqual,l=e.isDeepStrictEqual}new Map;var C=!1,R=e.exports=P,I={};function m(e){if(e.message instanceof Error)throw e.message;throw new _(e)}function w(e,t,r,n){if(!r){var o=!1;if(0===t)o=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var i=new _({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}function P(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];w.apply(void 0,[P,t.length].concat(t))}R.fail=function e(t,r,i,a,s){var c,u=arguments.length;if(0===u?c="Failed":1===u?(i=t,t=void 0):(!1===C&&(C=!0,(n.emitWarning?n.emitWarning:o.warn.bind(o))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===u&&(a="!=")),i instanceof Error)throw i;var l={actual:t,expected:r,operator:void 0===a?"fail":a,stackStartFn:s||e};void 0!==i&&(l.message=i);var p=new _(l);throw c&&(p.message=c,p.generatedMessage=!0),p},R.AssertionError=_,R.ok=P,R.equal=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");t!=r&&m({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},R.notEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");t==r&&m({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},R.deepEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===u&&b(),u(t,r)||m({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},R.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===u&&b(),u(t,r)&&m({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},R.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===u&&b(),l(t,r)||m({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},R.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===u&&b(),l(t,r)&&m({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},R.strictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");S(t,r)||m({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},R.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");S(t,r)&&m({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var D=s(function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach(function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&g(t[e])&&A(t[e],n[e])?o[e]=n[e]:o[e]=t[e])})});function U(e,t,r,n){if("function"!=typeof t){if(g(t))return A(t,e);if(2===arguments.length)throw new h("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var o=new _({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw o.operator=n.name,o}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(0===a.length)throw new E("error",t,"may not be an empty object");return void 0===u&&b(),a.forEach(function(o){"string"==typeof e[o]&&g(t[o])&&A(t[o],e[o])||function(e,t,r,n,o,i){if(!(r in e)||!l(e[r],t[r])){if(!n){var a=new D(e,o),s=new D(t,o,e),c=new _({actual:a,expected:s,operator:"deepStrictEqual",stackStartFn:i});throw c.actual=e,c.expected=t,c.operator=i.name,c}m({actual:e,expected:t,message:n,operator:i.name,stackStartFn:i})}}(e,t,o,r,a,n)}),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function L(e){if("function"!=typeof e)throw new h("fn","Function",e);try{e()}catch(e){return e}return I}function M(e){return T(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function F(e){return Promise.resolve().then(function(){var t;if("function"==typeof e){if(!M(t=e()))throw new y("instance of Promise","promiseFn",t)}else{if(!M(e))throw new h("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then(function(){return t}).then(function(){return I}).catch(function(e){return e})})}function j(e,t,r,n){if("string"==typeof r){if(4===arguments.length)throw new h("error",["Object","Error","Function","RegExp"],r);if("object"===i(t)&&null!==t){if(t.message===r)throw new f("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new f("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==i(r)&&"function"!=typeof r)throw new h("error",["Object","Error","Function","RegExp"],r);if(t===I){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=n?": ".concat(n):".";var a="rejects"===e.name?"rejection":"exception";m({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(r&&!U(t,r,n,e))throw t}function x(e,t,r,n){if(t!==I){if("string"==typeof r&&(n=r,r=void 0),!r||U(t,r)){var o=n?": ".concat(n):".",i="doesNotReject"===e.name?"rejection":"exception";m({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function k(e,t,r,n,o){if(!g(t))throw new h("regexp","RegExp",t);var a="match"===o;if("string"!=typeof e||A(t,e)!==a){if(r instanceof Error)throw r;var s=!r;r=r||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(i(e)," (").concat(O(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(O(t),". Input:\n\n").concat(O(e),"\n"));var c=new _({actual:e,expected:t,message:r,operator:o,stackStartFn:n});throw c.generatedMessage=s,c}}function B(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];w.apply(void 0,[B,t.length].concat(t))}R.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];j.apply(void 0,[e,L(t)].concat(n))},R.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return F(t).then(function(t){return j.apply(void 0,[e,t].concat(n))})},R.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];x.apply(void 0,[e,L(t)].concat(n))},R.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return F(t).then(function(t){return x.apply(void 0,[e,t].concat(n))})},R.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=O(t);var n=new _({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),o=t.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var s=n.stack.split("\n"),c=0;c<a.length;c++){var u=s.indexOf(a[c]);if(-1!==u){s=s.slice(0,u);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},R.match=function e(t,r,n){k(t,r,n,e,"match")},R.doesNotMatch=function e(t,r,n){k(t,r,n,e,"doesNotMatch")},R.strict=N(B,R,{equal:R.strictEqual,deepEqual:R.deepStrictEqual,notEqual:R.notStrictEqual,notDeepEqual:R.notDeepStrictEqual}),R.strict.strict=R.strict},3918(e,t,r){"use strict";var n=r(5606);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var n,o,i;n=e,o=t,i=r[t],(o=s(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!==y(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===y(t)?t:String(t)}function c(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){var t="function"==typeof Map?new Map:void 0;return l=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return p(e,arguments,E(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),h(n,e)},l(e)}function p(e,t,r){return p=f()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&h(o,r.prototype),o},p.apply(null,arguments)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}var d=r(537).inspect,_=r(9597).codes.ERR_INVALID_ARG_TYPE;function O(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var v="",T="",g="",N="",S={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function A(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){r[t]=e[t]}),Object.defineProperty(r,"message",{value:e.message}),r}function b(e){return d(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var C=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(C,e);var r,o,s,l,p=(r=C,o=f(),function(){var e,t=E(r);if(o){var n=E(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function C(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,C),"object"!==y(e)||null===e)throw new _("options","Object",e);var r=e.message,o=e.operator,i=e.stackStartFn,a=e.actual,s=e.expected,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)t=p.call(this,String(r));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(v="",T="",N="",g=""):(v="",T="",N="",g="")),"object"===y(a)&&null!==a&&"object"===y(s)&&null!==s&&"stack"in a&&a instanceof Error&&"stack"in s&&s instanceof Error&&(a=A(a),s=A(s)),"deepStrictEqual"===o||"strictEqual"===o)t=p.call(this,function(e,t,r){var o="",i="",a=0,s="",c=!1,u=b(e),l=u.split("\n"),p=b(t).split("\n"),f=0,h="";if("strictEqual"===r&&"object"===y(e)&&"object"===y(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===l.length&&1===p.length&&l[0]!==p[0]){var E=l[0].length+p[0].length;if(E<=10){if(!("object"===y(e)&&null!==e||"object"===y(t)&&null!==t||0===e&&0===t))return"".concat(S[r],"\n\n")+"".concat(l[0]," !== ").concat(p[0],"\n")}else if("strictEqualObject"!==r&&E<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;l[0][f]===p[0][f];)f++;f>2&&(h="\n  ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",f),"^"),f=0)}}for(var d=l[l.length-1],_=p[p.length-1];d===_&&(f++<2?s="\n  ".concat(d).concat(s):o=d,l.pop(),p.pop(),0!==l.length&&0!==p.length);)d=l[l.length-1],_=p[p.length-1];var A=Math.max(l.length,p.length);if(0===A){var C=u.split("\n");if(C.length>30)for(C[26]="".concat(v,"...").concat(N);C.length>27;)C.pop();return"".concat(S.notIdentical,"\n\n").concat(C.join("\n"),"\n")}f>3&&(s="\n".concat(v,"...").concat(N).concat(s),c=!0),""!==o&&(s="\n  ".concat(o).concat(s),o="");var R=0,I=S[r]+"\n".concat(T,"+ actual").concat(N," ").concat(g,"- expected").concat(N),m=" ".concat(v,"...").concat(N," Lines skipped");for(f=0;f<A;f++){var w=f-a;if(l.length<f+1)w>1&&f>2&&(w>4?(i+="\n".concat(v,"...").concat(N),c=!0):w>3&&(i+="\n  ".concat(p[f-2]),R++),i+="\n  ".concat(p[f-1]),R++),a=f,o+="\n".concat(g,"-").concat(N," ").concat(p[f]),R++;else if(p.length<f+1)w>1&&f>2&&(w>4?(i+="\n".concat(v,"...").concat(N),c=!0):w>3&&(i+="\n  ".concat(l[f-2]),R++),i+="\n  ".concat(l[f-1]),R++),a=f,i+="\n".concat(T,"+").concat(N," ").concat(l[f]),R++;else{var P=p[f],D=l[f],U=D!==P&&(!O(D,",")||D.slice(0,-1)!==P);U&&O(P,",")&&P.slice(0,-1)===D&&(U=!1,D+=","),U?(w>1&&f>2&&(w>4?(i+="\n".concat(v,"...").concat(N),c=!0):w>3&&(i+="\n  ".concat(l[f-2]),R++),i+="\n  ".concat(l[f-1]),R++),a=f,i+="\n".concat(T,"+").concat(N," ").concat(D),o+="\n".concat(g,"-").concat(N," ").concat(P),R+=2):(i+=o,o="",1!==w&&0!==f||(i+="\n  ".concat(D),R++))}if(R>20&&f<A-2)return"".concat(I).concat(m,"\n").concat(i,"\n").concat(v,"...").concat(N).concat(o,"\n")+"".concat(v,"...").concat(N)}return"".concat(I).concat(c?m:"","\n").concat(i).concat(o).concat(s).concat(h)}(a,s,o));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var f=S[o],h=b(a).split("\n");if("notStrictEqual"===o&&"object"===y(a)&&null!==a&&(f=S.notStrictEqualObject),h.length>30)for(h[26]="".concat(v,"...").concat(N);h.length>27;)h.pop();t=1===h.length?p.call(this,"".concat(f," ").concat(h[0])):p.call(this,"".concat(f,"\n\n").concat(h.join("\n"),"\n"))}else{var E=b(a),d="",R=S[o];"notDeepEqual"===o||"notEqual"===o?(E="".concat(S[o],"\n\n").concat(E)).length>1024&&(E="".concat(E.slice(0,1021),"...")):(d="".concat(b(s)),E.length>512&&(E="".concat(E.slice(0,509),"...")),d.length>512&&(d="".concat(d.slice(0,509),"...")),"deepEqual"===o||"equal"===o?E="".concat(R,"\n\n").concat(E,"\n\nshould equal\n\n"):d=" ".concat(o," ").concat(d)),t=p.call(this,"".concat(E).concat(d))}return Error.stackTraceLimit=l,t.generatedMessage=!r,Object.defineProperty(u(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=a,t.expected=s,t.operator=o,Error.captureStackTrace&&Error.captureStackTrace(u(t),i),t.stack,t.name="AssertionError",c(t)}return s=C,(l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return d(this,i(i({},t),{},{customInspect:!1,depth:0}))}}])&&a(s.prototype,l),Object.defineProperty(s,"prototype",{writable:!1}),C}(l(Error),d.custom);e.exports=C},9597(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}var a,s,c={};function u(e,t,r){r||(r=Error);var a=function(r){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(l,r);var a,s,c,u=(s=l,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=i(s);if(c){var r=i(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(r,n,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i=u.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,o)),i.code=e,i}return a=l,Object.defineProperty(a,"prototype",{writable:!1}),a}(r);c[e]=a}function l(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(e){return String(e)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",function(e,t,o){var i,s,c,u,p;if(void 0===a&&(a=r(4148)),a("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(s="not ",t.substr(0,4)===s)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-9,r)===t}(e," argument"))c="The ".concat(e," ").concat(i," ").concat(l(t,"type"));else{var f=("number"!=typeof p&&(p=0),p+1>(u=e).length||-1===u.indexOf(".",p)?"argument":"property");c='The "'.concat(e,'" ').concat(f," ").concat(i," ").concat(l(t,"type"))}return c+". Received type ".concat(n(o))},TypeError),u("ERR_INVALID_ARG_VALUE",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=r(537));var o=s.inspect(t);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(o)},TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",function(e,t,r){var o;return o=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(o,".")},TypeError),u("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===a&&(a=r(4148)),a(t.length>0,"At least one arg needs to be specified");var o="The ",i=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),i){case 1:o+="".concat(t[0]," argument");break;case 2:o+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:o+=t.slice(0,i-1).join(", "),o+=", and ".concat(t[i-1]," arguments")}return"".concat(o," must be specified")},TypeError),e.exports.codes=c},2299(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a=void 0!==/a/g.flags,s=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},c=function(e){var t=[];return e.forEach(function(e,r){return t.push([r,e])}),t},u=Object.is?Object.is:r(7653),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},p=Number.isNaN?Number.isNaN:r(4133);function f(e){return e.call.bind(e)}var h=f(Object.prototype.hasOwnProperty),E=f(Object.prototype.propertyIsEnumerable),y=f(Object.prototype.toString),d=r(537).types,_=d.isAnyArrayBuffer,O=d.isArrayBufferView,v=d.isDate,T=d.isMap,g=d.isRegExp,N=d.isSet,S=d.isNativeError,A=d.isBoxedPrimitive,b=d.isNumberObject,C=d.isStringObject,R=d.isBooleanObject,I=d.isBigIntObject,m=d.isSymbolObject,w=d.isFloat32Array,P=d.isFloat64Array;function D(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function U(e){return Object.keys(e).filter(D).concat(l(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function L(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0}function M(e,t,r,n){if(e===t)return 0!==e||!r||u(e,t);if(r){if("object"!==i(e))return"number"==typeof e&&p(e)&&p(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var o,s,c,l,f=y(e);if(f!==y(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var h=U(e),E=U(t);return h.length===E.length&&j(e,t,r,n,1,h)}if("[object Object]"===f&&(!T(e)&&T(t)||!N(e)&&N(t)))return!1;if(v(e)){if(!v(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(g(e)){if(!g(t)||(c=e,l=t,!(a?c.source===l.source&&c.flags===l.flags:RegExp.prototype.toString.call(c)===RegExp.prototype.toString.call(l))))return!1}else if(S(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(O(e)){if(r||!w(e)&&!P(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===L(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}(e,t))return!1;var d=U(e),D=U(t);return d.length===D.length&&j(e,t,r,n,0,d)}if(N(e))return!(!N(t)||e.size!==t.size)&&j(e,t,r,n,2);if(T(e))return!(!T(t)||e.size!==t.size)&&j(e,t,r,n,3);if(_(e)){if(s=t,(o=e).byteLength!==s.byteLength||0!==L(new Uint8Array(o),new Uint8Array(s)))return!1}else if(A(e)&&!function(e,t){return b(e)?b(t)&&u(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):C(e)?C(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):R(e)?R(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):I(e)?I(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):m(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return j(e,t,r,n,0)}function F(e,t){return t.filter(function(t){return E(e,t)})}function j(e,t,r,o,a,u){if(5===arguments.length){u=Object.keys(e);var p=Object.keys(t);if(u.length!==p.length)return!1}for(var f=0;f<u.length;f++)if(!h(t,u[f]))return!1;if(r&&5===arguments.length){var y=l(e);if(0!==y.length){var d=0;for(f=0;f<y.length;f++){var _=y[f];if(E(e,_)){if(!E(t,_))return!1;u.push(_),d++}else if(E(t,_))return!1}var O=l(t);if(y.length!==O.length&&F(t,O).length!==d)return!1}else{var v=l(t);if(0!==v.length&&0!==F(t,v).length)return!1}}if(0===u.length&&(0===a||1===a&&0===e.length||0===e.size))return!0;if(void 0===o)o={val1:new Map,val2:new Map,position:0};else{var T=o.val1.get(e);if(void 0!==T){var g=o.val2.get(t);if(void 0!==g)return T===g}o.position++}o.val1.set(e,o.position),o.val2.set(t,o.position);var N=function(e,t,r,o,a,u){var l=0;if(2===u){if(!function(e,t,r,n){for(var o=null,a=s(e),c=0;c<a.length;c++){var u=a[c];if("object"===i(u)&&null!==u)null===o&&(o=new Set),o.add(u);else if(!t.has(u)){if(r)return!1;if(!B(e,t,u))return!1;null===o&&(o=new Set),o.add(u)}}if(null!==o){for(var l=s(t),p=0;p<l.length;p++){var f=l[p];if("object"===i(f)&&null!==f){if(!x(o,f,r,n))return!1}else if(!r&&!e.has(f)&&!x(o,f,r,n))return!1}return 0===o.size}return!0}(e,t,r,a))return!1}else if(3===u){if(!function(e,t,r,o){for(var a=null,s=c(e),u=0;u<s.length;u++){var l=n(s[u],2),p=l[0],f=l[1];if("object"===i(p)&&null!==p)null===a&&(a=new Set),a.add(p);else{var h=t.get(p);if(void 0===h&&!t.has(p)||!M(f,h,r,o)){if(r)return!1;if(!H(e,t,p,f,o))return!1;null===a&&(a=new Set),a.add(p)}}}if(null!==a){for(var E=c(t),y=0;y<E.length;y++){var d=n(E[y],2),_=d[0],O=d[1];if("object"===i(_)&&null!==_){if(!G(a,e,_,O,r,o))return!1}else if(!(r||e.has(_)&&M(e.get(_),O,!1,o)||G(a,e,_,O,!1,o)))return!1}return 0===a.size}return!0}(e,t,r,a))return!1}else if(1===u)for(;l<e.length;l++){if(!h(e,l)){if(h(t,l))return!1;for(var p=Object.keys(e);l<p.length;l++){var f=p[l];if(!h(t,f)||!M(e[f],t[f],r,a))return!1}return p.length===Object.keys(t).length}if(!h(t,l)||!M(e[l],t[l],r,a))return!1}for(l=0;l<o.length;l++){var E=o[l];if(!M(e[E],t[E],r,a))return!1}return!0}(e,t,r,u,o,a);return o.val1.delete(e),o.val2.delete(t),N}function x(e,t,r,n){for(var o=s(e),i=0;i<o.length;i++){var a=o[i];if(M(t,a,r,n))return e.delete(a),!0}return!1}function k(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(p(e))return!1}return!0}function B(e,t,r){var n=k(r);return null!=n?n:t.has(n)&&!e.has(n)}function H(e,t,r,n,o){var i=k(r);if(null!=i)return i;var a=t.get(i);return!(void 0===a&&!t.has(i)||!M(n,a,!1,o))&&!e.has(i)&&M(n,a,!1,o)}function G(e,t,r,n,o,i){for(var a=s(e),c=0;c<a.length;c++){var u=a[c];if(M(r,u,o,i)&&M(n,t.get(u),o,i))return e.delete(u),!0}return!1}e.exports={isDeepEqual:function(e,t){return M(e,t,!1)},isDeepStrictEqual:function(e,t){return M(e,t,!0)}}},3144(e,t,r){"use strict";var n=r(6743),o=r(1002),i=r(76),a=r(7119);e.exports=a||n.call(i,o)},2205(e,t,r){"use strict";var n=r(6743),o=r(1002),i=r(3144);e.exports=function(){return i(n,o,arguments)}},1002(e){"use strict";e.exports=Function.prototype.apply},76(e){"use strict";e.exports=Function.prototype.call},3126(e,t,r){"use strict";var n=r(6743),o=r(9675),i=r(76),a=r(3144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(n,i,e)}},7119(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},8075(e,t,r){"use strict";var n=r(453),o=r(487),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},487(e,t,r){"use strict";var n=r(6897),o=r(655),i=r(3126),a=r(2205);e.exports=function(e){var t=i(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},o?o(e.exports,"apply",{value:a}):e.exports.apply=a},6556(e,t,r){"use strict";var n=r(453),o=r(3126),i=o([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o([r]):r}},6763(e,t,r){var n=r(537),o=r(4148);function i(){return(new Date).getTime()}var a,s=Array.prototype.slice,c={};a=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var u=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(e){c[e]=i()},"time"],[function(e){var t=c[e];if(!t)throw new Error("No such label: "+e);delete c[e];var r=i()-t;a.log(e+": "+r+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=n.format.apply(null,arguments),a.error(e.stack)},"trace"],[function(e){a.log(n.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);o.ok(!1,n.format.apply(null,t))}},"assert"]],l=0;l<u.length;l++){var p=u[l],f=p[0],h=p[1];a[h]||(a[h]=f)}e.exports=a},955(e,t,r){var n;e.exports=(n=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,o=[],i=[],a=[],s=[],c=[],u=[],l=[],p=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var E=n^n<<1^n<<2^n<<3^n<<4;E=E>>>8^255&E^99,o[r]=E,i[E]=r;var y=e[r],d=e[y],_=e[d],O=257*e[E]^16843008*E;a[r]=O<<24|O>>>8,s[r]=O<<16|O>>>16,c[r]=O<<8|O>>>24,u[r]=O,O=16843009*_^65537*d^257*y^16843008*r,l[E]=O<<24|O>>>8,p[E]=O<<16|O>>>16,f[E]=O<<8|O>>>24,h[E]=O,r?(r=y^e[e[e[_^y]]],n^=e[e[n]]):r=n=1}}();var E=[0,1,2,4,8,16,32,64,128,27,54],y=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],a=0;a<n;a++)a<r?i[a]=t[a]:(u=i[a-1],a%r?r>6&&a%r==4&&(u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u]):(u=o[(u=u<<8|u>>>24)>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u],u^=E[a/r|0]<<24),i[a]=i[a-r]^u);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var u=i[a];else u=i[a-4];s[c]=c<4||a<=4?u:l[o[u>>>24]]^p[o[u>>>16&255]]^f[o[u>>>8&255]]^h[o[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,u,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,l,p,f,h,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,a,s){for(var c=this._nRounds,u=e[t]^r[0],l=e[t+1]^r[1],p=e[t+2]^r[2],f=e[t+3]^r[3],h=4,E=1;E<c;E++){var y=n[u>>>24]^o[l>>>16&255]^i[p>>>8&255]^a[255&f]^r[h++],d=n[l>>>24]^o[p>>>16&255]^i[f>>>8&255]^a[255&u]^r[h++],_=n[p>>>24]^o[f>>>16&255]^i[u>>>8&255]^a[255&l]^r[h++],O=n[f>>>24]^o[u>>>16&255]^i[l>>>8&255]^a[255&p]^r[h++];u=y,l=d,p=_,f=O}y=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[p>>>8&255]<<8|s[255&f])^r[h++],d=(s[l>>>24]<<24|s[p>>>16&255]<<16|s[f>>>8&255]<<8|s[255&u])^r[h++],_=(s[p>>>24]<<24|s[f>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^r[h++],O=(s[f>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&p])^r[h++],e[t]=y,e[t+1]=d,e[t+2]=_,e[t+3]=O},keySize:8});e.AES=t._createHelper(y)}(),n.AES)},3128(e,t,r){var n;e.exports=(n=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=n,t=e.lib.BlockCipher,r=e.algo;const o=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function c(e,t){let r=t>>24&255,n=t>>16&255,o=t>>8&255,i=255&t,a=e.sbox[0][r]+e.sbox[1][n];return a^=e.sbox[2][o],a+=e.sbox[3][i],a}function u(e,t,r){let n,i=t,a=r;for(let t=0;t<o;++t)i^=e.pbox[t],a=c(e,i)^a,n=i,i=a,a=n;return n=i,i=a,a=n,a^=e.pbox[o],i^=e.pbox[17],{left:i,right:a}}var l=r.Blowfish=t.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4;!function(e,t,r){for(let t=0;t<4;t++){e.sbox[t]=[];for(let r=0;r<256;r++)e.sbox[t][r]=a[t][r]}let n=0;for(let o=0;o<18;o++)e.pbox[o]=i[o]^t[n],n++,n>=r&&(n=0);let o=0,s=0,c=0;for(let t=0;t<18;t+=2)c=u(e,o,s),o=c.left,s=c.right,e.pbox[t]=o,e.pbox[t+1]=s;for(let t=0;t<4;t++)for(let r=0;r<256;r+=2)c=u(e,o,s),o=c.left,s=c.right,e.sbox[t][r]=o,e.sbox[t][r+1]=s}(s,t,r)}},encryptBlock:function(e,t){var r=u(s,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},decryptBlock:function(e,t){var r=function(e,t,r){let n,o=t,i=r;for(let t=17;t>1;--t)o^=e.pbox[t],i=c(e,o)^i,n=o,o=i,i=n;return n=o,o=i,i=n,i^=e.pbox[1],o^=e.pbox[0],{left:o,right:i}}(s,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=t._createHelper(l)}(),n.Blowfish)},7165(e,t,r){var n,o,i,a,s,c,u,l,p,f,h,E,y,d,_,O,v,T,g;e.exports=(n=r(9021),r(9506),void(n.lib.Cipher||(o=n,i=o.lib,a=i.Base,s=i.WordArray,c=i.BufferedBlockAlgorithm,u=o.enc,u.Utf8,l=u.Base64,p=o.algo.EvpKDF,f=i.Cipher=c.extend({cfg:a.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?g:v}return function(t){return{encrypt:function(r,n,o){return e(n).encrypt(t,r,n,o)},decrypt:function(r,n,o){return e(n).decrypt(t,r,n,o)}}}}()}),i.StreamCipher=f.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),h=o.mode={},E=i.BlockCipherMode=a.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),y=h.CBC=function(){var e=E.extend();function t(e,t,r){var n,o=this._iv;o?(n=o,this._iv=void 0):n=this._prevBlock;for(var i=0;i<r;i++)e[t+i]^=n[i]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,o=n.blockSize;t.call(this,e,r,o),n.encryptBlock(e,r),this._prevBlock=e.slice(r,r+o)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,o=n.blockSize,i=e.slice(r,r+o);n.decryptBlock(e,r),t.call(this,e,r,o),this._prevBlock=i}}),e}(),d=(o.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,o=n<<24|n<<16|n<<8|n,i=[],a=0;a<n;a+=4)i.push(o);var c=s.create(i,n);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.BlockCipher=f.extend({cfg:f.cfg.extend({mode:y,padding:d}),reset:function(){var e;f.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),_=i.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),O=(o.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?s.create([1398893684,1701076831]).concat(r).concat(t):t).toString(l)},parse:function(e){var t,r=l.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=s.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),_.create({ciphertext:r,salt:t})}},v=i.SerializableCipher=a.extend({cfg:a.extend({format:O}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var o=e.createEncryptor(r,n),i=o.finalize(t),a=o.cfg;return _.create({ciphertext:i,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),T=(o.kdf={}).OpenSSL={execute:function(e,t,r,n,o){if(n||(n=s.random(8)),o)i=p.create({keySize:t+r,hasher:o}).compute(e,n);else var i=p.create({keySize:t+r}).compute(e,n);var a=s.create(i.words.slice(t),4*r);return i.sigBytes=4*t,_.create({key:i,iv:a,salt:n})}},g=i.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:T}),encrypt:function(e,t,r,n){var o=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=o.iv;var i=v.encrypt.call(this,e,t,o.key,n);return i.mixIn(o),i},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var o=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=o.iv,v.decrypt.call(this,e,t,o.key,n)}}))))},9021(e,t,r){var n;e.exports=(n=n||function(e){var t;if("undefined"!=typeof window&&window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==r.g&&r.g.crypto&&(t=r.g.crypto),!t)try{t=r(477)}catch(e){}var n=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),i={},a=i.lib={},s=a.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var a=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=a<<24-(n+i)%4*8}else for(var s=0;s<o;s+=4)t[n+s>>>2]=r[s>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new c.init(t,e)}}),u=i.enc={},l=u.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},p=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,t)}},f=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},h=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,o=n.words,i=n.sigBytes,a=this.blockSize,s=i/(4*a),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,l=e.min(4*u,i);if(u){for(var p=0;p<u;p+=a)this._doProcessBlock(o,p);r=o.splice(0,u),n.sigBytes-=l}return new c.init(r,l)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),E=(a.Hasher=h.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new E.HMAC.init(e,r).finalize(t)}}}),i.algo={});return i}(Math),n)},754(e,t,r){var n,o,i;e.exports=(n=r(9021),i=(o=n).lib.WordArray,o.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<r;i+=3)for(var a=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<r;s++)o.push(n.charAt(a>>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<r.length;o++)n[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,r){for(var n=[],o=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;n[o>>>2]|=s<<24-o%4*8,o++}return i.create(n,o)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},4725(e,t,r){var n,o,i;e.exports=(n=r(9021),i=(o=n).lib.WordArray,o.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var i=[],a=0;a<n;a+=3)for(var s=(r[a>>>2]>>>24-a%4*8&255)<<16|(r[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|r[a+2>>>2]>>>24-(a+2)%4*8&255,c=0;c<4&&a+.75*c<n;c++)i.push(o.charAt(s>>>6*(3-c)&63));var u=o.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var r=e.length,n=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<n.length;a++)o[n.charCodeAt(a)]=a}var s=n.charAt(64);if(s){var c=e.indexOf(s);-1!==c&&(r=c)}return function(e,t,r){for(var n=[],o=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;n[o>>>2]|=s<<24-o%4*8,o++}return i.create(n,o)}(e,r,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},n.enc.Base64url)},5503(e,t,r){var n;e.exports=(n=r(9021),function(){var e=n,t=e.lib.WordArray,r=e.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var r=e.length,n=[],o=0;o<r;o++)n[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return t.create(n,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i+=2){var a=o(t[i>>>2]>>>16-i%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i<r;i++)n[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return t.create(n,2*r)}}}(),n.enc.Utf16)},9506(e,t,r){var n,o,i,a,s,c,u,l;e.exports=(l=r(9021),r(5471),r(1025),i=(o=(n=l).lib).Base,a=o.WordArray,c=(s=n.algo).MD5,u=s.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,o=n.hasher.create(),i=a.create(),s=i.words,c=n.keySize,u=n.iterations;s.length<c;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var l=1;l<u;l++)r=o.finalize(r),o.reset();i.concat(r)}return i.sigBytes=4*c,i}}),n.EvpKDF=function(e,t,r){return u.create(r).compute(e,t)},l.EvpKDF)},25(e,t,r){var n,o,i,a;e.exports=(a=r(9021),r(7165),o=(n=a).lib.CipherParams,i=n.enc.Hex,n.format.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var t=i.parse(e);return o.create({ciphertext:t})}},a.format.Hex)},1025(e,t,r){var n,o,i;e.exports=(o=(n=r(9021)).lib.Base,i=n.enc.Utf8,void(n.algo.HMAC=o.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,c=a.words,u=0;u<r;u++)s[u]^=1549556828,c[u]^=909522486;o.sigBytes=a.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})))},1396(e,t,r){var n;e.exports=(n=r(9021),r(3240),r(6440),r(5503),r(754),r(4725),r(4636),r(5471),r(3009),r(6308),r(1380),r(9557),r(5953),r(8056),r(1025),r(19),r(9506),r(7165),r(2169),r(6939),r(6372),r(3797),r(8454),r(2073),r(4905),r(482),r(2155),r(8124),r(25),r(955),r(7628),r(7193),r(6298),r(2696),r(3128),n)},6440(e,t,r){var n;e.exports=(n=r(9021),function(){if("function"==typeof ArrayBuffer){var e=n.lib.WordArray,t=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,n=[],o=0;o<r;o++)n[o>>>2]|=e[o]<<24-o%4*8;t.call(this,n,r)}else t.apply(this,arguments)};r.prototype=e}}(),n.lib.WordArray)},4636(e,t,r){var n;e.exports=(n=r(9021),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],c=e[t+1],h=e[t+2],E=e[t+3],y=e[t+4],d=e[t+5],_=e[t+6],O=e[t+7],v=e[t+8],T=e[t+9],g=e[t+10],N=e[t+11],S=e[t+12],A=e[t+13],b=e[t+14],C=e[t+15],R=i[0],I=i[1],m=i[2],w=i[3];R=u(R,I,m,w,a,7,s[0]),w=u(w,R,I,m,c,12,s[1]),m=u(m,w,R,I,h,17,s[2]),I=u(I,m,w,R,E,22,s[3]),R=u(R,I,m,w,y,7,s[4]),w=u(w,R,I,m,d,12,s[5]),m=u(m,w,R,I,_,17,s[6]),I=u(I,m,w,R,O,22,s[7]),R=u(R,I,m,w,v,7,s[8]),w=u(w,R,I,m,T,12,s[9]),m=u(m,w,R,I,g,17,s[10]),I=u(I,m,w,R,N,22,s[11]),R=u(R,I,m,w,S,7,s[12]),w=u(w,R,I,m,A,12,s[13]),m=u(m,w,R,I,b,17,s[14]),R=l(R,I=u(I,m,w,R,C,22,s[15]),m,w,c,5,s[16]),w=l(w,R,I,m,_,9,s[17]),m=l(m,w,R,I,N,14,s[18]),I=l(I,m,w,R,a,20,s[19]),R=l(R,I,m,w,d,5,s[20]),w=l(w,R,I,m,g,9,s[21]),m=l(m,w,R,I,C,14,s[22]),I=l(I,m,w,R,y,20,s[23]),R=l(R,I,m,w,T,5,s[24]),w=l(w,R,I,m,b,9,s[25]),m=l(m,w,R,I,E,14,s[26]),I=l(I,m,w,R,v,20,s[27]),R=l(R,I,m,w,A,5,s[28]),w=l(w,R,I,m,h,9,s[29]),m=l(m,w,R,I,O,14,s[30]),R=p(R,I=l(I,m,w,R,S,20,s[31]),m,w,d,4,s[32]),w=p(w,R,I,m,v,11,s[33]),m=p(m,w,R,I,N,16,s[34]),I=p(I,m,w,R,b,23,s[35]),R=p(R,I,m,w,c,4,s[36]),w=p(w,R,I,m,y,11,s[37]),m=p(m,w,R,I,O,16,s[38]),I=p(I,m,w,R,g,23,s[39]),R=p(R,I,m,w,A,4,s[40]),w=p(w,R,I,m,a,11,s[41]),m=p(m,w,R,I,E,16,s[42]),I=p(I,m,w,R,_,23,s[43]),R=p(R,I,m,w,T,4,s[44]),w=p(w,R,I,m,S,11,s[45]),m=p(m,w,R,I,C,16,s[46]),R=f(R,I=p(I,m,w,R,h,23,s[47]),m,w,a,6,s[48]),w=f(w,R,I,m,O,10,s[49]),m=f(m,w,R,I,b,15,s[50]),I=f(I,m,w,R,d,21,s[51]),R=f(R,I,m,w,S,6,s[52]),w=f(w,R,I,m,E,10,s[53]),m=f(m,w,R,I,g,15,s[54]),I=f(I,m,w,R,c,21,s[55]),R=f(R,I,m,w,v,6,s[56]),w=f(w,R,I,m,C,10,s[57]),m=f(m,w,R,I,_,15,s[58]),I=f(I,m,w,R,A,21,s[59]),R=f(R,I,m,w,y,6,s[60]),w=f(w,R,I,m,N,10,s[61]),m=f(m,w,R,I,h,15,s[62]),I=f(I,m,w,R,T,21,s[63]),i[0]=i[0]+R|0,i[1]=i[1]+I|0,i[2]=i[2]+m|0,i[3]=i[3]+w|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;r[o>>>5]|=128<<24-o%32;var i=e.floor(n/4294967296),a=n;r[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,n,o,i,a){var s=e+(t&r|~t&n)+o+a;return(s<<i|s>>>32-i)+t}function l(e,t,r,n,o,i,a){var s=e+(t&n|r&~n)+o+a;return(s<<i|s>>>32-i)+t}function p(e,t,r,n,o,i,a){var s=e+(t^r^n)+o+a;return(s<<i|s>>>32-i)+t}function f(e,t,r,n,o,i,a){var s=e+(r^(t|~n))+o+a;return(s<<i|s>>>32-i)+t}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),n.MD5)},2169(e,t,r){var n;e.exports=(n=r(9021),r(7165),n.mode.CFB=function(){var e=n.lib.BlockCipherMode.extend();function t(e,t,r,n){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,n.encryptBlock(o,0);for(var a=0;a<r;a++)e[t+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,o=n.blockSize;t.call(this,e,r,o,n),this._prevBlock=e.slice(r,r+o)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,o=n.blockSize,i=e.slice(r,r+o);t.call(this,e,r,o,n),this._prevBlock=i}}),e}(),n.mode.CFB)},6372(e,t,r){var n;e.exports=(n=r(9021),r(7165),n.mode.CTRGladman=function(){var e=n.lib.BlockCipherMode.extend();function t(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,o=n.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);n.encryptBlock(s,0);for(var c=0;c<o;c++)e[r+c]^=s[c]}});return e.Decryptor=r,e}(),n.mode.CTRGladman)},6939(e,t,r){var n,o,i;e.exports=(i=r(9021),r(7165),i.mode.CTR=(o=(n=i.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var a=i.slice(0);r.encryptBlock(a,0),i[n-1]=i[n-1]+1|0;for(var s=0;s<n;s++)e[t+s]^=a[s]}}),n.Decryptor=o,n),i.mode.CTR)},8454(e,t,r){var n,o;e.exports=(o=r(9021),r(7165),o.mode.ECB=((n=o.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),n.Decryptor=n.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),n),o.mode.ECB)},3797(e,t,r){var n,o,i;e.exports=(i=r(9021),r(7165),i.mode.OFB=(o=(n=i.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),r.encryptBlock(i,0);for(var a=0;a<n;a++)e[t+a]^=i[a]}}),n.Decryptor=o,n),i.mode.OFB)},2073(e,t,r){var n;e.exports=(n=r(9021),r(7165),n.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,o=n-r%n,i=r+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Ansix923)},4905(e,t,r){var n;e.exports=(n=r(9021),r(7165),n.pad.Iso10126={pad:function(e,t){var r=4*t,o=r-e.sigBytes%r;e.concat(n.lib.WordArray.random(o-1)).concat(n.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)},482(e,t,r){var n;e.exports=(n=r(9021),r(7165),n.pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)},8124(e,t,r){var n;e.exports=(n=r(9021),r(7165),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},2155(e,t,r){var n;e.exports=(n=r(9021),r(7165),n.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},n.pad.ZeroPadding)},19(e,t,r){var n,o,i,a,s,c,u,l,p;e.exports=(p=r(9021),r(3009),r(1025),i=(o=(n=p).lib).Base,a=o.WordArray,c=(s=n.algo).SHA256,u=s.HMAC,l=s.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:c,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=u.create(r.hasher,e),o=a.create(),i=a.create([1]),s=o.words,c=i.words,l=r.keySize,p=r.iterations;s.length<l;){var f=n.update(t).finalize(i);n.reset();for(var h=f.words,E=h.length,y=f,d=1;d<p;d++){y=n.finalize(y),n.reset();for(var _=y.words,O=0;O<E;O++)h[O]^=_[O]}o.concat(f),c[0]++}return o.sigBytes=4*l,o}}),n.PBKDF2=function(e,t,r){return l.create(r).compute(e,t)},p.PBKDF2)},2696(e,t,r){var n;e.exports=(n=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,o=[],i=[],a=[],s=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)n[o]^=r[o+4&7];if(t){var i=t.words,a=i[0],s=i[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),p=u>>>16|4294901760&l,f=l<<16|65535&u;for(n[0]^=u,n[1]^=p,n[2]^=l,n[3]^=f,n[4]^=u,n[5]^=p,n[6]^=l,n[7]^=f,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,u=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),n.RabbitLegacy)},6298(e,t,r){var n;e.exports=(n=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,o=[],i=[],a=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(t){var i=t.words,a=i[0],s=i[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),p=u>>>16|4294901760&l,f=l<<16|65535&u;for(o[0]^=u,o[1]^=p,o[2]^=l,o[3]^=f,o[4]^=u,o[5]^=p,o[6]^=l,o[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,u=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),n.Rabbit)},7193(e,t,r){var n;e.exports=(n=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,o=r.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var a=o%r,s=t[a>>>2]>>>24-a%4*8&255;i=(i+n[o]+s)%256;var c=n[o];n[o]=n[i],n[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,r=this._j,n=0,o=0;o<4;o++){r=(r+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[r],e[r]=i,n|=e[(e[t]+e[r])%256]<<24-8*o}return this._i=t,this._j=r,n}e.RC4=t._createHelper(o);var a=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});e.RC4Drop=t._createHelper(a)}(),n.RC4)},8056(e,t,r){var n;e.exports=(n=r(9021),function(){var e=n,t=e.lib,r=t.WordArray,o=t.Hasher,i=e.algo,a=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=r.create([0,1518500249,1859775393,2400959708,2840853838]),p=r.create([1352829926,1548603684,1836072691,2053994217,0]),f=i.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,f,v,T,g,N,S,A,b,C,R,I=this._hash.words,m=l.words,w=p.words,P=a.words,D=s.words,U=c.words,L=u.words;for(N=i=I[0],S=f=I[1],A=v=I[2],b=T=I[3],C=g=I[4],r=0;r<80;r+=1)R=i+e[t+P[r]]|0,R+=r<16?h(f,v,T)+m[0]:r<32?E(f,v,T)+m[1]:r<48?y(f,v,T)+m[2]:r<64?d(f,v,T)+m[3]:_(f,v,T)+m[4],R=(R=O(R|=0,U[r]))+g|0,i=g,g=T,T=O(v,10),v=f,f=R,R=N+e[t+D[r]]|0,R+=r<16?_(S,A,b)+w[0]:r<32?d(S,A,b)+w[1]:r<48?y(S,A,b)+w[2]:r<64?E(S,A,b)+w[3]:h(S,A,b)+w[4],R=(R=O(R|=0,L[r]))+C|0,N=C,C=b,b=O(A,10),A=S,S=R;R=I[1]+v+b|0,I[1]=I[2]+T+C|0,I[2]=I[3]+g+N|0,I[3]=I[4]+i+S|0,I[4]=I[0]+f+A|0,I[0]=R},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,r){return e^t^r}function E(e,t,r){return e&t|~e&r}function y(e,t,r){return(e|~t)^r}function d(e,t,r){return e&r|t&~r}function _(e,t,r){return e^(t|~r)}function O(e,t){return e<<t|e>>>32-t}e.RIPEMD160=o._createHelper(f),e.HmacRIPEMD160=o._createHmacHelper(f)}(Math),n.RIPEMD160)},5471(e,t,r){var n,o,i,a,s,c,u,l;e.exports=(o=(n=l=r(9021)).lib,i=o.WordArray,a=o.Hasher,s=n.algo,c=[],u=s.SHA1=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],u=0;u<80;u++){if(u<16)c[u]=0|e[t+u];else{var l=c[u-3]^c[u-8]^c[u-14]^c[u-16];c[u]=l<<1|l>>>31}var p=(n<<5|n>>>27)+s+c[u];p+=u<20?1518500249+(o&i|~o&a):u<40?1859775393+(o^i^a):u<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,s=a,a=i,i=o<<30|o>>>2,o=n,n=p}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=a._createHelper(u),n.HmacSHA1=a._createHmacHelper(u),l.SHA1)},6308(e,t,r){var n,o,i,a,s,c;e.exports=(c=r(9021),r(3009),o=(n=c).lib.WordArray,i=n.algo,a=i.SHA256,s=i.SHA224=a.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=a._createHelper(s),n.HmacSHA224=a._createHmacHelper(s),c.SHA224)},3009(e,t,r){var n;e.exports=(n=r(9021),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,a=t.algo,s=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,o=0;o<64;)t(n)&&(o<8&&(s[o]=r(e.pow(n,.5))),c[o]=r(e.pow(n,1/3)),o++),n++}();var u=[],l=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],l=r[5],p=r[6],f=r[7],h=0;h<64;h++){if(h<16)u[h]=0|e[t+h];else{var E=u[h-15],y=(E<<25|E>>>7)^(E<<14|E>>>18)^E>>>3,d=u[h-2],_=(d<<15|d>>>17)^(d<<13|d>>>19)^d>>>10;u[h]=y+u[h-7]+_+u[h-16]}var O=n&o^n&i^o&i,v=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),T=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&p)+c[h]+u[h];f=p,p=l,l=s,s=a+T|0,a=i,i=o,o=n,n=T+(v+O)|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+l|0,r[6]=r[6]+p|0,r[7]=r[7]+f|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=e.floor(n/4294967296),r[15+(o+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),n.SHA256)},5953(e,t,r){var n;e.exports=(n=r(9021),r(3240),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,a=t.x64.Word,s=t.algo,c=[],u=[],l=[];!function(){for(var e=1,t=0,r=0;r<24;r++){c[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var s=0,p=0,f=0;f<7;f++){if(1&o){var h=(1<<f)-1;h<32?p^=1<<h:s^=1<<h-32}128&o?o=o<<1^113:o<<=1}l[i]=a.create(s,p)}}();var p=[];!function(){for(var e=0;e<25;e++)p[e]=a.create()}();var f=s.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,n=this.blockSize/2,o=0;o<n;o++){var i=e[t+2*o],a=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(I=r[o]).high^=a,I.low^=i}for(var s=0;s<24;s++){for(var f=0;f<5;f++){for(var h=0,E=0,y=0;y<5;y++)h^=(I=r[f+5*y]).high,E^=I.low;var d=p[f];d.high=h,d.low=E}for(f=0;f<5;f++){var _=p[(f+4)%5],O=p[(f+1)%5],v=O.high,T=O.low;for(h=_.high^(v<<1|T>>>31),E=_.low^(T<<1|v>>>31),y=0;y<5;y++)(I=r[f+5*y]).high^=h,I.low^=E}for(var g=1;g<25;g++){var N=(I=r[g]).high,S=I.low,A=c[g];A<32?(h=N<<A|S>>>32-A,E=S<<A|N>>>32-A):(h=S<<A-32|N>>>64-A,E=N<<A-32|S>>>64-A);var b=p[u[g]];b.high=h,b.low=E}var C=p[0],R=r[0];for(C.high=R.high,C.low=R.low,f=0;f<5;f++)for(y=0;y<5;y++){var I=r[g=f+5*y],m=p[g],w=p[(f+1)%5+5*y],P=p[(f+2)%5+5*y];I.high=m.high^~w.high&P.high,I.low=m.low^~w.low&P.low}I=r[0];var D=l[s];I.high^=D.high,I.low^=D.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),i=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,c=s/8,u=[],l=0;l<c;l++){var p=a[l],f=p.high,h=p.low;f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),u.push(h),u.push(f)}return new o.init(u,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=i._createHelper(f),t.HmacSHA3=i._createHmacHelper(f)}(Math),n.SHA3)},9557(e,t,r){var n,o,i,a,s,c,u,l;e.exports=(l=r(9021),r(3240),r(1380),o=(n=l).x64,i=o.Word,a=o.WordArray,s=n.algo,c=s.SHA512,u=s.SHA384=c.extend({_doReset:function(){this._hash=new a.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var e=c._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=c._createHelper(u),n.HmacSHA384=c._createHmacHelper(u),l.SHA384)},1380(e,t,r){var n;e.exports=(n=r(9021),r(3240),function(){var e=n,t=e.lib.Hasher,r=e.x64,o=r.Word,i=r.WordArray,a=e.algo;function s(){return o.create.apply(o,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=s()}();var l=a.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],l=r[5],p=r[6],f=r[7],h=n.high,E=n.low,y=o.high,d=o.low,_=i.high,O=i.low,v=a.high,T=a.low,g=s.high,N=s.low,S=l.high,A=l.low,b=p.high,C=p.low,R=f.high,I=f.low,m=h,w=E,P=y,D=d,U=_,L=O,M=v,F=T,j=g,x=N,k=S,B=A,H=b,G=C,K=R,V=I,Y=0;Y<80;Y++){var W,Z,z=u[Y];if(Y<16)Z=z.high=0|e[t+2*Y],W=z.low=0|e[t+2*Y+1];else{var q=u[Y-15],X=q.high,Q=q.low,J=(X>>>1|Q<<31)^(X>>>8|Q<<24)^X>>>7,$=(Q>>>1|X<<31)^(Q>>>8|X<<24)^(Q>>>7|X<<25),ee=u[Y-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,oe=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),ie=u[Y-7],ae=ie.high,se=ie.low,ce=u[Y-16],ue=ce.high,le=ce.low;Z=(Z=(Z=J+ae+((W=$+se)>>>0<$>>>0?1:0))+ne+((W+=oe)>>>0<oe>>>0?1:0))+ue+((W+=le)>>>0<le>>>0?1:0),z.high=Z,z.low=W}var pe,fe=j&k^~j&H,he=x&B^~x&G,Ee=m&P^m&U^P&U,ye=w&D^w&L^D&L,de=(m>>>28|w<<4)^(m<<30|w>>>2)^(m<<25|w>>>7),_e=(w>>>28|m<<4)^(w<<30|m>>>2)^(w<<25|m>>>7),Oe=(j>>>14|x<<18)^(j>>>18|x<<14)^(j<<23|x>>>9),ve=(x>>>14|j<<18)^(x>>>18|j<<14)^(x<<23|j>>>9),Te=c[Y],ge=Te.high,Ne=Te.low,Se=K+Oe+((pe=V+ve)>>>0<V>>>0?1:0),Ae=_e+ye;K=H,V=G,H=k,G=B,k=j,B=x,j=M+(Se=(Se=(Se=Se+fe+((pe+=he)>>>0<he>>>0?1:0))+ge+((pe+=Ne)>>>0<Ne>>>0?1:0))+Z+((pe+=W)>>>0<W>>>0?1:0))+((x=F+pe|0)>>>0<F>>>0?1:0)|0,M=U,F=L,U=P,L=D,P=m,D=w,m=Se+(de+Ee+(Ae>>>0<_e>>>0?1:0))+((w=pe+Ae|0)>>>0<pe>>>0?1:0)|0}E=n.low=E+w,n.high=h+m+(E>>>0<w>>>0?1:0),d=o.low=d+D,o.high=y+P+(d>>>0<D>>>0?1:0),O=i.low=O+L,i.high=_+U+(O>>>0<L>>>0?1:0),T=a.low=T+F,a.high=v+M+(T>>>0<F>>>0?1:0),N=s.low=N+x,s.high=g+j+(N>>>0<x>>>0?1:0),A=l.low=A+B,l.high=S+k+(A>>>0<B>>>0?1:0),C=p.low=C+G,p.high=b+H+(C>>>0<G>>>0?1:0),I=f.low=I+V,f.high=R+K+(I>>>0<V>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(l),e.HmacSHA512=t._createHmacHelper(l)}(),n.SHA512)},7628(e,t,r){var n;e.exports=(n=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=n,t=e.lib,r=t.WordArray,o=t.BlockCipher,i=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var u=o[i]=[],l=c[i];for(r=0;r<24;r++)u[r/6|0]|=t[(s[r]-1+l)%28]<<31-r%6,u[4+(r/6|0)]|=t[28+(s[r+24]-1+l)%28]<<31-r%6;for(u[0]=u[0]<<1|u[0]>>>31,r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var p=this._invSubKeys=[];for(r=0;r<16;r++)p[r]=o[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),f.call(this,1,1431655765);for(var n=0;n<16;n++){for(var o=r[n],i=this._lBlock,a=this._rBlock,s=0,c=0;c<8;c++)s|=u[c][((a^o[c])&l[c])>>>0];this._lBlock=a,this._rBlock=i^s}var p=this._lBlock;this._lBlock=this._rBlock,this._rBlock=p,f.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function h(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}e.DES=o._createHelper(p);var E=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=p.createEncryptor(r.create(t)),this._des2=p.createEncryptor(r.create(n)),this._des3=p.createEncryptor(r.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=o._createHelper(E)}(),n.TripleDES)},3240(e,t,r){var n,o,i,a,s,c;e.exports=(n=r(9021),i=(o=n).lib,a=i.Base,s=i.WordArray,(c=o.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),c.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var o=e[n];r.push(o.high),r.push(o.low)}return s.create(r,this.sigBytes)},clone:function(){for(var e=a.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}}),n)},7833(e,t,r){var n=r(6763),o=r(5606);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))}),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&void 0!==o&&"env"in o&&(e=o.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,n.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=n.debug||n.log||(()=>{}),e.exports=r(736)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},736(e,t,r){var n=r(6763);e.exports=function(e){function t(e){let r,n,i,a=null;function s(...e){if(!s.enabled)return;const n=s,o=Number(new Date),i=o-(r||o);n.diff=i,n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,o)=>{if("%%"===r)return"%";a++;const i=t.formatters[o];if("function"==typeof i){const t=e[a];r=i.call(n,t),e.splice(a,1),a--}return r}),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=o,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(n!==t.namespaces&&(n=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function o(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e,t){let r=0,n=0,o=-1,i=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(o=n,i=r,n++):(r++,n++);else{if(-1===o)return!1;n=o+1,i++,r=i}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of r)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const r of t.skips)if(i(e,r))return!1;for(const r of t.names)if(i(e,r))return!0;return!1},t.humanize=r(6585),t.destroy=function(){n.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},41(e,t,r){"use strict";var n=r(655),o=r(8068),i=r(9675),a=r(5795);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],p=!!a&&a(e,t);if(n)n(e,t,{configurable:null===u&&p?p.configurable:!u,enumerable:null===s&&p?p.enumerable:!s,value:r,writable:null===c&&p?p.writable:!c});else{if(!l&&(s||c||u))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},8452(e,t,r){"use strict";var n=r(1189),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=r(41),c=r(592)(),u=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(o=n)||"[object Function]"!==i.call(o)||!n())return;var o;c?s(e,t,r,!0):s(e,t,r)},l=function(e,t){var r=arguments.length>2?arguments[2]:{},i=n(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s<i.length;s+=1)u(e,i[s],t[i[s]],r[i[s]])};l.supportsDescriptors=!!c,e.exports=l},7176(e,t,r){"use strict";var n,o=r(3126),i=r(5795);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&i&&i(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},655(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},1237(e){"use strict";e.exports=EvalError},9383(e){"use strict";e.exports=Error},9290(e){"use strict";e.exports=RangeError},9538(e){"use strict";e.exports=ReferenceError},8068(e){"use strict";e.exports=SyntaxError},9675(e){"use strict";e.exports=TypeError},5345(e){"use strict";e.exports=URIError},9612(e){"use strict";e.exports=Object},2682(e,t,r){"use strict";var n=r(9600),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var a,s;arguments.length>=3&&(a=r),s=e,"[object Array]"===o.call(s)?function(e,t,r){for(var n=0,o=e.length;n<o;n++)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a):"string"==typeof e?function(e,t,r){for(var n=0,o=e.length;n<o;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)}(e,t,a):function(e,t,r){for(var n in e)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a)}},9353(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e){for(var t=[],r=1,n=0;r<e.length;r+=1,n+=1)t[n]=e[r];return t}(arguments),s=r(0,o.length-a.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(i=Function("binder","return function ("+function(e){for(var t="",r=0;r<e.length;r+=1)t+=e[r],r+1<e.length&&(t+=",");return t}(c)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var t=o.apply(this,n(a,arguments));return Object(t)===t?t:this}return o.apply(e,n(a,arguments))}),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i}},6743(e,t,r){"use strict";var n=r(9353);e.exports=Function.prototype.bind||n},453(e,t,r){"use strict";var n,o=r(9612),i=r(9383),a=r(1237),s=r(9290),c=r(9538),u=r(8068),l=r(9675),p=r(5345),f=r(1514),h=r(8968),E=r(6188),y=r(8002),d=r(5880),_=r(414),O=r(3093),v=Function,T=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},g=r(5795),N=r(655),S=function(){throw new l},A=g?function(){try{return S}catch(e){try{return g(arguments,"callee").get}catch(e){return S}}}():S,b=r(4039)(),C=r(3628),R=r(1064),I=r(8648),m=r(1002),w=r(76),P={},D="undefined"!=typeof Uint8Array&&C?C(Uint8Array):n,U={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":b&&C?C([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":P,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":b&&C?C(C([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&b&&C?C((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":g,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&b&&C?C((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":b&&C?C(""[Symbol.iterator]()):n,"%Symbol%":b?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":A,"%TypedArray%":D,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":p,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":w,"%Function.prototype.apply%":m,"%Object.defineProperty%":N,"%Object.getPrototypeOf%":R,"%Math.abs%":f,"%Math.floor%":h,"%Math.max%":E,"%Math.min%":y,"%Math.pow%":d,"%Math.round%":_,"%Math.sign%":O,"%Reflect.getPrototypeOf%":I};if(C)try{null.error}catch(e){var L=C(C(e));U["%Error.prototype%"]=L}var M=function e(t){var r;if("%AsyncFunction%"===t)r=T("async function () {}");else if("%GeneratorFunction%"===t)r=T("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=T("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&C&&(r=C(o.prototype))}return U[t]=r,r},F={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},j=r(6743),x=r(9957),k=j.call(w,Array.prototype.concat),B=j.call(m,Array.prototype.splice),H=j.call(w,String.prototype.replace),G=j.call(w,String.prototype.slice),K=j.call(w,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Y=/\\(\\)?/g,W=function(e,t){var r,n=e;if(x(F,n)&&(n="%"+(r=F[n])[0]+"%"),x(U,n)){var o=U[n];if(o===P&&(o=M(n)),void 0===o&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===K(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=G(e,0,1),r=G(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return H(e,V,function(e,t,r,o){n[n.length]=r?H(o,Y,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",o=W("%"+n+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],B(r,k([0,1],c)));for(var p=1,f=!0;p<r.length;p+=1){var h=r[p],E=G(h,0,1),y=G(h,-1);if(('"'===E||"'"===E||"`"===E||'"'===y||"'"===y||"`"===y)&&E!==y)throw new u("property names with quotes must have matching quotes");if("constructor"!==h&&f||(s=!0),x(U,i="%"+(n+="."+h)+"%"))a=U[i];else if(null!=a){if(!(h in a)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(g&&p+1>=r.length){var d=g(a,h);a=(f=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[h]}else f=x(a,h),a=a[h];f&&!s&&(U[i]=a)}}return a}},1064(e,t,r){"use strict";var n=r(9612);e.exports=n.getPrototypeOf||null},8648(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},3628(e,t,r){"use strict";var n=r(8648),o=r(1064),i=r(7176);e.exports=n?function(e){return n(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:i?function(e){return i(e)}:null},6549(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},5795(e,t,r){"use strict";var n=r(6549);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},592(e,t,r){"use strict";var n=r(655),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},4039(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(1333);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},1333(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},9092(e,t,r){"use strict";var n=r(1333);e.exports=function(){return n()&&!!Symbol.toStringTag}},9957(e,t,r){"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(6743);e.exports=i.call(n,o)},6698(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},7244(e,t,r){"use strict";var n=r(9092)(),o=r(6556)("Object.prototype.toString"),i=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"callee"in e&&"[object Function]"===o(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=s?i:a},9600(e){"use strict";var t,r,n=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o(function(){throw 42},null,t)}catch(e){e!==r&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(e){try{var t=n.call(e);return i.test(t)}catch(e){return!1}},s=function(e){try{return!a(e)&&(n.call(e),!0)}catch(e){return!1}},c=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var f=document.all;c.call(f)===c.call(document.all)&&(p=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=o?function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(a(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},8184(e,t,r){"use strict";var n,o=r(6556),i=r(9721)(/^\s*(?:function)?\*/),a=r(9092)(),s=r(3628),c=o("Object.prototype.toString"),u=o("Function.prototype.toString");e.exports=function(e){if("function"!=typeof e)return!1;if(i(u(e)))return!0;if(!a)return"[object GeneratorFunction]"===c(e);if(!s)return!1;if(void 0===n){var t=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&s(t)}return s(e)===n}},3003(e){"use strict";e.exports=function(e){return e!=e}},4133(e,t,r){"use strict";var n=r(487),o=r(8452),i=r(3003),a=r(6642),s=r(2464),c=n(a(),Number);o(c,{getPolyfill:a,implementation:i,shim:s}),e.exports=c},6642(e,t,r){"use strict";var n=r(3003);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},2464(e,t,r){"use strict";var n=r(8452),o=r(6642);e.exports=function(){var e=o();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},4035(e,t,r){"use strict";var n,o=r(6556),i=r(9092)(),a=r(9957),s=r(5795);if(i){var c=o("RegExp.prototype.exec"),u={},l=function(){throw u},p={toString:l,valueOf:l};"symbol"==typeof Symbol.toPrimitive&&(p[Symbol.toPrimitive]=l),n=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!t||!a(t,"value"))return!1;try{c(e,p)}catch(e){return e===u}}}else{var f=o("Object.prototype.toString");n=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===f(e)}}e.exports=n},5680(e,t,r){"use strict";var n=r(5767);e.exports=function(e){return!!n(e)}},1514(e){"use strict";e.exports=Math.abs},8968(e){"use strict";e.exports=Math.floor},4459(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},6188(e){"use strict";e.exports=Math.max},8002(e){"use strict";e.exports=Math.min},5880(e){"use strict";e.exports=Math.pow},414(e){"use strict";e.exports=Math.round},3093(e,t,r){"use strict";var n=r(4459);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},6585(e){var t=1e3,r=60*t,n=60*r,o=24*n,i=7*o;function a(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}e.exports=function(e,s){s=s||{};var c,u,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var s=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return s*i;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===l&&isFinite(e))return s.long?(c=e,(u=Math.abs(c))>=o?a(c,u,o,"day"):u>=n?a(c,u,n,"hour"):u>=r?a(c,u,r,"minute"):u>=t?a(c,u,t,"second"):c+" ms"):function(e){var i=Math.abs(e);return i>=o?Math.round(e/o)+"d":i>=n?Math.round(e/n)+"h":i>=r?Math.round(e/r)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},9211(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},7653(e,t,r){"use strict";var n=r(8452),o=r(487),i=r(9211),a=r(9394),s=r(6576),c=o(a(),Object);n(c,{getPolyfill:a,implementation:i,shim:s}),e.exports=c},9394(e,t,r){"use strict";var n=r(9211);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},6576(e,t,r){"use strict";var n=r(9394),o=r(8452);e.exports=function(){var e=n();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8875(e,t,r){"use strict";var n;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=r(1093),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),u=s.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===i.call(e),n=a(e),s=t&&"[object String]"===i.call(e),f=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var E=u&&r;if(s&&e.length>0&&!o.call(e,0))for(var y=0;y<e.length;++y)f.push(String(y));if(n&&e.length>0)for(var d=0;d<e.length;++d)f.push(String(d));else for(var _ in e)E&&"prototype"===_||!o.call(e,_)||f.push(String(_));if(c)for(var O=function(e){if("undefined"==typeof window||!h)return p(e);try{return p(e)}catch(e){return!1}}(e),v=0;v<l.length;++v)O&&"constructor"===l[v]||!o.call(e,l[v])||f.push(l[v]);return f}}e.exports=n},1189(e,t,r){"use strict";var n=Array.prototype.slice,o=r(1093),i=Object.keys,a=i?function(e){return i(e)}:r(8875),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?s(n.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1093(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},8403(e,t,r){"use strict";var n=r(1189),o=r(1333)(),i=r(6556),a=r(9612),s=i("Array.prototype.push"),c=i("Object.prototype.propertyIsEnumerable"),u=o?a.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var r=a(e);if(1===arguments.length)return r;for(var i=1;i<arguments.length;++i){var l=a(arguments[i]),p=n(l),f=o&&(a.getOwnPropertySymbols||u);if(f)for(var h=f(l),E=0;E<h.length;++E){var y=h[E];c(l,y)&&s(p,y)}for(var d=0;d<p.length;++d){var _=p[d];if(c(l,_)){var O=l[_];r[_]=O}}}return r}},9133(e,t,r){"use strict";var n=r(8403);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var o=Object.assign({},r),i="";for(var a in o)i+=a;return e!==i}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?n:Object.assign:n}},6578(e){"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},5606(e){var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s,c=[],u=!1,l=-1;function p(){u&&s&&(u=!1,s.length?c=s.concat(c):l=-1,c.length&&f())}function f(){if(!u){var e=a(p);u=!0;for(var t=c.length;t;){for(s=c,c=[];++l<t;)s&&s[l].run();l=-1,t=c.length}s=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function E(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new h(e,t)),1!==c.length||u||a(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=E,n.addListener=E,n.once=E,n.off=E,n.removeListener=E,n.removeAllListeners=E,n.emit=E,n.prependListener=E,n.prependOnceListener=E,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},9721(e,t,r){"use strict";var n=r(6556),o=r(4035),i=n("RegExp.prototype.exec"),a=r(9675);e.exports=function(e){if(!o(e))throw new a("`regex` must be a RegExp");return function(t){return null!==i(e,t)}}},6897(e,t,r){"use strict";var n=r(453),o=r(41),i=r(592)(),a=r(5795),s=r(9675),c=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(n=!1),l&&!l.writable&&(u=!1)}return(n||u||!r)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},4717(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.createRpc=a;var i=r(3318);function a(e,t){return new Proxy({},{get:function(r,a){var s,c=this,u=(s=a.toString())&&s[0].toUpperCase()+s.slice(1),l="".concat(e,".").concat(u);return i.subscriptionMethods.includes(l)?function(e,r,n){t.subscribe(l,e,r,n)}:function(e){return n(c,void 0,void 0,function(){return o(this,function(r){switch(r.label){case 0:return[4,t.request(l,e)];case 1:return[2,r.sent()]}})})}}})}t.default=a},4324(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WASM_CLIENT_URL=void 0,t.WASM_CLIENT_URL="https://lightning.engineering/lnc-v0.4.0-alpha.wasm"},6315(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.PasskeyEncryptionService=void 0;var i=r(1389),a=function(){function e(e,t){this.isUnlockedState=!1,this.namespace=e,this.displayName=t||"LNC User (".concat(e,")")}return Object.defineProperty(e.prototype,"method",{get:function(){return"passkey"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnlocked",{get:function(){return this.isUnlockedState&&!!this.encryptionKey},enumerable:!1,configurable:!0}),e.prototype.encrypt=function(e){return n(this,void 0,void 0,function(){var t,r,n,a,s,c;return o(this,function(o){switch(o.label){case 0:if(!this.isUnlocked||!this.encryptionKey)throw new Error("Passkey encryption service is locked. Call unlock() first.");o.label=1;case 1:return o.trys.push([1,3,,4]),t=crypto.getRandomValues(new Uint8Array(12)),r=new TextEncoder,n=r.encode(e),[4,crypto.subtle.encrypt({name:"AES-GCM",iv:t},this.encryptionKey,n)];case 2:return a=o.sent(),(s=new Uint8Array(t.length+a.byteLength)).set(t),s.set(new Uint8Array(a),t.length),[2,(0,i.arrayBufferToBase64)(s.buffer)];case 3:throw c=o.sent(),new Error("Passkey encryption failed: ".concat(c.message));case 4:return[2]}})})},e.prototype.decrypt=function(e){return n(this,void 0,void 0,function(){var t,r,n,a,s;return o(this,function(o){switch(o.label){case 0:if(!this.isUnlocked||!this.encryptionKey)throw new Error("Passkey encryption service is locked. Call unlock() first.");o.label=1;case 1:return o.trys.push([1,3,,4]),t=(0,i.base64ToArrayBuffer)(e),r=t.slice(0,12),n=t.slice(12),[4,crypto.subtle.decrypt({name:"AES-GCM",iv:r},this.encryptionKey,n)];case 2:return a=o.sent(),[2,(new TextDecoder).decode(a)];case 3:throw s=o.sent(),new Error("Passkey decryption failed: ".concat(s.message));case 4:return[2]}})})},e.prototype.unlock=function(e){return n(this,void 0,void 0,function(){var t;return o(this,function(r){switch(r.label){case 0:if("passkey"!==e.method)throw new Error("Passkey encryption service requires passkey unlock method");r.label=1;case 1:return r.trys.push([1,14,,15]),!e.credentialId||e.createIfMissing?[3,3]:[4,this.authenticateWithExistingPasskey(e.credentialId)];case 2:return r.sent(),[3,13];case 3:if(!e.createIfMissing)return[3,12];if(!e.credentialId)return[3,9];r.label=4;case 4:return r.trys.push([4,6,,8]),[4,this.authenticateWithExistingPasskey(e.credentialId)];case 5:return r.sent(),[3,8];case 6:return r.sent(),[4,this.createNewPasskey()];case 7:return r.sent(),[3,8];case 8:return[3,11];case 9:return[4,this.createNewPasskey()];case 10:r.sent(),r.label=11;case 11:return[3,13];case 12:throw new Error("No passkey credential available and createIfMissing is false");case 13:return this.isUnlockedState=!0,[3,15];case 14:throw t=r.sent(),new Error("Passkey unlock failed: ".concat(t.message));case 15:return[2]}})})},e.prototype.lock=function(){this.encryptionKey=void 0,this.credentialId=void 0,this.isUnlockedState=!1},e.prototype.canHandle=function(e){return"passkey"===e},e.prototype.getCredentialId=function(){if(!this.credentialId)throw new Error("No credential ID available - unlock first");return this.credentialId},e.isSupported=function(){return n(this,void 0,void 0,function(){var e,t;return o(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),window.PublicKeyCredential?[4,PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()]:[2,!1];case 1:return r.sent()?(e=PublicKeyCredential,null===(t=e.getClientExtensionResults)||void 0===t||t.call(e),[2,!0]):[2,!1];case 2:return r.sent(),[2,!1];case 3:return[2]}})})},e.prototype.createNewPasskey=function(){return n(this,void 0,void 0,function(){var e,t,r;return o(this,function(n){switch(n.label){case 0:return[4,this.generateDeterministicChallenge()];case 1:return e=n.sent(),t=crypto.getRandomValues(new Uint8Array(16)),[4,navigator.credentials.create({publicKey:{challenge:e.buffer,rp:{name:this.namespace,id:window.location.hostname},user:{id:t,name:this.displayName,displayName:this.displayName},pubKeyCredParams:[{alg:-7,type:"public-key"},{alg:-257,type:"public-key"}],authenticatorSelection:{authenticatorAttachment:"platform",userVerification:"required",residentKey:"required"},extensions:{prf:{eval:{first:e.buffer}}}}})];case 2:if(!(r=n.sent()))throw new Error("Failed to create passkey credential");return this.credentialId=r.id,[4,this.deriveEncryptionKey(r,e)];case 3:return n.sent(),[2]}})})},e.prototype.authenticateWithExistingPasskey=function(e){return n(this,void 0,void 0,function(){var t,r;return o(this,function(n){switch(n.label){case 0:return[4,this.generateDeterministicChallenge()];case 1:return t=n.sent(),[4,navigator.credentials.get({publicKey:{challenge:t.buffer,allowCredentials:[{type:"public-key",id:(0,i.base64ToArrayBuffer)(e)}],userVerification:"required",extensions:{prf:{eval:{first:t.buffer}}}}})];case 2:if(!(r=n.sent()))throw new Error("Failed to authenticate with passkey");return this.credentialId=e,[4,this.deriveEncryptionKey(r,t)];case 3:return n.sent(),[2]}})})},e.prototype.deriveEncryptionKey=function(e,t){return n(this,void 0,void 0,function(){var r,n,i,a,s,c,u;return o(this,function(o){switch(o.label){case 0:if(r=(null===(s=e.getClientExtensionResults)||void 0===s?void 0:s.call(e))||{},!(null===(u=null===(c=r.prf)||void 0===c?void 0:c.results)||void 0===u?void 0:u.first))throw new Error("PRF extension not supported or failed");return n=new Uint8Array(r.prf.results.first),[4,crypto.subtle.importKey("raw",n,"HKDF",!1,["deriveKey"])];case 1:return i=o.sent(),a=this,[4,crypto.subtle.deriveKey({name:"HKDF",hash:"SHA-256",salt:new Uint8Array(t),info:(new TextEncoder).encode(this.namespace)},i,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])];case 2:return a.encryptionKey=o.sent(),[2]}})})},e.prototype.generateDeterministicChallenge=function(){return n(this,void 0,void 0,function(){var e,t,r;return o(this,function(n){switch(n.label){case 0:return e=new TextEncoder,t=e.encode(this.namespace),[4,crypto.subtle.digest("SHA-256",t)];case 1:return r=n.sent(),[2,new Uint8Array(r)]}})})},e}();t.PasskeyEncryptionService=a},6200(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.PasswordEncryptionService=void 0;var i=r(5105),a=function(){function e(){this.isUnlockedState=!1}return Object.defineProperty(e.prototype,"method",{get:function(){return"password"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnlocked",{get:function(){return this.isUnlockedState&&!!this.password&&!!this.salt},enumerable:!1,configurable:!0}),e.prototype.encrypt=function(e){return n(this,void 0,void 0,function(){return o(this,function(t){if(!this.isUnlocked||!this.password||!this.salt)throw new Error("Encryption service is locked. Call unlock() first.");return[2,(0,i.encrypt)(e,this.password,this.salt)]})})},e.prototype.decrypt=function(e){return n(this,void 0,void 0,function(){return o(this,function(t){if(!this.isUnlocked||!this.password||!this.salt)throw new Error("Encryption service is locked. Call unlock() first.");return[2,(0,i.decrypt)(e,this.password,this.salt)]})})},e.prototype.unlock=function(e){return n(this,void 0,void 0,function(){return o(this,function(t){if("password"!==e.method)throw new Error("Password encryption service requires password unlock method");if(!e.password)throw new Error("Password is required for password unlock");if(this.password=e.password,e.salt){if(this.salt=e.salt,e.cipher)try{if(!(0,i.verifyTestCipher)(e.cipher,this.password,this.salt))throw new Error("Invalid password")}catch(e){throw new Error("Invalid password")}}else this.salt=(0,i.generateSalt)();return this.isUnlockedState=!0,[2]})})},e.prototype.lock=function(){this.password=void 0,this.salt=void 0,this.isUnlockedState=!1},e.prototype.canHandle=function(e){return"password"===e},e.prototype.getSalt=function(){if(!this.salt)throw new Error("No salt available - unlock first");return this.salt},e.prototype.createTestCipher=function(){if(!this.password||!this.salt)throw new Error("No password/salt available - unlock first");return(0,i.createTestCipher)(this.password,this.salt)},e}();t.PasswordEncryptionService=a},4245(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WasmManager=t.LightningNodeConnect=void 0,r(7289);var c=s(r(2293));t.LightningNodeConnect=c.default;var u=s(r(4038)),l=r(254);Object.defineProperty(t,"WasmManager",{enumerable:!0,get:function(){return l.WasmManager}}),WebAssembly.instantiateStreaming||(WebAssembly.instantiateStreaming=function(e,t){return i(void 0,void 0,void 0,function(){var r;return a(this,function(n){switch(n.label){case 0:return[4,e];case 1:return[4,n.sent().arrayBuffer()];case 2:return r=n.sent(),[4,WebAssembly.instantiate(r,t)];case 3:return[2,n.sent()]}})})}),o(r(3318),t),t.default=u.default},2293(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CONFIG=void 0;var s=r(3318),c=r(4717),u=r(4324),l=r(6315),p=a(r(9440)),f=r(3666),h=r(6041),E=r(9792),y=r(8348),d=r(9764),_=r(254),O=(0,d.createLogger)("LightningNodeConnect");t.DEFAULT_CONFIG={wasmClientCode:u.WASM_CLIENT_URL,namespace:"default",serverHost:"mailbox.terminal.lightning.today:443",allowPasskeys:!0,enableSessions:!0};var v=function(){function e(e){var r,n=this,o=Object.assign({},t.DEFAULT_CONFIG,{passkeyDisplayName:"LNC User (".concat((null==e?void 0:e.namespace)||"default",")")},e);this._config=o,this._credentialCache=new h.CredentialCache,!1!==o.enableSessions&&(r=new p.default(o.namespace,o.session)),this._strategyManager=new y.StrategyManager({namespace:o.namespace,allowPasskeys:o.allowPasskeys,passkeyDisplayName:o.passkeyDisplayName},r),this._sessionCoordinator=new E.SessionCoordinator(r),this._authCoordinator=new f.AuthenticationCoordinator(this._strategyManager,this._credentialCache,this._sessionCoordinator),this._wasmManager=new _.WasmManager(o.namespace,o.wasmClientCode,{onLocalKeyCreated:function(e){n._credentialCache.set("localKey",e)},onRemoteKeyReceived:function(e){n._credentialCache.set("remoteKey",e)}}),this.lnd=new s.LndApi(c.createRpc,this),this.loop=new s.LoopApi(c.createRpc,this),this.pool=new s.PoolApi(c.createRpc,this),this.faraday=new s.FaradayApi(c.createRpc,this),this.tapd=new s.TaprootAssetsApi(c.createRpc,this),this.lit=new s.LitApi(c.createRpc,this)}return Object.defineProperty(e.prototype,"isReady",{get:function(){return this._wasmManager.isReady},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isConnected",{get:function(){return this._wasmManager.isConnected},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this._wasmManager.status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expiry",{get:function(){return this._wasmManager.expiry},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReadOnly",{get:function(){return this._wasmManager.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"serverHost",{get:function(){return this._credentialCache.get("serverHost")||this._config.serverHost},set:function(e){this._credentialCache.set("serverHost",e)},enumerable:!1,configurable:!0}),e.prototype.hasPerms=function(e){return this._wasmManager.hasPerms(e)},e.prototype.preload=function(){return o(this,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return[4,this._wasmManager.preload()];case 1:return e.sent(),[2]}})})},e.prototype.connect=function(){return o(this,void 0,void 0,function(){var e,t,r,n;return i(this,function(o){switch(o.label){case 0:if(e=this._credentialCache.get("pairingPhrase")||"",t=this._credentialCache.get("localKey")||"",!e&&!t)throw new Error("No pairing phrase or local key available. Call pair() or unlock() first.");return r={pairingPhrase:e,serverHost:this._credentialCache.get("serverHost")||this._config.serverHost,localKey:t,remoteKey:this._credentialCache.get("remoteKey")||""},[4,this._wasmManager.connect(r)];case 1:if(o.sent(),!1===this._config.enableSessions)return[3,5];o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this._authCoordinator.createSessionAfterConnection()];case 3:return o.sent(),[3,5];case 4:return n=o.sent(),O.error("Session creation failed after successful connection; session-based refresh will be unavailable:",n),[3,5];case 5:return[2]}})})},e.prototype.disconnect=function(){this._wasmManager.disconnect()},e.prototype.request=function(e,t){return this._wasmManager.request(e,t)},e.prototype.subscribe=function(e,t,r,n){this._wasmManager.subscribe(e,t,r,n)},e.prototype.pair=function(e,t){return o(this,void 0,void 0,function(){return i(this,function(r){switch(r.label){case 0:return[4,this._authCoordinator.waitForSessionRestoration()];case 1:return r.sent(),this._credentialCache.set("pairingPhrase",e),this._credentialCache.get("serverHost")||this._credentialCache.set("serverHost",this._config.serverHost),[4,this.run()];case 2:return r.sent(),[4,this.connect()];case 3:return r.sent(),t?"password"!==t.method?[3,5]:[4,this.persistWithPassword(t.password)]:[3,7];case 4:return r.sent(),[3,7];case 5:return[4,this.persistWithPasskey(t)];case 6:r.sent(),r.label=7;case 7:return[2]}})})},e.prototype.login=function(e){return o(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return[4,this.unlock(e)];case 1:if(!t.sent())throw new Error("Failed to unlock with method '".concat(e.method,"'"));return[4,this.connect()];case 2:return t.sent(),[2]}})})},e.prototype.unlock=function(e){return o(this,void 0,void 0,function(){return i(this,function(t){return[2,this._authCoordinator.unlock(e)]})})},e.prototype.persistWithPassword=function(e){return o(this,void 0,void 0,function(){var t;return i(this,function(r){switch(r.label){case 0:if(!this.isConnected)throw new Error("Must be connected before persisting credentials");if(!(t=this._strategyManager.getStrategy("password")))throw new Error("Password strategy not available");return[4,t.unlock({method:"password",password:e})];case 1:if(!r.sent())throw new Error("Failed to unlock password strategy");return[4,this._authCoordinator.persistCachedCredentials(t)];case 2:return r.sent(),[2]}})})},e.prototype.persistWithPasskey=function(e){return o(this,void 0,void 0,function(){var t;return i(this,function(r){switch(r.label){case 0:if(!this.isConnected)throw new Error("Must be connected before persisting credentials");if(!(t=this._strategyManager.getStrategy("passkey")))throw new Error("Passkey strategy not available");return[4,t.unlock(n({method:"passkey",createIfMissing:!0},e))];case 1:if(!r.sent())throw new Error("Failed to unlock passkey strategy");return[4,this._authCoordinator.persistCachedCredentials(t)];case 2:return r.sent(),[2]}})})},e.prototype.tryAutoRestore=function(){return o(this,void 0,void 0,function(){return i(this,function(e){return[2,this._authCoordinator.tryAutoRestore()]})})},e.prototype.getAuthenticationInfo=function(){return o(this,void 0,void 0,function(){return i(this,function(e){return[2,this._authCoordinator.getAuthenticationInfo()]})})},e.prototype.supportsPasskeys=function(){if(!1===this._config.allowPasskeys)return!1;var e=this._strategyManager.getStrategy("passkey");return!!e&&e.isSupported},e.isPasskeySupported=function(){return o(this,void 0,void 0,function(){return i(this,function(e){return[2,l.PasskeyEncryptionService.isSupported()]})})},e.prototype.clear=function(e){var t=!1!==(null==e?void 0:e.session),r=!0===(null==e?void 0:e.persisted);t&&this._authCoordinator.clearSession(),r&&this._strategyManager.clearAll()},e.prototype.run=function(){return o(this,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return[4,this._wasmManager.run()];case 1:return e.sent(),[4,this._wasmManager.waitTilReady()];case 2:return e.sent(),[2]}})})},e}();t.default=v},4038(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CONFIG=void 0;var a=r(3318),s=r(4717),c=r(4324),u=i(r(5820)),l=r(254);t.DEFAULT_CONFIG={wasmClientCode:c.WASM_CLIENT_URL,namespace:"default",serverHost:"mailbox.terminal.lightning.today:443"};var p=function(){function e(e){var r=this,n=Object.assign({},t.DEFAULT_CONFIG,e);n.credentialStore?this.credentials=n.credentialStore:this.credentials=new u.default(n.namespace,n.password),!this.credentials.isPaired&&n.serverHost&&(this.credentials.serverHost=n.serverHost),n.pairingPhrase&&(this.credentials.pairingPhrase=n.pairingPhrase),this.wasmManager=new l.WasmManager(n.namespace,n.wasmClientCode,{onLocalKeyCreated:function(e){r.credentials.localKey=e},onRemoteKeyReceived:function(e){r.credentials.remoteKey=e}}),this.lnd=new a.LndApi(s.createRpc,this),this.loop=new a.LoopApi(s.createRpc,this),this.pool=new a.PoolApi(s.createRpc,this),this.faraday=new a.FaradayApi(s.createRpc,this),this.tapd=new a.TaprootAssetsApi(s.createRpc,this),this.lit=new a.LitApi(s.createRpc,this)}return Object.defineProperty(e.prototype,"isReady",{get:function(){return this.wasmManager.isReady},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isConnected",{get:function(){return this.wasmManager.isConnected},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.wasmManager.status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expiry",{get:function(){return this.wasmManager.expiry},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReadOnly",{get:function(){return this.wasmManager.isReadOnly},enumerable:!1,configurable:!0}),e.prototype.hasPerms=function(e){return this.wasmManager.hasPerms(e)},e.prototype.preload=function(){return n(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,this.wasmManager.preload()];case 1:return e.sent(),[2]}})})},e.prototype.run=function(){return n(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,this.wasmManager.run()];case 1:return e.sent(),[2]}})})},e.prototype.connect=function(){return n(this,void 0,void 0,function(){var e;return o(this,function(t){switch(t.label){case 0:return e={pairingPhrase:this.credentials.pairingPhrase,serverHost:this.credentials.serverHost,localKey:this.credentials.localKey||"",remoteKey:this.credentials.remoteKey||""},[4,this.wasmManager.connect(e)];case 1:return t.sent(),this.credentials.password&&this.credentials.clear(!0),[2]}})})},e.prototype.disconnect=function(){this.wasmManager.disconnect()},e.prototype.waitTilReady=function(){return n(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,this.wasmManager.waitTilReady()];case 1:return e.sent(),[2]}})})},e.prototype.request=function(e,t){return this.wasmManager.request(e,t)},e.prototype.subscribe=function(e,t,r,n){this.wasmManager.subscribe(e,t,r,n)},e}();t.default=p},2637(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseCredentialRepository=void 0;var i=(0,r(9764).createLogger)("CredentialRepository"),a=function(){function e(e){this.namespace=e,this.credentials=new Map}return Object.defineProperty(e.prototype,"hasAnyCredentials",{get:function(){return this.loadedCredentials.size>0},enumerable:!1,configurable:!0}),e.prototype.removeCredential=function(e){return n(this,void 0,void 0,function(){return o(this,function(t){return this.remove(e),[2]})})},e.prototype.hasCredential=function(e){return this.loadedCredentials.has(e)},e.prototype.clear=function(){this.credentials.clear(),this.save()},Object.defineProperty(e.prototype,"storageKey",{get:function(){return"".concat("lnc-web:").concat(this.namespace)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loadedCredentials",{get:function(){return 0===this.credentials.size&&this.load(),this.credentials},enumerable:!1,configurable:!0}),e.prototype.get=function(e){var t;return null!==(t=this.loadedCredentials.get(e))&&void 0!==t?t:void 0},e.prototype.set=function(e,t){this.credentials.set(e,t),this.save(e)},e.prototype.remove=function(e){this.credentials.delete(e),this.save()},e.prototype.save=function(e){if(void 0!==globalThis.localStorage)if(0!==this.credentials.size){var t=Object.fromEntries(this.credentials.entries()),r=e?" (".concat(e," updated)"):"";i.info("Saving credentials to localStorage".concat(r)),globalThis.localStorage.setItem(this.storageKey,JSON.stringify(t))}else globalThis.localStorage.removeItem(this.storageKey)},e.prototype.load=function(){if(void 0!==globalThis.localStorage){var e=globalThis.localStorage.getItem(this.storageKey);if(e)try{var t=JSON.parse(e);this.credentials=new Map(Object.entries(t)),i.info("loaded credentials from localStorage")}catch(e){i.error("Failed to parse cached credentials for ".concat(this.namespace,":"),e)}}},e}();t.BaseCredentialRepository=a},4279(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.PasskeyCredentialRepository=void 0;var s=r(9764),c=r(2637),u=(0,s.createLogger)("PasskeyCredentialRepository"),l=function(e){function t(t,r){var n=e.call(this,t)||this;return n.encryption=r,n}return o(t,e),t.prototype.unlock=function(e){return i(this,void 0,void 0,function(){var t,r,n,o;return a(this,function(i){switch(i.label){case 0:if("passkey"!==e.method)throw new Error("Passkey repository requires passkey unlock method");return t=null!==(n=this.get("passkeyCredentialId"))&&void 0!==n?n:e.credentialId,[4,this.encryption.unlock({method:"passkey",credentialId:t,createIfMissing:null!==(o=e.createIfMissing)&&void 0!==o&&o})];case 1:return i.sent(),this.encryption.isUnlocked&&(r=this.encryption.getCredentialId(),this.set("passkeyCredentialId",r)),[2]}})})},t.prototype.getCredential=function(e){return i(this,void 0,void 0,function(){var t,r;return a(this,function(n){switch(n.label){case 0:if(!(t=this.get(e)))return[2,void 0];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.encryption.decrypt(t)];case 2:return[2,n.sent()];case 3:return r=n.sent(),u.error("Failed to decrypt credential ".concat(e,":"),r),[2,void 0];case 4:return[2]}})})},t.prototype.setCredential=function(e,t){return i(this,void 0,void 0,function(){var r;return a(this,function(n){switch(n.label){case 0:if(!this.encryption.isUnlocked)throw new Error("Repository is locked. Call unlock() first.");return[4,this.encryption.encrypt(t)];case 1:return r=n.sent(),this.set(e,r),[2]}})})},Object.defineProperty(t.prototype,"isUnlocked",{get:function(){return this.encryption.isUnlocked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasStoredAuthData",{get:function(){return this.hasCredential("passkeyCredentialId")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storedCredentialId",{get:function(){return this.get("passkeyCredentialId")},enumerable:!1,configurable:!0}),t.prototype.lock=function(){this.encryption.lock()},t}(c.BaseCredentialRepository);t.PasskeyCredentialRepository=l},2672(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.PasswordCredentialRepository=void 0;var s=r(9764),c=r(2637),u=(0,s.createLogger)("PasswordCredentialRepository"),l=function(e){function t(t,r){var n=e.call(this,t)||this;return n.encryption=r,n}return o(t,e),Object.defineProperty(t.prototype,"isUnlocked",{get:function(){return this.encryption.isUnlocked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasStoredAuthData",{get:function(){return this.hasCredential("salt")&&this.hasCredential("cipher")},enumerable:!1,configurable:!0}),t.prototype.unlock=function(e){return i(this,void 0,void 0,function(){var t,r;return a(this,function(n){switch(n.label){case 0:if("password"!==e.method)throw new Error("Password repository requires password unlock method");return t=this.get("salt"),r=this.get("cipher"),[4,this.encryption.unlock({method:"password",password:e.password,salt:t,cipher:r})];case 1:return n.sent(),t||(this.set("salt",this.encryption.getSalt()),this.set("cipher",this.encryption.createTestCipher())),[2]}})})},t.prototype.getCredential=function(e){return i(this,void 0,void 0,function(){var t,r;return a(this,function(n){switch(n.label){case 0:if(!(t=this.get(e)))return u.debug("No encrypted credential found for ".concat(e," in ").concat(this.namespace)),[2,void 0];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.encryption.decrypt(t)];case 2:return[2,n.sent()];case 3:return r=n.sent(),u.error("Failed to decrypt credential ".concat(e,":"),r),[2,void 0];case 4:return[2]}})})},t.prototype.setCredential=function(e,t){return i(this,void 0,void 0,function(){var r;return a(this,function(n){switch(n.label){case 0:if(!this.encryption.isUnlocked)throw new Error("Repository is locked. Call unlock() first.");return[4,this.encryption.encrypt(t)];case 1:return r=n.sent(),this.set(e,r),[2]}})})},t.prototype.lock=function(){this.encryption.lock()},t}(c.BaseCredentialRepository);t.PasswordCredentialRepository=l},1313(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},n=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.CredentialsEncrypter=void 0;var o=function(){function e(e){this.cryptoService=e}return e.prototype.encrypt=function(e){return r(this,void 0,void 0,function(){var t,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.cryptoService.generateRandomCredentialsKey()];case 1:return t=n.sent(),[4,this.cryptoService.encryptCredentials(t,JSON.stringify(e))];case 2:return r=n.sent(),o=r.ciphertextB64,i=r.ivB64,[2,{credentialsKey:t,ciphertextB64:o,ivB64:i}]}})})},e.prototype.decrypt=function(e){return r(this,void 0,void 0,function(){var t,r,o,i,a;return n(this,function(n){switch(n.label){case 0:return t=e.credentialsKey,r=e.ciphertextB64,o=e.ivB64,[4,this.cryptoService.decryptCredentials(t,r,o)];case 1:if(i=n.sent(),!((s=a=JSON.parse(i))&&"object"==typeof s&&"localKey"in s&&"string"==typeof s.localKey&&"remoteKey"in s&&"string"==typeof s.remoteKey&&"pairingPhrase"in s&&"string"==typeof s.pairingPhrase&&"serverHost"in s&&"string"==typeof s.serverHost))throw new Error("Decrypted credentials have an invalid shape");return[2,a]}var s})})},e}();t.CredentialsEncrypter=o},7027(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},n=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.KeyWrapper=void 0;var o=function(){function e(e){this.cryptoService=e}return e.prototype.wrapCredentialsKey=function(e,t,o){return r(this,void 0,void 0,function(){var r,i;return n(this,function(n){switch(n.label){case 0:return[4,this.cryptoService.wrapWithDeviceKey(e,t)];case 1:return r=n.sent(),[4,this.cryptoService.wrapWithOriginKey(e,o)];case 2:return i=n.sent(),[2,{deviceWrap:r,originWrap:i}]}})})},e.prototype.unwrapCredentialsKey=function(e,t,o){return r(this,void 0,void 0,function(){var r,i;return n(this,function(n){switch(n.label){case 0:return[4,this.cryptoService.unwrapWithDeviceKey(t,e.deviceWrap.keyB64,e.deviceWrap.ivB64)];case 1:return r=n.sent(),[4,this.cryptoService.unwrapWithOriginKey(o,e.originWrap.keyB64,e.originWrap.ivB64)];case 2:return i=n.sent(),[4,this.keysMatch(r,i)];case 3:if(!n.sent())throw new Error("Key unwrapping mismatch");return[2,r]}})})},e.prototype.keysMatch=function(e,t){return r(this,void 0,void 0,function(){var r,o,i,a;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),r=(new TextEncoder).encode("verification"),o=new Uint8Array(12),[4,crypto.subtle.encrypt({name:"AES-GCM",iv:o},e,r)];case 1:return i=n.sent(),[4,crypto.subtle.encrypt({name:"AES-GCM",iv:o},t,r)];case 2:return a=n.sent(),[2,this.arraysEqual(new Uint8Array(i),new Uint8Array(a))];case 3:return n.sent(),[2,!1];case 4:return[2]}})})},e.prototype.arraysEqual=function(e,t){if(e.length!==t.length)return!1;for(var r=!0,n=0;n<e.length;n++)e[n]!==t[n]&&(r=!1);return r},e}();t.KeyWrapper=o},9124(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(1389),a=function(){function e(){}return e.prototype.generateRandomCredentialsKey=function(){return n(this,void 0,void 0,function(){var e;return o(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,crypto.subtle.generateKey({name:"AES-GCM",length:256},!0,["encrypt","decrypt"])];case 1:return[2,t.sent()];case 2:throw e=t.sent(),new Error("[CryptoService] Credentials key generation failed: ".concat(e.message));case 3:return[2]}})})},e.prototype.encryptCredentials=function(e,t){return n(this,void 0,void 0,function(){var r,n,a,s,c;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),r=crypto.getRandomValues(new Uint8Array(12)),n=new TextEncoder,a=n.encode(t),[4,crypto.subtle.encrypt({name:"AES-GCM",iv:r},e,a)];case 1:return s=o.sent(),[2,{ciphertextB64:(0,i.arrayBufferToBase64)(s),ivB64:(0,i.arrayBufferToBase64)(r.buffer)}];case 2:throw c=o.sent(),new Error("[CryptoService] Credential encryption failed: ".concat(c.message));case 3:return[2]}})})},e.prototype.decryptCredentials=function(e,t,r){return n(this,void 0,void 0,function(){var n,a,s,c;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),n=(0,i.base64ToArrayBuffer)(t),a=(0,i.base64ToArrayBuffer)(r),[4,crypto.subtle.decrypt({name:"AES-GCM",iv:a},e,n)];case 1:return s=o.sent(),[2,(new TextDecoder).decode(s)];case 2:throw c=o.sent(),new Error("[CryptoService] Credential decryption failed: ".concat(c.message));case 3:return[2]}})})},e.prototype.wrapWithDeviceKey=function(e,t){return n(this,void 0,void 0,function(){var r,n,a;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),r=crypto.getRandomValues(new Uint8Array(12)),[4,crypto.subtle.wrapKey("raw",e,t,{name:"AES-GCM",iv:r})];case 1:return n=o.sent(),[2,{keyB64:(0,i.arrayBufferToBase64)(n),ivB64:(0,i.arrayBufferToBase64)(r.buffer)}];case 2:throw a=o.sent(),new Error("[CryptoService] Device key wrapping failed: ".concat(a.message));case 3:return[2]}})})},e.prototype.unwrapWithDeviceKey=function(e,t,r){return n(this,void 0,void 0,function(){var n,a,s;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),n=(0,i.base64ToArrayBuffer)(t),a=(0,i.base64ToArrayBuffer)(r),[4,crypto.subtle.unwrapKey("raw",n,e,{name:"AES-GCM",iv:a},{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])];case 1:return[2,o.sent()];case 2:throw s=o.sent(),new Error("[CryptoService] Device key unwrapping failed: ".concat(s.message));case 3:return[2]}})})},e.prototype.wrapWithOriginKey=function(e,t){return n(this,void 0,void 0,function(){var r,n,a;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),r=crypto.getRandomValues(new Uint8Array(12)),[4,crypto.subtle.wrapKey("raw",e,t,{name:"AES-GCM",iv:r})];case 1:return n=o.sent(),[2,{keyB64:(0,i.arrayBufferToBase64)(n),ivB64:(0,i.arrayBufferToBase64)(r.buffer)}];case 2:throw a=o.sent(),new Error("[CryptoService] Origin key wrapping failed: ".concat(a.message));case 3:return[2]}})})},e.prototype.unwrapWithOriginKey=function(e,t,r){return n(this,void 0,void 0,function(){var n,a,s;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),n=(0,i.base64ToArrayBuffer)(t),a=(0,i.base64ToArrayBuffer)(r),[4,crypto.subtle.unwrapKey("raw",n,e,{name:"AES-GCM",iv:a},{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])];case 1:return[2,o.sent()];case 2:throw s=o.sent(),new Error("[CryptoService] Origin key unwrapping failed: ".concat(s.message));case 3:return[2]}})})},e}();t.default=a},9242(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeviceBinder=void 0;var i=r(1389),a=function(){function e(){}return e.prototype.generateFingerprint=function(){return n(this,void 0,void 0,function(){var e,t,r,n,i;return o(this,function(o){switch(o.label){case 0:if(!(null===(n=globalThis.screen)||void 0===n?void 0:n.width)||!(null===(i=globalThis.screen)||void 0===i?void 0:i.height))throw new Error("Device fingerprinting requires a browser environment with screen access");return e="".concat(globalThis.screen.width,"x").concat(globalThis.screen.height,"x").concat(globalThis.screen.colorDepth),t=Intl.DateTimeFormat().resolvedOptions().timeZone,[4,this.generateCanvasFingerprint()];case 1:return r=o.sent(),[2,this.hashFingerprint("".concat(e,"|").concat(t,"|").concat(r))]}})})},e.prototype.deriveSessionKey=function(e,t){return n(this,void 0,void 0,function(){var r,n;return o(this,function(o){switch(o.label){case 0:return r=(new TextEncoder).encode(e),[4,crypto.subtle.importKey("raw",r,"HKDF",!1,["deriveKey"])];case 1:return n=o.sent(),[2,crypto.subtle.deriveKey({name:"HKDF",hash:"SHA-256",salt:(new TextEncoder).encode(t),info:(new TextEncoder).encode("lnc-session-device-key")},n,{name:"AES-GCM",length:256},!1,["wrapKey","unwrapKey"])]}})})},e.prototype.generateCanvasFingerprint=function(){return n(this,void 0,void 0,function(){var e,t,r,n;return o(this,function(o){switch(o.label){case 0:if(o.trys.push([0,2,,3]),e=document.createElement("canvas"),!(t=e.getContext("2d")))throw new Error("Canvas 2D context unavailable");return t.textBaseline="top",t.font="14px Arial",t.fillText("Device fingerprint test",2,2),r=e.toDataURL(),[4,crypto.subtle.digest("SHA-256",(new TextEncoder).encode(r))];case 1:return n=o.sent(),[2,(0,i.arrayBufferToHex)(n)];case 2:throw o.sent(),new Error("Canvas fingerprinting required for session security");case 3:return[2]}})})},e.prototype.hashFingerprint=function(e){return n(this,void 0,void 0,function(){var t;return o(this,function(r){switch(r.label){case 0:return[4,crypto.subtle.digest("SHA-256",(new TextEncoder).encode(e))];case 1:return t=r.sent(),[2,(0,i.arrayBufferToHex)(t)]}})})},e}();t.DeviceBinder=a},1228(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.OriginKeyManager=void 0;var i=(0,r(9764).createLogger)("OriginKeyManager"),a=function(){function e(e){this.dbName="lnc-origin-keys",this.dbVersion=1,this.storeName="keys",this.namespace=e}return e.prototype.isExpired=function(e){return Date.now()>e},e.prototype.getOrCreateOriginKey=function(){return n(this,void 0,void 0,function(){var e,t,r,n;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),[4,this.loadOriginKey()];case 1:return(e=o.sent())&&!this.isExpired(e.expiresAt)?[2,e]:[4,crypto.subtle.generateKey({name:"AES-GCM",length:256},!1,["wrapKey","unwrapKey"])];case 2:return t=o.sent(),r=Date.now()+864e5,[4,this.saveOriginKey(t,r)];case 3:return o.sent(),[2,{originKey:t,expiresAt:r}];case 4:throw n=o.sent(),new Error("Failed to get or create origin key: ".concat(n.message));case 5:return[2]}})})},e.prototype.loadOriginKey=function(){return n(this,void 0,void 0,function(){var e,t=this;return o(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.withDB(function(e){return new Promise(function(r){var n=e.transaction([t.storeName],"readonly").objectStore(t.storeName).get(t.namespace);n.onsuccess=function(){var e=n.result;e&&e.originKey&&"object"==typeof e.originKey&&!Array.isArray(e.originKey)&&"number"==typeof e.expiresAt&&Number.isFinite(e.expiresAt)?r({originKey:e.originKey,expiresAt:e.expiresAt}):r(void 0)},n.onerror=function(){return r(void 0)}})})];case 1:return[2,r.sent()];case 2:return e=r.sent(),i.error("Failed to load origin key: ".concat(e.message)),[2,void 0];case 3:return[2]}})})},e.prototype.saveOriginKey=function(e,t){return n(this,void 0,void 0,function(){var r,n=this;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.withDB(function(r){var o={namespace:n.namespace,originKey:e,expiresAt:t,createdAt:Date.now()};return new Promise(function(e,t){var i=r.transaction([n.storeName],"readwrite").objectStore(n.storeName).put(o);i.onsuccess=function(){return e()},i.onerror=function(){var e;t(new Error("Failed to save origin key: ".concat(null===(e=i.error)||void 0===e?void 0:e.message)))}})})];case 1:return o.sent(),[3,3];case 2:throw r=o.sent(),i.error("Failed to save origin key: ".concat(r.message),r),new Error("Failed to save origin key: ".concat(r.message));case 3:return[2]}})})},e.prototype.clearOriginKey=function(){return n(this,void 0,void 0,function(){var e,t=this;return o(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.withDB(function(e){return new Promise(function(r,n){var o=e.transaction([t.storeName],"readwrite").objectStore(t.storeName).delete(t.namespace);o.onsuccess=function(){i.info("Origin key cleared",{namespace:t.namespace}),r()},o.onerror=function(){var e;return n(new Error("Failed to clear origin key: ".concat(null===(e=o.error)||void 0===e?void 0:e.message)))}})})];case 1:return r.sent(),[3,3];case 2:return e=r.sent(),i.warn("Failed to clear origin key:",e),[3,3];case 3:return[2]}})})},e.prototype.withDB=function(e){return n(this,void 0,void 0,function(){var t;return o(this,function(r){switch(r.label){case 0:return[4,this.openDB()];case 1:t=r.sent(),r.label=2;case 2:return r.trys.push([2,,4,5]),[4,e(t)];case 3:return[2,r.sent()];case 4:return t.close(),[7];case 5:return[2]}})})},e.prototype.openDB=function(){return n(this,void 0,void 0,function(){var e=this;return o(this,function(t){return[2,new Promise(function(t,r){var n=indexedDB.open(e.dbName,e.dbVersion);n.onupgradeneeded=function(t){var r=t.target.result;r.objectStoreNames.contains(e.storeName)||r.createObjectStore(e.storeName,{keyPath:"namespace"}).createIndex("expiresAt","expiresAt",{unique:!1})},n.onsuccess=function(){return t(n.result)},n.onerror=function(){return r(new Error("Failed to open IndexedDB"))}})]})})},e}();t.OriginKeyManager=a},9440(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(9764),s=r(1313),c=r(7027),u=i(r(9124)),l=r(9242),p=r(1228),f=r(7424),h=(0,a.createLogger)("SessionManager"),E=Object.freeze({sessionDurationMs:864e5,enableActivityRefresh:!0,maxRefreshes:10,maxSessionAgeMs:6048e5}),y=function(){function e(e,t){this.isRefreshing=!1,this.namespace=e;var r=new u.default;this.encrypter=new s.CredentialsEncrypter(r),this.keyWrapper=new c.KeyWrapper(r),this.deviceBinder=new l.DeviceBinder,this.originKeyManager=new p.OriginKeyManager(e),this.storage=new f.SessionStorage(e),this.config=this.validateConfig(t)}return Object.defineProperty(e.prototype,"canAutoRestore",{get:function(){return this.storage.hasData()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sessionTimeRemaining",{get:function(){var e=this.storage.load();return e?Math.max(0,e.expiresAt-Date.now()):0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasActiveSession",{get:function(){var e=this.storage.load();return null!=e&&Date.now()<e.expiresAt},enumerable:!1,configurable:!0}),e.prototype.getNamespace=function(){return this.namespace},e.prototype.clearSession=function(){this.storage.clear()},e.prototype.hasValidSession=function(){return n(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return this.hasActiveSession?[4,this.restoreSession()]:[2,!1];case 1:return[2,!!e.sent()]}})})},e.prototype.createSession=function(e){return n(this,void 0,void 0,function(){var t,r,n,i,a,s,c,u,l;return o(this,function(o){switch(o.label){case 0:return t=this.generateSecureSessionId(),r=Date.now(),n=r+this.config.sessionDurationMs,[4,this.deviceBinder.generateFingerprint()];case 1:return i=o.sent(),[4,this.encrypter.encrypt(e)];case 2:return a=o.sent(),[4,this.deviceBinder.deriveSessionKey(i,t)];case 3:return s=o.sent(),[4,this.originKeyManager.getOrCreateOriginKey()];case 4:return c=o.sent(),[4,this.keyWrapper.wrapCredentialsKey(a.credentialsKey,s,c.originKey)];case 5:return u=o.sent(),l={sessionId:t,createdAt:r,expiresAt:n,refreshCount:0,encryptedCredentials:a.ciphertextB64,credentialsIV:a.ivB64,device:u.deviceWrap,origin:u.originWrap},this.storage.save(l),h.info("Session created successfully"),[2]}})})},e.prototype.restoreSession=function(){return n(this,void 0,void 0,function(){var e,t;return o(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.restoreSessionOrThrow()];case 1:return(e=r.sent())||this.storage.clear(),[2,e];case 2:return t=r.sent(),h.error("Session restoration failed:",t),this.storage.clear(),[2,void 0];case 3:return[2]}})})},e.prototype.refreshSession=function(){return n(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:if(this.isRefreshing&&this.refreshPromise)return h.warn("Refresh already in progress; waiting for result"),[2,this.refreshPromise];this.isRefreshing=!0,this.refreshPromise=this.refreshSessionInternal(),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,this.refreshPromise];case 2:return[2,e.sent()];case 3:return this.isRefreshing=!1,this.refreshPromise=void 0,[7];case 4:return[2]}})})},e.prototype.refreshSessionInternal=function(){return n(this,void 0,void 0,function(){var e,t,r,n,i,a,s,c,u;return o(this,function(o){switch(o.label){case 0:return(e=this.storage.load())?e.refreshCount>=this.config.maxRefreshes?(h.warn("Maximum refresh count reached"),[2,!1]):Date.now()-e.createdAt>=this.config.maxSessionAgeMs?(h.warn("Maximum session age exceeded"),[2,!1]):[4,this.restoreSessionOrThrow()]:(h.warn("No session data available for refresh"),[2,!1]);case 1:return(t=o.sent())?[4,this.encrypter.encrypt(t)]:(h.warn("Refresh aborted: session could not be restored"),[2,!1]);case 2:return r=o.sent(),a=(i=this.deviceBinder).deriveSessionKey,[4,this.deviceBinder.generateFingerprint()];case 3:return[4,a.apply(i,[o.sent(),e.sessionId])];case 4:return n=o.sent(),[4,this.originKeyManager.getOrCreateOriginKey()];case 5:return s=o.sent(),[4,this.keyWrapper.wrapCredentialsKey(r.credentialsKey,n,s.originKey)];case 6:return c=o.sent(),u={sessionId:e.sessionId,createdAt:e.createdAt,expiresAt:Date.now()+this.config.sessionDurationMs,refreshCount:e.refreshCount+1,encryptedCredentials:r.ciphertextB64,credentialsIV:r.ivB64,device:c.deviceWrap,origin:c.originWrap},this.storage.save(u),[2,!0]}})})},e.prototype.restoreSessionOrThrow=function(){return n(this,void 0,void 0,function(){var e,t,r,n,i,a;return o(this,function(o){switch(o.label){case 0:return h.info("Starting session restoration..."),(e=this.storage.load())?Date.now()>e.expiresAt?(h.info("Session expired"),[2,void 0]):[4,this.deviceBinder.generateFingerprint()]:(h.info("No session data found"),[2,void 0]);case 1:return t=o.sent(),[4,this.deviceBinder.deriveSessionKey(t,e.sessionId)];case 2:return r=o.sent(),[4,this.originKeyManager.loadOriginKey()];case 3:if(!(n=o.sent()))throw new Error("Origin key missing");if(this.originKeyManager.isExpired(n.expiresAt))throw new Error("Origin key expired");return[4,this.keyWrapper.unwrapCredentialsKey({deviceWrap:e.device,originWrap:e.origin},r,n.originKey)];case 4:return i=o.sent(),[4,this.encrypter.decrypt({credentialsKey:i,ciphertextB64:e.encryptedCredentials,ivB64:e.credentialsIV})];case 5:return a=o.sent(),h.info("Session restoration successful!"),[2,a]}})})},e.prototype.generateSecureSessionId=function(){if(crypto.randomUUID)return crypto.randomUUID();var e=new Uint8Array(16);return crypto.getRandomValues(e),Array.from(e,function(e){return e.toString(16).padStart(2,"0")}).join("")},e.prototype.validateConfig=function(e){var t=e?Object.fromEntries(Object.entries(e).filter(function(e){return void 0!==e[1]})):{},r=Object.assign({},E,t);if(!Number.isFinite(r.sessionDurationMs)||r.sessionDurationMs<=0)throw new Error("sessionDurationMs must be a finite positive number");if(!Number.isInteger(r.maxRefreshes)||r.maxRefreshes<0)throw new Error("maxRefreshes must be a non-negative integer");if("boolean"!=typeof r.enableActivityRefresh)throw new Error("enableActivityRefresh must be a boolean");if(!Number.isFinite(r.maxSessionAgeMs)||r.maxSessionAgeMs<=0)throw new Error("maxSessionAgeMs must be a finite positive number");if(r.maxSessionAgeMs<r.sessionDurationMs)throw new Error("maxSessionAgeMs must be >= sessionDurationMs");return Object.freeze(r)},e}();t.default=y},5673(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=(0,r(9764).createLogger)("SessionRefreshManager"),a=function(){function e(e){this.sessionManager=e,this.lastActivity=Date.now(),this.activityListeners=[],this.isRunning=!1,this.hasVisibilityListener=!1,this.consecutiveErrors=0,this.isRefreshing=!1,this.config=e.config,this.visibilityHandler=this.handleVisibilityChange.bind(this),this.refreshTriggerMs=Math.min(144e5,.25*this.config.sessionDurationMs)}return e.prototype.start=function(){if(!this.isRunning&&this.config.enableActivityRefresh)if("undefined"!=typeof document){if(this.config.sessionDurationMs<12e5){var e=this.config.sessionDurationMs/6e4;i.warn("Session duration (".concat(e,"m) is less ")+"than the minimum recommended for auto-refresh (".concat(20,"m). ")+"The periodic check may not observe the session inside the refresh window before it expires.")}this.isRunning=!0,this.lastActivity=Date.now(),this.consecutiveErrors=0,this.setupActivityMonitoring(),this.resumeRefreshTimer(),this.visibilityHandler&&(document.addEventListener("visibilitychange",this.visibilityHandler),this.hasVisibilityListener=!0)}else i.warn("No document available; activity monitoring disabled")},e.prototype.stop=function(){this.isRunning&&(this.isRunning=!1,this.cleanupTimersAndListeners(),this.hasVisibilityListener&&this.visibilityHandler&&(document.removeEventListener("visibilitychange",this.visibilityHandler),this.hasVisibilityListener=!1))},e.prototype.setupActivityMonitoring=function(){var e=this,t=this.createThrottledActivityUpdater();["click","keydown","mousemove","scroll","touchstart"].forEach(function(r){var n=function(){return t()};document.addEventListener(r,n,{passive:!0}),e.activityListeners.push({event:r,handler:n})})},e.prototype.createThrottledActivityUpdater=function(){var e=this,t=!1;return function(){t||(t=!0,e.lastActivity=Date.now(),e.activityThrottleTimer=setTimeout(function(){t=!1},3e4))}},e.prototype.resumeRefreshTimer=function(){var e=this;this.refreshTimer&&clearTimeout(this.refreshTimer);this.refreshTimer=setTimeout(function(){return n(e,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,this.checkAndRefreshSession()];case 1:return e.sent(),this.isRunning&&this.resumeRefreshTimer(),[2]}})})},3e5)},e.prototype.pauseRefreshTimer=function(){this.refreshTimer&&(clearTimeout(this.refreshTimer),this.refreshTimer=void 0)},e.prototype.checkAndRefreshSession=function(){return n(this,void 0,void 0,function(){var e,t,r;return o(this,function(n){switch(n.label){case 0:if(this.isRefreshing)return[2];this.isRefreshing=!0,n.label=1;case 1:return n.trys.push([1,4,5,6]),(e=Date.now()-this.lastActivity)>=18e5?(i.debug("Refresh suppressed: user inactive "+"for ".concat(Math.round(e/1e3),"s")),[2]):(t=this.sessionManager.sessionTimeRemaining)>0&&t<this.refreshTriggerMs?[4,this.sessionManager.refreshSession()]:[3,3];case 2:n.sent()?(this.consecutiveErrors=0,i.info("Session automatically refreshed")):(i.warn("Session refresh declined (max refreshes or max age reached). Stopping."),this.stop()),n.label=3;case 3:return[3,6];case 4:return r=n.sent(),this.consecutiveErrors++,i.error("Refresh check failed "+"(attempt ".concat(this.consecutiveErrors,"/").concat(3,"):"),r),this.consecutiveErrors>=3&&(i.error("Stopping after repeated failures"),this.stop()),[3,6];case 5:return this.isRefreshing=!1,[7];case 6:return[2]}})})},e.prototype.handleVisibilityChange=function(){this.isRunning&&(document.hidden?this.pauseRefreshTimer():(this.lastActivity=Date.now(),this.resumeRefreshTimer()))},e.prototype.cleanupTimersAndListeners=function(){this.refreshTimer&&(clearTimeout(this.refreshTimer),this.refreshTimer=void 0),this.activityThrottleTimer&&(clearTimeout(this.activityThrottleTimer),this.activityThrottleTimer=void 0),this.activityListeners.forEach(function(e){var t=e.event,r=e.handler;document.removeEventListener(t,r)}),this.activityListeners=[]},e.prototype.getLastActivity=function(){return this.lastActivity},e.prototype.isActive=function(){return this.isRunning},e.prototype.forceRefreshCheck=function(){return n(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return this.isRunning?[4,this.checkAndRefreshSession()]:(i.warn("forceRefreshCheck called while not running"),[2,!1]);case 1:return e.sent(),[2,this.isRunning]}})})},e}();t.default=a},7424(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionStorage=void 0;var n=(0,r(9764).createLogger)("SessionStorage"),o="lnc-session:",i=function(e){if(!e||"object"!=typeof e)return!1;var t=e;return"string"==typeof t.keyB64&&"string"==typeof t.ivB64},a=function(){function e(e){this._cache=void 0,this._namespace=e}return e.prototype.save=function(e){if("undefined"!=typeof sessionStorage)try{var t="".concat(o).concat(this._namespace);sessionStorage.setItem(t,JSON.stringify(e)),this._cache=e,n.info("Session saved to sessionStorage",{namespace:this._namespace,sessionId:e.sessionId,createdAt:e.createdAt,expiresAt:e.expiresAt,refreshCount:e.refreshCount})}catch(e){throw n.error("Failed to save session data",{namespace:this._namespace,error:e}),e}},e.prototype.load=function(){var e;if("undefined"!=typeof sessionStorage){if(void 0!==this._cache)return null!==(e=this._cache)&&void 0!==e?e:void 0;try{var t="".concat(o).concat(this._namespace),r=sessionStorage.getItem(t);if(!r)return void(this._cache=null);var a=JSON.parse(r);if(!a||"object"!=typeof a||!(c=a)||"string"!=typeof c.sessionId||"number"!=typeof c.createdAt||"number"!=typeof c.expiresAt||"number"!=typeof c.refreshCount||"string"!=typeof c.encryptedCredentials||"string"!=typeof c.credentialsIV||!Number.isFinite(c.createdAt)||!Number.isFinite(c.expiresAt)||c.createdAt<=0||c.expiresAt<=0||c.createdAt>c.expiresAt||!Number.isInteger(c.refreshCount)||c.refreshCount<0||0===c.sessionId.length||!i(c.device)||!i(c.origin))return n.error("Invalid session data",{namespace:this._namespace}),sessionStorage.removeItem(t),void(this._cache=null);var s=a;return this._cache=s,n.info("Session loaded from sessionStorage",{namespace:this._namespace,sessionId:s.sessionId,createdAt:s.createdAt,expiresAt:s.expiresAt,refreshCount:s.refreshCount}),s}catch(e){n.error("Failed to load session data",{namespace:this._namespace,error:e});try{t="".concat(o).concat(this._namespace),sessionStorage.removeItem(t)}catch(e){n.warn("Cleanup failed during error recovery",{namespace:this._namespace,cleanupError:e})}return void(this._cache=null)}var c}},e.prototype.clear=function(){if("undefined"!=typeof sessionStorage)try{var e="".concat(o).concat(this._namespace);sessionStorage.removeItem(e),this._cache=null}catch(e){n.error("Failed to clear session data",{namespace:this._namespace,error:e})}},e.prototype.hasData=function(){return"undefined"!=typeof sessionStorage&&(void 0===this._cache&&this.load(),null!=this._cache)},e}();t.SessionStorage=a},3666(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationCoordinator=void 0;var i=(0,r(9764).createLogger)("AuthenticationCoordinator"),a=["localKey","remoteKey","pairingPhrase","serverHost"],s=function(){function e(e,t,r){this.strategyManager=e,this.credentialCache=t,this.sessionCoordinator=r,this.sessionRestored=!1,this.initializeCachePromise=this.initializeCache()}return Object.defineProperty(e.prototype,"isUnlocked",{get:function(){return!!this.activeStrategy&&this.activeStrategy.isUnlocked},enumerable:!1,configurable:!0}),e.prototype.getActiveStrategy=function(){return this.activeStrategy},e.prototype.clearSession=function(){this.credentialCache.clear(),this.sessionCoordinator.clearSession(),this.sessionRestored=!1,this.activeStrategy=void 0,i.info("Cleared session state")},e.prototype.unlock=function(e){return n(this,void 0,void 0,function(){var t,r;return o(this,function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),[4,this.waitForSessionRestoration()];case 1:return n.sent(),"session"===e.method&&this.sessionRestored?[2,!0]:(t=this.strategyManager.getStrategy(e.method))?[4,t.unlock(e)]:(i.error("Authentication method '".concat(e.method,"' not supported")),[2,!1]);case 2:return n.sent()?(this.activeStrategy=t,[4,this.loadCredentialsFromStrategy(t)]):(i.error("Failed to unlock with ".concat(e.method)),[2,!1]);case 3:return n.sent(),[2,!0];case 4:return r=n.sent(),i.error("Unlock failed:",r),this.credentialCache.clear(),this.activeStrategy=void 0,[2,!1];case 5:return[2]}})})},e.prototype.getAuthenticationInfo=function(){return n(this,void 0,void 0,function(){var e,t,r,n,i,a,s,c;return o(this,function(o){switch(o.label){case 0:return[4,this.waitForSessionRestoration()];case 1:return o.sent(),e=this.strategyManager.hasAnyCredentials,t=this.sessionCoordinator.hasActiveSession,[4,this.sessionCoordinator.getTimeRemaining()];case 2:return r=o.sent(),n=this.strategyManager.getStrategy("passkey"),i=!!n&&n.isSupported,a=i&&!0===(null===(s=null==n?void 0:n.hasStoredAuthData)||void 0===s?void 0:s.call(n)),[2,{isUnlocked:this.isUnlocked,hasStoredCredentials:e,hasActiveSession:t,sessionTimeRemaining:r,supportsPasskeys:i,hasPasskey:a,preferredUnlockMethod:this.strategyManager.preferredMethod,passkeyCredentialId:a?null===(c=null==n?void 0:n.getCredentialId)||void 0===c?void 0:c.call(n):void 0}]}})})},e.prototype.tryAutoRestore=function(){return n(this,void 0,void 0,function(){var e,t,r;return o(this,function(n){switch(n.label){case 0:if(!this.sessionCoordinator.isSessionAvailable||this.sessionRestored)return[2,!1];if(!(e=this.strategyManager.getStrategy("session")))return[2,!1];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.sessionCoordinator.tryAutoRestore()];case 2:return(t=n.sent())?(this.credentialCache.hydrateFromSession(t),this.sessionRestored=!0,this.activeStrategy=e,[2,!0]):[2,!1];case 3:return r=n.sent(),i.error("Auto-restore failed:",r),[3,4];case 4:return[2,!1]}})})},e.prototype.createSessionAfterConnection=function(){return n(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return this.sessionCoordinator.isSessionAvailable?[4,this.sessionCoordinator.createSession({localKey:this.getCachedCredential("localKey"),remoteKey:this.getCachedCredential("remoteKey"),pairingPhrase:this.getCachedCredential("pairingPhrase"),serverHost:this.getCachedCredential("serverHost")})]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},e.prototype.getCachedCredential=function(e){return this.credentialCache.get(e)||""},e.prototype.initializeCache=function(){return n(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,this.tryAutoRestore()];case 1:return e.sent(),this.sessionRestored||!this.activeStrategy?[3,3]:[4,this.loadCredentialsFromStrategy(this.activeStrategy)];case 2:e.sent(),e.label=3;case 3:return[2]}})})},e.prototype.waitForSessionRestoration=function(){return n(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return!this.sessionCoordinator.isSessionAvailable||this.sessionRestored?[2]:this.initializeCachePromise?[4,this.initializeCachePromise]:[3,2];case 1:return e.sent(),[3,4];case 2:return[4,this.tryAutoRestore()];case 3:e.sent(),e.label=4;case 4:return[2]}})})},e.prototype.persistCachedCredentials=function(e){return n(this,void 0,void 0,function(){var t,r,n,s,c,u;return o(this,function(o){switch(o.label){case 0:if(this.activeStrategy=e,"session"===e.method)return[2];t=[],r=0,n=a,o.label=1;case 1:if(!(r<n.length))return[3,6];if(s=n[r],!(c=this.credentialCache.get(s)))return[3,5];o.label=2;case 2:return o.trys.push([2,4,,5]),[4,e.setCredential(s,c)];case 3:return o.sent(),[3,5];case 4:return u=o.sent(),i.error("Failed to persist ".concat(s,":"),u),t.push(s),[3,5];case 5:return r++,[3,1];case 6:if(t.length>0)throw new Error("Failed to persist credentials: ".concat(t.join(", ")));return[2]}})})},e.prototype.loadCredentialsFromStrategy=function(e){return n(this,void 0,void 0,function(){var t,r,n,s,c,u;return o(this,function(o){switch(o.label){case 0:t=[],r=0,n=a,o.label=1;case 1:if(!(r<n.length))return[3,6];s=n[r],o.label=2;case 2:return o.trys.push([2,4,,5]),[4,e.getCredential(s)];case 3:return(c=o.sent())&&this.credentialCache.set(s,c),[3,5];case 4:return u=o.sent(),i.error("Failed to load credential ".concat(s,":"),u),t.push(s),[3,5];case 5:return r++,[3,1];case 6:if(t.length>0)throw new Error("Failed to load credentials: ".concat(t.join(", ")));return[2]}})})},e}();t.AuthenticationCoordinator=s},6041(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CredentialCache=void 0;var n=(0,r(9764).createLogger)("CredentialCache"),o=function(){function e(){this.cache=new Map}return Object.defineProperty(e.prototype,"size",{get:function(){return this.cache.size},enumerable:!1,configurable:!0}),e.prototype.get=function(e){return this.cache.get(e)},e.prototype.set=function(e,t){this.cache.set(e,t)},e.prototype.has=function(e){return this.cache.has(e)},e.prototype.hasAny=function(){return this.cache.size>0},e.prototype.clear=function(){this.cache.clear(),n.info("Cache cleared")},e.prototype.getAll=function(){return new Map(this.cache)},e.prototype.hydrate=function(e){for(var t=0,r=Object.entries(e);t<r.length;t++){var o=r[t],i=o[0],a=o[1];this.cache.set(i,a)}n.info("Hydrated with credentials:",{keys:Object.keys(e)})},e.prototype.hydrateFromSession=function(e){this.cache.set("localKey",e.localKey),this.cache.set("remoteKey",e.remoteKey),this.cache.set("pairingPhrase",e.pairingPhrase),this.cache.set("serverHost",e.serverHost),n.info("Hydrated from session:",{hasLocalKey:!!e.localKey,hasRemoteKey:!!e.remoteKey,hasPairingPhrase:!!e.pairingPhrase,serverHost:e.serverHost})},e.prototype.keys=function(){return Array.from(this.cache.keys())},e.prototype.values=function(){return Array.from(this.cache.values())},e.prototype.entries=function(){return Array.from(this.cache.entries())},e.prototype.snapshot=function(){return Object.fromEntries(this.cache.entries())},e}();t.CredentialCache=o},9389(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.PasskeyStrategy=void 0;var i=r(6315),a=r(4279),s=(0,r(9764).createLogger)("PasskeyStrategy"),c=function(){function e(e,t){this.method="passkey";var r=new i.PasskeyEncryptionService(e,t);this.repository=new a.PasskeyCredentialRepository(e,r)}return Object.defineProperty(e.prototype,"isSupported",{get:function(){return"undefined"!=typeof window&&!(!window.PublicKeyCredential||!window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnlocked",{get:function(){return this.repository.isUnlocked},enumerable:!1,configurable:!0}),e.prototype.unlock=function(e){return n(this,void 0,void 0,function(){var t;return o(this,function(r){switch(r.label){case 0:if("passkey"!==e.method)return[2,!1];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.repository.unlock(e)];case 2:return r.sent(),[2,!0];case 3:return t=r.sent(),s.error("Unlock failed:",t),[2,!1];case 4:return[2]}})})},Object.defineProperty(e.prototype,"hasAnyCredentials",{get:function(){return this.repository.hasAnyCredentials},enumerable:!1,configurable:!0}),e.prototype.hasStoredAuthData=function(){return this.repository.hasStoredAuthData},e.prototype.getCredentialId=function(){return this.repository.storedCredentialId},e.prototype.getCredential=function(e){return n(this,void 0,void 0,function(){var t;return o(this,function(r){switch(r.label){case 0:if(!this.isUnlocked)return s.warn("Cannot get credential - not unlocked"),[2,void 0];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.repository.getCredential(e)];case 2:return[2,r.sent()];case 3:return t=r.sent(),s.error("Failed to get credential ".concat(e,":"),t),[2,void 0];case 4:return[2]}})})},e.prototype.setCredential=function(e,t){return n(this,void 0,void 0,function(){var r;return o(this,function(n){switch(n.label){case 0:if(!this.isUnlocked)return s.warn("Cannot set credential - not unlocked"),[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.repository.setCredential(e,t)];case 2:return n.sent(),[3,4];case 3:throw r=n.sent(),s.error("Failed to set credential ".concat(e,":"),r),r;case 4:return[2]}})})},e.prototype.clear=function(){this.repository.clear()},e}();t.PasskeyStrategy=c},8562(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.PasswordStrategy=void 0;var i=r(6200),a=r(2672),s=(0,r(9764).createLogger)("PasswordStrategy"),c=function(){function e(e){this.method="password";var t=new i.PasswordEncryptionService;this.repository=new a.PasswordCredentialRepository(e,t)}return Object.defineProperty(e.prototype,"isSupported",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnlocked",{get:function(){return this.repository.isUnlocked},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasAnyCredentials",{get:function(){return this.repository.hasAnyCredentials},enumerable:!1,configurable:!0}),e.prototype.unlock=function(e){return n(this,void 0,void 0,function(){var t;return o(this,function(r){switch(r.label){case 0:if("password"!==e.method)return[2,!1];if(!e.password)return s.error("Password required for unlock"),[2,!1];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.repository.unlock(e)];case 2:return r.sent(),[2,!0];case 3:return t=r.sent(),s.error("Unlock failed:",t),[2,!1];case 4:return[2]}})})},e.prototype.getCredential=function(e){return n(this,void 0,void 0,function(){var t;return o(this,function(r){switch(r.label){case 0:if(!this.isUnlocked)return s.warn("Cannot get credential - not unlocked"),[2,void 0];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.repository.getCredential(e)];case 2:return[2,r.sent()];case 3:return t=r.sent(),s.error("Failed to get credential ".concat(e,":"),t),[2,void 0];case 4:return[2]}})})},e.prototype.setCredential=function(e,t){return n(this,void 0,void 0,function(){var r;return o(this,function(n){switch(n.label){case 0:if(!this.isUnlocked)return s.warn("Cannot set credential - not unlocked"),[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.repository.setCredential(e,t)];case 2:return n.sent(),[3,4];case 3:throw r=n.sent(),s.error("Failed to set credential ".concat(e,":"),r),r;case 4:return[2]}})})},e.prototype.clear=function(){this.repository.clear()},e}();t.PasswordStrategy=c},9792(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SessionCoordinator=void 0;var a=i(r(5673)),s=(0,r(9764).createLogger)("SessionCoordinator"),c=function(){function e(e){e&&(this.sessionManager=e,this.refreshManager=new a.default(e))}return Object.defineProperty(e.prototype,"hasActiveSession",{get:function(){return!!this.sessionManager&&this.sessionManager.hasActiveSession},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSessionAvailable",{get:function(){return!!this.sessionManager},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sessionExpiry",{get:function(){if(this.sessionManager){var e=this.sessionManager.sessionTimeRemaining;return e>0?new Date(Date.now()+e):void 0}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAutoRefreshActive",{get:function(){var e,t;return null!==(t=null===(e=this.refreshManager)||void 0===e?void 0:e.isActive())&&void 0!==t&&t},enumerable:!1,configurable:!0}),e.prototype.getSessionManager=function(){return this.sessionManager},e.prototype.clearSession=function(){this.sessionManager&&(this.stopRefreshManager(),this.sessionManager.clearSession(),s.info("Session cleared"))},e.prototype.canAutoRestore=function(){return n(this,void 0,void 0,function(){return o(this,function(e){return this.sessionManager&&this.sessionManager.canAutoRestore?[2,this.sessionManager.hasValidSession()]:[2,!1]})})},e.prototype.tryAutoRestore=function(){return n(this,void 0,void 0,function(){var e,t;return o(this,function(r){switch(r.label){case 0:if(!this.sessionManager)return[2,void 0];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.sessionManager.restoreSession()];case 2:return(e=r.sent())&&this.startRefreshManager(),[2,e];case 3:return t=r.sent(),s.error("Session auto-restoration error:",t),[2,void 0];case 4:return[2]}})})},e.prototype.createSession=function(e){return n(this,void 0,void 0,function(){var t;return o(this,function(r){switch(r.label){case 0:if(!this.sessionManager)return s.warn("No session manager available - skipping session creation"),[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.sessionManager.createSession(e)];case 2:return r.sent(),this.startRefreshManager(),[3,4];case 3:throw t=r.sent(),s.error("Failed to create session:",t),t;case 4:return[2]}})})},e.prototype.refreshSession=function(){return n(this,void 0,void 0,function(){return o(this,function(e){return this.sessionManager?[2,this.sessionManager.refreshSession()]:[2,!1]})})},e.prototype.getTimeRemaining=function(){return n(this,void 0,void 0,function(){return o(this,function(e){return this.sessionManager?[2,this.sessionManager.sessionTimeRemaining]:[2,0]})})},e.prototype.startRefreshManager=function(){var e;(null===(e=this.sessionManager)||void 0===e?void 0:e.config.enableActivityRefresh)&&this.refreshManager&&!this.refreshManager.isActive()&&(this.refreshManager.start(),s.info("Automatic session refresh started"))},e.prototype.stopRefreshManager=function(){this.refreshManager&&this.refreshManager.isActive()&&(this.refreshManager.stop(),s.info("Automatic session refresh stopped"))},e}();t.SessionCoordinator=c},3581(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.SessionStrategy=void 0;var i=(0,r(9764).createLogger)("SessionStrategy"),a=function(){function e(e){this.sessionManager=e,this.method="session"}return Object.defineProperty(e.prototype,"isSupported",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnlocked",{get:function(){return this.sessionManager.hasActiveSession},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasAnyCredentials",{get:function(){return this.sessionManager.hasActiveSession},enumerable:!1,configurable:!0}),e.prototype.clear=function(){this.sessionManager.clearSession()},e.prototype.unlock=function(e){return n(this,void 0,void 0,function(){var t;return o(this,function(r){switch(r.label){case 0:if("session"!==e.method)return[2,!1];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.sessionManager.restoreSession()];case 2:return[2,!!r.sent()];case 3:return t=r.sent(),i.error("Session restore failed:",t),[2,!1];case 4:return[2]}})})},e.prototype.canAutoRestore=function(){return n(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return this.sessionManager.canAutoRestore?[4,this.sessionManager.hasValidSession()]:[2,!1];case 1:return[2,e.sent()]}})})},e.prototype.getCredential=function(e){return n(this,void 0,void 0,function(){var t,r;return o(this,function(n){switch(n.label){case 0:if(!this.isUnlocked)return i.warn("Cannot get credential - no active session"),[2,void 0];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.sessionManager.restoreSession()];case 2:return(t=n.sent())&&e in t?[2,t[e].toString()]:[2,void 0];case 3:return r=n.sent(),i.error("Failed to get credential ".concat(e,":"),r),[2,void 0];case 4:return[2]}})})},e.prototype.setCredential=function(e,t){return n(this,void 0,void 0,function(){return o(this,function(t){throw i.warn("setCredential(".concat(e,") not supported - use createSession() instead")),new Error("SessionStrategy does not support direct credential storage")})})},e}();t.SessionStrategy=a},8348(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StrategyManager=void 0;var n=r(9764),o=r(9389),i=r(8562),a=r(3581),s=(0,n.createLogger)("StrategyManager"),c=function(){function e(e,t){this.strategies=new Map,this.registerStrategies(e,t)}return Object.defineProperty(e.prototype,"hasAnyCredentials",{get:function(){return Array.from(this.strategies.entries()).some(function(e){var t=e[0],r=e[1];return"session"!==t&&r.hasAnyCredentials})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"preferredMethod",{get:function(){var e,t=this.strategies.get("session");if((null==t?void 0:t.hasAnyCredentials)||(null==t?void 0:t.isUnlocked))return"session";var r=this.strategies.get("passkey");if((null==r?void 0:r.isSupported)&&(null===(e=r.hasStoredAuthData)||void 0===e?void 0:e.call(r)))return"passkey";var n=this.strategies.get("password");return null==n||n.hasAnyCredentials,"password"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"supportedMethods",{get:function(){var e=[];return Array.from(this.strategies.entries()).forEach(function(t){var r=t[0];t[1].isSupported&&e.push(r)}),e},enumerable:!1,configurable:!0}),e.prototype.getStrategy=function(e){return this.strategies.get(e)},e.prototype.clearAll=function(){this.strategies.forEach(function(e){return e.clear()}),s.info("Cleared all strategies")},e.prototype.registerStrategies=function(e,t){var r=e.namespace||"default";if(this.strategies.set("password",new i.PasswordStrategy(r)),e.allowPasskeys){var n=e.passkeyDisplayName||"LNC User (".concat(r,")");this.strategies.set("passkey",new o.PasskeyStrategy(r,n))}t&&this.strategies.set("session",new a.SessionStrategy(t)),s.info("Registered strategies: ".concat(Array.from(this.strategies.keys()).join(", ")))},e}();t.StrategyManager=c},6482(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},n=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.waitFor=function(e,t){return r(this,void 0,void 0,function(){return n(this,function(r){return[2,new Promise(function(r,n){var o=0,i=setInterval(function(){o++,e()?(clearInterval(i),r()):o>20&&(clearInterval(i),n(new Error(t)))},500)})]})})}},5820(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5105),o="lnc-web",i=function(){function e(e,t){this.persisted={salt:"",cipher:"",serverHost:"",localKey:"",remoteKey:"",pairingPhrase:""},this._localKey="",this._remoteKey="",this._pairingPhrase="",this.namespace="default",e&&(this.namespace=e),this._load(),t&&(this.password=t)}return Object.defineProperty(e.prototype,"password",{get:function(){return this._password||""},set:function(e){if(this.persisted.cipher){var t=this.persisted,r=t.cipher,o=t.salt;if(!(0,n.verifyTestCipher)(r,e,o))throw new Error("The password provided is not valid");this._password=e,this._pairingPhrase=this._decrypt(this.persisted.pairingPhrase),this._localKey=this._decrypt(this.persisted.localKey),this._remoteKey=this._decrypt(this.persisted.remoteKey)}else this._password=e,this.persisted.salt=(0,n.generateSalt)(),this.persisted.cipher=(0,n.createTestCipher)(e,this.persisted.salt),this.pairingPhrase&&(this.persisted.pairingPhrase=this._encrypt(this.pairingPhrase)),this.localKey&&(this.persisted.localKey=this._encrypt(this.localKey)),this.remoteKey&&(this.persisted.remoteKey=this._encrypt(this.remoteKey)),this._save(),this.clear(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"serverHost",{get:function(){return this.persisted.serverHost},set:function(e){this.persisted.serverHost=e,this._save()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pairingPhrase",{get:function(){return this._pairingPhrase},set:function(e){this._pairingPhrase=e,this._password&&(this.persisted.pairingPhrase=this._encrypt(e),this._save())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localKey",{get:function(){return this._localKey},set:function(e){this._localKey=e,this._password&&(this.persisted.localKey=this._encrypt(e),this._save())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"remoteKey",{get:function(){return this._remoteKey},set:function(e){this._remoteKey=e,this._password&&(this.persisted.remoteKey=this._encrypt(e),this._save())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPaired",{get:function(){return!!this.persisted.remoteKey||!!this.persisted.pairingPhrase},enumerable:!1,configurable:!0}),e.prototype.clear=function(e){if(!e){var t="".concat(o,":").concat(this.namespace);localStorage.removeItem(t),this.persisted={salt:"",cipher:"",serverHost:this.persisted.serverHost,localKey:"",remoteKey:"",pairingPhrase:""}}this._localKey="",this._remoteKey="",this._pairingPhrase="",this._password=void 0},e.prototype._load=function(){if("undefined"!=typeof localStorage)try{var e="".concat(o,":").concat(this.namespace),t=localStorage.getItem(e);if(!t)return;this.persisted=JSON.parse(t)}catch(e){var r=e.message;throw new Error("Failed to load secure data: ".concat(r))}},e.prototype._save=function(){if("undefined"!=typeof localStorage){var e="".concat(o,":").concat(this.namespace);localStorage.setItem(e,JSON.stringify(this.persisted))}},e.prototype._encrypt=function(e){return e&&this._password?(0,n.encrypt)(e,this._password,this.persisted.salt):""},e.prototype._decrypt=function(e){return e&&this._password?(0,n.decrypt)(e,this._password,this.persisted.salt):""},e}();t.default=i},1389(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayBufferToBase64=function(e){for(var t=new Uint8Array(e),r="",n=0;n<t.byteLength;n++)r+=String.fromCharCode(t[n]);return btoa(r)},t.base64ToArrayBuffer=function(e){for(var t=e.replace(/-/g,"+").replace(/_/g,"/"),r=t.padEnd(t.length+(4-t.length%4)%4,"="),n=atob(r),o=new Uint8Array(n.length),i=0;i<n.length;i++)o[i]=n.charCodeAt(i);return o.buffer},t.arrayBufferToHex=function(e){return Array.from(new Uint8Array(e)).map(function(e){return e.toString(16).padStart(2,"0")}).join("")}},5105(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTestCipher=t.createTestCipher=t.decrypt=t.encrypt=t.generateSalt=void 0;var n=r(1396),o="Irrelevant data for password verification";t.generateSalt=function(){var e=new Uint8Array(32);globalThis.crypto.getRandomValues(e);var t=Array.from(e,function(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charCodeAt(e%62)});return String.fromCharCode.apply(String,t)},t.encrypt=function(e,t,r){return n.AES.encrypt(JSON.stringify(e),t+r).toString()},t.decrypt=function(e,t,r){var o=n.AES.decrypt(e,t+r);return JSON.parse(o.toString(n.enc.Utf8))},t.createTestCipher=function(e,r){return(0,t.encrypt)(o,e,r)},t.verifyTestCipher=function(e,r,n){try{return(0,t.decrypt)(e,r,n)===o}catch(e){return!1}}},9764(e,t,r){"use strict";var n=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.wasmLog=t.log=t.Logger=t.LogLevel=void 0,t.createLogger=function(e){return s.fromEnv(e)};var i,a=o(r(7833));!function(e){e[e.debug=1]="debug",e[e.info=2]="info",e[e.warn=3]="warn",e[e.error=4]="error",e[e.none=5]="none"}(i||(t.LogLevel=i={}));var s=function(){function e(e,t){var r=this;this.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return r._log(i.debug,e,t)},this.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return r._log(i.info,e,t)},this.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return r._log(i.warn,e,t)},this.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return r._log(i.error,e,t)},this._levelToOutput=e,this._logger=(0,a.default)(t)}return Object.defineProperty(e.prototype,"level",{get:function(){return this._levelToOutput},enumerable:!1,configurable:!0}),e.fromEnv=function(t){var r=i.none;if(globalThis.localStorage&&globalThis.localStorage.getItem("debug")){var n=globalThis.localStorage.getItem("debug-level")||"debug";r=i[n]}return new e(r,t)},e.prototype._log=function(e,t,r){if(!(this._levelToOutput>e)){var o=Object.keys(i).reduce(function(t,r){return e===i[r]?r:t},"??");this._logger.apply(this,n(["[".concat(o,"] ").concat(t)],r,!1))}},e}();t.Logger=s,t.log=s.fromEnv("main"),t.wasmLog=s.fromEnv("wasm")},254(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.WasmManager=t.lncGlobal=void 0;var a=r(3318),s=r(6482),c=r(9764);t.lncGlobal=globalThis;var u={wasmClientIsReady:function(){return!1},wasmClientIsConnected:function(){return!1},wasmClientConnectServer:function(){throw new Error("WASM client not initialized")},wasmClientDisconnect:function(){throw new Error("WASM client not initialized")},wasmClientInvokeRPC:function(){throw new Error("WASM client not initialized")},wasmClientHasPerms:function(){return!1},wasmClientIsReadOnly:function(){return!1},wasmClientStatus:function(){return"uninitialized"},wasmClientGetExpiry:function(){return 0}},l=function(){function e(e,r,n){this._namespace=e,this._wasmClientCode=r,this._callbacks=n,this.go=new t.lncGlobal.Go}return Object.defineProperty(e.prototype,"wasm",{get:function(){return t.lncGlobal[this._namespace]},set:function(e){t.lncGlobal[this._namespace]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReady",{get:function(){return this.wasm&&this.wasm.wasmClientIsReady&&this.wasm.wasmClientIsReady()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isConnected",{get:function(){return this.wasm&&this.wasm.wasmClientIsConnected&&this.wasm.wasmClientIsConnected()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.wasm&&this.wasm.wasmClientStatus&&this.wasm.wasmClientStatus()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expiry",{get:function(){return this.wasm&&this.wasm.wasmClientGetExpiry&&new Date(1e3*this.wasm.wasmClientGetExpiry())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReadOnly",{get:function(){return this.wasm&&this.wasm.wasmClientIsReadOnly&&this.wasm.wasmClientIsReadOnly()},enumerable:!1,configurable:!0}),e.prototype.hasPerms=function(e){return this.wasm&&this.wasm.wasmClientHasPerms&&this.wasm.wasmClientHasPerms(e)},e.prototype.preload=function(){return o(this,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return this._preloadPromise?[4,this._preloadPromise]:[3,2];case 1:return t.sent(),[2];case 2:return this._preloadPromise=WebAssembly.instantiateStreaming(fetch(this._wasmClientCode),this.go.importObject),e=this,[4,this._preloadPromise];case 3:return e.result=t.sent(),c.wasmLog.info("downloaded WASM file"),[2]}})})},e.prototype.run=function(){return o(this,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return this.isReady?[3,2]:[4,this.preload()];case 1:e.sent(),e.label=2;case 2:return"object"!=typeof this.wasm&&(this.wasm=n({},u)),this.setupWasmCallbacks(),this.go.argv=["wasm-client","--debuglevel=debug,GOBN=info,GRPC=info","--namespace="+this._namespace,"--onlocalprivcreate=".concat(this._namespace,".onLocalPrivCreate"),"--onremotekeyreceive=".concat(this._namespace,".onRemoteKeyReceive"),"--onauthdata=".concat(this._namespace,".onAuthData")],this.result?(this.go.run(this.result.instance),[4,WebAssembly.instantiate(this.result.module,this.go.importObject)]):[3,4];case 3:return e.sent(),[3,5];case 4:throw new Error("Can't find WASM instance.");case 5:return[2]}})})},e.prototype.waitTilReady=function(){return o(this,void 0,void 0,function(){var e=this;return i(this,function(t){switch(t.label){case 0:return[4,(0,s.waitFor)(function(){return e.isReady},"Failed to load the WASM client")];case 1:return t.sent(),c.wasmLog.info("The WASM client is ready"),[2]}})})},e.prototype.connect=function(e){return o(this,void 0,void 0,function(){var t,r,n,o;return i(this,function(i){switch(i.label){case 0:return this.isConnected?[2]:this.isReady?[3,3]:[4,this.run()];case 1:return i.sent(),[4,this.waitTilReady()];case 2:i.sent(),i.label=3;case 3:return t=e.pairingPhrase,r=e.localKey,n=e.remoteKey,o=e.serverHost,this.wasm.wasmClientConnectServer(o,!1,t,null!=r?r:"",null!=n?n:""),"undefined"!=typeof window?window.addEventListener("unload",this.wasm.wasmClientDisconnect):c.wasmLog.info("No unload event listener added. window is not available"),[4,this.waitForConnection()];case 4:return i.sent(),[2]}})})},e.prototype.disconnect=function(){"undefined"!=typeof window&&window.removeEventListener("unload",this.wasm.wasmClientDisconnect),this.wasm.wasmClientDisconnect()},e.prototype.request=function(e,t){var r=this;return new Promise(function(n,o){c.wasmLog.debug("".concat(e," request"),t);var i=JSON.stringify(t||{});r.wasm.wasmClientInvokeRPC(e,i,function(t){try{var r=JSON.parse(t),i=(0,a.snakeKeysToCamel)(r);c.wasmLog.debug("".concat(e," response"),i),n(i)}catch(r){c.wasmLog.debug("".concat(e," parser error"),{response:t,error:r}),o(new Error(t))}})})},e.prototype.subscribe=function(e,t,r,n){c.wasmLog.debug("".concat(e," request"),t);var o=JSON.stringify(t||{});this.wasm.wasmClientInvokeRPC(e,o,function(t){try{var o=JSON.parse(t),i=(0,a.snakeKeysToCamel)(o);c.wasmLog.debug("".concat(e," response"),i),r&&r(i)}catch(r){c.wasmLog.debug("".concat(e," error"),r);var s=new Error(t);n&&n(s)}})},e.prototype.setupWasmCallbacks=function(){var e=this;this.wasm.onLocalPrivCreate||(this.wasm.onLocalPrivCreate=function(t){e._callbacks.onLocalKeyCreated(t)}),this.wasm.onRemoteKeyReceive||(this.wasm.onRemoteKeyReceive=function(t){e._callbacks.onRemoteKeyReceived(t)}),this.wasm.onAuthData||(this.wasm.onAuthData=function(e){c.wasmLog.debug("auth data received: "+e)})},e.prototype.waitForConnection=function(){return o(this,void 0,void 0,function(){var e=this;return i(this,function(t){switch(t.label){case 0:return[4,(0,s.waitFor)(function(){return e.isConnected},"Failed to connect the WASM client to the proxy server")];case 1:return t.sent(),c.wasmLog.info("The WASM client is connected to the server"),[2]}})})},e}();t.WasmManager=l},1135(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},9032(e,t,r){"use strict";var n=r(7244),o=r(8184),i=r(5767),a=r(5680);function s(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=s(Object.prototype.toString),p=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(c)var E=s(BigInt.prototype.valueOf);if(u)var y=s(Symbol.prototype.valueOf);function d(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function _(e){return"[object Map]"===l(e)}function O(e){return"[object Set]"===l(e)}function v(e){return"[object WeakMap]"===l(e)}function T(e){return"[object WeakSet]"===l(e)}function g(e){return"[object ArrayBuffer]"===l(e)}function N(e){return"undefined"!=typeof ArrayBuffer&&(g.working?g(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===l(e)}function A(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||A(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},_.working="undefined"!=typeof Map&&_(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(_.working?_(e):e instanceof Map)},O.working="undefined"!=typeof Set&&O(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(O.working?O(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},T.working="undefined"!=typeof WeakSet&&T(new WeakSet),t.isWeakSet=function(e){return T(e)},g.working="undefined"!=typeof ArrayBuffer&&g(new ArrayBuffer),t.isArrayBuffer=N,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=A;var b="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function C(e){return"[object SharedArrayBuffer]"===l(e)}function R(e){return void 0!==b&&(void 0===C.working&&(C.working=C(new b)),C.working?C(e):e instanceof b)}function I(e){return d(e,p)}function m(e){return d(e,f)}function w(e){return d(e,h)}function P(e){return c&&d(e,E)}function D(e){return u&&d(e,y)}t.isSharedArrayBuffer=R,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=I,t.isStringObject=m,t.isBooleanObject=w,t.isBigIntObject=P,t.isSymbolObject=D,t.isBoxedPrimitive=function(e){return I(e)||m(e)||w(e)||P(e)||D(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(N(e)||R(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},537(e,t,r){var n=r(5606),o=r(6763),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},a=/%[sdj%]/g;t.format=function(e){if(!T(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(l(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,i=String(e).replace(a,function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<o;s=n[++r])O(s)||!S(s)?i+=" "+s:i+=" "+l(s);return i},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?o.trace(r):o.error(r),i=!0}return e.apply(this,arguments)}};var s={},c=/^$/;if(n.env.NODE_DEBUG){var u=n.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),c=new RegExp("^"+u+"$","i")}function l(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),_(r)?n.showHidden=r:r&&t._extend(n,r),g(n.showHidden)&&(n.showHidden=!1),g(n.depth)&&(n.depth=2),g(n.colors)&&(n.colors=!1),g(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=p),h(n,e,n.depth)}function p(e,t){var r=l.styles[t];return r?"["+l.colors[r][0]+"m"+e+"["+l.colors[r][1]+"m":e}function f(e,t){return e}function h(e,r,n){if(e.customInspect&&r&&C(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return T(o)||(o=h(e,o,n)),o}var i=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(T(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return v(t)?e.stylize(""+t,"number"):_(t)?e.stylize(""+t,"boolean"):O(t)?e.stylize("null","null"):void 0}(e,r);if(i)return i;var a=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),b(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return E(r);if(0===a.length){if(C(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(N(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(A(r))return e.stylize(Date.prototype.toString.call(r),"date");if(b(r))return E(r)}var u,l="",p=!1,f=["{","}"];return d(r)&&(p=!0,f=["[","]"]),C(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),N(r)&&(l=" "+RegExp.prototype.toString.call(r)),A(r)&&(l=" "+Date.prototype.toUTCString.call(r)),b(r)&&(l=" "+E(r)),0!==a.length||p&&0!=r.length?n<0?N(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=p?function(e,t,r,n,o){for(var i=[],a=0,s=t.length;a<s;++a)w(t,String(a))?i.push(y(e,t,r,n,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(y(e,t,r,n,o,!0))}),i}(e,r,n,s,a):a.map(function(t){return y(e,r,n,s,t,p)}),e.seen.pop(),function(e,t,r){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(u,l,f)):f[0]+l+f[1]}function E(e){return"["+Error.prototype.toString.call(e)+"]"}function y(e,t,r,n,o,i){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),w(n,o)||(a="["+o+"]"),s||(e.seen.indexOf(c.value)<0?(s=O(r)?h(e,c.value,null):h(e,c.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return"  "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n")):s=e.stylize("[Circular]","special")),g(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e){return Array.isArray(e)}function _(e){return"boolean"==typeof e}function O(e){return null===e}function v(e){return"number"==typeof e}function T(e){return"string"==typeof e}function g(e){return void 0===e}function N(e){return S(e)&&"[object RegExp]"===R(e)}function S(e){return"object"==typeof e&&null!==e}function A(e){return S(e)&&"[object Date]"===R(e)}function b(e){return S(e)&&("[object Error]"===R(e)||e instanceof Error)}function C(e){return"function"==typeof e}function R(e){return Object.prototype.toString.call(e)}function I(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(c.test(e)){var r=n.pid;s[e]=function(){var n=t.format.apply(t,arguments);o.error("%s %d: %s",e,r,n)}}else s[e]=function(){};return s[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(9032),t.isArray=d,t.isBoolean=_,t.isNull=O,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=T,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=g,t.isRegExp=N,t.types.isRegExp=N,t.isObject=S,t.isDate=A,t.types.isDate=A,t.isError=b,t.types.isNativeError=b,t.isFunction=C,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(1135);var m=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;o.log("%s - %s",(r=[I((e=new Date).getHours()),I(e.getMinutes()),I(e.getSeconds())].join(":"),[e.getDate(),m[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(6698),t._extend=function(e,t){if(!t||!S(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function D(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(P&&e[P]){var t;if("function"!=typeof(t=e[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push(function(e,n){e?r(e):t(n)});try{e.apply(this,o)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),P&&Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=P,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var o=t.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};e.apply(this,t).then(function(e){n.nextTick(a.bind(null,null,e))},function(e){n.nextTick(D.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},5767(e,t,r){"use strict";var n=r(2682),o=r(9209),i=r(487),a=r(6556),s=r(5795),c=r(3628),u=a("Object.prototype.toString"),l=r(9092)(),p="undefined"==typeof globalThis?r.g:globalThis,f=o(),h=a("String.prototype.slice"),E=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},y={__proto__:null};n(f,l&&s&&c?function(e){var t=new p[e];if(Symbol.toStringTag in t&&c){var r=c(t),n=s(r,Symbol.toStringTag);if(!n&&r){var o=c(r);n=s(o,Symbol.toStringTag)}y["$"+e]=i(n.get)}}:function(e){var t=new p[e],r=t.slice||t.set;r&&(y["$"+e]=i(r))}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!l){var t=h(u(e),8,-1);return E(f,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(y,function(r,n){if(!t)try{r(e),t=h(n,1)}catch(e){}}),t}(e)}return s?function(e){var t=!1;return n(y,function(r,n){if(!t)try{"$"+r(e)===n&&(t=h(n,1))}catch(e){}}),t}(e):null}},477(){},9209(e,t,r){"use strict";var n=r(6578),o="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof o[n[t]]&&(e[e.length]=n[t]);return e}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r(4245)})());