diff --git "a/web-build/static/js/23.aed00c51.js" "b/web-build/static/js/23.aed00c51.js" new file mode 100644--- /dev/null +++ "b/web-build/static/js/23.aed00c51.js" @@ -0,0 +1,3 @@ +/*! For license information please see 23.aed00c51.js.LICENSE.txt */ +(self.webpackChunkweb=self.webpackChunkweb||[]).push([[23],{872:function(e,t,n){var r=n(4994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1132)),a=r(n(4634)),o=r(n(5715)),s=r(n(1847)),u=r(n(3672)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(6665)),c=n(7184),f=["value","minimumValue","maximumValue","step","minimumTrackTintColor","maximumTrackTintColor","thumbTintColor","thumbStyle","style","inverted","disabled","trackHeight","thumbSize","thumbImage","onRNCSliderSlidingStart","onRNCSliderSlidingComplete","onRNCSliderValueChange"],d=this,h="C:\\Dev\\Projects\\react-native-slider\\package\\src\\RNCSliderNativeComponent.web.tsx";function p(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}var v=function(e){return{nativeEvent:{value:e}}},m=l.default.forwardRef((function(e,t){var n=e.value,r=e.minimumValue,i=void 0===r?0:r,p=e.maximumValue,m=void 0===p?0:p,y=e.step,g=void 0===y?1:y,_=e.minimumTrackTintColor,w=void 0===_?"#009688":_,S=e.maximumTrackTintColor,E=void 0===S?"#939393":S,k=e.thumbTintColor,M=void 0===k?"#009688":k,R=e.thumbStyle,C=void 0===R?{}:R,x=e.style,A=void 0===x?{}:x,T=e.inverted,P=void 0!==T&&T,I=e.disabled,O=void 0!==I&&I,L=e.trackHeight,N=void 0===L?4:L,D=e.thumbSize,B=void 0===D?20:D,j=e.thumbImage,z=e.onRNCSliderSlidingStart,U=void 0===z?function(e){}:z,F=e.onRNCSliderSlidingComplete,V=void 0===F?function(e){}:F,H=e.onRNCSliderValueChange,q=void 0===H?function(e){}:H,W=(0,s.default)(e,f),K=l.default.useRef({width:0,height:0}),G=l.default.useRef(0),Y=t||l.default.createRef(),$=l.default.useRef(!1),X=l.default.useState(n||i),Q=(0,o.default)(X,2),Z=Q[0],J=Q[1],ee=l.default.useRef(),te=l.default.useRef({val:new c.Animated.Value(Z),min:new c.Animated.Value(i),max:new c.Animated.Value(m),diff:new c.Animated.Value(m-i||1)}).current;l.default.useEffect((function(){te.min.setValue(i),te.max.setValue(m),te.diff.setValue(m-i||1)}),[te,i,m]);var ne=l.default.useRef(c.Animated.multiply(new c.Animated.Value(100),c.Animated.divide(c.Animated.subtract(te.val,te.min),te.diff))).current,re=l.default.useRef(c.Animated.subtract(new c.Animated.Value(100),ne)).current,ie=(0,l.useCallback)((function(e){q&&q(v(e))}),[q]),ae=(0,l.useCallback)((function(e){U&&U(v(e))}),[U]),oe=(0,l.useCallback)((function(e){V&&V(v(e))}),[V]),se=(0,l.useCallback)((function(e){var t=he.current<20?Number.parseFloat(e.toFixed(he.current)):e,n=Math.max(i,Math.min(t,m));return Z!==n?(J(n),ie(n),n):t}),[i,m,Z,ie]);l.default.useLayoutEffect((function(){if(n!==ee.current){ee.current=n;var e=se(n);te.val.setValue(e)}}),[n,se,te]),l.default.useEffect((function(){var e=function(){$.current=!0},t=function(t){!$.current&&Y.current&&t.target.contains(Y.current)&&e()};return window.addEventListener("resize",e),document.addEventListener("scroll",t,{capture:!0}),function(){window.removeEventListener("resize",e),document.removeEventListener("scroll",t,{capture:!0})}}),[Y]);var ue=c.StyleSheet.compose({flexGrow:1,flexShrink:1,flexBasis:"auto",flexDirection:"row",alignItems:"center"},A),le={height:N,borderRadius:N/2,userSelect:"none"},ce=Object.assign({},le,{backgroundColor:w,flexGrow:ne}),fe=Object.assign({},le,{backgroundColor:E,flexGrow:re}),de=c.StyleSheet.compose({width:B,height:B,backgroundColor:M,zIndex:1,borderRadius:B/2,overflow:"hidden"},C),he=l.default.useRef(b(i,m,g));l.default.useEffect((function(){he.current=b(i,m,g)}),[m,i,g]);var pe=function(){var e,t=null==(e=u.default.findDOMNode(Y.current).getBoundingClientRect())?void 0:e.x;G.current=null!=t?t:0},ve=function(e){var t=K.current.width,n=void 0===t?1:t;$.current&&($.current=!1,pe());var r=G.current;if(er+n)return P?i:m;var a=e-r,o=P?m-(m-i)*a/n:i+(m-i)*a/n;return g?Math.round(o/g)*g:o};return l.default.useImperativeHandle(t,(function(){return{updateValue:function(e){se(e)}}}),[se]),l.default.createElement(c.View,(0,a.default)({ref:Y,onLayout:function(e){var t=e.nativeEvent.layout;K.current.height=t.height,K.current.width=t.width,Y.current&&pe()},accessibilityActions:[{name:"increment",label:"increment"},{name:"decrement",label:"decrement"}],onAccessibilityAction:function(e){var t=(m-i)/10;switch(e.nativeEvent.actionName){case"increment":se(Z+(g||t));break;case"decrement":se(Z-(g||t))}},accessible:!0,accessibilityRole:"adjustable",style:ue},W,{onStartShouldSetResponder:function(){return!O},onMoveShouldSetResponder:function(){return!O},onResponderGrant:function(){return ae(Z)},onResponderRelease:function(e){var t=e.nativeEvent,n=se(ve(t.pageX));te.val.setValue(n),oe(n)},onResponderMove:function(e){var t=e.nativeEvent,n=ve(t.pageX);te.val.setValue(n),se(n)},__self:d,__source:{fileName:h,lineNumber:318,columnNumber:7}}),l.default.createElement(c.Animated.View,{pointerEvents:"none",style:ce,__self:d,__source:{fileName:h,lineNumber:343,columnNumber:9}}),l.default.createElement(c.View,{pointerEvents:"none",style:de,__self:d,__source:{fileName:h,lineNumber:344,columnNumber:9}},void 0!==j?l.default.createElement(c.Image,{source:j,style:{width:"100%",height:"100%"},__self:d,__source:{fileName:h,lineNumber:346,columnNumber:13}}):null),l.default.createElement(c.Animated.View,{pointerEvents:"none",style:fe,__self:d,__source:{fileName:h,lineNumber:352,columnNumber:9}}))}));function b(e,t,n){if(n){var r=[e,t,n].map((function(e){return((e+"").split(".").pop()||"").length}));return Math.max.apply(Math,(0,i.default)(r))}return 1/0}m.displayName="RTCSliderWebComponent";var y=m;t.default=y},7851:function(e,t,n){var r=n(4994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(4634)),a=r(n(1847)),o=r(n(6665)),s=n(7184),u=r(n(5920)),l=["onValueChange","onSlidingStart","onSlidingComplete","onAccessibilityAction"],c=this,f=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,h=o.default.forwardRef((function(e,t){var n,r=s.StyleSheet.compose(e.style,p.slider),h=e.onValueChange,v=e.onSlidingStart,m=e.onSlidingComplete,b=e.onAccessibilityAction,y=(0,a.default)(e,l),g=h?function(e){h(e.nativeEvent.value)}:null,_="boolean"===typeof e.disabled?e.disabled:!0===(null==(n=e.accessibilityState)?void 0:n.disabled),w="boolean"===typeof e.disabled?Object.assign({},e.accessibilityState,{disabled:e.disabled}):e.accessibilityState,S=v?function(e){v(e.nativeEvent.value)}:null,E=m?function(e){m(e.nativeEvent.value)}:null,k=b?function(e){b(e)}:null,M=y.lowerLimit||0===y.lowerLimit?y.lowerLimit:f,R=y.upperLimit||0===y.upperLimit?y.upperLimit:d;return o.default.createElement(u.default,(0,i.default)({},y,{lowerLimit:M,upperLimit:R,accessibilityState:w,thumbImage:"web"===s.Platform.OS?e.thumbImage:e.thumbImage?s.Image.resolveAssetSource(e.thumbImage):void 0,ref:t,style:r,onChange:g,onRNCSliderSlidingStart:S,onRNCSliderSlidingComplete:E,onRNCSliderValueChange:g,disabled:_,onStartShouldSetResponder:function(){return!0},onResponderTerminationRequest:function(){return!1},onRNCSliderAccessibilityAction:k,__self:c,__source:{fileName:"C:\\Dev\\Projects\\react-native-slider\\package\\src\\Slider.tsx",lineNumber:248,columnNumber:5}}))}));h.defaultProps={value:0,minimumValue:0,maximumValue:1,step:0,inverted:!1,tapToSeek:!1,lowerLimit:f,upperLimit:d};var p=s.StyleSheet.create("ios"===s.Platform.OS?{slider:{height:40}}:{slider:{}}),v=h;t.default=v},5920:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(872).default;t.default=r},2809:e=>{"use strict";var t=[];e.exports={registerAsset:function(e){return t.push(e)},getAssetByID:function(e){return t[e-1]}}},584:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Asset:()=>M});var r=n(467),i=n(3029),a=n(2901),o=n(2809),s=n(4467),u=n(8943),l=n(5548);function c(e){var t=f.pickScale(e.scales,u.default.get()),n=1===t?"":"@"+t+"x",r=e.type?`.${e.type}`:"";return e.httpServerLocation.replace(/\.\.\//g,"_")+"/"+e.name+n+r}var f=function(){function e(t,n,r){(0,i.default)(this,e),this.serverUrl=t||"https://expo.dev",this.jsbundleUrl=null,this.asset=r}return(0,a.default)(e,[{key:"isLoadedFromServer",value:function(){return!0}},{key:"isLoadedFromFileSystem",value:function(){return!1}},{key:"defaultAsset",value:function(){return this.assetServerURL()}},{key:"assetServerURL",value:function(){var e=new URL(c(this.asset),this.serverUrl);return e.searchParams.set("platform","web"),e.searchParams.set("hash",this.asset.hash),this.fromSource(e.toString().replace(e.origin,""))}},{key:"fromSource",value:function(t){var n,r;return{__packager_asset:!0,width:null!=(n=this.asset.width)?n:void 0,height:null!=(r=this.asset.height)?r:void 0,uri:t,scale:e.pickScale(this.asset.scales,u.default.get())}}}],[{key:"pickScale",value:function(e,t){for(var n=0;n=t)return e[n];return e[e.length-1]||1}}])}(),d=null;function h(){return(h=(0,r.default)((function*(e,t,n,r){return e}))).apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t0})).join("/").split("/"),i=[];for(var a of r)".."===a?i.pop():"."!==a&&i.push(a);return i.join("/")}(d,s);return{uri:y(h),hash:s}}var p=1===a?"":`@${a}x`,b=e.type?`.${encodeURIComponent(e.type)}`:"",g=`/${encodeURIComponent(e.name)}${p}${b}`,_=new URLSearchParams({platform:"web",hash:e.hash});if(/^https?:\/\//.test(e.httpServerLocation))return{uri:e.httpServerLocation+g+"?"+_,hash:s};var w={},S=null!=w&&null!=(r=w.extra)&&null!=(i=r.expoGo)&&i.developer?"http://"+w.extra.expoGo.debuggerHost:{}.developer?{}.bundleUrl:null;if(S){var E=new URL(e.httpServerLocation+g,S);return E.searchParams.set("platform","web"),E.searchParams.set("hash",e.hash),{uri:E.href,hash:s}}return l.default.ExponentKernel?{uri:`https://classic-assets.eascdn.net/~assets/${encodeURIComponent(s)}`,hash:s}:{uri:"",hash:s}}function y(e){return d?new URL(e,d).href:e}function g(e){var t=new URL(e,"https://e"),n=t.pathname;t.searchParams;return function(e){return e.substring(e.lastIndexOf("/")+1)}(n)}function _(e){var t=g(e),n=t.lastIndexOf(".");return n>0?t.substring(n):""}var w,S=n(1368);function E(e){w=e}function k(e){if("object"===typeof e)return e;var t=(0,o.getAssetByID)(e);if(!t)return null;var n=new f("https://expo.dev",null,t);return w?w(n):n.defaultAsset()}Object.defineProperty(k,"setCustomSourceTransformer",{get:function(){return E}});f.pickScale;var M=function(){function e(t){var n=t.name,r=t.type,a=t.hash,o=void 0===a?null:a,s=t.uri,u=t.width,l=t.height;(0,i.default)(this,e),this.hash=null,this.localUri=null,this.width=null,this.height=null,this.downloading=!1,this.downloaded=!1,this._downloadCallbacks=[],this.name=n,this.type=r,this.hash=o,this.uri=s,"number"===typeof u&&(this.width=u),"number"===typeof l&&(this.height=l),o&&(this.localUri=null,this.localUri&&(this.downloaded=!0)),n||(this.name=g(s)),r||(this.type=_(s))}return(0,a.default)(e,[{key:"downloadAsync",value:function(){var e=(0,r.default)((function*(){var e,t,n=this;if(this.downloaded)return this;if(this.downloading)return yield new Promise((function(e,t){n._downloadCallbacks.push({resolve:e,reject:t})})),this;this.downloading=!0;try{if(t=this.type,/^(jpeg|jpg|gif|png|bmp|webp|heic)$/i.test(t)){var r=yield(e=this.uri,S.default.isDOMAvailable?new Promise((function(t,n){var r=new Image;r.onerror=n,r.onload=function(){t({name:g(e),width:r.naturalWidth,height:r.naturalHeight})},r.src=e})):Promise.resolve({name:g(e),width:0,height:0})),i=r.width,a=r.height,o=r.name;this.width=i,this.height=a,this.name=o}else this.name=g(this.uri);this.localUri=yield function(e,t,n,r){return h.apply(this,arguments)}(this.uri,this.hash,this.type,this.name),this.downloaded=!0,this._downloadCallbacks.forEach((function(e){return(0,e.resolve)()}))}catch(s){throw this._downloadCallbacks.forEach((function(e){return(0,e.reject)(s)})),s}finally{this.downloading=!1,this._downloadCallbacks=[]}return this}));return function(){return e.apply(this,arguments)}}()}],[{key:"loadAsync",value:function(t){var n=Array.isArray(t)?t:[t];return Promise.all(n.map((function(t){return e.fromModule(t).downloadAsync()})))}},{key:"fromModule",value:function(t){if("string"===typeof t)return e.fromURI(t);var n=(0,o.getAssetByID)(t);if(!n)throw new Error(`Module "${t}" is missing from the asset registry`);var r=k(t).uri,i=new e({name:n.name,type:n.type,hash:n.hash,uri:r,width:n.width,height:n.height});return e.byHash[n.hash]=i,i}},{key:"fromMetadata",value:function(t){var n=t.hash;if(e.byHash[n])return e.byHash[n];var r=b(t),i=r.uri,a=r.hash,o=new e({name:t.name,type:t.type,hash:a,uri:i,width:t.width,height:t.height});return e.byHash[n]=o,o}},{key:"fromURI",value:function(t){if(e.byUri[t])return e.byUri[t];var n="";if(t.indexOf(";base64")>-1)n=t.split(";")[0].split("/")[1];else{var r=_(t);n=r.startsWith(".")?r.substring(1):r}var i=new e({name:"",type:n,hash:null,uri:t});return e.byUri[t]=i,i}}])}();M.byHash={},M.byUri={}},4708:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PitchCorrectionQuality:()=>o.PitchCorrectionQuality,PlaybackMixin:()=>b,_DEFAULT_INITIAL_PLAYBACK_STATUS:()=>c,_DEFAULT_PROGRESS_UPDATE_INTERVAL_MILLIS:()=>l,assertStatusValuesInBounds:()=>h,getNativeSourceAndFullInitialStatusForLoadAsync:()=>p,getNativeSourceFromSource:()=>f,getUnloadedStatus:()=>m});var r=n(4467),i=n(467),a=n(584),o=n(3335);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t32))throw new RangeError("Rate value must be between 0.0 and 32.0");if("number"===typeof e.volume&&(e.volume<0||e.volume>1))throw new RangeError("Volume value must be between 0.0 and 1.0");if("number"===typeof e.audioPan&&(e.audioPan<-1||e.audioPan>1))throw new RangeError("Pan value must be between -1.0 and 1.0")}function p(e,t,n){return v.apply(this,arguments)}function v(){return(v=(0,i.default)((function*(e,t,n){var r=null==t?c:u(u({},c),t);if(h(r),"string"===typeof e)return{nativeSource:{uri:e,overridingExtension:null},fullInitialStatus:r};var i=d(e);n&&i&&(yield i.downloadAsync());var a=f(e);if(null===a)throw new Error("Cannot load an AV asset from a null playback source");return i&&i.localUri&&(a.uri=i.localUri),{nativeSource:a,fullInitialStatus:r}}))).apply(this,arguments)}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return u({isLoaded:!1},e?{error:e}:null)}var b={playAsync:function(){var e=(0,i.default)((function*(){return this.setStatusAsync({shouldPlay:!0})}));return function(){return e.apply(this,arguments)}}(),playFromPositionAsync:function(){var e=(0,i.default)((function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setStatusAsync({positionMillis:e,shouldPlay:!0,seekMillisToleranceAfter:t.toleranceMillisAfter,seekMillisToleranceBefore:t.toleranceMillisBefore})}));return function(t){return e.apply(this,arguments)}}(),pauseAsync:function(){var e=(0,i.default)((function*(){return this.setStatusAsync({shouldPlay:!1})}));return function(){return e.apply(this,arguments)}}(),stopAsync:function(){var e=(0,i.default)((function*(){return this.setStatusAsync({positionMillis:0,shouldPlay:!1})}));return function(){return e.apply(this,arguments)}}(),setPositionAsync:function(){var e=(0,i.default)((function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setStatusAsync({positionMillis:e,seekMillisToleranceAfter:t.toleranceMillisAfter,seekMillisToleranceBefore:t.toleranceMillisBefore})}));return function(t){return e.apply(this,arguments)}}(),setRateAsync:function(){var e=(0,i.default)((function*(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.PitchCorrectionQuality.Medium;return this.setStatusAsync({rate:e,shouldCorrectPitch:t,pitchCorrectionQuality:n})}));return function(t){return e.apply(this,arguments)}}(),setVolumeAsync:function(){var e=(0,i.default)((function*(e,t){return this.setStatusAsync({volume:e,audioPan:t})}));return function(t,n){return e.apply(this,arguments)}}(),setIsMutedAsync:function(){var e=(0,i.default)((function*(e){return this.setStatusAsync({isMuted:e})}));return function(t){return e.apply(this,arguments)}}(),setIsLoopingAsync:function(){var e=(0,i.default)((function*(e){return this.setStatusAsync({isLooping:e})}));return function(t){return e.apply(this,arguments)}}(),setProgressUpdateIntervalAsync:function(){var e=(0,i.default)((function*(e){return this.setStatusAsync({progressUpdateIntervalMillis:e})}));return function(t){return e.apply(this,arguments)}}()}},3335:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PitchCorrectionQuality:()=>r});var r,i=n(9224);!function(e){e[e.Low=i.default&&i.default.Qualities&&i.default.Qualities.Low]="Low",e[e.Medium=i.default&&i.default.Qualities&&i.default.Qualities.Medium]="Medium",e[e.High=i.default&&i.default.Qualities&&i.default.Qualities.High]="High"}(r||(r={}))},5806:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AndroidAudioEncoder:()=>p.AndroidAudioEncoder,AndroidOutputFormat:()=>p.AndroidOutputFormat,IOSAudioQuality:()=>p.IOSAudioQuality,IOSBitRateStrategy:()=>p.IOSBitRateStrategy,IOSOutputFormat:()=>p.IOSOutputFormat,PermissionStatus:()=>d.PermissionStatus,PitchCorrectionQuality:()=>C.PitchCorrectionQuality,Recording:()=>R,RecordingOptionsPresets:()=>p.RecordingOptionsPresets,Sound:()=>v.Sound,getPermissionsAsync:()=>w,requestPermissionsAsync:()=>E,setAudioModeAsync:()=>P,setIsEnabledAsync:()=>h.setIsEnabledAsync,usePermissions:()=>M});var r,i,a=n(467);!function(e){e[e.MixWithOthers=0]="MixWithOthers",e[e.DoNotMix=1]="DoNotMix",e[e.DuckOthers=2]="DuckOthers"}(r||(r={})),function(e){e[e.DoNotMix=1]="DoNotMix",e[e.DuckOthers=2]="DuckOthers"}(i||(i={}));var o,s=n(9224),u=n(4467),l=n(3029),c=n(2901),f=n(2728),d=n(6068),h=n(6019),p=n(1632),v=n(4825),m=n(4708);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:p.RecordingOptionsPresets.LOW_QUALITY;if((0,h.throwIfAudioIsDisabled)(),g)throw new Error("Only one Recording object can be prepared at a given time.");if(this._isDoneRecording)throw new Error("This Recording object is done recording; you must make a new one.");if(!e||!e.android||!e.ios)throw new Error("You must provide recording options for android and ios in order to prepare to record.");var t=/^\.\w+$/;if(!e.android.extension||!e.ios.extension||!t.test(e.android.extension)||!t.test(e.ios.extension))throw new Error(`Your file extensions must match ${t.toString()}.`);if(this._canRecord)throw new Error("This Recording object is already prepared to record.");_&&(this._subscription=_.addListener("Expo.Recording.recorderUnloaded",this._cleanupForUnloadedRecorder));var n=yield s.default.prepareAudioRecorder(e),r=n.uri,i=n.status;g=!0,this._uri=r,this._options=e,this._canRecord=!0;var a=y(y({},i),{},{canRecord:!0});return this._callOnRecordingStatusUpdateForNewStatus(a),this._enablePollingIfNecessaryAndPossible(),a}));return function(){return e.apply(this,arguments)}}()},{key:"getAvailableInputs",value:function(){var e=(0,a.default)((function*(){return s.default.getAvailableInputs()}));return function(){return e.apply(this,arguments)}}()},{key:"getCurrentInput",value:function(){var e=(0,a.default)((function*(){return s.default.getCurrentInput()}));return function(){return e.apply(this,arguments)}}()},{key:"setInput",value:function(){var e=(0,a.default)((function*(e){return s.default.setInput(e)}));return function(t){return e.apply(this,arguments)}}()},{key:"startAsync",value:function(){var e=(0,a.default)((function*(){return this._performOperationAndHandleStatusAsync((function(){return s.default.startAudioRecording()}))}));return function(){return e.apply(this,arguments)}}()},{key:"pauseAsync",value:function(){var e=(0,a.default)((function*(){return this._performOperationAndHandleStatusAsync((function(){return s.default.pauseAudioRecording()}))}));return function(){return e.apply(this,arguments)}}()},{key:"stopAndUnloadAsync",value:function(){var e=(0,a.default)((function*(){var e,t,n;if(!this._canRecord)throw this._isDoneRecording?new Error("Cannot unload a Recording that has already been unloaded."):new Error("Cannot unload a Recording that has not been prepared.");try{t=yield s.default.stopAudioRecording()}catch(i){n=i}void 0!==(null==(e=t)?void 0:e.uri)&&(this._uri=t.uri),yield s.default.unloadAudioRecorder();var r=yield this._cleanupForUnloadedRecorder(t);return n?Promise.reject(n):r}));return function(){return e.apply(this,arguments)}}()},{key:"getURI",value:function(){return this._uri}},{key:"createNewLoadedSound",value:function(){var e=(0,a.default)((function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return console.warn("createNewLoadedSound is deprecated in favor of createNewLoadedSoundAsync, which has the same API aside from the method name"),this.createNewLoadedSoundAsync(e,t)}));return function(){return e.apply(this,arguments)}}()},{key:"createNewLoadedSoundAsync",value:function(){var e=(0,a.default)((function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null==this._uri||!this._isDoneRecording)throw new Error("Cannot create sound when the Recording has not finished!");return v.Sound.createAsync({uri:this._uri},e,t,!1)}));return function(){return e.apply(this,arguments)}}()}]);o=R,R.createAsync=(0,a.default)((function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.RecordingOptionsPresets.LOW_QUALITY,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=new o;n&&(r._progressUpdateIntervalMillis=n),r.setOnRecordingStatusUpdate(t),yield r.prepareToRecordAsync(y(y({},e),{},{keepAudioActiveHint:!0}));try{var i=yield r.startAsync();return{recording:r,status:i}}catch(a){throw r.stopAndUnloadAsync(),a}}));var C=n(3335),x=function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e},A={allowsRecordingIOS:!1,interruptionModeIOS:r.MixWithOthers,playsInSilentModeIOS:!1,staysActiveInBackground:!1,interruptionModeAndroid:i.DuckOthers,shouldDuckAndroid:!0,playThroughEarpieceAndroid:!1},T=null;function P(e){return I.apply(this,arguments)}function I(){return(I=(0,a.default)((function*(e){var t=x(e,T||A);if(!r[t.interruptionModeIOS])throw new Error('"interruptionModeIOS" was set to an invalid value.');if(!i[t.interruptionModeAndroid])throw new Error('"interruptionModeAndroid" was set to an invalid value.');if("boolean"!==typeof t.allowsRecordingIOS||"boolean"!==typeof t.playsInSilentModeIOS||"boolean"!==typeof t.staysActiveInBackground||"boolean"!==typeof t.shouldDuckAndroid||"boolean"!==typeof t.playThroughEarpieceAndroid)throw new Error('"allowsRecordingIOS", "playsInSilentModeIOS", "playThroughEarpieceAndroid", "staysActiveInBackground" and "shouldDuckAndroid" must be booleans.');return T=t,yield s.default.setAudioMode(t)}))).apply(this,arguments)}},6019:(e,t,n)=>{"use strict";n.r(t),n.d(t,{isAudioEnabled:()=>o,setIsEnabledAsync:()=>u,throwIfAudioIsDisabled:()=>s});var r=n(467),i=n(9224),a=!0;function o(){return a}function s(){if(!a)throw new Error("Cannot complete operation because audio is not enabled.")}function u(e){return l.apply(this,arguments)}function l(){return(l=(0,r.default)((function*(e){a=e,yield i.default.setAudioIsEnabled(e)}))).apply(this,arguments)}},1632:(e,t,n)=>{"use strict";var r,i,a,o,s;n.r(t),n.d(t,{AndroidAudioEncoder:()=>i,AndroidOutputFormat:()=>r,IOSAudioQuality:()=>o,IOSBitRateStrategy:()=>s,IOSOutputFormat:()=>a,RecordingOptionsPresets:()=>u}),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.THREE_GPP=1]="THREE_GPP",e[e.MPEG_4=2]="MPEG_4",e[e.AMR_NB=3]="AMR_NB",e[e.AMR_WB=4]="AMR_WB",e[e.AAC_ADIF=5]="AAC_ADIF",e[e.AAC_ADTS=6]="AAC_ADTS",e[e.RTP_AVP=7]="RTP_AVP",e[e.MPEG2TS=8]="MPEG2TS",e[e.WEBM=9]="WEBM"}(r||(r={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.AMR_NB=1]="AMR_NB",e[e.AMR_WB=2]="AMR_WB",e[e.AAC=3]="AAC",e[e.HE_AAC=4]="HE_AAC",e[e.AAC_ELD=5]="AAC_ELD"}(i||(i={})),function(e){e.LINEARPCM="lpcm",e.AC3="ac-3",e["60958AC3"]="cac3",e.APPLEIMA4="ima4",e.MPEG4AAC="aac ",e.MPEG4CELP="celp",e.MPEG4HVXC="hvxc",e.MPEG4TWINVQ="twvq",e.MACE3="MAC3",e.MACE6="MAC6",e.ULAW="ulaw",e.ALAW="alaw",e.QDESIGN="QDMC",e.QDESIGN2="QDM2",e.QUALCOMM="Qclp",e.MPEGLAYER1=".mp1",e.MPEGLAYER2=".mp2",e.MPEGLAYER3=".mp3",e.APPLELOSSLESS="alac",e.MPEG4AAC_HE="aach",e.MPEG4AAC_LD="aacl",e.MPEG4AAC_ELD="aace",e.MPEG4AAC_ELD_SBR="aacf",e.MPEG4AAC_ELD_V2="aacg",e.MPEG4AAC_HE_V2="aacp",e.MPEG4AAC_SPATIAL="aacs",e.AMR="samr",e.AMR_WB="sawb",e.AUDIBLE="AUDB",e.ILBC="ilbc",e[e.DVIINTELIMA=1836253201]="DVIINTELIMA",e[e.MICROSOFTGSM=1836253233]="MICROSOFTGSM",e.AES3="aes3",e.ENHANCEDAC3="ec-3"}(a||(a={})),function(e){e[e.MIN=0]="MIN",e[e.LOW=32]="LOW",e[e.MEDIUM=64]="MEDIUM",e[e.HIGH=96]="HIGH",e[e.MAX=127]="MAX"}(o||(o={})),function(e){e[e.CONSTANT=0]="CONSTANT",e[e.LONG_TERM_AVERAGE=1]="LONG_TERM_AVERAGE",e[e.VARIABLE_CONSTRAINED=2]="VARIABLE_CONSTRAINED",e[e.VARIABLE=3]="VARIABLE"}(s||(s={}));var u={HIGH_QUALITY:{isMeteringEnabled:!0,android:{extension:".m4a",outputFormat:r.MPEG_4,audioEncoder:i.AAC,sampleRate:44100,numberOfChannels:2,bitRate:128e3},ios:{extension:".m4a",outputFormat:a.MPEG4AAC,audioQuality:o.MAX,sampleRate:44100,numberOfChannels:2,bitRate:128e3,linearPCMBitDepth:16,linearPCMIsBigEndian:!1,linearPCMIsFloat:!1},web:{mimeType:"audio/webm",bitsPerSecond:128e3}},LOW_QUALITY:{isMeteringEnabled:!0,android:{extension:".3gp",outputFormat:r.THREE_GPP,audioEncoder:i.AMR_NB,sampleRate:44100,numberOfChannels:2,bitRate:128e3},ios:{extension:".m4a",audioQuality:o.MIN,outputFormat:a.MPEG4AAC,sampleRate:44100,numberOfChannels:2,bitRate:64e3,linearPCMBitDepth:16,linearPCMIsBigEndian:!1,linearPCMIsFloat:!1},web:{mimeType:"audio/webm",bitsPerSecond:128e3}}}},4825:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Sound:()=>m});var r,i=n(4467),a=n(296),o=n(467),s=n(3029),u=n(2901),l=n(830),c=n(7741),f=n(6019),d=n(4708),h=n(9224);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if((0,f.throwIfAudioIsDisabled)(),this._loading)throw new Error("The Sound is already loading.");if(this._loaded)throw new Error("The Sound is already loaded.");this._loading=!0;var i=yield(0,d.getNativeSourceAndFullInitialStatusForLoadAsync)(e,n,r),o=i.nativeSource,s=i.fullInitialStatus;return new Promise((function(e,n){h.default.loadForSound(o,s).then((function(n){var r=(0,a.default)(n,2),i=r[0],o=r[1];t._key=i,t._loaded=!0,t._loading=!1,t._subscribeToNativeEvents(),t._callOnPlaybackStatusUpdateForNewStatus(o),e(o)})).catch((function(e){t._loading=!1,n(e)}))}))}));return function(t){return e.apply(this,arguments)}}()},{key:"unloadAsync",value:function(){var e=(0,o.default)((function*(){if(this._loaded){this._loaded=!1;var e=this._key;this._key=null;var t=yield h.default.unloadForSound(e);return this._callOnPlaybackStatusUpdateForNewStatus(t),this._clearSubscriptions(),t}return this.getStatusAsync()}));return function(){return e.apply(this,arguments)}}()},{key:"setStatusAsync",value:function(){var e=(0,o.default)((function*(e){var t=this;return(0,d.assertStatusValuesInBounds)(e),this._performOperationAndHandleStatusAsync((function(){return h.default.setStatusForSound(t._key,e)}))}));return function(t){return e.apply(this,arguments)}}()},{key:"replayAsync",value:function(){var e=(0,o.default)((function*(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.positionMillis&&0!==t.positionMillis)throw new Error("Requested position after replay has to be 0.");return this._performOperationAndHandleStatusAsync((function(){return h.default.replaySound(e._key,v(v({},t),{},{positionMillis:0,shouldPlay:!0}))}))}));return function(){return e.apply(this,arguments)}}()}]);r=m,m.create=function(){var e=(0,o.default)((function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return console.warn("Sound.create is deprecated in favor of Sound.createAsync with the same API except for the new method name"),r.createAsync(e,t,n,i)}));return function(t){return e.apply(this,arguments)}}(),m.createAsync=function(){var e=(0,o.default)((function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=new r;a.setOnPlaybackStatusUpdate(n);var o=yield a.loadAsync(e,t,i);return{sound:a,status:o}}));return function(t){return e.apply(this,arguments)}}(),Object.assign(m.prototype,d.PlaybackMixin)},9224:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r=n(4467),i=n(45),a=n(467),o=n(6068),s=n(668);n(830),n(7741);n(1368),n(8023);function u(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r;default:return 0}}function l(e,t){return e<>>32-t}const c=function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=new Array(r.length);for(var i=0;i>>0;_=g,g=y,y=l(b,30)>>>0,b=m,m=E}n[0]=n[0]+m>>>0,n[1]=n[1]+b>>>0,n[2]=n[2]+y>>>0,n[3]=n[3]+g>>>0,n[4]=n[4]+_>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]};for(var f=[],d=0;d<256;++d)f[d]=(d+256).toString(16).substr(1);const h=function(e,t){var n=t||0,r=f;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var p;!function(e){e.dns="6ba7b810-9dad-11d1-80b4-00c04fd430c8",e.url="6ba7b811-9dad-11d1-80b4-00c04fd430c8",e.oid="6ba7b812-9dad-11d1-80b4-00c04fd430c8",e.x500="6ba7b814-9dad-11d1-80b4-00c04fd430c8"}(p||(p={}));!function(e,t,n){var r=function(e,r,i,a){var o=i&&a||0;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=new Array(e.length),n=0;n0&&!e.paused&&!e.ended&&e.readyState>2);return{isLoaded:!0,uri:e.src,progressUpdateIntervalMillis:100,durationMillis:1e3*e.duration,positionMillis:1e3*e.currentTime,shouldPlay:e.autoplay,isPlaying:t,isBuffering:!1,rate:e.playbackRate,shouldCorrectPitch:!1,volume:e.volume,audioPan:0,isMuted:e.muted,isLooping:e.loop,didJustFinish:e.ended}}function E(e,t){return k.apply(this,arguments)}function k(){return(k=(0,a.default)((function*(e,t){return void 0!==t.positionMillis&&(e.currentTime=t.positionMillis/1e3),void 0!==t.shouldPlay&&(t.shouldPlay?yield e.play():yield e.pause()),void 0!==t.rate&&(e.playbackRate=t.rate),void 0!==t.volume&&(e.volume=t.volume),void 0!==t.isMuted&&(e.muted=t.isMuted),void 0!==t.isLooping&&(e.loop=t.isLooping),S(e)}))).apply(this,arguments)}var M=null,R=0,C=0,x=!1;function A(){var e=C;return x&&R>0&&(e+=Date.now()-R),e}const T={get name(){return"ExponentAV"},getStatusForVideo:function(){var e=(0,a.default)((function*(e){return S(e)}));return function(t){return e.apply(this,arguments)}}(),loadForVideo:function(){var e=(0,a.default)((function*(e,t,n){return S(e)}));return function(t,n,r){return e.apply(this,arguments)}}(),unloadForVideo:function(){var e=(0,a.default)((function*(e){return S(e)}));return function(t){return e.apply(this,arguments)}}(),setStatusForVideo:function(){var e=(0,a.default)((function*(e,t){return E(e,t)}));return function(t,n){return e.apply(this,arguments)}}(),replayVideo:function(){var e=(0,a.default)((function*(e,t){return E(e,t)}));return function(t,n){return e.apply(this,arguments)}}(),setAudioMode:function(){var e=(0,a.default)((function*(){}));return function(){return e.apply(this,arguments)}}(),setAudioIsEnabled:function(){var e=(0,a.default)((function*(){}));return function(){return e.apply(this,arguments)}}(),getStatusForSound:function(){var e=(0,a.default)((function*(e){return S(e)}));return function(t){return e.apply(this,arguments)}}(),loadForSound:function(){var e=(0,a.default)((function*(e,t){var n="string"===typeof e?e:e.uri,r=new Audio(n);r.ontimeupdate=function(){v.emit("didUpdatePlaybackStatus",{key:r,status:S(r)})},r.onerror=function(){v.emit("ExponentAV.onError",{key:r,error:r.error.message})};var i=yield E(r,t);return[r,i]}));return function(t,n){return e.apply(this,arguments)}}(),unloadForSound:function(){var e=(0,a.default)((function*(e){return e.pause(),e.removeAttribute("src"),e.load(),S(e)}));return function(t){return e.apply(this,arguments)}}(),setStatusForSound:function(){var e=(0,a.default)((function*(e,t){return E(e,t)}));return function(t,n){return e.apply(this,arguments)}}(),replaySound:function(){var e=(0,a.default)((function*(e,t){return E(e,t)}));return function(t,n){return e.apply(this,arguments)}}(),getAudioRecordingStatus:function(){var e=(0,a.default)((function*(){var e,t,n;return{canRecord:"recording"===(null==(e=M)?void 0:e.state)||"inactive"===(null==(t=M)?void 0:t.state),isRecording:"recording"===(null==(n=M)?void 0:n.state),isDoneRecording:!1,durationMillis:A(),uri:null}}));return function(){return e.apply(this,arguments)}}(),prepareAudioRecorder:function(){var e=(0,a.default)((function*(e){if("undefined"!==typeof navigator&&!navigator.mediaDevices)throw new Error("No media devices available");R=0,C=0;var t=yield w({audio:!0});(M=new window.MediaRecorder(t,(null==e?void 0:e.web)||m.RecordingOptionsPresets.HIGH_QUALITY.web)).addEventListener("pause",(function(){C=A(),x=!1})),M.addEventListener("resume",(function(){R=Date.now(),x=!0})),M.addEventListener("start",(function(){R=Date.now(),C=0,x=!0})),M.addEventListener("stop",(function(){C=A(),x=!1,t.getTracks().forEach((function(e){return e.stop()}))}));var n=yield this.getAudioRecordingStatus();n.uri;return{uri:null,status:(0,i.default)(n,b)}}));return function(t){return e.apply(this,arguments)}}(),startAudioRecording:function(){var e=(0,a.default)((function*(){if(null===M)throw new Error("Cannot start an audio recording without initializing a MediaRecorder. Run prepareToRecordAsync() before attempting to start an audio recording.");return"paused"===M.state?M.resume():M.start(),this.getAudioRecordingStatus()}));return function(){return e.apply(this,arguments)}}(),pauseAudioRecording:function(){var e=(0,a.default)((function*(){if(null===M)throw new Error("Cannot start an audio recording without initializing a MediaRecorder. Run prepareToRecordAsync() before attempting to start an audio recording.");return M.pause(),this.getAudioRecordingStatus()}));return function(){return e.apply(this,arguments)}}(),stopAudioRecording:function(){var e=(0,a.default)((function*(){if(null===M)throw new Error("Cannot start an audio recording without initializing a MediaRecorder. Run prepareToRecordAsync() before attempting to start an audio recording.");if("inactive"===M.state)return this.getAudioRecordingStatus();var e=new Promise((function(e){return M.addEventListener("dataavailable",(function(t){return e(t.data)}))}));M.stop();var t=yield e,n=URL.createObjectURL(t);return g(g({},yield this.getAudioRecordingStatus()),{},{uri:n})}));return function(){return e.apply(this,arguments)}}(),unloadAudioRecorder:function(){var e=(0,a.default)((function*(){M=null}));return function(){return e.apply(this,arguments)}}(),getPermissionsAsync:function(){var e=(0,a.default)((function*(){var e=yield function(e){return _.apply(this,arguments)}("microphone");switch(e){case o.PermissionStatus.GRANTED:return{status:o.PermissionStatus.GRANTED,expires:"never",canAskAgain:!0,granted:!0};case o.PermissionStatus.DENIED:return{status:o.PermissionStatus.DENIED,expires:"never",canAskAgain:!0,granted:!1};default:return yield this.requestPermissionsAsync()}}));return function(){return e.apply(this,arguments)}}(),requestPermissionsAsync:function(){var e=(0,a.default)((function*(){try{return(yield w({audio:!0})).getTracks().forEach((function(e){return e.stop()})),{status:o.PermissionStatus.GRANTED,expires:"never",canAskAgain:!0,granted:!0}}catch(e){return{status:o.PermissionStatus.DENIED,expires:"never",canAskAgain:!0,granted:!1}}}));return function(){return e.apply(this,arguments)}}()}},3374:(e,t,n)=>{"use strict";n.r(t),n.d(t,{useFonts:()=>P});var r,i=n(296),a=n(6665),o=n(467),s=n(8023),u=(n(7741),n(5458)),l=n(1368),c=n(7719),f=n.n(c);function d(){if(!l.default.isDOMAvailable)return null;var e=b();return e.sheet?e.sheet:null}function h(e,t){return function(){var e=d();if(e){for(var t=(0,u.default)(e.cssRules),n=[],r=0;r${e.children}`;case"link":return``;default:return""}})).filter(Boolean)},resetServerContext:function(){p.clear()},isLoaded:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"undefined"===typeof window?!!(0,u.default)(p.values()).find((function(t){return t.name===e})):(null==(t=h(e,n))?void 0:t.length)>0},loadAsync:function(e,t){if("undefined"===typeof window)return p.add({name:e,css:y(e,t),resourceId:t.uri}),Promise.resolve();if(!(document.head&&"function"===typeof document.head.appendChild))throw new s.CodedError("ERR_WEB_ENVIRONMENT","The browser's `document.head` element doesn't support injecting fonts.");var n=b();return document.head.appendChild(n),h(e,t).length||function(e,t){var n=y(e,t),r=b();if(r.styleSheet){var i=r;i.styleSheet.cssText=i.styleSheet.cssText?i.styleSheet.cssText+n:n}else{var a=document.createTextNode(n);r.appendChild(a)}}(e,t),function(){var e=window.navigator.userAgent,t=!!e.match(/iPad|iPhone/i),n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),r=e.includes("Edge"),i=e.includes("Trident"),a=e.includes("Firefox");return!n&&!t&&!r&&!i&&!a}()?new(f())(e,{display:t.display}).load(null,6e3):Promise.resolve()}};var m="expo-generated-fonts";function b(){var e=document.getElementById(m);if(e&&e instanceof HTMLStyleElement)return e;var t=document.createElement("style");return t.id=m,t.type="text/css",t}function y(e,t){return`@font-face{font-family:${e};src:url(${t.uri});font-display:${t.display||r.AUTO}}`}var g=n(584);function _(e){return"string"===typeof e?e||null:"object"===typeof e?e.uri||e.localUri||e.default||null:"number"===typeof e?_(g.Asset.fromModule(e)):null}function w(e){var t=_(e),n=e.display||r.AUTO;return t&&"string"===typeof t||S(t),{uri:t,display:n}}function S(e){var t=typeof e;throw"object"===t&&(t=JSON.stringify(e,null,2)),new s.CodedError("ERR_FONT_SOURCE",`Expected font asset of type \`string | FontResource | Asset\` instead got: ${t}`)}function E(e,t){("object"!==typeof t||"string"!==typeof t.uri||t.downloadAsync)&&S(t);try{return v.loadAsync(e,t)}catch(n){}return Promise.resolve()}var k={},M={};function R(e,t){if(!t)throw new s.CodedError("ERR_FONT_SOURCE",`Cannot load null or undefined font source: { "${e}": ${t} }. Expected asset of type \`FontSource\` for fontFamily of name: "${e}"`);E(e,w(t))}function C(e){return e in k||!!v.isLoaded(e)}function x(e,t){var n="undefined"===typeof window;if("object"===typeof e){if(t)return Promise.reject(new s.CodedError("ERR_FONT_API",`No fontFamily can be used for the provided source: ${t}. The second argument of \`loadAsync()\` can only be used with a \`string\` value as the first argument.`));var r=e,i=Object.keys(r);return n?(i.map((function(e){return R(e,r[e])})),Promise.resolve()):Promise.all(i.map((function(e){return A(e,r[e])}))).then((function(){}))}return n?(R(e,t),Promise.resolve()):A(e,t)}function A(e,t){return T.apply(this,arguments)}function T(){return(T=(0,o.default)((function*(e,t){if(!t)throw new s.CodedError("ERR_FONT_SOURCE",`Cannot load null or undefined font source: { "${e}": ${t} }. Expected asset of type \`FontSource\` for fontFamily of name: "${e}"`);if(!k[e]){if(M.hasOwnProperty(e))return M[e];var n=w(t);M[e]=(0,o.default)((function*(){try{yield E(e,n),k[e]=!0}finally{delete M[e]}}))(),yield M[e]}}))).apply(this,arguments)}var P="undefined"===typeof window?function(e){return x(e),[!0,null]}:function(e){var t=(0,a.useState)(function(e){return"string"===typeof e?C(e):Object.keys(e).every((function(e){return C(e)}))}(e)),n=(0,i.default)(t,2),r=n[0],o=n[1],s=(0,a.useState)(null),u=(0,i.default)(s,2),l=u[0],c=u[1];return(0,a.useEffect)((function(){x(e).then((function(){return o(!0)})).catch(c)}),[]),[r,l]}},3303:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CameraType:()=>f.CameraType,MediaTypeOptions:()=>f.MediaTypeOptions,PermissionStatus:()=>u.PermissionStatus,UIImagePickerControllerQualityType:()=>f.UIImagePickerControllerQualityType,UIImagePickerPreferredAssetRepresentationMode:()=>f.UIImagePickerPreferredAssetRepresentationMode,UIImagePickerPresentationStyle:()=>f.UIImagePickerPresentationStyle,VideoExportPreset:()=>f.VideoExportPreset,getCameraPermissionsAsync:()=>b,getMediaLibraryPermissionsAsync:()=>g,getPendingResultAsync:()=>C,launchCameraAsync:()=>A,launchImageLibraryAsync:()=>P,requestCameraPermissionsAsync:()=>w,requestMediaLibraryPermissionsAsync:()=>E,useCameraPermissions:()=>R,useMediaLibraryPermissions:()=>M});var r=n(467),i=n(296),a=n(8023),o=n(2728),s=n(7741),u=n(6068),l=n(4467),c=n(1368),f=n(9050);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var h=(0,l.default)((0,l.default)((0,l.default)({},f.MediaTypeOptions.All,"video/mp4,video/quicktime,video/x-m4v,video/*,image/*"),f.MediaTypeOptions.Images,"image/*"),f.MediaTypeOptions.Videos,"video/mp4,video/quicktime,video/x-m4v,video/*");const p={get name(){return"ExponentImagePicker"},launchImageLibraryAsync:function(){var e=(0,r.default)((function*(e){var t=e.mediaTypes,n=void 0===t?f.MediaTypeOptions.Images:t,r=e.allowsMultipleSelection,i=void 0!==r&&r,a=e.base64,o=void 0!==a&&a;return c.default.isDOMAvailable?yield m({mediaTypes:n,allowsMultipleSelection:i,base64:o}):{canceled:!0,assets:null}}));return function(t){return e.apply(this,arguments)}}(),launchCameraAsync:function(){var e=(0,r.default)((function*(e){var t=e.mediaTypes,n=void 0===t?f.MediaTypeOptions.Images:t,r=e.allowsMultipleSelection,i=void 0!==r&&r,a=e.base64,o=void 0!==a&&a;return c.default.isDOMAvailable?yield m({mediaTypes:n,allowsMultipleSelection:i,capture:!0,base64:o}):{canceled:!0,assets:null}}));return function(t){return e.apply(this,arguments)}}(),getCameraPermissionsAsync:function(){var e=(0,r.default)((function*(){return v()}));return function(){return e.apply(this,arguments)}}(),requestCameraPermissionsAsync:function(){var e=(0,r.default)((function*(){return v()}));return function(){return e.apply(this,arguments)}}(),getMediaLibraryPermissionsAsync:function(){var e=(0,r.default)((function*(e){return v()}));return function(t){return e.apply(this,arguments)}}(),requestMediaLibraryPermissionsAsync:function(){var e=(0,r.default)((function*(e){return v()}));return function(t){return e.apply(this,arguments)}}()};function v(){return{status:u.PermissionStatus.GRANTED,expires:"never",granted:!0,canAskAgain:!0}}function m(e){var t=e.mediaTypes,n=e.capture,i=void 0!==n&&n,a=e.allowsMultipleSelection,o=void 0!==a&&a,s=e.base64,u=h[t],c=document.createElement("input");return c.style.display="none",c.setAttribute("type","file"),c.setAttribute("accept",u),c.setAttribute("id",String(Math.random())),o&&c.setAttribute("multiple","multiple"),i&&c.setAttribute("capture","camera"),document.body.appendChild(c),new Promise((function(e){c.addEventListener("change",(0,r.default)((function*(){if(c.files){var t=o?c.files:[c.files[0]],n=yield Promise.all(Array.from(t).map((function(e){return t=e,n={base64:s},new Promise((function(e,r){var i=new FileReader;i.onerror=function(){r(new Error("Failed to read the selected media because the operation failed."))},i.onload=function(r){var i=r.target.result,a=function(){return e({uri:i,width:0,height:0})};if("string"===typeof i){var o=new Image;o.src=i,o.onload=function(){var r,a;e(function(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];return p.getMediaLibraryPermissionsAsync(e)})),_.apply(this,arguments)}function w(){return S.apply(this,arguments)}function S(){return(S=(0,r.default)((function*(){return p.requestCameraPermissionsAsync()}))).apply(this,arguments)}function E(){return k.apply(this,arguments)}function k(){return k=(0,r.default)((function*(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,p.requestMediaLibraryPermissionsAsync)(e)})),k.apply(this,arguments)}var M=(0,o.createPermissionHook)({getMethod:function(e){return g(null==e?void 0:e.writeOnly)},requestMethod:function(e){return E(null==e?void 0:e.writeOnly)}}),R=(0,o.createPermissionHook)({getMethod:b,requestMethod:w});function C(){return x.apply(this,arguments)}function x(){return(x=(0,r.default)((function*(){return p.getPendingResultAsync?p.getPendingResultAsync():[]}))).apply(this,arguments)}function A(){return T.apply(this,arguments)}function T(){return T=(0,r.default)((function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!p.launchCameraAsync)throw new s.UnavailabilityError("ImagePicker","launchCameraAsync");return yield p.launchCameraAsync(function(e){var t=e.aspect,n=e.quality,r=e.videoMaxDuration;if(null!=t){var o=(0,i.default)(t,2),s=o[0],u=o[1];if(s<=0||u<=0)throw new a.CodedError("ERR_INVALID_ARGUMENT",`Invalid aspect ratio values ${s}:${u}. Provide positive numbers.`)}if(n&&(n<0||n>1))throw new a.CodedError("ERR_INVALID_ARGUMENT",`Invalid 'quality' value ${n}. Provide a value between 0 and 1.`);if(r&&r<0)throw new a.CodedError("ERR_INVALID_ARGUMENT",`Invalid 'videoMaxDuration' value ${r}. Provide a non-negative number.`);return e}(e))})),T.apply(this,arguments)}function P(e){return I.apply(this,arguments)}function I(){return(I=(0,r.default)((function*(e){if(!p.launchImageLibraryAsync)throw new s.UnavailabilityError("ImagePicker","launchImageLibraryAsync");return null!=e&&e.allowsEditing&&e.allowsMultipleSelection&&console.warn("[expo-image-picker] `allowsEditing` is not supported when `allowsMultipleSelection` is enabled and will be ignored.Disable either 'allowsEditing' or 'allowsMultipleSelection' in 'launchImageLibraryAsync' to fix this warning."),yield p.launchImageLibraryAsync(null!=e?e:{})}))).apply(this,arguments)}},9050:(e,t,n)=>{"use strict";var r,i,a,o,s,u;n.r(t),n.d(t,{CameraType:()=>u,MediaTypeOptions:()=>r,UIImagePickerControllerQualityType:()=>a,UIImagePickerPreferredAssetRepresentationMode:()=>s,UIImagePickerPresentationStyle:()=>o,VideoExportPreset:()=>i}),function(e){e.All="All",e.Videos="Videos",e.Images="Images"}(r||(r={})),function(e){e[e.Passthrough=0]="Passthrough",e[e.LowQuality=1]="LowQuality",e[e.MediumQuality=2]="MediumQuality",e[e.HighestQuality=3]="HighestQuality",e[e.H264_640x480=4]="H264_640x480",e[e.H264_960x540=5]="H264_960x540",e[e.H264_1280x720=6]="H264_1280x720",e[e.H264_1920x1080=7]="H264_1920x1080",e[e.H264_3840x2160=8]="H264_3840x2160",e[e.HEVC_1920x1080=9]="HEVC_1920x1080",e[e.HEVC_3840x2160=10]="HEVC_3840x2160"}(i||(i={})),function(e){e[e.High=0]="High",e[e.Medium=1]="Medium",e[e.Low=2]="Low",e[e.VGA640x480=3]="VGA640x480",e[e.IFrame1280x720=4]="IFrame1280x720",e[e.IFrame960x540=5]="IFrame960x540"}(a||(a={})),function(e){e.FULL_SCREEN="fullScreen",e.PAGE_SHEET="pageSheet",e.FORM_SHEET="formSheet",e.CURRENT_CONTEXT="currentContext",e.OVER_FULL_SCREEN="overFullScreen",e.OVER_CURRENT_CONTEXT="overCurrentContext",e.POPOVER="popover",e.AUTOMATIC="automatic"}(o||(o={})),function(e){e.Automatic="automatic",e.Compatible="compatible",e.Current="current"}(s||(s={})),function(e){e.back="back",e.front="front"}(u||(u={}))},830:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EventEmitter:()=>f});var r=n(4467),i=n(3029),a=n(2901),o=n(430),s=n.n(o),u=n(4177),l=n(5548),c="@@nativeEmitterSubscription@@",f=(0,a.default)((function e(t){(0,i.default)(this,e),this._listenerCount=0,t.__expo_module_name__&&l.default.EXReactNativeEventEmitter&&(t.addListener=function(){for(var e,n=arguments.length,r=new Array(n),i=0;i=0,"EventEmitter must have a non-negative number of listeners"),!this._listenerCount&&this._nativeModule.stopObserving&&this._nativeModule.stopObserving()}},{key:"removeSubscription",value:function(e){var t=e[c];t&&("remove"in t&&t.remove(),this._listenerCount--,delete e[c],e.remove=function(){},!this._listenerCount&&this._nativeModule.stopObserving&&this._nativeModule.stopObserving())}},{key:"emit",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{"use strict";n.r(t),n.d(t,{createPermissionHook:()=>u});var r=n(467),i=n(45),a=n(296),o=n(6665),s=["get","request"];function u(e){return function(t){return function(e,t){var n=(0,o.useRef)(!0),u=(0,o.useState)(null),l=(0,a.default)(u,2),c=l[0],f=l[1],d=t||{},h=d.get,p=void 0===h||h,v=d.request,m=void 0!==v&&v,b=(0,i.default)(d,s),y=(0,o.useCallback)((0,r.default)((function*(){var t=yield e.getMethod(Object.keys(b).length>0?b:void 0);return n.current&&f(t),t})),[e.getMethod]),g=(0,o.useCallback)((0,r.default)((function*(){var t=yield e.requestMethod(Object.keys(b).length>0?b:void 0);return n.current&&f(t),t})),[e.requestMethod]);return(0,o.useEffect)((function(){m&&g(),!m&&p&&y()}),[p,m,g,y]),(0,o.useEffect)((function(){return n.current=!0,function(){n.current=!1}}),[]),[c,g,y]}(e,t)}}},6068:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{PermissionStatus:()=>r}),function(e){e.GRANTED="granted",e.UNDETERMINED="undetermined",e.DENIED="denied"}(r||(r={}))},1368:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i=n(5991),a="undefined"!==typeof window&&!(null==(r=window.document)||!r.createElement),o=a&&!(!window.addEventListener&&!window.attachEvent),s=a&&!!window.screen;const u={OS:i.default.OS,select:i.default.select,isDOMAvailable:a,canUseEventListeners:o,canUseViewport:s,isAsyncDebugging:!1}},8023:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CodedError:()=>h});var r=n(2901),i=n(3029),a=n(388),o=n(3954),s=n(5501),u=n(3662);function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function c(e){var t="function"==typeof Map?new Map:void 0;return c=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(l())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&(0,u.default)(i,n.prototype),i}(e,arguments,(0,o.default)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,u.default)(n,e)},c(e)}function f(e,t,n){return t=(0,o.default)(t),(0,a.default)(e,d()?Reflect.construct(t,n||[],(0,o.default)(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}var h=function(e){function t(e,n){var r;return(0,i.default)(this,t),(r=f(this,t,[n])).code=e,r}return(0,s.default)(t,e),(0,r.default)(t)}(c(Error))},7741:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnavailabilityError:()=>c});var r=n(2901),i=n(3029),a=n(388),o=n(3954),s=n(5501);function u(e,t,n){return t=(0,o.default)(t),(0,a.default)(e,l()?Reflect.construct(t,n||[],(0,o.default)(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}var c=function(e){function t(e,n){return(0,i.default)(this,t),u(this,t,["ERR_UNAVAILABLE",`The method or property ${e}.${n} is not available on web, are you sure you've linked all the native dependencies properly?`])}return(0,s.default)(t,e),(0,r.default)(t)}(n(8023).CodedError)},7225:(e,t,n)=>{"use strict";function r(){}function i(){}function a(){}function o(){}function s(){}function u(){return null}n.r(t),n.d(t,{StatusBar:()=>u,setStatusBarBackgroundColor:()=>r,setStatusBarHidden:()=>a,setStatusBarNetworkActivityIndicatorVisible:()=>i,setStatusBarStyle:()=>o,setStatusBarTranslucent:()=>s})},5781:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Dropdown:()=>X,IDropdownRef:()=>r.IDropdownRef,IMultiSelectRef:()=>i.IMultiSelectRef,MultiSelect:()=>oe,SelectCountry:()=>le});var r={};n.r(r);var i={};n.r(i);var a=n(5458),o=n(296),s=n(7954),u=n.n(s),l=n(1040),c=n.n(l),f=n(8394),d=n.n(f),h=n(2555),p=n.n(h),v=n(7703),m=n.n(v),b=n(6665),y=n(6725),g=n(932),_=n(8623),w=n(484),S=n(2365),E=n(8264),k=n(3668),M=n(6283),R=n(6673),C=n(1950),x=n(3929),A=n(1815),T=n(8943),P=y.default.get("window"),I=P.width,O=P.height,L={isAndroid:!1,isIOS:!1,isTablet:function(){var e=T.default.get(),t=I*e,n=O*e;return e<2&&(t>=1e3||n>=1e3)||2===e&&(t>=1824||n>=1824)}()},N=function(e){var t=e.width;return e.height>=t},D=function(e){return e.width>=e.height};function B(){var e=y.default.get("screen"),t={portrait:N(e),landscape:D(e)},n=(0,b.useState)(t),r=(0,o.default)(n,2),i=r[0],a=r[1];return(0,b.useEffect)((function(){var e=y.default.addEventListener("change",(function(e){var t=e.screen;a({portrait:N(t),landscape:D(t)})}));return function(){"function"===typeof(null===e||void 0===e?void 0:e.remove)&&e.remove()}}),[]),i.portrait?"PORTRAIT":"LANDSCAPE"}var j=n(6773),z=n(5648),U=k.default.create({container:{backgroundColor:"white",borderRadius:8,padding:12,justifyContent:"center"},textInput:{flexDirection:_.default.isRTL?"row-reverse":"row",alignItems:"center",flex:1},input:{fontSize:16,flex:1,textAlign:_.default.isRTL?"right":"left"},label:{marginBottom:4,fontSize:16},row:{flexDirection:_.default.isRTL?"row-reverse":"row"},icon:{width:20,height:20}});function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?b.createElement(z.default,{onPress:function(){return S("")}},b.createElement(w.default,{source:V,style:k.default.flatten([U.icon,f])})):null:null)))};var q=k.default.create({mainWrap:{justifyContent:"center"},container:{flexShrink:1,borderWidth:.5,borderColor:"#EEEEEE",backgroundColor:"white",shadowColor:"#000",shadowOffset:{width:0,height:1},shadowOpacity:.2,shadowRadius:1.41,elevation:2},flex1:{flex:1},flexShrink:{flexShrink:1},wrapTop:{justifyContent:"flex-end"},dropdown:{flexDirection:_.default.isRTL?"row-reverse":"row",justifyContent:"space-between",alignItems:"center"},title:{marginVertical:5,fontSize:16,writingDirection:_.default.isRTL?"rtl":"ltr"},item:{padding:17,flexDirection:_.default.isRTL?"row-reverse":"row",justifyContent:"space-between",alignItems:"center"},textItem:{flex:1,fontSize:16,writingDirection:_.default.isRTL?"rtl":"ltr"},icon:{width:20,height:20},input:{borderWidth:.5,borderColor:"#DDDDDD",paddingHorizontal:8,marginBottom:8,margin:6,height:45},fullScreen:{alignItems:"center",justifyContent:"center"}});function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?c()(e,Ue,(function(e,t){return p()(e,U)===p()(t,U)}))||[]:e||[]}),[Ue,U]);(0,b.useEffect)((function(){var e=_t(j);nt((0,a.default)(e)),ht&&Tt(ht)}),[j,ht]);var wt=function(){ce||(Ye(!0),ge&&ge(),ht.length>0&&Tt(ht),xt())},St=(0,b.useCallback)((function(){ce||(Ye(!1),_e&&_e())}),[ce,_e]),Et=(0,b.useCallback)((function(){return Q?{fontFamily:Q}:{}}),[Q]),kt=(0,b.useCallback)((function(){He&&null!==He&&void 0!==He&&He.current&&He.current.measureInWindow((function(e,t,r,i){var a=!K&&("modal"===De||"LANDSCAPE"===n);"auto"===De&&(a=!1);var o=a?20:i+t+2,s=bt-o+i,u=_.default.isRTL?mt-r-e:e;ot({isFull:a,width:Math.floor(r),top:Math.floor(o+Y),bottom:Math.floor(s-Y),left:Math.floor(u),height:Math.floor(i)})}))}),[bt,mt,n,De]),Mt=(0,b.useCallback)((function(e){kt(),ct(e.endCoordinates.height)}),[kt]),Rt=(0,b.useCallback)((function(){ct(0),kt()}),[kt]);(0,b.useEffect)((function(){var e=S.default.addListener("keyboardDidShow",Mt),t=S.default.addListener("keyboardDidHide",Rt);return function(){"function"===typeof(null===e||void 0===e?void 0:e.remove)&&e.remove(),"function"===typeof(null===t||void 0===t?void 0:t.remove)&&t.remove()}}),[Rt,Mt]);var Ct=(0,b.useCallback)((function(){var e="object"===typeof V?p()(V,U):V,t=j.filter((function(t){return m()(e,p()(t,U))}));t.length>0?Ze(t[0]):Ze(null)}),[j,V,U]);(0,b.useEffect)((function(){Ct()}),[V,j,Ct]);var xt=(0,b.useCallback)((function(){Se&&(null===j||void 0===j?void 0:j.length)>0&&(null===tt||void 0===tt?void 0:tt.length)===(null===j||void 0===j?void 0:j.length)&&setTimeout((function(){if(qe&&null!==qe&&void 0!==qe&&qe.current){var e="object"===typeof V?p()(V,U):V,t=d()(tt,(function(t){return m()(e,p()(t,U))}));if((null===tt||void 0===tt?void 0:tt.length)>0&&t>-1&&t<=(null===tt||void 0===tt?void 0:tt.length)-1)try{qe.current.scrollToIndex({index:t,animated:!1})}catch(n){console.warn(`scrollToIndex error: ${n}`)}}}),200)}),[Se,j.length,tt,V,U]),At=(0,b.useCallback)((function(){if(!ce){var e=!Ge;if(lt>0&&!e)return S.default.dismiss();e||(Te&&Te(""),pt(""),Tt("")),kt(),Ye(e);var t=_t(j);nt(t),e?ge&&ge():_e&&_e(),ht.length>0&&Tt(ht),xt()}}),[ce,lt,Ge,kt,j,ht,xt,ge,_e]),Tt=(0,b.useCallback)((function(e){if(e.length>0){var t=j.filter(xe?function(t){var n=p()(t,F||z);return null===xe||void 0===xe?void 0:xe(e,n)}:function(t){var n,r=null===(n=p()(t,F||z))||void 0===n?void 0:n.toLowerCase().replace(/\s/g,"").normalize("NFD").replace(/[\u0300-\u036f]/g,""),i=e.toLowerCase().replace(/\s/g,"").normalize("NFD").replace(/[\u0300-\u036f]/g,"");return r.indexOf(i)>=0});if(Ve.length>0||Ue.length>0){var n=c()(t,Ve,(function(e,t){return p()(e,U)===p()(t,U)})),r=_t(n);nt(r)}else nt(t)}else{var i=_t(j);nt(i)}}),[j,xe,Ve,Ue,F,z,U,_t]),Pt=(0,b.useCallback)((function(e){if(Pe&&Ie)return Ie(e);Ze(e),s(e),je&&(Te&&Te(""),pt(""),Tt(""),St())}),[Pe,St,s,Te,Ie,Tt,je]),It=(0,b.useCallback)((function(e){var t=e.item,n=e.index,r=Qe&&p()(Qe,U),a=m()(p()(t,U),r);return u()(t,{_index:n}),b.createElement(R.default,{key:n.toString(),testID:p()(t,i||z),accessible:!!Oe,accessibilityLabel:p()(t,Le||z),underlayColor:X,onPress:function(){return Pt(t)}},b.createElement(x.default,{style:k.default.flatten([T,a&&{backgroundColor:X}])},be?be(t,a):b.createElement(x.default,{style:q.item},b.createElement(M.default,{style:k.default.flatten([q.textItem,P,Et()])},p()(t,z)))))}),[Oe,X,Qe,Et,Le,T,i,P,z,Pt,be,U]),Ot=(0,b.useCallback)((function(){return ie?ye?ye((function(e){Te&&(pt(e),Te(e)),Tt(e)})):b.createElement(H,{testID:r+" input",accessibilityLabel:Oe+" input",style:[q.input,I],inputStyle:[I,Et()],value:ht,autoCorrect:!1,placeholder:ee,onChangeText:function(e){Te&&(pt(e),Te(e)),Tt(e)},placeholderTextColor:"gray",iconStyle:[{tintColor:J},O]}):null}),[Oe,Et,J,O,I,Te,Tt,ye,ie,ee,r,ht]),Lt=(0,b.useCallback)((function(e){var t=!!pe&&e,n=function(){return b.createElement(g.default,W({testID:r+" flatlist",accessibilityLabel:Oe+" flatlist"},Ce,{keyboardShouldPersistTaps:"handled",ref:qe,onScrollToIndexFailed:xt,data:tt,inverted:!!e&&pe,renderItem:It,keyExtractor:function(e,t){return t.toString()},showsVerticalScrollIndicator:ke}))};return b.createElement(C.default,null,b.createElement(x.default,{style:q.flexShrink},t&&n(),Ot(),!t&&n()))}),[It,Oe,Ce,tt,pe,Ot,xt,ke,r]),Nt=(0,b.useCallback)((function(){if(Ge&&at){var e=at.isFull,t=at.width,n=at.height,r=at.top,i=at.bottom,a=at.left;if(t&&r&&i){var o={left:a,maxHeight:oe,minHeight:ue},s="auto"===Re?lt>0?i0&&s&&"auto"===Re&&(u=lt),b.createElement(E.default,{transparent:!0,statusBarTranslucent:!0,visible:Ge,supportedOrientations:["landscape","portrait"],onRequestClose:At},b.createElement(C.default,{onPress:At},b.createElement(x.default,{style:k.default.flatten([q.flex1,e&&yt,Ae&&{backgroundColor:Ae},{}])},b.createElement(x.default,{style:k.default.flatten([q.flex1,s?{justifyContent:"flex-end",paddingBottom:u}:{paddingTop:u},e&&q.fullScreen])},b.createElement(x.default,{style:k.default.flatten([q.container,e?gt:o,{width:t},h])},Lt(s))))))}return null}return null}),[Ge,ie,at,lt,oe,ue,Re,de,At,yt,Ae,h,gt,Lt]);return b.createElement(x.default,{style:k.default.flatten([q.mainWrap,f]),ref:He,onLayout:kt},function(){var e=Qe&&p()(Qe,U);return b.createElement(C.default,{testID:r,accessible:!!Oe,accessibilityLabel:Oe,onPress:At},b.createElement(x.default,{style:q.dropdown},null===ve||void 0===ve?void 0:ve(Ge),b.createElement(M.default,W({style:[q.textItem,null!==e?A:v,Et()]},N),null!==e?p()(Qe,z):ne),me?me(Ge):b.createElement(w.default,{source:G,style:k.default.flatten([q.icon,{tintColor:J},O])})))}(),Nt())}));const X=$;var Q=n(4467),Z=k.default.create({mainWrap:{justifyContent:"center"},container:{flexShrink:1,backgroundColor:"white",borderWidth:.5,borderColor:"#EEEEEE",shadowColor:"#000",shadowOffset:{width:0,height:1},shadowOpacity:.2,shadowRadius:1.41,elevation:2},flex1:{flex:1},flexShrink:{flexShrink:1},wrapTop:{justifyContent:"flex-end"},dropdown:{flexDirection:_.default.isRTL?"row-reverse":"row",justifyContent:"space-between",alignItems:"center"},dropdownInside:{flexDirection:_.default.isRTL?"row-reverse":"row",justifyContent:"space-between",alignItems:"center",minHeight:35},title:{marginVertical:5,fontSize:16,writingDirection:_.default.isRTL?"rtl":"ltr"},wrapItem:{marginBottom:.5},item:{padding:17,flexDirection:_.default.isRTL?"row-reverse":"row",justifyContent:"space-between",alignItems:"center"},textItem:{flex:1,fontSize:16,writingDirection:_.default.isRTL?"rtl":"ltr"},icon:{width:20,height:20},input:{borderWidth:.5,borderColor:"#DDDDDD",paddingHorizontal:8,marginBottom:8,margin:6,height:45},rowSelectedItem:{flexDirection:_.default.isRTL?"row-reverse":"row",flexWrap:"wrap"},selectedItem:{padding:8,alignItems:"center",justifyContent:"center",borderWidth:.5,borderColor:"gray",paddingHorizontal:8,marginVertical:6,marginRight:8,flexDirection:_.default.isRTL?"row-reverse":"row"},selectedTextItem:{marginLeft:5,color:"gray",fontSize:16,writingDirection:_.default.isRTL?"rtl":"ltr"},selectedTextLeftItem:{fontSize:12,color:"gray",writingDirection:_.default.isRTL?"rtl":"ltr"},fullScreen:{alignItems:"center",justifyContent:"center"}});function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t0?c()(e,We,(function(e,t){return p()(e,A)===p()(t,A)}))||[]:e||[]}),[We,A]);(0,b.useEffect)((function(){var e=Rt(f);ot((0,a.default)(e)),gt&&Nt(gt)}),[f,gt]);var Ct=function(){fe||(Ze(!0),Ee&&Ee(),gt.length>0&&Nt(gt))},xt=function(){fe||(Ze(!1),ke&&ke())},At=(0,b.useCallback)((function(){return V?{fontFamily:V}:{}}),[V]),Tt=(0,b.useCallback)((function(){nt(d?(0,a.default)(d):[])}),[d]),Pt=(0,b.useCallback)((function(){Ye&&null!==Ye&&void 0!==Ye&&Ye.current&&Ye.current.measureInWindow((function(e,t,r,i){var a=!ne&&("modal"===He||"LANDSCAPE"===n);"auto"===He&&(a=!1);var o=a?20:i+t+2,s=Et-o+i,u=_.default.isRTL?St-r-e:e;dt({isFull:a,width:Math.floor(r),top:Math.floor(o+ie),bottom:Math.floor(s-ie),left:Math.floor(u),height:Math.floor(i)})}))}),[Et,St,n,He]),It=(0,b.useCallback)((function(e){Pt(),mt(e.endCoordinates.height)}),[Pt]),Ot=(0,b.useCallback)((function(){mt(0),Pt()}),[Pt]);(0,b.useEffect)((function(){var e=S.default.addListener("keyboardDidShow",It),t=S.default.addListener("keyboardDidHide",Ot);return function(){"function"===typeof(null===e||void 0===e?void 0:e.remove)&&e.remove(),"function"===typeof(null===t||void 0===t?void 0:t.remove)&&t.remove()}}),[Ot,It]),(0,b.useEffect)((function(){Tt()}),[Tt,d]);var Lt=(0,b.useCallback)((function(){if(!fe){var e=!Qe;if(vt>0&&!e)return S.default.dismiss();Pt(),Ze(e);var t=Rt(f);ot(t),e?Ee&&Ee():ke&&ke(),gt.length>0&&Nt(gt)}}),[fe,vt,Qe,Pt,f,gt,Ee,ke]),Nt=(0,b.useCallback)((function(e){if(e.length>0){var t=f.filter(Ie?function(t){var n=p()(t,T||m);return null===Ie||void 0===Ie?void 0:Ie(e,n)}:function(t){var n,r=null===(n=p()(t,T||m))||void 0===n?void 0:n.toLowerCase().replace(/\s/g,"").normalize("NFD").replace(/[\u0300-\u036f]/g,""),i=e.toLowerCase().replace(/\s/g,"").normalize("NFD").replace(/[\u0300-\u036f]/g,"");return r.indexOf(i)>=0});if(Ge.length>0||We.length>0){var n=c()(t,Ge,(function(e,t){return p()(e,A)===p()(t,A)})),r=Rt(n);ot(r)}else ot(t)}else{var i=Rt(f);ot(i)}}),[f,Ie,Ge,We,T,m,A,Rt]),Dt=(0,b.useCallback)((function(e){var t=(0,a.default)(tt),n=t.findIndex((function(t){return t===p()(e,A)}));n>-1?t.splice(n,1):le?t.length-1?De?Be(t):s(t):Ne?Be(t):s(t):s(t),ut(Math.random())}),[Ne,De,tt,le,s,Be,A]),Bt=(0,b.useCallback)((function(e){return tt.findIndex((function(t){return t===p()(e,A)}))>-1}),[tt,A]),jt=(0,b.useCallback)((function(e){var t=e.item,n=e.index,r=Bt(t);return u()(t,{_index:n}),b.createElement(R.default,{key:n.toString(),testID:p()(t,i||m),accessible:!!je,accessibilityLabel:p()(t,ze||m),underlayColor:U,onPress:function(){return Dt(t)}},b.createElement(x.default,{style:k.default.flatten([O,r&&ee({backgroundColor:U},Z.wrapItem)])},ye?ye(t,r):b.createElement(x.default,{style:Z.item},b.createElement(M.default,{style:k.default.flatten([Z.textItem,L,At()])},p()(t,m)))))}),[je,U,Bt,At,ze,O,i,L,m,Dt,ye]),zt=(0,b.useCallback)((function(){return J?Se?Se((function(e){Le&&(_t(e),Le(e)),Nt(e)})):b.createElement(H,{testID:r+" input",accessibilityLabel:je+" input",style:[Z.input,G],inputStyle:[G,At()],autoCorrect:!1,placeholder:Y,onChangeText:function(e){Le&&(_t(e),Le(e)),Nt(e)},placeholderTextColor:"gray",iconStyle:[{tintColor:K},N]}):null}),[je,At,K,N,G,Le,Nt,Se,J,Y,r]),Ut=(0,b.useCallback)((function(e){var t=!!be&&e,n=function(){return b.createElement(g.default,te({testID:r+" flatlist",accessibilityLabel:je+" flatlist"},Ae,{keyboardShouldPersistTaps:"handled",data:at,inverted:!!e&&be,renderItem:jt,keyExtractor:function(e,t){return t.toString()},showsVerticalScrollIndicator:Re}))};return b.createElement(C.default,null,b.createElement(x.default,{style:Z.flexShrink},t&&n(),zt(),!t&&n()))}),[jt,je,Ae,at,be,zt,Re,r]),Ft=(0,b.useCallback)((function(){if(Qe&&ft){var e=ft.isFull,t=ft.width,n=ft.height,r=ft.top,i=ft.bottom,a=ft.left;if(t&&r&&i){var o={left:a,maxHeight:oe,minHeight:ue},s="auto"===xe?vt>0?i0&&s&&"auto"===xe&&(u=vt),b.createElement(E.default,{transparent:!0,statusBarTranslucent:!0,visible:Qe,supportedOrientations:["landscape","portrait"],onRequestClose:Lt},b.createElement(C.default,{onPress:Lt},b.createElement(x.default,{style:k.default.flatten([Z.flex1,e&&kt,Oe&&{backgroundColor:Oe},{}])},b.createElement(x.default,{style:k.default.flatten([Z.flex1,s?{justifyContent:"flex-end",paddingBottom:u}:{paddingTop:u},e&&Z.fullScreen])},b.createElement(x.default,{style:k.default.flatten([Z.container,e?Mt:o,{width:t},F])},Ut(s))))))}return null}return null}),[Qe,J,ft,vt,oe,ue,xe,he,Lt,kt,Oe,F,Mt,Ut]),Vt=function(e){fe||Dt(e)},Ht=function(e){var t=f.filter((function(e){if(-1!==(null===d||void 0===d?void 0:d.indexOf(p()(e,A))))return e}));return b.createElement(x.default,{style:k.default.flatten([Z.rowSelectedItem,e&&Z.flex1])},t.map((function(e){return we?b.createElement(C.default,{testID:p()(e,i||m),accessible:!!je,accessibilityLabel:p()(e,ze||m),key:p()(e,m),onPress:function(){return Vt(e)}},we(e,(function(){Vt(e)}))):b.createElement(C.default,{testID:p()(e,i||m),accessible:!!je,accessibilityLabel:p()(e,ze||m),key:p()(e,m),onPress:function(){return Vt(e)}},b.createElement(x.default,{style:k.default.flatten([Z.selectedItem,P])},b.createElement(M.default,{style:k.default.flatten([Z.selectedTextLeftItem,I,At()])},p()(e,m)),b.createElement(M.default,{style:k.default.flatten([Z.selectedTextItem,I])},"\u24e7")))})))},qt=function(){return b.createElement(C.default,{testID:r,accessible:!!je,accessibilityLabel:je,onPress:Lt},b.createElement(x.default,{style:Z.dropdownInside},null===ge||void 0===ge?void 0:ge(),d&&(null===d||void 0===d?void 0:d.length)>0?Ht(!0):b.createElement(M.default,{style:k.default.flatten([Z.textItem,q,At()])},X),_e?_e():b.createElement(w.default,{source:re,style:k.default.flatten([Z.icon,{tintColor:K},N])})))};return ve?b.createElement(x.default,{style:k.default.flatten([Z.mainWrap,v]),ref:Ye,onLayout:Pt},qt(),Ft()):b.createElement(b.Fragment,null,b.createElement(x.default,{style:k.default.flatten([Z.mainWrap,v]),ref:Ye,onLayout:Pt},b.createElement(C.default,{testID:r,accessible:!!je,accessibilityLabel:je,onPress:Lt},b.createElement(x.default,{style:Z.dropdown},null===ge||void 0===ge?void 0:ge(Qe),b.createElement(M.default,te({style:k.default.flatten([Z.textItem,q,At()])},j),X),_e?_e(Qe):b.createElement(w.default,{source:re,style:k.default.flatten([Z.icon,{tintColor:K},N])}))),Ft()),(!Qe||Pe)&&Fe&&Ht(!1))}));const oe=ae;var se=k.default.create({dropdown:{width:58,paddingHorizontal:6,height:26},container:{width:60},item:{flexDirection:_.default.isRTL?"row-reverse":"row",padding:6,alignItems:"center"},image:{width:20,height:20,marginRight:3,marginVertical:4},selectedTextStyle:{flex:1,fontSize:12,writingDirection:_.default.isRTL?"rtl":"ltr"}});function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(8168),i=n(8587),a=n(6665),o=n(3668),s=n(3929),u=["animating","color","hidesWhenStopped","size","style"],l=function(e){return a.createElement("circle",{cx:"16",cy:"16",fill:"none",r:"14",strokeWidth:"4",style:e})},c=a.forwardRef((function(e,t){var n=e.animating,o=void 0===n||n,c=e.color,h=void 0===c?"#1976D2":c,p=e.hidesWhenStopped,v=void 0===p||p,m=e.size,b=void 0===m?"small":m,y=e.style,g=(0,i.default)(e,u),_=a.createElement("svg",{height:"100%",viewBox:"0 0 32 32",width:"100%"},l({stroke:h,opacity:.2}),l({stroke:h,strokeDasharray:80,strokeDashoffset:60}));return a.createElement(s.default,(0,r.default)({},g,{"aria-valuemax":1,"aria-valuemin":0,ref:t,role:"progressbar",style:[f.container,y]}),a.createElement(s.default,{children:_,style:["number"===typeof b?{height:b,width:b}:d[b],f.animation,!o&&f.animationPause,!o&&v&&f.hidesWhenStopped]}))}));c.displayName="ActivityIndicator";var f=o.default.create({container:{alignItems:"center",justifyContent:"center"},hidesWhenStopped:{visibility:"hidden"},animation:{animationDuration:"0.75s",animationKeyframes:[{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"},animationPause:{animationPlayState:"paused"}}),d=o.default.create({small:{width:20,height:20},large:{width:36,height:36}});const h=c},5009:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>qt});var r=n(9379),i=n(5991),a=n(8168),o=n(6665),s=n(932),u=n(8587),l=n(3029),c=n(2901),f=n(388),d=n(991),h=n(3954),p=n(5501),v=n(1003),m=n(6077),b=n.n(m);var y=n(9348);const g={isLayoutAnimationEnabled:function(){return!0},shouldEmitW3CPointerEvents:function(){return!1},shouldPressibilityUseW3CPointerEventsForHover:function(){return!1},animatedShouldDebounceQueueFlush:function(){return!1},animatedShouldUseSingleOp:function(){return!1}};var _,w=null,S=1,E=1,k=new Set,M=!1,R=[],C=null,x=w,A={getValue:function(e,t){b()(x,"Native animated module is not available"),A.queueOperation(x.getValue,e,t)},setWaitingForIdentifier:function(e){k.add(e),M=!0,g.animatedShouldDebounceQueueFlush()&&C&&clearTimeout(C)},unsetWaitingForIdentifier:function(e){k.delete(e),0===k.size&&(M=!1,A.disableQueue())},disableQueue:function(){(b()(x,"Native animated module is not available"),g.animatedShouldDebounceQueueFlush())?(clearImmediate(C),C=setImmediate(A.flushQueue)):A.flushQueue()},flushQueue:function(){},queueOperation:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=2,"Bad output range"),t=t.map(ee),function(e){for(var t=e[0].replace(te,""),n=1;n=2,"inputRange must have at least 2 elements");for(var t="inputRange must be monotonically non-decreasing "+String(e),n=1;n=e[n-1],t)}(n),b()(n.length===t.length,"inputRange ("+n.length+") and outputRange ("+t.length+") must have the same length"));var i=e.easing||Z,a="extend";void 0!==e.extrapolateLeft?a=e.extrapolateLeft:void 0!==e.extrapolate&&(a=e.extrapolate);var o="extend";return void 0!==e.extrapolateRight?o=e.extrapolateRight:void 0!==e.extrapolate&&(o=e.extrapolate),function(e){b()("number"===typeof e,"Cannot interpolation an input which is not a number");var r=function(e,t){var n;for(n=1;n=e);++n);return n-1}(e,n);return function(e,t,n,r,i,a,o,s){var u=e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=a(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r;return u}(e,n[r],n[r+1],t[r],t[r+1],i,a,o)}}function ee(e){var t=Y()(e);return null===t||"number"!==typeof t?e:"rgba("+((4278190080&(t=t||0))>>>24)+", "+((16711680&t)>>>16)+", "+((65280&t)>>>8)+", "+(255&t)/255+")"}var te=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;function ne(e,t){b()(t.length>=2,e+" must have at least 2 elements"),b()(2!==t.length||t[0]!==-1/0||t[1]!==1/0,e+"cannot be ]-infinity;+infinity[ "+t)}var re=function(e){function t(e,n){var r;return(0,l.default)(this,t),(r=$(this,t))._parent=e,r._config=n,r._interpolation=J(n),r}return(0,p.default)(t,e),(0,c.default)(t,[{key:"__makeNative",value:function(e){this._parent.__makeNative(e),(0,d.default)((0,h.default)(t.prototype),"__makeNative",this).call(this,e)}},{key:"__getValue",value:function(){var e=this._parent.__getValue();return b()("number"===typeof e,"Cannot interpolate an input which is not a number."),this._interpolation(e)}},{key:"interpolate",value:function(e){return new t(this,e)}},{key:"__attach",value:function(){this._parent.__addChild(this)}},{key:"__detach",value:function(){this._parent.__removeChild(this),(0,d.default)((0,h.default)(t.prototype),"__detach",this).call(this)}},{key:"__transformDataType",value:function(e){return e.map(U.transformDataType)}},{key:"__getNativeConfig",value:function(){return Q&&U.validateInterpolation(this._config),{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||"extend",extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||"extend",type:"interpolation"}}}])}(K);re.__createInterpolation=J;const ie=re;var ae=n(3816);function oe(e,t,n){return t=(0,h.default)(t),(0,f.default)(e,se()?Reflect.construct(t,n||[],(0,h.default)(e).constructor):t.apply(e,n))}function se(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(se=function(){return!!e})()}var ue=U.API;const le=function(e){function t(e,n){var r;if((0,l.default)(this,t),r=oe(this,t),"number"!==typeof e)throw new Error("AnimatedValue: Attempting to set value to undefined");return r._startingValue=r._value=e,r._offset=0,r._animation=null,n&&n.useNativeDriver&&r.__makeNative(),r}return(0,p.default)(t,e),(0,c.default)(t,[{key:"__detach",value:function(){var e=this;this.__isNative&&ue.getValue(this.__getNativeTag(),(function(t){e._value=t-e._offset})),this.stopAnimation(),(0,d.default)((0,h.default)(t.prototype),"__detach",this).call(this)}},{key:"__getValue",value:function(){return this._value+this._offset}},{key:"setValue",value:function(e){var t,n,r=this;this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(e,!this.__isNative),this.__isNative&&(t=this.__getNativeTag().toString(),n=function(){return ue.setAnimatedNodeValue(r.__getNativeTag(),e)},ue.setWaitingForIdentifier(t),n(),ue.unsetWaitingForIdentifier(t))}},{key:"setOffset",value:function(e){this._offset=e,this.__isNative&&ue.setAnimatedNodeOffset(this.__getNativeTag(),e)}},{key:"flattenOffset",value:function(){this._value+=this._offset,this._offset=0,this.__isNative&&ue.flattenAnimatedNodeOffset(this.__getNativeTag())}},{key:"extractOffset",value:function(){this._offset+=this._value,this._value=0,this.__isNative&&ue.extractAnimatedNodeOffset(this.__getNativeTag())}},{key:"stopAnimation",value:function(e){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,e&&(this.__isNative?ue.getValue(this.__getNativeTag(),e):e(this.__getValue()))}},{key:"resetAnimation",value:function(e){this.stopAnimation(e),this._value=this._startingValue,this.__isNative&&ue.setAnimatedNodeValue(this.__getNativeTag(),this._startingValue)}},{key:"__onAnimatedValueUpdateReceived",value:function(e){this._updateValue(e,!1)}},{key:"interpolate",value:function(e){return new ie(this,e)}},{key:"animate",value:function(e,t){var n=this,r=null;e.__isInteraction&&(r=ae.default.createInteractionHandle());var i=this._animation;this._animation&&this._animation.stop(),this._animation=e,e.start(this._value,(function(e){n._updateValue(e,!0)}),(function(e){n._animation=null,null!==r&&ae.default.clearInteractionHandle(r),t&&t(e)}),i,this)}},{key:"stopTracking",value:function(){this._tracking&&this._tracking.__detach(),this._tracking=null}},{key:"track",value:function(e){this.stopTracking(),this._tracking=e,this._tracking&&this._tracking.update()}},{key:"_updateValue",value:function(e,n){if(void 0===e)throw new Error("AnimatedValue: Attempting to set value to undefined");this._value=e,n&&function(e){var t=new Set;!function e(n){"function"===typeof n.update?t.add(n):n.__getChildren().forEach(e)}(e),t.forEach((function(e){return e.update()}))}(this),(0,d.default)((0,h.default)(t.prototype),"__callListeners",this).call(this,this.__getValue())}},{key:"__getNativeConfig",value:function(){return{type:"value",value:this._value,offset:this._offset}}}])}(K);function ce(e,t,n){var r=[];return b()(n[0]&&n[0].nativeEvent,"Native driven events only support animated values contained inside `nativeEvent`."),function e(t,n){if(t instanceof le)t.__makeNative(),r.push({nativeEventPath:n,animatedValueTag:t.__getNativeTag()});else if("object"===typeof t)for(var i in t)e(t[i],n.concat(i))}(n[0].nativeEvent,[]),null!=e&&r.forEach((function(n){U.API.addAnimatedEventToView(e,t,n)})),{detach:function(){null!=e&&r.forEach((function(n){U.API.removeAnimatedEventFromView(e,t,n.animatedValueTag)}))}}}var fe=(0,c.default)((function e(t,n){(0,l.default)(this,e),this._listeners=[],this._argMapping=t,null==n&&(console.warn("Animated.event now requires a second argument for options"),n={useNativeDriver:!1}),n.listener&&this.__addListener(n.listener),this._callListeners=this._callListeners.bind(this),this._attachedEvent=null,this.__isNative=z(n)}),[{key:"__addListener",value:function(e){this._listeners.push(e)}},{key:"__removeListener",value:function(e){this._listeners=this._listeners.filter((function(t){return t!==e}))}},{key:"__attach",value:function(e,t){b()(this.__isNative,"Only native driven events need to be attached."),this._attachedEvent=ce(e,t,this._argMapping)}},{key:"__detach",value:function(e,t){b()(this.__isNative,"Only native driven events need to be detached."),this._attachedEvent&&this._attachedEvent.detach()}},{key:"__getHandler",value:function(){var e=this;return this.__isNative?this._callListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r18&&e<=44?function(e){return 44e-6*Math.pow(e,3)-.006*Math.pow(e,2)+.36*e+2}(e):function(e){return 45e-8*Math.pow(e,3)-332e-6*Math.pow(e,2)+.1078*e+5.84}(e);var t}(s),function(e,t,n){return e*n+(1-e)*t}(2*a-a*a,o,.01));return{stiffness:dt(s),damping:ht(u)}}};function vt(e,t,n){return t=(0,h.default)(t),(0,f.default)(e,mt()?Reflect.construct(t,n||[],(0,h.default)(e).constructor):t.apply(e,n))}function mt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mt=function(){return!!e})()}const bt=function(e){function t(e){var n,r,i,a,o,s,u,c,f,d,h,p;if((0,l.default)(this,t),(n=vt(this,t))._overshootClamping=null!==(r=e.overshootClamping)&&void 0!==r&&r,n._restDisplacementThreshold=null!==(i=e.restDisplacementThreshold)&&void 0!==i?i:.001,n._restSpeedThreshold=null!==(a=e.restSpeedThreshold)&&void 0!==a?a:.001,n._initialVelocity=null!==(o=e.velocity)&&void 0!==o?o:0,n._lastVelocity=null!==(s=e.velocity)&&void 0!==s?s:0,n._toValue=e.toValue,n._delay=null!==(u=e.delay)&&void 0!==u?u:0,n._useNativeDriver=z(e),n._platformConfig=e.platformConfig,n.__isInteraction=null!==(c=e.isInteraction)&&void 0!==c?c:!n._useNativeDriver,n.__iterations=null!==(f=e.iterations)&&void 0!==f?f:1,void 0!==e.stiffness||void 0!==e.damping||void 0!==e.mass)b()(void 0===e.bounciness&&void 0===e.speed&&void 0===e.tension&&void 0===e.friction,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one"),n._stiffness=null!==(d=e.stiffness)&&void 0!==d?d:100,n._damping=null!==(h=e.damping)&&void 0!==h?h:10,n._mass=null!==(p=e.mass)&&void 0!==p?p:1;else if(void 0!==e.bounciness||void 0!==e.speed){var v,m;b()(void 0===e.tension&&void 0===e.friction&&void 0===e.stiffness&&void 0===e.damping&&void 0===e.mass,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one");var y=pt.fromBouncinessAndSpeed(null!==(v=e.bounciness)&&void 0!==v?v:8,null!==(m=e.speed)&&void 0!==m?m:12);n._stiffness=y.stiffness,n._damping=y.damping,n._mass=1}else{var g,_,w=pt.fromOrigamiTensionAndFriction(null!==(g=e.tension)&&void 0!==g?g:40,null!==(_=e.friction)&&void 0!==_?_:7);n._stiffness=w.stiffness,n._damping=w.damping,n._mass=1}return b()(n._stiffness>0,"Stiffness value must be greater than 0"),b()(n._damping>0,"Damping value must be greater than 0"),b()(n._mass>0,"Mass value must be greater than 0"),n}return(0,p.default)(t,e),(0,c.default)(t,[{key:"__getNativeAnimationConfig",value:function(){var e;return{type:"spring",overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:null!==(e=this._initialVelocity)&&void 0!==e?e:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}},{key:"start",value:function(e,n,r,i,a){var o=this;if(this.__active=!0,this._startPosition=e,this._lastPosition=this._startPosition,this._onUpdate=n,this.__onEnd=r,this._lastTime=Date.now(),this._frameTime=0,i instanceof t){var s=i.getInternalState();this._lastPosition=s.lastPosition,this._lastVelocity=s.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=s.lastTime}var u=function(){o._useNativeDriver?o.__startNativeAnimation(a):o.onUpdate()};this._delay?this._timeout=setTimeout(u,this._delay):u()}},{key:"getInternalState",value:function(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}},{key:"onUpdate",value:function(){var e=Date.now();e>this._lastTime+64&&(e=this._lastTime+64);var t=(e-this._lastTime)/1e3;this._frameTime+=t;var n=this._damping,r=this._mass,i=this._stiffness,a=-this._initialVelocity,o=n/(2*Math.sqrt(i*r)),s=Math.sqrt(i/r),u=s*Math.sqrt(1-o*o),l=this._toValue-this._startPosition,c=0,f=0,d=this._frameTime;if(o<1){var h=Math.exp(-o*s*d);c=this._toValue-h*((a+o*s*l)/u*Math.sin(u*d)+l*Math.cos(u*d)),f=o*s*h*(Math.sin(u*d)*(a+o*s*l)/u+l*Math.cos(u*d))-h*(Math.cos(u*d)*(a+o*s*l)-u*l*Math.sin(u*d))}else{var p=Math.exp(-s*d);c=this._toValue-p*(l+(a+s*l)*d),f=p*(a*(d*s-1)+d*l*(s*s))}if(this._lastTime=e,this._lastPosition=c,this._lastVelocity=f,this._onUpdate(c),this.__active){var v=!1;this._overshootClamping&&0!==this._stiffness&&(v=this._startPositionthis._toValue:c=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((e-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}},{key:"stop",value:function(){(0,d.default)((0,h.default)(t.prototype),"stop",this).call(this),this.__active=!1,clearTimeout(this._timeout),n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}])}(ut);function Et(e,t,n){return t=(0,h.default)(t),(0,f.default)(e,kt()?Reflect.construct(t,n||[],(0,h.default)(e).constructor):t.apply(e,n))}function kt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kt=function(){return!!e})()}var Mt=U.API,Rt={r:0,g:0,b:0,a:1},Ct=1;function xt(e){if(void 0===e||null===e)return null;if(At(e))return e;var t=Y()(e);if(void 0===t||null===t)return null;if("object"===typeof t){if(null!=t)return t}else if("number"===typeof t){return{r:(4278190080&t)>>>24,g:(16711680&t)>>>16,b:(65280&t)>>>8,a:(255&t)/255}}return null}function At(e){return e&&"number"===typeof e.r&&"number"===typeof e.g&&"number"===typeof e.b&&"number"===typeof e.a}var Tt=function(e){function t(e,n){var r;(0,l.default)(this,t),(r=Et(this,t))._listeners={};var i=null!==e&&void 0!==e?e:Rt;if(function(e){return e&&e.r instanceof le&&e.g instanceof le&&e.b instanceof le&&e.a instanceof le}(i)){var a=i;r.r=a.r,r.g=a.g,r.b=a.b,r.a=a.a}else{var o,s=null!==(o=xt(i))&&void 0!==o?o:Rt,u=Rt;At(s)?u=s:r.nativeColor=s,r.r=new le(u.r),r.g=new le(u.g),r.b=new le(u.b),r.a=new le(u.a)}return(r.nativeColor||n&&n.useNativeDriver)&&r.__makeNative(),r}return(0,p.default)(t,e),(0,c.default)(t,[{key:"setValue",value:function(e){var t,n=!1;if(this.__isNative){var r=this.__getNativeTag();Mt.setWaitingForIdentifier(r.toString())}var i=null!==(t=xt(e))&&void 0!==t?t:Rt;if(At(i)){var a=i;this.r.setValue(a.r),this.g.setValue(a.g),this.b.setValue(a.b),this.a.setValue(a.a),null!=this.nativeColor&&(this.nativeColor=null,n=!0)}else{var o=i;this.nativeColor!==o&&(this.nativeColor=o,n=!0)}if(this.__isNative){var s=this.__getNativeTag();n&&Mt.updateAnimatedNodeConfig(s,this.__getNativeConfig()),Mt.unsetWaitingForIdentifier(s.toString())}}},{key:"setOffset",value:function(e){this.r.setOffset(e.r),this.g.setOffset(e.g),this.b.setOffset(e.b),this.a.setOffset(e.a)}},{key:"flattenOffset",value:function(){this.r.flattenOffset(),this.g.flattenOffset(),this.b.flattenOffset(),this.a.flattenOffset()}},{key:"extractOffset",value:function(){this.r.extractOffset(),this.g.extractOffset(),this.b.extractOffset(),this.a.extractOffset()}},{key:"addListener",value:function(e){var t=this,n=String(Ct++),r=function(n){n.value;e(t.__getValue())};return this._listeners[n]={r:this.r.addListener(r),g:this.g.addListener(r),b:this.b.addListener(r),a:this.a.addListener(r)},n}},{key:"removeListener",value:function(e){this.r.removeListener(this._listeners[e].r),this.g.removeListener(this._listeners[e].g),this.b.removeListener(this._listeners[e].b),this.a.removeListener(this._listeners[e].a),delete this._listeners[e]}},{key:"removeAllListeners",value:function(){this.r.removeAllListeners(),this.g.removeAllListeners(),this.b.removeAllListeners(),this.a.removeAllListeners(),this._listeners={}}},{key:"stopAnimation",value:function(e){this.r.stopAnimation(),this.g.stopAnimation(),this.b.stopAnimation(),this.a.stopAnimation(),e&&e(this.__getValue())}},{key:"resetAnimation",value:function(e){this.r.resetAnimation(),this.g.resetAnimation(),this.b.resetAnimation(),this.a.resetAnimation(),e&&e(this.__getValue())}},{key:"__getValue",value:function(){return null!=this.nativeColor?this.nativeColor:"rgba("+this.r.__getValue()+", "+this.g.__getValue()+", "+this.b.__getValue()+", "+this.a.__getValue()+")"}},{key:"__attach",value:function(){this.r.__addChild(this),this.g.__addChild(this),this.b.__addChild(this),this.a.__addChild(this),(0,d.default)((0,h.default)(t.prototype),"__attach",this).call(this)}},{key:"__detach",value:function(){this.r.__removeChild(this),this.g.__removeChild(this),this.b.__removeChild(this),this.a.__removeChild(this),(0,d.default)((0,h.default)(t.prototype),"__detach",this).call(this)}},{key:"__makeNative",value:function(e){this.r.__makeNative(e),this.g.__makeNative(e),this.b.__makeNative(e),this.a.__makeNative(e),(0,d.default)((0,h.default)(t.prototype),"__makeNative",this).call(this,e)}},{key:"__getNativeConfig",value:function(){return{type:"color",r:this.r.__getNativeTag(),g:this.g.__getNativeTag(),b:this.b.__getNativeTag(),a:this.a.__getNativeTag(),nativeColor:this.nativeColor}}}])}(K),Pt=function(e,t){return e&&t.onComplete?function(){t.onComplete&&t.onComplete.apply(t,arguments),e&&e.apply(void 0,arguments)}:e||t.onComplete},It=function(e,t,n){if(e instanceof ot){var i=(0,r.default)({},t),a=(0,r.default)({},t);for(var o in t){var s=t[o],u=s.x,l=s.y;void 0!==u&&void 0!==l&&(i[o]=u,a[o]=l)}var c=n(e.x,i),f=n(e.y,a);return Nt([c,f],{stopTogether:!1})}if(e instanceof Tt){var d=(0,r.default)({},t),h=(0,r.default)({},t),p=(0,r.default)({},t),v=(0,r.default)({},t);for(var m in t){var b=t[m],y=b.r,g=b.g,_=b.b,w=b.a;void 0!==y&&void 0!==g&&void 0!==_&&void 0!==w&&(d[m]=y,h[m]=g,p[m]=_,v[m]=w)}var S=n(e.r,d),E=n(e.g,h),k=n(e.b,p),M=n(e.a,v);return Nt([S,E,k,M],{stopTogether:!1})}return null},Ot=function e(t,n){var i=function(e,t,n){n=Pt(n,t);var r=e,i=t;r.stopTracking(),t.toValue instanceof H?r.track(new nt(r,t.toValue,St,i,n)):r.animate(new St(i),n)};return It(t,n,e)||{start:function(e){i(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var a=(0,r.default)((0,r.default)({},n),{},{iterations:e});i(t,a)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},Lt=function(e){var t=0;return{start:function(n){0===e.length?n&&n({finished:!0}):e[t].start((function r(i){i.finished&&++t!==e.length?e[t].start(r):n&&n(i)}))},stop:function(){t{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(3860).default},6725:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(3029),i=n(2901),a=n(6077),o=n.n(a),s=n(8345),u={window:{fontScale:1,height:0,scale:1,width:0},screen:{fontScale:1,height:0,scale:1,width:0}},l={},c=s.default;function f(){if(s.default){var e,t,n=window;if(n.visualViewport){var r=n.visualViewport;e=Math.round(r.height*r.scale),t=Math.round(r.width*r.scale)}else{var i=n.document.documentElement;e=i.clientHeight,t=i.clientWidth}u.window={fontScale:1,height:e,scale:n.devicePixelRatio||1,width:t},u.screen={fontScale:1,height:n.screen.height,scale:n.devicePixelRatio||1,width:n.screen.width}}}function d(){f(),Array.isArray(l.change)&&l.change.forEach((function(e){return e(u)}))}var h=(0,i.default)((function e(){(0,r.default)(this,e)}),null,[{key:"get",value:function(e){return c&&(c=!1,f()),o()(u[e],"No dimension set for key "+e),u[e]}},{key:"set",value:function(e){e&&(s.default?o()(!1,"Dimensions cannot be set in the browser"):(null!=e.screen&&(u.screen=e.screen),null!=e.window&&(u.window=e.window)))}},{key:"addEventListener",value:function(e,t){var n=this;return l[e]=l[e]||[],l[e].push(t),{remove:function(){n.removeEventListener(e,t)}}}},{key:"removeEventListener",value:function(e,t){Array.isArray(l[e])&&(l[e]=l[e].filter((function(e){return e!==t})))}}]);s.default&&(window.visualViewport?window.visualViewport.addEventListener("resize",d,!1):window.addEventListener("resize",d,!1))},5620:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r,i=n(3029),a=n(2901),o=4,s=1e-7,u=10,l=.1,c="function"===typeof Float32Array;function f(e,t){return 1-3*t+3*e}function d(e,t){return 3*t-6*e}function h(e){return 3*e}function p(e,t,n){return((f(t,n)*e+d(t,n))*e+h(t))*e}function v(e,t,n){return 3*f(t,n)*e*e+2*d(t,n)*e+h(t)}function m(e,t,n,r){if(!(e>=0&&e<=1&&n>=0&&n<=1))throw new Error("bezier x values must be in [0, 1] range");var i=c?new Float32Array(11):new Array(11);if(e!==t||n!==r)for(var a=0;a<11;++a)i[a]=p(a*l,e,n);function f(t){for(var r=0,a=1;10!==a&&i[a]<=t;++a)r+=l;--a;var c=r+(t-i[a])/(i[a+1]-i[a])*l,f=v(c,e,n);return f>=.001?function(e,t,n,r){for(var i=t,a=0;a0?f=o:c=o}while(Math.abs(a)>s&&++l0?1:0}},{key:"step1",value:function(e){return e>=1?1:0}},{key:"linear",value:function(e){return e}},{key:"ease",value:function(t){return r||(r=e.bezier(.42,0,1,1)),r(t)}},{key:"quad",value:function(e){return e*e}},{key:"cubic",value:function(e){return e*e*e}},{key:"poly",value:function(e){return function(t){return Math.pow(t,e)}}},{key:"sin",value:function(e){return 1-Math.cos(e*Math.PI/2)}},{key:"circle",value:function(e){return 1-Math.sqrt(1-e*e)}},{key:"exp",value:function(e){return Math.pow(2,10*(e-1))}},{key:"elastic",value:function(e){void 0===e&&(e=1);var t=e*Math.PI;return function(e){return 1-Math.pow(Math.cos(e*Math.PI/2),3)*Math.cos(e*t)}}},{key:"back",value:function(e){return void 0===e&&(e=1.70158),function(t){return t*t*((e+1)*t-e)}}},{key:"bounce",value:function(e){if(e<1/2.75)return 7.5625*e*e;if(e<2/2.75){var t=e-1.5/2.75;return 7.5625*t*t+.75}if(e<2.5/2.75){var n=e-2.25/2.75;return 7.5625*n*n+.9375}var r=e-2.625/2.75;return 7.5625*r*r+.984375}},{key:"bezier",value:function(e,t,n,r){return m(e,t,n,r)}},{key:"in",value:function(e){return e}},{key:"out",value:function(e){return function(t){return 1-e(1-t)}}},{key:"inOut",value:function(e){return function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2}}}])}()},932:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var r=n(3029),i=n(2901),a=n(388),o=n(3954),s=n(5501),u=n(8168),l=n(8587),c=n(9379),f=n(3929),d=n(3668);const h=function e(t,n,r){if(void 0===r&&(r=-1),0===r)return!0;if(t===n)return!1;if("function"===typeof t&&"function"===typeof n)return!1;if("object"!==typeof t||null===t)return t!==n;if("object"!==typeof n||null===n)return!0;if(t.constructor!==n.constructor)return!0;if(Array.isArray(t)){var i=t.length;if(n.length!==i)return!0;for(var a=0;a1){for(var i=[],a=0;a1?Math.ceil(e.length/t):e.length}return 0},n._keyExtractor=function(e,t){var r,i=k(n.props.numColumns),a=null!==(r=n.props.keyExtractor)&&void 0!==r?r:y.keyExtractor;return i>1?(v()(Array.isArray(e),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",i),e.map((function(e,n){return a(e,t*i+n)})).join(":")):a(e,t)},n._renderer=function(e,t,n,r,i){var a=k(r),o=function(n){return e?m.createElement(e,n):t?t(n):null},s=function(e){if(a>1){var t=e.item,r=e.index;return v()(Array.isArray(t),"Expected array of items with numColumns > 1"),m.createElement(f.default,{style:[R.row,n]},t.map((function(t,n){var i=o({item:t,index:r*a+n,separators:e.separators});return null!=i?m.createElement(m.Fragment,{key:n},i):null})))}return o(e)};return e?{ListItemComponent:s}:{renderItem:s}},n._memoizedRenderer=function(e,t){void 0===t&&(t=_);var n=null;function r(){for(var r=[],i=0;i1?v()(!r,"numColumns does not support horizontal."):v()(!i,"columnWrapperStyle not supported for single column lists"),v()(!(a&&o),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}},{key:"_pushMultiColumnViewable",value:function(e,t){var n,r=k(this.props.numColumns),i=null!==(n=this.props.keyExtractor)&&void 0!==n?n:y.keyExtractor;t.item.forEach((function(n,a){v()(null!=t.index,"Missing index!");var o=t.index*r+a;e.push((0,c.default)((0,c.default)({},t),{},{item:n,key:i(n,o),index:o}))}))}},{key:"_createOnViewableItemsChanged",value:function(e){var t=this;return function(n){var r=k(t.props.numColumns);if(e)if(r>1){var i=[],a=[];n.viewableItems.forEach((function(e){return t._pushMultiColumnViewable(a,e)})),n.changed.forEach((function(e){return t._pushMultiColumnViewable(i,e)})),e({viewableItems:a,changed:i})}else e(n)}}},{key:"render",value:function(){var e,t=this.props,n=t.numColumns,r=t.columnWrapperStyle,i=t.removeClippedSubviews,a=t.strictMode,o=void 0!==a&&a,s=(0,l.default)(t,E),c=o?this._memoizedRenderer:this._renderer;return m.createElement(b.default,(0,u.default)({},s,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:(e=i,null!==e&&void 0!==e&&e)},c(this.props.ListItemComponent,this.props.renderItem,r,n,this.props.extraData)))}}])}(m.PureComponent),R=d.default.create({row:{flexDirection:"row"}});const C=M},8623:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={allowRTL:function(){},forceRTL:function(){},getConstants:function(){return{isRTL:!1}}}},484:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>L});var r=n(9379),i=n(8168),a=n(8587),o=n(6665),s=n(658),u=[];function l(e){return u[e-1]}var c=n(5568),f=n(3029),d=n(2901),h=/^data:/,p=function(){function e(){(0,f.default)(this,e)}return(0,d.default)(e,null,[{key:"has",value:function(t){var n=e._entries;return h.test(t)||Boolean(n[t])}},{key:"add",value:function(t){var n=e._entries,r=Date.now();n[t]?(n[t].lastUsedTimestamp=r,n[t].refCount+=1):n[t]={lastUsedTimestamp:r,refCount:1}}},{key:"remove",value:function(t){var n=e._entries;n[t]&&(n[t].refCount-=1),e._cleanUpIfNeeded()}},{key:"_cleanUpIfNeeded",value:function(){var t,n,r=e._entries,i=Object.keys(r);i.length+1>e._maximumEntries&&(i.forEach((function(e){var i=r[e];(!n||i.lastUsedTimestamp1){var i=g.default.get();r=n.scales.reduce((function(e,t){return Math.abs(t-i)0&&(f=l.join(" ")),[o,f,u]}(T,u,H.current,e.tintColor),G=K[0],Y=K[1],$=K[2],X=e.resizeMode||G||"cover",Q=e.tintColor||$,Z=W?x:f,J=A(Z),ee=function(e){if("number"===typeof e){var t=l(e);return{height:t.height,width:t.width}}if(null!=e&&!Array.isArray(e)&&"object"===typeof e)return{height:e.height,width:e.width}}(Z),te=J?'url("'+J+'")':null,ne=function(){if(null!=V.current&&("center"===X||"repeat"===X)){var e=V.current,t=e.naturalHeight,n=e.naturalWidth,r=z.height,i=z.width;if(t&&n&&r&&i){var a=Math.min(1,i/n,r/t);return Math.ceil(a*n)+"px "+Math.ceil(a*t)+"px"}}}(),re=J?(0,s.default)("img",{alt:L||"",style:I.accessibilityImage$raw,draggable:d||!1,ref:V,src:J}):null;var ie=A(x);return o.useEffect((function(){function e(){null!=q.current&&(y.abort(q.current),q.current=null)}return e(),null!=ie&&(B(R),b&&b(),q.current=y.load(ie,(function(e){B(M),v&&v(e),m&&m()}),(function(){B("ERRORED"),h&&h({nativeEvent:{error:"Failed to load resource "+ie+" (404)"}}),m&&m()}))),e}),[ie,q,B,h,v,m,b]),o.createElement(S.default,(0,i.default)({},P,{"aria-label":L,onLayout:function(e){if("center"===X||"repeat"===X||p){var t=e.nativeEvent.layout;p&&p(e),U(t)}},pointerEvents:g,ref:t,style:[I.root,F&&I.inline,ee,T,I.undo,{boxShadow:null}]}),o.createElement(S.default,{style:[I.image,O[X],{backgroundImage:te,filter:Y},null!=ne&&{backgroundSize:ne}],suppressHydrationWarning:!0}),re,function(e,t){return e&&null!=t?o.createElement("svg",{style:{position:"absolute",height:0,visibility:"hidden",width:0}},o.createElement("defs",null,o.createElement("filter",{id:"tint-"+t,suppressHydrationWarning:!0},o.createElement("feFlood",{floodColor:""+e,key:e}),o.createElement("feComposite",{in2:"SourceAlpha",operator:"atop"})))):null}(Q,H.current))}));T.displayName="Image";var P=T;P.getSize=function(e,t,n){y.getSize(e,t,n)},P.prefetch=function(e){return y.prefetch(e)},P.queryCache=function(e){return y.queryCache(e)};var I=_.default.create({root:{flexBasis:"auto",overflow:"hidden",zIndex:0},inline:{display:"inline-flex"},undo:{blurRadius:null,shadowColor:null,shadowOpacity:null,shadowOffset:null,shadowRadius:null,tintColor:null,overlayColor:null,resizeMode:null},image:(0,r.default)((0,r.default)({},_.default.absoluteFillObject),{},{backgroundColor:"transparent",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",height:"100%",width:"100%",zIndex:-1}),accessibilityImage$raw:(0,r.default)((0,r.default)({},_.default.absoluteFillObject),{},{height:"100%",opacity:0,width:"100%",zIndex:-1})}),O=_.default.create({center:{backgroundSize:"auto"},contain:{backgroundSize:"contain"},cover:{backgroundSize:"cover"},none:{backgroundPosition:"0",backgroundSize:"auto"},repeat:{backgroundPosition:"0",backgroundRepeat:"repeat",backgroundSize:"auto"},stretch:{backgroundSize:"100% 100%"}});const L=P},3816:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r=n(6077),i=n.n(r),a=n(3029),o=n(2901),s=n(9379);const u=(0,o.default)((function e(t){(0,a.default)(this,e);var n=t.onMoreTasks;this._onMoreTasks=n,this._queueStack=[{tasks:[],popable:!0}]}),[{key:"enqueue",value:function(e){this._getCurrentQueue().push(e)}},{key:"enqueueTasks",value:function(e){var t=this;e.forEach((function(e){return t.enqueue(e)}))}},{key:"cancelTasks",value:function(e){this._queueStack=this._queueStack.map((function(t){return(0,s.default)((0,s.default)({},t),{},{tasks:t.tasks.filter((function(t){return-1===e.indexOf(t)}))})})).filter((function(e,t){return e.tasks.length>0||0===t}))}},{key:"hasTasksToProcess",value:function(){return this._getCurrentQueue().length>0}},{key:"processNext",value:function(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{"object"===typeof t&&t.gen?this._genPromise(t):"object"===typeof t&&t.run?t.run():(i()("function"===typeof t,"Expected Function, SimpleTask, or PromiseTask, but got:\n"+JSON.stringify(t,null,2)),t())}catch(n){throw n.message="TaskQueue: Error with task "+(t.name||"")+": "+n.message,n}}}},{key:"_getCurrentQueue",value:function(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&e>0?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}},{key:"_genPromise",value:function(e){var t=this,n=this._queueStack.push({tasks:[],popable:!1})-1,r=this._queueStack[n];e.gen().then((function(){r.popable=!0,t.hasTasksToProcess()&&t._onMoreTasks()})).catch((function(t){setTimeout((function(){throw t.message="TaskQueue: Error resolving Promise in task "+e.name+": "+t.message,t}),0)}))}}]);var l=n(3684),c=n(8345).default&&"undefined"!==typeof window.requestIdleCallback,f=c?window.requestIdleCallback:function(e,t){return setTimeout((function(){var t=Date.now();e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)};c&&window.cancelIdleCallback;const d=f;var h=new l.default,p={Events:{interactionStart:"interactionStart",interactionComplete:"interactionComplete"},runAfterInteractions:function(e){var t=[],n=new Promise((function(n){S(),e&&t.push(e),t.push({run:n,name:"resolve "+(e&&e.name||"?")}),y.enqueueTasks(t)}));return{then:n.then.bind(n),done:n.then.bind(n),cancel:function(){y.cancelTasks(t)}}},createInteractionHandle:function(){S();var e=++_;return m.add(e),e},clearInteractionHandle:function(e){i()(!!e,"Must provide a handle to clear."),S(),m.delete(e),b.add(e)},addListener:h.addListener.bind(h),setDeadline:function(e){w=e}},v=new Set,m=new Set,b=new Set,y=new u({onMoreTasks:S}),g=0,_=0,w=-1;function S(){g||(g=w>0?setTimeout(E):d(E))}function E(){g=0;var e=v.size;m.forEach((function(e){return v.add(e)})),b.forEach((function(e){return v.delete(e)}));var t=v.size;if(0!==e&&0===t?h.emit(p.Events.interactionComplete):0===e&&0!==t&&h.emit(p.Events.interactionStart),0===t)for(var n=Date.now();y.hasTasksToProcess();)if(y.processNext(),w>0&&Date.now()-n>=w){S();break}m.clear(),b.clear()}const k=p},2365:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(1175);const i={isVisible:function(){return!1},addListener:function(){return{remove:function(){}}},dismiss:function(){(0,r.default)()},removeAllListeners:function(){},removeListener:function(){}}},8264:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>D});var r=n(8168),i=n(8587),a=n(6665),o=n(3672),s=n(8345);const u=function(e){var t=e.children,n=a.useRef(null);if(s.default&&!n.current){var r=document.createElement("div");r&&document.body&&(document.body.appendChild(r),n.current=r)}return a.useEffect((function(){if(s.default)return function(){document.body&&n.current&&(document.body.removeChild(n.current),n.current=null)}}),[]),n.current&&s.default?o.createPortal(t,n.current):null};var l=n(3668),c=n(658);function f(e,t){return"slide"===e?t?h:p:"fade"===e?t?v:m:t?d.container:d.hidden}var d=l.default.create({container:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:9999},animatedIn:{animationDuration:"300ms",animationTimingFunction:"ease-in"},animatedOut:{pointerEvents:"none",animationDuration:"300ms",animationTimingFunction:"ease-out"},fadeIn:{opacity:1,animationKeyframes:{"0%":{opacity:0},"100%":{opacity:1}}},fadeOut:{opacity:0,animationKeyframes:{"0%":{opacity:1},"100%":{opacity:0}}},slideIn:{transform:"translateY(0%)",animationKeyframes:{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0%)"}}},slideOut:{transform:"translateY(100%)",animationKeyframes:{"0%":{transform:"translateY(0%)"},"100%":{transform:"translateY(100%)"}}},hidden:{opacity:0}}),h=[d.container,d.animatedIn,d.slideIn],p=[d.container,d.animatedOut,d.slideOut],v=[d.container,d.animatedIn,d.fadeIn],m=[d.container,d.animatedOut,d.fadeOut];const b=function(e){var t=e.animationType,n=e.children,r=e.onDismiss,i=e.onShow,o=e.visible,s=a.useState(!1),u=s[0],l=s[1],h=a.useRef(!1),p=a.useRef(!1),v=t&&"none"!==t,m=a.useCallback((function(e){e&&e.currentTarget!==e.target||(o?i&&i():l(!1))}),[i,o]);return a.useEffect((function(){p.current&&!u&&r&&r(),p.current=u}),[u,r]),a.useEffect((function(){o&&l(!0),o===h.current||v||m(),h.current=o}),[v,o,m]),u||o?(0,c.default)("div",{style:u?f(t,o):d.hidden,onAnimationEnd:m,children:n}):null};var y=n(3929),g=["active","children","onRequestClose","transparent"],_=a.forwardRef((function(e,t){var n=e.active,o=e.children,u=e.onRequestClose,l=e.transparent,c=(0,i.default)(e,g);a.useEffect((function(){if(s.default){var e=function(e){n&&"Escape"===e.key&&(e.stopPropagation(),u&&u())};return document.addEventListener("keyup",e,!1),function(){return document.removeEventListener("keyup",e,!1)}}}),[n,u]);var f=a.useMemo((function(){return[w.modal,l?w.modalTransparent:w.modalOpaque]}),[l]);return a.createElement(y.default,(0,r.default)({},c,{"aria-modal":!0,ref:t,role:n?"dialog":null,style:f}),a.createElement(y.default,{style:w.container},o))})),w=l.default.create({modal:{position:"fixed",top:0,right:0,bottom:0,left:0},modalTransparent:{backgroundColor:"transparent"},modalOpaque:{backgroundColor:"white"},container:{top:0,flex:1}});const S=_;var E=n(7640),k=function(){return(0,c.default)("div",{role:"none",tabIndex:0,style:A.focusBracket})};function M(e){if(!s.default)return!1;try{e.focus()}catch(t){}return document.activeElement===e}function R(e){for(var t=0;t=0;t--){var n=e.childNodes[t];if(M(n)||C(n))return!0}return!1}const x=function(e){var t=e.active,n=e.children,r=a.useRef(),i=a.useRef({trapFocusInProgress:!1,lastFocusedElement:null});return a.useEffect((function(){if(s.default){var e=function(){if(null!=r.current&&!i.current.trapFocusInProgress&&t){try{if(i.current.trapFocusInProgress=!0,document.activeElement instanceof Node&&!r.current.contains(document.activeElement)){var e=R(r.current);i.current.lastFocusedElement===document.activeElement&&(e=C(r.current)),!e&&null!=r.current&&document.activeElement&&E.default.focus(r.current)}}finally{i.current.trapFocusInProgress=!1}i.current.lastFocusedElement=document.activeElement}};return e(),document.addEventListener("focus",e,!0),function(){return document.removeEventListener("focus",e,!0)}}}),[t]),a.useEffect((function(){if(s.default){var e=document.activeElement;return function(){e&&document.contains(e)&&E.default.focus(e)}}}),[]),a.createElement(a.Fragment,null,a.createElement(k,null),a.createElement(y.default,{ref:r},n),a.createElement(k,null))};var A=l.default.create({focusBracket:{outlineStyle:"none"}}),T=["animationType","children","onDismiss","onRequestClose","onShow","transparent","visible"],P=0,I=[],O={};function L(){if(0!==I.length){var e=I[I.length-1];I.forEach((function(t){t in O&&O[t](t===e)}))}}function N(e){e in O&&(O[e](!1),delete O[e]);var t=I.indexOf(e);-1!==t&&(I.splice(t,1),L())}const D=a.forwardRef((function(e,t){var n=e.animationType,o=e.children,s=e.onDismiss,l=e.onRequestClose,c=e.onShow,f=e.transparent,d=e.visible,h=void 0===d||d,p=(0,i.default)(e,T),v=a.useMemo((function(){return P++}),[]),m=a.useState(!1),y=m[0],g=m[1],_=a.useCallback((function(){N(v),s&&s()}),[v,s]),w=a.useCallback((function(){!function(e,t){N(e),I.push(e),O[e]=t,L()}(v,g),c&&c()}),[v,c]);return a.useEffect((function(){return function(){return N(v)}}),[v]),a.createElement(u,null,a.createElement(b,{animationType:n,onDismiss:_,onShow:w,visible:h},a.createElement(x,{active:y},a.createElement(S,(0,r.default)({},p,{active:y,onRequestClose:l,ref:t,transparent:f}),o))))}))},4177:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(9348).default},5548:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={UIManager:n(7640).default}},8943:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3029),i=n(2901),a=n(6725),o=function(){function e(){(0,r.default)(this,e)}return(0,i.default)(e,null,[{key:"get",value:function(){return a.default.get("window").scale}},{key:"getFontScale",value:function(){return a.default.get("window").fontScale||e.get()}},{key:"getPixelSizeForLayoutSize",value:function(t){return Math.round(t*e.get())}},{key:"roundToNearestPixel",value:function(t){var n=e.get();return Math.round(t*n)/n}}])}()},5991:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={OS:"web",select:function(e){return"web"in e?e.web:e.default},get isTesting(){return!1}}},5708:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>te});var r=n(8168),i=n(8587),a=n(6665),o=n(769),s=n(8345),u=function(){};var l=function(){var e=!1;if(s.default)try{var t={};Object.defineProperty(t,"passive",{get:function(){return e=!0,!1}}),window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(n){}return e}();function c(){return this.cancelBubble}function f(){return this.defaultPrevented}function d(e,t,n,r){var i=function(e){return null!=e&&(l?e:Boolean(e.capture))}(r),a=function(e){return n(((t=e).nativeEvent=t,t.persist=u,t.isDefaultPrevented=f,t.isPropagationStopped=c,t));var t};return e.addEventListener(t,a,i),function(){null!=e&&e.removeEventListener(t,a,i)}}var h,p,v="keyboard",m="keyboard",b=!1,y=new Set,g="keyboard",_="mouse",w="touch",S="contextmenu",E="mousedown",k="mousemove",M="mouseup",R="pointerdown",C="pointermove",x="scroll",A="selectionchange",T="touchcancel",P="touchmove",I="touchstart",O={passive:!0},L={capture:!0,passive:!0};function N(){null==h&&null==p||(null!=h&&(m=h,h=null),null!=p&&(v=p,p=null),B())}function D(e){var t=e.type;if("undefined"!==typeof window&&null!=window.PointerEvent){if(t===R)return void(v!==e.pointerType&&(m=e.pointerType,v=e.pointerType,B()));if(t===C)return void(m!==e.pointerType&&(m=e.pointerType,B()))}else{if(b||(t===E&&v!==_&&(m=_,v=_,B()),t===k&&m!==_&&(m=_,B())),t===I)return b=!0,e.touches&&e.touches.length>1&&(b=!1),void(v!==w&&(m=w,v=w,B()));t!==S&&t!==M&&t!==A&&t!==x&&t!==T&&t!==P||(b=!1)}}function B(){var e={activeModality:v,modality:m};y.forEach((function(t){t(e)}))}s.default&&(d(window,"blur",(function(){h=m,p=v,v=g,m=g,B(),b=!1}),O),d(window,"focus",(function(){N()}),O),d(document,"keydown",(function(e){e.metaKey||e.altKey||e.ctrlKey||m!==g&&(m=g,v=g,B())}),L),d(document,"visibilitychange",(function(){"hidden"!==document.visibilityState&&N()}),L),d(document,R,D,L),d(document,C,D,L),d(document,S,D,L),d(document,E,D,L),d(document,k,D,L),d(document,M,D,L),d(document,T,D,L),d(document,P,D,L),d(document,I,D,L),d(document,A,D,L),d(document,x,D,L));var j=n(542),z=n(9170);function U(e,t){var n=(0,z.default)((function(){return new Map})),r=(0,z.default)((function(){return function(r,i){var a=n.get(r);null!=a&&a(),null==i&&(n.delete(r),i=function(){});var o=d(r,e,i,t);return n.set(r,o),o}}));return(0,j.default)((function(){return function(){n.forEach((function(e){e()})),n.clear()}}),[n]),r}var F={},V={passive:!0},H="react-gui:hover:lock",q="react-gui:hover:unlock",W=function(){return!("undefined"===typeof window||null==window.PointerEvent)};function K(e,t,n){var r=document.createEvent("CustomEvent"),i=n||F,a=i.bubbles,o=void 0===a||a,s=i.cancelable,u=void 0===s||s,l=i.detail;r.initCustomEvent(t,o,u,l),e.dispatchEvent(r)}function G(e){var t=e.pointerType;return null!=t?t:m}var Y=n(7442),$=n(3668),X=n(3929),Q=["children","delayLongPress","delayPressIn","delayPressOut","disabled","onBlur","onContextMenu","onFocus","onHoverIn","onHoverOut","onKeyDown","onLongPress","onPress","onPressMove","onPressIn","onPressOut","style","tabIndex","testOnly_hovered","testOnly_pressed"];function Z(e){var t=(0,a.useState)(!1);return[t[0]||e,t[1]]}var J=$.default.create({active:{cursor:"pointer",touchAction:"manipulation"},disabled:{pointerEvents:"box-none"}}),ee=(0,a.memo)((0,a.forwardRef)((function(e,t){var n=e.children,s=e.delayLongPress,u=e.delayPressIn,l=e.delayPressOut,c=e.disabled,f=e.onBlur,d=e.onContextMenu,h=e.onFocus,p=e.onHoverIn,v=e.onHoverOut,m=e.onKeyDown,b=e.onLongPress,y=e.onPress,g=e.onPressMove,_=e.onPressIn,w=e.onPressOut,S=e.style,E=e.tabIndex,k=e.testOnly_hovered,M=e.testOnly_pressed,R=(0,i.default)(e,Q),C=Z(!0===k),x=C[0],A=C[1],T=Z(!1),P=T[0],I=T[1],O=Z(!0===M),L=O[0],N=O[1],D=(0,a.useRef)(null),B=(0,o.default)(t,D),z=(0,a.useMemo)((function(){return{delayLongPress:s,delayPressStart:u,delayPressEnd:l,disabled:c,onLongPress:b,onPress:y,onPressChange:N,onPressStart:_,onPressMove:g,onPressEnd:w}}),[s,u,l,c,b,y,_,g,w,N]),F=(0,Y.default)(D,z),$=F.onContextMenu,ee=F.onKeyDown;!function(e,t){var n=t.contain,r=t.disabled,i=t.onHoverStart,a=t.onHoverChange,o=t.onHoverUpdate,s=t.onHoverEnd,u=W(),l=U(u?"pointermove":"mousemove",V),c=U(u?"pointerenter":"mouseenter",V),f=U(u?"pointerleave":"mouseleave",V),d=U(H,V),h=U(q,V);(0,j.default)((function(){var t=e.current;if(null!==t){var u=function(e){null!=s&&s(e),null!=a&&a(!1),l(t,null),f(t,null)},p=function(t){var r=e.current;null!=r&&"touch"!==G(t)&&(n&&K(r,q),u(t))},v=function(e){"touch"!==G(e)&&null!=o&&(null==e.x&&(e.x=e.clientX),null==e.y&&(e.y=e.clientY),o(e))},m=function(e){null!=i&&i(e),null!=a&&a(!0),null!=o&&l(t,r?null:v),f(t,r?null:p)};c(t,r?null:function(t){var i=e.current;null!=i&&"touch"!==G(t)&&(n&&K(i,H),m(t),d(i,r?null:function(e){e.target!==i&&u(t)}),h(i,r?null:function(e){e.target!==i&&m(t)}))})}}),[c,l,f,d,h,n,r,i,a,o,s,e])}(D,{contain:!0,disabled:c,onHoverChange:A,onHoverStart:p,onHoverEnd:v});var te,ne={hovered:x,focused:P,pressed:L},re=a.useCallback((function(e){e.nativeEvent.target===D.current&&(I(!1),null!=f&&f(e))}),[D,I,f]),ie=a.useCallback((function(e){e.nativeEvent.target===D.current&&(I(!0),null!=h&&h(e))}),[D,I,h]),ae=a.useCallback((function(e){null!=$&&$(e),null!=d&&d(e)}),[d,$]),oe=a.useCallback((function(e){null!=ee&&ee(e),null!=m&&m(e)}),[m,ee]);return te=void 0!==E?E:c?-1:0,a.createElement(X.default,(0,r.default)({},R,F,{"aria-disabled":c,onBlur:re,onContextMenu:ae,onFocus:ie,onKeyDown:oe,ref:B,style:[c?J.disabled:J.active,"function"===typeof S?S(ne):S],tabIndex:te}),"function"===typeof n?n(ne):n)})));ee.displayName="Pressable";const te=ee},2660:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(8587),i=n(3929),a=n(6665),o=["colors","enabled","onRefresh","progressBackgroundColor","progressViewOffset","refreshing","size","tintColor","title","titleColor"];const s=function(e){e.colors,e.enabled,e.onRefresh,e.progressBackgroundColor,e.progressViewOffset,e.refreshing,e.size,e.tintColor,e.title,e.titleColor;var t=(0,r.default)(e,o);return a.createElement(i.default,t)}},2772:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>B});var r=n(3029),i=n(2901),a=n(388),o=n(3954),s=n(5501),u=n(9379),l=n(8168),c=n(8587),f=n(6725),d=n(1175),h=n(6077),p=n.n(h),v=n(3768),m=n(6665),b=n(3668),y=n(3929),g=n(769),_=["onScroll","onTouchMove","onWheel","scrollEnabled","scrollEventThrottle","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","style"];function w(e){return{nativeEvent:{contentOffset:{get x(){return e.target.scrollLeft},get y(){return e.target.scrollTop}},contentSize:{get height(){return e.target.scrollHeight},get width(){return e.target.scrollWidth}},layoutMeasurement:{get height(){return e.target.offsetHeight},get width(){return e.target.offsetWidth}}},timeStamp:Date.now()}}var S=m.forwardRef((function(e,t){var n=e.onScroll,r=e.onTouchMove,i=e.onWheel,a=e.scrollEnabled,o=void 0===a||a,s=e.scrollEventThrottle,u=void 0===s?0:s,f=e.showsHorizontalScrollIndicator,d=e.showsVerticalScrollIndicator,h=e.style,p=(0,c.default)(e,_),v=m.useRef({isScrolling:!1,scrollLastTick:0}),b=m.useRef(null),S=m.useRef(null);function k(e){return function(t){o&&e&&e(t)}}function M(e){v.current.scrollLastTick=Date.now(),n&&n(w(e))}var R=!1===f||!1===d;return m.createElement(y.default,(0,l.default)({},p,{onScroll:function(e){e.stopPropagation(),e.target===S.current&&(e.persist(),null!=b.current&&clearTimeout(b.current),b.current=setTimeout((function(){!function(e){v.current.isScrolling=!1,n&&n(w(e))}(e)}),100),v.current.isScrolling?function(e,t){var n=Date.now()-e;return t>0&&n>=t}(v.current.scrollLastTick,u)&&M(e):function(e){v.current.isScrolling=!0,M(e)}(e))},onTouchMove:k(r),onWheel:k(i),ref:(0,g.default)(S,t),style:[h,!o&&E.scrollDisabled,R&&E.hideScrollbar]}))})),E=b.default.create({scrollDisabled:{overflowX:"hidden",overflowY:"hidden",touchAction:"none"},hideScrollbar:{scrollbarWidth:"none"}});const k=S;var M=n(2600),R=n(7640),C=n(7277),x=n.n(C);function A(e,t,n){return t=(0,o.default)(t),(0,a.default)(e,T()?Reflect.construct(t,n||[],(0,o.default)(e).constructor):t.apply(e,n))}function T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(T=function(){return!!e})()}var P=["contentContainerStyle","horizontal","onContentSizeChange","refreshControl","stickyHeaderIndices","pagingEnabled","forwardedRef","keyboardDismissMode","onScroll","centerContent"],I={},O=function(e){function t(){var e;return(0,r.default)(this,t),(e=A(this,t,arguments))._scrollNodeRef=null,e._innerViewRef=null,e.isTouching=!1,e.lastMomentumScrollBeginTime=0,e.lastMomentumScrollEndTime=0,e.observedScrollSinceBecomingResponder=!1,e.becameResponderWhileAnimating=!1,e.scrollResponderHandleScrollShouldSetResponder=function(){return e.isTouching},e.scrollResponderHandleStartShouldSetResponderCapture=function(t){return e.scrollResponderIsAnimating()},e.scrollResponderHandleTerminationRequest=function(){return!e.observedScrollSinceBecomingResponder},e.scrollResponderHandleTouchEnd=function(t){var n=t.nativeEvent;e.isTouching=0!==n.touches.length,e.props.onTouchEnd&&e.props.onTouchEnd(t)},e.scrollResponderHandleResponderRelease=function(t){e.props.onResponderRelease&&e.props.onResponderRelease(t);var n=M.default.currentlyFocusedField();e.props.keyboardShouldPersistTaps||null==n||t.target===n||e.observedScrollSinceBecomingResponder||e.becameResponderWhileAnimating||(e.props.onScrollResponderKeyboardDismissed&&e.props.onScrollResponderKeyboardDismissed(t),M.default.blurTextInput(n))},e.scrollResponderHandleScroll=function(t){e.observedScrollSinceBecomingResponder=!0,e.props.onScroll&&e.props.onScroll(t)},e.scrollResponderHandleResponderGrant=function(t){e.observedScrollSinceBecomingResponder=!1,e.props.onResponderGrant&&e.props.onResponderGrant(t),e.becameResponderWhileAnimating=e.scrollResponderIsAnimating()},e.scrollResponderHandleScrollBeginDrag=function(t){e.props.onScrollBeginDrag&&e.props.onScrollBeginDrag(t)},e.scrollResponderHandleScrollEndDrag=function(t){e.props.onScrollEndDrag&&e.props.onScrollEndDrag(t)},e.scrollResponderHandleMomentumScrollBegin=function(t){e.lastMomentumScrollBeginTime=Date.now(),e.props.onMomentumScrollBegin&&e.props.onMomentumScrollBegin(t)},e.scrollResponderHandleMomentumScrollEnd=function(t){e.lastMomentumScrollEndTime=Date.now(),e.props.onMomentumScrollEnd&&e.props.onMomentumScrollEnd(t)},e.scrollResponderHandleTouchStart=function(t){e.isTouching=!0,e.props.onTouchStart&&e.props.onTouchStart(t)},e.scrollResponderHandleTouchMove=function(t){e.props.onTouchMove&&e.props.onTouchMove(t)},e.scrollResponderIsAnimating=function(){return Date.now()-e.lastMomentumScrollEndTime<16||e.lastMomentumScrollEndTime-1;return null!=e&&(n||o)?m.createElement(y.default,{style:[n&&N.stickyHeader,o&&N.pagingEnabledChild]},e):e})):this.props.children,b=m.createElement(y.default,(0,l.default)({},d,{children:v,collapsable:!1,ref:this._setInnerViewRef,style:[n&&N.contentContainerHorizontal,s&&N.contentContainerCenterContent,t]})),g=n?N.baseHorizontal:N.baseVertical,_=n?N.pagingEnabledHorizontal:N.pagingEnabledVertical,w=(0,u.default)((0,u.default)({},f),{},{style:[g,o&&_,this.props.style],onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this._handleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject}),S=k;p()(void 0!==S,"ScrollViewClass must not be undefined");var E=m.createElement(S,(0,l.default)({},w,{ref:this._setScrollNodeRef}),b);return i?m.cloneElement(i,{style:w.style},E):E}}])}(m.Component),L={flexGrow:1,flexShrink:1,transform:"translateZ(0)",WebkitOverflowScrolling:"touch"},N=b.default.create({baseVertical:(0,u.default)((0,u.default)({},L),{},{flexDirection:"column",overflowX:"hidden",overflowY:"auto"}),baseHorizontal:(0,u.default)((0,u.default)({},L),{},{flexDirection:"row",overflowX:"auto",overflowY:"hidden"}),contentContainerHorizontal:{flexDirection:"row"},contentContainerCenterContent:{justifyContent:"center",flexGrow:1},stickyHeader:{position:"sticky",top:0,zIndex:10},pagingEnabledHorizontal:{scrollSnapType:"x mandatory"},pagingEnabledVertical:{scrollSnapType:"y mandatory"},pagingEnabledChild:{scrollSnapAlign:"start"}}),D=m.forwardRef((function(e,t){return m.createElement(O,(0,l.default)({},e,{forwardedRef:t}))}));D.displayName="ScrollView";const B=D},494:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>R});var r=n(3029),i=n(2901),a=n(388),o=n(3954),s=n(5501),u=n(8168),l=n(8587),c=n(6665),f=n(1003),d=n(9379),h=n(3929),p=n(5191),v=n(2853),m=n(6077),b=n.n(m);function y(e,t,n){return t=(0,o.default)(t),(0,a.default)(e,g()?Reflect.construct(t,n||[],(0,o.default)(e).constructor):t.apply(e,n))}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}var _=["ItemSeparatorComponent","SectionSeparatorComponent","renderItem","renderSectionFooter","renderSectionHeader","sections","stickySectionHeadersEnabled"];function w(e){var t=e.LeadingSeparatorComponent,n=e.SeparatorComponent,r=e.cellKey,i=e.prevCellKey,a=e.setSelfHighlightCallback,o=e.updateHighlightFor,s=e.setSelfUpdatePropsCallback,l=e.updatePropsFor,f=e.item,p=e.index,v=e.section,m=e.inverted,b=c.useState(!1),y=b[0],g=b[1],_=c.useState(!1),w=_[0],S=_[1],E=c.useState({leadingItem:e.leadingItem,leadingSection:e.leadingSection,section:e.section,trailingItem:e.item,trailingSection:e.trailingSection}),k=E[0],M=E[1],R=c.useState({leadingItem:e.item,leadingSection:e.leadingSection,section:e.section,trailingItem:e.trailingItem,trailingSection:e.trailingSection}),C=R[0],x=R[1];c.useEffect((function(){return a(r,S),s(r,x),function(){s(r,null),a(r,null)}}),[r,a,x,s]);var A={highlight:function(){g(!0),S(!0),null!=i&&o(i,!0)},unhighlight:function(){g(!1),S(!1),null!=i&&o(i,!1)},updateProps:function(e,r){"leading"===e?null!=t?M((0,d.default)((0,d.default)({},k),r)):null!=i&&l(i,(0,d.default)((0,d.default)({},k),r)):"trailing"===e&&null!=n&&x((0,d.default)((0,d.default)({},C),r))}},T=e.renderItem({item:f,index:p,section:v,separators:A}),P=null!=t&&c.createElement(t,(0,u.default)({highlighted:y},k)),I=null!=n&&c.createElement(n,(0,u.default)({highlighted:w},C));return P||I?c.createElement(h.default,null,!1===m?P:I,T,!1===m?I:P):T}const S=function(e){function t(){var e;return(0,r.default)(this,t),(e=y(this,t,arguments))._keyExtractor=function(t,n){var r=e._subExtractor(n);return r&&r.key||String(n)},e._convertViewable=function(t){var n;b()(null!=t.index,"Received a broken ViewToken");var r=e._subExtractor(t.index);if(!r)return null;var i=r.section.keyExtractor,a=e.props.keyExtractor||v.keyExtractor,o=null!=i?i(t.item,r.index):a(t.item,null!==(n=r.index)&&void 0!==n?n:0);return(0,d.default)((0,d.default)({},t),{},{index:r.index,key:o,section:r.section})},e._onViewableItemsChanged=function(t){var n=t.viewableItems,r=t.changed,i=e.props.onViewableItemsChanged;null!=i&&i({viewableItems:n.map(e._convertViewable,e).filter(Boolean),changed:r.map(e._convertViewable,e).filter(Boolean)})},e._renderItem=function(t){return function(n){var r=n.item,i=n.index,a=e._subExtractor(i);if(!a)return null;var o=a.index;if(null==o){var s=a.section;if(!0===a.header){var u=e.props.renderSectionHeader;return u?u({section:s}):null}var l=e.props.renderSectionFooter;return l?l({section:s}):null}var f=a.section.renderItem||e.props.renderItem,d=e._getSeparatorComponent(i,a,t);return b()(f,"no renderItem!"),c.createElement(w,{SeparatorComponent:d,LeadingSeparatorComponent:0===o?e.props.SectionSeparatorComponent:void 0,cellKey:a.key,index:o,item:r,leadingItem:a.leadingItem,leadingSection:a.leadingSection,prevCellKey:(e._subExtractor(i-1)||{}).key,setSelfHighlightCallback:e._setUpdateHighlightFor,setSelfUpdatePropsCallback:e._setUpdatePropsFor,updateHighlightFor:e._updateHighlightFor,updatePropsFor:e._updatePropsFor,renderItem:f,section:a.section,trailingItem:a.trailingItem,trailingSection:a.trailingSection,inverted:!!e.props.inverted})}},e._updatePropsFor=function(t,n){var r=e._updatePropsMap[t];null!=r&&r(n)},e._updateHighlightFor=function(t,n){var r=e._updateHighlightMap[t];null!=r&&r(n)},e._setUpdateHighlightFor=function(t,n){null!=n?e._updateHighlightMap[t]=n:delete e._updateHighlightFor[t]},e._setUpdatePropsFor=function(t,n){null!=n?e._updatePropsMap[t]=n:delete e._updatePropsMap[t]},e._updateHighlightMap={},e._updatePropsMap={},e._captureRef=function(t){e._listRef=t},e}return(0,s.default)(t,e),(0,i.default)(t,[{key:"scrollToLocation",value:function(e){for(var t=e.itemIndex,n=0;n0&&this.props.stickySectionHeadersEnabled)r+=this._listRef.__getFrameMetricsApprox(t-e.itemIndex,this._listRef.props).length;var i=(0,d.default)((0,d.default)({},e),{},{viewOffset:r,index:t});this._listRef.scrollToIndex(i)}}},{key:"getListRef",value:function(){return this._listRef}},{key:"render",value:function(){for(var e,t=this,n=this.props,r=(n.ItemSeparatorComponent,n.SectionSeparatorComponent,n.renderItem,n.renderSectionFooter,n.renderSectionHeader,n.sections,n.stickySectionHeadersEnabled,(0,l.default)(n,_)),i=this.props.ListHeaderComponent?1:0,a=this.props.stickySectionHeadersEnabled?[]:void 0,o=0,s=(0,f.default)(this.props.sections);!(e=s()).done;){var d=e.value;null!=a&&a.push(o+i),o+=2,o+=this.props.getItemCount(d.data)}var h=this._renderItem(o);return c.createElement(p.default,(0,u.default)({},r,{keyExtractor:this._keyExtractor,stickyHeaderIndices:a,renderItem:h,data:this.props.sections,getItem:function(e,n){return t._getItem(t.props,e,n)},getItemCount:function(){return o},onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}},{key:"_getItem",value:function(e,t,n){if(!t)return null;for(var r=n-1,i=0;i=i(l)+1))return-1===t?{section:u,key:c+":header",index:null,header:!0,trailingSection:o[s+1]}:t===i(l)?{section:u,key:c+":footer",index:null,header:!1,trailingSection:o[s+1]}:{section:u,key:c+":"+(u.keyExtractor||a||v.keyExtractor)(r(l,t),t),index:t,leadingItem:r(l,t-1),leadingSection:o[s-1],trailingItem:r(l,t+1),trailingSection:o[s+1]};t-=i(l)+1}}},{key:"_getSeparatorComponent",value:function(e,t,n){if(!(t=t||this._subExtractor(e)))return null;var r=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,i=this.props.SectionSeparatorComponent,a=e===n-1,o=t.index===this.props.getItemCount(t.section.data)-1;return i&&o?i:!r||o||a?null:r}}])}(c.PureComponent);function E(e,t,n){return t=(0,o.default)(t),(0,a.default)(e,k()?Reflect.construct(t,n||[],(0,o.default)(e).constructor):t.apply(e,n))}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}var M=["stickySectionHeadersEnabled"];const R=function(e){function t(){var e;return(0,r.default)(this,t),(e=E(this,t,arguments))._captureRef=function(t){e._wrapperListRef=t},e}return(0,s.default)(t,e),(0,i.default)(t,[{key:"scrollToLocation",value:function(e){null!=this._wrapperListRef&&this._wrapperListRef.scrollToLocation(e)}},{key:"recordInteraction",value:function(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.recordInteraction()}},{key:"flashScrollIndicators",value:function(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.flashScrollIndicators()}},{key:"getScrollResponder",value:function(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollResponder()}},{key:"getScrollableNode",value:function(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollableNode()}},{key:"render",value:function(){var e=this.props,t=e.stickySectionHeadersEnabled,n=(0,l.default)(e,M),r=null!==t&&void 0!==t&&t;return c.createElement(S,(0,u.default)({},n,{stickySectionHeadersEnabled:r,ref:this._captureRef,getItemCount:function(e){return e.length},getItem:function(e,t){return e[t]}}))}}])}(c.PureComponent)},1815:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=function(){};function i(){return null}i.setBackgroundColor=r,i.setBarStyle=r,i.setHidden=r,i.setNetworkActivityIndicatorVisible=r,i.setTranslucent=r;const a=i},9647:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});const r=function(e){return"currentcolor"===e||"currentColor"===e||"inherit"===e||0===e.indexOf("var(")};var i=n(9e3);const a=function(e,t){if(void 0===t&&(t=1),null!=e){if("string"===typeof e&&r(e))return e;var n=(0,i.default)(e);if(null!=n)return"rgba("+(n>>16&255)+","+(n>>8&255)+","+(255&n)+","+((n>>24&255)/255*t).toFixed(2)+")"}}},9650:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},i=["ms","Moz","O","Webkit"];Object.keys(r).forEach((function(e){i.forEach((function(t){r[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(t,e)]=r[e]}))}));const a=r;var o=n(9647),s={backgroundColor:!0,borderColor:!0,borderTopColor:!0,borderRightColor:!0,borderBottomColor:!0,borderLeftColor:!0,color:!0,shadowColor:!0,textDecorationColor:!0,textShadowColor:!0};function u(e,t){var n=e;return null!=t&&a[t]||"number"!==typeof e?null!=t&&s[t]&&(n=(0,o.default)(e)):n=e+"px",n}},6267:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createSheet:()=>v});var r=n(8345);function i(e,t,n){if(r.default){var i=null!=t?t:document,a=i.getElementById(e);if(null==a)if((a=document.createElement("style")).setAttribute("id",e),"string"===typeof n&&a.appendChild(document.createTextNode(n)),i instanceof ShadowRoot)i.insertBefore(a,i.firstChild);else{var o=i.head;o&&o.insertBefore(a,o.firstChild)}return a.sheet}return null}var a=Array.prototype.slice;function o(e){var t,n={},r={};null!=e&&a.call(e.cssRules).forEach((function(e,i){var a=e.cssText;if(a.indexOf("stylesheet-group")>-1)t=function(e){return Number(e.selectorText.split(s)[1])}(e),n[t]={start:i,rules:[a]};else{var o=c(a);null!=o&&(r[o]=!0,n[t].rules.push(a))}}));function i(e,t,r){var i=u(n),a=i.indexOf(t)+1,o=i[a],s=null!=o&&null!=n[o].start?n[o].start:e.cssRules.length,l=function(e,t,n){try{return e.insertRule(t,n),!0}catch(r){return!1}}(e,r,s);if(l){null==n[t].start&&(n[t].start=s);for(var c=a;ct?1:-1}))}var l=/\s*([,])\s*/g;function c(e){var t=e.split("{")[0].trim();return""!==t?t.replace(l,"$1"):null}var f="react-native-stylesheet",d=new WeakMap,h=[],p=["html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}","body{margin:0;}","button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}","input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}"];function v(e,t){var n;if(void 0===t&&(t=f),r.default){var a=null!=e?e.getRootNode():document;if(0===h.length)n=o(i(t)),p.forEach((function(e){n.insert(e,0)})),d.set(a,h.length),h.push(n);else{var s=d.get(a);if(null==s){var u=h[0],l=null!=u?u.getTextContent():"";n=o(i(t,a,l)),d.set(a,h.length),h.push(n)}else n=h[s]}}else 0===h.length?(n=o(i(t)),p.forEach((function(e){n.insert(e,0)})),h.push(n)):n=h[0];return{getTextContent:function(){return n.getTextContent()},id:t,insert:function(e,t){h.forEach((function(n){n.insert(e,t)}))}}}},3668:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ke});var r=n(9379),i=n(8587),a=n(5458),o=n(4467),s=n(9650),u=n(8345),l={},c=!u.default||null!=window.CSS&&null!=window.CSS.supports&&(window.CSS.supports("text-decoration-line","none")||window.CSS.supports("-webkit-text-decoration-line","none")),f='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif',d={borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderBlockColor:["borderTopColor","borderBottomColor"],borderInlineColor:["borderRightColor","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderStyle:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderInlineStyle:["borderRightStyle","borderLeftStyle"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderInlineWidth:["borderRightWidth","borderLeftWidth"],insetBlock:["top","bottom"],insetInline:["left","right"],marginBlock:["marginTop","marginBottom"],marginInline:["marginRight","marginLeft"],paddingBlock:["paddingTop","paddingBottom"],paddingInline:["paddingRight","paddingLeft"],overflow:["overflowX","overflowY"],overscrollBehavior:["overscrollBehaviorX","overscrollBehaviorY"],borderBlockStartColor:["borderTopColor"],borderBlockStartStyle:["borderTopStyle"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndColor:["borderBottomColor"],borderBlockEndStyle:["borderBottomStyle"],borderBlockEndWidth:["borderBottomWidth"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],insetBlockEnd:["bottom"],insetBlockStart:["top"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"]};const h=function(e,t){if(!e)return l;var n={},r=function(){var r=e[i];if(null==r)return"continue";if("backgroundClip"===i)"text"===r&&(n.backgroundClip=r,n.WebkitBackgroundClip=r);else if("flex"===i)-1===r?(n.flexGrow=0,n.flexShrink=1,n.flexBasis="auto"):n.flex=r;else if("font"===i)n[i]=r.replace("System",f);else if("fontFamily"===i)if(r.indexOf("System")>-1){var a=r.split(/,\s*/);a[a.indexOf("System")]=f,n[i]=a.join(",")}else n[i]="monospace"===r?"monospace,monospace":r;else if("textDecorationLine"===i)c?n.textDecorationLine=r:n.textDecoration=r;else if("writingDirection"===i)n.direction=r;else{var o=(0,s.default)(e[i],i),u=d[i];t&&"inset"===i?(null==e.insetInline&&(n.left=o,n.right=o),null==e.insetBlock&&(n.top=o,n.bottom=o)):t&&"margin"===i?(null==e.marginInline&&(n.marginLeft=o,n.marginRight=o),null==e.marginBlock&&(n.marginTop=o,n.marginBottom=o)):t&&"padding"===i?(null==e.paddingInline&&(n.paddingLeft=o,n.paddingRight=o),null==e.paddingBlock&&(n.paddingTop=o,n.paddingBottom=o)):u?u.forEach((function(t,r){null==e[t]&&(n[t]=o)})):n[i]=o}};for(var i in e)r();return n};const p=function(e){return function(e,t){for(var n,r=e.length,i=t^r,a=0;r>=4;)n=1540483477*(65535&(n=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24))+((1540483477*(n>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++a;switch(r){case 3:i^=(255&e.charCodeAt(a+2))<<16;case 2:i^=(255&e.charCodeAt(a+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(a)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0}(e,1).toString(36)};var v=/[A-Z]/g,m=/^ms-/,b={};function y(e){return"-"+e.toLowerCase()}const g=function(e){if(e in b)return b[e];var t=e.replace(v,y);return b[e]=m.test(t)?"-"+t:t};var _=n(218),w=n(2610),S=n(620),E=n(6698),k=n(4206),M=n(4191),R=n(4389),C=n(7007),x=n(6694),A=n(3675),T=["Webkit"],P=["Webkit","ms"];const I={plugins:[w.default,S.default,E.default,k.default,M.default,R.default,C.default,x.default,A.default],prefixMap:{appearance:["Webkit","Moz","ms"],userSelect:["Webkit","Moz"],textEmphasisPosition:P,textEmphasis:P,textEmphasisStyle:P,textEmphasisColor:P,boxDecorationBreak:P,clipPath:T,maskImage:P,maskMode:P,maskRepeat:P,maskPosition:P,maskClip:P,maskOrigin:P,maskSize:P,maskComposite:P,mask:P,maskBorderSource:P,maskBorderMode:P,maskBorderSlice:P,maskBorderWidth:P,maskBorderOutset:P,maskBorderRepeat:P,maskBorder:P,maskType:P,textDecorationStyle:T,textDecorationSkip:T,textDecorationLine:T,textDecorationColor:T,filter:T,breakAfter:T,breakBefore:T,breakInside:T,columnCount:T,columnFill:T,columnGap:T,columnRule:T,columnRuleColor:T,columnRuleStyle:T,columnRuleWidth:T,columns:T,columnSpan:T,columnWidth:T,backdropFilter:T,hyphens:T,flowInto:T,flowFrom:T,regionFragment:T,textOrientation:T,tabSize:["Moz"],fontKerning:T,textSizeAdjust:T}};const O=(0,_.default)(I);var L,N=["animationKeyframes"],D=new Map,B={},j=1,z=3,U={borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,inset:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,insetBlock:2.1,insetInline:2.1,marginInline:2.1,marginBlock:2.1,paddingInline:2.1,paddingBlock:2.1,borderBlockStartColor:2.2,borderBlockStartStyle:2.2,borderBlockStartWidth:2.2,borderBlockEndColor:2.2,borderBlockEndStyle:2.2,borderBlockEndWidth:2.2,borderInlineStartColor:2.2,borderInlineStartStyle:2.2,borderInlineStartWidth:2.2,borderInlineEndColor:2.2,borderInlineEndStyle:2.2,borderInlineEndWidth:2.2,borderEndStartRadius:2.2,borderEndEndRadius:2.2,borderStartStartRadius:2.2,borderStartEndRadius:2.2,insetBlockEnd:2.2,insetBlockStart:2.2,insetInlineEnd:2.2,insetInlineStart:2.2,marginBlockStart:2.2,marginBlockEnd:2.2,marginInlineStart:2.2,marginInlineEnd:2.2,paddingBlockStart:2.2,paddingBlockEnd:2.2,paddingInlineStart:2.2,paddingInlineEnd:2.2},F="borderTopLeftRadius",V="borderTopRightRadius",H="borderBottomLeftRadius",q="borderBottomRightRadius",W="borderLeftColor",K="borderLeftStyle",G="borderLeftWidth",Y="borderRightColor",$="borderRightStyle",X="borderRightWidth",Q="right",Z="marginLeft",J="marginRight",ee="paddingLeft",te="paddingRight",ne="left",re=(L={},(0,o.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)(L,F,V),V,F),H,q),q,H),W,Y),K,$),G,X),Y,W),$,K),X,G),(0,o.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)(L,ne,Q),Z,J),J,Z),ee,te),te,ee),Q,ne)),ie={borderStartStartRadius:F,borderStartEndRadius:V,borderEndStartRadius:H,borderEndEndRadius:q,borderInlineStartColor:W,borderInlineStartStyle:K,borderInlineStartWidth:G,borderInlineEndColor:Y,borderInlineEndStyle:$,borderInlineEndWidth:X,insetInlineEnd:Q,insetInlineStart:ne,marginInlineStart:Z,marginInlineEnd:J,paddingInlineStart:ee,paddingInlineEnd:te},ae=["clear","float","textAlign"];function oe(e){var t={$$css:!0},n=[];function r(e,t,r){var i,u=function(e,t){var n=(0,s.default)(e,t);return"string"!==typeof n?JSON.stringify(n||""):n}(r,t),l=t+u,c=D.get(l);if(null!=c)i=c[0],n.push(c[1]);else{i=ue("r",e,e!==t?l:u);var f=U[e]||z,d=function(e,t,n){var r=[],i="."+e;switch(t){case"animationKeyframes":var s=le(n),u=s[0],l=s[1],c=se({animationName:u.join(",")});r.push.apply(r,[""+i+c].concat((0,a.default)(l)));break;case"placeholderTextColor":var f=se({color:n,opacity:1});r.push(i+"::-webkit-input-placeholder"+f,i+"::-moz-placeholder"+f,i+":-ms-input-placeholder"+f,i+"::placeholder"+f);break;case"pointerEvents":var d=n;if("auto"===n||"box-only"===n){if(d="auto!important","box-only"===n){var h=se({pointerEvents:"none"});r.push(i+">*"+h)}}else if(("none"===n||"box-none"===n)&&(d="none!important","box-none"===n)){var p=se({pointerEvents:"auto"});r.push(i+">*"+p)}var v=se({pointerEvents:d});r.push(""+i+v);break;case"scrollbarWidth":"none"===n&&r.push(i+"::-webkit-scrollbar{display:none}");var m=se({scrollbarWidth:n});r.push(""+i+m);break;default:var b=se((0,o.default)({},t,n));r.push(""+i+b)}return r}(i,t,r),h=[d,f];n.push(h),D.set(l,[i,h])}return i}return Object.keys(e).sort().forEach((function(n){var i=e[n];if(null!=i){var o;if(ae.indexOf(n)>-1){var s=r(n,n,"left"),u=r(n,n,"right");"start"===i?o=[s,u]:"end"===i&&(o=[u,s])}var l=ie[n];if(null!=l){var c=r(n,l,i),f=r(n,re[l],i);o=[c,f]}if("transitionProperty"===n){for(var d=Array.isArray(i)?i:[i],h=[],p=0;p0){var m=(0,a.default)(d),b=(0,a.default)(d);h.forEach((function(e){var t=m[e];if("string"===typeof t){var i=ie[t],a=re[i];m[e]=i,b[e]=a;var s=r(n,n,m),u=r(n,n,b);o=[s,u]}}))}}null==o?o=r(n,n,i):t.$$css$localize=!0,t[n]=o}})),[t,n]}function se(e){var t=O(h(e));return"{"+Object.keys(t).map((function(e){var n=t[e],r=g(e);return Array.isArray(n)?n.map((function(e){return r+":"+e})).join(";"):r+":"+n})).sort().join(";")+";}"}function ue(e,t,n){return e+"-"+p(t+n)}function le(e){if("number"===typeof e)throw new Error("Invalid CSS keyframes type: "+typeof e);var t=[],n=[];return(Array.isArray(e)?e:[e]).forEach((function(e){if("string"===typeof e)t.push(e);else{var r=function(e){var t=ue("r","animation",JSON.stringify(e)),n="{"+Object.keys(e).map((function(t){return""+t+se(e[t])})).join("")+"}",r=["-webkit-",""].map((function(e){return"@"+e+"keyframes "+t+n}));return[t,r]}(e),i=r[0],o=r[1];t.push(i),n.push.apply(n,(0,a.default)(o))}})),[t,n]}var ce=n(6267),fe=n(975),de=n(5568),he=n(7303),pe=["writingDirection"],ve=new WeakMap,me=(0,ce.createSheet)(),be={shadow:!0,textShadow:!0};function ye(e){e.forEach((function(e){var t=e[0],n=e[1];null!=me&&t.forEach((function(e){me.insert(e,n)}))}))}function ge(e,t){var n=function(e,t){var n,o={$$css:!0},s=[],u=e.animationKeyframes,l=(0,i.default)(e,N),c=ue("css",t,JSON.stringify(e)),f="."+c;if(null!=u){var d=le(u),h=d[0],p=d[1];n=h.join(","),s.push.apply(s,(0,a.default)(p))}var v=se((0,r.default)((0,r.default)({},l),{},{animationName:n}));return s.push(""+f+v),o[c]=c,[o,[[s,j]]]}(e,t),o=n[0];return ye(n[1]),o}var _e={position:"absolute",left:0,right:0,top:0,bottom:0},we=Se({x:(0,r.default)({},_e)}).x;function Se(e){return Object.keys(e).forEach((function(t){var n,r=e[t];null!=r&&!0!==r.$$css&&(n=t.indexOf("$raw")>-1?ge(r,t.split("$raw")[0]):function(e){var t=oe((0,de.preprocess)(e,be)),n=t[0];return ye(t[1]),n}(r),ve.set(r,n))})),e}function Ee(e,t){void 0===t&&(t={});var n="rtl"===t.writingDirection,a=function(e,t){void 0===t&&(t={});var n=t,a=n.writingDirection,o=(0,i.default)(n,pe),s="rtl"===a;return he.styleq.factory({transform:function(e){var t=ve.get(e);return null!=t?(0,fe.localizeStyle)(t,s):(0,de.preprocess)(e,(0,r.default)((0,r.default)({},be),o))}})(e)}(e,t);return Array.isArray(a)&&null!=a[1]&&(a[1]=function(e,t){var n=e||B,r={},i={},a=function(){var e=n[o],a=o,s=e;if(!Object.prototype.hasOwnProperty.call(n,o)||null==e)return"continue";ae.indexOf(o)>-1&&("start"===e?s=t?"right":"left":"end"===e&&(s=t?"left":"right"));var u=ie[o];if(null!=u&&(a=t?re[u]:u),"transitionProperty"===o){var l=Array.isArray(e)?e:[e];l.forEach((function(e,n){if("string"===typeof e){var r=ie[e];null!=r&&(l[n]=t?re[r]:r,s=l.join(" "))}}))}r[a]||(i[a]=s),a===o&&(r[a]=!0)};for(var o in n)a();return h(i,!0)}(a[1],n)),a}Ee.absoluteFill=we,Ee.absoluteFillObject=_e,Ee.create=Se,Ee.compose=function(e,t){return[e,t]},Ee.flatten=function(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n.r(t),n.d(t,{createBoxShadowValue:()=>u,createTextShadowValue:()=>l,createTransformValue:()=>f,default:()=>v,preprocess:()=>p});var r=n(9647),i=n(9650),a=n(2155),o={},s={height:0,width:0},u=function(e){var t=e.shadowColor,n=e.shadowOffset,a=e.shadowOpacity,o=e.shadowRadius,u=n||s,l=u.height,c=u.width,f=(0,i.default)(c),d=(0,i.default)(l),h=(0,i.default)(o||0),p=(0,r.default)(t||"black",a);if(null!=p&&null!=f&&null!=d&&null!=h)return f+" "+d+" "+h+" "+p},l=function(e){var t=e.textShadowColor,n=e.textShadowOffset,r=e.textShadowRadius,a=n||s,o=a.height,u=a.width,l=r||0,c=(0,i.default)(u),f=(0,i.default)(o),d=(0,i.default)(l),h=(0,i.default)(t,"textShadowColor");if(h&&(0!==o||0!==u||0!==l)&&null!=c&&null!=f&&null!=d)return c+" "+f+" "+d+" "+h},c=function(e){var t=Object.keys(e)[0],n=e[t];return"matrix"===t||"matrix3d"===t?t+"("+n.join(",")+")":t+"("+(0,i.default)(n,t)+")"},f=function(e){return e.map(c).join(" ")},d={borderBottomEndRadius:"borderEndEndRadius",borderBottomStartRadius:"borderEndStartRadius",borderTopEndRadius:"borderStartEndRadius",borderTopStartRadius:"borderStartStartRadius",borderEndColor:"borderInlineEndColor",borderEndStyle:"borderInlineEndStyle",borderEndWidth:"borderInlineEndWidth",borderStartColor:"borderInlineStartColor",borderStartStyle:"borderInlineStartStyle",borderStartWidth:"borderInlineStartWidth",end:"insetInlineEnd",marginEnd:"marginInlineEnd",marginHorizontal:"marginInline",marginStart:"marginInlineStart",marginVertical:"marginBlock",paddingEnd:"paddingInlineEnd",paddingHorizontal:"paddingInline",paddingStart:"paddingInlineStart",paddingVertical:"paddingBlock",start:"insetInlineStart"},h={elevation:!0,overlayColor:!0,resizeMode:!0,tintColor:!0},p=function(e,t){void 0===t&&(t={});var n=e||o,r={};if(t.shadow,null!=n.shadowColor||null!=n.shadowOffset||null!=n.shadowOpacity||null!=n.shadowRadius){(0,a.warnOnce)("shadowStyles",'"shadow*" style props are deprecated. Use "boxShadow".');var i=u(n);if(null!=i&&null==r.boxShadow){var s=n.boxShadow,c=s?s+", "+i:i;r.boxShadow=c}}if(t.textShadow,null!=n.textShadowColor||null!=n.textShadowOffset||null!=n.textShadowRadius){(0,a.warnOnce)("textShadowStyles",'"textShadow*" style props are deprecated. Use "textShadow".');var p=l(n);if(null!=p&&null==r.textShadow){var v=n.textShadow,m=v?v+", "+p:p;r.textShadow=m}}for(var b in n)if(null==h[b]&&"shadowColor"!==b&&"shadowOffset"!==b&&"shadowOpacity"!==b&&"shadowRadius"!==b&&"textShadowColor"!==b&&"textShadowOffset"!==b&&"textShadowRadius"!==b){var y=n[b],g=d[b]||b,_=y;!Object.prototype.hasOwnProperty.call(n,b)||g!==b&&null!=n[g]||("aspectRatio"===g&&"number"===typeof _?r[g]=_.toString():"fontVariant"===g?(Array.isArray(_)&&_.length>0&&((0,a.warnOnce)("fontVariant",'"fontVariant" style array value is deprecated. Use space-separated values.'),_=_.join(" ")),r[g]=_):"textAlignVertical"===g?((0,a.warnOnce)("textAlignVertical",'"textAlignVertical" style is deprecated. Use "verticalAlign".'),null==n.verticalAlign&&(r.verticalAlign="center"===_?"middle":_)):"transform"===g?(Array.isArray(_)&&(_=f(_)),r.transform=_):r[g]=_)}return r};const v=p},4037:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(9379),i=n(8168),a=n(8587),o=n(6665),s=n(658),u=/^[+-]?\d*(?:\.\d+)?(?:[Ee][+-]?\d+)?(%|\w*)/;const l=function(e,t){var n;return"string"===typeof e?""+parseFloat(e)*t+e.match(u)[1]:(n=e,!isNaN(parseFloat(n))&&isFinite(n)?e*t:void 0)};var c=n(3668),f=n(3929),d=["aria-label","accessibilityLabel","activeThumbColor","activeTrackColor","disabled","onValueChange","style","thumbColor","trackColor","value"],h={},p="0px 1px 3px rgba(0,0,0,0.5)",v=p+", 0 0 0 10px rgba(0,0,0,0.1)",m="#D5D5D5",b="#BDBDBD",y=o.forwardRef((function(e,t){var n=e["aria-label"],r=e.accessibilityLabel,u=e.activeThumbColor,y=e.activeTrackColor,_=e.disabled,w=void 0!==_&&_,S=e.onValueChange,E=e.style,k=void 0===E?h:E,M=e.thumbColor,R=e.trackColor,C=e.value,x=void 0!==C&&C,A=(0,a.default)(e,d),T=o.useRef(null);function P(e){var t="focus"===e.nativeEvent.type?v:p;null!=T.current&&(T.current.style.boxShadow=t)}var I=c.default.flatten(k),O=I.height,L=I.width,N=O||"20px",D=l(N,2),B=L>D?L:D,j=l(N,.5),z=!0===x?null!=R&&"object"===typeof R?R.true:null!==y&&void 0!==y?y:"#A3D3CF":null!=R&&"object"===typeof R?R.false:null!==R&&void 0!==R?R:"#939393",U=x?null!==u&&void 0!==u?u:"#009688":null!==M&&void 0!==M?M:"#FAFAFA",F=N,V=F,H=[g.root,k,w&&g.cursorDefault,{height:N,width:B}],q=!0===x?"string"===typeof y&&null!=y||"object"===typeof R&&null!=R&&R.true?z:m:"string"===typeof R&&null!=R||"object"===typeof R&&null!=R&&R.false?z:m,W=!0===x?null==u?b:U:null==M?b:U,K=[g.track,{backgroundColor:w?q:z,borderRadius:j}],G=[g.thumb,x&&g.thumbActive,{backgroundColor:w?W:U,height:F,marginStart:x?l(V,-1):0,width:V}],Y=(0,s.default)("input",{"aria-label":n||r,checked:x,disabled:w,onBlur:P,onChange:function(e){null!=S&&S(e.nativeEvent.target.checked)},onFocus:P,ref:t,style:[g.nativeControl,g.cursorInherit],type:"checkbox",role:"switch"});return o.createElement(f.default,(0,i.default)({},A,{style:H}),o.createElement(f.default,{style:K}),o.createElement(f.default,{ref:T,style:G}),Y)}));y.displayName="Switch";var g=c.default.create({root:{cursor:"pointer",userSelect:"none"},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},track:(0,r.default)((0,r.default)({forcedColorAdjust:"none"},c.default.absoluteFillObject),{},{height:"70%",margin:"auto",transitionDuration:"0.1s",width:"100%"}),thumb:{forcedColorAdjust:"none",alignSelf:"flex-start",borderRadius:"100%",boxShadow:p,start:"0%",transform:"translateZ(0)",transitionDuration:"0.1s"},thumbActive:{insetInlineStart:"100%"},nativeControl:(0,r.default)((0,r.default)({},c.default.absoluteFillObject),{},{height:"100%",margin:0,appearance:"none",padding:0,width:"100%"})});const _=y},6773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(6665),i=n(658),a=n(8532),o=n(9047),s=n(9965),u=n(542),l=n(769),c=n(332),f=n(6399),d=n(5794),h=n(3668),p=n(2600),v=n(2155),m=function(e,t){if(function(e,t){var n=e.selectionEnd,r=e.selectionStart,i=t.start,a=t.end;return i!==r||a!==n}(e,t)){var n=t.start,r=t.end;try{e.setSelectionRange(n,r||n)}catch(i){}}},b=Object.assign({},a.defaultProps,a.accessibilityProps,a.clickProps,a.focusProps,a.keyboardProps,a.mouseProps,a.touchProps,a.styleProps,{autoCapitalize:!0,autoComplete:!0,autoCorrect:!0,autoFocus:!0,defaultValue:!0,disabled:!0,lang:!0,maxLength:!0,onChange:!0,onScroll:!0,placeholder:!0,pointerEvents:!0,readOnly:!0,rows:!0,spellCheck:!0,value:!0,type:!0});var y=null,g=r.forwardRef((function(e,t){var n,a,h=e.autoCapitalize,g=void 0===h?"sentences":h,w=e.autoComplete,S=e.autoCompleteType,E=e.autoCorrect,k=void 0===E||E,M=e.blurOnSubmit,R=e.caretHidden,C=e.clearTextOnFocus,x=e.dir,A=e.editable,T=e.enterKeyHint,P=e.inputMode,I=e.keyboardType,O=e.multiline,L=void 0!==O&&O,N=e.numberOfLines,D=e.onBlur,B=e.onChange,j=e.onChangeText,z=e.onContentSizeChange,U=e.onFocus,F=e.onKeyPress,V=e.onLayout,H=e.onMoveShouldSetResponder,q=e.onMoveShouldSetResponderCapture,W=e.onResponderEnd,K=e.onResponderGrant,G=e.onResponderMove,Y=e.onResponderReject,$=e.onResponderRelease,X=e.onResponderStart,Q=e.onResponderTerminate,Z=e.onResponderTerminationRequest,J=e.onScrollShouldSetResponder,ee=e.onScrollShouldSetResponderCapture,te=e.onSelectionChange,ne=e.onSelectionChangeShouldSetResponder,re=e.onSelectionChangeShouldSetResponderCapture,ie=e.onStartShouldSetResponder,ae=e.onStartShouldSetResponderCapture,oe=e.onSubmitEditing,se=e.placeholderTextColor,ue=e.readOnly,le=void 0!==ue&&ue,ce=e.returnKeyType,fe=e.rows,de=e.secureTextEntry,he=void 0!==de&&de,pe=e.selection,ve=e.selectTextOnFocus,me=e.showSoftInputOnFocus,be=e.spellCheck;if(null!=P)a=P,n="email"===P?"email":"tel"===P?"tel":"search"===P?"search":"url"===P?"url":"text";else if(null!=I)switch((0,v.warnOnce)("keyboardType","keyboardType is deprecated. Use inputMode."),I){case"email-address":n="email";break;case"number-pad":case"numeric":a="numeric";break;case"decimal-pad":a="decimal";break;case"phone-pad":n="tel";break;case"search":case"web-search":n="search";break;case"url":n="url";break;default:n="text"}he&&(n="password");var ye=r.useRef({height:null,width:null}),ge=r.useRef(null),_e=r.useRef(null),we=r.useRef(!1);r.useEffect((function(){ge.current&&_e.current&&m(ge.current,_e.current),we.current=he}),[he]);var Se=r.useCallback((function(e){if(L&&z&&null!=e){var t=e.scrollHeight,n=e.scrollWidth;t===ye.current.height&&n===ye.current.width||(ye.current.height=t,ye.current.width=n,z({nativeEvent:{contentSize:{height:ye.current.height,width:ye.current.width}}}))}}),[L,z]),Ee=r.useMemo((function(){return function(e){null!=e&&(e.clear=function(){null!=e&&(e.value="")},e.isFocused=function(){return null!=e&&p.default.currentlyFocusedField()===e},Se(e))}}),[Se]);(0,u.default)((function(){var e=ge.current;null!=e&&null!=pe&&m(e,pe),document.activeElement===e&&(p.default._currentlyFocusedNode=e)}),[ge,pe]);var ke=L?"textarea":"input";(0,s.default)(ge,V),(0,f.default)(ge,{onMoveShouldSetResponder:H,onMoveShouldSetResponderCapture:q,onResponderEnd:W,onResponderGrant:K,onResponderMove:G,onResponderReject:Y,onResponderRelease:$,onResponderStart:X,onResponderTerminate:Q,onResponderTerminationRequest:Z,onScrollShouldSetResponder:J,onScrollShouldSetResponderCapture:ee,onSelectionChangeShouldSetResponder:ne,onSelectionChangeShouldSetResponderCapture:re,onStartShouldSetResponder:ie,onStartShouldSetResponderCapture:ae});var Me=(0,d.useLocaleContext)().direction,Re=function(e){return(0,o.default)(e,b)}(e);Re.autoCapitalize=g,Re.autoComplete=w||S||"on",Re.autoCorrect=k?"on":"off",Re.dir=void 0!==x?x:"auto",null!=ce&&(0,v.warnOnce)("returnKeyType","returnKeyType is deprecated. Use enterKeyHint."),Re.enterKeyHint=T||ce,Re.inputMode=a,Re.onBlur=function(e){p.default._currentlyFocusedNode=null,D&&(e.nativeEvent.text=e.target.value,D(e))},Re.onChange=function(e){var t=e.target,n=t.value;e.nativeEvent.text=n,Se(t),B&&B(e),j&&j(n)},Re.onFocus=function(e){var t=e.target;U&&(e.nativeEvent.text=t.value,U(e)),null!=t&&(p.default._currentlyFocusedNode=t,C&&(t.value=""),ve&&(null!=y&&clearTimeout(y),y=setTimeout((function(){null!=t&&t.select()}),0)))},Re.onKeyDown=function(e){var t=e.target;e.stopPropagation();var n=null==M?!L:M,r=e.nativeEvent,i=function(e){return e.isComposing||229===e.keyCode}(r);F&&F(e),"Enter"!==e.key||e.shiftKey||i||e.isDefaultPrevented()||(!M&&L||!oe||(e.preventDefault(),r.text=e.target.value,oe(e)),n&&null!=t&&setTimeout((function(){return t.blur()}),0))},Re.onSelect=function(e){try{var t=e.target,n={start:t.selectionStart,end:t.selectionEnd};te&&(e.nativeEvent.selection=n,e.nativeEvent.text=e.target.value,te(e)),we.current===he&&(_e.current=n)}catch(e){}},null!=A&&(0,v.warnOnce)("editable","editable is deprecated. Use readOnly."),Re.readOnly=!0===le||!1===A,null!=N&&(0,v.warnOnce)("numberOfLines","TextInput numberOfLines is deprecated. Use rows."),Re.rows=L?null!=fe?fe:N:1,Re.spellCheck=null!=be?be:k,Re.style=[{"--placeholderTextColor":se},_.textinput$raw,_.placeholder,e.style,R&&_.caretHidden],Re.type=L?void 0:n,Re.virtualkeyboardpolicy=!1===me?"manual":"auto";var Ce=(0,c.default)(Re),xe=(0,l.default)(ge,Ce,Ee,t);Re.ref=xe;var Ae=null!=e.lang?(0,d.getLocaleDirection)(e.lang):null,Te=e.dir||Ae||Me;return(0,i.default)(ke,Re,{writingDirection:Te})}));g.displayName="TextInput",g.State=p.default;var _=h.default.create({textinput$raw:{MozAppearance:"textfield",WebkitAppearance:"none",backgroundColor:"transparent",border:"0 solid black",borderRadius:0,boxSizing:"border-box",font:"14px System",margin:0,padding:0,resize:"none"},placeholder:{placeholderTextColor:"var(--placeholderTextColor)"},caretHidden:{caretColor:"transparent"}});const w=g},5730:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(6665).createContext)(!1)},6283:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var r=n(9379),i=n(8587),a=n(6665),o=n(658),s=n(8532),u=n(9047),l=n(9965),c=n(769),f=n(332),d=n(6399),h=n(3668),p=n(5730),v=n(5794),m=n(2155),b=["hrefAttrs","numberOfLines","onClick","onLayout","onPress","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","selectable"],y=Object.assign({},s.defaultProps,s.accessibilityProps,s.clickProps,s.focusProps,s.keyboardProps,s.mouseProps,s.touchProps,s.styleProps,{href:!0,lang:!0,pointerEvents:!0}),g=a.forwardRef((function(e,t){var n=e.hrefAttrs,r=e.numberOfLines,s=e.onClick,h=e.onLayout,g=e.onPress,_=e.onMoveShouldSetResponder,S=e.onMoveShouldSetResponderCapture,E=e.onResponderEnd,k=e.onResponderGrant,M=e.onResponderMove,R=e.onResponderReject,C=e.onResponderRelease,x=e.onResponderStart,A=e.onResponderTerminate,T=e.onResponderTerminationRequest,P=e.onScrollShouldSetResponder,I=e.onScrollShouldSetResponderCapture,O=e.onSelectionChangeShouldSetResponder,L=e.onSelectionChangeShouldSetResponderCapture,N=e.onStartShouldSetResponder,D=e.onStartShouldSetResponderCapture,B=e.selectable,j=(0,i.default)(e,b);null!=B&&(0,m.warnOnce)("selectable","selectable prop is deprecated. Use styles.userSelect.");var z=a.useContext(p.default),U=a.useRef(null),F=(0,v.useLocaleContext)().direction;(0,l.default)(U,h),(0,d.default)(U,{onMoveShouldSetResponder:_,onMoveShouldSetResponderCapture:S,onResponderEnd:E,onResponderGrant:k,onResponderMove:M,onResponderReject:R,onResponderRelease:C,onResponderStart:x,onResponderTerminate:A,onResponderTerminationRequest:T,onScrollShouldSetResponder:P,onScrollShouldSetResponderCapture:I,onSelectionChangeShouldSetResponder:O,onSelectionChangeShouldSetResponderCapture:L,onStartShouldSetResponder:N,onStartShouldSetResponderCapture:D});var V=a.useCallback((function(e){null!=s?s(e):null!=g&&(e.stopPropagation(),g(e))}),[s,g]),H=z?"span":"div",q=null!=e.lang?(0,v.getLocaleDirection)(e.lang):null,W=e.dir||q,K=W||F,G=function(e){return(0,u.default)(e,y)}(j);if(G.dir=W,z||(G.dir=null!=W?W:"auto"),(s||g)&&(G.onClick=V),G.style=[null!=r&&r>1&&{WebkitLineClamp:r},!0===z?w.textHasAncestor$raw:w.text$raw,1===r&&w.textOneLine,null!=r&&r>1&&w.textMultiLine,e.style,!0===B&&w.selectable,!1===B&&w.notSelectable,g&&w.pressable],null!=e.href&&(H="a",null!=n)){var Y=n.download,$=n.rel,X=n.target;null!=Y&&(G.download=Y),null!=$&&(G.rel=$),"string"===typeof X&&(G.target="_"!==X.charAt(0)?"_"+X:X)}var Q=(0,f.default)(G),Z=(0,c.default)(U,Q,t);G.ref=Z;var J=(0,o.default)(H,G,{writingDirection:K});return z?J:a.createElement(p.default.Provider,{value:!0},J)}));g.displayName="Text";var _={backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",color:"black",display:"inline",font:"14px System",listStyle:"none",margin:0,padding:0,position:"relative",textAlign:"start",textDecoration:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},w=h.default.create({text$raw:_,textHasAncestor$raw:(0,r.default)((0,r.default)({},_),{},{color:"inherit",font:"inherit",textAlign:"inherit",whiteSpace:"inherit"}),textOneLine:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"},textMultiLine:{display:"-webkit-box",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",WebkitBoxOrient:"vertical"},notSelectable:{userSelect:"none"},selectable:{userSelect:"text"},pressable:{cursor:"pointer"}});const S=g},6673:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(8168),i=n(8587),a=n(6665),o=n(769),s=n(7442),u=n(3668),l=n(3929),c=n(2155),f=["activeOpacity","children","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onHideUnderlay","onLongPress","onPress","onPressIn","onPressOut","onShowUnderlay","rejectResponderTermination","style","testOnly_pressed","underlayColor"];function d(e,t){return{child:{opacity:null!==e&&void 0!==e?e:.85},underlay:{backgroundColor:void 0===t?"black":t}}}function h(e){return null!=e.onPress||null!=e.onPressIn||null!=e.onPressOut||null!=e.onLongPress}var p=u.default.create({root:{userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),v=a.memo(a.forwardRef((function(e,t){(0,c.warnOnce)("TouchableHighlight","TouchableHighlight is deprecated. Please use Pressable.");var n=e.activeOpacity,u=e.children,v=e.delayPressIn,m=e.delayPressOut,b=e.delayLongPress,y=e.disabled,g=e.focusable,_=e.onHideUnderlay,w=e.onLongPress,S=e.onPress,E=e.onPressIn,k=e.onPressOut,M=e.onShowUnderlay,R=e.rejectResponderTermination,C=e.style,x=e.testOnly_pressed,A=e.underlayColor,T=(0,i.default)(e,f),P=(0,a.useRef)(null),I=(0,o.default)(t,P),O=(0,a.useState)(!0===x?d(n,A):null),L=O[0],N=O[1],D=(0,a.useCallback)((function(){h(e)&&(N(d(n,A)),null!=M&&M())}),[n,M,e,A]),B=(0,a.useCallback)((function(){!0!==x&&h(e)&&(N(null),null!=_&&_())}),[_,e,x]),j=(0,a.useMemo)((function(){return{cancelable:!R,disabled:y,delayLongPress:b,delayPressStart:v,delayPressEnd:m,onLongPress:w,onPress:S,onPressStart:function(e){D(),null!=E&&E(e)},onPressEnd:function(e){B(),null!=k&&k(e)}}}),[b,v,m,y,w,S,E,k,R,D,B]),z=(0,s.default)(P,j),U=a.Children.only(u);return a.createElement(l.default,(0,r.default)({},T,z,{accessibilityDisabled:y,focusable:!y&&!1!==g,pointerEvents:y?"box-none":void 0,ref:I,style:[p.root,C,!y&&p.actionable,L&&L.underlay]}),a.cloneElement(U,{style:[U.props.style,L&&L.child]}))})));v.displayName="TouchableHighlight";const m=v},5648:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(8168),i=n(8587),a=n(6665),o=n(769),s=n(7442),u=n(3668),l=n(3929),c=n(2155),f=["activeOpacity","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onLongPress","onPress","onPressIn","onPressOut","rejectResponderTermination","style"];var d=u.default.create({root:{transitionProperty:"opacity",transitionDuration:"0.15s",userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),h=a.memo(a.forwardRef((function(e,t){(0,c.warnOnce)("TouchableOpacity","TouchableOpacity is deprecated. Please use Pressable.");var n=e.activeOpacity,u=e.delayPressIn,h=e.delayPressOut,p=e.delayLongPress,v=e.disabled,m=e.focusable,b=e.onLongPress,y=e.onPress,g=e.onPressIn,_=e.onPressOut,w=e.rejectResponderTermination,S=e.style,E=(0,i.default)(e,f),k=(0,a.useRef)(null),M=(0,o.default)(t,k),R=(0,a.useState)("0s"),C=R[0],x=R[1],A=(0,a.useState)(null),T=A[0],P=A[1],I=(0,a.useCallback)((function(e,t){P(e),x(t?t/1e3+"s":"0s")}),[P,x]),O=(0,a.useCallback)((function(e){I(null!==n&&void 0!==n?n:.2,e)}),[n,I]),L=(0,a.useCallback)((function(e){I(null,e)}),[I]),N=(0,a.useMemo)((function(){return{cancelable:!w,disabled:v,delayLongPress:p,delayPressStart:u,delayPressEnd:h,onLongPress:b,onPress:y,onPressStart:function(e){var t=null!=e.dispatchConfig?"onResponderGrant"===e.dispatchConfig.registrationName:"keydown"===e.type;O(t?0:150),null!=g&&g(e)},onPressEnd:function(e){L(250),null!=_&&_(e)}}}),[p,u,h,v,b,y,g,_,w,O,L]),D=(0,s.default)(k,N);return a.createElement(l.default,(0,r.default)({},E,D,{accessibilityDisabled:v,focusable:!v&&!1!==m,pointerEvents:v?"box-none":void 0,ref:M,style:[d.root,!v&&d.actionable,S,null!=T&&{opacity:T},{transitionDuration:C}]}))})));h.displayName="TouchableOpacity";const p=h},1950:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{default:()=>f});var i=n(6665),a=n(9047),o=n(769),s=n(7442),u=n(2155),l={accessibilityDisabled:!0,accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,children:!0,disabled:!0,focusable:!0,nativeID:!0,onBlur:!0,onFocus:!0,onLayout:!0,testID:!0};var c=i.memo(i.forwardRef((function(e,t){(0,u.warnOnce)("TouchableWithoutFeedback","TouchableWithoutFeedback is deprecated. Please use Pressable.");var c=e.delayPressIn,f=e.delayPressOut,d=e.delayLongPress,h=e.disabled,p=e.focusable,v=e.onLongPress,m=e.onPress,b=e.onPressIn,y=e.onPressOut,g=e.rejectResponderTermination,_=(0,i.useRef)(null),w=(0,i.useMemo)((function(){return{cancelable:!g,disabled:h,delayLongPress:d,delayPressStart:c,delayPressEnd:f,onLongPress:v,onPress:m,onPressStart:b,onPressEnd:y}}),[h,c,f,d,v,m,b,y,g]),S=(0,s.default)(_,w),E=i.Children.only(e.children),k=[E.props.children],M=function(e){return(0,a.default)(e,l)}(e);M.accessibilityDisabled=h,M.focusable=!h&&!1!==p,M.ref=(0,o.default)(t,_,E.ref);var R=Object.assign(M,S);return i.cloneElement.apply(r||(r=n.t(i,2)),[E,R].concat(k))})));c.displayName="TouchableWithoutFeedback";const f=c},7640:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(4047),i={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},a=["ms","Moz","O","Webkit"];Object.keys(i).forEach((function(e){a.forEach((function(t){i[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(t,e)]=i[e]}))}));const o=i;const s=function(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||o.hasOwnProperty(e)&&o[e]?(""+t).trim():t+"px"};const u=function(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=0===r.indexOf("--"),a=s(r,t[r],i);"float"===r&&(r="cssFloat"),i?n.setProperty(r,a):n[r]=a}};var l=function(e){var t=e.offsetHeight,n=e.offsetWidth,r=e.offsetLeft,i=e.offsetTop;for(e=e.offsetParent;e&&1===e.nodeType;)r+=e.offsetLeft+e.clientLeft-e.scrollLeft,i+=e.offsetTop+e.clientTop-e.scrollTop,e=e.offsetParent;return{width:n,height:t,top:i-=window.scrollY,left:r-=window.scrollX}},c=function(e,t,n){var r=t||e&&e.parentNode;e&&r&&setTimeout((function(){if(e.isConnected&&r.isConnected){var t=l(r),i=l(e),a=i.height,o=i.left,s=i.top,u=i.width,c=o-t.left,f=s-t.top;n(c,f,u,a,o,s)}}),0)},f={A:!0,BODY:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0};const d={blur:function(e){try{e.blur()}catch(t){}},focus:function(e){try{var t=e.nodeName;null==e.getAttribute("tabIndex")&&!0!==e.isContentEditable&&null==f[t]&&e.setAttribute("tabIndex","-1"),e.focus()}catch(n){}},measure:function(e,t){c(e,null,t)},measureInWindow:function(e,t){e&&setTimeout((function(){var n=(0,r.default)(e),i=n.height,a=n.left,o=n.top,s=n.width;t(a,o,s,i)}),0)},measureLayout:function(e,t,n,r){c(e,t,r)},updateView:function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];switch(n){case"style":u(e,r);break;case"class":case"className":e.setAttribute("class",r);break;case"text":case"value":e.value=r;break;default:e.setAttribute(n,r)}}},configureNextLayoutAnimation:function(e,t){t()},setLayoutAnimationEnabledExperimental:function(){}}},3929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(8587),i=n(6665),a=n(658),o=n(8532),s=n(9047),u=n(9965),l=n(769),c=n(332),f=n(6399),d=n(3668),h=n(5730),p=n(5794),v=["hrefAttrs","onLayout","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture"],m=Object.assign({},o.defaultProps,o.accessibilityProps,o.clickProps,o.focusProps,o.keyboardProps,o.mouseProps,o.touchProps,o.styleProps,{href:!0,lang:!0,onScroll:!0,onWheel:!0,pointerEvents:!0}),b=i.forwardRef((function(e,t){var n=e.hrefAttrs,o=e.onLayout,d=e.onMoveShouldSetResponder,b=e.onMoveShouldSetResponderCapture,g=e.onResponderEnd,_=e.onResponderGrant,w=e.onResponderMove,S=e.onResponderReject,E=e.onResponderRelease,k=e.onResponderStart,M=e.onResponderTerminate,R=e.onResponderTerminationRequest,C=e.onScrollShouldSetResponder,x=e.onScrollShouldSetResponderCapture,A=e.onSelectionChangeShouldSetResponder,T=e.onSelectionChangeShouldSetResponderCapture,P=e.onStartShouldSetResponder,I=e.onStartShouldSetResponderCapture,O=(0,r.default)(e,v);var L=i.useContext(h.default),N=i.useRef(null),D=(0,p.useLocaleContext)().direction;(0,u.default)(N,o),(0,f.default)(N,{onMoveShouldSetResponder:d,onMoveShouldSetResponderCapture:b,onResponderEnd:g,onResponderGrant:_,onResponderMove:w,onResponderReject:S,onResponderRelease:E,onResponderStart:k,onResponderTerminate:M,onResponderTerminationRequest:R,onScrollShouldSetResponder:C,onScrollShouldSetResponderCapture:x,onSelectionChangeShouldSetResponder:A,onSelectionChangeShouldSetResponderCapture:T,onStartShouldSetResponder:P,onStartShouldSetResponderCapture:I});var B="div",j=null!=e.lang?(0,p.getLocaleDirection)(e.lang):null,z=e.dir||j,U=z||D,F=function(e){return(0,s.default)(e,m)}(O);if(F.dir=z,F.style=[y.view$raw,L&&y.inline,e.style],null!=e.href&&(B="a",null!=n)){var V=n.download,H=n.rel,q=n.target;null!=V&&(F.download=V),null!=H&&(F.rel=H),"string"===typeof q&&(F.target="_"!==q.charAt(0)?"_"+q:q)}var W=(0,c.default)(F),K=(0,l.default)(N,W,t);return F.ref=K,(0,a.default)(B,F,{writingDirection:U})}));b.displayName="View";var y=d.default.create({view$raw:{alignItems:"stretch",backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",display:"flex",flexBasis:"auto",flexDirection:"column",flexShrink:0,listStyle:"none",margin:0,minHeight:0,minWidth:0,padding:0,position:"relative",textDecoration:"none",zIndex:0},inline:{display:"inline-flex"}});const g=b},658:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(2561),i=n(9379),a=n(8587),o=n(3668),s=n(2155),u=["aria-activedescendant","accessibilityActiveDescendant","aria-atomic","accessibilityAtomic","aria-autocomplete","accessibilityAutoComplete","aria-busy","accessibilityBusy","aria-checked","accessibilityChecked","aria-colcount","accessibilityColumnCount","aria-colindex","accessibilityColumnIndex","aria-colspan","accessibilityColumnSpan","aria-controls","accessibilityControls","aria-current","accessibilityCurrent","aria-describedby","accessibilityDescribedBy","aria-details","accessibilityDetails","aria-disabled","accessibilityDisabled","aria-errormessage","accessibilityErrorMessage","aria-expanded","accessibilityExpanded","aria-flowto","accessibilityFlowTo","aria-haspopup","accessibilityHasPopup","aria-hidden","accessibilityHidden","aria-invalid","accessibilityInvalid","aria-keyshortcuts","accessibilityKeyShortcuts","aria-label","accessibilityLabel","aria-labelledby","accessibilityLabelledBy","aria-level","accessibilityLevel","aria-live","accessibilityLiveRegion","aria-modal","accessibilityModal","aria-multiline","accessibilityMultiline","aria-multiselectable","accessibilityMultiSelectable","aria-orientation","accessibilityOrientation","aria-owns","accessibilityOwns","aria-placeholder","accessibilityPlaceholder","aria-posinset","accessibilityPosInSet","aria-pressed","accessibilityPressed","aria-readonly","accessibilityReadOnly","aria-required","accessibilityRequired","role","accessibilityRole","aria-roledescription","accessibilityRoleDescription","aria-rowcount","accessibilityRowCount","aria-rowindex","accessibilityRowIndex","aria-rowspan","accessibilityRowSpan","aria-selected","accessibilitySelected","aria-setsize","accessibilitySetSize","aria-sort","accessibilitySort","aria-valuemax","accessibilityValueMax","aria-valuemin","accessibilityValueMin","aria-valuenow","accessibilityValueNow","aria-valuetext","accessibilityValueText","dataSet","focusable","id","nativeID","pointerEvents","style","tabIndex","testID"],l={},c=Object.prototype.hasOwnProperty,f=Array.isArray,d=/[A-Z]/g;function h(e){return"-"+e.toLowerCase()}function p(e){return f(e)?e.join(" "):e}var v=o.default.create({auto:{pointerEvents:"auto"},"box-none":{pointerEvents:"box-none"},"box-only":{pointerEvents:"box-only"},none:{pointerEvents:"none"}});const m=function(e,t,n){t||(t=l);var f=t,m=f["aria-activedescendant"],b=f.accessibilityActiveDescendant,y=f["aria-atomic"],g=f.accessibilityAtomic,_=f["aria-autocomplete"],w=f.accessibilityAutoComplete,S=f["aria-busy"],E=f.accessibilityBusy,k=f["aria-checked"],M=f.accessibilityChecked,R=f["aria-colcount"],C=f.accessibilityColumnCount,x=f["aria-colindex"],A=f.accessibilityColumnIndex,T=f["aria-colspan"],P=f.accessibilityColumnSpan,I=f["aria-controls"],O=f.accessibilityControls,L=f["aria-current"],N=f.accessibilityCurrent,D=f["aria-describedby"],B=f.accessibilityDescribedBy,j=f["aria-details"],z=f.accessibilityDetails,U=f["aria-disabled"],F=f.accessibilityDisabled,V=f["aria-errormessage"],H=f.accessibilityErrorMessage,q=f["aria-expanded"],W=f.accessibilityExpanded,K=f["aria-flowto"],G=f.accessibilityFlowTo,Y=f["aria-haspopup"],$=f.accessibilityHasPopup,X=f["aria-hidden"],Q=f.accessibilityHidden,Z=f["aria-invalid"],J=f.accessibilityInvalid,ee=f["aria-keyshortcuts"],te=f.accessibilityKeyShortcuts,ne=f["aria-label"],re=f.accessibilityLabel,ie=f["aria-labelledby"],ae=f.accessibilityLabelledBy,oe=f["aria-level"],se=f.accessibilityLevel,ue=f["aria-live"],le=f.accessibilityLiveRegion,ce=f["aria-modal"],fe=f.accessibilityModal,de=f["aria-multiline"],he=f.accessibilityMultiline,pe=f["aria-multiselectable"],ve=f.accessibilityMultiSelectable,me=f["aria-orientation"],be=f.accessibilityOrientation,ye=f["aria-owns"],ge=f.accessibilityOwns,_e=f["aria-placeholder"],we=f.accessibilityPlaceholder,Se=f["aria-posinset"],Ee=f.accessibilityPosInSet,ke=f["aria-pressed"],Me=f.accessibilityPressed,Re=f["aria-readonly"],Ce=f.accessibilityReadOnly,xe=f["aria-required"],Ae=f.accessibilityRequired,Te=(f.role,f.accessibilityRole),Pe=f["aria-roledescription"],Ie=f.accessibilityRoleDescription,Oe=f["aria-rowcount"],Le=f.accessibilityRowCount,Ne=f["aria-rowindex"],De=f.accessibilityRowIndex,Be=f["aria-rowspan"],je=f.accessibilityRowSpan,ze=f["aria-selected"],Ue=f.accessibilitySelected,Fe=f["aria-setsize"],Ve=f.accessibilitySetSize,He=f["aria-sort"],qe=f.accessibilitySort,We=f["aria-valuemax"],Ke=f.accessibilityValueMax,Ge=f["aria-valuemin"],Ye=f.accessibilityValueMin,$e=f["aria-valuenow"],Xe=f.accessibilityValueNow,Qe=f["aria-valuetext"],Ze=f.accessibilityValueText,Je=f.dataSet,et=f.focusable,tt=f.id,nt=f.nativeID,rt=f.pointerEvents,it=f.style,at=f.tabIndex,ot=f.testID,st=(0,a.default)(f,u);null!=F&&(0,s.warnOnce)("accessibilityDisabled","accessibilityDisabled is deprecated.");var ut=U||F,lt=r.default.propsToAriaRole(t);null!=b&&(0,s.warnOnce)("accessibilityActiveDescendant","accessibilityActiveDescendant is deprecated. Use aria-activedescendant.");var ct=null!=m?m:b;null!=ct&&(st["aria-activedescendant"]=ct),null!=g&&(0,s.warnOnce)("accessibilityAtomic","accessibilityAtomic is deprecated. Use aria-atomic.");var ft=null!=y?m:g;null!=ft&&(st["aria-atomic"]=ft),null!=w&&(0,s.warnOnce)("accessibilityAutoComplete","accessibilityAutoComplete is deprecated. Use aria-autocomplete.");var dt=null!=_?_:w;null!=dt&&(st["aria-autocomplete"]=dt),null!=E&&(0,s.warnOnce)("accessibilityBusy","accessibilityBusy is deprecated. Use aria-busy.");var ht=null!=S?S:E;null!=ht&&(st["aria-busy"]=ht),null!=M&&(0,s.warnOnce)("accessibilityChecked","accessibilityChecked is deprecated. Use aria-checked.");var pt=null!=k?k:M;null!=pt&&(st["aria-checked"]=pt),null!=C&&(0,s.warnOnce)("accessibilityColumnCount","accessibilityColumnCount is deprecated. Use aria-colcount.");var vt=null!=R?R:C;null!=vt&&(st["aria-colcount"]=vt),null!=A&&(0,s.warnOnce)("accessibilityColumnIndex","accessibilityColumnIndex is deprecated. Use aria-colindex.");var mt=null!=x?x:A;null!=mt&&(st["aria-colindex"]=mt),null!=P&&(0,s.warnOnce)("accessibilityColumnSpan","accessibilityColumnSpan is deprecated. Use aria-colspan.");var bt=null!=T?T:P;null!=bt&&(st["aria-colspan"]=bt),null!=O&&(0,s.warnOnce)("accessibilityControls","accessibilityControls is deprecated. Use aria-controls.");var yt=null!=I?I:O;null!=yt&&(st["aria-controls"]=p(yt)),null!=N&&(0,s.warnOnce)("accessibilityCurrent","accessibilityCurrent is deprecated. Use aria-current.");var gt=null!=L?L:N;null!=gt&&(st["aria-current"]=gt),null!=B&&(0,s.warnOnce)("accessibilityDescribedBy","accessibilityDescribedBy is deprecated. Use aria-describedby.");var _t=null!=D?D:B;null!=_t&&(st["aria-describedby"]=p(_t)),null!=z&&(0,s.warnOnce)("accessibilityDetails","accessibilityDetails is deprecated. Use aria-details.");var wt=null!=j?j:z;null!=wt&&(st["aria-details"]=wt),!0===ut&&(st["aria-disabled"]=!0,"button"!==e&&"form"!==e&&"input"!==e&&"select"!==e&&"textarea"!==e||(st.disabled=!0)),null!=H&&(0,s.warnOnce)("accessibilityErrorMessage","accessibilityErrorMessage is deprecated. Use aria-errormessage.");var St=null!=V?V:H;null!=St&&(st["aria-errormessage"]=St),null!=W&&(0,s.warnOnce)("accessibilityExpanded","accessibilityExpanded is deprecated. Use aria-expanded.");var Et=null!=q?q:W;null!=Et&&(st["aria-expanded"]=Et),null!=G&&(0,s.warnOnce)("accessibilityFlowTo","accessibilityFlowTo is deprecated. Use aria-flowto.");var kt=null!=K?K:G;null!=kt&&(st["aria-flowto"]=p(kt)),null!=$&&(0,s.warnOnce)("accessibilityHasPopup","accessibilityHasPopup is deprecated. Use aria-haspopup.");var Mt=null!=Y?Y:$;null!=Mt&&(st["aria-haspopup"]=Mt),null!=Q&&(0,s.warnOnce)("accessibilityHidden","accessibilityHidden is deprecated. Use aria-hidden.");var Rt=null!=X?X:Q;!0===Rt&&(st["aria-hidden"]=Rt),null!=J&&(0,s.warnOnce)("accessibilityInvalid","accessibilityInvalid is deprecated. Use aria-invalid.");var Ct=null!=Z?Z:J;null!=Ct&&(st["aria-invalid"]=Ct),null!=te&&(0,s.warnOnce)("accessibilityKeyShortcuts","accessibilityKeyShortcuts is deprecated. Use aria-keyshortcuts.");var xt=null!=ee?ee:te;null!=xt&&(st["aria-keyshortcuts"]=p(xt)),null!=re&&(0,s.warnOnce)("accessibilityLabel","accessibilityLabel is deprecated. Use aria-label.");var At=null!=ne?ne:re;null!=At&&(st["aria-label"]=At),null!=ae&&(0,s.warnOnce)("accessibilityLabelledBy","accessibilityLabelledBy is deprecated. Use aria-labelledby.");var Tt=null!=ie?ie:ae;null!=Tt&&(st["aria-labelledby"]=p(Tt)),null!=se&&(0,s.warnOnce)("accessibilityLevel","accessibilityLevel is deprecated. Use aria-level.");var Pt=null!=oe?oe:se;null!=Pt&&(st["aria-level"]=Pt),null!=le&&(0,s.warnOnce)("accessibilityLiveRegion","accessibilityLiveRegion is deprecated. Use aria-live.");var It=null!=ue?ue:le;null!=It&&(st["aria-live"]="none"===It?"off":It),null!=fe&&(0,s.warnOnce)("accessibilityModal","accessibilityModal is deprecated. Use aria-modal.");var Ot=null!=ce?ce:fe;null!=Ot&&(st["aria-modal"]=Ot),null!=he&&(0,s.warnOnce)("accessibilityMultiline","accessibilityMultiline is deprecated. Use aria-multiline.");var Lt=null!=de?de:he;null!=Lt&&(st["aria-multiline"]=Lt),null!=ve&&(0,s.warnOnce)("accessibilityMultiSelectable","accessibilityMultiSelectable is deprecated. Use aria-multiselectable.");var Nt=null!=pe?pe:ve;null!=Nt&&(st["aria-multiselectable"]=Nt),null!=be&&(0,s.warnOnce)("accessibilityOrientation","accessibilityOrientation is deprecated. Use aria-orientation.");var Dt=null!=me?me:be;null!=Dt&&(st["aria-orientation"]=Dt),null!=ge&&(0,s.warnOnce)("accessibilityOwns","accessibilityOwns is deprecated. Use aria-owns.");var Bt=null!=ye?ye:ge;null!=Bt&&(st["aria-owns"]=p(Bt)),null!=we&&(0,s.warnOnce)("accessibilityPlaceholder","accessibilityPlaceholder is deprecated. Use aria-placeholder.");var jt=null!=_e?_e:we;null!=jt&&(st["aria-placeholder"]=jt),null!=Ee&&(0,s.warnOnce)("accessibilityPosInSet","accessibilityPosInSet is deprecated. Use aria-posinset.");var zt=null!=Se?Se:Ee;null!=zt&&(st["aria-posinset"]=zt),null!=Me&&(0,s.warnOnce)("accessibilityPressed","accessibilityPressed is deprecated. Use aria-pressed.");var Ut=null!=ke?ke:Me;null!=Ut&&(st["aria-pressed"]=Ut),null!=Ce&&(0,s.warnOnce)("accessibilityReadOnly","accessibilityReadOnly is deprecated. Use aria-readonly.");var Ft=null!=Re?Re:Ce;null!=Ft&&(st["aria-readonly"]=Ft,"input"!==e&&"select"!==e&&"textarea"!==e||(st.readOnly=!0)),null!=Ae&&(0,s.warnOnce)("accessibilityRequired","accessibilityRequired is deprecated. Use aria-required.");var Vt=null!=xe?xe:Ae;null!=Vt&&(st["aria-required"]=Vt,"input"!==e&&"select"!==e&&"textarea"!==e||(st.required=Ae)),null!=Te&&(0,s.warnOnce)("accessibilityRole","accessibilityRole is deprecated. Use role."),null!=lt&&(st.role="none"===lt?"presentation":lt),null!=Ie&&(0,s.warnOnce)("accessibilityRoleDescription","accessibilityRoleDescription is deprecated. Use aria-roledescription.");var Ht=null!=Pe?Pe:Ie;null!=Ht&&(st["aria-roledescription"]=Ht),null!=Le&&(0,s.warnOnce)("accessibilityRowCount","accessibilityRowCount is deprecated. Use aria-rowcount.");var qt=null!=Oe?Oe:Le;null!=qt&&(st["aria-rowcount"]=qt),null!=De&&(0,s.warnOnce)("accessibilityRowIndex","accessibilityRowIndex is deprecated. Use aria-rowindex.");var Wt=null!=Ne?Ne:De;null!=Wt&&(st["aria-rowindex"]=Wt),null!=je&&(0,s.warnOnce)("accessibilityRowSpan","accessibilityRowSpan is deprecated. Use aria-rowspan.");var Kt=null!=Be?Be:je;null!=Kt&&(st["aria-rowspan"]=Kt),null!=Ue&&(0,s.warnOnce)("accessibilitySelected","accessibilitySelected is deprecated. Use aria-selected.");var Gt=null!=ze?ze:Ue;null!=Gt&&(st["aria-selected"]=Gt),null!=Ve&&(0,s.warnOnce)("accessibilitySetSize","accessibilitySetSize is deprecated. Use aria-setsize.");var Yt=null!=Fe?Fe:Ve;null!=Yt&&(st["aria-setsize"]=Yt),null!=qe&&(0,s.warnOnce)("accessibilitySort","accessibilitySort is deprecated. Use aria-sort.");var $t=null!=He?He:qe;null!=$t&&(st["aria-sort"]=$t),null!=Ke&&(0,s.warnOnce)("accessibilityValueMax","accessibilityValueMax is deprecated. Use aria-valuemax.");var Xt=null!=We?We:Ke;null!=Xt&&(st["aria-valuemax"]=Xt),null!=Ye&&(0,s.warnOnce)("accessibilityValueMin","accessibilityValueMin is deprecated. Use aria-valuemin.");var Qt=null!=Ge?Ge:Ye;null!=Qt&&(st["aria-valuemin"]=Qt),null!=Xe&&(0,s.warnOnce)("accessibilityValueNow","accessibilityValueNow is deprecated. Use aria-valuenow.");var Zt=null!=$e?$e:Xe;null!=Zt&&(st["aria-valuenow"]=Zt),null!=Ze&&(0,s.warnOnce)("accessibilityValueText","accessibilityValueText is deprecated. Use aria-valuetext.");var Jt=null!=Qe?Qe:Ze;if(null!=Jt&&(st["aria-valuetext"]=Jt),null!=Je)for(var en in Je)if(c.call(Je,en)){var tn=en.replace(d,h),nn=Je[en];null!=nn&&(st["data-"+tn]=nn)}0===at||"0"===at||-1===at||"-1"===at?st.tabIndex=at:(null!=et&&(0,s.warnOnce)("focusable","focusable is deprecated."),!1===et&&(st.tabIndex="-1"),"a"===e||"button"===e||"input"===e||"select"===e||"textarea"===e?!1!==et&&!0!==F||(st.tabIndex="-1"):"button"===lt||"checkbox"===lt||"link"===lt||"radio"===lt||"textbox"===lt||"switch"===lt?!1!==et&&(st.tabIndex="0"):!0===et&&(st.tabIndex="0")),null!=rt&&(0,s.warnOnce)("pointerEvents","props.pointerEvents is deprecated. Use style.pointerEvents");var rn=(0,o.default)([it,rt&&v[rt]],(0,i.default)({writingDirection:"ltr"},n)),an=rn[0],on=rn[1];an&&(st.className=an),on&&(st.style=on),null!=nt&&(0,s.warnOnce)("nativeID","nativeID is deprecated. Use id.");var sn=null!=tt?tt:nt;return null!=sn&&(st.id=sn),null!=ot&&(st["data-testid"]=ot),null==st.type&&"button"===e&&(st.type="button"),st};var b=n(6665),y=n(5794);const g=function(e,t,n){var i;e&&e.constructor===String&&(i=r.default.propsToAccessibilityComponent(t));var a=i||e,o=m(a,t,n),s=b.createElement(a,o);return o.dir?b.createElement(y.LocaleProvider,{children:s,direction:o.dir,locale:o.lang}):s}},9e3:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(5206),i=n.n(r);const a=function(e){if(void 0===e||null===e)return e;var t=i()(e);return void 0!==t&&null!==t?t=(t<<24|t>>>8)>>>0:void 0}},558:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(6725),i=n(6665);function a(){var e=(0,i.useState)((function(){return r.default.get("window")})),t=e[0],n=e[1];return(0,i.useEffect)((function(){function e(e){var t=e.window;null!=t&&n(t)}return r.default.addEventListener("change",e),n(r.default.get("window")),function(){r.default.removeEventListener("change",e)}}),[]),t}},7184:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AccessibilityInfo:()=>_,ActivityIndicator:()=>Ne.default,Alert:()=>E,Animated:()=>k.default,AppRegistry:()=>H,AppState:()=>Z,Appearance:()=>C,BackHandler:()=>ee,Button:()=>Fe,CheckBox:()=>Ke,Clipboard:()=>ne,DeviceEventEmitter:()=>Rn.default,Dimensions:()=>re.default,Easing:()=>ie.default,FlatList:()=>Ge.default,I18nManager:()=>ae.default,Image:()=>Ye.default,ImageBackground:()=>Ze,InteractionManager:()=>se.default,Keyboard:()=>oe.default,KeyboardAvoidingView:()=>at,LayoutAnimation:()=>he,Linking:()=>be,LogBox:()=>Mn,Modal:()=>ot.default,NativeEventEmitter:()=>ye.default,NativeModules:()=>p.default,PanResponder:()=>Te,Picker:()=>dt,PixelRatio:()=>Pe.default,Platform:()=>ue.default,Pressable:()=>ht.default,ProgressBar:()=>bt,RefreshControl:()=>yt.default,SafeAreaView:()=>Et,ScrollView:()=>kt.default,SectionList:()=>Mt.default,Share:()=>Ie,StatusBar:()=>Rt.default,StyleSheet:()=>O.default,Switch:()=>Ct.default,Text:()=>Be.default,TextInput:()=>xt.default,Touchable:()=>hn,TouchableHighlight:()=>pn.default,TouchableNativeFeedback:()=>_n,TouchableOpacity:()=>De.default,TouchableWithoutFeedback:()=>wn.default,UIManager:()=>le.default,Vibration:()=>Le,View:()=>L.default,VirtualizedList:()=>Sn,YellowBox:()=>kn,findNodeHandle:()=>a,processColor:()=>o.default,render:()=>h,unmountComponentAtNode:()=>u,unstable_createElement:()=>r.default,useColorScheme:()=>Cn,useLocaleContext:()=>xn,useWindowDimensions:()=>An.default});var r=n(658),i=n(3672);const a=function(e){var t;try{t=(0,i.findDOMNode)(e)}catch(n){}return t};var o=n(9e3),s=n(4657);const u=i.unmountComponentAtNode;var l=n(6267);function c(e,t){return(0,l.createSheet)(t),(0,s.hydrateRoot)(t,e)}function f(e,t){(0,l.createSheet)(t);var n=(0,s.createRoot)(t);return n.render(e),n}function d(e,t,n){return(0,l.createSheet)(t),(0,i.hydrate)(e,t,n),{unmount:function(){return u(t)}}}function h(e,t,n){return(0,l.createSheet)(t),(0,i.render)(e,t,n),{unmount:function(){return u(t)}}}var p=n(5548),v=n(8345);function m(){return new Promise((function(e,t){e(!0)}))}var b=v.default&&"function"===typeof window.matchMedia?window.matchMedia("(prefers-reduced-motion: reduce)"):null;var y={},g={isScreenReaderEnabled:m,isReduceMotionEnabled:function(){return new Promise((function(e,t){e(!b||b.matches)}))},fetch:m,addEventListener:function(e,t){if("reduceMotionChanged"===e){if(!b)return;var n=function(e){t(e.matches)};r=n,null!=b&&(null!=b.addEventListener?b.addEventListener("change",r):b.addListener(r)),y[t]=n}var r;return{remove:function(){return g.removeEventListener(e,t)}}},setAccessibilityFocus:function(e){},announceForAccessibility:function(e){},removeEventListener:function(e,t){if("reduceMotionChanged"===e){var n=y[t];if(!n||!b)return;r=n,null!=b&&(null!=b.removeEventListener?b.removeEventListener("change",r):b.removeListener(r))}var r}};const _=g;var w=n(3029),S=n(2901);const E=(0,S.default)((function e(){(0,w.default)(this,e)}),null,[{key:"alert",value:function(){}}]);var k=n(5009);var M=v.default&&null!=window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null,R=new WeakMap;const C={getColorScheme:function(){return M&&M.matches?"dark":"light"},addChangeListener:function(e){var t=R.get(e);return t||(t=function(t){var n=t.matches;e({colorScheme:n?"dark":"light"})},R.set(e,t)),M&&M.addListener(t),{remove:function(){var t=R.get(e);M&&t&&M.removeListener(t),R.delete(e)}}}};var x=n(9379),A=n(6077),T=n.n(A),P=n(8168),I=n(6665),O=n(3668),L=n(3929),N=I.createContext(null),D=I.forwardRef((function(e,t){var n=e.children,r=e.WrapperComponent,i=I.createElement(L.default,{children:n,key:1,style:j.appContainer});return r&&(i=I.createElement(r,null,i)),I.createElement(N.Provider,{value:e.rootTag},I.createElement(L.default,{ref:t,style:j.appContainer},i))}));D.displayName="AppContainer";const B=D;var j=O.default.create({appContainer:{flex:1,pointerEvents:"box-none"}});var z,U={},F={},V=function(e){return e()},H=function(){function e(){(0,w.default)(this,e)}return(0,S.default)(e,null,[{key:"getAppKeys",value:function(){return Object.keys(F)}},{key:"getApplication",value:function(e,t){return T()(F[e]&&F[e].getApplication,"Application "+e+" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent."),F[e].getApplication(t)}},{key:"registerComponent",value:function(e,t){return F[e]={getApplication:function(e){return n=V(t),r=e?e.initialProps:U,i=z&&z(e),{element:I.createElement(B,{WrapperComponent:i,rootTag:{}},I.createElement(n,r)),getStyleElement:function(e){var t=O.default.getSheet();return I.createElement("style",(0,P.default)({},e,{dangerouslySetInnerHTML:{__html:t.textContent},id:t.id}))}};var n,r,i},run:function(e){return function(e,t,n,r){var i=r.hydrate,a=r.initialProps,o=r.mode,s=r.rootTag,u=i?"concurrent"===o?c:d:"concurrent"===o?f:h;return T()(s,"Expect to have a valid rootTag, instead got ",s),u(I.createElement(B,{WrapperComponent:t,ref:n,rootTag:s},I.createElement(e,a)),s)}(V(t),z&&z(e),e.callback,{hydrate:e.hydrate||!1,initialProps:e.initialProps||U,mode:e.mode||"concurrent",rootTag:e.rootTag})}},e}},{key:"registerConfig",value:function(t){t.forEach((function(t){var n=t.appKey,r=t.component,i=t.run;i?e.registerRunnable(n,i):(T()(r,"No component provider passed in"),e.registerComponent(n,r))}))}},{key:"registerRunnable",value:function(e,t){return F[e]={run:t},e}},{key:"runApplication",value:function(e,t){return T()(F[e]&&F[e].run,'Application "'+e+'" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent.'),F[e].run(t)}},{key:"setComponentProviderInstrumentationHook",value:function(e){V=e}},{key:"setWrapperComponentProvider",value:function(e){z=e}},{key:"unmountApplicationComponentAtRootTag",value:function(e){u(e)}}])}(),q=n(3684),W=v.default&&!document.hasOwnProperty("hidden")&&document.hasOwnProperty("webkitHidden"),K=["change","memoryWarning"],G=W?"webkitvisibilitychange":"visibilitychange",Y=W?"webkitVisibilityState":"visibilityState",$="background",X="active",Q=null,Z=function(){function e(){(0,w.default)(this,e)}return(0,S.default)(e,null,[{key:"currentState",get:function(){if(!e.isAvailable)return X;switch(document[Y]){case"hidden":case"prerender":case"unloaded":return $;default:return X}}},{key:"addEventListener",value:function(t,n){if(e.isAvailable&&(T()(-1!==K.indexOf(t),'Trying to subscribe to unknown event: "%s"',t),"change"===t))return Q||(Q=new q.default,document.addEventListener(G,(function(){Q&&Q.emit("change",e.currentState)}),!1)),Q.addListener(t,n)}}])}();function J(){}Z.isAvailable=v.default&&document[Y];const ee={exitApp:J,addEventListener:function(){return console.error("BackHandler is not supported on web and should not be used."),{remove:J}},removeEventListener:J};var te,ne=(0,S.default)((function e(){(0,w.default)(this,e)}),null,[{key:"isAvailable",value:function(){return void 0===te&&(te="function"===typeof document.queryCommandSupported&&document.queryCommandSupported("copy")),te}},{key:"getString",value:function(){return Promise.resolve("")}},{key:"setString",value:function(e){var t=!1,n=document.body;if(n){var r=document.createElement("span");r.textContent=e,r.style.opacity="0",r.style.position="absolute",r.style.whiteSpace="pre-wrap",r.style.userSelect="auto",n.appendChild(r);var i=window.getSelection();i.removeAllRanges();var a=document.createRange();a.selectNodeContents(r),i.addRange(a);try{document.execCommand("copy"),t=!0}catch(o){}i.removeAllRanges(),n.removeChild(r)}return t}}]),re=n(6725),ie=n(5620),ae=n(8623),oe=n(2365),se=n(3816),ue=n(5991),le=n(7640);function ce(e,t){ue.default.isTesting||le.default.configureNextLayoutAnimation(e,null!==t&&void 0!==t?t:function(){},(function(){}))}function fe(e,t,n){return{duration:e,create:{type:t,property:n},update:{type:t},delete:{type:t,property:n}}}var de={easeInEaseOut:fe(300,"easeInEaseOut","opacity"),linear:fe(500,"linear","opacity"),spring:{duration:700,create:{type:"linear",property:"opacity"},update:{type:"spring",springDamping:.4},delete:{type:"linear",property:"opacity"}}};const he={configureNext:ce,create:fe,Types:Object.freeze({spring:"spring",linear:"linear",easeInEaseOut:"easeInEaseOut",easeIn:"easeIn",easeOut:"easeOut",keyboard:"keyboard"}),Properties:Object.freeze({opacity:"opacity",scaleX:"scaleX",scaleY:"scaleY",scaleXY:"scaleXY"}),checkConfig:function(){console.error("LayoutAnimation.checkConfig(...) has been disabled.")},Presets:de,easeInEaseOut:ce.bind(null,de.easeInEaseOut),linear:ce.bind(null,de.linear),spring:ce.bind(null,de.spring)};var pe=v.default?window.location.href:"",ve=(0,S.default)((function e(){(0,w.default)(this,e),this._eventCallbacks={}}),[{key:"_dispatchEvent",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rt&&(a+=r&&n?s.currentPageX:r&&!n?s.currentPageY:!r&&n?s.previousPageX:s.previousPageY,o=1);else for(var u=0;u=t){a+=r&&n?l.currentPageX:r&&!n?l.currentPageY:!r&&n?l.previousPageX:l.previousPageY,o++}}return o>0?a/o:ge.noCentroid},currentCentroidXOfTouchesChangedAfter:function(e,t){return ge.centroidDimension(e,t,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(e,t){return ge.centroidDimension(e,t,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(e,t){return ge.centroidDimension(e,t,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(e,t){return ge.centroidDimension(e,t,!1,!1)},currentCentroidX:function(e){return ge.centroidDimension(e,0,!0,!0)},currentCentroidY:function(e){return ge.centroidDimension(e,0,!1,!0)},noCentroid:-1};const _e=ge;var we=_e.currentCentroidXOfTouchesChangedAfter,Se=_e.currentCentroidYOfTouchesChangedAfter,Ee=_e.previousCentroidXOfTouchesChangedAfter,ke=_e.previousCentroidYOfTouchesChangedAfter,Me=_e.currentCentroidX,Re=_e.currentCentroidY,Ce={_initializeGestureState:function(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove:function(e,t){e.numberActiveTouches=t.numberActiveTouches,e.moveX=we(t,e._accountsForMovesUpTo),e.moveY=Se(t,e._accountsForMovesUpTo);var n=e._accountsForMovesUpTo,r=Ee(t,n),i=we(t,n),a=ke(t,n),o=Se(t,n),s=e.dx+(i-r),u=e.dy+(o-a),l=t.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(s-e.dx)/l,e.vy=(u-e.dy)/l,e.dx=s,e.dy=u,e._accountsForMovesUpTo=t.mostRecentTimeStamp},create:function(e){var t={handle:null,shouldCancelClick:!1,timeout:null},n={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0};return{panHandlers:{onStartShouldSetResponder:function(t){return null!=e.onStartShouldSetPanResponder&&e.onStartShouldSetPanResponder(t,n)},onMoveShouldSetResponder:function(t){return null!=e.onMoveShouldSetPanResponder&&e.onMoveShouldSetPanResponder(t,n)},onStartShouldSetResponderCapture:function(t){return 1===t.nativeEvent.touches.length&&Ce._initializeGestureState(n),n.numberActiveTouches=t.touchHistory.numberActiveTouches,null!=e.onStartShouldSetPanResponderCapture&&e.onStartShouldSetPanResponderCapture(t,n)},onMoveShouldSetResponderCapture:function(t){var r=t.touchHistory;return n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(Ce._updateGestureStateOnMove(n,r),!!e.onMoveShouldSetPanResponderCapture&&e.onMoveShouldSetPanResponderCapture(t,n))},onResponderGrant:function(r){return t.handle||(t.handle=se.default.createInteractionHandle()),t.timeout&&function(e){clearTimeout(e.timeout)}(t),t.shouldCancelClick=!0,n.x0=Me(r.touchHistory),n.y0=Re(r.touchHistory),n.dx=0,n.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(r,n),null==e.onShouldBlockNativeResponder||e.onShouldBlockNativeResponder(r,n)},onResponderReject:function(r){xe(t,e.onPanResponderReject,r,n)},onResponderRelease:function(r){xe(t,e.onPanResponderRelease,r,n),Ae(t),Ce._initializeGestureState(n)},onResponderStart:function(t){var r=t.touchHistory;n.numberActiveTouches=r.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(t,n)},onResponderMove:function(t){var r=t.touchHistory;n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(Ce._updateGestureStateOnMove(n,r),e.onPanResponderMove&&e.onPanResponderMove(t,n))},onResponderEnd:function(r){var i=r.touchHistory;n.numberActiveTouches=i.numberActiveTouches,xe(t,e.onPanResponderEnd,r,n)},onResponderTerminate:function(r){xe(t,e.onPanResponderTerminate,r,n),Ae(t),Ce._initializeGestureState(n)},onResponderTerminationRequest:function(t){return null==e.onPanResponderTerminationRequest||e.onPanResponderTerminationRequest(t,n)},onClickCapture:function(e){!0===t.shouldCancelClick&&(e.stopPropagation(),e.preventDefault())}},getInteractionHandle:function(){return t.handle}}}};function xe(e,t,n,r){e.handle&&(se.default.clearInteractionHandle(e.handle),e.handle=null),t&&t(n,r)}function Ae(e){e.timeout=setTimeout((function(){e.shouldCancelClick=!1}),250)}const Te=Ce;var Pe=n(8943);const Ie=(0,S.default)((function e(){(0,w.default)(this,e)}),null,[{key:"share",value:function(e,t){return void 0===t&&(t={}),T()("object"===typeof e&&null!==e,"Content to share must be a valid object"),T()("string"===typeof e.url||"string"===typeof e.message,"At least one of URL and message is required"),T()("object"===typeof t&&null!==t,"Options must be a valid object"),T()(!e.title||"string"===typeof e.title,"Invalid title: title should be a string."),void 0!==window.navigator.share?window.navigator.share({title:e.title,text:e.message,url:e.url}):Promise.reject(new Error("Share is not supported in this browser"))}},{key:"sharedAction",get:function(){return"sharedAction"}},{key:"dismissedAction",get:function(){return"dismissedAction"}}]);var Oe=function(e){"vibrate"in window.navigator&&window.navigator.vibrate(e)};const Le={cancel:function(){Oe(0)},vibrate:function(e){void 0===e&&(e=400),Oe(e)}};var Ne=n(530),De=n(5648),Be=n(6283),je=n(2155),ze=I.forwardRef((function(e,t){(0,je.warnOnce)("Button","Button is deprecated. Please use Pressable.");var n=e.accessibilityLabel,r=e.color,i=e.disabled,a=e.onPress,o=e.testID,s=e.title;return I.createElement(De.default,{accessibilityLabel:n,accessibilityRole:"button",disabled:i,focusable:!i,onPress:a,ref:t,style:[Ue.button,r&&{backgroundColor:r},i&&Ue.buttonDisabled],testID:o},I.createElement(Be.default,{style:[Ue.text,i&&Ue.textDisabled]},s))}));ze.displayName="Button";var Ue=O.default.create({button:{backgroundColor:"#2196F3",borderRadius:2},text:{color:"#fff",fontWeight:"500",padding:8,textAlign:"center",textTransform:"uppercase"},buttonDisabled:{backgroundColor:"#dfdfdf"},textDisabled:{color:"#a1a1a1"}});const Fe=ze;var Ve=n(8587),He=["aria-readonly","color","disabled","onChange","onValueChange","readOnly","style","value"],qe=I.forwardRef((function(e,t){var n=e["aria-readonly"],i=e.color,a=e.disabled,o=e.onChange,s=e.onValueChange,u=e.readOnly,l=e.style,c=e.value,f=(0,Ve.default)(e,He);var d=I.createElement(L.default,{style:[We.fakeControl,c&&We.fakeControlChecked,c&&i&&{backgroundColor:i,borderColor:i},a&&We.fakeControlDisabled,c&&a&&We.fakeControlCheckedAndDisabled]}),h=(0,r.default)("input",{checked:c,disabled:a,onChange:function(e){var t=e.nativeEvent.target.checked;e.nativeEvent.value=t,o&&o(e),s&&s(t)},readOnly:!0===u||!0===n||!0===f.accessibilityReadOnly,ref:t,style:[We.nativeControl,We.cursorInherit],type:"checkbox"});return I.createElement(L.default,(0,P.default)({},f,{"aria-disabled":a,"aria-readonly":n,style:[We.root,l,a&&We.cursorDefault]}),d,h)}));qe.displayName="CheckBox";var We=O.default.create({root:{cursor:"pointer",height:16,userSelect:"none",width:16},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},fakeControl:{alignItems:"center",backgroundColor:"#fff",borderColor:"#657786",borderRadius:2,borderStyle:"solid",borderWidth:2,height:"100%",justifyContent:"center",width:"100%"},fakeControlChecked:{backgroundColor:"#009688",backgroundImage:'url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8cGF0aAogICAgIGQ9Ik0gMC4wNDAzODA1OSwwLjYyNjc3NjcgMC4xNDY0NDY2MSwwLjUyMDcxMDY4IDAuNDI5Mjg5MzIsMC44MDM1NTMzOSAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IE0gMC4yMTcxNTcyOSwwLjgwMzU1MzM5IDAuODUzNTUzMzksMC4xNjcxNTcyOSAwLjk1OTYxOTQxLDAuMjczMjIzMyAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IgogICAgIGlkPSJyZWN0Mzc4MCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L3N2Zz4K")',backgroundRepeat:"no-repeat",borderColor:"#009688"},fakeControlDisabled:{borderColor:"#CCD6DD"},fakeControlCheckedAndDisabled:{backgroundColor:"#AAB8C2",borderColor:"#AAB8C2"},nativeControl:(0,x.default)((0,x.default)({},O.default.absoluteFillObject),{},{height:"100%",margin:0,appearance:"none",padding:0,width:"100%"})});const Ke=qe;var Ge=n(932),Ye=n(484),$e=["children","style","imageStyle","imageRef"],Xe={},Qe=(0,I.forwardRef)((function(e,t){var n=e.children,r=e.style,i=void 0===r?Xe:r,a=e.imageStyle,o=e.imageRef,s=(0,Ve.default)(e,$e),u=O.default.flatten(i),l=u.height,c=u.width;return I.createElement(L.default,{ref:t,style:i},I.createElement(Ye.default,(0,P.default)({},s,{ref:o,style:[{width:c,height:l,zIndex:-1},O.default.absoluteFill,a]})),n)}));Qe.displayName="ImageBackground";const Ze=Qe;var Je=n(388),et=n(3954),tt=n(5501);function nt(e,t,n){return t=(0,et.default)(t),(0,Je.default)(e,rt()?Reflect.construct(t,n||[],(0,et.default)(e).constructor):t.apply(e,n))}function rt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rt=function(){return!!e})()}var it=["behavior","contentContainerStyle","keyboardVerticalOffset"];const at=function(e){function t(){var e;return(0,w.default)(this,t),(e=nt(this,t,arguments)).frame=null,e.onLayout=function(t){e.frame=t.nativeEvent.layout},e}return(0,tt.default)(t,e),(0,S.default)(t,[{key:"relativeKeyboardHeight",value:function(e){var t=this.frame;if(!t||!e)return 0;var n=e.screenY-(this.props.keyboardVerticalOffset||0);return Math.max(t.y+t.height-n,0)}},{key:"onKeyboardChange",value:function(e){}},{key:"render",value:function(){var e=this.props,t=(e.behavior,e.contentContainerStyle,e.keyboardVerticalOffset,(0,Ve.default)(e,it));return I.createElement(L.default,(0,P.default)({onLayout:this.onLayout},t))}}])}(I.Component);var ot=n(8264),st=n(769),ut=n(332);var lt=["children","enabled","onValueChange","selectedValue","style","testID","itemStyle","mode","prompt"],ct=I.forwardRef((function(e,t){var n=e.children,i=e.enabled,a=e.onValueChange,o=e.selectedValue,s=e.style,u=e.testID,l=(e.itemStyle,e.mode,e.prompt,(0,Ve.default)(e,lt)),c=I.useRef(null);var f=(0,x.default)({children:n,disabled:!1===i||void 0,onChange:function(e){var t=e.target,n=t.selectedIndex,r=t.value;a&&a(r,n)},style:[ft.initial,s],testID:u,value:o},l),d=(0,ut.default)(f),h=(0,st.default)(c,d,t);return f.ref=h,(0,r.default)("select",f)}));ct.Item=function(e){var t=e.color,n=e.label,i=e.testID,a=e.value,o={color:t};return(0,r.default)("option",{children:n,style:o,testID:i,value:a})};var ft=O.default.create({initial:{fontFamily:"System",fontSize:"inherit",margin:0}});const dt=ct;var ht=n(5708),pt=["color","indeterminate","progress","trackColor","style"],vt=I.forwardRef((function(e,t){var n=e.color,r=void 0===n?"#1976D2":n,i=e.indeterminate,a=void 0!==i&&i,o=e.progress,s=void 0===o?0:o,u=e.trackColor,l=void 0===u?"transparent":u,c=e.style,f=(0,Ve.default)(e,pt),d=100*s,h=a?"25%":d+"%";return I.createElement(L.default,(0,P.default)({},f,{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":a?null:d,ref:t,role:"progressbar",style:[mt.track,c,{backgroundColor:l}]}),I.createElement(L.default,{style:[{backgroundColor:r,width:h},mt.progress,a&&mt.animation]}))}));vt.displayName="ProgressBar";var mt=O.default.create({track:{forcedColorAdjust:"none",height:5,overflow:"hidden",userSelect:"none",zIndex:0},progress:{forcedColorAdjust:"none",height:"100%",zIndex:-1},animation:{animationDuration:"1s",animationKeyframes:[{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(400%)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"}});const bt=vt;var yt=n(2660),gt=["style"],_t=v.default&&window.CSS&&window.CSS.supports&&window.CSS.supports("top: constant(safe-area-inset-top)")?"constant":"env",wt=I.forwardRef((function(e,t){var n=e.style,r=(0,Ve.default)(e,gt);return I.createElement(L.default,(0,P.default)({},r,{ref:t,style:[St.root,n]}))}));wt.displayName="SafeAreaView";var St=O.default.create({root:{paddingTop:_t+"(safe-area-inset-top)",paddingRight:_t+"(safe-area-inset-right)",paddingBottom:_t+"(safe-area-inset-bottom)",paddingLeft:_t+"(safe-area-inset-left)"}});const Et=wt;var kt=n(2772),Mt=n(494),Rt=n(1815),Ct=n(4037),xt=n(6773),At=n(2561),Tt=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},Pt=function(e){var t=this;e.destructor(),t.instancePool.length0,i=n&&n.length>0;return!r&&i?n[0]:r?t[0]:e},Ht="NOT_RESPONDER",qt="RESPONDER_INACTIVE_PRESS_IN",Wt="RESPONDER_INACTIVE_PRESS_OUT",Kt="RESPONDER_ACTIVE_PRESS_IN",Gt="RESPONDER_ACTIVE_PRESS_OUT",Yt="RESPONDER_ACTIVE_LONG_PRESS_IN",$t="RESPONDER_ACTIVE_LONG_PRESS_OUT",Xt="ERROR",Qt={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},Zt=(0,x.default)((0,x.default)({},Qt),{},{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),Jt=(0,x.default)((0,x.default)({},Qt),{},{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),en=(0,x.default)((0,x.default)({},Qt),{},{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),tn="DELAY",nn="RESPONDER_GRANT",rn="RESPONDER_RELEASE",an="RESPONDER_TERMINATED",on="ENTER_PRESS_RECT",sn="LEAVE_PRESS_RECT",un="LONG_PRESS_DETECTED",ln={NOT_RESPONDER:{DELAY:Xt,RESPONDER_GRANT:qt,RESPONDER_RELEASE:Xt,RESPONDER_TERMINATED:Xt,ENTER_PRESS_RECT:Xt,LEAVE_PRESS_RECT:Xt,LONG_PRESS_DETECTED:Xt},RESPONDER_INACTIVE_PRESS_IN:{DELAY:Kt,RESPONDER_GRANT:Xt,RESPONDER_RELEASE:Ht,RESPONDER_TERMINATED:Ht,ENTER_PRESS_RECT:qt,LEAVE_PRESS_RECT:Wt,LONG_PRESS_DETECTED:Xt},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:Gt,RESPONDER_GRANT:Xt,RESPONDER_RELEASE:Ht,RESPONDER_TERMINATED:Ht,ENTER_PRESS_RECT:qt,LEAVE_PRESS_RECT:Wt,LONG_PRESS_DETECTED:Xt},RESPONDER_ACTIVE_PRESS_IN:{DELAY:Xt,RESPONDER_GRANT:Xt,RESPONDER_RELEASE:Ht,RESPONDER_TERMINATED:Ht,ENTER_PRESS_RECT:Kt,LEAVE_PRESS_RECT:Gt,LONG_PRESS_DETECTED:Yt},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:Xt,RESPONDER_GRANT:Xt,RESPONDER_RELEASE:Ht,RESPONDER_TERMINATED:Ht,ENTER_PRESS_RECT:Kt,LEAVE_PRESS_RECT:Gt,LONG_PRESS_DETECTED:Xt},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:Xt,RESPONDER_GRANT:Xt,RESPONDER_RELEASE:Ht,RESPONDER_TERMINATED:Ht,ENTER_PRESS_RECT:Yt,LEAVE_PRESS_RECT:$t,LONG_PRESS_DETECTED:Yt},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:Xt,RESPONDER_GRANT:Xt,RESPONDER_RELEASE:Ht,RESPONDER_TERMINATED:Ht,ENTER_PRESS_RECT:Yt,LEAVE_PRESS_RECT:$t,LONG_PRESS_DETECTED:Xt},error:{DELAY:Ht,RESPONDER_GRANT:qt,RESPONDER_RELEASE:Ht,RESPONDER_TERMINATED:Ht,ENTER_PRESS_RECT:Ht,LEAVE_PRESS_RECT:Ht,LONG_PRESS_DETECTED:Ht}},cn={componentDidMount:function(){var e=this;(0,je.warnOnce)("TouchableMixin","TouchableMixin is deprecated. Please use Pressable.");var t=this.getTouchableNode&&this.getTouchableNode();t&&t.addEventListener&&(this._touchableBlurListener=function(t){e._isTouchableKeyboardActive&&(e.state.touchable.touchState&&e.state.touchable.touchState!==Ht&&e.touchableHandleResponderTerminate({nativeEvent:t}),e._isTouchableKeyboardActive=!1)},t.addEventListener("blur",this._touchableBlurListener))},componentWillUnmount:function(){var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&e.removeEventListener("blur",this._touchableBlurListener),this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressInLocation=null,this.state.touchable.responderID=null},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(e){var t=e.currentTarget;e.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=Ht,this.state.touchable.responderID=t,this._receiveSignal(nn,e);var n=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(n=isNaN(n)?130:n)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,e),n):this._handleDelay(e);var r=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;r=isNaN(r)?370:r,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,e),r+n)},touchableHandleResponderRelease:function(e){this.pressInLocation=null,this._receiveSignal(rn,e)},touchableHandleResponderTerminate:function(e){this.pressInLocation=null,this._receiveSignal(an,e)},touchableHandleResponderMove:function(e){if(this.state.touchable.positionOnActivate){var t=this.state.touchable.positionOnActivate,n=this.state.touchable.dimensionsOnActivate,r=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},i=r.left,a=r.top,o=r.right,s=r.bottom,u=this.touchableGetHitSlop?this.touchableGetHitSlop():null;u&&(i+=u.left||0,a+=u.top||0,o+=u.right||0,s+=u.bottom||0);var l=Vt(e.nativeEvent),c=l&&l.pageX,f=l&&l.pageY;if(this.pressInLocation)this._getDistanceBetweenPoints(c,f,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout();if(c>t.left-i&&f>t.top-a&&c{"use strict";n.r(t),n.d(t,{default:()=>s});var r={adjustable:"slider",button:"button",header:"heading",image:"img",imagebutton:null,keyboardkey:null,label:null,link:"link",none:"presentation",search:"search",summary:"region",text:null};const i=function(e){var t=e.accessibilityRole,n=e.role||t;if(n){var i=r[n];if(null!==i)return i||n}};var a={article:"article",banner:"header",blockquote:"blockquote",button:"button",code:"code",complementary:"aside",contentinfo:"footer",deletion:"del",emphasis:"em",figure:"figure",insertion:"ins",form:"form",list:"ul",listitem:"li",main:"main",navigation:"nav",paragraph:"p",region:"section",strong:"strong"},o={};const s={isDisabled:function(e){return e.disabled||Array.isArray(e.accessibilityStates)&&e.accessibilityStates.indexOf("disabled")>-1},propsToAccessibilityComponent:function(e){if(void 0===e&&(e=o),"label"===(e.role||e.accessibilityRole))return"label";var t=i(e);if(t){if("heading"===t){var n=e.accessibilityLevel||e["aria-level"];return null!=n?"h"+n:"h1"}return a[t]}},propsToAriaRole:i}},2600:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(7640);const i={_currentlyFocusedNode:null,currentlyFocusedField:function(){return document.activeElement!==this._currentlyFocusedNode&&(this._currentlyFocusedNode=null),this._currentlyFocusedNode},focusTextInput:function(e){null!==e&&(this._currentlyFocusedNode=e,document.activeElement!==e&&r.default.focus(e))},blurTextInput:function(e){null!==e&&(this._currentlyFocusedNode=null,document.activeElement===e&&r.default.blur(e))}}},8345:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=!("undefined"===typeof window||!window.document||!window.document.createElement)},1175:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(2600);const i=function(){r.default.blurTextInput(r.default.currentlyFocusedField())}},8532:(e,t,n)=>{"use strict";n.r(t),n.d(t,{accessibilityProps:()=>i,clickProps:()=>a,defaultProps:()=>r,focusProps:()=>o,keyboardProps:()=>s,mouseProps:()=>u,styleProps:()=>c,touchProps:()=>l});var r={children:!0,dataSet:!0,dir:!0,id:!0,ref:!0,suppressHydrationWarning:!0,tabIndex:!0,testID:!0,focusable:!0,nativeID:!0},i={"aria-activedescendant":!0,"aria-atomic":!0,"aria-autocomplete":!0,"aria-busy":!0,"aria-checked":!0,"aria-colcount":!0,"aria-colindex":!0,"aria-colspan":!0,"aria-controls":!0,"aria-current":!0,"aria-describedby":!0,"aria-details":!0,"aria-disabled":!0,"aria-errormessage":!0,"aria-expanded":!0,"aria-flowto":!0,"aria-haspopup":!0,"aria-hidden":!0,"aria-invalid":!0,"aria-keyshortcuts":!0,"aria-label":!0,"aria-labelledby":!0,"aria-level":!0,"aria-live":!0,"aria-modal":!0,"aria-multiline":!0,"aria-multiselectable":!0,"aria-orientation":!0,"aria-owns":!0,"aria-placeholder":!0,"aria-posinset":!0,"aria-pressed":!0,"aria-readonly":!0,"aria-required":!0,role:!0,"aria-roledescription":!0,"aria-rowcount":!0,"aria-rowindex":!0,"aria-rowspan":!0,"aria-selected":!0,"aria-setsize":!0,"aria-sort":!0,"aria-valuemax":!0,"aria-valuemin":!0,"aria-valuenow":!0,"aria-valuetext":!0,accessibilityActiveDescendant:!0,accessibilityAtomic:!0,accessibilityAutoComplete:!0,accessibilityBusy:!0,accessibilityChecked:!0,accessibilityColumnCount:!0,accessibilityColumnIndex:!0,accessibilityColumnSpan:!0,accessibilityControls:!0,accessibilityCurrent:!0,accessibilityDescribedBy:!0,accessibilityDetails:!0,accessibilityDisabled:!0,accessibilityErrorMessage:!0,accessibilityExpanded:!0,accessibilityFlowTo:!0,accessibilityHasPopup:!0,accessibilityHidden:!0,accessibilityInvalid:!0,accessibilityKeyShortcuts:!0,accessibilityLabel:!0,accessibilityLabelledBy:!0,accessibilityLevel:!0,accessibilityLiveRegion:!0,accessibilityModal:!0,accessibilityMultiline:!0,accessibilityMultiSelectable:!0,accessibilityOrientation:!0,accessibilityOwns:!0,accessibilityPlaceholder:!0,accessibilityPosInSet:!0,accessibilityPressed:!0,accessibilityReadOnly:!0,accessibilityRequired:!0,accessibilityRole:!0,accessibilityRoleDescription:!0,accessibilityRowCount:!0,accessibilityRowIndex:!0,accessibilityRowSpan:!0,accessibilitySelected:!0,accessibilitySetSize:!0,accessibilitySort:!0,accessibilityValueMax:!0,accessibilityValueMin:!0,accessibilityValueNow:!0,accessibilityValueText:!0},a={onClick:!0,onAuxClick:!0,onContextMenu:!0,onGotPointerCapture:!0,onLostPointerCapture:!0,onPointerCancel:!0,onPointerDown:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOut:!0,onPointerOver:!0,onPointerUp:!0},o={onBlur:!0,onFocus:!0},s={onKeyDown:!0,onKeyDownCapture:!0,onKeyUp:!0,onKeyUpCapture:!0},u={onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0},l={onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0},c={style:!0}},4047:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=function(e){if(null!=e&&(1===e.nodeType&&"function"===typeof e.getBoundingClientRect))return e.getBoundingClientRect()}},3768:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});n(6665);function r(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";function r(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&!0===t[r]&&(n[r]=e[r]);return n}n.r(t),n.d(t,{default:()=>r})},9965:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(542),i=n(7640),a=n(8345),o="__reactLayoutHandler",s=(a.default,null);function u(e,t){var n=(a.default&&"undefined"!==typeof window.ResizeObserver&&null==s&&(s=new window.ResizeObserver((function(e){e.forEach((function(e){var t=e.target,n=t[o];"function"===typeof n&&i.default.measure(t,(function(t,r,i,a,o,s){var u={nativeEvent:{layout:{x:t,y:r,width:i,height:a,left:o,top:s}},timeStamp:Date.now()};Object.defineProperty(u.nativeEvent,"target",{enumerable:!0,get:function(){return e.target}}),n(u)}))}))}))),s);(0,r.default)((function(){var n=e.current;null!=n&&(n[o]=t)}),[e,t]),(0,r.default)((function(){var t=e.current;return null!=t&&null!=n&&("function"===typeof t[o]?n.observe(t):n.unobserve(t)),function(){null!=t&&null!=n&&n.unobserve(t)}}),[e,n])}},542:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(6665);const i=n(8345).default?r.useLayoutEffect:r.useEffect},5794:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LocaleProvider:()=>l,getLocaleDirection:()=>u,useLocaleContext:()=>c});var r=n(6665),i=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),a=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","far","glk","he","iw","khw","ks","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]),o=new Map;var s=(0,r.createContext)({direction:"ltr",locale:"en-US"});function u(e){return function(e){var t=o.get(e);if(t)return t;var n=!1;if(Intl.Locale){var r=new Intl.Locale(e).maximize().script;n=i.has(r)}else{var s=e.split("-")[0];n=a.has(s)}return o.set(e,n),n}(e)?"rtl":"ltr"}function l(e){var t=e.direction,n=e.locale,i=e.children;return t||n?r.createElement(s.Provider,{children:i,value:{direction:n?u(n):t,locale:n}}):i}function c(){return(0,r.useContext)(s)}},769:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(6665),i=n(3768);function a(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(7640),i=n(9170);function a(e){e.pointerEvents,e.style;return(0,i.default)((function(){return function(e){null!=e&&(e.measure=function(t){return r.default.measure(e,t)},e.measureLayout=function(t,n,i){return r.default.measureLayout(e,t,i,n)},e.measureInWindow=function(t){return r.default.measureInWindow(e,t)})}}))}},7442:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>M});var r=n(3029),i=n(2901),a="DELAY",o="ERROR",s="LONG_PRESS_DETECTED",u="NOT_RESPONDER",l="RESPONDER_ACTIVE_LONG_PRESS_START",c="RESPONDER_ACTIVE_PRESS_START",f="RESPONDER_INACTIVE_PRESS_START",d="RESPONDER_RELEASE",h="RESPONDER_TERMINATED",p=Object.freeze({NOT_RESPONDER:{DELAY:o,RESPONDER_GRANT:f,RESPONDER_RELEASE:o,RESPONDER_TERMINATED:o,LONG_PRESS_DETECTED:o},RESPONDER_INACTIVE_PRESS_START:{DELAY:c,RESPONDER_GRANT:o,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,LONG_PRESS_DETECTED:o},RESPONDER_ACTIVE_PRESS_START:{DELAY:o,RESPONDER_GRANT:o,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,LONG_PRESS_DETECTED:l},RESPONDER_ACTIVE_LONG_PRESS_START:{DELAY:o,RESPONDER_GRANT:o,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,LONG_PRESS_DETECTED:l},ERROR:{DELAY:u,RESPONDER_GRANT:f,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,LONG_PRESS_DETECTED:u}}),v=function(e){return e.getAttribute("role")},m=function(e){return e.tagName.toLowerCase()},b=function(e){return e===c||e===l},y=function(e){return"button"===v(e)},g=function(e){return e===f||e===c||e===l},_=function(e){var t=e.key,n=e.target,r=" "===t||"Spacebar"===t,i="button"===m(n)||y(n);return"Enter"===t||r&&i},w=(0,i.default)((function e(t){(0,r.default)(this,e),this._eventHandlers=null,this._isPointerTouch=!1,this._longPressDelayTimeout=null,this._longPressDispatched=!1,this._pressDelayTimeout=null,this._pressOutDelayTimeout=null,this._touchState=u,this._responderElement=null,this.configure(t)}),[{key:"configure",value:function(e){this._config=e}},{key:"reset",value:function(){this._cancelLongPressDelayTimeout(),this._cancelPressDelayTimeout(),this._cancelPressOutDelayTimeout()}},{key:"getEventHandlers",value:function(){return null==this._eventHandlers&&(this._eventHandlers=this._createEventHandlers()),this._eventHandlers}},{key:"_createEventHandlers",value:function(){var e=this,t=function(t,n){t.persist(),e._cancelPressOutDelayTimeout(),e._longPressDispatched=!1,e._selectionTerminated=!1,e._touchState=u,e._isPointerTouch="touchstart"===t.nativeEvent.type,e._receiveSignal("RESPONDER_GRANT",t);var r=S(e._config.delayPressStart,0,50);!1!==n&&r>0?e._pressDelayTimeout=setTimeout((function(){e._receiveSignal(a,t)}),r):e._receiveSignal(a,t);var i=S(e._config.delayLongPress,10,450);e._longPressDelayTimeout=setTimeout((function(){e._handleLongPress(t)}),i+r)},n=function(t){e._receiveSignal(d,t)},r=function t(r){var i=e._config.onPress,a=r.target;if(e._touchState!==u&&_(r)){n(r),document.removeEventListener("keyup",t);var o=a.getAttribute("role"),s=m(a),l="link"===o||"a"===s||"button"===s||"input"===s||"select"===s||"textarea"===s,c=e._responderElement===a;null!=i&&!l&&c&&i(r),e._responderElement=null}};return{onStartShouldSetResponder:function(t){var n=e._config.disabled;return n&&y(t.currentTarget)&&t.stopPropagation(),null==n||!n},onKeyDown:function(n){var i=e._config.disabled,a=n.key,o=n.target;if(!i&&_(n)){e._touchState===u&&(t(n,!1),e._responderElement=o,document.addEventListener("keyup",r));var s=" "===a||"Spacebar"===a,l=v(o);s&&("button"===l||"menuitem"===l)&&"button"!==m(o)&&n.preventDefault(),n.stopPropagation()}},onResponderGrant:function(e){return t(e)},onResponderMove:function(t){null!=e._config.onPressMove&&e._config.onPressMove(t);var n=E(t);if(null!=e._touchActivatePosition){var r=e._touchActivatePosition.pageX-n.pageX,i=e._touchActivatePosition.pageY-n.pageY;Math.hypot(r,i)>10&&e._cancelLongPressDelayTimeout()}},onResponderRelease:function(e){return n(e)},onResponderTerminate:function(t){"selectionchange"===t.nativeEvent.type&&(e._selectionTerminated=!0),e._receiveSignal(h,t)},onResponderTerminationRequest:function(t){var n=e._config,r=n.cancelable,i=n.disabled,a=n.onLongPress;return!(!i&&null!=a&&e._isPointerTouch&&"contextmenu"===t.nativeEvent.type)&&(null==r||r)},onClick:function(t){var n=e._config,r=n.disabled,i=n.onPress;r?y(t.currentTarget)&&t.stopPropagation():(t.stopPropagation(),e._longPressDispatched||e._selectionTerminated?t.preventDefault():null!=i&&!1===t.altKey&&i(t))},onContextMenu:function(t){var n=e._config,r=n.disabled,i=n.onLongPress;r?y(t.currentTarget)&&t.stopPropagation():null!=i&&e._isPointerTouch&&!t.defaultPrevented&&(t.preventDefault(),t.stopPropagation())}}}},{key:"_receiveSignal",value:function(e,t){var n=this._touchState,r=null;null!=p[n]&&(r=p[n][e]),this._touchState===u&&e===d||(null==r||r===o?console.error("PressResponder: Invalid signal "+e+" for state "+n+" on responder"):n!==r&&(this._performTransitionSideEffects(n,r,e,t),this._touchState=r))}},{key:"_performTransitionSideEffects",value:function(e,t,n,r){var i=this;if(function(e){return e===h||e===d}(n)&&(setTimeout((function(){i._isPointerTouch=!1}),0),this._touchActivatePosition=null,this._cancelLongPressDelayTimeout()),g(e)&&n===s){var a=this._config.onLongPress;null!=a&&null==r.nativeEvent.key&&(a(r),this._longPressDispatched=!0)}var o=b(e),u=b(t);if(!o&&u?this._activate(r):o&&!u&&this._deactivate(r),g(e)&&n===d){var c=this._config,f=c.onLongPress;null!=c.onPress&&(null!=f&&e===l||u||o||(this._activate(r),this._deactivate(r)))}this._cancelPressDelayTimeout()}},{key:"_activate",value:function(e){var t=this._config,n=t.onPressChange,r=t.onPressStart,i=E(e);this._touchActivatePosition={pageX:i.pageX,pageY:i.pageY},null!=r&&r(e),null!=n&&n(!0)}},{key:"_deactivate",value:function(e){var t=this._config,n=t.onPressChange,r=t.onPressEnd;function i(){null!=r&&r(e),null!=n&&n(!1)}var a=S(this._config.delayPressEnd);a>0?this._pressOutDelayTimeout=setTimeout((function(){i()}),a):i()}},{key:"_handleLongPress",value:function(e){this._touchState!==c&&this._touchState!==l||this._receiveSignal(s,e)}},{key:"_cancelLongPressDelayTimeout",value:function(){null!=this._longPressDelayTimeout&&(clearTimeout(this._longPressDelayTimeout),this._longPressDelayTimeout=null)}},{key:"_cancelPressDelayTimeout",value:function(){null!=this._pressDelayTimeout&&(clearTimeout(this._pressDelayTimeout),this._pressDelayTimeout=null)}},{key:"_cancelPressOutDelayTimeout",value:function(){null!=this._pressOutDelayTimeout&&(clearTimeout(this._pressOutDelayTimeout),this._pressOutDelayTimeout=null)}}]);function S(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),Math.max(t,null!==e&&void 0!==e?e:n)}function E(e){var t=e.nativeEvent,n=t.changedTouches,r=t.touches;return null!=r&&r.length>0?r[0]:null!=n&&n.length>0?n[0]:e.nativeEvent}var k=n(6665);function M(e,t){var n=(0,k.useRef)(null);null==n.current&&(n.current=new w(t));var r=n.current;return(0,k.useEffect)((function(){r.configure(t)}),[t,r]),(0,k.useEffect)((function(){return function(){r.reset()}}),[r]),(0,k.useDebugValue)(t),r.getEventHandlers()}},6399:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>oe});var r=n(6665),i=n(4047),a=function(){},o={},s=[];function u(e){return e>20?e%20:e}function l(e,t){var n,r,l,c=!1,f=e.changedTouches,d=e.type,h=!0===e.metaKey,p=!0===e.shiftKey,v=f&&f[0].force||0,m=u(f&&f[0].identifier||0),b=f&&f[0].clientX||e.clientX,y=f&&f[0].clientY||e.clientY,g=f&&f[0].pageX||e.pageX,_=f&&f[0].pageY||e.pageY,w="function"===typeof e.preventDefault?e.preventDefault.bind(e):a,S=e.timeStamp;function E(e){return Array.prototype.slice.call(e).map((function(e){return{force:e.force,identifier:u(e.identifier),get locationX(){return R(e.clientX)},get locationY(){return C(e.clientY)},pageX:e.pageX,pageY:e.pageY,target:e.target,timestamp:S}}))}if(null!=f)r=E(f),l=E(e.touches);else{var k=[{force:v,identifier:m,get locationX(){return R(b)},get locationY(){return C(y)},pageX:g,pageY:_,target:e.target,timestamp:S}];r=k,l="mouseup"===d||"dragstart"===d?s:k}var M={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:e.defaultPrevented,dispatchConfig:o,eventPhase:e.eventPhase,isDefaultPrevented:function(){return e.defaultPrevented},isPropagationStopped:function(){return c},isTrusted:e.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:h,shiftKey:p,changedTouches:r,force:v,identifier:m,get locationX(){return R(b)},get locationY(){return C(y)},pageX:g,pageY:_,target:e.target,timestamp:S,touches:l,type:d},persist:a,preventDefault:w,stopPropagation:function(){c=!0},target:e.target,timeStamp:S,touchHistory:t.touchHistory};function R(e){if(n=n||(0,i.default)(M.currentTarget))return e-n.left}function C(e){if(n=n||(0,i.default)(M.currentTarget))return e-n.top}return M}var c="mousedown",f="mousemove",d="mouseup",h="dragstart",p="touchstart",v="touchmove",m="touchend",b="touchcancel",y="scroll",g="select",_="selectionchange";function w(e){return e===p||e===c}function S(e){return e===v||e===f}function E(e){return e===m||e===d||k(e)}function k(e){return e===b||e===h}var M="__reactResponderId";function R(e){for(var t=[];null!=e&&e!==document.body;)t.push(e),e=e.parentNode;return t}function C(e){return null!=e?e[M]:null}function x(e){for(var t=[],n=[],r=function(e){return"selectionchange"===e.type?R(window.getSelection().anchorNode):null!=e.composedPath?e.composedPath():R(e.target)}(e),i=0;i=1&&"\n"!==t&&i}():"select"===e.type}var T=n(3029),P=n(2901),I=!1,O=20;function L(e){return e.timeStamp||e.timestamp}function N(e){var t=e.identifier;return null==t&&console.error("Touch object is missing identifier."),I&&t>O&&console.error("Touch identifier %s is greater than maximum supported %s which causes performance issues backfilling array locations for all of the indices.",t,O),t}function D(e,t){var n=N(e),r=t.touchBank[n];r?function(e,t){e.touchActive=!0,e.startPageX=t.pageX,e.startPageY=t.pageY,e.startTimeStamp=L(t),e.currentPageX=t.pageX,e.currentPageY=t.pageY,e.currentTimeStamp=L(t),e.previousPageX=t.pageX,e.previousPageY=t.pageY,e.previousTimeStamp=L(t)}(r,e):t.touchBank[n]=function(e){return{touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:L(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:L(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:L(e)}}(e),t.mostRecentTimeStamp=L(e)}function B(e){return JSON.stringify({identifier:e.identifier,pageX:e.pageX,pageY:e.pageY,timestamp:L(e)})}function j(e){var t=e.touchBank,n=JSON.stringify(t.slice(0,O));return t.length>O&&(n+=" (original size: "+t.length+")"),n}var z=(0,P.default)((function e(){(0,T.default)(this,e),this._touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}}),[{key:"recordTouchTrack",value:function(e,t){var n=this._touchHistory;if(S(e))t.changedTouches.forEach((function(e){return function(e,t){var n=t.touchBank[N(e)];n?(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=L(e),t.mostRecentTimeStamp=L(e)):console.warn("Cannot record touch move without a touch start.\n","Touch Move: "+B(e)+"\n","Touch Bank: "+j(t))}(e,n)}));else if(w(e))t.changedTouches.forEach((function(e){return D(e,n)})),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches&&(n.indexOfSingleActiveTouch=t.touches[0].identifier);else if(E(e)&&(t.changedTouches.forEach((function(e){return function(e,t){var n=t.touchBank[N(e)];n?(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=L(e),t.mostRecentTimeStamp=L(e)):console.warn("Cannot record touch end without a touch start.\n","Touch End: "+B(e)+"\n","Touch Bank: "+j(t))}(e,n)})),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches)){for(var r=n.touchBank,i=0;i1)&&(G=!1),!("mousedown"===t&&G||"mousemove"===t&&G||"mousemove"===t&&Y<1))if(G&&"mouseup"===t)0===Y&&(G=!1);else{var r=w(t)&&function(e){var t=e.altKey,n=e.button,r=e.buttons,i=e.ctrlKey,a=e.type,o=!1===t&&!1===i;return!!("touchstart"===a||"touchmove"===a||"mousedown"===a&&(0===n||1===r)&&o||"mousemove"===a&&1===r&&o)}(e),i=S(t),a=E(t),o=function(e){return e===y}(t),s=function(e){return e===g||e===_}(t),u=l(e,X);(r||i||a)&&(e.touches?Y=e.touches.length:r?Y=1:a&&(Y=0),X.recordTouchTrack(t,u.nativeEvent));var c,f=x(e),d=!1;if(r||i||o&&Y>0){var h=$.idPath,p=f.idPath;if(null!=h&&null!=p){var v=function(e,t){var n=e.length,r=t.length;if(0===n||0===r||e[n-1]!==t[r-1])return null;var i=e[0],a=0,o=t[0],s=0;n-r>0&&(i=e[a=n-r],n=r),r-n>0&&(o=t[s=r-n],r=n);for(var u=n;u--;){if(i===o)return i;i=e[a++],o=t[s++]}return null}(h,p);if(null!=v){var m=p.indexOf(v)+(v===$.id?1:0);f={idPath:p.slice(m),nodePath:f.nodePath.slice(m)}}else f=null}null!=f&&(c=function(e,t,n){var r=q[t.type];if(null!=r){for(var i=e.idPath,a=e.nodePath,o=r[0],s=r[1],u=r[2].bubbles,l=function(e,t,r){var a=Z(e)[r];if(null!=a&&(n.currentTarget=t,!0===a(n)))return{id:e,node:t,idPath:i.slice(i.indexOf(e))}},c=i.length-1;c>=0;c--){var f=l(i[c],a[c],o);if(null!=f)return f;if(!0===n.isPropagationStopped())return}if(u)for(var d=0;d{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(6665),i="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():Object.freeze({});function a(e){var t=r.useRef(i);return t.current===i&&(t.current=e()),t.current}},2155:(e,t,n)=>{"use strict";function r(e,t){0}n.r(t),n.d(t,{warnOnce:()=>r})},9348:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(3029),i=n(2901),a=n(3860),o=n(6077),s=n.n(o),u=(0,i.default)((function e(t){(0,r.default)(this,e)}),[{key:"addListener",value:function(e,t,n){var r,i=this;null==(r=this._nativeModule)||r.addListener(e);var o=a.default.addListener(e,t,n);return{remove:function(){var e;null!=o&&(null==(e=i._nativeModule)||e.removeListeners(1),o.remove(),o=null)}}}},{key:"removeListener",value:function(e,t){var n;null==(n=this._nativeModule)||n.removeListeners(1),a.default.removeListener(e,t)}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{"use strict";n.r(t),n.d(t,{default:()=>r});const r=new(n(3684).default)},2853:(e,t,n)=>{"use strict";function r(e,t,n,r){void 0===r&&(r=1);for(var i=t.getItemCount(t.data),a=[],o=0;o>>1),f=n(c,t),d=f.offset*r,h=(f.offset+f.length)*r;if(0===c&&sh)){a[o]=c;break}u=c+1}}return a}function i(e,t){return t.last-t.first+1-Math.max(0,1+Math.min(t.last,e.last)-Math.max(t.first,e.first))}function a(e,t,n,a,o,s){var u=e.getItemCount(e.data);if(0===u)return{first:0,last:-1};var l=s.offset,c=s.velocity,f=s.visibleLength,d=s.zoomScale,h=void 0===d?1:d,p=Math.max(0,l),v=p+f,m=(n-1)*f,b=c>1?"after":c<-1?"before":"none",y=Math.max(0,p-.5*m),g=Math.max(0,v+.5*m);if(o(u-1,e).offset*h=k);){var C=R>=t,x=S<=a.first||S>a.last,A=S>w&&(!C||!x),T=E>=a.last||E=S&&S>=0&&E=w&&E<=k&&S<=M.first&&E>=M.last))throw new Error("Bad window calculation "+JSON.stringify({first:S,last:E,itemCount:u,overscanFirst:w,overscanLast:k,visible:M}));return{first:S,last:E}}function o(e,t){return"object"===typeof e&&null!=(null==e?void 0:e.key)?e.key:"object"===typeof e&&null!=(null==e?void 0:e.id)?e.id:String(t)}n.r(t),n.d(t,{computeWindowedRenderLimits:()=>a,elementsThatOverlapOffsets:()=>r,keyExtractor:()=>o,newRangeCount:()=>i})},5191:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ie});var r=n(5458),i=n(4467),a=n(3029),o=n(2901),s=n(388),u=n(3954),l=n(5501),c=n(1003),f=n(8168),d=n(9379),h=n(2660),p=n(2772),v=n(3929),m=n(3668),b=n(3816);const y=(0,o.default)((function e(t,n){(0,a.default)(this,e),this._delay=n,this._callback=t}),[{key:"dispose",value:function(e){void 0===e&&(e={abort:!1}),this._taskHandle&&(this._taskHandle.cancel(),e.abort||this._callback(),this._taskHandle=null)}},{key:"schedule",value:function(){var e=this;if(!this._taskHandle){var t=setTimeout((function(){e._taskHandle=b.default.runAfterInteractions((function(){e._taskHandle=null,e._callback()}))}),this._delay);this._taskHandle={cancel:function(){return clearTimeout(t)}}}}}]);const g=function(e,t,n){return tn?n:t};const _=function(){var e;return(e=console).log.apply(e,arguments)};var w=n(6077),S=n.n(w),E=(0,o.default)((function e(t){(0,a.default)(this,e),S()(t>=0,"CellRenderMask must contain a non-negative number os cells"),this._numCells=t,this._regions=0===t?[]:[{first:0,last:t-1,isSpacer:!0}]}),[{key:"enumerateRegions",value:function(){return this._regions}},{key:"addCells",value:function(e){var t;if(S()(e.first>=0&&e.first=-1&&e.last=e.first-1,"CellRenderMask.addCells called with invalid cell range"),!(e.lastf.last&&(s.isSpacer?c.push({first:f.last+1,last:s.last,isSpacer:!0}):f.last=s.last);var h=[].concat(l,[f],c),p=u-a+1;(t=this._regions).splice.apply(t,[a,p].concat((0,r.default)(h)))}}}},{key:"numCells",value:function(){return this._numCells}},{key:"equals",value:function(e){return this._numCells===e._numCells&&this._regions.length===e._regions.length&&this._regions.every((function(t,n){return t.first===e._regions[n].first&&t.last===e._regions[n].last&&t.isSpacer===e._regions[n].isSpacer}))}},{key:"_findRegion",value:function(e){for(var t=0,n=this._regions.length-1;t<=n;){var r=Math.floor((t+n)/2),i=this._regions[r];if(e>=i.first&&e<=i.last)return[i,r];ei.last&&(t=r+1)}S()(!1,"A region was not found containing cellIdx "+e)}}]),k=(0,o.default)((function e(){(0,a.default)(this,e),this._cellKeyToChildren=new Map,this._childrenToCellKey=new Map}),[{key:"add",value:function(e,t){var n;S()(!this._childrenToCellKey.has(e),"Trying to add already present child list");var r=null!==(n=this._cellKeyToChildren.get(t))&&void 0!==n?n:new Set;r.add(e),this._cellKeyToChildren.set(t,r),this._childrenToCellKey.set(e,t)}},{key:"remove",value:function(e){var t=this._childrenToCellKey.get(e);S()(null!=t,"Trying to remove non-present child list"),this._childrenToCellKey.delete(e);var n=this._cellKeyToChildren.get(t);S()(n,"_cellKeyToChildren should contain cellKey"),n.delete(e),0===n.size&&this._cellKeyToChildren.delete(t)}},{key:"forEach",value:function(e){for(var t,n=(0,c.default)(this._cellKeyToChildren.values());!(t=n()).done;)for(var r,i=t.value,a=(0,c.default)(i);!(r=a()).done;)e(r.value)}},{key:"forEachInCell",value:function(e,t){for(var n,r,i=null!==(n=this._cellKeyToChildren.get(e))&&void 0!==n?n:[],a=(0,c.default)(i);!(r=a()).done;)t(r.value)}},{key:"anyInCell",value:function(e,t){for(var n,r,i=null!==(n=this._cellKeyToChildren.get(e))&&void 0!==n?n:[],a=(0,c.default)(i);!(r=a()).done;)if(t(r.value))return!0;return!1}},{key:"size",value:function(){return this._childrenToCellKey.size}}]),M=(0,o.default)((function e(){(0,a.default)(this,e),this.any_blank_count=0,this.any_blank_ms=0,this.any_blank_speed_sum=0,this.mostly_blank_count=0,this.mostly_blank_ms=0,this.pixels_blank=0,this.pixels_sampled=0,this.pixels_scrolled=0,this.total_time_spent=0,this.sample_count=0})),R=[],C=10,x=null;const A=(0,o.default)((function e(t){(0,a.default)(this,e),this._anyBlankStartTime=null,this._enabled=!1,this._info=new M,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._getFrameMetrics=t,this._enabled=(x||0)>Math.random(),this._resetData()}),[{key:"activate",value:function(){this._enabled&&null==this._samplesStartTime&&(this._samplesStartTime=n.g.performance.now())}},{key:"deactivateAndFlush",value:function(){if(this._enabled){var e=this._samplesStartTime;if(null!=e)if(this._info.sample_count0&&(c=Math.min(s,Math.max(0,d.offset-a)));for(var h=0,p=t.last,v=this._getFrameMetrics(p,e);p>=t.first&&(!v||!v.inLayout);)v=this._getFrameMetrics(p,e),p--;if(v&&p0?(this._anyBlankStartTime=l,this._info.any_blank_speed_sum+=u,this._info.any_blank_count++,this._info.pixels_blank+=b,y>.5&&(this._mostlyBlankStartTime=l,this._info.mostly_blank_count++)):(u<.01||Math.abs(i)<1)&&this.deactivateAndFlush(),y}},{key:"enabled",value:function(){return this._enabled}},{key:"_resetData",value:function(){this._anyBlankStartTime=null,this._info=new M,this._mostlyBlankStartTime=null,this._samplesStartTime=null}}],[{key:"addListener",value:function(e){return null===x&&console.warn("Call `FillRateHelper.setSampleRate` before `addListener`."),R.push(e),{remove:function(){R=R.filter((function(t){return e!==t}))}}}},{key:"setSampleRate",value:function(e){x=e}},{key:"setMinSampleCount",value:function(e){C=e}}]);var T=n(991),P=n(6665);function I(e,t,n){return t=(0,u.default)(t),(0,s.default)(e,O()?Reflect.construct(t,n||[],(0,u.default)(e).constructor):t.apply(e,n))}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(O=function(){return!!e})()}var L=function(e){function t(e){var n;return(0,a.default)(this,t),(n=I(this,t,[e]))._inAsyncStateUpdate=!1,n._installSetStateHooks(),n}return(0,l.default)(t,e),(0,o.default)(t,[{key:"setState",value:function(e,n){var r=this;"function"===typeof e?(0,T.default)((0,u.default)(t.prototype),"setState",this).call(this,(function(t,n){var i;r._inAsyncStateUpdate=!0;try{i=e(t,n)}catch(a){throw a}finally{r._inAsyncStateUpdate=!1}return i}),n):(0,T.default)((0,u.default)(t.prototype),"setState",this).call(this,e,n)}},{key:"_installSetStateHooks",value:function(){var e=this,t=this.props,n=this.state;Object.defineProperty(this,"props",{get:function(){return S()(!e._inAsyncStateUpdate,'"this.props" should not be accessed during state updates'),t},set:function(e){t=e}}),Object.defineProperty(this,"state",{get:function(){return S()(!e._inAsyncStateUpdate,'"this.state" should not be acceessed during state updates'),n},set:function(e){n=e}})}}])}(P.PureComponent);function N(e,t,n,r,i,a){if(function(e,t,n){return e>=0&&t<=n&&t>e}(n,r,i))return!0;var o=function(e,t,n){var r=Math.min(t,n)-Math.max(e,0);return Math.max(0,r)}(n,r,i);return 100*(e?o/i:o/a)>=t}const D=(0,o.default)((function e(t){(0,a.default)(this,e),void 0===t&&(t={viewAreaCoveragePercentThreshold:0}),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=t}),[{key:"dispose",value:function(){this._timers.forEach(clearTimeout)}},{key:"computeViewableItems",value:function(e,t,n,r,i){var a=e.getItemCount(e.data),o=this._config,s=o.itemVisiblePercentThreshold,u=o.viewAreaCoveragePercentThreshold,l=null!=u,c=l?u:s;S()(null!=c&&null!=s!==(null!=u),"Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold");var f=[];if(0===a)return f;var d=-1,h=i||{first:0,last:a-1},p=h.first,v=h.last;if(v>=a)return console.warn("Invalid render range computing viewability "+JSON.stringify({renderRange:i,itemCount:a})),[];for(var m=p;m<=v;m++){var b=r(m,e);if(b){var y=b.offset-t,g=y+b.length;if(y0)d=m,N(l,c,y,g,n,b.length)&&f.push(m);else if(d>=0)break}}return f}},{key:"onUpdate",value:function(e,t,n,r,i,a,o){var s=this,u=e.getItemCount(e.data);if((!this._config.waitForInteraction||this._hasInteracted)&&0!==u&&r(0,e)){var l=[];if(u&&(l=this.computeViewableItems(e,t,n,r,o)),this._viewableIndices.length!==l.length||!this._viewableIndices.every((function(e,t){return e===l[t]})))if(this._viewableIndices=l,this._config.minimumViewTime){var c=setTimeout((function(){s._timers.delete(c),s._onUpdateSync(e,l,a,i)}),this._config.minimumViewTime);this._timers.add(c)}else this._onUpdateSync(e,l,a,i)}}},{key:"resetViewableIndices",value:function(){this._viewableIndices=[]}},{key:"recordInteraction",value:function(){this._hasInteracted=!0}},{key:"_onUpdateSync",value:function(e,t,n,r){var i=this;t=t.filter((function(e){return i._viewableIndices.includes(e)}));for(var a,o=this._viewableItems,s=new Map(t.map((function(t){var n=r(t,!0,e);return[n.key,n]}))),u=[],l=(0,c.default)(s);!(a=l()).done;){var f=a.value,h=f[0],p=f[1];o.has(h)||u.push(p)}for(var v,m=(0,c.default)(o);!(v=m()).done;){var b=v.value,y=b[0],g=b[1];s.has(y)||u.push((0,d.default)((0,d.default)({},g),{},{isViewable:!1}))}u.length>0&&(this._viewableItems=s,n({viewableItems:Array.from(s.values()),changed:u,viewabilityConfig:this._config}))}}]);var B=P.createContext(null);function j(e){var t=e.children,n=e.value,r=(0,P.useMemo)((function(){return{cellKey:null,getScrollMetrics:n.getScrollMetrics,horizontal:n.horizontal,getOutermostParentListRef:n.getOutermostParentListRef,registerAsNestedChild:n.registerAsNestedChild,unregisterAsNestedChild:n.unregisterAsNestedChild}}),[n.getScrollMetrics,n.horizontal,n.getOutermostParentListRef,n.registerAsNestedChild,n.unregisterAsNestedChild]);return P.createElement(B.Provider,{value:r},t)}function z(e){var t=e.cellKey,n=e.children,r=(0,P.useContext)(B),i=(0,P.useMemo)((function(){return null==r?null:(0,d.default)((0,d.default)({},r),{},{cellKey:t})}),[r,t]);return P.createElement(B.Provider,{value:i},n)}function U(e,t,n){return t=(0,u.default)(t),(0,s.default)(e,F()?Reflect.construct(t,n||[],(0,u.default)(e).constructor):t.apply(e,n))}function F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(F=function(){return!!e})()}var V=function(e){function t(){var e;return(0,a.default)(this,t),(e=U(this,t,arguments)).state={separatorProps:{highlighted:!1,leadingItem:e.props.item}},e._separators={highlight:function(){var t=e.props,n=t.cellKey,r=t.prevCellKey;e.props.onUpdateSeparators([n,r],{highlighted:!0})},unhighlight:function(){var t=e.props,n=t.cellKey,r=t.prevCellKey;e.props.onUpdateSeparators([n,r],{highlighted:!1})},updateProps:function(t,n){var r=e.props,i=r.cellKey,a=r.prevCellKey;e.props.onUpdateSeparators(["leading"===t?a:i],n)}},e._onLayout=function(t){e.props.onCellLayout&&e.props.onCellLayout(t,e.props.cellKey,e.props.index)},e}return(0,l.default)(t,e),(0,o.default)(t,[{key:"updateSeparatorProps",value:function(e){this.setState((function(t){return{separatorProps:(0,d.default)((0,d.default)({},t.separatorProps),e)}}))}},{key:"componentWillUnmount",value:function(){this.props.onUnmount(this.props.cellKey)}},{key:"_renderElement",value:function(e,t,n,r){return e&&t&&console.warn("VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take precedence over renderItem."),t?P.createElement(t,{item:n,index:r,separators:this._separators}):e?e({item:n,index:r,separators:this._separators}):void S()(!1,"VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.")}},{key:"render",value:function(){var e=this.props,t=e.CellRendererComponent,n=e.ItemSeparatorComponent,r=e.ListItemComponent,i=e.cellKey,a=e.horizontal,o=e.item,s=e.index,u=e.inversionStyle,l=e.onCellFocusCapture,c=e.onCellLayout,d=e.renderItem,h=this._renderElement(d,r,o,s),p=P.isValidElement(n)?n:n&&P.createElement(n,this.state.separatorProps),m=u?a?[H.rowReverse,u]:[H.columnReverse,u]:a?[H.row,u]:u,b=t?P.createElement(t,(0,f.default)({cellKey:i,index:s,item:o,style:m,onFocusCapture:l},c&&{onLayout:this._onLayout}),h,p):P.createElement(v.default,(0,f.default)({style:m,onFocusCapture:l},c&&{onLayout:this._onLayout}),h,p);return P.createElement(z,{cellKey:this.props.cellKey},b)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return{separatorProps:(0,d.default)((0,d.default)({},t.separatorProps),{},{leadingItem:e.item})}}}])}(P.Component),H=m.default.create({row:{flexDirection:"row"},rowReverse:{flexDirection:"row-reverse"},columnReverse:{flexDirection:"column-reverse"}}),q=n(2853),W=n(6076),K=n.n(W);function G(e,t,n){return t=(0,u.default)(t),(0,s.default)(e,Y()?Reflect.construct(t,n||[],(0,u.default)(e).constructor):t.apply(e,n))}function Y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Y=function(){return!!e})()}var $=!1,X="";function Q(e){return null!==e&&void 0!==e&&e}function Z(e){return null!==e&&void 0!==e?e:10}function J(e){return null!==e&&void 0!==e?e:2}function ee(e,t){return e*t/2}function te(e){return null!==e&&void 0!==e?e:21}var ne=function(e){function t(e){var n,r;if((0,a.default)(this,t),(n=G(this,t,[e]))._getScrollMetrics=function(){return n._scrollMetrics},n._getOutermostParentListRef=function(){return n._isNestedWithSameOrientation()?n.context.getOutermostParentListRef():n},n._registerAsNestedChild=function(e){n._nestedChildLists.add(e.ref,e.cellKey),n._hasInteracted&&e.ref.recordInteraction()},n._unregisterAsNestedChild=function(e){n._nestedChildLists.remove(e.ref)},n._onUpdateSeparators=function(e,t){e.forEach((function(e){var r=null!=e&&n._cellRefs[e];r&&r.updateSeparatorProps(t)}))},n._getSpacerKey=function(e){return e?"height":"width"},n._averageCellLength=0,n._cellRefs={},n._frames={},n._footerLength=0,n._hasTriggeredInitialScrollToIndex=!1,n._hasInteracted=!1,n._hasMore=!1,n._hasWarned={},n._headerLength=0,n._hiPriInProgress=!1,n._highestMeasuredFrameIndex=0,n._indicesToKeys=new Map,n._lastFocusedCellKey=null,n._nestedChildLists=new k,n._offsetFromParentVirtualizedList=0,n._prevParentOffset=0,n._scrollMetrics={contentLength:0,dOffset:0,dt:10,offset:0,timestamp:0,velocity:0,visibleLength:0,zoomScale:1},n._scrollRef=null,n._sentStartForContentLength=0,n._sentEndForContentLength=0,n._totalCellLength=0,n._totalCellsMeasured=0,n._viewabilityTuples=[],n._captureScrollRef=function(e){n._scrollRef=e},n._defaultRenderScrollComponent=function(e){var t,r=e.onRefresh;return n._isNestedWithSameOrientation()?P.createElement(v.default,e):r?(S()("boolean"===typeof e.refreshing,"`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `"+JSON.stringify(null!==(t=e.refreshing)&&void 0!==t?t:"undefined")+"`"),P.createElement(p.default,(0,f.default)({},e,{refreshControl:null==e.refreshControl?P.createElement(h.default,{refreshing:e.refreshing,onRefresh:r,progressViewOffset:e.progressViewOffset}):e.refreshControl}))):P.createElement(p.default,e)},n._onCellLayout=function(e,t,r){var i=e.nativeEvent.layout,a={offset:n._selectOffset(i),length:n._selectLength(i),index:r,inLayout:!0},o=n._frames[t];o&&a.offset===o.offset&&a.length===o.length&&r===o.index?n._frames[t].inLayout=!0:(n._totalCellLength+=a.length-(o?o.length:0),n._totalCellsMeasured+=o?0:1,n._averageCellLength=n._totalCellLength/n._totalCellsMeasured,n._frames[t]=a,n._highestMeasuredFrameIndex=Math.max(n._highestMeasuredFrameIndex,r),n._scheduleCellsToRenderUpdate()),n._triggerRemeasureForChildListsInCell(t),n._computeBlankness(),n._updateViewableItems(n.props,n.state.cellsAroundViewport)},n._onCellUnmount=function(e){delete n._cellRefs[e];var t=n._frames[e];t&&(n._frames[e]=(0,d.default)((0,d.default)({},t),{},{inLayout:!1}))},n._onLayout=function(e){n._isNestedWithSameOrientation()?n.measureLayoutRelativeToContainingList():n._scrollMetrics.visibleLength=n._selectLength(e.nativeEvent.layout),n.props.onLayout&&n.props.onLayout(e),n._scheduleCellsToRenderUpdate(),n._maybeCallOnEdgeReached()},n._onLayoutEmpty=function(e){n.props.onLayout&&n.props.onLayout(e)},n._onLayoutFooter=function(e){n._triggerRemeasureForChildListsInCell(n._getFooterCellKey()),n._footerLength=n._selectLength(e.nativeEvent.layout)},n._onLayoutHeader=function(e){n._headerLength=n._selectLength(e.nativeEvent.layout)},n._onContentSizeChange=function(e,t){e>0&&t>0&&null!=n.props.initialScrollIndex&&n.props.initialScrollIndex>0&&!n._hasTriggeredInitialScrollToIndex&&(null==n.props.contentOffset&&(n.props.initialScrollIndex500&&n._scrollMetrics.dt>500&&i>5*r&&!n._hasWarned.perf&&(_("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:u,prevDt:n._scrollMetrics.dt,contentLength:i}),n._hasWarned.perf=!0);var c=e.nativeEvent.zoomScale<0?1:e.nativeEvent.zoomScale;n._scrollMetrics={contentLength:i,dt:u,dOffset:o,offset:a,timestamp:t,velocity:l,visibleLength:r,zoomScale:c},n._updateViewableItems(n.props,n.state.cellsAroundViewport),n.props&&(n._maybeCallOnEdgeReached(),0!==l&&n._fillRateHelper.activate(),n._computeBlankness(),n._scheduleCellsToRenderUpdate())},n._onScrollBeginDrag=function(e){n._nestedChildLists.forEach((function(t){t._onScrollBeginDrag(e)})),n._viewabilityTuples.forEach((function(e){e.viewabilityHelper.recordInteraction()})),n._hasInteracted=!0,n.props.onScrollBeginDrag&&n.props.onScrollBeginDrag(e)},n._onScrollEndDrag=function(e){n._nestedChildLists.forEach((function(t){t._onScrollEndDrag(e)}));var t=e.nativeEvent.velocity;t&&(n._scrollMetrics.velocity=n._selectOffset(t)),n._computeBlankness(),n.props.onScrollEndDrag&&n.props.onScrollEndDrag(e)},n._onMomentumScrollBegin=function(e){n._nestedChildLists.forEach((function(t){t._onMomentumScrollBegin(e)})),n.props.onMomentumScrollBegin&&n.props.onMomentumScrollBegin(e)},n._onMomentumScrollEnd=function(e){n._nestedChildLists.forEach((function(t){t._onMomentumScrollEnd(e)})),n._scrollMetrics.velocity=0,n._computeBlankness(),n.props.onMomentumScrollEnd&&n.props.onMomentumScrollEnd(e)},n._updateCellsToRender=function(){n._updateViewableItems(n.props,n.state.cellsAroundViewport),n.setState((function(e,r){var i=n._adjustCellsAroundViewport(r,e.cellsAroundViewport),a=t._createRenderMask(r,i,n._getNonViewportRenderRegions(r));return i.first===e.cellsAroundViewport.first&&i.last===e.cellsAroundViewport.last&&a.equals(e.renderMask)?null:{cellsAroundViewport:i,renderMask:a}}))},n._createViewToken=function(e,t,r){var i=r.data,a=(0,r.getItem)(i,e);return{index:e,item:a,key:n._keyExtractor(a,e,r),isViewable:t}},n._getOffsetApprox=function(e,t){if(Number.isInteger(e))return n.__getFrameMetricsApprox(e,t).offset;var r=n.__getFrameMetricsApprox(Math.floor(e),t),i=e-Math.floor(e);return r.offset+i*r.length},n.__getFrameMetricsApprox=function(e,t){var r=n._getFrameMetrics(e,t);if(r&&r.index===e)return r;var i=t.data,a=t.getItemCount,o=t.getItemLayout;return S()(e>=0&&e=0&&e=r||n._keyExtractor(e.getItem(e.data,t),t,e)!==n._lastFocusedCellKey)return[];for(var i=t,a=0,o=i-1;o>=0&&ai,o=n.props.horizontal?e.deltaX||e.wheelDeltaX:e.deltaY||e.wheelDeltaY,s=o;a&&(s=o<0?Math.min(o+t,0):Math.max(o-(r-i-t),0));var u=o-s;if(n.props.inverted&&n._scrollRef&&n._scrollRef.getScrollableNode){var l=n._scrollRef.getScrollableNode();if(n.props.horizontal){e.target.scrollLeft+=u;var c=l.scrollLeft-s;l.scrollLeft=n.props.getItemLayout?c:Math.min(c,n._totalCellLength)}else{e.target.scrollTop+=u;var f=l.scrollTop-s;l.scrollTop=n.props.getItemLayout?f:Math.min(f,n._totalCellLength)}e.preventDefault()}},n}return(0,l.default)(t,e),(0,o.default)(t,[{key:"scrollToEnd",value:function(e){var t=!e||e.animated,n=this.props.getItemCount(this.props.data)-1;if(!(n<0)){var r=this.__getFrameMetricsApprox(n,this.props),i=Math.max(0,r.offset+r.length+this._footerLength-this._scrollMetrics.visibleLength);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(Q(this.props.horizontal)?{x:i,animated:t}:{y:i,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}}},{key:"scrollToIndex",value:function(e){var t=this.props,n=t.data,r=t.horizontal,i=t.getItemCount,a=t.getItemLayout,o=t.onScrollToIndexFailed,s=e.animated,u=e.index,l=e.viewOffset,c=e.viewPosition;if(S()(u>=0,"scrollToIndex out of range: requested index "+u+" but minimum is 0"),S()(i(n)>=1,"scrollToIndex out of range: item length "+i(n)+" but minimum is 1"),S()(uthis._highestMeasuredFrameIndex)return S()(!!o,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),void o({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:u});var f=this.__getFrameMetricsApprox(Math.floor(u),this.props),d=Math.max(0,this._getOffsetApprox(u,this.props)-(c||0)*(this._scrollMetrics.visibleLength-f.length))-(l||0);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(r?{x:d,animated:s}:{y:d,animated:s}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}},{key:"scrollToItem",value:function(e){for(var t=e.item,n=this.props,r=n.data,i=n.getItem,a=(0,n.getItemCount)(r),o=0;o0,"VirtualizedList: The windowSize prop must be present and set to a value greater than 0."),S()(r,'VirtualizedList: The "getItemCount" prop must be provided');var o=r(i);null==a||this._hasTriggeredInitialScrollToIndex||!(a<0||o>0&&a>=o)||this._hasWarned.initialScrollIndex||(console.warn('initialScrollIndex "'+a+'" is not valid (list has '+o+" items)"),this._hasWarned.initialScrollIndex=!0)}},{key:"_adjustCellsAroundViewport",value:function(e,n){var r,i=e.data,a=e.getItemCount,o=J(e.onEndReachedThreshold),s=this._scrollMetrics,u=s.contentLength,l=s.offset,c=s.visibleLength,f=u-c-l;if(c<=0||u<=0)return n.last>=a(i)?t._constrainToItemCount(n,e):n;if(e.disableVirtualization){var d=f=Number.EPSILON)return n.last>=a(i)?t._constrainToItemCount(n,e):n;r=(0,q.computeWindowedRenderLimits)(e,Z(e.maxToRenderPerBatch),te(e.windowSize),n,this.__getFrameMetricsApprox,this._scrollMetrics),S()(r.last0){var h=this._findFirstChildWithMore(r.first,r.last);r.last=null!==h&&void 0!==h?h:r.last}return r}},{key:"_findFirstChildWithMore",value:function(e,t){for(var n=e;n<=t;n++){var r=this._indicesToKeys.get(n);if(null!=r&&this._nestedChildLists.anyInCell(r,(function(e){return e.hasMore()})))return n}return null}},{key:"componentDidMount",value:function(){this._isNestedWithSameOrientation()&&this.context.registerAsNestedChild({ref:this,cellKey:this.context.cellKey}),this.setupWebWheelHandler()}},{key:"componentWillUnmount",value:function(){this._isNestedWithSameOrientation()&&this.context.unregisterAsNestedChild({ref:this}),this._updateCellsToRenderBatcher.dispose({abort:!0}),this._viewabilityTuples.forEach((function(e){e.viewabilityHelper.dispose()})),this._fillRateHelper.deactivateAndFlush(),this.teardownWebWheelHandler()}},{key:"setupWebWheelHandler",value:function(){var e=this;this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode().addEventListener("wheel",this.invertedWheelEventHandler):setTimeout((function(){return e.setupWebWheelHandler()}),50)}},{key:"teardownWebWheelHandler",value:function(){this._scrollRef&&this._scrollRef.getScrollableNode&&this._scrollRef.getScrollableNode().removeEventListener("wheel",this.invertedWheelEventHandler)}},{key:"_pushCells",value:function(e,t,n,r,i,a){var o,s=this,u=this.props,l=u.CellRendererComponent,c=u.ItemSeparatorComponent,d=u.ListHeaderComponent,h=u.ListItemComponent,p=u.data,v=u.debug,m=u.getItem,b=u.getItemCount,y=u.getItemLayout,g=u.horizontal,_=u.renderItem,w=d?1:0,S=b(p)-1;i=Math.min(S,i);for(var E=function(){var r=m(p,k),i=s._keyExtractor(r,k,s.props);s._indicesToKeys.set(k,i),n.has(k+w)&&t.push(e.length);var u=null==y||v||s._fillRateHelper.enabled();e.push(P.createElement(V,(0,f.default)({CellRendererComponent:l,ItemSeparatorComponent:k0){$=!1,X="";for(var _,w=this._getSpacerKey(!u),S=this.state.renderMask.enumerateRegions(),E=function(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null}(S,(function(e){return e.isSpacer})),k=(0,c.default)(S);!(_=k()).done;){var M=_.value;if(M.isSpacer){if(this.props.disableVirtualization)continue;var R=M===E&&!this.props.getItemLayout?g(M.first-1,M.last,this._highestMeasuredFrameIndex):M.last,C=this.__getFrameMetricsApprox(M.first,this.props),x=this.__getFrameMetricsApprox(R,this.props),A=x.offset+x.length-C.offset;f.push(P.createElement(v.default,{key:"$spacer-"+M.first,style:(0,i.default)({},w,A)}))}else this._pushCells(f,p,h,M.first,M.last,l)}!this._hasWarned.keys&&$&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",X),this._hasWarned.keys=!0)}if(r){var T=P.isValidElement(r)?r:P.createElement(r,null);f.push(P.createElement(z,{cellKey:this._getFooterCellKey(),key:"$footer"},P.createElement(v.default,{onLayout:this._onLayoutFooter,style:[l,this.props.ListFooterComponentStyle]},T)))}var I,O=(0,d.default)((0,d.default)({},this.props),{},{onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout,onScroll:this._onScroll,onScrollBeginDrag:this._onScrollBeginDrag,onScrollEndDrag:this._onScrollEndDrag,onMomentumScrollBegin:this._onMomentumScrollBegin,onMomentumScrollEnd:this._onMomentumScrollEnd,scrollEventThrottle:(I=this.props.scrollEventThrottle,null!==I&&void 0!==I?I:50),invertStickyHeaders:void 0!==this.props.invertStickyHeaders?this.props.invertStickyHeaders:this.props.inverted,stickyHeaderIndices:p,style:l?[l,this.props.style]:this.props.style});this._hasMore=this.state.cellsAroundViewport.last0){var f=i-this.__getFrameMetricsApprox(t,this.props).offset;u=f<0||o<-2&&f=0&&n2&&d=0&&n.last>=n.first-1&&n.last0){for(var s=0,u=[n].concat((0,r.default)(null!==i&&void 0!==i?i:[]));s=0;a--)if(t.has(a+i)){n.addCells({first:a,last:a});break}}},{key:"getDerivedStateFromProps",value:function(e,n){if(e.getItemCount(e.data)===n.renderMask.numCells())return n;var r=t._constrainToItemCount(n.cellsAroundViewport,e);return{cellsAroundViewport:r,renderMask:t._createRenderMask(e,r)}}},{key:"_constrainToItemCount",value:function(e,t){var n=t.getItemCount(t.data),r=Math.min(n-1,e.last),i=Z(t.maxToRenderPerBatch);return{first:g(0,n-1-i,e.first),last:r}}}])}(L);ne.contextType=B;var re=m.default.create({verticallyInverted:{transform:"scaleY(-1)"},horizontallyInverted:{transform:"scaleX(-1)"},debug:{flex:1},debugOverlayBase:{position:"absolute",top:0,right:0},debugOverlay:{bottom:0,width:20,borderColor:"blue",borderWidth:1},debugOverlayFrame:{left:0,backgroundColor:"orange"},debugOverlayFrameLast:{left:0,borderColor:"green",borderWidth:2},debugOverlayFrameVis:{left:0,borderColor:"red",borderWidth:2}});const ie=ne},3684:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(5458),i=n(3029),a=(0,n(2901).default)((function e(){(0,i.default)(this,e),this._registry={}}),[{key:"addListener",value:function(e,t,n){var r=function(e,t){var n=e[t];return null==n&&(n=new Set,e[t]=n),n}(this._registry,e),i={context:n,listener:t,remove:function(){r.delete(i)}};return r.add(i),i}},{key:"emit",value:function(e){var t=this._registry[e];if(null!=t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a{"use strict";function t(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function n(e,n,r){var i=r<.5?r*(1+n):r+n-r*n,a=2*r-i,o=t(a,i,e+1/3),s=t(a,i,e),u=t(a,i,e-1/3);return Math.round(255*o)<<24|Math.round(255*s)<<16|Math.round(255*u)<<8}var r,i="[-+]?\\d*\\.?\\d+",a=i+"%";function o(){for(var e=arguments.length,t=new Array(e),n=0;n255?255:t}function c(e){return(parseFloat(e)%360+360)%360/360}function f(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function d(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}e.exports=function(e){if("number"===typeof e)return e>>>0===e&&e>=0&&e<=4294967295?e:null;if("string"!==typeof e)return null;var h,p=function(){void 0===r&&(r={rgb:new RegExp("rgb"+o(i,i,i)),rgba:new RegExp("rgba("+u(i,i,i,i)+"|"+s(i,i,i,i)+")"),hsl:new RegExp("hsl"+o(i,a,a)),hsla:new RegExp("hsla("+u(i,a,a,i)+"|"+s(i,a,a,i)+")"),hwb:new RegExp("hwb"+o(i,a,a)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/});return r}();if(h=p.hex6.exec(e))return parseInt(h[1]+"ff",16)>>>0;var v=function(e){switch(e){case"transparent":return 0;case"aliceblue":return 4042850303;case"antiquewhite":return 4209760255;case"aqua":case"cyan":return 16777215;case"aquamarine":return 2147472639;case"azure":return 4043309055;case"beige":return 4126530815;case"bisque":return 4293182719;case"black":return 255;case"blanchedalmond":return 4293643775;case"blue":return 65535;case"blueviolet":return 2318131967;case"brown":return 2771004159;case"burlywood":return 3736635391;case"burntsienna":return 3934150143;case"cadetblue":return 1604231423;case"chartreuse":return 2147418367;case"chocolate":return 3530104575;case"coral":return 4286533887;case"cornflowerblue":return 1687547391;case"cornsilk":return 4294499583;case"crimson":return 3692313855;case"darkblue":return 35839;case"darkcyan":return 9145343;case"darkgoldenrod":return 3095792639;case"darkgray":case"darkgrey":return 2846468607;case"darkgreen":return 6553855;case"darkkhaki":return 3182914559;case"darkmagenta":return 2332068863;case"darkolivegreen":return 1433087999;case"darkorange":return 4287365375;case"darkorchid":return 2570243327;case"darkred":return 2332033279;case"darksalmon":return 3918953215;case"darkseagreen":return 2411499519;case"darkslateblue":return 1211993087;case"darkslategray":case"darkslategrey":return 793726975;case"darkturquoise":return 13554175;case"darkviolet":return 2483082239;case"deeppink":return 4279538687;case"deepskyblue":return 12582911;case"dimgray":case"dimgrey":return 1768516095;case"dodgerblue":return 512819199;case"firebrick":return 2988581631;case"floralwhite":return 4294635775;case"forestgreen":return 579543807;case"fuchsia":case"magenta":return 4278255615;case"gainsboro":return 3705462015;case"ghostwhite":return 4177068031;case"gold":return 4292280575;case"goldenrod":return 3668254975;case"gray":case"grey":return 2155905279;case"green":return 8388863;case"greenyellow":return 2919182335;case"honeydew":return 4043305215;case"hotpink":return 4285117695;case"indianred":return 3445382399;case"indigo":return 1258324735;case"ivory":return 4294963455;case"khaki":return 4041641215;case"lavender":return 3873897215;case"lavenderblush":return 4293981695;case"lawngreen":return 2096890111;case"lemonchiffon":return 4294626815;case"lightblue":return 2916673279;case"lightcoral":return 4034953471;case"lightcyan":return 3774873599;case"lightgoldenrodyellow":return 4210742015;case"lightgray":case"lightgrey":return 3553874943;case"lightgreen":return 2431553791;case"lightpink":return 4290167295;case"lightsalmon":return 4288707327;case"lightseagreen":return 548580095;case"lightskyblue":return 2278488831;case"lightslategray":case"lightslategrey":return 2005441023;case"lightsteelblue":return 2965692159;case"lightyellow":return 4294959359;case"lime":return 16711935;case"limegreen":return 852308735;case"linen":return 4210091775;case"maroon":return 2147483903;case"mediumaquamarine":return 1724754687;case"mediumblue":return 52735;case"mediumorchid":return 3126187007;case"mediumpurple":return 2473647103;case"mediumseagreen":return 1018393087;case"mediumslateblue":return 2070474495;case"mediumspringgreen":return 16423679;case"mediumturquoise":return 1221709055;case"mediumvioletred":return 3340076543;case"midnightblue":return 421097727;case"mintcream":return 4127193855;case"mistyrose":return 4293190143;case"moccasin":return 4293178879;case"navajowhite":return 4292783615;case"navy":return 33023;case"oldlace":return 4260751103;case"olive":return 2155872511;case"olivedrab":return 1804477439;case"orange":return 4289003775;case"orangered":return 4282712319;case"orchid":return 3664828159;case"palegoldenrod":return 4008225535;case"palegreen":return 2566625535;case"paleturquoise":return 2951671551;case"palevioletred":return 3681588223;case"papayawhip":return 4293907967;case"peachpuff":return 4292524543;case"peru":return 3448061951;case"pink":return 4290825215;case"plum":return 3718307327;case"powderblue":return 2967529215;case"purple":return 2147516671;case"rebeccapurple":return 1714657791;case"red":return 4278190335;case"rosybrown":return 3163525119;case"royalblue":return 1097458175;case"saddlebrown":return 2336560127;case"salmon":return 4202722047;case"sandybrown":return 4104413439;case"seagreen":return 780883967;case"seashell":return 4294307583;case"sienna":return 2689740287;case"silver":return 3233857791;case"skyblue":return 2278484991;case"slateblue":return 1784335871;case"slategray":case"slategrey":return 1887473919;case"snow":return 4294638335;case"springgreen":return 16744447;case"steelblue":return 1182971135;case"tan":return 3535047935;case"teal":return 8421631;case"thistle":return 3636451583;case"tomato":return 4284696575;case"turquoise":return 1088475391;case"violet":return 4001558271;case"wheat":return 4125012991;case"white":return 4294967295;case"whitesmoke":return 4126537215;case"yellow":return 4294902015;case"yellowgreen":return 2597139199}return null}(e);return null!=v?v:(h=p.rgb.exec(e))?(l(h[1])<<24|l(h[2])<<16|l(h[3])<<8|255)>>>0:(h=p.rgba.exec(e))?void 0!==h[6]?(l(h[6])<<24|l(h[7])<<16|l(h[8])<<8|f(h[9]))>>>0:(l(h[2])<<24|l(h[3])<<16|l(h[4])<<8|f(h[5]))>>>0:(h=p.hex3.exec(e))?parseInt(h[1]+h[1]+h[2]+h[2]+h[3]+h[3]+"ff",16)>>>0:(h=p.hex8.exec(e))?parseInt(h[1],16)>>>0:(h=p.hex4.exec(e))?parseInt(h[1]+h[1]+h[2]+h[2]+h[3]+h[3]+h[4]+h[4],16)>>>0:(h=p.hsl.exec(e))?(255|n(c(h[1]),d(h[2]),d(h[3])))>>>0:(h=p.hsla.exec(e))?void 0!==h[6]?(n(c(h[6]),d(h[7]),d(h[8]))|f(h[9]))>>>0:(n(c(h[2]),d(h[3]),d(h[4]))|f(h[5]))>>>0:(h=p.hwb.exec(e))?(255|function(e,n,r){if(n+r>=1){var i=Math.round(255*n/(n+r));return i<<24|i<<16|i<<8}var a=t(0,1,e+1/3)*(1-n-r)+n,o=t(0,1,e)*(1-n-r)+n,s=t(0,1,e-1/3)*(1-n-r)+n;return Math.round(255*a)<<24|Math.round(255*o)<<16|Math.round(255*s)<<8}(c(h[1]),d(h[2]),d(h[3])))>>>0:null}},4251:(e,t,n)=>{var r=t;r.bignum=n(9367),r.define=n(1352).define,r.base=n(2980),r.constants=n(7138),r.decoders=n(9408),r.encoders=n(4152)},1352:(e,t,n)=>{var r=n(4251),i=n(8287);function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){var t;try{t=Object(function(){var e=new Error("Cannot find module 'vm'");throw e.code="MODULE_NOT_FOUND",e}())("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(n){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r.decoders[e])),this.decoders[e]},a.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r.encoders[e])),this.encoders[e]},a.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},1700:(e,t,n)=>{var r=n(8287),i=n(2980).Reporter,a=n(3880).Buffer;function o(e,t){i.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e}),this);else if("number"===typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"===typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(o,i),t.DecoderBuffer=o,o.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},o.prototype.restore=function(e){var t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var n=new o(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=s,s.prototype.join=function(e,t){return e||(e=new a(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):("number"===typeof this.value?e[t]=this.value:"string"===typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},2980:(e,t,n)=>{var r=t;r.Reporter=n(2827).Reporter,r.DecoderBuffer=n(1700).DecoderBuffer,r.EncoderBuffer=n(1700).EncoderBuffer,r.Node=n(8338)},8338:(e,t,n)=>{var r=n(2980).Reporter,i=n(2980).EncoderBuffer,a=n(2980).DecoderBuffer,o=n(8491),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function l(e,t){var n={};this._baseState=n,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=l;var c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){var e=this._baseState,t={};c.forEach((function(n){t[n]=e[n]}));var n=new this.constructor(t.parent);return n._baseState=t,n},l.prototype._wrap=function(){var e=this._baseState;u.forEach((function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},l.prototype._init=function(e){var t=this._baseState;o(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),o.equal(t.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(e){var t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(o(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(o(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!==typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){l.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){l.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return o(null===t.tag),t.tag=e,this._useArgs(n),this}})),l.prototype.use=function(e){o(e);var t=this._baseState;return o(null===t.use),t.use=e,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(e){var t=this._baseState;return o(null===t.default),t.default=e,t.optional=!0,this},l.prototype.explicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.explicit=e,this},l.prototype.implicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.implicit=e,this},l.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},l.prototype.key=function(e){var t=this._baseState;return o(null===t.key),t.key=e,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(e){var t=this._baseState;return o(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},l.prototype.contains=function(e){var t=this._baseState;return o(null===t.use),t.contains=e,this},l.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r,i=n.default,o=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var u=null;if(null!==n.explicit?u=n.explicit:null!==n.implicit?u=n.implicit:null!==n.tag&&(u=n.tag),null!==u||n.any){if(o=this._peekTag(e,u,n.any),e.isError(o))return o}else{var l=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),o=!0}catch(p){o=!1}e.restore(l)}}if(n.obj&&o&&(r=e.enterObject()),o){if(null!==n.explicit){var c=this._decodeTag(e,n.explicit);if(e.isError(c))return c;e=c}var f=e.offset;if(null===n.use&&null===n.choice){if(n.any)l=e.save();var d=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(d))return d;n.any?i=e.raw(l):e=d}if(t&&t.track&&null!==n.tag&&t.track(e.path(),f,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var h=new a(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(h,t)}}return n.obj&&o&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==o?null!==s&&e.exitKey(s):e.leaveKey(s,n.key,i),i},l.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},l.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),o(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},l.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some((function(a){var o=e.save(),s=n.choice[a];try{var u=s._decode(e,t);if(e.isError(u))return!1;r={type:a,value:u},i=!0}catch(l){return e.restore(o),!1}return!0}),this),i?r:e.error("Choice not matched")},l.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},l.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r.default||r.default!==e){var i=this._encodeValue(e,t,n);if(void 0!==i&&!this._skipDefault(i,t,n))return i}},l.prototype._encodeValue=function(e,t,n){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new r);var a=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var o=null,s=!1;if(i.any)a=this._createEncoderBuffer(e);else if(i.choice)a=this._encodeChoice(e,t);else if(i.contains)o=this._getUse(i.contains,n)._encode(e,t),s=!0;else if(i.children)o=i.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var r=t.enterKey(n._baseState.key);if("object"!==typeof e)return t.error("Child expected, but input is not object");var i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i}),this).filter((function(e){return e})),o=this._createEncoderBuffer(o);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,o=this._createEncoderBuffer(e.map((function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),u))}else null!==i.use?a=this._getUse(i.use,n)._encode(e,t):(o=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){var l=null!==i.implicit?i.implicit:i.tag,c=null===i.implicit?"universal":"context";null===l?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(a=this._encodeComposite(l,s,c,o))}return null!==i.explicit&&(a=this._encodeComposite(i.explicit,!1,"context",a)),a},l.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||o(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},l.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},l.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},l.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},2827:(e,t,n)=>{var r=n(8287);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof a},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof a;if(t=r?e:new a(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},4569:(e,t,n)=>{var r=n(7138);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r._reverse(t.tag)},7138:(e,t,n)=>{var r=t;r._reverse=function(e){var t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);var r=e[n];t[r]=n})),t},r.der=n(4569)},2055:(e,t,n)=>{var r=n(8287),i=n(4251),a=i.base,o=i.bignum,s=i.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){a.Node.call(this,"der",e)}function c(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var r=s.tagClass[n>>6],i=0===(32&n);if(31===(31&n)){var a=n;for(n=0;128===(128&a);){if(a=e.readUInt8(t),e.isError(a))return a;n<<=7,n|=127&a}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function f(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0===(128&r))return r;var i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(var a=0;a{var r=t;r.der=n(2055),r.pem=n(1930)},1930:(e,t,n)=>{var r=n(8287),i=n(3880).Buffer,a=n(2055);function o(e){a.call(this,e),this.enc="pem"}r(o,a),e.exports=o,o.prototype.decode=function(e,t){for(var n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,u=-1,l=0;l{var r=n(8287),i=n(3880).Buffer,a=n(4251),o=a.base,s=a.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){o.Node.call(this,"der",e)}function c(e){return e<10?"0"+e:e}e.exports=u,u.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(l,o.Node),l.prototype._encodeComposite=function(e,t,n,r){var a,o=function(e,t,n,r){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!==typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);i=e}if(i>=31)return r.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=s.tagClassByName[n||"universal"]<<6,i}(e,t,n,this.reporter);if(r.length<128)return(a=new i(2))[0]=o,a[1]=r.length,this._createEncoderBuffer([a,r]);for(var u=1,l=r.length;l>=256;l>>=8)u++;(a=new i(2+u))[0]=o,a[1]=128|u;l=1+u;for(var c=r.length;c>0;l--,c>>=8)a[l]=255&c;return this._createEncoderBuffer([a,r])},l.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=new i(2*e.length),r=0;r=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var a=0;for(r=0;r=128;o>>=7)a++}var s=new i(a),u=s.length-1;for(r=e.length-1;r>=0;r--){o=e[r];for(s[u--]=127&o;(o>>=7)>0;)s[u--]=128|127&o}return this._createEncoderBuffer(s)},l.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[c(r.getFullYear()),c(r.getUTCMonth()+1),c(r.getUTCDate()),c(r.getUTCHours()),c(r.getUTCMinutes()),c(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[c(r.getFullYear()%100),c(r.getUTCMonth()+1),c(r.getUTCDate()),c(r.getUTCHours()),c(r.getUTCMinutes()),c(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(e,t){if("string"===typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!==typeof e&&!i.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=new i(n)}if(i.isBuffer(e)){var r=e.length;0===e.length&&r++;var a=new i(r);return e.copy(a),0===e.length&&(a[0]=0),this._createEncoderBuffer(a)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);r=1;for(var o=e;o>=256;o>>=8)r++;for(o=(a=new Array(r)).length-1;o>=0;o--)a[o]=255&e,e>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(new i(a))},l.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},l.prototype._use=function(e,t){return"function"===typeof e&&(e=e(t)),e._getEncoder("der").tree},l.prototype._skipDefault=function(e,t,n){var r,i=this._baseState;if(null===i.default)return!1;var a=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,n).join()),a.length!==i.defaultBuffer.length)return!1;for(r=0;r{var r=t;r.der=n(9967),r.pem=n(9810)},9810:(e,t,n)=>{var r=n(8287),i=n(9967);function a(e){i.call(this,e),this.enc="pem"}r(a,i),e.exports=a,a.prototype.encode=function(e,t){for(var n=i.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"],a=0;a{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,a=s(e),o=a[0],u=a[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,o,u)),c=0,f=u>0?o-4:o;for(n=0;n>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===u&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[c++]=255&t);1===u&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=16383,s=0,l=r-i;sl?l:s+o));1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return a.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=a[o],r[a.charCodeAt(o)]=o;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var i,a,o=[],s=t;s>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},9367:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"===typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{o="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:n(7790).Buffer}catch(M){}function s(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function u(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function l(e,t,n,r){for(var i=0,a=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"===typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(i=0,a=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=u(e,t,r)<=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;else for(r=(e.length-t)%2===0?t+1:t;r=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,u=0,c=n;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,u=o/67108864|0;n.words[0]=s;for(var l=1;l>>26,f=67108863&u,d=Math.min(l,t.length-1),h=Math.max(0,l-e.length+1);h<=d;h++){var p=l-h|0;c+=(o=(i=0|e.words[p])*(a=0|t.words[h])+f)/67108864|0,f=67108863&o}n.words[l]=0|f,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n.strip()}a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,a=0,o=0;o>>24-i&16777215)||o!==this.length-1?c[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(n=a.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],h=d[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var v=p.modn(h).toString(e);n=(p=p.idivn(h)).isZero()?v+n:c[l-v.length]+v+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return r("undefined"!==typeof o),this.toArrayLike(o,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),a=n||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0"),this.strip();var o,s,u="le"===t,l=new e(a),c=this.clone();if(u){for(s=0;!c.isZero();s++)o=c.andln(255),c.iushrn(8),l[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==a&&o>26,this.words[o]=67108863&t;if(0===a&&o>>13,h=0|o[1],p=8191&h,v=h>>>13,m=0|o[2],b=8191&m,y=m>>>13,g=0|o[3],_=8191&g,w=g>>>13,S=0|o[4],E=8191&S,k=S>>>13,M=0|o[5],R=8191&M,C=M>>>13,x=0|o[6],A=8191&x,T=x>>>13,P=0|o[7],I=8191&P,O=P>>>13,L=0|o[8],N=8191&L,D=L>>>13,B=0|o[9],j=8191&B,z=B>>>13,U=0|s[0],F=8191&U,V=U>>>13,H=0|s[1],q=8191&H,W=H>>>13,K=0|s[2],G=8191&K,Y=K>>>13,$=0|s[3],X=8191&$,Q=$>>>13,Z=0|s[4],J=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],fe=8191&ce,de=ce>>>13,he=0|s[9],pe=8191&he,ve=he>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(l+(r=Math.imul(f,F))|0)+((8191&(i=(i=Math.imul(f,V))+Math.imul(d,F)|0))<<13)|0;l=((a=Math.imul(d,V))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(p,F),i=(i=Math.imul(p,V))+Math.imul(v,F)|0,a=Math.imul(v,V);var be=(l+(r=r+Math.imul(f,q)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(d,q)|0))<<13)|0;l=((a=a+Math.imul(d,W)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(b,F),i=(i=Math.imul(b,V))+Math.imul(y,F)|0,a=Math.imul(y,V),r=r+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(v,q)|0,a=a+Math.imul(v,W)|0;var ye=(l+(r=r+Math.imul(f,G)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,G)|0))<<13)|0;l=((a=a+Math.imul(d,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(_,F),i=(i=Math.imul(_,V))+Math.imul(w,F)|0,a=Math.imul(w,V),r=r+Math.imul(b,q)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(y,q)|0,a=a+Math.imul(y,W)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(v,G)|0,a=a+Math.imul(v,Y)|0;var ge=(l+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,Q)|0)+Math.imul(d,X)|0))<<13)|0;l=((a=a+Math.imul(d,Q)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(E,F),i=(i=Math.imul(E,V))+Math.imul(k,F)|0,a=Math.imul(k,V),r=r+Math.imul(_,q)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(w,q)|0,a=a+Math.imul(w,W)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,Y)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(v,X)|0,a=a+Math.imul(v,Q)|0;var _e=(l+(r=r+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,J)|0))<<13)|0;l=((a=a+Math.imul(d,ee)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,F),i=(i=Math.imul(R,V))+Math.imul(C,F)|0,a=Math.imul(C,V),r=r+Math.imul(E,q)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(k,q)|0,a=a+Math.imul(k,W)|0,r=r+Math.imul(_,G)|0,i=(i=i+Math.imul(_,Y)|0)+Math.imul(w,G)|0,a=a+Math.imul(w,Y)|0,r=r+Math.imul(b,X)|0,i=(i=i+Math.imul(b,Q)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,Q)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(v,J)|0,a=a+Math.imul(v,ee)|0;var we=(l+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((a=a+Math.imul(d,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(A,F),i=(i=Math.imul(A,V))+Math.imul(T,F)|0,a=Math.imul(T,V),r=r+Math.imul(R,q)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(C,q)|0,a=a+Math.imul(C,W)|0,r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(k,G)|0,a=a+Math.imul(k,Y)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,Q)|0)+Math.imul(w,X)|0,a=a+Math.imul(w,Q)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(y,J)|0,a=a+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(v,ne)|0,a=a+Math.imul(v,re)|0;var Se=(l+(r=r+Math.imul(f,ae)|0)|0)+((8191&(i=(i=i+Math.imul(f,oe)|0)+Math.imul(d,ae)|0))<<13)|0;l=((a=a+Math.imul(d,oe)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(I,F),i=(i=Math.imul(I,V))+Math.imul(O,F)|0,a=Math.imul(O,V),r=r+Math.imul(A,q)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(T,q)|0,a=a+Math.imul(T,W)|0,r=r+Math.imul(R,G)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(C,G)|0,a=a+Math.imul(C,Y)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,Q)|0)+Math.imul(k,X)|0,a=a+Math.imul(k,Q)|0,r=r+Math.imul(_,J)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,J)|0,a=a+Math.imul(w,ee)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,re)|0)+Math.imul(y,ne)|0,a=a+Math.imul(y,re)|0,r=r+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,oe)|0;var Ee=(l+(r=r+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(d,ue)|0))<<13)|0;l=((a=a+Math.imul(d,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(N,F),i=(i=Math.imul(N,V))+Math.imul(D,F)|0,a=Math.imul(D,V),r=r+Math.imul(I,q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(O,q)|0,a=a+Math.imul(O,W)|0,r=r+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,Y)|0,r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,Q)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,Q)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,J)|0,a=a+Math.imul(k,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(w,ne)|0,a=a+Math.imul(w,re)|0,r=r+Math.imul(b,ae)|0,i=(i=i+Math.imul(b,oe)|0)+Math.imul(y,ae)|0,a=a+Math.imul(y,oe)|0,r=r+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(v,ue)|0,a=a+Math.imul(v,le)|0;var ke=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;l=((a=a+Math.imul(d,de)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(j,F),i=(i=Math.imul(j,V))+Math.imul(z,F)|0,a=Math.imul(z,V),r=r+Math.imul(N,q)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(D,q)|0,a=a+Math.imul(D,W)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,Y)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,Q)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,Q)|0,r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(C,J)|0,a=a+Math.imul(C,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(k,ne)|0,a=a+Math.imul(k,re)|0,r=r+Math.imul(_,ae)|0,i=(i=i+Math.imul(_,oe)|0)+Math.imul(w,ae)|0,a=a+Math.imul(w,oe)|0,r=r+Math.imul(b,ue)|0,i=(i=i+Math.imul(b,le)|0)+Math.imul(y,ue)|0,a=a+Math.imul(y,le)|0,r=r+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(v,fe)|0,a=a+Math.imul(v,de)|0;var Me=(l+(r=r+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ve)|0)+Math.imul(d,pe)|0))<<13)|0;l=((a=a+Math.imul(d,ve)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,q),i=(i=Math.imul(j,W))+Math.imul(z,q)|0,a=Math.imul(z,W),r=r+Math.imul(N,G)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(D,G)|0,a=a+Math.imul(D,Y)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,Q)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,Q)|0,r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(T,J)|0,a=a+Math.imul(T,ee)|0,r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(C,ne)|0,a=a+Math.imul(C,re)|0,r=r+Math.imul(E,ae)|0,i=(i=i+Math.imul(E,oe)|0)+Math.imul(k,ae)|0,a=a+Math.imul(k,oe)|0,r=r+Math.imul(_,ue)|0,i=(i=i+Math.imul(_,le)|0)+Math.imul(w,ue)|0,a=a+Math.imul(w,le)|0,r=r+Math.imul(b,fe)|0,i=(i=i+Math.imul(b,de)|0)+Math.imul(y,fe)|0,a=a+Math.imul(y,de)|0;var Re=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ve)|0)+Math.imul(v,pe)|0))<<13)|0;l=((a=a+Math.imul(v,ve)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(j,G),i=(i=Math.imul(j,Y))+Math.imul(z,G)|0,a=Math.imul(z,Y),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,Q)|0)+Math.imul(D,X)|0,a=a+Math.imul(D,Q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(O,J)|0,a=a+Math.imul(O,ee)|0,r=r+Math.imul(A,ne)|0,i=(i=i+Math.imul(A,re)|0)+Math.imul(T,ne)|0,a=a+Math.imul(T,re)|0,r=r+Math.imul(R,ae)|0,i=(i=i+Math.imul(R,oe)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,oe)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(k,ue)|0,a=a+Math.imul(k,le)|0,r=r+Math.imul(_,fe)|0,i=(i=i+Math.imul(_,de)|0)+Math.imul(w,fe)|0,a=a+Math.imul(w,de)|0;var Ce=(l+(r=r+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,ve)|0)+Math.imul(y,pe)|0))<<13)|0;l=((a=a+Math.imul(y,ve)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,X),i=(i=Math.imul(j,Q))+Math.imul(z,X)|0,a=Math.imul(z,Q),r=r+Math.imul(N,J)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,J)|0,a=a+Math.imul(D,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(O,ne)|0,a=a+Math.imul(O,re)|0,r=r+Math.imul(A,ae)|0,i=(i=i+Math.imul(A,oe)|0)+Math.imul(T,ae)|0,a=a+Math.imul(T,oe)|0,r=r+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(C,ue)|0,a=a+Math.imul(C,le)|0,r=r+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(k,fe)|0,a=a+Math.imul(k,de)|0;var xe=(l+(r=r+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,ve)|0)+Math.imul(w,pe)|0))<<13)|0;l=((a=a+Math.imul(w,ve)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(j,J),i=(i=Math.imul(j,ee))+Math.imul(z,J)|0,a=Math.imul(z,ee),r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(D,ne)|0,a=a+Math.imul(D,re)|0,r=r+Math.imul(I,ae)|0,i=(i=i+Math.imul(I,oe)|0)+Math.imul(O,ae)|0,a=a+Math.imul(O,oe)|0,r=r+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(T,ue)|0,a=a+Math.imul(T,le)|0,r=r+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(C,fe)|0,a=a+Math.imul(C,de)|0;var Ae=(l+(r=r+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ve)|0)+Math.imul(k,pe)|0))<<13)|0;l=((a=a+Math.imul(k,ve)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(j,ne),i=(i=Math.imul(j,re))+Math.imul(z,ne)|0,a=Math.imul(z,re),r=r+Math.imul(N,ae)|0,i=(i=i+Math.imul(N,oe)|0)+Math.imul(D,ae)|0,a=a+Math.imul(D,oe)|0,r=r+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,le)|0)+Math.imul(O,ue)|0,a=a+Math.imul(O,le)|0,r=r+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(T,fe)|0,a=a+Math.imul(T,de)|0;var Te=(l+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,ve)|0)+Math.imul(C,pe)|0))<<13)|0;l=((a=a+Math.imul(C,ve)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ae),i=(i=Math.imul(j,oe))+Math.imul(z,ae)|0,a=Math.imul(z,oe),r=r+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,le)|0)+Math.imul(D,ue)|0,a=a+Math.imul(D,le)|0,r=r+Math.imul(I,fe)|0,i=(i=i+Math.imul(I,de)|0)+Math.imul(O,fe)|0,a=a+Math.imul(O,de)|0;var Pe=(l+(r=r+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,ve)|0)+Math.imul(T,pe)|0))<<13)|0;l=((a=a+Math.imul(T,ve)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,ue),i=(i=Math.imul(j,le))+Math.imul(z,ue)|0,a=Math.imul(z,le),r=r+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,de)|0)+Math.imul(D,fe)|0,a=a+Math.imul(D,de)|0;var Ie=(l+(r=r+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ve)|0)+Math.imul(O,pe)|0))<<13)|0;l=((a=a+Math.imul(O,ve)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,fe),i=(i=Math.imul(j,de))+Math.imul(z,fe)|0,a=Math.imul(z,de);var Oe=(l+(r=r+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,ve)|0)+Math.imul(D,pe)|0))<<13)|0;l=((a=a+Math.imul(D,ve)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Le=(l+(r=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,ve))+Math.imul(z,pe)|0))<<13)|0;return l=((a=Math.imul(z,ve))+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,u[0]=me,u[1]=be,u[2]=ye,u[3]=ge,u[4]=_e,u[5]=we,u[6]=Se,u[7]=Ee,u[8]=ke,u[9]=Me,u[10]=Re,u[11]=Ce,u[12]=xe,u[13]=Ae,u[14]=Te,u[15]=Pe,u[16]=Ie,u[17]=Oe,u[18]=Le,0!==l&&(u[19]=l,n.length++),n};function v(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return 0!==r?n.words[a]=r:n.length--,n.strip()}(this,e,t):v(this,e,t),n},m.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r>=1;return r},m.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o>>=1)i++;return 1<>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o>=26,t+=i/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}(e);if(0===t.length)return new a(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<o)for(this.length-=o,l=0;l=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-a|f>>>a,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+n]=67108863&a}for(;i>26,this.words[i+n]=67108863&a;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,o=0|i.words[i.length-1];0!==(n=26-this._countBits(o))&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==t){(s=new a(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/o|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},a.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),u=new a(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;0===(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(c),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var p=0,v=1;0===(n.words[0]&v)&&p<26;++p,v<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),o.isub(u)):(n.isub(t),s.isub(i),u.isub(o))}return{a:s,b:u,gcd:n.iushln(l)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new a(1),s=new a(0),u=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0===(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var f=0,d=1;0===(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(i=0===t.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0===(1&this.words[0])},a.prototype.isOdd=function(){return 1===(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"===typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(g,y),g.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,a=o}a>>>=22,e.words[i-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new _;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return b[e]=t,t},E.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var s=new a(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=o;0!==h.cmp(s);){for(var v=h,m=0;0!==v.cmp(s);m++)v=v.redSqr();r(m=0;r--){for(var l=t.words[r],c=u-1;c>=0;c--){var f=l>>c&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4===++s||0===r&&0===c)&&(i=this.mul(i,n[o]),s=0,o=0)):s=0}u=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new k(e)},i(k,E),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},9592:(e,t,n)=>{var r;function i(e){this.rand=e}if(e.exports=function(e){return r||(r=new i(null)),r.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n{var r=n(4836).Buffer;function i(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),i=0;i>>24]^c[p>>>16&255]^f[v>>>8&255]^d[255&m]^t[b++],o=l[p>>>24]^c[v>>>16&255]^f[m>>>8&255]^d[255&h]^t[b++],s=l[v>>>24]^c[m>>>16&255]^f[h>>>8&255]^d[255&p]^t[b++],u=l[m>>>24]^c[h>>>16&255]^f[p>>>8&255]^d[255&v]^t[b++],h=a,p=o,v=s,m=u;return a=(r[h>>>24]<<24|r[p>>>16&255]<<16|r[v>>>8&255]<<8|r[255&m])^t[b++],o=(r[p>>>24]<<24|r[v>>>16&255]<<16|r[m>>>8&255]<<8|r[255&h])^t[b++],s=(r[v>>>24]<<24|r[m>>>16&255]<<16|r[h>>>8&255]<<8|r[255&p])^t[b++],u=(r[m>>>24]<<24|r[h>>>16&255]<<16|r[p>>>8&255]<<8|r[255&v])^t[b++],[a>>>=0,o>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,u=0;u<256;++u){var l=s^s<<1^s<<2^s<<3^s<<4;l=l>>>8^255&l^99,n[o]=l,r[l]=o;var c=e[o],f=e[c],d=e[f],h=257*e[l]^16843008*l;i[0][o]=h<<24|h>>>8,i[1][o]=h<<16|h>>>16,i[2][o]=h<<8|h>>>24,i[3][o]=h,h=16843009*d^65537*f^257*c^16843008*o,a[0][l]=h<<24|h>>>8,a[1][l]=h<<16|h>>>16,a[2][l]=h<<8|h>>>24,a[3][l]=h,0===o?o=s=1:(o=c^e[e[e[d^c]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:a}}();function l(e){this._key=i(e),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],a=0;a>>24,o=u.SBOX[o>>>24]<<24|u.SBOX[o>>>16&255]<<16|u.SBOX[o>>>8&255]<<8|u.SBOX[255&o],o^=s[a/t|0]<<24):t>6&&a%t===4&&(o=u.SBOX[o>>>24]<<24|u.SBOX[o>>>16&255]<<16|u.SBOX[o>>>8&255]<<8|u.SBOX[255&o]),i[a]=i[a-t]^o}for(var l=[],c=0;c>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=l},l.prototype.encryptBlockRaw=function(e){return o(e=i(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},l.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},l.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=o(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),a=r.allocUnsafe(16);return a.writeUInt32BE(n[0],0),a.writeUInt32BE(n[3],4),a.writeUInt32BE(n[2],8),a.writeUInt32BE(n[1],12),a},l.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},e.exports.AES=l},3741:(e,t,n)=>{var r=n(5641),i=n(4836).Buffer,a=n(9106),o=n(8287),s=n(8963),u=n(492),l=n(4475);function c(e,t,n,o){a.call(this);var u=i.alloc(4,0);this._cipher=new r.AES(t);var c=this._cipher.encryptBlock(u);this._ghash=new s(c),n=function(e,t,n){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var r=new s(n),a=t.length,o=a%16;r.update(t),o&&(o=16-o,r.update(i.alloc(o,0))),r.update(i.alloc(8,0));var u=8*a,c=i.alloc(8);c.writeUIntBE(u,0,8),r.update(c),e._finID=r.state;var f=i.from(e._finID);return l(f),f}(this,n,c),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(c,a),c.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},c.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i{var r=n(2052),i=n(3024),a=n(3219);t.createCipher=t.Cipher=r.createCipher,t.createCipheriv=t.Cipheriv=r.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(a)}},3024:(e,t,n)=>{var r=n(3741),i=n(4836).Buffer,a=n(405),o=n(1807),s=n(9106),u=n(5641),l=n(8101);function c(e,t,n){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new u.AES(t),this._prev=i.from(n),this._mode=e,this._autopadding=!0}function f(){this.cache=i.allocUnsafe(0)}function d(e,t,n){var s=a[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"===typeof n&&(n=i.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);if("string"===typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new o(s.module,t,n,!0):"auth"===s.type?new r(s.module,t,n,!0):new c(s.module,t,n)}n(8287)(c,s),c.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return i.concat(r)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var n=-1;for(;++n16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var n=a[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=l(t,!1,n.key,n.iv);return d(e,r.key,r.iv)},t.createDecipheriv=d},2052:(e,t,n)=>{var r=n(405),i=n(3741),a=n(4836).Buffer,o=n(1807),s=n(9106),u=n(5641),l=n(8101);function c(e,t,n){s.call(this),this._cache=new d,this._cipher=new u.AES(t),this._prev=a.from(n),this._mode=e,this._autopadding=!0}n(8287)(c,s),c.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return a.concat(r)};var f=a.alloc(16,16);function d(){this.cache=a.allocUnsafe(0)}function h(e,t,n){var s=r[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"===typeof t&&(t=a.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"===typeof n&&(n=a.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new o(s.module,t,n):"auth"===s.type?new i(s.module,t,n):new c(s.module,t,n)}c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=a.concat([this.cache,e])},d.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),n=-1;++n{var r=n(4836).Buffer,i=r.alloc(16,0);function a(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=a(i)},o.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=o},4475:e=>{e.exports=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},3331:(e,t,n)=>{var r=n(492);t.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},t.decrypt=function(e,t){var n=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return r(i,n)}},8440:(e,t,n)=>{var r=n(4836).Buffer,i=n(492);function a(e,t,n){var a=t.length,o=i(t,e._cache);return e._cache=e._cache.slice(a),e._prev=r.concat([e._prev,n?t:o]),o}t.encrypt=function(e,t,n){for(var i,o=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){o=r.concat([o,a(e,t,n)]);break}i=e._cache.length,o=r.concat([o,a(e,t.slice(0,i),n)]),t=t.slice(i)}return o}},6169:(e,t,n)=>{var r=n(4836).Buffer;function i(e,t,n){for(var r,i,o=-1,s=0;++o<8;)r=t&1<<7-o?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^r))>>o%8,e._prev=a(e._prev,n?r:i);return s}function a(e,t){var n=e.length,i=-1,a=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++i>7;return a}t.encrypt=function(e,t,n){for(var a=t.length,o=r.allocUnsafe(a),s=-1;++s{var r=n(4836).Buffer;function i(e,t,n){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([n?t:i])]),i}t.encrypt=function(e,t,n){for(var a=t.length,o=r.allocUnsafe(a),s=-1;++s{var r=n(492),i=n(4836).Buffer,a=n(4475);function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return a(e._prev),t}t.encrypt=function(e,t){var n=Math.ceil(t.length/16),a=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*n)]);for(var s=0;s{t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},405:(e,t,n)=>{var r={ECB:n(5411),CBC:n(3331),CFB:n(8440),CFB8:n(1746),CFB1:n(6169),OFB:n(7436),CTR:n(8493),GCM:n(8493)},i=n(3219);for(var a in i)i[a].module=r[i[a].mode];e.exports=i},7436:(e,t,n)=>{var r=n(492);function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(e,t){for(;e._cache.length{var r=n(5641),i=n(4836).Buffer,a=n(9106);function o(e,t,n,o){a.call(this),this._cipher=new r.AES(t),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._mode=e}n(8287)(o,a),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},e.exports=o},3460:(e,t,n)=>{var r=n(9673),i=n(8402),a=n(405),o=n(1737),s=n(8101);function u(e,t,n){if(e=e.toLowerCase(),a[e])return i.createCipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function l(e,t,n){if(e=e.toLowerCase(),a[e])return i.createDecipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=s(t,!1,n,r);return u(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=u,t.createDecipher=t.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=s(t,!1,n,r);return l(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=l,t.listCiphers=t.getCiphers=function(){return Object.keys(o).concat(i.getCiphers())}},9673:(e,t,n)=>{var r=n(9106),i=n(3599),a=n(8287),o=n(4836).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(e){r.call(this);var t,n=e.mode.toLowerCase(),i=s[n];t=e.decrypt?"decrypt":"encrypt";var a=e.key;o.isBuffer(a)||(a=o.from(a)),"des-ede"!==n&&"des-ede-cbc"!==n||(a=o.concat([a,a.slice(0,8)]));var u=e.iv;o.isBuffer(u)||(u=o.from(u)),this._des=i.create({key:a,iv:u,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=u,a(u,r),u.prototype._update=function(e){return o.from(this._des.update(e))},u.prototype._final=function(){return o.from(this._des.final())}},1737:(e,t)=>{t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},3719:(e,t,n)=>{var r=n(4834),i=n(6215);function a(e){var t,n=e.modulus.byteLength();do{t=new r(i(n))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function o(e,t){var n=function(e){var t=a(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),i=t.modulus.byteLength(),o=new r(e).mul(n.blinder).umod(t.modulus),s=o.toRed(r.mont(t.prime1)),u=o.toRed(r.mont(t.prime2)),l=t.coefficient,c=t.prime1,f=t.prime2,d=s.redPow(t.exponent1).fromRed(),h=u.redPow(t.exponent2).fromRed(),p=d.isub(h).imul(l).umod(c).imul(f);return h.iadd(p).imul(n.unblinder).umod(t.modulus).toArrayLike(Buffer,"be",i)}o.getr=a,e.exports=o},4834:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"===typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{o="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:n(8285).Buffer}catch(x){}function s(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function u(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function l(e,t,n,i){for(var a=0,o=0,s=Math.min(e.length,n),u=t;u=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&o0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(i=0,a=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this._strip()},a.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=u(e,t,r)<=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;else for(r=(e.length-t)%2===0?t+1:t;r=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this._strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,u=0,c=n;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(x){a.prototype.inspect=f}else a.prototype.inspect=f;function f(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,a=0,o=0;o>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),n=0!==a||o!==this.length-1?d[6-u.length]+u+n:u+n}for(0!==a&&(n=a.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=h[e],c=p[e];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var v=f.modrn(c).toString(e);n=(f=f.idivn(c)).isZero()?v+n:d[l-v.length]+v+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16,2)},o&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function v(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,u=o/67108864|0;n.words[0]=s;for(var l=1;l>>26,f=67108863&u,d=Math.min(l,t.length-1),h=Math.max(0,l-e.length+1);h<=d;h++){var p=l-h|0;c+=(o=(i=0|e.words[p])*(a=0|t.words[h])+f)/67108864|0,f=67108863&o}n.words[l]=0|f,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n._strip()}a.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),a=n||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,a);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,i),o},a.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,a=0;i>8&255),n>16&255),6===a?(n>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(n=0&&(e[n--]=o>>8&255),n>=0&&(e[n--]=o>>16&255),6===a?(n>=0&&(e[n--]=o>>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==a&&o>26,this.words[o]=67108863&t;if(0===a&&o>>13,h=0|o[1],p=8191&h,v=h>>>13,m=0|o[2],b=8191&m,y=m>>>13,g=0|o[3],_=8191&g,w=g>>>13,S=0|o[4],E=8191&S,k=S>>>13,M=0|o[5],R=8191&M,C=M>>>13,x=0|o[6],A=8191&x,T=x>>>13,P=0|o[7],I=8191&P,O=P>>>13,L=0|o[8],N=8191&L,D=L>>>13,B=0|o[9],j=8191&B,z=B>>>13,U=0|s[0],F=8191&U,V=U>>>13,H=0|s[1],q=8191&H,W=H>>>13,K=0|s[2],G=8191&K,Y=K>>>13,$=0|s[3],X=8191&$,Q=$>>>13,Z=0|s[4],J=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],fe=8191&ce,de=ce>>>13,he=0|s[9],pe=8191&he,ve=he>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(l+(r=Math.imul(f,F))|0)+((8191&(i=(i=Math.imul(f,V))+Math.imul(d,F)|0))<<13)|0;l=((a=Math.imul(d,V))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(p,F),i=(i=Math.imul(p,V))+Math.imul(v,F)|0,a=Math.imul(v,V);var be=(l+(r=r+Math.imul(f,q)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(d,q)|0))<<13)|0;l=((a=a+Math.imul(d,W)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(b,F),i=(i=Math.imul(b,V))+Math.imul(y,F)|0,a=Math.imul(y,V),r=r+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(v,q)|0,a=a+Math.imul(v,W)|0;var ye=(l+(r=r+Math.imul(f,G)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,G)|0))<<13)|0;l=((a=a+Math.imul(d,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(_,F),i=(i=Math.imul(_,V))+Math.imul(w,F)|0,a=Math.imul(w,V),r=r+Math.imul(b,q)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(y,q)|0,a=a+Math.imul(y,W)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(v,G)|0,a=a+Math.imul(v,Y)|0;var ge=(l+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,Q)|0)+Math.imul(d,X)|0))<<13)|0;l=((a=a+Math.imul(d,Q)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(E,F),i=(i=Math.imul(E,V))+Math.imul(k,F)|0,a=Math.imul(k,V),r=r+Math.imul(_,q)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(w,q)|0,a=a+Math.imul(w,W)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,Y)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(v,X)|0,a=a+Math.imul(v,Q)|0;var _e=(l+(r=r+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,J)|0))<<13)|0;l=((a=a+Math.imul(d,ee)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,F),i=(i=Math.imul(R,V))+Math.imul(C,F)|0,a=Math.imul(C,V),r=r+Math.imul(E,q)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(k,q)|0,a=a+Math.imul(k,W)|0,r=r+Math.imul(_,G)|0,i=(i=i+Math.imul(_,Y)|0)+Math.imul(w,G)|0,a=a+Math.imul(w,Y)|0,r=r+Math.imul(b,X)|0,i=(i=i+Math.imul(b,Q)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,Q)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(v,J)|0,a=a+Math.imul(v,ee)|0;var we=(l+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((a=a+Math.imul(d,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(A,F),i=(i=Math.imul(A,V))+Math.imul(T,F)|0,a=Math.imul(T,V),r=r+Math.imul(R,q)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(C,q)|0,a=a+Math.imul(C,W)|0,r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(k,G)|0,a=a+Math.imul(k,Y)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,Q)|0)+Math.imul(w,X)|0,a=a+Math.imul(w,Q)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(y,J)|0,a=a+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(v,ne)|0,a=a+Math.imul(v,re)|0;var Se=(l+(r=r+Math.imul(f,ae)|0)|0)+((8191&(i=(i=i+Math.imul(f,oe)|0)+Math.imul(d,ae)|0))<<13)|0;l=((a=a+Math.imul(d,oe)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(I,F),i=(i=Math.imul(I,V))+Math.imul(O,F)|0,a=Math.imul(O,V),r=r+Math.imul(A,q)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(T,q)|0,a=a+Math.imul(T,W)|0,r=r+Math.imul(R,G)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(C,G)|0,a=a+Math.imul(C,Y)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,Q)|0)+Math.imul(k,X)|0,a=a+Math.imul(k,Q)|0,r=r+Math.imul(_,J)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,J)|0,a=a+Math.imul(w,ee)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,re)|0)+Math.imul(y,ne)|0,a=a+Math.imul(y,re)|0,r=r+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,oe)|0;var Ee=(l+(r=r+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(d,ue)|0))<<13)|0;l=((a=a+Math.imul(d,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(N,F),i=(i=Math.imul(N,V))+Math.imul(D,F)|0,a=Math.imul(D,V),r=r+Math.imul(I,q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(O,q)|0,a=a+Math.imul(O,W)|0,r=r+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,Y)|0,r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,Q)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,Q)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,J)|0,a=a+Math.imul(k,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(w,ne)|0,a=a+Math.imul(w,re)|0,r=r+Math.imul(b,ae)|0,i=(i=i+Math.imul(b,oe)|0)+Math.imul(y,ae)|0,a=a+Math.imul(y,oe)|0,r=r+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(v,ue)|0,a=a+Math.imul(v,le)|0;var ke=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;l=((a=a+Math.imul(d,de)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(j,F),i=(i=Math.imul(j,V))+Math.imul(z,F)|0,a=Math.imul(z,V),r=r+Math.imul(N,q)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(D,q)|0,a=a+Math.imul(D,W)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,Y)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,Q)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,Q)|0,r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(C,J)|0,a=a+Math.imul(C,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(k,ne)|0,a=a+Math.imul(k,re)|0,r=r+Math.imul(_,ae)|0,i=(i=i+Math.imul(_,oe)|0)+Math.imul(w,ae)|0,a=a+Math.imul(w,oe)|0,r=r+Math.imul(b,ue)|0,i=(i=i+Math.imul(b,le)|0)+Math.imul(y,ue)|0,a=a+Math.imul(y,le)|0,r=r+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(v,fe)|0,a=a+Math.imul(v,de)|0;var Me=(l+(r=r+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ve)|0)+Math.imul(d,pe)|0))<<13)|0;l=((a=a+Math.imul(d,ve)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,q),i=(i=Math.imul(j,W))+Math.imul(z,q)|0,a=Math.imul(z,W),r=r+Math.imul(N,G)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(D,G)|0,a=a+Math.imul(D,Y)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,Q)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,Q)|0,r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(T,J)|0,a=a+Math.imul(T,ee)|0,r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(C,ne)|0,a=a+Math.imul(C,re)|0,r=r+Math.imul(E,ae)|0,i=(i=i+Math.imul(E,oe)|0)+Math.imul(k,ae)|0,a=a+Math.imul(k,oe)|0,r=r+Math.imul(_,ue)|0,i=(i=i+Math.imul(_,le)|0)+Math.imul(w,ue)|0,a=a+Math.imul(w,le)|0,r=r+Math.imul(b,fe)|0,i=(i=i+Math.imul(b,de)|0)+Math.imul(y,fe)|0,a=a+Math.imul(y,de)|0;var Re=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ve)|0)+Math.imul(v,pe)|0))<<13)|0;l=((a=a+Math.imul(v,ve)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(j,G),i=(i=Math.imul(j,Y))+Math.imul(z,G)|0,a=Math.imul(z,Y),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,Q)|0)+Math.imul(D,X)|0,a=a+Math.imul(D,Q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(O,J)|0,a=a+Math.imul(O,ee)|0,r=r+Math.imul(A,ne)|0,i=(i=i+Math.imul(A,re)|0)+Math.imul(T,ne)|0,a=a+Math.imul(T,re)|0,r=r+Math.imul(R,ae)|0,i=(i=i+Math.imul(R,oe)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,oe)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(k,ue)|0,a=a+Math.imul(k,le)|0,r=r+Math.imul(_,fe)|0,i=(i=i+Math.imul(_,de)|0)+Math.imul(w,fe)|0,a=a+Math.imul(w,de)|0;var Ce=(l+(r=r+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,ve)|0)+Math.imul(y,pe)|0))<<13)|0;l=((a=a+Math.imul(y,ve)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,X),i=(i=Math.imul(j,Q))+Math.imul(z,X)|0,a=Math.imul(z,Q),r=r+Math.imul(N,J)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,J)|0,a=a+Math.imul(D,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(O,ne)|0,a=a+Math.imul(O,re)|0,r=r+Math.imul(A,ae)|0,i=(i=i+Math.imul(A,oe)|0)+Math.imul(T,ae)|0,a=a+Math.imul(T,oe)|0,r=r+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(C,ue)|0,a=a+Math.imul(C,le)|0,r=r+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(k,fe)|0,a=a+Math.imul(k,de)|0;var xe=(l+(r=r+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,ve)|0)+Math.imul(w,pe)|0))<<13)|0;l=((a=a+Math.imul(w,ve)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(j,J),i=(i=Math.imul(j,ee))+Math.imul(z,J)|0,a=Math.imul(z,ee),r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(D,ne)|0,a=a+Math.imul(D,re)|0,r=r+Math.imul(I,ae)|0,i=(i=i+Math.imul(I,oe)|0)+Math.imul(O,ae)|0,a=a+Math.imul(O,oe)|0,r=r+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(T,ue)|0,a=a+Math.imul(T,le)|0,r=r+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(C,fe)|0,a=a+Math.imul(C,de)|0;var Ae=(l+(r=r+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ve)|0)+Math.imul(k,pe)|0))<<13)|0;l=((a=a+Math.imul(k,ve)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(j,ne),i=(i=Math.imul(j,re))+Math.imul(z,ne)|0,a=Math.imul(z,re),r=r+Math.imul(N,ae)|0,i=(i=i+Math.imul(N,oe)|0)+Math.imul(D,ae)|0,a=a+Math.imul(D,oe)|0,r=r+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,le)|0)+Math.imul(O,ue)|0,a=a+Math.imul(O,le)|0,r=r+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(T,fe)|0,a=a+Math.imul(T,de)|0;var Te=(l+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,ve)|0)+Math.imul(C,pe)|0))<<13)|0;l=((a=a+Math.imul(C,ve)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ae),i=(i=Math.imul(j,oe))+Math.imul(z,ae)|0,a=Math.imul(z,oe),r=r+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,le)|0)+Math.imul(D,ue)|0,a=a+Math.imul(D,le)|0,r=r+Math.imul(I,fe)|0,i=(i=i+Math.imul(I,de)|0)+Math.imul(O,fe)|0,a=a+Math.imul(O,de)|0;var Pe=(l+(r=r+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,ve)|0)+Math.imul(T,pe)|0))<<13)|0;l=((a=a+Math.imul(T,ve)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,ue),i=(i=Math.imul(j,le))+Math.imul(z,ue)|0,a=Math.imul(z,le),r=r+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,de)|0)+Math.imul(D,fe)|0,a=a+Math.imul(D,de)|0;var Ie=(l+(r=r+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ve)|0)+Math.imul(O,pe)|0))<<13)|0;l=((a=a+Math.imul(O,ve)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,fe),i=(i=Math.imul(j,de))+Math.imul(z,fe)|0,a=Math.imul(z,de);var Oe=(l+(r=r+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,ve)|0)+Math.imul(D,pe)|0))<<13)|0;l=((a=a+Math.imul(D,ve)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Le=(l+(r=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,ve))+Math.imul(z,pe)|0))<<13)|0;return l=((a=Math.imul(z,ve))+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,u[0]=me,u[1]=be,u[2]=ye,u[3]=ge,u[4]=_e,u[5]=we,u[6]=Se,u[7]=Ee,u[8]=ke,u[9]=Me,u[10]=Re,u[11]=Ce,u[12]=xe,u[13]=Ae,u[14]=Te,u[15]=Pe,u[16]=Ie,u[17]=Oe,u[18]=Le,0!==l&&(u[19]=l,n.length++),n};function b(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return 0!==r?n.words[a]=r:n.length--,n._strip()}function y(e,t,n){return b(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(m=v),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?v(this,e,t):n<1024?b(this,e,t):y(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o>>=1)i++;return 1<>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o>=26,n+=a/67108864|0,n+=o>>>26,this.words[i]=67108863&o}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new a(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<o)for(this.length-=o,l=0;l=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-a|f>>>a,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+n]=67108863&a}for(;i>26,this.words[i+n]=67108863&a;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,o=0|i.words[i.length-1];0!==(n=26-this._countBits(o))&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==t){(s=new a(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/o|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,a=this.length-1;a>=0;a--)i=(n*i+(0|this.words[a]))%e;return t?-i:i},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var a=(0|this.words[i])+67108864*n;this.words[i]=a/e|0,n=a%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),u=new a(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;0===(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(c),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var p=0,v=1;0===(n.words[0]&v)&&p<26;++p,v<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),o.isub(u)):(n.isub(t),s.isub(i),u.isub(o))}return{a:s,b:u,gcd:n.iushln(l)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new a(1),s=new a(0),u=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0===(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var f=0,d=1;0===(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(i=0===t.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0===(1&this.words[0])},a.prototype.isOdd=function(){return 1===(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new R(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var _={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function S(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function R(e){if("string"===typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function C(e){R.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(S,w),S.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,a=o}a>>>=22,e.words[i-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},S.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(_[e])return _[e];var t;if("k256"===e)t=new S;else if("p224"===e)t=new E;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new M}return _[e]=t,t},R.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},R.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},R.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},R.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},R.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},R.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},R.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},R.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},R.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},R.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},R.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},R.prototype.isqr=function(e){return this.imul(e,e.clone())},R.prototype.sqr=function(e){return this.mul(e,e)},R.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var s=new a(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=o;0!==h.cmp(s);){for(var v=h,m=0;0!==v.cmp(s);m++)v=v.redSqr();r(m=0;r--){for(var l=t.words[r],c=u-1;c>=0;c--){var f=l>>c&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4===++s||0===r&&0===c)&&(i=this.mul(i,n[o]),s=0,o=0)):s=0}u=26}return i},R.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},R.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new C(e)},i(C,R),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},C.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},C.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},9550:(e,t,n)=>{"use strict";e.exports=n(2951)},4929:(e,t,n)=>{"use strict";var r=n(4836).Buffer,i=n(1705),a=n(9364),o=n(8287),s=n(7788),u=n(9624),l=n(2951);function c(e){a.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){a.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){return new c(e)}function h(e){return new f(e)}Object.keys(l).forEach((function(e){l[e].id=r.from(l[e].id,"hex"),l[e.toLowerCase()]=l[e]})),o(c,a.Writable),c.prototype._write=function(e,t,n){this._hash.update(e),n()},c.prototype.update=function(e,t){return this._hash.update("string"===typeof e?r.from(e,t):e),this},c.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=s(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},o(f,a.Writable),f.prototype._write=function(e,t,n){this._hash.update(e),n()},f.prototype.update=function(e,t){return this._hash.update("string"===typeof e?r.from(e,t):e),this},f.prototype.verify=function(e,t,n){var i="string"===typeof t?r.from(t,n):t;this.end();var a=this._hash.digest();return u(i,a,e,this._signType,this._tag)},e.exports={Sign:d,Verify:h,createSign:d,createVerify:h}},7788:(e,t,n)=>{"use strict";var r=n(4836).Buffer,i=n(1038),a=n(3719),o=n(4144).ec,s=n(7855),u=n(9629),l=n(4589);function c(e,t,n,a){if((e=r.from(e.toArray())).length0&&n.ishrn(r),n}function d(e,t,n){var a,o;do{for(a=r.alloc(0);8*a.length{"use strict";var r=n(4836).Buffer,i=n(7855),a=n(4144).ec,o=n(9629),s=n(4589);function u(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=0)throw new Error("invalid sig")}e.exports=function(e,t,n,l,c){var f=o(n);if("ec"===f.type){if("ecdsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");return function(e,t,n){var r=s[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var i=new a(r),o=n.data.subjectPrivateKey.data;return i.verify(t,e,o)}(e,t,f)}if("dsa"===f.type){if("dsa"!==l)throw new Error("wrong public key type");return function(e,t,n){var r=n.data.p,a=n.data.q,s=n.data.g,l=n.data.pub_key,c=o.signature.decode(e,"der"),f=c.s,d=c.r;u(f,a),u(d,a);var h=i.mont(r),p=f.invm(a),v=s.toRed(h).redPow(new i(t).mul(p).mod(a)).fromRed().mul(l.toRed(h).redPow(d.mul(p).mod(a)).fromRed()).mod(r).mod(a);return 0===v.cmp(d)}(e,t,f)}if("rsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");t=r.concat([c,t]);for(var d=f.modulus.byteLength(),h=[1],p=0;t.length+h.length+2=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function u(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function l(e,t,n,i){for(var a=0,o=0,s=Math.min(e.length,n),u=t;u=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&o0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(i=0,a=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this._strip()},a.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=u(e,t,r)<=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;else for(r=(e.length-t)%2===0?t+1:t;r=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this._strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,u=0,c=n;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(x){a.prototype.inspect=f}else a.prototype.inspect=f;function f(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,a=0,o=0;o>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),n=0!==a||o!==this.length-1?d[6-u.length]+u+n:u+n}for(0!==a&&(n=a.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=h[e],c=p[e];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var v=f.modrn(c).toString(e);n=(f=f.idivn(c)).isZero()?v+n:d[l-v.length]+v+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16,2)},o&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function v(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,u=o/67108864|0;n.words[0]=s;for(var l=1;l>>26,f=67108863&u,d=Math.min(l,t.length-1),h=Math.max(0,l-e.length+1);h<=d;h++){var p=l-h|0;c+=(o=(i=0|e.words[p])*(a=0|t.words[h])+f)/67108864|0,f=67108863&o}n.words[l]=0|f,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n._strip()}a.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),a=n||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,a);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,i),o},a.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,a=0;i>8&255),n>16&255),6===a?(n>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(n=0&&(e[n--]=o>>8&255),n>=0&&(e[n--]=o>>16&255),6===a?(n>=0&&(e[n--]=o>>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==a&&o>26,this.words[o]=67108863&t;if(0===a&&o>>13,h=0|o[1],p=8191&h,v=h>>>13,m=0|o[2],b=8191&m,y=m>>>13,g=0|o[3],_=8191&g,w=g>>>13,S=0|o[4],E=8191&S,k=S>>>13,M=0|o[5],R=8191&M,C=M>>>13,x=0|o[6],A=8191&x,T=x>>>13,P=0|o[7],I=8191&P,O=P>>>13,L=0|o[8],N=8191&L,D=L>>>13,B=0|o[9],j=8191&B,z=B>>>13,U=0|s[0],F=8191&U,V=U>>>13,H=0|s[1],q=8191&H,W=H>>>13,K=0|s[2],G=8191&K,Y=K>>>13,$=0|s[3],X=8191&$,Q=$>>>13,Z=0|s[4],J=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],fe=8191&ce,de=ce>>>13,he=0|s[9],pe=8191&he,ve=he>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(l+(r=Math.imul(f,F))|0)+((8191&(i=(i=Math.imul(f,V))+Math.imul(d,F)|0))<<13)|0;l=((a=Math.imul(d,V))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(p,F),i=(i=Math.imul(p,V))+Math.imul(v,F)|0,a=Math.imul(v,V);var be=(l+(r=r+Math.imul(f,q)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(d,q)|0))<<13)|0;l=((a=a+Math.imul(d,W)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(b,F),i=(i=Math.imul(b,V))+Math.imul(y,F)|0,a=Math.imul(y,V),r=r+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(v,q)|0,a=a+Math.imul(v,W)|0;var ye=(l+(r=r+Math.imul(f,G)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,G)|0))<<13)|0;l=((a=a+Math.imul(d,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(_,F),i=(i=Math.imul(_,V))+Math.imul(w,F)|0,a=Math.imul(w,V),r=r+Math.imul(b,q)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(y,q)|0,a=a+Math.imul(y,W)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(v,G)|0,a=a+Math.imul(v,Y)|0;var ge=(l+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,Q)|0)+Math.imul(d,X)|0))<<13)|0;l=((a=a+Math.imul(d,Q)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(E,F),i=(i=Math.imul(E,V))+Math.imul(k,F)|0,a=Math.imul(k,V),r=r+Math.imul(_,q)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(w,q)|0,a=a+Math.imul(w,W)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,Y)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(v,X)|0,a=a+Math.imul(v,Q)|0;var _e=(l+(r=r+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,J)|0))<<13)|0;l=((a=a+Math.imul(d,ee)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,F),i=(i=Math.imul(R,V))+Math.imul(C,F)|0,a=Math.imul(C,V),r=r+Math.imul(E,q)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(k,q)|0,a=a+Math.imul(k,W)|0,r=r+Math.imul(_,G)|0,i=(i=i+Math.imul(_,Y)|0)+Math.imul(w,G)|0,a=a+Math.imul(w,Y)|0,r=r+Math.imul(b,X)|0,i=(i=i+Math.imul(b,Q)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,Q)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(v,J)|0,a=a+Math.imul(v,ee)|0;var we=(l+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((a=a+Math.imul(d,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(A,F),i=(i=Math.imul(A,V))+Math.imul(T,F)|0,a=Math.imul(T,V),r=r+Math.imul(R,q)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(C,q)|0,a=a+Math.imul(C,W)|0,r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(k,G)|0,a=a+Math.imul(k,Y)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,Q)|0)+Math.imul(w,X)|0,a=a+Math.imul(w,Q)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(y,J)|0,a=a+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(v,ne)|0,a=a+Math.imul(v,re)|0;var Se=(l+(r=r+Math.imul(f,ae)|0)|0)+((8191&(i=(i=i+Math.imul(f,oe)|0)+Math.imul(d,ae)|0))<<13)|0;l=((a=a+Math.imul(d,oe)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(I,F),i=(i=Math.imul(I,V))+Math.imul(O,F)|0,a=Math.imul(O,V),r=r+Math.imul(A,q)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(T,q)|0,a=a+Math.imul(T,W)|0,r=r+Math.imul(R,G)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(C,G)|0,a=a+Math.imul(C,Y)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,Q)|0)+Math.imul(k,X)|0,a=a+Math.imul(k,Q)|0,r=r+Math.imul(_,J)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,J)|0,a=a+Math.imul(w,ee)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,re)|0)+Math.imul(y,ne)|0,a=a+Math.imul(y,re)|0,r=r+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,oe)|0;var Ee=(l+(r=r+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(d,ue)|0))<<13)|0;l=((a=a+Math.imul(d,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(N,F),i=(i=Math.imul(N,V))+Math.imul(D,F)|0,a=Math.imul(D,V),r=r+Math.imul(I,q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(O,q)|0,a=a+Math.imul(O,W)|0,r=r+Math.imul(A,G)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,Y)|0,r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,Q)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,Q)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(k,J)|0,a=a+Math.imul(k,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(w,ne)|0,a=a+Math.imul(w,re)|0,r=r+Math.imul(b,ae)|0,i=(i=i+Math.imul(b,oe)|0)+Math.imul(y,ae)|0,a=a+Math.imul(y,oe)|0,r=r+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(v,ue)|0,a=a+Math.imul(v,le)|0;var ke=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;l=((a=a+Math.imul(d,de)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(j,F),i=(i=Math.imul(j,V))+Math.imul(z,F)|0,a=Math.imul(z,V),r=r+Math.imul(N,q)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(D,q)|0,a=a+Math.imul(D,W)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,Y)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,Q)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,Q)|0,r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(C,J)|0,a=a+Math.imul(C,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(k,ne)|0,a=a+Math.imul(k,re)|0,r=r+Math.imul(_,ae)|0,i=(i=i+Math.imul(_,oe)|0)+Math.imul(w,ae)|0,a=a+Math.imul(w,oe)|0,r=r+Math.imul(b,ue)|0,i=(i=i+Math.imul(b,le)|0)+Math.imul(y,ue)|0,a=a+Math.imul(y,le)|0,r=r+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(v,fe)|0,a=a+Math.imul(v,de)|0;var Me=(l+(r=r+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ve)|0)+Math.imul(d,pe)|0))<<13)|0;l=((a=a+Math.imul(d,ve)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,q),i=(i=Math.imul(j,W))+Math.imul(z,q)|0,a=Math.imul(z,W),r=r+Math.imul(N,G)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(D,G)|0,a=a+Math.imul(D,Y)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,Q)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,Q)|0,r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(T,J)|0,a=a+Math.imul(T,ee)|0,r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(C,ne)|0,a=a+Math.imul(C,re)|0,r=r+Math.imul(E,ae)|0,i=(i=i+Math.imul(E,oe)|0)+Math.imul(k,ae)|0,a=a+Math.imul(k,oe)|0,r=r+Math.imul(_,ue)|0,i=(i=i+Math.imul(_,le)|0)+Math.imul(w,ue)|0,a=a+Math.imul(w,le)|0,r=r+Math.imul(b,fe)|0,i=(i=i+Math.imul(b,de)|0)+Math.imul(y,fe)|0,a=a+Math.imul(y,de)|0;var Re=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ve)|0)+Math.imul(v,pe)|0))<<13)|0;l=((a=a+Math.imul(v,ve)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(j,G),i=(i=Math.imul(j,Y))+Math.imul(z,G)|0,a=Math.imul(z,Y),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,Q)|0)+Math.imul(D,X)|0,a=a+Math.imul(D,Q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(O,J)|0,a=a+Math.imul(O,ee)|0,r=r+Math.imul(A,ne)|0,i=(i=i+Math.imul(A,re)|0)+Math.imul(T,ne)|0,a=a+Math.imul(T,re)|0,r=r+Math.imul(R,ae)|0,i=(i=i+Math.imul(R,oe)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,oe)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(k,ue)|0,a=a+Math.imul(k,le)|0,r=r+Math.imul(_,fe)|0,i=(i=i+Math.imul(_,de)|0)+Math.imul(w,fe)|0,a=a+Math.imul(w,de)|0;var Ce=(l+(r=r+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,ve)|0)+Math.imul(y,pe)|0))<<13)|0;l=((a=a+Math.imul(y,ve)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,X),i=(i=Math.imul(j,Q))+Math.imul(z,X)|0,a=Math.imul(z,Q),r=r+Math.imul(N,J)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,J)|0,a=a+Math.imul(D,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(O,ne)|0,a=a+Math.imul(O,re)|0,r=r+Math.imul(A,ae)|0,i=(i=i+Math.imul(A,oe)|0)+Math.imul(T,ae)|0,a=a+Math.imul(T,oe)|0,r=r+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(C,ue)|0,a=a+Math.imul(C,le)|0,r=r+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(k,fe)|0,a=a+Math.imul(k,de)|0;var xe=(l+(r=r+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,ve)|0)+Math.imul(w,pe)|0))<<13)|0;l=((a=a+Math.imul(w,ve)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(j,J),i=(i=Math.imul(j,ee))+Math.imul(z,J)|0,a=Math.imul(z,ee),r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(D,ne)|0,a=a+Math.imul(D,re)|0,r=r+Math.imul(I,ae)|0,i=(i=i+Math.imul(I,oe)|0)+Math.imul(O,ae)|0,a=a+Math.imul(O,oe)|0,r=r+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(T,ue)|0,a=a+Math.imul(T,le)|0,r=r+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(C,fe)|0,a=a+Math.imul(C,de)|0;var Ae=(l+(r=r+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ve)|0)+Math.imul(k,pe)|0))<<13)|0;l=((a=a+Math.imul(k,ve)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(j,ne),i=(i=Math.imul(j,re))+Math.imul(z,ne)|0,a=Math.imul(z,re),r=r+Math.imul(N,ae)|0,i=(i=i+Math.imul(N,oe)|0)+Math.imul(D,ae)|0,a=a+Math.imul(D,oe)|0,r=r+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,le)|0)+Math.imul(O,ue)|0,a=a+Math.imul(O,le)|0,r=r+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(T,fe)|0,a=a+Math.imul(T,de)|0;var Te=(l+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,ve)|0)+Math.imul(C,pe)|0))<<13)|0;l=((a=a+Math.imul(C,ve)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ae),i=(i=Math.imul(j,oe))+Math.imul(z,ae)|0,a=Math.imul(z,oe),r=r+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,le)|0)+Math.imul(D,ue)|0,a=a+Math.imul(D,le)|0,r=r+Math.imul(I,fe)|0,i=(i=i+Math.imul(I,de)|0)+Math.imul(O,fe)|0,a=a+Math.imul(O,de)|0;var Pe=(l+(r=r+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,ve)|0)+Math.imul(T,pe)|0))<<13)|0;l=((a=a+Math.imul(T,ve)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,ue),i=(i=Math.imul(j,le))+Math.imul(z,ue)|0,a=Math.imul(z,le),r=r+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,de)|0)+Math.imul(D,fe)|0,a=a+Math.imul(D,de)|0;var Ie=(l+(r=r+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,ve)|0)+Math.imul(O,pe)|0))<<13)|0;l=((a=a+Math.imul(O,ve)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,fe),i=(i=Math.imul(j,de))+Math.imul(z,fe)|0,a=Math.imul(z,de);var Oe=(l+(r=r+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,ve)|0)+Math.imul(D,pe)|0))<<13)|0;l=((a=a+Math.imul(D,ve)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Le=(l+(r=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,ve))+Math.imul(z,pe)|0))<<13)|0;return l=((a=Math.imul(z,ve))+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,u[0]=me,u[1]=be,u[2]=ye,u[3]=ge,u[4]=_e,u[5]=we,u[6]=Se,u[7]=Ee,u[8]=ke,u[9]=Me,u[10]=Re,u[11]=Ce,u[12]=xe,u[13]=Ae,u[14]=Te,u[15]=Pe,u[16]=Ie,u[17]=Oe,u[18]=Le,0!==l&&(u[19]=l,n.length++),n};function b(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return 0!==r?n.words[a]=r:n.length--,n._strip()}function y(e,t,n){return b(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(m=v),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?v(this,e,t):n<1024?b(this,e,t):y(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o>>=1)i++;return 1<>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o>=26,n+=a/67108864|0,n+=o>>>26,this.words[i]=67108863&o}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new a(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<o)for(this.length-=o,l=0;l=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-a|f>>>a,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+n]=67108863&a}for(;i>26,this.words[i+n]=67108863&a;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,o=0|i.words[i.length-1];0!==(n=26-this._countBits(o))&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==t){(s=new a(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/o|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,a=this.length-1;a>=0;a--)i=(n*i+(0|this.words[a]))%e;return t?-i:i},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var a=(0|this.words[i])+67108864*n;this.words[i]=a/e|0,n=a%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),u=new a(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;0===(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(c),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var p=0,v=1;0===(n.words[0]&v)&&p<26;++p,v<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),o.isub(u)):(n.isub(t),s.isub(i),u.isub(o))}return{a:s,b:u,gcd:n.iushln(l)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new a(1),s=new a(0),u=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0===(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var f=0,d=1;0===(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(i=0===t.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0===(1&this.words[0])},a.prototype.isOdd=function(){return 1===(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new R(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var _={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function S(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function R(e){if("string"===typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function C(e){R.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(S,w),S.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,a=o}a>>>=22,e.words[i-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},S.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(_[e])return _[e];var t;if("k256"===e)t=new S;else if("p224"===e)t=new E;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new M}return _[e]=t,t},R.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},R.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},R.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},R.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},R.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},R.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},R.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},R.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},R.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},R.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},R.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},R.prototype.isqr=function(e){return this.imul(e,e.clone())},R.prototype.sqr=function(e){return this.mul(e,e)},R.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var s=new a(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=o;0!==h.cmp(s);){for(var v=h,m=0;0!==v.cmp(s);m++)v=v.redSqr();r(m=0;r--){for(var l=t.words[r],c=u-1;c>=0;c--){var f=l>>c&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4===++s||0===r&&0===c)&&(i=this.mul(i,n[o]),s=0,o=0)):s=0}u=26}return i},R.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},R.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new C(e)},i(C,R),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},C.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},C.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},5913:(e,t,n)=>{"use strict";var r=n(5446),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var a=Object.create(n(3135));a.inherits=n(8287);var o=n(4783),s=n(323);a.inherits(f,o);for(var u=i(s.prototype),l=0;l{"use strict";e.exports=a;var r=n(8655),i=Object.create(n(3135));function a(e){if(!(this instanceof a))return new a(e);r.call(this,e)}i.inherits=n(8287),i.inherits(a,r),a.prototype._transform=function(e,t,n){n(null,e)}},4783:(e,t,n)=>{"use strict";var r=n(5446);e.exports=y;var i,a=n(8111);y.ReadableState=b;n(5070).EventEmitter;var o=function(e,t){return e.listeners(t).length},s=n(3200),u=n(1125).Buffer,l=("undefined"!==typeof n.g?n.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};var c=Object.create(n(3135));c.inherits=n(8287);var f=n(2668),d=void 0;d=f&&f.debuglog?f.debuglog("stream"):function(){};var h,p=n(7183),v=n(1399);c.inherits(y,s);var m=["error","close","destroy","pause","resume"];function b(e,t){e=e||{};var r=t instanceof(i=i||n(5913));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var a=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:r&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=n(7536).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function y(e){if(i=i||n(5913),!(this instanceof y))return new y(e);this._readableState=new b(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function g(e,t,n,r,i){var a,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,E(e)}(e,o)):(i||(a=function(e,t){var n;r=t,u.isBuffer(r)||r instanceof l||"string"===typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"===typeof t||o.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?_(e,o,t,!1):M(e,o)):_(e,o,t,!1))):r||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=w?e=w:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function E(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(k,e):k(e))}function k(e){d("emit readable"),e.emit("readable"),A(e)}function M(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(R,e,t))}function R(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;ea.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0===(e-=o)){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,r.nextTick(I,t,e))}function I(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function O(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):E(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&P(this),null;var r,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e0?T(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&P(this)),null!==r&&this.emit("data",r),r},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,d("pipe count=%d opts=%j",i.pipesCount,t);var s=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?l:y;function u(t,r){d("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,d("cleanup"),e.removeListener("close",m),e.removeListener("finish",b),e.removeListener("drain",c),e.removeListener("error",v),e.removeListener("unpipe",u),n.removeListener("end",l),n.removeListener("end",y),n.removeListener("data",p),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function l(){d("onend"),e.end()}i.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",u);var c=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,A(e))}}(n);e.on("drain",c);var f=!1;var h=!1;function p(t){d("ondata"),h=!1,!1!==e.write(t)||h||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==O(i.pipes,e))&&!f&&(d("false write response, pause",i.awaitDrain),i.awaitDrain++,h=!0),n.pause())}function v(t){d("onerror",t),y(),e.removeListener("error",v),0===o(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",b),y()}function b(){d("onfinish"),e.removeListener("close",m),y()}function y(){d("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",v),e.once("close",m),e.once("finish",b),e.emit("pipe",n),i.flowing||(d("pipe resume"),n.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a{"use strict";e.exports=o;var r=n(5913),i=Object.create(n(3135));function a(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";var r=n(5446);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=m;var a,o=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:r.nextTick;m.WritableState=v;var s=Object.create(n(3135));s.inherits=n(8287);var u={deprecate:n(9708)},l=n(3200),c=n(1125).Buffer,f=("undefined"!==typeof n.g?n.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};var d,h=n(1399);function p(){}function v(e,t){a=a||n(5913),e=e||{};var s=t instanceof a;this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var u=e.highWaterMark,l=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=u||0===u?u:s&&(l||0===l)?l:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,a=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,a){--t.pendingcb,n?(r.nextTick(a,i),r.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(a(i),e._writableState.errorEmitted=!0,e.emit("error",i),S(e,t))}(e,n,i,t,a);else{var s=_(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||g(e,n),i?o(y,e,n,s,a):y(e,n,s,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function m(e){if(a=a||n(5913),!d.call(m,this)&&!(this instanceof a))return new m(e);this._writableState=new v(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),l.call(this)}function b(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function y(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),S(e,t)}function g(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,a=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)a[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;a.allBuffers=u,b(e,t,!0,t.length,a,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,f=n.callback;if(b(e,t,!1,t.objectMode?1:l.length,l,c,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function w(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var n=_(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"===typeof e._final?(t.pendingcb++,t.finalCalled=!0,r.nextTick(w,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}s.inherits(m,l),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===m&&(e&&e._writableState instanceof v)}})):d=function(e){return e instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(e,t,n){var i,a=this._writableState,o=!1,s=!a.objectMode&&(i=e,c.isBuffer(i)||i instanceof f);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"===typeof t&&(n=t,t=null),s?t="buffer":t||(t=a.defaultEncoding),"function"!==typeof n&&(n=p),a.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),r.nextTick(t,n)}(this,n):(s||function(e,t,n,i){var a=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),r.nextTick(i,o),a=!1),a}(this,a,e,n))&&(a.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=c.from(t,n));return t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(e,t,n){var i=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,S(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),m.prototype.destroy=h.destroy,m.prototype._undestroy=h.undestroy,m.prototype._destroy=function(e,t){this.end(),t(e)}},7183:(e,t,n)=>{"use strict";var r=n(1125).Buffer,i=n(1638);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);for(var t,n,i,a=r.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=a,i=s,t.copy(n,i),s+=o.data.length,o=o.next;return a},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},1399:(e,t,n)=>{"use strict";var r=n(5446);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,e)):r.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},3200:(e,t,n)=>{e.exports=n(5070).EventEmitter},1125:(e,t,n)=>{var r=n(3880),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},9364:(e,t,n)=>{(t=e.exports=n(4783)).Stream=t,t.Readable=t,t.Writable=n(323),t.Duplex=n(5913),t.Transform=n(8655),t.PassThrough=n(1885)},7536:(e,t,n)=>{"use strict";var r=n(9146).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!==typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(e.lastNeed=i-1),i;if(--r=0)return i>0&&(e.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},9146:(e,t,n)=>{var r=n(3880),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},492:e=>{e.exports=function(e,t){for(var n=Math.min(e.length,t.length),r=new Buffer(n),i=0;i{"use strict";var r=n(3703),i=n(9782),a="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50;var o=2147483647;function s(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return l(e,t,n)}function l(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|v(e,t),r=s(n),i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(F(e,Uint8Array)){var t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(F(e,ArrayBuffer)||e&&F(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(F(e,SharedArrayBuffer)||e&&F(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);var i=function(e){if(u.isBuffer(e)){var t=0|p(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||V(e.length)?s(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return c(e),s(e<0?0:0|p(e))}function d(e){for(var t=e.length<0?0:0|p(e.length),n=s(t),r=0;r=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function v(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||F(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(i)return r?-1:j(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return R(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return M(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),V(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,i){var a,o=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;as&&(n=s-u),a=n;a>=0;a--){for(var f=!0,d=0;di&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function M(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function R(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128===(192&(a=e[i+1]))&&(u=(31&l)<<6|63&a)>127&&(c=u);break;case 3:a=e[i+1],o=e[i+2],128===(192&a)&&128===(192&o)&&(u=(15&l)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rr.length?u.from(a).copy(r,i):Uint8Array.prototype.set.call(r,a,i);else{if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i)}i+=a.length}return r},u.byteLength=v,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(F(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),l=this.slice(r,i),c=e.slice(t,n),f=0;f>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return S(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,r,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function L(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,a){return t=+t,n>>>=0,a||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,a){return t=+t,n>>>=0,a||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,r)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);O(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>>=0,!r){var i=Math.pow(2,8*n-1);O(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function z(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function U(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function F(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function V(e){return e!==e}var H=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},9106:(e,t,n)=>{var r=n(4836).Buffer,i=n(4703).Transform,a=n(680).StringDecoder;function o(e){i.call(this),this.hashMode="string"===typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(8287)(o,i),o.prototype.update=function(e,t,n){"string"===typeof e&&(e=r.from(e,t));var i=this._update(e);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(i){r=i}finally{n(r)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(n){t=n}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},e.exports=o},3135:(e,t,n)=>{function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"===typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"===typeof e},t.isString=function(e){return"string"===typeof e},t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"===typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"===typeof e},t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n(3880).Buffer.isBuffer},7197:(e,t,n)=>{var r=n(4144),i=n(9367);e.exports=function(e){return new o(e)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function o(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function s(e,t,n){Array.isArray(e)||(e=e.toArray());var r=new Buffer(e);if(n&&r.length{"use strict";var r=n(8287),i=n(5835),a=n(258),o=n(6269),s=n(9106);function u(e){s.call(this,"digest"),this._hash=e}r(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new a:new u(o(e))}},8485:(e,t,n)=>{var r=n(5835);e.exports=function(e){return(new r).update(e).digest()}},1038:(e,t,n)=>{"use strict";var r=n(8287),i=n(5159),a=n(9106),o=n(4836).Buffer,s=n(8485),u=n(258),l=n(6269),c=o.alloc(128);function f(e,t){a.call(this,"digest"),"string"===typeof t&&(t=o.from(t));var n="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>n)?t=("rmd160"===e?new u:l(e)).update(t).digest():t.length{"use strict";var r=n(8287),i=n(4836).Buffer,a=n(9106),o=i.alloc(128),s=64;function u(e,t){a.call(this,"digest"),"string"===typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length{"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(6215),t.createHash=t.Hash=n(1705),t.createHmac=t.Hmac=n(1038);var r=n(9550),i=Object.keys(r),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return a};var o=n(4667);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync;var s=n(3460);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var u=n(2331);t.DiffieHellmanGroup=u.DiffieHellmanGroup,t.createDiffieHellmanGroup=u.createDiffieHellmanGroup,t.getDiffieHellman=u.getDiffieHellman,t.createDiffieHellman=u.createDiffieHellman,t.DiffieHellman=u.DiffieHellman;var l=n(4929);t.createSign=l.createSign,t.Sign=l.Sign,t.createVerify=l.createVerify,t.Verify=l.Verify,t.createECDH=n(7197);var c=n(2807);t.publicEncrypt=c.publicEncrypt,t.privateEncrypt=c.privateEncrypt,t.publicDecrypt=c.publicDecrypt,t.privateDecrypt=c.privateDecrypt;var f=n(3424);t.randomFill=f.randomFill,t.randomFillSync=f.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},4600:(e,t,n)=>{"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ns,camelCaseProperty:()=>d,cssifyDeclaration:()=>v,cssifyObject:()=>m,hyphenateProperty:()=>p,isPrefixedProperty:()=>y,isPrefixedValue:()=>_,isUnitlessProperty:()=>P,normalizeProperty:()=>L,resolveArrayValue:()=>N,unprefixProperty:()=>O,unprefixValue:()=>B});var u=/-([a-z])/g,l=/^Ms/g,c={};function f(e){return e[1].toUpperCase()}function d(e){if(c.hasOwnProperty(e))return c[e];var t=e.replace(u,f).replace(l,"ms");return c[e]=t,t}var h=n(5190);function p(e){return(0,h.default)(e)}function v(e,t){return p(e)+":"+t}function m(e){var t="";for(var n in e){var r=e[n];"string"!==typeof r&&"number"!==typeof r||(t&&(t+=";"),t+=v(n,r))}return t}var b=/^(Webkit|Moz|O|ms)/;function y(e){return b.test(e)}var g=/-webkit-|-moz-|-ms-/;function _(e){return"string"===typeof e&&g.test(e)}var w={borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},S=["animationIterationCount","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","order"],E=["Webkit","ms","Moz","O"];function k(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)}for(var M=0,R=S.length;M{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e)};var r,i=n(5190),a=(r=i)&&r.__esModule?r:{default:r}},2123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"===typeof e&&n.test(e)};var n=/-webkit-|-moz-|-ms-/},3599:(e,t,n)=>{"use strict";t.utils=n(6913),t.Cipher=n(4205),t.DES=n(3848),t.CBC=n(7394),t.EDE=n(3432)},7394:(e,t,n)=>{"use strict";var r=n(8491),i=n(8287),a={};function o(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t{"use strict";var r=n(8491);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==e.padding}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t{"use strict";var r=n(8491),i=n(8287),a=n(6913),o=n(4205);function s(){this.tmp=new Array(2),this.keys=null}function u(e){o.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(u,o),e.exports=u,u.create=function(e){return new u(e)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(e,t){e.keys=new Array(32),r.equal(t.length,this.blockSize,"Invalid key length");var n=a.readUInt32BE(t,0),i=a.readUInt32BE(t,4);a.pc1(n,i,e.tmp,0),n=e.tmp[0],i=e.tmp[1];for(var o=0;o>>1];n=a.r28shl(n,s),i=a.r28shl(i,s),a.pc2(n,i,e.keys,o)}},u.prototype._update=function(e,t,n,r){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(n,o,r),a.writeUInt32BE(n,s,r+4)},u.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var n=e.length-t,r=t;r>>0,o=d}a.rip(s,o,r,i)},u.prototype._decrypt=function(e,t,n,r,i){for(var o=n,s=t,u=e.keys.length-2;u>=0;u-=2){var l=e.keys[u],c=e.keys[u+1];a.expand(o,e.tmp,0),l^=e.tmp[0],c^=e.tmp[1];var f=a.substitute(l,c),d=o;o=(s^a.permute(f))>>>0,s=d}a.rip(o,s,r,i)}},3432:(e,t,n)=>{"use strict";var r=n(8491),i=n(8287),a=n(4205),o=n(3848);function s(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),i=t.slice(8,16),a=t.slice(16,24);this.ciphers="encrypt"===e?[o.create({type:"encrypt",key:n}),o.create({type:"decrypt",key:i}),o.create({type:"encrypt",key:a})]:[o.create({type:"decrypt",key:a}),o.create({type:"encrypt",key:i}),o.create({type:"decrypt",key:n})]}function u(e){a.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(u,a),e.exports=u,u.create=function(e){return new u(e)},u.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},u.prototype._pad=o.prototype._pad,u.prototype._unpad=o.prototype._unpad},6913:(e,t)=>{"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},t.ip=function(e,t,n,r){for(var i=0,a=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+o&1}for(o=6;o>=0;o-=2){for(s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}n[r+0]=i>>>0,n[r+1]=a>>>0},t.rip=function(e,t,n,r){for(var i=0,a=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;for(o=4;o<8;o++)for(s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},t.pc1=function(e,t,n,r){for(var i=0,a=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},t.r28shl=function(e,t){return e<>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,i){for(var a=0,o=0,s=n.length>>>1,u=0;u>>n[u]&1;for(u=s;u>>n[u]&1;r[i+0]=a>>>0,r[i+1]=o>>>0},t.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)r<<=6,r|=e>>>a&63;for(a=11;a>=3;a-=4)i|=e>>>a&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var r=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var n=0,i=0;i<4;i++){n<<=4,n|=r[64*i+(e>>>18-6*i&63)]}for(i=0;i<4;i++){n<<=4,n|=r[256+64*i+(t>>>18-6*i&63)]}return n>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,n=0;n>>i[n]&1;return t>>>0},t.padSplit=function(e,t,n){for(var r=e.toString(2);r.length{var r=n(6137),i=n(3241),a=n(215);var o={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(e){var t=new Buffer(i[e].prime,"hex"),n=new Buffer(i[e].gen,"hex");return new a(t,n)},t.createDiffieHellman=t.DiffieHellman=function e(t,n,i,s){return Buffer.isBuffer(n)||void 0===o[n]?e(t,"binary",n,i):(n=n||"binary",s=s||"binary",i=i||new Buffer([2]),Buffer.isBuffer(i)||(i=new Buffer(i,s)),"number"===typeof t?new a(r(t,i),i,!0):(Buffer.isBuffer(t)||(t=new Buffer(t,n)),new a(t,i,!0)))}},215:(e,t,n)=>{var r=n(9367),i=new(n(2729)),a=new r(24),o=new r(11),s=new r(10),u=new r(3),l=new r(7),c=n(6137),f=n(6215);function d(e,t){return t=t||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,t)),this._pub=new r(e),this}function h(e,t){return t=t||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,t)),this._priv=new r(e),this}e.exports=v;var p={};function v(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=d,this.setPrivateKey=h):this._primeCode=8}function m(e,t){var n=new Buffer(e.toArray());return t?n.toString(t):n}Object.defineProperty(v.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!==typeof this._primeCode&&(this._primeCode=function(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in p)return p[r];var f,d=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!i.test(e))return d+=1,d+="02"===n||"05"===n?8:4,p[r]=d,d;switch(i.test(e.shrn(1))||(d+=2),n){case"02":e.mod(a).cmp(o)&&(d+=8);break;case"05":(f=e.mod(s)).cmp(u)&&f.cmp(l)&&(d+=8);break;default:d+=4}return p[r]=d,d}(this.__prime,this.__gen)),this._primeCode}}),v.prototype.generateKeys=function(){return this._priv||(this._priv=new r(f(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},v.prototype.computeSecret=function(e){var t=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),n=new Buffer(t.toArray()),i=this.getPrime();if(n.length{var r=n(6215);e.exports=y,y.simpleSieve=m,y.fermatTest=b;var i=n(9367),a=new i(24),o=new(n(2729)),s=new i(1),u=new i(2),l=new i(5),c=(new i(16),new i(8),new i(10)),f=new i(3),d=(new i(7),new i(11)),h=new i(4),p=(new i(12),null);function v(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),i=0;ie;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(u),t.cmp(u)){if(!t.cmp(l))for(;n.mod(c).cmp(f);)n.iadd(h)}else for(;n.mod(a).cmp(d);)n.iadd(h);if(m(p=n.shrn(1))&&m(n)&&b(p)&&b(n)&&o.test(p)&&o.test(n))return n}}},4144:(e,t,n)=>{"use strict";var r=t;r.version=n(1636).version,r.utils=n(6485),r.rand=n(9592),r.curve=n(8283),r.curves=n(5195),r.ec=n(8664),r.eddsa=n(2567)},5222:(e,t,n)=>{"use strict";var r=n(9367),i=n(6485),a=i.getNAF,o=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=a(t,1,this._bitLength),i=(1<=o;c--)u=(u<<1)+r[c];l.push(u)}for(var f=this.jpoint(null,null,null),d=this.jpoint(null,null,null),h=i;h>0;h--){for(o=0;o=0;l--){for(var c=0;l>=0&&0===o[l];l--)c++;if(l>=0&&c++,u=u.dblp(c),l<0)break;var f=o[l];s(0!==f),u="affine"===e.type?f>0?u.mixedAdd(i[f-1>>1]):u.mixedAdd(i[-f-1>>1].neg()):f>0?u.add(i[f-1>>1]):u.add(i[-f-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,n,r,i){var s,u,l,c=this._wnafT1,f=this._wnafT2,d=this._wnafT3,h=0;for(s=0;s=1;s-=2){var v=s-1,m=s;if(1===c[v]&&1===c[m]){var b=[t[v],null,null,t[m]];0===t[v].y.cmp(t[m].y)?(b[1]=t[v].add(t[m]),b[2]=t[v].toJ().mixedAdd(t[m].neg())):0===t[v].y.cmp(t[m].y.redNeg())?(b[1]=t[v].toJ().mixedAdd(t[m]),b[2]=t[v].add(t[m].neg())):(b[1]=t[v].toJ().mixedAdd(t[m]),b[2]=t[v].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],g=o(n[v],n[m]);for(h=Math.max(g[0].length,h),d[v]=new Array(h),d[m]=new Array(h),u=0;u=0;s--){for(var k=0;s>=0;){var M=!0;for(u=0;u=0&&k++,S=S.dblp(k),s<0)break;for(u=0;u0?l=f[u][R-1>>1]:R<0&&(l=f[u][-R-1>>1].neg()),S="affine"===l.type?S.mixedAdd(l):S.add(l))}}for(s=0;s=Math.ceil((e.bitLength()+1)/t.step)},l.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i{"use strict";var r=n(6485),i=n(9367),a=n(8287),o=n(5222),s=r.assert;function u(e){this.twisted=1!==(0|e.a),this.mOneA=this.twisted&&-1===(0|e.a),this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1===(0|e.c)}function l(e,t,n,r,a){o.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=a&&new i(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(u,o),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),a=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=r.redMul(a.redInvm()),s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),a=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=r.redMul(a.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},a(l,o.BasePoint),u.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},u.prototype.point=function(e,t,n,r){return new l(this,e,t,n,r)},l.fromJSON=function(e,t){return new l(e,t[0],t[1],t[2])},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=r.redAdd(t),o=a.redSub(n),s=r.redSub(t),u=i.redMul(o),l=a.redMul(s),c=i.redMul(s),f=o.redMul(a);return this.curve.point(u,l,f,c)},l.prototype._projDbl=function(){var e,t,n,r,i,a,o=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var l=(r=this.curve._mulA(s)).redAdd(u);this.zOne?(e=o.redSub(s).redSub(u).redMul(l.redSub(this.curve.two)),t=l.redMul(r.redSub(u)),n=l.redSqr().redSub(l).redSub(l)):(i=this.z.redSqr(),a=l.redSub(i).redISub(i),e=o.redSub(s).redISub(u).redMul(a),t=l.redMul(r.redSub(u)),n=l.redMul(a))}else r=s.redAdd(u),i=this.curve._mulC(this.z).redSqr(),a=r.redSub(i).redSub(i),e=this.curve._mulC(o.redISub(r)).redMul(a),t=this.curve._mulC(r).redMul(s.redISub(u)),n=r.redMul(a);return this.curve.point(e,t,n)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),a=n.redSub(t),o=i.redSub(r),s=i.redAdd(r),u=n.redAdd(t),l=a.redMul(o),c=s.redMul(u),f=a.redMul(u),d=o.redMul(s);return this.curve.point(l,c,d,f)},l.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(o),u=i.redSub(s),l=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),f=r.redMul(u).redMul(c);return this.curve.twisted?(t=r.redMul(l).redMul(o.redSub(this.curve._mulA(a))),n=u.redMul(l)):(t=r.redMul(l).redMul(o.redSub(a)),n=this.curve._mulC(u).redMul(l)),this.curve.point(f,t,n)},l.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},l.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},l.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},l.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},8283:(e,t,n)=>{"use strict";var r=t;r.base=n(5222),r.short=n(3989),r.mont=n(3261),r.edwards=n(9099)},3261:(e,t,n)=>{"use strict";var r=n(9367),i=n(8287),a=n(5222),o=n(6485);function s(e){a.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,n){a.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,a),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},i(u,a.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},s.prototype.point=function(e,t){return new u(this,e,t)},s.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(n),o=i.redMul(r),s=t.z.redMul(a.redAdd(o).redSqr()),u=t.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var a=i.length-1;a>=0;a--)0===i[a]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},3989:(e,t,n)=>{"use strict";var r=n(6485),i=n(9367),a=n(8287),o=n(5222),s=r.assert;function u(e){o.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(e,t,n,r){o.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function c(e,t,n,r){o.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(n,16),this.z=new i(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}a(u,o),e.exports=u,u.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?n=a[0]:(n=a[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(n)}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),n=new i(2).toRed(t).redInvm(),r=n.redNeg(),a=new i(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(a).fromRed(),r.redSub(a).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,n,r,a,o,s,u,l,c,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new i(1),v=new i(0),m=new i(0),b=new i(1),y=0;0!==d.cmpn(0);){var g=h.div(d);l=h.sub(g.mul(d)),c=m.sub(g.mul(p));var _=b.sub(g.mul(v));if(!r&&l.cmp(f)<0)t=u.neg(),n=p,r=l.neg(),a=c;else if(r&&2===++y)break;u=l,h=d,d=l,m=p,p=c,b=v,v=_}o=l.neg(),s=c;var w=r.sqr().add(a.sqr());return o.sqr().add(s.sqr()).cmp(w)>=0&&(o=t,s=n),r.negative&&(r=r.neg(),a=a.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:r,b:a},{a:o,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),a=n.b.neg().mul(e).divRound(this.n),o=i.mul(n.a),s=a.mul(r.a),u=i.mul(n.b),l=a.mul(r.b);return{k1:e.sub(o).sub(s),k2:u.add(l).neg()}},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var a=r.fromRed().isOdd();return(t&&!a||!t&&a)&&(r=r.redNeg()),this.point(e,r)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,a=0;a":""},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},l.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),a=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},l.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},l.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(c,o.BasePoint),u.prototype.jpoint=function(e,t,n){return new c(this,e,t,n)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),u=a.redSub(o);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),c=l.redMul(s),f=r.redMul(l),d=u.redSqr().redIAdd(c).redISub(f).redISub(f),h=u.redMul(f.redISub(d)).redISub(a.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,a=e.y.redMul(t).redMul(this.z),o=n.redSub(r),s=i.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=o.redSqr(),l=u.redMul(o),c=n.redMul(u),f=s.redSqr().redIAdd(l).redISub(c).redISub(c),d=s.redMul(c.redISub(f)).redISub(i.redMul(l)),h=this.z.redMul(o);return this.curve.jpoint(f,d,h)},c.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},5195:(e,t,n)=>{"use strict";var r,i=t,a=n(6155),o=n(8283),s=n(6485).assert;function u(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=u,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(2802)}catch(c){r=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},8664:(e,t,n)=>{"use strict";var r=n(9367),i=n(2822),a=n(6485),o=n(5195),s=n(9592),u=a.assert,l=n(8619),c=n(1382);function f(e){if(!(this instanceof f))return new f(e);"string"===typeof e&&(u(Object.prototype.hasOwnProperty.call(o,e),"Unknown curve "+e),e=o[e]),e instanceof o.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=f,f.prototype.keyPair=function(e){return new l(this,e)},f.prototype.keyFromPrivate=function(e,t){return l.fromPrivate(this,e,t)},f.prototype.keyFromPublic=function(e,t){return l.fromPublic(this,e,t)},f.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new r(2));;){var o=new r(t.generate(n));if(!(o.cmp(a)>0))return o.iaddn(1),this.keyFromPrivate(o)}},f.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,n,a){"object"===typeof n&&(a=n,n=null),a||(a={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var o=this.n.byteLength(),s=t.getPrivate().toArray("be",o),u=e.toArray("be",o),l=new i({hash:this.hash,entropy:s,nonce:u,pers:a.pers,persEnc:a.persEnc||"utf8"}),f=this.n.sub(new r(1)),d=0;;d++){var h=a.k?a.k(d):new r(l.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(f)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var v=p.getX(),m=v.umod(this.n);if(0!==m.cmpn(0)){var b=h.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(b=b.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==v.cmp(m)?2:0);return a.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),y^=1),new c({r:m,s:b,recoveryParam:y})}}}}}},f.prototype.verify=function(e,t,n,i){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,i);var a=(t=new c(t,"hex")).r,o=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,u=o.invm(this.n),l=u.mul(e).umod(this.n),f=u.mul(a).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,n.getPublic(),f)).isInfinity()&&s.eqXToP(a):!(s=this.g.mulAdd(l,n.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(a)},f.prototype.recoverPubKey=function(e,t,n,i){u((3&n)===n,"The recovery param is more than two bits"),t=new c(t,i);var a=this.n,o=new r(e),s=t.r,l=t.s,f=1&n,d=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var h=t.r.invm(a),p=a.sub(o).mul(h).umod(a),v=l.mul(h).umod(a);return this.g.mulAdd(p,s,v)},f.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new c(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch(e){continue}if(a.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},8619:(e,t,n)=>{"use strict";var r=n(9367),i=n(6485).assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=a,a.fromPublic=function(e,t,n){return t instanceof a?t:new a(e,{pub:t,pubEnc:n})},a.fromPrivate=function(e,t,n){return t instanceof a?t:new a(e,{priv:t,privEnc:n})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return"string"===typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},a.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return""}},1382:(e,t,n)=>{"use strict";var r=n(9367),i=n(6485),a=i.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,a=0,o=t.place;a>>=0;return!(i<=127)&&(t.place=o,i)}function l(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=o,o.prototype._importDER=function(e,t){e=i.toArray(e,t);var n=new s;if(48!==e[n.place++])return!1;var a=u(e,n);if(!1===a)return!1;if(a+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var o=u(e,n);if(!1===o)return!1;var l=e.slice(n.place,o+n.place);if(n.place+=o,2!==e[n.place++])return!1;var c=u(e,n);if(!1===c)return!1;if(e.length!==c+n.place)return!1;var f=e.slice(n.place,c+n.place);if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new r(l),this.s=new r(f),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=l(t),n=l(n);!n[0]&&!(128&n[1]);)n=n.slice(1);var r=[2];c(r,t.length),(r=r.concat(t)).push(2),c(r,n.length);var a=r.concat(n),o=[48];return c(o,a.length),o=o.concat(a),i.encode(o,e)}},2567:(e,t,n)=>{"use strict";var r=n(6155),i=n(5195),a=n(6485),o=a.assert,s=a.parseBytes,u=n(2448),l=n(7809);function c(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),a=this.encodePoint(i),o=this.hashInt(a,n.pubBytes(),e).mul(n.priv()),u=r.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:a})},c.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(a)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t{"use strict";var r=n(6485),i=r.assert,a=r.parseBytes,o=r.cachedProperty;function s(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},o(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),o(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),o(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),o(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),o(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),o(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},s.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},e.exports=s},7809:(e,t,n)=>{"use strict";var r=n(9367),i=n(6485),a=i.assert,o=i.cachedProperty,s=i.parseBytes;function u(e,t){this.eddsa=e,"object"!==typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}o(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),o(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),o(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),o(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=u},2802:e=>{e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},6485:(e,t,n)=>{"use strict";var r=t,i=n(9367),a=n(8491),o=n(4738);r.assert=a,r.toArray=o.toArray,r.zero2=o.zero2,r.toHex=o.toHex,r.encode=o.encode,r.getNAF=function(e,t,n){var r,i=new Array(Math.max(e.bitLength(),n)+1);for(r=0;r(a>>1)-1?(a>>1)-u:u,o.isubn(s)):s=0,i[r]=s,o.iushrn(1)}return i},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,a=0;e.cmpn(-i)>0||t.cmpn(-a)>0;){var o,s,u=e.andln(3)+i&3,l=t.andln(3)+a&3;3===u&&(u=-1),3===l&&(l=-1),o=0===(1&u)?0:3!==(r=e.andln(7)+i&7)&&5!==r||2!==l?u:-u,n[0].push(o),s=0===(1&l)?0:3!==(r=t.andln(7)+a&7)&&5!==r||2!==u?l:-l,n[1].push(s),2*i===o+1&&(i=1-i),2*a===s+1&&(a=1-a),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"===typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},5070:e=>{"use strict";var t,n="object"===typeof Reflect?Reflect:null,r=n&&"function"===typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!==e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"===typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}v(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&v(e,"error",t,n)}(e,i,{once:!0})}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var o=10;function s(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,a,o,l;if(s(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),void 0===o)o=a[t]=n,++e._eventsCount;else if("function"===typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=u(e))>0&&o.length>i&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=o.length,l=c,console&&console.warn&&console.warn(l)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=a[e];if(void 0===u)return!1;if("function"===typeof u)r(u,this,t);else{var l=u.length,c=p(u,l);for(n=0;n=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return d(this,e,!0)},a.prototype.rawListeners=function(e){return d(this,e,!1)},a.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},a.prototype.listenerCount=h,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},8101:(e,t,n)=>{var r=n(4836).Buffer,i=n(5835);e.exports=function(e,t,n,a){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=n/8,s=r.alloc(o),u=r.alloc(a||0),l=r.alloc(0);o>0||a>0;){var c=new i;c.update(l),c.update(e),t&&c.update(t),l=c.digest();var f=0;if(o>0){var d=s.length-o;f=Math.min(o,l.length),l.copy(s,d,0,f),o-=f}if(f0){var h=u.length-a,p=Math.min(a,l.length-f);l.copy(u,h,f,f+p),a-=p}}return l.fill(0),{key:s,iv:u}}},1400:e=>{"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},6077:e=>{"use strict";var t=function(e){};e.exports=function(e,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a{"use strict";var r=n(1400);e.exports=r},7719:e=>{!function(){function t(e,t){document.addEventListener?e.addEventListener("scroll",t,!1):e.attachEvent("scroll",t)}function n(e){this.g=document.createElement("div"),this.g.setAttribute("aria-hidden","true"),this.g.appendChild(document.createTextNode(e)),this.h=document.createElement("span"),this.i=document.createElement("span"),this.m=document.createElement("span"),this.j=document.createElement("span"),this.l=-1,this.h.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.i.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.j.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.m.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.h.appendChild(this.m),this.i.appendChild(this.j),this.g.appendChild(this.h),this.g.appendChild(this.i)}function r(e,t){e.g.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+t+";"}function i(e){var t=e.g.offsetWidth,n=t+100;return e.j.style.width=n+"px",e.i.scrollLeft=n,e.h.scrollLeft=e.h.scrollWidth+100,e.l!==t&&(e.l=t,!0)}function a(e,n){function r(){var e=a;i(e)&&null!==e.g.parentNode&&n(e.l)}var a=e;t(e.h,r),t(e.i,r),i(e)}function o(e,t,n){t=t||{},n=n||window,this.family=e,this.style=t.style||"normal",this.weight=t.weight||"normal",this.stretch=t.stretch||"normal",this.context=n}var s=null,u=null,l=null,c=null;function f(e){return null===c&&(c=!!e.document.fonts),c}function d(e,t){var n=e.style,r=e.weight;if(null===l){var i=document.createElement("div");try{i.style.font="condensed 100px sans-serif"}catch(a){}l=""!==i.style.font}return[n,r,l?e.stretch:"","100px",t].join(" ")}o.prototype.load=function(e,t){var i=this,o=e||"BESbswy",l=0,c=t||3e3,h=(new Date).getTime();return new Promise((function(e,t){if(f(i.context)&&!function(e){return null===u&&(f(e)&&/Apple/.test(window.navigator.vendor)?(e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent),u=!!e&&603>parseInt(e[1],10)):u=!1),u}(i.context)){var p=new Promise((function(e,t){!function n(){(new Date).getTime()-h>=c?t(Error(c+"ms timeout exceeded")):i.context.document.fonts.load(d(i,'"'+i.family+'"'),o).then((function(t){1<=t.length?e():setTimeout(n,25)}),t)}()})),v=new Promise((function(e,t){l=setTimeout((function(){t(Error(c+"ms timeout exceeded"))}),c)}));Promise.race([v,p]).then((function(){clearTimeout(l),e(i)}),t)}else!function(e){document.body?e():document.addEventListener?document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t),e()})):document.attachEvent("onreadystatechange",(function t(){"interactive"!=document.readyState&&"complete"!=document.readyState||(document.detachEvent("onreadystatechange",t),e())}))}((function(){function u(){var t;(t=-1!=m&&-1!=b||-1!=m&&-1!=y||-1!=b&&-1!=y)&&((t=m!=b&&m!=y&&b!=y)||(null===s&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),s=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))),t=s&&(m==g&&b==g&&y==g||m==_&&b==_&&y==_||m==w&&b==w&&y==w)),t=!t),t&&(null!==S.parentNode&&S.parentNode.removeChild(S),clearTimeout(l),e(i))}var f=new n(o),p=new n(o),v=new n(o),m=-1,b=-1,y=-1,g=-1,_=-1,w=-1,S=document.createElement("div");S.dir="ltr",r(f,d(i,"sans-serif")),r(p,d(i,"serif")),r(v,d(i,"monospace")),S.appendChild(f.g),S.appendChild(p.g),S.appendChild(v.g),i.context.document.body.appendChild(S),g=f.g.offsetWidth,_=p.g.offsetWidth,w=v.g.offsetWidth,function e(){if((new Date).getTime()-h>=c)null!==S.parentNode&&S.parentNode.removeChild(S),t(Error(c+"ms timeout exceeded"));else{var n=i.context.document.hidden;!0!==n&&void 0!==n||(m=f.g.offsetWidth,b=p.g.offsetWidth,y=v.g.offsetWidth,u()),l=setTimeout(e,50)}}(),a(f,(function(e){m=e,u()})),r(f,d(i,'"'+i.family+'",sans-serif')),a(p,(function(e){b=e,u()})),r(p,d(i,'"'+i.family+'",serif')),a(v,(function(e){y=e,u()})),r(v,d(i,'"'+i.family+'",monospace'))}))}))},e.exports=o}()},6155:(e,t,n)=>{var r=t;r.utils=n(941),r.common=n(6447),r.sha=n(53),r.ripemd=n(3257),r.hmac=n(3393),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},6447:(e,t,n)=>{"use strict";var r=n(941),i=n(8491);function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=a,a.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,a=8;a{"use strict";var r=n(941),i=n(8491);function a(e,t,n){if(!(this instanceof a))return new a(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}e.exports=a,a.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t{"use strict";var r=n(941),i=n(6447),a=r.rotl32,o=r.sum32,s=r.sum32_3,u=r.sum32_4,l=i.BlockHash;function c(){if(!(this instanceof c))return new c;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(c,l),t.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],l=this.h[3],c=this.h[4],y=n,g=r,_=i,w=l,S=c,E=0;E<80;E++){var k=o(a(u(n,f(E,r,i,l),e[p[E]+t],d(E)),m[E]),c);n=c,c=l,l=a(i,10),i=r,r=k,k=o(a(u(y,f(79-E,g,_,w),e[v[E]+t],h(E)),b[E]),S),y=S,S=w,w=a(_,10),_=g,g=k}k=s(this.h[1],i,w),this.h[1]=s(this.h[2],l,S),this.h[2]=s(this.h[3],c,y),this.h[3]=s(this.h[4],n,g),this.h[4]=s(this.h[0],r,_),this.h[0]=k},c.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],v=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],b=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},53:(e,t,n)=>{"use strict";t.sha1=n(1626),t.sha224=n(8737),t.sha256=n(7672),t.sha384=n(2076),t.sha512=n(8797)},1626:(e,t,n)=>{"use strict";var r=n(941),i=n(6447),a=n(312),o=r.rotl32,s=r.sum32,u=r.sum32_5,l=a.ft_1,c=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r{"use strict";var r=n(941),i=n(7672);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(a,i),e.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},7672:(e,t,n)=>{"use strict";var r=n(941),i=n(6447),a=n(312),o=n(8491),s=r.sum32,u=r.sum32_4,l=r.sum32_5,c=a.ch32,f=a.maj32,d=a.s0_256,h=a.s1_256,p=a.g0_256,v=a.g1_256,m=i.BlockHash,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}r.inherits(y,m),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r{"use strict";var r=n(941),i=n(8797);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(a,i),e.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},8797:(e,t,n)=>{"use strict";var r=n(941),i=n(6447),a=n(8491),o=r.rotr64_hi,s=r.rotr64_lo,u=r.shr64_hi,l=r.shr64_lo,c=r.sum64,f=r.sum64_hi,d=r.sum64_lo,h=r.sum64_4_hi,p=r.sum64_4_lo,v=r.sum64_5_hi,m=r.sum64_5_lo,b=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function g(){if(!(this instanceof g))return new g;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function _(e,t,n,r,i){var a=e&n^~e&i;return a<0&&(a+=4294967296),a}function w(e,t,n,r,i,a){var o=t&r^~t&a;return o<0&&(o+=4294967296),o}function S(e,t,n,r,i){var a=e&n^e&i^n&i;return a<0&&(a+=4294967296),a}function E(e,t,n,r,i,a){var o=t&r^t&a^r&a;return o<0&&(o+=4294967296),o}function k(e,t){var n=o(e,t,28)^o(t,e,2)^o(t,e,7);return n<0&&(n+=4294967296),n}function M(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function R(e,t){var n=o(e,t,14)^o(e,t,18)^o(t,e,9);return n<0&&(n+=4294967296),n}function C(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function x(e,t){var n=o(e,t,1)^o(e,t,8)^u(e,t,7);return n<0&&(n+=4294967296),n}function A(e,t){var n=s(e,t,1)^s(e,t,8)^l(e,t,7);return n<0&&(n+=4294967296),n}function T(e,t){var n=o(e,t,19)^o(t,e,29)^u(e,t,6);return n<0&&(n+=4294967296),n}function P(e,t){var n=s(e,t,19)^s(t,e,29)^l(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(g,b),e.exports=g,g.blockSize=1024,g.outSize=512,g.hmacStrength=192,g.padLength=128,g.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r{"use strict";var r=n(941).rotr32;function i(e,t,n){return e&t^~e&n}function a(e,t,n){return e&t^e&n^t&n}function o(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?o(t,n,r):2===e?a(t,n,r):void 0},t.ch32=i,t.maj32=a,t.p32=o,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},941:(e,t,n)=>{"use strict";var r=n(8491),i=n(8287);function a(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),i=0;i>6|192,n[r++]=63&o|128):a(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i>>0}return o},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r>>24,n[i+1]=a>>>16&255,n[i+2]=a>>>8&255,n[i+3]=255&a):(n[i+3]=a>>>24,n[i+2]=a>>>16&255,n[i+1]=a>>>8&255,n[i]=255&a)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],a=r+e[t+1]>>>0,o=(a>>0,e[t+1]=a},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,a,o,s){var u=0,l=t;return u+=(l=l+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,i,a,o,s){return t+r+a+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,a,o,s,u,l){var c=0,f=t;return c+=(f=f+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,i,a,o,s,u,l){return t+r+a+s+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},2822:(e,t,n)=>{"use strict";var r=n(6155),i=n(4738),a=n(8491);function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),n=i.toArray(e.nonce,e.nonceEnc||"hex"),r=i.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=o,o.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},o.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof t&&(r=n,n=t,t=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var a=[];a.length{"use strict";n.r(t),n.d(t,{default:()=>s});var r=/[A-Z]/g,i=/^ms-/,a={};function o(e){return"-"+e.toLowerCase()}const s=function(e){if(a.hasOwnProperty(e))return a[e];var t=e.replace(r,o);return a[e]=i.test(t)?"-"+t:t}},9782:(e,t)=>{t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,u=(1<>1,c=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,a=h&(1<<-c)-1,h>>=-c,c+=s;c>0;a=256*a+e[t+f],f+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+f],f+=d,c-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),a-=l}return(h?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,u,l=8*a-i-1,c=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,p=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),(t+=o+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(o++,u/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*u-1)*Math.pow(2,i),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(o=o<0;e[n+h]=255&o,h+=p,o/=256,l-=8);e[n+h-p]|=128*v}},8287:e=>{"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.prefixMap,n=e.plugins;return function e(s){for(var u in s){var l=s[u];if((0,o.default)(l))s[u]=e(l);else if(Array.isArray(l)){for(var c=[],f=0,d=l.length;f0&&(s[u]=c)}else{var p=(0,i.default)(n,u,l,s,t);p&&(s[u]=p),s=(0,r.default)(t,u,s)}}return s}};var r=s(n(4778)),i=s(n(3890)),a=s(n(8132)),o=s(n(6264));function s(e){return e&&e.__esModule?e:{default:e}}},2610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return null}},620:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"===typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("cross-fade("))return a.map((function(e){return t.replace(i,e+"cross-fade(")}))};var r=n(4600),i=/cross-fade\(/g,a=["-webkit-",""]},6698:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("cursor"===e&&r.hasOwnProperty(t))return n.map((function(e){return e+t}))};var n=["-webkit-","-moz-",""],r={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0}},4206:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"===typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("filter("))return a.map((function(e){return t.replace(i,e+"filter(")}))};var r=n(4600),i=/filter\(/g,a=["-webkit-",""]},4191:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"===typeof t&&!(0,a.default)(t)&&t.indexOf("image-set(")>-1)return o.map((function(e){return t.replace(/image-set\(/g,e+"image-set(")}))};var r,i=n(2123),a=(r=i)&&r.__esModule?r:{default:r};var o=["-webkit-",""]},4389:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(Object.prototype.hasOwnProperty.call(n,e))for(var i=n[e],a=0,o=i.length;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("position"===e&&"sticky"===t)return["-webkit-sticky","sticky"]}},6694:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(r.hasOwnProperty(e)&&i.hasOwnProperty(t))return n.map((function(e){return e+t}))};var n=["-webkit-","-moz-",""],r={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},i={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0}},3675:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o){if("string"===typeof t&&s.hasOwnProperty(e)){var l=function(e,t){if((0,i.default)(e))return e;for(var n=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),a=0,o=n.length;a-1&&"order"!==f)for(var d=t[c],h=0,p=d.length;h-1)return c;var f=l.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter((function(e){return!/-webkit-|-ms-/.test(e)})).join(",");return e.indexOf("Moz")>-1?f:(n["Webkit"+(0,a.default)(e)]=c,n["Moz"+(0,a.default)(e)]=f,l)}};var r=o(n(4644)),i=o(n(2123)),a=o(n(7964));function o(e){return e&&e.__esModule?e:{default:e}}var s={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},u={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"}},8132:(e,t)=>{"use strict";function n(e,t){-1===e.indexOf(t)&&e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(Array.isArray(t))for(var r=0,i=t.length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},6264:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e instanceof Object&&!Array.isArray(e)}},4778:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=e[t];if(r&&n.hasOwnProperty(t))for(var i=(0,a.default)(t),o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){for(var a=0,o=e.length;a{"use strict";e.exports=function(e,t,n,r,i,a,o,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,o,s],c=0;(u=new Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},8111:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},7055:(e,t,n)=>{var r=n(459)(n(4734),"DataView");e.exports=r},42:(e,t,n)=>{var r=n(2553),i=n(2769),a=n(8184),o=n(4844),s=n(5004);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(9801),i=n(2225),a=n(6376),o=n(540),s=n(9068);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(459)(n(4734),"Map");e.exports=r},1866:(e,t,n)=>{var r=n(2713),i=n(7601),a=n(2904),o=n(2380),s=n(4700);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(459)(n(4734),"Promise");e.exports=r},2048:(e,t,n)=>{var r=n(459)(n(4734),"Set");e.exports=r},4812:(e,t,n)=>{var r=n(1866),i=n(485),a=n(5798);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t{var r=n(9994),i=n(6983),a=n(4755),o=n(6789),s=n(8294),u=n(5198);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=s,l.prototype.set=u,e.exports=l},8290:(e,t,n)=>{var r=n(4734).Symbol;e.exports=r},7975:(e,t,n)=>{var r=n(4734).Uint8Array;e.exports=r},8102:(e,t,n)=>{var r=n(459)(n(4734),"WeakMap");e.exports=r},2208:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},2359:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n{var r=n(1358);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},2548:e=>{e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r{var r=n(889),i=n(2675),a=n(214),o=n(2541),s=n(1155),u=n(9210),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),c=!n&&i(e),f=!n&&!c&&o(e),d=!n&&!c&&!f&&u(e),h=n||c||f||d,p=h?r(e.length,String):[],v=p.length;for(var m in e)!t&&!l.call(e,m)||h&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,v))||p.push(m);return p}},4775:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{var r=n(9313),i=n(9501),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];a.call(e,t)&&i(o,n)&&(void 0!==n||t in e)||r(e,t,n)}},9434:(e,t,n)=>{var r=n(9501);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},9313:(e,t,n)=>{var r=n(2263);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},800:(e,t,n)=>{var r=n(4812),i=n(5132),a=n(2548),o=n(4775),s=n(4388),u=n(7440);e.exports=function(e,t,n,l){var c=-1,f=i,d=!0,h=e.length,p=[],v=t.length;if(!h)return p;n&&(t=o(t,s(n))),l?(f=a,d=!1):t.length>=200&&(f=u,d=!1,t=new r(t));e:for(;++c{e.exports=function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a{var r=n(8265),i=n(8106);e.exports=function e(t,n,a,o,s){var u=-1,l=t.length;for(a||(a=i),s||(s=[]);++u0&&a(c)?n>1?e(c,n-1,a,o,s):r(s,c):o||(s[s.length]=c)}return s}},7507:(e,t,n)=>{var r=n(4918),i=n(4872);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n{var r=n(8265),i=n(214);e.exports=function(e,t,n){var a=t(e);return i(e)?a:r(a,n(e))}},6179:(e,t,n)=>{var r=n(8290),i=n(22),a=n(5789),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):a(e)}},8628:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},1358:(e,t,n)=>{var r=n(9234),i=n(4574),a=n(2186);e.exports=function(e,t,n){return t===t?a(e,t,n):r(e,i,n)}},7707:(e,t,n)=>{var r=n(6179),i=n(6483);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},1615:(e,t,n)=>{var r=n(8449),i=n(6483);e.exports=function e(t,n,a,o,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!==t&&n!==n:r(t,n,a,o,e,s))}},8449:(e,t,n)=>{var r=n(6972),i=n(7966),a=n(2301),o=n(3726),s=n(8902),u=n(214),l=n(2541),c=n(9210),f="[object Arguments]",d="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,m,b){var y=u(e),g=u(t),_=y?d:s(e),w=g?d:s(t),S=(_=_==f?h:_)==h,E=(w=w==f?h:w)==h,k=_==w;if(k&&l(e)){if(!l(t))return!1;y=!0,S=!1}if(k&&!S)return b||(b=new r),y||c(e)?i(e,t,n,v,m,b):a(e,t,_,n,v,m,b);if(!(1&n)){var M=S&&p.call(e,"__wrapped__"),R=E&&p.call(t,"__wrapped__");if(M||R){var C=M?e.value():e,x=R?t.value():t;return b||(b=new r),m(C,x,n,v,b)}}return!!k&&(b||(b=new r),o(e,t,n,v,m,b))}},4410:(e,t,n)=>{var r=n(6972),i=n(1615);e.exports=function(e,t,n,a){var o=n.length,s=o,u=!a;if(null==e)return!s;for(e=Object(e);o--;){var l=n[o];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o{e.exports=function(e){return e!==e}},7784:(e,t,n)=>{var r=n(7063),i=n(3415),a=n(3628),o=n(4818),s=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,f=l.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(r(e)?d:s).test(o(e))}},8866:(e,t,n)=>{var r=n(6179),i=n(8251),a=n(6483),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!o[r(e)]}},8598:(e,t,n)=>{var r=n(6574),i=n(6183),a=n(7701),o=n(214),s=n(3506);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?o(e)?i(e[0],e[1]):r(e):s(e)}},5475:(e,t,n)=>{var r=n(7506),i=n(8505),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},6574:(e,t,n)=>{var r=n(4410),i=n(8415),a=n(8544);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},6183:(e,t,n)=>{var r=n(1615),i=n(2555),a=n(8780),o=n(8643),s=n(5555),u=n(8544),l=n(4872);e.exports=function(e,t){return o(e)&&s(t)?u(l(e),t):function(n){var o=i(n,e);return void 0===o&&o===t?a(n,e):r(t,o,3)}}},2890:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},32:(e,t,n)=>{var r=n(7507);e.exports=function(e){return function(t){return r(t,e)}}},8489:(e,t,n)=>{var r=n(7701),i=n(6210),a=n(5372);e.exports=function(e,t){return a(i(e,t,r),e+"")}},3163:(e,t,n)=>{var r=n(1931),i=n(2263),a=n(7701),o=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=o},889:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n{var r=n(8290),i=n(4775),a=n(214),o=n(851),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(o(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},9283:(e,t,n)=>{var r=n(4449),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},4388:e=>{e.exports=function(e){return function(t){return e(t)}}},7440:e=>{e.exports=function(e,t){return e.has(t)}},4918:(e,t,n)=>{var r=n(214),i=n(8643),a=n(4013),o=n(3211);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:a(o(e))}},5736:(e,t,n)=>{var r=n(3358),i=n(9313);e.exports=function(e,t,n,a){var o=!n;n||(n={});for(var s=-1,u=t.length;++s{var r=n(4734)["__core-js_shared__"];e.exports=r},9576:(e,t,n)=>{var r=n(8489),i=n(5239);e.exports=function(e){return r((function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++r{var r=n(459),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},7966:(e,t,n)=>{var r=n(4812),i=n(3601),a=n(7440);e.exports=function(e,t,n,o,s,u){var l=1&n,c=e.length,f=t.length;if(c!=f&&!(l&&f>c))return!1;var d=u.get(e),h=u.get(t);if(d&&h)return d==t&&h==e;var p=-1,v=!0,m=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++p{var r=n(8290),i=n(7975),a=n(9501),o=n(7966),s=n(6934),u=n(7300),l=r?r.prototype:void 0,c=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,f,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var p=1&r;if(h||(h=u),e.size!=t.size&&!p)return!1;var v=d.get(e);if(v)return v==t;r|=2,d.set(e,t);var m=o(h(e),h(t),r,l,f,d);return d.delete(e),m;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},3726:(e,t,n)=>{var r=n(7865),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,o,s){var u=1&n,l=r(e),c=l.length;if(c!=r(t).length&&!u)return!1;for(var f=c;f--;){var d=l[f];if(!(u?d in t:i.call(t,d)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var v=!0;s.set(e,t),s.set(t,e);for(var m=u;++f{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},7865:(e,t,n)=>{var r=n(8596),i=n(4859),a=n(1771);e.exports=function(e){return r(e,a,i)}},9884:(e,t,n)=>{var r=n(9675);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},8415:(e,t,n)=>{var r=n(5555),i=n(1771);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var a=t[n],o=e[a];t[n]=[a,o,r(o)]}return t}},459:(e,t,n)=>{var r=n(7784),i=n(7675);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},22:(e,t,n)=>{var r=n(8290),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(u){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}},4859:(e,t,n)=>{var r=n(2359),i=n(4314),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return a.call(e,t)})))}:i;e.exports=s},8902:(e,t,n)=>{var r=n(7055),i=n(5306),a=n(7477),o=n(2048),s=n(8102),u=n(6179),l=n(4818),c="[object Map]",f="[object Promise]",d="[object Set]",h="[object WeakMap]",p="[object DataView]",v=l(r),m=l(i),b=l(a),y=l(o),g=l(s),_=u;(r&&_(new r(new ArrayBuffer(1)))!=p||i&&_(new i)!=c||a&&_(a.resolve())!=f||o&&_(new o)!=d||s&&_(new s)!=h)&&(_=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case v:return p;case m:return c;case b:return f;case y:return d;case g:return h}return t}),e.exports=_},7675:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},9115:(e,t,n)=>{var r=n(4918),i=n(2675),a=n(214),o=n(1155),s=n(8251),u=n(4872);e.exports=function(e,t,n){for(var l=-1,c=(t=r(t,e)).length,f=!1;++l{var r=n(1793);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},2769:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8184:(e,t,n)=>{var r=n(1793),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},4844:(e,t,n)=>{var r=n(1793),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},5004:(e,t,n)=>{var r=n(1793);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},8106:(e,t,n)=>{var r=n(8290),i=n(2675),a=n(214),o=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||i(e)||!!(o&&e&&e[o])}},1155:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e{var r=n(9501),i=n(6945),a=n(1155),o=n(3628);e.exports=function(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&a(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},8643:(e,t,n)=>{var r=n(214),i=n(851),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(o.test(e)||!a.test(e)||null!=t&&e in Object(t))}},9675:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},3415:(e,t,n)=>{var r=n(6750),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},7506:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},5555:(e,t,n)=>{var r=n(3628);e.exports=function(e){return e===e&&!r(e)}},9801:e=>{e.exports=function(){this.__data__=[],this.size=0}},2225:(e,t,n)=>{var r=n(9434),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},6376:(e,t,n)=>{var r=n(9434);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},540:(e,t,n)=>{var r=n(9434);e.exports=function(e){return r(this.__data__,e)>-1}},9068:(e,t,n)=>{var r=n(9434);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},2713:(e,t,n)=>{var r=n(42),i=n(9994),a=n(5306);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},7601:(e,t,n)=>{var r=n(9884);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},2904:(e,t,n)=>{var r=n(9884);e.exports=function(e){return r(this,e).get(e)}},2380:(e,t,n)=>{var r=n(9884);e.exports=function(e){return r(this,e).has(e)}},4700:(e,t,n)=>{var r=n(9884);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},6934:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},8544:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},7349:(e,t,n)=>{var r=n(531);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},1793:(e,t,n)=>{var r=n(459)(Object,"create");e.exports=r},8505:(e,t,n)=>{var r=n(2902)(Object.keys,Object);e.exports=r},2594:(e,t,n)=>{e=n.nmd(e);var r=n(3127),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i&&r.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(t){}}();e.exports=s},5789:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2902:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},6210:(e,t,n)=>{var r=n(2208),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=i(a.length-t,0),u=Array(s);++o{var r=n(3127),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},485:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},5798:e=>{e.exports=function(e){return this.__data__.has(e)}},7300:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},5372:(e,t,n)=>{var r=n(3163),i=n(3332)(r);e.exports=i},3332:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),a=16-(i-r);if(r=i,a>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},6983:(e,t,n)=>{var r=n(9994);e.exports=function(){this.__data__=new r,this.size=0}},4755:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},6789:e=>{e.exports=function(e){return this.__data__.get(e)}},8294:e=>{e.exports=function(e){return this.__data__.has(e)}},5198:(e,t,n)=>{var r=n(9994),i=n(5306),a=n(1866);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}},2186:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r{var r=n(7349),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)})),t}));e.exports=o},4872:(e,t,n)=>{var r=n(851);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},4818:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},4449:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},7954:(e,t,n)=>{var r=n(3358),i=n(5736),a=n(9576),o=n(6945),s=n(7506),u=n(1771),l=Object.prototype.hasOwnProperty,c=a((function(e,t){if(s(t)||o(t))i(t,u(t),e);else for(var n in t)l.call(t,n)&&r(e,n,t[n])}));e.exports=c},1931:e=>{e.exports=function(e){return function(){return e}}},1040:(e,t,n)=>{var r=n(800),i=n(5977),a=n(8489),o=n(2766),s=n(4183),u=a((function(e,t){var n=s(t);return o(n)&&(n=void 0),o(e)?r(e,i(t,1,o,!0),void 0,n):[]}));e.exports=u},9501:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},8394:(e,t,n)=>{var r=n(9234),i=n(8598),a=n(6170),o=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var u=null==n?0:a(n);return u<0&&(u=o(s+u,0)),r(e,i(t,3),u)}},2555:(e,t,n)=>{var r=n(7507);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},8780:(e,t,n)=>{var r=n(8628),i=n(9115);e.exports=function(e,t){return null!=e&&i(e,t,r)}},7701:e=>{e.exports=function(e){return e}},2675:(e,t,n)=>{var r=n(7707),i=n(6483),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},214:e=>{var t=Array.isArray;e.exports=t},6945:(e,t,n)=>{var r=n(7063),i=n(8251);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},2766:(e,t,n)=>{var r=n(6945),i=n(6483);e.exports=function(e){return i(e)&&r(e)}},2541:(e,t,n)=>{e=n.nmd(e);var r=n(4734),i=n(1924),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,s=o&&o.exports===a?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u},7703:(e,t,n)=>{var r=n(1615);e.exports=function(e,t){return r(e,t)}},7063:(e,t,n)=>{var r=n(6179),i=n(3628);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},8251:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3628:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},6483:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},851:(e,t,n)=>{var r=n(6179),i=n(6483);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},9210:(e,t,n)=>{var r=n(8866),i=n(4388),a=n(2594),o=a&&a.isTypedArray,s=o?i(o):r;e.exports=s},1771:(e,t,n)=>{var r=n(3430),i=n(5475),a=n(6945);e.exports=function(e){return a(e)?r(e):i(e)}},4183:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},531:(e,t,n)=>{var r=n(1866);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},3506:(e,t,n)=>{var r=n(2890),i=n(32),a=n(8643),o=n(4872);e.exports=function(e){return a(e)?r(o(e)):i(e)}},4314:e=>{e.exports=function(){return[]}},1924:e=>{e.exports=function(){return!1}},4533:(e,t,n)=>{var r=n(5779),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},6170:(e,t,n)=>{var r=n(4533);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},5779:(e,t,n)=>{var r=n(9283),i=n(3628),a=n(851),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):o.test(e)?NaN:+e}},3211:(e,t,n)=>{var r=n(8755);e.exports=function(e){return null==e?"":r(e)}},5835:(e,t,n)=>{"use strict";var r=n(8287),i=n(1099),a=n(4836).Buffer,o=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<>>32-t}function l(e,t,n,r,i,a,o){return u(e+(t&n|~t&r)+i+a|0,o)+t|0}function c(e,t,n,r,i,a,o){return u(e+(t&r|n&~r)+i+a|0,o)+t|0}function f(e,t,n,r,i,a,o){return u(e+(t^n^r)+i+a|0,o)+t|0}function d(e,t,n,r,i,a,o){return u(e+(n^(t|~r))+i+a|0,o)+t|0}r(s,i),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,a=this._d;n=l(n,r,i,a,e[0],3614090360,7),a=l(a,n,r,i,e[1],3905402710,12),i=l(i,a,n,r,e[2],606105819,17),r=l(r,i,a,n,e[3],3250441966,22),n=l(n,r,i,a,e[4],4118548399,7),a=l(a,n,r,i,e[5],1200080426,12),i=l(i,a,n,r,e[6],2821735955,17),r=l(r,i,a,n,e[7],4249261313,22),n=l(n,r,i,a,e[8],1770035416,7),a=l(a,n,r,i,e[9],2336552879,12),i=l(i,a,n,r,e[10],4294925233,17),r=l(r,i,a,n,e[11],2304563134,22),n=l(n,r,i,a,e[12],1804603682,7),a=l(a,n,r,i,e[13],4254626195,12),i=l(i,a,n,r,e[14],2792965006,17),n=c(n,r=l(r,i,a,n,e[15],1236535329,22),i,a,e[1],4129170786,5),a=c(a,n,r,i,e[6],3225465664,9),i=c(i,a,n,r,e[11],643717713,14),r=c(r,i,a,n,e[0],3921069994,20),n=c(n,r,i,a,e[5],3593408605,5),a=c(a,n,r,i,e[10],38016083,9),i=c(i,a,n,r,e[15],3634488961,14),r=c(r,i,a,n,e[4],3889429448,20),n=c(n,r,i,a,e[9],568446438,5),a=c(a,n,r,i,e[14],3275163606,9),i=c(i,a,n,r,e[3],4107603335,14),r=c(r,i,a,n,e[8],1163531501,20),n=c(n,r,i,a,e[13],2850285829,5),a=c(a,n,r,i,e[2],4243563512,9),i=c(i,a,n,r,e[7],1735328473,14),n=f(n,r=c(r,i,a,n,e[12],2368359562,20),i,a,e[5],4294588738,4),a=f(a,n,r,i,e[8],2272392833,11),i=f(i,a,n,r,e[11],1839030562,16),r=f(r,i,a,n,e[14],4259657740,23),n=f(n,r,i,a,e[1],2763975236,4),a=f(a,n,r,i,e[4],1272893353,11),i=f(i,a,n,r,e[7],4139469664,16),r=f(r,i,a,n,e[10],3200236656,23),n=f(n,r,i,a,e[13],681279174,4),a=f(a,n,r,i,e[0],3936430074,11),i=f(i,a,n,r,e[3],3572445317,16),r=f(r,i,a,n,e[6],76029189,23),n=f(n,r,i,a,e[9],3654602809,4),a=f(a,n,r,i,e[12],3873151461,11),i=f(i,a,n,r,e[15],530742520,16),n=d(n,r=f(r,i,a,n,e[2],3299628645,23),i,a,e[0],4096336452,6),a=d(a,n,r,i,e[7],1126891415,10),i=d(i,a,n,r,e[14],2878612391,15),r=d(r,i,a,n,e[5],4237533241,21),n=d(n,r,i,a,e[12],1700485571,6),a=d(a,n,r,i,e[3],2399980690,10),i=d(i,a,n,r,e[10],4293915773,15),r=d(r,i,a,n,e[1],2240044497,21),n=d(n,r,i,a,e[8],1873313359,6),a=d(a,n,r,i,e[15],4264355552,10),i=d(i,a,n,r,e[6],2734768916,15),r=d(r,i,a,n,e[13],1309151649,21),n=d(n,r,i,a,e[4],4149444226,6),a=d(a,n,r,i,e[11],3174756917,10),i=d(i,a,n,r,e[2],718787259,15),r=d(r,i,a,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+a|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},1099:(e,t,n)=>{"use strict";var r=n(4836).Buffer,i=n(1676).Transform;function a(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(8287)(a,i),a.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(i){r=i}n(r)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(n){t=n}e(t)},a.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!==typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},a.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=a},2729:(e,t,n)=>{var r=n(9367),i=n(9592);function a(e){this.rand=e||new i.Rand}e.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(e)>=0);return i},a.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},a.prototype.test=function(e,t,n){var i=e.bitLength(),a=r.mont(e),o=new r(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var l=e.shrn(u),c=s.toRed(a);t>0;t--){var f=this._randrange(new r(2),s);n&&n(f);var d=f.toRed(a).redPow(l);if(0!==d.cmp(o)&&0!==d.cmp(c)){for(var h=1;h0;t--){var c=this._randrange(new r(2),o),f=e.gcd(c);if(0!==f.cmpn(1))return f;var d=c.toRed(i).redPow(u);if(0!==d.cmp(a)&&0!==d.cmp(l)){for(var h=1;h{function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},4738:(e,t)=>{"use strict";var n=t;function r(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",n=0;n>8,o=255&i;a?n.push(a,o):n.push(o)}return n},n.zero2=r,n.toHex=i,n.encode=function(e,t){return"hex"===t?i(e):e}},6076:e=>{"use strict";function t(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,"__esModule",{value:!0})},9684:(e,t,n)=>{"use strict";var r=n(4251);t.certificate=n(6682);var i=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=i;var a=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=a;var o=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}));t.PublicKey=s;var u=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(o),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=u;var l=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=l;var c=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=c,t.DSAparam=r.define("DSAparam",(function(){this.int()}));var f=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})})),d=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(f),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=d,t.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},6682:(e,t,n)=>{"use strict";var r=n(4251),i=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),a=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),o=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())})),u=r.define("RelativeDistinguishedName",(function(){this.setof(a)})),l=r.define("RDNSequence",(function(){this.seqof(u)})),c=r.define("Name",(function(){this.choice({rdnSequence:this.use(l)})})),f=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),d=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),h=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(c),this.key("validity").use(f),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())})),p=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())}));e.exports=p},1238:(e,t,n)=>{"use strict";var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,o=n(8101),s=n(8402),u=n(4836).Buffer;e.exports=function(e,t){var n,l=e.toString(),c=l.match(r);if(c){var f="aes"+c[1],d=u.from(c[2],"hex"),h=u.from(c[3].replace(/[\r\n]/g,""),"base64"),p=o(t,d.slice(0,8),parseInt(c[1],10)).key,v=[],m=s.createDecipheriv(f,p,d);v.push(m.update(h)),v.push(m.final()),n=u.concat(v)}else{var b=l.match(a);n=u.from(b[2].replace(/[\r\n]/g,""),"base64")}return{tag:l.match(i)[1],data:n}}},9629:(e,t,n)=>{"use strict";var r=n(9684),i=n(5579),a=n(1238),o=n(8402),s=n(4667),u=n(4836).Buffer;function l(e){var t;"object"!==typeof e||u.isBuffer(e)||(t=e.passphrase,e=e.key),"string"===typeof e&&(e=u.from(e));var n,l,c=a(e,t),f=c.tag,d=c.data;switch(f){case"CERTIFICATE":l=r.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(l||(l=r.PublicKey.decode(d,"der")),n=l.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(l.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return l.subjectPrivateKey=l.subjectPublicKey,{type:"ec",data:l};case"1.2.840.10040.4.1":return l.algorithm.params.pub_key=r.DSAparam.decode(l.subjectPublicKey.data,"der"),{type:"dsa",data:l.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":d=function(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=i[e.algorithm.decrypt.cipher.algo.join(".")],l=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,f=parseInt(a.split("-")[1],10)/8,d=s.pbkdf2Sync(t,n,r,f,"sha1"),h=o.createDecipheriv(a,d,l),p=[];return p.push(h.update(c)),p.push(h.final()),u.concat(p)}(d=r.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(n=(l=r.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(l.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:l.algorithm.curve,privateKey:r.ECPrivateKey.decode(l.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return l.algorithm.params.priv_key=r.DSAparam.decode(l.subjectPrivateKey,"der"),{type:"dsa",params:l.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=r.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+f)}}l.signature=r.signature,e.exports=l},4667:(e,t,n)=>{t.pbkdf2=n(9231),t.pbkdf2Sync=n(6581)},9231:(e,t,n)=>{var r,i,a=n(4836).Buffer,o=n(6113),s=n(2434),u=n(6581),l=n(9845),c=n.g.crypto&&n.g.crypto.subtle,f={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function h(){return i||(i=n.g.process&&n.g.process.nextTick?n.g.process.nextTick:n.g.queueMicrotask?n.g.queueMicrotask:n.g.setImmediate?n.g.setImmediate:n.g.setTimeout)}function p(e,t,n,r,i){return c.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return c.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:i}},e,r<<3)})).then((function(e){return a.from(e)}))}e.exports=function(e,t,i,v,m,b){"function"===typeof m&&(b=m,m=void 0);var y=f[(m=m||"sha1").toLowerCase()];if(y&&"function"===typeof n.g.Promise){if(o(i,v),e=l(e,s,"Password"),t=l(t,s,"Salt"),"function"!==typeof b)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){h()((function(){t(null,e)}))}),(function(e){h()((function(){t(e)}))}))}(function(e){if(n.g.process&&!n.g.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==d[e])return d[e];var t=p(r=r||a.alloc(8),r,10,128,e).then((function(){return!0})).catch((function(){return!1}));return d[e]=t,t}(y).then((function(n){return n?p(e,t,i,v,y):u(e,t,i,v,m)})),b)}else h()((function(){var n;try{n=u(e,t,i,v,m)}catch(r){return b(r)}b(null,n)}))}},2434:(e,t,n)=>{var r;if(n.g.process&&n.g.process.browser)r="utf-8";else if(n.g.process&&n.g.process.version){r=parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else r="utf-8";e.exports=r},6113:e=>{var t=Math.pow(2,30)-1;e.exports=function(e,n){if("number"!==typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!==typeof n)throw new TypeError("Key length not a number");if(n<0||n>t||n!==n)throw new TypeError("Bad key length")}},6581:(e,t,n)=>{var r=n(8485),i=n(258),a=n(6269),o=n(4836).Buffer,s=n(6113),u=n(2434),l=n(9845),c=o.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(e,t,n){var s=function(e){function t(t){return a(e).update(t).digest()}function n(e){return(new i).update(e).digest()}return"rmd160"===e||"ripemd160"===e?n:"md5"===e?r:t}(e),u="sha512"===e||"sha384"===e?128:64;t.length>u?t=s(t):t.length{var r=n(4836).Buffer;e.exports=function(e,t,n){if(r.isBuffer(e))return e;if("string"===typeof e)return r.from(e,t);if(ArrayBuffer.isView(e))return r.from(e.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}},5446:e=>{"use strict";"undefined"===typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,n,r){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var i,a,o=arguments.length;switch(o){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function(){e.call(null,t)}));case 3:return process.nextTick((function(){e.call(null,t,n)}));case 4:return process.nextTick((function(){e.call(null,t,n,r)}));default:for(i=new Array(o-1),a=0;a{t.publicEncrypt=n(9465),t.privateDecrypt=n(9491),t.privateEncrypt=function(e,n){return t.publicEncrypt(e,n,!0)},t.publicDecrypt=function(e,n){return t.privateDecrypt(e,n,!0)}},2373:(e,t,n)=>{var r=n(1705),i=n(4836).Buffer;function a(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var n,o=i.alloc(0),s=0;o.length{var r=n(9629),i=n(2373),a=n(2486),o=n(9367),s=n(3719),u=n(1705),l=n(274),c=n(4836).Buffer;e.exports=function(e,t,n){var f;f=e.padding?e.padding:n?1:4;var d,h=r(e),p=h.modulus.byteLength();if(t.length>p||new o(t).cmp(h.modulus)>=0)throw new Error("decryption error");d=n?l(new o(t),h):s(t,h);var v=c.alloc(p-d.length);if(d=c.concat([v,d],p),4===f)return function(e,t){var n=e.modulus.byteLength(),r=u("sha1").update(c.alloc(0)).digest(),o=r.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,o+1),l=t.slice(o+1),f=a(s,i(l,o)),d=a(l,i(f,n-o-1));if(function(e,t){e=c.from(e),t=c.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));var i=-1;for(;++i=t.length){a++;break}var o=t.slice(2,i-1);("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&a++;o.length<8&&a++;if(a)throw new Error("decryption error");return t.slice(i)}(0,d,n);if(3===f)return d;throw new Error("unknown padding")}},9465:(e,t,n)=>{var r=n(9629),i=n(6215),a=n(1705),o=n(2373),s=n(2486),u=n(9367),l=n(274),c=n(3719),f=n(4836).Buffer;e.exports=function(e,t,n){var d;d=e.padding?e.padding:n?1:4;var h,p=r(e);if(4===d)h=function(e,t){var n=e.modulus.byteLength(),r=t.length,l=a("sha1").update(f.alloc(0)).digest(),c=l.length,d=2*c;if(r>n-d-2)throw new Error("message too long");var h=f.alloc(n-r-d-2),p=n-c-1,v=i(c),m=s(f.concat([l,h,f.alloc(1,1),t],p),o(v,p)),b=s(v,o(m,c));return new u(f.concat([f.alloc(1),b,m],n))}(p,t);else if(1===d)h=function(e,t,n){var r,a=t.length,o=e.modulus.byteLength();if(a>o-11)throw new Error("message too long");r=n?f.alloc(o-a-3,255):function(e){var t,n=f.allocUnsafe(e),r=0,a=i(2*e),o=0;for(;r=0)throw new Error("data too long for modulus")}return n?c(h,p):l(h,p)}},274:(e,t,n)=>{var r=n(9367),i=n(4836).Buffer;e.exports=function(e,t){return i.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},2486:e=>{e.exports=function(e,t){for(var n=e.length,r=-1;++r{"use strict";var r=65536,i=4294967295;var a=n(4836).Buffer,o=n.g.crypto||n.g.msCrypto;o&&o.getRandomValues?e.exports=function(e,t){if(e>i)throw new RangeError("requested too many random bytes");var n=a.allocUnsafe(e);if(e>0)if(e>r)for(var s=0;s{"use strict";function r(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var i=n(4836),a=n(6215),o=i.Buffer,s=i.kMaxLength,u=n.g.crypto||n.g.msCrypto,l=Math.pow(2,32)-1;function c(e,t){if("number"!==typeof e||e!==e)throw new TypeError("offset must be a number");if(e>l||e<0)throw new TypeError("offset must be a uint32");if(e>s||e>t)throw new RangeError("offset out of range")}function f(e,t,n){if("number"!==typeof e||e!==e)throw new TypeError("size must be a number");if(e>l||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>s)throw new RangeError("buffer too small")}function d(e,t,n,r){if(process.browser){var i=e.buffer,o=new Uint8Array(i,t,n);return u.getRandomValues(o),r?void process.nextTick((function(){r(null,e)})):e}if(!r)return a(n).copy(e,t),e;a(n,(function(n,i){if(n)return r(n);i.copy(e,t),r(null,e)}))}u&&u.getRandomValues||!process.browser?(t.randomFill=function(e,t,r,i){if(!o.isBuffer(e)&&!(e instanceof n.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"===typeof t)i=t,t=0,r=e.length;else if("function"===typeof r)i=r,r=e.length-t;else if("function"!==typeof i)throw new TypeError('"cb" argument must be a function');return c(t,e.length),f(r,t,e.length),d(e,t,r,i)},t.randomFillSync=function(e,t,r){"undefined"===typeof t&&(t=0);if(!o.isBuffer(e)&&!(e instanceof n.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');c(t,e.length),void 0===r&&(r=e.length-t);return f(r,t,e.length),d(e,t,r)}):(t.randomFill=r,t.randomFillSync=r)},6024:(e,t,n)=>{"use strict";var r=n(6665),i=n(6473);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n