diff --git a/examples/desktop/electron/release/Casper 1.0.0.exe b/examples/desktop/electron/release/Casper 1.0.0.exe index c396ec048..4c40a348a 100644 Binary files a/examples/desktop/electron/release/Casper 1.0.0.exe and b/examples/desktop/electron/release/Casper 1.0.0.exe differ diff --git a/examples/desktop/electron/release/Casper-1.0.0.AppImage b/examples/desktop/electron/release/Casper-1.0.0.AppImage index 9ad30264a..dd79ee12a 100755 Binary files a/examples/desktop/electron/release/Casper-1.0.0.AppImage and b/examples/desktop/electron/release/Casper-1.0.0.AppImage differ diff --git a/examples/desktop/electron/release/builder-debug.yml b/examples/desktop/electron/release/builder-debug.yml index c2a3a4481..e6e1595d4 100644 --- a/examples/desktop/electron/release/builder-debug.yml +++ b/examples/desktop/electron/release/builder-debug.yml @@ -34,4 +34,4 @@ x64: - index.js - favicon.png nsis: - script: "!include \"/opt2/casper/rustSDK/examples/desktop/electron/node_modules/app-builder-lib/templates/nsis/include/StdUtils.nsh\"\n!addincludedir \"/opt2/casper/rustSDK/examples/desktop/electron/node_modules/app-builder-lib/templates/nsis/include\"\n!macro _isUpdated _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"updated\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isUpdated `\"\" isUpdated \"\"`\n\n!macro _isForceRun _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"force-run\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isForceRun `\"\" isForceRun \"\"`\n\n!macro _isKeepShortcuts _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"keep-shortcuts\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isKeepShortcuts `\"\" isKeepShortcuts \"\"`\n\n!macro _isNoDesktopShortcut _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"no-desktop-shortcut\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isNoDesktopShortcut `\"\" isNoDesktopShortcut \"\"`\n\n!macro _isDeleteAppData _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"delete-app-data\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isDeleteAppData `\"\" isDeleteAppData \"\"`\n\n!macro _isForAllUsers _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"allusers\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isForAllUsers `\"\" isForAllUsers \"\"`\n\n!macro _isForCurrentUser _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"currentuser\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isForCurrentUser `\"\" isForCurrentUser \"\"`\n\n!macro addLangs\n !insertmacro MUI_LANGUAGE \"English\"\n !insertmacro MUI_LANGUAGE \"German\"\n !insertmacro MUI_LANGUAGE \"French\"\n !insertmacro MUI_LANGUAGE \"SpanishInternational\"\n !insertmacro MUI_LANGUAGE \"SimpChinese\"\n !insertmacro MUI_LANGUAGE \"TradChinese\"\n !insertmacro MUI_LANGUAGE \"Japanese\"\n !insertmacro MUI_LANGUAGE \"Korean\"\n !insertmacro MUI_LANGUAGE \"Italian\"\n !insertmacro MUI_LANGUAGE \"Dutch\"\n !insertmacro MUI_LANGUAGE \"Danish\"\n !insertmacro MUI_LANGUAGE \"Swedish\"\n !insertmacro MUI_LANGUAGE \"Norwegian\"\n !insertmacro MUI_LANGUAGE \"Finnish\"\n !insertmacro MUI_LANGUAGE \"Russian\"\n !insertmacro MUI_LANGUAGE \"Portuguese\"\n !insertmacro MUI_LANGUAGE \"PortugueseBR\"\n !insertmacro MUI_LANGUAGE \"Polish\"\n !insertmacro MUI_LANGUAGE \"Ukrainian\"\n !insertmacro MUI_LANGUAGE \"Czech\"\n !insertmacro MUI_LANGUAGE \"Slovak\"\n !insertmacro MUI_LANGUAGE \"Hungarian\"\n !insertmacro MUI_LANGUAGE \"Arabic\"\n !insertmacro MUI_LANGUAGE \"Turkish\"\n !insertmacro MUI_LANGUAGE \"Thai\"\n !insertmacro MUI_LANGUAGE \"Vietnamese\"\n!macroend\n\n!addplugindir /x86-unicode \"/home/greg/.cache/electron-builder/nsis/nsis-resources-3.4.1/plugins/x86-unicode\"\n!include \"/tmp/t-iZpy35/0-messages.nsh\"\n\n!include \"common.nsh\"\n!include \"extractAppPackage.nsh\"\n\n# https://github.com/electron-userland/electron-builder/issues/3972#issuecomment-505171582\nCRCCheck off\nWindowIcon Off\nAutoCloseWindow True\nRequestExecutionLevel ${REQUEST_EXECUTION_LEVEL}\n\nFunction .onInit\n !ifndef SPLASH_IMAGE\n SetSilent silent\n !endif\n\n !insertmacro check64BitAndSetRegView\nFunctionEnd\n\nFunction .onGUIInit\n InitPluginsDir\n\n !ifdef SPLASH_IMAGE\n File /oname=$PLUGINSDIR\\splash.bmp \"${SPLASH_IMAGE}\"\n BgImage::SetBg $PLUGINSDIR\\splash.bmp\n BgImage::Redraw\n !endif\nFunctionEnd\n\nSection\n !ifdef SPLASH_IMAGE\n HideWindow\n !endif\n\n StrCpy $INSTDIR \"$PLUGINSDIR\\app\"\n !ifdef UNPACK_DIR_NAME\n StrCpy $INSTDIR \"$TEMP\\${UNPACK_DIR_NAME}\"\n !endif\n\n RMDir /r $INSTDIR\n SetOutPath $INSTDIR\n\n !ifdef APP_DIR_64\n !ifdef APP_DIR_ARM64\n !ifdef APP_DIR_32\n ${if} ${IsNativeARM64}\n File /r \"${APP_DIR_ARM64}\\*.*\"\n ${elseif} ${RunningX64}\n File /r \"${APP_DIR_64}\\*.*\"\n ${else}\n File /r \"${APP_DIR_32}\\*.*\"\n ${endIf}\n !else\n ${if} ${IsNativeARM64}\n File /r \"${APP_DIR_ARM64}\\*.*\"\n ${else}\n File /r \"${APP_DIR_64}\\*.*\"\n {endIf}\n !endif\n !else\n !ifdef APP_DIR_32\n ${if} ${RunningX64}\n File /r \"${APP_DIR_64}\\*.*\"\n ${else}\n File /r \"${APP_DIR_32}\\*.*\"\n ${endIf}\n !else\n File /r \"${APP_DIR_64}\\*.*\"\n !endif\n !endif\n !else\n !ifdef APP_DIR_32\n File /r \"${APP_DIR_32}\\*.*\"\n !else\n !insertmacro extractEmbeddedAppPackage\n !endif\n !endif\n\n System::Call 'Kernel32::SetEnvironmentVariable(t, t)i (\"PORTABLE_EXECUTABLE_DIR\", \"$EXEDIR\").r0'\n System::Call 'Kernel32::SetEnvironmentVariable(t, t)i (\"PORTABLE_EXECUTABLE_FILE\", \"$EXEPATH\").r0'\n System::Call 'Kernel32::SetEnvironmentVariable(t, t)i (\"PORTABLE_EXECUTABLE_APP_FILENAME\", \"${APP_FILENAME}\").r0'\n ${StdUtils.GetAllParameters} $R0 0\n\n !ifdef SPLASH_IMAGE\n BgImage::Destroy\n !endif\n\n\tExecWait \"$INSTDIR\\${APP_EXECUTABLE_FILENAME} $R0\" $0\n SetErrorLevel $0\n\n SetOutPath $EXEDIR\n\tRMDir /r $INSTDIR\nSectionEnd\n" + script: "!include \"/opt2/casper/rustSDK/examples/desktop/electron/node_modules/app-builder-lib/templates/nsis/include/StdUtils.nsh\"\n!addincludedir \"/opt2/casper/rustSDK/examples/desktop/electron/node_modules/app-builder-lib/templates/nsis/include\"\n!macro _isUpdated _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"updated\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isUpdated `\"\" isUpdated \"\"`\n\n!macro _isForceRun _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"force-run\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isForceRun `\"\" isForceRun \"\"`\n\n!macro _isKeepShortcuts _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"keep-shortcuts\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isKeepShortcuts `\"\" isKeepShortcuts \"\"`\n\n!macro _isNoDesktopShortcut _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"no-desktop-shortcut\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isNoDesktopShortcut `\"\" isNoDesktopShortcut \"\"`\n\n!macro _isDeleteAppData _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"delete-app-data\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isDeleteAppData `\"\" isDeleteAppData \"\"`\n\n!macro _isForAllUsers _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"allusers\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isForAllUsers `\"\" isForAllUsers \"\"`\n\n!macro _isForCurrentUser _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"currentuser\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isForCurrentUser `\"\" isForCurrentUser \"\"`\n\n!macro addLangs\n !insertmacro MUI_LANGUAGE \"English\"\n !insertmacro MUI_LANGUAGE \"German\"\n !insertmacro MUI_LANGUAGE \"French\"\n !insertmacro MUI_LANGUAGE \"SpanishInternational\"\n !insertmacro MUI_LANGUAGE \"SimpChinese\"\n !insertmacro MUI_LANGUAGE \"TradChinese\"\n !insertmacro MUI_LANGUAGE \"Japanese\"\n !insertmacro MUI_LANGUAGE \"Korean\"\n !insertmacro MUI_LANGUAGE \"Italian\"\n !insertmacro MUI_LANGUAGE \"Dutch\"\n !insertmacro MUI_LANGUAGE \"Danish\"\n !insertmacro MUI_LANGUAGE \"Swedish\"\n !insertmacro MUI_LANGUAGE \"Norwegian\"\n !insertmacro MUI_LANGUAGE \"Finnish\"\n !insertmacro MUI_LANGUAGE \"Russian\"\n !insertmacro MUI_LANGUAGE \"Portuguese\"\n !insertmacro MUI_LANGUAGE \"PortugueseBR\"\n !insertmacro MUI_LANGUAGE \"Polish\"\n !insertmacro MUI_LANGUAGE \"Ukrainian\"\n !insertmacro MUI_LANGUAGE \"Czech\"\n !insertmacro MUI_LANGUAGE \"Slovak\"\n !insertmacro MUI_LANGUAGE \"Hungarian\"\n !insertmacro MUI_LANGUAGE \"Arabic\"\n !insertmacro MUI_LANGUAGE \"Turkish\"\n !insertmacro MUI_LANGUAGE \"Thai\"\n !insertmacro MUI_LANGUAGE \"Vietnamese\"\n!macroend\n\n!addplugindir /x86-unicode \"/home/greg/.cache/electron-builder/nsis/nsis-resources-3.4.1/plugins/x86-unicode\"\n!include \"/tmp/t-GOKfcc/0-messages.nsh\"\n\n!include \"common.nsh\"\n!include \"extractAppPackage.nsh\"\n\n# https://github.com/electron-userland/electron-builder/issues/3972#issuecomment-505171582\nCRCCheck off\nWindowIcon Off\nAutoCloseWindow True\nRequestExecutionLevel ${REQUEST_EXECUTION_LEVEL}\n\nFunction .onInit\n !ifndef SPLASH_IMAGE\n SetSilent silent\n !endif\n\n !insertmacro check64BitAndSetRegView\nFunctionEnd\n\nFunction .onGUIInit\n InitPluginsDir\n\n !ifdef SPLASH_IMAGE\n File /oname=$PLUGINSDIR\\splash.bmp \"${SPLASH_IMAGE}\"\n BgImage::SetBg $PLUGINSDIR\\splash.bmp\n BgImage::Redraw\n !endif\nFunctionEnd\n\nSection\n !ifdef SPLASH_IMAGE\n HideWindow\n !endif\n\n StrCpy $INSTDIR \"$PLUGINSDIR\\app\"\n !ifdef UNPACK_DIR_NAME\n StrCpy $INSTDIR \"$TEMP\\${UNPACK_DIR_NAME}\"\n !endif\n\n RMDir /r $INSTDIR\n SetOutPath $INSTDIR\n\n !ifdef APP_DIR_64\n !ifdef APP_DIR_ARM64\n !ifdef APP_DIR_32\n ${if} ${IsNativeARM64}\n File /r \"${APP_DIR_ARM64}\\*.*\"\n ${elseif} ${RunningX64}\n File /r \"${APP_DIR_64}\\*.*\"\n ${else}\n File /r \"${APP_DIR_32}\\*.*\"\n ${endIf}\n !else\n ${if} ${IsNativeARM64}\n File /r \"${APP_DIR_ARM64}\\*.*\"\n ${else}\n File /r \"${APP_DIR_64}\\*.*\"\n {endIf}\n !endif\n !else\n !ifdef APP_DIR_32\n ${if} ${RunningX64}\n File /r \"${APP_DIR_64}\\*.*\"\n ${else}\n File /r \"${APP_DIR_32}\\*.*\"\n ${endIf}\n !else\n File /r \"${APP_DIR_64}\\*.*\"\n !endif\n !endif\n !else\n !ifdef APP_DIR_32\n File /r \"${APP_DIR_32}\\*.*\"\n !else\n !insertmacro extractEmbeddedAppPackage\n !endif\n !endif\n\n System::Call 'Kernel32::SetEnvironmentVariable(t, t)i (\"PORTABLE_EXECUTABLE_DIR\", \"$EXEDIR\").r0'\n System::Call 'Kernel32::SetEnvironmentVariable(t, t)i (\"PORTABLE_EXECUTABLE_FILE\", \"$EXEPATH\").r0'\n System::Call 'Kernel32::SetEnvironmentVariable(t, t)i (\"PORTABLE_EXECUTABLE_APP_FILENAME\", \"${APP_FILENAME}\").r0'\n ${StdUtils.GetAllParameters} $R0 0\n\n !ifdef SPLASH_IMAGE\n BgImage::Destroy\n !endif\n\n\tExecWait \"$INSTDIR\\${APP_EXECUTABLE_FILENAME} $R0\" $0\n SetErrorLevel $0\n\n SetOutPath $EXEDIR\n\tRMDir /r $INSTDIR\nSectionEnd\n" diff --git a/examples/desktop/electron/release/casper-webclient_1.0.0_amd64.snap b/examples/desktop/electron/release/casper-webclient_1.0.0_amd64.snap index 3d6615b5b..f84fb7373 100644 Binary files a/examples/desktop/electron/release/casper-webclient_1.0.0_amd64.snap and b/examples/desktop/electron/release/casper-webclient_1.0.0_amd64.snap differ diff --git a/examples/frontend/angular/dist/casper/assets/casper_rust_wasm_sdk_bg.wasm b/examples/frontend/angular/dist/casper/assets/casper_rust_wasm_sdk_bg.wasm index 7838b4dfe..3e840b2b6 100644 Binary files a/examples/frontend/angular/dist/casper/assets/casper_rust_wasm_sdk_bg.wasm and b/examples/frontend/angular/dist/casper/assets/casper_rust_wasm_sdk_bg.wasm differ diff --git a/examples/frontend/angular/dist/casper/index.html b/examples/frontend/angular/dist/casper/index.html index 144228c57..d9aee2c57 100644 --- a/examples/frontend/angular/dist/casper/index.html +++ b/examples/frontend/angular/dist/casper/index.html @@ -13,5 +13,5 @@ - + diff --git a/examples/frontend/angular/dist/casper/main.3cad2b1bf9ed8010.js b/examples/frontend/angular/dist/casper/main.3cad2b1bf9ed8010.js new file mode 100644 index 000000000..4197163e8 --- /dev/null +++ b/examples/frontend/angular/dist/casper/main.3cad2b1bf9ed8010.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcasper=self.webpackChunkcasper||[]).push([[590],{3824:(Zn,Rr,Ct)=>{var j=Ct(1528);let ce=null,ut=1;const Et=Symbol("SIGNAL");function C(e){const n=ce;return ce=e,n}function oo(e){if((!so(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==ut)){if(!e.producerMustRecompute(e)&&!io(e))return e.dirty=!1,void(e.lastCleanEpoch=ut);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=ut}}function io(e){dt(e);for(let n=0;n0}function dt(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let pc=null;function Xe(e){return"function"==typeof e}function Ns(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const ao=Ns(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function ti(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class Qe{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const s of t)s.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(Xe(r))try{r()}catch(s){n=s instanceof ao?s.errors:[s]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const s of o)try{Rs(s)}catch(a){n=n??[],a instanceof ao?n=[...n,...a.errors]:n.push(a)}}if(n)throw new ao(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Rs(n);else{if(n instanceof Qe){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&ti(t,n)}remove(n){const{_finalizers:t}=this;t&&ti(t,n),n instanceof Qe&&n._removeParent(this)}}Qe.EMPTY=(()=>{const e=new Qe;return e.closed=!0,e})();const Fs=Qe.EMPTY;function Yn(e){return e instanceof Qe||e&&"closed"in e&&Xe(e.remove)&&Xe(e.add)&&Xe(e.unsubscribe)}function Rs(e){Xe(e)?e():e.unsubscribe()}const Pn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},co={setTimeout(e,n,...t){const{delegate:r}=co;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=co;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ln(e){co.setTimeout(()=>{const{onUnhandledError:n}=Pn;if(!n)throw e;n(e)})}function xs(){}const Ue=ri("C",void 0,void 0);function ri(e,n,t){return{kind:e,value:n,error:t}}let Mt=null;function lo(e){if(Pn.useDeprecatedSynchronousErrorHandling){const n=!Mt;if(n&&(Mt={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=Mt;if(Mt=null,t)throw r}}else e()}class oi extends Qe{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Yn(n)&&n.add(this)):this.destination=mc}static create(n,t,r){return new si(n,t,r)}next(n){this.isStopped?En(function ni(e){return ri("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?En(function hc(e){return ri("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?En(Ue,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const uo=Function.prototype.bind;function ii(e,n){return uo.call(e,n)}class _o{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){De(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){De(r)}else De(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){De(t)}}}class si extends oi{constructor(n,t,r){let o;if(super(),Xe(n)||!n)o={next:n??void 0,error:t??void 0,complete:r??void 0};else{let s;this&&Pn.useDeprecatedNextContext?(s=Object.create(n),s.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&ii(n.next,s),error:n.error&&ii(n.error,s),complete:n.complete&&ii(n.complete,s)}):o=n}this.destination=new _o(o)}}function De(e){Pn.useDeprecatedSynchronousErrorHandling?function pe(e){Pn.useDeprecatedSynchronousErrorHandling&&Mt&&(Mt.errorThrown=!0,Mt.error=e)}(e):Ln(e)}function En(e,n){const{onStoppedNotification:t}=Pn;t&&co.setTimeout(()=>t(e,n))}const mc={closed:!0,next:xs,error:function gc(e){throw e},complete:xs},Or="function"==typeof Symbol&&Symbol.observable||"@@observable";function gd(e){return e}let St=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,o){const s=function wc(e){return e&&e instanceof oi||function ai(e){return e&&Xe(e.next)&&Xe(e.error)&&Xe(e.complete)}(e)&&Yn(e)}(t)?t:new si(t,r,o);return lo(()=>{const{operator:a,source:u}=this;s.add(a?a.call(s,u):u?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=Os(r))((o,s)=>{const a=new si({next:u=>{try{t(u)}catch(d){s(d),a.unsubscribe()}},error:s,complete:o});this.subscribe(a)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[Or](){return this}pipe(...t){return function yc(e){return 0===e.length?gd:1===e.length?e[0]:function(t){return e.reduce((r,o)=>o(r),t)}}(t)(this)}toPromise(t){return new(t=Os(t))((r,o)=>{let s;this.subscribe(a=>s=a,a=>o(a),()=>r(s))})}}return e.create=n=>new e(n),e})();function Os(e){var n;return null!==(n=e??Pn.Promise)&&void 0!==n?n:Promise}const ci=Ns(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let fo=(()=>{class e extends St{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new Xt(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new ci}next(t){lo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){lo(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){lo(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:o,observers:s}=this;return r||o?Fs:(this.currentObservers=null,s.push(t),new Qe(()=>{this.currentObservers=null,ti(s,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:o,isStopped:s}=this;r?t.error(o):s&&t.complete()}asObservable(){const t=new St;return t.source=this,t}}return e.create=(n,t)=>new Xt(n,t),e})();class Xt extends fo{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:Fs}}class li extends fo{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function Xn(e){return n=>{if(function pr(e){return Xe(e?.lift)}(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ie(e,n,t,r,o){return new md(e,n,t,r,o)}class md extends oi{constructor(n,t,r,o,s,a){super(n),this.onFinalize=s,this.shouldUnsubscribe=a,this._next=t?function(u){try{t(u)}catch(d){n.error(d)}}:super._next,this._error=o?function(u){try{o(u)}catch(d){n.error(d)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(u){n.error(u)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function er(e,n){return Xn((t,r)=>{let o=0;t.subscribe(Ie(r,s=>{r.next(e.call(n,s,o++))}))})}const yd="https://g.co/ng/security#xss";class B extends Error{constructor(n,t){super(function Vn(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function ui(e){return n=>{setTimeout(e,void 0,n)}}const je=class Ls extends fo{constructor(n=!1){super(),this.__isAsync=n}emit(n){const t=C(null);try{super.next(n)}finally{C(t)}}subscribe(n,t,r){let o=n,s=t||(()=>null),a=r;if(n&&"object"==typeof n){const d=n;o=d.next?.bind(d),s=d.error?.bind(d),a=d.complete?.bind(d)}this.__isAsync&&(s=ui(s),o&&(o=ui(o)),a&&(a=ui(a)));const u=super.subscribe({next:o,error:s,complete:a});return n instanceof Qe&&n.add(u),u}};var ge=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(ge||{});function et(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(et).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function di(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}var _i=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(_i||{}),Sn=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Sn||{});function Bn(e){return{toString:e}.toString()}const Se=globalThis,fn={},ye=[];function Ee(e){for(let n in e)if(e[n]===Ee)return n;throw Error("Could not find renamed property on target object.")}function hr(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}const go=Ee({\u0275cmp:Ee}),pn=Ee({\u0275dir:Ee}),Hs=Ee({\u0275pipe:Ee}),Mn=Ee({\u0275fac:Ee}),tn=Ee({__NG_ELEMENT_ID__:Ee}),Us=Ee({__NG_ENV_ID__:Ee});var xe=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(xe||{});function $s(e,n,t){let r=e.length;for(;;){const o=e.indexOf(n,t);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const s=n.length;if(o+s===r||e.charCodeAt(o+s)<=32)return o}t=o+1}}function mo(e,n,t){let r=0;for(;rn){a=s-1;break}}}for(;ss?"":o[g+1].toLowerCase();const v=8&r?b:null;if(v&&-1!==$s(v,f,0)||2&r&&f!==b){if(zt(r))return!1;a=!0}}}}else{if(!a&&!zt(r)&&!zt(d))return!1;if(a&&zt(d))continue;a=!1,r=d|1&r}}return zt(r)||a}function zt(e){return 0==(1&e)}function Fc(e,n,t,r){if(null===n)return-1;let o=0;if(r||!t){let s=!1;for(;o-1)for(t++;t0?'="'+u+'"':"")+"]"}else 8&r?o+="."+a:4&r&&(o+=" "+a);else""!==o&&!zt(a)&&(n+=qs(s,o),o=""),r=a,s=s||!zt(r);t++}return""!==o&&(n+=qs(s,o)),n}function gt(e){return Bn(()=>{const n=Ws(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===_i.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Sn.Emulated,styles:e.styles||ye,_:null,schemas:e.schemas||null,tView:null,id:""};bo(t);const r=e.dependencies;return t.directiveDefs=vo(r,!1),t.pipeDefs=vo(r,!0),t.id=function Lc(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of t)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(t),t})}function mi(e){return ue(e)||ot(e)}function Pc(e){return null!==e}function qt(e){return Bn(()=>({type:e.type,bootstrap:e.bootstrap||ye,declarations:e.declarations||ye,imports:e.imports||ye,exports:e.exports||ye,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Gs(e,n){if(null==e)return fn;const t={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];let s,a,u=xe.None;Array.isArray(o)?(u=o[0],s=o[1],a=o[2]??s):(s=o,a=o),n?(t[s]=u!==xe.None?[r,u]:r,n[s]=a):t[s]=r}return t}function te(e){return Bn(()=>{const n=Ws(e);return bo(n),n})}function ue(e){return e[go]||null}function ot(e){return e[pn]||null}function tt(e){return e[Hs]||null}function Ws(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||fn,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||ye,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Gs(e.inputs,n),outputs:Gs(e.outputs),debugInfo:null}}function bo(e){e.features?.forEach(n=>n(e))}function vo(e,n){if(!e)return null;const t=n?tt:mi;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(Pc)}const Oe=0,H=1,J=2,Ze=3,xt=4,mt=5,Ot=6,mr=7,Me=8,_t=9,nn=10,re=11,yr=12,Js=13,Do=14,$e=15,wi=16,wr=17,hn=18,Co=19,m=20,i=21,c=22,_=23,p=25,y=1,A=7,ie=9,Q=10;var ke=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(ke||{});function we(e){return Array.isArray(e)&&"object"==typeof e[y]}function _e(e){return Array.isArray(e)&&!0===e[y]}function yt(e){return 0!=(4&e.flags)}function nt(e){return e.componentOffset>-1}function ft(e){return 1==(1&e.flags)}function rt(e){return!!e.template}function Hn(e){return 0!=(512&e[J])}const sg="svg";let cg=!1;function Ve(e){for(;Array.isArray(e);)e=e[Oe];return e}function Ks(e,n){return Ve(n[e])}function Gt(e,n){return Ve(n[e.index])}function Qs(e,n){return e.data[n]}function gn(e,n){const t=n[e];return we(t)?t:t[Oe]}function Nd(e){return 128==(128&e[J])}function nr(e,n){return null==n?null:e[n]}function lg(e){e[wr]=0}function kI(e){1024&e[J]||(e[J]|=1024,Nd(e)&&Zs(e))}function Fd(e){return!!(9216&e[J]||e[_]?.dirty)}function Rd(e){Fd(e)?Zs(e):64&e[J]&&(function EI(){return cg}()?(e[J]|=1024,Zs(e)):e[nn].changeDetectionScheduler?.notify())}function Zs(e){e[nn].changeDetectionScheduler?.notify();let n=So(e);for(;null!==n&&!(8192&n[J])&&(n[J]|=8192,Nd(n));)n=So(n)}function So(e){const n=e[Ze];return _e(n)?n[Ze]:n}const oe={lFrame:wg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function _g(){return oe.bindingsEnabled}function vi(){return null!==oe.skipHydrationRootTNode}function F(){return oe.lFrame.lView}function be(){return oe.lFrame.tView}function At(e){return oe.lFrame.contextLView=e,e[Me]}function Nt(e){return oe.lFrame.contextLView=null,e}function Pe(){let e=fg();for(;null!==e&&64===e.type;)e=e.parent;return e}function fg(){return oe.lFrame.currentTNode}function rr(e,n){const t=oe.lFrame;t.currentTNode=e,t.isParent=n}function Od(){return oe.lFrame.isParent}function Pd(){oe.lFrame.isParent=!1}function Wt(){const e=oe.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Un(){return oe.lFrame.bindingIndex++}function Dr(e){const n=oe.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function jI(e,n){const t=oe.lFrame;t.bindingIndex=t.bindingRootIndex=e,Ld(n)}function Ld(e){oe.lFrame.currentDirectiveIndex=e}function jd(){return oe.lFrame.currentQueryIndex}function Wc(e){oe.lFrame.currentQueryIndex=e}function HI(e){const n=e[H];return 2===n.type?n.declTNode:1===n.type?e[mt]:null}function mg(e,n,t){if(t&ge.SkipSelf){let o=n,s=e;for(;!(o=o.parent,null!==o||t&ge.Host||(o=HI(s),null===o||(s=s[Do],10&o.type))););if(null===o)return!1;n=o,e=s}const r=oe.lFrame=yg();return r.currentTNode=n,r.lView=e,!0}function Bd(e){const n=yg(),t=e[H];oe.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function yg(){const e=oe.lFrame,n=null===e?null:e.child;return null===n?wg(e):n}function wg(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function bg(){const e=oe.lFrame;return oe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const vg=bg;function Hd(){const e=bg();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Pt(){return oe.lFrame.selectedIndex}function Mo(e){oe.lFrame.selectedIndex=e}function ze(){const e=oe.lFrame;return Qs(e.tView,e.selectedIndex)}function Xs(){oe.lFrame.currentNamespace=sg}function Ud(){!function zI(){oe.lFrame.currentNamespace=null}()}let Cg=!0;function Jc(){return Cg}function Br(e){Cg=e}function qI(){return Di(Pe(),F())}function Di(e,n){return new Tn(Gt(e,n))}let Gd,Tn=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=qI}return e})();function Eg(e){return e instanceof Tn?e.nativeElement:e}function Ci(e,n){e.forEach(t=>Array.isArray(t)?Ci(t,n):n(t))}function Ig(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Kc(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function mn(e,n,t){let r=Ei(e,n);return r>=0?e[1|r]=t:(r=~r,function Sg(e,n,t,r){let o=e.length;if(o==n)e.push(t,r);else if(1===o)e.push(r,e[0]),e[0]=t;else{for(o--,e.push(e[o-1],e[o]);o>n;)e[o]=e[o-2],o--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function zd(e,n){const t=Ei(e,n);if(t>=0)return e[1|t]}function Ei(e,n){return function Mg(e,n,t){let r=0,o=e.length>>t;for(;o!==r;){const s=r+(o-r>>1),a=e[s<n?o=s:r=s+1}return~(o<YI}),YI="ng",Fg=new G(""),ko=new G("",{providedIn:"platform",factory:()=>"unknown"}),Rg=new G("",{providedIn:"root",factory:()=>Hr().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),t1=Ee({__forward_ref__:Ee});function qe(e){return e.__forward_ref__=qe,e.toString=function(){return et(this())},e}function ne(e){return nl(e)?e():e}function nl(e){return"function"==typeof e&&e.hasOwnProperty(t1)&&e.__forward_ref__===qe}function Xd(e){return e&&!!e.\u0275providers}function le(e){return"string"==typeof e?e:null==e?"":String(e)}function e_(e,n){throw new B(-201,!1)}let t_;function on(e){const n=t_;return t_=e,n}function Pg(e,n,t){const r=Xc(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&ge.Optional?null:void 0!==n?n:void e_()}const ta={},n_="__NG_DI_FLAG__",rl="ngTempTokenPath",a1=/\n/gm,Lg="__source";let Ii;function Ur(e){const n=Ii;return Ii=e,n}function u1(e,n=ge.Default){if(void 0===Ii)throw new B(-203,!1);return null===Ii?Pg(e,void 0,n):Ii.get(e,n&ge.Optional?null:void 0,n)}function X(e,n=ge.Default){return(function Og(){return t_}()||u1)(ne(e),n)}function se(e,n=ge.Default){return X(e,ol(n))}function ol(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function r_(e){const n=[];for(let t=0;tnull;function d_(e,n,t=!1){return jg(e,n,t)}const Ai="__parameters__";function Fi(e,n,t){return Bn(()=>{const r=function h_(e){return function(...t){if(e){const r=e(...t);for(const o in r)this[o]=r[o]}}}(n);function o(...s){if(this instanceof o)return r.apply(this,s),this;const a=new o(...s);return u.annotation=a,u;function u(d,f,h){const g=d.hasOwnProperty(Ai)?d[Ai]:Object.defineProperty(d,Ai,{value:[]})[Ai];for(;g.length<=h;)g.push(null);return(g[h]=g[h]||[]).push(a),d}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}const g_=na(Fi("Optional"),8),m_=na(Fi("SkipSelf"),4);function To(e,n){return e.hasOwnProperty(Mn)?e[Mn]:null}const Ri=new G(""),qg=new G("",-1),y_=new G("");class ul{get(n,t=ta){if(t===ta){const r=new Error(`NullInjectorError: No provider for ${et(n)}!`);throw r.name="NullInjectorError",r}return t}}function dl(e){return{\u0275providers:e}}function Gg(...e){return{\u0275providers:w_(0,e),\u0275fromNgModule:!0}}function w_(e,...n){const t=[],r=new Set;let o;const s=a=>{t.push(a)};return Ci(n,a=>{const u=a;_l(u,s,[],r)&&(o||=[],o.push(u))}),void 0!==o&&Wg(o,s),t}function Wg(e,n){for(let t=0;t{n(s,r)})}}function _l(e,n,t,r){if(!(e=ne(e)))return!1;let o=null,s=el(e);const a=!s&&ue(e);if(s||a){if(a&&!a.standalone)return!1;o=e}else{const d=e.ngModule;if(s=el(d),!s)return!1;o=d}const u=r.has(o);if(a){if(u)return!1;if(r.add(o),a.dependencies){const d="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const f of d)_l(f,n,t,r)}}else{if(!s)return!1;{if(null!=s.imports&&!u){let f;r.add(o);try{Ci(s.imports,h=>{_l(h,n,t,r)&&(f||=[],f.push(h))})}finally{}void 0!==f&&Wg(f,n)}if(!u){const f=To(o)||(()=>new o);n({provide:o,useFactory:f,deps:ye},o),n({provide:y_,useValue:o,multi:!0},o),n({provide:Ri,useValue:()=>X(o),multi:!0},o)}const d=s.providers;if(null!=d&&!u){const f=e;b_(d,h=>{n(h,f)})}}}return o!==e&&void 0!==e.providers}function b_(e,n){for(let t of e)Xd(t)&&(t=t.\u0275providers),Array.isArray(t)?b_(t,n):n(t)}const I1=Ee({provide:String,useValue:Ee});function v_(e){return null!==e&&"object"==typeof e&&I1 in e}function Ao(e){return"function"==typeof e}const D_=new G(""),fl={},M1={};let C_;function pl(){return void 0===C_&&(C_=new ul),C_}class $n{}class xi extends $n{get destroyed(){return this._destroyed}constructor(n,t,r,o){super(),this.parent=t,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,I_(n,a=>this.processProvider(a)),this.records.set(qg,Oi(void 0,this)),o.has("environment")&&this.records.set($n,Oi(void 0,this));const s=this.records.get(D_);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(y_,ye,ge.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=C(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),C(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=Ur(this),r=on(void 0);try{return n()}finally{Ur(t),on(r)}}get(n,t=ta,r=ge.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Us))return n[Us](this);r=ol(r);const s=Ur(this),a=on(void 0);try{if(!(r&ge.SkipSelf)){let d=this.records.get(n);if(void 0===d){const f=function F1(e){return"function"==typeof e||"object"==typeof e&&e instanceof G}(n)&&Xc(n);d=f&&this.injectableDefInScope(f)?Oi(E_(n),fl):null,this.records.set(n,d)}if(null!=d)return this.hydrate(n,d)}return(r&ge.Self?pl():this.parent).get(n,t=r&ge.Optional&&t===ta?null:t)}catch(u){if("NullInjectorError"===u.name){if((u[rl]=u[rl]||[]).unshift(et(n)),s)throw u;return function _1(e,n,t,r){const o=e[rl];throw n[Lg]&&o.unshift(n[Lg]),e.message=function f1(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=et(n);if(Array.isArray(n))o=n.map(et).join(" -> ");else if("object"==typeof n){let s=[];for(let a in n)if(n.hasOwnProperty(a)){let u=n[a];s.push(a+":"+("string"==typeof u?JSON.stringify(u):et(u)))}o=`{${s.join(", ")}}`}return`${t}${r?"("+r+")":""}[${o}]: ${e.replace(a1,"\n ")}`}("\n"+e.message,o,t,r),e.ngTokenPath=o,e[rl]=null,e}(u,n,"R3InjectorError",this.source)}throw u}finally{on(a),Ur(s)}}resolveInjectorInitializers(){const n=C(null),t=Ur(this),r=on(void 0);try{const s=this.get(Ri,ye,ge.Self);for(const a of s)a()}finally{Ur(t),on(r),C(n)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(et(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new B(205,!1)}processProvider(n){let t=Ao(n=ne(n))?n:ne(n&&n.provide);const r=function T1(e){return v_(e)?Oi(void 0,e.useValue):Oi(Qg(e),fl)}(n);if(!Ao(n)&&!0===n.multi){let o=this.records.get(t);o||(o=Oi(void 0,fl,!0),o.factory=()=>r_(o.multi),this.records.set(t,o)),t=n,o.multi.push(n)}this.records.set(t,r)}hydrate(n,t){const r=C(null);try{return t.value===fl&&(t.value=M1,t.value=t.factory()),"object"==typeof t.value&&t.value&&function N1(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{C(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=ne(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function E_(e){const n=Xc(e),t=null!==n?n.factory:To(e);if(null!==t)return t;if(e instanceof G)throw new B(204,!1);if(e instanceof Function)return function k1(e){if(e.length>0)throw new B(204,!1);const t=function QI(e){return e&&(e[tl]||e[Ng])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new B(204,!1)}function Qg(e,n,t){let r;if(Ao(e)){const o=ne(e);return To(o)||E_(o)}if(v_(e))r=()=>ne(e.useValue);else if(function Kg(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...r_(e.deps||[]));else if(function Jg(e){return!(!e||!e.useExisting)}(e))r=()=>X(ne(e.useExisting));else{const o=ne(e&&(e.useClass||e.provide));if(!function A1(e){return!!e.deps}(e))return To(o)||E_(o);r=()=>new o(...r_(e.deps))}return r}function Oi(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function I_(e,n){for(const t of e)Array.isArray(t)?I_(t,n):t&&Xd(t)?I_(t.\u0275providers,n):n(t)}class $1{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Yg(e,n,t,r){null!==n?n.applyValueToInputSignal(n,r):e[t]=r}function Cr(){return Xg}function Xg(e){return e.type.prototype.ngOnChanges&&(e.setInput=q1),z1}function z1(){const e=tm(this),n=e?.current;if(n){const t=e.previous;if(t===fn)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function q1(e,n,t,r,o){const s=this.declaredInputs[r],a=tm(e)||function G1(e,n){return e[em]=n}(e,{previous:fn,current:null}),u=a.current||(a.current={}),d=a.previous,f=d[s];u[s]=new $1(f&&f.currentValue,t,d===fn),Yg(e,n,o,t)}Cr.ngInherit=!0;const em="__ngSimpleChanges__";function tm(e){return e[em]||null}const ir=function(e,n,t){};function ml(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[d]<0&&(e[wr]+=65536),(u>14>16&&(3&e[J])===n&&(e[J]+=16384,rm(u,s)):rm(u,s)}const Li=-1;class aa{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function A_(e){return e!==Li}function ca(e){return 32767&e}function la(e,n){let t=function eS(e){return e>>16}(e),r=n;for(;t>0;)r=r[Do],t--;return r}let N_=!0;function bl(e){const n=N_;return N_=e,n}const om=255,im=5;let tS=0;const sr={};function vl(e,n){const t=sm(e,n);if(-1!==t)return t;const r=n[H];r.firstCreatePass&&(e.injectorIndex=n.length,F_(r.data,e),F_(n,null),F_(r.blueprint,null));const o=Dl(e,n),s=e.injectorIndex;if(A_(o)){const a=ca(o),u=la(o,n),d=u[H].data;for(let f=0;f<8;f++)n[s+f]=u[a+f]|d[a+f]}return n[s+8]=o,s}function F_(e,n){e.push(0,0,0,0,0,0,0,0,n)}function sm(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Dl(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,o=n;for(;null!==o;){if(r=fm(o),null===r)return Li;if(t++,o=o[Do],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return Li}function R_(e,n,t){!function nS(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(tn)&&(r=t[tn]),null==r&&(r=t[tn]=tS++);const o=r&om;n.data[e+(o>>im)]|=1<=0?n&om:sS:n}(t);if("function"==typeof s){if(!mg(n,e,r))return r&ge.Host?am(o,0,r):cm(n,t,r,o);try{let a;if(a=s(r),null!=a||r&ge.Optional)return a;e_()}finally{vg()}}else if("number"==typeof s){let a=null,u=sm(e,n),d=Li,f=r&ge.Host?n[$e][mt]:null;for((-1===u||r&ge.SkipSelf)&&(d=-1===u?Dl(e,n):n[u+8],d!==Li&&_m(r,!1)?(a=n[H],u=ca(d),n=la(d,n)):u=-1);-1!==u;){const h=n[H];if(dm(s,u,h.data)){const g=oS(u,n,t,a,r,f);if(g!==sr)return g}d=n[u+8],d!==Li&&_m(r,n[H].data[u+8]===f)&&dm(s,u,n)?(a=h,u=ca(d),n=la(d,n)):u=-1}}return o}function oS(e,n,t,r,o,s){const a=n[H],u=a.data[e+8],h=Cl(u,a,t,null==r?nt(u)&&N_:r!=a&&0!=(3&u.type),o&ge.Host&&s===u);return null!==h?No(n,a,h,u):sr}function Cl(e,n,t,r,o){const s=e.providerIndexes,a=n.data,u=1048575&s,d=e.directiveStart,h=s>>20,b=o?u+h:e.directiveEnd;for(let v=r?u:u+h;v=d&&I.type===t)return v}if(o){const v=a[d];if(v&&rt(v)&&v.type===t)return d}return null}function No(e,n,t,r){let o=e[t];const s=n.data;if(function Q1(e){return e instanceof aa}(o)){const a=o;a.resolving&&function o1(e,n){throw n&&n.join(" > "),new B(-200,e)}(function Te(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():le(e)}(s[t]));const u=bl(a.canSeeViewProviders);a.resolving=!0;const f=a.injectImpl?on(a.injectImpl):null;mg(e,r,ge.Default);try{o=e[t]=a.factory(void 0,s,e,r),n.firstCreatePass&&t>=r.directiveStart&&function J1(e,n,t){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:s}=n.type.prototype;if(r){const a=Xg(n);(t.preOrderHooks??=[]).push(e,a),(t.preOrderCheckHooks??=[]).push(e,a)}o&&(t.preOrderHooks??=[]).push(0-e,o),s&&((t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s))}(t,s[t],n)}finally{null!==f&&on(f),bl(u),a.resolving=!1,vg()}}return o}function dm(e,n,t){return!!(t[n+(e>>im)]&1<{const n=e.prototype.constructor,t=n[Mn]||x_(n),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const s=o[Mn]||x_(o);if(s&&s!==t)return s;o=Object.getPrototypeOf(o)}return s=>new s})}function x_(e){return nl(e)?()=>{const n=x_(ne(e));return n&&n()}:To(e)}function fm(e){const n=e[H],t=n.type;return 2===t?n.declTNode:1===t?e[mt]:null}function ym(e,n=null,t=null,r){const o=function wm(e,n=null,t=null,r,o=new Set){const s=[t||ye,Gg(e)];return r=r||("object"==typeof e?void 0:et(e)),new xi(s,n||pl(),r||null,o)}(e,n,t,r);return o.resolveInjectorInitializers(),o}let yn=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=ta;static#t=this.NULL=new ul;static create(t,r){if(Array.isArray(t))return ym({name:""},r,t,"");{const o=t.name??"";return ym({name:o},t.parent,t.providers,o)}}static#n=this.\u0275prov=ae({token:e,providedIn:"any",factory:()=>X(qg)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function L_(e){return e.ngOriginalError}class Er{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&L_(n);for(;t&&L_(t);)t=L_(t);return t||null}}const vm=new G("",{providedIn:"root",factory:()=>se(Er).handleError.bind(void 0)}),Cm=new G("",{providedIn:"root",factory:()=>!1});let Sl,Ml;function Bi(e){return function V_(){if(void 0===Sl&&(Sl=null,Se.trustedTypes))try{Sl=Se.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Sl}()?.createHTML(e)||e}function Em(e){return function j_(){if(void 0===Ml&&(Ml=null,Se.trustedTypes))try{Ml=Se.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ml}()?.createHTML(e)||e}class Mm{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${yd})`}}function $r(e){return e instanceof Mm?e.changingThisBreaksApplicationSecurity:e}class CS{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const t=(new window.DOMParser).parseFromString(Bi(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.removeChild(t.firstChild),t)}catch{return null}}}class ES{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=Bi(n),t}}const SS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ir(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function da(...e){const n={};for(const t of e)for(const r in t)t.hasOwnProperty(r)&&(n[r]=!0);return n}const Tm=Ir("area,br,col,hr,img,wbr"),Am=Ir("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Nm=Ir("rp,rt"),H_=da(Tm,da(Am,Ir("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),da(Nm,Ir("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),da(Nm,Am)),U_=Ir("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Fm=da(U_,Ir("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ir("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),MS=Ir("script,style,template");class kS{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,r=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let o=this.checkClobberedElement(t,t.nextSibling);if(o){t=o;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(n){const t=n.nodeName.toLowerCase();if(!H_.hasOwnProperty(t))return this.sanitizedSomething=!0,!MS.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=n.attributes;for(let o=0;o"),!0}endElement(n){const t=n.nodeName.toLowerCase();H_.hasOwnProperty(t)&&!Tm.hasOwnProperty(t)&&(this.buf.push(""))}chars(n){this.buf.push(Rm(n))}checkClobberedElement(n,t){if(t&&(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return t}}const TS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,AS=/([^\#-~ |!])/g;function Rm(e){return e.replace(/&/g,"&").replace(TS,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(AS,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let kl;function $_(e){return"content"in e&&function FS(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Hi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Hi||{});function xm(e){const n=function _a(){const e=F();return e&&e[nn].sanitizer}();return n?Em(n.sanitize(Hi.HTML,e)||""):function ua(e,n){const t=function DS(e){return e instanceof Mm&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${yd})`)}return t===n}(e,"HTML")?Em($r(e)):function NS(e,n){let t=null;try{kl=kl||function km(e){const n=new ES(e);return function IS(){try{return!!(new window.DOMParser).parseFromString(Bi(""),"text/html")}catch{return!1}}()?new CS(n):n}(e);let r=n?String(n):"";t=kl.getInertBodyElement(r);let o=5,s=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=s,s=t.innerHTML,t=kl.getInertBodyElement(r)}while(r!==s);return Bi((new kS).sanitizeChildren($_(t)||t))}finally{if(t){const r=$_(t)||t;for(;r.firstChild;)r.removeChild(r.firstChild)}}}(Hr(),le(e))}const jS=/^>|^->||--!>|)/g,HS="\u200b$1\u200b";const z_=new Map;let GS=0;const G_="__ngContext__";function Vt(e,n){we(n)?(e[G_]=n[Co],function JS(e){z_.set(e[Co],e)}(n)):e[G_]=n}var qr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(qr||{});let Q_;function Z_(e,n){return Q_(e,n)}function $i(e,n,t,r,o){if(null!=r){let s,a=!1;_e(r)?s=r:we(r)&&(a=!0,r=r[Oe]);const u=Ve(r);0===e&&null!==t?null==o?ty(n,t,u):Fo(n,t,u,o||null,!0):1===e&&null!==t?Fo(n,t,u,o||null,!0):2===e?function Pl(e,n,t){const r=xl(e,n);r&&function gM(e,n,t,r){e.removeChild(n,t,r)}(e,r,n,t)}(n,u,a):3===e&&n.destroyNode(u),null!=s&&function wM(e,n,t,r,o){const s=t[A];s!==Ve(t)&&$i(n,e,r,s,o);for(let u=Q;un.replace(BS,HS))}(n))}function Fl(e,n,t){return e.createElement(n,t)}function Ym(e,n){Ll(e,n,n[re],2,null,null)}function Xm(e,n){const t=e[ie],r=t.indexOf(n);t.splice(r,1)}function pa(e,n){if(e.length<=Q)return;const t=Q+n,r=e[t];if(r){const o=r[wi];null!==o&&o!==e&&Xm(o,r),n>0&&(e[t-1][xt]=r[xt]);const s=Kc(e,Q+n);!function lM(e,n){Ym(e,n),n[Oe]=null,n[mt]=null}(r[H],r);const a=s[hn];null!==a&&a.detachView(s[H]),r[Ze]=null,r[xt]=null,r[J]&=-129}return r}function Rl(e,n){if(!(256&n[J])){const t=n[re];t.destroyNode&&Ll(e,n,t,3,null,null),function dM(e){let n=e[yr];if(!n)return X_(e[H],e);for(;n;){let t=null;if(we(n))t=n[yr];else{const r=n[Q];r&&(t=r)}if(!t){for(;n&&!n[xt]&&n!==e;)we(n)&&X_(n[H],n),n=n[Ze];null===n&&(n=e),we(n)&&X_(n[H],n),t=n&&n[xt]}n=t}}(n)}}function X_(e,n){if(256&n[J])return;const t=C(null);try{n[J]&=-129,n[J]|=256,n[_]&&function Ms(e){if(dt(e),so(e))for(let n=0;n=0?r[a]():r[-a].unsubscribe(),s+=2}else t[s].call(r[t[s+1]]);null!==r&&(n[mr]=null);const o=n[i];if(null!==o){n[i]=null;for(let s=0;s-1){const{encapsulation:s}=e.data[r.directiveStart+o];if(s===Sn.None||s===Sn.Emulated)return null}return Gt(r,t)}}(e,n.parent,t)}function Fo(e,n,t,r,o){e.insertBefore(n,t,r,o)}function ty(e,n,t){e.appendChild(n,t)}function ny(e,n,t,r,o){null!==r?Fo(e,n,t,r,o):ty(e,n,t)}function xl(e,n){return e.parentNode(n)}function ry(e,n,t){return iy(e,n,t)}let tf,iy=function oy(e,n,t){return 40&e.type?Gt(e,t):null};function Ol(e,n,t,r){const o=ef(e,r,n),s=n[re],u=ry(r.parent||n[mt],r,n);if(null!=o)if(Array.isArray(t))for(let d=0;dp&&_y(e,n,p,!1),ir(a?2:0,o),t(r,o)}finally{Mo(s),ir(a?3:1,o)}}function af(e,n,t){if(yt(n)){const r=C(null);try{const s=n.directiveEnd;for(let a=n.directiveStart;anull;function my(e,n,t,r,o){for(let s in n){if(!n.hasOwnProperty(s))continue;const a=n[s];if(void 0===a)continue;r??={};let u,d=xe.None;Array.isArray(a)?(u=a[0],d=a[1]):u=a;let f=s;if(null!==o){if(!o.hasOwnProperty(s))continue;f=o[s]}0===e?yy(r,t,f,u,d):yy(r,t,f,u)}return r}function yy(e,n,t,r,o){let s;e.hasOwnProperty(t)?(s=e[t]).push(n,r):s=e[t]=[n,r],void 0!==o&&s.push(o)}function an(e,n,t,r,o,s,a,u){const d=Gt(n,t);let h,f=n.inputs;!u&&null!=f&&(h=f[r])?(hf(e,t,h,r,o),nt(n)&&function RM(e,n){const t=gn(n,e);16&t[J]||(t[J]|=64)}(t,n.index)):3&n.type&&(r=function FM(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=a?a(o,n.value||"",r):o,s.setProperty(d,r,o))}function df(e,n,t,r){if(_g()){const o=null===r?null:{"":-1},s=function jM(e,n){const t=e.directiveRegistry;let r=null,o=null;if(t)for(let s=0;s0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(a)!=u&&a.push(u),a.push(t,r,s)}}(e,n,r,ga(e,t,o.hostVars,de),o)}function ar(e,n,t,r,o,s){const a=Gt(e,n);!function ff(e,n,t,r,o,s,a){if(null==s)e.removeAttribute(n,o,t);else{const u=null==a?le(s):a(s,r||"",o);e.setAttribute(n,o,u,t)}}(n[re],a,s,e.value,t,r,o)}function qM(e,n,t,r,o,s){const a=s[n];if(null!==a)for(let u=0;u0&&(t[o-1][xt]=n),r!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Zs(e.lView)},consumerOnSignalRead(){this.lView[_]=this}};function Ty(e){return Ny(e[yr])}function Ay(e){return Ny(e[xt])}function Ny(e){for(;null!==e&&!_e(e);)e=e[xt];return e}function Hl(e,n=!0,t=0){const r=e[nn],o=r.rendererFactory;o.begin?.();try{!function nk(e,n){yf(e,n);let t=0;for(;Fd(e);){if(100===t)throw new B(103,!1);t++,yf(e,1)}}(e,t)}catch(a){throw n&&Bl(e,a),a}finally{o.end?.(),r.inlineEffectRunner?.flush()}}function rk(e,n,t,r){const o=n[J];if(256==(256&o))return;n[nn].inlineEffectRunner?.flush(),Bd(n);let a=null,u=null;(function ok(e){return 2!==e.type})(e)&&(u=function QM(e){return e[_]??function ZM(e){const n=ky.pop()??Object.create(XM);return n.lView=e,n}(e)}(n),a=function xr(e){return e&&(e.nextProducerIndex=0),C(e)}(u));try{lg(n),function hg(e){return oe.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&py(e,n,t,2,r);const d=3==(3&o);if(d){const g=e.preOrderCheckHooks;null!==g&&yl(n,g,null)}else{const g=e.preOrderHooks;null!==g&&wl(n,g,0,null),k_(n,0)}if(function ik(e){for(let n=Ty(e);null!==n;n=Ay(n)){if(!(n[J]&ke.HasTransplantedViews))continue;const t=n[ie];for(let r=0;re.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(u,a),function YM(e){e.lView[_]!==e&&(e.lView=null,ky.push(e))}(u)),Hd()}}function Ry(e,n){for(let t=Ty(e);null!==t;t=Ay(t))for(let r=Q;r-1&&(pa(n,r),Kc(t,r))}this._attachedToViewContainer=!1}Rl(this._lView[H],this._lView)}onDestroy(n){!function Gc(e,n){if(256==(256&e[J]))throw new B(911,!1);null===e[i]&&(e[i]=[]),e[i].push(n)}(this._lView,n)}markForCheck(){ba(this._cdRefInjectingView||this._lView)}detach(){this._lView[J]&=-129}reattach(){Rd(this._lView),this._lView[J]|=128}detectChanges(){this._lView[J]|=1024,Hl(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new B(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Ym(this._lView[H],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new B(902,!1);this._appRef=n,Rd(this._lView)}}let Mr=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=lk}return e})();const ak=Mr,ck=class extends ak{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,r){const o=function ma(e,n,t,r){const o=C(null);try{const s=n.tView,d=Vl(e,s,t,4096&e[J]?4096:16,null,n,null,null,null,r?.injector??null,r?.dehydratedView??null);d[wi]=e[n.index];const h=e[hn];return null!==h&&(d[hn]=h.createEmbeddedView(s)),gf(s,d,t),d}finally{C(o)}}(this._declarationLView,this._declarationTContainer,n,{injector:t,dehydratedView:r});return new va(o)}};function lk(){return Ul(Pe(),F())}function Ul(e,n){return 4&e.type?new ck(n,e,Di(e,n)):null}class Uy{}class Nk{}class $y{}class Rk{resolveComponentFactory(n){throw function Fk(e){const n=Error(`No component factory found for ${et(e)}.`);return n.ngComponent=e,n}(n)}}let Wl=(()=>{class e{static#e=this.NULL=new Rk}return e})();class qy{}let Ro=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function xk(){const e=F(),t=gn(Pe().index,e);return(we(t)?t:e)[re]}()}return e})(),Ok=(()=>{class e{static#e=this.\u0275prov=ae({token:e,providedIn:"root",factory:()=>null})}return e})();const Ef={},Gy=new Set;function Wy(...e){}class Ge{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new je(!1),this.onMicrotaskEmpty=new je(!1),this.onStable=new je(!1),this.onError=new je(!1),typeof Zone>"u")throw new B(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&t,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function Vk(){const e="function"==typeof Se.requestAnimationFrame;let n=Se[e?"requestAnimationFrame":"setTimeout"],t=Se[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&t){const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r);const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function Hk(e){const n=()=>{!function Bk(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Se,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Sf(e),e.isCheckStableRunning=!0,If(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Sf(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,o,s,a,u)=>{if(function Uk(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(u))return t.invokeTask(o,s,a,u);try{return Jy(e),t.invokeTask(o,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&n(),Ky(e)}},onInvoke:(t,r,o,s,a,u,d)=>{try{return Jy(e),t.invoke(o,s,a,u,d)}finally{e.shouldCoalesceRunChangeDetection&&n(),Ky(e)}},onHasTask:(t,r,o,s)=>{t.hasTask(o,s),r===o&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Sf(e),If(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,r,o,s)=>(t.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ge.isInAngularZone())throw new B(909,!1)}static assertNotInAngularZone(){if(Ge.isInAngularZone())throw new B(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,o){const s=this._inner,a=s.scheduleEventTask("NgZoneEvent: "+o,n,jk,Wy,Wy);try{return s.runTask(a,t,r)}finally{s.cancelTask(a)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const jk={};function If(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Sf(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Jy(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ky(e){e._nesting--,If(e)}let Sa=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const t=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const r of t)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=ae({token:e,providedIn:"root",factory:()=>new e})}return e})();function Ql(e,n,t){let r=t?e.styles:null,o=t?e.classes:null,s=0;if(null!==n)for(let a=0;a0&&uy(e,t,s.join(" "))}}(v,Fe,k,r),void 0!==t&&function nT(e,n,t){const r=e.projection=[];for(let o=0;o{class e{static#e=this.__NG_ELEMENT_ID__=oT}return e})();function oT(){return sw(Pe(),F())}const iT=lr,ow=class extends iT{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return Di(this._hostTNode,this._hostLView)}get injector(){return new bt(this._hostTNode,this._hostLView)}get parentInjector(){const n=Dl(this._hostTNode,this._hostLView);if(A_(n)){const t=la(n,this._hostLView),r=ca(n);return new bt(t[H].data[r+8],t)}return new bt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=iw(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-Q}createEmbeddedView(n,t,r){let o,s;"number"==typeof r?o=r:null!=r&&(o=r.index,s=r.injector);const u=n.createEmbeddedViewImpl(t||{},s,null);return this.insertImpl(u,o,qi(this._hostTNode,null)),u}createComponent(n,t,r,o,s){const a=n&&!function sa(e){return"function"==typeof e}(n);let u;if(a)u=t;else{const I=t||{};u=I.index,r=I.injector,o=I.projectableNodes,s=I.environmentInjector||I.ngModuleRef}const d=a?n:new Ta(ue(n)),f=r||this.parentInjector;if(!s&&null==d.ngModule){const k=(a?f:this.parentInjector).get($n,null);k&&(s=k)}ue(d.componentType??{});const v=d.create(f,o,null,s);return this.insertImpl(v.hostView,u,qi(this._hostTNode,null)),v}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,r){const o=n._lView;if(function MI(e){return _e(e[Ze])}(o)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=o[Ze],f=new ow(d,d[mt],d[Ze]);f.detach(f.indexOf(n))}}const s=this._adjustIndex(t),a=this._lContainer;return ya(a,o,s,r),n.attachToViewContainerRef(),Ig(Af(a),s,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=iw(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=pa(this._lContainer,t);r&&(Kc(Af(this._lContainer),t),Rl(r[H],r))}detach(n){const t=this._adjustIndex(n,-1),r=pa(this._lContainer,t);return r&&null!=Kc(Af(this._lContainer),t)?new va(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function iw(e){return e[8]}function Af(e){return e[8]||(e[8]=[])}function sw(e,n){let t;const r=n[e.index];return _e(r)?t=r:(t=vy(r,n,null,e),n[e.index]=t,jl(n,t)),aw(t,n,e,r),new ow(t,e,n)}let aw=function lw(e,n,t,r){if(e[A])return;let o;o=8&t.type?Ve(r):function sT(e,n){const t=e[re],r=t.createComment(""),o=Gt(n,e);return Fo(t,xl(t,o),r,function mM(e,n){return e.nextSibling(n)}(t,o),!1),r}(n,t),e[A]=o},Nf=()=>!1;class Ff{constructor(n){this.queryList=n,this.matches=null}clone(){return new Ff(this.queryList)}setDirty(){this.queryList.setDirty()}}class Rf{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const r=null!==n.contentQueries?n.contentQueries[0]:t.length,o=[];for(let s=0;sn.trim())}(n):n}}class xf{constructor(n=[]){this.queries=n}elementStart(n,t){for(let r=0;r0)r.push(a[u/2]);else{const f=s[u+1],h=n[-d];for(let g=Q;g=0;r--){const o=e[r];o.hostVars=n+=o.hostVars,o.hostAttrs=Pr(o.hostAttrs,t=Pr(t,o.hostAttrs))}}(r)}function ST(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const r=n.inputs[t];if(void 0!==r&&(e.inputs[t]=r,e.declaredInputs[t]=n.declaredInputs[t],null!==n.inputTransforms)){const o=Array.isArray(r)?r[0]:r;if(!n.inputTransforms.hasOwnProperty(o))continue;e.inputTransforms??={},e.inputTransforms[o]=n.inputTransforms[o]}}}function Yl(e){return e===fn?{}:e===ye?[]:e}function kT(e,n){const t=e.viewQuery;e.viewQuery=t?(r,o)=>{n(r,o),t(r,o)}:n}function TT(e,n){const t=e.contentQueries;e.contentQueries=t?(r,o,s)=>{n(r,o,s),t(r,o,s)}:n}function AT(e,n){const t=e.hostBindings;e.hostBindings=t?(r,o)=>{n(r,o),t(r,o)}:n}class Po{}class xw extends Po{constructor(n){super(),this.componentFactoryResolver=new nw(this),this.instance=null;const t=new xi([...n.providers,{provide:Po,useValue:this},{provide:Wl,useValue:this.componentFactoryResolver}],n.parent||pl(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}let Lo=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new li(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function eu(e){return!!function Uf(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function ur(e,n,t){return e[n]=t}function st(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Vo(e,n,t,r){const o=st(e,n,t);return st(e,n+1,r)||o}function he(e,n,t,r,o,s,a,u){const d=F(),f=be(),h=e+p,g=f.firstCreatePass?function qT(e,n,t,r,o,s,a,u,d){const f=n.consts,h=zi(n,e,4,a||null,nr(f,u));df(n,t,h,nr(f,d)),ml(n,h);const g=h.tView=uf(2,h,r,o,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,f,null);return null!==n.queries&&(n.queries.template(n,h),g.queries=n.queries.embeddedTView(h)),h}(h,f,d,n,t,r,o,s,a):f.data[h];rr(g,!1);const b=Pw(f,d,g,e);Jc()&&Ol(f,d,b,g),Vt(b,d);const v=vy(b,d,b,g);return d[h]=v,jl(d,v),function cw(e,n,t){return Nf(e,n,t)}(v,g,d),ft(g)&&cf(f,d,g),null!=a&&lf(d,g,u),he}let Pw=function Lw(e,n,t,r){return Br(!0),n[re].createComment("")};function cn(e,n,t,r){const o=F();return st(o,Un(),n)&&(be(),ar(ze(),o,e,n,t,r)),cn}function ts(e,n,t,r){return st(e,Un(),t)?n+le(t)+r:de}function ns(e,n,t,r,o,s){const u=Vo(e,function vr(){return oe.lFrame.bindingIndex}(),t,o);return Dr(2),u?n+le(t)+r+le(o)+s:de}function au(e,n){return e<<17|n<<2}function Jr(e){return e>>17&32767}function Yf(e){return 2|e}function Bo(e){return(131068&e)>>2}function Xf(e,n){return-131069&e|n<<2}function ep(e){return 1|e}function pb(e,n,t,r){const o=e[t+1],s=null===n;let a=r?Jr(o):Bo(o),u=!1;for(;0!==a&&(!1===u||s);){const f=e[a+1];TA(e[a],n)&&(u=!0,e[a+1]=r?ep(f):Yf(f)),a=r?Jr(f):Bo(f)}u&&(e[t+1]=r?Yf(o):ep(o))}function TA(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Ei(e,n)>=0}const vt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function hb(e){return e.substring(vt.key,vt.keyEnd)}function gb(e,n){const t=vt.textEnd;return t===n?-1:(n=vt.keyEnd=function RA(e,n,t){for(;n32;)n++;return n}(e,vt.key=n,t),ls(e,n,t))}function ls(e,n,t){for(;n=0;t=gb(n,t))mn(e,hb(n),!0)}function Db(e,n){return n>=e.expandoStartIndex}function Cb(e,n,t,r){const o=e.data;if(null===o[t+1]){const s=o[Pt()],a=Db(e,t);Mb(s,r)&&null===n&&!a&&(n=!1),n=function LA(e,n,t,r){const o=function Vd(e){const n=oe.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let s=r?n.residualClasses:n.residualStyles;if(null===o)0===(r?n.classBindings:n.styleBindings)&&(t=Oa(t=rp(null,e,n,t,r),n.attrs,r),s=null);else{const a=n.directiveStylingLast;if(-1===a||e[a]!==o)if(t=rp(o,e,n,t,r),null===s){let d=function VA(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==Bo(r))return e[Jr(r)]}(e,n,r);void 0!==d&&Array.isArray(d)&&(d=rp(null,e,n,d[1],r),d=Oa(d,n.attrs,r),function jA(e,n,t,r){e[Jr(t?n.classBindings:n.styleBindings)]=r}(e,n,r,d))}else s=function BA(e,n,t){let r;const o=n.directiveEnd;for(let s=1+n.directiveStylingLast;s0)&&(f=!0)):h=t,o)if(0!==d){const b=Jr(e[u+1]);e[r+1]=au(b,u),0!==b&&(e[b+1]=Xf(e[b+1],r)),e[u+1]=function IA(e,n){return 131071&e|n<<17}(e[u+1],r)}else e[r+1]=au(u,0),0!==u&&(e[u+1]=Xf(e[u+1],r)),u=r;else e[r+1]=au(d,0),0===u?u=r:e[d+1]=Xf(e[d+1],r),d=r;f&&(e[r+1]=Yf(e[r+1])),pb(e,h,r,!0),pb(e,h,r,!1),function kA(e,n,t,r,o){const s=o?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof n&&Ei(s,n)>=0&&(t[r+1]=ep(t[r+1]))}(n,h,e,r,s),a=au(u,d),s?n.classBindings=a:n.styleBindings=a}(o,s,n,t,a,r)}}function rp(e,n,t,r,o){let s=null;const a=t.directiveEnd;let u=t.directiveStylingLast;for(-1===u?u=t.directiveStart:u++;u0;){const d=e[o],f=Array.isArray(d),h=f?d[1]:d,g=null===h;let b=t[o+1];b===de&&(b=g?ye:void 0);let v=g?zd(b,r):h===r?b:void 0;if(f&&!lu(v)&&(v=zd(d,r)),lu(v)&&(u=v,a))return u;const I=e[o+1];o=a?Jr(I):Bo(I)}if(null!==n){let d=s?n.residualClasses:n.residualStyles;null!=d&&(u=zd(d,r))}return u}function lu(e){return void 0!==e}function Mb(e,n){return 0!=(e.flags&(n?8:16))}function q(e,n,t,r){const o=F(),s=be(),a=p+e,u=o[re],d=s.firstCreatePass?function fN(e,n,t,r,o,s){const a=n.consts,d=zi(n,e,2,r,nr(a,o));return df(n,t,d,nr(a,s)),null!==d.attrs&&Ql(d,d.attrs,!1),null!==d.mergedAttrs&&Ql(d,d.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,d),d}(a,s,o,n,t,r):s.data[a],f=Nb(s,o,d,u,n,e);o[a]=f;const h=ft(d);return rr(d,!0),dy(u,f,d),32!=(32&d.flags)&&Jc()&&Ol(s,o,f,d),0===function TI(){return oe.lFrame.elementDepthCount}()&&Vt(f,o),function AI(){oe.lFrame.elementDepthCount++}(),h&&(cf(s,o,d),af(s,d,o)),null!==r&&lf(o,d),q}function W(){let e=Pe();Od()?Pd():(e=e.parent,rr(e,!1));const n=e;(function FI(e){return oe.skipHydrationRootTNode===e})(n)&&function PI(){oe.skipHydrationRootTNode=null}(),function NI(){oe.lFrame.elementDepthCount--}();const t=be();return t.firstCreatePass&&(ml(t,e),yt(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function Y1(e){return 0!=(8&e.flags)}(n)&&tp(t,n,F(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function X1(e){return 0!=(16&e.flags)}(n)&&tp(t,n,F(),n.stylesWithoutHost,!1),W}function Ft(e,n,t,r){return q(e,n,t,r),W(),Ft}let Nb=(e,n,t,r,o,s)=>(Br(!0),Fl(r,o,function Dg(){return oe.lFrame.currentNamespace}()));function Nn(e,n,t){const r=F(),o=be(),s=e+p,a=o.firstCreatePass?function gN(e,n,t,r,o){const s=n.consts,a=nr(s,r),u=zi(n,e,8,"ng-container",a);return null!==a&&Ql(u,a,!0),df(n,t,u,nr(s,o)),null!==n.queries&&n.queries.elementStart(n,u),u}(s,o,r,n,t):o.data[s];rr(a,!0);const u=Fb(o,r,a,e);return r[s]=u,Jc()&&Ol(o,r,u,a),Vt(u,r),ft(a)&&(cf(o,r,a),af(o,a,r)),null!=t&&lf(r,a),Nn}function Fn(){let e=Pe();const n=be();return Od()?Pd():(e=e.parent,rr(e,!1)),n.firstCreatePass&&(ml(n,e),yt(e)&&n.queries.elementEnd(e)),Fn}function Ho(e,n,t){return Nn(e,n,t),Fn(),Ho}let Fb=(e,n,t,r)=>(Br(!0),Y_(n[re],""));function Jt(){return F()}const ds="en-US";let Lb=ds;function ve(e,n,t,r){const o=F(),s=be(),a=Pe();return function up(e,n,t,r,o,s,a){const u=ft(r),f=e.firstCreatePass&&Ey(e),h=n[Me],g=Cy(n);let b=!0;if(3&r.type||a){const k=Gt(r,n),T=a?a(k):k,V=g.length,O=a?ee=>a(Ve(ee[r.index])):r.index;let U=null;if(!a&&u&&(U=function hF(e,n,t,r){const o=e.cleanup;if(null!=o)for(let s=0;sd?u[d]:null}"string"==typeof a&&(s+=2)}return null}(e,n,o,r.index)),null!==U)(U.__ngLastListenerFn__||U).__ngNextListenerFn__=s,U.__ngLastListenerFn__=s,b=!1;else{s=uv(r,n,h,s,!1);const ee=t.listen(T,o,s);g.push(s,ee),f&&f.push(o,O,V,V+1)}}else s=uv(r,n,h,s,!1);const v=r.outputs;let I;if(b&&null!==v&&(I=v[o])){const k=I.length;if(k)for(let T=0;T-1?gn(e.index,n):n);let d=lv(n,t,r,a),f=s.__ngNextListenerFn__;for(;f;)d=lv(n,t,f,a)&&d,f=f.__ngNextListenerFn__;return o&&!1===d&&a.preventDefault(),d}}function Y(e=1){return function UI(e){return(oe.lFrame.contextLView=function ug(e,n){for(;e>0;)n=n[Do],e--;return n}(e,oe.lFrame.contextLView))[Me]}(e)}function gF(e,n){let t=null;const r=function Rc(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(!(1&t))return n[t+1]}return null}(e);for(let o=0;o(Br(!0),function Nl(e,n){return e.createText(n)}(n[re],r));function _s(e){return jt("",e,""),_s}function jt(e,n,t){const r=F(),o=ts(r,e,n,t);return o!==de&&Sr(r,Pt(),o),jt}function Ha(e,n,t,r,o){const s=F(),a=ns(s,e,n,t,r,o);return a!==de&&Sr(s,Pt(),a),Ha}function fp(e,n,t,r,o){if(e=ne(e),Array.isArray(e))for(let s=0;s>20;if(Ao(e)||!e.multi){const v=new aa(f,o,P),I=hp(d,n,o?h:h+b,g);-1===I?(R_(vl(u,a),s,d),pp(s,e,n.length),n.push(d),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),t.push(v),a.push(v)):(t[I]=v,a[I]=v)}else{const v=hp(d,n,h+b,g),I=hp(d,n,h,h+b),T=I>=0&&t[I];if(o&&!T||!o&&!(v>=0&&t[v])){R_(vl(u,a),s,d);const V=function LF(e,n,t,r,o){const s=new aa(e,t,P);return s.multi=[],s.index=n,s.componentProviders=0,Bv(s,o,r&&!t),s}(o?PF:OF,t.length,o,r,f);!o&&T&&(t[I].providerFactory=V),pp(s,e,n.length,0),n.push(d),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),t.push(V),a.push(V)}else pp(s,e,v>-1?v:I,Bv(t[o?I:v],f,!o&&r));!o&&r&&T&&t[I].componentProviders++}}}function pp(e,n,t,r){const o=Ao(n),s=function S1(e){return!!e.useClass}(n);if(o||s){const d=(s?ne(n.useClass):n).prototype.ngOnDestroy;if(d){const f=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){const h=f.indexOf(t);-1===h?f.push(t,[r,d]):f[h+1].push(r,d)}else f.push(t,d)}}}function Bv(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function hp(e,n,t,r){for(let o=t;o{t.providersResolver=(r,o)=>function xF(e,n,t){const r=be();if(r.firstCreatePass){const o=rt(e);fp(t,r.data,r.blueprint,o,!0),fp(n,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,n)}}let VF=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=w_(0,t.type),o=r.length>0?function Ow(e,n,t=null){return new xw({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,o)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=ae({token:e,providedIn:"environment",factory:()=>new e(X($n))})}return e})();function Bt(e){(function cr(e){Gy.has(e)||(Gy.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))})("NgStandalone"),e.getStandaloneInjector=n=>n.get(VF).getOrCreateStandaloneInjector(e)}function yp(e,n,t){const r=Wt()+e,o=F();return o[r]===de?ur(o,r,t?n.call(t):n()):function Na(e,n){return e[n]}(o,r)}function fs(e,n,t,r){return function Qv(e,n,t,r,o,s){const a=n+t;return st(e,a,o)?ur(e,a+1,s?r.call(s,o):r(o)):Ua(e,a+1)}(F(),Wt(),e,n,t,r)}function ps(e,n,t,r,o){return function Zv(e,n,t,r,o,s,a){const u=n+t;return Vo(e,u,o,s)?ur(e,u+2,a?r.call(a,o,s):r(o,s)):Ua(e,u+2)}(F(),Wt(),e,n,t,r,o)}function Kv(e,n,t,r,o,s){return function Yv(e,n,t,r,o,s,a,u){const d=n+t;return function tu(e,n,t,r,o){const s=Vo(e,n,t,r);return st(e,n+2,o)||s}(e,d,o,s,a)?ur(e,d+3,u?r.call(u,o,s,a):r(o,s,a)):Ua(e,d+3)}(F(),Wt(),e,n,t,r,o,s)}function Ua(e,n){const t=e[n];return t===de?void 0:t}function zo(e,n){return Ul(e,n)}const bD=new G("");function wu(e){return!!e&&"function"==typeof e.then}function vD(e){return!!e&&"function"==typeof e.subscribe}const DD=new G("");let bu=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=se(DD,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const o of this.appInits){const s=o();if(wu(s))t.push(s);else if(vD(s)){const a=new Promise((u,d)=>{s.subscribe({complete:u,error:d})});t.push(a)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(o=>{this.reject(o)}),0===t.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const CD=new G("");let qo=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=se(vm),this.afterRenderEffectManager=se(Sa),this.componentTypes=[],this.components=[],this.isStable=se(Lo).hasPendingTasks.pipe(er(t=>!t)),this._injector=se($n)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const o=t instanceof $y;if(!this._injector.get(bu).done)throw!o&&function tr(e){const n=ue(e)||ot(e)||tt(e);return null!==n&&n.standalone}(t),new B(405,!1);let a;a=o?t:this._injector.get(Wl).resolveComponentFactory(t),this.componentTypes.push(a.componentType);const u=function tx(e){return e.isBoundToModule}(a)?void 0:this._injector.get(Po),f=a.create(yn.NULL,[],r||a.selector,u),h=f.location.nativeElement,g=f.injector.get(bD,null);return g?.registerApplication(h),f.onDestroy(()=>{this.detachView(f.hostView),vu(this.components,f),g?.unregisterApplication(h)}),this._loadComponent(f),f}tick(){if(this._runningTick)throw new B(101,!1);const t=C(null);try{this._runningTick=!0,this.detectChangesInAttachedViews()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,C(t)}}detectChangesInAttachedViews(){let t=0;const r=this.afterRenderEffectManager;for(;;){if(100===t)throw new B(103,!1);const o=0===t;for(let{_lView:s,notifyErrorHandler:a}of this._views)!o&&!Mp(s)||this.detectChangesInView(s,a,o);if(t++,r.executeInternalCallbacks(),!this._views.some(({_lView:s})=>Mp(s))&&(r.execute(),!this._views.some(({_lView:s})=>Mp(s))))break}}detectChangesInView(t,r,o){let s;o?(s=0,t[J]|=1024):s=64&t[J]?0:1,Hl(t,r,s)}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;vu(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(CD,[]);[...this._bootstrapListeners,...r].forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>vu(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new B(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vu(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function Mp(e){return Fd(e)}let sx=(()=>{class e{constructor(){this.zone=se(Ge),this.applicationRef=se(qo)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function kD(e){return[{provide:Ge,useFactory:e},{provide:Ri,multi:!0,useFactory:()=>{const n=se(sx,{optional:!0});return()=>n.initialize()}},{provide:Ri,multi:!0,useFactory:()=>{const n=se(lx);return()=>{n.initialize()}}},{provide:vm,useFactory:ax}]}function ax(){const e=se(Ge),n=se(Er);return t=>e.runOutsideAngular(()=>n.handleError(t))}function cx(e){return dl([[],kD(()=>new Ge(function TD(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}(e)))])}let lx=(()=>{class e{constructor(){this.subscription=new Qe,this.initialized=!1,this.zone=se(Ge),this.pendingTasks=se(Lo)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ge.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ge.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const kr=new G("",{providedIn:"root",factory:()=>se(kr,ge.Optional|ge.SkipSelf)||function ux(){return typeof $localize<"u"&&$localize.locale||ds}()}),kp=new G("");let Kr=null;let vn=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=gx}return e})();function gx(e){return function mx(e,n,t){if(nt(e)&&!t){const r=gn(e.index,n);return new va(r,r)}return 47&e.type?new va(n[$e],n):null}(Pe(),F(),16==(16&e))}class VD{constructor(){}supports(n){return eu(n)}create(n){return new Dx(n)}}const vx=(e,n)=>n;class Dx{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||vx}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,o=0,s=null;for(;t||r;){const a=!r||t&&t.currentIndex{a=this._trackByFn(o,u),null!==t&&Object.is(t.trackById,a)?(r&&(t=this._verifyReinsertion(t,u,a,o)),Object.is(t.item,u)||this._addIdentityChange(t,u)):(t=this._mismatch(t,u,a,o),r=!0),t=t._next,o++}),this.length=o;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,r,o){let s;return null===n?s=this._itTail:(s=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,s,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,s,o)):n=this._addAfter(new Cx(t,r),s,o),n}_verifyReinsertion(n,t,r,o){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?n=this._reinsertAfter(s,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,s=n._nextRemoved;return null===o?this._removalsHead=s:o._nextRemoved=s,null===s?this._removalsTail=o:s._prevRemoved=o,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const o=null===t?this._itHead:t._next;return n._next=o,n._prev=t,null===o?this._itTail=n:o._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new jD),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new jD),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Cx{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ex{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class jD{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new Ex,this.map.set(t,r)),r.add(n)}get(n,t){const o=this.map.get(n);return o?o.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function BD(e,n,t){const r=e.previousIndex;if(null===r)return r;let o=0;return t&&r{class e{static#e=this.\u0275prov=ae({token:e,providedIn:"root",factory:UD});constructor(t){this.factories=t}static create(t,r){if(null!=r){const o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||UD()),deps:[[e,new m_,new g_]]}}find(t){const r=this.factories.find(o=>o.supports(t));if(null!=r)return r;throw new B(901,!1)}}return e})();function zx(e){try{const{rootComponent:n,appProviders:t,platformProviders:r}=e,o=function hx(e=[]){if(Kr)return Kr;const n=function FD(e=[],n){return yn.create({name:n,providers:[{provide:D_,useValue:"platform"},{provide:kp,useValue:new Set([()=>Kr=null])},...e]})}(e);return Kr=n,function ED(){!function Zh(e){pc=e}(()=>{throw new B(600,!1)})}(),function RD(e){e.get(Fg,null)?.forEach(t=>t())}(n),n}(r),s=[cx(),...t||[]],u=new xw({providers:s,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,d=u.get(Ge);return d.run(()=>{u.resolveInjectorInitializers();const f=u.get(Er,null);let h;d.runOutsideAngular(()=>{h=d.onError.subscribe({next:v=>{f.handleError(v)}})});const g=()=>u.destroy(),b=o.get(kp);return b.add(g),u.onDestroy(()=>{h.unsubscribe(),b.delete(g)}),function ID(e,n,t){try{const r=t();return wu(r)?r.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(f,d,()=>{const v=u.get(bu);return v.runInitializers(),v.donePromise.then(()=>{!function Vb(e){"string"==typeof e&&(Lb=e.toLowerCase().replace(/_/g,"-"))}(u.get(kr,ds)||ds);const k=u.get(qo);return void 0!==n&&k.bootstrap(n),k})})})}catch(n){return Promise.reject(n)}}function Vp(e){return e[e.length-1]}function Qr(e){return this instanceof Qr?(this.v=e,this):new Qr(e)}function h0(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function Up(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=e[s]&&function(a){return new Promise(function(u,d){!function o(s,a,u,d){Promise.resolve(d).then(function(f){s({value:f,done:u})},a)}(u,d,(a=e[s](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const g0=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function m0(e){return Xe(e?.then)}function y0(e){return Xe(e[Or])}function w0(e){return Symbol.asyncIterator&&Xe(e?.[Symbol.asyncIterator])}function b0(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const v0=function RO(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function D0(e){return Xe(e?.[v0])}function C0(e){return function p0(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=t.apply(e,n||[]),s=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(b){r[b]&&(o[b]=function(v){return new Promise(function(I,k){s.push([b,v,I,k])>1||u(b,v)})})}function u(b,v){try{!function d(b){b.value instanceof Qr?Promise.resolve(b.value.v).then(f,h):g(s[0][2],b)}(r[b](v))}catch(I){g(s[0][3],I)}}function f(b){u("next",b)}function h(b){u("throw",b)}function g(b,v){b(v),s.shift(),s.length&&u(s[0][0],s[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:o}=yield Qr(t.read());if(o)return yield Qr(void 0);yield yield Qr(r)}}finally{t.releaseLock()}})}function E0(e){return Xe(e?.getReader)}function Wo(e){if(e instanceof St)return e;if(null!=e){if(y0(e))return function xO(e){return new St(n=>{const t=e[Or]();if(Xe(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(g0(e))return function OO(e){return new St(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Ln)})}(e);if(w0(e))return I0(e);if(D0(e))return function LO(e){return new St(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(E0(e))return function VO(e){return I0(C0(e))}(e)}throw b0(e)}function I0(e){return new St(n=>{(function jO(e,n){var t,r,o,s;return function _0(e,n,t,r){return new(t||(t=Promise))(function(s,a){function u(h){try{f(r.next(h))}catch(g){a(g)}}function d(h){try{f(r.throw(h))}catch(g){a(g)}}function f(h){h.done?s(h.value):function o(s){return s instanceof t?s:new t(function(a){a(s)})}(h.value).then(u,d)}f((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=h0(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(a){o={error:a}}finally{try{r&&!r.done&&(s=t.return)&&(yield s.call(t))}finally{if(o)throw o.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function Zr(e,n,t,r=0,o=!1){const s=n.schedule(function(){t(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(s),!o)return s}function S0(e,n=0){return Xn((t,r)=>{t.subscribe(Ie(r,o=>Zr(r,e,()=>r.next(o),n),()=>Zr(r,e,()=>r.complete(),n),o=>Zr(r,e,()=>r.error(o),n)))})}function M0(e,n=0){return Xn((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function k0(e,n){if(!e)throw new Error("Iterable cannot be null");return new St(t=>{Zr(t,n,()=>{const r=e[Symbol.asyncIterator]();Zr(t,n,()=>{r.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function $p(e,n){return n?function qO(e,n){if(null!=e){if(y0(e))return function BO(e,n){return Wo(e).pipe(M0(n),S0(n))}(e,n);if(g0(e))return function UO(e,n){return new St(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(m0(e))return function HO(e,n){return Wo(e).pipe(M0(n),S0(n))}(e,n);if(w0(e))return k0(e,n);if(D0(e))return function $O(e,n){return new St(t=>{let r;return Zr(t,n,()=>{r=e[v0](),Zr(t,n,()=>{let o,s;try{({value:o,done:s}=r.next())}catch(a){return void t.error(a)}s?t.complete():t.next(o)},0,!0)}),()=>Xe(r?.return)&&r.return()})}(e,n);if(E0(e))return function zO(e,n){return k0(C0(e),n)}(e,n)}throw b0(e)}(e,n):Wo(e)}function T0(...e){return $p(e,function dO(e){return function lO(e){return e&&Xe(e.schedule)}(Vp(e))?e.pop():void 0}(e))}function zp(e,n,t=1/0){return Xe(n)?zp((r,o)=>er((s,a)=>n(r,s,o,a))(Wo(e(r,o))),t):("number"==typeof n&&(t=n),Xn((r,o)=>function GO(e,n,t,r,o,s,a,u){const d=[];let f=0,h=0,g=!1;const b=()=>{g&&!d.length&&!f&&n.complete()},v=k=>f{s&&n.next(k),f++;let T=!1;Wo(t(k,h++)).subscribe(Ie(n,V=>{o?.(V),s?v(V):n.next(V)},()=>{T=!0},void 0,()=>{if(T)try{for(f--;d.length&&fI(V)):I(V)}b()}catch(V){n.error(V)}}))};return e.subscribe(Ie(n,v,()=>{g=!0,b()})),()=>{u?.()}}(r,o,e,t)))}function A0(e){return Xn((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}let N0=null;function Ja(){return N0}class ZO{}const Tr=new G("");function B0(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[o,s]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(o.trim()===n)return decodeURIComponent(s)}return null}const eh=/\s+/,H0=[];let Jo=(()=>{class e{constructor(t,r){this._ngEl=t,this._renderer=r,this.initialClasses=H0,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(eh):H0}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(eh):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){const o=this.stateMap.get(t);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],o=t[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(eh).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static#e=this.\u0275fac=function(r){return new(r||e)(P(Tn),P(Ro))};static#t=this.\u0275dir=te({type:e,selectors:[["","ngClass",""]],inputs:{klass:[xe.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return e})();class VP{constructor(n,t,r,o){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Qa=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,o){this._viewContainer=t,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((o,s,a)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new VP(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)r.remove(null===s?void 0:s);else if(null!==s){const u=r.get(s);r.move(u,a),$0(u,o)}});for(let o=0,s=r.length;o{$0(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(t,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(P(lr),P(Mr),P(xp))};static#t=this.\u0275dir=te({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return e})();function $0(e,n){e.context.$implicit=n.item}let Wn=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new jP,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){z0("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){z0("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(P(lr),P(Mr))};static#t=this.\u0275dir=te({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class jP{constructor(){this.$implicit=null,this.ngIf=null}}function z0(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${et(n)}'.`)}let G0=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,o)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,r,o),get:(t,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static#e=this.\u0275fac=function(r){return new(r||e)(P(lr))};static#t=this.\u0275dir=te({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Cr]})}return e})(),ht=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=qt({type:e});static#n=this.\u0275inj=or({})}return e})();function K0(e){return"server"===e}class Q0{}class zu{}class qu{}class On{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const o=t.slice(0,r),s=o.toLowerCase(),a=t.slice(r+1).trim();this.maybeSetNormalizedName(o,s),this.headers.has(s)?this.headers.get(s).push(a):this.headers.set(s,[a])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof On?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new On;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof On?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const o=("a"===n.op?this.headers.get(t):void 0)||[];o.push(...r),this.headers.set(t,o);break;case"d":const s=n.value;if(s){let a=this.headers.get(t);if(!a)return;a=a.filter(u=>-1===s.indexOf(u)),0===a.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,a)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(n,t){const r=(Array.isArray(t)?t:[t]).map(s=>s.toString()),o=n.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class z2{encodeKey(n){return iC(n)}encodeValue(n){return iC(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const G2=/%(\d[a-f0-9])/gi,W2={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function iC(e){return encodeURIComponent(e).replace(G2,(n,t)=>W2[t]??n)}function Gu(e){return`${e}`}class Yr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new z2,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function q2(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const s=o.indexOf("="),[a,u]=-1==s?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,s)),n.decodeValue(o.slice(s+1))],d=t.get(a)||[];d.push(u),t.set(a,d)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],o=Array.isArray(r)?r.map(Gu):[Gu(r)];this.map.set(t,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const o=n[r];Array.isArray(o)?o.forEach(s=>{t.push({param:r,value:s,op:"a"})}):t.push({param:r,value:o,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new Yr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(Gu(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const o=r.indexOf(Gu(n.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class J2{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function sC(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function aC(e){return typeof Blob<"u"&&e instanceof Blob}function cC(e){return typeof FormData<"u"&&e instanceof FormData}class Xa{constructor(n,t,r,o){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function K2(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,s=o):s=r,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new On,this.context??=new J2,this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=t;else{const u=t.indexOf("?");this.urlWithParams=t+(-1===u?"?":ug.set(b,n.setHeaders[b]),d)),n.setParams&&(f=Object.keys(n.setParams).reduce((g,b)=>g.set(b,n.setParams[b]),f)),new Xa(t,r,s,{params:f,headers:d,context:h,reportProgress:u,responseType:o,withCredentials:a})}}var Xr=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Xr||{});class sh{constructor(n,t=ec.Ok,r="OK"){this.headers=n.headers||new On,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Wu extends sh{constructor(n={}){super(n),this.type=Xr.ResponseHeader}clone(n={}){return new Wu({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Ko extends sh{constructor(n={}){super(n),this.type=Xr.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Ko({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class ws extends sh{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var ec=function(e){return e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e}(ec||{});function ah(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}let Z2=(()=>{class e{constructor(t){this.handler=t}request(t,r,o={}){let s;if(t instanceof Xa)s=t;else{let d,f;d=o.headers instanceof On?o.headers:new On(o.headers),o.params&&(f=o.params instanceof Yr?o.params:new Yr({fromObject:o.params})),s=new Xa(t,r,void 0!==o.body?o.body:null,{headers:d,context:o.context,params:f,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const a=T0(s).pipe(function WO(e,n){return Xe(n)?zp(e,n,1):zp(e,1)}(d=>this.handler.handle(d)));if(t instanceof Xa||"events"===o.observe)return a;const u=a.pipe(function JO(e,n){return Xn((t,r)=>{let o=0;t.subscribe(Ie(r,s=>e.call(n,s,o++)&&r.next(s)))})}(d=>d instanceof Ko));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(er(d=>{if(null!==d.body&&!(d.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return d.body}));case"blob":return u.pipe(er(d=>{if(null!==d.body&&!(d.body instanceof Blob))throw new Error("Response is not a Blob.");return d.body}));case"text":return u.pipe(er(d=>{if(null!==d.body&&"string"!=typeof d.body)throw new Error("Response is not a string.");return d.body}));default:return u.pipe(er(d=>d.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Yr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,o={}){return this.request("PATCH",t,ah(o,r))}post(t,r,o={}){return this.request("POST",t,ah(o,r))}put(t,r,o={}){return this.request("PUT",t,ah(o,r))}static#e=this.\u0275fac=function(r){return new(r||e)(X(zu))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})();function uC(e,n){return n(e)}function nL(e,n){return(t,r)=>n.intercept(t,{handle:o=>e(o,r)})}const oL=new G(""),tc=new G(""),dC=new G(""),_C=new G("");function iL(){let e=null;return(n,t)=>{null===e&&(e=(se(oL,{optional:!0})??[]).reduceRight(nL,uC));const r=se(Lo),o=r.add();return e(n,t).pipe(A0(()=>r.remove(o)))}}let fC=(()=>{class e extends zu{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=se(Lo);const o=se(_C,{optional:!0});this.backend=o??t}handle(t){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(tc),...this.injector.get(dC,[])]));this.chain=o.reduceRight((s,a)=>function rL(e,n,t){return(r,o)=>function R1(e,n){e instanceof xi&&e.assertNotDestroyed();const r=Ur(e),o=on(void 0);try{return n()}finally{Ur(r),on(o)}}(t,()=>n(r,s=>e(s,o)))}(s,a,this.injector),uC)}const r=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(A0(()=>this.pendingTasks.remove(r)))}static#e=this.\u0275fac=function(r){return new(r||e)(X(qu),X($n))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})();const uL=/^\)\]\}',?\n/;let hC=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new B(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?$p(r.\u0275loadImpl()):T0(null)).pipe(function KO(e,n){return Xn((t,r)=>{let o=null,s=0,a=!1;const u=()=>a&&!o&&r.complete();t.subscribe(Ie(r,d=>{o?.unsubscribe();let f=0;const h=s++;Wo(e(d,h)).subscribe(o=Ie(r,g=>r.next(n?n(d,g,h,f++):g),()=>{o=null,u()}))},()=>{a=!0,u()}))})}(()=>new St(s=>{const a=r.build();if(a.open(t.method,t.urlWithParams),t.withCredentials&&(a.withCredentials=!0),t.headers.forEach((k,T)=>a.setRequestHeader(k,T.join(","))),t.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const k=t.detectContentTypeHeader();null!==k&&a.setRequestHeader("Content-Type",k)}if(t.responseType){const k=t.responseType.toLowerCase();a.responseType="json"!==k?k:"text"}const u=t.serializeBody();let d=null;const f=()=>{if(null!==d)return d;const k=a.statusText||"OK",T=new On(a.getAllResponseHeaders()),V=function dL(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(a)||t.url;return d=new Wu({headers:T,status:a.status,statusText:k,url:V}),d},h=()=>{let{headers:k,status:T,statusText:V,url:O}=f(),U=null;T!==ec.NoContent&&(U=typeof a.response>"u"?a.responseText:a.response),0===T&&(T=U?ec.Ok:0);let ee=T>=200&&T<300;if("json"===t.responseType&&"string"==typeof U){const fe=U;U=U.replace(uL,"");try{U=""!==U?JSON.parse(U):null}catch(Fe){U=fe,ee&&(ee=!1,U={error:Fe,text:U})}}ee?(s.next(new Ko({body:U,headers:k,status:T,statusText:V,url:O||void 0})),s.complete()):s.error(new ws({error:U,headers:k,status:T,statusText:V,url:O||void 0}))},g=k=>{const{url:T}=f(),V=new ws({error:k,status:a.status||0,statusText:a.statusText||"Unknown Error",url:T||void 0});s.error(V)};let b=!1;const v=k=>{b||(s.next(f()),b=!0);let T={type:Xr.DownloadProgress,loaded:k.loaded};k.lengthComputable&&(T.total=k.total),"text"===t.responseType&&a.responseText&&(T.partialText=a.responseText),s.next(T)},I=k=>{let T={type:Xr.UploadProgress,loaded:k.loaded};k.lengthComputable&&(T.total=k.total),s.next(T)};return a.addEventListener("load",h),a.addEventListener("error",g),a.addEventListener("timeout",g),a.addEventListener("abort",g),t.reportProgress&&(a.addEventListener("progress",v),null!==u&&a.upload&&a.upload.addEventListener("progress",I)),a.send(u),s.next({type:Xr.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",h),a.removeEventListener("timeout",g),t.reportProgress&&(a.removeEventListener("progress",v),null!==u&&a.upload&&a.upload.removeEventListener("progress",I)),a.readyState!==a.DONE&&a.abort()}})))}static#e=this.\u0275fac=function(r){return new(r||e)(X(Q0))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})();const uh=new G(""),gC=new G("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),mC=new G("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class yC{}let pL=(()=>{class e{constructor(t,r,o){this.doc=t,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=B0(t,this.cookieName),this.lastCookieString=t),this.lastToken}static#e=this.\u0275fac=function(r){return new(r||e)(X(Tr),X(ko),X(gC))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})();function hL(e,n){const t=e.url.toLowerCase();if(!se(uh)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=se(yC).getToken(),o=se(mC);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),n(e)}var eo=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(eo||{});function gL(...e){const n=[Z2,hC,fC,{provide:zu,useExisting:fC},{provide:qu,useExisting:hC},{provide:tc,useValue:hL,multi:!0},{provide:uh,useValue:!0},{provide:yC,useClass:pL}];for(const t of e)n.push(...t.\u0275providers);return dl(n)}const wC=new G("");function mL(){return function Qo(e,n){return{\u0275kind:e,\u0275providers:n}}(eo.LegacyInterceptors,[{provide:wC,useFactory:iL},{provide:tc,useExisting:wC,multi:!0}])}let yL=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=qt({type:e});static#n=this.\u0275inj=or({providers:[gL(mL())]})}return e})();class EL extends ZO{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class dh extends EL{static makeCurrent(){!function QO(e){N0??=e}(new dh)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function IL(){return nc=nc||document.querySelector("base"),nc?nc.getAttribute("href"):null}();return null==t?null:function SL(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){nc=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return B0(document.cookie,n)}}let nc=null,kL=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})();const _h=new G("");let SC=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,o){return this._findPluginFor(r).addEventListener(t,r,o)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(s=>s.supports(t)),!r)throw new B(5101,!1);return this._eventNameToPlugin.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(X(_h),X(Ge))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})();class MC{constructor(n){this._doc=n}}const fh="ng-app-id";let kC=(()=>{class e{constructor(t,r,o,s={}){this.doc=t,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=K0(s),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(o=>o.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${fh}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(t,r){const o=this.styleRef;if(o.has(t)){const s=o.get(t);return s.usage+=r,s.usage}return o.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===t)return o.delete(r),s.removeAttribute(fh),s;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(fh,this.appId),t.appendChild(a),a}}addStyleToHost(t,r){const o=this.getStyleElement(t,r),s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(X(Tr),X(Jd),X(Rg,8),X(ko))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})();const ph={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},hh=/%COMP%/g,FL=new G("",{providedIn:"root",factory:()=>!0});function AC(e,n){return n.map(t=>t.replace(hh,e))}let NC=(()=>{class e{constructor(t,r,o,s,a,u,d,f=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=d,this.nonce=f,this.rendererByCompId=new Map,this.platformIsServer=K0(u),this.defaultRenderer=new gh(t,a,d,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Sn.ShadowDom&&(r={...r,encapsulation:Sn.Emulated});const o=this.getOrCreateRenderer(t,r);return o instanceof RC?o.applyToHost(t):o instanceof mh&&o.applyStyles(),o}getOrCreateRenderer(t,r){const o=this.rendererByCompId;let s=o.get(r.id);if(!s){const a=this.doc,u=this.ngZone,d=this.eventManager,f=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,g=this.platformIsServer;switch(r.encapsulation){case Sn.Emulated:s=new RC(d,f,r,this.appId,h,a,u,g);break;case Sn.ShadowDom:return new PL(d,f,t,r,a,u,this.nonce,g);default:s=new mh(d,f,r,h,a,u,g)}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(X(SC),X(kC),X(Jd),X(FL),X(Tr),X(ko),X(Ge),X(Rg))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})();class gh{constructor(n,t,r,o){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(ph[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(FC(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(FC(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new B(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,o){if(o){t=o+":"+t;const s=ph[o];s?n.setAttributeNS(s,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const o=ph[r];o?n.removeAttributeNS(o,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,o){o&(qr.DashCase|qr.Important)?n.style.setProperty(t,r,o&qr.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&qr.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){null!=n&&(n[t]=r)}setValue(n,t){n.nodeValue=t}listen(n,t,r){if("string"==typeof n&&!(n=Ja().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function FC(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class PL extends gh{constructor(n,t,r,o,s,a,u,d){super(n,s,a,d),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const f=AC(o.id,o.styles);for(const h of f){const g=document.createElement("style");u&&g.setAttribute("nonce",u),g.textContent=h,this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class mh extends gh{constructor(n,t,r,o,s,a,u,d){super(n,s,a,u),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=o,this.styles=d?AC(d,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class RC extends mh{constructor(n,t,r,o,s,a,u,d){const f=o+"-"+r.id;super(n,t,r,s,a,u,d,f),this.contentAttr=function RL(e){return"_ngcontent-%COMP%".replace(hh,e)}(f),this.hostAttr=function xL(e){return"_nghost-%COMP%".replace(hh,e)}(f)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}const xC=["alt","control","meta","shift"],VL={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},jL={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};function OC(e){return{appProviders:[...WL,...e?.providers??[]],platformProviders:qL}}const qL=[{provide:ko,useValue:"browser"},{provide:Fg,useValue:function UL(){dh.makeCurrent()},multi:!0},{provide:Tr,useFactory:function zL(){return function KI(e){Gd=e}(document),document},deps:[]}],WL=[{provide:D_,useValue:"root"},{provide:Er,useFactory:function $L(){return new Er},deps:[]},{provide:_h,useClass:(()=>{class e extends MC{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,o){return t.addEventListener(r,o,!1),()=>this.removeEventListener(t,r,o)}removeEventListener(t,r,o){return t.removeEventListener(r,o)}static#e=this.\u0275fac=function(r){return new(r||e)(X(Tr))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})(),multi:!0,deps:[Tr,Ge,ko]},{provide:_h,useClass:(()=>{class e extends MC{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,o){const s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ja().onAndCancel(t,s.domEventName,a))}static parseEventName(t){const r=t.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const s=e._normalizeKey(r.pop());let a="",u=r.indexOf("code");if(u>-1&&(r.splice(u,1),a="code."),xC.forEach(f=>{const h=r.indexOf(f);h>-1&&(r.splice(h,1),a+=f+".")}),a+=s,0!=r.length||0===s.length)return null;const d={};return d.domEventName=o,d.fullKey=a,d}static matchEventFullKeyCode(t,r){let o=VL[t.key]||t.key,s="";return r.indexOf("code.")>-1&&(o=t.code,s="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),xC.forEach(a=>{a!==o&&(0,jL[a])(t)&&(s+=a+".")}),s+=o,s===r)}static eventCallback(t,r,o){return s=>{e.matchEventFullKeyCode(s,t)&&o.runGuarded(()=>r(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(r){return new(r||e)(X(Tr))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})(),multi:!0,deps:[Tr]},NC,kC,SC,{provide:qy,useExisting:NC},{provide:Q0,useClass:kL,deps:[]},[]];var me=Ct(8596);const oc=new G("SDK"),jC=new G("wasm_asset_path"),BC=new G("node_address"),HC=new G("verbosity"),XL=function YL(e,n){const t={value:void 0};return[{provide:DD,useFactory:(r,o,s)=>(0,j.c)(function*(){return t.value=yield n({wasm_asset_path:r,node_address:o,verbosity:s})}),multi:!0,deps:[jC,BC,HC]},{provide:e,useFactory:()=>{if(!se(bu).done)throw new Error(`Cannot inject ${e} until bootstrap is complete.`);return t.value}}]}(oc,function(){var e=(0,j.c)(function*(n){return(yield(0,me.cp)(n.wasm_asset_path))&&new me.EB(n.node_address,n.verbosity)});return function(t){return e.apply(this,arguments)}}());let eV=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=qt({type:e});static#n=this.\u0275inj=or({providers:XL,imports:[ht]})}return e})();const Fr=new G("EnvironmentConfig"),yh=new G("EnvironmentConfig"),UC=["deploy","transfer","put_deploy","speculative_deploy","speculative_transfer","speculative_exec","sign_deploy","call_entrypoint","install"],tV=["make_deploy","make_transfer",...UC],wh={wasm_asset_path:"assets/casper_rust_wasm_sdk_bg.wasm",default_action:"get_node_status",verbosity:me.qY.High,minimum_transfer:"2500000000",TTL:"30m",gas_fee_transfer:"100000000",action_needs_private_key:UC,action_needs_public_key:tV,networks:{localhost:{node_address:"http://localhost:11101",chain_name:"casper-net-1"},integration:{node_address:"https://rpc.integration.casperlabs.io",chain_name:"integration-test"},testnet:{node_address:"https://rpc.testnet.casperlabs.io",chain_name:"casper-test"},mainnet:{node_address:"https://rpc.mainnet.casperlabs.io",chain_name:"casper"},ip:{node_address:"http://3.136.227.9:7777",chain_name:"integration-test"}},default_port:"7777",default_protocol:"http://"},bh={production:!0,node_address:"https://rpc.integration.casperlabs.io",chain_name:"integration-test"},{isArray:nV}=Array,{getPrototypeOf:rV,prototype:oV,keys:iV}=Object;const{isArray:cV}=Array;function dV(e,n){return e.reduce((t,r,o)=>(t[r]=n[o],t),{})}function _V(...e){const n=function uO(e){return Xe(Vp(e))?e.pop():void 0}(e),{args:t,keys:r}=function sV(e){if(1===e.length){const n=e[0];if(nV(n))return{args:n,keys:null};if(function aV(e){return e&&"object"==typeof e&&rV(e)===oV}(n)){const t=iV(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}(e),o=new St(s=>{const{length:a}=t;if(!a)return void s.complete();const u=new Array(a);let d=a,f=a;for(let h=0;h{g||(g=!0,f--),u[h]=b},()=>d--,void 0,()=>{(!d||!g)&&(f||s.next(r?dV(r,u):u),s.complete())}))}});return n?o.pipe(function uV(e){return er(n=>function lV(e,n){return cV(n)?e(...n):e(n)}(e,n))}(n)):o}let $C=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#e=this.\u0275fac=function(r){return new(r||e)(P(Ro),P(Tn))};static#t=this.\u0275dir=te({type:e})}return e})(),Zo=(()=>{class e extends $C{static#e=this.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})();static#t=this.\u0275dir=te({type:e,features:[Le]})}return e})();const fr=new G(""),fV={provide:fr,useExisting:qe(()=>vh),multi:!0};let vh=(()=>{class e extends Zo{writeValue(t){this.setProperty("checked",t)}static#e=this.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})();static#t=this.\u0275dir=te({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){1&r&&ve("change",function(a){return o.onChange(a.target.checked)})("blur",function(){return o.onTouched()})},features:[Ye([fV]),Le]})}return e})();const pV={provide:fr,useExisting:qe(()=>ic),multi:!0},gV=new G("");let ic=(()=>{class e extends $C{constructor(t,r,o){super(t,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function hV(){const e=Ja()?Ja().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static#e=this.\u0275fac=function(r){return new(r||e)(P(Ro),P(Tn),P(gV,8))};static#t=this.\u0275dir=te({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){1&r&&ve("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Ye([pV]),Le]})}return e})();function to(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function zC(e){return null!=e&&"number"==typeof e.length}const Ht=new G(""),no=new G(""),mV=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class yV{static min(n){return function qC(e){return n=>{if(to(n.value)||to(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t{if(to(n.value)||to(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function WC(e){return to(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function JC(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function KC(e){return to(e.value)||mV.test(e.value)?null:{email:!0}}(n)}static minLength(n){return function QC(e){return n=>to(n.value)||!zC(n.value)?null:n.value.lengthzC(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}function YC(e){if(!e)return Ku;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(to(r.value))return null;const o=r.value;return n.test(o)?null:{pattern:{requiredPattern:t,actualValue:o}}}}function Ku(e){return null}function XC(e){return null!=e}function eE(e){return wu(e)?$p(e):e}function tE(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function nE(e,n){return n.map(t=>t(e))}function rE(e){return e.map(n=>function wV(e){return!e.validate}(n)?n:t=>n.validate(t))}function oE(e){if(!e)return null;const n=e.filter(XC);return 0==n.length?null:function(t){return tE(nE(t,n))}}function Dh(e){return null!=e?oE(rE(e)):null}function iE(e){if(!e)return null;const n=e.filter(XC);return 0==n.length?null:function(t){return _V(nE(t,n).map(eE)).pipe(er(tE))}}function Ch(e){return null!=e?iE(rE(e)):null}function sE(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function aE(e){return e._rawValidators}function cE(e){return e._rawAsyncValidators}function Eh(e){return e?Array.isArray(e)?e:[e]:[]}function Qu(e,n){return Array.isArray(e)?e.includes(n):e===n}function lE(e,n){const t=Eh(n);return Eh(e).forEach(o=>{Qu(t,o)||t.push(o)}),t}function uE(e,n){return Eh(n).filter(t=>!Qu(e,t))}class dE{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Dh(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Ch(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class Yt extends dE{get formDirective(){return null}get path(){return null}}class ro extends dE{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class _E{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Ih=(()=>{class e extends _E{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(P(ro,2))};static#t=this.\u0275dir=te({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){2&r&&cu("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Le]})}return e})(),Zu=(()=>{class e extends _E{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(P(Yt,10))};static#t=this.\u0275dir=te({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){2&r&&cu("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[Le]})}return e})();const sc="VALID",Xu="INVALID",bs="PENDING",ac="DISABLED";function kh(e){return(ed(e)?e.validators:e)||null}function Th(e,n){return(ed(n)?n.asyncValidators:e)||null}function ed(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function pE(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new B(1e3,"");if(!r[t])throw new B(1001,"")}function hE(e,n,t){e._forEachChild((r,o)=>{if(void 0===t[o])throw new B(1002,"")})}class td{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===sc}get invalid(){return this.status===Xu}get pending(){return this.status==bs}get disabled(){return this.status===ac}get enabled(){return this.status!==ac}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(lE(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(lE(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(uE(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(uE(n,this._rawAsyncValidators))}hasValidator(n){return Qu(this._rawValidators,n)}hasAsyncValidator(n){return Qu(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=bs,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=ac,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=sc,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===sc||this.status===bs)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ac:sc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=bs,this._hasOwnPendingAsyncValidator=!0;const t=eE(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,o)=>r&&r._find(o),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new je,this.statusChanges=new je}_calculateStatus(){return this._allControlsDisabled()?ac:this.errors?Xu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(bs)?bs:this._anyControlsHaveStatus(Xu)?Xu:sc}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){ed(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function CV(e){return Array.isArray(e)?Dh(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function EV(e){return Array.isArray(e)?Ch(e):e||null}(this._rawAsyncValidators)}}class cc extends td{constructor(n,t,r){super(kh(t),Th(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){hE(this,0,n),Object.keys(n).forEach(r=>{pE(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const o=this.controls[r];o&&o.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,o)=>{r.reset(n?n[o]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,o)=>((r.enabled||this.disabled)&&(t[o]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((o,s)=>{r=t(r,o,s)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class gE extends cc{}const vs=new G("CallSetDisabledState",{providedIn:"root",factory:()=>nd}),nd="always";function lc(e,n,t=nd){Ah(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function SV(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&mE(e,n)})}(e,n),function kV(e,n){const t=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function MV(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&mE(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function IV(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function od(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),sd(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function id(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Ah(e,n){const t=aE(e);null!==n.validator?e.setValidators(sE(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=cE(e);null!==n.asyncValidator?e.setAsyncValidators(sE(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();id(n._rawValidators,o),id(n._rawAsyncValidators,o)}function sd(e,n){let t=!1;if(null!==e){if(null!==n.validator){const o=aE(e);if(Array.isArray(o)&&o.length>0){const s=o.filter(a=>a!==n.validator);s.length!==o.length&&(t=!0,e.setValidators(s))}}if(null!==n.asyncValidator){const o=cE(e);if(Array.isArray(o)&&o.length>0){const s=o.filter(a=>a!==n.asyncValidator);s.length!==o.length&&(t=!0,e.setAsyncValidators(s))}}}const r=()=>{};return id(n._rawValidators,r),id(n._rawAsyncValidators,r),t}function mE(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function bE(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function vE(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const Ds=class extends td{constructor(n=null,t,r){super(kh(t),Th(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ed(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=vE(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){bE(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){bE(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){vE(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};Promise.resolve();let SE=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=te({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const Oh=new G(""),UV={provide:Yt,useExisting:qe(()=>Cs)};let Cs=(()=>{class e extends Yt{constructor(t,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new je,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(sd(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return lc(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){od(t.control||null,t,!1),function FV(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this.submitted=!0,function wE(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,o=this.form.get(t.path);r!==o&&(od(r||null,t),(e=>e instanceof Ds)(o)&&(lc(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function yE(e,n){Ah(e,n)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function TV(e,n){return sd(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ah(this.form,this),this._oldForm&&sd(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(r){return new(r||e)(P(Ht,10),P(no,10),P(vs,8))};static#t=this.\u0275dir=te({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){1&r&&ve("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[xe.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ye([UV]),Le,Cr]})}return e})();const qV={provide:ro,useExisting:qe(()=>ad)};let ad=(()=>{class e extends ro{set isDisabled(t){}static#e=this._ngModelWarningSentOnce=!1;constructor(t,r,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new je,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Rh(e,n){if(!n)return null;let t,r,o;return Array.isArray(n),n.forEach(s=>{s.constructor===ic?t=s:function NV(e){return Object.getPrototypeOf(e.constructor)===Zo}(s)?r=s:o=s}),o||r||t||null}(0,s)}ngOnChanges(t){this._added||this._setUpControl(),function Fh(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return function rd(e,n){return[...n.path,e]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(r){return new(r||e)(P(Yt,13),P(Ht,10),P(no,10),P(fr,10),P(Oh,8))};static#n=this.\u0275dir=te({type:e,selectors:[["","formControlName",""]],inputs:{name:[xe.None,"formControlName","name"],isDisabled:[xe.None,"disabled","isDisabled"],model:[xe.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ye([qV]),Le,Cr]})}return e})();let Yo=(()=>{class e{constructor(){this._validator=Ku}ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Ku,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=te({type:e,features:[Cr]})}return e})();const oj={provide:Ht,useExisting:qe(()=>Hh),multi:!0};let Hh=(()=>{class e extends Yo{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>function xE(e){return"number"==typeof e?e:parseInt(e,10)}(t),this.createValidator=t=>ZC(t)}static#e=this.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})();static#t=this.\u0275dir=te({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){2&r&&cn("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Ye([oj]),Le]})}return e})();const ij={provide:Ht,useExisting:qe(()=>Uh),multi:!0};let Uh=(()=>{class e extends Yo{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=t=>t,this.createValidator=t=>YC(t)}static#e=this.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})();static#t=this.\u0275dir=te({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(r,o){2&r&&cn("pattern",o._enabled?o.pattern:null)},inputs:{pattern:"pattern"},features:[Ye([ij]),Le]})}return e})(),sj=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=qt({type:e});static#n=this.\u0275inj=or({})}return e})();class HE extends td{constructor(n,t,r){super(kh(t),Th(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,r={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,t={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,r={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),t&&(this.controls.splice(o,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){hE(this,0,n),n.forEach((r,o)=>{pE(this,!1,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((r,o)=>{r.reset(n[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,r)=>{n(t,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function UE(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let aj=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new e;return t.useNonNullable=!0,t}group(t,r=null){const o=this._reduceControls(t);let s={};return UE(r)?s=r:null!==r&&(s.validators=r.validator,s.asyncValidators=r.asyncValidator),new cc(o,s)}record(t,r=null){const o=this._reduceControls(t);return new gE(o,r)}control(t,r,o){let s={};return this.useNonNullable?(UE(r)?s=r:(s.validators=r,s.asyncValidators=o),new Ds(t,{...s,nonNullable:!0})):new Ds(t,r,o)}array(t,r,o){const s=t.map(a=>this._createControl(a));return new HE(s,r,o)}_reduceControls(t){const r={};return Object.keys(t).forEach(o=>{r[o]=this._createControl(t[o])}),r}_createControl(t){return t instanceof Ds||t instanceof td?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Es=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Oh,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:vs,useValue:t.callSetDisabledState??nd}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=qt({type:e});static#n=this.\u0275inj=or({imports:[sj]})}return e})();const Is={id:"stateRootHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"State Root Hash",name:"state_root_hash",controlName:"stateRootHash",placeholder:"0x",e2e:"stateRootHashElt"},$h={id:"paymentAmountElt",type:"tel",wrap_class:"col-lg-3 mb-2",class:"form-control",label:"Payment Amount",name:"payment_amount",controlName:"paymentAmount",placeholder:"",e2e:"paymentAmountElt",change:"motesToCSPR"},cd={id:"TTLElt",type:"search",wrap_class:"col-lg-2 mb-2",class:"form-control",label:"TTL",name:"ttl",controlName:"TTL",e2e:"TTLElt",config_name:"TTL"},$E={id:"sessionHashElt",type:"search",wrap_class:"col-xl-6 mb-2",class:"form-control",label:"Smart Contract hash or Package hash",name:"session_hash",controlName:"sessionHash",placeholder:"Contract Hash or Package Hash",e2e:"sessionHashElt",disabled_when:["has_wasm","sessionName.value"]},zE={id:"callPackageElt",type:"checkbox",wrap_class:"col-lg-2 mb-2",class:"form-check-input mt-0",label:"Call Package",name:"call_package",controlName:"callPackage",placeholder:"",e2e:"callPackageElt",label_class:"form-label",disabled_when:["has_wasm"]},qE={id:"versionElt",type:"search",wrap_class:"col-lg-3 mb-2",class:"form-control",label:"Version",name:"version",controlName:"version",placeholder:"e.g.1, empty for last version",e2e:"versionElt",disabled_when:["has_wasm"]},GE={id:"sessionNameElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Smart Contract name or Package name",name:"session_name",controlName:"sessionName",placeholder:"Counter",e2e:"sessionNameElt",disabled_when:["has_wasm","sessionHash.value"]},WE={id:"entryPointElt",type:"search",wrap_class:"col-lg-5 mb-2",class:"form-control",label:"Entry point",name:"entry_point",controlName:"entryPoint",placeholder:"counter_inc",e2e:"entryPointElt",disabled_when:["has_wasm"]},zh={id:"argsSimpleElt",type:"search",wrap_class:"col-lg-8 mb-2",class:"form-control",label:"Args",name:"args_simple",controlName:"argsSimple",placeholder:"foo:Bool='true', bar:String='value'",e2e:"argsSimpleElt",disabled_when:["argsJson.value"]},qh={id:"argsJsonElt",type:"search",wrap_class:"col-lg-8 mb-2",class:"form-control",label:"Args Json",name:"args_json",controlName:"argsJson",placeholder:'[{ "name": "foo", "type": "U256", "value": 1 }]',e2e:"argsJsonElt",disabled_when:["argsSimple.value"]},JE={id:"seedContractHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Contract Hash",name:"seed_contract_hash",controlName:"seedContractHash",placeholder:"hash-0x",e2e:"seedContractHashElt",enabled_when:["newFromContractInfo"]},KE={id:"seedNameElt",type:"search",wrap_class:"col-lg-6 mb-2",class:"form-control",label:"Dictionary Name",name:"seed_name",controlName:"seedName",placeholder:"events",e2e:"seedNameElt",enabled_when:["newFromContractInfo","newFromAccountInfo"]},QE={id:"itemKeyElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Dictionary Item key",name:"item_key",controlName:"itemKey",placeholder:"Item key string",e2e:"itemKeyElt",enabled_when:["newFromContractInfo","newFromAccountInfo","newFromSeedUref"]},ZE={id:"queryKeyElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Key",name:"query_key",controlName:"queryKey",placeholder:"uref-0x || hash-0x || account-hash-0x",e2e:"queryKeyElt"},bj={...ZE,label:"Contract Hash",placeholder:"hash-0x"},YE={id:"queryPathElt",type:"search",wrap_class:"col-lg-4 mb-2",class:"form-control",label:"Path",name:"query_path",controlName:"queryPath",placeholder:"counter/count",e2e:"queryPathElt"},Gh={id:"deployJsonElt",type:"textarea",wrap_class:"col-lg-12",class:"form-control",label:"Deploy as Json string",name:"deploy_json",controlName:"deployJson",placeholder:"Deploy as Json string",e2e:"deployJsonElt",state_name:["deploy_json"]},Kn=[[{input:{id:"blockIdentifierHeightElt",type:"search",wrap_class:"col-lg-3 col-xl-2 mb-2",class:"form-control",label:"Block Height",name:"block_identifier_height",controlName:"blockIdentifierHeight",placeholder:"Block Height",e2e:"blockIdentifierHeightElt"}},{input:{id:"blockIdentifierHashElt",type:"search",wrap_class:"col-lg-9 col-xl-8 mb-2",class:"form-control",label:"Block Hash",name:"block_identifier_hash",controlName:"blockIdentifierHash",placeholder:"Block Hash",e2e:"blockIdentifierHashElt"}}]],Dj=[...Kn,[{input:{id:"accountIdentifierElt",type:"search",wrap_class:"col-lg-9",class:"form-control",label:"Account identifier",name:"account_identifier",controlName:"accountIdentifier",placeholder:"Public Key, AccountHash, Purse URef",e2e:"accountIdentifierElt",state_name:["account_hash","public_key","main_purse"]},required:!0}]],Cj=[[{input:Is}],[{input:{id:"purseUrefElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Purse Uref",name:"purse_uref",controlName:"purseUref",placeholder:"uref-0x",e2e:"purseUrefElt",state_name:["main_purse"]},required:!0}]],Ej=[...Kn,[{input:Is}],[{input:{id:"purseIdentifierElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Purse Identifier",name:"purse_identifier",controlName:"purseIdentifier",placeholder:"Public Key, AccountHash, Purse URef",e2e:"purseIdentifierElt",state_name:["main_purse","account_hash","public_key"]},required:!0}]],Ij=[...Kn,[{input:Is}],[{input:ZE,required:!0}],[{input:YE}]],Sj=[[{input:Is}],[{input:JE,required:!0}],[{input:KE,required:!0}],[{input:QE,required:!0}]],Mj=[[{input:Is}],[{input:bj,required:!0}],[{input:YE}]],kj=[[{input:Is}],[{select:{id:"selectDictIdentifierElt",type:"textarea",wrap_class:"mt-3 col-lg-5 mb-4",class:"form-select form-control form-control-sm",label:"Dictionary identifier",label_class:"input-group-text",name:"select_dict_identifier",controlName:"selectDictIdentifier",e2e:"selectDictIdentifierElt",state_name:["select_dict_identifier"],options:[{value:"newFromSeedUref",label:"From Dictionary Uref"},{value:"newFromContractInfo",label:"From Contract Info",default:!0},{value:"newFromAccountInfo",label:"From Account Info"},{value:"newFromDictionaryKey",label:"From Dictionary Key"}]}}],[{input:JE,required:!0}],[{input:{id:"seedAccountHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Account Hash",name:"seed_account_hash",controlName:"seedAccountHash",placeholder:"account-hash-0x",e2e:"seedAccountHashElt",enabled_when:["newFromAccountInfo"]},required:!0}],[{input:{id:"seedUrefElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Dictionary Uref",name:"seed_uref",controlName:"seedUref",placeholder:"uref-0x",e2e:"seedUrefElt",enabled_when:["newFromSeedUref"]},required:!0}],[{input:KE,required:!0}],[{input:QE,required:!0}],[{input:{id:"seedKeyElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Dictionary Key",name:"seed_key",controlName:"seedKey",placeholder:"dictionary-0x",e2e:"seedKeyElt",enabled_when:["newFromDictionaryKey"]},required:!0}]],Wh=[[{input:{id:"transferAmountElt",type:"tel",wrap_class:"col-lg-3 mb-2",class:"form-control",label:"Transfer Amount",name:"transfer_amount",controlName:"transferAmount",e2e:"transferAmountElt",config_name:"minimum_transfer",maxlength:"28",pattern:"\\d*",change:"motesToCSPR"},required:!0},{input:cd}],[{input:{id:"targetAccountElt",type:"search",wrap_class:"col-xl-9",class:"form-control",label:"Target Account",name:"target_account",controlName:"targetAccount",placeholder:"Public Key, AccountHash, Purse URef",e2e:"targetAccountElt"},required:!0}]],Aj=[...Kn,...Wh],Nj=[[{input:$h,required:!0},{input:cd},{wasm_button:!0}],[{input:zh}],[{input:qh}]],Jh=[[{input:$h,required:!0},{input:cd},{wasm_button:!0}],[{input:$E,required:!0},{input:zE},{input:qE}],[{input:GE,required:!0}],[{input:WE,required:!0}],[{input:zh}],[{input:qh}]],Fj=[...Kn,...Jh],Rj=[[{input:$h,required:!0},{input:cd}],[{input:$E},{input:zE},{input:qE}],[{input:GE}],[{input:WE}],[{input:zh}],[{input:qh}]],xj=[...Kn,[{file_button:!0}],[{textarea:Gh,required:!0}]],ld=new Map([["call_entrypoint",Rj],["deploy",Jh],["get_account",Dj],["get_balance",Cj],["get_block",Kn],["get_block_transfers",Kn],["get_deploy",[[{input:{id:"deployHashElt",type:"search",wrap_class:"col-xl-7",class:"form-control",label:"Deploy Hash",name:"deploy_hash",controlName:"deployHash",placeholder:"0x",e2e:"deployHashElt"},required:!0},{input:{id:"finalizedApprovalsElt",type:"checkbox",wrap_class:"col-lg-3 mt-3 mt-xl-0",class:"form-check-input mt-0",label:"Finalized approvals",name:"finalized_approvals",controlName:"finalizedApprovals",placeholder:"",e2e:"finalizedApprovalsElt",label_class:"form-label"}}]]],["get_dictionary_item",kj],["get_era_info",Kn],["get_era_summary",Kn],["get_state_root_hash",Kn],["install",Nj],["make_deploy",Jh],["make_transfer",Wh],["put_deploy",[[{file_button:!0}],[{textarea:Gh,required:!0}]]],["query_balance",Ej],["query_contract_dict",Sj],["query_contract_key",Mj],["query_global_state",Ij],["sign_deploy",[[{file_button:!0}],[{textarea:Gh,required:!0}]]],["speculative_deploy",Fj],["speculative_exec",xj],["speculative_transfer",Aj],["transfer",Wh]]);let Qn=(()=>{class e{constructor(){this.state=new li({})}setState(t){const o={...this.state.getValue(),...t};this.state.next(o)}getState(){return this.state.asObservable()}getValue(){return this.state.getValue()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ud=(()=>{class e{constructor(t,r,o){this.config=t,this.formBuilder=r,this.stateService=o,this.stateService.getState().subscribe(s=>{this.has_wasm=!!s?.has_wasm,s?.select_dict_identifier&&(this.select_dict_identifier=s.select_dict_identifier),s?.action&&this.action!==s.action&&(s.action&&(this.action=s.action),this.initializeForm()),this.action&&this.updateForm(),s&&(this.state=s)}),this.form=this.defaultForm}get defaultForm(){const t={};return ld.forEach(r=>{r.forEach(o=>{o.forEach(s=>{const a=s.input?.controlName||s.textarea?.controlName||"";if(a&&(t[a]=new Ds),s.select?.options){const u=s.select?.options.find(d=>d.default)?.value||"";this.stateService.setState({select_dict_identifier:u})}})})}),this.formBuilder.group(t)}initializeForm(){Object.values(this.form.controls).forEach(r=>{r.clearValidators(),r.markAsPristine(),r.disable()});const t=this.action&&ld.get(this.action);t&&t.forEach(r=>{r.forEach(o=>{if(!o.input&&!o.textarea)return;const a=this.form.get(o.input?.controlName||o.textarea?.controlName||"");if(!a)return;const u=o.input?.state_name||o.textarea?.state_name||o.select?.state_name||[],d=u&&u.find(h=>this.state[h]),f=d?this.state[d]:"";if(f)f&&a.setValue(f);else if(o.input?.config_name){const h=this.config[o.input?.config_name]||"";h&&a.setValue(h),h&&(o.input.placeholder_config_value=h)}a.enable(),o.required&&(o.input&&(o.input.required=!0),o.textarea&&(o.textarea.required=!0),a.setValidators([yV.required]))})})}updateForm(){const t=this.action&&ld.get(this.action);if(!t)return;const r=[];t.forEach(o=>{o.forEach(({input:s})=>{const a=s?.controlName;if(!a)return;const u=this.form.get(a);if(u)if(s.enabled_when)this.select_dict_identifier&&!s.enabled_when?.includes(this.select_dict_identifier)?u.disable():this.select_dict_identifier&&u.enable();else if(s.disabled_when){const d=u.value&&s.disabled_when?.find(g=>g.includes("value")),f=d&&d.split(".")[0],h=f&&this.form?.get(f);h&&(h.disable(),r.push(f)),this.has_wasm&&s?.disabled_when?.includes("has_wasm")?(u.reset(),u.disable()):r.includes(s.controlName)||u.enable()}})})}get formFields(){return ld}static#e=this.\u0275fac=function(r){return new(r||e)(X(Fr),X(aj),X(Qn))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Lj=["template"];function Vj(e,n){if(1&e&&(q(0,"span",10),Ce(1),W()),2&e){const t=Y(2),r=t.inputField,o=t.parentForm,s=Y();let a;z(),jt("(",s.motesToCSPR(null==(a=o.get(r.controlName))?null:a.value)," CSPR)")}}const jj=(e,n,t)=>[e,n,t];function Bj(e,n){if(1&e){const t=Jt();Nn(0,2),q(1,"input",11),ve("change",function(){At(t);const o=Y(2).inputField;return Nt(Y().onChange(o))}),W(),Fn()}if(2&e){const t=Y(2),r=t.parentForm,o=t.inputField,s=Y();$("formGroup",r),z(),$("id",o.id)("type",o.type)("name",o.name)("maxlength",o.maxlength||"")("pattern",o.pattern||"")("formControlName",o.controlName)("placeholder",o.placeholder_config_value?"e.g. "+o.placeholder_config_value:o.placeholder||"")("ngClass",Kv(10,jj,o.class||"form-control",s.isInvalid(o.controlName)?"is-invalid":"",s.isRequired(o)?"is-required":"")),cn("e2e-id",o.e2e)}}function Hj(e,n){if(1&e&&(q(0,"label",12),Ce(1),W()),2&e){const t=Y(2).inputField;$("for",t.id),z(),jt("e.g. ",t.placeholder,"")}}function Uj(e,n){if(1&e&&(q(0,"label",12),Ce(1),W()),2&e){const t=Y(2).inputField;$("for",t.id),z(),jt("e.g. ",t.placeholder_config_value,"")}}const $j=(e,n)=>[e,n];function zj(e,n){if(1&e&&(q(0,"div",4)(1,"label",5),Ce(2),he(3,Vj,2,1,"span",6),W(),q(4,"div",7),he(5,Bj,2,14,"ng-container",8)(6,Hj,2,2,"label",9)(7,Uj,2,2,"label",9),W()()),2&e){const t=Y(),r=t.inputField,o=t.parentForm,s=$o(2);let a,u;$("ngClass",r.wrap_class),z(),$("for",r.id)("ngClass",ps(10,$j,r.label_class||"",null!=(a=o.get(r.controlName))&&a.disabled?"disabled":"")),z(),Ha("",r.label,"",r.required?" *":""," "),z(),$("ngIf",(null==r.change?null:r.change.includes("motesToCSPR"))&&(null==(u=o.get(r.controlName))?null:u.value)),z(2),$("ngIf","checkbox"!==r.type)("ngIfElse",s),z(),$("ngIf",r.placeholder),z(),$("ngIf",r.placeholder_config_value)}}function qj(e,n){if(1&e&&Ft(0,"input",13),2&e){const t=Y().inputField;$("id",t.id)("name",t.name)("formControlName",t.controlName),cn("e2e-id",t.e2e)}}function Gj(e,n){if(1&e&&he(0,zj,8,13,"div",1)(1,qj,1,4,"ng-template",2,3,zo),2&e){const t=n.inputField,r=n.parentForm;let s;$("ngIf",!(Y().hidden_when_disabled&&null!=(s=r.get(t.controlName))&&s.disabled)),z(),$("formGroup",r)}}let XE=(()=>{class e{constructor(t){this.formService=t}onChange(t){this.parentForm?.get(t.controlName)&&t.disabled_when?.find(s=>s.includes("value"))&&this.formService.updateForm()}isInvalid(t){const r=this.parentForm?.get(t);return!(!r?.enabled||!r?.dirty||r?.value||r?.valid)}isRequired(t){const r=this.parentForm?.get(t.controlName);return!(!r?.enabled||r?.dirty||r?.value||!t.required)}motesToCSPR(t){if(t)return t=this.parse_commas(t),(0,me.Qb)(t)}parse_commas(t){return t.replace(/[,.]/g,"")}static#e=this.\u0275fac=function(r){return new(r||e)(P(ud))};static#t=this.\u0275cmp=gt({type:e,selectors:[["ui-input"]],viewQuery:function(r,o){if(1&r&&un(Lj,7),2&r){let s;dn(s=_n())&&(o.template=s.first)}},inputs:{inputField:"inputField",parentForm:"parentForm",hidden_when_disabled:"hidden_when_disabled"},standalone:!0,features:[Bt],decls:2,vars:0,consts:[["template",""],[3,"ngClass",4,"ngIf"],[3,"formGroup"],["checkboxContent",""],[3,"ngClass"],[3,"for","ngClass"],["class","fw-light small text-nowrap",4,"ngIf"],[1,"form-floating"],[3,"formGroup",4,"ngIf","ngIfElse"],[3,"for",4,"ngIf"],[1,"fw-light","small","text-nowrap"],[3,"id","type","name","maxlength","pattern","formControlName","placeholder","ngClass","change"],[3,"for"],["type","checkbox",3,"id","name","formControlName"]],template:function(r,o){1&r&&he(0,Gj,3,2,"ng-template",null,0,zo)},dependencies:[ht,Jo,Wn,Es,ic,vh,Ih,Zu,Hh,Uh,Cs,ad],styles:["[_nghost-%COMP%]{display:none}label[_ngcontent-%COMP%]{max-width:100%}.form-floating[_ngcontent-%COMP%] > label[_ngcontent-%COMP%], label.disabled[_ngcontent-%COMP%]{color:#d3d3d3}"],changeDetection:0})}return e})();const Wj=["template"];function Jj(e,n){if(1&e&&(q(0,"option",6),Ce(1),W()),2&e){const t=n.$implicit,r=Y(2);dp("value",t.value),$("selected",t.default||r.select_dict_identifier===t.value),z(),jt(" ",t.label," ")}}const eI=e=>[e];function Kj(e,n){if(1&e){const t=Jt();q(0,"div",1)(1,"div",2)(2,"label",3),Ce(3,"Dictionary identifier"),W(),q(4,"select",4),ve("change",function(o){return At(t),Nt(Y().onChange(o))}),he(5,Jj,2,3,"option",5),Ce(6),W()()()}if(2&e){const t=n.inputField,r=Y();$("ngClass",t.wrap_class),z(2),$("for",t.id)("ngClass",fs(9,eI,t.label_class||"")),z(2),$("id",t.id)("name",t.name)("ngClass",fs(11,eI,t.class||"form-control")),cn("e2e-id",t.e2e),z(),$("ngForOf",t.options),z(),jt(" ",r.select_dict_identifier," ")}}let tI=(()=>{class e{constructor(t,r,o){this.config=t,this.stateService=r,this.changeDetectorRef=o}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{setTimeout(()=>{t.select_dict_identifier&&(this.select_dict_identifier=t.select_dict_identifier),this.changeDetectorRef.markForCheck()})})}onChange(t){const r=t.target?.value;this.stateService.setState({select_dict_identifier:r})}static#e=this.\u0275fac=function(r){return new(r||e)(P(Fr),P(Qn),P(vn))};static#t=this.\u0275cmp=gt({type:e,selectors:[["ui-select"]],viewQuery:function(r,o){if(1&r&&un(Wj,7),2&r){let s;dn(s=_n())&&(o.template=s.first)}},inputs:{inputField:"inputField",parentForm:"parentForm"},standalone:!0,features:[Bt],decls:2,vars:0,consts:[["template",""],[3,"ngClass"],[1,"input-group"],[3,"for","ngClass"],[3,"id","name","ngClass","change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(r,o){1&r&&he(0,Kj,7,13,"ng-template",null,0,zo)},dependencies:[ht,Jo,Qa],changeDetection:0})}return e})();const Qj=["template"];function Zj(e,n){if(1&e&&(q(0,"label",6),Ce(1),W()),2&e){const t=Y().inputField;$("for",t.id),z(),_s(t.placeholder)}}const Yj=(e,n)=>[e,n];function Xj(e,n){if(1&e&&(q(0,"div",1)(1,"div",2),Nn(2,3),q(3,"textarea",4),Ce(4," "),W(),he(5,Zj,2,2,"label",5),Fn(),W()()),2&e){const t=n.inputField,r=n.parentForm,o=Y();$("ngClass",t.wrap_class),z(2),$("formGroup",r),z(),$("id",t.id)("name",t.name)("formControlName",t.controlName)("placeholder",t.placeholder||"")("ngClass",ps(9,Yj,t.class||"form-control",o.isInvalid(t.controlName)?"is-invalid":"")),cn("e2e-id",t.e2e),z(2),$("ngIf",t.placeholder)}}let nI=(()=>{class e{isInvalid(t){const r=this.parentForm?.get(t);return!!this.parentForm?.touched&&!!r?.invalid}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=gt({type:e,selectors:[["ui-textarea"]],viewQuery:function(r,o){if(1&r&&un(Qj,7),2&r){let s;dn(s=_n())&&(o.template=s.first)}},inputs:{inputField:"inputField",parentForm:"parentForm"},standalone:!0,features:[Bt],decls:2,vars:0,consts:[["template",""],[3,"ngClass"],[1,"form-floating","mt-3"],[3,"formGroup"],[3,"id","name","formControlName","placeholder","ngClass"],[3,"for",4,"ngIf"],[3,"for"]],template:function(r,o){1&r&&he(0,Xj,6,12,"ng-template",null,0,zo)},dependencies:[ht,Jo,Wn,Es,ic,Ih,Zu,Cs,ad],styles:["textarea[_ngcontent-%COMP%]{min-height:350px!important;white-space:pre-wrap}@media (max-width: 767px){textarea[_ngcontent-%COMP%]{min-height:200px!important}}"],changeDetection:0})}return e})();const eB=["wasmElt"],tB=["template"];function nB(e,n){if(1&e){const t=Jt();q(0,"button",6),ve("click",function(){return At(t),Nt(Y(2).onWasmClick())}),Ce(1," Wasm Module Bytes "),W()}}function rB(e,n){if(1&e){const t=Jt();q(0,"span",7),ve("click",function(){return At(t),Nt(Y(2).resetWasmClick())}),Ce(1),Xs(),q(2,"svg",8),Ft(3,"path",9),W()()}if(2&e){const t=Y(2);z(),jt(" ",t.file_name," ")}}function oB(e,n){if(1&e){const t=Jt();q(0,"div",1)(1,"input",2,3),ve("change",function(o){return At(t),Nt(Y().onWasmSelected(o))}),W(),he(3,nB,2,0,"button",4)(4,rB,4,1,"span",5),W()}if(2&e){const t=Y();z(3),$("ngIf",!t.file_name),z(),$("ngIf",t.file_name)}}let rI=(()=>{class e{constructor(){this.select_wasm=new je}onWasmSelected(t){var r=this;return(0,j.c)(function*(){r.file_name=r.wasmElt?.nativeElement.value.split("\\").pop();const o=t.target.files?.item(0),s=yield o?.arrayBuffer();r.wasm=s&&new Uint8Array(s),r.wasm?.buffer||r.resetWasmClick(),r.select_wasm.emit(r.wasm)})()}onWasmClick(){this.wasmElt.nativeElement.click()}resetWasmClick(){this.wasmElt.nativeElement.value="",this.wasm=void 0,this.file_name="",this.select_wasm.emit(void 0)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=gt({type:e,selectors:[["comp-submit-wasm"]],viewQuery:function(r,o){if(1&r&&(un(eB,5),un(tB,7)),2&r){let s;dn(s=_n())&&(o.wasmElt=s.first),dn(s=_n())&&(o.template=s.first)}},outputs:{select_wasm:"select_wasm"},standalone:!0,features:[Bt],decls:2,vars:0,consts:[["template",""],[1,"col-sm-2","mb-2"],["name","wasm","type","file","id","wasmElt","accept",".wasm","e2e-id","wasmElt",1,"visually-hidden",3,"change"],["wasmElt",""],["class","btn btn-secondary",3,"click",4,"ngIf"],["class","break-all text-nowrap","class","btn btn-light","e2e-id","wasmName",3,"click",4,"ngIf"],[1,"btn","btn-secondary",3,"click"],["e2e-id","wasmName",1,"btn","btn-light",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-6","h-6","ml-1","cursor-pointer","shrink-0"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"]],template:function(r,o){1&r&&he(0,oB,5,2,"ng-template",null,0,zo)},dependencies:[ht,Wn],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0})}return e})(),dd=(()=>{class e{constructor(){this.error=new li("")}setError(t){this.error.getValue()!==t&&this.error.next(t)}getError(){return this.error.asObservable()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const iB=["template"],sB=["deployFileElt"];function aB(e,n){if(1&e){const t=Jt();q(0,"div",1)(1,"input",2,3),ve("change",function(o){return At(t),Nt(Y().onDeployFileSelected(o))}),W(),q(3,"button",4),ve("click",function(){return At(t),Nt(Y().deployFileClick())}),Ce(4," Load deploy file "),W()()}}let oI=(()=>{class e{constructor(t){this.errorService=t,this.select_file=new je}onDeployFileSelected(t){var r=this;return(0,j.c)(function*(){const o=t.target.files?.item(0);let s;if(o){if(s=yield o.text(),!s.trim())return;s=s.trim();try{const a=JSON.parse(s);r.deploy_json=a}catch{const a="Error parsing deploy";console.error(a),r.errorService.setError(a)}}else r.deploy_json="";r.select_file.emit(r.deploy_json)})()}deployFileClick(){this.deployFileElt.nativeElement.click()}static#e=this.\u0275fac=function(r){return new(r||e)(P(dd))};static#t=this.\u0275cmp=gt({type:e,selectors:[["comp-submit-file"]],viewQuery:function(r,o){if(1&r&&(un(iB,7),un(sB,5)),2&r){let s;dn(s=_n())&&(o.template=s.first),dn(s=_n())&&(o.deployFileElt=s.first)}},outputs:{select_file:"select_file"},standalone:!0,features:[Bt],decls:2,vars:0,consts:[["template",""],[1,"col-sm-2","mt-2"],["name","deploy_file","type","file","id","deployFileElt","accept",".json, .txt","e2e-id","deployFileElt",1,"visually-hidden",3,"change"],["deployFileElt",""],[1,"btn","btn-secondary",3,"click"]],template:function(r,o){1&r&&he(0,aB,5,0,"ng-template",null,0,zo)},dependencies:[ht],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0})}return e})();function cB(e,n){1&e&&Ho(0)}const Kh=(e,n)=>({parentForm:e,inputField:n});function lB(e,n){if(1&e&&(Nn(0),Ft(1,"ui-input",5,6),he(3,cB,1,0,"ng-container",7),Fn()),2&e){const t=$o(2),r=Y().$implicit,o=Y(3);z(),$("parentForm",o.form)("inputField",r.input)("hidden_when_disabled","get_dictionary_item"===o.action),z(2),$("ngTemplateOutlet",t.template)("ngTemplateOutletContext",ps(5,Kh,o.form,r.input))}}function uB(e,n){1&e&&Ho(0)}function dB(e,n){if(1&e&&(Nn(0),Ft(1,"ui-textarea",8,6),he(3,uB,1,0,"ng-container",7),Fn()),2&e){const t=$o(2),r=Y().$implicit,o=Y(3);z(),$("parentForm",o.form)("inputField",r.textarea),z(2),$("ngTemplateOutlet",t.template)("ngTemplateOutletContext",ps(4,Kh,o.form,r.textarea))}}function _B(e,n){1&e&&Ho(0)}function fB(e,n){if(1&e&&(Nn(0),Ft(1,"ui-select",8,6),he(3,_B,1,0,"ng-container",7),Fn()),2&e){const t=$o(2),r=Y().$implicit,o=Y(3);z(),$("parentForm",o.form)("inputField",r.select),z(2),$("ngTemplateOutlet",t.template)("ngTemplateOutletContext",ps(4,Kh,o.form,r.select))}}function pB(e,n){1&e&&Ho(0)}function hB(e,n){if(1&e){const t=Jt();Nn(0),q(1,"comp-submit-wasm",9,10),ve("select_wasm",function(o){return At(t),Nt(Y(4).onWasmSelected(o))}),W(),he(3,pB,1,0,"ng-container",11),Fn()}if(2&e){const t=$o(2);z(3),$("ngTemplateOutlet",t.template)}}function gB(e,n){1&e&&Ho(0)}function mB(e,n){if(1&e){const t=Jt();Nn(0),q(1,"comp-submit-file",12,10),ve("select_file",function(o){return At(t),Nt(Y(4).onDeployFileSelected(o))}),W(),he(3,gB,1,0,"ng-container",11),Fn()}if(2&e){const t=$o(2);z(3),$("ngTemplateOutlet",t.template)}}function yB(e,n){if(1&e&&(Nn(0),he(1,lB,4,8,"ng-container",4)(2,dB,4,7,"ng-container",4)(3,fB,4,7,"ng-container",4)(4,hB,4,1,"ng-container",4)(5,mB,4,1,"ng-container",4),Fn()),2&e){const t=n.$implicit;z(),$("ngIf",t.input),z(),$("ngIf",t.textarea),z(),$("ngIf",t.select),z(),$("ngIf",t.wasm_button),z(),$("ngIf",t.file_button)}}function wB(e,n){if(1&e&&(Nn(0),q(1,"div",3),he(2,yB,6,5,"ng-container",2),W(),Fn()),2&e){const t=n.$implicit;z(2),$("ngForOf",t)}}function bB(e,n){if(1&e&&(q(0,"form",1),he(1,wB,3,1,"ng-container",2),W()),2&e){const t=Y();$("formGroup",t.form),z(),$("ngForOf",t.formFields.get(t.action))}}let iI=(()=>{class e{constructor(t,r,o,s){this.config=t,this.formService=r,this.stateService=o,this.changeDetectorRef=s,this.formFields=this.formService.formFields,this.wasm_selected=new je,this.verbosity=this.config.verbosity}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){t.setStateSubscription()})()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action),this.changeDetectorRef.markForCheck()})}onWasmSelected(t){var r=this;return(0,j.c)(function*(){t&&r.wasm_selected.emit(t),r.stateService.setState({has_wasm:!!t})})()}onDeployFileSelected(t){var r=this;return(0,j.c)(function*(){(t=t&&(0,me.on)(new me.ob(t).toJson(),r.verbosity))&&r.stateService.setState({deploy_json:t})})()}static#e=this.\u0275fac=function(r){return new(r||e)(P(Fr),P(ud),P(Qn),P(vn))};static#t=this.\u0275cmp=gt({type:e,selectors:[["comp-form"]],inputs:{form:"form"},outputs:{wasm_selected:"wasm_selected"},standalone:!0,features:[Bt],decls:1,vars:1,consts:[["class","mt-3",3,"formGroup",4,"ngIf"],[1,"mt-3",3,"formGroup"],[4,"ngFor","ngForOf"],[1,"row","align-items-end"],[4,"ngIf"],[3,"parentForm","inputField","hidden_when_disabled"],["inputTemplate",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"parentForm","inputField"],[3,"select_wasm"],["submitTemplate",""],[4,"ngTemplateOutlet"],[3,"select_file"]],template:function(r,o){1&r&&he(0,bB,2,2,"form",0),2&r&&$("ngIf",o.action&&o.formFields&&o.formFields.has(o.action))},dependencies:[ht,Qa,Wn,G0,Es,SE,Zu,Cs,XE,rI,oI,nI,tI],changeDetection:0})}return e})();const sI=new G("highlight");var vB=Ct(1376),DB=Ct.n(vB);let aI=(()=>{class e{constructor(t){this.highlightWebworkerFactory=t}highlightMessage(t){var r=this;return(0,j.c)(function*(){r.activateWorker();const o=r.hightlightWebworker&&(yield r.hightlightWebworker.postMessage(t).catch(s=>{console.error(s)}));return r.terminateWorker(),o})()}activateWorker(){if(this.webworker)return;const t=this.highlightWebworkerFactory();this.webworker=t[0],this.hightlightWebworker=t[1]}terminateWorker(){this.webworker&&(this.webworker.terminate(),delete this.webworker)}static#e=this.\u0275fac=function(r){return new(r||e)(X(sI))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const CB={provide:sI,useValue:function(){const e=new Worker(Ct.tu(new URL(Ct.p+Ct.u(976),Ct.b)),{name:"highlight.worker",type:void 0});return[e,new(DB())(e)]}};let EB=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=qt({type:e});static#n=this.\u0275inj=or({providers:[CB,aI],imports:[ht]})}return e})(),_d=(()=>{class e{constructor(t,r){this.highlightService=t,this.document=r,this.result=new fo,this.window=this.document.defaultView}getResult(){return this.result.asObservable()}setResult(t){var r=this;return(0,j.c)(function*(){const o=t,s=yield r.highlightService.highlightMessage(o),a="string"==typeof t;r.result.next({result:a?o:JSON.stringify(o),resultHtml:a?o:s})})()}copyClipboard(t){this.window?.navigator.clipboard.writeText(t).catch(r=>console.error(r))}static#e=this.\u0275fac=function(r){return new(r||e)(X(aI),X(Tr))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),IB=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=qt({type:e});static#n=this.\u0275inj=or({providers:[_d],imports:[ht,EB]})}return e})();const SB=["resultElt"],MB=["codeElt"];function kB(e,n){if(1&e&&(Xs(),Ud(),q(0,"div",13,14)(2,"div",15),Ft(3,"code",16,17),W()()),2&e){const t=Y(2);z(3),$("innerHtml",t.resultHtml,xm)}}function TB(e,n){if(1&e){const t=Jt();q(0,"div",2)(1,"div",3)(2,"span"),Xs(),q(3,"svg",4),ve("click",function(){At(t);const o=Y();return Nt(o.copy(o.result))}),Ft(4,"rect",5)(5,"path",6),W()(),Ud(),q(6,"span",7),ve("click",function(){return At(t),Nt(Y().reset())}),Xs(),q(7,"svg",8),Ft(8,"path",9)(9,"path",10)(10,"path",11),W()()(),he(11,kB,5,1,"div",12),W()}if(2&e){const t=Y();z(11),$("ngIf",t.resultHtml)}}let cI=(()=>{class e{constructor(t,r){this.resultService=t,this.changeDetectorRef=r}ngAfterViewInit(){this.getResultSubscription=this.resultService.getResult().subscribe(t=>{this.result=t.result,this.resultHtml=t.resultHtml,this.changeDetectorRef.markForCheck()})}ngOnDestroy(){this.getResultSubscription&&this.getResultSubscription.unsubscribe()}copy(t){this.resultService.copyClipboard((0,me.on)(JSON.parse(t),1))}reset(){this.result="",this.resultHtml="",this.resultService.setResult("")}static#e=this.\u0275fac=function(r){return new(r||e)(P(_d),P(vn))};static#t=this.\u0275cmp=gt({type:e,selectors:[["comp-result"]],viewQuery:function(r,o){if(1&r&&(un(SB,5),un(MB,5,Tn)),2&r){let s;dn(s=_n())&&(o.resultElt=s.first),dn(s=_n())&&(o.contentChildren=s.first)}},standalone:!0,features:[Bt],decls:2,vars:1,consts:[[1,"mt-3"],["class","row",4,"ngIf"],[1,"row"],[1,"col-xs-12","d-flex","flex-row","justify-content-between","mb-2"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"shrink-0","ml-2","w-5","min-w-5","text-gray-500","cursor-pointer",3,"click"],["x","9","y","9","width","13","height","13","rx","2","ry","2"],["d","M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"],["e2e-id","clear result",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-journal-x","cursor-pointer"],["fill-rule","evenodd","d","M6.146 6.146a.5.5 0 0 1 .708 0L8 7.293l1.146-1.147a.5.5 0 1 1 .708.708L8.707 8l1.147 1.146a.5.5 0 0 1-.708.708L8 8.707 6.854 9.854a.5.5 0 0 1-.708-.708L7.293 8 6.146 6.854a.5.5 0 0 1 0-.708z"],["d","M3 0h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-1h1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v1H1V2a2 2 0 0 1 2-2z"],["d","M1 5v-.5a.5.5 0 0 1 1 0V5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0V8h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0v.5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1z"],["class","col-xs-12",4,"ngIf"],[1,"col-xs-12"],["resultElt",""],[1,"card"],["e2e-id","result",1,"card-body",3,"innerHtml"],["codeElt",""]],template:function(r,o){1&r&&(q(0,"section",0),he(1,TB,12,1,"div",1),W()),2&r&&(z(),$("ngIf",o.result))},dependencies:[ht,Wn],styles:["code[_ngcontent-%COMP%]{white-space:pre-wrap;overflow-x:hidden;word-wrap:break-word;max-width:100%}@media (max-width: 767px){[_nghost-%COMP%] .hljs-string{overflow-wrap:break-word;word-break:break-all;max-width:100%}}[_nghost-%COMP%] .hljs-attr{font-weight:700}@media (max-width: 767px){code[_ngcontent-%COMP%]{font-size:.8em}}"],changeDetection:0})}return e})();const AB=["selectNetworkElt"];function NB(e,n){if(1&e&&(q(0,"option",16),Ce(1),W()),2&e){const t=n.$implicit,r=Y();$("value",t.name)("selected",t.node_address===r.node_address),z(),Ha(" ",t.name," (",t.node_address,") ")}}function FB(e,n){if(1&e&&(q(0,"option",16),Ce(1),W()),2&e){const t=n.$implicit,r=Y(2);$("value",r.changePort(t))("selected",r.changePort(t)===r.node_address),z(),Ha(" ",r.changePort(t)," (",r.chain_name,") ")}}function RB(e,n){if(1&e&&(q(0,"optgroup",17),he(1,FB,2,4,"option",14),W()),2&e){const t=Y();z(),$("ngForOf",t.peers)}}let lI=(()=>{class e{constructor(t,r,o,s,a){this.sdk=t,this.config=r,this.env=o,this.stateService=s,this.changeDetectorRef=a,this.chain_name=this.env.chain_name.toString(),this.node_address=this.env.node_address.toString(),this.network={name:"default",node_address:this.env.node_address.toString(),chain_name:this.env.chain_name.toString()},this.stateService.setState({chain_name:this.chain_name})}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){t.networks=Object.entries(t.config.networks).map(([r,o])=>({name:r,...o})),t.changeDetectorRef.markForCheck()})()}selectNetwork(){let t=this.selectNetworkElt.nativeElement.value;if(t=t&&this.networks.find(r=>r.name==t),!t){const r=this.selectNetworkElt.nativeElement.value;r&&(this.node_address=r)}this.network=t,this.chain_name=t.chain_name,this.node_address=t.node_address,this.sdk.setNodeAddress(this.node_address),this.stateService.setState({chain_name:t.chain_name})}changePort(t){const r=t.address.split(":");return[this.config.default_protocol,r.shift(),":",this.config.default_port].join("")}static#e=this.\u0275fac=function(r){return new(r||e)(P(oc),P(Fr),P(yh),P(Qn),P(vn))};static#t=this.\u0275cmp=gt({type:e,selectors:[["comp-header"]],viewQuery:function(r,o){if(1&r&&un(AB,5),2&r){let s;dn(s=_n())&&(o.selectNetworkElt=s.first)}},inputs:{peers:"peers"},standalone:!0,features:[Bt],decls:20,vars:6,consts:[[1,"navbar","navbar-light"],[1,"col-5","col-md-2"],[1,"navbar-brand"],["src","assets/logo.png","alt","CasperLabs"],[1,"col-7","col-md-4","col-lg-4","col-xl-5","d-flex","flex-column","flex-xl-row","justify-content-end","px-2","pt-2"],["e2e-id","chain_name",1,"badge","rounded-pill","bg-success","mb-2","ellipsis-container","px-2","me-xl-3",3,"hidden"],["e2e-id","node_address",1,"badge","rounded-pill","bg-success","mb-2","ellipsis-container","px-2","me-xl-3",3,"hidden"],[1,"col-12","col-md-6","col-lg-5"],[1,"form-inline"],[1,"input-group"],["for","selectActionElt","for","selectNetworkElt",1,"input-group-text"],["id","selectNetworkElt","e2e-id","selectNetworkElt",1,"form-select","form-control","form-control-sm",3,"change"],["selectNetworkElt",""],["label","default"],[3,"value","selected",4,"ngFor","ngForOf"],["label","fetched",4,"ngIf"],[3,"value","selected"],["label","fetched"]],template:function(r,o){1&r&&(q(0,"nav",0)(1,"div",1)(2,"a",2),Ft(3,"img",3),W()(),q(4,"div",4)(5,"span",5),Ce(6),W(),q(7,"span",6),Ce(8),W()(),q(9,"div",7)(10,"form",8)(11,"div",9)(12,"label",10),Ce(13,"RPC"),W(),q(14,"select",11,12),ve("change",function(){return o.selectNetwork()}),Ft(16,"option"),q(17,"optgroup",13),he(18,NB,2,4,"option",14),W(),he(19,RB,2,1,"optgroup",15),W()()()()()),2&r&&(z(5),$("hidden",!o.chain_name),z(),_s(o.chain_name),z(),$("hidden",!o.node_address),z(),_s(o.node_address),z(10),$("ngForOf",o.networks),z(),$("ngIf",o.peers))},dependencies:[ht,Qa,Wn],styles:[".ellipsis-container[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto}"],changeDetection:0})}return e})();function xB(e,n){if(1&e&&(q(0,"section",1)(1,"pre",2),Ce(2),W()()),2&e){const t=Y();z(2),_s(t.error)}}let uI=(()=>{class e{constructor(t,r){this.errorService=t,this.changeDetectorRef=r}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){t.seterrorSubscription()})()}ngOnDestroy(){this.errorSubscription&&this.errorSubscription.unsubscribe()}seterrorSubscription(){var t=this;this.errorSubscription=this.errorService.getError().subscribe(function(){var r=(0,j.c)(function*(o){t.error!==o&&(t.error=o,t.changeDetectorRef.markForCheck())});return function(o){return r.apply(this,arguments)}}())}static#e=this.\u0275fac=function(r){return new(r||e)(P(dd),P(vn))};static#t=this.\u0275cmp=gt({type:e,selectors:[["comp-error"]],standalone:!0,features:[Bt],decls:1,vars:1,consts:[["class","mt-3","e2e-id","error",4,"ngIf"],["e2e-id","error",1,"mt-3"],[1,"error","alert","alert-warning","d-flex"]],template:function(r,o){1&r&&he(0,xB,3,1,"section",0),2&r&&$("ngIf",o.error)},dependencies:[ht,Wn],styles:[".error[_ngcontent-%COMP%]{display:block;font-family:monospace;white-space:pre-wrap;word-break:break-word}"],changeDetection:0})}return e})();function OB(e,n){if(1&e){const t=Jt();q(0,"div",4)(1,"span",5),Ce(2),W(),q(3,"button",6),ve("click",function(){return At(t),Nt(Y().get_state_root_hash())}),Ce(4,"Refresh"),W()()}if(2&e){const t=Y();z(2),jt("state root hash is ",t.state_root_hash,"")}}function PB(e,n){if(1&e&&(q(0,"div",7)(1,"span",8),Ce(2),W()()),2&e){const t=Y();z(2),jt("account hash is ",t.account_hash,"")}}function LB(e,n){if(1&e&&(q(0,"div",7)(1,"span",9),Ce(2),W()()),2&e){const t=Y();z(2),jt("main purse is ",t.main_purse,"")}}let dI=(()=>{class e{constructor(t,r){this.stateService=t,this.changeDetectorRef=r,this.get_state_root_hash_output=new je}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.account_hash&&(this.account_hash=t.account_hash),t.main_purse&&(this.main_purse=t.main_purse),t.state_root_hash&&(this.state_root_hash=t.state_root_hash),t&&this.changeDetectorRef.markForCheck()})}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){t.setStateSubscription()})()}get_state_root_hash(){this.get_state_root_hash_output.emit(!0)}static#e=this.\u0275fac=function(r){return new(r||e)(P(Qn),P(vn))};static#t=this.\u0275cmp=gt({type:e,selectors:[["comp-status"]],outputs:{get_state_root_hash_output:"get_state_root_hash_output"},standalone:!0,features:[Bt],decls:5,vars:3,consts:[[1,"row"],[1,"col-sm-12"],["class","alert alert-success d-flex flex-md-row flex-column justify-content-between align-items-center mb-1 mb-md-3",4,"ngIf"],["class","alert alert-warning d-flex mb-1 mb-md-3",4,"ngIf"],[1,"alert","alert-success","d-flex","flex-md-row","flex-column","justify-content-between","align-items-center","mb-1","mb-md-3"],["e2e-id","state_root_hash",1,"ellipsis-container"],[1,"btn","me-0",3,"click"],[1,"alert","alert-warning","d-flex","mb-1","mb-md-3"],["e2e-id","account_hash",1,"ellipsis-container"],["e2e-id","main_purse",1,"ellipsis-container"]],template:function(r,o){1&r&&(q(0,"div",0)(1,"div",1),he(2,OB,5,1,"div",2)(3,PB,3,1,"div",3)(4,LB,3,1,"div",3),W()()),2&r&&(z(2),$("ngIf",o.state_root_hash),z(),$("ngIf",o.account_hash),z(),$("ngIf",o.main_purse))},dependencies:[ht,Wn],styles:[".ellipsis-container[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto;font-size:.8em;max-width:260px}@media (min-width: 380px){.ellipsis-container[_ngcontent-%COMP%]{max-width:320px}}@media (min-width: 425px){.ellipsis-container[_ngcontent-%COMP%]{max-width:360px}}@media (min-width: 576px){.ellipsis-container[_ngcontent-%COMP%]{max-width:480px}}@media (min-width: 768px){.ellipsis-container[_ngcontent-%COMP%]{max-width:none;font-size:1em}}.btn[_ngcontent-%COMP%]{white-space:nowrap}@media (max-width: 767px){.btn[_ngcontent-%COMP%]{font-size:.8em;padding-bottom:0}}"],changeDetection:0})}return e})();function VB(e,n){if(1&e&&(q(0,"option",10),Ce(1),W()),2&e){const t=n.$implicit,r=Y();$("value",t)("selected",r.action===t),z(),jt(" ",t," ")}}function jB(e,n){if(1&e&&(q(0,"option",10),Ce(1),W()),2&e){const t=n.$implicit,r=Y();$("value",t)("selected",r.action===t),z(),jt(" ",t," ")}}function BB(e,n){if(1&e&&(q(0,"option",10),Ce(1),W()),2&e){const t=n.$implicit,r=Y();$("value",t)("selected",r.action===t),z(),jt(" ",t," ")}}function HB(e,n){if(1&e&&(q(0,"option",11),Ce(1),W()),2&e){const t=n.$implicit;$("value",t),z(),jt(" ",t," ")}}let _I=(()=>{class e{constructor(t,r,o){this.sdk=t,this.stateService=r,this.changeDetectorRef=o,this.select_action=new je}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){t.sdk_methods=Object.getOwnPropertyNames(Object.getPrototypeOf(t.sdk)).filter(r=>"function"==typeof t.sdk[r]).filter(r=>!["free","constructor","__destroy_into_raw","getNodeAddress","setNodeAddress","getVerbosity","setVerbosity"].includes(r)).filter(r=>!r.endsWith("_options")).filter(r=>!r.startsWith("chain_")).filter(r=>!r.startsWith("state_")).filter(r=>!r.startsWith("info_")).filter(r=>!r.startsWith("account")).sort(),t.sdk_deploy_methods=t.sdk_methods.filter(r=>["deploy","speculative_deploy","speculative_transfer","transfer"].includes(r)),t.sdk_deploy_utils_methods=t.sdk_methods.filter(r=>["make_deploy","make_transfer","sign_deploy","put_deploy"].includes(r)),t.sdk_contract_methods=t.sdk_methods.filter(r=>["call_entrypoint","install","query_contract_dict","query_contract_key"].includes(r)),t.sdk_rpc_methods=t.sdk_methods.filter(r=>!t.sdk_deploy_methods.concat(t.sdk_deploy_utils_methods,t.sdk_contract_methods).includes(r)),t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action),this.changeDetectorRef.markForCheck()})}selectAction(t){this.select_action.emit(t.target.value)}static#e=this.\u0275fac=function(r){return new(r||e)(P(oc),P(Qn),P(vn))};static#t=this.\u0275cmp=gt({type:e,selectors:[["comp-action"]],outputs:{select_action:"select_action"},standalone:!0,features:[Bt],decls:14,vars:4,consts:[[1,"input-group"],["for","selectActionElt",1,"input-group-text"],["id","selectActionElt","e2e-id","selectActionElt",1,"form-select","form-control","form-control-sm",3,"change"],["selectActionElt",""],["label","rpc"],[3,"value","selected",4,"ngFor","ngForOf"],["label","deploy utils"],["label","deploy"],["label","contract"],[3,"value",4,"ngFor","ngForOf"],[3,"value","selected"],[3,"value"]],template:function(r,o){1&r&&(q(0,"div",0)(1,"label",1),Ce(2,"Action"),W(),q(3,"select",2,3),ve("change",function(a){return o.selectAction(a)}),Ft(5,"option"),q(6,"optgroup",4),he(7,VB,2,3,"option",5),W(),q(8,"optgroup",6),he(9,jB,2,3,"option",5),W(),q(10,"optgroup",7),he(11,BB,2,3,"option",5),W(),q(12,"optgroup",8),he(13,HB,2,2,"option",9),W()()()),2&r&&(z(7),$("ngForOf",o.sdk_rpc_methods),z(2),$("ngForOf",o.sdk_deploy_utils_methods),z(2),$("ngForOf",o.sdk_deploy_methods),z(2),$("ngForOf",o.sdk_contract_methods))},dependencies:[ht,Qa],changeDetection:0})}return e})();const UB=e=>[e],$B=["*"];let fI=(()=>{class e{constructor(t,r){this.stateService=t,this.changeDetectorRef=r,this.submit_action=new je}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action),this.changeDetectorRef.markForCheck()})}submitAction(t){this.submit_action.emit(t)}static#e=this.\u0275fac=function(r){return new(r||e)(P(Qn),P(vn))};static#t=this.\u0275cmp=gt({type:e,selectors:[["comp-submit-action"]],inputs:{class:"class",e2e:"e2e"},outputs:{submit_action:"submit_action"},standalone:!0,features:[Bt],ngContentSelectors:$B,decls:2,vars:4,consts:[["type","button",1,"btn",3,"ngClass","click"]],template:function(r,o){1&r&&(function dv(e){const n=F()[$e][mt];if(!n.projection){const r=n.projection=function Qc(e,n){const t=[];for(let r=0;r{class e{constructor(t,r,o,s,a,u){this.config=t,this.sdk=r,this.resultService=o,this.formService=s,this.errorService=a,this.stateService=u,this.verbosity=me.qY.High,this.setStateSubscription()}setStateSubscription(){this.stateService.getState().subscribe(t=>{t.chain_name&&(this.chain_name=t.chain_name),t.public_key&&(this.public_key=t.public_key),t.private_key&&(this.private_key=t.private_key),t.deploy_json&&(this.deploy_json=t.deploy_json),t.verbosity&&(this.verbosity=t.verbosity),t.select_dict_identifier&&(this.select_dict_identifier=t.select_dict_identifier)})}get_account(t){var r=this;return(0,j.c)(function*(){let o;if(o=t||r.getIdentifier("accountIdentifier")?.value?.trim(),!o){const a="account_identifier is missing";return void(a&&r.errorService.setError(a.toString()))}const s=r.sdk.get_account_options({account_identifier_as_string:o});if(s){r.getIdentifieBlock(s);try{const a=yield r.sdk.get_account(s);return t||r.resultService.setResult(a.toJson()),a}catch(a){return r.errorService.setError(a.toString()),a}}else{const a="get_account_options is missing";a&&r.errorService.setError(a.toString())}})()}get_deploy(){var t=this;return(0,j.c)(function*(){const r=t.getIdentifier("finalizedApprovals")?.value,o=t.getIdentifier("deployHash")?.value?.trim();if(!o){const a="deploy_hash_as_string is missing";return void(a&&t.errorService.setError(a.toString()))}const s=t.sdk.get_deploy_options({deploy_hash_as_string:o});s.finalized_approvals=r;try{const a=yield t.sdk.get_deploy(s);a&&t.resultService.setResult(a.toJson())}catch(a){a&&t.errorService.setError(a.toString())}})()}get_peers(){var t=this;return(0,j.c)(function*(){let r;try{const o=yield t.sdk.get_peers();o&&t.resultService.setResult(o.toJson()),o&&(r=o.peers)}catch(o){o&&t.errorService.setError(o.toString())}return r})()}get_node_status(){var t=this;return(0,j.c)(function*(){const r=yield t.sdk.get_node_status();return r&&t.resultService.setResult(r.toJson()),r})()}get_state_root_hash(t){var r=this;return(0,j.c)(function*(){let o="";const s=r.sdk.get_state_root_hash_options({});if(!s){const a="get_state_root_hash options are missing";a&&r.errorService.setError(a.toString())}if(t)o=(yield r.sdk.get_state_root_hash(s)).toString();else{r.getIdentifieBlock(s);const a=yield r.sdk.get_state_root_hash(s);a&&r.resultService.setResult(a.toJson())}return o})()}get_auction_info(){var t=this;return(0,j.c)(function*(){try{const r=t.sdk.get_auction_info_options({});t.getIdentifieBlock(r);const o=yield t.sdk.get_auction_info(r);o&&t.resultService.setResult(o.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}get_balance(){var t=this;return(0,j.c)(function*(){const r=t.getIdentifier("purseUref")?.value?.trim(),o=t.getIdentifier("stateRootHash")?.value?.trim();if(r)try{const s=t.sdk.get_balance_options({state_root_hash_as_string:o||"",purse_uref_as_string:r}),a=yield t.sdk.get_balance(s);a&&t.resultService.setResult(a.toJson())}catch(s){s&&t.errorService.setError(s.toString())}else{const s="purse_uref_as_string is missing";s&&t.errorService.setError(s.toString())}})()}get_block(){var t=this;return(0,j.c)(function*(){try{const r=t.sdk.get_block_options({});t.getIdentifieBlock(r);const o=yield t.sdk.get_block(r);o&&t.resultService.setResult(o.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}get_block_transfers(){var t=this;return(0,j.c)(function*(){try{const r=t.sdk.get_block_transfers_options({});t.getIdentifieBlock(r);const o=yield t.sdk.get_block_transfers(r);o&&t.resultService.setResult(o.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}get_chainspec(){var t=this;return(0,j.c)(function*(){try{const r=yield t.sdk.get_chainspec(),o=(0,me.M5)(r?.chainspec_bytes.chainspec_bytes);o&&t.resultService.setResult(o)}catch(r){r&&t.errorService.setError(r.toString())}})()}get_era_info(){var t=this;return(0,j.c)(function*(){const r=t.sdk.get_era_info_options({});t.getIdentifieBlock(r);try{const o=yield t.sdk.get_era_info(r);o&&t.resultService.setResult(o.toJson())}catch(o){o&&t.errorService.setError(o.toString())}})()}get_era_summary(){var t=this;return(0,j.c)(function*(){const r=t.sdk.get_era_summary_options({});t.getIdentifieBlock(r);try{const o=yield t.sdk.get_era_summary(r);o&&t.resultService.setResult(o.toJson())}catch(o){o&&t.errorService.setError(o.toString())}})()}get_validator_changes(){var t=this;return(0,j.c)(function*(){try{const r=yield t.sdk.get_validator_changes();r&&t.resultService.setResult(r.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}list_rpcs(){var t=this;return(0,j.c)(function*(){try{const r=yield t.sdk.list_rpcs();r&&t.resultService.setResult(r.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}query_balance(){var t=this;return(0,j.c)(function*(){const r=t.getIdentifier("purseIdentifier")?.value?.trim();if(!r){const s="deploy_hash_as_string is missing";return void(s&&t.errorService.setError(s.toString()))}const o=t.sdk.query_balance_options({purse_identifier_as_string:r});t.getGlobalIdentifier(o);try{const s=yield t.sdk.query_balance(o);s&&t.resultService.setResult(s.balance)}catch(s){s&&t.errorService.setError(s.toString())}})()}query_global_state(){var t=this;return(0,j.c)(function*(){const r=t.getIdentifier("queryPath")?.value?.trim()||"",o=t.getIdentifier("queryKey")?.value?.trim();if(!o){const a="key_as_string is missing";return void(a&&t.errorService.setError(a.toString()))}const s=t.sdk.query_global_state_options({key_as_string:o,path_as_string:r});t.getGlobalIdentifier(s);try{const a=yield t.sdk.query_global_state(s);a&&t.resultService.setResult(a.toJson())}catch(a){a&&t.errorService.setError(a.toString())}})()}deploy(t=!0,r,o){var s=this;return(0,j.c)(function*(){const a=(0,me.Mr)(),u=s.getIdentifier("TTL")?.value?.trim()||"";if(!s.public_key){const v="public_key is missing";return void(v&&s.errorService.setError(v.toString()))}const d=new me.H$(s.chain_name,s.public_key,s.private_key,a,u),f=new me.gh,h=s.getIdentifier("paymentAmount")?.value?.trim();if(!h){const v="paymentAmount is missing";return void(v&&s.errorService.setError(v.toString()))}f.payment_amount=h;const g=s.get_session_params(o);let b;if(r){const v={maybe_block_id_as_string:void 0,maybe_block_identifier:void 0};s.getIdentifieBlock(v);const{maybe_block_id_as_string:I,maybe_block_identifier:k}=v;b=yield s.sdk.speculative_deploy(d,g,f,I,k)}else b=t?yield s.sdk.deploy(d,g,f):s.sdk.make_deploy(d,g,f);if(b){const v=b.toJson();s.deploy_json=(0,me.on)(v,s.verbosity),s.deploy_json&&s.resultService.setResult(v)}return b})()}install(t){var r=this;return(0,j.c)(function*(){const o=r.getIdentifier("paymentAmount")?.value?.trim();if(!o){const d="paymentAmount is missing";return void(d&&r.errorService.setError(d.toString()))}if(!r.public_key||!r.private_key){const d="public_key or private_key is missing";return void(d&&r.errorService.setError(d.toString()))}if(!t?.buffer){const d="wasmBuffer is missing";d&&r.errorService.setError(d.toString())}const a=new me.H$(r.chain_name,r.public_key,r.private_key),u=r.get_session_params(t);try{const d=yield r.sdk.install(a,u,o);d&&r.resultService.setResult(d.toJson())}catch(d){d&&r.errorService.setError(d.toString())}})()}transfer(t=!0,r){var o=this;return(0,j.c)(function*(){const s=(0,me.Mr)(),a=o.getIdentifier("TTL")?.value?.trim()||"";if(!o.public_key){const b="public_key is missing";return void(b&&o.errorService.setError(b.toString()))}const u=new me.H$(o.chain_name,o.public_key,o.private_key,s,a),d=new me.gh;d.payment_amount=o.config.gas_fee_transfer.toString();const f=o.getIdentifier("transferAmount")?.value?.trim(),h=o.getIdentifier("targetAccount")?.value?.trim();if(!f||!h){const b="transfer_amount or target_account is missing";return void(b&&o.errorService.setError(b.toString()))}let g;if(r){const b={maybe_block_id_as_string:void 0,maybe_block_identifier:void 0};o.getIdentifieBlock(b);const{maybe_block_id_as_string:v,maybe_block_identifier:I}=b;g=yield o.sdk.speculative_transfer(f,h,void 0,u,d,v,I)}else g=t?yield o.sdk.transfer(f,h,void 0,u,d):yield o.sdk.make_transfer(f,h,void 0,u,d);if(g){const b=g.toJson();o.deploy_json=(0,me.on)(b,o.verbosity),o.deploy_json&&o.resultService.setResult(b)}return g})()}put_deploy(){var t=this;return(0,j.c)(function*(){const r=t.getIdentifier("deployJson")?.value?.trim();if(!r){const a="deployJson is missing";return void(a&&t.errorService.setError(a.toString()))}const o=new me.ob(JSON.parse(r)),s=yield t.sdk.put_deploy(o);return s&&t.resultService.setResult(s.toJson()),s})()}speculative_exec(){var t=this;return(0,j.c)(function*(){const r=t.getIdentifier("deployJson")?.value?.trim();if(!r){const u="signed_deploy_as_string is missing";return void(u&&t.errorService.setError(u.toString()))}const o=new me.ob(JSON.parse(r)),s=t.sdk.speculative_exec_options({deploy:o.toJson()});t.getIdentifieBlock(s);const a=yield t.sdk.speculative_exec(s);return a&&t.resultService.setResult(a.toJson()),a})()}sign_deploy(){var t=this;return(0,j.c)(function*(){if(!t.private_key){const s="private_key is missing";return void(s&&t.errorService.setError(s.toString()))}const r=t.getIdentifier("deployJson")?.value?.trim();if(!r){const s="signed_deploy_as_string is missing";return void(s&&t.errorService.setError(s.toString()))}let o;try{o=new me.ob(JSON.parse(r))}catch{const s="Error parsing deploy";return void(s&&t.errorService.setError(s.toString()))}if(o)o=o.sign(t.private_key),t.deploy_json=(0,me.on)(o.toJson(),t.verbosity),t.getIdentifier("deployJson")?.setValue(t.deploy_json);else{const s="signed_deploy_as_string is missing";s&&t.errorService.setError(s.toString())}})()}make_deploy(t){var r=this;return(0,j.c)(function*(){yield r.deploy(!1,!1,t)})()}make_transfer(){var t=this;return(0,j.c)(function*(){yield t.transfer(!1)})()}speculative_transfer(){var t=this;return(0,j.c)(function*(){yield t.transfer(!1,!0)})()}speculative_deploy(t){var r=this;return(0,j.c)(function*(){yield r.deploy(!1,!0,t)})()}call_entrypoint(){var t=this;return(0,j.c)(function*(){if(!t.public_key||!t.private_key){const a="public_key or private_key is missing";return void(a&&t.errorService.setError(a.toString()))}const r=new me.H$(t.chain_name,t.public_key,t.private_key),o=t.get_session_params(),s=t.getIdentifier("paymentAmount")?.value?.trim();if(s)try{const a=yield t.sdk.call_entrypoint(r,o,s);a&&t.resultService.setResult(a.toJson())}catch(a){a&&t.errorService.setError(a.toString())}else{const a="paymentAmount is missing";a&&t.errorService.setError(a.toString())}})()}query_contract_dict(){var t=this;return(0,j.c)(function*(){const r=t.getIdentifier("stateRootHash")?.value?.trim(),o=t.getIdentifier("itemKey")?.value?.trim();if(!o){const f="itemKey is missing";return void(f&&t.errorService.setError(f.toString()))}const s=t.getIdentifier("seedContractHash")?.value?.trim()||"",a=t.getIdentifier("seedName")?.value?.trim();if(!a){const f="seedName is missing";return void(f&&t.errorService.setError(f.toString()))}let u;if(s&&(u=new me.Ur,u.setContractNamedKey(s,a,o)),!u){const f="dictionary_item_params is missing";return void(f&&t.errorService.setError(f.toString()))}const d=t.sdk.query_contract_dict_options({state_root_hash_as_string:r||""});d.dictionary_item_params=u;try{const f=yield t.sdk.query_contract_dict(d);f&&t.resultService.setResult(f.toJson())}catch(f){f&&t.errorService.setError(f.toString())}})()}query_contract_key(){var t=this;return(0,j.c)(function*(){const r=t.getIdentifier("stateRootHash")?.value?.trim(),o=t.getIdentifier("queryKey")?.value?.trim();if(!o){const u="key_as_string is missing";return void(u&&t.errorService.setError(u.toString()))}const s=t.getIdentifier("queryPath")?.value.toString().trim().replace(/^\/+|\/+$/g,""),a=t.sdk.query_contract_key_options({state_root_hash_as_string:r||"",key_as_string:o,path_as_string:s});try{const u=yield t.sdk.query_contract_key(a);u&&t.resultService.setResult(u.toJson())}catch(u){u&&t.errorService.setError(u.toString())}})()}get_dictionary_item(){var t=this;return(0,j.c)(function*(){const r=t.getIdentifier("stateRootHash")?.value?.trim(),o=t.getIdentifier("itemKey")?.value?.trim(),s=t.getIdentifier("seedKey")?.value?.trim();if(!o&&!s){const f="seedKey or itemKey is missing";return void(f&&t.errorService.setError(f.toString()))}const a=t.getIdentifier("seedUref")?.value?.trim();let u;if(a&&"newFromSeedUref"===t.select_dict_identifier)u=me.kv.newFromSeedUref(a,o);else if(s&&"newFromDictionaryKey"===t.select_dict_identifier)u=me.kv.newFromDictionaryKey(s);else{const f=t.getIdentifier("seedContractHash")?.value?.trim(),h=t.getIdentifier("seedAccountHash")?.value?.trim(),g=t.getIdentifier("seedName")?.value?.trim();if(!g){const b="seed_name is missing";return void(b&&t.errorService.setError(b.toString()))}f&&"newFromContractInfo"===t.select_dict_identifier?u=me.kv.newFromContractInfo(f,g,o):h&&"newFromAccountInfo"===t.select_dict_identifier&&(u=me.kv.newFromAccountInfo(h,g,o))}if(!u){const f="dictionary_item_identifier is missing";return void(f&&t.errorService.setError(f.toString()))}const d=t.sdk.get_dictionary_item_options({state_root_hash_as_string:r||""});d.dictionary_item_identifier=u;try{const f=yield t.sdk.state_get_dictionary_item(d);f&&t.resultService.setResult(f.toJson())}catch(f){f&&t.errorService.setError(f.toString())}})()}getIdentifier(t){return this.formService.form.get(t)}getIdentifieBlock(t){const r=this.getIdentifier("blockIdentifierHeight")?.value?.trim(),o=this.getIdentifier("blockIdentifierHash")?.value?.trim();if(o)t.maybe_block_id_as_string=o,t.maybe_block_identifier=void 0;else if(r){const s=me.y0.fromHeight(BigInt(r));t.maybe_block_id_as_string=void 0,t.maybe_block_identifier=s}else t.maybe_block_id_as_string=void 0,t.maybe_block_identifier=void 0}getGlobalIdentifier(t){const r=this.getIdentifier("stateRootHash")?.value?.trim();let o;if(r)o=me.cH.fromStateRootHash(new me.u(r));else{const s=this.getIdentifier("blockIdentifierHeight")?.value?.trim(),a=this.getIdentifier("blockIdentifierHash")?.value?.trim();a?o=me.cH.fromBlockHash(new me.Mt(a)):s&&(o=me.cH.fromBlockHeight(BigInt(s)))}o&&(t.global_state_identifier=o)}get_session_params(t){const r=new me.uC,o=this.getIdentifier("entryPoint")?.value?.trim();o&&(r.session_entry_point=o);const s=this.getIdentifier("argsSimple")?.value?.trim().split(",").map(g=>g.trim()).filter(g=>""!==g),a=this.getIdentifier("argsJson")?.value?.trim();s?.length?r.session_args_simple=s:a&&(r.session_args_json=a);const u=this.getIdentifier("callPackage")?.value,d=this.getIdentifier("sessionHash")?.value?.trim(),f=this.getIdentifier("sessionName")?.value?.trim();u?d?r.session_package_hash=d:f&&(r.session_package_name=f):d?r.session_hash=d:f&&(r.session_name=f),t&&(r.session_bytes=me.Km.fromUint8Array(t));const h=this.getIdentifier("version")?.value?.trim();return h&&(r.session_version=h),r}static#e=this.\u0275fac=function(r){return new(r||e)(X(Fr),X(oc),X(_d),X(ud),X(dd),X(Qn))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const zB=["publicKeyElt"],qB=e=>[e];let hI=(()=>{class e{constructor(t,r,o,s){this.config=t,this.stateService=r,this.clientService=o,this.changeDetectorRef=s}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){var t=this;this.stateSubscription=this.stateService.getState().subscribe(function(){var r=(0,j.c)(function*(o){o.action&&(t.action=o.action),o.public_key&&t.public_key!=o.public_key&&(o.public_key&&(t.public_key=o.public_key),o.private_key&&(t.private_key=o.private_key),yield t.updateAccount()),t.changeDetectorRef.markForCheck()});return function(o){return r.apply(this,arguments)}}())}onPublicKeyChange(){var t=this;return(0,j.c)(function*(){const r=t.publicKeyElt&&t.publicKeyElt.nativeElement.value.toString().trim();r!==t.public_key&&t.stateService.setState({public_key:r,private_key:""})})()}isInvalid(){return!(this.config.action_needs_public_key&&!this.config.action_needs_public_key?.includes(this.action)||this.publicKeyElt?.nativeElement.value?.trim())}updateAccount(){var t=this;return(0,j.c)(function*(){const r=yield t.clientService.get_account(t.public_key);if(!r.account)return;const o=r?.account?.account_hash,s=r?.account?.main_purse;t.stateService.setState({account_hash:o,main_purse:s})})()}static#e=this.\u0275fac=function(r){return new(r||e)(P(Fr),P(Qn),P(pI),P(vn))};static#t=this.\u0275cmp=gt({type:e,selectors:[["comp-public-key"]],viewQuery:function(r,o){if(1&r&&un(zB,5),2&r){let s;dn(s=_n())&&(o.publicKeyElt=s.first)}},standalone:!0,features:[Bt],decls:7,vars:4,consts:[["for","publicKeyElt",1,"input-group-text"],[1,"d-none","d-md-inline","d-lg-none"],[1,"d-md-none","d-lg-inline"],["type","search","name","public_key","placeholder","e.g. 0x","id","publicKeyElt","e2e-id","publicKeyElt",1,"form-control","form-control-xs",3,"value","ngClass","change"],["publicKeyElt",""]],template:function(r,o){1&r&&(q(0,"label",0)(1,"span",1),Ce(2,"Pub. Key"),W(),q(3,"span",2),Ce(4,"Public Key"),W()(),q(5,"input",3,4),ve("change",function(){return o.onPublicKeyChange()}),W()),2&r&&(z(5),$("value",o.public_key||"")("ngClass",fs(2,qB,o.isInvalid()?"is-invalid":"")))},dependencies:[ht,Jo],changeDetection:0})}return e})();const GB=["privateKeyElt"],WB=e=>[e];function JB(e,n){if(1&e){const t=Jt();q(0,"button",4),ve("click",function(){return At(t),Nt(Y().onPrivateKeyClick())}),Ce(1," Load Private Key\n"),W()}if(2&e){const t=Y();$("ngClass",fs(1,WB,t.isInvalid()?"btn-warning":"btn-secondary"))}}function KB(e,n){if(1&e){const t=Jt();q(0,"button",5),ve("click",function(){return At(t),Nt(Y().onPrivateKeyClick())}),Ce(1," Private Key Loaded\n"),W()}}let gI=(()=>{class e{constructor(t,r,o){this.config=t,this.stateService=r,this.changeDetectorRef=o}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){var t=this;this.stateSubscription=this.stateService.getState().subscribe(function(){var r=(0,j.c)(function*(o){o.action&&(t.action=o.action),t.changeDetectorRef.markForCheck()});return function(o){return r.apply(this,arguments)}}())}onPrivateKeyClick(){this.privateKeyElt.nativeElement.click()}onPemSelected(t){var r=this;return(0,j.c)(function*(){const o=t.target.files?.item(0);let s="";if(o){let a=yield o.text();if(!a.trim())return;a=a.trim(),s=(0,me.HM)(a),s&&(r.private_key=a)}else r.private_key="",r.privateKeyElt.nativeElement.value="";r.stateService.setState({public_key:s,private_key:r.private_key}),r.changeDetectorRef.markForCheck()})()}isInvalid(){return!(this.config.action_needs_private_key&&!this.config.action_needs_private_key?.includes(this.action)||this.private_key)}static#e=this.\u0275fac=function(r){return new(r||e)(P(Fr),P(Qn),P(vn))};static#t=this.\u0275cmp=gt({type:e,selectors:[["comp-private-key"]],viewQuery:function(r,o){if(1&r&&un(GB,5),2&r){let s;dn(s=_n())&&(o.privateKeyElt=s.first)}},standalone:!0,features:[Bt],decls:4,vars:2,consts:[["name","private_key","type","file","id","privateKeyElt","accept",".pem","e2e-id","privateKeyElt",1,"visually-hidden",3,"change"],["privateKeyElt",""],["class","btn",3,"ngClass","click",4,"ngIf"],["class","btn btn-light",3,"click",4,"ngIf"],[1,"btn",3,"ngClass","click"],[1,"btn","btn-light",3,"click"]],template:function(r,o){1&r&&(q(0,"input",0,1),ve("change",function(a){return o.onPemSelected(a)}),W(),he(2,JB,2,3,"button",2)(3,KB,2,0,"button",3)),2&r&&(z(2),$("ngIf",!o.private_key),z(),$("ngIf",o.private_key))},dependencies:[ht,Jo,Wn],changeDetection:0})}return e})();const QB=["selectDictIdentifierElt"];function ZB(e,n){if(1&e){const t=Jt();q(0,"comp-submit-action",11),ve("submit_action",function(o){return At(t),Nt(Y().submitAction(o))}),Ce(1,"Go"),W()}2&e&&(np("btn-success ms-1 ms-sm-2 ms-xl-3"),$("e2e","submit"))}function YB(e,n){if(1&e){const t=Jt();q(0,"comp-submit-action",11),ve("submit_action",function(o){return At(t),Nt(Y().submitAction(o))}),Ce(1,"Sign "),W()}2&e&&(np("btn-warning mt-3"),$("e2e","sign"))}const mI=()=>["sign_deploy"];(function HL(e,n){return zx({rootComponent:e,...OC(n)})})((()=>{class e{constructor(t,r,o,s,a,u,d,f){this.sdk=t,this.config=r,this.env=o,this.clientService=s,this.resultService=a,this.stateService=u,this.formService=d,this.errorService=f,this.form=this.formService.form}ngOnInit(){var t=this;return(0,j.c)(function*(){console.info(t.sdk)})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action)})}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){const o=t.config.default_action.toString();try{(yield t.get_node_status())&&(yield t.get_state_root_hash(!0),t.stateService.setState({action:o}))}catch(s){console.error(s),t.errorService.setError(s)}t.setStateSubscription()})()}selectAction(t){var r=this;return(0,j.c)(function*(){yield r.cleanResult(),r.stateService.setState({action:t}),yield r.handleAction(t)})()}submitAction(t){var r=this;return(0,j.c)(function*(){yield r.cleanResult(),(r.form.disabled||r.form.valid)&&(yield r.handleAction(t,!0))})()}handleAction(t,r){var o=this;return(0,j.c)(function*(){const s=o[t];if(s&&"function"==typeof s)r&&(yield s.bind(o)());else{const a=`Method ${t} is not defined on the component.`;console.error(a),o.errorService.setError(a)}})()}onWasmSelected(t){var r=this;return(0,j.c)(function*(){t&&(r.wasm=t)})()}cleanResult(){var t=this;return(0,j.c)(function*(){t.errorService.setError(""),yield t.resultService.setResult("")})()}call_entrypoint(){var t=this;return(0,j.c)(function*(){return yield t.clientService.call_entrypoint()})()}deploy(t=!0,r){var o=this;return(0,j.c)(function*(){return yield o.clientService.deploy(t,r,o.wasm)})()}get_account(t){var r=this;return(0,j.c)(function*(){return yield r.clientService.get_account(t)})()}get_auction_info(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_auction_info()})()}get_balance(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_balance()})()}get_block(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_block()})()}get_block_transfers(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_block_transfers()})()}get_chainspec(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_chainspec()})()}get_deploy(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_deploy()})()}get_dictionary_item(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_dictionary_item()})()}get_era_info(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_era_info()})()}get_era_summary(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_era_summary()})()}get_node_status(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_node_status()})()}get_peers(){var t=this;return(0,j.c)(function*(){return t.peers=yield t.clientService.get_peers(),t.peers})()}get_state_root_hash(t){var r=this;return(0,j.c)(function*(){const o=yield r.clientService.get_state_root_hash(t);return r.stateService.setState({state_root_hash:o}),o})()}get_validator_changes(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_validator_changes()})()}install(){var t=this;return(0,j.c)(function*(){return yield t.clientService.install(t.wasm)})()}list_rpcs(){var t=this;return(0,j.c)(function*(){return yield t.clientService.list_rpcs()})()}make_deploy(){var t=this;return(0,j.c)(function*(){return yield t.clientService.make_deploy(t.wasm)})()}make_transfer(){var t=this;return(0,j.c)(function*(){return yield t.clientService.make_transfer()})()}put_deploy(){var t=this;return(0,j.c)(function*(){return yield t.clientService.put_deploy()})()}query_balance(){var t=this;return(0,j.c)(function*(){return yield t.clientService.query_balance()})()}query_contract_dict(){var t=this;return(0,j.c)(function*(){return yield t.clientService.query_contract_dict()})()}query_contract_key(){var t=this;return(0,j.c)(function*(){return yield t.clientService.query_contract_key()})()}query_global_state(){var t=this;return(0,j.c)(function*(){return yield t.clientService.query_global_state()})()}sign_deploy(){var t=this;return(0,j.c)(function*(){return yield t.clientService.sign_deploy()})()}speculative_deploy(){var t=this;return(0,j.c)(function*(){return yield t.clientService.speculative_deploy(t.wasm)})()}speculative_exec(){var t=this;return(0,j.c)(function*(){return yield t.clientService.speculative_exec()})()}speculative_transfer(){var t=this;return(0,j.c)(function*(){return yield t.clientService.speculative_transfer()})()}transfer(t=!0,r){var o=this;return(0,j.c)(function*(){return yield o.clientService.transfer(t,r)})()}static#e=this.\u0275fac=function(r){return new(r||e)(P(oc),P(Fr),P(yh),P(pI),P(_d),P(Qn),P(ud),P(dd))};static#t=this.\u0275cmp=gt({type:e,selectors:[["app-root"]],viewQuery:function(r,o){if(1&r&&un(QB,5),2&r){let s;dn(s=_n())&&(o.selectDictIdentifierElt=s.first)}},standalone:!0,features:[Bt],decls:15,vars:6,consts:[[1,"container"],[3,"peers"],[3,"get_state_root_hash_output"],[1,"row","flex-column-reverse","flex-column-reverse","flex-md-row"],[1,"col-12","col-md-6","col-lg-5","my-1","my-md-0","d-flex","justify-content-between"],[1,"w-100",3,"select_action"],[3,"class","e2e","submit_action",4,"ngIf"],[1,"col-12","col-md-6","col-lg-7","my-1","my-md-0","d-flex","justify-content-end","ps-md-0"],[1,"input-group"],[1,"d-flex","justify-content-end","ms-1","ms-sm-2","ms-xl-3"],[3,"form","wasm_selected"],[3,"e2e","submit_action"]],template:function(r,o){1&r&&(q(0,"main",0),Ft(1,"comp-header",1),q(2,"comp-status",2),ve("get_state_root_hash_output",function(a){return o.get_state_root_hash(a)}),W(),q(3,"div",3)(4,"div",4)(5,"comp-action",5),ve("select_action",function(a){return o.selectAction(a)}),W(),he(6,ZB,2,3,"comp-submit-action",6),W(),q(7,"div",7),Ft(8,"comp-public-key",8),q(9,"div",9),Ft(10,"comp-private-key"),W()()(),q(11,"comp-form",10),ve("wasm_selected",function(a){return o.onWasmSelected(a)}),W(),he(12,YB,2,3,"comp-submit-action",6),Ft(13,"comp-error")(14,"comp-result"),W()),2&r&&(z(),$("peers",o.peers),z(5),$("ngIf",!yp(4,mI).includes(o.action)),z(5),$("form",o.form),z(),$("ngIf",yp(5,mI).includes(o.action)))},dependencies:[ht,Wn,Es,iI,cI,lI,uI,dI,_I,fI,hI,gI],changeDetection:0})}return e})(),{providers:[{provide:yh,useValue:bh},{provide:Fr,useValue:wh},{provide:jC,useValue:wh.wasm_asset_path},{provide:BC,useValue:bh.node_address},{provide:HC,useValue:me.qY[wh.verbosity]},Gg([yL,eV,IB])]}).then(()=>{}).catch(()=>{})},1376:Zn=>{var Rr=0;function Ct(l,ce){var L=ce.data;if(Array.isArray(L)&&!(L.length<2)){var ut=L[0],Et=L[1],C=L[2],Ut=l._callbacks[ut];Ut&&(delete l._callbacks[ut],Ut(Et,C))}}function j(l){var ce=this;ce._worker=l,ce._callbacks={},l.addEventListener("message",function(L){Ct(ce,L)})}j.prototype.postMessage=function(l){var ce=this,L=Rr++,ut=[L,l];return new Promise(function(Et,C){if(ce._callbacks[L]=function(It,$t){if(It)return C(new Error(It.message));Et($t)},typeof ce._worker.controller<"u"){var Ut=new MessageChannel;Ut.port1.onmessage=function(It){Ct(ce,It)},ce._worker.controller.postMessage(ut,[Ut.port2])}else ce._worker.postMessage(ut)})},Zn.exports=j},8596:(Zn,Rr,Ct)=>{Ct.d(Rr,{EB:()=>Td,H$:()=>In,HM:()=>Xh,Km:()=>Mt,M5:()=>pc,Mr:()=>pd,Mt:()=>Ln,Qb:()=>As,Ur:()=>pr,cH:()=>en,cp:()=>Co,gh:()=>pn,kv:()=>Xt,ob:()=>De,on:()=>Yh,qY:()=>Xe,u:()=>Ie,uC:()=>gr,y0:()=>Ue});var j=Ct(1528);let l;Zn=Ct.hmd(Zn);const ce=new Array(128).fill(void 0);function L(m){return ce[m]}ce.push(void 0,null,!0,!1);let ut=ce.length;function C(m){const i=L(m);return function Et(m){m<132||(ce[m]=ut,ut=m)}(m),i}const Ut=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&Ut.decode();let It=null;function $t(){return(null===It||0===It.byteLength)&&(It=new Uint8Array(l.memory.buffer)),It}function R(m,i){return m>>>=0,Ut.decode($t().subarray(m,m+i))}function x(m){ut===ce.length&&ce.push(ce.length+1);const i=ut;return ut=ce[i],ce[i]=m,i}let D=0;const oo=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},dc="function"==typeof oo.encodeInto?function(m,i){return oo.encodeInto(m,i)}:function(m,i){const c=oo.encode(m);return i.set(c),{read:m.length,written:c.length}};function S(m,i,c){if(void 0===c){const A=oo.encode(m),K=i(A.length,1)>>>0;return $t().subarray(K,K+A.length).set(A),D=A.length,K}let _=m.length,p=i(_,1)>>>0;const y=$t();let M=0;for(;M<_;M++){const A=m.charCodeAt(M);if(A>127)break;y[p+M]=A}if(M!==_){0!==M&&(m=m.slice(M)),p=c(p,_,_=M+3*m.length,1)>>>0;const A=$t().subarray(p+M,p+_);M+=dc(m,A).written,p=c(p,_,M,1)>>>0}return D=M,p}function E(m){return null==m}let xr=null;function w(){return(null===xr||0===xr.byteLength)&&(xr=new Int32Array(l.memory.buffer)),xr}function io(m){const i=typeof m;if("number"==i||"boolean"==i||null==m)return`${m}`;if("string"==i)return`"${m}"`;if("symbol"==i){const p=m.description;return null==p?"Symbol":`Symbol(${p})`}if("function"==i){const p=m.name;return"string"==typeof p&&p.length>0?`Function(${p})`:"Function"}if(Array.isArray(m)){const p=m.length;let y="[";p>0&&(y+=io(m[0]));for(let M=1;M1))return toString.call(m);if(_=c[1],"Object"==_)try{return"Object("+JSON.stringify(m)+")"}catch{return"Object"}return m instanceof Error?`${m.name}: ${m.message}\n${m.stack}`:_}const Ms=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>{l.__wbindgen_export_2.get(m.dtor)(m.a,m.b)});function ks(m,i,c,_){const p={a:m,b:i,cnt:1,dtor:c},y=(...M)=>{p.cnt++;const A=p.a;p.a=0;try{return _(A,p.b,...M)}finally{0==--p.cnt?(l.__wbindgen_export_2.get(p.dtor)(A,p.b),Ms.unregister(p)):p.a=A}};return y.original=p,Ms.register(y,p,p),y}function Xo(m,i,c){l._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha1c2fd92839e5bbc(m,i,x(c))}function so(m,i,c){l._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha64d543ae2213c33(m,i,x(c))}function dt(m,i){const c=i(1*m.length,1)>>>0;return $t().set(m,c/1),D=m.length,c}function N(m,i){if(!(m instanceof i))throw new Error(`expected instance of ${i.name}`);return m.ptr}let ei=null;function fc(m,i){const c=i(4*m.length,4)>>>0,_=function _c(){return(null===ei||0===ei.byteLength)&&(ei=new Uint32Array(l.memory.buffer)),ei}();for(let p=0;p"u"||new FinalizationRegistry(m=>l.__wbg_accessrights_free(m>>>0));const ti=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_accounthash_free(m>>>0));class Qe{static __wrap(i){i>>>=0;const c=Object.create(Qe.prototype);return c.__wbg_ptr=i,ti.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,ti.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_accounthash_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.accounthash_new(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromFormattedStr(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.accounthash_fromFormattedStr(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return Qe.__wrap(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromPublicKey(i){N(i,tn);var c=i.__destroy_into_raw();const _=l.accounthash_fromPublicKey(c);return Qe.__wrap(_)}toFormattedString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.accounthash_toFormattedString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}toHexString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.accounthash_toHexString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}static fromUint8Array(i){const c=dt(i,l.__wbindgen_malloc),p=l.accounthash_fromUint8Array(c,D);return Qe.__wrap(p)}toJson(){return C(l.accounthash_toJson(this.__wbg_ptr))}}const Fs=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_accountidentifier_free(m>>>0));class Yn{static __wrap(i){i>>>=0;const c=Object.create(Yn.prototype);return c.__wbg_ptr=i,Fs.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Fs.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_accountidentifier_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.accountidentifier_fromFormattedStr(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromFormattedStr(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.accountidentifier_fromFormattedStr(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return Yn.__wrap(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromPublicKey(i){N(i,tn);var c=i.__destroy_into_raw();const _=l.accountidentifier_fromPublicKey(c);return Yn.__wrap(_)}static fromAccountHash(i){N(i,Qe);var c=i.__destroy_into_raw();const _=l.accountidentifier_fromAccountHash(c);return Yn.__wrap(_)}toJson(){return C(l.accountidentifier_toJson(this.__wbg_ptr))}}const Rs=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_argssimple_free(m>>>0));class Pn{static __wrap(i){i>>>=0;const c=Object.create(Pn.prototype);return c.__wbg_ptr=i,Rs.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Rs.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_argssimple_free(i)}}const co=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_blockhash_free(m>>>0));class Ln{static __wrap(i){i>>>=0;const c=Object.create(Ln.prototype);return c.__wbg_ptr=i,co.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,co.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_blockhash_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.blockhash_new(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromDigest(i){try{const M=l.__wbindgen_add_to_stack_pointer(-16);N(i,Ie);var c=i.__destroy_into_raw();l.blockhash_fromDigest(M,c);var _=w()[M/4+0],p=w()[M/4+1];if(w()[M/4+2])throw C(p);return Ln.__wrap(_)}finally{l.__wbindgen_add_to_stack_pointer(16)}}toJson(){return C(l.blockhash_toJson(this.__wbg_ptr))}toString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.blockhash_toString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}}const xs=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_blockidentifier_free(m>>>0));class Ue{static __wrap(i){i>>>=0;const c=Object.create(Ue.prototype);return c.__wbg_ptr=i,xs.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,xs.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_blockidentifier_free(i)}constructor(i){N(i,Ue);var c=i.__destroy_into_raw();const _=l.blockidentifier_new(c);return this.__wbg_ptr=_>>>0,this}static from_hash(i){N(i,Ln);var c=i.__destroy_into_raw();const _=l.blockidentifier_from_hash(c);return Ue.__wrap(_)}static fromHeight(i){const c=l.blockidentifier_fromHeight(i);return Ue.__wrap(c)}toJson(){return C(l.blockidentifier_toJson(this.__wbg_ptr))}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_body_free(m>>>0));const ri=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_bytes_free(m>>>0));class Mt{static __wrap(i){i>>>=0;const c=Object.create(Mt.prototype);return c.__wbg_ptr=i,ri.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,ri.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_bytes_free(i)}constructor(){const i=l.bytes_new();return this.__wbg_ptr=i>>>0,this}static fromUint8Array(i){const c=l.bytes_fromUint8Array(x(i));return Mt.__wrap(c)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_cltype_free(m>>>0));const oi=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_contracthash_free(m>>>0));class uo{static __wrap(i){i>>>=0;const c=Object.create(uo.prototype);return c.__wbg_ptr=i,oi.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,oi.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_contracthash_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.contracthash_fromString(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromFormattedStr(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.contracthash_fromFormattedStr(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return uo.__wrap(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}toFormattedString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.contracthash_toFormattedString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}static fromUint8Array(i){const c=dt(i,l.__wbindgen_malloc),p=l.contracthash_fromUint8Array(c,D);return uo.__wrap(p)}}const ii=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_contractpackagehash_free(m>>>0));class _o{static __wrap(i){i>>>=0;const c=Object.create(_o.prototype);return c.__wbg_ptr=i,ii.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,ii.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_contractpackagehash_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.contractpackagehash_fromString(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromFormattedStr(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.contractpackagehash_fromFormattedStr(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return _o.__wrap(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}toFormattedString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.contractpackagehash_toFormattedString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}static fromUint8Array(i){const c=dt(i,l.__wbindgen_malloc),p=l.contractpackagehash_fromUint8Array(c,D);return _o.__wrap(p)}}const si=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_deploy_free(m>>>0));class De{static __wrap(i){i>>>=0;const c=Object.create(De.prototype);return c.__wbg_ptr=i,si.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,si.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_deploy_free(i)}constructor(i){const c=l.deploy_new(x(i));return this.__wbg_ptr=c>>>0,this}toJson(){return C(l.deploy_toJson(this.__wbg_ptr))}static withPaymentAndSession(i,c,_){try{const Q=l.__wbindgen_add_to_stack_pointer(-16);N(i,In);var p=i.__destroy_into_raw();N(c,gr);var y=c.__destroy_into_raw();N(_,pn);var M=_.__destroy_into_raw();l.deploy_withPaymentAndSession(Q,p,y,M);var A=w()[Q/4+0],K=w()[Q/4+1];if(w()[Q/4+2])throw C(K);return De.__wrap(A)}finally{l.__wbindgen_add_to_stack_pointer(16)}}static withTransfer(i,c,_,p,y){try{const _e=l.__wbindgen_add_to_stack_pointer(-16),yt=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),nt=D,ft=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),rt=D;var M=E(_)?0:S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),A=D;N(p,In);var K=p.__destroy_into_raw();N(y,pn);var ie=y.__destroy_into_raw();l.deploy_withTransfer(_e,yt,nt,ft,rt,M,A,K,ie);var Q=w()[_e/4+0],ke=w()[_e/4+1];if(w()[_e/4+2])throw C(ke);return De.__wrap(Q)}finally{l.__wbindgen_add_to_stack_pointer(16)}}withTTL(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;var y=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);const A=l.deploy_withTTL(this.__wbg_ptr,_,p,y,D);return De.__wrap(A)}withTimestamp(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;var y=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);const A=l.deploy_withTimestamp(this.__wbg_ptr,_,p,y,D);return De.__wrap(A)}withChainName(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;var y=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);const A=l.deploy_withChainName(this.__wbg_ptr,_,p,y,D);return De.__wrap(A)}withAccount(i,c){N(i,tn);var _=i.__destroy_into_raw(),p=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);const M=l.deploy_withAccount(this.__wbg_ptr,_,p,D);return De.__wrap(M)}withEntryPointName(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;var y=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);const A=l.deploy_withEntryPointName(this.__wbg_ptr,_,p,y,D);return De.__wrap(A)}withHash(i,c){N(i,uo);var _=i.__destroy_into_raw(),p=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);const M=l.deploy_withHash(this.__wbg_ptr,_,p,D);return De.__wrap(M)}withPackageHash(i,c){N(i,_o);var _=i.__destroy_into_raw(),p=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);const M=l.deploy_withPackageHash(this.__wbg_ptr,_,p,D);return De.__wrap(M)}withModuleBytes(i,c){N(i,Mt);var _=i.__destroy_into_raw(),p=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);const M=l.deploy_withModuleBytes(this.__wbg_ptr,_,p,D);return De.__wrap(M)}withSecretKey(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);const p=l.deploy_withSecretKey(this.__wbg_ptr,c,D);return De.__wrap(p)}withStandardPayment(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;var y=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);const A=l.deploy_withStandardPayment(this.__wbg_ptr,_,p,y,D);return De.__wrap(A)}withPayment(i,c){var _=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;const y=l.deploy_withPayment(this.__wbg_ptr,x(i),_,p);return De.__wrap(y)}withSession(i,c){var _=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;const y=l.deploy_withSession(this.__wbg_ptr,x(i),_,p);return De.__wrap(y)}validateDeploySize(){return 0!==l.deploy_validateDeploySize(this.__wbg_ptr)}get hash(){const i=l.deploy_hash(this.__wbg_ptr);return En.__wrap(i)}sign(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),p=l.deploy_sign(this.__wbg_ptr,c,D);return De.__wrap(p)}addSignature(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D,y=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),A=l.deploy_addSignature(this.__wbg_ptr,_,p,y,D);return De.__wrap(A)}TTL(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.deploy_TTL(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}timestamp(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.deploy_timestamp(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}chainName(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.deploy_chainName(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}account(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.deploy_account(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}args(){return C(l.deploy_args(this.__wbg_ptr))}addArg(i,c){var _=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;const y=l.deploy_addArg(this.__wbg_ptr,x(i),_,p);return De.__wrap(y)}}const gc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_deployhash_free(m>>>0));class En{static __wrap(i){i>>>=0;const c=Object.create(En.prototype);return c.__wbg_ptr=i,gc.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,gc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_deployhash_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.deployhash_new(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromDigest(i){try{const M=l.__wbindgen_add_to_stack_pointer(-16);N(i,Ie);var c=i.__destroy_into_raw();l.blockhash_fromDigest(M,c);var _=w()[M/4+0],p=w()[M/4+1];if(w()[M/4+2])throw C(p);return En.__wrap(_)}finally{l.__wbindgen_add_to_stack_pointer(16)}}toJson(){return C(l.deployhash_toJson(this.__wbg_ptr))}toString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.deployhash_toString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_deployprocessed_free(m>>>0));const gd=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_deploystrparams_free(m>>>0));class In{__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,gd.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_deploystrparams_free(i)}constructor(i,c,_,p,y){const M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),A=D,K=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),ie=D;var Q=E(_)?0:S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),ke=D,we=E(p)?0:S(p,l.__wbindgen_malloc,l.__wbindgen_realloc),_e=D,yt=E(y)?0:S(y,l.__wbindgen_malloc,l.__wbindgen_realloc);const ft=l.deploystrparams_new(M,A,K,ie,Q,ke,we,_e,yt,D);return this.__wbg_ptr=ft>>>0,this}get secret_key(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.deploystrparams_secret_key(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set secret_key(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.deploystrparams_set_secret_key(this.__wbg_ptr,c,D)}get timestamp(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.deploystrparams_timestamp(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set timestamp(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.deploystrparams_set_timestamp(this.__wbg_ptr,c,D)}setDefaultTimestamp(){l.deploystrparams_setDefaultTimestamp(this.__wbg_ptr)}get ttl(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.deploystrparams_ttl(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set ttl(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.deploystrparams_set_ttl(this.__wbg_ptr,c,D)}setDefaultTTL(){l.deploystrparams_setDefaultTTL(this.__wbg_ptr)}get chain_name(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.deploystrparams_chain_name(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set chain_name(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.deploystrparams_set_chain_name(this.__wbg_ptr,c,D)}get session_account(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.deploystrparams_session_account(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_account(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.deploystrparams_set_session_account(this.__wbg_ptr,c,D)}}const yc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_deploysubscription_free(m>>>0));class St{static __unwrap(i){return i instanceof St?i.__destroy_into_raw():0}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,yc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_deploysubscription_free(i)}get deployHash(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_deployprocessed_deploy_hash(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}set deployHash(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_deployprocessed_deploy_hash(this.__wbg_ptr,c,D)}get eventHandlerFn(){return C(l.__wbg_get_deploysubscription_eventHandlerFn(this.__wbg_ptr))}set eventHandlerFn(i){l.__wbg_set_deploysubscription_eventHandlerFn(this.__wbg_ptr,x(i))}constructor(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),y=l.deploysubscription_new(_,D,x(c));return this.__wbg_ptr=y>>>0,this}}const Os=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_deploywatcher_free(m>>>0));class ai{static __wrap(i){i>>>=0;const c=Object.create(ai.prototype);return c.__wbg_ptr=i,Os.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Os.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_deploywatcher_free(i)}constructor(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),y=l.deploywatcher_new(_,D,!E(c),E(c)?BigInt(0):c);return this.__wbg_ptr=y>>>0,this}subscribe(i){try{const p=l.__wbindgen_add_to_stack_pointer(-16),y=fc(i,l.__wbindgen_malloc);l.deploywatcher_subscribe(p,this.__wbg_ptr,y,D);var c=w()[p/4+0];if(w()[p/4+1])throw C(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}unsubscribe(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.deploywatcher_unsubscribe(this.__wbg_ptr,c,D)}start(){return C(l.deploywatcher_start(this.__wbg_ptr))}stop(){l.deploywatcher_stop(this.__wbg_ptr)}}const wc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_dictionaryaddr_free(m>>>0));class ci{static __wrap(i){i>>>=0;const c=Object.create(ci.prototype);return c.__wbg_ptr=i,wc.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,wc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_dictionaryaddr_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=dt(i,l.__wbindgen_malloc);l.dictionaryaddr_new(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}}const fo=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_dictionaryitemidentifier_free(m>>>0));class Xt{static __wrap(i){i>>>=0;const c=Object.create(Xt.prototype);return c.__wbg_ptr=i,fo.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,fo.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_dictionaryitemidentifier_free(i)}static newFromAccountInfo(i,c,_){try{const A=l.__wbindgen_add_to_stack_pointer(-16),K=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),ie=D,Q=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),ke=D,we=S(_,l.__wbindgen_malloc,l.__wbindgen_realloc);l.dictionaryitemidentifier_newFromAccountInfo(A,K,ie,Q,ke,we,D);var p=w()[A/4+0],y=w()[A/4+1];if(w()[A/4+2])throw C(y);return Xt.__wrap(p)}finally{l.__wbindgen_add_to_stack_pointer(16)}}static newFromContractInfo(i,c,_){try{const A=l.__wbindgen_add_to_stack_pointer(-16),K=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),ie=D,Q=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),ke=D,we=S(_,l.__wbindgen_malloc,l.__wbindgen_realloc);l.dictionaryitemidentifier_newFromContractInfo(A,K,ie,Q,ke,we,D);var p=w()[A/4+0],y=w()[A/4+1];if(w()[A/4+2])throw C(y);return Xt.__wrap(p)}finally{l.__wbindgen_add_to_stack_pointer(16)}}static newFromSeedUref(i,c){try{const M=l.__wbindgen_add_to_stack_pointer(-16),A=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),K=D,ie=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);l.dictionaryitemidentifier_newFromSeedUref(M,A,K,ie,D);var _=w()[M/4+0],p=w()[M/4+1];if(w()[M/4+2])throw C(p);return Xt.__wrap(_)}finally{l.__wbindgen_add_to_stack_pointer(16)}}static newFromDictionaryKey(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.dictionaryitemidentifier_newFromDictionaryKey(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return Xt.__wrap(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}toJson(){return C(l.dictionaryitemidentifier_toJson(this.__wbg_ptr))}}const li=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_dictionaryitemstrparams_free(m>>>0));class pr{static __wrap(i){i>>>=0;const c=Object.create(pr.prototype);return c.__wbg_ptr=i,li.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,li.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_dictionaryitemstrparams_free(i)}constructor(){const i=l.dictionaryitemstrparams_new();return this.__wbg_ptr=i>>>0,this}setAccountNamedKey(i,c,_){const p=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),y=D,M=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),A=D,K=S(_,l.__wbindgen_malloc,l.__wbindgen_realloc);l.dictionaryitemstrparams_setAccountNamedKey(this.__wbg_ptr,p,y,M,A,K,D)}setContractNamedKey(i,c,_){const p=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),y=D,M=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),A=D,K=S(_,l.__wbindgen_malloc,l.__wbindgen_realloc);l.dictionaryitemstrparams_setContractNamedKey(this.__wbg_ptr,p,y,M,A,K,D)}setUref(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D,y=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);l.dictionaryitemstrparams_setUref(this.__wbg_ptr,_,p,y,D)}setDictionary(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.dictionaryitemstrparams_setDictionary(this.__wbg_ptr,c,D)}toJson(){return C(l.dictionaryitemstrparams_toJson(this.__wbg_ptr))}}const Xn=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_digest_free(m>>>0));class Ie{static __wrap(i){i>>>=0;const c=Object.create(Ie.prototype);return c.__wbg_ptr=i,Xn.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Xn.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_digest_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.digest__new(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromString(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.digest_fromString(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return Ie.__wrap(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromDigest(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=dt(i,l.__wbindgen_malloc);l.digest_fromDigest(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return Ie.__wrap(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}toJson(){return C(l.digest_toJson(this.__wbg_ptr))}toString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.digest_toString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}}const md=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_eraid_free(m>>>0));class er{__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,md.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_eraid_free(i)}constructor(i){const c=l.eraid_new(i);return this.__wbg_ptr=c>>>0,this}value(){const i=l.eraid_value(this.__wbg_ptr);return BigInt.asUintN(64,i)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_eventparseresult_free(m>>>0)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_executionresult_free(m>>>0)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_failure_free(m>>>0));const wd=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getaccountresult_free(m>>>0));class bc{static __wrap(i){i>>>=0;const c=Object.create(bc.prototype);return c.__wbg_ptr=i,wd.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,wd.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getaccountresult_free(i)}get api_version(){return C(l.getaccountresult_api_version(this.__wbg_ptr))}get account(){return C(l.getaccountresult_account(this.__wbg_ptr))}get merkle_proof(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.getaccountresult_merkle_proof(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}toJson(){return C(l.getaccountresult_toJson(this.__wbg_ptr))}}const Ps=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getauctioninforesult_free(m>>>0));class Ls{static __wrap(i){i>>>=0;const c=Object.create(Ls.prototype);return c.__wbg_ptr=i,Ps.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Ps.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getauctioninforesult_free(i)}get api_version(){return C(l.getauctioninforesult_api_version(this.__wbg_ptr))}get auction_state(){return C(l.getauctioninforesult_auction_state(this.__wbg_ptr))}toJson(){return C(l.getauctioninforesult_toJson(this.__wbg_ptr))}}const ui=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getbalanceresult_free(m>>>0));class je{static __wrap(i){i>>>=0;const c=Object.create(je.prototype);return c.__wbg_ptr=i,ui.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,ui.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getbalanceresult_free(i)}get api_version(){return C(l.getbalanceresult_api_version(this.__wbg_ptr))}get balance_value(){return C(l.getbalanceresult_balance_value(this.__wbg_ptr))}get merkle_proof(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.getbalanceresult_merkle_proof(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}toJson(){return C(l.getbalanceresult_toJson(this.__wbg_ptr))}}const bd=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getblockresult_free(m>>>0));class vc{static __wrap(i){i>>>=0;const c=Object.create(vc.prototype);return c.__wbg_ptr=i,bd.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,bd.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getblockresult_free(i)}get api_version(){return C(l.getblockresult_api_version(this.__wbg_ptr))}get block(){return C(l.getblockresult_block(this.__wbg_ptr))}toJson(){return C(l.getblockresult_toJson(this.__wbg_ptr))}}const vd=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getblocktransfersresult_free(m>>>0));class Dc{static __wrap(i){i>>>=0;const c=Object.create(Dc.prototype);return c.__wbg_ptr=i,vd.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,vd.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getblocktransfersresult_free(i)}get api_version(){return C(l.getblocktransfersresult_api_version(this.__wbg_ptr))}get block_hash(){const i=l.getblocktransfersresult_block_hash(this.__wbg_ptr);return 0===i?void 0:Ln.__wrap(i)}get transfers(){return C(l.getblocktransfersresult_transfers(this.__wbg_ptr))}toJson(){return C(l.getblocktransfersresult_toJson(this.__wbg_ptr))}}const ge=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getchainspecresult_free(m>>>0));class et{static __wrap(i){i>>>=0;const c=Object.create(et.prototype);return c.__wbg_ptr=i,ge.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,ge.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getchainspecresult_free(i)}get api_version(){return C(l.getchainspecresult_api_version(this.__wbg_ptr))}get chainspec_bytes(){return C(l.getchainspecresult_chainspec_bytes(this.__wbg_ptr))}toJson(){return C(l.getchainspecresult_toJson(this.__wbg_ptr))}}const di=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getdeployresult_free(m>>>0));class Cc{static __wrap(i){i>>>=0;const c=Object.create(Cc.prototype);return c.__wbg_ptr=i,di.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,di.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getdeployresult_free(i)}get api_version(){return C(l.getdeployresult_api_version(this.__wbg_ptr))}get deploy(){const i=l.getdeployresult_deploy(this.__wbg_ptr);return De.__wrap(i)}toJson(){return C(l.getdeployresult_toJson(this.__wbg_ptr))}}const Rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getdictionaryitemresult_free(m>>>0));class Ec{static __wrap(i){i>>>=0;const c=Object.create(Ec.prototype);return c.__wbg_ptr=i,Rt.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Rt.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getdictionaryitemresult_free(i)}get api_version(){return C(l.getdictionaryitemresult_api_version(this.__wbg_ptr))}get dictionary_key(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.getdictionaryitemresult_dictionary_key(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}get stored_value(){return C(l.getdictionaryitemresult_stored_value(this.__wbg_ptr))}get merkle_proof(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.getdictionaryitemresult_merkle_proof(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}toJson(){return C(l.getdictionaryitemresult_toJson(this.__wbg_ptr))}}const Ic=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_geterainforesult_free(m>>>0));class Sc{static __wrap(i){i>>>=0;const c=Object.create(Sc.prototype);return c.__wbg_ptr=i,Ic.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Ic.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_geterainforesult_free(i)}get api_version(){return C(l.geterainforesult_api_version(this.__wbg_ptr))}get era_summary(){return C(l.geterainforesult_era_summary(this.__wbg_ptr))}toJson(){return C(l.geterainforesult_toJson(this.__wbg_ptr))}}const jn=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_geterasummaryresult_free(m>>>0));class Mc{static __wrap(i){i>>>=0;const c=Object.create(Mc.prototype);return c.__wbg_ptr=i,jn.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,jn.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_geterasummaryresult_free(i)}get api_version(){return C(l.geterasummaryresult_api_version(this.__wbg_ptr))}get era_summary(){return C(l.geterasummaryresult_era_summary(this.__wbg_ptr))}toJson(){return C(l.geterasummaryresult_toJson(this.__wbg_ptr))}}const Dd=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getnodestatusresult_free(m>>>0));class kc{static __wrap(i){i>>>=0;const c=Object.create(kc.prototype);return c.__wbg_ptr=i,Dd.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Dd.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getnodestatusresult_free(i)}get api_version(){return C(l.getnodestatusresult_api_version(this.__wbg_ptr))}get chainspec_name(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.getnodestatusresult_chainspec_name(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}get starting_state_root_hash(){const i=l.getnodestatusresult_starting_state_root_hash(this.__wbg_ptr);return Ie.__wrap(i)}get peers(){return C(l.getnodestatusresult_peers(this.__wbg_ptr))}get last_added_block_info(){return C(l.getnodestatusresult_last_added_block_info(this.__wbg_ptr))}get our_public_signing_key(){const i=l.getnodestatusresult_our_public_signing_key(this.__wbg_ptr);return 0===i?void 0:tn.__wrap(i)}get round_length(){return C(l.getnodestatusresult_round_length(this.__wbg_ptr))}get next_upgrade(){return C(l.getnodestatusresult_next_upgrade(this.__wbg_ptr))}get build_version(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.getnodestatusresult_build_version(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}get uptime(){return C(l.getnodestatusresult_uptime(this.__wbg_ptr))}get reactor_state(){return C(l.getnodestatusresult_reactor_state(this.__wbg_ptr))}get last_progress(){return C(l.getnodestatusresult_last_progress(this.__wbg_ptr))}get available_block_range(){return C(l.getnodestatusresult_available_block_range(this.__wbg_ptr))}get block_sync(){return C(l.getnodestatusresult_block_sync(this.__wbg_ptr))}toJson(){return C(l.getnodestatusresult_toJson(this.__wbg_ptr))}}const Cd=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getpeersresult_free(m>>>0));class Vs{static __wrap(i){i>>>=0;const c=Object.create(Vs.prototype);return c.__wbg_ptr=i,Cd.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Cd.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getpeersresult_free(i)}get api_version(){return C(l.getpeersresult_api_version(this.__wbg_ptr))}get peers(){return C(l.getpeersresult_peers(this.__wbg_ptr))}toJson(){return C(l.getpeersresult_toJson(this.__wbg_ptr))}}const Ed=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getstateroothashresult_free(m>>>0));class js{static __wrap(i){i>>>=0;const c=Object.create(js.prototype);return c.__wbg_ptr=i,Ed.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Ed.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getstateroothashresult_free(i)}get api_version(){return C(l.getstateroothashresult_api_version(this.__wbg_ptr))}get state_root_hash(){const i=l.getstateroothashresult_state_root_hash(this.__wbg_ptr);return 0===i?void 0:Ie.__wrap(i)}get state_root_hash_as_string(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.getstateroothashresult_state_root_hash_as_string(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}toString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.getstateroothashresult_toString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}toJson(){return C(l.getstateroothashresult_toJson(this.__wbg_ptr))}}const Id=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getvalidatorchangesresult_free(m>>>0));class kt{static __wrap(i){i>>>=0;const c=Object.create(kt.prototype);return c.__wbg_ptr=i,Id.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Id.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getvalidatorchangesresult_free(i)}get api_version(){return C(l.getvalidatorchangesresult_api_version(this.__wbg_ptr))}get changes(){return C(l.getvalidatorchangesresult_changes(this.__wbg_ptr))}toJson(){return C(l.getvalidatorchangesresult_toJson(this.__wbg_ptr))}}const Z=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_globalstateidentifier_free(m>>>0));class en{static __wrap(i){i>>>=0;const c=Object.create(en.prototype);return c.__wbg_ptr=i,Z.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_globalstateidentifier_free(i)}constructor(i){N(i,en);var c=i.__destroy_into_raw();const _=l.globalstateidentifier_new(c);return this.__wbg_ptr=_>>>0,this}static fromBlockHash(i){N(i,Ln);var c=i.__destroy_into_raw();const _=l.globalstateidentifier_fromBlockHash(c);return en.__wrap(_)}static fromBlockHeight(i){const c=l.globalstateidentifier_fromBlockHeight(i);return en.__wrap(c)}static fromStateRootHash(i){N(i,Ie);var c=i.__destroy_into_raw();const _=l.globalstateidentifier_fromStateRootHash(c);return en.__wrap(_)}toJson(){return C(l.globalstateidentifier_toJson(this.__wbg_ptr))}}const Sd=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_hashaddr_free(m>>>0));class Bs{static __wrap(i){i>>>=0;const c=Object.create(Bs.prototype);return c.__wbg_ptr=i,Sd.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Sd.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_hashaddr_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=dt(i,l.__wbindgen_malloc);l.hashaddr_new(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_intounderlyingbytesource_free(m>>>0)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_intounderlyingsink_free(m>>>0)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_intounderlyingsource_free(m>>>0));const Md=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_key_free(m>>>0));class Be{static __wrap(i){i>>>=0;const c=Object.create(Be.prototype);return c.__wbg_ptr=i,Md.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Md.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_key_free(i)}constructor(i){try{const M=l.__wbindgen_add_to_stack_pointer(-16);N(i,Be);var c=i.__destroy_into_raw();l.key_new(M,c);var _=w()[M/4+0],p=w()[M/4+1];if(w()[M/4+2])throw C(p);return this.__wbg_ptr=_>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}toJson(){return C(l.key_toJson(this.__wbg_ptr))}static fromURef(i){N(i,kn);var c=i.__destroy_into_raw();const _=l.key_fromURef(c);return Be.__wrap(_)}static fromDeployInfo(i){N(i,En);var c=i.__destroy_into_raw();const _=l.key_fromDeployInfo(c);return Be.__wrap(_)}static fromAccount(i){N(i,Qe);var c=i.__destroy_into_raw();const _=l.key_fromAccount(c);return Be.__wrap(_)}static fromHash(i){N(i,Bs);var c=i.__destroy_into_raw();const _=l.key_fromHash(c);return Be.__wrap(_)}static fromTransfer(i){const c=dt(i,l.__wbindgen_malloc),p=l.key_fromTransfer(c,D);return hi.__wrap(p)}static fromEraInfo(i){N(i,er);var c=i.__destroy_into_raw();const _=l.key_fromEraInfo(c);return Be.__wrap(_)}static fromBalance(i){N(i,gi);var c=i.__destroy_into_raw();const _=l.key_fromBalance(c);return Be.__wrap(_)}static fromBid(i){N(i,Qe);var c=i.__destroy_into_raw();const _=l.key_fromBid(c);return Be.__wrap(_)}static fromWithdraw(i){N(i,Qe);var c=i.__destroy_into_raw();const _=l.key_fromWithdraw(c);return Be.__wrap(_)}static fromDictionaryAddr(i){N(i,ci);var c=i.__destroy_into_raw();const _=l.key_fromDictionaryAddr(c);return Be.__wrap(_)}asDictionaryAddr(){const i=l.key_asDictionaryAddr(this.__wbg_ptr);return 0===i?void 0:ci.__wrap(i)}static fromSystemContractRegistry(){const i=l.key_fromSystemContractRegistry();return Be.__wrap(i)}static fromEraSummary(){const i=l.key_fromEraSummary();return Be.__wrap(i)}static fromUnbond(i){N(i,Qe);var c=i.__destroy_into_raw();const _=l.key_fromUnbond(c);return Be.__wrap(_)}static fromChainspecRegistry(){const i=l.key_fromChainspecRegistry();return Be.__wrap(i)}static fromChecksumRegistry(){const i=l.key_fromChecksumRegistry();return Be.__wrap(i)}toFormattedString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.key_toFormattedString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}static fromFormattedString(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.key_fromFormattedString(y,x(i));var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return Be.__wrap(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromDictionaryKey(i,c){N(i,kn);var _=i.__destroy_into_raw();const p=dt(c,l.__wbindgen_malloc),M=l.key_fromDictionaryKey(_,p,D);return Be.__wrap(M)}isDictionaryKey(){return 0!==l.key_isDictionaryKey(this.__wbg_ptr)}intoAccount(){const i=this.__destroy_into_raw(),c=l.key_intoAccount(i);return 0===c?void 0:Qe.__wrap(c)}intoHash(){const i=this.__destroy_into_raw(),c=l.key_intoHash(i);return 0===c?void 0:Bs.__wrap(c)}asBalance(){const i=l.key_asBalance(this.__wbg_ptr);return 0===i?void 0:gi.__wrap(i)}intoURef(){const i=this.__destroy_into_raw(),c=l.key_intoURef(i);return 0===c?void 0:kn.__wrap(c)}urefToHash(){const i=l.key_urefToHash(this.__wbg_ptr);return 0===i?void 0:Be.__wrap(i)}withdrawToUnbond(){const i=l.key_withdrawToUnbond(this.__wbg_ptr);return 0===i?void 0:Be.__wrap(i)}}const fn=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_listrpcsresult_free(m>>>0));class ye{static __wrap(i){i>>>=0;const c=Object.create(ye.prototype);return c.__wbg_ptr=i,fn.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,fn.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_listrpcsresult_free(i)}get api_version(){return C(l.listrpcsresult_api_version(this.__wbg_ptr))}get name(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.listrpcsresult_name(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}get schema(){return C(l.listrpcsresult_schema(this.__wbg_ptr))}toJson(){return C(l.listrpcsresult_toJson(this.__wbg_ptr))}}const Ee=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_path_free(m>>>0));class hr{static __wrap(i){i>>>=0;const c=Object.create(hr.prototype);return c.__wbg_ptr=i,Ee.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Ee.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_path_free(i)}constructor(i){const c=l.path_new(x(i));return this.__wbg_ptr=c>>>0,this}static fromArray(i){const c=l.path_fromArray(x(i));return hr.__wrap(c)}toJson(){return C(l.path_toJson(this.__wbg_ptr))}toString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.path_toString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}is_empty(){return 0!==l.path_is_empty(this.__wbg_ptr)}}const go=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_paymentstrparams_free(m>>>0));class pn{__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,go.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_paymentstrparams_free(i)}constructor(i,c,_,p,y,M,A,K,ie,Q,ke){var we=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),_e=D,yt=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),nt=D,ft=E(_)?0:S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),rt=D,Hn=E(p)?0:S(p,l.__wbindgen_malloc,l.__wbindgen_realloc),Eo=D,Lr=E(y)?0:S(y,l.__wbindgen_malloc,l.__wbindgen_realloc),br=D,Vr=E(M)?0:S(M,l.__wbindgen_malloc,l.__wbindgen_realloc),jr=D,Io=E(K)?0:S(K,l.__wbindgen_malloc,l.__wbindgen_realloc),Vc=D,jc=E(ie)?0:S(ie,l.__wbindgen_malloc,l.__wbindgen_realloc),Bc=D,Hc=E(Q)?0:S(Q,l.__wbindgen_malloc,l.__wbindgen_realloc),Uc=D,$c=E(ke)?0:S(ke,l.__wbindgen_malloc,l.__wbindgen_realloc),zc=D;const qc=l.paymentstrparams_new(we,_e,yt,nt,ft,rt,Hn,Eo,Lr,br,Vr,jr,E(A)?0:x(A),Io,Vc,jc,Bc,Hc,Uc,$c,zc);return this.__wbg_ptr=qc>>>0,this}get payment_amount(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_amount(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_amount(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_amount(this.__wbg_ptr,c,D)}get payment_hash(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_hash(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_hash(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_hash(this.__wbg_ptr,c,D)}get payment_name(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_name(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_name(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_name(this.__wbg_ptr,c,D)}get payment_package_hash(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_package_hash(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_package_hash(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_package_hash(this.__wbg_ptr,c,D)}get payment_package_name(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_package_name(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_package_name(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_package_name(this.__wbg_ptr,c,D)}get payment_path(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_path(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_path(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_path(this.__wbg_ptr,c,D)}get payment_args_simple(){return C(l.paymentstrparams_payment_args_simple(this.__wbg_ptr))}set payment_args_simple(i){l.paymentstrparams_set_payment_args_simple(this.__wbg_ptr,x(i))}get payment_args_json(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_args_json(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_args_json(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_args_json(this.__wbg_ptr,c,D)}get payment_args_complex(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_args_complex(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_args_complex(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_args_complex(this.__wbg_ptr,c,D)}get payment_version(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_version(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_version(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_version(this.__wbg_ptr,c,D)}get payment_entry_point(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_entry_point(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_entry_point(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_entry_point(this.__wbg_ptr,c,D)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_peerentry_free(m>>>0));const Mn=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_publickey_free(m>>>0));class tn{static __wrap(i){i>>>=0;const c=Object.create(tn.prototype);return c.__wbg_ptr=i,Mn.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Mn.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_publickey_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.publickey_new(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromUint8Array(i){const c=dt(i,l.__wbindgen_malloc),p=l.publickey_fromUint8Array(c,D);return tn.__wrap(p)}toAccountHash(){const i=l.publickey_toAccountHash(this.__wbg_ptr);return Qe.__wrap(i)}toPurseUref(){const i=l.publickey_toPurseUref(this.__wbg_ptr);return kn.__wrap(i)}toJson(){return C(l.publickey_toJson(this.__wbg_ptr))}}const Us=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_purseidentifier_free(m>>>0));class xe{static __wrap(i){i>>>=0;const c=Object.create(xe.prototype);return c.__wbg_ptr=i,Us.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Us.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_purseidentifier_free(i)}constructor(i){N(i,tn);var c=i.__destroy_into_raw();const _=l.purseidentifier_fromPublicKey(c);return this.__wbg_ptr=_>>>0,this}static fromAccountHash(i){N(i,Qe);var c=i.__destroy_into_raw();const _=l.purseidentifier_fromAccountHash(c);return xe.__wrap(_)}static fromURef(i){N(i,kn);var c=i.__destroy_into_raw();const _=l.purseidentifier_fromURef(c);return xe.__wrap(_)}toJson(){return C(l.purseidentifier_toJson(this.__wbg_ptr))}}const $s=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_putdeployresult_free(m>>>0));class mo{static __wrap(i){i>>>=0;const c=Object.create(mo.prototype);return c.__wbg_ptr=i,$s.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,$s.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_putdeployresult_free(i)}get api_version(){return C(l.putdeployresult_api_version(this.__wbg_ptr))}get deploy_hash(){const i=l.putdeployresult_deploy_hash(this.__wbg_ptr);return En.__wrap(i)}toJson(){return C(l.putdeployresult_toJson(this.__wbg_ptr))}}const zs=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_querybalanceresult_free(m>>>0));class fi{static __wrap(i){i>>>=0;const c=Object.create(fi.prototype);return c.__wbg_ptr=i,zs.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,zs.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_querybalanceresult_free(i)}get api_version(){return C(l.querybalanceresult_api_version(this.__wbg_ptr))}get balance(){return C(l.querybalanceresult_balance(this.__wbg_ptr))}toJson(){return C(l.querybalanceresult_toJson(this.__wbg_ptr))}}const Pr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_queryglobalstateresult_free(m>>>0));class pi{static __wrap(i){i>>>=0;const c=Object.create(pi.prototype);return c.__wbg_ptr=i,Pr.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Pr.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_queryglobalstateresult_free(i)}get api_version(){return C(l.queryglobalstateresult_api_version(this.__wbg_ptr))}get block_header(){return C(l.queryglobalstateresult_block_header(this.__wbg_ptr))}get stored_value(){return C(l.queryglobalstateresult_stored_value(this.__wbg_ptr))}get merkle_proof(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.queryglobalstateresult_merkle_proof(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}toJson(){return C(l.queryglobalstateresult_toJson(this.__wbg_ptr))}}const Tc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_sdk_free(m>>>0));class Td{__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Tc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_sdk_free(i)}make_deploy(i,c,_){try{const Q=l.__wbindgen_add_to_stack_pointer(-16);N(i,In);var p=i.__destroy_into_raw();N(c,gr);var y=c.__destroy_into_raw();N(_,pn);var M=_.__destroy_into_raw();l.sdk_make_deploy(Q,this.__wbg_ptr,p,y,M);var A=w()[Q/4+0],K=w()[Q/4+1];if(w()[Q/4+2])throw C(K);return De.__wrap(A)}finally{l.__wbindgen_add_to_stack_pointer(16)}}sign_deploy(i,c){N(i,De);var _=i.__destroy_into_raw();const p=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),M=l.sdk_sign_deploy(this.__wbg_ptr,_,p,D);return De.__wrap(M)}get_account_options(i){const c=l.sdk_get_account_options(this.__wbg_ptr,x(i));return wo.__wrap(c)}get_account(i){let c=0;return E(i)||(N(i,wo),c=i.__destroy_into_raw()),C(l.sdk_get_account(this.__wbg_ptr,c))}state_get_account_info(i){let c=0;return E(i)||(N(i,wo),c=i.__destroy_into_raw()),C(l.sdk_state_get_account_info(this.__wbg_ptr,c))}get_balance_options(i){const c=l.sdk_get_balance_options(this.__wbg_ptr,x(i));return qt.__wrap(c)}get_balance(i){let c=0;return E(i)||(N(i,qt),c=i.__destroy_into_raw()),C(l.sdk_get_balance(this.__wbg_ptr,c))}state_get_balance(i){let c=0;return E(i)||(N(i,qt),c=i.__destroy_into_raw()),C(l.sdk_state_get_balance(this.__wbg_ptr,c))}get_state_root_hash_options(i){const c=l.sdk_get_state_root_hash_options(this.__wbg_ptr,x(i));return J.__wrap(c)}get_state_root_hash(i){let c=0;return E(i)||(N(i,J),c=i.__destroy_into_raw()),C(l.sdk_get_state_root_hash(this.__wbg_ptr,c))}chain_get_state_root_hash(i){let c=0;return E(i)||(N(i,J),c=i.__destroy_into_raw()),C(l.sdk_chain_get_state_root_hash(this.__wbg_ptr,c))}query_global_state_options(i){const c=l.sdk_query_global_state_options(this.__wbg_ptr,x(i));return nn.__wrap(c)}query_global_state(i){let c=0;return E(i)||(N(i,nn),c=i.__destroy_into_raw()),C(l.sdk_query_global_state(this.__wbg_ptr,c))}query_contract_key_options(i){const c=l.sdk_query_contract_key_options(this.__wbg_ptr,x(i));return Me.__wrap(c)}query_contract_key(i){let c=0;return E(i)||(N(i,Me),c=i.__destroy_into_raw()),C(l.sdk_query_contract_key(this.__wbg_ptr,c))}constructor(i,c){var _=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);const y=l.sdk_new(_,D,E(c)?3:c);return this.__wbg_ptr=y>>>0,this}getNodeAddress(i){let c,_;try{const K=l.__wbindgen_add_to_stack_pointer(-16);var p=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sdk_getNodeAddress(K,this.__wbg_ptr,p,D);var M=w()[K/4+0],A=w()[K/4+1];return c=M,_=A,R(M,A)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(c,_,1)}}setNodeAddress(i){try{const M=l.__wbindgen_add_to_stack_pointer(-16);var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sdk_setNodeAddress(M,this.__wbg_ptr,c,D);var p=w()[M/4+0];if(w()[M/4+1])throw C(p)}finally{l.__wbindgen_add_to_stack_pointer(16)}}getVerbosity(i){return l.sdk_getVerbosity(this.__wbg_ptr,E(i)?3:i)}setVerbosity(i){try{const p=l.__wbindgen_add_to_stack_pointer(-16);l.sdk_setVerbosity(p,this.__wbg_ptr,E(i)?3:i);var c=w()[p/4+0];if(w()[p/4+1])throw C(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}get_node_status(i,c){var _=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;return C(l.sdk_get_node_status(this.__wbg_ptr,E(i)?3:i,_,p))}list_rpcs(i,c){var _=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;return C(l.sdk_list_rpcs(this.__wbg_ptr,E(i)?3:i,_,p))}deploy(i,c,_,p,y){N(i,In);var M=i.__destroy_into_raw();N(c,gr);var A=c.__destroy_into_raw();N(_,pn);var K=_.__destroy_into_raw(),ie=E(y)?0:S(y,l.__wbindgen_malloc,l.__wbindgen_realloc),Q=D;return C(l.sdk_deploy(this.__wbg_ptr,M,A,K,E(p)?3:p,ie,Q))}speculative_transfer(i,c,_,p,y,M,A,K,ie){const Q=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),ke=D,we=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),_e=D;var yt=E(_)?0:S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),nt=D;N(p,In);var ft=p.__destroy_into_raw();N(y,pn);var rt=y.__destroy_into_raw(),Hn=E(M)?0:S(M,l.__wbindgen_malloc,l.__wbindgen_realloc),Eo=D;let Lr=0;E(A)||(N(A,Ue),Lr=A.__destroy_into_raw());var br=E(ie)?0:S(ie,l.__wbindgen_malloc,l.__wbindgen_realloc),Vr=D;return C(l.sdk_speculative_transfer(this.__wbg_ptr,Q,ke,we,_e,yt,nt,ft,rt,Hn,Eo,Lr,E(K)?3:K,br,Vr))}get_auction_info_options(i){const c=l.sdk_get_auction_info_options(this.__wbg_ptr,x(i));return mi.__wrap(c)}get_auction_info(i){let c=0;return E(i)||(N(i,mi),c=i.__destroy_into_raw()),C(l.sdk_get_auction_info(this.__wbg_ptr,c))}get_block_transfers_options(i){const c=l.sdk_get_block_transfers_options(this.__wbg_ptr,x(i));return ue.__wrap(c)}get_block_transfers(i){let c=0;return E(i)||(N(i,ue),c=i.__destroy_into_raw()),C(l.sdk_get_block_transfers(this.__wbg_ptr,c))}get_dictionary_item_options(i){const c=l.sdk_get_dictionary_item_options(this.__wbg_ptr,x(i));return it.__wrap(c)}get_dictionary_item(i){let c=0;return E(i)||(N(i,it),c=i.__destroy_into_raw()),C(l.sdk_get_dictionary_item(this.__wbg_ptr,c))}state_get_dictionary_item(i){let c=0;return E(i)||(N(i,it),c=i.__destroy_into_raw()),C(l.sdk_state_get_dictionary_item(this.__wbg_ptr,c))}get_era_info_options(i){const c=l.sdk_get_era_info_options(this.__wbg_ptr,x(i));return bo.__wrap(c)}get_era_info(i){let c=0;return E(i)||(N(i,bo),c=i.__destroy_into_raw()),C(l.sdk_get_era_info(this.__wbg_ptr,c))}get_validator_changes(i,c){var _=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;return C(l.sdk_get_validator_changes(this.__wbg_ptr,E(i)?3:i,_,p))}install(i,c,_,p){N(i,In);var y=i.__destroy_into_raw();N(c,gr);var M=c.__destroy_into_raw();const A=S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),K=D;var ie=E(p)?0:S(p,l.__wbindgen_malloc,l.__wbindgen_realloc);return C(l.sdk_install(this.__wbg_ptr,y,M,A,K,ie,D))}query_contract_dict_options(i){const c=l.sdk_query_contract_dict_options(this.__wbg_ptr,x(i));return Ot.__wrap(c)}query_contract_dict(i){let c=0;return E(i)||(N(i,Ot),c=i.__destroy_into_raw()),C(l.sdk_query_contract_dict(this.__wbg_ptr,c))}call_entrypoint(i,c,_,p){N(i,In);var y=i.__destroy_into_raw();N(c,gr);var M=c.__destroy_into_raw();const A=S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),K=D;var ie=E(p)?0:S(p,l.__wbindgen_malloc,l.__wbindgen_realloc);return C(l.sdk_call_entrypoint(this.__wbg_ptr,y,M,A,K,ie,D))}get_chainspec(i,c){var _=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;return C(l.sdk_get_chainspec(this.__wbg_ptr,E(i)?3:i,_,p))}watch_deploy(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),y=l.sdk_watch_deploy(this.__wbg_ptr,_,D,!E(c),E(c)?BigInt(0):c);return ai.__wrap(y)}watchDeploy(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),y=l.sdk_watchDeploy(this.__wbg_ptr,_,D,!E(c),E(c)?0:c);return ai.__wrap(y)}waitDeploy(i,c,_){const p=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),y=D,M=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);return C(l.sdk_waitDeploy(this.__wbg_ptr,p,y,M,D,!E(_),E(_)?0:_))}speculative_deploy(i,c,_,p,y,M,A){N(i,In);var K=i.__destroy_into_raw();N(c,gr);var ie=c.__destroy_into_raw();N(_,pn);var Q=_.__destroy_into_raw(),ke=E(p)?0:S(p,l.__wbindgen_malloc,l.__wbindgen_realloc),we=D;let _e=0;E(y)||(N(y,Ue),_e=y.__destroy_into_raw());var yt=E(A)?0:S(A,l.__wbindgen_malloc,l.__wbindgen_realloc),nt=D;return C(l.sdk_speculative_deploy(this.__wbg_ptr,K,ie,Q,ke,we,_e,E(M)?3:M,yt,nt))}put_deploy(i,c,_){N(i,De);var p=i.__destroy_into_raw(),y=E(_)?0:S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),M=D;return C(l.sdk_put_deploy(this.__wbg_ptr,p,E(c)?3:c,y,M))}account_put_deploy(i,c,_){N(i,De);var p=i.__destroy_into_raw(),y=E(_)?0:S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),M=D;return C(l.sdk_account_put_deploy(this.__wbg_ptr,p,E(c)?3:c,y,M))}make_transfer(i,c,_,p,y){try{const _e=l.__wbindgen_add_to_stack_pointer(-16),yt=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),nt=D,ft=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),rt=D;var M=E(_)?0:S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),A=D;N(p,In);var K=p.__destroy_into_raw();N(y,pn);var ie=y.__destroy_into_raw();l.sdk_make_transfer(_e,this.__wbg_ptr,yt,nt,ft,rt,M,A,K,ie);var Q=w()[_e/4+0],ke=w()[_e/4+1];if(w()[_e/4+2])throw C(ke);return De.__wrap(Q)}finally{l.__wbindgen_add_to_stack_pointer(16)}}transfer(i,c,_,p,y,M,A){const K=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),ie=D,Q=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),ke=D;var we=E(_)?0:S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),_e=D;N(p,In);var yt=p.__destroy_into_raw();N(y,pn);var nt=y.__destroy_into_raw(),ft=E(A)?0:S(A,l.__wbindgen_malloc,l.__wbindgen_realloc),rt=D;return C(l.sdk_transfer(this.__wbg_ptr,K,ie,Q,ke,we,_e,yt,nt,E(M)?3:M,ft,rt))}get_block_options(i){const c=l.sdk_get_block_options(this.__wbg_ptr,x(i));return te.__wrap(c)}get_block(i){let c=0;return E(i)||(N(i,te),c=i.__destroy_into_raw()),C(l.sdk_get_block(this.__wbg_ptr,c))}chain_get_block(i){let c=0;return E(i)||(N(i,te),c=i.__destroy_into_raw()),C(l.sdk_chain_get_block(this.__wbg_ptr,c))}get_deploy_options(i){const c=l.sdk_get_deploy_options(this.__wbg_ptr,x(i));return tt.__wrap(c)}get_deploy(i){let c=0;return E(i)||(N(i,tt),c=i.__destroy_into_raw()),C(l.sdk_get_deploy(this.__wbg_ptr,c))}info_get_deploy(i){let c=0;return E(i)||(N(i,tt),c=i.__destroy_into_raw()),C(l.sdk_info_get_deploy(this.__wbg_ptr,c))}get_era_summary_options(i){const c=l.sdk_get_era_summary_options(this.__wbg_ptr,x(i));return yi.__wrap(c)}get_era_summary(i){let c=0;return E(i)||(N(i,yi),c=i.__destroy_into_raw()),C(l.sdk_get_era_summary(this.__wbg_ptr,c))}get_peers(i,c){var _=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;return C(l.sdk_get_peers(this.__wbg_ptr,E(i)?3:i,_,p))}query_balance_options(i){const c=l.sdk_query_balance_options(this.__wbg_ptr,x(i));return xt.__wrap(c)}query_balance(i){let c=0;return E(i)||(N(i,xt),c=i.__destroy_into_raw()),C(l.sdk_query_balance(this.__wbg_ptr,c))}speculative_exec_options(i){const c=l.sdk_speculative_exec_options(this.__wbg_ptr,x(i));return Oe.__wrap(c)}speculative_exec(i){let c=0;return E(i)||(N(i,Oe),c=i.__destroy_into_raw()),C(l.sdk_speculative_exec(this.__wbg_ptr,c))}}const Ac=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_sessionstrparams_free(m>>>0));class gr{__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Ac.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_sessionstrparams_free(i)}constructor(i,c,_,p,y,M,A,K,ie,Q,ke,we){var _e=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),yt=D,nt=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),ft=D,rt=E(_)?0:S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),Hn=D,Eo=E(p)?0:S(p,l.__wbindgen_malloc,l.__wbindgen_realloc),Lr=D,br=E(y)?0:S(y,l.__wbindgen_malloc,l.__wbindgen_realloc),Vr=D;let jr=0;E(M)||(N(M,Mt),jr=M.__destroy_into_raw());var Io=E(K)?0:S(K,l.__wbindgen_malloc,l.__wbindgen_realloc),Vc=D,jc=E(ie)?0:S(ie,l.__wbindgen_malloc,l.__wbindgen_realloc),Bc=D,Hc=E(Q)?0:S(Q,l.__wbindgen_malloc,l.__wbindgen_realloc),Uc=D,$c=E(ke)?0:S(ke,l.__wbindgen_malloc,l.__wbindgen_realloc),zc=D;const qc=l.sessionstrparams_new(_e,yt,nt,ft,rt,Hn,Eo,Lr,br,Vr,jr,E(A)?0:x(A),Io,Vc,jc,Bc,Hc,Uc,$c,zc,E(we)?16777215:we?1:0);return this.__wbg_ptr=qc>>>0,this}get session_hash(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.sessionstrparams_session_hash(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_hash(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sessionstrparams_set_session_hash(this.__wbg_ptr,c,D)}get session_name(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.sessionstrparams_session_name(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_name(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sessionstrparams_set_session_name(this.__wbg_ptr,c,D)}get session_package_hash(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.sessionstrparams_session_package_hash(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_package_hash(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sessionstrparams_set_session_package_hash(this.__wbg_ptr,c,D)}get session_package_name(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.sessionstrparams_session_package_name(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_package_name(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sessionstrparams_set_session_package_name(this.__wbg_ptr,c,D)}get session_path(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.sessionstrparams_session_path(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_path(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sessionstrparams_set_session_path(this.__wbg_ptr,c,D)}get session_bytes(){const i=l.sessionstrparams_session_bytes(this.__wbg_ptr);return 0===i?void 0:Mt.__wrap(i)}set session_bytes(i){N(i,Mt);var c=i.__destroy_into_raw();l.sessionstrparams_set_session_bytes(this.__wbg_ptr,c)}get session_args_simple(){const i=l.sessionstrparams_session_args_simple(this.__wbg_ptr);return 0===i?void 0:Pn.__wrap(i)}set session_args_simple(i){l.sessionstrparams_set_session_args_simple(this.__wbg_ptr,x(i))}get session_args_json(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.sessionstrparams_session_args_json(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_args_json(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sessionstrparams_set_session_args_json(this.__wbg_ptr,c,D)}get session_args_complex(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.sessionstrparams_session_args_complex(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_args_complex(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sessionstrparams_set_session_args_complex(this.__wbg_ptr,c,D)}get session_version(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.sessionstrparams_session_version(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_version(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sessionstrparams_set_session_version(this.__wbg_ptr,c,D)}get session_entry_point(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.sessionstrparams_session_entry_point(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_entry_point(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sessionstrparams_set_session_entry_point(this.__wbg_ptr,c,D)}get is_session_transfer(){const i=l.sessionstrparams_is_session_transfer(this.__wbg_ptr);return 16777215===i?void 0:0!==i}set is_session_transfer(i){l.sessionstrparams_set_is_session_transfer(this.__wbg_ptr,i)}}const Nc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_speculativeexecresult_free(m>>>0));class zt{static __wrap(i){i>>>=0;const c=Object.create(zt.prototype);return c.__wbg_ptr=i,Nc.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Nc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_speculativeexecresult_free(i)}get api_version(){return C(l.speculativeexecresult_api_version(this.__wbg_ptr))}get block_hash(){const i=l.speculativeexecresult_block_hash(this.__wbg_ptr);return Ln.__wrap(i)}get execution_result(){return C(l.speculativeexecresult_execution_result(this.__wbg_ptr))}toJson(){return C(l.speculativeexecresult_toJson(this.__wbg_ptr))}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_success_free(m>>>0));const Rc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_transferaddr_free(m>>>0));class hi{static __wrap(i){i>>>=0;const c=Object.create(hi.prototype);return c.__wbg_ptr=i,Rc.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Rc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_transferaddr_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=dt(i,l.__wbindgen_malloc);l.transferaddr_new(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const p=l.__wbindgen_add_to_stack_pointer(-16);l.transferaddr_to_bytes(p,this.__wbg_ptr);var i=w()[p/4+0],c=w()[p/4+1],_=function Ts(m,i){return m>>>=0,$t().subarray(m/1,m/1+i)}(i,c).slice();return l.__wbindgen_free(i,1*c,1),_}finally{l.__wbindgen_add_to_stack_pointer(16)}}}const xc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_uref_free(m>>>0));class kn{static __wrap(i){i>>>=0;const c=Object.create(kn.prototype);return c.__wbg_ptr=i,xc.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,xc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_uref_free(i)}constructor(i,c){try{const M=l.__wbindgen_add_to_stack_pointer(-16),A=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.uref_new(M,A,D,c);var _=w()[M/4+0],p=w()[M/4+1];if(w()[M/4+2])throw C(p);return this.__wbg_ptr=_>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromUint8Array(i,c){const _=dt(i,l.__wbindgen_malloc),y=l.uref_fromUint8Array(_,D,c);return kn.__wrap(y)}toFormattedString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.uref_toFormattedString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,R(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}toJson(){return C(l.uref_toJson(this.__wbg_ptr))}}const qs=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_urefaddr_free(m>>>0));class gi{static __wrap(i){i>>>=0;const c=Object.create(gi.prototype);return c.__wbg_ptr=i,qs.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,qs.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_urefaddr_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=dt(i,l.__wbindgen_malloc);l.urefaddr_new(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}}const Oc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getaccountoptions_free(m>>>0));class wo{static __wrap(i){i>>>=0;const c=Object.create(wo.prototype);return c.__wbg_ptr=i,Oc.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Oc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getaccountoptions_free(i)}get account_identifier(){const i=l.__wbg_get_getaccountoptions_account_identifier(this.__wbg_ptr);return 0===i?void 0:Yn.__wrap(i)}set account_identifier(i){let c=0;E(i)||(N(i,Yn),c=i.__destroy_into_raw()),l.__wbg_set_getaccountoptions_account_identifier(this.__wbg_ptr,c)}get account_identifier_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getaccountoptions_account_identifier_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set account_identifier_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getaccountoptions_account_identifier_as_string(this.__wbg_ptr,c,D)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getaccountoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getaccountoptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get maybe_block_identifier(){const i=l.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr);return 0===i?void 0:Ue.__wrap(i)}set maybe_block_identifier(i){let c=0;E(i)||(N(i,Ue),c=i.__destroy_into_raw()),l.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getaccountoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getaccountoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getaccountoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getaccountoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getauctioninfooptions_free(m>>>0));class mi{static __wrap(i){i>>>=0;const c=Object.create(mi.prototype);return c.__wbg_ptr=i,gt.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,gt.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getauctioninfooptions_free(i)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getauctioninfooptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get maybe_block_identifier(){const i=l.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr);return 0===i?void 0:Ue.__wrap(i)}set maybe_block_identifier(i){let c=0;E(i)||(N(i,Ue),c=i.__destroy_into_raw()),l.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getauctioninfooptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getauctioninfooptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const Pc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getbalanceoptions_free(m>>>0));class qt{static __wrap(i){i>>>=0;const c=Object.create(qt.prototype);return c.__wbg_ptr=i,Pc.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Pc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getbalanceoptions_free(i)}get state_root_hash_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getbalanceoptions_state_root_hash_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set state_root_hash_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getbalanceoptions_state_root_hash_as_string(this.__wbg_ptr,c,D)}get state_root_hash(){const i=l.__wbg_get_getbalanceoptions_state_root_hash(this.__wbg_ptr);return 0===i?void 0:Ie.__wrap(i)}set state_root_hash(i){let c=0;E(i)||(N(i,Ie),c=i.__destroy_into_raw()),l.__wbg_set_getbalanceoptions_state_root_hash(this.__wbg_ptr,c)}get purse_uref_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getbalanceoptions_purse_uref_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set purse_uref_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getbalanceoptions_purse_uref_as_string(this.__wbg_ptr,c,D)}get purse_uref(){const i=l.__wbg_get_getbalanceoptions_purse_uref(this.__wbg_ptr);return 0===i?void 0:kn.__wrap(i)}set purse_uref(i){let c=0;E(i)||(N(i,kn),c=i.__destroy_into_raw()),l.__wbg_set_getbalanceoptions_purse_uref(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getbalanceoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getbalanceoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getbalanceoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getbalanceoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const Gs=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getblockoptions_free(m>>>0));class te{static __wrap(i){i>>>=0;const c=Object.create(te.prototype);return c.__wbg_ptr=i,Gs.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Gs.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getblockoptions_free(i)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getblockoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get maybe_block_identifier(){const i=l.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr);return 0===i?void 0:Ue.__wrap(i)}set maybe_block_identifier(i){let c=0;E(i)||(N(i,Ue),c=i.__destroy_into_raw()),l.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getblockoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getblockoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const Tt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getblocktransfersoptions_free(m>>>0));class ue{static __wrap(i){i>>>=0;const c=Object.create(ue.prototype);return c.__wbg_ptr=i,Tt.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Tt.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getblocktransfersoptions_free(i)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getauctioninfooptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get maybe_block_identifier(){const i=l.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr);return 0===i?void 0:Ue.__wrap(i)}set maybe_block_identifier(i){let c=0;E(i)||(N(i,Ue),c=i.__destroy_into_raw()),l.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr,c)}get verbosity(){const i=l.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr,E(i)?3:i)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getauctioninfooptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getauctioninfooptions_node_address(this.__wbg_ptr,c,D)}}const ot=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getdeployoptions_free(m>>>0));class tt{static __wrap(i){i>>>=0;const c=Object.create(tt.prototype);return c.__wbg_ptr=i,ot.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,ot.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getdeployoptions_free(i)}get deploy_hash_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getdeployoptions_deploy_hash_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set deploy_hash_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getdeployoptions_deploy_hash_as_string(this.__wbg_ptr,c,D)}get deploy_hash(){const i=l.__wbg_get_getdeployoptions_deploy_hash(this.__wbg_ptr);return 0===i?void 0:En.__wrap(i)}set deploy_hash(i){let c=0;E(i)||(N(i,En),c=i.__destroy_into_raw()),l.__wbg_set_getdeployoptions_deploy_hash(this.__wbg_ptr,c)}get finalized_approvals(){const i=l.__wbg_get_getdeployoptions_finalized_approvals(this.__wbg_ptr);return 16777215===i?void 0:0!==i}set finalized_approvals(i){l.__wbg_set_getdeployoptions_finalized_approvals(this.__wbg_ptr,E(i)?16777215:i?1:0)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getdeployoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getdeployoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getdeployoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getdeployoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const tr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getdictionaryitemoptions_free(m>>>0));class it{static __wrap(i){i>>>=0;const c=Object.create(it.prototype);return c.__wbg_ptr=i,tr.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,tr.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getdictionaryitemoptions_free(i)}get state_root_hash_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getdictionaryitemoptions_state_root_hash_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set state_root_hash_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr,c,D)}get state_root_hash(){const i=l.__wbg_get_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr);return 0===i?void 0:Ie.__wrap(i)}set state_root_hash(i){let c=0;E(i)||(N(i,Ie),c=i.__destroy_into_raw()),l.__wbg_set_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr,c)}get dictionary_item_params(){const i=l.__wbg_get_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr);return 0===i?void 0:pr.__wrap(i)}set dictionary_item_params(i){let c=0;E(i)||(N(i,pr),c=i.__destroy_into_raw()),l.__wbg_set_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr,c)}get dictionary_item_identifier(){const i=l.__wbg_get_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr);return 0===i?void 0:Xt.__wrap(i)}set dictionary_item_identifier(i){let c=0;E(i)||(N(i,Xt),c=i.__destroy_into_raw()),l.__wbg_set_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getdictionaryitemoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getdictionaryitemoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getdictionaryitemoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getdictionaryitemoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const Ws=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_geterainfooptions_free(m>>>0));class bo{static __wrap(i){i>>>=0;const c=Object.create(bo.prototype);return c.__wbg_ptr=i,Ws.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Ws.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_geterainfooptions_free(i)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getauctioninfooptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get maybe_block_identifier(){const i=l.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr);return 0===i?void 0:Ue.__wrap(i)}set maybe_block_identifier(i){let c=0;E(i)||(N(i,Ue),c=i.__destroy_into_raw()),l.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getauctioninfooptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getauctioninfooptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const vo=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_geterasummaryoptions_free(m>>>0));class yi{static __wrap(i){i>>>=0;const c=Object.create(yi.prototype);return c.__wbg_ptr=i,vo.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,vo.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_geterasummaryoptions_free(i)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getblockoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get maybe_block_identifier(){const i=l.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr);return 0===i?void 0:Ue.__wrap(i)}set maybe_block_identifier(i){let c=0;E(i)||(N(i,Ue),c=i.__destroy_into_raw()),l.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getblockoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getblockoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const Lc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getspeculativeexecoptions_free(m>>>0));class Oe{static __wrap(i){i>>>=0;const c=Object.create(Oe.prototype);return c.__wbg_ptr=i,Lc.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Lc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getspeculativeexecoptions_free(i)}get deploy_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getspeculativeexecoptions_deploy_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set deploy_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getspeculativeexecoptions_deploy_as_string(this.__wbg_ptr,c,D)}get deploy(){const i=l.__wbg_get_getspeculativeexecoptions_deploy(this.__wbg_ptr);return 0===i?void 0:De.__wrap(i)}set deploy(i){let c=0;E(i)||(N(i,De),c=i.__destroy_into_raw()),l.__wbg_set_getspeculativeexecoptions_deploy(this.__wbg_ptr,c)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getspeculativeexecoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getspeculativeexecoptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get maybe_block_identifier(){const i=l.__wbg_get_getspeculativeexecoptions_maybe_block_identifier(this.__wbg_ptr);return 0===i?void 0:Ue.__wrap(i)}set maybe_block_identifier(i){let c=0;E(i)||(N(i,Ue),c=i.__destroy_into_raw()),l.__wbg_set_getspeculativeexecoptions_maybe_block_identifier(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getspeculativeexecoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getspeculativeexecoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getspeculativeexecoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getspeculativeexecoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const H=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getstateroothashoptions_free(m>>>0));class J{static __wrap(i){i>>>=0;const c=Object.create(J.prototype);return c.__wbg_ptr=i,H.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getstateroothashoptions_free(i)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getstateroothashoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getstateroothashoptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get maybe_block_identifier(){const i=l.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr);return 0===i?void 0:Ue.__wrap(i)}set maybe_block_identifier(i){let c=0;E(i)||(N(i,Ue),c=i.__destroy_into_raw()),l.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getstateroothashoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getstateroothashoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getstateroothashoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getstateroothashoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const Ze=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_querybalanceoptions_free(m>>>0));class xt{static __wrap(i){i>>>=0;const c=Object.create(xt.prototype);return c.__wbg_ptr=i,Ze.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Ze.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_querybalanceoptions_free(i)}get purse_identifier_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querybalanceoptions_purse_identifier_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set purse_identifier_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querybalanceoptions_purse_identifier_as_string(this.__wbg_ptr,c,D)}get purse_identifier(){const i=l.__wbg_get_querybalanceoptions_purse_identifier(this.__wbg_ptr);return 0===i?void 0:xe.__wrap(i)}set purse_identifier(i){let c=0;E(i)||(N(i,xe),c=i.__destroy_into_raw()),l.__wbg_set_querybalanceoptions_purse_identifier(this.__wbg_ptr,c)}get global_state_identifier(){const i=l.__wbg_get_querybalanceoptions_global_state_identifier(this.__wbg_ptr);return 0===i?void 0:en.__wrap(i)}set global_state_identifier(i){let c=0;E(i)||(N(i,en),c=i.__destroy_into_raw()),l.__wbg_set_querybalanceoptions_global_state_identifier(this.__wbg_ptr,c)}get state_root_hash_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querybalanceoptions_state_root_hash_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set state_root_hash_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querybalanceoptions_state_root_hash_as_string(this.__wbg_ptr,c,D)}get state_root_hash(){const i=l.__wbg_get_querybalanceoptions_state_root_hash(this.__wbg_ptr);return 0===i?void 0:Ie.__wrap(i)}set state_root_hash(i){let c=0;E(i)||(N(i,Ie),c=i.__destroy_into_raw()),l.__wbg_set_querybalanceoptions_state_root_hash(this.__wbg_ptr,c)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querybalanceoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querybalanceoptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querybalanceoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querybalanceoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_querybalanceoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_querybalanceoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_querycontractdictoptions_free(m>>>0));class Ot{static __wrap(i){i>>>=0;const c=Object.create(Ot.prototype);return c.__wbg_ptr=i,mt.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,mt.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_querycontractdictoptions_free(i)}get state_root_hash_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getdictionaryitemoptions_state_root_hash_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set state_root_hash_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr,c,D)}get state_root_hash(){const i=l.__wbg_get_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr);return 0===i?void 0:Ie.__wrap(i)}set state_root_hash(i){let c=0;E(i)||(N(i,Ie),c=i.__destroy_into_raw()),l.__wbg_set_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr,c)}get dictionary_item_params(){const i=l.__wbg_get_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr);return 0===i?void 0:pr.__wrap(i)}set dictionary_item_params(i){let c=0;E(i)||(N(i,pr),c=i.__destroy_into_raw()),l.__wbg_set_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr,c)}get dictionary_item_identifier(){const i=l.__wbg_get_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr);return 0===i?void 0:Xt.__wrap(i)}set dictionary_item_identifier(i){let c=0;E(i)||(N(i,Xt),c=i.__destroy_into_raw()),l.__wbg_set_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getdictionaryitemoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getdictionaryitemoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getdictionaryitemoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getdictionaryitemoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const mr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_querycontractkeyoptions_free(m>>>0));class Me{static __wrap(i){i>>>=0;const c=Object.create(Me.prototype);return c.__wbg_ptr=i,mr.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,mr.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_querycontractkeyoptions_free(i)}get global_state_identifier(){const i=l.__wbg_get_querycontractkeyoptions_global_state_identifier(this.__wbg_ptr);return 0===i?void 0:en.__wrap(i)}set global_state_identifier(i){let c=0;E(i)||(N(i,en),c=i.__destroy_into_raw()),l.__wbg_set_querycontractkeyoptions_global_state_identifier(this.__wbg_ptr,c)}get state_root_hash_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querycontractkeyoptions_state_root_hash_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set state_root_hash_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querycontractkeyoptions_state_root_hash_as_string(this.__wbg_ptr,c,D)}get state_root_hash(){const i=l.__wbg_get_querycontractkeyoptions_state_root_hash(this.__wbg_ptr);return 0===i?void 0:Ie.__wrap(i)}set state_root_hash(i){let c=0;E(i)||(N(i,Ie),c=i.__destroy_into_raw()),l.__wbg_set_querycontractkeyoptions_state_root_hash(this.__wbg_ptr,c)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querycontractkeyoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querycontractkeyoptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get contract_key_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querycontractkeyoptions_contract_key_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set contract_key_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querycontractkeyoptions_contract_key_as_string(this.__wbg_ptr,c,D)}get contract_key(){const i=l.__wbg_get_querycontractkeyoptions_contract_key(this.__wbg_ptr);return 0===i?void 0:Be.__wrap(i)}set contract_key(i){let c=0;E(i)||(N(i,Be),c=i.__destroy_into_raw()),l.__wbg_set_querycontractkeyoptions_contract_key(this.__wbg_ptr,c)}get path_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querycontractkeyoptions_path_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set path_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querycontractkeyoptions_path_as_string(this.__wbg_ptr,c,D)}get path(){const i=l.__wbg_get_querycontractkeyoptions_path(this.__wbg_ptr);return 0===i?void 0:hr.__wrap(i)}set path(i){let c=0;E(i)||(N(i,hr),c=i.__destroy_into_raw()),l.__wbg_set_querycontractkeyoptions_path(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querycontractkeyoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querycontractkeyoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_querycontractkeyoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_querycontractkeyoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const _t=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_queryglobalstateoptions_free(m>>>0));class nn{static __wrap(i){i>>>=0;const c=Object.create(nn.prototype);return c.__wbg_ptr=i,_t.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,_t.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_queryglobalstateoptions_free(i)}get global_state_identifier(){const i=l.__wbg_get_querycontractkeyoptions_global_state_identifier(this.__wbg_ptr);return 0===i?void 0:en.__wrap(i)}set global_state_identifier(i){let c=0;E(i)||(N(i,en),c=i.__destroy_into_raw()),l.__wbg_set_querycontractkeyoptions_global_state_identifier(this.__wbg_ptr,c)}get state_root_hash_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querycontractkeyoptions_state_root_hash_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set state_root_hash_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querycontractkeyoptions_state_root_hash_as_string(this.__wbg_ptr,c,D)}get state_root_hash(){const i=l.__wbg_get_querycontractkeyoptions_state_root_hash(this.__wbg_ptr);return 0===i?void 0:Ie.__wrap(i)}set state_root_hash(i){let c=0;E(i)||(N(i,Ie),c=i.__destroy_into_raw()),l.__wbg_set_querycontractkeyoptions_state_root_hash(this.__wbg_ptr,c)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querycontractkeyoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querycontractkeyoptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get key_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querycontractkeyoptions_contract_key_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set key_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querycontractkeyoptions_contract_key_as_string(this.__wbg_ptr,c,D)}get key(){const i=l.__wbg_get_querycontractkeyoptions_contract_key(this.__wbg_ptr);return 0===i?void 0:Be.__wrap(i)}set key(i){let c=0;E(i)||(N(i,Be),c=i.__destroy_into_raw()),l.__wbg_set_querycontractkeyoptions_contract_key(this.__wbg_ptr,c)}get path_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querycontractkeyoptions_path_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set path_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querycontractkeyoptions_path_as_string(this.__wbg_ptr,c,D)}get path(){const i=l.__wbg_get_querycontractkeyoptions_path(this.__wbg_ptr);return 0===i?void 0:hr.__wrap(i)}set path(i){let c=0;E(i)||(N(i,hr),c=i.__destroy_into_raw()),l.__wbg_set_querycontractkeyoptions_path(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querycontractkeyoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=R(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querycontractkeyoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_querycontractkeyoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_querycontractkeyoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}function yr(){return(yr=(0,j.c)(function*(m,i){if("function"==typeof Response&&m instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return yield WebAssembly.instantiateStreaming(m,i)}catch(_){if("application/wasm"==m.headers.get("Content-Type"))throw _;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",_)}const c=yield m.arrayBuffer();return yield WebAssembly.instantiate(c,i)}{const c=yield WebAssembly.instantiate(m,i);return c instanceof WebAssembly.Instance?{instance:c,module:m}:c}})).apply(this,arguments)}function Js(){const m={wbg:{}};return m.wbg.__wbindgen_object_drop_ref=function(i){C(i)},m.wbg.__wbg_error_adb09b59c60c9cab=function(i,c){console.error(R(i,c))},m.wbg.__wbindgen_error_new=function(i,c){return x(new Error(R(i,c)))},m.wbg.__wbg_getauctioninforesult_new=function(i){return x(Ls.__wrap(i))},m.wbg.__wbindgen_string_new=function(i,c){return x(R(i,c))},m.wbg.__wbindgen_object_clone_ref=function(i){return x(L(i))},m.wbg.__wbg_queryglobalstateresult_new=function(i){return x(pi.__wrap(i))},m.wbg.__wbg_getaccountresult_new=function(i){return x(bc.__wrap(i))},m.wbg.__wbg_geterainforesult_new=function(i){return x(Sc.__wrap(i))},m.wbg.__wbg_putdeployresult_new=function(i){return x(mo.__wrap(i))},m.wbg.__wbg_querybalanceresult_new=function(i){return x(fi.__wrap(i))},m.wbg.__wbg_getdictionaryitemresult_new=function(i){return x(Ec.__wrap(i))},m.wbg.__wbg_geterasummaryresult_new=function(i){return x(Mc.__wrap(i))},m.wbg.__wbg_getblocktransfersresult_new=function(i){return x(Dc.__wrap(i))},m.wbg.__wbg_getblockresult_new=function(i){return x(vc.__wrap(i))},m.wbg.__wbg_getchainspecresult_new=function(i){return x(et.__wrap(i))},m.wbg.__wbg_speculativeexecresult_new=function(i){return x(zt.__wrap(i))},m.wbg.__wbg_getdeployresult_new=function(i){return x(Cc.__wrap(i))},m.wbg.__wbg_getstateroothashresult_new=function(i){return x(js.__wrap(i))},m.wbg.__wbg_getpeersresult_new=function(i){return x(Vs.__wrap(i))},m.wbg.__wbg_listrpcsresult_new=function(i){return x(ye.__wrap(i))},m.wbg.__wbg_getbalanceresult_new=function(i){return x(je.__wrap(i))},m.wbg.__wbg_getnodestatusresult_new=function(i){return x(kc.__wrap(i))},m.wbg.__wbg_getvalidatorchangesresult_new=function(i){return x(kt.__wrap(i))},m.wbg.__wbg_deploysubscription_unwrap=function(i){return St.__unwrap(C(i))},m.wbg.__wbindgen_string_get=function(i,c){const _=L(c),p="string"==typeof _?_:void 0;var y=E(p)?0:S(p,l.__wbindgen_malloc,l.__wbindgen_realloc),M=D;w()[i/4+1]=M,w()[i/4+0]=y},m.wbg.__wbindgen_cb_drop=function(i){const c=C(i).original;return 1==c.cnt--&&(c.a=0,!0)},m.wbg.__wbindgen_jsval_eq=function(i,c){return L(i)===L(c)},m.wbg.__wbindgen_is_null=function(i){return null===L(i)},m.wbg.__wbindgen_is_undefined=function(i){return void 0===L(i)},m.wbg.__wbg_fetch_27eb4c0a08a9ca04=function(i){return x(fetch(L(i)))},m.wbg.__wbg_getReader_ab94afcb5cb7689a=function(){return Re(function(i){return x(L(i).getReader())},arguments)},m.wbg.__wbg_done_2ffa852272310e47=function(i){return L(i).done},m.wbg.__wbg_value_9f6eeb1e2aab8d96=function(i){return x(L(i).value)},m.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6=function(i){return x(L(i).queueMicrotask)},m.wbg.__wbindgen_is_function=function(i){return"function"==typeof L(i)},m.wbg.__wbg_queueMicrotask_481971b0d87f3dd4=function(i){queueMicrotask(L(i))},m.wbg.__wbg_fetch_921fad6ef9e883dd=function(i,c){return x(L(i).fetch(L(c)))},m.wbg.__wbg_signal_a61f78a3478fd9bc=function(i){return x(L(i).signal)},m.wbg.__wbg_new_0d76b0581eca6298=function(){return Re(function(){return x(new AbortController)},arguments)},m.wbg.__wbg_abort_2aa7521d5690750e=function(i){L(i).abort()},m.wbg.__wbg_read_e7d0f8a49be01d86=function(i){return x(L(i).read())},m.wbg.__wbg_releaseLock_5c49db976c08b864=function(i){L(i).releaseLock()},m.wbg.__wbg_cancel_6ee33d4006737aef=function(i){return x(L(i).cancel())},m.wbg.__wbg_instanceof_Response_849eb93e75734b6e=function(i){let c;try{c=L(i)instanceof Response}catch{c=!1}return c},m.wbg.__wbg_url_5f6dc4009ac5f99d=function(i,c){const p=S(L(c).url,l.__wbindgen_malloc,l.__wbindgen_realloc),y=D;w()[i/4+1]=y,w()[i/4+0]=p},m.wbg.__wbg_status_61a01141acd3cf74=function(i){return L(i).status},m.wbg.__wbg_headers_9620bfada380764a=function(i){return x(L(i).headers)},m.wbg.__wbg_body_9545a94f397829db=function(i){const c=L(i).body;return E(c)?0:x(c)},m.wbg.__wbg_arrayBuffer_29931d52c7206b02=function(){return Re(function(i){return x(L(i).arrayBuffer())},arguments)},m.wbg.__wbg_byobRequest_72fca99f9c32c193=function(i){const c=L(i).byobRequest;return E(c)?0:x(c)},m.wbg.__wbg_close_184931724d961ccc=function(){return Re(function(i){L(i).close()},arguments)},m.wbg.__wbg_close_a994f9425dab445c=function(){return Re(function(i){L(i).close()},arguments)},m.wbg.__wbg_enqueue_ea194723156c0cc2=function(){return Re(function(i,c){L(i).enqueue(L(c))},arguments)},m.wbg.__wbg_newwithstrandinit_3fd6fba4083ff2d0=function(){return Re(function(i,c,_){return x(new Request(R(i,c),L(_)))},arguments)},m.wbg.__wbg_new_ab6fd82b10560829=function(){return Re(function(){return x(new Headers)},arguments)},m.wbg.__wbg_append_7bfcb4937d1d5e29=function(){return Re(function(i,c,_,p,y){L(i).append(R(c,_),R(p,y))},arguments)},m.wbg.__wbg_view_7f0ce470793a340f=function(i){const c=L(i).view;return E(c)?0:x(c)},m.wbg.__wbg_respond_b1a43b2e3a06d525=function(){return Re(function(i,c){L(i).respond(c>>>0)},arguments)},m.wbg.__wbg_crypto_d05b68a3572bb8ca=function(i){return x(L(i).crypto)},m.wbg.__wbindgen_is_object=function(i){const c=L(i);return"object"==typeof c&&null!==c},m.wbg.__wbg_process_b02b3570280d0366=function(i){return x(L(i).process)},m.wbg.__wbg_versions_c1cb42213cedf0f5=function(i){return x(L(i).versions)},m.wbg.__wbg_node_43b1089f407e4ec2=function(i){return x(L(i).node)},m.wbg.__wbindgen_is_string=function(i){return"string"==typeof L(i)},m.wbg.__wbg_require_9a7e0f667ead4995=function(){return Re(function(){return x(Zn.require)},arguments)},m.wbg.__wbg_msCrypto_10fc94afee92bd76=function(i){return x(L(i).msCrypto)},m.wbg.__wbg_randomFillSync_b70ccbdf4926a99d=function(){return Re(function(i,c){L(i).randomFillSync(C(c))},arguments)},m.wbg.__wbg_getRandomValues_7e42b4fb8779dc6d=function(){return Re(function(i,c){L(i).getRandomValues(L(c))},arguments)},m.wbg.__wbg_get_bd8e338fbd5f5cc8=function(i,c){return x(L(i)[c>>>0])},m.wbg.__wbg_length_cd7af8117672b8b8=function(i){return L(i).length},m.wbg.__wbg_new_16b304a2cfa7ff4a=function(){return x(new Array)},m.wbg.__wbg_newnoargs_e258087cd0daa0ea=function(i,c){return x(new Function(R(i,c)))},m.wbg.__wbg_next_40fc327bfc8770e6=function(i){return x(L(i).next)},m.wbg.__wbg_next_196c84450b364254=function(){return Re(function(i){return x(L(i).next())},arguments)},m.wbg.__wbg_done_298b57d23c0fc80c=function(i){return L(i).done},m.wbg.__wbg_value_d93c65011f51a456=function(i){return x(L(i).value)},m.wbg.__wbg_iterator_2cee6dadfd956dfa=function(){return x(Symbol.iterator)},m.wbg.__wbg_get_e3c254076557e348=function(){return Re(function(i,c){return x(Reflect.get(L(i),L(c)))},arguments)},m.wbg.__wbg_call_27c0f87801dedf93=function(){return Re(function(i,c){return x(L(i).call(L(c)))},arguments)},m.wbg.__wbg_new_72fb9a18b5ae2624=function(){return x(new Object)},m.wbg.__wbg_self_ce0dbfc45cf2f5be=function(){return Re(function(){return x(self.self)},arguments)},m.wbg.__wbg_window_c6fb939a7f436783=function(){return Re(function(){return x(window.window)},arguments)},m.wbg.__wbg_globalThis_d1e6af4856ba331b=function(){return Re(function(){return x(globalThis.globalThis)},arguments)},m.wbg.__wbg_global_207b558942527489=function(){return Re(function(){return x(global.global)},arguments)},m.wbg.__wbg_push_a5b05aedc7234f9f=function(i,c){return L(i).push(L(c))},m.wbg.__wbg_new_28c511d9baebfa89=function(i,c){return x(new Error(R(i,c)))},m.wbg.__wbg_apply_6d0b9cd50eb480c3=function(){return Re(function(i,c,_){return x(L(i).apply(L(c),L(_)))},arguments)},m.wbg.__wbg_call_b3ca7c6051f9bec1=function(){return Re(function(i,c,_){return x(L(i).call(L(c),L(_)))},arguments)},m.wbg.__wbg_getTime_2bc4375165f02d15=function(i){return L(i).getTime()},m.wbg.__wbg_new0_7d84e5b2cd9fdc73=function(){return x(new Date)},m.wbg.__wbg_instanceof_Object_71ca3c0a59266746=function(i){let c;try{c=L(i)instanceof Object}catch{c=!1}return c},m.wbg.__wbg_new_81740750da40724f=function(i,c){try{var _={a:i,b:c};const y=new Promise((M,A)=>{const K=_.a;_.a=0;try{return function hd(m,i,c,_){l.wasm_bindgen__convert__closures__invoke2_mut__h5c301d4b90da219f(m,i,x(c),x(_))}(K,_.b,M,A)}finally{_.a=K}});return x(y)}finally{_.a=_.b=0}},m.wbg.__wbg_resolve_b0083a7967828ec8=function(i){return x(Promise.resolve(L(i)))},m.wbg.__wbg_catch_0260e338d10f79ae=function(i,c){return x(L(i).catch(L(c)))},m.wbg.__wbg_then_0c86a60e8fcfe9f6=function(i,c){return x(L(i).then(L(c)))},m.wbg.__wbg_then_a73caa9a87991566=function(i,c,_){return x(L(i).then(L(c),L(_)))},m.wbg.__wbg_buffer_12d079cc21e14bdb=function(i){return x(L(i).buffer)},m.wbg.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb=function(i,c,_){return x(new Uint8Array(L(i),c>>>0,_>>>0))},m.wbg.__wbg_new_63b92bc8671ed464=function(i){return x(new Uint8Array(L(i)))},m.wbg.__wbg_set_a47bac70306a19a7=function(i,c,_){L(i).set(L(c),_>>>0)},m.wbg.__wbg_length_c20a40f15020d68a=function(i){return L(i).length},m.wbg.__wbg_newwithlength_e9b4878cebadb3d3=function(i){return x(new Uint8Array(i>>>0))},m.wbg.__wbg_buffer_dd7f74bc60f1faab=function(i){return x(L(i).buffer)},m.wbg.__wbg_subarray_a1f73cd4b5b42fe1=function(i,c,_){return x(L(i).subarray(c>>>0,_>>>0))},m.wbg.__wbg_byteLength_58f7b4fab1919d44=function(i){return L(i).byteLength},m.wbg.__wbg_byteOffset_81d60f7392524f62=function(i){return L(i).byteOffset},m.wbg.__wbg_getindex_03d06b4e7ea3475e=function(i,c){return L(i)[c>>>0]},m.wbg.__wbg_has_0af94d20077affa2=function(){return Re(function(i,c){return Reflect.has(L(i),L(c))},arguments)},m.wbg.__wbg_set_1f9b04f170055d33=function(){return Re(function(i,c,_){return Reflect.set(L(i),L(c),L(_))},arguments)},m.wbg.__wbg_parse_66d1801634e099ac=function(){return Re(function(i,c){return x(JSON.parse(R(i,c)))},arguments)},m.wbg.__wbg_stringify_8887fe74e1c50d81=function(){return Re(function(i){return x(JSON.stringify(L(i)))},arguments)},m.wbg.__wbindgen_debug_string=function(i,c){const p=S(io(L(c)),l.__wbindgen_malloc,l.__wbindgen_realloc),y=D;w()[i/4+1]=y,w()[i/4+0]=p},m.wbg.__wbindgen_throw=function(i,c){throw new Error(R(i,c))},m.wbg.__wbindgen_memory=function(){return x(l.memory)},m.wbg.__wbindgen_closure_wrapper4099=function(i,c,_){return x(ks(i,c,842,Xo))},m.wbg.__wbindgen_closure_wrapper4210=function(i,c,_){return x(ks(i,c,887,so))},m}function wr(m){return hn.apply(this,arguments)}function hn(){return hn=(0,j.c)(function*(m){if(void 0!==l)return l;typeof m>"u"&&(m=new URL("casper_rust_wasm_sdk_bg.wasm","file:///opt2/casper/rustSDK/pkg/casper_rust_wasm_sdk.js"));const i=Js();("string"==typeof m||"function"==typeof Request&&m instanceof Request||"function"==typeof URL&&m instanceof URL)&&(m=fetch(m));const{instance:c,module:_}=yield function re(m,i){return yr.apply(this,arguments)}(yield m,i);return function $e(m,i){return l=m.exports,wr.__wbindgen_wasm_module=i,xr=null,ei=null,It=null,l}(c,_)}),hn.apply(this,arguments)}const Co=wr},1528:(Zn,Rr,Ct)=>{function j(ce,L,ut,Et,C,Ut,It){try{var $t=ce[Ut](It),R=$t.value}catch(x){return void ut(x)}$t.done?L(R):Promise.resolve(R).then(Et,C)}function l(ce){return function(){var L=this,ut=arguments;return new Promise(function(Et,C){var Ut=ce.apply(L,ut);function It(R){j(Ut,Et,C,It,$t,"next",R)}function $t(R){j(Ut,Et,C,It,$t,"throw",R)}It(void 0)})}}Ct.d(Rr,{c:()=>l})}},Zn=>{Zn(Zn.s=3824)}]); \ No newline at end of file diff --git a/examples/frontend/angular/dist/casper/main.a84ce045d35eb3a8.js b/examples/frontend/angular/dist/casper/main.a84ce045d35eb3a8.js deleted file mode 100644 index af04a79a9..000000000 --- a/examples/frontend/angular/dist/casper/main.a84ce045d35eb3a8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcasper=self.webpackChunkcasper||[]).push([[590],{3824:(Qn,Rr,Dt)=>{var j=Dt(1528);let ce=null,ut=1;const Ct=Symbol("SIGNAL");function C(e){const n=ce;return ce=e,n}function S(e){if((!io(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==ut)){if(!e.producerMustRecompute(e)&&!oo(e))return e.dirty=!1,void(e.lastCleanEpoch=ut);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=ut}}function oo(e){N(e);for(let n=0;n0}function N(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let hd=null;function Xe(e){return"function"==typeof e}function As(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const so=As(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function ei(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class Qe{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const s of t)s.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(Xe(r))try{r()}catch(s){n=s instanceof so?s.errors:[s]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const s of o)try{Fs(s)}catch(a){n=n??[],a instanceof so?n=[...n,...a.errors]:n.push(a)}}if(n)throw new so(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Fs(n);else{if(n instanceof Qe){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&ei(t,n)}remove(n){const{_finalizers:t}=this;t&&ei(t,n),n instanceof Qe&&n._removeParent(this)}}Qe.EMPTY=(()=>{const e=new Qe;return e.closed=!0,e})();const Ns=Qe.EMPTY;function Yn(e){return e instanceof Qe||e&&"closed"in e&&Xe(e.remove)&&Xe(e.add)&&Xe(e.unsubscribe)}function Fs(e){Xe(e)?e():e.unsubscribe()}const On={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ao={setTimeout(e,n,...t){const{delegate:r}=ao;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=ao;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Pn(e){ao.setTimeout(()=>{const{onUnhandledError:n}=On;if(!n)throw e;n(e)})}function Rs(){}const Ue=ni("C",void 0,void 0);function ni(e,n,t){return{kind:e,value:n,error:t}}let It=null;function co(e){if(On.useDeprecatedSynchronousErrorHandling){const n=!It;if(n&&(It={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=It;if(It=null,t)throw r}}else e()}class ri extends Qe{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Yn(n)&&n.add(this)):this.destination=hc}static create(n,t,r){return new ii(n,t,r)}next(n){this.isStopped?Cn(function ti(e){return ni("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Cn(function fc(e){return ni("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Cn(Ue,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const lo=Function.prototype.bind;function oi(e,n){return lo.call(e,n)}class uo{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){Ce(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){Ce(r)}else Ce(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Ce(t)}}}class ii extends ri{constructor(n,t,r){let o;if(super(),Xe(n)||!n)o={next:n??void 0,error:t??void 0,complete:r??void 0};else{let s;this&&On.useDeprecatedNextContext?(s=Object.create(n),s.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&oi(n.next,s),error:n.error&&oi(n.error,s),complete:n.complete&&oi(n.complete,s)}):o=n}this.destination=new uo(o)}}function Ce(e){On.useDeprecatedSynchronousErrorHandling?function pe(e){On.useDeprecatedSynchronousErrorHandling&&It&&(It.errorThrown=!0,It.error=e)}(e):Pn(e)}function Cn(e,n){const{onStoppedNotification:t}=On;t&&ao.setTimeout(()=>t(e,n))}const hc={closed:!0,next:Rs,error:function pc(e){throw e},complete:Rs},Or="function"==typeof Symbol&&Symbol.observable||"@@observable";function yd(e){return e}let Et=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,o){const s=function mc(e){return e&&e instanceof ri||function si(e){return e&&Xe(e.next)&&Xe(e.error)&&Xe(e.complete)}(e)&&Yn(e)}(t)?t:new ii(t,r,o);return co(()=>{const{operator:a,source:u}=this;s.add(a?a.call(s,u):u?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=xs(r))((o,s)=>{const a=new ii({next:u=>{try{t(u)}catch(d){s(d),a.unsubscribe()}},error:s,complete:o});this.subscribe(a)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[Or](){return this}pipe(...t){return function gc(e){return 0===e.length?yd:1===e.length?e[0]:function(t){return e.reduce((r,o)=>o(r),t)}}(t)(this)}toPromise(t){return new(t=xs(t))((r,o)=>{let s;this.subscribe(a=>s=a,a=>o(a),()=>r(s))})}}return e.create=n=>new e(n),e})();function xs(e){var n;return null!==(n=e??On.Promise)&&void 0!==n?n:Promise}const ai=As(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let _o=(()=>{class e extends Et{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new Yt(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new ai}next(t){co(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){co(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){co(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:o,observers:s}=this;return r||o?Ns:(this.currentObservers=null,s.push(t),new Qe(()=>{this.currentObservers=null,ei(s,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:o,isStopped:s}=this;r?t.error(o):s&&t.complete()}asObservable(){const t=new Et;return t.source=this,t}}return e.create=(n,t)=>new Yt(n,t),e})();class Yt extends _o{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:Ns}}class ci extends _o{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function Xn(e){return n=>{if(function pr(e){return Xe(e?.lift)}(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ie(e,n,t,r,o){return new wd(e,n,t,r,o)}class wd extends ri{constructor(n,t,r,o,s,a){super(n),this.onFinalize=s,this.shouldUnsubscribe=a,this._next=t?function(u){try{t(u)}catch(d){n.error(d)}}:super._next,this._error=o?function(u){try{o(u)}catch(d){n.error(d)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(u){n.error(u)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function er(e,n){return Xn((t,r)=>{let o=0;t.subscribe(Ie(r,s=>{r.next(e.call(n,s,o++))}))})}const bd="https://g.co/ng/security#xss";class B extends Error{constructor(n,t){super(function Ln(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function li(e){return n=>{setTimeout(e,void 0,n)}}const je=class Ps extends _o{constructor(n=!1){super(),this.__isAsync=n}emit(n){const t=C(null);try{super.next(n)}finally{C(t)}}subscribe(n,t,r){let o=n,s=t||(()=>null),a=r;if(n&&"object"==typeof n){const d=n;o=d.next?.bind(d),s=d.error?.bind(d),a=d.complete?.bind(d)}this.__isAsync&&(s=li(s),o&&(o=li(o)),a&&(a=li(a)));const u=super.subscribe({next:o,error:s,complete:a});return n instanceof Qe&&n.add(u),u}};var ge=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(ge||{});function et(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(et).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function ui(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}var di=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(di||{}),In=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(In||{});function jn(e){return{toString:e}.toString()}const Se=globalThis,_n={},ye=[];function Ee(e){for(let n in e)if(e[n]===Ee)return n;throw Error("Could not find renamed property on target object.")}function hr(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}const ho=Ee({\u0275cmp:Ee}),fn=Ee({\u0275dir:Ee}),Bs=Ee({\u0275pipe:Ee}),Sn=Ee({\u0275fac:Ee}),en=Ee({__NG_ELEMENT_ID__:Ee}),Hs=Ee({__NG_ENV_ID__:Ee});var xe=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(xe||{});function Us(e,n,t){let r=e.length;for(;;){const o=e.indexOf(n,t);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const s=n.length;if(o+s===r||e.charCodeAt(o+s)<=32)return o}t=o+1}}function go(e,n,t){let r=0;for(;rn){a=s-1;break}}}for(;ss?"":o[g+1].toLowerCase();const v=8&r?b:null;if(v&&-1!==Us(v,f,0)||2&r&&f!==b){if(Ht(r))return!1;a=!0}}}}else{if(!a&&!Ht(r)&&!Ht(d))return!1;if(a&&Ht(d))continue;a=!1,r=d|1&r}}return Ht(r)||a}function Ht(e){return 0==(1&e)}function Ac(e,n,t,r){if(null===n)return-1;let o=0;if(r||!t){let s=!1;for(;o-1)for(t++;t0?'="'+u+'"':"")+"]"}else 8&r?o+="."+a:4&r&&(o+=" "+a);else""!==o&&!Ht(a)&&(n+=zs(s,o),o=""),r=a,s=s||!Ht(r);t++}return""!==o&&(n+=zs(s,o)),n}function ht(e){return jn(()=>{const n=Gs(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===di.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||In.Emulated,styles:e.styles||ye,_:null,schemas:e.schemas||null,tView:null,id:""};wo(t);const r=e.dependencies;return t.directiveDefs=bo(r,!1),t.pipeDefs=bo(r,!0),t.id=function Oc(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of t)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(t),t})}function gi(e){return ue(e)||ot(e)}function xc(e){return null!==e}function Ut(e){return jn(()=>({type:e.type,bootstrap:e.bootstrap||ye,declarations:e.declarations||ye,imports:e.imports||ye,exports:e.exports||ye,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function qs(e,n){if(null==e)return _n;const t={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];let s,a,u=xe.None;Array.isArray(o)?(u=o[0],s=o[1],a=o[2]??s):(s=o,a=o),n?(t[s]=u!==xe.None?[r,u]:r,n[s]=a):t[s]=r}return t}function te(e){return jn(()=>{const n=Gs(e);return wo(n),n})}function ue(e){return e[ho]||null}function ot(e){return e[fn]||null}function tt(e){return e[Bs]||null}function Gs(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||_n,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||ye,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:qs(e.inputs,n),outputs:qs(e.outputs),debugInfo:null}}function wo(e){e.features?.forEach(n=>n(e))}function bo(e,n){if(!e)return null;const t=n?tt:gi;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(xc)}const Oe=0,H=1,J=2,Ze=3,Ft=4,gt=5,Rt=6,mr=7,Me=8,dt=9,tn=10,re=11,yr=12,Ws=13,vo=14,$e=15,yi=16,wr=17,pn=18,Do=19,m=20,i=21,c=22,_=23,p=25,y=1,A=7,ie=9,Q=10;var ke=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(ke||{});function we(e){return Array.isArray(e)&&"object"==typeof e[y]}function _e(e){return Array.isArray(e)&&!0===e[y]}function mt(e){return 0!=(4&e.flags)}function nt(e){return e.componentOffset>-1}function _t(e){return 1==(1&e.flags)}function rt(e){return!!e.template}function Bn(e){return 0!=(512&e[J])}const sg="svg";let cg=!1;function Ve(e){for(;Array.isArray(e);)e=e[Oe];return e}function Js(e,n){return Ve(n[e])}function $t(e,n){return Ve(n[e.index])}function Ks(e,n){return e.data[n]}function hn(e,n){const t=n[e];return we(t)?t:t[Oe]}function Rd(e){return 128==(128&e[J])}function nr(e,n){return null==n?null:e[n]}function lg(e){e[wr]=0}function kI(e){1024&e[J]||(e[J]|=1024,Rd(e)&&Qs(e))}function xd(e){return!!(9216&e[J]||e[_]?.dirty)}function Od(e){xd(e)?Qs(e):64&e[J]&&(function EI(){return cg}()?(e[J]|=1024,Qs(e)):e[tn].changeDetectionScheduler?.notify())}function Qs(e){e[tn].changeDetectionScheduler?.notify();let n=Io(e);for(;null!==n&&!(8192&n[J])&&(n[J]|=8192,Rd(n));)n=Io(n)}function Io(e){const n=e[Ze];return _e(n)?n[Ze]:n}const oe={lFrame:wg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function _g(){return oe.bindingsEnabled}function bi(){return null!==oe.skipHydrationRootTNode}function R(){return oe.lFrame.lView}function be(){return oe.lFrame.tView}function kt(e){return oe.lFrame.contextLView=e,e[Me]}function Tt(e){return oe.lFrame.contextLView=null,e}function Pe(){let e=fg();for(;null!==e&&64===e.type;)e=e.parent;return e}function fg(){return oe.lFrame.currentTNode}function rr(e,n){const t=oe.lFrame;t.currentTNode=e,t.isParent=n}function Ld(){return oe.lFrame.isParent}function Vd(){oe.lFrame.isParent=!1}function zt(){const e=oe.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Hn(){return oe.lFrame.bindingIndex++}function Dr(e){const n=oe.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function jI(e,n){const t=oe.lFrame;t.bindingIndex=t.bindingRootIndex=e,jd(n)}function jd(e){oe.lFrame.currentDirectiveIndex=e}function Hd(){return oe.lFrame.currentQueryIndex}function qc(e){oe.lFrame.currentQueryIndex=e}function HI(e){const n=e[H];return 2===n.type?n.declTNode:1===n.type?e[gt]:null}function mg(e,n,t){if(t&ge.SkipSelf){let o=n,s=e;for(;!(o=o.parent,null!==o||t&ge.Host||(o=HI(s),null===o||(s=s[vo],10&o.type))););if(null===o)return!1;n=o,e=s}const r=oe.lFrame=yg();return r.currentTNode=n,r.lView=e,!0}function Ud(e){const n=yg(),t=e[H];oe.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function yg(){const e=oe.lFrame,n=null===e?null:e.child;return null===n?wg(e):n}function wg(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function bg(){const e=oe.lFrame;return oe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const vg=bg;function $d(){const e=bg();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function xt(){return oe.lFrame.selectedIndex}function So(e){oe.lFrame.selectedIndex=e}function ze(){const e=oe.lFrame;return Ks(e.tView,e.selectedIndex)}function Ys(){oe.lFrame.currentNamespace=sg}function zd(){!function zI(){oe.lFrame.currentNamespace=null}()}let Cg=!0;function Gc(){return Cg}function Br(e){Cg=e}function qI(){return vi(Pe(),R())}function vi(e,n){return new kn($t(e,n))}let Jd,kn=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=qI}return e})();function Eg(e){return e instanceof kn?e.nativeElement:e}function Di(e,n){e.forEach(t=>Array.isArray(t)?Di(t,n):n(t))}function Ig(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Wc(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function gn(e,n,t){let r=Ci(e,n);return r>=0?e[1|r]=t:(r=~r,function Sg(e,n,t,r){let o=e.length;if(o==n)e.push(t,r);else if(1===o)e.push(r,e[0]),e[0]=t;else{for(o--,e.push(e[o-1],e[o]);o>n;)e[o]=e[o-2],o--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function Gd(e,n){const t=Ci(e,n);if(t>=0)return e[1|t]}function Ci(e,n){return function Mg(e,n,t){let r=0,o=e.length>>t;for(;o!==r;){const s=r+(o-r>>1),a=e[s<n?o=s:r=s+1}return~(o<YI}),YI="ng",Fg=new G(""),Mo=new G("",{providedIn:"platform",factory:()=>"unknown"}),Rg=new G("",{providedIn:"root",factory:()=>Hr().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),t1=Ee({__forward_ref__:Ee});function qe(e){return e.__forward_ref__=qe,e.toString=function(){return et(this())},e}function ne(e){return el(e)?e():e}function el(e){return"function"==typeof e&&e.hasOwnProperty(t1)&&e.__forward_ref__===qe}function t_(e){return e&&!!e.\u0275providers}function le(e){return"string"==typeof e?e:null==e?"":String(e)}function n_(e,n){throw new B(-201,!1)}let r_;function rn(e){const n=r_;return r_=e,n}function Pg(e,n,t){const r=Zc(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&ge.Optional?null:void 0!==n?n:void n_()}const ea={},o_="__NG_DI_FLAG__",tl="ngTempTokenPath",a1=/\n/gm,Lg="__source";let Ei;function Ur(e){const n=Ei;return Ei=e,n}function u1(e,n=ge.Default){if(void 0===Ei)throw new B(-203,!1);return null===Ei?Pg(e,void 0,n):Ei.get(e,n&ge.Optional?null:void 0,n)}function X(e,n=ge.Default){return(function Og(){return r_}()||u1)(ne(e),n)}function se(e,n=ge.Default){return X(e,nl(n))}function nl(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function i_(e){const n=[];for(let t=0;tnull;function f_(e,n,t=!1){return jg(e,n,t)}const Ti="__parameters__";function Ni(e,n,t){return jn(()=>{const r=function m_(e){return function(...t){if(e){const r=e(...t);for(const o in r)this[o]=r[o]}}}(n);function o(...s){if(this instanceof o)return r.apply(this,s),this;const a=new o(...s);return u.annotation=a,u;function u(d,f,h){const g=d.hasOwnProperty(Ti)?d[Ti]:Object.defineProperty(d,Ti,{value:[]})[Ti];for(;g.length<=h;)g.push(null);return(g[h]=g[h]||[]).push(a),d}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}const y_=ta(Ni("Optional"),8),w_=ta(Ni("SkipSelf"),4);function ko(e,n){return e.hasOwnProperty(Sn)?e[Sn]:null}const Fi=new G(""),qg=new G("",-1),b_=new G("");class cl{get(n,t=ea){if(t===ea){const r=new Error(`NullInjectorError: No provider for ${et(n)}!`);throw r.name="NullInjectorError",r}return t}}function ll(e){return{\u0275providers:e}}function Gg(...e){return{\u0275providers:v_(0,e),\u0275fromNgModule:!0}}function v_(e,...n){const t=[],r=new Set;let o;const s=a=>{t.push(a)};return Di(n,a=>{const u=a;ul(u,s,[],r)&&(o||=[],o.push(u))}),void 0!==o&&Wg(o,s),t}function Wg(e,n){for(let t=0;t{n(s,r)})}}function ul(e,n,t,r){if(!(e=ne(e)))return!1;let o=null,s=Yc(e);const a=!s&&ue(e);if(s||a){if(a&&!a.standalone)return!1;o=e}else{const d=e.ngModule;if(s=Yc(d),!s)return!1;o=d}const u=r.has(o);if(a){if(u)return!1;if(r.add(o),a.dependencies){const d="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const f of d)ul(f,n,t,r)}}else{if(!s)return!1;{if(null!=s.imports&&!u){let f;r.add(o);try{Di(s.imports,h=>{ul(h,n,t,r)&&(f||=[],f.push(h))})}finally{}void 0!==f&&Wg(f,n)}if(!u){const f=ko(o)||(()=>new o);n({provide:o,useFactory:f,deps:ye},o),n({provide:b_,useValue:o,multi:!0},o),n({provide:Fi,useValue:()=>X(o),multi:!0},o)}const d=s.providers;if(null!=d&&!u){const f=e;D_(d,h=>{n(h,f)})}}}return o!==e&&void 0!==e.providers}function D_(e,n){for(let t of e)t_(t)&&(t=t.\u0275providers),Array.isArray(t)?D_(t,n):n(t)}const I1=Ee({provide:String,useValue:Ee});function C_(e){return null!==e&&"object"==typeof e&&I1 in e}function To(e){return"function"==typeof e}const E_=new G(""),dl={},M1={};let I_;function _l(){return void 0===I_&&(I_=new cl),I_}class Un{}class Ri extends Un{get destroyed(){return this._destroyed}constructor(n,t,r,o){super(),this.parent=t,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,M_(n,a=>this.processProvider(a)),this.records.set(qg,xi(void 0,this)),o.has("environment")&&this.records.set(Un,xi(void 0,this));const s=this.records.get(E_);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(b_,ye,ge.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=C(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),C(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=Ur(this),r=rn(void 0);try{return n()}finally{Ur(t),rn(r)}}get(n,t=ea,r=ge.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Hs))return n[Hs](this);r=nl(r);const s=Ur(this),a=rn(void 0);try{if(!(r&ge.SkipSelf)){let d=this.records.get(n);if(void 0===d){const f=function F1(e){return"function"==typeof e||"object"==typeof e&&e instanceof G}(n)&&Zc(n);d=f&&this.injectableDefInScope(f)?xi(S_(n),dl):null,this.records.set(n,d)}if(null!=d)return this.hydrate(n,d)}return(r&ge.Self?_l():this.parent).get(n,t=r&ge.Optional&&t===ea?null:t)}catch(u){if("NullInjectorError"===u.name){if((u[tl]=u[tl]||[]).unshift(et(n)),s)throw u;return function _1(e,n,t,r){const o=e[tl];throw n[Lg]&&o.unshift(n[Lg]),e.message=function f1(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=et(n);if(Array.isArray(n))o=n.map(et).join(" -> ");else if("object"==typeof n){let s=[];for(let a in n)if(n.hasOwnProperty(a)){let u=n[a];s.push(a+":"+("string"==typeof u?JSON.stringify(u):et(u)))}o=`{${s.join(", ")}}`}return`${t}${r?"("+r+")":""}[${o}]: ${e.replace(a1,"\n ")}`}("\n"+e.message,o,t,r),e.ngTokenPath=o,e[tl]=null,e}(u,n,"R3InjectorError",this.source)}throw u}finally{rn(a),Ur(s)}}resolveInjectorInitializers(){const n=C(null),t=Ur(this),r=rn(void 0);try{const s=this.get(Fi,ye,ge.Self);for(const a of s)a()}finally{Ur(t),rn(r),C(n)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(et(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new B(205,!1)}processProvider(n){let t=To(n=ne(n))?n:ne(n&&n.provide);const r=function T1(e){return C_(e)?xi(void 0,e.useValue):xi(Qg(e),dl)}(n);if(!To(n)&&!0===n.multi){let o=this.records.get(t);o||(o=xi(void 0,dl,!0),o.factory=()=>i_(o.multi),this.records.set(t,o)),t=n,o.multi.push(n)}this.records.set(t,r)}hydrate(n,t){const r=C(null);try{return t.value===dl&&(t.value=M1,t.value=t.factory()),"object"==typeof t.value&&t.value&&function N1(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{C(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=ne(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function S_(e){const n=Zc(e),t=null!==n?n.factory:ko(e);if(null!==t)return t;if(e instanceof G)throw new B(204,!1);if(e instanceof Function)return function k1(e){if(e.length>0)throw new B(204,!1);const t=function QI(e){return e&&(e[Xc]||e[Ng])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new B(204,!1)}function Qg(e,n,t){let r;if(To(e)){const o=ne(e);return ko(o)||S_(o)}if(C_(e))r=()=>ne(e.useValue);else if(function Kg(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...i_(e.deps||[]));else if(function Jg(e){return!(!e||!e.useExisting)}(e))r=()=>X(ne(e.useExisting));else{const o=ne(e&&(e.useClass||e.provide));if(!function A1(e){return!!e.deps}(e))return ko(o)||S_(o);r=()=>new o(...i_(e.deps))}return r}function xi(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function M_(e,n){for(const t of e)Array.isArray(t)?M_(t,n):t&&t_(t)?M_(t.\u0275providers,n):n(t)}class $1{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Yg(e,n,t,r){null!==n?n.applyValueToInputSignal(n,r):e[t]=r}function Cr(){return Xg}function Xg(e){return e.type.prototype.ngOnChanges&&(e.setInput=q1),z1}function z1(){const e=tm(this),n=e?.current;if(n){const t=e.previous;if(t===_n)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function q1(e,n,t,r,o){const s=this.declaredInputs[r],a=tm(e)||function G1(e,n){return e[em]=n}(e,{previous:_n,current:null}),u=a.current||(a.current={}),d=a.previous,f=d[s];u[s]=new $1(f&&f.currentValue,t,d===_n),Yg(e,n,o,t)}Cr.ngInherit=!0;const em="__ngSimpleChanges__";function tm(e){return e[em]||null}const ir=function(e,n,t){};function hl(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[d]<0&&(e[wr]+=65536),(u>14>16&&(3&e[J])===n&&(e[J]+=16384,rm(u,s)):rm(u,s)}const Pi=-1;class sa{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function F_(e){return e!==Pi}function aa(e){return 32767&e}function ca(e,n){let t=function eS(e){return e>>16}(e),r=n;for(;t>0;)r=r[vo],t--;return r}let R_=!0;function yl(e){const n=R_;return R_=e,n}const om=255,im=5;let tS=0;const sr={};function wl(e,n){const t=sm(e,n);if(-1!==t)return t;const r=n[H];r.firstCreatePass&&(e.injectorIndex=n.length,x_(r.data,e),x_(n,null),x_(r.blueprint,null));const o=bl(e,n),s=e.injectorIndex;if(F_(o)){const a=aa(o),u=ca(o,n),d=u[H].data;for(let f=0;f<8;f++)n[s+f]=u[a+f]|d[a+f]}return n[s+8]=o,s}function x_(e,n){e.push(0,0,0,0,0,0,0,0,n)}function sm(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function bl(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,o=n;for(;null!==o;){if(r=fm(o),null===r)return Pi;if(t++,o=o[vo],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return Pi}function O_(e,n,t){!function nS(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(en)&&(r=t[en]),null==r&&(r=t[en]=tS++);const o=r&om;n.data[e+(o>>im)]|=1<=0?n&om:sS:n}(t);if("function"==typeof s){if(!mg(n,e,r))return r&ge.Host?am(o,0,r):cm(n,t,r,o);try{let a;if(a=s(r),null!=a||r&ge.Optional)return a;n_()}finally{vg()}}else if("number"==typeof s){let a=null,u=sm(e,n),d=Pi,f=r&ge.Host?n[$e][gt]:null;for((-1===u||r&ge.SkipSelf)&&(d=-1===u?bl(e,n):n[u+8],d!==Pi&&_m(r,!1)?(a=n[H],u=aa(d),n=ca(d,n)):u=-1);-1!==u;){const h=n[H];if(dm(s,u,h.data)){const g=oS(u,n,t,a,r,f);if(g!==sr)return g}d=n[u+8],d!==Pi&&_m(r,n[H].data[u+8]===f)&&dm(s,u,n)?(a=h,u=aa(d),n=ca(d,n)):u=-1}}return o}function oS(e,n,t,r,o,s){const a=n[H],u=a.data[e+8],h=vl(u,a,t,null==r?nt(u)&&R_:r!=a&&0!=(3&u.type),o&ge.Host&&s===u);return null!==h?Ao(n,a,h,u):sr}function vl(e,n,t,r,o){const s=e.providerIndexes,a=n.data,u=1048575&s,d=e.directiveStart,h=s>>20,b=o?u+h:e.directiveEnd;for(let v=r?u:u+h;v=d&&I.type===t)return v}if(o){const v=a[d];if(v&&rt(v)&&v.type===t)return d}return null}function Ao(e,n,t,r){let o=e[t];const s=n.data;if(function Q1(e){return e instanceof sa}(o)){const a=o;a.resolving&&function o1(e,n){throw n&&n.join(" > "),new B(-200,e)}(function Te(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():le(e)}(s[t]));const u=yl(a.canSeeViewProviders);a.resolving=!0;const f=a.injectImpl?rn(a.injectImpl):null;mg(e,r,ge.Default);try{o=e[t]=a.factory(void 0,s,e,r),n.firstCreatePass&&t>=r.directiveStart&&function J1(e,n,t){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:s}=n.type.prototype;if(r){const a=Xg(n);(t.preOrderHooks??=[]).push(e,a),(t.preOrderCheckHooks??=[]).push(e,a)}o&&(t.preOrderHooks??=[]).push(0-e,o),s&&((t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s))}(t,s[t],n)}finally{null!==f&&rn(f),yl(u),a.resolving=!1,vg()}}return o}function dm(e,n,t){return!!(t[n+(e>>im)]&1<{const n=e.prototype.constructor,t=n[Sn]||P_(n),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const s=o[Sn]||P_(o);if(s&&s!==t)return s;o=Object.getPrototypeOf(o)}return s=>new s})}function P_(e){return el(e)?()=>{const n=P_(ne(e));return n&&n()}:ko(e)}function fm(e){const n=e[H],t=n.type;return 2===t?n.declTNode:1===t?e[gt]:null}function ym(e,n=null,t=null,r){const o=function wm(e,n=null,t=null,r,o=new Set){const s=[t||ye,Gg(e)];return r=r||("object"==typeof e?void 0:et(e)),new Ri(s,n||_l(),r||null,o)}(e,n,t,r);return o.resolveInjectorInitializers(),o}let mn=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=ea;static#t=this.NULL=new cl;static create(t,r){if(Array.isArray(t))return ym({name:""},r,t,"");{const o=t.name??"";return ym({name:o},t.parent,t.providers,o)}}static#n=this.\u0275prov=ae({token:e,providedIn:"any",factory:()=>X(qg)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function j_(e){return e.ngOriginalError}class Er{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&j_(n);for(;t&&j_(t);)t=j_(t);return t||null}}const vm=new G("",{providedIn:"root",factory:()=>se(Er).handleError.bind(void 0)}),Cm=new G("",{providedIn:"root",factory:()=>!1});let El,Il;function ji(e){return function B_(){if(void 0===El&&(El=null,Se.trustedTypes))try{El=Se.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return El}()?.createHTML(e)||e}function Em(e){return function H_(){if(void 0===Il&&(Il=null,Se.trustedTypes))try{Il=Se.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Il}()?.createHTML(e)||e}class Mm{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${bd})`}}function $r(e){return e instanceof Mm?e.changingThisBreaksApplicationSecurity:e}class CS{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const t=(new window.DOMParser).parseFromString(ji(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.removeChild(t.firstChild),t)}catch{return null}}}class ES{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=ji(n),t}}const SS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ir(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function ua(...e){const n={};for(const t of e)for(const r in t)t.hasOwnProperty(r)&&(n[r]=!0);return n}const Tm=Ir("area,br,col,hr,img,wbr"),Am=Ir("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Nm=Ir("rp,rt"),$_=ua(Tm,ua(Am,Ir("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ua(Nm,Ir("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ua(Nm,Am)),z_=Ir("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Fm=ua(z_,Ir("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ir("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),MS=Ir("script,style,template");class kS{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,r=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let o=this.checkClobberedElement(t,t.nextSibling);if(o){t=o;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(n){const t=n.nodeName.toLowerCase();if(!$_.hasOwnProperty(t))return this.sanitizedSomething=!0,!MS.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=n.attributes;for(let o=0;o"),!0}endElement(n){const t=n.nodeName.toLowerCase();$_.hasOwnProperty(t)&&!Tm.hasOwnProperty(t)&&(this.buf.push(""))}chars(n){this.buf.push(Rm(n))}checkClobberedElement(n,t){if(t&&(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return t}}const TS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,AS=/([^\#-~ |!])/g;function Rm(e){return e.replace(/&/g,"&").replace(TS,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(AS,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Sl;function q_(e){return"content"in e&&function FS(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Bi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Bi||{});function xm(e){const n=function da(){const e=R();return e&&e[tn].sanitizer}();return n?Em(n.sanitize(Bi.HTML,e)||""):function la(e,n){const t=function DS(e){return e instanceof Mm&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${bd})`)}return t===n}(e,"HTML")?Em($r(e)):function NS(e,n){let t=null;try{Sl=Sl||function km(e){const n=new ES(e);return function IS(){try{return!!(new window.DOMParser).parseFromString(ji(""),"text/html")}catch{return!1}}()?new CS(n):n}(e);let r=n?String(n):"";t=Sl.getInertBodyElement(r);let o=5,s=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=s,s=t.innerHTML,t=Sl.getInertBodyElement(r)}while(r!==s);return ji((new kS).sanitizeChildren(q_(t)||t))}finally{if(t){const r=q_(t)||t;for(;r.firstChild;)r.removeChild(r.firstChild)}}}(Hr(),le(e))}const jS=/^>|^->||--!>|)/g,HS="\u200b$1\u200b";const G_=new Map;let GS=0;const J_="__ngContext__";function Pt(e,n){we(n)?(e[J_]=n[Do],function JS(e){G_.set(e[Do],e)}(n)):e[J_]=n}var qr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(qr||{});let Y_;function X_(e,n){return Y_(e,n)}function Ui(e,n,t,r,o){if(null!=r){let s,a=!1;_e(r)?s=r:we(r)&&(a=!0,r=r[Oe]);const u=Ve(r);0===e&&null!==t?null==o?ty(n,t,u):No(n,t,u,o||null,!0):1===e&&null!==t?No(n,t,u,o||null,!0):2===e?function xl(e,n,t){const r=Fl(e,n);r&&function gM(e,n,t,r){e.removeChild(n,t,r)}(e,r,n,t)}(n,u,a):3===e&&n.destroyNode(u),null!=s&&function wM(e,n,t,r,o){const s=t[A];s!==Ve(t)&&Ui(n,e,r,s,o);for(let u=Q;un.replace(BS,HS))}(n))}function Al(e,n,t){return e.createElement(n,t)}function Ym(e,n){Ol(e,n,n[re],2,null,null)}function Xm(e,n){const t=e[ie],r=t.indexOf(n);t.splice(r,1)}function fa(e,n){if(e.length<=Q)return;const t=Q+n,r=e[t];if(r){const o=r[yi];null!==o&&o!==e&&Xm(o,r),n>0&&(e[t-1][Ft]=r[Ft]);const s=Wc(e,Q+n);!function lM(e,n){Ym(e,n),n[Oe]=null,n[gt]=null}(r[H],r);const a=s[pn];null!==a&&a.detachView(s[H]),r[Ze]=null,r[Ft]=null,r[J]&=-129}return r}function Nl(e,n){if(!(256&n[J])){const t=n[re];t.destroyNode&&Ol(e,n,t,3,null,null),function dM(e){let n=e[yr];if(!n)return tf(e[H],e);for(;n;){let t=null;if(we(n))t=n[yr];else{const r=n[Q];r&&(t=r)}if(!t){for(;n&&!n[Ft]&&n!==e;)we(n)&&tf(n[H],n),n=n[Ze];null===n&&(n=e),we(n)&&tf(n[H],n),t=n&&n[Ft]}n=t}}(n)}}function tf(e,n){if(256&n[J])return;const t=C(null);try{n[J]&=-129,n[J]|=256,n[_]&&function Ms(e){if(N(e),io(e))for(let n=0;n=0?r[a]():r[-a].unsubscribe(),s+=2}else t[s].call(r[t[s+1]]);null!==r&&(n[mr]=null);const o=n[i];if(null!==o){n[i]=null;for(let s=0;s-1){const{encapsulation:s}=e.data[r.directiveStart+o];if(s===In.None||s===In.Emulated)return null}return $t(r,t)}}(e,n.parent,t)}function No(e,n,t,r,o){e.insertBefore(n,t,r,o)}function ty(e,n,t){e.appendChild(n,t)}function ny(e,n,t,r,o){null!==r?No(e,n,t,r,o):ty(e,n,t)}function Fl(e,n){return e.parentNode(n)}function ry(e,n,t){return iy(e,n,t)}let rf,iy=function oy(e,n,t){return 40&e.type?$t(e,t):null};function Rl(e,n,t,r){const o=nf(e,r,n),s=n[re],u=ry(r.parent||n[gt],r,n);if(null!=o)if(Array.isArray(t))for(let d=0;dp&&_y(e,n,p,!1),ir(a?2:0,o),t(r,o)}finally{So(s),ir(a?3:1,o)}}function lf(e,n,t){if(mt(n)){const r=C(null);try{const s=n.directiveEnd;for(let a=n.directiveStart;anull;function my(e,n,t,r,o){for(let s in n){if(!n.hasOwnProperty(s))continue;const a=n[s];if(void 0===a)continue;r??={};let u,d=xe.None;Array.isArray(a)?(u=a[0],d=a[1]):u=a;let f=s;if(null!==o){if(!o.hasOwnProperty(s))continue;f=o[s]}0===e?yy(r,t,f,u,d):yy(r,t,f,u)}return r}function yy(e,n,t,r,o){let s;e.hasOwnProperty(t)?(s=e[t]).push(n,r):s=e[t]=[n,r],void 0!==o&&s.push(o)}function sn(e,n,t,r,o,s,a,u){const d=$t(n,t);let h,f=n.inputs;!u&&null!=f&&(h=f[r])?(mf(e,t,h,r,o),nt(n)&&function RM(e,n){const t=hn(n,e);16&t[J]||(t[J]|=64)}(t,n.index)):3&n.type&&(r=function FM(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=a?a(o,n.value||"",r):o,s.setProperty(d,r,o))}function ff(e,n,t,r){if(_g()){const o=null===r?null:{"":-1},s=function jM(e,n){const t=e.directiveRegistry;let r=null,o=null;if(t)for(let s=0;s0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(a)!=u&&a.push(u),a.push(t,r,s)}}(e,n,r,ha(e,t,o.hostVars,de),o)}function ar(e,n,t,r,o,s){const a=$t(e,n);!function hf(e,n,t,r,o,s,a){if(null==s)e.removeAttribute(n,o,t);else{const u=null==a?le(s):a(s,r||"",o);e.setAttribute(n,o,u,t)}}(n[re],a,s,e.value,t,r,o)}function qM(e,n,t,r,o,s){const a=s[n];if(null!==a)for(let u=0;u0&&(t[o-1][Ft]=n),r!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Qs(e.lView)},consumerOnSignalRead(){this.lView[_]=this}};function Ty(e){return Ny(e[yr])}function Ay(e){return Ny(e[Ft])}function Ny(e){for(;null!==e&&!_e(e);)e=e[Ft];return e}function jl(e,n=!0,t=0){const r=e[tn],o=r.rendererFactory;o.begin?.();try{!function nk(e,n){bf(e,n);let t=0;for(;xd(e);){if(100===t)throw new B(103,!1);t++,bf(e,1)}}(e,t)}catch(a){throw n&&Vl(e,a),a}finally{o.end?.(),r.inlineEffectRunner?.flush()}}function rk(e,n,t,r){const o=n[J];if(256==(256&o))return;n[tn].inlineEffectRunner?.flush(),Ud(n);let a=null,u=null;(function ok(e){return 2!==e.type})(e)&&(u=function QM(e){return e[_]??function ZM(e){const n=ky.pop()??Object.create(XM);return n.lView=e,n}(e)}(n),a=function Ss(e){return e&&(e.nextProducerIndex=0),C(e)}(u));try{lg(n),function hg(e){return oe.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&py(e,n,t,2,r);const d=3==(3&o);if(d){const g=e.preOrderCheckHooks;null!==g&&gl(n,g,null)}else{const g=e.preOrderHooks;null!==g&&ml(n,g,0,null),A_(n,0)}if(function ik(e){for(let n=Ty(e);null!==n;n=Ay(n)){if(!(n[J]&ke.HasTransplantedViews))continue;const t=n[ie];for(let r=0;re.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(u,a),function YM(e){e.lView[_]!==e&&(e.lView=null,ky.push(e))}(u)),$d()}}function Ry(e,n){for(let t=Ty(e);null!==t;t=Ay(t))for(let r=Q;r-1&&(fa(n,r),Wc(t,r))}this._attachedToViewContainer=!1}Nl(this._lView[H],this._lView)}onDestroy(n){!function zc(e,n){if(256==(256&e[J]))throw new B(911,!1);null===e[i]&&(e[i]=[]),e[i].push(n)}(this._lView,n)}markForCheck(){wa(this._cdRefInjectingView||this._lView)}detach(){this._lView[J]&=-129}reattach(){Od(this._lView),this._lView[J]|=128}detectChanges(){this._lView[J]|=1024,jl(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new B(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Ym(this._lView[H],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new B(902,!1);this._appRef=n,Od(this._lView)}}let Mr=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=lk}return e})();const ak=Mr,ck=class extends ak{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,r){const o=function ga(e,n,t,r){const o=C(null);try{const s=n.tView,d=Pl(e,s,t,4096&e[J]?4096:16,null,n,null,null,null,r?.injector??null,r?.dehydratedView??null);d[yi]=e[n.index];const h=e[pn];return null!==h&&(d[pn]=h.createEmbeddedView(s)),yf(s,d,t),d}finally{C(o)}}(this._declarationLView,this._declarationTContainer,n,{injector:t,dehydratedView:r});return new ba(o)}};function lk(){return Bl(Pe(),R())}function Bl(e,n){return 4&e.type?new ck(n,e,vi(e,n)):null}class Uy{}class Nk{}class $y{}class Rk{resolveComponentFactory(n){throw function Fk(e){const n=Error(`No component factory found for ${et(e)}.`);return n.ngComponent=e,n}(n)}}let ql=(()=>{class e{static#e=this.NULL=new Rk}return e})();class qy{}let Fo=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function xk(){const e=R(),t=hn(Pe().index,e);return(we(t)?t:e)[re]}()}return e})(),Ok=(()=>{class e{static#e=this.\u0275prov=ae({token:e,providedIn:"root",factory:()=>null})}return e})();const Sf={},Gy=new Set;function Wy(...e){}class Ge{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new je(!1),this.onMicrotaskEmpty=new je(!1),this.onStable=new je(!1),this.onError=new je(!1),typeof Zone>"u")throw new B(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&t,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function Vk(){const e="function"==typeof Se.requestAnimationFrame;let n=Se[e?"requestAnimationFrame":"setTimeout"],t=Se[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&t){const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r);const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function Hk(e){const n=()=>{!function Bk(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Se,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,kf(e),e.isCheckStableRunning=!0,Mf(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),kf(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,o,s,a,u)=>{if(function Uk(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(u))return t.invokeTask(o,s,a,u);try{return Jy(e),t.invokeTask(o,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&n(),Ky(e)}},onInvoke:(t,r,o,s,a,u,d)=>{try{return Jy(e),t.invoke(o,s,a,u,d)}finally{e.shouldCoalesceRunChangeDetection&&n(),Ky(e)}},onHasTask:(t,r,o,s)=>{t.hasTask(o,s),r===o&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,kf(e),Mf(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,r,o,s)=>(t.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ge.isInAngularZone())throw new B(909,!1)}static assertNotInAngularZone(){if(Ge.isInAngularZone())throw new B(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,o){const s=this._inner,a=s.scheduleEventTask("NgZoneEvent: "+o,n,jk,Wy,Wy);try{return s.runTask(a,t,r)}finally{s.cancelTask(a)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const jk={};function Mf(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function kf(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Jy(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ky(e){e._nesting--,Mf(e)}let Ia=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const t=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const r of t)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=ae({token:e,providedIn:"root",factory:()=>new e})}return e})();function Jl(e,n,t){let r=t?e.styles:null,o=t?e.classes:null,s=0;if(null!==n)for(let a=0;a0&&uy(e,t,s.join(" "))}}(v,Fe,k,r),void 0!==t&&function nT(e,n,t){const r=e.projection=[];for(let o=0;o{class e{static#e=this.__NG_ELEMENT_ID__=oT}return e})();function oT(){return sw(Pe(),R())}const iT=lr,ow=class extends iT{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return vi(this._hostTNode,this._hostLView)}get injector(){return new wt(this._hostTNode,this._hostLView)}get parentInjector(){const n=bl(this._hostTNode,this._hostLView);if(F_(n)){const t=ca(n,this._hostLView),r=aa(n);return new wt(t[H].data[r+8],t)}return new wt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=iw(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-Q}createEmbeddedView(n,t,r){let o,s;"number"==typeof r?o=r:null!=r&&(o=r.index,s=r.injector);const u=n.createEmbeddedViewImpl(t||{},s,null);return this.insertImpl(u,o,zi(this._hostTNode,null)),u}createComponent(n,t,r,o,s){const a=n&&!function ia(e){return"function"==typeof e}(n);let u;if(a)u=t;else{const I=t||{};u=I.index,r=I.injector,o=I.projectableNodes,s=I.environmentInjector||I.ngModuleRef}const d=a?n:new ka(ue(n)),f=r||this.parentInjector;if(!s&&null==d.ngModule){const k=(a?f:this.parentInjector).get(Un,null);k&&(s=k)}ue(d.componentType??{});const v=d.create(f,o,null,s);return this.insertImpl(v.hostView,u,zi(this._hostTNode,null)),v}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,r){const o=n._lView;if(function MI(e){return _e(e[Ze])}(o)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=o[Ze],f=new ow(d,d[gt],d[Ze]);f.detach(f.indexOf(n))}}const s=this._adjustIndex(t),a=this._lContainer;return ma(a,o,s,r),n.attachToViewContainerRef(),Ig(Ff(a),s,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=iw(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=fa(this._lContainer,t);r&&(Wc(Ff(this._lContainer),t),Nl(r[H],r))}detach(n){const t=this._adjustIndex(n,-1),r=fa(this._lContainer,t);return r&&null!=Wc(Ff(this._lContainer),t)?new ba(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function iw(e){return e[8]}function Ff(e){return e[8]||(e[8]=[])}function sw(e,n){let t;const r=n[e.index];return _e(r)?t=r:(t=vy(r,n,null,e),n[e.index]=t,Ll(n,t)),aw(t,n,e,r),new ow(t,e,n)}let aw=function lw(e,n,t,r){if(e[A])return;let o;o=8&t.type?Ve(r):function sT(e,n){const t=e[re],r=t.createComment(""),o=$t(n,e);return No(t,Fl(t,o),r,function mM(e,n){return e.nextSibling(n)}(t,o),!1),r}(n,t),e[A]=o},Rf=()=>!1;class xf{constructor(n){this.queryList=n,this.matches=null}clone(){return new xf(this.queryList)}setDirty(){this.queryList.setDirty()}}class Of{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const r=null!==n.contentQueries?n.contentQueries[0]:t.length,o=[];for(let s=0;sn.trim())}(n):n}}class Pf{constructor(n=[]){this.queries=n}elementStart(n,t){for(let r=0;r0)r.push(a[u/2]);else{const f=s[u+1],h=n[-d];for(let g=Q;g=0;r--){const o=e[r];o.hostVars=n+=o.hostVars,o.hostAttrs=Pr(o.hostAttrs,t=Pr(t,o.hostAttrs))}}(r)}function ST(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const r=n.inputs[t];if(void 0!==r&&(e.inputs[t]=r,e.declaredInputs[t]=n.declaredInputs[t],null!==n.inputTransforms)){const o=Array.isArray(r)?r[0]:r;if(!n.inputTransforms.hasOwnProperty(o))continue;e.inputTransforms??={},e.inputTransforms[o]=n.inputTransforms[o]}}}function Ql(e){return e===_n?{}:e===ye?[]:e}function kT(e,n){const t=e.viewQuery;e.viewQuery=t?(r,o)=>{n(r,o),t(r,o)}:n}function TT(e,n){const t=e.contentQueries;e.contentQueries=t?(r,o,s)=>{n(r,o,s),t(r,o,s)}:n}function AT(e,n){const t=e.hostBindings;e.hostBindings=t?(r,o)=>{n(r,o),t(r,o)}:n}class Oo{}class xw extends Oo{constructor(n){super(),this.componentFactoryResolver=new nw(this),this.instance=null;const t=new Ri([...n.providers,{provide:Oo,useValue:this},{provide:ql,useValue:this.componentFactoryResolver}],n.parent||_l(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}let Po=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ci(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Yl(e){return!!function zf(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function ur(e,n,t){return e[n]=t}function st(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Lo(e,n,t,r){const o=st(e,n,t);return st(e,n+1,r)||o}function he(e,n,t,r,o,s,a,u){const d=R(),f=be(),h=e+p,g=f.firstCreatePass?function qT(e,n,t,r,o,s,a,u,d){const f=n.consts,h=$i(n,e,4,a||null,nr(f,u));ff(n,t,h,nr(f,d)),hl(n,h);const g=h.tView=_f(2,h,r,o,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,f,null);return null!==n.queries&&(n.queries.template(n,h),g.queries=n.queries.embeddedTView(h)),h}(h,f,d,n,t,r,o,s,a):f.data[h];rr(g,!1);const b=Pw(f,d,g,e);Gc()&&Rl(f,d,b,g),Pt(b,d);const v=vy(b,d,b,g);return d[h]=v,Ll(d,v),function cw(e,n,t){return Rf(e,n,t)}(v,g,d),_t(g)&&uf(f,d,g),null!=a&&df(d,g,u),he}let Pw=function Lw(e,n,t,r){return Br(!0),n[re].createComment("")};function an(e,n,t,r){const o=R();return st(o,Hn(),n)&&(be(),ar(ze(),o,e,n,t,r)),an}function es(e,n,t,r){return st(e,Hn(),t)?n+le(t)+r:de}function ts(e,n,t,r,o,s){const u=Lo(e,function vr(){return oe.lFrame.bindingIndex}(),t,o);return Dr(2),u?n+le(t)+r+le(o)+s:de}function iu(e,n){return e<<17|n<<2}function Jr(e){return e>>17&32767}function ep(e){return 2|e}function jo(e){return(131068&e)>>2}function tp(e,n){return-131069&e|n<<2}function np(e){return 1|e}function pb(e,n,t,r){const o=e[t+1],s=null===n;let a=r?Jr(o):jo(o),u=!1;for(;0!==a&&(!1===u||s);){const f=e[a+1];TA(e[a],n)&&(u=!0,e[a+1]=r?np(f):ep(f)),a=r?Jr(f):jo(f)}u&&(e[t+1]=r?ep(o):np(o))}function TA(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Ci(e,n)>=0}const bt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function hb(e){return e.substring(bt.key,bt.keyEnd)}function gb(e,n){const t=bt.textEnd;return t===n?-1:(n=bt.keyEnd=function RA(e,n,t){for(;n32;)n++;return n}(e,bt.key=n,t),cs(e,n,t))}function cs(e,n,t){for(;n=0;t=gb(n,t))gn(e,hb(n),!0)}function Db(e,n){return n>=e.expandoStartIndex}function Cb(e,n,t,r){const o=e.data;if(null===o[t+1]){const s=o[xt()],a=Db(e,t);Mb(s,r)&&null===n&&!a&&(n=!1),n=function LA(e,n,t,r){const o=function Bd(e){const n=oe.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let s=r?n.residualClasses:n.residualStyles;if(null===o)0===(r?n.classBindings:n.styleBindings)&&(t=xa(t=ip(null,e,n,t,r),n.attrs,r),s=null);else{const a=n.directiveStylingLast;if(-1===a||e[a]!==o)if(t=ip(o,e,n,t,r),null===s){let d=function VA(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==jo(r))return e[Jr(r)]}(e,n,r);void 0!==d&&Array.isArray(d)&&(d=ip(null,e,n,d[1],r),d=xa(d,n.attrs,r),function jA(e,n,t,r){e[Jr(t?n.classBindings:n.styleBindings)]=r}(e,n,r,d))}else s=function BA(e,n,t){let r;const o=n.directiveEnd;for(let s=1+n.directiveStylingLast;s0)&&(f=!0)):h=t,o)if(0!==d){const b=Jr(e[u+1]);e[r+1]=iu(b,u),0!==b&&(e[b+1]=tp(e[b+1],r)),e[u+1]=function IA(e,n){return 131071&e|n<<17}(e[u+1],r)}else e[r+1]=iu(u,0),0!==u&&(e[u+1]=tp(e[u+1],r)),u=r;else e[r+1]=iu(d,0),0===u?u=r:e[d+1]=tp(e[d+1],r),d=r;f&&(e[r+1]=ep(e[r+1])),pb(e,h,r,!0),pb(e,h,r,!1),function kA(e,n,t,r,o){const s=o?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof n&&Ci(s,n)>=0&&(t[r+1]=np(t[r+1]))}(n,h,e,r,s),a=iu(u,d),s?n.classBindings=a:n.styleBindings=a}(o,s,n,t,a,r)}}function ip(e,n,t,r,o){let s=null;const a=t.directiveEnd;let u=t.directiveStylingLast;for(-1===u?u=t.directiveStart:u++;u0;){const d=e[o],f=Array.isArray(d),h=f?d[1]:d,g=null===h;let b=t[o+1];b===de&&(b=g?ye:void 0);let v=g?Gd(b,r):h===r?b:void 0;if(f&&!au(v)&&(v=Gd(d,r)),au(v)&&(u=v,a))return u;const I=e[o+1];o=a?Jr(I):jo(I)}if(null!==n){let d=s?n.residualClasses:n.residualStyles;null!=d&&(u=Gd(d,r))}return u}function au(e){return void 0!==e}function Mb(e,n){return 0!=(e.flags&(n?8:16))}function q(e,n,t,r){const o=R(),s=be(),a=p+e,u=o[re],d=s.firstCreatePass?function fN(e,n,t,r,o,s){const a=n.consts,d=$i(n,e,2,r,nr(a,o));return ff(n,t,d,nr(a,s)),null!==d.attrs&&Jl(d,d.attrs,!1),null!==d.mergedAttrs&&Jl(d,d.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,d),d}(a,s,o,n,t,r):s.data[a],f=Nb(s,o,d,u,n,e);o[a]=f;const h=_t(d);return rr(d,!0),dy(u,f,d),32!=(32&d.flags)&&Gc()&&Rl(s,o,f,d),0===function TI(){return oe.lFrame.elementDepthCount}()&&Pt(f,o),function AI(){oe.lFrame.elementDepthCount++}(),h&&(uf(s,o,d),lf(s,d,o)),null!==r&&df(o,d),q}function W(){let e=Pe();Ld()?Vd():(e=e.parent,rr(e,!1));const n=e;(function FI(e){return oe.skipHydrationRootTNode===e})(n)&&function PI(){oe.skipHydrationRootTNode=null}(),function NI(){oe.lFrame.elementDepthCount--}();const t=be();return t.firstCreatePass&&(hl(t,e),mt(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function Y1(e){return 0!=(8&e.flags)}(n)&&rp(t,n,R(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function X1(e){return 0!=(16&e.flags)}(n)&&rp(t,n,R(),n.stylesWithoutHost,!1),W}function At(e,n,t,r){return q(e,n,t,r),W(),At}let Nb=(e,n,t,r,o,s)=>(Br(!0),Al(r,o,function Dg(){return oe.lFrame.currentNamespace}()));function An(e,n,t){const r=R(),o=be(),s=e+p,a=o.firstCreatePass?function gN(e,n,t,r,o){const s=n.consts,a=nr(s,r),u=$i(n,e,8,"ng-container",a);return null!==a&&Jl(u,a,!0),ff(n,t,u,nr(s,o)),null!==n.queries&&n.queries.elementStart(n,u),u}(s,o,r,n,t):o.data[s];rr(a,!0);const u=Fb(o,r,a,e);return r[s]=u,Gc()&&Rl(o,r,u,a),Pt(u,r),_t(a)&&(uf(o,r,a),lf(o,a,r)),null!=t&&df(r,a),An}function Nn(){let e=Pe();const n=be();return Ld()?Vd():(e=e.parent,rr(e,!1)),n.firstCreatePass&&(hl(n,e),mt(e)&&n.queries.elementEnd(e)),Nn}function Bo(e,n,t){return An(e,n,t),Nn(),Bo}let Fb=(e,n,t,r)=>(Br(!0),ef(n[re],""));function qt(){return R()}const us="en-US";let Lb=us;function ve(e,n,t,r){const o=R(),s=be(),a=Pe();return function _p(e,n,t,r,o,s,a){const u=_t(r),f=e.firstCreatePass&&Ey(e),h=n[Me],g=Cy(n);let b=!0;if(3&r.type||a){const k=$t(r,n),T=a?a(k):k,V=g.length,x=a?ee=>a(Ve(ee[r.index])):r.index;let U=null;if(!a&&u&&(U=function hF(e,n,t,r){const o=e.cleanup;if(null!=o)for(let s=0;sd?u[d]:null}"string"==typeof a&&(s+=2)}return null}(e,n,o,r.index)),null!==U)(U.__ngLastListenerFn__||U).__ngNextListenerFn__=s,U.__ngLastListenerFn__=s,b=!1;else{s=uv(r,n,h,s,!1);const ee=t.listen(T,o,s);g.push(s,ee),f&&f.push(o,x,V,V+1)}}else s=uv(r,n,h,s,!1);const v=r.outputs;let I;if(b&&null!==v&&(I=v[o])){const k=I.length;if(k)for(let T=0;T-1?hn(e.index,n):n);let d=lv(n,t,r,a),f=s.__ngNextListenerFn__;for(;f;)d=lv(n,t,f,a)&&d,f=f.__ngNextListenerFn__;return o&&!1===d&&a.preventDefault(),d}}function Y(e=1){return function UI(e){return(oe.lFrame.contextLView=function ug(e,n){for(;e>0;)n=n[vo],e--;return n}(e,oe.lFrame.contextLView))[Me]}(e)}function gF(e,n){let t=null;const r=function Nc(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(!(1&t))return n[t+1]}return null}(e);for(let o=0;o(Br(!0),function Tl(e,n){return e.createText(n)}(n[re],r));function ds(e){return Lt("",e,""),ds}function Lt(e,n,t){const r=R(),o=es(r,e,n,t);return o!==de&&Sr(r,xt(),o),Lt}function Ba(e,n,t,r,o){const s=R(),a=ts(s,e,n,t,r,o);return a!==de&&Sr(s,xt(),a),Ba}function hp(e,n,t,r,o){if(e=ne(e),Array.isArray(e))for(let s=0;s>20;if(To(e)||!e.multi){const v=new sa(f,o,O),I=mp(d,n,o?h:h+b,g);-1===I?(O_(wl(u,a),s,d),gp(s,e,n.length),n.push(d),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),t.push(v),a.push(v)):(t[I]=v,a[I]=v)}else{const v=mp(d,n,h+b,g),I=mp(d,n,h,h+b),T=I>=0&&t[I];if(o&&!T||!o&&!(v>=0&&t[v])){O_(wl(u,a),s,d);const V=function LF(e,n,t,r,o){const s=new sa(e,t,O);return s.multi=[],s.index=n,s.componentProviders=0,Bv(s,o,r&&!t),s}(o?PF:OF,t.length,o,r,f);!o&&T&&(t[I].providerFactory=V),gp(s,e,n.length,0),n.push(d),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),t.push(V),a.push(V)}else gp(s,e,v>-1?v:I,Bv(t[o?I:v],f,!o&&r));!o&&r&&T&&t[I].componentProviders++}}}function gp(e,n,t,r){const o=To(n),s=function S1(e){return!!e.useClass}(n);if(o||s){const d=(s?ne(n.useClass):n).prototype.ngOnDestroy;if(d){const f=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){const h=f.indexOf(t);-1===h?f.push(t,[r,d]):f[h+1].push(r,d)}else f.push(t,d)}}}function Bv(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function mp(e,n,t,r){for(let o=t;o{t.providersResolver=(r,o)=>function xF(e,n,t){const r=be();if(r.firstCreatePass){const o=rt(e);hp(t,r.data,r.blueprint,o,!0),hp(n,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,n)}}let VF=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=v_(0,t.type),o=r.length>0?function Ow(e,n,t=null){return new xw({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,o)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=ae({token:e,providedIn:"environment",factory:()=>new e(X(Un))})}return e})();function Vt(e){(function cr(e){Gy.has(e)||(Gy.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))})("NgStandalone"),e.getStandaloneInjector=n=>n.get(VF).getOrCreateStandaloneInjector(e)}function bp(e,n,t){const r=zt()+e,o=R();return o[r]===de?ur(o,r,t?n.call(t):n()):function Aa(e,n){return e[n]}(o,r)}function _s(e,n,t,r){return function Qv(e,n,t,r,o,s){const a=n+t;return st(e,a,o)?ur(e,a+1,s?r.call(s,o):r(o)):Ha(e,a+1)}(R(),zt(),e,n,t,r)}function fs(e,n,t,r,o){return function Zv(e,n,t,r,o,s,a){const u=n+t;return Lo(e,u,o,s)?ur(e,u+2,a?r.call(a,o,s):r(o,s)):Ha(e,u+2)}(R(),zt(),e,n,t,r,o)}function Kv(e,n,t,r,o,s){return function Yv(e,n,t,r,o,s,a,u){const d=n+t;return function Xl(e,n,t,r,o){const s=Lo(e,n,t,r);return st(e,n+2,o)||s}(e,d,o,s,a)?ur(e,d+3,u?r.call(u,o,s,a):r(o,s,a)):Ha(e,d+3)}(R(),zt(),e,n,t,r,o,s)}function Ha(e,n){const t=e[n];return t===de?void 0:t}function $o(e,n){return Bl(e,n)}const bD=new G("");function mu(e){return!!e&&"function"==typeof e.then}function vD(e){return!!e&&"function"==typeof e.subscribe}const DD=new G("");let yu=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=se(DD,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const o of this.appInits){const s=o();if(mu(s))t.push(s);else if(vD(s)){const a=new Promise((u,d)=>{s.subscribe({complete:u,error:d})});t.push(a)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(o=>{this.reject(o)}),0===t.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const CD=new G("");let zo=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=se(vm),this.afterRenderEffectManager=se(Ia),this.componentTypes=[],this.components=[],this.isStable=se(Po).hasPendingTasks.pipe(er(t=>!t)),this._injector=se(Un)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const o=t instanceof $y;if(!this._injector.get(yu).done)throw!o&&function tr(e){const n=ue(e)||ot(e)||tt(e);return null!==n&&n.standalone}(t),new B(405,!1);let a;a=o?t:this._injector.get(ql).resolveComponentFactory(t),this.componentTypes.push(a.componentType);const u=function tx(e){return e.isBoundToModule}(a)?void 0:this._injector.get(Oo),f=a.create(mn.NULL,[],r||a.selector,u),h=f.location.nativeElement,g=f.injector.get(bD,null);return g?.registerApplication(h),f.onDestroy(()=>{this.detachView(f.hostView),wu(this.components,f),g?.unregisterApplication(h)}),this._loadComponent(f),f}tick(){if(this._runningTick)throw new B(101,!1);const t=C(null);try{this._runningTick=!0,this.detectChangesInAttachedViews()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,C(t)}}detectChangesInAttachedViews(){let t=0;const r=this.afterRenderEffectManager;for(;;){if(100===t)throw new B(103,!1);const o=0===t;for(let{_lView:s,notifyErrorHandler:a}of this._views)!o&&!Tp(s)||this.detectChangesInView(s,a,o);if(t++,r.executeInternalCallbacks(),!this._views.some(({_lView:s})=>Tp(s))&&(r.execute(),!this._views.some(({_lView:s})=>Tp(s))))break}}detectChangesInView(t,r,o){let s;o?(s=0,t[J]|=1024):s=64&t[J]?0:1,jl(t,r,s)}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;wu(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(CD,[]);[...this._bootstrapListeners,...r].forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>wu(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new B(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function wu(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function Tp(e){return xd(e)}let sx=(()=>{class e{constructor(){this.zone=se(Ge),this.applicationRef=se(zo)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function kD(e){return[{provide:Ge,useFactory:e},{provide:Fi,multi:!0,useFactory:()=>{const n=se(sx,{optional:!0});return()=>n.initialize()}},{provide:Fi,multi:!0,useFactory:()=>{const n=se(lx);return()=>{n.initialize()}}},{provide:vm,useFactory:ax}]}function ax(){const e=se(Ge),n=se(Er);return t=>e.runOutsideAngular(()=>n.handleError(t))}function cx(e){return ll([[],kD(()=>new Ge(function TD(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}(e)))])}let lx=(()=>{class e{constructor(){this.subscription=new Qe,this.initialized=!1,this.zone=se(Ge),this.pendingTasks=se(Po)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ge.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ge.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const kr=new G("",{providedIn:"root",factory:()=>se(kr,ge.Optional|ge.SkipSelf)||function ux(){return typeof $localize<"u"&&$localize.locale||us}()}),Ap=new G("");let Kr=null;let bn=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=gx}return e})();function gx(e){return function mx(e,n,t){if(nt(e)&&!t){const r=hn(e.index,n);return new ba(r,r)}return 47&e.type?new ba(n[$e],n):null}(Pe(),R(),16==(16&e))}class VD{constructor(){}supports(n){return Yl(n)}create(n){return new Dx(n)}}const vx=(e,n)=>n;class Dx{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||vx}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,o=0,s=null;for(;t||r;){const a=!r||t&&t.currentIndex{a=this._trackByFn(o,u),null!==t&&Object.is(t.trackById,a)?(r&&(t=this._verifyReinsertion(t,u,a,o)),Object.is(t.item,u)||this._addIdentityChange(t,u)):(t=this._mismatch(t,u,a,o),r=!0),t=t._next,o++}),this.length=o;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,r,o){let s;return null===n?s=this._itTail:(s=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,s,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,s,o)):n=this._addAfter(new Cx(t,r),s,o),n}_verifyReinsertion(n,t,r,o){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?n=this._reinsertAfter(s,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,s=n._nextRemoved;return null===o?this._removalsHead=s:o._nextRemoved=s,null===s?this._removalsTail=o:s._prevRemoved=o,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const o=null===t?this._itHead:t._next;return n._next=o,n._prev=t,null===o?this._itTail=n:o._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new jD),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new jD),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Cx{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ex{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class jD{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new Ex,this.map.set(t,r)),r.add(n)}get(n,t){const o=this.map.get(n);return o?o.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function BD(e,n,t){const r=e.previousIndex;if(null===r)return r;let o=0;return t&&r{class e{static#e=this.\u0275prov=ae({token:e,providedIn:"root",factory:UD});constructor(t){this.factories=t}static create(t,r){if(null!=r){const o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||UD()),deps:[[e,new w_,new y_]]}}find(t){const r=this.factories.find(o=>o.supports(t));if(null!=r)return r;throw new B(901,!1)}}return e})();function zx(e){try{const{rootComponent:n,appProviders:t,platformProviders:r}=e,o=function hx(e=[]){if(Kr)return Kr;const n=function FD(e=[],n){return mn.create({name:n,providers:[{provide:E_,useValue:"platform"},{provide:Ap,useValue:new Set([()=>Kr=null])},...e]})}(e);return Kr=n,function ED(){!function Xh(e){hd=e}(()=>{throw new B(600,!1)})}(),function RD(e){e.get(Fg,null)?.forEach(t=>t())}(n),n}(r),s=[cx(),...t||[]],u=new xw({providers:s,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,d=u.get(Ge);return d.run(()=>{u.resolveInjectorInitializers();const f=u.get(Er,null);let h;d.runOutsideAngular(()=>{h=d.onError.subscribe({next:v=>{f.handleError(v)}})});const g=()=>u.destroy(),b=o.get(Ap);return b.add(g),u.onDestroy(()=>{h.unsubscribe(),b.delete(g)}),function ID(e,n,t){try{const r=t();return mu(r)?r.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(f,d,()=>{const v=u.get(yu);return v.runInitializers(),v.donePromise.then(()=>{!function Vb(e){"string"==typeof e&&(Lb=e.toLowerCase().replace(/_/g,"-"))}(u.get(kr,us)||us);const k=u.get(zo);return void 0!==n&&k.bootstrap(n),k})})})}catch(n){return Promise.reject(n)}}function Bp(e){return e[e.length-1]}function Qr(e){return this instanceof Qr?(this.v=e,this):new Qr(e)}function h0(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function zp(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=e[s]&&function(a){return new Promise(function(u,d){!function o(s,a,u,d){Promise.resolve(d).then(function(f){s({value:f,done:u})},a)}(u,d,(a=e[s](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const g0=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function m0(e){return Xe(e?.then)}function y0(e){return Xe(e[Or])}function w0(e){return Symbol.asyncIterator&&Xe(e?.[Symbol.asyncIterator])}function b0(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const v0=function RO(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function D0(e){return Xe(e?.[v0])}function C0(e){return function p0(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=t.apply(e,n||[]),s=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(b){r[b]&&(o[b]=function(v){return new Promise(function(I,k){s.push([b,v,I,k])>1||u(b,v)})})}function u(b,v){try{!function d(b){b.value instanceof Qr?Promise.resolve(b.value.v).then(f,h):g(s[0][2],b)}(r[b](v))}catch(I){g(s[0][3],I)}}function f(b){u("next",b)}function h(b){u("throw",b)}function g(b,v){b(v),s.shift(),s.length&&u(s[0][0],s[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:o}=yield Qr(t.read());if(o)return yield Qr(void 0);yield yield Qr(r)}}finally{t.releaseLock()}})}function E0(e){return Xe(e?.getReader)}function Go(e){if(e instanceof Et)return e;if(null!=e){if(y0(e))return function xO(e){return new Et(n=>{const t=e[Or]();if(Xe(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(g0(e))return function OO(e){return new Et(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Pn)})}(e);if(w0(e))return I0(e);if(D0(e))return function LO(e){return new Et(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(E0(e))return function VO(e){return I0(C0(e))}(e)}throw b0(e)}function I0(e){return new Et(n=>{(function jO(e,n){var t,r,o,s;return function _0(e,n,t,r){return new(t||(t=Promise))(function(s,a){function u(h){try{f(r.next(h))}catch(g){a(g)}}function d(h){try{f(r.throw(h))}catch(g){a(g)}}function f(h){h.done?s(h.value):function o(s){return s instanceof t?s:new t(function(a){a(s)})}(h.value).then(u,d)}f((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=h0(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(a){o={error:a}}finally{try{r&&!r.done&&(s=t.return)&&(yield s.call(t))}finally{if(o)throw o.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function Zr(e,n,t,r=0,o=!1){const s=n.schedule(function(){t(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(s),!o)return s}function S0(e,n=0){return Xn((t,r)=>{t.subscribe(Ie(r,o=>Zr(r,e,()=>r.next(o),n),()=>Zr(r,e,()=>r.complete(),n),o=>Zr(r,e,()=>r.error(o),n)))})}function M0(e,n=0){return Xn((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function k0(e,n){if(!e)throw new Error("Iterable cannot be null");return new Et(t=>{Zr(t,n,()=>{const r=e[Symbol.asyncIterator]();Zr(t,n,()=>{r.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function qp(e,n){return n?function qO(e,n){if(null!=e){if(y0(e))return function BO(e,n){return Go(e).pipe(M0(n),S0(n))}(e,n);if(g0(e))return function UO(e,n){return new Et(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(m0(e))return function HO(e,n){return Go(e).pipe(M0(n),S0(n))}(e,n);if(w0(e))return k0(e,n);if(D0(e))return function $O(e,n){return new Et(t=>{let r;return Zr(t,n,()=>{r=e[v0](),Zr(t,n,()=>{let o,s;try{({value:o,done:s}=r.next())}catch(a){return void t.error(a)}s?t.complete():t.next(o)},0,!0)}),()=>Xe(r?.return)&&r.return()})}(e,n);if(E0(e))return function zO(e,n){return k0(C0(e),n)}(e,n)}throw b0(e)}(e,n):Go(e)}function T0(...e){return qp(e,function dO(e){return function lO(e){return e&&Xe(e.schedule)}(Bp(e))?e.pop():void 0}(e))}function Gp(e,n,t=1/0){return Xe(n)?Gp((r,o)=>er((s,a)=>n(r,s,o,a))(Go(e(r,o))),t):("number"==typeof n&&(t=n),Xn((r,o)=>function GO(e,n,t,r,o,s,a,u){const d=[];let f=0,h=0,g=!1;const b=()=>{g&&!d.length&&!f&&n.complete()},v=k=>f{s&&n.next(k),f++;let T=!1;Go(t(k,h++)).subscribe(Ie(n,V=>{o?.(V),s?v(V):n.next(V)},()=>{T=!0},void 0,()=>{if(T)try{for(f--;d.length&&fI(V)):I(V)}b()}catch(V){n.error(V)}}))};return e.subscribe(Ie(n,v,()=>{g=!0,b()})),()=>{u?.()}}(r,o,e,t)))}function A0(e){return Xn((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}let N0=null;function Wa(){return N0}class ZO{}const Tr=new G("");function B0(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[o,s]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(o.trim()===n)return decodeURIComponent(s)}return null}const nh=/\s+/,H0=[];let Wo=(()=>{class e{constructor(t,r){this._ngEl=t,this._renderer=r,this.initialClasses=H0,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(nh):H0}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(nh):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){const o=this.stateMap.get(t);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],o=t[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(nh).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static#e=this.\u0275fac=function(r){return new(r||e)(O(kn),O(Fo))};static#t=this.\u0275dir=te({type:e,selectors:[["","ngClass",""]],inputs:{klass:[xe.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return e})();class VP{constructor(n,t,r,o){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ka=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,o){this._viewContainer=t,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((o,s,a)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new VP(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)r.remove(null===s?void 0:s);else if(null!==s){const u=r.get(s);r.move(u,a),$0(u,o)}});for(let o=0,s=r.length;o{$0(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(t,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(O(lr),O(Mr),O(Pp))};static#t=this.\u0275dir=te({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return e})();function $0(e,n){e.context.$implicit=n.item}let Gn=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new jP,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){z0("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){z0("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(O(lr),O(Mr))};static#t=this.\u0275dir=te({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class jP{constructor(){this.$implicit=null,this.ngIf=null}}function z0(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${et(n)}'.`)}let G0=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,o)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,r,o),get:(t,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static#e=this.\u0275fac=function(r){return new(r||e)(O(lr))};static#t=this.\u0275dir=te({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Cr]})}return e})(),pt=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ut({type:e});static#n=this.\u0275inj=or({})}return e})();function K0(e){return"server"===e}class Q0{}class Uu{}class $u{}class xn{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const o=t.slice(0,r),s=o.toLowerCase(),a=t.slice(r+1).trim();this.maybeSetNormalizedName(o,s),this.headers.has(s)?this.headers.get(s).push(a):this.headers.set(s,[a])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof xn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new xn;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof xn?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const o=("a"===n.op?this.headers.get(t):void 0)||[];o.push(...r),this.headers.set(t,o);break;case"d":const s=n.value;if(s){let a=this.headers.get(t);if(!a)return;a=a.filter(u=>-1===s.indexOf(u)),0===a.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,a)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(n,t){const r=(Array.isArray(t)?t:[t]).map(s=>s.toString()),o=n.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class z2{encodeKey(n){return iC(n)}encodeValue(n){return iC(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const G2=/%(\d[a-f0-9])/gi,W2={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function iC(e){return encodeURIComponent(e).replace(G2,(n,t)=>W2[t]??n)}function zu(e){return`${e}`}class Yr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new z2,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function q2(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const s=o.indexOf("="),[a,u]=-1==s?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,s)),n.decodeValue(o.slice(s+1))],d=t.get(a)||[];d.push(u),t.set(a,d)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],o=Array.isArray(r)?r.map(zu):[zu(r)];this.map.set(t,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const o=n[r];Array.isArray(o)?o.forEach(s=>{t.push({param:r,value:s,op:"a"})}):t.push({param:r,value:o,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new Yr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(zu(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const o=r.indexOf(zu(n.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class J2{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function sC(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function aC(e){return typeof Blob<"u"&&e instanceof Blob}function cC(e){return typeof FormData<"u"&&e instanceof FormData}class Ya{constructor(n,t,r,o){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function K2(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,s=o):s=r,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new xn,this.context??=new J2,this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=t;else{const u=t.indexOf("?");this.urlWithParams=t+(-1===u?"?":ug.set(b,n.setHeaders[b]),d)),n.setParams&&(f=Object.keys(n.setParams).reduce((g,b)=>g.set(b,n.setParams[b]),f)),new Ya(t,r,s,{params:f,headers:d,context:h,reportProgress:u,responseType:o,withCredentials:a})}}var Xr=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Xr||{});class ch{constructor(n,t=Xa.Ok,r="OK"){this.headers=n.headers||new xn,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class qu extends ch{constructor(n={}){super(n),this.type=Xr.ResponseHeader}clone(n={}){return new qu({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Jo extends ch{constructor(n={}){super(n),this.type=Xr.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Jo({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class ys extends ch{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var Xa=function(e){return e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e}(Xa||{});function lh(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}let Z2=(()=>{class e{constructor(t){this.handler=t}request(t,r,o={}){let s;if(t instanceof Ya)s=t;else{let d,f;d=o.headers instanceof xn?o.headers:new xn(o.headers),o.params&&(f=o.params instanceof Yr?o.params:new Yr({fromObject:o.params})),s=new Ya(t,r,void 0!==o.body?o.body:null,{headers:d,context:o.context,params:f,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const a=T0(s).pipe(function WO(e,n){return Xe(n)?Gp(e,n,1):Gp(e,1)}(d=>this.handler.handle(d)));if(t instanceof Ya||"events"===o.observe)return a;const u=a.pipe(function JO(e,n){return Xn((t,r)=>{let o=0;t.subscribe(Ie(r,s=>e.call(n,s,o++)&&r.next(s)))})}(d=>d instanceof Jo));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(er(d=>{if(null!==d.body&&!(d.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return d.body}));case"blob":return u.pipe(er(d=>{if(null!==d.body&&!(d.body instanceof Blob))throw new Error("Response is not a Blob.");return d.body}));case"text":return u.pipe(er(d=>{if(null!==d.body&&"string"!=typeof d.body)throw new Error("Response is not a string.");return d.body}));default:return u.pipe(er(d=>d.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Yr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,o={}){return this.request("PATCH",t,lh(o,r))}post(t,r,o={}){return this.request("POST",t,lh(o,r))}put(t,r,o={}){return this.request("PUT",t,lh(o,r))}static#e=this.\u0275fac=function(r){return new(r||e)(X(Uu))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})();function uC(e,n){return n(e)}function nL(e,n){return(t,r)=>n.intercept(t,{handle:o=>e(o,r)})}const oL=new G(""),ec=new G(""),dC=new G(""),_C=new G("");function iL(){let e=null;return(n,t)=>{null===e&&(e=(se(oL,{optional:!0})??[]).reduceRight(nL,uC));const r=se(Po),o=r.add();return e(n,t).pipe(A0(()=>r.remove(o)))}}let fC=(()=>{class e extends Uu{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=se(Po);const o=se(_C,{optional:!0});this.backend=o??t}handle(t){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(ec),...this.injector.get(dC,[])]));this.chain=o.reduceRight((s,a)=>function rL(e,n,t){return(r,o)=>function R1(e,n){e instanceof Ri&&e.assertNotDestroyed();const r=Ur(e),o=rn(void 0);try{return n()}finally{Ur(r),rn(o)}}(t,()=>n(r,s=>e(s,o)))}(s,a,this.injector),uC)}const r=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(A0(()=>this.pendingTasks.remove(r)))}static#e=this.\u0275fac=function(r){return new(r||e)(X($u),X(Un))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})();const uL=/^\)\]\}',?\n/;let hC=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new B(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?qp(r.\u0275loadImpl()):T0(null)).pipe(function KO(e,n){return Xn((t,r)=>{let o=null,s=0,a=!1;const u=()=>a&&!o&&r.complete();t.subscribe(Ie(r,d=>{o?.unsubscribe();let f=0;const h=s++;Go(e(d,h)).subscribe(o=Ie(r,g=>r.next(n?n(d,g,h,f++):g),()=>{o=null,u()}))},()=>{a=!0,u()}))})}(()=>new Et(s=>{const a=r.build();if(a.open(t.method,t.urlWithParams),t.withCredentials&&(a.withCredentials=!0),t.headers.forEach((k,T)=>a.setRequestHeader(k,T.join(","))),t.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const k=t.detectContentTypeHeader();null!==k&&a.setRequestHeader("Content-Type",k)}if(t.responseType){const k=t.responseType.toLowerCase();a.responseType="json"!==k?k:"text"}const u=t.serializeBody();let d=null;const f=()=>{if(null!==d)return d;const k=a.statusText||"OK",T=new xn(a.getAllResponseHeaders()),V=function dL(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(a)||t.url;return d=new qu({headers:T,status:a.status,statusText:k,url:V}),d},h=()=>{let{headers:k,status:T,statusText:V,url:x}=f(),U=null;T!==Xa.NoContent&&(U=typeof a.response>"u"?a.responseText:a.response),0===T&&(T=U?Xa.Ok:0);let ee=T>=200&&T<300;if("json"===t.responseType&&"string"==typeof U){const fe=U;U=U.replace(uL,"");try{U=""!==U?JSON.parse(U):null}catch(Fe){U=fe,ee&&(ee=!1,U={error:Fe,text:U})}}ee?(s.next(new Jo({body:U,headers:k,status:T,statusText:V,url:x||void 0})),s.complete()):s.error(new ys({error:U,headers:k,status:T,statusText:V,url:x||void 0}))},g=k=>{const{url:T}=f(),V=new ys({error:k,status:a.status||0,statusText:a.statusText||"Unknown Error",url:T||void 0});s.error(V)};let b=!1;const v=k=>{b||(s.next(f()),b=!0);let T={type:Xr.DownloadProgress,loaded:k.loaded};k.lengthComputable&&(T.total=k.total),"text"===t.responseType&&a.responseText&&(T.partialText=a.responseText),s.next(T)},I=k=>{let T={type:Xr.UploadProgress,loaded:k.loaded};k.lengthComputable&&(T.total=k.total),s.next(T)};return a.addEventListener("load",h),a.addEventListener("error",g),a.addEventListener("timeout",g),a.addEventListener("abort",g),t.reportProgress&&(a.addEventListener("progress",v),null!==u&&a.upload&&a.upload.addEventListener("progress",I)),a.send(u),s.next({type:Xr.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",h),a.removeEventListener("timeout",g),t.reportProgress&&(a.removeEventListener("progress",v),null!==u&&a.upload&&a.upload.removeEventListener("progress",I)),a.readyState!==a.DONE&&a.abort()}})))}static#e=this.\u0275fac=function(r){return new(r||e)(X(Q0))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})();const _h=new G(""),gC=new G("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),mC=new G("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class yC{}let pL=(()=>{class e{constructor(t,r,o){this.doc=t,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=B0(t,this.cookieName),this.lastCookieString=t),this.lastToken}static#e=this.\u0275fac=function(r){return new(r||e)(X(Tr),X(Mo),X(gC))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})();function hL(e,n){const t=e.url.toLowerCase();if(!se(_h)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=se(yC).getToken(),o=se(mC);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),n(e)}var eo=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(eo||{});function gL(...e){const n=[Z2,hC,fC,{provide:Uu,useExisting:fC},{provide:$u,useExisting:hC},{provide:ec,useValue:hL,multi:!0},{provide:_h,useValue:!0},{provide:yC,useClass:pL}];for(const t of e)n.push(...t.\u0275providers);return ll(n)}const wC=new G("");function mL(){return function Ko(e,n){return{\u0275kind:e,\u0275providers:n}}(eo.LegacyInterceptors,[{provide:wC,useFactory:iL},{provide:ec,useExisting:wC,multi:!0}])}let yL=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ut({type:e});static#n=this.\u0275inj=or({providers:[gL(mL())]})}return e})();class EL extends ZO{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class fh extends EL{static makeCurrent(){!function QO(e){N0??=e}(new fh)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function IL(){return tc=tc||document.querySelector("base"),tc?tc.getAttribute("href"):null}();return null==t?null:function SL(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){tc=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return B0(document.cookie,n)}}let tc=null,kL=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})();const ph=new G("");let SC=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,o){return this._findPluginFor(r).addEventListener(t,r,o)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(s=>s.supports(t)),!r)throw new B(5101,!1);return this._eventNameToPlugin.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(X(ph),X(Ge))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})();class MC{constructor(n){this._doc=n}}const hh="ng-app-id";let kC=(()=>{class e{constructor(t,r,o,s={}){this.doc=t,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=K0(s),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(o=>o.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${hh}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(t,r){const o=this.styleRef;if(o.has(t)){const s=o.get(t);return s.usage+=r,s.usage}return o.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===t)return o.delete(r),s.removeAttribute(hh),s;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(hh,this.appId),t.appendChild(a),a}}addStyleToHost(t,r){const o=this.getStyleElement(t,r),s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(X(Tr),X(Qd),X(Rg,8),X(Mo))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})();const gh={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},mh=/%COMP%/g,FL=new G("",{providedIn:"root",factory:()=>!0});function AC(e,n){return n.map(t=>t.replace(mh,e))}let NC=(()=>{class e{constructor(t,r,o,s,a,u,d,f=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=d,this.nonce=f,this.rendererByCompId=new Map,this.platformIsServer=K0(u),this.defaultRenderer=new yh(t,a,d,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===In.ShadowDom&&(r={...r,encapsulation:In.Emulated});const o=this.getOrCreateRenderer(t,r);return o instanceof RC?o.applyToHost(t):o instanceof wh&&o.applyStyles(),o}getOrCreateRenderer(t,r){const o=this.rendererByCompId;let s=o.get(r.id);if(!s){const a=this.doc,u=this.ngZone,d=this.eventManager,f=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,g=this.platformIsServer;switch(r.encapsulation){case In.Emulated:s=new RC(d,f,r,this.appId,h,a,u,g);break;case In.ShadowDom:return new PL(d,f,t,r,a,u,this.nonce,g);default:s=new wh(d,f,r,h,a,u,g)}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(X(SC),X(kC),X(Qd),X(FL),X(Tr),X(Mo),X(Ge),X(Rg))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})();class yh{constructor(n,t,r,o){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(gh[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(FC(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(FC(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new B(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,o){if(o){t=o+":"+t;const s=gh[o];s?n.setAttributeNS(s,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const o=gh[r];o?n.removeAttributeNS(o,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,o){o&(qr.DashCase|qr.Important)?n.style.setProperty(t,r,o&qr.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&qr.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){null!=n&&(n[t]=r)}setValue(n,t){n.nodeValue=t}listen(n,t,r){if("string"==typeof n&&!(n=Wa().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function FC(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class PL extends yh{constructor(n,t,r,o,s,a,u,d){super(n,s,a,d),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const f=AC(o.id,o.styles);for(const h of f){const g=document.createElement("style");u&&g.setAttribute("nonce",u),g.textContent=h,this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class wh extends yh{constructor(n,t,r,o,s,a,u,d){super(n,s,a,u),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=o,this.styles=d?AC(d,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class RC extends wh{constructor(n,t,r,o,s,a,u,d){const f=o+"-"+r.id;super(n,t,r,s,a,u,d,f),this.contentAttr=function RL(e){return"_ngcontent-%COMP%".replace(mh,e)}(f),this.hostAttr=function xL(e){return"_nghost-%COMP%".replace(mh,e)}(f)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}const xC=["alt","control","meta","shift"],VL={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},jL={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};function OC(e){return{appProviders:[...WL,...e?.providers??[]],platformProviders:qL}}const qL=[{provide:Mo,useValue:"browser"},{provide:Fg,useValue:function UL(){fh.makeCurrent()},multi:!0},{provide:Tr,useFactory:function zL(){return function KI(e){Jd=e}(document),document},deps:[]}],WL=[{provide:E_,useValue:"root"},{provide:Er,useFactory:function $L(){return new Er},deps:[]},{provide:ph,useClass:(()=>{class e extends MC{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,o){return t.addEventListener(r,o,!1),()=>this.removeEventListener(t,r,o)}removeEventListener(t,r,o){return t.removeEventListener(r,o)}static#e=this.\u0275fac=function(r){return new(r||e)(X(Tr))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})(),multi:!0,deps:[Tr,Ge,Mo]},{provide:ph,useClass:(()=>{class e extends MC{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,o){const s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wa().onAndCancel(t,s.domEventName,a))}static parseEventName(t){const r=t.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const s=e._normalizeKey(r.pop());let a="",u=r.indexOf("code");if(u>-1&&(r.splice(u,1),a="code."),xC.forEach(f=>{const h=r.indexOf(f);h>-1&&(r.splice(h,1),a+=f+".")}),a+=s,0!=r.length||0===s.length)return null;const d={};return d.domEventName=o,d.fullKey=a,d}static matchEventFullKeyCode(t,r){let o=VL[t.key]||t.key,s="";return r.indexOf("code.")>-1&&(o=t.code,s="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),xC.forEach(a=>{a!==o&&(0,jL[a])(t)&&(s+=a+".")}),s+=o,s===r)}static eventCallback(t,r,o){return s=>{e.matchEventFullKeyCode(s,t)&&o.runGuarded(()=>r(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(r){return new(r||e)(X(Tr))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac})}return e})(),multi:!0,deps:[Tr]},NC,kC,SC,{provide:qy,useExisting:NC},{provide:Q0,useClass:kL,deps:[]},[]];var me=Dt(8596);const rc=new G("SDK"),jC=new G("wasm_asset_path"),BC=new G("node_address"),HC=new G("verbosity"),XL=function YL(e,n){const t={value:void 0};return[{provide:DD,useFactory:(r,o,s)=>(0,j.c)(function*(){return t.value=yield n({wasm_asset_path:r,node_address:o,verbosity:s})}),multi:!0,deps:[jC,BC,HC]},{provide:e,useFactory:()=>{if(!se(yu).done)throw new Error(`Cannot inject ${e} until bootstrap is complete.`);return t.value}}]}(rc,function(){var e=(0,j.c)(function*(n){return(yield(0,me.cp)(n.wasm_asset_path))&&new me.EB(n.node_address,n.verbosity)});return function(t){return e.apply(this,arguments)}}());let eV=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ut({type:e});static#n=this.\u0275inj=or({providers:XL,imports:[pt]})}return e})();const Fr=new G("EnvironmentConfig"),bh=new G("EnvironmentConfig"),UC=["deploy","transfer","put_deploy","speculative_deploy","speculative_transfer","speculative_exec","sign_deploy","call_entrypoint","install"],tV=["make_deploy","make_transfer",...UC],vh={wasm_asset_path:"assets/casper_rust_wasm_sdk_bg.wasm",default_action:"get_node_status",verbosity:me.qY.High,minimum_transfer:"2500000000",TTL:"30m",gas_fee_transfer:"100000000",action_needs_private_key:UC,action_needs_public_key:tV,networks:{localhost:{node_address:"http://localhost:11101",chain_name:"casper-net-1"},integration:{node_address:"https://rpc.integration.casperlabs.io",chain_name:"integration-test"},testnet:{node_address:"https://rpc.testnet.casperlabs.io",chain_name:"casper-test"},mainnet:{node_address:"https://rpc.mainnet.casperlabs.io",chain_name:"casper"},ip:{node_address:"http://3.136.227.9:7777",chain_name:"integration-test"}},default_port:"7777",default_protocol:"http://"},Dh={production:!0,node_address:"https://rpc.integration.casperlabs.io",chain_name:"integration-test"},{isArray:nV}=Array,{getPrototypeOf:rV,prototype:oV,keys:iV}=Object;const{isArray:cV}=Array;function dV(e,n){return e.reduce((t,r,o)=>(t[r]=n[o],t),{})}function _V(...e){const n=function uO(e){return Xe(Bp(e))?e.pop():void 0}(e),{args:t,keys:r}=function sV(e){if(1===e.length){const n=e[0];if(nV(n))return{args:n,keys:null};if(function aV(e){return e&&"object"==typeof e&&rV(e)===oV}(n)){const t=iV(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}(e),o=new Et(s=>{const{length:a}=t;if(!a)return void s.complete();const u=new Array(a);let d=a,f=a;for(let h=0;h{g||(g=!0,f--),u[h]=b},()=>d--,void 0,()=>{(!d||!g)&&(f||s.next(r?dV(r,u):u),s.complete())}))}});return n?o.pipe(function uV(e){return er(n=>function lV(e,n){return cV(n)?e(...n):e(n)}(e,n))}(n)):o}let $C=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#e=this.\u0275fac=function(r){return new(r||e)(O(Fo),O(kn))};static#t=this.\u0275dir=te({type:e})}return e})(),Qo=(()=>{class e extends $C{static#e=this.\u0275fac=(()=>{let t;return function(o){return(t||(t=Ot(e)))(o||e)}})();static#t=this.\u0275dir=te({type:e,features:[Le]})}return e})();const fr=new G(""),fV={provide:fr,useExisting:qe(()=>Ch),multi:!0};let Ch=(()=>{class e extends Qo{writeValue(t){this.setProperty("checked",t)}static#e=this.\u0275fac=(()=>{let t;return function(o){return(t||(t=Ot(e)))(o||e)}})();static#t=this.\u0275dir=te({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){1&r&&ve("change",function(a){return o.onChange(a.target.checked)})("blur",function(){return o.onTouched()})},features:[Ye([fV]),Le]})}return e})();const pV={provide:fr,useExisting:qe(()=>oc),multi:!0},gV=new G("");let oc=(()=>{class e extends $C{constructor(t,r,o){super(t,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function hV(){const e=Wa()?Wa().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static#e=this.\u0275fac=function(r){return new(r||e)(O(Fo),O(kn),O(gV,8))};static#t=this.\u0275dir=te({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){1&r&&ve("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Ye([pV]),Le]})}return e})();function to(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function zC(e){return null!=e&&"number"==typeof e.length}const jt=new G(""),no=new G(""),mV=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class yV{static min(n){return function qC(e){return n=>{if(to(n.value)||to(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t{if(to(n.value)||to(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function WC(e){return to(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function JC(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function KC(e){return to(e.value)||mV.test(e.value)?null:{email:!0}}(n)}static minLength(n){return function QC(e){return n=>to(n.value)||!zC(n.value)?null:n.value.lengthzC(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}function YC(e){if(!e)return Wu;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(to(r.value))return null;const o=r.value;return n.test(o)?null:{pattern:{requiredPattern:t,actualValue:o}}}}function Wu(e){return null}function XC(e){return null!=e}function eE(e){return mu(e)?qp(e):e}function tE(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function nE(e,n){return n.map(t=>t(e))}function rE(e){return e.map(n=>function wV(e){return!e.validate}(n)?n:t=>n.validate(t))}function oE(e){if(!e)return null;const n=e.filter(XC);return 0==n.length?null:function(t){return tE(nE(t,n))}}function Eh(e){return null!=e?oE(rE(e)):null}function iE(e){if(!e)return null;const n=e.filter(XC);return 0==n.length?null:function(t){return _V(nE(t,n).map(eE)).pipe(er(tE))}}function Ih(e){return null!=e?iE(rE(e)):null}function sE(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function aE(e){return e._rawValidators}function cE(e){return e._rawAsyncValidators}function Sh(e){return e?Array.isArray(e)?e:[e]:[]}function Ju(e,n){return Array.isArray(e)?e.includes(n):e===n}function lE(e,n){const t=Sh(n);return Sh(e).forEach(o=>{Ju(t,o)||t.push(o)}),t}function uE(e,n){return Sh(n).filter(t=>!Ju(e,t))}class dE{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Eh(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Ih(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class Kt extends dE{get formDirective(){return null}get path(){return null}}class ro extends dE{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class _E{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Mh=(()=>{class e extends _E{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(O(ro,2))};static#t=this.\u0275dir=te({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){2&r&&su("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Le]})}return e})(),Ku=(()=>{class e extends _E{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(O(Kt,10))};static#t=this.\u0275dir=te({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){2&r&&su("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[Le]})}return e})();const ic="VALID",Zu="INVALID",ws="PENDING",sc="DISABLED";function Ah(e){return(Yu(e)?e.validators:e)||null}function Nh(e,n){return(Yu(n)?n.asyncValidators:e)||null}function Yu(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function pE(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new B(1e3,"");if(!r[t])throw new B(1001,"")}function hE(e,n,t){e._forEachChild((r,o)=>{if(void 0===t[o])throw new B(1002,"")})}class Xu{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===ic}get invalid(){return this.status===Zu}get pending(){return this.status==ws}get disabled(){return this.status===sc}get enabled(){return this.status!==sc}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(lE(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(lE(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(uE(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(uE(n,this._rawAsyncValidators))}hasValidator(n){return Ju(this._rawValidators,n)}hasAsyncValidator(n){return Ju(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=ws,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=sc,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=ic,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ic||this.status===ws)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?sc:ic}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=ws,this._hasOwnPendingAsyncValidator=!0;const t=eE(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,o)=>r&&r._find(o),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new je,this.statusChanges=new je}_calculateStatus(){return this._allControlsDisabled()?sc:this.errors?Zu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ws)?ws:this._anyControlsHaveStatus(Zu)?Zu:ic}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Yu(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function CV(e){return Array.isArray(e)?Eh(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function EV(e){return Array.isArray(e)?Ih(e):e||null}(this._rawAsyncValidators)}}class ac extends Xu{constructor(n,t,r){super(Ah(t),Nh(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){hE(this,0,n),Object.keys(n).forEach(r=>{pE(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const o=this.controls[r];o&&o.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,o)=>{r.reset(n?n[o]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,o)=>((r.enabled||this.disabled)&&(t[o]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((o,s)=>{r=t(r,o,s)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class gE extends ac{}const bs=new G("CallSetDisabledState",{providedIn:"root",factory:()=>ed}),ed="always";function cc(e,n,t=ed){Fh(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function SV(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&mE(e,n)})}(e,n),function kV(e,n){const t=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function MV(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&mE(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function IV(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function nd(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),od(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function rd(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Fh(e,n){const t=aE(e);null!==n.validator?e.setValidators(sE(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=cE(e);null!==n.asyncValidator?e.setAsyncValidators(sE(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();rd(n._rawValidators,o),rd(n._rawAsyncValidators,o)}function od(e,n){let t=!1;if(null!==e){if(null!==n.validator){const o=aE(e);if(Array.isArray(o)&&o.length>0){const s=o.filter(a=>a!==n.validator);s.length!==o.length&&(t=!0,e.setValidators(s))}}if(null!==n.asyncValidator){const o=cE(e);if(Array.isArray(o)&&o.length>0){const s=o.filter(a=>a!==n.asyncValidator);s.length!==o.length&&(t=!0,e.setAsyncValidators(s))}}}const r=()=>{};return rd(n._rawValidators,r),rd(n._rawAsyncValidators,r),t}function mE(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function bE(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function vE(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const vs=class extends Xu{constructor(n=null,t,r){super(Ah(t),Nh(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Yu(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=vE(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){bE(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){bE(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){vE(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};Promise.resolve();let SE=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=te({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const Lh=new G(""),UV={provide:Kt,useExisting:qe(()=>Ds)};let Ds=(()=>{class e extends Kt{constructor(t,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new je,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(od(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return cc(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){nd(t.control||null,t,!1),function FV(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this.submitted=!0,function wE(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,o=this.form.get(t.path);r!==o&&(nd(r||null,t),(e=>e instanceof vs)(o)&&(cc(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function yE(e,n){Fh(e,n)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function TV(e,n){return od(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Fh(this.form,this),this._oldForm&&od(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(r){return new(r||e)(O(jt,10),O(no,10),O(bs,8))};static#t=this.\u0275dir=te({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){1&r&&ve("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[xe.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ye([UV]),Le,Cr]})}return e})();const qV={provide:ro,useExisting:qe(()=>id)};let id=(()=>{class e extends ro{set isDisabled(t){}static#e=this._ngModelWarningSentOnce=!1;constructor(t,r,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new je,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Oh(e,n){if(!n)return null;let t,r,o;return Array.isArray(n),n.forEach(s=>{s.constructor===oc?t=s:function NV(e){return Object.getPrototypeOf(e.constructor)===Qo}(s)?r=s:o=s}),o||r||t||null}(0,s)}ngOnChanges(t){this._added||this._setUpControl(),function xh(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return function td(e,n){return[...n.path,e]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(r){return new(r||e)(O(Kt,13),O(jt,10),O(no,10),O(fr,10),O(Lh,8))};static#n=this.\u0275dir=te({type:e,selectors:[["","formControlName",""]],inputs:{name:[xe.None,"formControlName","name"],isDisabled:[xe.None,"disabled","isDisabled"],model:[xe.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ye([qV]),Le,Cr]})}return e})();let Zo=(()=>{class e{constructor(){this._validator=Wu}ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Wu,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=te({type:e,features:[Cr]})}return e})();const oj={provide:jt,useExisting:qe(()=>$h),multi:!0};let $h=(()=>{class e extends Zo{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>function xE(e){return"number"==typeof e?e:parseInt(e,10)}(t),this.createValidator=t=>ZC(t)}static#e=this.\u0275fac=(()=>{let t;return function(o){return(t||(t=Ot(e)))(o||e)}})();static#t=this.\u0275dir=te({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){2&r&&an("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Ye([oj]),Le]})}return e})();const ij={provide:jt,useExisting:qe(()=>zh),multi:!0};let zh=(()=>{class e extends Zo{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=t=>t,this.createValidator=t=>YC(t)}static#e=this.\u0275fac=(()=>{let t;return function(o){return(t||(t=Ot(e)))(o||e)}})();static#t=this.\u0275dir=te({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(r,o){2&r&&an("pattern",o._enabled?o.pattern:null)},inputs:{pattern:"pattern"},features:[Ye([ij]),Le]})}return e})(),sj=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ut({type:e});static#n=this.\u0275inj=or({})}return e})();class HE extends Xu{constructor(n,t,r){super(Ah(t),Nh(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,r={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,t={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,r={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),t&&(this.controls.splice(o,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){hE(this,0,n),n.forEach((r,o)=>{pE(this,!1,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((r,o)=>{r.reset(n[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,r)=>{n(t,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function UE(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let aj=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new e;return t.useNonNullable=!0,t}group(t,r=null){const o=this._reduceControls(t);let s={};return UE(r)?s=r:null!==r&&(s.validators=r.validator,s.asyncValidators=r.asyncValidator),new ac(o,s)}record(t,r=null){const o=this._reduceControls(t);return new gE(o,r)}control(t,r,o){let s={};return this.useNonNullable?(UE(r)?s=r:(s.validators=r,s.asyncValidators=o),new vs(t,{...s,nonNullable:!0})):new vs(t,r,o)}array(t,r,o){const s=t.map(a=>this._createControl(a));return new HE(s,r,o)}_reduceControls(t){const r={};return Object.keys(t).forEach(o=>{r[o]=this._createControl(t[o])}),r}_createControl(t){return t instanceof vs||t instanceof Xu?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Cs=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Lh,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:bs,useValue:t.callSetDisabledState??ed}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ut({type:e});static#n=this.\u0275inj=or({imports:[sj]})}return e})();const Es={id:"stateRootHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"State Root Hash",name:"state_root_hash",controlName:"stateRootHash",placeholder:"0x",e2e:"stateRootHashElt"},qh={id:"paymentAmountElt",type:"tel",wrap_class:"col-lg-3 mb-2",class:"form-control",label:"Payment Amount",name:"payment_amount",controlName:"paymentAmount",placeholder:"",e2e:"paymentAmountElt",change:"motesToCSPR"},sd={id:"TTLElt",type:"search",wrap_class:"col-lg-2 mb-2",class:"form-control",label:"TTL",name:"ttl",controlName:"TTL",e2e:"TTLElt",config_name:"TTL"},$E={id:"sessionHashElt",type:"search",wrap_class:"col-xl-6 mb-2",class:"form-control",label:"Smart Contract hash or Package hash",name:"session_hash",controlName:"sessionHash",placeholder:"Contract Hash or Package Hash",e2e:"sessionHashElt",disabled_when:["has_wasm","sessionName.value"]},zE={id:"callPackageElt",type:"checkbox",wrap_class:"col-lg-2 mb-2",class:"form-check-input mt-0",label:"Call Package",name:"call_package",controlName:"callPackage",placeholder:"",e2e:"callPackageElt",label_class:"form-label",disabled_when:["has_wasm"]},qE={id:"versionElt",type:"search",wrap_class:"col-lg-3 mb-2",class:"form-control",label:"Version",name:"version",controlName:"version",placeholder:"e.g.1, empty for last version",e2e:"versionElt",disabled_when:["has_wasm"]},GE={id:"sessionNameElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Smart Contract name or Package name",name:"session_name",controlName:"sessionName",placeholder:"Counter",e2e:"sessionNameElt",disabled_when:["has_wasm","sessionHash.value"]},WE={id:"entryPointElt",type:"search",wrap_class:"col-lg-5 mb-2",class:"form-control",label:"Entry point",name:"entry_point",controlName:"entryPoint",placeholder:"counter_inc",e2e:"entryPointElt",disabled_when:["has_wasm"]},Gh={id:"argsSimpleElt",type:"search",wrap_class:"col-lg-8 mb-2",class:"form-control",label:"Args",name:"args_simple",controlName:"argsSimple",placeholder:"foo:Bool='true', bar:String='value'",e2e:"argsSimpleElt",disabled_when:["argsJson.value"]},Wh={id:"argsJsonElt",type:"search",wrap_class:"col-lg-8 mb-2",class:"form-control",label:"Args Json",name:"args_json",controlName:"argsJson",placeholder:'[{ "name": "foo", "type": "U256", "value": 1 }]',e2e:"argsJsonElt",disabled_when:["argsSimple.value"]},JE={id:"seedContractHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Contract Hash",name:"seed_contract_hash",controlName:"seedContractHash",placeholder:"hash-0x",e2e:"seedContractHashElt",enabled_when:["newFromContractInfo"]},KE={id:"seedNameElt",type:"search",wrap_class:"col-lg-6 mb-2",class:"form-control",label:"Dictionary Name",name:"seed_name",controlName:"seedName",placeholder:"events",e2e:"seedNameElt",enabled_when:["newFromContractInfo","newFromAccountInfo"]},QE={id:"itemKeyElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Dictionary Item key",name:"item_key",controlName:"itemKey",placeholder:"Item key string",e2e:"itemKeyElt",enabled_when:["newFromContractInfo","newFromAccountInfo","newFromSeedUref"]},ZE={id:"queryKeyElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Key",name:"query_key",controlName:"queryKey",placeholder:"uref-0x || hash-0x || account-hash-0x",e2e:"queryKeyElt"},bj={...ZE,label:"Contract Hash",placeholder:"hash-0x"},YE={id:"queryPathElt",type:"search",wrap_class:"col-lg-4 mb-2",class:"form-control",label:"Path",name:"query_path",controlName:"queryPath",placeholder:"counter/count",e2e:"queryPathElt"},Jh={id:"deployJsonElt",type:"textarea",wrap_class:"col-lg-12",class:"form-control",label:"Deploy as Json string",name:"deploy_json",controlName:"deployJson",placeholder:"Deploy as Json string",e2e:"deployJsonElt",state_name:["deploy_json"]},Jn=[[{input:{id:"blockIdentifierHeightElt",type:"search",wrap_class:"col-lg-3 col-xl-2 mb-2",class:"form-control",label:"Block Height",name:"block_identifier_height",controlName:"blockIdentifierHeight",placeholder:"Block Height",e2e:"blockIdentifierHeightElt"}},{input:{id:"blockIdentifierHashElt",type:"search",wrap_class:"col-lg-9 col-xl-8 mb-2",class:"form-control",label:"Block Hash",name:"block_identifier_hash",controlName:"blockIdentifierHash",placeholder:"Block Hash",e2e:"blockIdentifierHashElt"}}]],Dj=[...Jn,[{input:{id:"accountIdentifierElt",type:"search",wrap_class:"col-lg-9",class:"form-control",label:"Account identifier",name:"account_identifier",controlName:"accountIdentifier",placeholder:"Public Key, AccountHash, Purse URef",e2e:"accountIdentifierElt",state_name:["account_hash","public_key","main_purse"]},required:!0}]],Cj=[[{input:Es}],[{input:{id:"purseUrefElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Purse Uref",name:"purse_uref",controlName:"purseUref",placeholder:"uref-0x",e2e:"purseUrefElt",state_name:["main_purse"]},required:!0}]],Ej=[...Jn,[{input:Es}],[{input:{id:"purseIdentifierElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Purse Identifier",name:"purse_identifier",controlName:"purseIdentifier",placeholder:"Public Key, AccountHash, Purse URef",e2e:"purseIdentifierElt",state_name:["main_purse","account_hash","public_key"]},required:!0}]],Ij=[...Jn,[{input:Es}],[{input:ZE,required:!0}],[{input:YE}]],Sj=[[{input:Es}],[{input:JE,required:!0}],[{input:KE,required:!0}],[{input:QE,required:!0}]],Mj=[[{input:Es}],[{input:bj,required:!0}],[{input:YE}]],kj=[[{input:Es}],[{select:{id:"selectDictIdentifierElt",type:"textarea",wrap_class:"mt-3 col-lg-5 mb-4",class:"form-select form-control form-control-sm",label:"Dictionary identifier",label_class:"input-group-text",name:"select_dict_identifier",controlName:"selectDictIdentifier",e2e:"selectDictIdentifierElt",state_name:["select_dict_identifier"],options:[{value:"newFromSeedUref",label:"From Dictionary Uref"},{value:"newFromContractInfo",label:"From Contract Info",default:!0},{value:"newFromAccountInfo",label:"From Account Info"},{value:"newFromDictionaryKey",label:"From Dictionary Key"}]}}],[{input:JE,required:!0}],[{input:{id:"seedAccountHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Account Hash",name:"seed_account_hash",controlName:"seedAccountHash",placeholder:"account-hash-0x",e2e:"seedAccountHashElt",enabled_when:["newFromAccountInfo"]},required:!0}],[{input:{id:"seedUrefElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Dictionary Uref",name:"seed_uref",controlName:"seedUref",placeholder:"uref-0x",e2e:"seedUrefElt",enabled_when:["newFromSeedUref"]},required:!0}],[{input:KE,required:!0}],[{input:QE,required:!0}],[{input:{id:"seedKeyElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Dictionary Key",name:"seed_key",controlName:"seedKey",placeholder:"dictionary-0x",e2e:"seedKeyElt",enabled_when:["newFromDictionaryKey"]},required:!0}]],Kh=[[{input:{id:"transferAmountElt",type:"tel",wrap_class:"col-lg-3 mb-2",class:"form-control",label:"Transfer Amount",name:"transfer_amount",controlName:"transferAmount",e2e:"transferAmountElt",config_name:"minimum_transfer",maxlength:"28",pattern:"\\d*",change:"motesToCSPR"},required:!0},{input:sd}],[{input:{id:"targetAccountElt",type:"search",wrap_class:"col-xl-9",class:"form-control",label:"Target Account",name:"target_account",controlName:"targetAccount",placeholder:"Public Key, AccountHash, Purse URef",e2e:"targetAccountElt"},required:!0}]],Aj=[...Jn,...Kh],Nj=[[{input:qh,required:!0},{input:sd},{wasm_button:!0}],[{input:Gh}],[{input:Wh}]],Qh=[[{input:qh,required:!0},{input:sd},{wasm_button:!0}],[{input:$E,required:!0},{input:zE},{input:qE}],[{input:GE,required:!0}],[{input:WE,required:!0}],[{input:Gh}],[{input:Wh}]],Fj=[...Jn,...Qh],Rj=[[{input:qh,required:!0},{input:sd}],[{input:$E},{input:zE},{input:qE}],[{input:GE}],[{input:WE}],[{input:Gh}],[{input:Wh}]],xj=[...Jn,[{file_button:!0}],[{textarea:Jh,required:!0}]],ad=new Map([["call_entrypoint",Rj],["deploy",Qh],["get_account",Dj],["get_balance",Cj],["get_block",Jn],["get_block_transfers",Jn],["get_deploy",[[{input:{id:"deployHashElt",type:"search",wrap_class:"col-xl-7",class:"form-control",label:"Deploy Hash",name:"deploy_hash",controlName:"deployHash",placeholder:"0x",e2e:"deployHashElt"},required:!0},{input:{id:"finalizedApprovalsElt",type:"checkbox",wrap_class:"col-lg-3 mt-3 mt-xl-0",class:"form-check-input mt-0",label:"Finalized approvals",name:"finalized_approvals",controlName:"finalizedApprovals",placeholder:"",e2e:"finalizedApprovalsElt",label_class:"form-label"}}]]],["get_dictionary_item",kj],["get_era_info",Jn],["get_era_summary",Jn],["get_state_root_hash",Jn],["install",Nj],["make_deploy",Qh],["make_transfer",Kh],["put_deploy",[[{file_button:!0}],[{textarea:Jh,required:!0}]]],["query_balance",Ej],["query_contract_dict",Sj],["query_contract_key",Mj],["query_global_state",Ij],["sign_deploy",[[{file_button:!0}],[{textarea:Jh,required:!0}]]],["speculative_deploy",Fj],["speculative_exec",xj],["speculative_transfer",Aj],["transfer",Kh]]);let Kn=(()=>{class e{constructor(){this.state=new ci({})}setState(t){const o={...this.state.getValue(),...t};this.state.next(o)}getState(){return this.state.asObservable()}getValue(){return this.state.getValue()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),cd=(()=>{class e{constructor(t,r,o){this.config=t,this.formBuilder=r,this.stateService=o,this.stateService.getState().subscribe(s=>{this.has_wasm=!!s?.has_wasm,s?.select_dict_identifier&&(this.select_dict_identifier=s.select_dict_identifier),s?.action&&this.action!==s.action&&(s.action&&(this.action=s.action),this.initializeForm()),this.action&&this.updateForm(),s&&(this.state=s)}),this.form=this.defaultForm}get defaultForm(){const t={};return ad.forEach(r=>{r.forEach(o=>{o.forEach(s=>{const a=s.input?.controlName||s.textarea?.controlName||"";if(a&&(t[a]=new vs),s.select?.options){const u=s.select?.options.find(d=>d.default)?.value||"";this.stateService.setState({select_dict_identifier:u})}})})}),this.formBuilder.group(t)}initializeForm(){Object.values(this.form.controls).forEach(r=>{r.clearValidators(),r.markAsPristine(),r.disable()});const t=this.action&&ad.get(this.action);t&&t.forEach(r=>{r.forEach(o=>{if(!o.input&&!o.textarea)return;const a=this.form.get(o.input?.controlName||o.textarea?.controlName||"");if(!a)return;const u=o.input?.state_name||o.textarea?.state_name||o.select?.state_name||[],d=u&&u.find(h=>this.state[h]),f=d?this.state[d]:"";if(f)f&&a.setValue(f);else if(o.input?.config_name){const h=this.config[o.input?.config_name]||"";h&&a.setValue(h),h&&(o.input.placeholder_config_value=h)}a.enable(),o.required&&(o.input&&(o.input.required=!0),o.textarea&&(o.textarea.required=!0),a.setValidators([yV.required]))})})}updateForm(){const t=this.action&&ad.get(this.action);if(!t)return;const r=[];t.forEach(o=>{o.forEach(({input:s})=>{const a=s?.controlName;if(!a)return;const u=this.form.get(a);if(u)if(s.enabled_when)this.select_dict_identifier&&!s.enabled_when?.includes(this.select_dict_identifier)?u.disable():this.select_dict_identifier&&u.enable();else if(s.disabled_when){const d=u.value&&s.disabled_when?.find(g=>g.includes("value")),f=d&&d.split(".")[0],h=f&&this.form?.get(f);h&&(h.disable(),r.push(f)),this.has_wasm&&s?.disabled_when?.includes("has_wasm")?(u.reset(),u.disable()):r.includes(s.controlName)||u.enable()}})})}get formFields(){return ad}static#e=this.\u0275fac=function(r){return new(r||e)(X(Fr),X(aj),X(Kn))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Lj=["template"];function Vj(e,n){if(1&e&&(q(0,"span",10),De(1),W()),2&e){const t=Y(2),r=t.inputField,o=t.parentForm,s=Y();let a;z(),Lt("(",s.motesToCSPR(null==(a=o.get(r.controlName))?null:a.value)," CSPR)")}}const jj=(e,n,t)=>[e,n,t];function Bj(e,n){if(1&e){const t=qt();An(0,2),q(1,"input",11),ve("change",function(){kt(t);const o=Y(2).inputField;return Tt(Y().onChange(o))}),W(),Nn()}if(2&e){const t=Y(2),r=t.parentForm,o=t.inputField,s=Y();$("formGroup",r),z(),$("id",o.id)("type",o.type)("name",o.name)("maxlength",o.maxlength||"")("pattern",o.pattern||"")("formControlName",o.controlName)("placeholder",o.placeholder_config_value?"e.g. "+o.placeholder_config_value:o.placeholder||"")("ngClass",Kv(10,jj,o.class||"form-control",s.isInvalid(o.controlName)?"is-invalid":"",s.isRequired(o)?"is-required":"")),an("e2e-id",o.e2e)}}function Hj(e,n){if(1&e&&(q(0,"label",12),De(1),W()),2&e){const t=Y(2).inputField;$("for",t.id),z(),Lt("e.g. ",t.placeholder,"")}}function Uj(e,n){if(1&e&&(q(0,"label",12),De(1),W()),2&e){const t=Y(2).inputField;$("for",t.id),z(),Lt("e.g. ",t.placeholder_config_value,"")}}const $j=(e,n)=>[e,n];function zj(e,n){if(1&e&&(q(0,"div",4)(1,"label",5),De(2),he(3,Vj,2,1,"span",6),W(),q(4,"div",7),he(5,Bj,2,14,"ng-container",8)(6,Hj,2,2,"label",9)(7,Uj,2,2,"label",9),W()()),2&e){const t=Y(),r=t.inputField,o=t.parentForm,s=Uo(2);let a,u;$("ngClass",r.wrap_class),z(),$("for",r.id)("ngClass",fs(10,$j,r.label_class||"",null!=(a=o.get(r.controlName))&&a.disabled?"disabled":"")),z(),Ba("",r.label,"",r.required?" *":""," "),z(),$("ngIf",(null==r.change?null:r.change.includes("motesToCSPR"))&&(null==(u=o.get(r.controlName))?null:u.value)),z(2),$("ngIf","checkbox"!==r.type)("ngIfElse",s),z(),$("ngIf",r.placeholder),z(),$("ngIf",r.placeholder_config_value)}}function qj(e,n){if(1&e&&At(0,"input",13),2&e){const t=Y().inputField;$("id",t.id)("name",t.name)("formControlName",t.controlName),an("e2e-id",t.e2e)}}function Gj(e,n){if(1&e&&he(0,zj,8,13,"div",1)(1,qj,1,4,"ng-template",2,3,$o),2&e){const t=n.inputField,r=n.parentForm;let s;$("ngIf",!(Y().hidden_when_disabled&&null!=(s=r.get(t.controlName))&&s.disabled)),z(),$("formGroup",r)}}let XE=(()=>{class e{constructor(t){this.formService=t}onChange(t){this.parentForm?.get(t.controlName)&&t.disabled_when?.find(s=>s.includes("value"))&&this.formService.updateForm()}isInvalid(t){const r=this.parentForm?.get(t);return!(!r?.enabled||!r?.dirty||r?.value||r?.valid)}isRequired(t){const r=this.parentForm?.get(t.controlName);return!(!r?.enabled||r?.dirty||r?.value||!t.required)}motesToCSPR(t){if(t)return t=this.parse_commas(t),(0,me.Qb)(t)}parse_commas(t){return t.replace(/[,.]/g,"")}static#e=this.\u0275fac=function(r){return new(r||e)(O(cd))};static#t=this.\u0275cmp=ht({type:e,selectors:[["ui-input"]],viewQuery:function(r,o){if(1&r&&ln(Lj,7),2&r){let s;un(s=dn())&&(o.template=s.first)}},inputs:{inputField:"inputField",parentForm:"parentForm",hidden_when_disabled:"hidden_when_disabled"},standalone:!0,features:[Vt],decls:2,vars:0,consts:[["template",""],[3,"ngClass",4,"ngIf"],[3,"formGroup"],["checkboxContent",""],[3,"ngClass"],[3,"for","ngClass"],["class","fw-light small text-nowrap",4,"ngIf"],[1,"form-floating"],[3,"formGroup",4,"ngIf","ngIfElse"],[3,"for",4,"ngIf"],[1,"fw-light","small","text-nowrap"],[3,"id","type","name","maxlength","pattern","formControlName","placeholder","ngClass","change"],[3,"for"],["type","checkbox",3,"id","name","formControlName"]],template:function(r,o){1&r&&he(0,Gj,3,2,"ng-template",null,0,$o)},dependencies:[pt,Wo,Gn,Cs,oc,Ch,Mh,Ku,$h,zh,Ds,id],styles:["[_nghost-%COMP%]{display:none}label[_ngcontent-%COMP%]{max-width:100%}.form-floating[_ngcontent-%COMP%] > label[_ngcontent-%COMP%], label.disabled[_ngcontent-%COMP%]{color:#d3d3d3}"],changeDetection:0})}return e})();const Wj=["template"];function Jj(e,n){if(1&e&&(q(0,"option",6),De(1),W()),2&e){const t=n.$implicit,r=Y(2);fp("value",t.value),$("selected",t.default||r.select_dict_identifier===t.value),z(),Lt(" ",t.label," ")}}const eI=e=>[e];function Kj(e,n){if(1&e){const t=qt();q(0,"div",1)(1,"div",2)(2,"label",3),De(3,"Dictionary identifier"),W(),q(4,"select",4),ve("change",function(o){return kt(t),Tt(Y().onChange(o))}),he(5,Jj,2,3,"option",5),De(6),W()()()}if(2&e){const t=n.inputField,r=Y();$("ngClass",t.wrap_class),z(2),$("for",t.id)("ngClass",_s(9,eI,t.label_class||"")),z(2),$("id",t.id)("name",t.name)("ngClass",_s(11,eI,t.class||"form-control")),an("e2e-id",t.e2e),z(),$("ngForOf",t.options),z(),Lt(" ",r.select_dict_identifier," ")}}let tI=(()=>{class e{constructor(t,r,o){this.config=t,this.stateService=r,this.changeDetectorRef=o}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{setTimeout(()=>{t.select_dict_identifier&&(this.select_dict_identifier=t.select_dict_identifier),this.changeDetectorRef.markForCheck()})})}onChange(t){const r=t.target?.value;this.stateService.setState({select_dict_identifier:r})}static#e=this.\u0275fac=function(r){return new(r||e)(O(Fr),O(Kn),O(bn))};static#t=this.\u0275cmp=ht({type:e,selectors:[["ui-select"]],viewQuery:function(r,o){if(1&r&&ln(Wj,7),2&r){let s;un(s=dn())&&(o.template=s.first)}},inputs:{inputField:"inputField",parentForm:"parentForm"},standalone:!0,features:[Vt],decls:2,vars:0,consts:[["template",""],[3,"ngClass"],[1,"input-group"],[3,"for","ngClass"],[3,"id","name","ngClass","change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(r,o){1&r&&he(0,Kj,7,13,"ng-template",null,0,$o)},dependencies:[pt,Wo,Ka],changeDetection:0})}return e})();const Qj=["template"];function Zj(e,n){if(1&e&&(q(0,"label",6),De(1),W()),2&e){const t=Y().inputField;$("for",t.id),z(),ds(t.placeholder)}}const Yj=(e,n)=>[e,n];function Xj(e,n){if(1&e&&(q(0,"div",1)(1,"div",2),An(2,3),q(3,"textarea",4),De(4," "),W(),he(5,Zj,2,2,"label",5),Nn(),W()()),2&e){const t=n.inputField,r=n.parentForm,o=Y();$("ngClass",t.wrap_class),z(2),$("formGroup",r),z(),$("id",t.id)("name",t.name)("formControlName",t.controlName)("placeholder",t.placeholder||"")("ngClass",fs(9,Yj,t.class||"form-control",o.isInvalid(t.controlName)?"is-invalid":"")),an("e2e-id",t.e2e),z(2),$("ngIf",t.placeholder)}}let nI=(()=>{class e{isInvalid(t){const r=this.parentForm?.get(t);return!!this.parentForm?.touched&&!!r?.invalid}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=ht({type:e,selectors:[["ui-textarea"]],viewQuery:function(r,o){if(1&r&&ln(Qj,7),2&r){let s;un(s=dn())&&(o.template=s.first)}},inputs:{inputField:"inputField",parentForm:"parentForm"},standalone:!0,features:[Vt],decls:2,vars:0,consts:[["template",""],[3,"ngClass"],[1,"form-floating","mt-3"],[3,"formGroup"],[3,"id","name","formControlName","placeholder","ngClass"],[3,"for",4,"ngIf"],[3,"for"]],template:function(r,o){1&r&&he(0,Xj,6,12,"ng-template",null,0,$o)},dependencies:[pt,Wo,Gn,Cs,oc,Mh,Ku,Ds,id],styles:["textarea[_ngcontent-%COMP%]{min-height:350px!important;white-space:pre-wrap}@media (max-width: 767px){textarea[_ngcontent-%COMP%]{min-height:200px!important}}"],changeDetection:0})}return e})();const e4=["wasmElt"],t4=["template"];function n4(e,n){if(1&e){const t=qt();q(0,"button",6),ve("click",function(){return kt(t),Tt(Y(2).onWasmClick())}),De(1," Wasm Module Bytes "),W()}}function r4(e,n){if(1&e){const t=qt();q(0,"span",7),ve("click",function(){return kt(t),Tt(Y(2).resetWasmClick())}),De(1),Ys(),q(2,"svg",8),At(3,"path",9),W()()}if(2&e){const t=Y(2);z(),Lt(" ",t.file_name," ")}}function o4(e,n){if(1&e){const t=qt();q(0,"div",1)(1,"input",2,3),ve("change",function(o){return kt(t),Tt(Y().onWasmSelected(o))}),W(),he(3,n4,2,0,"button",4)(4,r4,4,1,"span",5),W()}if(2&e){const t=Y();z(3),$("ngIf",!t.file_name),z(),$("ngIf",t.file_name)}}let rI=(()=>{class e{constructor(){this.select_wasm=new je}onWasmSelected(t){var r=this;return(0,j.c)(function*(){r.file_name=r.wasmElt?.nativeElement.value.split("\\").pop();const o=t.target.files?.item(0),s=yield o?.arrayBuffer();r.wasm=s&&new Uint8Array(s),r.wasm?.buffer||r.resetWasmClick(),r.select_wasm.emit(r.wasm)})()}onWasmClick(){this.wasmElt.nativeElement.click()}resetWasmClick(){this.wasmElt.nativeElement.value="",this.wasm=void 0,this.file_name="",this.select_wasm.emit(void 0)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=ht({type:e,selectors:[["comp-submit-wasm"]],viewQuery:function(r,o){if(1&r&&(ln(e4,5),ln(t4,7)),2&r){let s;un(s=dn())&&(o.wasmElt=s.first),un(s=dn())&&(o.template=s.first)}},outputs:{select_wasm:"select_wasm"},standalone:!0,features:[Vt],decls:2,vars:0,consts:[["template",""],[1,"col-sm-2","mb-2"],["name","wasm","type","file","id","wasmElt","accept",".wasm","e2e-id","wasmElt",1,"visually-hidden",3,"change"],["wasmElt",""],["class","btn btn-secondary",3,"click",4,"ngIf"],["class","break-all text-nowrap","class","btn btn-light","e2e-id","wasmName",3,"click",4,"ngIf"],[1,"btn","btn-secondary",3,"click"],["e2e-id","wasmName",1,"btn","btn-light",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-6","h-6","ml-1","cursor-pointer","shrink-0"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"]],template:function(r,o){1&r&&he(0,o4,5,2,"ng-template",null,0,$o)},dependencies:[pt,Gn],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0})}return e})(),ld=(()=>{class e{constructor(){this.error=new ci("")}setError(t){this.error.getValue()!==t&&this.error.next(t)}getError(){return this.error.asObservable()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const i4=["template"],s4=["deployFileElt"];function a4(e,n){if(1&e){const t=qt();q(0,"div",1)(1,"input",2,3),ve("change",function(o){return kt(t),Tt(Y().onDeployFileSelected(o))}),W(),q(3,"button",4),ve("click",function(){return kt(t),Tt(Y().deployFileClick())}),De(4," Load deploy file "),W()()}}let oI=(()=>{class e{constructor(t){this.errorService=t,this.select_file=new je}onDeployFileSelected(t){var r=this;return(0,j.c)(function*(){const o=t.target.files?.item(0);let s;if(o){if(s=yield o.text(),!s.trim())return;s=s.trim();try{const a=JSON.parse(s);r.deploy_json=a}catch{const a="Error parsing deploy";console.error(a),r.errorService.setError(a)}}else r.deploy_json="";r.select_file.emit(r.deploy_json)})()}deployFileClick(){this.deployFileElt.nativeElement.click()}static#e=this.\u0275fac=function(r){return new(r||e)(O(ld))};static#t=this.\u0275cmp=ht({type:e,selectors:[["comp-submit-file"]],viewQuery:function(r,o){if(1&r&&(ln(i4,7),ln(s4,5)),2&r){let s;un(s=dn())&&(o.template=s.first),un(s=dn())&&(o.deployFileElt=s.first)}},outputs:{select_file:"select_file"},standalone:!0,features:[Vt],decls:2,vars:0,consts:[["template",""],[1,"col-sm-2","mt-2"],["name","deploy_file","type","file","id","deployFileElt","accept",".json, .txt","e2e-id","deployFileElt",1,"visually-hidden",3,"change"],["deployFileElt",""],[1,"btn","btn-secondary",3,"click"]],template:function(r,o){1&r&&he(0,a4,5,0,"ng-template",null,0,$o)},dependencies:[pt],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0})}return e})();function c4(e,n){1&e&&Bo(0)}const Zh=(e,n)=>({parentForm:e,inputField:n});function l4(e,n){if(1&e&&(An(0),At(1,"ui-input",5,6),he(3,c4,1,0,"ng-container",7),Nn()),2&e){const t=Uo(2),r=Y().$implicit,o=Y(3);z(),$("parentForm",o.form)("inputField",r.input)("hidden_when_disabled","get_dictionary_item"===o.action),z(2),$("ngTemplateOutlet",t.template)("ngTemplateOutletContext",fs(5,Zh,o.form,r.input))}}function u4(e,n){1&e&&Bo(0)}function d4(e,n){if(1&e&&(An(0),At(1,"ui-textarea",8,6),he(3,u4,1,0,"ng-container",7),Nn()),2&e){const t=Uo(2),r=Y().$implicit,o=Y(3);z(),$("parentForm",o.form)("inputField",r.textarea),z(2),$("ngTemplateOutlet",t.template)("ngTemplateOutletContext",fs(4,Zh,o.form,r.textarea))}}function _4(e,n){1&e&&Bo(0)}function f4(e,n){if(1&e&&(An(0),At(1,"ui-select",8,6),he(3,_4,1,0,"ng-container",7),Nn()),2&e){const t=Uo(2),r=Y().$implicit,o=Y(3);z(),$("parentForm",o.form)("inputField",r.select),z(2),$("ngTemplateOutlet",t.template)("ngTemplateOutletContext",fs(4,Zh,o.form,r.select))}}function p4(e,n){1&e&&Bo(0)}function h4(e,n){if(1&e){const t=qt();An(0),q(1,"comp-submit-wasm",9,10),ve("select_wasm",function(o){return kt(t),Tt(Y(4).onWasmSelected(o))}),W(),he(3,p4,1,0,"ng-container",11),Nn()}if(2&e){const t=Uo(2);z(3),$("ngTemplateOutlet",t.template)}}function g4(e,n){1&e&&Bo(0)}function m4(e,n){if(1&e){const t=qt();An(0),q(1,"comp-submit-file",12,10),ve("select_file",function(o){return kt(t),Tt(Y(4).onDeployFileSelected(o))}),W(),he(3,g4,1,0,"ng-container",11),Nn()}if(2&e){const t=Uo(2);z(3),$("ngTemplateOutlet",t.template)}}function y4(e,n){if(1&e&&(An(0),he(1,l4,4,8,"ng-container",4)(2,d4,4,7,"ng-container",4)(3,f4,4,7,"ng-container",4)(4,h4,4,1,"ng-container",4)(5,m4,4,1,"ng-container",4),Nn()),2&e){const t=n.$implicit;z(),$("ngIf",t.input),z(),$("ngIf",t.textarea),z(),$("ngIf",t.select),z(),$("ngIf",t.wasm_button),z(),$("ngIf",t.file_button)}}function w4(e,n){if(1&e&&(An(0),q(1,"div",3),he(2,y4,6,5,"ng-container",2),W(),Nn()),2&e){const t=n.$implicit;z(2),$("ngForOf",t)}}function b4(e,n){if(1&e&&(q(0,"form",1),he(1,w4,3,1,"ng-container",2),W()),2&e){const t=Y();$("formGroup",t.form),z(),$("ngForOf",t.formFields.get(t.action))}}let iI=(()=>{class e{constructor(t,r,o,s){this.config=t,this.formService=r,this.stateService=o,this.changeDetectorRef=s,this.formFields=this.formService.formFields,this.wasm_selected=new je,this.verbosity=this.config.verbosity}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){t.setStateSubscription()})()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action),this.changeDetectorRef.markForCheck()})}onWasmSelected(t){var r=this;return(0,j.c)(function*(){t&&r.wasm_selected.emit(t),r.stateService.setState({has_wasm:!!t})})()}onDeployFileSelected(t){var r=this;return(0,j.c)(function*(){(t=t&&(0,me.on)(new me.ob(t).toJson(),r.verbosity))&&r.stateService.setState({deploy_json:t})})()}static#e=this.\u0275fac=function(r){return new(r||e)(O(Fr),O(cd),O(Kn),O(bn))};static#t=this.\u0275cmp=ht({type:e,selectors:[["comp-form"]],inputs:{form:"form"},outputs:{wasm_selected:"wasm_selected"},standalone:!0,features:[Vt],decls:1,vars:1,consts:[["class","mt-3",3,"formGroup",4,"ngIf"],[1,"mt-3",3,"formGroup"],[4,"ngFor","ngForOf"],[1,"row","align-items-end"],[4,"ngIf"],[3,"parentForm","inputField","hidden_when_disabled"],["inputTemplate",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"parentForm","inputField"],[3,"select_wasm"],["submitTemplate",""],[4,"ngTemplateOutlet"],[3,"select_file"]],template:function(r,o){1&r&&he(0,b4,2,2,"form",0),2&r&&$("ngIf",o.action&&o.formFields&&o.formFields.has(o.action))},dependencies:[pt,Ka,Gn,G0,Cs,SE,Ku,Ds,XE,rI,oI,nI,tI],changeDetection:0})}return e})();const sI=new G("highlight");var v4=Dt(1376),D4=Dt.n(v4);let aI=(()=>{class e{constructor(t){this.highlightWebworkerFactory=t}highlightMessage(t){var r=this;return(0,j.c)(function*(){r.activateWorker();const o=r.hightlightWebworker&&(yield r.hightlightWebworker.postMessage(t).catch(s=>{console.error(s)}));return r.terminateWorker(),o})()}activateWorker(){if(this.webworker)return;const t=this.highlightWebworkerFactory();this.webworker=t[0],this.hightlightWebworker=t[1]}terminateWorker(){this.webworker&&(this.webworker.terminate(),delete this.webworker)}static#e=this.\u0275fac=function(r){return new(r||e)(X(sI))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const C4={provide:sI,useValue:function(){const e=new Worker(Dt.tu(new URL(Dt.p+Dt.u(976),Dt.b)),{name:"highlight.worker",type:void 0});return[e,new(D4())(e)]}};let E4=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ut({type:e});static#n=this.\u0275inj=or({providers:[C4,aI],imports:[pt]})}return e})(),ud=(()=>{class e{constructor(t,r){this.highlightService=t,this.document=r,this.result=new _o,this.window=this.document.defaultView}getResult(){return this.result.asObservable()}setResult(t){var r=this;return(0,j.c)(function*(){const o=t,s=yield r.highlightService.highlightMessage(o),a="string"==typeof t;r.result.next({result:a?o:JSON.stringify(o),resultHtml:a?o:s})})()}copyClipboard(t){this.window?.navigator.clipboard.writeText(t).catch(r=>console.error(r))}static#e=this.\u0275fac=function(r){return new(r||e)(X(aI),X(Tr))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),I4=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ut({type:e});static#n=this.\u0275inj=or({providers:[ud],imports:[pt,E4]})}return e})();const S4=["resultElt"],M4=["codeElt"];function k4(e,n){if(1&e&&(Ys(),zd(),q(0,"div",13,14)(2,"div",15),At(3,"code",16,17),W()()),2&e){const t=Y(2);z(3),$("innerHtml",t.resultHtml,xm)}}function T4(e,n){if(1&e){const t=qt();q(0,"div",2)(1,"div",3)(2,"span"),Ys(),q(3,"svg",4),ve("click",function(){kt(t);const o=Y();return Tt(o.copy(o.result))}),At(4,"rect",5)(5,"path",6),W()(),zd(),q(6,"span",7),ve("click",function(){return kt(t),Tt(Y().reset())}),Ys(),q(7,"svg",8),At(8,"path",9)(9,"path",10)(10,"path",11),W()()(),he(11,k4,5,1,"div",12),W()}if(2&e){const t=Y();z(11),$("ngIf",t.resultHtml)}}let cI=(()=>{class e{constructor(t,r){this.resultService=t,this.changeDetectorRef=r}ngAfterViewInit(){this.getResultSubscription=this.resultService.getResult().subscribe(t=>{this.result=t.result,this.resultHtml=t.resultHtml,this.changeDetectorRef.markForCheck()})}ngOnDestroy(){this.getResultSubscription&&this.getResultSubscription.unsubscribe()}copy(t){this.resultService.copyClipboard((0,me.on)(JSON.parse(t),1))}reset(){this.result="",this.resultHtml="",this.resultService.setResult("")}static#e=this.\u0275fac=function(r){return new(r||e)(O(ud),O(bn))};static#t=this.\u0275cmp=ht({type:e,selectors:[["comp-result"]],viewQuery:function(r,o){if(1&r&&(ln(S4,5),ln(M4,5,kn)),2&r){let s;un(s=dn())&&(o.resultElt=s.first),un(s=dn())&&(o.contentChildren=s.first)}},standalone:!0,features:[Vt],decls:2,vars:1,consts:[[1,"mt-3"],["class","row",4,"ngIf"],[1,"row"],[1,"col-xs-12","d-flex","flex-row","justify-content-between","mb-2"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"shrink-0","ml-2","w-5","min-w-5","text-gray-500","cursor-pointer",3,"click"],["x","9","y","9","width","13","height","13","rx","2","ry","2"],["d","M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"],["e2e-id","clear result",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-journal-x","cursor-pointer"],["fill-rule","evenodd","d","M6.146 6.146a.5.5 0 0 1 .708 0L8 7.293l1.146-1.147a.5.5 0 1 1 .708.708L8.707 8l1.147 1.146a.5.5 0 0 1-.708.708L8 8.707 6.854 9.854a.5.5 0 0 1-.708-.708L7.293 8 6.146 6.854a.5.5 0 0 1 0-.708z"],["d","M3 0h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-1h1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v1H1V2a2 2 0 0 1 2-2z"],["d","M1 5v-.5a.5.5 0 0 1 1 0V5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0V8h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0v.5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1z"],["class","col-xs-12",4,"ngIf"],[1,"col-xs-12"],["resultElt",""],[1,"card"],["e2e-id","result",1,"card-body",3,"innerHtml"],["codeElt",""]],template:function(r,o){1&r&&(q(0,"section",0),he(1,T4,12,1,"div",1),W()),2&r&&(z(),$("ngIf",o.result))},dependencies:[pt,Gn],styles:["code[_ngcontent-%COMP%]{white-space:pre-wrap;overflow-x:hidden;word-wrap:break-word;max-width:100%}@media (max-width: 767px){[_nghost-%COMP%] .hljs-string{overflow-wrap:break-word;word-break:break-all;max-width:100%}}[_nghost-%COMP%] .hljs-attr{font-weight:700}@media (max-width: 767px){code[_ngcontent-%COMP%]{font-size:.8em}}"],changeDetection:0})}return e})();const A4=["selectNetworkElt"];function N4(e,n){if(1&e&&(q(0,"option",16),De(1),W()),2&e){const t=n.$implicit,r=Y();$("value",t.name)("selected",t.node_address===r.node_address),z(),Ba(" ",t.name," (",t.node_address,") ")}}function F4(e,n){if(1&e&&(q(0,"option",16),De(1),W()),2&e){const t=n.$implicit,r=Y(2);$("value",r.changePort(t))("selected",r.changePort(t)===r.node_address),z(),Ba(" ",r.changePort(t)," (",r.chain_name,") ")}}function R4(e,n){if(1&e&&(q(0,"optgroup",17),he(1,F4,2,4,"option",14),W()),2&e){const t=Y();z(),$("ngForOf",t.peers)}}let lI=(()=>{class e{constructor(t,r,o,s,a){this.sdk=t,this.config=r,this.env=o,this.stateService=s,this.changeDetectorRef=a,this.chain_name=this.env.chain_name.toString(),this.node_address=this.env.node_address.toString(),this.network={name:"default",node_address:this.env.node_address.toString(),chain_name:this.env.chain_name.toString()},this.stateService.setState({chain_name:this.chain_name})}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){t.networks=Object.entries(t.config.networks).map(([r,o])=>({name:r,...o})),t.changeDetectorRef.markForCheck()})()}selectNetwork(){let t=this.selectNetworkElt.nativeElement.value;if(t=t&&this.networks.find(r=>r.name==t),!t){const r=this.selectNetworkElt.nativeElement.value;r&&(this.node_address=r)}this.network=t,this.chain_name=t.chain_name,this.node_address=t.node_address,this.sdk.setNodeAddress(this.node_address),this.stateService.setState({chain_name:t.chain_name})}changePort(t){const r=t.address.split(":");return[this.config.default_protocol,r.shift(),":",this.config.default_port].join("")}static#e=this.\u0275fac=function(r){return new(r||e)(O(rc),O(Fr),O(bh),O(Kn),O(bn))};static#t=this.\u0275cmp=ht({type:e,selectors:[["comp-header"]],viewQuery:function(r,o){if(1&r&&ln(A4,5),2&r){let s;un(s=dn())&&(o.selectNetworkElt=s.first)}},inputs:{peers:"peers"},standalone:!0,features:[Vt],decls:20,vars:6,consts:[[1,"navbar","navbar-light"],[1,"col-5","col-md-2"],[1,"navbar-brand"],["src","assets/logo.png","alt","CasperLabs"],[1,"col-7","col-md-4","col-lg-4","col-xl-5","d-flex","flex-column","flex-xl-row","justify-content-end","px-2","pt-2"],["e2e-id","chain_name",1,"badge","rounded-pill","bg-success","mb-2","ellipsis-container","px-2","me-xl-3",3,"hidden"],["e2e-id","node_address",1,"badge","rounded-pill","bg-success","mb-2","ellipsis-container","px-2","me-xl-3",3,"hidden"],[1,"col-12","col-md-6","col-lg-5"],[1,"form-inline"],[1,"input-group"],["for","selectActionElt","for","selectNetworkElt",1,"input-group-text"],["id","selectNetworkElt","e2e-id","selectNetworkElt",1,"form-select","form-control","form-control-sm",3,"change"],["selectNetworkElt",""],["label","default"],[3,"value","selected",4,"ngFor","ngForOf"],["label","fetched",4,"ngIf"],[3,"value","selected"],["label","fetched"]],template:function(r,o){1&r&&(q(0,"nav",0)(1,"div",1)(2,"a",2),At(3,"img",3),W()(),q(4,"div",4)(5,"span",5),De(6),W(),q(7,"span",6),De(8),W()(),q(9,"div",7)(10,"form",8)(11,"div",9)(12,"label",10),De(13,"RPC"),W(),q(14,"select",11,12),ve("change",function(){return o.selectNetwork()}),At(16,"option"),q(17,"optgroup",13),he(18,N4,2,4,"option",14),W(),he(19,R4,2,1,"optgroup",15),W()()()()()),2&r&&(z(5),$("hidden",!o.chain_name),z(),ds(o.chain_name),z(),$("hidden",!o.node_address),z(),ds(o.node_address),z(10),$("ngForOf",o.networks),z(),$("ngIf",o.peers))},dependencies:[pt,Ka,Gn],styles:[".ellipsis-container[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto}"],changeDetection:0})}return e})();function x4(e,n){if(1&e&&(q(0,"section",1)(1,"pre",2),De(2),W()()),2&e){const t=Y();z(2),ds(t.error)}}let uI=(()=>{class e{constructor(t,r){this.errorService=t,this.changeDetectorRef=r}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){t.seterrorSubscription()})()}ngOnDestroy(){this.errorSubscription&&this.errorSubscription.unsubscribe()}seterrorSubscription(){var t=this;this.errorSubscription=this.errorService.getError().subscribe(function(){var r=(0,j.c)(function*(o){t.error!==o&&(t.error=o,t.changeDetectorRef.markForCheck())});return function(o){return r.apply(this,arguments)}}())}static#e=this.\u0275fac=function(r){return new(r||e)(O(ld),O(bn))};static#t=this.\u0275cmp=ht({type:e,selectors:[["comp-error"]],standalone:!0,features:[Vt],decls:1,vars:1,consts:[["class","mt-3","e2e-id","error",4,"ngIf"],["e2e-id","error",1,"mt-3"],[1,"error","alert","alert-warning","d-flex"]],template:function(r,o){1&r&&he(0,x4,3,1,"section",0),2&r&&$("ngIf",o.error)},dependencies:[pt,Gn],styles:[".error[_ngcontent-%COMP%]{display:block;font-family:monospace;white-space:pre-wrap;word-break:break-word}"],changeDetection:0})}return e})();function O4(e,n){if(1&e){const t=qt();q(0,"div",4)(1,"span",5),De(2),W(),q(3,"button",6),ve("click",function(){return kt(t),Tt(Y().get_state_root_hash())}),De(4,"Refresh"),W()()}if(2&e){const t=Y();z(2),Lt("state root hash is ",t.state_root_hash,"")}}function P4(e,n){if(1&e&&(q(0,"div",7)(1,"span",8),De(2),W()()),2&e){const t=Y();z(2),Lt("account hash is ",t.account_hash,"")}}function L4(e,n){if(1&e&&(q(0,"div",7)(1,"span",9),De(2),W()()),2&e){const t=Y();z(2),Lt("main purse is ",t.main_purse,"")}}let dI=(()=>{class e{constructor(t,r){this.stateService=t,this.changeDetectorRef=r,this.get_state_root_hash_output=new je}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.account_hash&&(this.account_hash=t.account_hash),t.main_purse&&(this.main_purse=t.main_purse),t.state_root_hash&&(this.state_root_hash=t.state_root_hash),t&&this.changeDetectorRef.markForCheck()})}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){t.setStateSubscription()})()}get_state_root_hash(){this.get_state_root_hash_output.emit(!0)}static#e=this.\u0275fac=function(r){return new(r||e)(O(Kn),O(bn))};static#t=this.\u0275cmp=ht({type:e,selectors:[["comp-status"]],outputs:{get_state_root_hash_output:"get_state_root_hash_output"},standalone:!0,features:[Vt],decls:5,vars:3,consts:[[1,"row"],[1,"col-sm-12"],["class","alert alert-success d-flex flex-md-row flex-column justify-content-between align-items-center mb-1 mb-md-3",4,"ngIf"],["class","alert alert-warning d-flex mb-1 mb-md-3",4,"ngIf"],[1,"alert","alert-success","d-flex","flex-md-row","flex-column","justify-content-between","align-items-center","mb-1","mb-md-3"],["e2e-id","state_root_hash",1,"ellipsis-container"],[1,"btn","me-0",3,"click"],[1,"alert","alert-warning","d-flex","mb-1","mb-md-3"],["e2e-id","account_hash",1,"ellipsis-container"],["e2e-id","main_purse",1,"ellipsis-container"]],template:function(r,o){1&r&&(q(0,"div",0)(1,"div",1),he(2,O4,5,1,"div",2)(3,P4,3,1,"div",3)(4,L4,3,1,"div",3),W()()),2&r&&(z(2),$("ngIf",o.state_root_hash),z(),$("ngIf",o.account_hash),z(),$("ngIf",o.main_purse))},dependencies:[pt,Gn],styles:[".ellipsis-container[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto;font-size:.8em;max-width:260px}@media (min-width: 380px){.ellipsis-container[_ngcontent-%COMP%]{max-width:320px}}@media (min-width: 425px){.ellipsis-container[_ngcontent-%COMP%]{max-width:360px}}@media (min-width: 576px){.ellipsis-container[_ngcontent-%COMP%]{max-width:480px}}@media (min-width: 768px){.ellipsis-container[_ngcontent-%COMP%]{max-width:none;font-size:1em}}.btn[_ngcontent-%COMP%]{white-space:nowrap}@media (max-width: 767px){.btn[_ngcontent-%COMP%]{font-size:.8em;padding-bottom:0}}"],changeDetection:0})}return e})();function V4(e,n){if(1&e&&(q(0,"option",10),De(1),W()),2&e){const t=n.$implicit,r=Y();$("value",t)("selected",r.action===t),z(),Lt(" ",t," ")}}function j4(e,n){if(1&e&&(q(0,"option",10),De(1),W()),2&e){const t=n.$implicit,r=Y();$("value",t)("selected",r.action===t),z(),Lt(" ",t," ")}}function B4(e,n){if(1&e&&(q(0,"option",10),De(1),W()),2&e){const t=n.$implicit,r=Y();$("value",t)("selected",r.action===t),z(),Lt(" ",t," ")}}function H4(e,n){if(1&e&&(q(0,"option",11),De(1),W()),2&e){const t=n.$implicit;$("value",t),z(),Lt(" ",t," ")}}let _I=(()=>{class e{constructor(t,r,o){this.sdk=t,this.stateService=r,this.changeDetectorRef=o,this.select_action=new je}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){t.sdk_methods=Object.getOwnPropertyNames(Object.getPrototypeOf(t.sdk)).filter(r=>"function"==typeof t.sdk[r]).filter(r=>!["free","constructor","__destroy_into_raw","getNodeAddress","setNodeAddress","getVerbosity","setVerbosity"].includes(r)).filter(r=>!r.endsWith("_options")).filter(r=>!r.startsWith("chain_")).filter(r=>!r.startsWith("state_")).filter(r=>!r.startsWith("info_")).filter(r=>!r.startsWith("account")).sort(),t.sdk_deploy_methods=t.sdk_methods.filter(r=>["deploy","speculative_deploy","speculative_transfer","transfer"].includes(r)),t.sdk_deploy_utils_methods=t.sdk_methods.filter(r=>["make_deploy","make_transfer","sign_deploy","put_deploy"].includes(r)),t.sdk_contract_methods=t.sdk_methods.filter(r=>["call_entrypoint","install","query_contract_dict","query_contract_key"].includes(r)),t.sdk_rpc_methods=t.sdk_methods.filter(r=>!t.sdk_deploy_methods.concat(t.sdk_deploy_utils_methods,t.sdk_contract_methods).includes(r)),t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action),this.changeDetectorRef.markForCheck()})}selectAction(t){this.select_action.emit(t.target.value)}static#e=this.\u0275fac=function(r){return new(r||e)(O(rc),O(Kn),O(bn))};static#t=this.\u0275cmp=ht({type:e,selectors:[["comp-action"]],outputs:{select_action:"select_action"},standalone:!0,features:[Vt],decls:14,vars:4,consts:[[1,"input-group"],["for","selectActionElt",1,"input-group-text"],["id","selectActionElt","e2e-id","selectActionElt",1,"form-select","form-control","form-control-sm",3,"change"],["selectActionElt",""],["label","rpc"],[3,"value","selected",4,"ngFor","ngForOf"],["label","deploy utils"],["label","deploy"],["label","contract"],[3,"value",4,"ngFor","ngForOf"],[3,"value","selected"],[3,"value"]],template:function(r,o){1&r&&(q(0,"div",0)(1,"label",1),De(2,"Action"),W(),q(3,"select",2,3),ve("change",function(a){return o.selectAction(a)}),At(5,"option"),q(6,"optgroup",4),he(7,V4,2,3,"option",5),W(),q(8,"optgroup",6),he(9,j4,2,3,"option",5),W(),q(10,"optgroup",7),he(11,B4,2,3,"option",5),W(),q(12,"optgroup",8),he(13,H4,2,2,"option",9),W()()()),2&r&&(z(7),$("ngForOf",o.sdk_rpc_methods),z(2),$("ngForOf",o.sdk_deploy_utils_methods),z(2),$("ngForOf",o.sdk_deploy_methods),z(2),$("ngForOf",o.sdk_contract_methods))},dependencies:[pt,Ka],changeDetection:0})}return e})();const U4=e=>[e],$4=["*"];let fI=(()=>{class e{constructor(t,r){this.stateService=t,this.changeDetectorRef=r,this.submit_action=new je}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action),this.changeDetectorRef.markForCheck()})}submitAction(t){this.submit_action.emit(t)}static#e=this.\u0275fac=function(r){return new(r||e)(O(Kn),O(bn))};static#t=this.\u0275cmp=ht({type:e,selectors:[["comp-submit-action"]],inputs:{class:"class",e2e:"e2e"},outputs:{submit_action:"submit_action"},standalone:!0,features:[Vt],ngContentSelectors:$4,decls:2,vars:4,consts:[["type","button",1,"btn",3,"ngClass","click"]],template:function(r,o){1&r&&(function dv(e){const n=R()[$e][gt];if(!n.projection){const r=n.projection=function Jc(e,n){const t=[];for(let r=0;r{class e{constructor(t,r,o,s,a,u){this.config=t,this.sdk=r,this.resultService=o,this.formService=s,this.errorService=a,this.stateService=u,this.verbosity=me.qY.High,this.setStateSubscription()}setStateSubscription(){this.stateService.getState().subscribe(t=>{t.chain_name&&(this.chain_name=t.chain_name),t.public_key&&(this.public_key=t.public_key),t.private_key&&(this.private_key=t.private_key),t.deploy_json&&(this.deploy_json=t.deploy_json),t.verbosity&&(this.verbosity=t.verbosity),t.select_dict_identifier&&(this.select_dict_identifier=t.select_dict_identifier)})}get_account(t){var r=this;return(0,j.c)(function*(){let o;if(o=t||r.getIdentifier("accountIdentifier")?.value?.trim(),!o){const a="account_identifier is missing";return void(a&&r.errorService.setError(a.toString()))}const s=r.sdk.get_account_options({account_identifier_as_string:o});if(s){r.getIdentifieBlock(s);try{const a=yield r.sdk.get_account(s);return t||r.resultService.setResult(a.toJson()),a}catch(a){return r.errorService.setError(a.toString()),a}}else{const a="get_account_options is missing";a&&r.errorService.setError(a.toString())}})()}get_deploy(){var t=this;return(0,j.c)(function*(){const r=t.getIdentifier("finalizedApprovals")?.value,o=t.getIdentifier("deployHash")?.value?.trim();if(!o){const a="deploy_hash_as_string is missing";return void(a&&t.errorService.setError(a.toString()))}const s=t.sdk.get_deploy_options({deploy_hash_as_string:o});s.finalized_approvals=r;try{const a=yield t.sdk.get_deploy(s);a&&t.resultService.setResult(a.toJson())}catch(a){a&&t.errorService.setError(a.toString())}})()}get_peers(){var t=this;return(0,j.c)(function*(){let r;try{const o=yield t.sdk.get_peers();o&&t.resultService.setResult(o.toJson()),o&&(r=o.peers)}catch(o){o&&t.errorService.setError(o.toString())}return r})()}get_node_status(){var t=this;return(0,j.c)(function*(){const r=yield t.sdk.get_node_status();return r&&t.resultService.setResult(r.toJson()),r})()}get_state_root_hash(t){var r=this;return(0,j.c)(function*(){let o="";const s=r.sdk.get_state_root_hash_options({});if(!s){const a="get_state_root_hash options are missing";a&&r.errorService.setError(a.toString())}if(t)o=(yield r.sdk.get_state_root_hash(s)).toString();else{r.getIdentifieBlock(s);const a=yield r.sdk.get_state_root_hash(s);a&&r.resultService.setResult(a.toJson())}return o})()}get_auction_info(){var t=this;return(0,j.c)(function*(){try{const r=t.sdk.get_auction_info_options({});t.getIdentifieBlock(r);const o=yield t.sdk.get_auction_info(r);o&&t.resultService.setResult(o.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}get_balance(){var t=this;return(0,j.c)(function*(){const r=t.getIdentifier("purseUref")?.value?.trim(),o=t.getIdentifier("stateRootHash")?.value?.trim();if(r)try{const s=t.sdk.get_balance_options({state_root_hash_as_string:o||"",purse_uref_as_string:r}),a=yield t.sdk.get_balance(s);a&&t.resultService.setResult(a.toJson())}catch(s){s&&t.errorService.setError(s.toString())}else{const s="purse_uref_as_string is missing";s&&t.errorService.setError(s.toString())}})()}get_block(){var t=this;return(0,j.c)(function*(){try{const r=t.sdk.get_block_options({});t.getIdentifieBlock(r);const o=yield t.sdk.get_block(r);o&&t.resultService.setResult(o.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}get_block_transfers(){var t=this;return(0,j.c)(function*(){try{const r=t.sdk.get_block_transfers_options({});t.getIdentifieBlock(r);const o=yield t.sdk.get_block_transfers(r);o&&t.resultService.setResult(o.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}get_chainspec(){var t=this;return(0,j.c)(function*(){try{const r=yield t.sdk.get_chainspec(),o=(0,me.M5)(r?.chainspec_bytes.chainspec_bytes);o&&t.resultService.setResult(o)}catch(r){r&&t.errorService.setError(r.toString())}})()}get_era_info(){var t=this;return(0,j.c)(function*(){const r=t.sdk.get_era_info_options({});t.getIdentifieBlock(r);try{const o=yield t.sdk.get_era_info(r);o&&t.resultService.setResult(o.toJson())}catch(o){o&&t.errorService.setError(o.toString())}})()}get_era_summary(){var t=this;return(0,j.c)(function*(){const r=t.sdk.get_era_summary_options({});t.getIdentifieBlock(r);try{const o=yield t.sdk.get_era_summary(r);o&&t.resultService.setResult(o.toJson())}catch(o){o&&t.errorService.setError(o.toString())}})()}get_validator_changes(){var t=this;return(0,j.c)(function*(){try{const r=yield t.sdk.get_validator_changes();r&&t.resultService.setResult(r.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}list_rpcs(){var t=this;return(0,j.c)(function*(){try{const r=yield t.sdk.list_rpcs();r&&t.resultService.setResult(r.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}query_balance(){var t=this;return(0,j.c)(function*(){const r=t.getIdentifier("purseIdentifier")?.value?.trim();if(!r){const s="deploy_hash_as_string is missing";return void(s&&t.errorService.setError(s.toString()))}const o=t.sdk.query_balance_options({purse_identifier_as_string:r});t.getGlobalIdentifier(o);try{const s=yield t.sdk.query_balance(o);s&&t.resultService.setResult(s.balance)}catch(s){s&&t.errorService.setError(s.toString())}})()}query_global_state(){var t=this;return(0,j.c)(function*(){const r=t.getIdentifier("queryPath")?.value?.trim()||"",o=t.getIdentifier("queryKey")?.value?.trim();if(!o){const a="key_as_string is missing";return void(a&&t.errorService.setError(a.toString()))}const s=t.sdk.query_global_state_options({key_as_string:o,path_as_string:r});t.getGlobalIdentifier(s);try{const a=yield t.sdk.query_global_state(s);a&&t.resultService.setResult(a.toJson())}catch(a){a&&t.errorService.setError(a.toString())}})()}deploy(t=!0,r,o){var s=this;return(0,j.c)(function*(){const a=(0,me.Mr)(),u=s.getIdentifier("TTL")?.value?.trim()||"";if(!s.public_key){const v="public_key is missing";return void(v&&s.errorService.setError(v.toString()))}const d=new me.H$(s.chain_name,s.public_key,s.private_key,a,u),f=new me.gh,h=s.getIdentifier("paymentAmount")?.value?.trim();if(!h){const v="paymentAmount is missing";return void(v&&s.errorService.setError(v.toString()))}f.payment_amount=h;const g=s.get_session_params(o);let b;if(r){const v={maybe_block_id_as_string:void 0,maybe_block_identifier:void 0};s.getIdentifieBlock(v);const{maybe_block_id_as_string:I,maybe_block_identifier:k}=v;b=yield s.sdk.speculative_deploy(d,g,f,I,k)}else b=t?yield s.sdk.deploy(d,g,f):s.sdk.make_deploy(d,g,f);if(b){const v=b.toJson();s.deploy_json=(0,me.on)(v,s.verbosity),s.deploy_json&&s.resultService.setResult(v)}return b})()}install(t){var r=this;return(0,j.c)(function*(){const o=r.getIdentifier("paymentAmount")?.value?.trim();if(!o){const d="paymentAmount is missing";return void(d&&r.errorService.setError(d.toString()))}if(!r.public_key||!r.private_key){const d="public_key or private_key is missing";return void(d&&r.errorService.setError(d.toString()))}if(!t?.buffer){const d="wasmBuffer is missing";d&&r.errorService.setError(d.toString())}const a=new me.H$(r.chain_name,r.public_key,r.private_key),u=r.get_session_params(t);try{const d=yield r.sdk.install(a,u,o);d&&r.resultService.setResult(d.toJson())}catch(d){d&&r.errorService.setError(d.toString())}})()}transfer(t=!0,r){var o=this;return(0,j.c)(function*(){const s=(0,me.Mr)(),a=o.getIdentifier("TTL")?.value?.trim()||"";if(!o.public_key){const b="public_key is missing";return void(b&&o.errorService.setError(b.toString()))}const u=new me.H$(o.chain_name,o.public_key,o.private_key,s,a),d=new me.gh;d.payment_amount=o.config.gas_fee_transfer.toString();const f=o.getIdentifier("transferAmount")?.value?.trim(),h=o.getIdentifier("targetAccount")?.value?.trim();if(!f||!h){const b="transfer_amount or target_account is missing";return void(b&&o.errorService.setError(b.toString()))}let g;if(r){const b={maybe_block_id_as_string:void 0,maybe_block_identifier:void 0};o.getIdentifieBlock(b);const{maybe_block_id_as_string:v,maybe_block_identifier:I}=b;g=yield o.sdk.speculative_transfer(f,h,void 0,u,d,v,I)}else g=t?yield o.sdk.transfer(f,h,void 0,u,d):yield o.sdk.make_transfer(f,h,void 0,u,d);if(g){const b=g.toJson();o.deploy_json=(0,me.on)(b,o.verbosity),o.deploy_json&&o.resultService.setResult(b)}return g})()}put_deploy(){var t=this;return(0,j.c)(function*(){const r=t.getIdentifier("deployJson")?.value?.trim();if(!r){const a="deployJson is missing";return void(a&&t.errorService.setError(a.toString()))}const o=new me.ob(JSON.parse(r)),s=yield t.sdk.put_deploy(o);return s&&t.resultService.setResult(s.toJson()),s})()}speculative_exec(){var t=this;return(0,j.c)(function*(){const r=t.getIdentifier("deployJson")?.value?.trim();if(!r){const u="signed_deploy_as_string is missing";return void(u&&t.errorService.setError(u.toString()))}const o=new me.ob(JSON.parse(r)),s=t.sdk.speculative_exec_options({deploy:o.toJson()});t.getIdentifieBlock(s);const a=yield t.sdk.speculative_exec(s);return a&&t.resultService.setResult(a.toJson()),a})()}sign_deploy(){var t=this;return(0,j.c)(function*(){if(!t.private_key){const s="private_key is missing";return void(s&&t.errorService.setError(s.toString()))}const r=t.getIdentifier("deployJson")?.value?.trim();if(!r){const s="signed_deploy_as_string is missing";return void(s&&t.errorService.setError(s.toString()))}let o;try{o=new me.ob(JSON.parse(r))}catch{const s="Error parsing deploy";return void(s&&t.errorService.setError(s.toString()))}if(o)o=o.sign(t.private_key),t.deploy_json=(0,me.on)(o.toJson(),t.verbosity),t.getIdentifier("deployJson")?.setValue(t.deploy_json);else{const s="signed_deploy_as_string is missing";s&&t.errorService.setError(s.toString())}})()}make_deploy(t){var r=this;return(0,j.c)(function*(){yield r.deploy(!1,!1,t)})()}make_transfer(){var t=this;return(0,j.c)(function*(){yield t.transfer(!1)})()}speculative_transfer(){var t=this;return(0,j.c)(function*(){yield t.transfer(!1,!0)})()}speculative_deploy(t){var r=this;return(0,j.c)(function*(){yield r.deploy(!1,!0,t)})()}call_entrypoint(){var t=this;return(0,j.c)(function*(){if(!t.public_key||!t.private_key){const a="public_key or private_key is missing";return void(a&&t.errorService.setError(a.toString()))}const r=new me.H$(t.chain_name,t.public_key,t.private_key),o=t.get_session_params(),s=t.getIdentifier("paymentAmount")?.value?.trim();if(s)try{const a=yield t.sdk.call_entrypoint(r,o,s);a&&t.resultService.setResult(a.toJson())}catch(a){a&&t.errorService.setError(a.toString())}else{const a="paymentAmount is missing";a&&t.errorService.setError(a.toString())}})()}query_contract_dict(){var t=this;return(0,j.c)(function*(){const r=t.getIdentifier("stateRootHash")?.value?.trim(),o=t.getIdentifier("itemKey")?.value?.trim();if(!o){const f="itemKey is missing";return void(f&&t.errorService.setError(f.toString()))}const s=t.getIdentifier("seedContractHash")?.value?.trim()||"",a=t.getIdentifier("seedName")?.value?.trim();if(!a){const f="seedName is missing";return void(f&&t.errorService.setError(f.toString()))}let u;if(s&&(u=new me.Ur,u.setContractNamedKey(s,a,o)),!u){const f="dictionary_item_params is missing";return void(f&&t.errorService.setError(f.toString()))}const d=t.sdk.query_contract_dict_options({state_root_hash_as_string:r||""});d.dictionary_item_params=u;try{const f=yield t.sdk.query_contract_dict(d);f&&t.resultService.setResult(f.toJson())}catch(f){f&&t.errorService.setError(f.toString())}})()}query_contract_key(){var t=this;return(0,j.c)(function*(){const r=t.getIdentifier("stateRootHash")?.value?.trim(),o=t.getIdentifier("queryKey")?.value?.trim();if(!o){const u="key_as_string is missing";return void(u&&t.errorService.setError(u.toString()))}const s=t.getIdentifier("queryPath")?.value.toString().trim().replace(/^\/+|\/+$/g,""),a=t.sdk.query_contract_key_options({state_root_hash_as_string:r||"",key_as_string:o,path_as_string:s});try{const u=yield t.sdk.query_contract_key(a);u&&t.resultService.setResult(u.toJson())}catch(u){u&&t.errorService.setError(u.toString())}})()}get_dictionary_item(){var t=this;return(0,j.c)(function*(){const r=t.getIdentifier("stateRootHash")?.value?.trim(),o=t.getIdentifier("itemKey")?.value?.trim(),s=t.getIdentifier("seedKey")?.value?.trim();if(!o&&!s){const f="seedKey or itemKey is missing";return void(f&&t.errorService.setError(f.toString()))}const a=t.getIdentifier("seedUref")?.value?.trim();let u;if(a&&"newFromSeedUref"===t.select_dict_identifier)u=me.kv.newFromSeedUref(a,o);else if(s&&"newFromDictionaryKey"===t.select_dict_identifier)u=me.kv.newFromDictionaryKey(s);else{const f=t.getIdentifier("seedContractHash")?.value?.trim(),h=t.getIdentifier("seedAccountHash")?.value?.trim(),g=t.getIdentifier("seedName")?.value?.trim();if(!g){const b="seed_name is missing";return void(b&&t.errorService.setError(b.toString()))}f&&"newFromContractInfo"===t.select_dict_identifier?u=me.kv.newFromContractInfo(f,g,o):h&&"newFromAccountInfo"===t.select_dict_identifier&&(u=me.kv.newFromAccountInfo(h,g,o))}if(!u){const f="dictionary_item_identifier is missing";return void(f&&t.errorService.setError(f.toString()))}const d=t.sdk.get_dictionary_item_options({state_root_hash_as_string:r||""});d.dictionary_item_identifier=u;try{const f=yield t.sdk.state_get_dictionary_item(d);f&&t.resultService.setResult(f.toJson())}catch(f){f&&t.errorService.setError(f.toString())}})()}getIdentifier(t){return this.formService.form.get(t)}getIdentifieBlock(t){const r=this.getIdentifier("blockIdentifierHeight")?.value?.trim(),o=this.getIdentifier("blockIdentifierHash")?.value?.trim();if(o)t.maybe_block_id_as_string=o,t.maybe_block_identifier=void 0;else if(r){const s=me.y0.fromHeight(BigInt(r));t.maybe_block_id_as_string=void 0,t.maybe_block_identifier=s}else t.maybe_block_id_as_string=void 0,t.maybe_block_identifier=void 0}getGlobalIdentifier(t){const r=this.getIdentifier("stateRootHash")?.value?.trim();let o;if(r)o=me.cH.fromStateRootHash(new me.u(r));else{const s=this.getIdentifier("blockIdentifierHeight")?.value?.trim(),a=this.getIdentifier("blockIdentifierHash")?.value?.trim();a?o=me.cH.fromBlockHash(new me.Mt(a)):s&&(o=me.cH.fromBlockHeight(BigInt(s)))}o&&(t.global_state_identifier=o)}get_session_params(t){const r=new me.uC,o=this.getIdentifier("entryPoint")?.value?.trim();o&&(r.session_entry_point=o);const s=this.getIdentifier("argsSimple")?.value?.trim().split(",").map(g=>g.trim()).filter(g=>""!==g),a=this.getIdentifier("argsJson")?.value?.trim();s?.length?r.session_args_simple=s:a&&(r.session_args_json=a);const u=this.getIdentifier("callPackage")?.value,d=this.getIdentifier("sessionHash")?.value?.trim(),f=this.getIdentifier("sessionName")?.value?.trim();u?d?r.session_package_hash=d:f&&(r.session_package_name=f):d?r.session_hash=d:f&&(r.session_name=f),t&&(r.session_bytes=me.Km.fromUint8Array(t));const h=this.getIdentifier("version")?.value?.trim();return h&&(r.session_version=h),r}static#e=this.\u0275fac=function(r){return new(r||e)(X(Fr),X(rc),X(ud),X(cd),X(ld),X(Kn))};static#t=this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const z4=["publicKeyElt"],q4=e=>[e];let hI=(()=>{class e{constructor(t,r,o,s){this.config=t,this.stateService=r,this.clientService=o,this.changeDetectorRef=s}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){var t=this;this.stateSubscription=this.stateService.getState().subscribe(function(){var r=(0,j.c)(function*(o){o.action&&(t.action=o.action),o.public_key&&t.public_key!=o.public_key&&(o.public_key&&(t.public_key=o.public_key),o.private_key&&(t.private_key=o.private_key),yield t.updateAccount()),t.changeDetectorRef.markForCheck()});return function(o){return r.apply(this,arguments)}}())}onPublicKeyChange(){var t=this;return(0,j.c)(function*(){const r=t.publicKeyElt&&t.publicKeyElt.nativeElement.value.toString().trim();r!==t.public_key&&t.stateService.setState({public_key:r,private_key:""})})()}isInvalid(){return!(this.config.action_needs_public_key&&!this.config.action_needs_public_key?.includes(this.action)||this.publicKeyElt?.nativeElement.value?.trim())}updateAccount(){var t=this;return(0,j.c)(function*(){const r=yield t.clientService.get_account(t.public_key);if(!r.account)return;const o=r?.account?.account_hash,s=r?.account?.main_purse;t.stateService.setState({account_hash:o,main_purse:s})})()}static#e=this.\u0275fac=function(r){return new(r||e)(O(Fr),O(Kn),O(pI),O(bn))};static#t=this.\u0275cmp=ht({type:e,selectors:[["comp-public-key"]],viewQuery:function(r,o){if(1&r&&ln(z4,5),2&r){let s;un(s=dn())&&(o.publicKeyElt=s.first)}},standalone:!0,features:[Vt],decls:7,vars:4,consts:[["for","publicKeyElt",1,"input-group-text"],[1,"d-none","d-md-inline","d-lg-none"],[1,"d-md-none","d-lg-inline"],["type","search","name","public_key","placeholder","e.g. 0x","id","publicKeyElt","e2e-id","publicKeyElt",1,"form-control","form-control-xs",3,"value","ngClass","change"],["publicKeyElt",""]],template:function(r,o){1&r&&(q(0,"label",0)(1,"span",1),De(2,"Pub. Key"),W(),q(3,"span",2),De(4,"Public Key"),W()(),q(5,"input",3,4),ve("change",function(){return o.onPublicKeyChange()}),W()),2&r&&(z(5),$("value",o.public_key||"")("ngClass",_s(2,q4,o.isInvalid()?"is-invalid":"")))},dependencies:[pt,Wo],changeDetection:0})}return e})();const G4=["privateKeyElt"],W4=e=>[e];function J4(e,n){if(1&e){const t=qt();q(0,"button",4),ve("click",function(){return kt(t),Tt(Y().onPrivateKeyClick())}),De(1," Load Private Key\n"),W()}if(2&e){const t=Y();$("ngClass",_s(1,W4,t.isInvalid()?"btn-warning":"btn-secondary"))}}function K4(e,n){if(1&e){const t=qt();q(0,"button",5),ve("click",function(){return kt(t),Tt(Y().onPrivateKeyClick())}),De(1," Private Key Loaded\n"),W()}}let gI=(()=>{class e{constructor(t,r,o){this.config=t,this.stateService=r,this.changeDetectorRef=o}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){var t=this;this.stateSubscription=this.stateService.getState().subscribe(function(){var r=(0,j.c)(function*(o){o.action&&(t.action=o.action),t.changeDetectorRef.markForCheck()});return function(o){return r.apply(this,arguments)}}())}onPrivateKeyClick(){this.privateKeyElt.nativeElement.click()}onPemSelected(t){var r=this;return(0,j.c)(function*(){const o=t.target.files?.item(0);let s="";if(o){let a=yield o.text();if(!a.trim())return;a=a.trim(),s=(0,me.HM)(a),s&&(r.private_key=a)}else r.private_key="",r.privateKeyElt.nativeElement.value="";r.stateService.setState({public_key:s,private_key:r.private_key}),r.changeDetectorRef.markForCheck()})()}isInvalid(){return!(this.config.action_needs_private_key&&!this.config.action_needs_private_key?.includes(this.action)||this.private_key)}static#e=this.\u0275fac=function(r){return new(r||e)(O(Fr),O(Kn),O(bn))};static#t=this.\u0275cmp=ht({type:e,selectors:[["comp-private-key"]],viewQuery:function(r,o){if(1&r&&ln(G4,5),2&r){let s;un(s=dn())&&(o.privateKeyElt=s.first)}},standalone:!0,features:[Vt],decls:4,vars:2,consts:[["name","private_key","type","file","id","privateKeyElt","accept",".pem","e2e-id","privateKeyElt",1,"visually-hidden",3,"change"],["privateKeyElt",""],["class","btn",3,"ngClass","click",4,"ngIf"],["class","btn btn-light",3,"click",4,"ngIf"],[1,"btn",3,"ngClass","click"],[1,"btn","btn-light",3,"click"]],template:function(r,o){1&r&&(q(0,"input",0,1),ve("change",function(a){return o.onPemSelected(a)}),W(),he(2,J4,2,3,"button",2)(3,K4,2,0,"button",3)),2&r&&(z(2),$("ngIf",!o.private_key),z(),$("ngIf",o.private_key))},dependencies:[pt,Wo,Gn],changeDetection:0})}return e})();const Q4=["selectDictIdentifierElt"];function Z4(e,n){if(1&e){const t=qt();q(0,"comp-submit-action",11),ve("submit_action",function(o){return kt(t),Tt(Y().submitAction(o))}),De(1,"Go"),W()}2&e&&(op("btn-success ms-1 ms-sm-2 ms-xl-3"),$("e2e","submit"))}function Y4(e,n){if(1&e){const t=qt();q(0,"comp-submit-action",11),ve("submit_action",function(o){return kt(t),Tt(Y().submitAction(o))}),De(1,"Sign "),W()}2&e&&(op("btn-warning mt-3"),$("e2e","sign"))}const mI=()=>["sign_deploy"];(function HL(e,n){return zx({rootComponent:e,...OC(n)})})((()=>{class e{constructor(t,r,o,s,a,u,d,f){this.sdk=t,this.config=r,this.env=o,this.clientService=s,this.resultService=a,this.stateService=u,this.formService=d,this.errorService=f,this.form=this.formService.form}ngOnInit(){var t=this;return(0,j.c)(function*(){console.info(t.sdk)})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action)})}ngAfterViewInit(){var t=this;return(0,j.c)(function*(){const o=t.config.default_action.toString();try{(yield t.get_node_status())&&(yield t.get_state_root_hash(!0),t.stateService.setState({action:o}))}catch(s){console.error(s),t.errorService.setError(s)}t.setStateSubscription()})()}selectAction(t){var r=this;return(0,j.c)(function*(){yield r.cleanResult(),r.stateService.setState({action:t}),yield r.handleAction(t)})()}submitAction(t){var r=this;return(0,j.c)(function*(){yield r.cleanResult(),(r.form.disabled||r.form.valid)&&(yield r.handleAction(t,!0))})()}handleAction(t,r){var o=this;return(0,j.c)(function*(){const s=o[t];if(s&&"function"==typeof s)r&&(yield s.bind(o)());else{const a=`Method ${t} is not defined on the component.`;console.error(a),o.errorService.setError(a)}})()}onWasmSelected(t){var r=this;return(0,j.c)(function*(){t&&(r.wasm=t)})()}cleanResult(){var t=this;return(0,j.c)(function*(){t.errorService.setError(""),yield t.resultService.setResult("")})()}call_entrypoint(){var t=this;return(0,j.c)(function*(){return yield t.clientService.call_entrypoint()})()}deploy(t=!0,r){var o=this;return(0,j.c)(function*(){return yield o.clientService.deploy(t,r,o.wasm)})()}get_account(t){var r=this;return(0,j.c)(function*(){return yield r.clientService.get_account(t)})()}get_auction_info(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_auction_info()})()}get_balance(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_balance()})()}get_block(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_block()})()}get_block_transfers(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_block_transfers()})()}get_chainspec(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_chainspec()})()}get_deploy(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_deploy()})()}get_dictionary_item(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_dictionary_item()})()}get_era_info(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_era_info()})()}get_era_summary(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_era_summary()})()}get_node_status(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_node_status()})()}get_peers(){var t=this;return(0,j.c)(function*(){return t.peers=yield t.clientService.get_peers(),t.peers})()}get_state_root_hash(t){var r=this;return(0,j.c)(function*(){const o=yield r.clientService.get_state_root_hash(t);return r.stateService.setState({state_root_hash:o}),o})()}get_validator_changes(){var t=this;return(0,j.c)(function*(){return yield t.clientService.get_validator_changes()})()}install(){var t=this;return(0,j.c)(function*(){return yield t.clientService.install(t.wasm)})()}list_rpcs(){var t=this;return(0,j.c)(function*(){return yield t.clientService.list_rpcs()})()}make_deploy(){var t=this;return(0,j.c)(function*(){return yield t.clientService.make_deploy(t.wasm)})()}make_transfer(){var t=this;return(0,j.c)(function*(){return yield t.clientService.make_transfer()})()}put_deploy(){var t=this;return(0,j.c)(function*(){return yield t.clientService.put_deploy()})()}query_balance(){var t=this;return(0,j.c)(function*(){return yield t.clientService.query_balance()})()}query_contract_dict(){var t=this;return(0,j.c)(function*(){return yield t.clientService.query_contract_dict()})()}query_contract_key(){var t=this;return(0,j.c)(function*(){return yield t.clientService.query_contract_key()})()}query_global_state(){var t=this;return(0,j.c)(function*(){return yield t.clientService.query_global_state()})()}sign_deploy(){var t=this;return(0,j.c)(function*(){return yield t.clientService.sign_deploy()})()}speculative_deploy(){var t=this;return(0,j.c)(function*(){return yield t.clientService.speculative_deploy(t.wasm)})()}speculative_exec(){var t=this;return(0,j.c)(function*(){return yield t.clientService.speculative_exec()})()}speculative_transfer(){var t=this;return(0,j.c)(function*(){return yield t.clientService.speculative_transfer()})()}transfer(t=!0,r){var o=this;return(0,j.c)(function*(){return yield o.clientService.transfer(t,r)})()}static#e=this.\u0275fac=function(r){return new(r||e)(O(rc),O(Fr),O(bh),O(pI),O(ud),O(Kn),O(cd),O(ld))};static#t=this.\u0275cmp=ht({type:e,selectors:[["app-root"]],viewQuery:function(r,o){if(1&r&&ln(Q4,5),2&r){let s;un(s=dn())&&(o.selectDictIdentifierElt=s.first)}},standalone:!0,features:[Vt],decls:15,vars:6,consts:[[1,"container"],[3,"peers"],[3,"get_state_root_hash_output"],[1,"row","flex-column-reverse","flex-column-reverse","flex-md-row"],[1,"col-12","col-md-6","col-lg-5","my-1","my-md-0","d-flex","justify-content-between"],[1,"w-100",3,"select_action"],[3,"class","e2e","submit_action",4,"ngIf"],[1,"col-12","col-md-6","col-lg-7","my-1","my-md-0","d-flex","justify-content-end","ps-md-0"],[1,"input-group"],[1,"d-flex","justify-content-end","ms-1","ms-sm-2","ms-xl-3"],[3,"form","wasm_selected"],[3,"e2e","submit_action"]],template:function(r,o){1&r&&(q(0,"main",0),At(1,"comp-header",1),q(2,"comp-status",2),ve("get_state_root_hash_output",function(a){return o.get_state_root_hash(a)}),W(),q(3,"div",3)(4,"div",4)(5,"comp-action",5),ve("select_action",function(a){return o.selectAction(a)}),W(),he(6,Z4,2,3,"comp-submit-action",6),W(),q(7,"div",7),At(8,"comp-public-key",8),q(9,"div",9),At(10,"comp-private-key"),W()()(),q(11,"comp-form",10),ve("wasm_selected",function(a){return o.onWasmSelected(a)}),W(),he(12,Y4,2,3,"comp-submit-action",6),At(13,"comp-error")(14,"comp-result"),W()),2&r&&(z(),$("peers",o.peers),z(5),$("ngIf",!bp(4,mI).includes(o.action)),z(5),$("form",o.form),z(),$("ngIf",bp(5,mI).includes(o.action)))},dependencies:[pt,Gn,Cs,iI,cI,lI,uI,dI,_I,fI,hI,gI],changeDetection:0})}return e})(),{providers:[{provide:bh,useValue:Dh},{provide:Fr,useValue:vh},{provide:jC,useValue:vh.wasm_asset_path},{provide:BC,useValue:Dh.node_address},{provide:HC,useValue:me.qY[vh.verbosity]},Gg([yL,eV,I4])]}).then(()=>{}).catch(()=>{})},1376:Qn=>{var Rr=0;function Dt(l,ce){var L=ce.data;if(Array.isArray(L)&&!(L.length<2)){var ut=L[0],Ct=L[1],C=L[2],F=l._callbacks[ut];F&&(delete l._callbacks[ut],F(Ct,C))}}function j(l){var ce=this;ce._worker=l,ce._callbacks={},l.addEventListener("message",function(L){Dt(ce,L)})}j.prototype.postMessage=function(l){var ce=this,L=Rr++,ut=[L,l];return new Promise(function(Ct,C){if(ce._callbacks[L]=function(D,Qt){if(D)return C(new Error(D.message));Ct(Qt)},typeof ce._worker.controller<"u"){var F=new MessageChannel;F.port1.onmessage=function(D){Dt(ce,D)},ce._worker.controller.postMessage(ut,[F.port2])}else ce._worker.postMessage(ut)})},Qn.exports=j},8596:(Qn,Rr,Dt)=>{Dt.d(Rr,{EB:()=>Nd,H$:()=>En,HM:()=>Yh,Km:()=>It,M5:()=>uc,Mr:()=>Ts,Mt:()=>Pn,Qb:()=>fd,Ur:()=>pr,cH:()=>Xt,cp:()=>Do,gh:()=>fn,kv:()=>Yt,ob:()=>Ce,on:()=>pd,qY:()=>Xe,u:()=>Ie,uC:()=>gr,y0:()=>Ue});var j=Dt(1528);let l;Qn=Dt.hmd(Qn);const ce=new Array(128).fill(void 0);function L(m){return ce[m]}ce.push(void 0,null,!0,!1);let ut=ce.length;function C(m){const i=L(m);return function Ct(m){m<132||(ce[m]=ut,ut=m)}(m),i}function F(m){ut===ce.length&&ce.push(ce.length+1);const i=ut;return ut=ce[i],ce[i]=m,i}let D=0,Qt=null;function Bt(){return(null===Qt||0===Qt.byteLength)&&(Qt=new Uint8Array(l.memory.buffer)),Qt}const Zn=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},dd="function"==typeof Zn.encodeInto?function(m,i){return Zn.encodeInto(m,i)}:function(m,i){const c=Zn.encode(m);return i.set(c),{read:m.length,written:c.length}};function S(m,i,c){if(void 0===c){const A=Zn.encode(m),K=i(A.length,1)>>>0;return Bt().subarray(K,K+A.length).set(A),D=A.length,K}let _=m.length,p=i(_,1)>>>0;const y=Bt();let M=0;for(;M<_;M++){const A=m.charCodeAt(M);if(A>127)break;y[p+M]=A}if(M!==_){0!==M&&(m=m.slice(M)),p=c(p,_,_=M+3*m.length,1)>>>0;const A=Bt().subarray(p+M,p+_);M+=dd(m,A).written,p=c(p,_,M,1)>>>0}return D=M,p}function E(m){return null==m}let xr=null;function w(){return(null===xr||0===xr.byteLength)&&(xr=new Int32Array(l.memory.buffer)),xr}const Ss=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};function P(m,i){return m>>>=0,Ss.decode(Bt().subarray(m,m+i))}function oo(m){const i=typeof m;if("number"==i||"boolean"==i||null==m)return`${m}`;if("string"==i)return`"${m}"`;if("symbol"==i){const p=m.description;return null==p?"Symbol":`Symbol(${p})`}if("function"==i){const p=m.name;return"string"==typeof p&&p.length>0?`Function(${p})`:"Function"}if(Array.isArray(m)){const p=m.length;let y="[";p>0&&(y+=oo(m[0]));for(let M=1;M1))return toString.call(m);if(_=c[1],"Object"==_)try{return"Object("+JSON.stringify(m)+")"}catch{return"Object"}return m instanceof Error?`${m.name}: ${m.message}\n${m.stack}`:_}typeof TextDecoder<"u"&&Ss.decode();const Ms=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>{l.__wbindgen_export_2.get(m.dtor)(m.a,m.b)});function ks(m,i,c,_){const p={a:m,b:i,cnt:1,dtor:c},y=(...M)=>{p.cnt++;const A=p.a;p.a=0;try{return _(A,p.b,...M)}finally{0==--p.cnt?(l.__wbindgen_export_2.get(p.dtor)(A,p.b),Ms.unregister(p)):p.a=A}};return y.original=p,Ms.register(y,p,p),y}function Yo(m,i,c){l.wasm_bindgen__convert__closures__invoke1_mut__h9d9c475caaf60441(m,i,F(c))}function io(m,i,c){l.wasm_bindgen__convert__closures__invoke1_mut__h2f42510bc02d2266(m,i,F(c))}function N(m,i){if(!(m instanceof i))throw new Error(`expected instance of ${i.name}`);return m.ptr}function uc(m){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(m,l.__wbindgen_malloc,l.__wbindgen_realloc);l.hexToString(y,M,D);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}function fd(m){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(m,l.__wbindgen_malloc,l.__wbindgen_realloc);l.motesToCSPR(y,M,D);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}function pd(m,i){return C(l.jsonPrettyPrint(F(m),E(i)?3:i))}function Yh(m){const i=S(m,l.__wbindgen_malloc,l.__wbindgen_realloc);return C(l.privateToPublicKey(i,D))}function Ts(){return C(l.getTimestamp())}function Zt(m,i){const c=i(1*m.length,1)>>>0;return Bt().set(m,c/1),D=m.length,c}let Xo=null;function _c(m,i){const c=i(4*m.length,4)>>>0,_=function dc(){return(null===Xo||0===Xo.byteLength)&&(Xo=new Uint32Array(l.memory.buffer)),Xo}();for(let p=0;p"u"||new FinalizationRegistry(m=>l.__wbg_accessrights_free(m>>>0));const ei=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_accounthash_free(m>>>0));class Qe{static __wrap(i){i>>>=0;const c=Object.create(Qe.prototype);return c.__wbg_ptr=i,ei.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,ei.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_accounthash_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.accounthash_new(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromFormattedStr(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.accounthash_fromFormattedStr(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return Qe.__wrap(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromPublicKey(i){N(i,en);var c=i.__destroy_into_raw();const _=l.accounthash_fromPublicKey(c);return Qe.__wrap(_)}toFormattedString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.accounthash_toFormattedString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}toHexString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.accounthash_toHexString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}static fromUint8Array(i){const c=Zt(i,l.__wbindgen_malloc),p=l.accounthash_fromUint8Array(c,D);return Qe.__wrap(p)}toJson(){return C(l.accounthash_toJson(this.__wbg_ptr))}}const Ns=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_accountidentifier_free(m>>>0));class Yn{static __wrap(i){i>>>=0;const c=Object.create(Yn.prototype);return c.__wbg_ptr=i,Ns.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Ns.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_accountidentifier_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.accountidentifier_fromFormattedStr(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromFormattedStr(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.accountidentifier_fromFormattedStr(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return Yn.__wrap(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromPublicKey(i){N(i,en);var c=i.__destroy_into_raw();const _=l.accountidentifier_fromPublicKey(c);return Yn.__wrap(_)}static fromAccountHash(i){N(i,Qe);var c=i.__destroy_into_raw();const _=l.accountidentifier_fromAccountHash(c);return Yn.__wrap(_)}toJson(){return C(l.accountidentifier_toJson(this.__wbg_ptr))}}const Fs=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_argssimple_free(m>>>0));class On{static __wrap(i){i>>>=0;const c=Object.create(On.prototype);return c.__wbg_ptr=i,Fs.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Fs.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_argssimple_free(i)}}const ao=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_blockhash_free(m>>>0));class Pn{static __wrap(i){i>>>=0;const c=Object.create(Pn.prototype);return c.__wbg_ptr=i,ao.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,ao.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_blockhash_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.blockhash_new(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromDigest(i){try{const M=l.__wbindgen_add_to_stack_pointer(-16);N(i,Ie);var c=i.__destroy_into_raw();l.blockhash_fromDigest(M,c);var _=w()[M/4+0],p=w()[M/4+1];if(w()[M/4+2])throw C(p);return Pn.__wrap(_)}finally{l.__wbindgen_add_to_stack_pointer(16)}}toJson(){return C(l.blockhash_toJson(this.__wbg_ptr))}toString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.blockhash_toString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}}const Rs=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_blockidentifier_free(m>>>0));class Ue{static __wrap(i){i>>>=0;const c=Object.create(Ue.prototype);return c.__wbg_ptr=i,Rs.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Rs.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_blockidentifier_free(i)}constructor(i){N(i,Ue);var c=i.__destroy_into_raw();const _=l.blockidentifier_new(c);return this.__wbg_ptr=_>>>0,this}static from_hash(i){N(i,Pn);var c=i.__destroy_into_raw();const _=l.blockidentifier_from_hash(c);return Ue.__wrap(_)}static fromHeight(i){const c=l.blockidentifier_fromHeight(i);return Ue.__wrap(c)}toJson(){return C(l.blockidentifier_toJson(this.__wbg_ptr))}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_body_free(m>>>0));const ni=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_bytes_free(m>>>0));class It{static __wrap(i){i>>>=0;const c=Object.create(It.prototype);return c.__wbg_ptr=i,ni.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,ni.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_bytes_free(i)}constructor(){const i=l.bytes_new();return this.__wbg_ptr=i>>>0,this}static fromUint8Array(i){const c=l.bytes_fromUint8Array(F(i));return It.__wrap(c)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_cltype_free(m>>>0));const ri=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_contracthash_free(m>>>0));class lo{static __wrap(i){i>>>=0;const c=Object.create(lo.prototype);return c.__wbg_ptr=i,ri.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,ri.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_contracthash_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.contracthash_fromString(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromFormattedStr(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.contracthash_fromFormattedStr(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return lo.__wrap(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}toFormattedString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.contracthash_toFormattedString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}static fromUint8Array(i){const c=Zt(i,l.__wbindgen_malloc),p=l.contracthash_fromUint8Array(c,D);return lo.__wrap(p)}}const oi=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_contractpackagehash_free(m>>>0));class uo{static __wrap(i){i>>>=0;const c=Object.create(uo.prototype);return c.__wbg_ptr=i,oi.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,oi.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_contractpackagehash_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.contractpackagehash_fromString(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromFormattedStr(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.contractpackagehash_fromFormattedStr(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return uo.__wrap(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}toFormattedString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.contractpackagehash_toFormattedString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}static fromUint8Array(i){const c=Zt(i,l.__wbindgen_malloc),p=l.contractpackagehash_fromUint8Array(c,D);return uo.__wrap(p)}}const ii=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_deploy_free(m>>>0));class Ce{static __wrap(i){i>>>=0;const c=Object.create(Ce.prototype);return c.__wbg_ptr=i,ii.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,ii.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_deploy_free(i)}constructor(i){const c=l.deploy_new(F(i));return this.__wbg_ptr=c>>>0,this}toJson(){return C(l.deploy_toJson(this.__wbg_ptr))}static withPaymentAndSession(i,c,_){try{const Q=l.__wbindgen_add_to_stack_pointer(-16);N(i,En);var p=i.__destroy_into_raw();N(c,gr);var y=c.__destroy_into_raw();N(_,fn);var M=_.__destroy_into_raw();l.deploy_withPaymentAndSession(Q,p,y,M);var A=w()[Q/4+0],K=w()[Q/4+1];if(w()[Q/4+2])throw C(K);return Ce.__wrap(A)}finally{l.__wbindgen_add_to_stack_pointer(16)}}static withTransfer(i,c,_,p,y){try{const _e=l.__wbindgen_add_to_stack_pointer(-16),mt=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),nt=D,_t=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),rt=D;var M=E(_)?0:S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),A=D;N(p,En);var K=p.__destroy_into_raw();N(y,fn);var ie=y.__destroy_into_raw();l.deploy_withTransfer(_e,mt,nt,_t,rt,M,A,K,ie);var Q=w()[_e/4+0],ke=w()[_e/4+1];if(w()[_e/4+2])throw C(ke);return Ce.__wrap(Q)}finally{l.__wbindgen_add_to_stack_pointer(16)}}withTTL(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;var y=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);const A=l.deploy_withTTL(this.__wbg_ptr,_,p,y,D);return Ce.__wrap(A)}withTimestamp(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;var y=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);const A=l.deploy_withTimestamp(this.__wbg_ptr,_,p,y,D);return Ce.__wrap(A)}withChainName(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;var y=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);const A=l.deploy_withChainName(this.__wbg_ptr,_,p,y,D);return Ce.__wrap(A)}withAccount(i,c){N(i,en);var _=i.__destroy_into_raw(),p=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);const M=l.deploy_withAccount(this.__wbg_ptr,_,p,D);return Ce.__wrap(M)}withEntryPointName(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;var y=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);const A=l.deploy_withEntryPointName(this.__wbg_ptr,_,p,y,D);return Ce.__wrap(A)}withHash(i,c){N(i,lo);var _=i.__destroy_into_raw(),p=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);const M=l.deploy_withHash(this.__wbg_ptr,_,p,D);return Ce.__wrap(M)}withPackageHash(i,c){N(i,uo);var _=i.__destroy_into_raw(),p=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);const M=l.deploy_withPackageHash(this.__wbg_ptr,_,p,D);return Ce.__wrap(M)}withModuleBytes(i,c){N(i,It);var _=i.__destroy_into_raw(),p=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);const M=l.deploy_withModuleBytes(this.__wbg_ptr,_,p,D);return Ce.__wrap(M)}withSecretKey(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);const p=l.deploy_withSecretKey(this.__wbg_ptr,c,D);return Ce.__wrap(p)}withStandardPayment(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;var y=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);const A=l.deploy_withStandardPayment(this.__wbg_ptr,_,p,y,D);return Ce.__wrap(A)}withPayment(i,c){var _=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;const y=l.deploy_withPayment(this.__wbg_ptr,F(i),_,p);return Ce.__wrap(y)}withSession(i,c){var _=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;const y=l.deploy_withSession(this.__wbg_ptr,F(i),_,p);return Ce.__wrap(y)}validateDeploySize(){return 0!==l.deploy_validateDeploySize(this.__wbg_ptr)}get hash(){const i=l.deploy_hash(this.__wbg_ptr);return Cn.__wrap(i)}sign(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),p=l.deploy_sign(this.__wbg_ptr,c,D);return Ce.__wrap(p)}TTL(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.deploy_TTL(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}timestamp(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.deploy_timestamp(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}chainName(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.deploy_chainName(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}account(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.deploy_account(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}args(){return C(l.deploy_args(this.__wbg_ptr))}addArg(i,c){var _=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;const y=l.deploy_addArg(this.__wbg_ptr,F(i),_,p);return Ce.__wrap(y)}}const pc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_deployhash_free(m>>>0));class Cn{static __wrap(i){i>>>=0;const c=Object.create(Cn.prototype);return c.__wbg_ptr=i,pc.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,pc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_deployhash_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.deployhash_new(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromDigest(i){try{const M=l.__wbindgen_add_to_stack_pointer(-16);N(i,Ie);var c=i.__destroy_into_raw();l.deployhash_fromDigest(M,c);var _=w()[M/4+0],p=w()[M/4+1];if(w()[M/4+2])throw C(p);return Cn.__wrap(_)}finally{l.__wbindgen_add_to_stack_pointer(16)}}toJson(){return C(l.deployhash_toJson(this.__wbg_ptr))}toString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.deployhash_toString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_deployprocessed_free(m>>>0));const yd=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_deploystrparams_free(m>>>0));class En{__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,yd.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_deploystrparams_free(i)}constructor(i,c,_,p,y){const M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),A=D,K=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),ie=D;var Q=E(_)?0:S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),ke=D,we=E(p)?0:S(p,l.__wbindgen_malloc,l.__wbindgen_realloc),_e=D,mt=E(y)?0:S(y,l.__wbindgen_malloc,l.__wbindgen_realloc);const _t=l.deploystrparams_new(M,A,K,ie,Q,ke,we,_e,mt,D);return this.__wbg_ptr=_t>>>0,this}get secret_key(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.deploystrparams_secret_key(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set secret_key(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.deploystrparams_set_secret_key(this.__wbg_ptr,c,D)}get timestamp(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.deploystrparams_timestamp(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set timestamp(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.deploystrparams_set_timestamp(this.__wbg_ptr,c,D)}setDefaultTimestamp(){l.deploystrparams_setDefaultTimestamp(this.__wbg_ptr)}get ttl(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.deploystrparams_ttl(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set ttl(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.deploystrparams_set_ttl(this.__wbg_ptr,c,D)}setDefaultTTL(){l.deploystrparams_setDefaultTTL(this.__wbg_ptr)}get chain_name(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.deploystrparams_chain_name(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set chain_name(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.deploystrparams_set_chain_name(this.__wbg_ptr,c,D)}get session_account(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.deploystrparams_session_account(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_account(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.deploystrparams_set_session_account(this.__wbg_ptr,c,D)}}const gc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_deploysubscription_free(m>>>0));class Et{static __unwrap(i){return i instanceof Et?i.__destroy_into_raw():0}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,gc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_deploysubscription_free(i)}get deployHash(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_deployprocessed_deploy_hash(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}set deployHash(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_deployprocessed_deploy_hash(this.__wbg_ptr,c,D)}get eventHandlerFn(){return C(l.__wbg_get_deploysubscription_eventHandlerFn(this.__wbg_ptr))}set eventHandlerFn(i){l.__wbg_set_deploysubscription_eventHandlerFn(this.__wbg_ptr,F(i))}constructor(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),y=l.deploysubscription_new(_,D,F(c));return this.__wbg_ptr=y>>>0,this}}const xs=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_deploywatcher_free(m>>>0));class si{static __wrap(i){i>>>=0;const c=Object.create(si.prototype);return c.__wbg_ptr=i,xs.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,xs.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_deploywatcher_free(i)}constructor(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),y=l.deploywatcher_new(_,D,!E(c),E(c)?BigInt(0):c);return this.__wbg_ptr=y>>>0,this}subscribe(i){try{const p=l.__wbindgen_add_to_stack_pointer(-16),y=_c(i,l.__wbindgen_malloc);l.deploywatcher_subscribe(p,this.__wbg_ptr,y,D);var c=w()[p/4+0];if(w()[p/4+1])throw C(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}unsubscribe(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.deploywatcher_unsubscribe(this.__wbg_ptr,c,D)}start(){return C(l.deploywatcher_start(this.__wbg_ptr))}stop(){l.deploywatcher_stop(this.__wbg_ptr)}}const mc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_dictionaryaddr_free(m>>>0));class ai{static __wrap(i){i>>>=0;const c=Object.create(ai.prototype);return c.__wbg_ptr=i,mc.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,mc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_dictionaryaddr_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=Zt(i,l.__wbindgen_malloc);l.dictionaryaddr_new(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}}const _o=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_dictionaryitemidentifier_free(m>>>0));class Yt{static __wrap(i){i>>>=0;const c=Object.create(Yt.prototype);return c.__wbg_ptr=i,_o.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,_o.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_dictionaryitemidentifier_free(i)}static newFromAccountInfo(i,c,_){try{const A=l.__wbindgen_add_to_stack_pointer(-16),K=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),ie=D,Q=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),ke=D,we=S(_,l.__wbindgen_malloc,l.__wbindgen_realloc);l.dictionaryitemidentifier_newFromAccountInfo(A,K,ie,Q,ke,we,D);var p=w()[A/4+0],y=w()[A/4+1];if(w()[A/4+2])throw C(y);return Yt.__wrap(p)}finally{l.__wbindgen_add_to_stack_pointer(16)}}static newFromContractInfo(i,c,_){try{const A=l.__wbindgen_add_to_stack_pointer(-16),K=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),ie=D,Q=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),ke=D,we=S(_,l.__wbindgen_malloc,l.__wbindgen_realloc);l.dictionaryitemidentifier_newFromContractInfo(A,K,ie,Q,ke,we,D);var p=w()[A/4+0],y=w()[A/4+1];if(w()[A/4+2])throw C(y);return Yt.__wrap(p)}finally{l.__wbindgen_add_to_stack_pointer(16)}}static newFromSeedUref(i,c){try{const M=l.__wbindgen_add_to_stack_pointer(-16),A=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),K=D,ie=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);l.dictionaryitemidentifier_newFromSeedUref(M,A,K,ie,D);var _=w()[M/4+0],p=w()[M/4+1];if(w()[M/4+2])throw C(p);return Yt.__wrap(_)}finally{l.__wbindgen_add_to_stack_pointer(16)}}static newFromDictionaryKey(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.dictionaryitemidentifier_newFromDictionaryKey(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return Yt.__wrap(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}toJson(){return C(l.dictionaryitemidentifier_toJson(this.__wbg_ptr))}}const ci=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_dictionaryitemstrparams_free(m>>>0));class pr{static __wrap(i){i>>>=0;const c=Object.create(pr.prototype);return c.__wbg_ptr=i,ci.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,ci.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_dictionaryitemstrparams_free(i)}constructor(){const i=l.dictionaryitemstrparams_new();return this.__wbg_ptr=i>>>0,this}setAccountNamedKey(i,c,_){const p=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),y=D,M=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),A=D,K=S(_,l.__wbindgen_malloc,l.__wbindgen_realloc);l.dictionaryitemstrparams_setAccountNamedKey(this.__wbg_ptr,p,y,M,A,K,D)}setContractNamedKey(i,c,_){const p=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),y=D,M=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),A=D,K=S(_,l.__wbindgen_malloc,l.__wbindgen_realloc);l.dictionaryitemstrparams_setContractNamedKey(this.__wbg_ptr,p,y,M,A,K,D)}setUref(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D,y=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);l.dictionaryitemstrparams_setUref(this.__wbg_ptr,_,p,y,D)}setDictionary(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.dictionaryitemstrparams_setDictionary(this.__wbg_ptr,c,D)}toJson(){return C(l.dictionaryitemstrparams_toJson(this.__wbg_ptr))}}const Xn=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_digest_free(m>>>0));class Ie{static __wrap(i){i>>>=0;const c=Object.create(Ie.prototype);return c.__wbg_ptr=i,Xn.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Xn.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_digest_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.digest__new(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromString(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.digest_fromString(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return Ie.__wrap(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromDigest(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=Zt(i,l.__wbindgen_malloc);l.digest_fromDigest(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return Ie.__wrap(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}toJson(){return C(l.digest_toJson(this.__wbg_ptr))}toString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.digest_toString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}}const wd=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_eraid_free(m>>>0));class er{__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,wd.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_eraid_free(i)}constructor(i){const c=l.eraid_new(i);return this.__wbg_ptr=c>>>0,this}value(){const i=l.eraid_value(this.__wbg_ptr);return BigInt.asUintN(64,i)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_eventparseresult_free(m>>>0)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_executionresult_free(m>>>0)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_failure_free(m>>>0));const vd=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getaccountresult_free(m>>>0));class yc{static __wrap(i){i>>>=0;const c=Object.create(yc.prototype);return c.__wbg_ptr=i,vd.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,vd.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getaccountresult_free(i)}get api_version(){return C(l.getaccountresult_api_version(this.__wbg_ptr))}get account(){return C(l.getaccountresult_account(this.__wbg_ptr))}get merkle_proof(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.getaccountresult_merkle_proof(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}toJson(){return C(l.getaccountresult_toJson(this.__wbg_ptr))}}const Os=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getauctioninforesult_free(m>>>0));class Ps{static __wrap(i){i>>>=0;const c=Object.create(Ps.prototype);return c.__wbg_ptr=i,Os.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Os.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getauctioninforesult_free(i)}get api_version(){return C(l.getauctioninforesult_api_version(this.__wbg_ptr))}get auction_state(){return C(l.getauctioninforesult_auction_state(this.__wbg_ptr))}toJson(){return C(l.getauctioninforesult_toJson(this.__wbg_ptr))}}const li=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getbalanceresult_free(m>>>0));class je{static __wrap(i){i>>>=0;const c=Object.create(je.prototype);return c.__wbg_ptr=i,li.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,li.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getbalanceresult_free(i)}get api_version(){return C(l.getbalanceresult_api_version(this.__wbg_ptr))}get balance_value(){return C(l.getbalanceresult_balance_value(this.__wbg_ptr))}get merkle_proof(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.getbalanceresult_merkle_proof(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}toJson(){return C(l.getbalanceresult_toJson(this.__wbg_ptr))}}const Dd=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getblockresult_free(m>>>0));class wc{static __wrap(i){i>>>=0;const c=Object.create(wc.prototype);return c.__wbg_ptr=i,Dd.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Dd.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getblockresult_free(i)}get api_version(){return C(l.getblockresult_api_version(this.__wbg_ptr))}get block(){return C(l.getblockresult_block(this.__wbg_ptr))}toJson(){return C(l.getblockresult_toJson(this.__wbg_ptr))}}const Cd=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getblocktransfersresult_free(m>>>0));class bc{static __wrap(i){i>>>=0;const c=Object.create(bc.prototype);return c.__wbg_ptr=i,Cd.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Cd.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getblocktransfersresult_free(i)}get api_version(){return C(l.getblocktransfersresult_api_version(this.__wbg_ptr))}get block_hash(){const i=l.getblocktransfersresult_block_hash(this.__wbg_ptr);return 0===i?void 0:Pn.__wrap(i)}get transfers(){return C(l.getblocktransfersresult_transfers(this.__wbg_ptr))}toJson(){return C(l.getblocktransfersresult_toJson(this.__wbg_ptr))}}const ge=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getchainspecresult_free(m>>>0));class et{static __wrap(i){i>>>=0;const c=Object.create(et.prototype);return c.__wbg_ptr=i,ge.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,ge.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getchainspecresult_free(i)}get api_version(){return C(l.getchainspecresult_api_version(this.__wbg_ptr))}get chainspec_bytes(){return C(l.getchainspecresult_chainspec_bytes(this.__wbg_ptr))}toJson(){return C(l.getchainspecresult_toJson(this.__wbg_ptr))}}const ui=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getdeployresult_free(m>>>0));class vc{static __wrap(i){i>>>=0;const c=Object.create(vc.prototype);return c.__wbg_ptr=i,ui.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,ui.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getdeployresult_free(i)}get api_version(){return C(l.getdeployresult_api_version(this.__wbg_ptr))}get deploy(){const i=l.getdeployresult_deploy(this.__wbg_ptr);return Ce.__wrap(i)}toJson(){return C(l.getdeployresult_toJson(this.__wbg_ptr))}}const Nt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getdictionaryitemresult_free(m>>>0));class Dc{static __wrap(i){i>>>=0;const c=Object.create(Dc.prototype);return c.__wbg_ptr=i,Nt.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Nt.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getdictionaryitemresult_free(i)}get api_version(){return C(l.getdictionaryitemresult_api_version(this.__wbg_ptr))}get dictionary_key(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.getdictionaryitemresult_dictionary_key(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}get stored_value(){return C(l.getdictionaryitemresult_stored_value(this.__wbg_ptr))}get merkle_proof(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.getdictionaryitemresult_merkle_proof(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}toJson(){return C(l.getdictionaryitemresult_toJson(this.__wbg_ptr))}}const Cc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_geterainforesult_free(m>>>0));class Ec{static __wrap(i){i>>>=0;const c=Object.create(Ec.prototype);return c.__wbg_ptr=i,Cc.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Cc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_geterainforesult_free(i)}get api_version(){return C(l.geterainforesult_api_version(this.__wbg_ptr))}get era_summary(){return C(l.geterainforesult_era_summary(this.__wbg_ptr))}toJson(){return C(l.geterainforesult_toJson(this.__wbg_ptr))}}const Vn=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_geterasummaryresult_free(m>>>0));class Ic{static __wrap(i){i>>>=0;const c=Object.create(Ic.prototype);return c.__wbg_ptr=i,Vn.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Vn.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_geterasummaryresult_free(i)}get api_version(){return C(l.geterasummaryresult_api_version(this.__wbg_ptr))}get era_summary(){return C(l.geterasummaryresult_era_summary(this.__wbg_ptr))}toJson(){return C(l.geterasummaryresult_toJson(this.__wbg_ptr))}}const Ed=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getnodestatusresult_free(m>>>0));class Sc{static __wrap(i){i>>>=0;const c=Object.create(Sc.prototype);return c.__wbg_ptr=i,Ed.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Ed.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getnodestatusresult_free(i)}get api_version(){return C(l.getnodestatusresult_api_version(this.__wbg_ptr))}get chainspec_name(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.getnodestatusresult_chainspec_name(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}get starting_state_root_hash(){const i=l.getnodestatusresult_starting_state_root_hash(this.__wbg_ptr);return Ie.__wrap(i)}get peers(){return C(l.getnodestatusresult_peers(this.__wbg_ptr))}get last_added_block_info(){return C(l.getnodestatusresult_last_added_block_info(this.__wbg_ptr))}get our_public_signing_key(){const i=l.getnodestatusresult_our_public_signing_key(this.__wbg_ptr);return 0===i?void 0:en.__wrap(i)}get round_length(){return C(l.getnodestatusresult_round_length(this.__wbg_ptr))}get next_upgrade(){return C(l.getnodestatusresult_next_upgrade(this.__wbg_ptr))}get build_version(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.getnodestatusresult_build_version(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}get uptime(){return C(l.getnodestatusresult_uptime(this.__wbg_ptr))}get reactor_state(){return C(l.getnodestatusresult_reactor_state(this.__wbg_ptr))}get last_progress(){return C(l.getnodestatusresult_last_progress(this.__wbg_ptr))}get available_block_range(){return C(l.getnodestatusresult_available_block_range(this.__wbg_ptr))}get block_sync(){return C(l.getnodestatusresult_block_sync(this.__wbg_ptr))}toJson(){return C(l.getnodestatusresult_toJson(this.__wbg_ptr))}}const Id=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getpeersresult_free(m>>>0));class Ls{static __wrap(i){i>>>=0;const c=Object.create(Ls.prototype);return c.__wbg_ptr=i,Id.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Id.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getpeersresult_free(i)}get api_version(){return C(l.getpeersresult_api_version(this.__wbg_ptr))}get peers(){return C(l.getpeersresult_peers(this.__wbg_ptr))}toJson(){return C(l.getpeersresult_toJson(this.__wbg_ptr))}}const Sd=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getstateroothashresult_free(m>>>0));class Vs{static __wrap(i){i>>>=0;const c=Object.create(Vs.prototype);return c.__wbg_ptr=i,Sd.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Sd.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getstateroothashresult_free(i)}get api_version(){return C(l.getstateroothashresult_api_version(this.__wbg_ptr))}get state_root_hash(){const i=l.getstateroothashresult_state_root_hash(this.__wbg_ptr);return 0===i?void 0:Ie.__wrap(i)}get state_root_hash_as_string(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.getstateroothashresult_state_root_hash_as_string(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}toString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.getstateroothashresult_toString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}toJson(){return C(l.getstateroothashresult_toJson(this.__wbg_ptr))}}const Md=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getvalidatorchangesresult_free(m>>>0));class St{static __wrap(i){i>>>=0;const c=Object.create(St.prototype);return c.__wbg_ptr=i,Md.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Md.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getvalidatorchangesresult_free(i)}get api_version(){return C(l.getvalidatorchangesresult_api_version(this.__wbg_ptr))}get changes(){return C(l.getvalidatorchangesresult_changes(this.__wbg_ptr))}toJson(){return C(l.getvalidatorchangesresult_toJson(this.__wbg_ptr))}}const Z=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_globalstateidentifier_free(m>>>0));class Xt{static __wrap(i){i>>>=0;const c=Object.create(Xt.prototype);return c.__wbg_ptr=i,Z.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_globalstateidentifier_free(i)}constructor(i){N(i,Xt);var c=i.__destroy_into_raw();const _=l.blockidentifier_new(c);return this.__wbg_ptr=_>>>0,this}static fromBlockHash(i){N(i,Pn);var c=i.__destroy_into_raw();const _=l.blockidentifier_from_hash(c);return Xt.__wrap(_)}static fromBlockHeight(i){const c=l.blockidentifier_fromHeight(i);return Xt.__wrap(c)}static fromStateRootHash(i){N(i,Ie);var c=i.__destroy_into_raw();const _=l.globalstateidentifier_fromStateRootHash(c);return Xt.__wrap(_)}toJson(){return C(l.globalstateidentifier_toJson(this.__wbg_ptr))}}const kd=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_hashaddr_free(m>>>0));class js{static __wrap(i){i>>>=0;const c=Object.create(js.prototype);return c.__wbg_ptr=i,kd.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,kd.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_hashaddr_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=Zt(i,l.__wbindgen_malloc);l.hashaddr_new(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_intounderlyingbytesource_free(m>>>0)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_intounderlyingsink_free(m>>>0)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_intounderlyingsource_free(m>>>0));const Td=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_key_free(m>>>0));class Be{static __wrap(i){i>>>=0;const c=Object.create(Be.prototype);return c.__wbg_ptr=i,Td.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Td.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_key_free(i)}constructor(i){try{const M=l.__wbindgen_add_to_stack_pointer(-16);N(i,Be);var c=i.__destroy_into_raw();l.key_new(M,c);var _=w()[M/4+0],p=w()[M/4+1];if(w()[M/4+2])throw C(p);return this.__wbg_ptr=_>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}toJson(){return C(l.key_toJson(this.__wbg_ptr))}static fromURef(i){N(i,Mn);var c=i.__destroy_into_raw();const _=l.key_fromURef(c);return Be.__wrap(_)}static fromDeployInfo(i){N(i,Cn);var c=i.__destroy_into_raw();const _=l.key_fromDeployInfo(c);return Be.__wrap(_)}static fromAccount(i){N(i,Qe);var c=i.__destroy_into_raw();const _=l.key_fromAccount(c);return Be.__wrap(_)}static fromHash(i){N(i,js);var c=i.__destroy_into_raw();const _=l.key_fromHash(c);return Be.__wrap(_)}static fromTransfer(i){const c=Zt(i,l.__wbindgen_malloc),p=l.key_fromTransfer(c,D);return pi.__wrap(p)}static fromEraInfo(i){N(i,er);var c=i.__destroy_into_raw();const _=l.key_fromEraInfo(c);return Be.__wrap(_)}static fromBalance(i){N(i,hi);var c=i.__destroy_into_raw();const _=l.key_fromBalance(c);return Be.__wrap(_)}static fromBid(i){N(i,Qe);var c=i.__destroy_into_raw();const _=l.key_fromBid(c);return Be.__wrap(_)}static fromWithdraw(i){N(i,Qe);var c=i.__destroy_into_raw();const _=l.key_fromWithdraw(c);return Be.__wrap(_)}static fromDictionaryAddr(i){N(i,ai);var c=i.__destroy_into_raw();const _=l.key_fromDictionaryAddr(c);return Be.__wrap(_)}asDictionaryAddr(){const i=l.key_asDictionaryAddr(this.__wbg_ptr);return 0===i?void 0:ai.__wrap(i)}static fromSystemContractRegistry(){const i=l.key_fromSystemContractRegistry();return Be.__wrap(i)}static fromEraSummary(){const i=l.key_fromEraSummary();return Be.__wrap(i)}static fromUnbond(i){N(i,Qe);var c=i.__destroy_into_raw();const _=l.key_fromUnbond(c);return Be.__wrap(_)}static fromChainspecRegistry(){const i=l.key_fromChainspecRegistry();return Be.__wrap(i)}static fromChecksumRegistry(){const i=l.key_fromChecksumRegistry();return Be.__wrap(i)}toFormattedString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.key_toFormattedString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}static fromFormattedString(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.key_fromFormattedString(y,F(i));var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return Be.__wrap(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromDictionaryKey(i,c){N(i,Mn);var _=i.__destroy_into_raw();const p=Zt(c,l.__wbindgen_malloc),M=l.key_fromDictionaryKey(_,p,D);return Be.__wrap(M)}isDictionaryKey(){return 0!==l.key_isDictionaryKey(this.__wbg_ptr)}intoAccount(){const i=this.__destroy_into_raw(),c=l.key_intoAccount(i);return 0===c?void 0:Qe.__wrap(c)}intoHash(){const i=this.__destroy_into_raw(),c=l.key_intoHash(i);return 0===c?void 0:js.__wrap(c)}asBalance(){const i=l.key_asBalance(this.__wbg_ptr);return 0===i?void 0:hi.__wrap(i)}intoURef(){const i=this.__destroy_into_raw(),c=l.key_intoURef(i);return 0===c?void 0:Mn.__wrap(c)}urefToHash(){const i=l.key_urefToHash(this.__wbg_ptr);return 0===i?void 0:Be.__wrap(i)}withdrawToUnbond(){const i=l.key_withdrawToUnbond(this.__wbg_ptr);return 0===i?void 0:Be.__wrap(i)}}const _n=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_listrpcsresult_free(m>>>0));class ye{static __wrap(i){i>>>=0;const c=Object.create(ye.prototype);return c.__wbg_ptr=i,_n.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,_n.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_listrpcsresult_free(i)}get api_version(){return C(l.listrpcsresult_api_version(this.__wbg_ptr))}get name(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.listrpcsresult_name(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}get schema(){return C(l.listrpcsresult_schema(this.__wbg_ptr))}toJson(){return C(l.listrpcsresult_toJson(this.__wbg_ptr))}}const Ee=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_path_free(m>>>0));class hr{static __wrap(i){i>>>=0;const c=Object.create(hr.prototype);return c.__wbg_ptr=i,Ee.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Ee.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_path_free(i)}constructor(i){const c=l.path_new(F(i));return this.__wbg_ptr=c>>>0,this}static fromArray(i){const c=l.path_fromArray(F(i));return hr.__wrap(c)}toJson(){return C(l.path_toJson(this.__wbg_ptr))}toString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.path_toString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}is_empty(){return 0!==l.path_is_empty(this.__wbg_ptr)}}const ho=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_paymentstrparams_free(m>>>0));class fn{__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,ho.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_paymentstrparams_free(i)}constructor(i,c,_,p,y,M,A,K,ie,Q,ke){var we=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),_e=D,mt=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),nt=D,_t=E(_)?0:S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),rt=D,Bn=E(p)?0:S(p,l.__wbindgen_malloc,l.__wbindgen_realloc),Co=D,Lr=E(y)?0:S(y,l.__wbindgen_malloc,l.__wbindgen_realloc),br=D,Vr=E(M)?0:S(M,l.__wbindgen_malloc,l.__wbindgen_realloc),jr=D,Eo=E(K)?0:S(K,l.__wbindgen_malloc,l.__wbindgen_realloc),Pc=D,Lc=E(ie)?0:S(ie,l.__wbindgen_malloc,l.__wbindgen_realloc),Vc=D,jc=E(Q)?0:S(Q,l.__wbindgen_malloc,l.__wbindgen_realloc),Bc=D,Hc=E(ke)?0:S(ke,l.__wbindgen_malloc,l.__wbindgen_realloc),Uc=D;const $c=l.paymentstrparams_new(we,_e,mt,nt,_t,rt,Bn,Co,Lr,br,Vr,jr,E(A)?0:F(A),Eo,Pc,Lc,Vc,jc,Bc,Hc,Uc);return this.__wbg_ptr=$c>>>0,this}get payment_amount(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_amount(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_amount(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_amount(this.__wbg_ptr,c,D)}get payment_hash(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_hash(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_hash(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_hash(this.__wbg_ptr,c,D)}get payment_name(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_name(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_name(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_name(this.__wbg_ptr,c,D)}get payment_package_hash(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_package_hash(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_package_hash(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_package_hash(this.__wbg_ptr,c,D)}get payment_package_name(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_package_name(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_package_name(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_package_name(this.__wbg_ptr,c,D)}get payment_path(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_path(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_path(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_path(this.__wbg_ptr,c,D)}get payment_args_simple(){return C(l.paymentstrparams_payment_args_simple(this.__wbg_ptr))}set payment_args_simple(i){l.paymentstrparams_set_payment_args_simple(this.__wbg_ptr,F(i))}get payment_args_json(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_args_json(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_args_json(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_args_json(this.__wbg_ptr,c,D)}get payment_args_complex(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_args_complex(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_args_complex(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_args_complex(this.__wbg_ptr,c,D)}get payment_version(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_version(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_version(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_version(this.__wbg_ptr,c,D)}get payment_entry_point(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.paymentstrparams_payment_entry_point(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set payment_entry_point(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.paymentstrparams_set_payment_entry_point(this.__wbg_ptr,c,D)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_peerentry_free(m>>>0));const Sn=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_publickey_free(m>>>0));class en{static __wrap(i){i>>>=0;const c=Object.create(en.prototype);return c.__wbg_ptr=i,Sn.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Sn.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_publickey_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.publickey_new(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromUint8Array(i){const c=Zt(i,l.__wbindgen_malloc),p=l.publickey_fromUint8Array(c,D);return en.__wrap(p)}toAccountHash(){const i=l.publickey_toAccountHash(this.__wbg_ptr);return Qe.__wrap(i)}toPurseUref(){const i=l.publickey_toPurseUref(this.__wbg_ptr);return Mn.__wrap(i)}toJson(){return C(l.publickey_toJson(this.__wbg_ptr))}}const Hs=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_purseidentifier_free(m>>>0));class xe{static __wrap(i){i>>>=0;const c=Object.create(xe.prototype);return c.__wbg_ptr=i,Hs.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Hs.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_purseidentifier_free(i)}constructor(i){N(i,en);var c=i.__destroy_into_raw();const _=l.purseidentifier_fromPublicKey(c);return this.__wbg_ptr=_>>>0,this}static fromAccountHash(i){N(i,Qe);var c=i.__destroy_into_raw();const _=l.purseidentifier_fromAccountHash(c);return xe.__wrap(_)}static fromURef(i){N(i,Mn);var c=i.__destroy_into_raw();const _=l.purseidentifier_fromURef(c);return xe.__wrap(_)}toJson(){return C(l.purseidentifier_toJson(this.__wbg_ptr))}}const Us=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_putdeployresult_free(m>>>0));class go{static __wrap(i){i>>>=0;const c=Object.create(go.prototype);return c.__wbg_ptr=i,Us.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Us.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_putdeployresult_free(i)}get api_version(){return C(l.putdeployresult_api_version(this.__wbg_ptr))}get deploy_hash(){const i=l.putdeployresult_deploy_hash(this.__wbg_ptr);return Cn.__wrap(i)}toJson(){return C(l.putdeployresult_toJson(this.__wbg_ptr))}}const $s=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_querybalanceresult_free(m>>>0));class _i{static __wrap(i){i>>>=0;const c=Object.create(_i.prototype);return c.__wbg_ptr=i,$s.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,$s.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_querybalanceresult_free(i)}get api_version(){return C(l.querybalanceresult_api_version(this.__wbg_ptr))}get balance(){return C(l.querybalanceresult_balance(this.__wbg_ptr))}toJson(){return C(l.querybalanceresult_toJson(this.__wbg_ptr))}}const Pr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_queryglobalstateresult_free(m>>>0));class fi{static __wrap(i){i>>>=0;const c=Object.create(fi.prototype);return c.__wbg_ptr=i,Pr.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Pr.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_queryglobalstateresult_free(i)}get api_version(){return C(l.queryglobalstateresult_api_version(this.__wbg_ptr))}get block_header(){return C(l.queryglobalstateresult_block_header(this.__wbg_ptr))}get stored_value(){return C(l.queryglobalstateresult_stored_value(this.__wbg_ptr))}get merkle_proof(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.queryglobalstateresult_merkle_proof(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}toJson(){return C(l.queryglobalstateresult_toJson(this.__wbg_ptr))}}const Mc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_sdk_free(m>>>0));class Nd{__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Mc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_sdk_free(i)}deploy(i,c,_,p,y){N(i,En);var M=i.__destroy_into_raw();N(c,gr);var A=c.__destroy_into_raw();N(_,fn);var K=_.__destroy_into_raw(),ie=E(y)?0:S(y,l.__wbindgen_malloc,l.__wbindgen_realloc),Q=D;return C(l.sdk_deploy(this.__wbg_ptr,M,A,K,E(p)?3:p,ie,Q))}get_block_options(i){const c=l.sdk_get_block_options(this.__wbg_ptr,F(i));return te.__wrap(c)}get_block(i){let c=0;return E(i)||(N(i,te),c=i.__destroy_into_raw()),C(l.sdk_get_block(this.__wbg_ptr,c))}chain_get_block(i){let c=0;return E(i)||(N(i,te),c=i.__destroy_into_raw()),C(l.sdk_chain_get_block(this.__wbg_ptr,c))}get_deploy_options(i){const c=l.sdk_get_deploy_options(this.__wbg_ptr,F(i));return tt.__wrap(c)}get_deploy(i){let c=0;return E(i)||(N(i,tt),c=i.__destroy_into_raw()),C(l.sdk_get_deploy(this.__wbg_ptr,c))}info_get_deploy(i){let c=0;return E(i)||(N(i,tt),c=i.__destroy_into_raw()),C(l.sdk_info_get_deploy(this.__wbg_ptr,c))}get_era_info_options(i){const c=l.sdk_get_era_info_options(this.__wbg_ptr,F(i));return wo.__wrap(c)}get_era_info(i){let c=0;return E(i)||(N(i,wo),c=i.__destroy_into_raw()),C(l.sdk_get_era_info(this.__wbg_ptr,c))}get_era_summary_options(i){const c=l.sdk_get_era_summary_options(this.__wbg_ptr,F(i));return mi.__wrap(c)}get_era_summary(i){let c=0;return E(i)||(N(i,mi),c=i.__destroy_into_raw()),C(l.sdk_get_era_summary(this.__wbg_ptr,c))}speculative_exec_options(i){const c=l.sdk_speculative_exec_options(this.__wbg_ptr,F(i));return Oe.__wrap(c)}speculative_exec(i){let c=0;return E(i)||(N(i,Oe),c=i.__destroy_into_raw()),C(l.sdk_speculative_exec(this.__wbg_ptr,c))}sign_deploy(i,c){N(i,Ce);var _=i.__destroy_into_raw();const p=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),M=l.sdk_sign_deploy(this.__wbg_ptr,_,p,D);return Ce.__wrap(M)}constructor(i,c){var _=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);const y=l.sdk_new(_,D,E(c)?3:c);return this.__wbg_ptr=y>>>0,this}getNodeAddress(i){let c,_;try{const K=l.__wbindgen_add_to_stack_pointer(-16);var p=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sdk_getNodeAddress(K,this.__wbg_ptr,p,D);var M=w()[K/4+0],A=w()[K/4+1];return c=M,_=A,P(M,A)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(c,_,1)}}setNodeAddress(i){try{const M=l.__wbindgen_add_to_stack_pointer(-16);var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sdk_setNodeAddress(M,this.__wbg_ptr,c,D);var p=w()[M/4+0];if(w()[M/4+1])throw C(p)}finally{l.__wbindgen_add_to_stack_pointer(16)}}getVerbosity(i){return l.sdk_getVerbosity(this.__wbg_ptr,E(i)?3:i)}setVerbosity(i){try{const p=l.__wbindgen_add_to_stack_pointer(-16);l.sdk_setVerbosity(p,this.__wbg_ptr,E(i)?3:i);var c=w()[p/4+0];if(w()[p/4+1])throw C(c)}finally{l.__wbindgen_add_to_stack_pointer(16)}}get_auction_info_options(i){const c=l.sdk_get_auction_info_options(this.__wbg_ptr,F(i));return gi.__wrap(c)}get_auction_info(i){let c=0;return E(i)||(N(i,gi),c=i.__destroy_into_raw()),C(l.sdk_get_auction_info(this.__wbg_ptr,c))}get_chainspec(i,c){var _=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;return C(l.sdk_get_chainspec(this.__wbg_ptr,E(i)?3:i,_,p))}get_node_status(i,c){var _=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;return C(l.sdk_get_node_status(this.__wbg_ptr,E(i)?3:i,_,p))}get_peers(i,c){var _=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;return C(l.sdk_get_peers(this.__wbg_ptr,E(i)?3:i,_,p))}get_validator_changes(i,c){var _=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;return C(l.sdk_get_validator_changes(this.__wbg_ptr,E(i)?3:i,_,p))}list_rpcs(i,c){var _=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),p=D;return C(l.sdk_list_rpcs(this.__wbg_ptr,E(i)?3:i,_,p))}get_account_options(i){const c=l.sdk_get_account_options(this.__wbg_ptr,F(i));return yo.__wrap(c)}get_account(i){let c=0;return E(i)||(N(i,yo),c=i.__destroy_into_raw()),C(l.sdk_get_account(this.__wbg_ptr,c))}state_get_account_info(i){let c=0;return E(i)||(N(i,yo),c=i.__destroy_into_raw()),C(l.sdk_state_get_account_info(this.__wbg_ptr,c))}get_balance_options(i){const c=l.sdk_get_balance_options(this.__wbg_ptr,F(i));return Ut.__wrap(c)}get_balance(i){let c=0;return E(i)||(N(i,Ut),c=i.__destroy_into_raw()),C(l.sdk_get_balance(this.__wbg_ptr,c))}state_get_balance(i){let c=0;return E(i)||(N(i,Ut),c=i.__destroy_into_raw()),C(l.sdk_state_get_balance(this.__wbg_ptr,c))}get_state_root_hash_options(i){const c=l.sdk_get_state_root_hash_options(this.__wbg_ptr,F(i));return J.__wrap(c)}get_state_root_hash(i){let c=0;return E(i)||(N(i,J),c=i.__destroy_into_raw()),C(l.sdk_get_state_root_hash(this.__wbg_ptr,c))}chain_get_state_root_hash(i){let c=0;return E(i)||(N(i,J),c=i.__destroy_into_raw()),C(l.sdk_chain_get_state_root_hash(this.__wbg_ptr,c))}query_balance_options(i){const c=l.sdk_query_balance_options(this.__wbg_ptr,F(i));return Ft.__wrap(c)}query_balance(i){let c=0;return E(i)||(N(i,Ft),c=i.__destroy_into_raw()),C(l.sdk_query_balance(this.__wbg_ptr,c))}query_contract_key_options(i){const c=l.sdk_query_contract_key_options(this.__wbg_ptr,F(i));return Me.__wrap(c)}query_contract_key(i){let c=0;return E(i)||(N(i,Me),c=i.__destroy_into_raw()),C(l.sdk_query_contract_key(this.__wbg_ptr,c))}get_block_transfers_options(i){const c=l.sdk_get_block_transfers_options(this.__wbg_ptr,F(i));return ue.__wrap(c)}get_block_transfers(i){let c=0;return E(i)||(N(i,ue),c=i.__destroy_into_raw()),C(l.sdk_get_block_transfers(this.__wbg_ptr,c))}get_dictionary_item_options(i){const c=l.sdk_get_dictionary_item_options(this.__wbg_ptr,F(i));return it.__wrap(c)}get_dictionary_item(i){let c=0;return E(i)||(N(i,it),c=i.__destroy_into_raw()),C(l.sdk_get_dictionary_item(this.__wbg_ptr,c))}state_get_dictionary_item(i){let c=0;return E(i)||(N(i,it),c=i.__destroy_into_raw()),C(l.sdk_state_get_dictionary_item(this.__wbg_ptr,c))}query_global_state_options(i){const c=l.sdk_query_global_state_options(this.__wbg_ptr,F(i));return tn.__wrap(c)}query_global_state(i){let c=0;return E(i)||(N(i,tn),c=i.__destroy_into_raw()),C(l.sdk_query_global_state(this.__wbg_ptr,c))}watch_deploy(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),y=l.sdk_watch_deploy(this.__wbg_ptr,_,D,!E(c),E(c)?BigInt(0):c);return si.__wrap(y)}watchDeploy(i,c){const _=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),y=l.sdk_watchDeploy(this.__wbg_ptr,_,D,!E(c),E(c)?0:c);return si.__wrap(y)}waitDeploy(i,c,_){const p=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),y=D,M=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc);return C(l.sdk_waitDeploy(this.__wbg_ptr,p,y,M,D,!E(_),E(_)?0:_))}query_contract_dict_options(i){const c=l.sdk_query_contract_dict_options(this.__wbg_ptr,F(i));return Rt.__wrap(c)}query_contract_dict(i){let c=0;return E(i)||(N(i,Rt),c=i.__destroy_into_raw()),C(l.sdk_query_contract_dict(this.__wbg_ptr,c))}put_deploy(i,c,_){N(i,Ce);var p=i.__destroy_into_raw(),y=E(_)?0:S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),M=D;return C(l.sdk_put_deploy(this.__wbg_ptr,p,E(c)?3:c,y,M))}account_put_deploy(i,c,_){N(i,Ce);var p=i.__destroy_into_raw(),y=E(_)?0:S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),M=D;return C(l.sdk_account_put_deploy(this.__wbg_ptr,p,E(c)?3:c,y,M))}make_deploy(i,c,_){try{const Q=l.__wbindgen_add_to_stack_pointer(-16);N(i,En);var p=i.__destroy_into_raw();N(c,gr);var y=c.__destroy_into_raw();N(_,fn);var M=_.__destroy_into_raw();l.sdk_make_deploy(Q,this.__wbg_ptr,p,y,M);var A=w()[Q/4+0],K=w()[Q/4+1];if(w()[Q/4+2])throw C(K);return Ce.__wrap(A)}finally{l.__wbindgen_add_to_stack_pointer(16)}}speculative_deploy(i,c,_,p,y,M,A){N(i,En);var K=i.__destroy_into_raw();N(c,gr);var ie=c.__destroy_into_raw();N(_,fn);var Q=_.__destroy_into_raw(),ke=E(p)?0:S(p,l.__wbindgen_malloc,l.__wbindgen_realloc),we=D;let _e=0;E(y)||(N(y,Ue),_e=y.__destroy_into_raw());var mt=E(A)?0:S(A,l.__wbindgen_malloc,l.__wbindgen_realloc),nt=D;return C(l.sdk_speculative_deploy(this.__wbg_ptr,K,ie,Q,ke,we,_e,E(M)?3:M,mt,nt))}call_entrypoint(i,c,_,p){N(i,En);var y=i.__destroy_into_raw();N(c,gr);var M=c.__destroy_into_raw();const A=S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),K=D;var ie=E(p)?0:S(p,l.__wbindgen_malloc,l.__wbindgen_realloc);return C(l.sdk_call_entrypoint(this.__wbg_ptr,y,M,A,K,ie,D))}speculative_transfer(i,c,_,p,y,M,A,K,ie){const Q=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),ke=D,we=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),_e=D;var mt=E(_)?0:S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),nt=D;N(p,En);var _t=p.__destroy_into_raw();N(y,fn);var rt=y.__destroy_into_raw(),Bn=E(M)?0:S(M,l.__wbindgen_malloc,l.__wbindgen_realloc),Co=D;let Lr=0;E(A)||(N(A,Ue),Lr=A.__destroy_into_raw());var br=E(ie)?0:S(ie,l.__wbindgen_malloc,l.__wbindgen_realloc),Vr=D;return C(l.sdk_speculative_transfer(this.__wbg_ptr,Q,ke,we,_e,mt,nt,_t,rt,Bn,Co,Lr,E(K)?3:K,br,Vr))}transfer(i,c,_,p,y,M,A){const K=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),ie=D,Q=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),ke=D;var we=E(_)?0:S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),_e=D;N(p,En);var mt=p.__destroy_into_raw();N(y,fn);var nt=y.__destroy_into_raw(),_t=E(A)?0:S(A,l.__wbindgen_malloc,l.__wbindgen_realloc),rt=D;return C(l.sdk_transfer(this.__wbg_ptr,K,ie,Q,ke,we,_e,mt,nt,E(M)?3:M,_t,rt))}make_transfer(i,c,_,p,y){try{const _e=l.__wbindgen_add_to_stack_pointer(-16),mt=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),nt=D,_t=S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),rt=D;var M=E(_)?0:S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),A=D;N(p,En);var K=p.__destroy_into_raw();N(y,fn);var ie=y.__destroy_into_raw();l.sdk_make_transfer(_e,this.__wbg_ptr,mt,nt,_t,rt,M,A,K,ie);var Q=w()[_e/4+0],ke=w()[_e/4+1];if(w()[_e/4+2])throw C(ke);return Ce.__wrap(Q)}finally{l.__wbindgen_add_to_stack_pointer(16)}}install(i,c,_,p){N(i,En);var y=i.__destroy_into_raw();N(c,gr);var M=c.__destroy_into_raw();const A=S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),K=D;var ie=E(p)?0:S(p,l.__wbindgen_malloc,l.__wbindgen_realloc);return C(l.sdk_install(this.__wbg_ptr,y,M,A,K,ie,D))}}const kc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_sessionstrparams_free(m>>>0));class gr{__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,kc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_sessionstrparams_free(i)}constructor(i,c,_,p,y,M,A,K,ie,Q,ke,we){var _e=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc),mt=D,nt=E(c)?0:S(c,l.__wbindgen_malloc,l.__wbindgen_realloc),_t=D,rt=E(_)?0:S(_,l.__wbindgen_malloc,l.__wbindgen_realloc),Bn=D,Co=E(p)?0:S(p,l.__wbindgen_malloc,l.__wbindgen_realloc),Lr=D,br=E(y)?0:S(y,l.__wbindgen_malloc,l.__wbindgen_realloc),Vr=D;let jr=0;E(M)||(N(M,It),jr=M.__destroy_into_raw());var Eo=E(K)?0:S(K,l.__wbindgen_malloc,l.__wbindgen_realloc),Pc=D,Lc=E(ie)?0:S(ie,l.__wbindgen_malloc,l.__wbindgen_realloc),Vc=D,jc=E(Q)?0:S(Q,l.__wbindgen_malloc,l.__wbindgen_realloc),Bc=D,Hc=E(ke)?0:S(ke,l.__wbindgen_malloc,l.__wbindgen_realloc),Uc=D;const $c=l.sessionstrparams_new(_e,mt,nt,_t,rt,Bn,Co,Lr,br,Vr,jr,E(A)?0:F(A),Eo,Pc,Lc,Vc,jc,Bc,Hc,Uc,E(we)?16777215:we?1:0);return this.__wbg_ptr=$c>>>0,this}get session_hash(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.sessionstrparams_session_hash(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_hash(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sessionstrparams_set_session_hash(this.__wbg_ptr,c,D)}get session_name(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.sessionstrparams_session_name(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_name(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sessionstrparams_set_session_name(this.__wbg_ptr,c,D)}get session_package_hash(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.sessionstrparams_session_package_hash(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_package_hash(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sessionstrparams_set_session_package_hash(this.__wbg_ptr,c,D)}get session_package_name(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.sessionstrparams_session_package_name(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_package_name(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sessionstrparams_set_session_package_name(this.__wbg_ptr,c,D)}get session_path(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.sessionstrparams_session_path(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_path(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sessionstrparams_set_session_path(this.__wbg_ptr,c,D)}get session_bytes(){const i=l.sessionstrparams_session_bytes(this.__wbg_ptr);return 0===i?void 0:It.__wrap(i)}set session_bytes(i){N(i,It);var c=i.__destroy_into_raw();l.sessionstrparams_set_session_bytes(this.__wbg_ptr,c)}get session_args_simple(){const i=l.sessionstrparams_session_args_simple(this.__wbg_ptr);return 0===i?void 0:On.__wrap(i)}set session_args_simple(i){l.sessionstrparams_set_session_args_simple(this.__wbg_ptr,F(i))}get session_args_json(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.sessionstrparams_session_args_json(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_args_json(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sessionstrparams_set_session_args_json(this.__wbg_ptr,c,D)}get session_args_complex(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.sessionstrparams_session_args_complex(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_args_complex(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sessionstrparams_set_session_args_complex(this.__wbg_ptr,c,D)}get session_version(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.sessionstrparams_session_version(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_version(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sessionstrparams_set_session_version(this.__wbg_ptr,c,D)}get session_entry_point(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.sessionstrparams_session_entry_point(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set session_entry_point(i){const c=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.sessionstrparams_set_session_entry_point(this.__wbg_ptr,c,D)}get is_session_transfer(){const i=l.sessionstrparams_is_session_transfer(this.__wbg_ptr);return 16777215===i?void 0:0!==i}set is_session_transfer(i){l.sessionstrparams_set_is_session_transfer(this.__wbg_ptr,i)}}const Tc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_speculativeexecresult_free(m>>>0));class Ht{static __wrap(i){i>>>=0;const c=Object.create(Ht.prototype);return c.__wbg_ptr=i,Tc.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Tc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_speculativeexecresult_free(i)}get api_version(){return C(l.speculativeexecresult_api_version(this.__wbg_ptr))}get block_hash(){const i=l.speculativeexecresult_block_hash(this.__wbg_ptr);return Pn.__wrap(i)}get execution_result(){return C(l.speculativeexecresult_execution_result(this.__wbg_ptr))}toJson(){return C(l.speculativeexecresult_toJson(this.__wbg_ptr))}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(m=>l.__wbg_success_free(m>>>0));const Nc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_transferaddr_free(m>>>0));class pi{static __wrap(i){i>>>=0;const c=Object.create(pi.prototype);return c.__wbg_ptr=i,Nc.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Nc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_transferaddr_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=Zt(i,l.__wbindgen_malloc);l.transferaddr_new(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const p=l.__wbindgen_add_to_stack_pointer(-16);l.transferaddr_to_bytes(p,this.__wbg_ptr);var i=w()[p/4+0],c=w()[p/4+1],_=function _d(m,i){return m>>>=0,Bt().subarray(m/1,m/1+i)}(i,c).slice();return l.__wbindgen_free(i,1*c,1),_}finally{l.__wbindgen_add_to_stack_pointer(16)}}}const Fc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_uref_free(m>>>0));class Mn{static __wrap(i){i>>>=0;const c=Object.create(Mn.prototype);return c.__wbg_ptr=i,Fc.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Fc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_uref_free(i)}constructor(i,c){try{const M=l.__wbindgen_add_to_stack_pointer(-16),A=S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.uref_new(M,A,D,c);var _=w()[M/4+0],p=w()[M/4+1];if(w()[M/4+2])throw C(p);return this.__wbg_ptr=_>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}static fromUint8Array(i,c){const _=Zt(i,l.__wbindgen_malloc),y=l.uref_fromUint8Array(_,D,c);return Mn.__wrap(y)}toFormattedString(){let i,c;try{const y=l.__wbindgen_add_to_stack_pointer(-16);l.uref_toFormattedString(y,this.__wbg_ptr);var _=w()[y/4+0],p=w()[y/4+1];return i=_,c=p,P(_,p)}finally{l.__wbindgen_add_to_stack_pointer(16),l.__wbindgen_free(i,c,1)}}toJson(){return C(l.uref_toJson(this.__wbg_ptr))}}const zs=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_urefaddr_free(m>>>0));class hi{static __wrap(i){i>>>=0;const c=Object.create(hi.prototype);return c.__wbg_ptr=i,zs.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,zs.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_urefaddr_free(i)}constructor(i){try{const y=l.__wbindgen_add_to_stack_pointer(-16),M=Zt(i,l.__wbindgen_malloc);l.urefaddr_new(y,M,D);var c=w()[y/4+0],_=w()[y/4+1];if(w()[y/4+2])throw C(_);return this.__wbg_ptr=c>>>0,this}finally{l.__wbindgen_add_to_stack_pointer(16)}}}const Rc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getaccountoptions_free(m>>>0));class yo{static __wrap(i){i>>>=0;const c=Object.create(yo.prototype);return c.__wbg_ptr=i,Rc.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Rc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getaccountoptions_free(i)}get account_identifier(){const i=l.__wbg_get_getaccountoptions_account_identifier(this.__wbg_ptr);return 0===i?void 0:Yn.__wrap(i)}set account_identifier(i){let c=0;E(i)||(N(i,Yn),c=i.__destroy_into_raw()),l.__wbg_set_getaccountoptions_account_identifier(this.__wbg_ptr,c)}get account_identifier_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getaccountoptions_account_identifier_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set account_identifier_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getaccountoptions_account_identifier_as_string(this.__wbg_ptr,c,D)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getaccountoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getaccountoptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get maybe_block_identifier(){const i=l.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr);return 0===i?void 0:Ue.__wrap(i)}set maybe_block_identifier(i){let c=0;E(i)||(N(i,Ue),c=i.__destroy_into_raw()),l.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getaccountoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getaccountoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getaccountoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getaccountoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getauctioninfooptions_free(m>>>0));class gi{static __wrap(i){i>>>=0;const c=Object.create(gi.prototype);return c.__wbg_ptr=i,ht.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,ht.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getauctioninfooptions_free(i)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getauctioninfooptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get maybe_block_identifier(){const i=l.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr);return 0===i?void 0:Ue.__wrap(i)}set maybe_block_identifier(i){let c=0;E(i)||(N(i,Ue),c=i.__destroy_into_raw()),l.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getauctioninfooptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getauctioninfooptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const xc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getbalanceoptions_free(m>>>0));class Ut{static __wrap(i){i>>>=0;const c=Object.create(Ut.prototype);return c.__wbg_ptr=i,xc.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,xc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getbalanceoptions_free(i)}get state_root_hash_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getbalanceoptions_state_root_hash_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set state_root_hash_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getbalanceoptions_state_root_hash_as_string(this.__wbg_ptr,c,D)}get state_root_hash(){const i=l.__wbg_get_getbalanceoptions_state_root_hash(this.__wbg_ptr);return 0===i?void 0:Ie.__wrap(i)}set state_root_hash(i){let c=0;E(i)||(N(i,Ie),c=i.__destroy_into_raw()),l.__wbg_set_getbalanceoptions_state_root_hash(this.__wbg_ptr,c)}get purse_uref_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getbalanceoptions_purse_uref_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set purse_uref_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getbalanceoptions_purse_uref_as_string(this.__wbg_ptr,c,D)}get purse_uref(){const i=l.__wbg_get_getbalanceoptions_purse_uref(this.__wbg_ptr);return 0===i?void 0:Mn.__wrap(i)}set purse_uref(i){let c=0;E(i)||(N(i,Mn),c=i.__destroy_into_raw()),l.__wbg_set_getbalanceoptions_purse_uref(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getbalanceoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getbalanceoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getbalanceoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getbalanceoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const qs=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getblockoptions_free(m>>>0));class te{static __wrap(i){i>>>=0;const c=Object.create(te.prototype);return c.__wbg_ptr=i,qs.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,qs.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getblockoptions_free(i)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getblockoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get maybe_block_identifier(){const i=l.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr);return 0===i?void 0:Ue.__wrap(i)}set maybe_block_identifier(i){let c=0;E(i)||(N(i,Ue),c=i.__destroy_into_raw()),l.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getblockoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getblockoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const Mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getblocktransfersoptions_free(m>>>0));class ue{static __wrap(i){i>>>=0;const c=Object.create(ue.prototype);return c.__wbg_ptr=i,Mt.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Mt.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getblocktransfersoptions_free(i)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getblocktransfersoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get maybe_block_identifier(){const i=l.__wbg_get_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr);return 0===i?void 0:Ue.__wrap(i)}set maybe_block_identifier(i){let c=0;E(i)||(N(i,Ue),c=i.__destroy_into_raw()),l.__wbg_set_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr,c)}get verbosity(){const i=l.__wbg_get_getblocktransfersoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getblocktransfersoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getblocktransfersoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getblocktransfersoptions_node_address(this.__wbg_ptr,c,D)}}const ot=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getdeployoptions_free(m>>>0));class tt{static __wrap(i){i>>>=0;const c=Object.create(tt.prototype);return c.__wbg_ptr=i,ot.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,ot.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getdeployoptions_free(i)}get deploy_hash_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getdeployoptions_deploy_hash_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set deploy_hash_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getdeployoptions_deploy_hash_as_string(this.__wbg_ptr,c,D)}get deploy_hash(){const i=l.__wbg_get_getdeployoptions_deploy_hash(this.__wbg_ptr);return 0===i?void 0:Cn.__wrap(i)}set deploy_hash(i){let c=0;E(i)||(N(i,Cn),c=i.__destroy_into_raw()),l.__wbg_set_getdeployoptions_deploy_hash(this.__wbg_ptr,c)}get finalized_approvals(){const i=l.__wbg_get_getdeployoptions_finalized_approvals(this.__wbg_ptr);return 16777215===i?void 0:0!==i}set finalized_approvals(i){l.__wbg_set_getdeployoptions_finalized_approvals(this.__wbg_ptr,E(i)?16777215:i?1:0)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getdeployoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getdeployoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getdeployoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getdeployoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const tr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getdictionaryitemoptions_free(m>>>0));class it{static __wrap(i){i>>>=0;const c=Object.create(it.prototype);return c.__wbg_ptr=i,tr.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,tr.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getdictionaryitemoptions_free(i)}get state_root_hash_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getdictionaryitemoptions_state_root_hash_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set state_root_hash_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr,c,D)}get state_root_hash(){const i=l.__wbg_get_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr);return 0===i?void 0:Ie.__wrap(i)}set state_root_hash(i){let c=0;E(i)||(N(i,Ie),c=i.__destroy_into_raw()),l.__wbg_set_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr,c)}get dictionary_item_params(){const i=l.__wbg_get_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr);return 0===i?void 0:pr.__wrap(i)}set dictionary_item_params(i){let c=0;E(i)||(N(i,pr),c=i.__destroy_into_raw()),l.__wbg_set_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr,c)}get dictionary_item_identifier(){const i=l.__wbg_get_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr);return 0===i?void 0:Yt.__wrap(i)}set dictionary_item_identifier(i){let c=0;E(i)||(N(i,Yt),c=i.__destroy_into_raw()),l.__wbg_set_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getdictionaryitemoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getdictionaryitemoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getdictionaryitemoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getdictionaryitemoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const Gs=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_geterainfooptions_free(m>>>0));class wo{static __wrap(i){i>>>=0;const c=Object.create(wo.prototype);return c.__wbg_ptr=i,Gs.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Gs.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_geterainfooptions_free(i)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getblockoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get maybe_block_identifier(){const i=l.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr);return 0===i?void 0:Ue.__wrap(i)}set maybe_block_identifier(i){let c=0;E(i)||(N(i,Ue),c=i.__destroy_into_raw()),l.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getblockoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getblockoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const bo=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_geterasummaryoptions_free(m>>>0));class mi{static __wrap(i){i>>>=0;const c=Object.create(mi.prototype);return c.__wbg_ptr=i,bo.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,bo.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_geterasummaryoptions_free(i)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getblockoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get maybe_block_identifier(){const i=l.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr);return 0===i?void 0:Ue.__wrap(i)}set maybe_block_identifier(i){let c=0;E(i)||(N(i,Ue),c=i.__destroy_into_raw()),l.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getblockoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getblockoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const Oc=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getspeculativeexecoptions_free(m>>>0));class Oe{static __wrap(i){i>>>=0;const c=Object.create(Oe.prototype);return c.__wbg_ptr=i,Oc.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Oc.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getspeculativeexecoptions_free(i)}get deploy_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getspeculativeexecoptions_deploy_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set deploy_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getspeculativeexecoptions_deploy_as_string(this.__wbg_ptr,c,D)}get deploy(){const i=l.__wbg_get_getspeculativeexecoptions_deploy(this.__wbg_ptr);return 0===i?void 0:Ce.__wrap(i)}set deploy(i){let c=0;E(i)||(N(i,Ce),c=i.__destroy_into_raw()),l.__wbg_set_getspeculativeexecoptions_deploy(this.__wbg_ptr,c)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getspeculativeexecoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getspeculativeexecoptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get maybe_block_identifier(){const i=l.__wbg_get_getspeculativeexecoptions_maybe_block_identifier(this.__wbg_ptr);return 0===i?void 0:Ue.__wrap(i)}set maybe_block_identifier(i){let c=0;E(i)||(N(i,Ue),c=i.__destroy_into_raw()),l.__wbg_set_getspeculativeexecoptions_maybe_block_identifier(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getspeculativeexecoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getspeculativeexecoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getspeculativeexecoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getspeculativeexecoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const H=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_getstateroothashoptions_free(m>>>0));class J{static __wrap(i){i>>>=0;const c=Object.create(J.prototype);return c.__wbg_ptr=i,H.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_getstateroothashoptions_free(i)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getstateroothashoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getstateroothashoptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get maybe_block_identifier(){const i=l.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr);return 0===i?void 0:Ue.__wrap(i)}set maybe_block_identifier(i){let c=0;E(i)||(N(i,Ue),c=i.__destroy_into_raw()),l.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getstateroothashoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getstateroothashoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getstateroothashoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getstateroothashoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const Ze=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_querybalanceoptions_free(m>>>0));class Ft{static __wrap(i){i>>>=0;const c=Object.create(Ft.prototype);return c.__wbg_ptr=i,Ze.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,Ze.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_querybalanceoptions_free(i)}get purse_identifier_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getaccountoptions_account_identifier_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set purse_identifier_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getaccountoptions_account_identifier_as_string(this.__wbg_ptr,c,D)}get purse_identifier(){const i=l.__wbg_get_querybalanceoptions_purse_identifier(this.__wbg_ptr);return 0===i?void 0:xe.__wrap(i)}set purse_identifier(i){let c=0;E(i)||(N(i,xe),c=i.__destroy_into_raw()),l.__wbg_set_querybalanceoptions_purse_identifier(this.__wbg_ptr,c)}get global_state_identifier(){const i=l.__wbg_get_querybalanceoptions_global_state_identifier(this.__wbg_ptr);return 0===i?void 0:Xt.__wrap(i)}set global_state_identifier(i){let c=0;E(i)||(N(i,Xt),c=i.__destroy_into_raw()),l.__wbg_set_querybalanceoptions_global_state_identifier(this.__wbg_ptr,c)}get state_root_hash_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getaccountoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set state_root_hash_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getaccountoptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get state_root_hash(){const i=l.__wbg_get_querybalanceoptions_state_root_hash(this.__wbg_ptr);return 0===i?void 0:Ie.__wrap(i)}set state_root_hash(i){let c=0;E(i)||(N(i,Ie),c=i.__destroy_into_raw()),l.__wbg_set_querybalanceoptions_state_root_hash(this.__wbg_ptr,c)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getaccountoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getaccountoptions_node_address(this.__wbg_ptr,c,D)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querybalanceoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querybalanceoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_querybalanceoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_querybalanceoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_querycontractdictoptions_free(m>>>0));class Rt{static __wrap(i){i>>>=0;const c=Object.create(Rt.prototype);return c.__wbg_ptr=i,gt.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,gt.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_querycontractdictoptions_free(i)}get state_root_hash_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getdictionaryitemoptions_state_root_hash_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set state_root_hash_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr,c,D)}get state_root_hash(){const i=l.__wbg_get_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr);return 0===i?void 0:Ie.__wrap(i)}set state_root_hash(i){let c=0;E(i)||(N(i,Ie),c=i.__destroy_into_raw()),l.__wbg_set_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr,c)}get dictionary_item_params(){const i=l.__wbg_get_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr);return 0===i?void 0:pr.__wrap(i)}set dictionary_item_params(i){let c=0;E(i)||(N(i,pr),c=i.__destroy_into_raw()),l.__wbg_set_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr,c)}get dictionary_item_identifier(){const i=l.__wbg_get_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr);return 0===i?void 0:Yt.__wrap(i)}set dictionary_item_identifier(i){let c=0;E(i)||(N(i,Yt),c=i.__destroy_into_raw()),l.__wbg_set_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_getdictionaryitemoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_getdictionaryitemoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_getdictionaryitemoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_getdictionaryitemoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const mr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_querycontractkeyoptions_free(m>>>0));class Me{static __wrap(i){i>>>=0;const c=Object.create(Me.prototype);return c.__wbg_ptr=i,mr.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,mr.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_querycontractkeyoptions_free(i)}get global_state_identifier(){const i=l.__wbg_get_querycontractkeyoptions_global_state_identifier(this.__wbg_ptr);return 0===i?void 0:Xt.__wrap(i)}set global_state_identifier(i){let c=0;E(i)||(N(i,Xt),c=i.__destroy_into_raw()),l.__wbg_set_querycontractkeyoptions_global_state_identifier(this.__wbg_ptr,c)}get state_root_hash_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querycontractkeyoptions_state_root_hash_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set state_root_hash_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querycontractkeyoptions_state_root_hash_as_string(this.__wbg_ptr,c,D)}get state_root_hash(){const i=l.__wbg_get_querycontractkeyoptions_state_root_hash(this.__wbg_ptr);return 0===i?void 0:Ie.__wrap(i)}set state_root_hash(i){let c=0;E(i)||(N(i,Ie),c=i.__destroy_into_raw()),l.__wbg_set_querycontractkeyoptions_state_root_hash(this.__wbg_ptr,c)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querycontractkeyoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querycontractkeyoptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get contract_key_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querycontractkeyoptions_contract_key_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set contract_key_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querycontractkeyoptions_contract_key_as_string(this.__wbg_ptr,c,D)}get contract_key(){const i=l.__wbg_get_querycontractkeyoptions_contract_key(this.__wbg_ptr);return 0===i?void 0:Be.__wrap(i)}set contract_key(i){let c=0;E(i)||(N(i,Be),c=i.__destroy_into_raw()),l.__wbg_set_querycontractkeyoptions_contract_key(this.__wbg_ptr,c)}get path_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querycontractkeyoptions_path_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set path_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querycontractkeyoptions_path_as_string(this.__wbg_ptr,c,D)}get path(){const i=l.__wbg_get_querycontractkeyoptions_path(this.__wbg_ptr);return 0===i?void 0:hr.__wrap(i)}set path(i){let c=0;E(i)||(N(i,hr),c=i.__destroy_into_raw()),l.__wbg_set_querycontractkeyoptions_path(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_querycontractkeyoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_querycontractkeyoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_querycontractkeyoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_querycontractkeyoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}const dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(m=>l.__wbg_queryglobalstateoptions_free(m>>>0));class tn{static __wrap(i){i>>>=0;const c=Object.create(tn.prototype);return c.__wbg_ptr=i,dt.register(c,c.__wbg_ptr,c),c}__destroy_into_raw(){const i=this.__wbg_ptr;return this.__wbg_ptr=0,dt.unregister(this),i}free(){const i=this.__destroy_into_raw();l.__wbg_queryglobalstateoptions_free(i)}get global_state_identifier(){const i=l.__wbg_get_queryglobalstateoptions_global_state_identifier(this.__wbg_ptr);return 0===i?void 0:Xt.__wrap(i)}set global_state_identifier(i){let c=0;E(i)||(N(i,Xt),c=i.__destroy_into_raw()),l.__wbg_set_queryglobalstateoptions_global_state_identifier(this.__wbg_ptr,c)}get state_root_hash_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_queryglobalstateoptions_state_root_hash_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set state_root_hash_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_queryglobalstateoptions_state_root_hash_as_string(this.__wbg_ptr,c,D)}get state_root_hash(){const i=l.__wbg_get_queryglobalstateoptions_state_root_hash(this.__wbg_ptr);return 0===i?void 0:Ie.__wrap(i)}set state_root_hash(i){let c=0;E(i)||(N(i,Ie),c=i.__destroy_into_raw()),l.__wbg_set_queryglobalstateoptions_state_root_hash(this.__wbg_ptr,c)}get maybe_block_id_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_queryglobalstateoptions_maybe_block_id_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set maybe_block_id_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_queryglobalstateoptions_maybe_block_id_as_string(this.__wbg_ptr,c,D)}get key_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_queryglobalstateoptions_key_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set key_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_queryglobalstateoptions_key_as_string(this.__wbg_ptr,c,D)}get key(){const i=l.__wbg_get_queryglobalstateoptions_key(this.__wbg_ptr);return 0===i?void 0:Be.__wrap(i)}set key(i){let c=0;E(i)||(N(i,Be),c=i.__destroy_into_raw()),l.__wbg_set_queryglobalstateoptions_key(this.__wbg_ptr,c)}get path_as_string(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_queryglobalstateoptions_path_as_string(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set path_as_string(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_queryglobalstateoptions_path_as_string(this.__wbg_ptr,c,D)}get path(){const i=l.__wbg_get_queryglobalstateoptions_path(this.__wbg_ptr);return 0===i?void 0:hr.__wrap(i)}set path(i){let c=0;E(i)||(N(i,hr),c=i.__destroy_into_raw()),l.__wbg_set_queryglobalstateoptions_path(this.__wbg_ptr,c)}get node_address(){try{const _=l.__wbindgen_add_to_stack_pointer(-16);l.__wbg_get_queryglobalstateoptions_node_address(_,this.__wbg_ptr);var i=w()[_/4+0],c=w()[_/4+1];let p;return 0!==i&&(p=P(i,c).slice(),l.__wbindgen_free(i,1*c,1)),p}finally{l.__wbindgen_add_to_stack_pointer(16)}}set node_address(i){var c=E(i)?0:S(i,l.__wbindgen_malloc,l.__wbindgen_realloc);l.__wbg_set_queryglobalstateoptions_node_address(this.__wbg_ptr,c,D)}get verbosity(){const i=l.__wbg_get_queryglobalstateoptions_verbosity(this.__wbg_ptr);return 3===i?void 0:i}set verbosity(i){l.__wbg_set_queryglobalstateoptions_verbosity(this.__wbg_ptr,E(i)?3:i)}}function yr(){return(yr=(0,j.c)(function*(m,i){if("function"==typeof Response&&m instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return yield WebAssembly.instantiateStreaming(m,i)}catch(_){if("application/wasm"==m.headers.get("Content-Type"))throw _;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",_)}const c=yield m.arrayBuffer();return yield WebAssembly.instantiate(c,i)}{const c=yield WebAssembly.instantiate(m,i);return c instanceof WebAssembly.Instance?{instance:c,module:m}:c}})).apply(this,arguments)}function Ws(){const m={wbg:{}};return m.wbg.__wbindgen_object_drop_ref=function(i){C(i)},m.wbg.__wbg_querybalanceresult_new=function(i){return F(_i.__wrap(i))},m.wbg.__wbg_getvalidatorchangesresult_new=function(i){return F(St.__wrap(i))},m.wbg.__wbg_getauctioninforesult_new=function(i){return F(Ps.__wrap(i))},m.wbg.__wbg_getstateroothashresult_new=function(i){return F(Vs.__wrap(i))},m.wbg.__wbg_getblocktransfersresult_new=function(i){return F(bc.__wrap(i))},m.wbg.__wbg_getpeersresult_new=function(i){return F(Ls.__wrap(i))},m.wbg.__wbg_putdeployresult_new=function(i){return F(go.__wrap(i))},m.wbg.__wbg_getchainspecresult_new=function(i){return F(et.__wrap(i))},m.wbg.__wbg_getaccountresult_new=function(i){return F(yc.__wrap(i))},m.wbg.__wbindgen_object_clone_ref=function(i){return F(L(i))},m.wbg.__wbindgen_string_get=function(i,c){const _=L(c),p="string"==typeof _?_:void 0;var y=E(p)?0:S(p,l.__wbindgen_malloc,l.__wbindgen_realloc),M=D;w()[i/4+1]=M,w()[i/4+0]=y},m.wbg.__wbg_error_adb09b59c60c9cab=function(i,c){console.error(P(i,c))},m.wbg.__wbindgen_error_new=function(i,c){return F(new Error(P(i,c)))},m.wbg.__wbg_geterasummaryresult_new=function(i){return F(Ic.__wrap(i))},m.wbg.__wbindgen_string_new=function(i,c){return F(P(i,c))},m.wbg.__wbg_listrpcsresult_new=function(i){return F(ye.__wrap(i))},m.wbg.__wbg_getbalanceresult_new=function(i){return F(je.__wrap(i))},m.wbg.__wbg_getdeployresult_new=function(i){return F(vc.__wrap(i))},m.wbg.__wbg_getdictionaryitemresult_new=function(i){return F(Dc.__wrap(i))},m.wbg.__wbg_getblockresult_new=function(i){return F(wc.__wrap(i))},m.wbg.__wbg_queryglobalstateresult_new=function(i){return F(fi.__wrap(i))},m.wbg.__wbg_speculativeexecresult_new=function(i){return F(Ht.__wrap(i))},m.wbg.__wbg_geterainforesult_new=function(i){return F(Ec.__wrap(i))},m.wbg.__wbg_getnodestatusresult_new=function(i){return F(Sc.__wrap(i))},m.wbg.__wbindgen_is_undefined=function(i){return void 0===L(i)},m.wbg.__wbindgen_jsval_eq=function(i,c){return L(i)===L(c)},m.wbg.__wbindgen_is_null=function(i){return null===L(i)},m.wbg.__wbg_deploysubscription_unwrap=function(i){return Et.__unwrap(C(i))},m.wbg.__wbindgen_cb_drop=function(i){const c=C(i).original;return 1==c.cnt--&&(c.a=0,!0)},m.wbg.__wbg_fetch_27eb4c0a08a9ca04=function(i){return F(fetch(L(i)))},m.wbg.__wbg_getReader_ab94afcb5cb7689a=function(){return Re(function(i){return F(L(i).getReader())},arguments)},m.wbg.__wbg_done_2ffa852272310e47=function(i){return L(i).done},m.wbg.__wbg_value_9f6eeb1e2aab8d96=function(i){return F(L(i).value)},m.wbg.__wbg_queueMicrotask_481971b0d87f3dd4=function(i){queueMicrotask(L(i))},m.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6=function(i){return F(L(i).queueMicrotask)},m.wbg.__wbindgen_is_function=function(i){return"function"==typeof L(i)},m.wbg.__wbg_fetch_921fad6ef9e883dd=function(i,c){return F(L(i).fetch(L(c)))},m.wbg.__wbg_view_7f0ce470793a340f=function(i){const c=L(i).view;return E(c)?0:F(c)},m.wbg.__wbg_respond_b1a43b2e3a06d525=function(){return Re(function(i,c){L(i).respond(c>>>0)},arguments)},m.wbg.__wbg_read_e7d0f8a49be01d86=function(i){return F(L(i).read())},m.wbg.__wbg_releaseLock_5c49db976c08b864=function(i){L(i).releaseLock()},m.wbg.__wbg_cancel_6ee33d4006737aef=function(i){return F(L(i).cancel())},m.wbg.__wbg_signal_a61f78a3478fd9bc=function(i){return F(L(i).signal)},m.wbg.__wbg_new_0d76b0581eca6298=function(){return Re(function(){return F(new AbortController)},arguments)},m.wbg.__wbg_abort_2aa7521d5690750e=function(i){L(i).abort()},m.wbg.__wbg_instanceof_Response_849eb93e75734b6e=function(i){let c;try{c=L(i)instanceof Response}catch{c=!1}return c},m.wbg.__wbg_url_5f6dc4009ac5f99d=function(i,c){const p=S(L(c).url,l.__wbindgen_malloc,l.__wbindgen_realloc),y=D;w()[i/4+1]=y,w()[i/4+0]=p},m.wbg.__wbg_status_61a01141acd3cf74=function(i){return L(i).status},m.wbg.__wbg_headers_9620bfada380764a=function(i){return F(L(i).headers)},m.wbg.__wbg_body_9545a94f397829db=function(i){const c=L(i).body;return E(c)?0:F(c)},m.wbg.__wbg_arrayBuffer_29931d52c7206b02=function(){return Re(function(i){return F(L(i).arrayBuffer())},arguments)},m.wbg.__wbg_newwithstrandinit_3fd6fba4083ff2d0=function(){return Re(function(i,c,_){return F(new Request(P(i,c),L(_)))},arguments)},m.wbg.__wbg_new_ab6fd82b10560829=function(){return Re(function(){return F(new Headers)},arguments)},m.wbg.__wbg_append_7bfcb4937d1d5e29=function(){return Re(function(i,c,_,p,y){L(i).append(P(c,_),P(p,y))},arguments)},m.wbg.__wbg_close_a994f9425dab445c=function(){return Re(function(i){L(i).close()},arguments)},m.wbg.__wbg_enqueue_ea194723156c0cc2=function(){return Re(function(i,c){L(i).enqueue(L(c))},arguments)},m.wbg.__wbg_byobRequest_72fca99f9c32c193=function(i){const c=L(i).byobRequest;return E(c)?0:F(c)},m.wbg.__wbg_close_184931724d961ccc=function(){return Re(function(i){L(i).close()},arguments)},m.wbg.__wbg_crypto_d05b68a3572bb8ca=function(i){return F(L(i).crypto)},m.wbg.__wbindgen_is_object=function(i){const c=L(i);return"object"==typeof c&&null!==c},m.wbg.__wbg_process_b02b3570280d0366=function(i){return F(L(i).process)},m.wbg.__wbg_versions_c1cb42213cedf0f5=function(i){return F(L(i).versions)},m.wbg.__wbg_node_43b1089f407e4ec2=function(i){return F(L(i).node)},m.wbg.__wbindgen_is_string=function(i){return"string"==typeof L(i)},m.wbg.__wbg_require_9a7e0f667ead4995=function(){return Re(function(){return F(Qn.require)},arguments)},m.wbg.__wbg_msCrypto_10fc94afee92bd76=function(i){return F(L(i).msCrypto)},m.wbg.__wbg_randomFillSync_b70ccbdf4926a99d=function(){return Re(function(i,c){L(i).randomFillSync(C(c))},arguments)},m.wbg.__wbg_getRandomValues_7e42b4fb8779dc6d=function(){return Re(function(i,c){L(i).getRandomValues(L(c))},arguments)},m.wbg.__wbg_get_bd8e338fbd5f5cc8=function(i,c){return F(L(i)[c>>>0])},m.wbg.__wbg_length_cd7af8117672b8b8=function(i){return L(i).length},m.wbg.__wbg_new_16b304a2cfa7ff4a=function(){return F(new Array)},m.wbg.__wbg_newnoargs_e258087cd0daa0ea=function(i,c){return F(new Function(P(i,c)))},m.wbg.__wbg_next_40fc327bfc8770e6=function(i){return F(L(i).next)},m.wbg.__wbg_next_196c84450b364254=function(){return Re(function(i){return F(L(i).next())},arguments)},m.wbg.__wbg_done_298b57d23c0fc80c=function(i){return L(i).done},m.wbg.__wbg_value_d93c65011f51a456=function(i){return F(L(i).value)},m.wbg.__wbg_iterator_2cee6dadfd956dfa=function(){return F(Symbol.iterator)},m.wbg.__wbg_get_e3c254076557e348=function(){return Re(function(i,c){return F(Reflect.get(L(i),L(c)))},arguments)},m.wbg.__wbg_call_27c0f87801dedf93=function(){return Re(function(i,c){return F(L(i).call(L(c)))},arguments)},m.wbg.__wbg_new_72fb9a18b5ae2624=function(){return F(new Object)},m.wbg.__wbg_self_ce0dbfc45cf2f5be=function(){return Re(function(){return F(self.self)},arguments)},m.wbg.__wbg_window_c6fb939a7f436783=function(){return Re(function(){return F(window.window)},arguments)},m.wbg.__wbg_globalThis_d1e6af4856ba331b=function(){return Re(function(){return F(globalThis.globalThis)},arguments)},m.wbg.__wbg_global_207b558942527489=function(){return Re(function(){return F(global.global)},arguments)},m.wbg.__wbg_push_a5b05aedc7234f9f=function(i,c){return L(i).push(L(c))},m.wbg.__wbg_new_28c511d9baebfa89=function(i,c){return F(new Error(P(i,c)))},m.wbg.__wbg_apply_6d0b9cd50eb480c3=function(){return Re(function(i,c,_){return F(L(i).apply(L(c),L(_)))},arguments)},m.wbg.__wbg_call_b3ca7c6051f9bec1=function(){return Re(function(i,c,_){return F(L(i).call(L(c),L(_)))},arguments)},m.wbg.__wbg_getTime_2bc4375165f02d15=function(i){return L(i).getTime()},m.wbg.__wbg_new0_7d84e5b2cd9fdc73=function(){return F(new Date)},m.wbg.__wbg_instanceof_Object_71ca3c0a59266746=function(i){let c;try{c=L(i)instanceof Object}catch{c=!1}return c},m.wbg.__wbg_new_81740750da40724f=function(i,c){try{var _={a:i,b:c};const y=new Promise((M,A)=>{const K=_.a;_.a=0;try{return function md(m,i,c,_){l.wasm_bindgen__convert__closures__invoke2_mut__h9dfef0df0f9679df(m,i,F(c),F(_))}(K,_.b,M,A)}finally{_.a=K}});return F(y)}finally{_.a=_.b=0}},m.wbg.__wbg_resolve_b0083a7967828ec8=function(i){return F(Promise.resolve(L(i)))},m.wbg.__wbg_catch_0260e338d10f79ae=function(i,c){return F(L(i).catch(L(c)))},m.wbg.__wbg_then_0c86a60e8fcfe9f6=function(i,c){return F(L(i).then(L(c)))},m.wbg.__wbg_then_a73caa9a87991566=function(i,c,_){return F(L(i).then(L(c),L(_)))},m.wbg.__wbg_buffer_12d079cc21e14bdb=function(i){return F(L(i).buffer)},m.wbg.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb=function(i,c,_){return F(new Uint8Array(L(i),c>>>0,_>>>0))},m.wbg.__wbg_new_63b92bc8671ed464=function(i){return F(new Uint8Array(L(i)))},m.wbg.__wbg_set_a47bac70306a19a7=function(i,c,_){L(i).set(L(c),_>>>0)},m.wbg.__wbg_length_c20a40f15020d68a=function(i){return L(i).length},m.wbg.__wbg_newwithlength_e9b4878cebadb3d3=function(i){return F(new Uint8Array(i>>>0))},m.wbg.__wbg_buffer_dd7f74bc60f1faab=function(i){return F(L(i).buffer)},m.wbg.__wbg_subarray_a1f73cd4b5b42fe1=function(i,c,_){return F(L(i).subarray(c>>>0,_>>>0))},m.wbg.__wbg_byteLength_58f7b4fab1919d44=function(i){return L(i).byteLength},m.wbg.__wbg_byteOffset_81d60f7392524f62=function(i){return L(i).byteOffset},m.wbg.__wbg_getindex_03d06b4e7ea3475e=function(i,c){return L(i)[c>>>0]},m.wbg.__wbg_has_0af94d20077affa2=function(){return Re(function(i,c){return Reflect.has(L(i),L(c))},arguments)},m.wbg.__wbg_set_1f9b04f170055d33=function(){return Re(function(i,c,_){return Reflect.set(L(i),L(c),L(_))},arguments)},m.wbg.__wbg_parse_66d1801634e099ac=function(){return Re(function(i,c){return F(JSON.parse(P(i,c)))},arguments)},m.wbg.__wbg_stringify_8887fe74e1c50d81=function(){return Re(function(i){return F(JSON.stringify(L(i)))},arguments)},m.wbg.__wbindgen_debug_string=function(i,c){const p=S(oo(L(c)),l.__wbindgen_malloc,l.__wbindgen_realloc),y=D;w()[i/4+1]=y,w()[i/4+0]=p},m.wbg.__wbindgen_throw=function(i,c){throw new Error(P(i,c))},m.wbg.__wbindgen_memory=function(){return F(l.memory)},m.wbg.__wbindgen_closure_wrapper4124=function(i,c,_){return F(ks(i,c,837,Yo))},m.wbg.__wbindgen_closure_wrapper4203=function(i,c,_){return F(ks(i,c,878,io))},m}function wr(m){return pn.apply(this,arguments)}function pn(){return pn=(0,j.c)(function*(m){if(void 0!==l)return l;typeof m>"u"&&(m=new URL("casper_rust_wasm_sdk_bg.wasm","file:///opt2/casper/rustSDK/pkg/casper_rust_wasm_sdk.js"));const i=Ws();("string"==typeof m||"function"==typeof Request&&m instanceof Request||"function"==typeof URL&&m instanceof URL)&&(m=fetch(m));const{instance:c,module:_}=yield function re(m,i){return yr.apply(this,arguments)}(yield m,i);return function $e(m,i){return l=m.exports,wr.__wbindgen_wasm_module=i,xr=null,Xo=null,Qt=null,l}(c,_)}),pn.apply(this,arguments)}const Do=wr},1528:(Qn,Rr,Dt)=>{function j(ce,L,ut,Ct,C,F,D){try{var Qt=ce[F](D),Bt=Qt.value}catch(Zn){return void ut(Zn)}Qt.done?L(Bt):Promise.resolve(Bt).then(Ct,C)}function l(ce){return function(){var L=this,ut=arguments;return new Promise(function(Ct,C){var F=ce.apply(L,ut);function D(Bt){j(F,Ct,C,D,Qt,"next",Bt)}function Qt(Bt){j(F,Ct,C,D,Qt,"throw",Bt)}D(void 0)})}}Dt.d(Rr,{c:()=>l})}},Qn=>{Qn(Qn.s=3824)}]); \ No newline at end of file