{"snapId":"npm:@metamask/permissions-kernel-snap","manifest":{"version":"1.3.0","description":"Manage onchain 7715 permissions","proposedName":"MetaMask Permissions Kernel","repository":{"type":"git","url":"https://github.com/MetaMask/snap-7715-permissions.git"},"source":{"shasum":"RjVHlC9iqBsU/krj87qEwD0PqVy92NrSWJSIBPyAft0=","location":{"npm":{"filePath":"dist/bundle.js","iconPath":"images/icon.svg","packageName":"@metamask/permissions-kernel-snap","registry":"https://registry.npmjs.org/"}}},"initialPermissions":{"endowment:rpc":{"dapps":true,"snaps":false}},"platformVersion":"11.1.0","manifestVersion":"0.1"},"files":[{"path":"images/icon.svg","value":"<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n<rect width=\"24\" height=\"24\" rx=\"12\" fill=\"white\"/>\n<rect x=\"2.95312\" y=\"2.95312\" width=\"18.0469\" height=\"18.0469\" fill=\"url(#pattern0_651_20421)\"/>\n<defs>\n<pattern id=\"pattern0_651_20421\" patternContentUnits=\"objectBoundingBox\" width=\"1\" height=\"1\">\n<use xlink:href=\"#image0_651_20421\" transform=\"scale(0.0025974)\"/>\n</pattern>\n<image id=\"image0_651_20421\" width=\"385\" height=\"385\" preserveAspectRatio=\"none\" xlink:href=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYEAAAGBCAYAAACAWQ0kAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAADxKSURBVHgB7d17kFzVfSfw3+15z0iiJaH3wy0/ABlspMU2MTZmiDcO3tgLZFOpSiKycpKivKmKEZXKP4lTiIrjfaSCRHaXdUhSiDVJJSRlidhrZKds2pAANgaJhx6AZDV6oBfS9Dy7Z/px9/5uzx319PTjPs6599xzv5+qsYQYYamn53zv+Z1zfocIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAo/92bc8uc/vqDAEAQFvm9kz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qAwoMwjhUolIswEvDMM2meWjPtR+hEjqlYWok8J15MaAuz0HX0npL1QBh20and8eCL2e/dVd/rCzJYuKu+NskSEEPAApZ9QhNLKQsIp4XpSy0HM5HswRV00E4MWDbpav7KXD6hsevfi1A6Dv57YUqoklH7CVVc2ktjKwvgRSSR9JhB4q2h9i4b+/oMY+KMXVYkIM4EODGNPcbz//qRu+VSJ2LKRuAtkmv7XKQTeTw/r06JBZ2GXiBACzZkmWbNjq+6P0o+y+EyCWe26i3gLqoeykaxTwvWkl4OYaaaesqaprZ8aUeaJJadElJTrLVXDpZ8qGQ+uXTm4m0Bp679bsr5X+IN2ejuTIOeUcL1QQoBqNbN5IZCkFg26W7NyYI9VIsrqeqOZkqzST2F8AKWfGPLSyqJaq4hIFUo56MpFM7Uyj5Gq7KslI+imtl5grQFJmBWgHGTLWt9HD6L0o6fGVhayTgnXCyUEGC+UoMyTHDJKREkOgbnSzwqUfpIirDEztBCA5BG9iyipIWCa1YenJ4d2ovQDMqQIQBI+pbpm5dB2Khub7MNL4FWWtweuXbloBwIAZEEIgHS1MBi0gsD4EsKgs9kDX/evWTF4O2r/IBtCAELDu4ioYtxu1TekNcOKOy79FCYGN6H2D2FBCECoUCJqKYvSD0QBIQCRQImoBqUfiBpCACKV5BIRSj+gAoQARK6+RGSSmYRDhFmUfkAVCAFQBofB2hVDW3UtEXHph/9uKP2AShACoBynRGQa1YdJE07px/67ASgEIQBKsmcFVy/aoUGJKNtlVrei9AOqCquLKIAvs3fjbuVeRFYY8A11sbj03vqz8rV6D+LJHwAAAAAAAAAAAAAAAAAAAAAAAAAAAEL2/wG1QmC+NFLF7QAAAABJRU5ErkJggg==\"/>\n</defs>\n</svg>\n"},{"path":"dist/bundle.js","value":"(()=>{var e={282(e){e.exports=s,s.default=s,s.stable=l,s.stableStringify=l;var t=\"[...]\",n=\"[Circular]\",r=[],i=[];function a(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,t,n,s){var o;void 0===s&&(s=a()),u(e,\"\",0,[],void 0,0,s);try{o=0===i.length?JSON.stringify(e,t,n):JSON.stringify(e,d(t),n)}catch(e){return JSON.stringify(\"[unable to serialize, circular reference is too complex to analyze]\")}finally{for(;0!==r.length;){var c=r.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return o}function o(e,t,n,a){var s=Object.getOwnPropertyDescriptor(a,n);void 0!==s.get?s.configurable?(Object.defineProperty(a,n,{value:e}),r.push([a,n,t,s])):i.push([t,n,e]):(a[n]=e,r.push([a,n,t]))}function u(e,r,i,a,s,c,l){var f;if(c+=1,\"object\"==typeof e&&null!==e){for(f=0;f<a.length;f++)if(a[f]===e)return void o(n,e,r,s);if(void 0!==l.depthLimit&&c>l.depthLimit)return void o(t,e,r,s);if(void 0!==l.edgesLimit&&i+1>l.edgesLimit)return void o(t,e,r,s);if(a.push(e),Array.isArray(e))for(f=0;f<e.length;f++)u(e[f],f,f,a,e,c,l);else{var d=Object.keys(e);for(f=0;f<d.length;f++){var h=d[f];u(e[h],h,f,a,e,c,l)}}a.pop()}}function c(e,t){return e<t?-1:e>t?1:0}function l(e,t,n,s){void 0===s&&(s=a());var o,u=f(e,\"\",0,[],void 0,0,s)||e;try{o=0===i.length?JSON.stringify(u,t,n):JSON.stringify(u,d(t),n)}catch(e){return JSON.stringify(\"[unable to serialize, circular reference is too complex to analyze]\")}finally{for(;0!==r.length;){var c=r.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return o}function f(e,i,a,s,u,l,d){var h;if(l+=1,\"object\"==typeof e&&null!==e){for(h=0;h<s.length;h++)if(s[h]===e)return void o(n,e,i,u);try{if(\"function\"==typeof e.toJSON)return}catch(e){return}if(void 0!==d.depthLimit&&l>d.depthLimit)return void o(t,e,i,u);if(void 0!==d.edgesLimit&&a+1>d.edgesLimit)return void o(t,e,i,u);if(s.push(e),Array.isArray(e))for(h=0;h<e.length;h++)f(e[h],h,h,s,e,l,d);else{var p={},v=Object.keys(e).sort(c);for(h=0;h<v.length;h++){var m=v[h];f(e[m],m,h,s,e,l,d),p[m]=e[m]}if(void 0===u)return p;r.push([u,i,e]),u[i]=p}s.pop()}}function d(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(i.length>0)for(var r=0;r<i.length;r++){var a=i[r];if(a[1]===t&&a[0]===n){n=a[2],i.splice(r,1);break}}return e.call(this,t,n)}}},250(e,t,n){var r;e=n.nmd(e),function(){var i,a=\"Expected a function\",s=\"__lodash_hash_undefined__\",o=\"__lodash_placeholder__\",u=16,c=32,l=64,f=128,d=256,h=1/0,p=9007199254740991,v=NaN,m=4294967295,g=[[\"ary\",f],[\"bind\",1],[\"bindKey\",2],[\"curry\",8],[\"curryRight\",u],[\"flip\",512],[\"partial\",c],[\"partialRight\",l],[\"rearg\",d]],y=\"[object Arguments]\",_=\"[object Array]\",b=\"[object Boolean]\",w=\"[object Date]\",x=\"[object Error]\",k=\"[object Function]\",O=\"[object GeneratorFunction]\",j=\"[object Map]\",A=\"[object Number]\",E=\"[object Object]\",S=\"[object Promise]\",P=\"[object RegExp]\",I=\"[object Set]\",T=\"[object String]\",N=\"[object Symbol]\",R=\"[object WeakMap]\",C=\"[object ArrayBuffer]\",Z=\"[object DataView]\",$=\"[object Float32Array]\",L=\"[object Float64Array]\",F=\"[object Int8Array]\",z=\"[object Int16Array]\",M=\"[object Int32Array]\",U=\"[object Uint8Array]\",D=\"[object Uint8ClampedArray]\",q=\"[object Uint16Array]\",B=\"[object Uint32Array]\",W=/\\b__p \\+= '';/g,G=/\\b(__p \\+=) '' \\+/g,V=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,J=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>\"']/g,X=RegExp(J.source),H=RegExp(K.source),Y=/<%-([\\s\\S]+?)%>/g,Q=/<%([\\s\\S]+?)%>/g,ee=/<%=([\\s\\S]+?)%>/g,te=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,ne=/^\\w*$/,re=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,ie=/[\\\\^$.*+?()[\\]{}|]/g,ae=RegExp(ie.source),se=/^\\s+/,oe=/\\s/,ue=/\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,ce=/\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,le=/,? & /,fe=/[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g,de=/[()=,{}\\[\\]\\/\\s]/,he=/\\\\(\\\\)?/g,pe=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,ve=/\\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\\[object .+?Constructor\\]$/,_e=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\\d*)$/,we=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,xe=/($^)/,ke=/['\\n\\r\\u2028\\u2029\\\\]/g,Oe=\"\\\\ud800-\\\\udfff\",je=\"\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\",Ae=\"\\\\u2700-\\\\u27bf\",Ee=\"a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff\",Se=\"A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde\",Pe=\"\\\\ufe0e\\\\ufe0f\",Ie=\"\\\\xac\\\\xb1\\\\xd7\\\\xf7\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf\\\\u2000-\\\\u206f \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\",Te=\"['’]\",Ne=\"[\"+Oe+\"]\",Re=\"[\"+Ie+\"]\",Ce=\"[\"+je+\"]\",Ze=\"\\\\d+\",$e=\"[\"+Ae+\"]\",Le=\"[\"+Ee+\"]\",Fe=\"[^\"+Oe+Ie+Ze+Ae+Ee+Se+\"]\",ze=\"\\\\ud83c[\\\\udffb-\\\\udfff]\",Me=\"[^\"+Oe+\"]\",Ue=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",De=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",qe=\"[\"+Se+\"]\",Be=\"\\\\u200d\",We=\"(?:\"+Le+\"|\"+Fe+\")\",Ge=\"(?:\"+qe+\"|\"+Fe+\")\",Ve=\"(?:['’](?:d|ll|m|re|s|t|ve))?\",Je=\"(?:['’](?:D|LL|M|RE|S|T|VE))?\",Ke=\"(?:\"+Ce+\"|\"+ze+\")\"+\"?\",Xe=\"[\"+Pe+\"]?\",He=Xe+Ke+(\"(?:\"+Be+\"(?:\"+[Me,Ue,De].join(\"|\")+\")\"+Xe+Ke+\")*\"),Ye=\"(?:\"+[$e,Ue,De].join(\"|\")+\")\"+He,Qe=\"(?:\"+[Me+Ce+\"?\",Ce,Ue,De,Ne].join(\"|\")+\")\",et=RegExp(Te,\"g\"),tt=RegExp(Ce,\"g\"),nt=RegExp(ze+\"(?=\"+ze+\")|\"+Qe+He,\"g\"),rt=RegExp([qe+\"?\"+Le+\"+\"+Ve+\"(?=\"+[Re,qe,\"$\"].join(\"|\")+\")\",Ge+\"+\"+Je+\"(?=\"+[Re,qe+We,\"$\"].join(\"|\")+\")\",qe+\"?\"+We+\"+\"+Ve,qe+\"+\"+Je,\"\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])\",\"\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])\",Ze,Ye].join(\"|\"),\"g\"),it=RegExp(\"[\"+Be+Oe+je+Pe+\"]\"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=[\"Array\",\"Buffer\",\"DataView\",\"Date\",\"Error\",\"Float32Array\",\"Float64Array\",\"Function\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Map\",\"Math\",\"Object\",\"Promise\",\"RegExp\",\"Set\",\"String\",\"Symbol\",\"TypeError\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"WeakMap\",\"_\",\"clearTimeout\",\"isFinite\",\"parseInt\",\"setTimeout\"],ot=-1,ut={};ut[$]=ut[L]=ut[F]=ut[z]=ut[M]=ut[U]=ut[D]=ut[q]=ut[B]=!0,ut[y]=ut[_]=ut[C]=ut[b]=ut[Z]=ut[w]=ut[x]=ut[k]=ut[j]=ut[A]=ut[E]=ut[P]=ut[I]=ut[T]=ut[R]=!1;var ct={};ct[y]=ct[_]=ct[C]=ct[Z]=ct[b]=ct[w]=ct[$]=ct[L]=ct[F]=ct[z]=ct[M]=ct[j]=ct[A]=ct[E]=ct[P]=ct[I]=ct[T]=ct[N]=ct[U]=ct[D]=ct[q]=ct[B]=!0,ct[x]=ct[k]=ct[R]=!1;var lt={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},ft=parseFloat,dt=parseInt,ht=\"object\"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,pt=\"object\"==typeof self&&self&&self.Object===Object&&self,vt=ht||pt||Function(\"return this\")(),mt=t&&!t.nodeType&&t,gt=mt&&e&&!e.nodeType&&e,yt=gt&&gt.exports===mt,_t=yt&&ht.process,bt=function(){try{var e=gt&&gt.require&&gt.require(\"util\").types;return e||_t&&_t.binding&&_t.binding(\"util\")}catch(e){}}(),wt=bt&&bt.isArrayBuffer,xt=bt&&bt.isDate,kt=bt&&bt.isMap,Ot=bt&&bt.isRegExp,jt=bt&&bt.isSet,At=bt&&bt.isTypedArray;function Et(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)}function St(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var s=e[i];t(r,s,n(s),e)}return r}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function It(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Nt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a}function Rt(e,t){return!!(null==e?0:e.length)&&qt(e,t,0)>-1}function Ct(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Zt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function $t(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Lt(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Ft(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function zt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Mt=Vt(\"length\");function Ut(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Dt(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function qt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Dt(e,Wt,n)}function Bt(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function Wt(e){return e!=e}function Gt(e,t){var n=null==e?0:e.length;return n?Xt(e,t)/n:v}function Vt(e){return function(t){return null==t?i:t[e]}}function Jt(e){return function(t){return null==e?i:e[t]}}function Kt(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Xt(e,t){for(var n,r=-1,a=e.length;++r<a;){var s=t(e[r]);s!==i&&(n=n===i?s:n+s)}return n}function Ht(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Yt(e){return e?e.slice(0,mn(e)+1).replace(se,\"\"):e}function Qt(e){return function(t){return e(t)}}function en(e,t){return Zt(t,function(t){return e[t]})}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&qt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&qt(t,e[n],0)>-1;);return n}var an=Jt({À:\"A\",Á:\"A\",Â:\"A\",Ã:\"A\",Ä:\"A\",Å:\"A\",à:\"a\",á:\"a\",â:\"a\",ã:\"a\",ä:\"a\",å:\"a\",Ç:\"C\",ç:\"c\",Ð:\"D\",ð:\"d\",È:\"E\",É:\"E\",Ê:\"E\",Ë:\"E\",è:\"e\",é:\"e\",ê:\"e\",ë:\"e\",Ì:\"I\",Í:\"I\",Î:\"I\",Ï:\"I\",ì:\"i\",í:\"i\",î:\"i\",ï:\"i\",Ñ:\"N\",ñ:\"n\",Ò:\"O\",Ó:\"O\",Ô:\"O\",Õ:\"O\",Ö:\"O\",Ø:\"O\",ò:\"o\",ó:\"o\",ô:\"o\",õ:\"o\",ö:\"o\",ø:\"o\",Ù:\"U\",Ú:\"U\",Û:\"U\",Ü:\"U\",ù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:\"U\",Ū:\"U\",Ŭ:\"U\",Ů:\"U\",Ű:\"U\",Ų:\"U\",ũ:\"u\",ū:\"u\",ŭ:\"u\",ů:\"u\",ű:\"u\",ų:\"u\",Ŵ:\"W\",ŵ:\"w\",Ŷ:\"Y\",ŷ:\"y\",Ÿ:\"Y\",Ź:\"Z\",Ż:\"Z\",Ž:\"Z\",ź:\"z\",ż:\"z\",ž:\"z\",Ĳ:\"IJ\",ĳ:\"ij\",Œ:\"Oe\",œ:\"oe\",ŉ:\"'n\",ſ:\"s\"}),sn=Jt({\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\"});function on(e){return\"\\\\\"+lt[e]}function un(e){return it.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function ln(e,t){return function(n){return e(t(n))}}function fn(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var s=e[n];s!==t&&s!==o||(e[n]=o,a[i++]=n)}return a}function dn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function hn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function pn(e){return un(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Mt(e)}function vn(e){return un(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split(\"\")}(e)}function mn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var gn=Jt({\"&amp;\":\"&\",\"&lt;\":\"<\",\"&gt;\":\">\",\"&quot;\":'\"',\"&#39;\":\"'\"});var yn=function e(t){var n,r=(t=null==t?vt:yn.defaults(vt.Object(),t,yn.pick(vt,st))).Array,oe=t.Date,Oe=t.Error,je=t.Function,Ae=t.Math,Ee=t.Object,Se=t.RegExp,Pe=t.String,Ie=t.TypeError,Te=r.prototype,Ne=je.prototype,Re=Ee.prototype,Ce=t[\"__core-js_shared__\"],Ze=Ne.toString,$e=Re.hasOwnProperty,Le=0,Fe=(n=/[^.]+$/.exec(Ce&&Ce.keys&&Ce.keys.IE_PROTO||\"\"))?\"Symbol(src)_1.\"+n:\"\",ze=Re.toString,Me=Ze.call(Ee),Ue=vt._,De=Se(\"^\"+Ze.call($e).replace(ie,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),qe=yt?t.Buffer:i,Be=t.Symbol,We=t.Uint8Array,Ge=qe?qe.allocUnsafe:i,Ve=ln(Ee.getPrototypeOf,Ee),Je=Ee.create,Ke=Re.propertyIsEnumerable,Xe=Te.splice,He=Be?Be.isConcatSpreadable:i,Ye=Be?Be.iterator:i,Qe=Be?Be.toStringTag:i,nt=function(){try{var e=da(Ee,\"defineProperty\");return e({},\"\",{}),e}catch(e){}}(),it=t.clearTimeout!==vt.clearTimeout&&t.clearTimeout,lt=oe&&oe.now!==vt.Date.now&&oe.now,ht=t.setTimeout!==vt.setTimeout&&t.setTimeout,pt=Ae.ceil,mt=Ae.floor,gt=Ee.getOwnPropertySymbols,_t=qe?qe.isBuffer:i,bt=t.isFinite,Mt=Te.join,Jt=ln(Ee.keys,Ee),_n=Ae.max,bn=Ae.min,wn=oe.now,xn=t.parseInt,kn=Ae.random,On=Te.reverse,jn=da(t,\"DataView\"),An=da(t,\"Map\"),En=da(t,\"Promise\"),Sn=da(t,\"Set\"),Pn=da(t,\"WeakMap\"),In=da(Ee,\"create\"),Tn=Pn&&new Pn,Nn={},Rn=Fa(jn),Cn=Fa(An),Zn=Fa(En),$n=Fa(Sn),Ln=Fa(Pn),Fn=Be?Be.prototype:i,zn=Fn?Fn.valueOf:i,Mn=Fn?Fn.toString:i;function Un(e){if(to(e)&&!Bs(e)&&!(e instanceof Wn)){if(e instanceof Bn)return e;if($e.call(e,\"__wrapped__\"))return za(e)}return new Bn(e)}var Dn=function(){function e(){}return function(t){if(!eo(t))return{};if(Je)return Je(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function qn(){}function Bn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Jn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Vn(e);this.size=t.size}function Hn(e,t){var n=Bs(e),r=!n&&qs(e),i=!n&&!r&&Js(e),a=!n&&!r&&!i&&co(e),s=n||r||i||a,o=s?Ht(e.length,Pe):[],u=o.length;for(var c in e)!t&&!$e.call(e,c)||s&&(\"length\"==c||i&&(\"offset\"==c||\"parent\"==c)||a&&(\"buffer\"==c||\"byteLength\"==c||\"byteOffset\"==c)||_a(c,u))||o.push(c);return o}function Yn(e){var t=e.length;return t?e[Kr(0,t-1)]:i}function Qn(e,t){return Za(Ii(e),ur(t,0,e.length))}function er(e){return Za(Ii(e))}function tr(e,t,n){(n!==i&&!Ms(e[t],n)||n===i&&!(t in e))&&sr(e,t,n)}function nr(e,t,n){var r=e[t];$e.call(e,t)&&Ms(r,n)&&(n!==i||t in e)||sr(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Ms(e[n][0],t))return n;return-1}function ir(e,t,n,r){return hr(e,function(e,i,a){t(r,e,n(e),a)}),r}function ar(e,t){return e&&Ti(t,No(t),e)}function sr(e,t,n){\"__proto__\"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,a=t.length,s=r(a),o=null==e;++n<a;)s[n]=o?i:Eo(e,t[n]);return s}function ur(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function cr(e,t,n,r,a,s){var o,u=1&t,c=2&t,l=4&t;if(n&&(o=a?n(e,r,a,s):n(e)),o!==i)return o;if(!eo(e))return e;var f=Bs(e);if(f){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&\"string\"==typeof e[0]&&$e.call(e,\"index\")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return Ii(e,o)}else{var d=va(e),h=d==k||d==O;if(Js(e))return Oi(e,u);if(d==E||d==y||h&&!a){if(o=c||h?{}:ga(e),!u)return c?function(e,t){return Ti(e,pa(e),t)}(e,function(e,t){return e&&Ti(t,Ro(t),e)}(o,e)):function(e,t){return Ti(e,ha(e),t)}(e,ar(o,e))}else{if(!ct[d])return a?e:{};o=function(e,t,n){var r=e.constructor;switch(t){case C:return ji(e);case b:case w:return new r(+e);case Z:return function(e,t){var n=t?ji(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case $:case L:case F:case z:case M:case U:case D:case q:case B:return Ai(e,n);case j:return new r;case A:case T:return new r(e);case P:return function(e){var t=new e.constructor(e.source,ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case I:return new r;case N:return i=e,zn?Ee(zn.call(i)):{}}var i}(e,d,u)}}s||(s=new Xn);var p=s.get(e);if(p)return p;s.set(e,o),so(e)?e.forEach(function(r){o.add(cr(r,t,n,r,e,s))}):no(e)&&e.forEach(function(r,i){o.set(i,cr(r,t,n,i,e,s))});var v=f?i:(l?c?aa:ia:c?Ro:No)(e);return Pt(v||e,function(r,i){v&&(r=e[i=r]),nr(o,i,cr(r,t,n,i,e,s))}),o}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ee(e);r--;){var a=n[r],s=t[a],o=e[a];if(o===i&&!(a in e)||!s(o))return!1}return!0}function fr(e,t,n){if(\"function\"!=typeof e)throw new Ie(a);return Ta(function(){e.apply(i,n)},t)}function dr(e,t,n,r){var i=-1,a=Rt,s=!0,o=e.length,u=[],c=t.length;if(!o)return u;n&&(t=Zt(t,Qt(n))),r?(a=Ct,s=!1):t.length>=200&&(a=tn,s=!1,t=new Kn(t));e:for(;++i<o;){var l=e[i],f=null==n?l:n(l);if(l=r||0!==l?l:0,s&&f==f){for(var d=c;d--;)if(t[d]===f)continue e;u.push(l)}else a(t,f,r)||u.push(l)}return u}Un.templateSettings={escape:Y,evaluate:Q,interpolate:ee,variable:\"\",imports:{_:Un}},Un.prototype=qn.prototype,Un.prototype.constructor=Un,Bn.prototype=Dn(qn.prototype),Bn.prototype.constructor=Bn,Wn.prototype=Dn(qn.prototype),Wn.prototype.constructor=Wn,Gn.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},Gn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Gn.prototype.get=function(e){var t=this.__data__;if(In){var n=t[e];return n===s?i:n}return $e.call(t,e)?t[e]:i},Gn.prototype.has=function(e){var t=this.__data__;return In?t[e]!==i:$e.call(t,e)},Gn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=In&&t===i?s:t,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Xe.call(t,n,1),--this.size,!0)},Vn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?i:t[n][1]},Vn.prototype.has=function(e){return rr(this.__data__,e)>-1},Vn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Jn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(An||Vn),string:new Gn}},Jn.prototype.delete=function(e){var t=la(this,e).delete(e);return this.size-=t?1:0,t},Jn.prototype.get=function(e){return la(this,e).get(e)},Jn.prototype.has=function(e){return la(this,e).has(e)},Jn.prototype.set=function(e,t){var n=la(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,s),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!An||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Jn(r)}return n.set(e,t),this.size=n.size,this};var hr=Ci(wr),pr=Ci(xr,!0);function vr(e,t){var n=!0;return hr(e,function(e,r,i){return n=!!t(e,r,i)}),n}function mr(e,t,n){for(var r=-1,a=e.length;++r<a;){var s=e[r],o=t(s);if(null!=o&&(u===i?o==o&&!uo(o):n(o,u)))var u=o,c=s}return c}function gr(e,t){var n=[];return hr(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function yr(e,t,n,r,i){var a=-1,s=e.length;for(n||(n=ya),i||(i=[]);++a<s;){var o=e[a];t>0&&n(o)?t>1?yr(o,t-1,n,r,i):$t(i,o):r||(i[i.length]=o)}return i}var _r=Zi(),br=Zi(!0);function wr(e,t){return e&&_r(e,t,No)}function xr(e,t){return e&&br(e,t,No)}function kr(e,t){return Nt(t,function(t){return Hs(e[t])})}function Or(e,t){for(var n=0,r=(t=bi(t,e)).length;null!=e&&n<r;)e=e[La(t[n++])];return n&&n==r?e:i}function jr(e,t,n){var r=t(e);return Bs(e)?r:$t(r,n(e))}function Ar(e){return null==e?e===i?\"[object Undefined]\":\"[object Null]\":Qe&&Qe in Ee(e)?function(e){var t=$e.call(e,Qe),n=e[Qe];try{e[Qe]=i;var r=!0}catch(e){}var a=ze.call(e);r&&(t?e[Qe]=n:delete e[Qe]);return a}(e):function(e){return ze.call(e)}(e)}function Er(e,t){return e>t}function Sr(e,t){return null!=e&&$e.call(e,t)}function Pr(e,t){return null!=e&&t in Ee(e)}function Ir(e,t,n){for(var a=n?Ct:Rt,s=e[0].length,o=e.length,u=o,c=r(o),l=1/0,f=[];u--;){var d=e[u];u&&t&&(d=Zt(d,Qt(t))),l=bn(d.length,l),c[u]=!n&&(t||s>=120&&d.length>=120)?new Kn(u&&d):i}d=e[0];var h=-1,p=c[0];e:for(;++h<s&&f.length<l;){var v=d[h],m=t?t(v):v;if(v=n||0!==v?v:0,!(p?tn(p,m):a(f,m,n))){for(u=o;--u;){var g=c[u];if(!(g?tn(g,m):a(e[u],m,n)))continue e}p&&p.push(m),f.push(v)}}return f}function Tr(e,t,n){var r=null==(e=Sa(e,t=bi(t,e)))?e:e[La(Xa(t))];return null==r?i:Et(r,e,n)}function Nr(e){return to(e)&&Ar(e)==y}function Rr(e,t,n,r,a){return e===t||(null==e||null==t||!to(e)&&!to(t)?e!=e&&t!=t:function(e,t,n,r,a,s){var o=Bs(e),u=Bs(t),c=o?_:va(e),l=u?_:va(t),f=(c=c==y?E:c)==E,d=(l=l==y?E:l)==E,h=c==l;if(h&&Js(e)){if(!Js(t))return!1;o=!0,f=!1}if(h&&!f)return s||(s=new Xn),o||co(e)?na(e,t,n,r,a,s):function(e,t,n,r,i,a,s){switch(n){case Z:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case C:return!(e.byteLength!=t.byteLength||!a(new We(e),new We(t)));case b:case w:case A:return Ms(+e,+t);case x:return e.name==t.name&&e.message==t.message;case P:case T:return e==t+\"\";case j:var o=cn;case I:var u=1&r;if(o||(o=dn),e.size!=t.size&&!u)return!1;var c=s.get(e);if(c)return c==t;r|=2,s.set(e,t);var l=na(o(e),o(t),r,i,a,s);return s.delete(e),l;case N:if(zn)return zn.call(e)==zn.call(t)}return!1}(e,t,c,n,r,a,s);if(!(1&n)){var p=f&&$e.call(e,\"__wrapped__\"),v=d&&$e.call(t,\"__wrapped__\");if(p||v){var m=p?e.value():e,g=v?t.value():t;return s||(s=new Xn),a(m,g,n,r,s)}}if(!h)return!1;return s||(s=new Xn),function(e,t,n,r,a,s){var o=1&n,u=ia(e),c=u.length,l=ia(t),f=l.length;if(c!=f&&!o)return!1;var d=c;for(;d--;){var h=u[d];if(!(o?h in t:$e.call(t,h)))return!1}var p=s.get(e),v=s.get(t);if(p&&v)return p==t&&v==e;var m=!0;s.set(e,t),s.set(t,e);var g=o;for(;++d<c;){var y=e[h=u[d]],_=t[h];if(r)var b=o?r(_,y,h,t,e,s):r(y,_,h,e,t,s);if(!(b===i?y===_||a(y,_,n,r,s):b)){m=!1;break}g||(g=\"constructor\"==h)}if(m&&!g){var w=e.constructor,x=t.constructor;w==x||!(\"constructor\"in e)||!(\"constructor\"in t)||\"function\"==typeof w&&w instanceof w&&\"function\"==typeof x&&x instanceof x||(m=!1)}return s.delete(e),s.delete(t),m}(e,t,n,r,a,s)}(e,t,n,r,Rr,a))}function Cr(e,t,n,r){var a=n.length,s=a,o=!r;if(null==e)return!s;for(e=Ee(e);a--;){var u=n[a];if(o&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var c=(u=n[a])[0],l=e[c],f=u[1];if(o&&u[2]){if(l===i&&!(c in e))return!1}else{var d=new Xn;if(r)var h=r(l,f,c,e,t,d);if(!(h===i?Rr(f,l,3,r,d):h))return!1}}return!0}function Zr(e){return!(!eo(e)||(t=e,Fe&&Fe in t))&&(Hs(e)?De:ye).test(Fa(e));var t}function $r(e){return\"function\"==typeof e?e:null==e?iu:\"object\"==typeof e?Bs(e)?Dr(e[0],e[1]):Ur(e):hu(e)}function Lr(e){if(!Oa(e))return Jt(e);var t=[];for(var n in Ee(e))$e.call(e,n)&&\"constructor\"!=n&&t.push(n);return t}function Fr(e){if(!eo(e))return function(e){var t=[];if(null!=e)for(var n in Ee(e))t.push(n);return t}(e);var t=Oa(e),n=[];for(var r in e)(\"constructor\"!=r||!t&&$e.call(e,r))&&n.push(r);return n}function zr(e,t){return e<t}function Mr(e,t){var n=-1,i=Gs(e)?r(e.length):[];return hr(e,function(e,r,a){i[++n]=t(e,r,a)}),i}function Ur(e){var t=fa(e);return 1==t.length&&t[0][2]?Aa(t[0][0],t[0][1]):function(n){return n===e||Cr(n,e,t)}}function Dr(e,t){return wa(e)&&ja(t)?Aa(La(e),t):function(n){var r=Eo(n,e);return r===i&&r===t?So(n,e):Rr(t,r,3)}}function qr(e,t,n,r,a){e!==t&&_r(t,function(s,o){if(a||(a=new Xn),eo(s))!function(e,t,n,r,a,s,o){var u=Pa(e,n),c=Pa(t,n),l=o.get(c);if(l)return void tr(e,n,l);var f=s?s(u,c,n+\"\",e,t,o):i,d=f===i;if(d){var h=Bs(c),p=!h&&Js(c),v=!h&&!p&&co(c);f=c,h||p||v?Bs(u)?f=u:Vs(u)?f=Ii(u):p?(d=!1,f=Oi(c,!0)):v?(d=!1,f=Ai(c,!0)):f=[]:io(c)||qs(c)?(f=u,qs(u)?f=yo(u):eo(u)&&!Hs(u)||(f=ga(c))):d=!1}d&&(o.set(c,f),a(f,c,r,s,o),o.delete(c));tr(e,n,f)}(e,t,o,n,qr,r,a);else{var u=r?r(Pa(e,o),s,o+\"\",e,t,a):i;u===i&&(u=s),tr(e,o,u)}},Ro)}function Br(e,t){var n=e.length;if(n)return _a(t+=t<0?n:0,n)?e[t]:i}function Wr(e,t,n){t=t.length?Zt(t,function(e){return Bs(e)?function(t){return Or(t,1===e.length?e[0]:e)}:e}):[iu];var r=-1;t=Zt(t,Qt(ca()));var i=Mr(e,function(e,n,i){var a=Zt(t,function(t){return t(e)});return{criteria:a,index:++r,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,function(e,t){return function(e,t,n){var r=-1,i=e.criteria,a=t.criteria,s=i.length,o=n.length;for(;++r<s;){var u=Ei(i[r],a[r]);if(u)return r>=o?u:u*(\"desc\"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function Gr(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var s=t[r],o=Or(e,s);n(o,s)&&ei(a,bi(s,e),o)}return a}function Vr(e,t,n,r){var i=r?Bt:qt,a=-1,s=t.length,o=e;for(e===t&&(t=Ii(t)),n&&(o=Zt(e,Qt(n)));++a<s;)for(var u=0,c=t[a],l=n?n(c):c;(u=i(o,l,u,r))>-1;)o!==e&&Xe.call(o,u,1),Xe.call(e,u,1);return e}function Jr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;_a(i)?Xe.call(e,i,1):di(e,i)}}return e}function Kr(e,t){return e+mt(kn()*(t-e+1))}function Xr(e,t){var n=\"\";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Hr(e,t){return Na(Ea(e,t,iu),e+\"\")}function Yr(e){return Yn(Uo(e))}function Qr(e,t){var n=Uo(e);return Za(n,ur(t,0,n.length))}function ei(e,t,n,r){if(!eo(e))return e;for(var a=-1,s=(t=bi(t,e)).length,o=s-1,u=e;null!=u&&++a<s;){var c=La(t[a]),l=n;if(\"__proto__\"===c||\"constructor\"===c||\"prototype\"===c)return e;if(a!=o){var f=u[c];(l=r?r(f,c,u):i)===i&&(l=eo(f)?f:_a(t[a+1])?[]:{})}nr(u,c,l),u=u[c]}return e}var ti=Tn?function(e,t){return Tn.set(e,t),e}:iu,ni=nt?function(e,t){return nt(e,\"toString\",{configurable:!0,enumerable:!1,value:tu(t),writable:!0})}:iu;function ri(e){return Za(Uo(e))}function ii(e,t,n){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var s=r(a);++i<a;)s[i]=e[i+t];return s}function ai(e,t){var n;return hr(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function si(e,t,n){var r=0,i=null==e?r:e.length;if(\"number\"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var a=r+i>>>1,s=e[a];null!==s&&!uo(s)&&(n?s<=t:s<t)?r=a+1:i=a}return i}return oi(e,t,iu,n)}function oi(e,t,n,r){var a=0,s=null==e?0:e.length;if(0===s)return 0;for(var o=(t=n(t))!=t,u=null===t,c=uo(t),l=t===i;a<s;){var f=mt((a+s)/2),d=n(e[f]),h=d!==i,p=null===d,v=d==d,m=uo(d);if(o)var g=r||v;else g=l?v&&(r||h):u?v&&h&&(r||!p):c?v&&h&&!p&&(r||!m):!p&&!m&&(r?d<=t:d<t);g?a=f+1:s=f}return bn(s,4294967294)}function ui(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var s=e[n],o=t?t(s):s;if(!n||!Ms(o,u)){var u=o;a[i++]=0===s?0:s}}return a}function ci(e){return\"number\"==typeof e?e:uo(e)?v:+e}function li(e){if(\"string\"==typeof e)return e;if(Bs(e))return Zt(e,li)+\"\";if(uo(e))return Mn?Mn.call(e):\"\";var t=e+\"\";return\"0\"==t&&1/e==-1/0?\"-0\":t}function fi(e,t,n){var r=-1,i=Rt,a=e.length,s=!0,o=[],u=o;if(n)s=!1,i=Ct;else if(a>=200){var c=t?null:Xi(e);if(c)return dn(c);s=!1,i=tn,u=new Kn}else u=t?[]:o;e:for(;++r<a;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,s&&f==f){for(var d=u.length;d--;)if(u[d]===f)continue e;t&&u.push(f),o.push(l)}else i(u,f,n)||(u!==o&&u.push(f),o.push(l))}return o}function di(e,t){var n=-1,r=(t=bi(t,e)).length;if(!r)return!0;for(;++n<r;){var i=La(t[n]);if(\"__proto__\"===i&&!$e.call(e,\"__proto__\"))return!1;if((\"constructor\"===i||\"prototype\"===i)&&n<r-1)return!1}var a=Sa(e,t);return null==a||delete a[La(Xa(t))]}function hi(e,t,n,r){return ei(e,t,n(Or(e,t)),r)}function pi(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?ii(e,r?0:a,r?a+1:i):ii(e,r?a+1:0,r?i:a)}function vi(e,t){var n=e;return n instanceof Wn&&(n=n.value()),Lt(t,function(e,t){return t.func.apply(t.thisArg,$t([e],t.args))},n)}function mi(e,t,n){var i=e.length;if(i<2)return i?fi(e[0]):[];for(var a=-1,s=r(i);++a<i;)for(var o=e[a],u=-1;++u<i;)u!=a&&(s[a]=dr(s[a]||o,e[u],t,n));return fi(yr(s,1),t,n)}function gi(e,t,n){for(var r=-1,a=e.length,s=t.length,o={};++r<a;){var u=r<s?t[r]:i;n(o,e[r],u)}return o}function yi(e){return Vs(e)?e:[]}function _i(e){return\"function\"==typeof e?e:iu}function bi(e,t){return Bs(e)?e:wa(e,t)?[e]:$a(_o(e))}var wi=Hr;function xi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ii(e,t,n)}var ki=it||function(e){return vt.clearTimeout(e)};function Oi(e,t){if(t)return e.slice();var n=e.length,r=Ge?Ge(n):new e.constructor(n);return e.copy(r),r}function ji(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Ai(e,t){var n=t?ji(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ei(e,t){if(e!==t){var n=e!==i,r=null===e,a=e==e,s=uo(e),o=t!==i,u=null===t,c=t==t,l=uo(t);if(!u&&!l&&!s&&e>t||s&&o&&c&&!u&&!l||r&&o&&c||!n&&c||!a)return 1;if(!r&&!s&&!l&&e<t||l&&n&&a&&!r&&!s||u&&n&&a||!o&&a||!c)return-1}return 0}function Si(e,t,n,i){for(var a=-1,s=e.length,o=n.length,u=-1,c=t.length,l=_n(s-o,0),f=r(c+l),d=!i;++u<c;)f[u]=t[u];for(;++a<o;)(d||a<s)&&(f[n[a]]=e[a]);for(;l--;)f[u++]=e[a++];return f}function Pi(e,t,n,i){for(var a=-1,s=e.length,o=-1,u=n.length,c=-1,l=t.length,f=_n(s-u,0),d=r(f+l),h=!i;++a<f;)d[a]=e[a];for(var p=a;++c<l;)d[p+c]=t[c];for(;++o<u;)(h||a<s)&&(d[p+n[o]]=e[a++]);return d}function Ii(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Ti(e,t,n,r){var a=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var u=t[s],c=r?r(n[u],e[u],u,n,e):i;c===i&&(c=e[u]),a?sr(n,u,c):nr(n,u,c)}return n}function Ni(e,t){return function(n,r){var i=Bs(n)?St:ir,a=t?t():{};return i(n,e,ca(r,2),a)}}function Ri(e){return Hr(function(t,n){var r=-1,a=n.length,s=a>1?n[a-1]:i,o=a>2?n[2]:i;for(s=e.length>3&&\"function\"==typeof s?(a--,s):i,o&&ba(n[0],n[1],o)&&(s=a<3?i:s,a=1),t=Ee(t);++r<a;){var u=n[r];u&&e(t,u,r,s)}return t})}function Ci(e,t){return function(n,r){if(null==n)return n;if(!Gs(n))return e(n,r);for(var i=n.length,a=t?i:-1,s=Ee(n);(t?a--:++a<i)&&!1!==r(s[a],a,s););return n}}function Zi(e){return function(t,n,r){for(var i=-1,a=Ee(t),s=r(t),o=s.length;o--;){var u=s[e?o:++i];if(!1===n(a[u],u,a))break}return t}}function $i(e){return function(t){var n=un(t=_o(t))?vn(t):i,r=n?n[0]:t.charAt(0),a=n?xi(n,1).join(\"\"):t.slice(1);return r[e]()+a}}function Li(e){return function(t){return Lt(Yo(Bo(t).replace(et,\"\")),e,\"\")}}function Fi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Dn(e.prototype),r=e.apply(n,t);return eo(r)?r:n}}function zi(e){return function(t,n,r){var a=Ee(t);if(!Gs(t)){var s=ca(n,3);t=No(t),n=function(e){return s(a[e],e,a)}}var o=e(t,n,r);return o>-1?a[s?t[o]:o]:i}}function Mi(e){return ra(function(t){var n=t.length,r=n,s=Bn.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if(\"function\"!=typeof o)throw new Ie(a);if(s&&!u&&\"wrapper\"==oa(o))var u=new Bn([],!0)}for(r=u?r:n;++r<n;){var c=oa(o=t[r]),l=\"wrapper\"==c?sa(o):i;u=l&&xa(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[oa(l[0])].apply(u,l[3]):1==o.length&&xa(o)?u[c]():u.thru(o)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&Bs(r))return u.plant(r).value();for(var i=0,a=n?t[i].apply(this,e):r;++i<n;)a=t[i].call(this,a);return a}})}function Ui(e,t,n,a,s,o,u,c,l,d){var h=t&f,p=1&t,v=2&t,m=24&t,g=512&t,y=v?i:Fi(e);return function f(){for(var _=arguments.length,b=r(_),w=_;w--;)b[w]=arguments[w];if(m)var x=ua(f),k=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,x);if(a&&(b=Si(b,a,s,m)),o&&(b=Pi(b,o,u,m)),_-=k,m&&_<d){var O=fn(b,x);return Ji(e,t,Ui,f.placeholder,n,b,O,c,l,d-_)}var j=p?n:this,A=v?j[e]:e;return _=b.length,c?b=function(e,t){var n=e.length,r=bn(t.length,n),a=Ii(e);for(;r--;){var s=t[r];e[r]=_a(s,n)?a[s]:i}return e}(b,c):g&&_>1&&b.reverse(),h&&l<_&&(b.length=l),this&&this!==vt&&this instanceof f&&(A=y||Fi(A)),A.apply(j,b)}}function Di(e,t){return function(n,r){return function(e,t,n,r){return wr(e,function(e,i,a){t(r,n(e),i,a)}),r}(n,e,t(r),{})}}function qi(e,t){return function(n,r){var a;if(n===i&&r===i)return t;if(n!==i&&(a=n),r!==i){if(a===i)return r;\"string\"==typeof n||\"string\"==typeof r?(n=li(n),r=li(r)):(n=ci(n),r=ci(r)),a=e(n,r)}return a}}function Bi(e){return ra(function(t){return t=Zt(t,Qt(ca())),Hr(function(n){var r=this;return e(t,function(e){return Et(e,r,n)})})})}function Wi(e,t){var n=(t=t===i?\" \":li(t)).length;if(n<2)return n?Xr(t,e):t;var r=Xr(t,pt(e/pn(t)));return un(t)?xi(vn(r),0,e).join(\"\"):r.slice(0,e)}function Gi(e){return function(t,n,a){return a&&\"number\"!=typeof a&&ba(t,n,a)&&(n=a=i),t=po(t),n===i?(n=t,t=0):n=po(n),function(e,t,n,i){for(var a=-1,s=_n(pt((t-e)/(n||1)),0),o=r(s);s--;)o[i?s:++a]=e,e+=n;return o}(t,n,a=a===i?t<n?1:-1:po(a),e)}}function Vi(e){return function(t,n){return\"string\"==typeof t&&\"string\"==typeof n||(t=go(t),n=go(n)),e(t,n)}}function Ji(e,t,n,r,a,s,o,u,f,d){var h=8&t;t|=h?c:l,4&(t&=~(h?l:c))||(t&=-4);var p=[e,t,a,h?s:i,h?o:i,h?i:s,h?i:o,u,f,d],v=n.apply(i,p);return xa(e)&&Ia(v,p),v.placeholder=r,Ra(v,e,t)}function Ki(e){var t=Ae[e];return function(e,n){if(e=go(e),(n=null==n?0:bn(vo(n),292))&&bt(e)){var r=(_o(e)+\"e\").split(\"e\");return+((r=(_o(t(r[0]+\"e\"+(+r[1]+n)))+\"e\").split(\"e\"))[0]+\"e\"+(+r[1]-n))}return t(e)}}var Xi=Sn&&1/dn(new Sn([,-0]))[1]==h?function(e){return new Sn(e)}:cu;function Hi(e){return function(t){var n=va(t);return n==j?cn(t):n==I?hn(t):function(e,t){return Zt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Yi(e,t,n,s,h,p,v,m){var g=2&t;if(!g&&\"function\"!=typeof e)throw new Ie(a);var y=s?s.length:0;if(y||(t&=-97,s=h=i),v=v===i?v:_n(vo(v),0),m=m===i?m:vo(m),y-=h?h.length:0,t&l){var _=s,b=h;s=h=i}var w=g?i:sa(e),x=[e,t,n,s,h,_,b,p,v,m];if(w&&function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,s=r==f&&8==n||r==f&&n==d&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var c=e[3];e[3]=c?Si(c,u,t[4]):u,e[4]=c?fn(e[3],o):t[4]}(u=t[5])&&(c=e[5],e[5]=c?Pi(c,u,t[6]):u,e[6]=c?fn(e[5],o):t[6]);(u=t[7])&&(e[7]=u);r&f&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(x,w),e=x[0],t=x[1],n=x[2],s=x[3],h=x[4],!(m=x[9]=x[9]===i?g?0:e.length:_n(x[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)k=8==t||t==u?function(e,t,n){var a=Fi(e);return function s(){for(var o=arguments.length,u=r(o),c=o,l=ua(s);c--;)u[c]=arguments[c];var f=o<3&&u[0]!==l&&u[o-1]!==l?[]:fn(u,l);return(o-=f.length)<n?Ji(e,t,Ui,s.placeholder,i,u,f,i,i,n-o):Et(this&&this!==vt&&this instanceof s?a:e,this,u)}}(e,t,m):t!=c&&33!=t||h.length?Ui.apply(i,x):function(e,t,n,i){var a=1&t,s=Fi(e);return function t(){for(var o=-1,u=arguments.length,c=-1,l=i.length,f=r(l+u),d=this&&this!==vt&&this instanceof t?s:e;++c<l;)f[c]=i[c];for(;u--;)f[c++]=arguments[++o];return Et(d,a?n:this,f)}}(e,t,n,s);else var k=function(e,t,n){var r=1&t,i=Fi(e);return function t(){return(this&&this!==vt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Ra((w?ti:Ia)(k,x),e,t)}function Qi(e,t,n,r){return e===i||Ms(e,Re[n])&&!$e.call(r,n)?t:e}function ea(e,t,n,r,a,s){return eo(e)&&eo(t)&&(s.set(t,e),qr(e,t,i,ea,s),s.delete(t)),e}function ta(e){return io(e)?i:e}function na(e,t,n,r,a,s){var o=1&n,u=e.length,c=t.length;if(u!=c&&!(o&&c>u))return!1;var l=s.get(e),f=s.get(t);if(l&&f)return l==t&&f==e;var d=-1,h=!0,p=2&n?new Kn:i;for(s.set(e,t),s.set(t,e);++d<u;){var v=e[d],m=t[d];if(r)var g=o?r(m,v,d,t,e,s):r(v,m,d,e,t,s);if(g!==i){if(g)continue;h=!1;break}if(p){if(!zt(t,function(e,t){if(!tn(p,t)&&(v===e||a(v,e,n,r,s)))return p.push(t)})){h=!1;break}}else if(v!==m&&!a(v,m,n,r,s)){h=!1;break}}return s.delete(e),s.delete(t),h}function ra(e){return Na(Ea(e,i,Wa),e+\"\")}function ia(e){return jr(e,No,ha)}function aa(e){return jr(e,Ro,pa)}var sa=Tn?function(e){return Tn.get(e)}:cu;function oa(e){for(var t=e.name+\"\",n=Nn[t],r=$e.call(Nn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function ua(e){return($e.call(Un,\"placeholder\")?Un:e).placeholder}function ca(){var e=Un.iteratee||au;return e=e===au?$r:e,arguments.length?e(arguments[0],arguments[1]):e}function la(e,t){var n,r,i=e.__data__;return(\"string\"==(r=typeof(n=t))||\"number\"==r||\"symbol\"==r||\"boolean\"==r?\"__proto__\"!==n:null===n)?i[\"string\"==typeof t?\"string\":\"hash\"]:i.map}function fa(e){for(var t=No(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ja(i)]}return t}function da(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Zr(n)?n:i}var ha=gt?function(e){return null==e?[]:(e=Ee(e),Nt(gt(e),function(t){return Ke.call(e,t)}))}:mu,pa=gt?function(e){for(var t=[];e;)$t(t,ha(e)),e=Ve(e);return t}:mu,va=Ar;function ma(e,t,n){for(var r=-1,i=(t=bi(t,e)).length,a=!1;++r<i;){var s=La(t[r]);if(!(a=null!=e&&n(e,s)))break;e=e[s]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&Qs(i)&&_a(s,i)&&(Bs(e)||qs(e))}function ga(e){return\"function\"!=typeof e.constructor||Oa(e)?{}:Dn(Ve(e))}function ya(e){return Bs(e)||qs(e)||!!(He&&e&&e[He])}function _a(e,t){var n=typeof e;return!!(t=null==t?p:t)&&(\"number\"==n||\"symbol\"!=n&&be.test(e))&&e>-1&&e%1==0&&e<t}function ba(e,t,n){if(!eo(n))return!1;var r=typeof t;return!!(\"number\"==r?Gs(n)&&_a(t,n.length):\"string\"==r&&t in n)&&Ms(n[t],e)}function wa(e,t){if(Bs(e))return!1;var n=typeof e;return!(\"number\"!=n&&\"symbol\"!=n&&\"boolean\"!=n&&null!=e&&!uo(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ee(t))}function xa(e){var t=oa(e),n=Un[t];if(\"function\"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=sa(n);return!!r&&e===r[0]}(jn&&va(new jn(new ArrayBuffer(1)))!=Z||An&&va(new An)!=j||En&&va(En.resolve())!=S||Sn&&va(new Sn)!=I||Pn&&va(new Pn)!=R)&&(va=function(e){var t=Ar(e),n=t==E?e.constructor:i,r=n?Fa(n):\"\";if(r)switch(r){case Rn:return Z;case Cn:return j;case Zn:return S;case $n:return I;case Ln:return R}return t});var ka=Ce?Hs:gu;function Oa(e){var t=e&&e.constructor;return e===(\"function\"==typeof t&&t.prototype||Re)}function ja(e){return e==e&&!eo(e)}function Aa(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Ee(n)))}}function Ea(e,t,n){return t=_n(t===i?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=_n(i.length-t,0),o=r(s);++a<s;)o[a]=i[t+a];a=-1;for(var u=r(t+1);++a<t;)u[a]=i[a];return u[t]=n(o),Et(e,this,u)}}function Sa(e,t){return t.length<2?e:Or(e,ii(t,0,-1))}function Pa(e,t){if((\"constructor\"!==t||\"function\"!=typeof e[t])&&\"__proto__\"!=t)return e[t]}var Ia=Ca(ti),Ta=ht||function(e,t){return vt.setTimeout(e,t)},Na=Ca(ni);function Ra(e,t,n){var r=t+\"\";return Na(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?\"& \":\"\")+t[r],t=t.join(n>2?\", \":\" \"),e.replace(ue,\"{\\n/* [wrapped with \"+t+\"] */\\n\")}(r,function(e,t){return Pt(g,function(n){var r=\"_.\"+n[0];t&n[1]&&!Rt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(le):[]}(r),n)))}function Ca(e){var t=0,n=0;return function(){var r=wn(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Za(e,t){var n=-1,r=e.length,a=r-1;for(t=t===i?r:t;++n<t;){var s=Kr(n,a),o=e[s];e[s]=e[n],e[n]=o}return e.length=t,e}var $a=function(e){var t=Cs(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(\"\"),e.replace(re,function(e,n,r,i){t.push(r?i.replace(he,\"$1\"):n||e)}),t});function La(e){if(\"string\"==typeof e||uo(e))return e;var t=e+\"\";return\"0\"==t&&1/e==-1/0?\"-0\":t}function Fa(e){if(null!=e){try{return Ze.call(e)}catch(e){}try{return e+\"\"}catch(e){}}return\"\"}function za(e){if(e instanceof Wn)return e.clone();var t=new Bn(e.__wrapped__,e.__chain__);return t.__actions__=Ii(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ma=Hr(function(e,t){return Vs(e)?dr(e,yr(t,1,Vs,!0)):[]}),Ua=Hr(function(e,t){var n=Xa(t);return Vs(n)&&(n=i),Vs(e)?dr(e,yr(t,1,Vs,!0),ca(n,2)):[]}),Da=Hr(function(e,t){var n=Xa(t);return Vs(n)&&(n=i),Vs(e)?dr(e,yr(t,1,Vs,!0),i,n):[]});function qa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vo(n);return i<0&&(i=_n(r+i,0)),Dt(e,ca(t,3),i)}function Ba(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r-1;return n!==i&&(a=vo(n),a=n<0?_n(r+a,0):bn(a,r-1)),Dt(e,ca(t,3),a,!0)}function Wa(e){return(null==e?0:e.length)?yr(e,1):[]}function Ga(e){return e&&e.length?e[0]:i}var Va=Hr(function(e){var t=Zt(e,yi);return t.length&&t[0]===e[0]?Ir(t):[]}),Ja=Hr(function(e){var t=Xa(e),n=Zt(e,yi);return t===Xa(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Ir(n,ca(t,2)):[]}),Ka=Hr(function(e){var t=Xa(e),n=Zt(e,yi);return(t=\"function\"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Ir(n,i,t):[]});function Xa(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Ha=Hr(Ya);function Ya(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}var Qa=ra(function(e,t){var n=null==e?0:e.length,r=or(e,t);return Jr(e,Zt(t,function(e){return _a(e,n)?+e:e}).sort(Ei)),r});function es(e){return null==e?e:On.call(e)}var ts=Hr(function(e){return fi(yr(e,1,Vs,!0))}),ns=Hr(function(e){var t=Xa(e);return Vs(t)&&(t=i),fi(yr(e,1,Vs,!0),ca(t,2))}),rs=Hr(function(e){var t=Xa(e);return t=\"function\"==typeof t?t:i,fi(yr(e,1,Vs,!0),i,t)});function is(e){if(!e||!e.length)return[];var t=0;return e=Nt(e,function(e){if(Vs(e))return t=_n(e.length,t),!0}),Ht(t,function(t){return Zt(e,Vt(t))})}function as(e,t){if(!e||!e.length)return[];var n=is(e);return null==t?n:Zt(n,function(e){return Et(t,i,e)})}var ss=Hr(function(e,t){return Vs(e)?dr(e,t):[]}),os=Hr(function(e){return mi(Nt(e,Vs))}),us=Hr(function(e){var t=Xa(e);return Vs(t)&&(t=i),mi(Nt(e,Vs),ca(t,2))}),cs=Hr(function(e){var t=Xa(e);return t=\"function\"==typeof t?t:i,mi(Nt(e,Vs),i,t)}),ls=Hr(is);var fs=Hr(function(e){var t=e.length,n=t>1?e[t-1]:i;return n=\"function\"==typeof n?(e.pop(),n):i,as(e,n)});function ds(e){var t=Un(e);return t.__chain__=!0,t}function hs(e,t){return t(e)}var ps=ra(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&_a(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:hs,args:[a],thisArg:i}),new Bn(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(a)});var vs=Ni(function(e,t,n){$e.call(e,n)?++e[n]:sr(e,n,1)});var ms=zi(qa),gs=zi(Ba);function ys(e,t){return(Bs(e)?Pt:hr)(e,ca(t,3))}function _s(e,t){return(Bs(e)?It:pr)(e,ca(t,3))}var bs=Ni(function(e,t,n){$e.call(e,n)?e[n].push(t):sr(e,n,[t])});var ws=Hr(function(e,t,n){var i=-1,a=\"function\"==typeof t,s=Gs(e)?r(e.length):[];return hr(e,function(e){s[++i]=a?Et(t,e,n):Tr(e,t,n)}),s}),xs=Ni(function(e,t,n){sr(e,n,t)});function ks(e,t){return(Bs(e)?Zt:Mr)(e,ca(t,3))}var Os=Ni(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var js=Hr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&ba(e,t[0],t[1])?t=[]:n>2&&ba(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,yr(t,1),[])}),As=lt||function(){return vt.Date.now()};function Es(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Yi(e,f,i,i,i,i,t)}function Ss(e,t){var n;if(\"function\"!=typeof t)throw new Ie(a);return e=vo(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ps=Hr(function(e,t,n){var r=1;if(n.length){var i=fn(n,ua(Ps));r|=c}return Yi(e,r,t,n,i)}),Is=Hr(function(e,t,n){var r=3;if(n.length){var i=fn(n,ua(Is));r|=c}return Yi(t,r,e,n,i)});function Ts(e,t,n){var r,s,o,u,c,l,f=0,d=!1,h=!1,p=!0;if(\"function\"!=typeof e)throw new Ie(a);function v(t){var n=r,a=s;return r=s=i,f=t,u=e.apply(a,n)}function m(e){var n=e-l;return l===i||n>=t||n<0||h&&e-f>=o}function g(){var e=As();if(m(e))return y(e);c=Ta(g,function(e){var n=t-(e-l);return h?bn(n,o-(e-f)):n}(e))}function y(e){return c=i,p&&r?v(e):(r=s=i,u)}function _(){var e=As(),n=m(e);if(r=arguments,s=this,l=e,n){if(c===i)return function(e){return f=e,c=Ta(g,t),d?v(e):u}(l);if(h)return ki(c),c=Ta(g,t),v(l)}return c===i&&(c=Ta(g,t)),u}return t=go(t)||0,eo(n)&&(d=!!n.leading,o=(h=\"maxWait\"in n)?_n(go(n.maxWait)||0,t):o,p=\"trailing\"in n?!!n.trailing:p),_.cancel=function(){c!==i&&ki(c),f=0,r=l=s=c=i},_.flush=function(){return c===i?u:y(As())},_}var Ns=Hr(function(e,t){return fr(e,1,t)}),Rs=Hr(function(e,t,n){return fr(e,go(t)||0,n)});function Cs(e,t){if(\"function\"!=typeof e||null!=t&&\"function\"!=typeof t)throw new Ie(a);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 s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(Cs.Cache||Jn),n}function Zs(e){if(\"function\"!=typeof e)throw new Ie(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Cs.Cache=Jn;var $s=wi(function(e,t){var n=(t=1==t.length&&Bs(t[0])?Zt(t[0],Qt(ca())):Zt(yr(t,1),Qt(ca()))).length;return Hr(function(r){for(var i=-1,a=bn(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return Et(e,this,r)})}),Ls=Hr(function(e,t){var n=fn(t,ua(Ls));return Yi(e,c,i,t,n)}),Fs=Hr(function(e,t){var n=fn(t,ua(Fs));return Yi(e,l,i,t,n)}),zs=ra(function(e,t){return Yi(e,d,i,i,i,t)});function Ms(e,t){return e===t||e!=e&&t!=t}var Us=Vi(Er),Ds=Vi(function(e,t){return e>=t}),qs=Nr(function(){return arguments}())?Nr:function(e){return to(e)&&$e.call(e,\"callee\")&&!Ke.call(e,\"callee\")},Bs=r.isArray,Ws=wt?Qt(wt):function(e){return to(e)&&Ar(e)==C};function Gs(e){return null!=e&&Qs(e.length)&&!Hs(e)}function Vs(e){return to(e)&&Gs(e)}var Js=_t||gu,Ks=xt?Qt(xt):function(e){return to(e)&&Ar(e)==w};function Xs(e){if(!to(e))return!1;var t=Ar(e);return t==x||\"[object DOMException]\"==t||\"string\"==typeof e.message&&\"string\"==typeof e.name&&!io(e)}function Hs(e){if(!eo(e))return!1;var t=Ar(e);return t==k||t==O||\"[object AsyncFunction]\"==t||\"[object Proxy]\"==t}function Ys(e){return\"number\"==typeof e&&e==vo(e)}function Qs(e){return\"number\"==typeof e&&e>-1&&e%1==0&&e<=p}function eo(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)}function to(e){return null!=e&&\"object\"==typeof e}var no=kt?Qt(kt):function(e){return to(e)&&va(e)==j};function ro(e){return\"number\"==typeof e||to(e)&&Ar(e)==A}function io(e){if(!to(e)||Ar(e)!=E)return!1;var t=Ve(e);if(null===t)return!0;var n=$e.call(t,\"constructor\")&&t.constructor;return\"function\"==typeof n&&n instanceof n&&Ze.call(n)==Me}var ao=Ot?Qt(Ot):function(e){return to(e)&&Ar(e)==P};var so=jt?Qt(jt):function(e){return to(e)&&va(e)==I};function oo(e){return\"string\"==typeof e||!Bs(e)&&to(e)&&Ar(e)==T}function uo(e){return\"symbol\"==typeof e||to(e)&&Ar(e)==N}var co=At?Qt(At):function(e){return to(e)&&Qs(e.length)&&!!ut[Ar(e)]};var lo=Vi(zr),fo=Vi(function(e,t){return e<=t});function ho(e){if(!e)return[];if(Gs(e))return oo(e)?vn(e):Ii(e);if(Ye&&e[Ye])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ye]());var t=va(e);return(t==j?cn:t==I?dn:Uo)(e)}function po(e){return e?(e=go(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vo(e){var t=po(e),n=t%1;return t==t?n?t-n:t:0}function mo(e){return e?ur(vo(e),0,m):0}function go(e){if(\"number\"==typeof e)return e;if(uo(e))return v;if(eo(e)){var t=\"function\"==typeof e.valueOf?e.valueOf():e;e=eo(t)?t+\"\":t}if(\"string\"!=typeof e)return 0===e?e:+e;e=Yt(e);var n=ge.test(e);return n||_e.test(e)?dt(e.slice(2),n?2:8):me.test(e)?v:+e}function yo(e){return Ti(e,Ro(e))}function _o(e){return null==e?\"\":li(e)}var bo=Ri(function(e,t){if(Oa(t)||Gs(t))Ti(t,No(t),e);else for(var n in t)$e.call(t,n)&&nr(e,n,t[n])}),wo=Ri(function(e,t){Ti(t,Ro(t),e)}),xo=Ri(function(e,t,n,r){Ti(t,Ro(t),e,r)}),ko=Ri(function(e,t,n,r){Ti(t,No(t),e,r)}),Oo=ra(or);var jo=Hr(function(e,t){e=Ee(e);var n=-1,r=t.length,a=r>2?t[2]:i;for(a&&ba(t[0],t[1],a)&&(r=1);++n<r;)for(var s=t[n],o=Ro(s),u=-1,c=o.length;++u<c;){var l=o[u],f=e[l];(f===i||Ms(f,Re[l])&&!$e.call(e,l))&&(e[l]=s[l])}return e}),Ao=Hr(function(e){return e.push(i,ea),Et(Zo,i,e)});function Eo(e,t,n){var r=null==e?i:Or(e,t);return r===i?n:r}function So(e,t){return null!=e&&ma(e,t,Pr)}var Po=Di(function(e,t,n){null!=t&&\"function\"!=typeof t.toString&&(t=ze.call(t)),e[t]=n},tu(iu)),Io=Di(function(e,t,n){null!=t&&\"function\"!=typeof t.toString&&(t=ze.call(t)),$e.call(e,t)?e[t].push(n):e[t]=[n]},ca),To=Hr(Tr);function No(e){return Gs(e)?Hn(e):Lr(e)}function Ro(e){return Gs(e)?Hn(e,!0):Fr(e)}var Co=Ri(function(e,t,n){qr(e,t,n)}),Zo=Ri(function(e,t,n,r){qr(e,t,n,r)}),$o=ra(function(e,t){var n={};if(null==e)return n;var r=!1;t=Zt(t,function(t){return t=bi(t,e),r||(r=t.length>1),t}),Ti(e,aa(e),n),r&&(n=cr(n,7,ta));for(var i=t.length;i--;)di(n,t[i]);return n});var Lo=ra(function(e,t){return null==e?{}:function(e,t){return Gr(e,t,function(t,n){return So(e,n)})}(e,t)});function Fo(e,t){if(null==e)return{};var n=Zt(aa(e),function(e){return[e]});return t=ca(t),Gr(e,n,function(e,n){return t(e,n[0])})}var zo=Hi(No),Mo=Hi(Ro);function Uo(e){return null==e?[]:en(e,No(e))}var Do=Li(function(e,t,n){return t=t.toLowerCase(),e+(n?qo(t):t)});function qo(e){return Ho(_o(e).toLowerCase())}function Bo(e){return(e=_o(e))&&e.replace(we,an).replace(tt,\"\")}var Wo=Li(function(e,t,n){return e+(n?\"-\":\"\")+t.toLowerCase()}),Go=Li(function(e,t,n){return e+(n?\" \":\"\")+t.toLowerCase()}),Vo=$i(\"toLowerCase\");var Jo=Li(function(e,t,n){return e+(n?\"_\":\"\")+t.toLowerCase()});var Ko=Li(function(e,t,n){return e+(n?\" \":\"\")+Ho(t)});var Xo=Li(function(e,t,n){return e+(n?\" \":\"\")+t.toUpperCase()}),Ho=$i(\"toUpperCase\");function Yo(e,t,n){return e=_o(e),(t=n?i:t)===i?function(e){return at.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(fe)||[]}(e):e.match(t)||[]}var Qo=Hr(function(e,t){try{return Et(e,i,t)}catch(e){return Xs(e)?e:new Oe(e)}}),eu=ra(function(e,t){return Pt(t,function(t){t=La(t),sr(e,t,Ps(e[t],e))}),e});function tu(e){return function(){return e}}var nu=Mi(),ru=Mi(!0);function iu(e){return e}function au(e){return $r(\"function\"==typeof e?e:cr(e,1))}var su=Hr(function(e,t){return function(n){return Tr(n,e,t)}}),ou=Hr(function(e,t){return function(n){return Tr(e,n,t)}});function uu(e,t,n){var r=No(t),i=kr(t,r);null!=n||eo(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=kr(t,No(t)));var a=!(eo(n)&&\"chain\"in n&&!n.chain),s=Hs(e);return Pt(i,function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Ii(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,$t([this.value()],arguments))})}),e}function cu(){}var lu=Bi(Zt),fu=Bi(Tt),du=Bi(zt);function hu(e){return wa(e)?Vt(La(e)):function(e){return function(t){return Or(t,e)}}(e)}var pu=Gi(),vu=Gi(!0);function mu(){return[]}function gu(){return!1}var yu=qi(function(e,t){return e+t},0),_u=Ki(\"ceil\"),bu=qi(function(e,t){return e/t},1),wu=Ki(\"floor\");var xu,ku=qi(function(e,t){return e*t},1),Ou=Ki(\"round\"),ju=qi(function(e,t){return e-t},0);return Un.after=function(e,t){if(\"function\"!=typeof t)throw new Ie(a);return e=vo(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Es,Un.assign=bo,Un.assignIn=wo,Un.assignInWith=xo,Un.assignWith=ko,Un.at=Oo,Un.before=Ss,Un.bind=Ps,Un.bindAll=eu,Un.bindKey=Is,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Bs(e)?e:[e]},Un.chain=ds,Un.chunk=function(e,t,n){t=(n?ba(e,t,n):t===i)?1:_n(vo(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var s=0,o=0,u=r(pt(a/t));s<a;)u[o++]=ii(e,s,s+=t);return u},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return $t(Bs(n)?Ii(n):[n],yr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=ca();return e=t?Zt(e,function(e){if(\"function\"!=typeof e[1])throw new Ie(a);return[n(e[0]),e[1]]}):[],Hr(function(n){for(var r=-1;++r<t;){var i=e[r];if(Et(i[0],this,n))return Et(i[1],this,n)}})},Un.conforms=function(e){return function(e){var t=No(e);return function(n){return lr(n,e,t)}}(cr(e,1))},Un.constant=tu,Un.countBy=vs,Un.create=function(e,t){var n=Dn(e);return null==t?n:ar(n,t)},Un.curry=function e(t,n,r){var a=Yi(t,8,i,i,i,i,i,n=r?i:n);return a.placeholder=e.placeholder,a},Un.curryRight=function e(t,n,r){var a=Yi(t,u,i,i,i,i,i,n=r?i:n);return a.placeholder=e.placeholder,a},Un.debounce=Ts,Un.defaults=jo,Un.defaultsDeep=Ao,Un.defer=Ns,Un.delay=Rs,Un.difference=Ma,Un.differenceBy=Ua,Un.differenceWith=Da,Un.drop=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=n||t===i?1:vo(t))<0?0:t,r):[]},Un.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,0,(t=r-(t=n||t===i?1:vo(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?pi(e,ca(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?pi(e,ca(t,3),!0):[]},Un.fill=function(e,t,n,r){var a=null==e?0:e.length;return a?(n&&\"number\"!=typeof n&&ba(e,t,n)&&(n=0,r=a),function(e,t,n,r){var a=e.length;for((n=vo(n))<0&&(n=-n>a?0:a+n),(r=r===i||r>a?a:vo(r))<0&&(r+=a),r=n>r?0:mo(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Un.filter=function(e,t){return(Bs(e)?Nt:gr)(e,ca(t,3))},Un.flatMap=function(e,t){return yr(ks(e,t),1)},Un.flatMapDeep=function(e,t){return yr(ks(e,t),h)},Un.flatMapDepth=function(e,t,n){return n=n===i?1:vo(n),yr(ks(e,t),n)},Un.flatten=Wa,Un.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,h):[]},Un.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===i?1:vo(t)):[]},Un.flip=function(e){return Yi(e,512)},Un.flow=nu,Un.flowRight=ru,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];sr(r,i[0],i[1])}return r},Un.functions=function(e){return null==e?[]:kr(e,No(e))},Un.functionsIn=function(e){return null==e?[]:kr(e,Ro(e))},Un.groupBy=bs,Un.initial=function(e){return(null==e?0:e.length)?ii(e,0,-1):[]},Un.intersection=Va,Un.intersectionBy=Ja,Un.intersectionWith=Ka,Un.invert=Po,Un.invertBy=Io,Un.invokeMap=ws,Un.iteratee=au,Un.keyBy=xs,Un.keys=No,Un.keysIn=Ro,Un.map=ks,Un.mapKeys=function(e,t){var n={};return t=ca(t,3),wr(e,function(e,r,i){sr(n,t(e,r,i),e)}),n},Un.mapValues=function(e,t){var n={};return t=ca(t,3),wr(e,function(e,r,i){sr(n,r,t(e,r,i))}),n},Un.matches=function(e){return Ur(cr(e,1))},Un.matchesProperty=function(e,t){return Dr(e,cr(t,1))},Un.memoize=Cs,Un.merge=Co,Un.mergeWith=Zo,Un.method=su,Un.methodOf=ou,Un.mixin=uu,Un.negate=Zs,Un.nthArg=function(e){return e=vo(e),Hr(function(t){return Br(t,e)})},Un.omit=$o,Un.omitBy=function(e,t){return Fo(e,Zs(ca(t)))},Un.once=function(e){return Ss(2,e)},Un.orderBy=function(e,t,n,r){return null==e?[]:(Bs(t)||(t=null==t?[]:[t]),Bs(n=r?i:n)||(n=null==n?[]:[n]),Wr(e,t,n))},Un.over=lu,Un.overArgs=$s,Un.overEvery=fu,Un.overSome=du,Un.partial=Ls,Un.partialRight=Fs,Un.partition=Os,Un.pick=Lo,Un.pickBy=Fo,Un.property=hu,Un.propertyOf=function(e){return function(t){return null==e?i:Or(e,t)}},Un.pull=Ha,Un.pullAll=Ya,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,ca(n,2)):e},Un.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,i,n):e},Un.pullAt=Qa,Un.range=pu,Un.rangeRight=vu,Un.rearg=zs,Un.reject=function(e,t){return(Bs(e)?Nt:gr)(e,Zs(ca(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;for(t=ca(t,3);++r<a;){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return Jr(e,i),n},Un.rest=function(e,t){if(\"function\"!=typeof e)throw new Ie(a);return Hr(e,t=t===i?t:vo(t))},Un.reverse=es,Un.sampleSize=function(e,t,n){return t=(n?ba(e,t,n):t===i)?1:vo(t),(Bs(e)?Qn:Qr)(e,t)},Un.set=function(e,t,n){return null==e?e:ei(e,t,n)},Un.setWith=function(e,t,n,r){return r=\"function\"==typeof r?r:i,null==e?e:ei(e,t,n,r)},Un.shuffle=function(e){return(Bs(e)?er:ri)(e)},Un.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&\"number\"!=typeof n&&ba(e,t,n)?(t=0,n=r):(t=null==t?0:vo(t),n=n===i?r:vo(n)),ii(e,t,n)):[]},Un.sortBy=js,Un.sortedUniq=function(e){return e&&e.length?ui(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?ui(e,ca(t,2)):[]},Un.split=function(e,t,n){return n&&\"number\"!=typeof n&&ba(e,t,n)&&(t=n=i),(n=n===i?m:n>>>0)?(e=_o(e))&&(\"string\"==typeof t||null!=t&&!ao(t))&&!(t=li(t))&&un(e)?xi(vn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if(\"function\"!=typeof e)throw new Ie(a);return t=null==t?0:_n(vo(t),0),Hr(function(n){var r=n[t],i=xi(n,0,t);return r&&$t(i,r),Et(e,this,i)})},Un.tail=function(e){var t=null==e?0:e.length;return t?ii(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?ii(e,0,(t=n||t===i?1:vo(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=r-(t=n||t===i?1:vo(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?pi(e,ca(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?pi(e,ca(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,i=!0;if(\"function\"!=typeof e)throw new Ie(a);return eo(n)&&(r=\"leading\"in n?!!n.leading:r,i=\"trailing\"in n?!!n.trailing:i),Ts(e,t,{leading:r,maxWait:t,trailing:i})},Un.thru=hs,Un.toArray=ho,Un.toPairs=zo,Un.toPairsIn=Mo,Un.toPath=function(e){return Bs(e)?Zt(e,La):uo(e)?[e]:Ii($a(_o(e)))},Un.toPlainObject=yo,Un.transform=function(e,t,n){var r=Bs(e),i=r||Js(e)||co(e);if(t=ca(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:eo(e)&&Hs(a)?Dn(Ve(e)):{}}return(i?Pt:wr)(e,function(e,r,i){return t(n,e,r,i)}),n},Un.unary=function(e){return Es(e,1)},Un.union=ts,Un.unionBy=ns,Un.unionWith=rs,Un.uniq=function(e){return e&&e.length?fi(e):[]},Un.uniqBy=function(e,t){return e&&e.length?fi(e,ca(t,2)):[]},Un.uniqWith=function(e,t){return t=\"function\"==typeof t?t:i,e&&e.length?fi(e,i,t):[]},Un.unset=function(e,t){return null==e||di(e,t)},Un.unzip=is,Un.unzipWith=as,Un.update=function(e,t,n){return null==e?e:hi(e,t,_i(n))},Un.updateWith=function(e,t,n,r){return r=\"function\"==typeof r?r:i,null==e?e:hi(e,t,_i(n),r)},Un.values=Uo,Un.valuesIn=function(e){return null==e?[]:en(e,Ro(e))},Un.without=ss,Un.words=Yo,Un.wrap=function(e,t){return Ls(_i(t),e)},Un.xor=os,Un.xorBy=us,Un.xorWith=cs,Un.zip=ls,Un.zipObject=function(e,t){return gi(e||[],t||[],nr)},Un.zipObjectDeep=function(e,t){return gi(e||[],t||[],ei)},Un.zipWith=fs,Un.entries=zo,Un.entriesIn=Mo,Un.extend=wo,Un.extendWith=xo,uu(Un,Un),Un.add=yu,Un.attempt=Qo,Un.camelCase=Do,Un.capitalize=qo,Un.ceil=_u,Un.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=go(n))==n?n:0),t!==i&&(t=(t=go(t))==t?t:0),ur(go(e),t,n)},Un.clone=function(e){return cr(e,4)},Un.cloneDeep=function(e){return cr(e,5)},Un.cloneDeepWith=function(e,t){return cr(e,5,t=\"function\"==typeof t?t:i)},Un.cloneWith=function(e,t){return cr(e,4,t=\"function\"==typeof t?t:i)},Un.conformsTo=function(e,t){return null==t||lr(e,t,No(t))},Un.deburr=Bo,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=bu,Un.endsWith=function(e,t,n){e=_o(e),t=li(t);var r=e.length,a=n=n===i?r:ur(vo(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},Un.eq=Ms,Un.escape=function(e){return(e=_o(e))&&H.test(e)?e.replace(K,sn):e},Un.escapeRegExp=function(e){return(e=_o(e))&&ae.test(e)?e.replace(ie,\"\\\\$&\"):e},Un.every=function(e,t,n){var r=Bs(e)?Tt:vr;return n&&ba(e,t,n)&&(t=i),r(e,ca(t,3))},Un.find=ms,Un.findIndex=qa,Un.findKey=function(e,t){return Ut(e,ca(t,3),wr)},Un.findLast=gs,Un.findLastIndex=Ba,Un.findLastKey=function(e,t){return Ut(e,ca(t,3),xr)},Un.floor=wu,Un.forEach=ys,Un.forEachRight=_s,Un.forIn=function(e,t){return null==e?e:_r(e,ca(t,3),Ro)},Un.forInRight=function(e,t){return null==e?e:br(e,ca(t,3),Ro)},Un.forOwn=function(e,t){return e&&wr(e,ca(t,3))},Un.forOwnRight=function(e,t){return e&&xr(e,ca(t,3))},Un.get=Eo,Un.gt=Us,Un.gte=Ds,Un.has=function(e,t){return null!=e&&ma(e,t,Sr)},Un.hasIn=So,Un.head=Ga,Un.identity=iu,Un.includes=function(e,t,n,r){e=Gs(e)?e:Uo(e),n=n&&!r?vo(n):0;var i=e.length;return n<0&&(n=_n(i+n,0)),oo(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&qt(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vo(n);return i<0&&(i=_n(r+i,0)),qt(e,t,i)},Un.inRange=function(e,t,n){return t=po(t),n===i?(n=t,t=0):n=po(n),function(e,t,n){return e>=bn(t,n)&&e<_n(t,n)}(e=go(e),t,n)},Un.invoke=To,Un.isArguments=qs,Un.isArray=Bs,Un.isArrayBuffer=Ws,Un.isArrayLike=Gs,Un.isArrayLikeObject=Vs,Un.isBoolean=function(e){return!0===e||!1===e||to(e)&&Ar(e)==b},Un.isBuffer=Js,Un.isDate=Ks,Un.isElement=function(e){return to(e)&&1===e.nodeType&&!io(e)},Un.isEmpty=function(e){if(null==e)return!0;if(Gs(e)&&(Bs(e)||\"string\"==typeof e||\"function\"==typeof e.splice||Js(e)||co(e)||qs(e)))return!e.length;var t=va(e);if(t==j||t==I)return!e.size;if(Oa(e))return!Lr(e).length;for(var n in e)if($e.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Rr(e,t)},Un.isEqualWith=function(e,t,n){var r=(n=\"function\"==typeof n?n:i)?n(e,t):i;return r===i?Rr(e,t,i,n):!!r},Un.isError=Xs,Un.isFinite=function(e){return\"number\"==typeof e&&bt(e)},Un.isFunction=Hs,Un.isInteger=Ys,Un.isLength=Qs,Un.isMap=no,Un.isMatch=function(e,t){return e===t||Cr(e,t,fa(t))},Un.isMatchWith=function(e,t,n){return n=\"function\"==typeof n?n:i,Cr(e,t,fa(t),n)},Un.isNaN=function(e){return ro(e)&&e!=+e},Un.isNative=function(e){if(ka(e))throw new Oe(\"Unsupported core-js use. Try https://npms.io/search?q=ponyfill.\");return Zr(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=ro,Un.isObject=eo,Un.isObjectLike=to,Un.isPlainObject=io,Un.isRegExp=ao,Un.isSafeInteger=function(e){return Ys(e)&&e>=-9007199254740991&&e<=p},Un.isSet=so,Un.isString=oo,Un.isSymbol=uo,Un.isTypedArray=co,Un.isUndefined=function(e){return e===i},Un.isWeakMap=function(e){return to(e)&&va(e)==R},Un.isWeakSet=function(e){return to(e)&&\"[object WeakSet]\"==Ar(e)},Un.join=function(e,t){return null==e?\"\":Mt.call(e,t)},Un.kebabCase=Wo,Un.last=Xa,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==i&&(a=(a=vo(n))<0?_n(r+a,0):bn(a,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Dt(e,Wt,a,!0)},Un.lowerCase=Go,Un.lowerFirst=Vo,Un.lt=lo,Un.lte=fo,Un.max=function(e){return e&&e.length?mr(e,iu,Er):i},Un.maxBy=function(e,t){return e&&e.length?mr(e,ca(t,2),Er):i},Un.mean=function(e){return Gt(e,iu)},Un.meanBy=function(e,t){return Gt(e,ca(t,2))},Un.min=function(e){return e&&e.length?mr(e,iu,zr):i},Un.minBy=function(e,t){return e&&e.length?mr(e,ca(t,2),zr):i},Un.stubArray=mu,Un.stubFalse=gu,Un.stubObject=function(){return{}},Un.stubString=function(){return\"\"},Un.stubTrue=function(){return!0},Un.multiply=ku,Un.nth=function(e,t){return e&&e.length?Br(e,vo(t)):i},Un.noConflict=function(){return vt._===this&&(vt._=Ue),this},Un.noop=cu,Un.now=As,Un.pad=function(e,t,n){e=_o(e);var r=(t=vo(t))?pn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Wi(mt(i),n)+e+Wi(pt(i),n)},Un.padEnd=function(e,t,n){e=_o(e);var r=(t=vo(t))?pn(e):0;return t&&r<t?e+Wi(t-r,n):e},Un.padStart=function(e,t,n){e=_o(e);var r=(t=vo(t))?pn(e):0;return t&&r<t?Wi(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),xn(_o(e).replace(se,\"\"),t||0)},Un.random=function(e,t,n){if(n&&\"boolean\"!=typeof n&&ba(e,t,n)&&(t=n=i),n===i&&(\"boolean\"==typeof t?(n=t,t=i):\"boolean\"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=po(e),t===i?(t=e,e=0):t=po(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var a=kn();return bn(e+a*(t-e+ft(\"1e-\"+((a+\"\").length-1))),t)}return Kr(e,t)},Un.reduce=function(e,t,n){var r=Bs(e)?Lt:Kt,i=arguments.length<3;return r(e,ca(t,4),n,i,hr)},Un.reduceRight=function(e,t,n){var r=Bs(e)?Ft:Kt,i=arguments.length<3;return r(e,ca(t,4),n,i,pr)},Un.repeat=function(e,t,n){return t=(n?ba(e,t,n):t===i)?1:vo(t),Xr(_o(e),t)},Un.replace=function(){var e=arguments,t=_o(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,a=(t=bi(t,e)).length;for(a||(a=1,e=i);++r<a;){var s=null==e?i:e[La(t[r])];s===i&&(r=a,s=n),e=Hs(s)?s.call(e):s}return e},Un.round=Ou,Un.runInContext=e,Un.sample=function(e){return(Bs(e)?Yn:Yr)(e)},Un.size=function(e){if(null==e)return 0;if(Gs(e))return oo(e)?pn(e):e.length;var t=va(e);return t==j||t==I?e.size:Lr(e).length},Un.snakeCase=Jo,Un.some=function(e,t,n){var r=Bs(e)?zt:ai;return n&&ba(e,t,n)&&(t=i),r(e,ca(t,3))},Un.sortedIndex=function(e,t){return si(e,t)},Un.sortedIndexBy=function(e,t,n){return oi(e,t,ca(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=si(e,t);if(r<n&&Ms(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return si(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return oi(e,t,ca(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=si(e,t,!0)-1;if(Ms(e[n],t))return n}return-1},Un.startCase=Ko,Un.startsWith=function(e,t,n){return e=_o(e),n=null==n?0:ur(vo(n),0,e.length),t=li(t),e.slice(n,n+t.length)==t},Un.subtract=ju,Un.sum=function(e){return e&&e.length?Xt(e,iu):0},Un.sumBy=function(e,t){return e&&e.length?Xt(e,ca(t,2)):0},Un.template=function(e,t,n){var r=Un.templateSettings;n&&ba(e,t,n)&&(t=i),e=_o(e),t=ko({},t,r,Qi);var a=ko({},t.imports,r.imports,Qi),s=No(a),o=en(a,s);Pt(s,function(e){if(de.test(e))throw new Oe(\"Invalid `imports` option passed into `_.template`\")});var u,c,l=0,f=t.interpolate||xe,d=\"__p += '\",h=Se((t.escape||xe).source+\"|\"+f.source+\"|\"+(f===ee?pe:xe).source+\"|\"+(t.evaluate||xe).source+\"|$\",\"g\"),p=\"//# sourceURL=\"+($e.call(t,\"sourceURL\")?(t.sourceURL+\"\").replace(/\\s/g,\" \"):\"lodash.templateSources[\"+ ++ot+\"]\")+\"\\n\";e.replace(h,function(t,n,r,i,a,s){return r||(r=i),d+=e.slice(l,s).replace(ke,on),n&&(u=!0,d+=\"' +\\n__e(\"+n+\") +\\n'\"),a&&(c=!0,d+=\"';\\n\"+a+\";\\n__p += '\"),r&&(d+=\"' +\\n((__t = (\"+r+\")) == null ? '' : __t) +\\n'\"),l=s+t.length,t}),d+=\"';\\n\";var v=$e.call(t,\"variable\")&&t.variable;if(v){if(de.test(v))throw new Oe(\"Invalid `variable` option passed into `_.template`\")}else d=\"with (obj) {\\n\"+d+\"\\n}\\n\";d=(c?d.replace(W,\"\"):d).replace(G,\"$1\").replace(V,\"$1;\"),d=\"function(\"+(v||\"obj\")+\") {\\n\"+(v?\"\":\"obj || (obj = {});\\n\")+\"var __t, __p = ''\"+(u?\", __e = _.escape\":\"\")+(c?\", __j = Array.prototype.join;\\nfunction print() { __p += __j.call(arguments, '') }\\n\":\";\\n\")+d+\"return __p\\n}\";var m=Qo(function(){return je(s,p+\"return \"+d).apply(i,o)});if(m.source=d,Xs(m))throw m;return m},Un.times=function(e,t){if((e=vo(e))<1||e>p)return[];var n=m,r=bn(e,m);t=ca(t),e-=m;for(var i=Ht(r,t);++n<e;)t(n);return i},Un.toFinite=po,Un.toInteger=vo,Un.toLength=mo,Un.toLower=function(e){return _o(e).toLowerCase()},Un.toNumber=go,Un.toSafeInteger=function(e){return e?ur(vo(e),-9007199254740991,p):0===e?e:0},Un.toString=_o,Un.toUpper=function(e){return _o(e).toUpperCase()},Un.trim=function(e,t,n){if((e=_o(e))&&(n||t===i))return Yt(e);if(!e||!(t=li(t)))return e;var r=vn(e),a=vn(t);return xi(r,nn(r,a),rn(r,a)+1).join(\"\")},Un.trimEnd=function(e,t,n){if((e=_o(e))&&(n||t===i))return e.slice(0,mn(e)+1);if(!e||!(t=li(t)))return e;var r=vn(e);return xi(r,0,rn(r,vn(t))+1).join(\"\")},Un.trimStart=function(e,t,n){if((e=_o(e))&&(n||t===i))return e.replace(se,\"\");if(!e||!(t=li(t)))return e;var r=vn(e);return xi(r,nn(r,vn(t))).join(\"\")},Un.truncate=function(e,t){var n=30,r=\"...\";if(eo(t)){var a=\"separator\"in t?t.separator:a;n=\"length\"in t?vo(t.length):n,r=\"omission\"in t?li(t.omission):r}var s=(e=_o(e)).length;if(un(e)){var o=vn(e);s=o.length}if(n>=s)return e;var u=n-pn(r);if(u<1)return r;var c=o?xi(o,0,u).join(\"\"):e.slice(0,u);if(a===i)return c+r;if(o&&(u+=c.length-u),ao(a)){if(e.slice(u).search(a)){var l,f=c;for(a.global||(a=Se(a.source,_o(ve.exec(a))+\"g\")),a.lastIndex=0;l=a.exec(f);)var d=l.index;c=c.slice(0,d===i?u:d)}}else if(e.indexOf(li(a),u)!=u){var h=c.lastIndexOf(a);h>-1&&(c=c.slice(0,h))}return c+r},Un.unescape=function(e){return(e=_o(e))&&X.test(e)?e.replace(J,gn):e},Un.uniqueId=function(e){var t=++Le;return _o(e)+t},Un.upperCase=Xo,Un.upperFirst=Ho,Un.each=ys,Un.eachRight=_s,Un.first=Ga,uu(Un,(xu={},wr(Un,function(e,t){$e.call(Un.prototype,t)||(xu[t]=e)}),xu),{chain:!1}),Un.VERSION=\"4.18.1\",Pt([\"bind\",\"bindKey\",\"curry\",\"curryRight\",\"partial\",\"partialRight\"],function(e){Un[e].placeholder=Un}),Pt([\"drop\",\"take\"],function(e,t){Wn.prototype[e]=function(n){n=n===i?1:_n(vo(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=bn(n,r.__takeCount__):r.__views__.push({size:bn(n,m),type:e+(r.__dir__<0?\"Right\":\"\")}),r},Wn.prototype[e+\"Right\"]=function(t){return this.reverse()[e](t).reverse()}}),Pt([\"filter\",\"map\",\"takeWhile\"],function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ca(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Pt([\"head\",\"last\"],function(e,t){var n=\"take\"+(t?\"Right\":\"\");Wn.prototype[e]=function(){return this[n](1).value()[0]}}),Pt([\"initial\",\"tail\"],function(e,t){var n=\"drop\"+(t?\"\":\"Right\");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}}),Wn.prototype.compact=function(){return this.filter(iu)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Hr(function(e,t){return\"function\"==typeof e?new Wn(this):this.map(function(n){return Tr(n,e,t)})}),Wn.prototype.reject=function(e){return this.filter(Zs(ca(e)))},Wn.prototype.slice=function(e,t){e=vo(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=vo(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(m)},wr(Wn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=Un[r?\"take\"+(\"last\"==t?\"Right\":\"\"):t],s=r||/^find/.test(t);a&&(Un.prototype[t]=function(){var t=this.__wrapped__,o=r?[1]:arguments,u=t instanceof Wn,c=o[0],l=u||Bs(t),f=function(e){var t=a.apply(Un,$t([e],o));return r&&d?t[0]:t};l&&n&&\"function\"==typeof c&&1!=c.length&&(u=l=!1);var d=this.__chain__,h=!!this.__actions__.length,p=s&&!d,v=u&&!h;if(!s&&l){t=v?t:new Wn(this);var m=e.apply(t,o);return m.__actions__.push({func:hs,args:[f],thisArg:i}),new Bn(m,d)}return p&&v?e.apply(this,o):(m=this.thru(f),p?r?m.value()[0]:m.value():m)})}),Pt([\"pop\",\"push\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?\"tap\":\"thru\",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Bs(i)?i:[],e)}return this[n](function(n){return t.apply(Bs(n)?n:[],e)})}}),wr(Wn.prototype,function(e,t){var n=Un[t];if(n){var r=n.name+\"\";$e.call(Nn,r)||(Nn[r]=[]),Nn[r].push({name:t,func:n})}}),Nn[Ui(i,2).name]=[{name:\"wrapper\",func:i}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Ii(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ii(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ii(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Bs(e),r=t<0,i=n?e.length:0,a=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var a=n[r],s=a.size;switch(a.type){case\"drop\":e+=s;break;case\"dropRight\":t-=s;break;case\"take\":t=bn(t,e+s);break;case\"takeRight\":e=_n(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=a.start,o=a.end,u=o-s,c=r?o:s-1,l=this.__iteratees__,f=l.length,d=0,h=bn(u,this.__takeCount__);if(!n||!r&&i==u&&h==u)return vi(e,this.__actions__);var p=[];e:for(;u--&&d<h;){for(var v=-1,m=e[c+=t];++v<f;){var g=l[v],y=g.iteratee,_=g.type,b=y(m);if(2==_)m=b;else if(!b){if(1==_)continue e;break e}}p[d++]=m}return p},Un.prototype.at=ps,Un.prototype.chain=function(){return ds(this)},Un.prototype.commit=function(){return new Bn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===i&&(this.__values__=ho(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof qn;){var r=za(n);r.__index__=0,r.__values__=i,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:hs,args:[es],thisArg:i}),new Bn(t,this.__chain__)}return this.thru(es)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return vi(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,Ye&&(Un.prototype[Ye]=function(){return this}),Un}();vt._=yn,(r=function(){return yn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};(()=>{\"use strict\";n.r(r),n.d(r,{onRpcRequest:()=>ci});const e=e=>\"object\"==typeof e?e.name:e,t=e=>`Failed type validation: ${e.map(e=>{if(t=e.path,\"custom\"===e.code&&(0===t.length||2===t.length&&\"number\"==typeof t[0]||3===t.length&&\"number\"==typeof t[0]&&\"number\"==typeof t[2]))return e.message;var t;const n=e.path.join(\".\");return n?`${n}: ${e.message}`:e.message}).join(\", \")}`;!function(e){e[e.DEBUG=0]=\"DEBUG\",e[e.INFO=1]=\"INFO\",e[e.WARN=2]=\"WARN\",e[e.ERROR=3]=\"ERROR\",e[e.DISABLED=4]=\"DISABLED\"}({});const i={threshold:\"true\"!==process?.env?.ENABLE_LOGGING?4:2,handlers:{0:console.debug,1:console.info,2:console.warn,3:console.error,4:()=>{}}};const a=new class{#e;constructor(e={}){this.#e={...i,...e}}setLevel(e){this.#e.threshold=e}getLevel(){return this.#e.threshold}#t(e,t,...n){const{threshold:r,handlers:i}=this.#e;e>=r&&i[e](t,...n)}debug(e,...t){this.#t(0,e,...t)}info(e,...t){this.#t(1,e,...t)}warn(e,...t){this.#t(2,e,...t)}error(e,...t){this.#t(3,e,...t)}};class s extends TypeError{constructor(e,t){let n;const{message:r,explanation:i,...a}=e,{path:s}=e,o=0===s.length?r:`At path: ${s.join(\".\")} -- ${r}`;super(i??o),null!=i&&(this.cause=o),Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>n??(n=[e,...t()])}}function o(e){return\"object\"==typeof e&&null!==e}function u(e){return\"symbol\"==typeof e?e.toString():\"string\"==typeof e?JSON.stringify(e):`${e}`}function c(e,t,n,r){if(!0===e)return;!1===e?e={}:\"string\"==typeof e&&(e={message:e});const{path:i,branch:a}=t,{type:s}=n,{refinement:o,message:c=`Expected a value of type \\`${s}\\`${o?` with refinement \\`${o}\\``:\"\"}, but received: \\`${u(r)}\\``}=e;return{value:r,type:s,refinement:o,key:i[i.length-1],path:i,branch:a,...e,message:c}}function*l(e,t,n,r){(function(e){return o(e)&&\"function\"==typeof e[Symbol.iterator]})(e)||(e=[e]);for(const i of e){const e=c(i,t,n,r);e&&(yield e)}}function*f(e,t,n={}){const{path:r=[],branch:i=[e],coerce:a=!1,mask:s=!1}=n,u={path:r,branch:i};if(a&&(e=t.coercer(e,u),s&&\"type\"!==t.type&&o(t.schema)&&o(e)&&!Array.isArray(e)))for(const n in e)void 0===t.schema[n]&&delete e[n];let c=\"valid\";for(const r of t.validator(e,u))r.explanation=n.message,c=\"not_valid\",yield[r,void 0];for(let[l,d,h]of t.entries(e,u)){const t=f(d,h,{path:void 0===l?r:[...r,l],branch:void 0===l?i:[...i,d],coerce:a,mask:s,message:n.message});for(const n of t)n[0]?(c=null===n[0].refinement||void 0===n[0].refinement?\"not_valid\":\"not_refined\",yield[n[0],void 0]):a&&(d=n[1],void 0===l?e=d:e instanceof Map?e.set(l,d):e instanceof Set?e.add(d):o(e)&&(void 0!==d||l in e)&&(e[l]=d))}if(\"not_valid\"!==c)for(const r of t.refiner(e,u))r.explanation=n.message,c=\"not_refined\",yield[r,void 0];\"valid\"===c&&(yield[void 0,e])}class d{constructor(e){const{type:t,schema:n,validator:r,refiner:i,coercer:a=e=>e,entries:s=function*(){}}=e;this.type=t,this.schema=n,this.entries=s,this.coercer=a,this.validator=r?(e,t)=>l(r(e,t),t,this,e):()=>[],this.refiner=i?(e,t)=>l(i(e,t),t,this,e):()=>[]}assert(e,t){return function(e,t,n){const r=g(e,t,{message:n});if(r[0])throw r[0]}(e,this,t)}create(e,t){return v(e,this,t)}is(e){return m(e,this)}mask(e,t){return function(e,t,n){const r=g(e,t,{coerce:!0,mask:!0,message:n});if(r[0])throw r[0];return r[1]}(e,this,t)}validate(e,t={}){return g(e,this,t)}}const h=\"EXACT_OPTIONAL\";class p extends d{constructor(e){super({...e,type:`exact optional ${e.type}`}),this.brand=h}static isExactOptional(e){return o(e)&&\"brand\"in e&&e.brand===h}}function v(e,t,n){const r=g(e,t,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function m(e,t){return!g(e,t)[0]}function g(e,t,n={}){const r=f(e,t,n),i=function(e){const{done:t,value:n}=e.next();return t?void 0:n}(r);if(i[0]){return[new s(i[0],function*(){for(const e of r)e[0]&&(yield e[0])}),void 0]}return[void 0,i[1]]}function y(e,t){return new d({type:e,schema:null,validator:t})}function _(){return y(\"never\",()=>!1)}function b(e){const t=e?Object.keys(e):[],n=_();return new d({type:\"object\",schema:e??null,*entries(r){if(e&&o(r)){const i=new Set(Object.keys(r));for(const n of t){i.delete(n);const t=e[n];p.isExactOptional(t)&&!Object.prototype.hasOwnProperty.call(r,n)||(yield[n,r[n],e[n]])}for(const e of i)yield[e,r[e],n]}},validator:e=>o(e)||`Expected an object, but received: ${u(e)}`,coercer:e=>o(e)?{...e}:e})}function w(e){return new d({...e,validator:(t,n)=>void 0===t||e.validator(t,n),refiner:(t,n)=>void 0===t||e.refiner(t,n)})}function x(){return y(\"string\",e=>\"string\"==typeof e||`Expected a string, but received: ${u(e)}`)}function k(e){const t=e.map(e=>e.type).join(\" | \");return new d({type:\"union\",schema:null,coercer(t){for(const n of e){const[e,r]=n.validate(t,{coerce:!0});if(!e)return r}return t},validator(n,r){const i=[];for(const t of e){const[...e]=f(n,t,r),[a]=e;if(!a?.[0])return[];for(const[t]of e)t&&i.push(t)}return[`Expected the value to satisfy a union of \\`${t}\\`, but received: ${u(n)}`,...i]}})}function O(e,t,n){return new d({...e,coercer:(r,i)=>m(r,t)?e.coercer(n(r,i),i):e.coercer(r,i)})}function j(e,t){return A(e,\"pattern\",n=>t.test(n)||`Expected a ${e.type} matching \\`/${t.source}/\\` but received \"${n}\"`)}function A(e,t,n){return new d({...e,*refiner(r,i){yield*e.refiner(r,i);const a=l(n(r,i),i,e,r);for(const e of a)yield{...e,refinement:t}}})}function E(e){return Boolean(e)&&\"object\"==typeof e&&!Array.isArray(e)}const S=(e,t)=>Object.hasOwnProperty.call(e,t);var P;!function(e){e[e.Null=4]=\"Null\",e[e.Comma=1]=\"Comma\",e[e.Wrapper=1]=\"Wrapper\",e[e.True=4]=\"True\",e[e.False=5]=\"False\",e[e.Quote=1]=\"Quote\",e[e.Colon=1]=\"Colon\",e[e.Date=24]=\"Date\"}(P=P||(P={}));const I=e=>b(e);function T({path:e,branch:t}){const n=e[e.length-1];return S(t[t.length-2],n)}function N(e){return new d({...e,type:`optional ${e.type}`,validator:(t,n)=>!T(n)||e.validator(t,n),refiner:(t,n)=>!T(n)||e.refiner(t,n)})}function R(e){if(null===e||\"boolean\"==typeof e||\"string\"==typeof e)return!0;if(\"number\"==typeof e&&Number.isFinite(e))return!0;if(\"object\"==typeof e){let t=!0;if(Array.isArray(e)){for(let n=0;n<e.length;n++)if(!R(e[n])){t=!1;break}return t}const n=Object.entries(e);for(let e=0;e<n.length;e++)if(\"string\"!=typeof n[e][0]||!R(n[e][1])){t=!1;break}return t}return!1}const C=y(\"JSON\",e=>R(e)),Z=O(C,A(y(\"any\",()=>!0),\"JSON\",e=>m(e,C)),e=>JSON.parse(JSON.stringify(e,(e,t)=>{if(\"__proto__\"!==e&&\"constructor\"!==e)return t})));function $(e){try{return function(e){v(e,Z)}(e),!0}catch{return!1}}const L=function(e){const t=u(e),n=typeof e;return new d({type:\"literal\",schema:\"string\"===n||\"number\"===n||\"boolean\"===n?e:null,validator:n=>n===e||`Expected the literal \\`${t}\\`, but received: ${u(n)}`})}(\"2.0\"),F=(z=k([y(\"number\",e=>\"number\"==typeof e&&!isNaN(e)||`Expected a number, but received: ${u(e)}`),x()]),new d({...z,validator:(e,t)=>null===e||z.validator(e,t),refiner:(e,t)=>null===e||z.refiner(e,t)}));var z;const M=I({code:y(\"integer\",e=>\"number\"==typeof e&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${u(e)}`),message:x(),data:N(Z),stack:N(x())}),U=k([(q=x(),B=Z,new d({type:\"record\",schema:null,*entries(e){if(o(e))for(const t in e){const n=e[t];yield[t,t,q],yield[t,n,B]}},validator:e=>o(e)||`Expected an object, but received: ${u(e)}`})),(D=Z,new d({type:\"array\",schema:D,*entries(e){if(D&&Array.isArray(e))for(const[t,n]of e.entries())yield[t,n,D]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${u(e)}`}))]);var D,q,B;I({id:F,jsonrpc:L,method:x(),params:N(U)}),I({jsonrpc:L,method:x(),params:N(U)});b({id:F,jsonrpc:L,result:w(y(\"unknown\",()=>!0)),error:w(M)});const W=I({id:F,jsonrpc:L,result:Z}),G=I({id:F,jsonrpc:L,error:M});k([W,G]);function V(e,t,n=null){return E(e)&&S(e,t)?e[t]:n}function J(e,t,n=String(e)){const r=V(e,t);return\"string\"==typeof r?r:n}function K(e){return J(e,\"message\")}function X(e){return J(e,\"stack\",null)}function H(e){return J(e,\"name\",e instanceof Error?e.name:\"Error\")}function Y(e){const t=V(e,\"data\");return null!==t&&$(t)&&!Array.isArray(t)?t:{}}class Q extends Error{#n;#r;#i;#a;constructor(e,t={}){const n=K(e);super(n),this.#r=n,this.#n=function(e){const t=V(e,\"code\");return\"number\"==typeof t&&Number.isInteger(t)?t:-32603}(e);const r={...Y(e),...t};Object.keys(r).length>0&&(this.#i=r),this.#a=super.stack}get name(){return\"SnapError\"}get code(){return this.#n}get message(){return this.#r}get data(){return this.#i}get stack(){return this.#a}toJSON(){return{code:-31002,message:\"Snap Error\",data:{cause:{code:this.code,message:this.message,stack:this.stack,...this.data?{data:this.data}:{}}}}}serialize(){return this.toJSON()}}function ee(e){if(\"string\"==typeof e)return{name:\"Error\",message:e,stack:null,cause:null};if(m(e,M))return{name:\"JsonRpcError\",message:K(e),stack:X(e)??X(e.data)??null,cause:null};const t=function(e){return V(e,\"cause\")}(e);return{name:H(e),message:K(e),stack:X(e)??null,cause:null===t?null:ee(t)}}class te{#s;#o;#u;#c;constructor(e){this.#s=e.enabled,this.#o=e.snapName,this.#u=e.snapProvider,this.#c=e.shouldTrackError??(e=>e instanceof Error||\"string\"==typeof e||\"object\"==typeof e&&null!==e&&(void 0!==e?.message||void 0!==e?.error))}#l(e,t,n){const r={snapName:this.#o,method:t,errorMessage:\"Unknown error\"};if(e?.currentUrl&&(r.url=e.currentUrl),e instanceof Error)r.errorMessage=e.message,r.errorStack=e.stack;else if(\"string\"==typeof e)r.errorMessage=e;else if(\"object\"==typeof e&&null!==e&&\"message\"in e&&void 0!==e.message)r.errorMessage=String(e.message);else if(\"object\"==typeof e&&null!==e&&\"error\"in e&&void 0!==e.error)if(\"string\"==typeof e.error)r.errorMessage=e.error;else try{r.errorMessage=JSON.stringify(e.error)}catch{r.errorMessage=String(e.error)}return e?.status?r.statusCode=e.status:e?.statusCode&&(r.statusCode=e.statusCode),e?.response?r.responseData=e.response:e?.data&&(r.responseData=e.data),void 0!==n?r.requestParams=n:e?.requestParams?r.requestParams=e.requestParams:e?.params&&(r.requestParams=e.params),r}async#f(e){try{this.#u?.request&&await this.#u.request({method:\"snap_trackError\",params:{error:ee(new Error(JSON.stringify(e)))}})}catch(e){a.warn(\"[SnapErrorTracker] Failed to track error via snap:\",e)}}async captureError({error:e,method:t,requestParams:n}){if(!this.#s||!this.#c(e))return;const r=this.#l(e,t,n);await this.#f(r)}}var ne=n(282);const re={invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},ie={userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901},ae={\"-32700\":{standard:\"JSON RPC 2.0\",message:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"},\"-32600\":{standard:\"JSON RPC 2.0\",message:\"The JSON sent is not a valid Request object.\"},\"-32601\":{standard:\"JSON RPC 2.0\",message:\"The method does not exist / is not available.\"},\"-32602\":{standard:\"JSON RPC 2.0\",message:\"Invalid method parameter(s).\"},\"-32603\":{standard:\"JSON RPC 2.0\",message:\"Internal JSON-RPC error.\"},\"-32000\":{standard:\"EIP-1474\",message:\"Invalid input.\"},\"-32001\":{standard:\"EIP-1474\",message:\"Resource not found.\"},\"-32002\":{standard:\"EIP-1474\",message:\"Resource unavailable.\"},\"-32003\":{standard:\"EIP-1474\",message:\"Transaction rejected.\"},\"-32004\":{standard:\"EIP-1474\",message:\"Method not supported.\"},\"-32005\":{standard:\"EIP-1474\",message:\"Request limit exceeded.\"},4001:{standard:\"EIP-1193\",message:\"User rejected the request.\"},4100:{standard:\"EIP-1193\",message:\"The requested account and/or method has not been authorized by the user.\"},4200:{standard:\"EIP-1193\",message:\"The requested method is not supported by this Ethereum provider.\"},4900:{standard:\"EIP-1193\",message:\"The provider is disconnected from all chains.\"},4901:{standard:\"EIP-1193\",message:\"The provider is disconnected from the specified chain.\"}};const se=re.internal,oe=(ue(se),\"Unspecified server error.\");function ue(e,t=\"Unspecified error message. This is a bug, please report it.\"){if(function(e){return Number.isInteger(e)}(e)){const t=e.toString();if(S(ae,t))return ae[t].message;if(function(e){return e>=-32099&&e<=-32e3}(e))return oe}return t}function ce(e){return Array.isArray(e)?e.map(e=>$(e)?e:E(e)?le(e):null):E(e)?le(e):$(e)?e:null}function le(e){return Object.getOwnPropertyNames(e).reduce((t,n)=>{const r=e[n];return $(r)&&(t[n]=r),t},{})}const fe=function(e){return e?.__esModule?e.default:e}(ne);class de extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('\"code\" must be an integer.');if(!t||\"string\"!=typeof t)throw new Error('\"message\" must be a non-empty string.');!function(e){return E(e)&&S(e,\"cause\")&&E(e.cause)}(n)?super(t):(super(t,{cause:n.cause}),S(this,\"cause\")||Object.assign(this,{cause:n.cause})),void 0!==n&&(this.data=n),this.code=e}serialize(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data,function(e){if(\"object\"!=typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(e){return!1}}(this.data)&&(e.data.cause=ce(this.data.cause))),this.stack&&(e.stack=this.stack),e}toString(){return fe(this.serialize(),pe,2)}}class he extends de{constructor(e,t,n){if(!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw new Error('\"code\" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}}function pe(e,t){if(\"[Circular]\"!==t)return t}const ve=e=>Ie(re.parse,e),me=e=>Ie(re.invalidRequest,e),ge=e=>Ie(re.invalidParams,e),ye=e=>Ie(re.methodNotFound,e),_e=e=>Ie(re.invalidInput,e),be=e=>Ie(re.resourceNotFound,e),we=e=>Ie(re.resourceUnavailable,e),xe=e=>Ie(re.transactionRejected,e),ke=e=>Ie(re.methodNotSupported,e),Oe=e=>Ie(re.limitExceeded,e),je=e=>Te(ie.userRejectedRequest,e),Ae=e=>Te(ie.unauthorized,e),Ee=e=>Te(ie.unsupportedMethod,e),Se=e=>Te(ie.disconnected,e),Pe=e=>Te(ie.chainDisconnected,e);function Ie(e,t){const[n,r]=Ne(t);return new de(e,n??ue(e),r)}function Te(e,t){const[n,r]=Ne(t);return new he(e,n??ue(e),r)}function Ne(e){if(e){if(\"string\"==typeof e)return[e];if(\"object\"==typeof e&&!Array.isArray(e)){const{message:t,data:n}=e;if(t&&\"string\"!=typeof t)throw new Error(\"Must specify string message.\");return[t??void 0,n]}}return[]}function Re(e){return class extends Q{constructor(t,n){if(\"object\"==typeof t){const n=e();return void super({code:n.code,message:n.message,data:t})}const r=e(t);super({code:r.code,message:r.message,data:n})}}}const Ce=Re(e=>Ie(re.internal,e)),Ze=Re(_e),$e=Re(ge),Le=Re(me),Fe=Re(Oe),ze=Re(ye),Me=Re(ke),Ue=Re(ve),De=(Re(be),Re(we),Re(xe),Re(Pe),Re(Se),Re(Ae)),qe=(Re(Ee),Re(je));var Be,We;!function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter(e=>\"number\"!=typeof t[t[e]]),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=\"function\"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger=\"function\"==typeof Number.isInteger?e=>Number.isInteger(e):e=>\"number\"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=\" | \"){return e.map(e=>\"string\"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>\"bigint\"==typeof t?t.toString():t}(Be||(Be={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(We||(We={}));const Ge=Be.arrayToEnum([\"string\",\"nan\",\"number\",\"integer\",\"float\",\"boolean\",\"date\",\"bigint\",\"symbol\",\"function\",\"undefined\",\"null\",\"array\",\"object\",\"unknown\",\"promise\",\"void\",\"never\",\"map\",\"set\"]),Ve=e=>{switch(typeof e){case\"undefined\":return Ge.undefined;case\"string\":return Ge.string;case\"number\":return Number.isNaN(e)?Ge.nan:Ge.number;case\"boolean\":return Ge.boolean;case\"function\":return Ge.function;case\"bigint\":return Ge.bigint;case\"symbol\":return Ge.symbol;case\"object\":return Array.isArray(e)?Ge.array:null===e?Ge.null:e.then&&\"function\"==typeof e.then&&e.catch&&\"function\"==typeof e.catch?Ge.promise:\"undefined\"!=typeof Map&&e instanceof Map?Ge.map:\"undefined\"!=typeof Set&&e instanceof Set?Ge.set:\"undefined\"!=typeof Date&&e instanceof Date?Ge.date:Ge.object;default:return Ge.unknown}},Je=Be.arrayToEnum([\"invalid_type\",\"invalid_literal\",\"custom\",\"invalid_union\",\"invalid_union_discriminator\",\"invalid_enum_value\",\"unrecognized_keys\",\"invalid_arguments\",\"invalid_return_type\",\"invalid_date\",\"invalid_string\",\"too_small\",\"too_big\",\"invalid_intersection_types\",\"not_multiple_of\",\"not_finite\"]);class Ke extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=\"ZodError\",this.issues=e}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const i of e.issues)if(\"invalid_union\"===i.code)i.unionErrors.map(r);else if(\"invalid_return_type\"===i.code)r(i.returnTypeError);else if(\"invalid_arguments\"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){const n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof Ke))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Be.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const r of this.issues)if(r.path.length>0){const n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}Ke.create=e=>new Ke(e);const Xe=(e,t)=>{let n;switch(e.code){case Je.invalid_type:n=e.received===Ge.undefined?\"Required\":`Expected ${e.expected}, received ${e.received}`;break;case Je.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Be.jsonStringifyReplacer)}`;break;case Je.unrecognized_keys:n=`Unrecognized key(s) in object: ${Be.joinValues(e.keys,\", \")}`;break;case Je.invalid_union:n=\"Invalid input\";break;case Je.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Be.joinValues(e.options)}`;break;case Je.invalid_enum_value:n=`Invalid enum value. Expected ${Be.joinValues(e.options)}, received '${e.received}'`;break;case Je.invalid_arguments:n=\"Invalid function arguments\";break;case Je.invalid_return_type:n=\"Invalid function return type\";break;case Je.invalid_date:n=\"Invalid date\";break;case Je.invalid_string:\"object\"==typeof e.validation?\"includes\"in e.validation?(n=`Invalid input: must include \"${e.validation.includes}\"`,\"number\"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):\"startsWith\"in e.validation?n=`Invalid input: must start with \"${e.validation.startsWith}\"`:\"endsWith\"in e.validation?n=`Invalid input: must end with \"${e.validation.endsWith}\"`:Be.assertNever(e.validation):n=\"regex\"!==e.validation?`Invalid ${e.validation}`:\"Invalid\";break;case Je.too_small:n=\"array\"===e.type?`Array must contain ${e.exact?\"exactly\":e.inclusive?\"at least\":\"more than\"} ${e.minimum} element(s)`:\"string\"===e.type?`String must contain ${e.exact?\"exactly\":e.inclusive?\"at least\":\"over\"} ${e.minimum} character(s)`:\"number\"===e.type||\"bigint\"===e.type?`Number must be ${e.exact?\"exactly equal to \":e.inclusive?\"greater than or equal to \":\"greater than \"}${e.minimum}`:\"date\"===e.type?`Date must be ${e.exact?\"exactly equal to \":e.inclusive?\"greater than or equal to \":\"greater than \"}${new Date(Number(e.minimum))}`:\"Invalid input\";break;case Je.too_big:n=\"array\"===e.type?`Array must contain ${e.exact?\"exactly\":e.inclusive?\"at most\":\"less than\"} ${e.maximum} element(s)`:\"string\"===e.type?`String must contain ${e.exact?\"exactly\":e.inclusive?\"at most\":\"under\"} ${e.maximum} character(s)`:\"number\"===e.type?`Number must be ${e.exact?\"exactly\":e.inclusive?\"less than or equal to\":\"less than\"} ${e.maximum}`:\"bigint\"===e.type?`BigInt must be ${e.exact?\"exactly\":e.inclusive?\"less than or equal to\":\"less than\"} ${e.maximum}`:\"date\"===e.type?`Date must be ${e.exact?\"exactly\":e.inclusive?\"smaller than or equal to\":\"smaller than\"} ${new Date(Number(e.maximum))}`:\"Invalid input\";break;case Je.custom:n=\"Invalid input\";break;case Je.invalid_intersection_types:n=\"Intersection results could not be merged\";break;case Je.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Je.not_finite:n=\"Number must be finite\";break;default:n=t.defaultError,Be.assertNever(e)}return{message:n}};let He=Xe;function Ye(){return He}var Qe;!function(e){e.errToObj=e=>\"string\"==typeof e?{message:e}:e||{},e.toString=e=>\"string\"==typeof e?e:e?.message}(Qe||(Qe={}));const et=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],s={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let o=\"\";const u=r.filter(e=>!!e).slice().reverse();for(const e of u)o=e(s,{data:t,defaultError:o}).message;return{...i,path:a,message:o}};function tt(e,t){const n=Ye(),r=et({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Xe?void 0:Xe].filter(e=>!!e)});e.common.issues.push(r)}class nt{constructor(){this.value=\"valid\"}dirty(){\"valid\"===this.value&&(this.value=\"dirty\")}abort(){\"aborted\"!==this.value&&(this.value=\"aborted\")}static mergeArray(e,t){const n=[];for(const r of t){if(\"aborted\"===r.status)return rt;\"dirty\"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const e of t){const t=await e.key,r=await e.value;n.push({key:t,value:r})}return nt.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:i}=r;if(\"aborted\"===t.status)return rt;if(\"aborted\"===i.status)return rt;\"dirty\"===t.status&&e.dirty(),\"dirty\"===i.status&&e.dirty(),\"__proto__\"===t.value||void 0===i.value&&!r.alwaysSet||(n[t.value]=i.value)}return{status:e.value,value:n}}}const rt=Object.freeze({status:\"aborted\"}),it=e=>({status:\"dirty\",value:e}),at=e=>({status:\"valid\",value:e}),st=e=>\"aborted\"===e.status,ot=e=>\"dirty\"===e.status,ut=e=>\"valid\"===e.status,ct=e=>\"undefined\"!=typeof Promise&&e instanceof Promise;class lt{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ft=(e,t)=>{if(ut(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error(\"Validation failed but no issues detected.\");return{success:!1,get error(){if(this._error)return this._error;const t=new Ke(e.common.issues);return this._error=t,this._error}}};function dt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error('Can\\'t use \"invalid_type_error\" or \"required_error\" in conjunction with custom error map.');if(t)return{errorMap:t,description:i};return{errorMap:(t,i)=>{const{message:a}=e;return\"invalid_enum_value\"===t.code?{message:a??i.defaultError}:void 0===i.data?{message:a??r??i.defaultError}:\"invalid_type\"!==t.code?{message:i.defaultError}:{message:a??n??i.defaultError}},description:i}}class ht{get description(){return this._def.description}_getType(e){return Ve(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Ve(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new nt,ctx:{common:e.parent.common,data:e.data,parsedType:Ve(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(ct(t))throw new Error(\"Synchronous parse encountered promise.\");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){const n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ve(e)},r=this._parseSync({data:e,path:n.path,parent:n});return ft(n,r)}\"~validate\"(e){const t={common:{issues:[],async:!!this[\"~standard\"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ve(e)};if(!this[\"~standard\"].async)try{const n=this._parseSync({data:e,path:[],parent:t});return ut(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes(\"encountered\")&&(this[\"~standard\"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>ut(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ve(e)},r=this._parse({data:e,path:n.path,parent:n}),i=await(ct(r)?r:Promise.resolve(r));return ft(n,i)}refine(e,t){const n=e=>\"string\"==typeof t||void 0===t?{message:t}:\"function\"==typeof t?t(e):t;return this._refinement((t,r)=>{const i=e(t),a=()=>r.addIssue({code:Je.custom,...n(t)});return\"undefined\"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue(\"function\"==typeof t?t(n,r):t),!1))}_refinement(e){return new hn({schema:this,typeName:xn.ZodEffects,effect:{type:\"refinement\",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[\"~standard\"]={version:1,vendor:\"zod\",validate:e=>this[\"~validate\"](e)}}optional(){return pn.create(this,this._def)}nullable(){return vn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Xt.create(this)}promise(){return dn.create(this,this._def)}or(e){return Qt.create([this,e],this._def)}and(e){return tn.create(this,e,this._def)}transform(e){return new hn({...dt(this._def),schema:this,typeName:xn.ZodEffects,effect:{type:\"transform\",transform:e}})}default(e){const t=\"function\"==typeof e?e:()=>e;return new mn({...dt(this._def),innerType:this,defaultValue:t,typeName:xn.ZodDefault})}brand(){return new _n({typeName:xn.ZodBranded,type:this,...dt(this._def)})}catch(e){const t=\"function\"==typeof e?e:()=>e;return new gn({...dt(this._def),innerType:this,catchValue:t,typeName:xn.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return bn.create(this,e)}readonly(){return wn.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const pt=/^c[^\\s-]{8,}$/i,vt=/^[0-9a-z]+$/,mt=/^[0-9A-HJKMNP-TV-Z]{26}$/i,gt=/^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/i,yt=/^[a-z0-9_-]{21}$/i,_t=/^[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]*$/,bt=/^[-+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-zA-Z-_]{3}(=)?))?$/,Pt=\"((\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\d|30)|(02)-(0[1-9]|1\\\\d|2[0-8])))\",It=new RegExp(`^${Pt}$`);function Tt(e){let t=\"[0-5]\\\\d\";e.precision?t=`${t}\\\\.\\\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\\\.\\\\d+)?`);return`([01]\\\\d|2[0-3]):[0-5]\\\\d(:${t})${e.precision?\"+\":\"?\"}`}function Nt(e){return new RegExp(`^${Tt(e)}$`)}function Rt(e){let t=`${Pt}T${Tt(e)}`;const n=[];return n.push(e.local?\"Z?\":\"Z\"),e.offset&&n.push(\"([+-]\\\\d{2}:?\\\\d{2})\"),t=`${t}(${n.join(\"|\")})`,new RegExp(`^${t}$`)}function Ct(e,t){return!(\"v4\"!==t&&t||!kt.test(e))||!(\"v6\"!==t&&t||!jt.test(e))}function Zt(e,t){if(!_t.test(e))return!1;try{const[n]=e.split(\".\");if(!n)return!1;const r=n.replace(/-/g,\"+\").replace(/_/g,\"/\").padEnd(n.length+(4-n.length%4)%4,\"=\"),i=JSON.parse(atob(r));return\"object\"==typeof i&&null!==i&&((!(\"typ\"in i)||\"JWT\"===i?.typ)&&(!!i.alg&&(!t||i.alg===t)))}catch{return!1}}function $t(e,t){return!(\"v4\"!==t&&t||!Ot.test(e))||!(\"v6\"!==t&&t||!At.test(e))}class Lt extends ht{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==Ge.string){const t=this._getOrReturnCtx(e);return tt(t,{code:Je.invalid_type,expected:Ge.string,received:t.parsedType}),rt}const t=new nt;let n;for(const r of this._def.checks)if(\"min\"===r.kind)e.data.length<r.value&&(n=this._getOrReturnCtx(e,n),tt(n,{code:Je.too_small,minimum:r.value,type:\"string\",inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(\"max\"===r.kind)e.data.length>r.value&&(n=this._getOrReturnCtx(e,n),tt(n,{code:Je.too_big,maximum:r.value,type:\"string\",inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(\"length\"===r.kind){const i=e.data.length>r.value,a=e.data.length<r.value;(i||a)&&(n=this._getOrReturnCtx(e,n),i?tt(n,{code:Je.too_big,maximum:r.value,type:\"string\",inclusive:!0,exact:!0,message:r.message}):a&&tt(n,{code:Je.too_small,minimum:r.value,type:\"string\",inclusive:!0,exact:!0,message:r.message}),t.dirty())}else if(\"email\"===r.kind)wt.test(e.data)||(n=this._getOrReturnCtx(e,n),tt(n,{validation:\"email\",code:Je.invalid_string,message:r.message}),t.dirty());else if(\"emoji\"===r.kind)xt||(xt=new RegExp(\"^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$\",\"u\")),xt.test(e.data)||(n=this._getOrReturnCtx(e,n),tt(n,{validation:\"emoji\",code:Je.invalid_string,message:r.message}),t.dirty());else if(\"uuid\"===r.kind)gt.test(e.data)||(n=this._getOrReturnCtx(e,n),tt(n,{validation:\"uuid\",code:Je.invalid_string,message:r.message}),t.dirty());else if(\"nanoid\"===r.kind)yt.test(e.data)||(n=this._getOrReturnCtx(e,n),tt(n,{validation:\"nanoid\",code:Je.invalid_string,message:r.message}),t.dirty());else if(\"cuid\"===r.kind)pt.test(e.data)||(n=this._getOrReturnCtx(e,n),tt(n,{validation:\"cuid\",code:Je.invalid_string,message:r.message}),t.dirty());else if(\"cuid2\"===r.kind)vt.test(e.data)||(n=this._getOrReturnCtx(e,n),tt(n,{validation:\"cuid2\",code:Je.invalid_string,message:r.message}),t.dirty());else if(\"ulid\"===r.kind)mt.test(e.data)||(n=this._getOrReturnCtx(e,n),tt(n,{validation:\"ulid\",code:Je.invalid_string,message:r.message}),t.dirty());else if(\"url\"===r.kind)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),tt(n,{validation:\"url\",code:Je.invalid_string,message:r.message}),t.dirty()}else if(\"regex\"===r.kind){r.regex.lastIndex=0;r.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),tt(n,{validation:\"regex\",code:Je.invalid_string,message:r.message}),t.dirty())}else if(\"trim\"===r.kind)e.data=e.data.trim();else if(\"includes\"===r.kind)e.data.includes(r.value,r.position)||(n=this._getOrReturnCtx(e,n),tt(n,{code:Je.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),t.dirty());else if(\"toLowerCase\"===r.kind)e.data=e.data.toLowerCase();else if(\"toUpperCase\"===r.kind)e.data=e.data.toUpperCase();else if(\"startsWith\"===r.kind)e.data.startsWith(r.value)||(n=this._getOrReturnCtx(e,n),tt(n,{code:Je.invalid_string,validation:{startsWith:r.value},message:r.message}),t.dirty());else if(\"endsWith\"===r.kind)e.data.endsWith(r.value)||(n=this._getOrReturnCtx(e,n),tt(n,{code:Je.invalid_string,validation:{endsWith:r.value},message:r.message}),t.dirty());else if(\"datetime\"===r.kind){Rt(r).test(e.data)||(n=this._getOrReturnCtx(e,n),tt(n,{code:Je.invalid_string,validation:\"datetime\",message:r.message}),t.dirty())}else if(\"date\"===r.kind){It.test(e.data)||(n=this._getOrReturnCtx(e,n),tt(n,{code:Je.invalid_string,validation:\"date\",message:r.message}),t.dirty())}else if(\"time\"===r.kind){Nt(r).test(e.data)||(n=this._getOrReturnCtx(e,n),tt(n,{code:Je.invalid_string,validation:\"time\",message:r.message}),t.dirty())}else\"duration\"===r.kind?bt.test(e.data)||(n=this._getOrReturnCtx(e,n),tt(n,{validation:\"duration\",code:Je.invalid_string,message:r.message}),t.dirty()):\"ip\"===r.kind?Ct(e.data,r.version)||(n=this._getOrReturnCtx(e,n),tt(n,{validation:\"ip\",code:Je.invalid_string,message:r.message}),t.dirty()):\"jwt\"===r.kind?Zt(e.data,r.alg)||(n=this._getOrReturnCtx(e,n),tt(n,{validation:\"jwt\",code:Je.invalid_string,message:r.message}),t.dirty()):\"cidr\"===r.kind?$t(e.data,r.version)||(n=this._getOrReturnCtx(e,n),tt(n,{validation:\"cidr\",code:Je.invalid_string,message:r.message}),t.dirty()):\"base64\"===r.kind?Et.test(e.data)||(n=this._getOrReturnCtx(e,n),tt(n,{validation:\"base64\",code:Je.invalid_string,message:r.message}),t.dirty()):\"base64url\"===r.kind?St.test(e.data)||(n=this._getOrReturnCtx(e,n),tt(n,{validation:\"base64url\",code:Je.invalid_string,message:r.message}),t.dirty()):Be.assertNever(r);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:Je.invalid_string,...Qe.errToObj(n)})}_addCheck(e){return new Lt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:\"email\",...Qe.errToObj(e)})}url(e){return this._addCheck({kind:\"url\",...Qe.errToObj(e)})}emoji(e){return this._addCheck({kind:\"emoji\",...Qe.errToObj(e)})}uuid(e){return this._addCheck({kind:\"uuid\",...Qe.errToObj(e)})}nanoid(e){return this._addCheck({kind:\"nanoid\",...Qe.errToObj(e)})}cuid(e){return this._addCheck({kind:\"cuid\",...Qe.errToObj(e)})}cuid2(e){return this._addCheck({kind:\"cuid2\",...Qe.errToObj(e)})}ulid(e){return this._addCheck({kind:\"ulid\",...Qe.errToObj(e)})}base64(e){return this._addCheck({kind:\"base64\",...Qe.errToObj(e)})}base64url(e){return this._addCheck({kind:\"base64url\",...Qe.errToObj(e)})}jwt(e){return this._addCheck({kind:\"jwt\",...Qe.errToObj(e)})}ip(e){return this._addCheck({kind:\"ip\",...Qe.errToObj(e)})}cidr(e){return this._addCheck({kind:\"cidr\",...Qe.errToObj(e)})}datetime(e){return\"string\"==typeof e?this._addCheck({kind:\"datetime\",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:\"datetime\",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...Qe.errToObj(e?.message)})}date(e){return this._addCheck({kind:\"date\",message:e})}time(e){return\"string\"==typeof e?this._addCheck({kind:\"time\",precision:null,message:e}):this._addCheck({kind:\"time\",precision:void 0===e?.precision?null:e?.precision,...Qe.errToObj(e?.message)})}duration(e){return this._addCheck({kind:\"duration\",...Qe.errToObj(e)})}regex(e,t){return this._addCheck({kind:\"regex\",regex:e,...Qe.errToObj(t)})}includes(e,t){return this._addCheck({kind:\"includes\",value:e,position:t?.position,...Qe.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:\"startsWith\",value:e,...Qe.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:\"endsWith\",value:e,...Qe.errToObj(t)})}min(e,t){return this._addCheck({kind:\"min\",value:e,...Qe.errToObj(t)})}max(e,t){return this._addCheck({kind:\"max\",value:e,...Qe.errToObj(t)})}length(e,t){return this._addCheck({kind:\"length\",value:e,...Qe.errToObj(t)})}nonempty(e){return this.min(1,Qe.errToObj(e))}trim(){return new Lt({...this._def,checks:[...this._def.checks,{kind:\"trim\"}]})}toLowerCase(){return new Lt({...this._def,checks:[...this._def.checks,{kind:\"toLowerCase\"}]})}toUpperCase(){return new Lt({...this._def,checks:[...this._def.checks,{kind:\"toUpperCase\"}]})}get isDatetime(){return!!this._def.checks.find(e=>\"datetime\"===e.kind)}get isDate(){return!!this._def.checks.find(e=>\"date\"===e.kind)}get isTime(){return!!this._def.checks.find(e=>\"time\"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>\"duration\"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>\"email\"===e.kind)}get isURL(){return!!this._def.checks.find(e=>\"url\"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>\"emoji\"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>\"uuid\"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>\"nanoid\"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>\"cuid\"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>\"cuid2\"===e.kind)}get isULID(){return!!this._def.checks.find(e=>\"ulid\"===e.kind)}get isIP(){return!!this._def.checks.find(e=>\"ip\"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>\"cidr\"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>\"base64\"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>\"base64url\"===e.kind)}get minLength(){let e=null;for(const t of this._def.checks)\"min\"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)\"max\"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function Ft(e,t){const n=(e.toString().split(\".\")[1]||\"\").length,r=(t.toString().split(\".\")[1]||\"\").length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(\".\",\"\"))%Number.parseInt(t.toFixed(i).replace(\".\",\"\"))/10**i}Lt.create=e=>new Lt({checks:[],typeName:xn.ZodString,coerce:e?.coerce??!1,...dt(e)});class zt extends ht{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==Ge.number){const t=this._getOrReturnCtx(e);return tt(t,{code:Je.invalid_type,expected:Ge.number,received:t.parsedType}),rt}let t;const n=new nt;for(const r of this._def.checks)if(\"int\"===r.kind)Be.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),tt(t,{code:Je.invalid_type,expected:\"integer\",received:\"float\",message:r.message}),n.dirty());else if(\"min\"===r.kind){(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),tt(t,{code:Je.too_small,minimum:r.value,type:\"number\",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty())}else if(\"max\"===r.kind){(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),tt(t,{code:Je.too_big,maximum:r.value,type:\"number\",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty())}else\"multipleOf\"===r.kind?0!==Ft(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),tt(t,{code:Je.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):\"finite\"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),tt(t,{code:Je.not_finite,message:r.message}),n.dirty()):Be.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(\"min\",e,!0,Qe.toString(t))}gt(e,t){return this.setLimit(\"min\",e,!1,Qe.toString(t))}lte(e,t){return this.setLimit(\"max\",e,!0,Qe.toString(t))}lt(e,t){return this.setLimit(\"max\",e,!1,Qe.toString(t))}setLimit(e,t,n,r){return new zt({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:Qe.toString(r)}]})}_addCheck(e){return new zt({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:\"int\",message:Qe.toString(e)})}positive(e){return this._addCheck({kind:\"min\",value:0,inclusive:!1,message:Qe.toString(e)})}negative(e){return this._addCheck({kind:\"max\",value:0,inclusive:!1,message:Qe.toString(e)})}nonpositive(e){return this._addCheck({kind:\"max\",value:0,inclusive:!0,message:Qe.toString(e)})}nonnegative(e){return this._addCheck({kind:\"min\",value:0,inclusive:!0,message:Qe.toString(e)})}multipleOf(e,t){return this._addCheck({kind:\"multipleOf\",value:e,message:Qe.toString(t)})}finite(e){return this._addCheck({kind:\"finite\",message:Qe.toString(e)})}safe(e){return this._addCheck({kind:\"min\",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Qe.toString(e)})._addCheck({kind:\"max\",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Qe.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)\"min\"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)\"max\"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>\"int\"===e.kind||\"multipleOf\"===e.kind&&Be.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if(\"finite\"===n.kind||\"int\"===n.kind||\"multipleOf\"===n.kind)return!0;\"min\"===n.kind?(null===t||n.value>t)&&(t=n.value):\"max\"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}zt.create=e=>new zt({checks:[],typeName:xn.ZodNumber,coerce:e?.coerce||!1,...dt(e)});class Mt extends ht{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==Ge.bigint)return this._getInvalidInput(e);let t;const n=new nt;for(const r of this._def.checks)if(\"min\"===r.kind){(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),tt(t,{code:Je.too_small,type:\"bigint\",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty())}else if(\"max\"===r.kind){(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),tt(t,{code:Je.too_big,type:\"bigint\",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty())}else\"multipleOf\"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),tt(t,{code:Je.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):Be.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return tt(t,{code:Je.invalid_type,expected:Ge.bigint,received:t.parsedType}),rt}gte(e,t){return this.setLimit(\"min\",e,!0,Qe.toString(t))}gt(e,t){return this.setLimit(\"min\",e,!1,Qe.toString(t))}lte(e,t){return this.setLimit(\"max\",e,!0,Qe.toString(t))}lt(e,t){return this.setLimit(\"max\",e,!1,Qe.toString(t))}setLimit(e,t,n,r){return new Mt({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:Qe.toString(r)}]})}_addCheck(e){return new Mt({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:\"min\",value:BigInt(0),inclusive:!1,message:Qe.toString(e)})}negative(e){return this._addCheck({kind:\"max\",value:BigInt(0),inclusive:!1,message:Qe.toString(e)})}nonpositive(e){return this._addCheck({kind:\"max\",value:BigInt(0),inclusive:!0,message:Qe.toString(e)})}nonnegative(e){return this._addCheck({kind:\"min\",value:BigInt(0),inclusive:!0,message:Qe.toString(e)})}multipleOf(e,t){return this._addCheck({kind:\"multipleOf\",value:e,message:Qe.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)\"min\"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)\"max\"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Mt.create=e=>new Mt({checks:[],typeName:xn.ZodBigInt,coerce:e?.coerce??!1,...dt(e)});class Ut extends ht{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==Ge.boolean){const t=this._getOrReturnCtx(e);return tt(t,{code:Je.invalid_type,expected:Ge.boolean,received:t.parsedType}),rt}return at(e.data)}}Ut.create=e=>new Ut({typeName:xn.ZodBoolean,coerce:e?.coerce||!1,...dt(e)});class Dt extends ht{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==Ge.date){const t=this._getOrReturnCtx(e);return tt(t,{code:Je.invalid_type,expected:Ge.date,received:t.parsedType}),rt}if(Number.isNaN(e.data.getTime())){return tt(this._getOrReturnCtx(e),{code:Je.invalid_date}),rt}const t=new nt;let n;for(const r of this._def.checks)\"min\"===r.kind?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),tt(n,{code:Je.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:\"date\"}),t.dirty()):\"max\"===r.kind?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),tt(n,{code:Je.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:\"date\"}),t.dirty()):Be.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Dt({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:\"min\",value:e.getTime(),message:Qe.toString(t)})}max(e,t){return this._addCheck({kind:\"max\",value:e.getTime(),message:Qe.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)\"min\"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)\"max\"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Dt.create=e=>new Dt({checks:[],coerce:e?.coerce||!1,typeName:xn.ZodDate,...dt(e)});class qt extends ht{_parse(e){if(this._getType(e)!==Ge.symbol){const t=this._getOrReturnCtx(e);return tt(t,{code:Je.invalid_type,expected:Ge.symbol,received:t.parsedType}),rt}return at(e.data)}}qt.create=e=>new qt({typeName:xn.ZodSymbol,...dt(e)});class Bt extends ht{_parse(e){if(this._getType(e)!==Ge.undefined){const t=this._getOrReturnCtx(e);return tt(t,{code:Je.invalid_type,expected:Ge.undefined,received:t.parsedType}),rt}return at(e.data)}}Bt.create=e=>new Bt({typeName:xn.ZodUndefined,...dt(e)});class Wt extends ht{_parse(e){if(this._getType(e)!==Ge.null){const t=this._getOrReturnCtx(e);return tt(t,{code:Je.invalid_type,expected:Ge.null,received:t.parsedType}),rt}return at(e.data)}}Wt.create=e=>new Wt({typeName:xn.ZodNull,...dt(e)});class Gt extends ht{constructor(){super(...arguments),this._any=!0}_parse(e){return at(e.data)}}Gt.create=e=>new Gt({typeName:xn.ZodAny,...dt(e)});class Vt extends ht{constructor(){super(...arguments),this._unknown=!0}_parse(e){return at(e.data)}}Vt.create=e=>new Vt({typeName:xn.ZodUnknown,...dt(e)});class Jt extends ht{_parse(e){const t=this._getOrReturnCtx(e);return tt(t,{code:Je.invalid_type,expected:Ge.never,received:t.parsedType}),rt}}Jt.create=e=>new Jt({typeName:xn.ZodNever,...dt(e)});class Kt extends ht{_parse(e){if(this._getType(e)!==Ge.undefined){const t=this._getOrReturnCtx(e);return tt(t,{code:Je.invalid_type,expected:Ge.void,received:t.parsedType}),rt}return at(e.data)}}Kt.create=e=>new Kt({typeName:xn.ZodVoid,...dt(e)});class Xt extends ht{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==Ge.array)return tt(t,{code:Je.invalid_type,expected:Ge.array,received:t.parsedType}),rt;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(tt(t,{code:e?Je.too_big:Je.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:\"array\",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(tt(t,{code:Je.too_small,minimum:r.minLength.value,type:\"array\",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(tt(t,{code:Je.too_big,maximum:r.maxLength.value,type:\"array\",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new lt(t,e,t.path,n)))).then(e=>nt.mergeArray(n,e));const i=[...t.data].map((e,n)=>r.type._parseSync(new lt(t,e,t.path,n)));return nt.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new Xt({...this._def,minLength:{value:e,message:Qe.toString(t)}})}max(e,t){return new Xt({...this._def,maxLength:{value:e,message:Qe.toString(t)}})}length(e,t){return new Xt({...this._def,exactLength:{value:e,message:Qe.toString(t)}})}nonempty(e){return this.min(1,e)}}function Ht(e){if(e instanceof Yt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=pn.create(Ht(r))}return new Yt({...e._def,shape:()=>t})}return e instanceof Xt?new Xt({...e._def,type:Ht(e.element)}):e instanceof pn?pn.create(Ht(e.unwrap())):e instanceof vn?vn.create(Ht(e.unwrap())):e instanceof nn?nn.create(e.items.map(e=>Ht(e))):e}Xt.create=(e,t)=>new Xt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:xn.ZodArray,...dt(t)});class Yt extends ht{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=Be.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==Ge.object){const t=this._getOrReturnCtx(e);return tt(t,{code:Je.invalid_type,expected:Ge.object,received:t.parsedType}),rt}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Jt&&\"strip\"===this._def.unknownKeys))for(const e in n.data)i.includes(e)||a.push(e);const s=[];for(const e of i){const t=r[e],i=n.data[e];s.push({key:{status:\"valid\",value:e},value:t._parse(new lt(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof Jt){const e=this._def.unknownKeys;if(\"passthrough\"===e)for(const e of a)s.push({key:{status:\"valid\",value:e},value:{status:\"valid\",value:n.data[e]}});else if(\"strict\"===e)a.length>0&&(tt(n,{code:Je.unrecognized_keys,keys:a}),t.dirty());else if(\"strip\"!==e)throw new Error(\"Internal ZodObject error: invalid unknownKeys value.\")}else{const e=this._def.catchall;for(const t of a){const r=n.data[t];s.push({key:{status:\"valid\",value:t},value:e._parse(new lt(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{const e=[];for(const t of s){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>nt.mergeObjectSync(t,e)):nt.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return Qe.errToObj,new Yt({...this._def,unknownKeys:\"strict\",...void 0!==e?{errorMap:(t,n)=>{const r=this._def.errorMap?.(t,n).message??n.defaultError;return\"unrecognized_keys\"===t.code?{message:Qe.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new Yt({...this._def,unknownKeys:\"strip\"})}passthrough(){return new Yt({...this._def,unknownKeys:\"passthrough\"})}extend(e){return new Yt({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Yt({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:xn.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Yt({...this._def,catchall:e})}pick(e){const t={};for(const n of Be.objectKeys(e))e[n]&&this.shape[n]&&(t[n]=this.shape[n]);return new Yt({...this._def,shape:()=>t})}omit(e){const t={};for(const n of Be.objectKeys(this.shape))e[n]||(t[n]=this.shape[n]);return new Yt({...this._def,shape:()=>t})}deepPartial(){return Ht(this)}partial(e){const t={};for(const n of Be.objectKeys(this.shape)){const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}return new Yt({...this._def,shape:()=>t})}required(e){const t={};for(const n of Be.objectKeys(this.shape))if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof pn;)e=e._def.innerType;t[n]=e}return new Yt({...this._def,shape:()=>t})}keyof(){return cn(Be.objectKeys(this.shape))}}Yt.create=(e,t)=>new Yt({shape:()=>e,unknownKeys:\"strip\",catchall:Jt.create(),typeName:xn.ZodObject,...dt(t)}),Yt.strictCreate=(e,t)=>new Yt({shape:()=>e,unknownKeys:\"strict\",catchall:Jt.create(),typeName:xn.ZodObject,...dt(t)}),Yt.lazycreate=(e,t)=>new Yt({shape:e,unknownKeys:\"strip\",catchall:Jt.create(),typeName:xn.ZodObject,...dt(t)});class Qt extends ht{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(const t of e)if(\"valid\"===t.result.status)return t.result;for(const n of e)if(\"dirty\"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const n=e.map(e=>new Ke(e.ctx.common.issues));return tt(t,{code:Je.invalid_union,unionErrors:n}),rt});{let e;const r=[];for(const i of n){const n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(\"valid\"===a.status)return a;\"dirty\"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const i=r.map(e=>new Ke(e));return tt(t,{code:Je.invalid_union,unionErrors:i}),rt}}get options(){return this._def.options}}Qt.create=(e,t)=>new Qt({options:e,typeName:xn.ZodUnion,...dt(t)});function en(e,t){const n=Ve(e),r=Ve(t);if(e===t)return{valid:!0,data:e};if(n===Ge.object&&r===Ge.object){const n=Be.objectKeys(t),r=Be.objectKeys(e).filter(e=>-1!==n.indexOf(e)),i={...e,...t};for(const n of r){const r=en(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}if(n===Ge.array&&r===Ge.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const i=en(e[r],t[r]);if(!i.valid)return{valid:!1};n.push(i.data)}return{valid:!0,data:n}}return n===Ge.date&&r===Ge.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class tn extends ht{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(st(e)||st(r))return rt;const i=en(e.value,r.value);return i.valid?((ot(e)||ot(r))&&t.dirty(),{status:t.value,value:i.data}):(tt(n,{code:Je.invalid_intersection_types}),rt)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}tn.create=(e,t,n)=>new tn({left:e,right:t,typeName:xn.ZodIntersection,...dt(n)});class nn extends ht{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ge.array)return tt(n,{code:Je.invalid_type,expected:Ge.array,received:n.parsedType}),rt;if(n.data.length<this._def.items.length)return tt(n,{code:Je.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:\"array\"}),rt;!this._def.rest&&n.data.length>this._def.items.length&&(tt(n,{code:Je.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:\"array\"}),t.dirty());const r=[...n.data].map((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new lt(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>nt.mergeArray(t,e)):nt.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new nn({...this._def,rest:e})}}nn.create=(e,t)=>{if(!Array.isArray(e))throw new Error(\"You must pass an array of schemas to z.tuple([ ... ])\");return new nn({items:e,typeName:xn.ZodTuple,rest:null,...dt(t)})};class rn extends ht{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ge.object)return tt(n,{code:Je.invalid_type,expected:Ge.object,received:n.parsedType}),rt;const r=[],i=this._def.keyType,a=this._def.valueType;for(const e in n.data)r.push({key:i._parse(new lt(n,e,n.path,e)),value:a._parse(new lt(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?nt.mergeObjectAsync(t,r):nt.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new rn(t instanceof ht?{keyType:e,valueType:t,typeName:xn.ZodRecord,...dt(n)}:{keyType:Lt.create(),valueType:e,typeName:xn.ZodRecord,...dt(t)})}}class an extends ht{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ge.map)return tt(n,{code:Je.invalid_type,expected:Ge.map,received:n.parsedType}),rt;const r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new lt(n,e,n.path,[a,\"key\"])),value:i._parse(new lt(n,t,n.path,[a,\"value\"]))}));if(n.common.async){const e=new Map;return Promise.resolve().then(async()=>{for(const n of a){const r=await n.key,i=await n.value;if(\"aborted\"===r.status||\"aborted\"===i.status)return rt;\"dirty\"!==r.status&&\"dirty\"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{const e=new Map;for(const n of a){const r=n.key,i=n.value;if(\"aborted\"===r.status||\"aborted\"===i.status)return rt;\"dirty\"!==r.status&&\"dirty\"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}an.create=(e,t,n)=>new an({valueType:t,keyType:e,typeName:xn.ZodMap,...dt(n)});class sn extends ht{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ge.set)return tt(n,{code:Je.invalid_type,expected:Ge.set,received:n.parsedType}),rt;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(tt(n,{code:Je.too_small,minimum:r.minSize.value,type:\"set\",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(tt(n,{code:Je.too_big,maximum:r.maxSize.value,type:\"set\",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const i=this._def.valueType;function a(e){const n=new Set;for(const r of e){if(\"aborted\"===r.status)return rt;\"dirty\"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const s=[...n.data.values()].map((e,t)=>i._parse(new lt(n,e,n.path,t)));return n.common.async?Promise.all(s).then(e=>a(e)):a(s)}min(e,t){return new sn({...this._def,minSize:{value:e,message:Qe.toString(t)}})}max(e,t){return new sn({...this._def,maxSize:{value:e,message:Qe.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}sn.create=(e,t)=>new sn({valueType:e,minSize:null,maxSize:null,typeName:xn.ZodSet,...dt(t)});class on extends ht{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}on.create=(e,t)=>new on({getter:e,typeName:xn.ZodLazy,...dt(t)});class un extends ht{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return tt(t,{received:t.data,code:Je.invalid_literal,expected:this._def.value}),rt}return{status:\"valid\",value:e.data}}get value(){return this._def.value}}function cn(e,t){return new ln({values:e,typeName:xn.ZodEnum,...dt(t)})}un.create=(e,t)=>new un({value:e,typeName:xn.ZodLiteral,...dt(t)});class ln extends ht{_parse(e){if(\"string\"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return tt(t,{expected:Be.joinValues(n),received:t.parsedType,code:Je.invalid_type}),rt}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return tt(t,{received:t.data,code:Je.invalid_enum_value,options:n}),rt}return at(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ln.create(e,{...this._def,...t})}exclude(e,t=this._def){return ln.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}ln.create=cn;class fn extends ht{_parse(e){const t=Be.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==Ge.string&&n.parsedType!==Ge.number){const e=Be.objectValues(t);return tt(n,{expected:Be.joinValues(e),received:n.parsedType,code:Je.invalid_type}),rt}if(this._cache||(this._cache=new Set(Be.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const e=Be.objectValues(t);return tt(n,{received:n.data,code:Je.invalid_enum_value,options:e}),rt}return at(e.data)}get enum(){return this._def.values}}fn.create=(e,t)=>new fn({values:e,typeName:xn.ZodNativeEnum,...dt(t)});class dn extends ht{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ge.promise&&!1===t.common.async)return tt(t,{code:Je.invalid_type,expected:Ge.promise,received:t.parsedType}),rt;const n=t.parsedType===Ge.promise?t.data:Promise.resolve(t.data);return at(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}dn.create=(e,t)=>new dn({type:e,typeName:xn.ZodPromise,...dt(t)});class hn extends ht{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===xn.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{tt(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),\"preprocess\"===r.type){const e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(\"aborted\"===t.value)return rt;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return\"aborted\"===r.status?rt:\"dirty\"===r.status||\"dirty\"===t.value?it(r.value):r});{if(\"aborted\"===t.value)return rt;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return\"aborted\"===r.status?rt:\"dirty\"===r.status||\"dirty\"===t.value?it(r.value):r}}if(\"refinement\"===r.type){const e=e=>{const t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error(\"Async refinement encountered during synchronous parse operation. Use .parseAsync instead.\");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return\"aborted\"===r.status?rt:(\"dirty\"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>\"aborted\"===n.status?rt:(\"dirty\"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(\"transform\"===r.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!ut(e))return rt;const a=r.transform(e.value,i);if(a instanceof Promise)throw new Error(\"Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.\");return{status:t.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>ut(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):rt)}Be.assertNever(r)}}hn.create=(e,t,n)=>new hn({schema:e,typeName:xn.ZodEffects,effect:t,...dt(n)}),hn.createWithPreprocess=(e,t,n)=>new hn({schema:t,effect:{type:\"preprocess\",transform:e},typeName:xn.ZodEffects,...dt(n)});class pn extends ht{_parse(e){return this._getType(e)===Ge.undefined?at(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}pn.create=(e,t)=>new pn({innerType:e,typeName:xn.ZodOptional,...dt(t)});class vn extends ht{_parse(e){return this._getType(e)===Ge.null?at(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}vn.create=(e,t)=>new vn({innerType:e,typeName:xn.ZodNullable,...dt(t)});class mn extends ht{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===Ge.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}mn.create=(e,t)=>new mn({innerType:e,typeName:xn.ZodDefault,defaultValue:\"function\"==typeof t.default?t.default:()=>t.default,...dt(t)});class gn extends ht{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return ct(r)?r.then(e=>({status:\"valid\",value:\"valid\"===e.status?e.value:this._def.catchValue({get error(){return new Ke(n.common.issues)},input:n.data})})):{status:\"valid\",value:\"valid\"===r.status?r.value:this._def.catchValue({get error(){return new Ke(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}gn.create=(e,t)=>new gn({innerType:e,typeName:xn.ZodCatch,catchValue:\"function\"==typeof t.catch?t.catch:()=>t.catch,...dt(t)});class yn extends ht{_parse(e){if(this._getType(e)!==Ge.nan){const t=this._getOrReturnCtx(e);return tt(t,{code:Je.invalid_type,expected:Ge.nan,received:t.parsedType}),rt}return{status:\"valid\",value:e.data}}}yn.create=e=>new yn({typeName:xn.ZodNaN,...dt(e)});Symbol(\"zod_brand\");class _n extends ht{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class bn extends ht{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return\"aborted\"===e.status?rt:\"dirty\"===e.status?(t.dirty(),it(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})()}{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return\"aborted\"===e.status?rt:\"dirty\"===e.status?(t.dirty(),{status:\"dirty\",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new bn({in:e,out:t,typeName:xn.ZodPipeline})}}class wn extends ht{_parse(e){const t=this._def.innerType._parse(e),n=e=>(ut(e)&&(e.value=Object.freeze(e.value)),e);return ct(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}wn.create=(e,t)=>new wn({innerType:e,typeName:xn.ZodReadonly,...dt(t)});Yt.lazycreate;var xn;!function(e){e.ZodString=\"ZodString\",e.ZodNumber=\"ZodNumber\",e.ZodNaN=\"ZodNaN\",e.ZodBigInt=\"ZodBigInt\",e.ZodBoolean=\"ZodBoolean\",e.ZodDate=\"ZodDate\",e.ZodSymbol=\"ZodSymbol\",e.ZodUndefined=\"ZodUndefined\",e.ZodNull=\"ZodNull\",e.ZodAny=\"ZodAny\",e.ZodUnknown=\"ZodUnknown\",e.ZodNever=\"ZodNever\",e.ZodVoid=\"ZodVoid\",e.ZodArray=\"ZodArray\",e.ZodObject=\"ZodObject\",e.ZodUnion=\"ZodUnion\",e.ZodDiscriminatedUnion=\"ZodDiscriminatedUnion\",e.ZodIntersection=\"ZodIntersection\",e.ZodTuple=\"ZodTuple\",e.ZodRecord=\"ZodRecord\",e.ZodMap=\"ZodMap\",e.ZodSet=\"ZodSet\",e.ZodFunction=\"ZodFunction\",e.ZodLazy=\"ZodLazy\",e.ZodLiteral=\"ZodLiteral\",e.ZodEnum=\"ZodEnum\",e.ZodEffects=\"ZodEffects\",e.ZodNativeEnum=\"ZodNativeEnum\",e.ZodOptional=\"ZodOptional\",e.ZodNullable=\"ZodNullable\",e.ZodDefault=\"ZodDefault\",e.ZodCatch=\"ZodCatch\",e.ZodPromise=\"ZodPromise\",e.ZodBranded=\"ZodBranded\",e.ZodPipeline=\"ZodPipeline\",e.ZodReadonly=\"ZodReadonly\"}(xn||(xn={}));const kn=Lt.create,On=zt.create,jn=(yn.create,Mt.create),An=Ut.create,En=(Dt.create,qt.create,Bt.create,Wt.create),Sn=Gt.create,Pn=Vt.create,In=(Jt.create,Kt.create,Xt.create),Tn=Yt.create,Nn=(Yt.strictCreate,Qt.create),Rn=tn.create,Cn=(nn.create,rn.create),Zn=(an.create,sn.create,on.create,un.create),$n=(ln.create,fn.create),Ln=(dn.create,hn.create,pn.create,vn.create,hn.createWithPreprocess,bn.create,BigInt(2**32-1)),Fn=BigInt(32);function zn(e,t=!1){return t?{h:Number(e&Ln),l:Number(e>>Fn&Ln)}:{h:0|Number(e>>Fn&Ln),l:0|Number(e&Ln)}}function Mn(e,t=!1){const n=e.length;let r=new Uint32Array(n),i=new Uint32Array(n);for(let a=0;a<n;a++){const{h:n,l:s}=zn(e[a],t);[r[a],i[a]]=[n,s]}return[r,i]}const Un=(e,t,n)=>e<<n|t>>>32-n,Dn=(e,t,n)=>t<<n|e>>>32-n,qn=(e,t,n)=>t<<n-32|e>>>64-n,Bn=(e,t,n)=>e<<n-32|t>>>64-n;function Wn(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(\"positive integer expected, got \"+e)}function Gn(e,...t){if(!((n=e)instanceof Uint8Array||ArrayBuffer.isView(n)&&\"Uint8Array\"===n.constructor.name))throw new Error(\"Uint8Array expected\");var n;if(t.length>0&&!t.includes(e.length))throw new Error(\"Uint8Array expected of length \"+t+\", got length=\"+e.length)}function Vn(e,t=!0){if(e.destroyed)throw new Error(\"Hash instance has been destroyed\");if(t&&e.finished)throw new Error(\"Hash#digest() has already been called\")}function Jn(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}const Kn=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];function Xn(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}const Hn=Kn?e=>e:function(e){for(let t=0;t<e.length;t++)e[t]=Xn(e[t]);return e};Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));function Yn(e){if(\"string\"!=typeof e)throw new Error(\"string expected\");return new Uint8Array((new TextEncoder).encode(e))}function Qn(e){return\"string\"==typeof e&&(e=Yn(e)),Gn(e),e}class er{}function tr(e){const t=t=>e().update(Qn(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}const nr=BigInt(0),rr=BigInt(1),ir=BigInt(2),ar=BigInt(7),sr=BigInt(256),or=BigInt(113),ur=[],cr=[],lr=[];for(let e=0,t=rr,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],ur.push(2*(5*r+n)),cr.push((e+1)*(e+2)/2%64);let i=nr;for(let e=0;e<7;e++)t=(t<<rr^(t>>ar)*or)%sr,t&ir&&(i^=rr<<(rr<<BigInt(e))-rr);lr.push(i)}const fr=Mn(lr,!0),dr=fr[0],hr=fr[1],pr=(e,t,n)=>n>32?qn(e,t,n):Un(e,t,n),vr=(e,t,n)=>n>32?Bn(e,t,n):Dn(e,t,n);class mr extends er{constructor(e,t,n,r=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=i,Wn(n),!(0<e&&e<200))throw new Error(\"only keccak-f1600 function is supported\");var a;this.state=new Uint8Array(200),this.state32=(a=this.state,new Uint32Array(a.buffer,a.byteOffset,Math.floor(a.byteLength/4)))}clone(){return this._cloneInto()}keccak(){Hn(this.state32),function(e,t=24){const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const r=(t+8)%10,i=(t+2)%10,a=n[i],s=n[i+1],o=pr(a,s,1)^n[r],u=vr(a,s,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=o,e[t+n+1]^=u}let t=e[2],i=e[3];for(let n=0;n<24;n++){const r=cr[n],a=pr(t,i,r),s=vr(t,i,r),o=ur[n];t=e[o],i=e[o+1],e[o]=a,e[o+1]=s}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=dr[r],e[1]^=hr[r]}Jn(n)}(this.state32,this.rounds),Hn(this.state32),this.posOut=0,this.pos=0}update(e){Vn(this),Gn(e=Qn(e));const{blockLen:t,state:n}=this,r=e.length;for(let i=0;i<r;){const a=Math.min(t-this.pos,r-i);for(let t=0;t<a;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,128&t&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){Vn(this,!1),Gn(e),this.finish();const t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();const a=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+a),r),this.posOut+=a,r+=a}return e}xofInto(e){if(!this.enableXOF)throw new Error(\"XOF is not possible for this instance\");return this.writeInto(e)}xof(e){return Wn(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(function(e,t){Gn(e);const n=t.outputLen;if(e.length<n)throw new Error(\"digestInto() expects output buffer of length at least \"+n)}(e,this),this.finished)throw new Error(\"digest() was already called\");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Jn(this.state)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:a}=this;return e||(e=new mr(t,n,r,a,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=a,e.destroyed=this.destroyed,e}}const gr=(e,t,n)=>tr(()=>new mr(t,e,n)),yr=gr(1,136,32);var _r=n(250);function br(e,t){return n=e,Boolean(\"string\"==typeof n?.prototype?.constructor?.name)?new e({message:t}):e({message:t});var n}class wr extends Error{constructor(e){super(e.message),this.code=\"ERR_ASSERTION\"}}const{memoize:xr}=_r,kr=/^(?:0x)?[0-9a-f]+$/iu,Or=/^0x[0-9a-f]+$/iu,jr=/^0x[0-9a-f]{40}$/u,Ar=/^0x[0-9a-fA-F]{40}$/u,Er=(j(x(),kr),j(x(),Or),j(x(),jr),j(x(),Ar),e=>\"string\"==typeof e);function Sr(e){return Er(e)&&Ar.test(e)}const Pr=xr(function(e){!function(e,t=\"Assertion failed.\",n=wr){if(!e){if(t instanceof Error)throw t;throw br(n,t)}}(Sr(e),\"Invalid hex address.\");const t=function(e){if(e.startsWith(\"0x\")||e.startsWith(\"0X\"))return e.substring(2);return e}(e).toLowerCase(),n=yr(t),{length:r}=t,i=new Array(r);for(let e=0;e<r;e++){const r=1&e,a=n[e>>1],s=0===r?a>>4:15&a;i[e]=s>=8?t[e].toUpperCase():t[e]}return`0x${i.join(\"\")}`});const Ir=xr(function(e){return!!Sr(e)&&Pr(e)===e});xr(function(e){return Er(t=e)&&jr.test(t)||Ir(e);var t});const Tr=kn().regex(/^0x[a-fA-F0-9]{40}$/u,\"Invalid Ethereum address\").transform(e=>Pr(e)),Nr=(Tr.refine(e=>\"0x0000000000000000000000000000000000000000\"!==e,{message:\"Address cannot be the zero address\"}),kn().regex(/^0x[a-fA-F0-9]*$/u,\"Invalid hex value\").transform(e=>e)),Rr=(Nr.optional().nullable(),jn(),{\"native-token-allowance\":[\"expiry\",\"redeemer\",\"payee\"],\"native-token-stream\":[\"expiry\",\"redeemer\",\"payee\"],\"native-token-periodic\":[\"expiry\",\"redeemer\",\"payee\"],\"erc20-token-allowance\":[\"expiry\",\"redeemer\",\"payee\"],\"erc20-token-stream\":[\"expiry\",\"redeemer\",\"payee\"],\"erc20-token-periodic\":[\"expiry\",\"redeemer\",\"payee\"],\"erc20-token-revocation\":[\"expiry\",\"redeemer\"]}),Cr=Tn({chainIds:In(Nr).optional(),ruleTypes:In(kn())}),Zr=(Cn(kn(),Cr),Nn([kn(),Tn({name:kn(),description:kn().optional()})])),$r=Tn({type:Zr,isAdjustmentAllowed:An(),data:Cn(Sn())}),Lr=On().int().positive(),Fr=Tn({type:Zr,data:Cn(kn(),Sn())}).refine(t=>\"expiry\"!==e(t.type)||Lr.safeParse(t.data.timestamp).success,{message:\"Expiry timestamp must be a valid positive integer\"}).refine(t=>\"redeemer\"!==e(t.type)||Tn({addresses:In(Tr).min(1)}).safeParse(t.data).success,{message:\"Redeemer rule must include a non-empty addresses array of valid Ethereum addresses\"}).refine(t=>\"payee\"!==e(t.type)||Tn({addresses:In(Tr).min(1)}).safeParse(t.data).success,{message:\"Payee rule must include a non-empty addresses array of valid Ethereum addresses\"}),zr=\"No justification was provided for the permission\",Mr=kn().nullable().optional().transform(e=>null==e?zr:e).pipe(kn().transform(e=>{const t=e.trim().replace(/\\s+/g,\" \");return 0===t.length?zr:t}).pipe(kn().min(1,\"Justification cannot be empty\").max(300,\"Justification cannot exceed 300 characters\").refine(e=>![/[<>]/,/[{}]/,/[\\[\\]]/,/@(?:import|media|keyframes|font-face|page|charset|namespace|supports|document|viewport|counter-style|font-feature-values|property|layer)\\b/,/expression\\s*\\(/,/behavior\\s*:\\s*url/,/url\\s*\\(/,/on\\w+\\s*=/,/javascript:|data:|vbscript:/,/[\"`]/,/[\\u0000-\\u0008\\u000E-\\u001F\\u007F]/,/[\\u202E\\u202D\\u202C\\u200E\\u200F]/,/[\\u200B\\u200C\\u200D]/,/[\\u0300-\\u036F\\u1AB0-\\u1AFF\\u20D0-\\u20FF]/,/[\\uFF00-\\uFFEF]/,/&[a-zA-Z]+;/,/&#\\d+;/,/&#x[0-9a-fA-F]+;/,/\\\\u[0-9a-fA-F]{4}/].some(t=>t.test(e)),{message:\"Justification contains invalid characters or patterns\"}))),Ur=(Tn({justification:Mr}),Tn({chainId:Nr,from:Tr.optional().nullable(),to:Tr,permission:$r,rules:In(Fr).superRefine((t,n)=>{const r=t.map(t=>e(t.type));new Set(r).size!==r.length&&n.addIssue({code:Je.custom,message:\"Duplicate rule types are not allowed\"})})}).superRefine((t,n)=>{const r=e(t.permission.type),i=Rr[r];if(i)for(const a of t.rules){const t=e(a.type);i.includes(t)||n.addIssue({code:Je.custom,message:`Rule type \"${t}\" is not supported for permission type \"${r}\". Supported: ${i.join(\", \")||\"none\"}`,path:[\"rules\"]})}})),Dr=In(Ur),qr=(Tn({permissionsRequest:Dr,siteOrigin:kn()}),Lr.nullable().optional().refine(e=>null==e||(e=>{const t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0);return e>=Math.floor(n.getTime()/1e3)})(e),{message:\"Start time must be today or later\"}),Tn({factory:Tr,factoryData:Nr})),Br=Tn({context:Nr,dependencies:In(qr),delegationManager:Tr}),Wr=(In(Br),Rn(Ur,Br)),Gr=In(Wr),Vr=(Tn({isRevoked:An().optional(),siteOrigin:kn().optional(),chainId:Nr.optional(),delegationManager:Tr.optional()}),Tn({type:Zr,proposedName:kn()})),Jr=In(Vr),Kr=Tn({hostId:kn(),type:Zr,proposedName:kn()}),Xr=In(Kr);Cn(kn(),Xr);var Hr=function(e){return e.WalletRequestExecutionPermissions=\"wallet_requestExecutionPermissions\",e.WalletGetSupportedExecutionPermissions=\"wallet_getSupportedExecutionPermissions\",e.WalletGetGrantedExecutionPermissions=\"wallet_getGrantedExecutionPermissions\",e}({}),Yr=function(e){return e.PermissionsProviderGetPermissionOffers=\"permissionsProvider_getPermissionOffers\",e.PermissionsProviderGrantPermissions=\"permissionsProvider_grantPermissions\",e.PermissionsProviderGetGrantedPermissions=\"permissionsProvider_getGrantedPermissions\",e.PermissionsProviderGetSupportedPermissions=\"permissionsProvider_getSupportedPermissions\",e}({});const Qr=new Map([[4001,qe],[-32700,Ue],[-32600,Le],[-32601,ze],[-32602,$e],[-32603,Ce],[-32004,Me],[4100,De]]);function ei(e){if(\"object\"!=typeof e||null===e||!(\"code\"in e))return null;const{code:t}=e;if(\"number\"!=typeof t)return null;const n=\"message\"in e&&\"string\"==typeof e.message?e.message:\"Unknown error\",r=Qr.get(t);if(r){const t=new r(n);return\"stack\"in e&&\"string\"==typeof e.stack&&Object.defineProperty(t,\"stack\",{value:e.stack,writable:!0,enumerable:!1,configurable:!0}),\"data\"in e&&null!==e.data&&\"object\"==typeof e.data&&Object.defineProperty(t,\"data\",{value:e.data,writable:!0,enumerable:!0,configurable:!0}),t}return null}function ti(e){if(\"object\"!=typeof e||null===e)return!0;if([\"__proto__\",\"constructor\",\"prototype\"].some(t=>Object.prototype.hasOwnProperty.call(e,t)))return!1;for(const t of Object.values(e))if(!ti(t))return!1;return!0}const ni=Tn({jsonrpc:Zn(\"2.0\"),method:$n(Hr),params:Nn([kn(),On(),An(),En(),In(Pn()).refine(e=>e.every(ti),{message:\"Invalid key in array: potential prototype pollution attempt\"}),Cn(Pn()).refine(e=>ti(e),{message:\"Invalid key: potential prototype pollution attempt\"})]).optional(),id:Nn([kn(),On()]).optional()});const ri=function(e){const{permissionOfferRegistryManager:n,snapsProvider:r}=e;return{requestExecutionPermissions:async e=>{a.debug({options:e},\"grantPermissions()\");const i=(e=>{const n=Dr.safeParse(e);if(!n.success)throw new $e(t(n.error.errors));if(0===n.data.length)throw new $e(\"params are empty\");return n.data})(e.params),s=\"npm:@metamask/gator-permissions-snap\";const o=await n.buildPermissionOffersRegistry(s),{permissionsToGrant:u,errorMessage:c}=n.findRelevantPermissionsToGrant({allRegisteredOffers:n.getRegisteredPermissionOffers(o),permissionsToGrant:i});if(c)throw new Ze(c);try{return(e=>{const n=Gr.safeParse(e);if(!n.success)throw new $e(t(n.error.errors));if(0===n.data.length)throw new $e(\"params are empty\");return n.data})(await r.request({method:\"wallet_invokeSnap\",params:{snapId:s,request:{method:Yr.PermissionsProviderGrantPermissions,params:{permissionsRequest:u,siteOrigin:e.siteOrigin}}}}))}catch(e){const t=ei(e);if(t)throw t;throw e}},getSupportedExecutionPermissions:async()=>{a.debug(\"getSupportedExecutionPermissions()\");const e=\"npm:@metamask/gator-permissions-snap\";try{return await r.request({method:\"wallet_invokeSnap\",params:{snapId:e,request:{method:Yr.PermissionsProviderGetSupportedPermissions}}})}catch(e){const t=ei(e);if(t)throw t;throw e}},getGrantedExecutionPermissions:async e=>{a.debug({options:e},\"getGrantedExecutionPermissions()\");const t=\"npm:@metamask/gator-permissions-snap\";try{return(await r.request({method:\"wallet_invokeSnap\",params:{snapId:t,request:{method:Yr.PermissionsProviderGetGrantedPermissions,params:{siteOrigin:e.siteOrigin,isRevoked:!1}}}})).map(e=>e.permissionResponse)}catch(e){const t=ei(e);if(t)throw t;throw e}}}}({permissionOfferRegistryManager:(ii=snap,{buildPermissionOffersRegistry:async function(e){let n={};try{try{a.debug(`Querying snap ${e} for permission offers...`);const r=await ii.request({method:\"wallet_invokeSnap\",params:{snapId:e,request:{method:Yr.PermissionsProviderGetPermissionOffers}}});if(r){const i=function(e){const n=Jr.safeParse(e);if(!n.success)throw new $e(t(n.error.errors));if(0===n.data.length)throw new $e(\"params are empty\");return n.data}(r).map(t=>({hostId:e,type:t.type,proposedName:t.proposedName}));n={...n,[e]:i},a.debug(`Snap ${e} supports ${Yr.PermissionsProviderGetPermissionOffers}, adding to registry...`)}}catch{a.error(`Snap ${e} does not support ${Yr.PermissionsProviderGetPermissionOffers}, or returned an invalid response, skipping...`)}return n}catch{return a.error(\"Error building permission offer registry\"),n}},getRegisteredPermissionOffers:function(e){return 0===Object.keys(e).length?[]:Object.values(e).flat()},findRelevantPermissionsToGrant:function(t){const{allRegisteredOffers:n,permissionsToGrant:r}=t;if(0===r.length)return{permissionsToGrant:[],missingPermissions:[]};const i=r.filter(t=>!n.some(n=>e(t.permission.type)===e(n.type)));return i.length>0?{permissionsToGrant:[],missingPermissions:i,errorMessage:`The following permissions can not be granted by the permissions provider: ${i.map(e=>e.permission.type).join(\", \")}`}:{missingPermissions:[],permissionsToGrant:r}}}),snapsProvider:snap});var ii;const ai=(si={enabled:!0,snapName:\"permissions-kernel-snap\",snapProvider:snap},new te(si));var si;const oi={[Hr.WalletRequestExecutionPermissions]:ri.requestExecutionPermissions.bind(ri),[Hr.WalletGetSupportedExecutionPermissions]:ri.getSupportedExecutionPermissions.bind(ri),[Hr.WalletGetGrantedExecutionPermissions]:ri.getGrantedExecutionPermissions.bind(ri)};let ui=null;const ci=async({origin:e,request:n})=>{const r=Symbol(\"processing-lock\");try{if(null!==ui)throw a.warn(`RPC request rejected (origin=\"${e}\"): another request is already being processed`),new Fe(\"Another request is already being processed.\");if(ui=r,a.info(`Custom request (origin=\"${e}\"): method=\"${n.method}\"`),\"object\"!=typeof n||null===n)throw new $e(\"Request must be a valid JSON-RPC object\");if(!n.method||\"string\"!=typeof n.method)throw new $e(\"Request must have a valid method\");if(!Object.prototype.hasOwnProperty.call(oi,n.method))throw a.warn(\"Method not found in bound handlers:\",n.method),new ze(`Method ${n.method} not found.`);const i=function(e){const n=ni.safeParse(e);if(!n.success){const e=t(n.error.errors);throw a.warn(\"Invalid JSON-RPC request structure:\",{errors:e}),new $e(`Invalid JSON-RPC request: ${e}`)}return n.data}(n),s=oi[i.method];return await s({siteOrigin:e,params:i.params})}catch(e){throw ai.captureError({error:e,method:n?.method??\"unknown\",requestParams:n?.params}).catch(()=>{}),e}finally{ui===r&&(ui=null)}}})(),module.exports=r})();"}],"removable":false,"hideSnapBranding":true}