1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{45042:function(t,e){"use strict";e.Z=function(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}},81245:function(t,e,n){"use strict";n.d(e,{O:function(){return m}});var r=function(t){for(var e,n=0,r=0,i=t.length;i>=4;++r,i-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},i={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(45042),s=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(t){return 45===t.charCodeAt(1)},u=function(t){return null!=t&&"boolean"!==typeof t},l=(0,o.Z)((function(t){return c(t)?t:t.replace(s,"-$&").toLowerCase()})),h=function(t,e){switch(t){case"animation":case"animationName":if("string"===typeof e)return e.replace(a,(function(t,e,n){return f={name:e,styles:n,next:f},e}))}return 1===i[t]||c(t)||"number"!==typeof e||0===e?e:e+"px"};function d(t,e,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return f={name:n.name,styles:n.styles,next:f},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)f={name:r.name,styles:r.styles,next:f},r=r.next;return n.styles+";"}return function(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=d(t,e,n[i])+";";else for(var o in n){var s=n[o];if("object"!==typeof s)null!=e&&void 0!==e[s]?r+=o+"{"+e[s]+"}":u(s)&&(r+=l(o)+":"+h(o,s)+";");else if(!Array.isArray(s)||"string"!==typeof s[0]||null!=e&&void 0!==e[s[0]]){var a=d(t,e,s);switch(o){case"animation":case"animationName":r+=l(o)+":"+a+";";break;default:r+=o+"{"+a+"}"}}else for(var c=0;c<s.length;c++)u(s[c])&&(r+=l(o)+":"+h(o,s[c])+";")}return r}(t,e,n);case"function":if(void 0!==t){var i=f,o=n(t);return f=i,d(t,e,o)}}if(null==e)return n;var s=e[n];return void 0!==s?s:n}var f,p=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var m=function(t,e,n){if(1===t.length&&"object"===typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var i=!0,o="";f=void 0;var s=t[0];null==s||void 0===s.raw?(i=!1,o+=d(n,e,s)):o+=s[0];for(var a=1;a<t.length;a++)o+=d(n,e,t[a]),i&&(o+=s[a]);p.lastIndex=0;for(var c,u="";null!==(c=p.exec(o));)u+="-"+c[1];return{name:r(o)+u,styles:o,next:f}}},70444:function(t,e,n){"use strict";n.d(e,{My:function(){return o},fp:function(){return r},hC:function(){return i}});function r(t,e,n){var r="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]+";"):r+=n+" "})),r}var i=function(t,e,n){var r=t.key+"-"+e.name;!1===n&&void 0===t.registered[r]&&(t.registered[r]=e.styles)},o=function(t,e,n){i(t,e,n);var r=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var o=e;do{t.insert(e===o?"."+r:"",o,t.sheet,!0);o=o.next}while(void 0!==o)}}},21250:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=("undefined"!==typeof window?window:n.g)||{}},40227:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1Object.defineProperty(e,"__esModule",{value:!0}),e.pingback=e.mergeAttributes=void 0;var s=n(26634);Object.defineProperty(e,"mergeAttributes",{enumerable:!0,get:function(){return o(s).default}});var a=n(86806);Object.defineProperty(e,"pingback",{enumerable:!0,get:function(){return o(a).default}}),i(n(75104),e)},26634:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(23859);e.default=function(t,e,n){var o,s=(0,i.pick)(t,[n]),a=(0,i.pick)(e,[n]);return s[n]&&a[n]?r(r(r({},t),e),((o={})[n]=s[n]+", "+a[n],o)):r(r({},t),e)}},86806:function(t,e,n){"use strict";var r,i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(23859),a=n(42189),c=o(n(21250)),u=n(24358),l=[];c.default.giphyRandomId=(0,s.getPingbackId)();var h="";function d(){var t=i([],l,!0);l=[],(0,u.sendPingback)(t)}var f=(0,a.debounce)(1e3,d);null===(r=c.default.addEventListener)||void 0===r||r.call(c.default,"beforeunload",d);e.default=function(t){var e=t.userId,n=t.eventType,r=t.actionType,i=t.attributes,o=t.queueEvents,a=void 0===o||o,c=t.analyticsResponsePayload;h=e?String(e):h;var u={ts:Date.now(),attributes:i,action_type:r,user_id:(0,s.getPingbackId)(),analytics_response_payload:c};h&&(u.logged_in_user_id=h),u.analytics_response_payload&&(u.analytics_response_payload="".concat(u.analytics_response_payload).concat(s.Logger.ENABLED?"&mode=verification":"")),n&&(u.event_type=n),l.push(u),a?f():d()}},24358:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.sendPingback=void 0;var i=n(23859),o=r(n(21250)),s=(null===o.default||void 0===o.default?void 0:o.default.GIPHY_PINGBACK_URL)||"https://pingback.giphy.com",a="".concat(s,"/v2/pingback?apikey=l0HlIwPWyBBUDAUgM");e.sendPingback=function(t){var e=(0,i.getGiphySDKRequestHeaders)();return null===e||void 0===e||e.set("Content-Type","application/json"),i.Logger.debug("Pingback session",t),t.length?fetch(a,{method:"POST",body:JSON.stringify({events:t}),headers:e}).catch((function(t){i.Logger.warn("pingbacks failing to post ".concat(t))})):new Promise((function(t){return t()}))}},75104:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},46289:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.gifOverlayColor=e.dimColor=e.secondaryCTA=e.primaryCTADisabled=e.primaryCTA=e.deleteColor=e.errorColor=e.smsColor=e.redditColor=e.instagramColor=e.tumblrColor=e.pinterestColor=e.twitterColor=e.facebookColor=e.giphyPink=e.giphyIndigo=e.giphyLightBlue=e.giphyAqua=e.giphyYellow=e.giphyRed=e.giphyPurple=e.giphyGreen=e.giphyBlue=e.giphyWhite=e.giphyWhiteSmoke=e.giphyLightestGrey=e.giphyLightGrey=e.giphyLightCharcoal=e.giphyCharcoal=e.giphyDarkCharcoal=e.giphyDarkGrey=e.giphyDarkestGrey=e.giphyBlack=void 0,e.giphyBlack="#121212",e.giphyDarkestGrey="#212121",e.giphyDarkGrey="#2e2e2e",e.giphyDarkCharcoal="#3e3e3e",e.giphyCharcoal="#4a4a4a",e.giphyLightCharcoal="#5c5c5c",e.giphyLightGrey="#a6a6a6",e.giphyLightestGrey="#d8d8d8",e.giphyWhiteSmoke="#ececec",e.giphyWhite="#ffffff",e.giphyBlue="#00ccff",e.giphyGreen="#00ff99",e.giphyPurple="#9933ff",e.giphyRed="#ff6666",e.giphyYellow="#fff35c",e.giphyAqua="#00e6cc",e.giphyLightBlue="#3191ff",e.giphyIndigo="#6157ff",e.giphyPink="#e646b6",e.facebookColor="#3894fc",e.twitterColor="#00ccff",e.pinterestColor="#e54cb5",e.tumblrColor="#529ecc",e.instagramColor="#c23c8d",e.redditColor="#fc6669",e.smsColor="#00ff99",e.errorColor=e.giphyRed,e.deleteColor=e.giphyRed,e.primaryCTA=e.giphyIndigo,e.primaryCTADisabled="#241F74",e.secondaryCTA=e.giphyCharcoal,e.dimColor="rgba(0, 0, 0, 0.8)",e.gifOverlayColor="rgba(0, 0, 0, 0.4)"},46673:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1Object.defineProperty(e,"__esModule",{value:!0}),e.loader=void 0,i(n(46289),e);var s=n(88355);Object.defineProperty(e,"loader",{enumerable:!0,get:function(){return o(s).default}}),i(n(50965),e)},88355:function(t,e,n){"use strict";var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};Object.defineProperty(e,"__esModule",{value:!0});var i,o,s=n(37765),a=n(46289),c=(0,s.keyframes)(i||(i=r(["\n to {\n transform: scale(1.75) translateY(-20px);\n }\n"],["\n to {\n transform: scale(1.75) translateY(-20px);\n }\n"]))),u=(0,s.css)(o||(o=r(["\n display: flex;\n align-items: center;\n height: ","px;\n padding-top: 15px;\n margin: 0 auto;\n text-align: center;\n justify-content: center;\n animation: pulse 0.8s ease-in-out 0s infinite alternate backwards;\n div {\n display: inline-block;\n height: 10px;\n width: 10px;\n margin: ","px 10px 10px 10px;\n position: relative;\n box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);\n animation: "," cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.75s infinite alternate;\n &:nth-child(5n + 1) {\n background: ",";\n animation-delay: 0;\n }\n &:nth-child(5n + 2) {\n background: ",";\n animation-delay: calc(0s + (0.1s * 1));\n }\n &:nth-child(5n + 3) {\n background: ",";\n animation-delay: calc(0s + (0.1s * 2));\n }\n &:nth-child(5n + 4) {\n background: ",";\n animation-delay: calc(0s + (0.1s * 3));\n }\n &:nth-child(5n + 5) {\n background: ",";\n animation-delay: calc(0s + (0.1s * 4));\n }\n }\n"],["\n display: flex;\n align-items: center;\n height: ","px;\n padding-top: 15px;\n margin: 0 auto;\n text-align: center;\n justify-content: center;\n animation: pulse 0.8s ease-in-out 0s infinite alternate backwards;\n div {\n display: inline-block;\n height: 10px;\n width: 10px;\n margin: ","px 10px 10px 10px;\n position: relative;\n box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);\n animation: "," cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.75s infinite alternate;\n &:nth-child(5n + 1) {\n background: ",";\n animation-delay: 0;\n }\n &:nth-child(5n + 2) {\n background: ",";\n animation-delay: calc(0s + (0.1s * 1));\n }\n &:nth-child(5n + 3) {\n background: ",";\n animation-delay: calc(0s + (0.1s * 2));\n }\n &:nth-child(5n + 4) {\n background: ",";\n animation-delay: calc(0s + (0.1s * 3));\n }\n &:nth-child(5n + 5) {\n background: ",";\n animation-delay: calc(0s + (0.1s * 4));\n }\n }\n"])),37,37,c,a.giphyGreen,a.giphyBlue,a.giphyPurple,a.giphyRed,a.giphyYellow);e.default=u},50965:function(t,e,n){"use strict";
1var r=n(34155),i=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};Object.defineProperty(e,"__esModule",{value:!0}),e.css=e.fontSize=e.fontFamily=e.addFonts=void 0;var o=n(37765);e.addFonts=function(){return(0,o.injectGlobal)(s||(s=i(["\n@font-face {\n font-family: 'interface';\n font-style: normal;\n font-weight: normal;\n src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_Rg.woff2') format('woff2'),\n url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_Rg.woff') format('woff');\n}\n\n@font-face {\n font-family: 'interface';\n font-style: normal;\n font-weight: bold;\n src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_Bd.woff2') format('woff2'),\n url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_Bd.woff') format('woff');\n}\n@font-face {\n font-family: 'interface';\n font-style: normal;\n font-weight: 900;\n src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_XBd.woff') format('woff');\n}\n@font-face {\n font-family: 'nexablack'; \n font-style: normal;\n font-weight: normal;\n src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/nexa_black-webfont.woff2') format('woff2'),\n url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/nexa_black-webfont.woff') format('woff');\n}\n@font-face {\n font-family: 'SSStandard'; \n font-style: normal;\n font-weight: normal;\n src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/ss-standard.woff') format('woff');\n}\n@font-face {\n font-family: 'SSSocial'; \n font-style: normal;\n font-weight: normal;\n src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/ss-social.woff') format('woff');\n}\n"],["\n@font-face {\n font-family: 'interface';\n font-style: normal;\n font-weight: normal;\n src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_Rg.woff2') format('woff2'),\n url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_Rg.woff') format('woff');\n}\n\n@font-face {\n font-family: 'interface';\n font-style: normal;\n font-weight: bold;\n src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_Bd.woff2') format('woff2'),\n url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_Bd.woff') format('woff');\n}\n@font-face {\n font-family: 'interface';\n font-style: normal;\n font-weight: 900;\n src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_XBd.woff') format('woff');\n}\n@font-face {\n font-family: 'nexablack'; \n font-style: normal;\n font-weight: normal;\n src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/nexa_black-webfont.woff2') format('woff2'),\n url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/nexa_black-webfont.woff') format('woff');\n}\n@font-face {\n font-family: 'SSStandard'; \n font-style: normal;\n font-weight: normal;\n src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/ss-standard.woff') format('woff');\n}\n@font-face {\n font-family: 'SSSocial'; \n font-style: normal;\n font-weight: normal;\n src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/ss-social.woff') format('woff');\n}\n"])))};try{r.env.GIPHY_SDK_NO_FONTS||(0,e.addFonts)()}catch(S){(0,e.addFonts)()}e.fontFamily={title:"'nexablack', sans-serif",body:"interface, Helvetica Neue, helvetica, sans-serif;"},e.fontSize={titleSmall:"20px",title:"26px",titleLarge:"36px",subheader:"16px",subheaderSmall:"12px"};var s,a,c,u,l,h,d,f,p,m=(0,o.css)(a||(a=i(["\n font-family: ",";\n -webkit-font-smoothing: antialiased;\n"],["\n font-family: ",";\n -webkit-font-smoothing: antialiased;\n"])),e.fontFamily.title),g=(0,o.cx)((0,o.css)(c||(c=i(["\n font-size: ",";\n "],["\n font-size: ",";\n "])),e.fontSize.title),m),y=(0,o.cx)((0,o.css)(u||(u=i(["\n font-size: ",";\n "],["\n font-size: ",";
1\n "])),e.fontSize.titleLarge),m),b=(0,o.cx)((0,o.css)(l||(l=i(["\n font-size: ",";\n "],["\n font-size: ",";\n "])),e.fontSize.titleSmall),m),v=(0,o.css)(h||(h=i(["\n font-family: ",";\n font-weight: bold;\n -webkit-font-smoothing: antialiased;\n"],["\n font-family: ",";\n font-weight: bold;\n -webkit-font-smoothing: antialiased;\n"])),e.fontFamily.body),w=(0,o.cx)((0,o.css)(d||(d=i(["\n font-size: ",";\n "],["\n font-size: ",";\n "])),e.fontSize.subheader),v),_=(0,o.cx)((0,o.css)(f||(f=i(["\n font-size: ",";\n "],["\n font-size: ",";\n "])),e.fontSize.subheaderSmall),v),k={sectionHeader:(0,o.css)(p||(p=i(["\n font-family: ",";\n font-size: 14px;\n font-weight: bold;\n text-transform: uppercase;\n -webkit-font-smoothing: antialiased;\n"],["\n font-family: ",";\n font-size: 14px;\n font-weight: bold;\n text-transform: uppercase;\n -webkit-font-smoothing: antialiased;\n"])),e.fontFamily.body),subheaderSmall:_,subheader:w,titleLarge:y,titleSmall:b,title:g};e.css=k},38617:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.GiphyFetch=void 0;var o=n(23859),s=i(n(80129)),a=n(41073),c=i(n(49669)),u=function(t){return t&&t.type?t.type:"gifs"},l=function(){function t(t){var e=this;this.getQS=function(t){return void 0===t&&(t={}),s.default.stringify(r(r({},t),{api_key:e.apiKey,pingback_id:(0,o.getPingbackId)()}))},this.apiKey=t}return t.prototype.categories=function(t){return(0,c.default)("gifs/categories?".concat(this.getQS(t)))},t.prototype.gif=function(t){return(0,c.default)("gifs/".concat(t,"?").concat(this.getQS()),{normalizer:a.normalizeGif})},t.prototype.gifs=function(t,e){return Array.isArray(t)?(0,c.default)("gifs?".concat(this.getQS({ids:t.join(",")})),{normalizer:a.normalizeGifs}):(0,c.default)("gifs/categories/".concat(t,"/").concat(e,"?").concat(this.getQS()),{normalizer:a.normalizeGifs})},t.prototype.emoji=function(t){return(0,c.default)("emoji?".concat(this.getQS(t)),{normalizer:a.normalizeGifs})},t.prototype.emojiDefaultVariations=function(t){return(0,c.default)("emoji?".concat(this.getQS(t)),{apiVersion:2,normalizer
1:a.normalizeGifs})},t.prototype.emojiVariations=function(t){return(0,c.default)("emoji/".concat(t,"/variations?").concat(this.getQS()),{apiVersion:2,normalizer:a.normalizeGifs})},t.prototype.animate=function(t,e){void 0===e&&(e={});var n=this.getQS(r(r({},e),{m:t}));return(0,c.default)("text/animate?".concat(n),{normalizer:a.normalizeGifs})},t.prototype.search=function(t,e){void 0===e&&(e={});var n,i=e.channel?"@".concat(e.channel," ").concat(t):t;"text"===e.type&&(n=!0);var o=this.getQS(r(r({},e),{q:i,excludeDynamicResults:n}));return(0,c.default)("".concat(u(e),"/search?").concat(o),{normalizer:a.normalizeGifs})},t.prototype.subcategories=function(t,e){return(0,c.default)("gifs/categories/".concat(t,"?").concat(this.getQS(e)))},t.prototype.trending=function(t){return void 0===t&&(t={}),(0,c.default)("".concat(u(t),"/trending?").concat(this.getQS(t)),{normalizer:a.normalizeGifs})},t.prototype.random=function(t){return(0,c.default)("".concat(u(t),"/random?").concat(this.getQS(t)),{noCache:!0,normalizer:a.normalizeGif})},t.prototype.related=function(t,e){return(0,c.default)("".concat("stickers"===(null===e||void 0===e?void 0:e.type)?"stickers":"gifs","/related?").concat(this.getQS(r({gif_id:t},e))),{normalizer:a.normalizeGifs})},t.prototype.channels=function(t,e){return void 0===e&&(e={}),(0,c.default)("channels/search?".concat(this.getQS(r({q:t},e))))},t}();e.GiphyFetch=l,e.default=l},44331:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setServerUrl=e.serverUrl=void 0;var r=("undefined"!==typeof window?window:n.g)||{};e.serverUrl=r.GIPHY_API_URL||"https://api.giphy.com/v1/";e.setServerUrl=function(t){e.serverUrl=t}},43027:function(t,e){"use strict";var n=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r="");var i=t.call(this,e)||this;return i.status=n,i.statusText=r,i}return n(e,t),e}(Error);e.default=r},88304:function(t,e,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.request=e.gifPaginator=e.setServerUrl=e.serverUrl=e.GiphyFetch=void 0;var a=n(23859),c=n(38617);Object.defineProperty(e,"GiphyFetch",{enumerable:!0,get:function(){return s(c).default}});var u=n(44331);Object.defineProperty(e,"serverUrl",{enumerable:!0,get:function(){return u.serverUrl}}),Object.defineProperty(e,"setServerUrl",{enumerable:!0,get:function(){return u.setServerUrl}}),o(n(56100),e);var l=n(40742);Object.defineProperty(e,"gifPaginator",{enumerable:!0,get:function(){return l.gifPaginator}});var h=n(49669);Object.defineProperty(e,"request",{enumerable:!0,get:function(){return s(h).default}}),o(n(49581),e);var d=n(28821).i8;(null===(r=(0,a.getGiphySDKRequestHeaders)())||void 0===r?void 0:r.get("X-GIPHY-SDK-NAME"))||((0,a.appendGiphySDKRequestHeader)("X-GIPHY-SDK-NAME","FetchAPI"),(0,a.appendGiphySDKRequestHeader)("X-GIPHY-SDK-VERSION",d))},41073:function(t,e){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)};
1Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeGifs=e.normalizeGif=e.USER_BOOL_PROPS=e.BOOL_PROPS=void 0,e.BOOL_PROPS=["is_anonymous","is_community","is_featured","is_hidden","is_indexable","is_preserve_size","is_realtime","is_removed","is_sticker","is_dynamic"],e.USER_BOOL_PROPS=["suppress_chrome","is_public","is_verified"];var r=function(t){return function(e){return t[e]=!!t[e]}},i=function(t){return"string"===typeof t?t:t.text},o=function(t){var o=n({},t);o.id=String(o.id),o.tags=(o.tags||[]).map(i),e.BOOL_PROPS.forEach(r(o)),Object.keys(o.images||{}).forEach((function(t){var e=o.images[t];e.width=parseInt(e.width),e.height=parseInt(e.height)}));var s=o.user;if(s){var a=n({},s);e.USER_BOOL_PROPS.forEach(r(a)),o.user=a}return o};e.normalizeGif=function(t){return t.data=o(t.data),t};e.normalizeGifs=function(t){return t.data=t.data.map((function(t){return o(t)})),t}},56100:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},40742:function(t,e){"use strict";var n=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},r=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.gifPaginator=void 0;e.gifPaginator=function(t,e){void 0===e&&(e=[]);var o=i([],e,!0),s=e.map((function(t){return t.id})),a=e.length,c=!1;return function(){return n(void 0,void 0,void 0,(function(){var e,n,u;return r(this,(function(r){switch(r.label){case 0:return c?[2,o]:[4,t(a)];case 1:return e=r.sent(),n=e.pagination,u=e.data,a=n.count+n.offset,c=a===n.total_count,u.forEach((function(t){var e=t.id;s.includes(e)||(o.push(t),s.push(e))})),[2,i([],o,!0)]}}))}))}}},49669:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_ERROR=e.ERROR_PREFIX=void 0;var s=n(44331),a=o(n(43027));e.ERROR_PREFIX="@giphy/js-fetch-api: ",e.DEFAULT_ERROR="Error fetching";var c=function(t){return t},u={};e.default=function(t,n){var o=this;void 0===n&&(n={});var l=n.apiVersion,h=void 0===l?1:l,d=n.noCache,f=void 0!==d&&d,p=n.normalizer,m=void 0===p?c:p,g=s.serverUrl.replace(/\/v\d+\/$/,"/v".concat(h,"/"));if(function(){var t=Date.now();Object.keys(u).forEach((function(e){var n=u[e].isError?6e3:6e4;t-u[e].ts>=n&&delete u[e]}))}(),!u[t]||f){u[t]={request:r(o,void 0,void 0,(function(){var n,r,o,s,c,l;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,9,,10]),[4,fetch("".concat(g).concat(t),{method:"get"})];case 1:return(r=i.sent()).ok?[4,r.json()]:[3,3];case 2:if(s=i.sent(),null===(l=s.meta)||void 0===l?void 0:l.response_id)return[2,m(s)];throw{message:"synthetic response"};case 3:o=e.DEFAULT_ERROR,i.label=4;case 4:return i.trys.push([4,6,,7]),[4,r.json()];case 5:return(s=i.sent()).message&&(o=s.message),[3,7];case 6:return i.sent(),[3,7];case 7:u[t]&&(u[t].isError=!0),n=new a.default("".concat(e.ERROR_PREFIX).concat(o),r.status,r.statusText),i.label=8;case 8:return[3,10];case 9:return c=i.sent(),n=new a.default(c.message),u[t]&&(u[t].isError=!0),[3,10];case 10:throw n}}))})),ts:Date.now()}}return u[t].request}},49581:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},8601:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setRenditionScaleUpMaxPixels=void 0;var r=n(61645),i=50;e.setRenditionScaleUpMaxPixels=function(t){r.Logger.debug("@giphy/js-util set rendition selection scale up max pixels to ".concat(t)),i=t},e.default=function(t,e,n,r){void 0===r&&(r=i);var o=t[0],s=t.filter((function(t){return t.width*t.height>o.width*o.height&&(o=t),e-t.width<=r&&n-t.height<=r}));return 0===s.length?o:function(t,e,n){var r,i=1/0;return n.forEach((function(n){var o=n.width/t*(n.height/e),s=Math.abs(1-o);s<i&&(i=s,r=n)})),r}(e,n,s)}},41184:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pick=e.without=e.take=e.forEach=e.mapValues=void 0,e.mapValues=function(t,e){if(Array.isArray(t))throw"This map is just for objects, just use array.map for arrays";return Object.keys(t).reduce((function(n,r){return n[r]=e(t[r],r),n}),{})},e.forEach=function(t,e){if(Array.isArray(t))throw"This map is just for objects, just use array.forEach for arrays";return Object.keys(t).forEach((function(n){e(t[n],n)}))},e.take=function(t,e){return void 0===e&&(e=0),t.slice(0,e)},e.without=function(t,e){return t.filter((function(t){return-1===e.indexOf(t)}))},e.pick=function(t,e){var n={};return e.forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n}},88918:function(t,e){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=0,r=0,i=t.offsetWidth,o=t.offsetHeight;do{e+=t.offsetLeft,r+=t.offsetTop,t=t.offsetParent}while(t);var s={left:e,top:r,width:i,height:o,right:e+i,bottom:r+o,x:e,y:r};return n(n({},s),{toJSON:function(){return JSON.stringify(s)}})}},51539:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(97466),i="";e.default=function(){if(!i){try{i=sessionStorage.getItem("giphyPingbackId")}catch(e){}if(!i){var t=(new Date).getTime().toString(16);try{i="".concat(t).concat((0,r.v4)().replace(/-/g,"")).substring(0,16)}catch(n){i=function(){for(var t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=e.length,r=0;r<16;r++)t+=e.charAt(Math.floor(Math.random()*n));return t}()}try{sessionStorage.setItem("giphyPingbackId",i)}catch(e){}}}return i}},5956:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1Object.defineProperty(e,"__esModule",{value:!0}),e.getAltText=e.getGifWidth=e.getGifHeight=e.getBestRenditionUrl=e.getBestRendition=e.getBestVideo=e.getSpecificRendition=void 0;var o=i(n(8601)),s=n(41184),a=n(24485);e.getSpecificRendition=function(t,e,n,r){var i=t.images,o=t.is_sticker;if(void 0===n&&(n=!1),void 0===r&&(r=!1),!i||!e)return"";n=n&&!r;var s=i["".concat(e).concat(n?"_still":"")];if(s){if(o||n)return s.url;var c=a.SUPPORTS_WEBP&&s.webp;return r?s.mp4:c||s.url}return""};e.getBestVideo=function(t,e,n){var i=null===t||void 0===t?void 0:t.assets;if(i){delete(i=r({},i)).source;var s=Object.values(i).sort((function(t,e){return t.width-e.width}));return(0,o.default)(s,e,n)}};e.getBestRendition=function(t,e,n,i){var a=(0,s.pick)(t,["original","fixed_width","fixed_height","fixed_width_small","fixed_height_small"]),c=Object.entries(a).map((function(t){var e=t[0],n=t[1];return r({renditionName:e},n)}));return(0,o.default)(c,e,n,i)};e.getBestRenditionUrl=function(t,n,r,i){var o=t.images,s=t.video,c=t.type;if(void 0===i&&(i={isStill:!1,useVideo:!1}),!n||!r||!o)return"";var u=i.useVideo,l=i.isStill,h=i.scaleUpMaxPixels,d=function(t,e,n){return"video"===t&&n&&n.previews&&!Object.keys(e).length?n.previews:e}(c,o,s),f=(0,e.getBestRendition)(d,n,r,h).renditionName,p=d["".concat(f).concat(l&&!u?"_still":"")];return(u?p.mp4:a.SUPPORTS_WEBP&&p.webp?p.webp:p.url)||""};e.getGifHeight=function(t,e){var n=t.images.fixed_width;if(n){var r=n.width/n.height;return Math.round(e/r)}return 0};e.getGifWidth=function(t,e){var n=t.images.fixed_width;if(n){var r=n.width/n.height;return Math.round(e*r)}return 0};e.getAltText=function(t){var e=t.alt_text,n=t.user,r=t.tags,i=void 0===r?[]:r,o=t.is_sticker,a=void 0!==o&&o,c=t.title,u=void 0===c?"":c;if(e)return e;if(u)return u;var l=n&&n.username||"",h=(0,s.take)((0,s.without)(i,["transparent"]),l?4:5);return"".concat(l?"".concat(l," "):"").concat(h.join(" ")," ").concat(a?"Sticker":"GIF")}},23859:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.checkIfWebP=e.getSpecificRendition=e.getGifWidth=e.getGifHeight=e.getBestVideo=e.getBestRenditionUrl=e.getBestRendition=e.getAltText=e.getPingbackId=e.getClientRect=e.setRenditionScaleUpMaxPixels=e.bestfit=void 0;var s=n(8601);Object.defineProperty(e,"bestfit",{enumerable:!0,get:function(){return o(s).default}}),Object.defineProperty(e,"setRenditionScaleUpMaxPixels",{enumerable:!0,get:function(){return s.setRenditionScaleUpMaxPixels}}),i(n(41184),e);var a=n(88918);Object.defineProperty(e,"getClientRect",{enumerable:!0,get:function(){return o(a).default}});var c=n(51539);Object.defineProperty(e,"getPingbackId",{enumerable:!0,get:function(){return o(c).default}});var u=n(5956);Object.defineProperty(e,"getAltText",{enumerable:!0,get:function(){return u.getAltText}}),Object.defineProperty(e,"getBestRendition",{enumerable:!0,get:function(){return u.getBestRendition}}),Object.defineProperty(e,"getBestRenditionUrl",{enumerable:!0,get:function(){return u.getBestRenditionUrl}}),Object.defineProperty(e,"getBestVideo",{enumerable:!0,get:function(){return u.getBestVideo}}),Object.defineProperty(e,"getGifHeight",{enumerable:!0,get:function(){return u.getGifHeight}}),Object.defineProperty(e,"getGifWidth",{enumerable:!0,get:function(){return u.getGifWidth}}),Object.defineProperty(e,"getSpecificRendition",{enumerable:!0,get:function(){return u.getSpecificRendition}}),i(n(61645),e),i(n(23465),e);var l=n(24485);Object.defineProperty(e,"checkIfWebP",{enumerable:!0,get:function(){return l.checkIfWebP}})},61645:function(t,e){"use strict";var n,r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};
1Object.defineProperty(e,"__esModule",{value:!0}),e.Logger=e.LogLevel=void 0,function(t){t[t.DEBUG=0]="DEBUG",t[t.INFO=1]="INFO",t[t.WARN=2]="WARN",t[t.ERROR=3]="ERROR"}(n=e.LogLevel||(e.LogLevel={})),e.Logger={ENABLED:"undefined"!==typeof window&&"undefined"!==typeof location&&-1!==location.search.indexOf("giphy-debug"),LEVEL:0,PREFIX:"GiphyJS",debug:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];e.Logger.ENABLED&&e.Logger.LEVEL<=n.DEBUG&&console.debug.apply(console,r([e.Logger.PREFIX],t,!1))},info:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];e.Logger.ENABLED&&e.Logger.LEVEL<=n.INFO&&console.info.apply(console,r([e.Logger.PREFIX],t,!1))},warn:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];e.Logger.ENABLED&&e.Logger.LEVEL<=n.WARN&&console.warn.apply(console,r([e.Logger.PREFIX],t,!1))},error:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];e.Logger.ENABLED&&e.Logger.LEVEL<=n.ERROR&&console.error.apply(console,r([e.Logger.PREFIX],t,!1))}}},23465:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.appendGiphySDKRequestParam=e.appendGiphySDKRequestHeader=e.getGiphySDKRequestHeaders=void 0;var r=("undefined"!==typeof window?window:n.g)||{};r._GIPHY_SDK_HEADERS_=r._GIPHY_SDK_HEADERS_||(r.Headers?new r.Headers({"X-GIPHY-SDK-PLATFORM":"web"}):void 0);e.getGiphySDKRequestHeaders=function(){return r._GIPHY_SDK_HEADERS_};e.appendGiphySDKRequestHeader=function(t,n){var r;return null===(r=(0,e.getGiphySDKRequestHeaders)())||void 0===r?void 0:r.set(t,n)};e.appendGiphySDKRequestParam=function(t,n){var r;return null===(r=(0,e.getGiphySDKRequestHeaders)())||void 0===r?void 0:r.set(t,n)}},24485:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkIfWebP=e.SUPPORTS_WEBP=void 0,e.SUPPORTS_WEBP=null,e.checkIfWebP=new Promise((function(t){"undefined"===typeof Image&&t(!1);var n=new Image;n.onload=function(){e.SUPPORTS_WEBP=!0,t(e.SUPPORTS_WEBP)},n.onerror=function(){e.SUPPORTS_WEBP=!1,t(e.SUPPORTS_WEBP)},n.src="data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA"}))},3474:function(t,e,n){"use strict";
1var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c,u=a(n(66628)),l=s(n(67294)),h=u.default.img(c||(c=r(["\n object-fit: cover;\n width: 32px;\n height: 32px;\n margin-right: 8px;\n"],["\n object-fit: cover;\n width: 32px;\n height: 32px;\n margin-right: 8px;\n"])));e.default=function(t){var e=t.user,n=t.className,r=void 0===n?"":n,i=(0,l.useRef)(Math.floor(5*Math.random())+1),o=e.avatar_url?function(t){var e,n;if(!t)return"";var r=null===(n=null===(e=null===t||void 0===t?void 0:t.split("."))||void 0===e?void 0:e.pop())||void 0===n?void 0:n.toLowerCase();return t.replace(".".concat(r),"/80h.".concat(r))}(e.avatar_url):"https://media.giphy.com/avatars/default".concat(i.current,".gif");return l.default.createElement(h,{src:o,className:r})}},45087:function(t,e,n){"use strict";
1var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o,s,a=i(n(66628)),c=i(n(67294)),u=i(n(3474)),l=i(n(61049)),h=a.default.div(o||(o=r(["\n display: flex;\n align-items: center;\n font-family: interface, helvetica, arial;\n"],["\n display: flex;\n align-items: center;\n font-family: interface, helvetica, arial;\n"]))),d=(0,a.default)(u.default)(s||(s=r(["\n flex-shrink: 0;\n"],["\n flex-shrink: 0;\n"]))),f=function(t){var e=t.gif,n=t.className,r=t.onClick,i=e.user;return(null===i||void 0===i?void 0:i.username)||(null===i||void 0===i?void 0:i.display_name)?c.default.createElement(h,{className:[f.className,n].join(" "),onClick:function(t){if(t.preventDefault(),t.stopPropagation(),r)r(e);else{var n=i.profile_url;n&&window.open(n,"_blank")}}},c.default.createElement(d,{user:i}),c.default.createElement(l.default,{user:e.user})):null};f.className="giphy-attribution",e.default=f},26150:function(t,e,n){"use strict";
1var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c,u,l,h=a(n(66628)),d=s(n(67294)),f=a(n(45087)),p=h.default.div(c||(c=r(["\n background: linear-gradient(rgba(0, 0, 0, 0), rgba(18, 18, 18, 0.6));\n cursor: default;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 75px;\n pointer-events: none;\n"],["\n background: linear-gradient(rgba(0, 0, 0, 0), rgba(18, 18, 18, 0.6));\n cursor: default;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 75px;\n pointer-events: none;\n"]))),m=(0,h.default)(f.default)(u||(u=r(["\n position: absolute;\n bottom: 10px;\n left: 10px;\n right: 10px;\n"],["\n position: absolute;\n bottom: 10px;\n left: 10px;\n right: 10px;\n"]))),g=h.default.div(l||(l=r(["\n transition: opacity 150ms ease-in;\n"],["\n transition: opacity 150ms ease-in;\n"])));e.default=function(t){var e=t.gif,n=t.isHovered,r=t.onClick,i=(0,d.useRef)(n);return n&&(i.current=!0),e.user&&i.current?d.default.createElement(g,{style:{opacity:n?1:0}},d.default.createElement(p,null),d.default.createElement(m,{gif:e,onClick:r})):null}},61049:function(t,e,n){"use strict";
1var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Username=void 0;var o=i(n(66628)),s=i(n(67294)),a=i(n(41445));e.Username=o.default.div(c||(c=r(["\n color: white;\n font-size: 16px;\n font-weight: 700;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n -webkit-font-smoothing: antialiased;\n"],["\n color: white;\n font-size: 16px;\n font-weight: 700;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n -webkit-font-smoothing: antialiased;\n"])));var c,u,l,h=(0,o.default)(a.default)(u||(u=r(["\n margin-left: 4px;\n flex-shrink: 0;\n"],["\n margin-left: 4px;\n flex-shrink: 0;\n"]))),d=o.default.div(l||(l=r(["\n display: flex;\n align-items: center;\n min-width: 0;\n"],["\n display: flex;\n align-items: center;\n min-width: 0;\n"])));e.default=function(t){var n=t.user,r=n.display_name,i=n.username;return s.default.createElement(d,null,s.default.createElement(e.Username,null,r||"@".concat(i)),n.is_verified?s.default.createElement(h,{size:14}):null)}},41445:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(46673),o=r(n(67294)),s=function(t){var e=t.className,n=void 0===e?"":e,r=t.size,a=void 0===r?17:r,c=t.fill,u=void 0===c?"#15CDFF":c;return o.default.createElement("svg",{className:[s.className,n].join(" "),height:a,width:"19px",viewBox:"0 0 19 17"},o.default.createElement("path",{className:s.checkMarkClassName,d:"M9.32727273,9.44126709 L9.32727273,3.03016561 L6.55027155,3.03016561 L6.55027155,10.8150746 L6.55027155,12.188882 L12.1042739,12.188882 L12.1042739,9.44126709 L9.32727273,9.44126709 Z",fill:i.giphyBlack,transform:"translate(9.327273, 7.609524) scale(-1, 1) rotate(-45.000000) translate(-9.327273, -7.609524) "}),o.default.createElement("g",{transform:"translate(-532.000000, -466.000000)",fill:u},o.default.createElement("g",{transform:"translate(141.000000, 235.000000)"},o.default.createElement("g",{transform:"translate(264.000000, 0.000000)"},o.default.createElement("g",{transform:"translate(10.000000, 224.000000)"},o.default.createElement("g",{transform:"translate(114.000000, 2.500000)"},o.default.createElement("path",{d:"M15.112432,4.80769231 L16.8814194,6.87556817 L19.4157673,7.90116318 L19.6184416,10.6028916 L21.0594951,12.9065042 L19.6184416,15.2101168 L19.4157673,17.9118452 L16.8814194,18.9374402 L15.112432,21.0053161 L12.4528245,20.3611511 L9.79321699,21.0053161 L8.02422954,18.9374402 L5.48988167,17.9118452 L5.28720734,15.2101168 L3.84615385,12.9065042 L5.28720734,10.6028916 L5.48988167,7.90116318 L8.02422954,6.87556817 L9.79321699,4.80769231 L12.4528245,5.4518573 L15.112432,4.80769231 Z M17.8163503,10.8991009 L15.9282384,9.01098901 L11.5681538,13.3696923 L9.68115218,11.4818515 L7.81302031,13.3499833 L9.7011322,15.2380952 L11.5892441,17.1262071 L17.8163503,10.8991009 Z"})))))))};s.className="giphy-verified-badge",s.checkMarkClassName="giphy-verified-checkmark",e.default=s},93341:function(t,e,n){"use strict";
1var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},s=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),c=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&s(e,t,n);return a(e,t),e},u=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},l=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},h=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var d,f,p,m,g=h(n(66628)),y=n(88304),b=n(23859),v=c(n(67294)),w=n(42189),_=h(n(57218)),k=h(n(83435)),S=h(n(54943)),x=g.default.div(d||(d=r(["\n -webkit-overflow-scrolling: touch;\n overflow-x: auto;\n overflow-y: hidden;\n white-space: nowrap;\n position: relative;\n"],["\n -webkit-overflow-scrolling: touch;\n overflow-x: auto;\n overflow-y: hidden;\n white-space: nowrap;\n position: relative;\n"]))),I=(0,g.default)(k.default)(f||(f=r(["\n position: relative;\n display: inline-block;\n list-style: none;\n margin-left: ","px;\n /* make sure gifs are fully visible with a scrollbar */\n margin-bottom: 1px;\n\n &:first-of-type {\n margin-left: 0;\n }\n ."," {\n position: absolute;\n top: 0;\n left: 0;\n }\n"],["\n position: relative;\n display: inline-block;\n list-style: none;\n margin-left: ","px;\n /* make sure gifs are fully visible with a scrollbar */\n margin-bottom: 1px;\n\n &:first-of-type {\n margin-left: 0;\n }\n ."," {\n position: absolute;\n top: 0;\n left: 0;\n }\n"])),(function(t){return t.ml}
1),k.default.imgClassName),A=(0,g.default)(_.default)(p||(p=r(["\n display: inline-block;\n"],["\n display: inline-block;\n"]))),E=g.default.div(m||(m=r(["\n width: 30px;\n display: inline-block;\n opacity: ",";\n height: ","px;\n"],["\n width: 30px;\n display: inline-block;\n opacity: ",";\n height: ","px;\n"])),(function(t){return t.isFirstLoad?0:1}),(function(t){return t.height})),T=Object.freeze({gutter:6,user:{},initialGifs:[]}),P=Object.freeze({isFetching:!1,gifs:[],isLoaderVisible:!1,isDoneFetching:!1}),C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state=o(o({},P),{gifs:e.props.initialGifs||[]}),e.unmounted=!1,e.paginator=(0,y.gifPaginator)(e.props.fetchGifs,e.state.gifs),e.onLoaderVisible=function(t){e.unmounted||e.setState({isLoaderVisible:t},e.onFetch)},e.onFetch=(0,w.debounce)(100,(function(){return u(e,void 0,void 0,(function(){var t,e,n,r,i,o;return l(this,(function(s){switch(s.label){case 0:if(this.unmounted)return[2];if(t=this.state,e=t.isFetching,n=t.isLoaderVisible,r=t.gifs,e||!n)return[3,5];this.setState({isFetching:!0}),i=void 0,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.paginator()];case 2:return i=s.sent(),[3,4];case 3:return s.sent(),this.setState({isFetching:!1}),[3,4];case 4:i&&(r.length===i.length?this.setState({isDoneFetching:!0}):(this.setState({gifs:i,isFetching:!1}),(o=this.props.onGifsFetched)&&o(i),this.onFetch())),s.label=5;case 5:return[2]}}
1))}))})),e}return i(e,t),e.prototype.componentDidMount=function(){this.unmounted=!1,this.onFetch()},e.prototype.componentWillUnmount=function(){this.unmounted=!0},e.prototype.render=function(){var t=this.props,n=t.onGifVisible,r=t.onGifRightClick,i=t.gifHeight,o=t.gifWidth,s=t.gutter,a=t.className,c=void 0===a?e.className:a,u=t.onGifSeen,l=t.onGifClick,h=t.onGifKeyPress,d=t.user,f=t.overlay,p=t.hideAttribution,m=t.noLink,g=t.noResultsMessage,y=t.backgroundColor,w=t.borderRadius,_=t.tabIndex,k=void 0===_?0:_,T=t.loaderConfig,P=this.state,C=P.gifs,M=!P.isDoneFetching,O=0===C.length;return v.default.createElement(S.default,{attributes:{layout_type:"CAROUSEL"}},v.default.createElement(x,{className:c},C.map((function(t){return v.default.createElement(I,{gif:t,key:t.id,tabIndex:k,width:o||(0,b.getGifWidth)(t,i),height:i,onGifClick:l,onGifKeyPress:h,onGifSeen:u,onGifVisible:n,onGifRightClick:r,user:d,ml:s,overlay:f,hideAttribution:p,noLink:m,borderRadius:w,backgroundColor:y})})),!M&&0===C.length&&g,M&&v.default.createElement(A,{onVisibleChange:this.onLoaderVisible,config:T},v.default.createElement(E,{isFirstLoad:O,height:i}))))},e.className="giphy-carousel",e.defaultProps=T,e}(v.PureComponent);e.default=C},56292:function(t,e,n){"use strict";
1var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return s(e,t),e},c=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},u=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},l=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},h=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.EmojiVariationsList=void 0;var d,f,p,m,g,y=a(n(67294)),b=h(n(66628)),v=h(n(96613)),w=h(n(51324)),_=n(46673),k=n(23859),S=h(n(32181)),x=h(n(83435)),I=_.giphyDarkGrey,A=_.giphyCharcoal,E=b.default.div(d||(d=r(["\n align-items: center;\n background-color: ",";\n border-radius: 16px;\n display: flex;\n max-width: fit-content;\n overflow: hidden;\n padding: 4px 5px 5px 6px;\n"],["\n align-items: center;\n background-color: ",";\n border-radius: 16px;\n display: flex;\n max-width: fit-content;\n overflow: hidden;\n padding: 4px 5px 5px 6px;\n"])),(function(t){return t.backgroundColor})),T=b.default.div(f||(f=r(["\n overflow-x: auto;\n overflow-y: hidden;\n position: relative;\n -webkit-overflow-scrolling: touch;\n"],["\n overflow-x: auto;\n overflow-y: hidden;\n position: relative;\n -webkit-overflow-scrolling: touch;\n"]))),P=b.default.div(p||(p=r(["\n display: inline-flex;\n justify-content: space-between;\n overflow: hidden;\n white-space: nowrap;\n width: ",";\n"],["\n display: inline-flex;\n justify-content: space-between;\n overflow: hidden;\n white-space: nowrap;\n width: ",";\n"])),(function(t){var e=t.width;return"".concat(e,"px")})),C=b.default.div(m||(m=r(["\n background-color: ",";\n box-sizing: border-box;\n height: ",";\n margin: ",";\n width: 2px;\n"],["\n background-color: ",";\n box-sizing: border-box;\n height: ",";\n margin: ",";\n width: 2px;\n"])),(function(t){return t.color}),(function(t){var e=t.gifHeight;return"".concat(Math.round(.75*e),"px")}
1),(function(t){var e=t.gutter;return"0 ".concat(e,"px")})),M=(0,b.default)(x.default)(g||(g=r(["\n display: inline-block;\n flex-shrink: 0;\n list-style: none;\n /* make sure gifs are fully visible with a scrollbar */\n margin-bottom: 1px;\n position: relative;\n\n ."," {\n position: absolute;\n top: 0;\n left: 0;\n }\n"],["\n display: inline-block;\n flex-shrink: 0;\n list-style: none;\n /* make sure gifs are fully visible with a scrollbar */\n margin-bottom: 1px;\n position: relative;\n\n ."," {\n position: absolute;\n top: 0;\n left: 0;\n }\n"])),x.default.imgClassName);function O(t){var e,n=this,r=t.backgroundColor,o=void 0===r?I:r,s=t.className,a=t.dividerColor,h=void 0===a?A:a,d=t.fetchVariations,f=t.gif,p=t.gifHeight,m=t.GifProps,g=void 0===m?{}:m,b=t.gifWidth,_=t.gutter,x=void 0===_?6:_,R=t.hideAttribution,B=t.loader,j=t.noLink,N=t.onGifClick,L=t.onGifKeyPress,D=t.onGifRightClick,z=t.onGifSeen,F=t.onGifVisible,U=t.onVariationsFetched,W=t.overlay,G=t.tabIndex,V=void 0===G?0:G,K=t.user,H=l(t,["backgroundColor","className","dividerColor","fetchVariations","gif","gifHeight","GifProps","gifWidth","gutter","hideAttribution","loader","noLink","onGifClick","onGifKeyPress","onGifRightClick","onGifSeen","onGifVisible","onVariationsFetched","overlay","tabIndex","user"]),q=null!==(e=f.variation_count)&&void 0!==e?e:0,$=b||(0,k.getGifWidth)(f,p),Z=q*$+Math.max(0,q-1)*x,Y=(0,w.default)(d),X=(0,w.default)(U),J=(0,v.default)((function(){return c(n,void 0,void 0,(function(){var t,e,n;return u(this,(function(r){switch(r.label){case 0:return[4,Y.current(f.id)];case 1:return t=r.sent(),e=null!==(n=null===t||void 0===t?void 0:t.data)&&void 0!==n?n:[],X.current&&X.current(e),[2,e]}}))}))}),[f],{loading:!0,value:[]}),Q=J[0],tt=J[1];(0,y.useEffect)((function(){tt()}),[tt]);var et=i({backgroundColor:"transparent",height:p,hideAttribution:R,noLink:j,onGifClick:N,onGifKeyPress:L,onGifRightClick:D,onGifSeen:z,onGifVisible:F,overlay:W,tabIndex:V,user:K,width:$},g);return y.default.createElement(E,i({backgroundColor:o,className:[O.className,s].join(" ")},H),y.default.createElement(M,i({},et,{gif:f})),q?y.default.createElement(C,{className:O.dividerClassName,color:h,gifHeight:p,gutter:x}):null,y.default.createElement(T,{className:O.variationsViewportClassName},y.default.createElement(P,{className:O.variationsContainerClassName,width:Z},function(){var t;return Q.loading?B?y.default.createElement(B,{className:O.loaderClassName}):null:Q.error?y.default.createElement(S.default,{onClick:tt}):y.default.createElement(y.default.Fragment,null,(null!==(t=Q.value)&&void 0!==t?t:[]).map((function(t){return y.default.createElement(M,i({},et,{key:t.id,gif:t}))})))}())))}e.EmojiVariationsList=O,O.className="giphy-emoji-variations-list",O.dividerClassName="giphy-emoji-variations-divider",O.loaderClassName="giphy-emoji-variations-loader",O.variationsViewportClassName="giphy-emoji-variations-viewport",O.variationsContainerClassName="giphy-emoji-variations-container"},32181:function(t,e,n){"use strict";
1var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o,s=i(n(66628)),a=n(46673),c=i(n(67294)),u=s.default.div(o||(o=r(["\n color: ",";\n display: flex;\n justify-content: center;\n margin: 30px 0;\n font-family: ",";\n font-size: 16px;\n font-weight: 600;\n a {\n color: ",";\n cursor: pointer;\n &:hover {\n color: white;\n }\n }\n"],["\n color: ",";\n display: flex;\n justify-content: center;\n margin: 30px 0;\n font-family: ",";\n font-size: 16px;\n font-weight: 600;\n a {\n color: ",";\n cursor: pointer;\n &:hover {\n color: white;\n }\n }\n"])),a.giphyLightGrey,a.fontFamily.body,a.giphyBlue);e.default=function(t){var e=t.onClick;return c.default.createElement(u,null,"Error loading GIFs.\xa0",c.default.createElement("a",{onClick:e},"Try again?"))}},83435:function(t,e,n){"use strict";
1var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return s(e,t),e},c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getColor=e.GRID_COLORS=void 0;var u=n(61892),l=c(n(66628)),h=n(46673),d=n(23859),f=a(n(67294)),p=a(n(20642)),m=c(n(26150)),g=c(n(41445)),y=n(54943),b=l.default.div(w||(w=r(["\n display: block;\n &:focus {\n outline: unset;\n }\n ","\n img {\n display: block;\n }\n ."," {\n g {\n fill: white;\n }\n }\n ."," {\n opacity: 0;\n }\n"],["\n display: block;\n &:focus {\n outline: unset;\n }\n ","\n img {\n display: block;\n }\n ."," {\n g {\n fill: white;\n }\n }\n ."," {\n opacity: 0;\n }\n"])),(function(t){return t.borderRadius&&(0,u.css)(v||(v=r(["\n border-radius: ","px;\n overflow: hidden;\n "],["\n border-radius: ","px;\n overflow: hidden;\n "])),t.borderRadius)}),g.default.className,g.default.checkMarkClassName);e.GRID_COLORS=[h.giphyBlue,h.giphyGreen,h.giphyPurple,h.giphyRed,h.giphyYellow];e.getColor=function(){return e.GRID_COLORS[Math.round(Math.random()*(e.GRID_COLORS.length-1))]};var v,w,_=function(t){return f.default.createElement(b,i({as:t.href?"a":"div"},t))},k="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",S=!("undefined"===typeof window||!window.document||!window.document.createElement),x=function(){},I=function(t){var n=t.gif,r=t.width,o=t.height,s=t.onGifRightClick,a=void 0===s?x:s,c=t.className,u=void 0===c?"":c,l=t.onGifClick,h=void 0===l?x:l,g=t.onGifKeyPress,b=void 0===g?x:g,v=t.onGifSeen,w=void 0===v?x:v,A=t.onGifVisible,E=void 0===A?x:A,T=t.user,P=void 0===T?{}:T,C=t.backgroundColor,M=t.overlay,O=t.hideAttribution,R=void 0!==O&&O,B=t.noLink,j=void 0!==B&&B,N=t.borderRadius,L=void 0===N?4:N,D=t.style,z=t.tabIndex,F=(0,f.useState)(!1),U=F[
10],W=F[1],G=(0,f.useState)(!1),V=G[0],K=G[1],H=(0,f.useState)(!S),q=H[0],$=H[1],Z=(0,f.useState)(""),Y=Z[0],X=Z[1],J=(0,f.useRef)((0,e.getColor)()),Q=(0,f.useRef)(null),tt=(0,f.useRef)(null),et=(0,f.useRef)(),nt=(0,f.useRef)(),rt=(0,f.useRef)(),it=(0,f.useRef)(x),ot=(0,f.useContext)(y.PingbackContext).attributes,st=M;st||R||(st=m.default);it.current=function(t){W(!0),d.Logger.debug("GIF ".concat(n.id," seen. ").concat(n.title)),p.onGifSeen(n,null===P||void 0===P?void 0:P.id,t.boundingClientRect,ot),null===w||void 0===w||w(n,t.boundingClientRect),nt.current&&nt.current.disconnect()};var at=function(){nt.current||(nt.current=new IntersectionObserver((function(t){var e=t[0];e.isIntersecting&&it.current(e)}),{threshold:[.99]})),!U&&Q.current&&nt.current&&nt.current.observe(Q.current)};(0,f.useEffect)((function(){var t,e;(null===(t=tt.current)||void 0===t?void 0:t.complete)&&(at(),E(n)),null===(e=nt.current)||void 0===e||e.disconnect(),W(!1)}),[n.id]),(0,f.useEffect)((function(){return et.current=new IntersectionObserver((function(t){var e=t[0].isIntersecting;$(e),!e&&nt.current&&nt.current.disconnect()})),et.current.observe(Q.current),function(){et.current&&et.current.disconnect(),nt.current&&nt.current.disconnect(),rt.current&&clearTimeout(rt.current)}}),[]);var ct=o||(0,d.getGifHeight)(n,r),ut=(0,d.getBestRendition)(n.images,r,ct),lt=n.images[ut.renditionName],ht=C||(n.is_sticker?"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4AQMAAACSSKldAAAABlBMVEUhIiIWFhYoSqvJAAAAGElEQVQY02MAAv7///8PWxqIPwDZw5UGABtgwz2xhFKxAAAAAElFTkSuQmCC') 0 0":J.current);return f.default.createElement(_,{href:j?void 0:n.url,"data-giphy-id":n.id,style:i({width:r,height:ct},D),borderRadius:L,className:[I.className,u].join(" "),onMouseOver:function(t){clearTimeout(rt.current),t.persist(),K(!0),rt.current=window.setTimeout((function(){p.onGifHover(n,null===P||void 0===P?void 0:P.id,t.target,ot)}),200)},onMouseLeave:function(){clearTimeout(rt.current),K(!1)},onClick:function(t){p.onGifClick(n,null===P||void 0===P?void 0:P.id,t.target,ot),h(n,t)},onContextMenu:function(t){return a(n,t)},onKeyPress:function(t){b(n,t)},tabIndex:z},f.default.createElement("div",{style:{width:r,height:ct,position:"relative"},ref:Q},f.default.createElement("picture",null,f.default.createElement("source",{type:"image/webp",srcSet:q?lt.webp:k,suppressHydrationWarning:!0}),f.default.createElement("img",{ref:tt,suppressHydrationWarning:!0,className:[I.imgClassName,Y].join(" "),src:q?lt.url:k,style:{background:ht},width:r,height:ct,alt:(0,d.getAltText)(n),onLoad:q?function(t){at(),E(n,t),X(I.imgLoadedClassName)}:function(){}})),q?st&&f.default.createElement(st,{gif:n,isHovered:V,width:r,height:ct}):null))};I.className="giphy-gif",I.imgClassName="giphy-gif-img",I.imgLoadedClassName="giphy-img-loaded",e.default=I},41043:function(t,e,n){"use strict";
1var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},s=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),c=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&s(e,t,n);return a(e,t),e},u=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},l=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},h=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var d,f=h(n(66628)),p=n(88304),m=n(23859),g=c(n(67294)),y=n(42189),b=h(n(57218)),v=h(n(32181)),w=h(n(83435)),_=h(n(96544)),k=h(n(31378)),S=h(n(54943)),x=f.default.div(d||(d=r(["\n opacity: ",";\n"],["\n opacity: ",";\n"])),(function(t){return t.isFirstLoad?0:1})),I=Object.freeze({gutter:6,user:{},initialGifs:[]}),A=Object.freeze({isFetching:!1,isError:!1,gifWidth:0,gifs:[],isLoaderVisible:!1,isDoneFetching:!1}),E=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.state=o(o({},A),{gifs:n.props.initialGifs||[]}),n.unmounted=!1,n.paginator=(0,p.gifPaginator)(n.props.fetchGifs,n.state.gifs),n.onLoaderVisible=function(t){n.unmounted||n.setState({isLoaderVisible:t},n.onFetch)},n.fetchGifs=(0,y.debounce)(e.fetchDebounce,(function(t){return u(n,void 0,void 0,(function(){var e,n,r,i;return l(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.paginator()];case 1:return e=o.sent(),this.unmounted?[2]:[3,3];case 2:return n=o.sent(),this.unmounted?[2]:(this.setState({isFetching:!1,isError:!0}),(r=this.props.onGifsFetchError)&&r(n),[3,3]);case 3:return e&&(t===e.length?this.setState({isDoneFetching:!0}):(this.setState({gifs:e,isFetching:!1}),(i=this.props.onGifsFetched)&&i(e),this.onFetch())),[2]}}))}))})),n.onFetch=function(){return u(n,void 0,void 0,(function(){var t,e,n,r;return l(this,(function(i){return this.unmounted||(t=this.state,e=t.isFetching,n=t.
1isLoaderVisible,r=t.gifs,!e&&n&&(this.setState({isFetching:!0,isError:!1}),this.fetchGifs(r.length))),[2]}))}))},n}return i(e,t),e.prototype.componentDidMount=function(){this.unmounted=!1,this.onFetch()},e.prototype.componentWillUnmount=function(){this.unmounted=!0},e.prototype.render=function(){var t=this.props,n=t.onGifVisible,r=t.onGifRightClick,i=t.className,o=void 0===i?e.className:i,s=t.onGifSeen,a=t.onGifClick,c=t.onGifKeyPress,u=t.user,l=t.overlay,h=t.hideAttribution,d=t.noLink,f=t.borderRadius,p=t.noResultsMessage,y=t.columns,I=t.width,A=t.gutter,E=t.useTransform,T=t.columnOffsets,P=t.backgroundColor,C=t.loaderConfig,M=t.tabIndex,O=void 0===M?0:M,R=t.layoutType,B=void 0===R?"GRID":R,j=t.loader,N=void 0===j?_.default:j,L=this.state,D=L.gifWidth,z=L.gifs,F=L.isError,U=!L.isDoneFetching,W=0===z.length,G=z.map((function(t){return(0,m.getGifHeight)(t,D)}));return g.default.createElement(S.default,{attributes:{layout_type:B}},g.default.createElement("div",{className:o,style:{width:I}},g.default.createElement(k.default,{itemHeights:G,useTransform:E,itemWidth:D,columns:y,gutter:A,columnOffsets:T},z.map((function(t){return g.default.createElement(w.default,{gif:t,tabIndex:O,key:t.id,width:D,onGifClick:a,onGifKeyPress:c,onGifSeen:s,onGifVisible:n,onGifRightClick:r,user:u,overlay:l,backgroundColor:P,hideAttribution:h,noLink:d,borderRadius:f})}))),!U&&0===z.length&&p,F?g.default.createElement(v.default,{onClick:this.onFetch}):U&&g.default.createElement(b.default,{onVisibleChange:this.onLoaderVisible,config:C},g.default.createElement(x,{isFirstLoad:W},g.default.createElement(N,{className:e.loaderClassName})))))},e.className="giphy-grid",e.loaderClassName="loader",e.fetchDebounce=250,e.defaultProps=I,e.getDerivedStateFromProps=function(t,e){var n=t.columns,r=t.gutter,i=t.width,o=r*(n-1),s=Math.floor((i-o)/n);return e.gifWidth!==s?{gifWidth:s}:null},e}(g.PureComponent);e.default=E},96544:function(t,e,n){"use strict";
1var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o,s,a,c=n(61892),u=i(n(66628)),l=n(46673),h=i(n(67294)),d=(0,c.keyframes)(o||(o=r(["\n to {\n transform: scale(1.75) translateY(-20px);\n }\n"],["\n to {\n transform: scale(1.75) translateY(-20px);\n }\n"]))),f=u.default.div(s||(s=r(["\n display: flex;\n align-items: center;\n height: ","px;\n padding-top: 15px;\n margin: 0 auto;\n text-align: center;\n justify-content: center;\n animation: pulse 0.8s ease-in-out 0s infinite alternate backwards;\n"],["\n display: flex;\n align-items: center;\n height: ","px;\n padding-top: 15px;\n margin: 0 auto;\n text-align: center;\n justify-content: center;\n animation: pulse 0.8s ease-in-out 0s infinite alternate backwards;\n"])),37),p=u.default.div(a||(a=r(["\n display: inline-block;\n height: 10px;\n width: 10px;\n margin: ","px 10px 10px 10px;\n position: relative;\n box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);\n animation: "," cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.75s infinite alternate;\n background: ",";\n animation-delay: ",";\n"],["\n display: inline-block;\n height: 10px;\n width: 10px;\n margin: ","px 10px 10px 10px;\n position: relative;\n box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);\n animation: "," cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.75s infinite alternate;\n background: ",";\n animation-delay: ",";\n"])),37,d,(function(t){return t.color}),(function(t){return t.delay}));e.default=function(t){var e=t.className,n=void 0===e?"":e;return h.default.createElement(f,{className:n},h.default.createElement(p,{color:l.giphyGreen,delay:"0"}),h.default.createElement(p,{color:l.giphyBlue,delay:".1s"}),h.default.createElement(p,{color:l.giphyPurple,delay:".2s"}),h.default.createElement(p,{color:l.giphyRed,delay:".3s"}),h.default.createElement(p,{color:l.giphyYellow,delay:".4s"}))}},31378:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0});var s=o(n(67294));e.default=(0,s.memo)((function(t){var e=t.columns,n=t.gutter,r=t.useTransform,i=void 0===r||r,o=t.itemWidth,a=t.itemHeights,c=t.children,u=t.columnOffsets,l=void 0===u?[]:u,h={};return s.default.createElement("div",{style:h},function(){var t,r=function(t,e){return void 0===e&&(e=[]),Array.apply(null,Array(t)).map((function(t,n){return e[n]||0}))}(e,l),u=s.default.Children.map(c,(function(e,c){var u={position:"absolute"};t=r.indexOf(Math.min.apply(Math,r));var l="".concat(r[t],"px"),h="".concat(t*o+t*n,"px");i?u.transform="translate3d(".concat(h,", ").concat(l,", 0)"):(u.top=l,u.left=h);var d=a[c];return d&&(r[t]+=d+n),s.default.cloneElement(e,{style:u})}));return h.position="relative",h.width="".concat(e*o+(e-1)*n,"px"),h.height="".concat(Math.max.apply(Math,r)-n,"px"),u}())}))},54943:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};
1Object.defineProperty(e,"__esModule",{value:!0}),e.PingbackContext=void 0;var s=n(40227),a=o(n(67294));e.PingbackContext=(0,a.createContext)({});e.default=function(t){var n=t.attributes,r=t.children,i=(0,a.useContext)(e.PingbackContext).attributes,o=void 0===i?{}:i;return a.default.createElement(e.PingbackContext.Provider,{value:{attributes:(0,s.mergeAttributes)(o,n,"layout_type")}},r)}},47842:function(t,e,n){"use strict";var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c,u,l=n(61892),h=a(n(66628)),d=s(n(67294)),f=n(68754),p=h.default.svg(u||(u=r(["\n position: relative;\n right: 10px;\n margin-left: 5px;\n cursor: pointer;\n ",";\n"],["\n position: relative;\n right: 10px;\n margin-left: 5px;\n cursor: pointer;\n ",";\n"])),(function(t){return t.theme.hideCancelButton&&(0,l.css)(c||(c=r(["\n display: none;\n "],["\n display: none;\n "])))})),m=function(t){var e=t.width,n=void 0===e?17:e,r=t.height,i=void 0===r?17:r,o=t.setCleared,s=(0,d.useContext)(f.SearchContext),a=s.term,c=s.setActiveChannel,u=s.activeChannel;return a||u?d.default.createElement(p,{className:m.className,width:n,height:i,viewBox:"0 0 17 17",version:"1.1",xmlns:"http://www.w3.org/2000/svg",onClick:function(t){t.stopPropagation(),t.preventDefault(),o(!0),c(void 0)}},d.default.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",opacity:"0.582730817"},d.default.createElement("g",{transform:"translate(-300.000000, -150.000000)",fill:"#8E8E93",fillRule:"nonzero"},d.default.createElement("g",{transform:"translate(0.000000, 135.000000)"},d.default.createElement("g",null,d.default.createElement("g",null,d.default.createElement("g",{transform:"translate(11.000000, 13.000000)"},d.default.createElement("g",{transform:"translate(289.000000, 2.000000)"},d.default.createElement("path",{d:"M8.5,0 C3.805875,0 0,3.805875 0,8.5 C0,13.194125 3.805875,17 8.5,17 C13.194125,17 17,13.194125 17,8.5 C17,3.805875 13.194125,0 8.5,0 Z M9.50158333,8.5 C9.50158333,8.5 11.7250417,10.7234583 11.834125,10.8325417 C12.1110833,11.1095 12.1110833,11.557875 11.834125,11.834125 C11.5571667,12.1110833 11.1087917,12.1110833 10.8325417,11.834125 C10.7234583,11.72575 8.5,9.50158333 8.5,9.50158333 C8.5,9.50158333 6.27654167,11.7250417 6.16745833,11.834125 C5.8905,12.1110833 5.442125,12.1110833 5.165875,11.834125 C4.88891667,11.5571667 4.88891667,11.1087917 5.165875,10.8325417 C5.27425,10.7234583 7.49841667,8.5 7.49841667,8.5 C7.49841667,8.5 5.27495833,6.27654167 5.165875,6.16745833 C4.88891667,5.8905 4.88891667,5.442125 5.165875,5.165875 C5.44283333,4.88891667 5.89120833,4.88891667 6.16745833,5.165875 C6.27654167,5.27425 8.5,7.49841667 8.5,7.49841667 C8.5,7.49841667 10.7234583,5.27495833 10.8325417,5.165875 C11.1095,4.88891667 11.557875,4.88891667 11.834125,5.165875 C12.1110833,5.44283333 12.1110833,5.89120833 11.834125,6.16745833 C11.72575,6.27654167 9.50158333,8.5 9.50158333,8.5 Z",opacity:"0.75"}))))))))):null};m.className="giphy-search-bar-cancel",e.default=m},68754:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n
1);return o(e,t),e},a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},c=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e._SearchContext=e.SearchContext=void 0;var l=n(61892),h=n(88304),d=s(n(67294)),f=u(n(54943)),p=n(48021);e.SearchContext=(0,d.createContext)({}),e._SearchContext=(0,d.createContext)({});var m=[],g={data:[],pagination:{total_count:0,count:0,offset:0},meta:{status:200,msg:"OK",response_id:""}};e.default=function(t){var n,i,o=t.children,s=t.options,u=void 0===s?{}:s,y=t.apiKey,b=t.theme,v=t.initialTerm,w=void 0===v?"":v,_=t.initialChannel,k=t.shouldDefaultToTrending,S=void 0===k||k,x=t.shouldFetchChannels,I=void 0===x||x,A=(0,d.useMemo)((function(){return new h.GiphyFetch(y)}),[y]),E=(0,d.useState)([]),T=E[0],P=E[1],C=(0,d.useState)(w),M=C[0],O=C[1],R=(0,d.useState)(w),B=R[0],j=R[1],N=(0,d.useState)(!1),L=N[0],D=N[1],z=(0,d.useState)(_),F=z[0],U=z[1],W=(0,d.useCallback)((function(t){O(""),U(t)}),[]),G=(0,d.useState)([]),V=G[0],K=G[1],H=(0,d.useState)(!1),q=H[0],$=H[1],Z=[M,u.type,(null===(n=null===F||void 0===F?void 0:F.user)||void 0===n?void 0:n.username)||""].filter((function(t){return!!t})).join(" / "),Y=(0,d.useCallback)((function(t){return a(void 0,void 0,void 0,(function(){var e,n;return c(this,(function(i){switch(i.label){case 0:return D(!0),e=g,M?[4,A.search(M,r(r({},u),{offset:t,channel:null===(n=null===F||void 0===F?void 0:F.user)||void 0===n?void 0:n.username}))]:[3,2];case 1:return e=i.sent(),[3,4];case 2:return S?[4,A.trending(r(r({},u),{offset:t}))]:[3,4];case 3:e=i.sent(),i.label=4;case 4:return D(!1),[2,e]}}))}))}),[null===(i=null===F||void 0===F?void 0:F.user)||void 0===i?void 0:i.username,A,u,M,S]),X=(0,d.useCallback)((function(t){return a(void 0,void 0,void 0,(function(){var e,n;return c(this,(function(r){switch(r.label){case 0:return e=u.limit||50,[4,A.animate(M,{offset:t,limit:e})];case 1:return(n=r.sent()).pagination||(n.pagination={count:e,total_count:e,offset:t}),[2,n]}}))}))}),[A,u.limit,M]),J=(0,d.useCallback)((function(t){return a(void 0,void 0,void 0,(function(){var e;return c(this,(function(n){switch(n.label){case 0:return e=0===M.indexOf("@")?M.split(" ")[0]:M,[4,A.channels(e,{offset:t})];case 1:return[2,n.sent().data]}}))}))}),[A,M]);return(0,d.useEffect)((function(){a(void 0,void 0,void 0,(function(){var t;return c(this,(function(e){switch(e.label){case 0:return[4,(0,h.request)("trending/searches?api_key=".concat(y))];case 1:return t=e.sent().data,K(t||[]),[2]}}))}))}),[y]),(0,d.useEffect)((function(){var t=T.find((function(t){var e=t.slug;return 0===M.indexOf("@".concat(e," "))}));t&&U(t)}),[M,T,U]),(0,d.useEffect)((function(){if(I){!F&&M.replace("@","")&&a(void 0,void 0,void 0,(function(){var t;return c(this,(function(e){switch(e.label){case 0:return[4,J(0)];case 1:return t=e.sent(),P(t||m),[2]}}))}))}}),[M,F]),d.default.createElement(e.SearchContext.Provider,{value:{activeChannel:F,setChannels:P,currentChannels:T,setActiveChannel:W,fetchChannelSearch:J,term:M,trendingSearches:V,setSearch:j,fetchGifs:Y,fetchAnimatedText:X,searchKey:Z,isFetching:L,isFocused:q}},d.default.createElement(e._SearchContext.Provider,{value:{setIsFocused:$,_setSearch:O,_inputValOverride:B}},d.default.createElement(l.ThemeProvider,{theme:(0,p.initTheme)(b)},d.default.createElement(f.default,{attributes:{layout_type:"SEARCH"}},o))))}},57190:function(t,e,n){"use strict";
1var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(61892),u=a(n(66628)),l=n(46673),h=s(n(67294)),d=a(n(8275)),f=a(n(47842)),p=n(68754),m=a(n(46864)),g=a(n(95799)),y=n(48021);var b,v,w,_=u.default.div(b||(b=r(["\n display: flex;\n background: white;\n align-items: center;\n border-radius: 4px;\n ","\n"],["\n display: flex;\n background: white;\n align-items: center;\n border-radius: 4px;\n ","\n"])),(function(t){return(0,y.getSize)(t.theme)})),k=u.default.input(w||(w=r(["\n background: ",";\n box-sizing: border-box;\n border: 0;\n appearance: none;\n font-weight: normal;\n font-family: interface, Helvetica Neue, helvetica, sans-serif;\n outline: 0;\n font-size: 15px;\n padding: 0 10px;\n border-radius: 0;\n text-overflow: ellipsis;\n color: ",";\n &::placeholder {\n color: ",";\n }\n min-width: 150px;\n flex: 1;\n ","\n"],["\n background: ",";\n box-sizing: border-box;\n border: 0;\n appearance: none;\n font-weight: normal;\n font-family: interface, Helvetica Neue, helvetica, sans-serif;\n outline: 0;\n font-size: 15px;\n padding: 0 10px;\n border-radius: 0;\n text-overflow: ellipsis;\n color: ",";\n &::placeholder {\n color: ",";\n }\n min-width: 150px;\n flex: 1;\n ","\n"])),(function(t){return"dark"===t.theme.mode?l.giphyCharcoal:l.giphyWhite}),(function(t){return"dark"===t.theme.mode?l.giphyWhite:l.giphyBlack}),(function(t){return t.theme.mode,l.giphyLightGrey}),(function(t){return t.isUsernameSearch&&(0,c.css)(v||(v=r(["\n color: ",";\n "],["\n color: ",";\n "])),l.giphyIndigo)})),S=function(t){var e=t.className,n=t.placeholder,r=void 0===n?"Search GIPHY":n,i=t.clear,o=void 0!==i&&i,s=t.autoFocus,a=t.searchDebounce,c=void 0===a?500:a,u=t.onEnter,l=(0,h.useContext)(p.SearchContext),y=l.activeChannel,b=l.setActiveChannel,v=l.term,w=l.setChannels,x=(0,h.useContext)(p._SearchContext),I=x.setIsFocused,A=x._inputValOverride,E=x._setSearch,T=(0,h.useState)(v),P=T[0],C=T[1];(0,d.default)((function(){return E(P)}),c,[P]);var M=(0,h.useRef)(null),O=function(t){var e=(0,h.useRef)(t);return(0,h.useEffect)((function(){e.current=t})),e.current}(y),R=(0,h.useState)(o),B=R[0],j=R[1];(0,h.useEffect)((function(){var t;s&&(null===(t=M.current)||void 0===t||t.focus())}),[s]),(0,h.useEffect)((function(){var t;y&&!O&&(null===(t=M.current)||void 0===t||t.focus(),C(" "===P?"":P.replace(/@?\w*\s?/,"")))}),[P,y,O]),(0,h.useEffect)((function(){j(o)}),[o]),(0,h.useEffect)((function(){C(A)}),[A,C]);return h.default.createElement(_,{className:[S.className,e].join(" ")},h.default.createElement(m.default,null),h.default.createElement(k,{isUsernameSearch:0===v.indexOf("@"),onChange:function(t){var e=t.target.value;B&&""===e||(j(!1),C(e))},onFocus:function(){I(!0)},onBlur:function(){I(!1)},value:B?"":P,placeholder:y?"Search ".concat(y.display_name):r,autoCapitalize:"off",autoCorrect:"off",autoComplete:"off",ref:M,onKeyUp:function(t){switch(t.keyCode||t.key){case 27:case"Escape":b(void 0),w([]);break;case 13:case"Enter":null===u||void 0===u||u(P)}},onKeyDown:function(t){switch(t.keyCode||t.key){case 8:case"Backspace":""===P&&(b(void 0),w([]))}}}),h.default.createElement(f.default,{setCleared:function(){return C("")}}),h.default.createElement(g.default,null))};S.className="giphy-search-bar",e.default=S},46864:function(t,e,n){"use strict";
1var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c,u,l,h,d=n(61892),f=a(n(66628)),p=n(46673),m=s(n(67294)),g=a(n(3474)),y=a(n(41445)),b=n(68754),v=function(t){return t.searchbarHeight-12},w=function(t){return t.smallSearchbarHeight-6},_=function(t){return(0,d.keyframes)(c||(c=r(["\nto {\n width: ","px;\n}\n"],["\nto {\n width: ","px;\n}\n"])),t)},k=(0,f.default)(g.default)(u||(u=r(["\n height: ","px;\n margin: 0;\n width: 0;\n animation: "," 100ms ease-in-out forwards;\n @media (",") {\n height: ","px;\n animation: "," 100ms ease-in-out forwards;\n }\n"],["\n height: ","px;\n margin: 0;\n width: 0;\n animation: "," 100ms ease-in-out forwards;\n @media (",") {\n height: ","px;\n animation: "," 100ms ease-in-out forwards;\n }\n"])),(function(t){return v(t.theme)}),(function(t){return _(v(t.theme))}),(function(t){return t.theme.condensedMediaQuery}),(function(t){return w(t.theme)}),(function(t){return _(w(t.theme))})),S=f.default.div(l||(l=r(["\n background: ",";\n display: flex;\n align-items: center;\n padding-left: ","px;\n"],["\n background: ",";\n display: flex;\n align-items: center;\n padding-left: ","px;\n"])),(function(t){return"dark"===t.theme.mode?p.giphyCharcoal:p.giphyWhite}),6),x=f.default.div(h||(h=r(["\n background: ",";\n display: flex;\n padding: 0 4px;\n color: ",";\n font-family: interface, Helvetica Neue, helvetica, sans-serif;\n font-weight: 600;\n font-size: 12px;\n align-items: center;\n height: ","px;\n @media (",") {\n display: none;\n }\n"],["\n background: ",";\n display: flex;\n padding: 0 4px;\n color: ",";\n font-family: interface, Helvetica Neue, helvetica, sans-serif;\n font-weight: 600;\n font-size: 12px;\n align-items: center;\n height: ","px;\n @media (",") {\n display: none;\n }\n"])),p.giphyWhiteSmoke,p.giphyDarkCharcoal,(function(t){return v(t.theme)}),(function(t){return t.theme.condensedMediaQuery}));e.default=function(t){var e=t.className,n=void 0===e?"":e,r=(0,m.useContext)(b.SearchContext).activeChannel;return r?m.default.createElement(S,{className:n},m.default.createElement(k,{user:r.user}),m.default.createElement(x,{key:r.id},m.default.createElement("div",null,"@",r.user.username),r.user.is_verified&&m.default.createElement(y.default,{size:14}))):null}},95799:function(t,e,n){"use strict";
1var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c,u,l,h,d,f,p,m,g=n(61892),y=a(n(66628)),b=s(n(67294)),v=a(n(34899)),w=n(68754),_=a(n(1877)),k=n(48021),S="#9933FF",x="#FF6666",I="cubic-bezier(0.920, 0.240, 0.185, 0.730)",A=(0,g.keyframes)(c||(c=r(["\n 0% {\n transform: rotate(34deg) translate(-10px, 80px);\n };\n \n 100% {\n transform: rotate(34deg) translate(-10px, -20px);\n }\n"],["\n 0% {\n transform: rotate(34deg) translate(-10px, 80px);\n };\n \n 100% {\n transform: rotate(34deg) translate(-10px, -20px);\n }\n"]))),E=(0,g.keyframes)(u||(u=r(["\n 0% { \n transform: translate(0px, 0px);\n opacity: 0;\n }\n 50% {\n opacity: 1;\n }\n 100% {\n transform: translate(10px, -17px);\n opacity: 0;\n }\n"],["\n 0% { \n transform: translate(0px, 0px);\n opacity: 0;\n }\n 50% {\n opacity: 1;\n }\n 100% {\n transform: translate(10px, -17px);\n opacity: 0;\n }\n"]))),T=(0,g.keyframes)(l||(l=r(["\n 0% {\n opacity: 0;\n transform: translateX(-400%);\n }\n 50% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n transform: translateX(0);\n }\n"],["\n 0% {\n opacity: 0;\n transform: translateX(-400%);\n }\n 50% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n transform: translateX(0);\n }\n"]))),P=y.default.div(h||(h=r(["\n display: flex;\n justify-content: center;
1\n align-items: center;\n position: relative;\n cursor: pointer;\n @media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {\n display: none;\n }\n ","\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n cursor: pointer;\n @media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {\n display: none;\n }\n ","\n"])),(function(t){return(0,k.getSize)(t.theme,!0)})),C=y.default.div(d||(d=r(["\n position: absolute;\n height: 100%;\n width: 100%;\n background: linear-gradient(45deg, "," 0%, "," 100%);\n border-radius: 4px;\n overflow: hidden;\n &:before {\n animation: "," "," linear 0s infinite;\n background-image: linear-gradient(45deg, "," 0%, "," 50%, "," 100%);\n background-size: 400%;\n background-position: 0% 100%;\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n width: 400%;\n }\n"],["\n position: absolute;\n height: 100%;\n width: 100%;\n background: linear-gradient(45deg, "," 0%, "," 100%);\n border-radius: 4px;\n overflow: hidden;\n &:before {\n animation: "," "," linear 0s infinite;\n background-image: linear-gradient(45deg, "," 0%, "," 50%, "," 100%);\n background-size: 400%;\n background-position: 0% 100%;\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n width: 400%;\n }\n"])),S,x,T,"2s",S,x,S),M=y.default.div(f||(f=r(["\n width: 100%;\n height: 100%;\n position: absolute;\n overflow: hidden;\n &::after {\n content: '+';\n color: white;\n font-family: 'SS Standard';\n font-size: 8px;\n position: absolute;\n top: 65%;\n left: 66%;\n animation: "," 1s "," 0s 1 forwards;\n }\n"],["\n width: 100%;\n height: 100%;\n position: absolute;\n overflow: hidden;\n &::after {\n content: '+';\n color: white;\n font-family: 'SS Standard';\n font-size: 8px;\n position: absolute;\n top: 65%;\n left: 66%;\n animation: "," 1s "," 0s 1 forwards;\n }\n"])),E,I),O=y.default.div(p||(p=r(["\n position: absolute;\n width: 200%;\n height: 20px;\n background: rgba(255, 255, 255, 0.5);\n transform: rotate(34deg) translate(-10px, -20px);\n animation: "," 1s "," 0s 1;\n filter: blur(1px);\n"],["\n position: absolute;\n width: 200%;\n height: 20px;\n background: rgba(255, 255, 255, 0.5);\n transform: rotate(34deg) translate(-10px, -20px);\n animation: "," 1s "," 0s 1;\n filter: blur(1px);\n"])),A,I),R=(0,y.default)(_.default)(m||(m=r(["\n z-index: 1;\n display: flex;\n width: 60%;\n height: 60%;\n"],["\n z-index: 1;\n display: flex;\n width: 60%;\n height: 60%;\n"])));e.default=function(){var t=(0,b.useContext)(w.SearchContext).isFetching,e=(0,v.default)(t,1e3);return b.default.createElement(P,null,b.default.createElement(C,null),b.default.createElement(R,null),e&&b.default.createElement(M,null,b.default.createElement(O,null)))}},1877:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(67294));e.default=function(t){var e=t.className,n=void 0===e?"":e;return i.default.createElement("svg",{viewBox:"0 0 30 30",version:"1.1",className:n},i.default.createElement("defs",null,i.default.createElement("path",{d:"M11.5482521,20.4090671 L4.24727698,28.2009189 C3.68084207,28.8054377 2.73159653,28.8363108 2.12707771,28.2698759 C1.5225589,27.703441 1.4916858,26.7541954 2.0581207,26.1496766 L9.40599838,18.3077689 C7.95982241,16.4371424 7.0978836,14.0789715 7.0978836,11.5181818 C7.0978836,5.44914339 11.9392549,0.518181818 17.9252787,0.518181818 C23.9113026,0.518181818 28.7526738,5.44914339 28.7526738,11.5181818 C28.7526738,17.5872202 23.9113026,22.5181818 17.9252787,22.5181818 C15.539851,22.5181818 13.3361963,21.7351359 11.5482521,20.4090671 Z M17.9252787,19.5181818 C22.242011,19.5181818 25.7526738,15.9425536 25.7526738,11.5181818 C25.7526738,7.09381 22.242011,3.51818182 17.9252787,3.51818182 C13.6085464,3.51818182 10.0978836,7.09381 10.0978836,11.5181818 C10.0978836,15.9425
1536 13.6085464,19.5181818 17.9252787,19.5181818 Z",id:"giphy-search-icon-path-1"})),i.default.createElement("g",{id:"search",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.default.createElement("g",{id:"icons/search"},i.default.createElement("mask",{id:"giphy-search-icon-mask-2",fill:"white"},i.default.createElement("use",{xlinkHref:"#giphy-search-icon-path-1"})),i.default.createElement("use",{id:"Mask",fill:"#FFFFFF",fillRule:"nonzero",xlinkHref:"#giphy-search-icon-path-1"}),i.default.createElement("g",{mask:"url(#giphy-search-icon-mask-2)"},i.default.createElement("g",{transform:"translate(0.250000, 0.250000)"},i.default.createElement("g",null))))))}},32489:function(t,e,n){"use strict";var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c,u=a(n(66628)),l=s(n(67294)),h=n(68754),d=n(48021),f=n(81367),p=u.default.div(c||(c=r(["\n display: flex;\n color: white;\n flex-direction: row;\n font-family: 'interface';\n font-weight: 600;\n font-size: 14px;\n -webkit-overflow-scrolling: touch;\n overflow-x: auto;\n overflow-y: hidden;\n padding-bottom: 10px;\n ","\n"],["\n display: flex;\n color: white;\n flex-direction: row;\n font-family: 'interface';\n font-weight: 600;\n font-size: 14px;\n -webkit-overflow-scrolling: touch;\n overflow-x: auto;\n overflow-y: hidden;\n padding-bottom: 10px;\n ","\n"])),(function(t){return(0,d.getSize)(t.theme)})),m=function(){var t=(0,l.useContext)(h.SearchContext),e=t.trendingSearches,n=t.currentChannels;return l.default.createElement(p,{className:m.className},n.length>0?n.map((function(t){return l.default.createElement(f.ChannelPill,{key:t.id,channel:t})})):e.map((function(t){return l.default.createElement(f.TrendingSearchPill,{key:t,trendingSearch:t})})))};m.className="giphy-suggestion-bar",e.default=m},81367:function(t,e,n){"use strict";
1var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.TrendingSearchPill=e.ChannelPill=void 0;var c=n(46673),u=s(n(67294)),l=a(n(3474)),h=a(n(41445)),d=n(68754),f=n(48021),p=a(n(13461)),m=a(n(66628)),g=m.default.div(w||(w=r(["\n background: ",";\n display: flex;\n padding-right: 4px;\n align-items: center;\n margin-right: ","px;\n cursor: pointer;\n"],["\n background: ",";\n display: flex;\n padding-right: 4px;\n align-items: center;\n margin-right: ","px;\n cursor: pointer;\n"])),c.giphyDarkestGrey,9),y=m.default.div(_||(_=r(["\n background: ",";\n display: flex;\n padding: 14px;\n align-items: center;\n margin-right: ","px;\n white-space: nowrap;\n cursor: pointer;\n font-style: italic;\n border-radius: 20px;\n"],["\n background: ",";\n display: flex;\n padding: 14px;\n align-items: center;\n margin-right: ","px;\n white-space: nowrap;\n cursor: pointer;\n font-style: italic;\n border-radius: 20px;\n"])),c.giphyDarkestGrey,9),b=(0,m.default)(l.default)(k||(k=r(["\n ","\n"],["\n ","\n"])),(function(t){return(0,f.getSize)(t.theme,!0)})),v=(0,m.default)(p.default)(S||(S=r(["\n margin-right: 2px;\n"],["\n margin-right: 2px;\n"])));e.ChannelPill=function(t){var e=t.channel,n=(0,u.useContext)(d.SearchContext).setActiveChannel;return u.default.createElement(g,{key:e.id,onClick:function(){return n(e)}},u.default.createElement(b,{user:e.user}),u.default.createElement("div",null,"@",e.user.username),e.user.is_verified&&u.default.createElement(h.default,{size:14}))};var w,_,k,S;e.TrendingSearchPill=function(t){var e=t.trendingSearch,n=(0,u.useContext)(d.SearchContext).setSearch;return u.default.createElement(y,{key:e,onClick:function(){return n(e)}},u.default.createElement(v,{size:16}),e)}},13461:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(67294));e.default=function(t){var e=t.size,n=void 0===e?18:e,r=t.className;return i.default.createElement("svg",{width:n,height:n,viewBox:"0 0 18 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:r},i.default.createElement("g",{id:"trending",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.default.createElement("g",null,i.default.createElement("rect",{id:"Rectangle",stroke:"#979797",fill:"#D8D8D8",opacity:"0",x:"0.5",y:"0.5",width:"17",height:"17"}),i.default.createElement("path",{d:"M12.6093329,3.12057664 L15.156896,3.12057664 L9.64199318,9.04253019 L6.88133868,6.8175119 C6.7544587,6.67603813 6.56616874,6.60087259 6.38404017,6.61897279 C6.2490402,6.63288422 6.11891631,6.69661171 6.02063992,6.79697337 C2.21226835,10.5943119 0.308082561,12.4929812 0.308082561,12.4929812 C0.308082561,12.4929812 0.527106106,12.8074292 0.710953088,13.0215425 C0.833517743,13.1642848 0.975497751,13.3098497 1.13689311,13.4582373 L6.47329888,8.13191205 L9.16381134,10.2953038 C9.40800276,10.5710787 9.68933701,10.7021044 10.019278,10.4570223 L16.0239805,4.04474473 C16.0239805,5.87956383 16.0239805,6.79697337 16.0239805,6.79697337 C16.0239805,6.79697337 16.4320205,6.79697337 17.2481004,6.79697337 L17.2481004,1.80604505 C14.1555887,1.80604505 12.6093329,1.80604505 12.6093329,1.80604505 C12.6093329,1.80604505 12.6093329,2.24422225 12.6093329,3.12057664 Z",id:"Shape",stroke:"#00CCFF",strokeWidth:"0.4",fill:"#00CCFF",fillRule:"nonzero",transform:"translate(8.778091, 7.632141) rotate(-2.000000) translate(-8.778091, -7.632141) "}))))}},48021:function(t,e,n){"use strict";
1var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.getSize=e.initTheme=void 0;var o=n(61892);e.initTheme=function(t){return i({mode:"light",searchbarHeight:42,smallSearchbarHeight:35,condensedMediaQuery:(null===t||void 0===t?void 0:t.condensedMode)?"max-width: 99999px":"max-width: 480px",hideCancelButton:!1},t)};var s,a,c;e.getSize=function(t,e){return void 0===e&&(e=!1),(0,o.css)(c||(c=r(["\n height: ","px;\n ",";\n @media (",") {\n height: ","px;\n ",";\n }\n"],["\n height: ","px;\n ",";\n @media (",") {\n height: ","px;\n ",";\n }\n"])),t.searchbarHeight,e&&(0,o.css)(s||(s=r(["\n width: ","px;\n "],["\n width: ","px;\n "])),t.searchbarHeight),t.condensedMediaQuery,t.smallSearchbarHeight,e&&(0,o.css)(a||(a=r(["\n width: ","px;\n "],["\n width: ","px;\n "])),t.smallSearchbarHeight))}},4211:function(t,e,n){"use strict";
1var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o,s,a,c=i(n(66628)),u=i(n(67294)),l=i(n(3474)),h=i(n(61049)),d=i(n(97421)),f=c.default.div(o||(o=r(["\n display: flex;\n align-items: center;\n font-family: interface, helvetica, arial;\n cursor: pointer;\n"],["\n display: flex;\n align-items: center;\n font-family: interface, helvetica, arial;\n cursor: pointer;\n"]))),p=(0,c.default)(l.default)(s||(s=r(["\n flex-shrink: 0;\n"],["\n flex-shrink: 0;\n"]))),m=c.default.div(a||(a=r(["\n display: flex;\n flex-direction: column;\n"],["\n display: flex;\n flex-direction: column;\n"]))),g=function(t){var e=t.gif,n=t.className,r=t.onClick,i=e.user;return(null===i||void 0===i?void 0:i.username)||(null===i||void 0===i?void 0:i.display_name)?u.default.createElement(f,{className:[g.className,n].join(" "),onClick:function(t){if(t.preventDefault(),t.stopPropagation(),r)r(e);else{var n=i.profile_url;n&&window.open(n,"_blank")}}},u.default.createElement(p,{user:i}),u.default.createElement(m,null,u.default.createElement(d.default,{onClick:function(t){t.preventDefault(),t.stopPropagation(),r?r(e):e.url&&window.open(e.url,"_blank")}}),u.default.createElement(h.default,{user:i}))):null};g.className="giphy-attribution",e.default=g},97421:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(67294));e.default=function(t){var e=t.onClick;return i.default.createElement("svg",{width:"66px",height:"13px",viewBox:"0 0 66 13",onClick:e},i.default.createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},i.default.createElement("g",{transform:"translate(-1060.000000, -462.000000)",fill:"#FFFFFF",fillRule:"nonzero"},i.default.createElement("g",{transform:"translate(931.000000, 286.375671)"},i.default.createElement("g",{transform:"translate(86.000000, 136.124329)"},i.default.createElement("path",{d:"M47.968,49.1962322 C49.588,49.1962322 51.052,48.6202322 51.58,47.5522322 L51.58,43.8202322 L47.476,43.8202322 L47.476,45.6802322 L49.6,45.6802322 L49.6,46.7602322 C49.12,47.1082322 48.424,47.1922322 47.98,47.1922322 C46.288,47.1922322 45.724,45.8602322 45.724,44.7802322 C45.724,43.1362322 46.612,42.3202322 47.98,42.3202322 C48.544,42.3202322 49.288,42.4762322 49.9,43.0522322 L51.28,41.6842322 C50.176,40.5682322 49.144,40.3282322 47.98,40.3282322 C44.824,40.3282322 43.384,42.5842322 43.384,44.7802322 C43.384,46.9762322 44.644,49.1962322 47.968,49.1962322 Z M54.928,48.9682322 L54.928,40.5682322 L52.564,40.5682322 L52.564,48.9682322 L54.928,48.9682322 Z M58.648,48.9682322 L58.648,46.7002322 L60.352,46.7002322 C62.596,46.6762322 63.724,45.3442322 63.724,43.6282322 C63.724,41.9842322 62.608,40.5682322 60.352,40.5682322 L56.272,40.5682322 L56.272,48.9682322 L58.648,48.9682322 Z M60.352,44.6962322 L58.648,44.6962322 L58.648,42.6082322 L60.352,42.6082322 C61,42.6082322 61.348,43.1122322 61.348,43.6642322 C61.348,44.2162322 61.012,44.6962322 60.352,44.6962322 Z M66.796,48.9802322 L66.796,45.8002322 L69.82,45.8002322 L69.82,48.9802322 L72.172,48.9802322 L72.172,40.5802322 L69.82,40.5802322 L69.82,43.7722322 L66.796,43.7722322 L66.796,40.5802322 L64.42,40.5802322 L64.42,48.9802322 L66.796,48.9802322 Z M78.16,48.9682322 L78.16,45.6202322 L81.496,40.6762322 L81.496,40.5682322 L78.82,40.5682322 L77.008,43.4482322 L75.268,40.5682322 L72.592,40.5682322 L72.592,40.6642322 L75.784,45.6202322 L75.784,48.9682322 L78.16,48.9682322 Z M87.796,49.1362322 C88.972,49.1362322 90.088,48.7402322 90.952,47.8882322 L90.028,46.9642322 C89.44,47.5522322 88.576,47.8762322 87.796,47.8762322 C85.624,47.8762322 84.712,46.3522322 84.7,44.8162322 C84.688,43.2682322 85.66,41.6962322 87.796,41.6962322 C88.576,41.6962322 89.368,41.9722322 89.968,42.5602322 L90.868,41.6962322 C90.016,40.8442322 88.924,40.4242322 87.796,40.4242322 C84.796,40.4242322 83.356,42.6202322 83.3679256,44.8282322 C83.38,47.0362322 84.748,49.1362322 87.796,49.1362322 Z M93.028,48.9682322 L93.028,40.5802322 L91.792,40.5802322 L91.792,48.9682322 L93.028,48.9682322 Z M94.252,41.3122322 C94.252,42.3322322 95.788,42.3322322 95.788,41.3122322 C95.788,40.3042322 94.252,40.3042322 94.252,41.3122322 Z M95.632,48.9682322 L95.632,43.0282322 L94.396,43.0282322 L94.396,48.9682322 L95.632,48.9682322 Z M98.188,51.7162322 L98.188,48.1042322 C98.632,48.8362322 99.556,49.1002322 100.276,49.1002322 C102.112,49.1002322 103.264,47.8042322 103.264,46.0162322 C103.264,44.2282322 102.04,42.9442322 100.276,42.9322322 C99.484,42.9322322 98.644,43.2922322 98.188,44.0122322 L98.116,43.0522322 L96.952,43.0522322 L96.952,51.7162322 L98.188,51.7162322 Z M100.156,47.9002322 C99.076,47.9002322 98.296,47.0722322 98.296,46.0162322 C98.296,44.9602322 99.016,44.1322322 100.156,44.1322322 C101.284,44.1322322 102.028,44.9002322 102.028,46.0162322 C102.028,47.1202322 101.236,47.9002322 100.156,47.9002322 Z M106.456,49.1482322 C107.992,49.1482322 108.964,48.3802322 108.976,47.2762322 C108.988,45.7522322 107.56,45.5122322 106.468,45.4162322 C105.712,45.3442322 105.196,45.1522322 105.184,44.6602322 C105.184,44.1922322 105.688,43.9402322 106.444,43.9522322 C107.032,43.9522322 107.536,44.0722322 108.004,44.5042322 L108.7,43.6882322 C108.04,43.1002322 107.332,42.8962322 106.42,42.8962322 C105.316,42.8962322 103.96,43.3882322 103.96,44.6962322 C103.972,46.0042322 105.256,46.3642322 106.372,46.4722322 C107.248,46.5562322 107.752,46.7602322 107.74,47.2882322 C107.728,47.8402322 107.068,48.0562322 106.48,48.0562322 C105.784,48.0442322 104.956,47.7922322 104.404,47.1802322 L103.756,48.0562322 C104.536,48.9322322 105.496,49.1482322 106.456,49.1482322 Z",id:"GIPHYClips"}))))))}},6943:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1Object.defineProperty(e,"__esModule",{value:!0}),e.PauseIcon=e.PlayIcon=e.PlayPauseSize=void 0;var i=r(n(67294));e.PlayPauseSize=25;e.PlayIcon=function(t){var n=t.size,r=void 0===n?e.PlayPauseSize:n;return i.default.createElement("svg",{height:r,viewBox:"15.39 10.84 18.21 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i.default.createElement("g",{fillRule:"evenodd",fill:"none"},i.default.createElement("path",{fill:"#fff",d:"M15.836 10.842c.135 0 .27.04.404.12L33.444 22.86c.107.087.161.19.161.311 0 .12-.054.224-.161.31-11.649 7.575-17.528 11.362-17.64 11.362a.632.632 0 0 1-.41-.13l.025-23.75a.804.804 0 0 1 .417-.12z"})))};e.PauseIcon=function(t){var n=t.size,r=void 0===n?e.PlayPauseSize:n;return i.default.createElement("svg",{height:r,viewBox:"0.92 0.92 23.54 24",width:r,xmlns:"http://www.w3.org/2000/svg"},i.default.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.default.createElement("g",{id:"Group",transform:"translate(0.916948, 0.916948)",fill:"#FFFFFF",fillRule:"nonzero"},i.default.createElement("path",{d:"M0,23.2 L0,0.8 C0,0.3581722 0.3581722,0 0.8,0 L8.2,0 C8.64182776,0 9,0.3581722 9,0.8 L9,23.2 C9,23.6418278 8.64182776,24 8.2,24 L0.8,24 C0.3581722,24 0,23.6418278 0,23.2 Z",id:"Path"}),i.default.createElement("path",{d:"M14.5408163,23.2 L14.5408163,0.8 C14.5408163,0.3581722 14.8989886,0 15.3408163,0 L22.7408163,0 C23.1826441,0 23.5408163,0.3581722 23.5408163,0.8 L23.5408163,23.2 C23.5408163,23.6418278 23.1826441,24 22.7408163,24 L15.3408163,24 C14.8989886,24 14.5408163,23.6418278 14.5408163,23.2 Z",id:"Path"}))))}},82517:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.VolumeOffIcon=e.VolumeOnIcon=e.VolumeSize=void 0;var i=r(n(67294));e.VolumeSize=25;e.VolumeOnIcon=function(t){var n=t.size,r=void 0===n?e.VolumeSize:n,o=t.onClick,s=void 0===o?function(){}:o;return i.default.createElement("svg",{width:r,height:r,viewBox:"0 0 26 23",onClick:s},i.default.createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},i.default.createElement("g",{transform:"translate(1.000000, 0.000000)",fill:"#FFF",fillRule:"nonzero"},i.default.createElement("path",{d:"M11.9625091,0.572584405 L11.9625091,22.2272644 C11.9625091,22.4856644 11.8466091,22.6635044 11.6151891,22.7611644 C11.3480491,22.8413444 11.1390491,22.7968844 10.9878091,22.6277844 L4.8732291,15.9143244 L0.573909096,15.9143244 C0.413549096,15.9143244 0.277509096,15.8588444 0.166549096,15.7475044 C0.0573082348,15.6406091 -0.00292164572,15.4933347 -1.77635684e-15,15.3405244 L-1.77635684e-15,7.45058441 C-1.77635684e-15,7.29022441 0.0555890961,7.15456441 0.167309096,7.04322441 C0.278269096,6.93226441 0.414309096,6.87640441 0.573909096,6.87640441 L4.8732291,6.87640441 L10.9874291,0.172064405 C11.1390491,0.00296440549 11.3484291,-0.0414955945 11.6151891,0.0386844055 C11.8466091,0.136344405 11.9621291,0.314564405 11.9621291,0.572584405 L11.9625091,0.572584405 Z"}),i.default.createElement("path",{d:"M15.7579491,16.0914044 L14.6798891,13.6594044 C15.5739159,13.2635547 16.1503537,12.3776671 16.1501091,11.3999244 C16.150386,10.4242626 15.5763999,9.53983269 14.6852091,9.14272441 L15.7697291,6.71376441 C17.6193585,7.53872062 18.810518,9.37466359 18.8101092,11.3999244 C18.8105521,13.4298903 17.6139475,15.2691931 15.7579491,16.0914044 L15.7579491,16.0914044 Z"}),i.default.createElement("path",{d:"M18.3647491,20.2619044 L17.2863091,17.8299044 C19.8302925,16.7031661 21.4705725,14.1822599 21.4701091,11.3999244 C21.4701091,8.59818441 19.8167291,6.09892441 17.3022691,4.97678441 L18.3864091,2.54782441 C21.8804724,4.10607079 24.1307363,7.57414217 24.1301093,11.3999244 C24.1308375,15.2343934 21.8705556,18.7086904 18.3647491,20.2619044 Z"}))))};e.VolumeOffIcon=function(t){var n=t.size,r=void 0===n?e.VolumeSize:n,o=t.onClick,s=void 0===o?function(){}:o;return i.default.createElement("svg",{onClick:s,height:r,width:r,viewBox:"0 0 26 23",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i.default.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},i.default.createElement("g",{id:"Group",transform:"translate(1.
1000000, 0.000000)",fill:"#FFFFFF",fillRule:"nonzero"},i.default.createElement("path",{d:"M11.9625091,0.572584405 L11.9625091,22.2272644 C11.9625091,22.4856644 11.8466091,22.6635044 11.6151891,22.7611644 C11.3480491,22.8413444 11.1390491,22.7968844 10.9878091,22.6277844 L4.8732291,15.9143244 L0.573909096,15.9143244 C0.413549096,15.9143244 0.277509096,15.8588444 0.166549096,15.7475044 C0.0573082348,15.6406091 -0.00292164572,15.4933347 0,15.3405244 L0,7.45058441 C0,7.29022441 0.0555890961,7.15456441 0.167309096,7.04322441 C0.278269096,6.93226441 0.414309096,6.87640441 0.573909096,6.87640441 L4.8732291,6.87640441 L10.9874291,0.172064405 C11.1390491,0.00296440549 11.3484291,-0.0414955945 11.6151891,0.0386844055 C11.8466091,0.136344405 11.9621291,0.314564405 11.9621291,0.572584405 L11.9625091,0.572584405 Z",id:"Path"})),i.default.createElement("g",{id:"Group",transform:"translate(14.887009, 6.947630)",fill:"#FFFFFF",fillRule:"nonzero"},i.default.createElement("path",{d:"M7.88199149,6.27905236 C7.94693088,6.35707599 7.94693088,6.47033309 7.88199149,6.54835671 L6.54835671,7.88199149 C6.47033309,7.94693088 6.35707599,7.94693088 6.27905236,7.88199149 L3.96534802,5.56828715 L1.65164367,7.88199149 C1.57362004,7.94693088 1.46036294,7.94693088 1.38233932,7.88199149 L0.0487045381,6.54835671 C-0.016234846,6.47033309 -0.016234846,6.35707599 0.0487045381,6.27905236 L2.36240889,3.96534802 L0.0487045381,1.65164367 C-0.016234846,1.57362004 -0.016234846,1.46036294 0.0487045381,1.38233932 L1.38233932,0.0487045381 C1.46036294,-0.016234846 1.57362004,-0.016234846 1.65164367,0.0487045381 L3.96534802,2.36240889 L6.27905236,0.0487045381 C6.35707599,-0.016234846 6.47033309,-0.016234846 6.54835671,0.0487045381 L7.88199149,1.38233932 C7.94693088,1.46036294 7.94693088,1.57362004 7.88199149,1.65164367 L5.56828715,3.96534802 L7.88199149,6.27905236 Z",id:"Shape"}))))}},42228:function(t,e,n){"use strict";
1var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return s(e,t),e},c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u,l,h,d,f,p,m=c(n(66628)),g=n(23859),y=a(n(67294)),b=c(n(55799)),v=c(n(4211)),w=n(82517),_=c(n(72743)),k=c(n(71353)),S=m.default.div(u||(u=r(["\n position: relative;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: black;\n font-family: interface, helvetica, arial;\n -webkit-font-smoothing: antialiased;\n"],["\n position: relative;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: black;\n font-family: interface, helvetica, arial;\n -webkit-font-smoothing: antialiased;\n"]))),x=m.default.div(l||(l=r(["\n display: flex;\n justify-content: center;
1\n align-items: center;\n position: relative;\n cursor: pointer;\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n cursor: pointer;\n"]))),I=m.default.div(h||(h=r(["\n position: absolute;\n top: 10px;\n right: 10px;\n left: 10px;\n bottom: 0;\n display: flex;\n justify-content: space-between;\n opacity: ",";\n transition: opacity ease-out 250ms;\n align-items: flex-start;\n"],["\n position: absolute;\n top: 10px;\n right: 10px;\n left: 10px;\n bottom: 0;\n display: flex;\n justify-content: space-between;\n opacity: ",";\n transition: opacity ease-out 250ms;\n align-items: flex-start;\n"])),(function(t){return t.isHovered?1:0})),A=m.default.div(d||(d=r(["\n font-size: 22px;\n color: white;\n margin-bottom: 5px;\n font-weight: bold;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n user-select: none;\n cursor: pointer;\n"],["\n font-size: 22px;\n color: white;\n margin-bottom: 5px;\n font-weight: bold;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n user-select: none;\n cursor: pointer;\n"]))),E=m.default.div(f||(f=r(["\n position: relative;\n min-width: 0;\n"],["\n position: relative;\n min-width: 0;\n"]))),T=m.default.div(p||(p=r(["\n &:before {\n background: linear-gradient(rgba(18, 18, 18, 0.6), rgba(0, 0, 0, 0));\n content: '';\n height: ","px;\n left: 0;\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 100%;\n }\n &:after {\n background: linear-gradient(rgba(0, 0, 0, 0), rgba(18, 18, 18, 0.6));\n content: '';\n height: ","px;\n left: 0;\n pointer-events: none;\n position: absolute;\n bottom: 0;\n width: 100%;\n }\n"],["\n &:before {\n background: linear-gradient(rgba(18, 18, 18, 0.6), rgba(0, 0, 0, 0));\n content: '';\n height: ","px;\n left: 0;\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 100%;\n }\n &:after {\n background: linear-gradient(rgba(0, 0, 0, 0), rgba(18, 18, 18, 0.6));\n content: '';\n height: ","px;\n left: 0;\n pointer-events: none;\n position: absolute;\n bottom: 0;\n width: 100%;\n }\n"])),(function(t){return t.isLargePlayer?125:75}),(function(t){return t.isLargePlayer?125:75})),P=function(t){var e=t.width,n=t.hideMute,r=t.hideAttribution,o=t.hideProgressBar,s=t.className,a=t.persistentControls,c=t.gif,u=t.overlay,l=(0,y.useState)(!1),h=l[0],d=l[1],f=(0,y.useState)(null),p=f[0],m=f[1],P=(0,y.useState)(t.muted),C=P[0],M=P[1],O=(0,y.useState)(!1),R=O[0],B=O[1],j=t.setVideoEl,N=t.onMuted,L=t.onUserMuted,D=t.height||(0,g.getGifHeight)(c,e),z=(0,b.default)((function(){d(!1)}),4e3),F=z[1],U=z[2],W=(0,y.useCallback)((function(t){null===N||void 0===N||N(t),B(t)}),[B,N]),G=(0,y.useCallback)((function(t){null===j||void 0===j||j(t),m(t)}),[j,m]);(0,y.useEffect)((function(){M(t.muted)}),[t.muted]);var V=a||h,K=D>=300;return(0,y.useEffect)((function(){return V?U():F(),function(){return F()}}),[V,F,U]),y.default.createElement(S,{className:s,style:{width:e,height:D},onMouseOver:function(){return d(!0)},onMouseLeave:function(){return d(!1)},onMouseMove:function(){d(!0),U()},onClick:function(t){null===L||void 0===L||L(!(C||R)),null===p||void 0===p||p.play(),t.preventDefault(),R?(B(!1),M(!1)):M(!C)}},y.default.createElement(k.default,i({},t,{onMuted:W,setVideoEl:G,muted:C})),V&&y.default.createElement(T,{isLargePlayer:K}),y.default.createElement(I,{isHovered:V},y.default.createElement(E,null,K&&y.default.createElement(A,{onClick:function(t){t.preventDefault(),t.stopPropagation(),window.open(c.url,"_blank")}},c.title),p&&!r?y.default.createElement(v.default,{gif:c}):null),!n&&y.default.createElement(x,null,C||R?y.default.createElement(w.VolumeOffIcon,null):y.default.createElement(w.VolumeOnIcon,null))),V&&!o&&p?y.default.createElement(_.default,{videoEl:p}):null,u&&y.default.createElement(u,{gif:c,isHovered:h,width:e,height:D}))};e.default=function(t){return t.overlay&&!t.controls&&console.warn("".concat(g.Logger.PREFIX,": Overlays only work when controls are enabled")),t.controls?y.default.createElement(P,i({},t)):y.default.createElement(k.default,i({},t))}},72743:function(t,e,n){"use strict";
1var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o,s=i(n(66628)),a=n(46673),c=i(n(67294)),u=i(n(90899)),l=s.default.div(o||(o=r(["\n background: ",";\n height: ","px;\n position: absolute;\n width: 5px;\n bottom: 0;\n left: 0;\n opacity: 0.95;\n"],["\n background: ",";\n height: ","px;\n position: absolute;\n width: 5px;\n bottom: 0;\n left: 0;\n opacity: 0.95;\n"])),a.giphyWhite,(function(t){return t.barHeight}));e.default=function(t){var e=t.videoEl;(0,u.default)(2147483647,100);var n=(null===e||void 0===e?void 0:e.currentTime)||0,r=(null===e||void 0===e?void 0:e.duration)||0,i=n/r,o=Math.round(100*i),s=5;return(null===e||void 0===e?void 0:e.height)<200?s=3:(null===e||void 0===e?void 0:e.height)<300&&(s=4),o=r<10&&o>98?100:o,c.default.createElement(l,{style:{width:"".concat(o,"%")},barHeight:s,className:"hide-in-percy"})}},66953:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shouldFireQuartile=e.getErrorMessage=void 0;e.getErrorMessage=function(t,e){switch(void 0===e&&(e=""),t){case 1:return"Aborted. The fetching process for the media resource was aborted by the user agent at the user's request.";case 2:return"Network Error. A network error of some description caused the user agent to stop fetching the media resource, after the resource was established to be usable.";case 3:return"Decode Error. An error of some description occurred while decoding the media resource, after the resource was established to be usable.";case 4:return'Can not play a video of type "'.concat(e.split(".").pop(),'" on this platform.');default:return""}};e.shouldFireQuartile=function(t,e,n,r,i){var o=i+t;return!r.has(o)&&n>0&&e>n*t&&(r.add(o),!0)}},27754:function(t,e,n){"use strict";
1var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return s(e,t),e},c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u,l,h,d=c(n(66628)),f=a(n(67294)),p=c(n(42228)),m=n(82517),g=d.default.div(u||(u=r(["\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n height: 100%;\n width: 100%;\n"],["\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n height: 100%;\n width: 100%;\n"]))),y=(0,d.default)(p.default)(l||(l=r(["\n height: 100%;\n display: inline-block;\n object-fit: fill;\n pointer-events: none;\n background: rgb(0, 0, 0, 0);\n"],["\n height: 100%;\n display: inline-block;\n object-fit: fill;\n pointer-events: none;\n background: rgb(0, 0, 0, 0);\n"]))),b=d.default.div(h||(h=r(["\n position: absolute;\n top: 6px;\n right: 6px;\n cursor: pointer;\n opacity: ",";\n transition: opacity ease-out 800ms;\n"],["\n position: absolute;\n top: 6px;\n right: 6px;\n cursor: pointer;\n opacity: ",";\n transition: opacity ease-out 800ms;\n"])),(function(t){return t.isHovered?1:.8})),v="giphy-video-overlay-button",w=function(t){var e=t.muted,n=t.toggleMute,r=t.mutedByBrowser,i=t.isHovered;return f.default.createElement(b,{className:v,onClick:function(t){t.preventDefault(),t.stopPropagation(),n()},isHovered:i},e||r||!i?f.default.createElement(m.VolumeOffIcon,null):f.default.createElement(m.VolumeOnIcon,null))},_=function(t){var e=t.gif,n=t.isHovered,r=t.hideMuteButton,o=t.width,s=t.height,a=t.className,c=t.muted,u=void 0!==c&&c,l=t.onUserMuted,h=(0,f.useState)(u),d=h[0],p=h[1],m=(0,f.useState)(!1),b=m[0],v=m[1];(0,f.useEffect)((function(){p(u)}),[u,p]);var _={toggleMute:function(){b?(v(!1),p(!1)):(null===l||void 0===l||l(!d),p(!d))},muted:d,mutedByBrowser:b};return f.default.createElement(g,{className:a},n&&f.default.createElement(y,{gif:e,key:e.id,loop:!0,controls:!0,hideAttribution:!0,hideMute:!0,persistentControls:!0,muted:d,width:o,height:s,onMuted:v}),!r&&f.default.createElement(w,i({},_,{isHovered:n})))};_.imgClassName=v,e.default=_},71353:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
1function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(e,"__esModule",{value:!0});var c=n(40227),u=n(23859),l=o(n(67294)),h=n(66953),d=[.25,.5,.75],f="giphy-video",p=1,m=function(t){var e,n,r,i=t.muted,o=t.ccEnabled,m=void 0!==o&&o,g=t.ccLanguage,y=void 0===g?"en":g,b=t.loop,v=void 0===b||b,w=t.onStateChange,_=t.onTimeUpdate,k=t.onCanPlay,S=t.onFirstPlay,x=t.onWaiting,I=t.onMuted,A=t.onError,E=t.onEnded,T=t.onLoop,P=t.onQuartile,C=t.onEndFullscreen,M=t.setVideoEl,O=t.gif,R=t.width,B=t.height,j=t.volume,N=void 0===j?.7:j,L=t.className,D=void 0===L?f:L,z=B||(0,u.getGifHeight)(O,R),F=(0,l.useState)((0,u.getBestVideo)(O.video,R,z)),U=F[0],W=F[1],G=(0,l.useRef)(0);U||console.warn("GiphyJS No video content for id: ".concat(O.id));var V=(0,l.useRef)(Date.now()),K=(0,l.useRef)(!1),H=(0,l.useRef)(0),q=(0,l.useRef)(0),$=(0,l.useRef)(new Set);(0,l.useEffect)((function(){V.current=Date.now(),K.current=!1,H.current=1,q.current=0,$.current=new Set}),[O.id]);var Z=(0,l.useRef)(null);(0,l.useEffect)((function(){var t=(0,u.getBestVideo)(O.video,R,z);Z.current&&(null===U||void 0===U?void 0:U.url)&&t.url!==U.url&&(-1!==U.url.indexOf(String(O.id))&&(G.current=Z.current.currentTime),W(t))}),[R,B,O.video,z,null===U||void 0===U?void 0:U.url,O.id]),(0,l.useEffect)((function(){Z.current&&(null===U||void 0===U?void 0:U.url)&&G.current&&(Z.current.currentTime=G.current,G.current=0)}),[null===U||void 0===U?void 0:U.url,G]);var Y=(0,l.useCallback)((function(){var t,e=Z.current,n=null===(t=null===e||void 0===e?void 0:e.error)||void 0===t?void 0:t.code;if(n&&(null===e||void 0===e?void 0:e.src)){var r=(0,h.getErrorMessage)(n,null===e||void 0===e?void 0:e.src);console.error(r),null===A||void 0===A||A(n)}}),[A]),X=(0,l.useCallback)((function(){null===w||void 0===w||w("playing"),K.current||(K.current=!0,O.analytics_response_payload&&(0,c.pingback)({actionType:"START",analyticsResponsePayload:O.analytics_response_payload}),null===S||void 0===S||S(Date.now()-V.current))}),[S,w,O]),J=(0,l.useCallback)((function(){return null===w||void 0===w?void 0:w("paused")}),[w]),Q=(0,l.useCallback)((function(){var t=Z.current;if(t){var e=t.currentTime;d.some((function(n){return!!(0,h.shouldFireQuartile)(n,e,t.duration,$.current,H.current)&&(null===P||void 0===P||P(n),!0)})),null===_||void 0===_||_(e||0)}}),[P,_]),tt=(0,l.useCallback)((function(){return null===k||void 0===k?void 0:k()}),[k]),et=(0,l.useCallback)((function(){var t=Z.current;0!==(null===t||void 0===t?void 0:t.currentTime)&&(null===t||void 0===t?void 0:t.networkState)!==p&&(null===x||void 0===x||x(++q.current))}),[x]),nt=(0,l.useCallback)((function(){K.current&&(v&&Z.current&&Z.current.play(),null===T||void 0===T||T(H.current),H.current=H.current+1,null===E||void 0===E||E())}),[E,v,T]),rt=(0,l.useCallback)((function(){return null===C||void 0===C?void 0:C()}),[C]),it=(0,l.useCallback)((function(t){return s(void 0,void 0,void 0,(function(){var e;return a(this,(function(n){switch(n.label){case 0:if(!t)return[3,4];if(void 0===(e=t.play()))return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,e];case 2:return n.sent(),null===I||void 0===I||I(!1),[3,4];case 3:return n.sent(),t.muted=!0,null===I||void 0===I||I(!0),t.play(),[3,4];case 4:return[2]}}
1))}))}),[I]);(0,l.useEffect)((function(){var t=Z.current;t&&(it(t),null===M||void 0===M||M(t),isNaN(N)||(t.volume=N))}),[]),(0,l.useEffect)((function(){var t=Z.current;return t&&(t.addEventListener("play",X),t.addEventListener("pause",J),t.addEventListener("error",Y),t.addEventListener("timeupdate",Q),t.addEventListener("canplay",tt),t.addEventListener("ended",nt),t.addEventListener("waiting",et),t.addEventListener("webkitendfullscreen",rt)),function(){t&&(t.removeEventListener("play",X),t.removeEventListener("pause",J),t.removeEventListener("error",Y),t.removeEventListener("timeupdate",Q),t.removeEventListener("canplay",tt),t.removeEventListener("ended",nt),t.removeEventListener("waiting",et),t.removeEventListener("webkitendfullscreen",rt))}}),[X,J,Y,Q,tt,nt,et,rt]);var ot=null===(r=null===(n=null===(e=O.video)||void 0===e?void 0:e.captions)||void 0===n?void 0:n[y])||void 0===r?void 0:r.vtt;return(null===U||void 0===U?void 0:U.url)?l.default.createElement("video",{crossOrigin:"anonymous",draggable:!0,className:D,width:R,height:z,muted:i,autoPlay:!0,playsInline:!0,ref:Z,src:null===U||void 0===U?void 0:U.url,"data-giphy-id":O.id},m&&ot&&l.default.createElement("track",{label:"English",kind:"subtitles",srcLang:y,src:ot,default:!0})):null};m.className=f,e.default=m},74522:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.EmojiVariationsList=e.VideoOverlay=e.Video=e.SuggestionBar=e.SearchContext=e.SearchContextManager=e.SearchBar=e.PingbackContext=e.Loader=e.Grid=e.Gif=e.Carousel=e.VerifiedBadge=e.AttributionOverlay=e.Attribution=void 0;var s=n(23859);n(66337);var a=n(45087);Object.defineProperty(e,"Attribution",{enumerable:!0,get:function(){return o(a).default}});var c=n(26150);Object.defineProperty(e,"AttributionOverlay",{enumerable:!0,get:function(){return o(c).default}});var u=n(41445);Object.defineProperty(e,"VerifiedBadge",{enumerable:!0,get:function(){return o(u).default}});var l=n(93341);Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return o(l).default}});var h=n(83435);Object.defineProperty(e,"Gif",{enumerable:!0,get:function(){return o(h).default}});var d=n(41043);Object.defineProperty(e,"Grid",{enumerable:!0,get:function(){return o(d).default}});var f=n(96544);Object.defineProperty(e,"Loader",{enumerable:!0,get:function(){return o(f).default}});var p=n(54943);Object.defineProperty(e,"PingbackContext",{enumerable:!0,get:function(){return p.PingbackContext}});var m=n(57190);Object.defineProperty(e,"SearchBar",{enumerable:!0,get:function(){return o(m).default}});var g=n(68754);Object.defineProperty(e,"SearchContextManager",{enumerable:!0,get:function(){return o(g).default}}),Object.defineProperty(e,"SearchContext",{enumerable:!0,get:function(){return g.SearchContext}});var y=n(32489);Object.defineProperty(e,"SuggestionBar",{enumerable:!0,get:function(){return o(y).default}});var b=n(42228);Object.defineProperty(e,"Video",{enumerable:!0,get:function(){return o(b).default}}),i(n(6943),e),i(n(82517),e);var v=n(27754);Object.defineProperty(e,"VideoOverlay",{enumerable:!0,get:function(){return o(v).default}});var w=n(56292);Object.defineProperty(e,"EmojiVariationsList",{enumerable:!0,get:function(){return w.EmojiVariationsList}});var _=n(30673).i8;(0,s.appendGiphySDKRequestHeader)("X-GIPHY-SDK-NAME","ReactSDK"),(0,s.appendGiphySDKRequestHeader)("X-GIPHY-SDK-VERSION",_)},57218:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};
1Object.defineProperty(e,"__esModule",{value:!0});var s=o(n(67294));e.default=function(t){var e=t.children,n=t.className,r=t.onVisibleChange,i=t.config,o=(0,s.useRef)(null);return(0,s.useEffect)((function(){var t;return o.current&&(t=new IntersectionObserver((function(t){var e=t[0];r&&r(e.isIntersecting)}),i),t.observe(o.current)),function(){return null===t||void 0===t?void 0:t.disconnect()}}),[r,o,i]),s.default.createElement("div",{ref:o,className:n},e)}},20642:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.onGifHover=e.onGifClick=e.onGifSeen=void 0;var i=n(40227),o=n(23859),s=function(t){return function(e,n,s,a){void 0===a&&(a={}),e.analytics_response_payload&&(0,i.pingback)({analyticsResponsePayload:e.analytics_response_payload,userId:n,actionType:t,attributes:r({position:JSON.stringify((0,o.getClientRect)(s))},a)})}};e.onGifSeen=function(t,e,n,o){void 0===o&&(o={}),t.analytics_response_payload&&(0,i.pingback)({analyticsResponsePayload:t.analytics_response_payload,userId:e,actionType:"SEEN",attributes:r({position:JSON.stringify(n)},o)})},e.onGifClick=s("CLICK"),e.onGifHover=s("HOVER")},10158:function(t,e,n){"use strict";n.d(e,{Z:function(){return it}});var r=function(){function t(t){var e=this;this._insertTag=function(t){var n;n=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,n),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(e);try{n.insertRule(t,n.cssRules.length)}catch(r){0}}else e.appendChild(document.createTextNode(t));this.ctr++}
vendor: 4,325 bytes, line 1
1,e.flush=function(){this.tags.forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),this.tags=[],this.ctr=0},t}(),i=Math.abs,o=String.fromCharCode,s=Object.assign;function a(t){return t.trim()}function c(t,e,n){return t.replace(e,n)}function u(t,e){return t.indexOf(e)}function l(t,e){return 0|t.charCodeAt(e)}function h(t,e,n){return t.slice(e,n)}function d(t){return t.length}function f(t){return t.length}function p(t,e){return e.push(t),t}var m=1,g=1,y=0,b=0,v=0,w="";function _(t,e,n,r,i,o,s){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:m,column:g,length:s,return:""}}function k(t,e){return s(_("",null,null,"",null,null,0),t,{length:-t.length},e)}function S(){return v=b>0?l(w,--b):0,g--,10===v&&(g=1,m--),v}function x(){return v=b<y?l(w,b++):0,g++,10===v&&(g=1,m++),v}function I(){return l(w,b)}function A(){return b}function E(t,e){return h(w,t,e)}function T(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function P(t){return m=g=1,y=d(w=t),b=0,[]}function C(t){return w="",t}function M(t){return a(E(b-1,B(91===t?t+2:40===t?t+1:t)))}function O(t){for(;(v=I())&&v<33;)x();return T(t)>2||T(v)>3?"":" "}function R(t,e){for(;--e&&x()&&!(v<48||v>102||v>57&&v<65||v>70&&v<97););return E(t,A()+(e<6&&32==I()&&32==x()))}function B(t){for(;x();)switch(v){case t:return b;case 34:case 39:34!==t&&39!==t&&B(v);break;case 40:41===t&&B(t);break;case 92:x()}return b}function j(t,e){for(;x()&&t+v!==57&&(t+v!==84||47!==I()););return"/*"+E(e,b-1)+"*"+o(47===t?t:x())}function N(t){for(;!T(I());)x();return E(t,b)}var L="-ms-",D="-moz-",z="-webkit-",F="comm",U="rule",W="decl",G="@keyframes";function V(t,e){for(var n="",r=f(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function K(t,e,n,r){switch(t.type){case"@import":case W:return t.return=t.return||t.value;case F:return"";case G:return t.return=t.value+"{"+V(t.children,r)+"}";case U:t.value=t.props.join(",")}return d(n=V(t.children,r))?t.return=t.value+"{"+n+"}":""}function H(t){return C(q("",null,null,null,[""],t=P(t),0,[0],t))}function q(t,e,n,r,i,s,a,h,f){for(var m=0,g=0,y=a,b=0,v=0,w=0,_=1,k=1,E=1,T=0,P="",C=i,B=s,L=r,D=P;k;)switch(w=T,T=x()){case 40:if(108!=w&&58==l(D,y-1)){-1!=u(D+=c(M(T),"&","&\f"),"&\f")&&(E=-1);break}case 34:case 39:case 91:D+=M(T);break;case 9:case 10:case 13:case 32:D+=O(w);break;case 92:D+=R(A()-1,7);continue;case 47:switch(I()){case 42:case 47:p(Z(j(x(),A()),e,n),f);break;default:D+="/"}break;case 123*_:h[m++]=d(D)*E;case 125*_:case 59:case 0:switch(T){case 0:case 125:k=0;case 59+g:v>0&&d(D)-y&&p(v>32?Y(D+";",r,n,y-1):Y(c(D," ","")+";",r,n,y-2),f);break;case 59:D+=";";default:if(p(L=$(D,e,n,m,g,i,h,P,C=[],B=[],y),s),123===T)if(0===g)q(D,e,L,L,C,s,y,h,B);else switch(99===b&&110===l(D,3)?100:b){case 100:case 109:case 115:q(t,L,L,r&&p($(t,L,L,0,0,i,h,P,i,C=[],y),B),i,B,y,h,r?C:B);break;default:q(D,L,L,L,[""],B,0,h,B)}}m=g=v=0,_=E=1,P=D="",y=a;break;case 58:y=1+d(D),v=w;default:if(_<1)if(123==T)--_;else if(125==T&&0==_++&&125==S())continue;switch(D+=o(T),T*_){case 38:E=g>0?1:(D+="\f",-1);break;case 44:h[m++]=(d(D)-1)*E,E=1;break;case 64:45===I()&&(D+=M(x())),b=I(),g=y=d(P=D+=N(A())),T++;break;case 45:45===w&&2==d(D)&&(_=0)}}return s}function $(t,e,n,r,o,s,u,l,d,p,m){for(var g=o-1,y=0===o?s:[""],b=f(y),v=0,w=0,k=0;v<r;++v)for(var S=0,x=h(t,g+1,g=i(w=u[v])),I=t;S<b;++S)(I=a(w>0?y[S]+" "+x:c(x,/&\f/g,y[S])))&&(d[k++]=I);return _(t,e,n,0===o?U:l,d,p,m)}function Z(t,e,n){return _(t,e,n,F,o(v),h(t,2,-2),0)}function Y(t,e,n,r){return _(t,e,n,W,h(t,0,r),h(t,r+1,-1),r)}var X=function(t,e,n){for(var r=0,i=0;r=i,i=I(),38===r&&12===i&&(e[n]=1),!T(i);)x();return E(t,b)},J=function(t,e){return C(function(t,e){var n=-1,r=44;do{switch(T(r)){case 0:38===r&&12===I()&&(e[n]=1),t[n]+=X(b-1,e,n);break;case 2:t[n]+=M(r);break;case 4:if(44===r){t[++n]=58===I()?"&\f":"",e[n]=t[n].length;break}default:t[n]+=o(r)}}while(r=x());return t}(P(t),e))},Q=new WeakMap,tt=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,n=t.parent,r=t.column===n.column&&t.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||Q.get(n))&&!r){Q.set(t,!0);
vendor: 2,343 bytes, line 1
1for(var i=[],o=J(e,i),s=n.props,a=0,c=0;a<o.length;a++)for(var u=0;u<s.length;u++,c++)t.props[c]=i[a]?o[a].replace(/&\f/g,s[u]):s[u]+" "+o[a]}}},et=function(t){if("decl"===t.type){var e=t.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(t.return="",t.value="")}};function nt(t,e){switch(function(t,e){return 45^l(t,0)?(((e<<2^l(t,0))<<2^l(t,1))<<2^l(t,2))<<2^l(t,3):0}(t,e)){case 5103:return"-webkit-print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return z+t+D+t+L+t+t;case 6828:case 4268:return z+t+L+t+t;case 6165:return z+t+L+"flex-"+t+t;case 5187:return z+t+c(t,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+t;case 5443:return z+t+L+"flex-item-"+c(t,/flex-|-self/,"")+t;case 4675:return z+t+L+"flex-line-pack"+c(t,/align-content|flex-|-self/,"")+t;case 5548:return z+t+L+c(t,"shrink","negative")+t;case 5292:return z+t+L+c(t,"basis","preferred-size")+t;case 6060:return"-webkit-box-"+c(t,"-grow","")+z+t+L+c(t,"grow","positive")+t;case 4554:return z+c(t,/([^-])(transform)/g,"$1-webkit-$2")+t;case 6187:return c(c(c(t,/(zoom-|grab)/,"-webkit-$1"),/(image-set)/,"-webkit-$1"),t,"")+t;case 5495:case 3959:return c(t,/(image-set\([^]*)/,"-webkit-$1$`$1");case 4968:return c(c(t,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+t+t;case 4095:case 3583:case 4068:case 2532:return c(t,/(.+)-inline(.+)/,"-webkit-$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-e>6)switch(l(t,e+1)){case 109:if(45!==l(t,e+4))break;case 102:return c(t,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==l(t,e+3)?"$3":"$2-$3"))+t;case 115:return~u(t,"stretch")?nt(c(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==l(t,e+1))break;case 6444:switch(l(t,d(t)-3-(~u(t,"!important")&&10))){case 107:return c(t,":",":-webkit-")+t;case 101:return c(t,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===l(t,14)?"inline-":"")+"box$3$1"+"-webkit-$2$3$1"+"-ms-$2box$3")+t}break;case 5936:switch(l(t,e+11)){case 114:return z+t+L+c(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
1case 108:return z+t+L+c(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return z+t+L+c(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return z+t+L+t+t}return t}var rt=[function(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case W:t.return=nt(t.value,t.length);break;case G:return V([k(t,{value:c(t.value,"@","@-webkit-")})],r);case U:if(t.length)return function(t,e){return t.map(e).join("")}(t.props,(function(e){switch(function(t,e){return(t=e.exec(t))?t[0]:t}(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return V([k(t,{props:[c(e,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return V([k(t,{props:[c(e,/:(plac\w+)/,":-webkit-input-$1")]}),k(t,{props:[c(e,/:(plac\w+)/,":-moz-$1")]}),k(t,{props:[c(e,/:(plac\w+)/,"-ms-input-$1")]})],r)}return""}))}}],it=function(t){var e=t.key;if("css"===e){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t),t.setAttribute("data-s",""))}))}var i=t.stylisPlugins||rt;var o,s,a={},c=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),(function(t){for(var e=t.getAttribute("data-emotion").split(" "),n=1;n<e.length;n++)a[e[n]]=!0;c.push(t)}));var u,l,h=[K,(l=function(t){u.insert(t)},function(t){t.root||(t=t.return)&&l(t)})],d=function(t){var e=f(t);return function(n,r,i,o){for(var s="",a=0;a<e;a++)s+=t[a](n,r,i,o)||"";return s}}([tt,et].concat(i,h));s=function(t,e,n,r){u=n,V(H(t?t+"{"+e.styles+"}":e.styles),d),r&&(p.inserted[e.name]=!0)};var p={key:e,sheet:new r({key:e,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:s};return p.sheet.hydrate(c),p}},42748:function(t,e,n){"use strict";n.d(e,{C:function(){return m},E:function(){return T},T:function(){return b},_:function(){return g},a:function(){return v},b:function(){return _},c:function(){return A},d:function(){return k},h:function(){return f},u:function(){return x},w:function(){return y}});var r=n(67294),i=n.t(r,2),o=n(10158),s=n(73749),a=function(t){var e=new WeakMap;return function(n){if(e.has(n))return e.get(n);var r=t(n);return e.set(n,r),r}},c=n(8679),u=n.n(c),l=function(t,e){return u()(t,e)},h=n(70444),d=n(81245),f={}.hasOwnProperty,p=(0,r.createContext)("undefined"!==typeof HTMLElement?(0,o.Z)({key:"css"}):null);var m=p.Provider,g=function(){return(0,r.useContext)(p)},y=function(t){return(0,r.forwardRef)((function(e,n){var i=(0,r.useContext)(p);return t(e,i,n)}))},b=(0,r.createContext)({});var v=function(){return(0,r.useContext)(b)},w=a((function(t){return a((function(e){return function(t,e){return"function"===typeof e?e(t):(0,s.Z)({},t,e)}(t,e)}))})),_=function(t){var e=(0,r.useContext)(b);return t.theme!==e&&(e=w(e)(t.theme)),(0,r.createElement)(b.Provider,{value:e},t.children)};function k(t){var e=t.displayName||t.name||"Component",n=function(e,n){var i=(0,r.useContext)(b);return(0,r.createElement)(t,(0,s.Z)({theme:i,ref:n},e))},i=(0,r.forwardRef)(n);return i.displayName="WithTheme("+e+")",l(i,t)}var S=i.useInsertionEffect?i.useInsertionEffect:function(t){t()};function x(t){S(t)}var I="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",A=function(t,e){var n={};for(var r in e)f.call(e,r)&&(n[r]=e[r]);return n[I]=t,n},E=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;(0,h.hC)(e,n,r);x((function(){return(0,h.My)(e,n,r)}));return null},T=y((function(t,e,n){var i=t.css;"string"===typeof i&&void 0!==e.registered[i]&&(i=e.registered[i]);var o=t[I],s=[i],a="";"string"===typeof t.className?a=(0,h.fp)(e.registered,s,t.className):null!=t.className&&(a=t.className+" ");var c=(0,d.O)(s,void 0,(0,r.useContext)(b));a+=e.key+"-"+c.name;var u={};for(var l in t)f.call(t,l)&&"css"!==l&&l!==I&&(u[l]=t[l]);return u.ref=n,u.className=a,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(E,{cache:e,serialized:c,isStringTag:"string"===typeof o}),(0,r.createElement)(o,u))}))},61892:function(t,e,n){"use strict";var r;n.r(e),n.d(e,{CacheProvider:function(){return o.C},ClassNames:function(){return g},Global:function(){return l},ThemeContext:function(){return o.T},ThemeProvider:function(){return o.b},__unsafe_useEmotionCache:function(){return o._},createElement:function(){return c},css:function(){return h},jsx:function(){return c},keyframes:function(){return d},useTheme:function(){return o.a},withEmotionCache:function(){return o.w},withTheme:function(){return o.d}});var i=n(67294),o=(n(10158),n(42748)),s=(n(8679),n(70444)),a=n(81245),c=function(t,e){var n=arguments;if(null==e||!o.h.call(e,"css"))return i.createElement.apply(void 0,n);var r=n.length,s=new Array(r);s[0]=o.E,s[1]=(0,o.c)(t,e);for(var a=2;a<r;a++)s[a]=n[a];return i.createElement.apply(null,s)},u=(r||(r=n.t(i,2))).useInsertionEffect?(r||(r=n.t(i,2))).useInsertionEffect:i.useLayoutEffect,l=(0,o.w)((function(t,e){var n=t.styles,r=(0,a.O)([n],void 0,(0,i.useContext)(o.T)),c=(0,i.useRef)();return u((function(){var t=e.key+"-global",n=new e.sheet.constructor({key:t,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),i=!1,o=document.querySelector('style[data-emotion="'+t+" "+r.name+'"]');return e.sheet.tags.length&&(n.before=e.sheet.tags[0]),null!==o&&(i=!0,o.setAttribute("data-emotion",t),n.hydrate([o])),c.current=[n,i],function(){n.flush()}}),[e]),u((function(){var t=c.current,n=t[0];if(t[1])t[1]=!1;else{if(void 0!==r.next&&(0,s.My)(e,r.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}e.insert("",r,n,!1)}}),[e,r.name]),null}));function h(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(0,a.O)(e)}var d=function(){var t=h.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},f=function t(e){for(var n=e.length,r=0,i="";r<n;r++){var o=e[r];if(null!=o){var s=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))s=t(o);else for(var a in s="",o)o[a]&&a&&(s&&(s+=" "),s+=a);break;default:s=o}s&&(i&&(i+=" "),i+=s)}}return i};function p(t,e,n){var r=[],i=(0,s.fp)(t,r,n);return r.length<2?n:i+e(r)}var m=function(t){var e=t.cache,n=t.serializedArr;(0,o.u)((function(){for(var t=0;t<n.length;t++)(0,s.My)(e,n[t],!1)}));return null},g=(0,o.w)((function(t,e){var n=[],r=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var o=(0,a.O)(r,e.registered);return n.push(o),(0,s.hC)(e,o,!1),e.key+"-"+o.name},c={css:r,cx:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return p(e.registered,r,f(n))},theme:(0,i.useContext)(o.T)},u=t.children(c);return!0,(0,i.createElement)(i.Fragment,null,(0,i.createElement)(m,{cache:e,serializedArr:n}),u)}))},66628:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return w}});var r=n(67294),i=n.t(r,2),o=n(73749),s=n(45042),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
1ine|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,c=(0,s.Z)((function(t){return a.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91})),u=n(42748),l=n(70444),h=n(81245),d=c,f=function(t){return"theme"!==t},p=function(t){return"string"===typeof t&&t.charCodeAt(0)>96?d:f},m=function(t,e,n){var r;if(e){var i=e.shouldForwardProp;r=t.__emotion_forwardProp&&i?function(e){return t.__emotion_forwardProp(e)&&i(e)}:i}return"function"!==typeof r&&n&&(r=t.__emotion_forwardProp),r},g=i.useInsertionEffect?i.useInsertionEffect:function(t){t()};var y=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;(0,l.hC)(e,n,r);g((function(){return(0,l.My)(e,n,r)}));return null},b=function t(e,n){var i,s,a=e.__emotion_real===e,c=a&&e.__emotion_base||e;void 0!==n&&(i=n.label,s=n.target);var d=m(e,n,a),f=d||p(c),g=!f("as");return function(){var b=arguments,v=a&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==i&&v.push("label:"+i+";"),null==b[0]||void 0===b[0].raw)v.push.apply(v,b);else{0,v.push(b[0][0]);for(var w=b.length,_=1;_<w;_++)v.push(b[_],b[0][_])}var k=(0,u.w)((function(t,e,n){var i=g&&t.as||c,o="",a=[],m=t;if(null==t.theme){for(var b in m={},t)m[b]=t[b];m.theme=(0,r.useContext)(u.T)}"string"===typeof t.className?o=(0,l.fp)(e.registered,a,t.className):null!=t.className&&(o=t.className+" ");var w=(0,h.O)(v.concat(a),e.registered,m);o+=e.key+"-"+w.name,void 0!==s&&(o+=" "+s);var _=g&&void 0===d?p(i):f,k={};for(var S in t)g&&"as"===S||_(S)&&(k[S]=t[S]);return k.className=o,k.ref=n,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(y,{cache:e,serialized:w,isStringTag:"string"===typeof i}),(0,r.createElement)(i,k))}));return k.displayName=void 0!==i?i:"Styled("+("string"===typeof c?c:c.displayName||c.name||"Component")+")",k.defaultProps=e.defaultProps,k.__emotion_real=k,k.__emotion_base=c,k.__emotion_styles=v,k.__emotion_forwardProp=d,Object.defineProperty(k,"toString",{value:function(){return"."+s}}),k.withComponent=function(e,r){return t(e,(0,o.Z)({},n,r,{shouldForwardProp:m(k,r,!0)})).apply(void 0,v)},k}},v=b.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(t){v[t]=v(t)}));var w=v},55850:function(t,e){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.isNavigator=e.isBrowser=e.off=e.on=e.noop=void 0;e.noop=function(){},e.on=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t&&t.addEventListener&&t.addEventListener.apply(t,e)},e.off=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t&&t.removeEventListener&&t.removeEventListener.apply(t,e)},e.isBrowser="undefined"!==typeof window,e.isNavigator="undefined"!==typeof navigator},96613:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(68951),i=n(67294),o=r.__importDefault(n(14319));e.default=function(t,e,n){void 0===e&&(e=[]),void 0===n&&(n={loading:!1});var s=i.useRef(0),a=o.default(),c=i.useState(n),u=c[0],l=c[1],h=i.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=++s.current;return u.loading||l((function(t){return r.__assign(r.__assign({},t),{loading:!0})})),t.apply(void 0,e).then((function(t){return a()&&i===s.current&&l({value:t,loading:!1}),t}),(function(t){return a()&&i===s.current&&l({error:t,loading:!1}),t}))}),e);return[u,h]}},8275:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(68951),i=n(67294),o=r.__importDefault(n(55799));e.default=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=[]);var r=o.default(t,e),s=r[0],a=r[1],c=r[2];return i.useEffect(c,n),[s,a]}},27149:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(67294);e.default=function(t){r.useEffect(t,[])}},97537:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(67294),i=n(55850).isBrowser?r.useLayoutEffect:r.useEffect;e.default=i},51324:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(67294);e.default=function(t){var e=r.useRef(t);return e.current=t,e}},14319:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(67294);e.default=function(){var t=r.useRef(!1),e=r.useCallback((function(){return t.current}),[]);return r.useEffect((function(){return t.current=!0,function(){t.current=!1}}),[]),e}},90899:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(68951),i=n(67294),o=r.__importDefault(n(97537));e.default=function(t,e){void 0===t&&(t=1e12),void 0===e&&(e=0);var n=i.useState(0),r=n[0],s=n[1];return o.default((function(){var n,r,i,o=function(){var e=Math.min(1,(Date.now()-i)/t);s(e),a()},a=function(){n=requestAnimationFrame(o)},c=setTimeout((function(){r=setTimeout((function(){cancelAnimationFrame(n),s(1)}),t),i=Date.now(),a()}),e);return function(){clearTimeout(r),clearTimeout(c),cancelAnimationFrame(n)}}),[t,e]),r}},34899:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(68951),i=n(67294),o=r.__importDefault(n(6246));e.default=function(t,e){void 0===e&&(e=200);var n=i.useState(t),r=n[0],s=n[1],a=i.useRef(),c=i.useRef(null),u=i.useRef(0);return i.useEffect((function(){if(a.current)c.current=t,u.current=!0;else{s(t);var n=function(){u.current?(u.current=!1,s(c.current),a.current=setTimeout(n,e)):a.current=void 0};a.current=setTimeout(n,e)}}),[t]),o.default((function(){a.current&&clearTimeout(a.current)})),r}},55799:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(67294);e.default=function(t,e){void 0===e&&(e=0);var n=r.useRef(!1),i=r.useRef(),o=r.useRef(t),s=r.useCallback((function(){return n.current}),[]),a=r.useCallback((function(){n.current=!1,i.current&&clearTimeout(i.current),i.current=setTimeout((function(){n.current=!0,o.current()}),e)}),[e]),c=r.useCallback((function(){n.current=null,i.current&&clearTimeout(i.current)}),[]);return r.useEffect((function(){o.current=t}),[t]),r.useEffect((function(){return a(),c}),[e]),[s,c,a]}},6246:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(68951),i=n(67294),o=r.__importDefault(n(27149));e.default=function(t){var e=i.useRef(t);e.current=t,o.default((function(){return function(){return e.current()}}))}},68951:function(t,e,n){"use strict";n.r(e),n.d(e,{__assign:function(){return o},__asyncDelegator:function(){return _},__asyncGenerator:function(){return w},__asyncValues:function(){return k},__await:function(){return v},__awaiter:function(){return l},__classPrivateFieldGet:function(){return E},__classPrivateFieldIn:function(){return P},__classPrivateFieldSet:function(){return T},__createBinding:function(){return d},__decorate:function(){return a},__exportStar:function(){return f},__extends:function(){return i},__generator:function(){return h},__importDefault:function(){return A},__importStar:function(){return I}
vendor: 8,715 bytes, line 1
1,__makeTemplateObject:function(){return S},__metadata:function(){return u},__param:function(){return c},__read:function(){return m},__rest:function(){return s},__spread:function(){return g},__spreadArray:function(){return b},__spreadArrays:function(){return y},__values:function(){return p}});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function s(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function a(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function c(t,e){return function(n,r){e(n,r,t)}}function u(t,e){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}var d=Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function f(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||d(e,t,n)}function p(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function g(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t}function y(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function b(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function v(t){return this instanceof v?(this.v=t,this):new v(t)}function w(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||a(t,e)}))})}function a(t,e){try{!function(t){t.value instanceof v?Promise.resolve(t.value.v).then(c,u):l(o[0][2],t)}(i[t](e))}catch(n){l(o[0][3],n)}}function c(t){a("next",t)}function u(t){a("throw",t)}function l(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}}function _(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:v(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function k(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function S(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var x=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function I(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&d(e,t,n);return x(e,t),e}function A(t){return t&&t.__esModule?t:{default:t}}function E(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function T(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}function P(t,e){if(null===e||"object"!==typeof e&&"function"!==typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof t?e===t:t.has(e)}},94758:function(t,e,n){"use strict";n.r(e),n.d(e,{ACCOUNT_DISCRIMINATOR_SIZE:function(){return jt},AccountClient:function(){return Xe},AnchorError:function(){return vt},AnchorProvider:function(){return st},BN:function(){return s.a},BorshAccountsCoder:function(){return Nt},BorshCoder:function(){return Ut},BorshEventCoder:function(){return Lt},BorshInstructionCoder:function(){return Ct},BorshStateCoder:function(){return zt},EventManager:function(){return en},EventParser:function(){return nn},IdlError:function(){return yt},LangErrorCode:function(){return kt},LangErrorMessage:function(){return St},MethodsBuilderFactory:function(){return hn},Program:function(){return fn},ProgramError:function(){return wt},ProgramErrorStack:function(){return bt},Spl:function(){return pn},SplTokenCoder:function(){return Ae},StateClient:function(){return Ze},eventDiscriminator:function(){return Dt},getProvider:function(){return ht},parseIdlErrors:function(){return T},setProvider:function(){return lt},splitArgsAndCtx:function(){return Ke},stateDiscriminator:function(){return Ft},toInstruction:function(){return P},translateAddress:function(){return M},translateError:function(){return _t},utils:function(){return Ge},validateAccounts:function(){return C},web3:function(){return i}});var r=n(11766),i=n(96370),o=n(13550),s=n.n(o),a=n(65658),c=n.n(a),u=n(79742),l=n(23204),h=n.n(l),d=n(72023),f=n(80207),p=n(27885),m=n(26729),g=n.n(m),y=n(69282),b=n(11766).Buffer,v=Object.freeze({__proto__:null,encode:function(t){return t.reduce(((t,e)=>t+e.toString(16).padStart(2,"0")),"0x")}
1,decode:function(t){0===t.indexOf("0x")&&(t=t.substr(2)),t.length%2==1&&(t="0"+t);let e=t.match(/.{2}/g);return null===e?r.Buffer.from([]):r.Buffer.from(e.map((t=>parseInt(t,16))))}});function w(t){return new TextDecoder("utf-8").decode(t)}function _(t){return(new TextEncoder).encode(t)}var k=Object.freeze({__proto__:null,decode:w,encode:_});function S(t){return c().encode(t)}var x=Object.freeze({__proto__:null,encode:S,decode:function(t){return c().decode(t)}});function I(t){return r.Buffer.from(u.toByteArray(t))}var A=Object.freeze({__proto__:null,encode:function(t){return u.fromByteArray(t)},decode:I}),E=Object.freeze({__proto__:null,hex:v,utf8:k,bs58:x,base64:A});function T(t){const e=new Map;return t.errors&&t.errors.forEach((t=>{var n;let r=null!==(n=t.msg)&&void 0!==n?n:t.name;e.set(t.code,r)})),e}function P(t,...e){if(t.args.length!=e.length)throw new Error("Invalid argument length");const n={};let r=0;return t.args.forEach((t=>{n[t.name]=e[r],r+=1})),n}function C(t,e={}){t.forEach((t=>{if("accounts"in t)C(t.accounts,e[t.name]);else if(void 0===e[t.name])throw new Error(`Invalid arguments: ${t.name} not provided.`)}))}function M(t){return t instanceof i.PublicKey?t:new i.PublicKey(t)}class O extends TypeError{constructor(t,e){let n;const{message:r,...i}=t,{path:o}=t;super(0===o.length?r:"At path: "+o.join(".")+" -- "+r),Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>{var r;return null!=(r=n)?r:n=[t,...e()]}}}function R(t){return"object"==typeof t&&null!=t}function B(t){return"string"==typeof t?JSON.stringify(t):""+t}function j(t,e,n,r){if(!0===t)return;!1===t?t={}:"string"==typeof t&&(t={message:t});const{path:i,branch:o}=e,{type:s}=n,{refinement:a,message:c="Expected a value of type `"+s+"`"+(a?" with refinement `"+a+"`":"")+", but received: `"+B(r)+"`"}=t;return{value:r,type:s,refinement:a,key:i[i.length-1],path:i,branch:o,...t,message:c}}function*N(t,e,n,r){var i;R(i=t)&&"function"==typeof i[Symbol.iterator]||(t=[t]);for(const o of t){const t=j(o,e,n,r);t&&(yield t)}}function*L(t,e,n={}){const{path:r=[],branch:i=[t],coerce:o=!1,mask:s=!1}=n,a={path:r,branch:i};if(o&&(t=e.coercer(t,a),s&&"type"!==e.type&&R(e.schema)&&R(t)&&!Array.isArray(t)))for(const u in t)void 0===e.schema[u]&&delete t[u];let c=!0;for(const u of e.validator(t,a))c=!1,yield[u,void 0];for(let[u,l,h]of e.entries(t,a)){const e=L(l,h,{path:void 0===u?r:[...r,u],branch:void 0===u?i:[...i,l],coerce:o,mask:s});for(const n of e)n[0]?(c=!1,yield[n[0],void 0]):o&&(l=n[1],void 0===u?t=l:t instanceof Map?t.set(u,l):t instanceof Set?t.add(l):R(t)&&(t[u]=l))}if(c)for(const u of e.refiner(t,a))c=!1,yield[u,void 0];c&&(yield[void 0,t])}class D{constructor(t){const{type:e,schema:n,validator:r,refiner:i,coercer:o=(t=>t),entries:s=function*(){}}=t;this.type=e,this.schema=n,this.entries=s,this.coercer=o,this.validator=r?(t,e)=>N(r(t,e),e,this,t):()=>[],this.refiner=i?(t,e)=>N(i(t,e),e,this,t):()=>[]}assert(t){return function(t,e){const n=U(t,e);if(n[0])throw n[0]}(t,this)}create(t){return z(t,this)}is(t){return F(t,this)}mask(t){return function(t,e){const n=U(t,e,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}(t,this)}validate(t,e={}){return U(t,this,e)}}function z(t,e){const n=U(t,e,{coerce:!0});if(n[0])throw n[0];return n[1]}function F(t,e){return!U(t,e)[0]}function U(t,e,n={}){const r=L(t,e,n),i=function(t){const{done:e,value:n}=t.next();return e?void 0:n}(r);return i[0]?[new O(i[0],(function*(){for(const t of r)t[0]&&(yield t[0])})),void 0]:[void 0,i[1]]}function W(t,e){return new D({type:t,schema:null,validator:e})}function G(t){return new D({type:"array",schema:t,*entries(e){if(t&&Array.isArray(e))for(const[n,r]of e.entries())yield[n,r,t]},coercer:t=>Array.isArray(t)?t.slice():t,validator:t=>Array.isArray(t)||"Expected an array value, but received: "+B(t)})}function V(t){const e=B(t),n=typeof t;return new D({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?t:null,validator:n=>n===t||"Expected the literal `"+e+"`, but received: "+B(n)})}function K(t){return new D({...t,validator:(e,n)=>null===e||t.validator(e,n),refiner:(e,n)=>null===e||t.refiner(e,n)})}function H(){return W("number",(t=>"number"==typeof t&&!isNaN(t)||"Expected a number, but received: "+B(t)))}function q(t){return new D({...t,validator:(e,n)=>void 0===e||t.validator(e,n),refiner:(e,n)=>void 0===e||t.refiner(e,n)})}function $(){return W("string",(t=>"string"==typeof t||"Expected a string, but received: "+B(t)))}function Z(t){const e=Object.keys(t);return new D({type:"type",schema:t,*entries(n){if(R(n))for(const r of e)yield[r,n[r],t[r]]},validator:t=>R(t)||"Expected an object, but received: "+B(t)})}function Y(t){const e=t.map((t=>t.type)).join(" | ");return new D({type:"union",schema:null,validator(n,r){const i=[];for(const e of t){const[...t]=L(n,e,r),[o]=t;if(!o[0])return[];for(const[e]of t)e&&i.push(e)}return["Expected the value to satisfy a union of `"+e+"`, but received: "+B(n),...i]}})}function X(){return W("unknown",(()=>!0))}async function J(t,e,n){if(e.length<=99)return await Q(t,e,n);{const r=function(t,e){return Array.apply(0,new Array(Math.ceil(t.length/99))).map(((e,n)=>t.slice(99*n,99*(n+1))))}(e);return(await Promise.all(r.map((e=>Q(t,e,n))))).flat()}}async function Q(t,e,n){const r=null!=n?n:t.commitment;return(await t.getMultipleAccountsInfo(e,r)).map(((t,n)=>null===t?null:{publicKey:e[n],account:t}))}async function tt(t,e,n,r,o){n&&n.length>0&&e.sign(...n);const s=e._compile(),a=s.serialize(),c=e._serialize(a).toString("base64"),u={encoding:"base64",commitment:null!=r?r:t.commitment};if(o){const t=(Array.isArray(o)?o:s.nonProgramIds()).map((t=>
1t.toBase58()));u.accounts={encoding:"base64",addresses:t}}n&&(u.sigVerify=!0);const l=[c,u],h=z(await t._rpcRequest("simulateTransaction",l),rt);if("error"in h){let t;if("data"in h.error&&(t=h.error.data.logs,t&&Array.isArray(t))){const e="\n ",n=e+t.join(e);console.error(h.error.message,n)}throw new i.SendTransactionError("failed to simulate transaction: "+h.error.message,t)}return h.result}const et=nt(X());function nt(t){return Y([Z({jsonrpc:V("2.0"),id:$(),result:t}),Z({jsonrpc:V("2.0"),id:$(),error:Z({code:X(),message:$(),data:q(W("any",(()=>!0)))})})])}const rt=(it=Z({err:K(Y([Z({}),$()])),logs:K(G($())),accounts:q(K(G(K(Z({executable:W("boolean",(t=>"boolean"==typeof t)),owner:$(),lamports:H(),data:G($()),rentEpoch:q(H())}))))),unitsConsumed:q(H())}),function(t){return function(t,e,n){return new D({...t,coercer:(r,i)=>F(r,e)?t.coercer(n(r),i):t.coercer(r,i)})}(nt(t),et,(e=>"error"in e?e:{...e,result:z(e.result,t)}))}(Z({context:Z({slot:H()}),value:it})));var it,ot=Object.freeze({__proto__:null,invoke:async function(t,e,n,r){t=M(t),r||(r=ht());const o=new i.Transaction;if(o.add(new i.TransactionInstruction({programId:t,keys:null!=e?e:[],data:n})),void 0===r.sendAndConfirm)throw new Error("This function requires 'Provider.sendAndConfirm' to be implemented.");return await r.sendAndConfirm(o,[])},getMultipleAccounts:J,simulateTransaction:tt});class st{constructor(t,e,n){this.connection=t,this.wallet=e,this.opts=n}static defaultOptions(){return{preflightCommitment:"processed",commitment:"processed"}}static local(t,e){throw new Error("Provider local is not available on browser.")}static env(){throw new Error("Provider env is not available on browser.")}async sendAndConfirm(t,e,n){var r;void 0===n&&(n=this.opts),t.feePayer=this.wallet.publicKey,t.recentBlockhash=(await this.connection.getRecentBlockhash(n.preflightCommitment)).blockhash,t=await this.wallet.signTransaction(t),(null!=e?e:[]).forEac
1h((e=>{t.partialSign(e)}));const o=t.serialize();try{return await ct(this.connection,o,n)}catch(e){if(e instanceof ut){const n=await this.connection.getTransaction(S(t.signature),{commitment:"confirmed"});if(n){const t=null===(r=n.meta)||void 0===r?void 0:r.logMessages;throw t?new i.SendTransactionError(e.message,t):e}throw e}throw e}}async sendAll(t,e){void 0===e&&(e=this.opts);const n=await this.connection.getRecentBlockhash(e.preflightCommitment);let r=t.map((t=>{var e;let r=t.tx,i=null!==(e=t.signers)&&void 0!==e?e:[];return r.feePayer=this.wallet.publicKey,r.recentBlockhash=n.blockhash,i.forEach((t=>{r.partialSign(t)})),r}));const i=await this.wallet.signAllTransactions(r),o=[];for(let s=0;s<r.length;s+=1){const t=i[s].serialize();o.push(await ct(this.connection,t,e))}return o}async simulate(t,e,n,r){t.feePayer=this.wallet.publicKey,t.recentBlockhash=(await this.connection.getLatestBlockhash(null!=n?n:this.connection.commitment)).blockhash,t=await this.wallet.signTransaction(t);const i=await tt(this.connection,t,e,n,r);if(i.value.err)throw new at(i.value);return i.value}}class at extends Error{constructor(t,e){super(e),this.simulationResponse=t}}async function ct(t,e,n){const r=n&&{skipPreflight:n.skipPreflight,preflightCommitment:n.preflightCommitment||n.commitment},i=await t.sendRawTransaction(e,r),o=(await t.confirmTransaction(i,n&&n.commitment)).value;if(o.err)throw new ut(`Raw transaction ${i} failed (${JSON.stringify(o)})`);return i}class ut extends Error{constructor(t){super(t)}}function lt(t){dt=t}function ht(){return null===dt?st.local():dt}let dt=null;const ft=new Set(["anchor-deprecated-state","debug-logs"]),pt=new Map;function mt(t){return void 0!==pt.get(t)}var gt=Object.freeze({__proto__:null,set:function(t){if(!ft.has(t))throw new Error("Invalid feature");pt.set(t,!0)},isSet:mt});class yt extends Error{constructor(t){super(t),this.name="IdlError"}}class bt{constructor(t){this.stack=t}static parse(t){var e;const n=/^Program (\w*) invoke/,r=/^Program \w* success/,o=[];for(let s=0;s<t.length;s++){if(r.exec(t[s])){o.pop();continue}const a=null===(e=n.exec(t[s]))||void 0===e?void 0:e[1];a&&o.push(new i.PublicKey(a))}return new bt(o)}}class vt extends Error{constructor(t,e,n,r,i,o){super(n.join("\n").replace("Program log: ","")),this.errorLogs=n,this.logs=r,this.error={errorCode:t,errorMessage:e,comparedValues:o,origin:i},this._programErrorStack=bt.parse(r)}static parse(t){if(!t)return null;const e=t.findIndex((t=>t.startsWith("Program log: AnchorError")));if(-1===e)return null;const n=t[e],r=[n];let o;if(e+1<t.length)if("Program log: Left:"===t[e+1]){const n=/^Program log: (.*)$/,s=n.exec(t[e+2])[1],a=n.exec(t[e+4])[1];o=[new i.PublicKey(s),new i.PublicKey(a)],r.push(...t.slice(e+1,e+5))}else if(t[e+1].startsWith("Program log: Left:")){const n=/^Program log: (Left|Right): (.*)$/,i=n.exec(t[e+1])[2],s=n.exec(t[e+2])[2];r.push(...t.slice(e+1,e+3)),o=[i,s]}const s=/^Program log: AnchorError occurred\. Error Code: (.*)\. Error Number: (\d*)\. Error Message: (.*)\./.exec(n),a=/^Program log: AnchorError thrown in (.*):(\d*)\. Error Code: (.*)\. Error Number: (\d*)\. Error Message: (.*)\./.exec(n),c=/^Program log: AnchorError caused by account: (.*)\. Error Code: (.*)\. Error Number: (\d*)\. Error Message: (.*)\./.exec(n);if(s){const[e,n,i]=s.slice(1,4),a={code:e,number:parseInt(n)};return new vt(a,i,r,t,void 0,o)}if(a){const[e,n,i,s,c]=a.slice(1,6),u={code:i,number:parseInt(s)},l={file:e,line:parseInt(n)};return new vt(u,c,r,t,l,o)}if(c){const[e,n,i,s]=c.slice(1,5),a=e,u={code:n,number:parseInt(i)};return new vt(u,s,r,t,a,o)}return null}get program(){return this._programErrorStack.stack[this._programErrorStack.stack.length-1]}get programErrorStack(){return this._programErrorStack.stack}toString(){return this.message}}class wt extends Error{constructor(t,e,n){super(),this.code=t,this.msg=e,this.logs=n,n&&(this._programErrorStack=bt.parse(n))}static parse(t,e){const n=t.toString();let r,i;if(n.includes("custom program error:")){let t=n.split("custom program error: ");if(2!==t.length)return null;r=t[1]}else{const t=n.match(/"Custom":([0-9]+)}/g);if(!t||t.length>1)return null;r=t[0].match(/([0-9]+)/g)[0]}try{i=parseInt(r)}catch(t){return null}let o=e.get(i);return void 0!==o?new wt(i,o,t.logs):(o=St.get(i),void 0!==o?new wt(i,o,t.logs):null)}get program(){var t;return null===(t=this._programErrorStack)||void 0===t?void 0:t.stack[this._programErrorStack.stack.length-1]}get programErrorStack(){var t;return null===(t=this._programErrorStack)||void 0===t?void 0:t.stack}toString(){return this.msg}}function _t(t,e){mt("debug-logs")&&console.log("Translating error:",t);const n=vt.parse(t.logs);if(n)return n;const r=wt.parse(t,e);if(r)return r;if(t.logs){const e={get:function(e,n){return"programErrorStack"===n?e.programErrorStack.stack:"program"===n?e.programErrorStack.stack[t.programErrorStack.stack.length-1]:Reflect.get(...arguments)}};return t.programErrorStack=bt.parse(t.logs),new Proxy(t,e)}return t}
1const kt={InstructionMissing:100,InstructionFallbackNotFound:101,InstructionDidNotDeserialize:102,InstructionDidNotSerialize:103,IdlInstructionStub:1e3,IdlInstructionInvalidProgram:1001,ConstraintMut:2e3,ConstraintHasOne:2001,ConstraintSigner:2002,ConstraintRaw:2003,ConstraintOwner:2004,ConstraintRentExempt:2005,ConstraintSeeds:2006,ConstraintExecutable:2007,ConstraintState:2008,ConstraintAssociated:2009,ConstraintAssociatedInit:2010,ConstraintClose:2011,ConstraintAddress:2012,ConstraintZero:2013,ConstraintTokenMint:2014,ConstraintTokenOwner:2015,ConstraintMintMintAuthority:2016,ConstraintMintFreezeAuthority:2017,ConstraintMintDecimals:2018,ConstraintSpace:2019,RequireViolated:2500,RequireEqViolated:2501,RequireKeysEqViolated:2502,RequireNeqViolated:2503,RequireKeysNeqViolated:2504,RequireGtViolated:2505,RequireGteViolated:2506,AccountDiscriminatorAlreadySet:3e3,AccountDiscriminatorNotFound:3001,AccountDiscriminatorMismatch:3002,AccountDidNotDeserialize:3003,AccountDidNotSerialize:3004,AccountNotEnoughKeys:3005,AccountNotMutable:3006,AccountOwnedByWrongProgram:3007,InvalidProgramId:3008,InvalidProgramExecutable:3009,AccountNotSigner:3010,AccountNotSystemOwned:3011,AccountNotInitialized:3012,AccountNotProgramData:3013,AccountNotAssociatedTokenAccount:3014,AccountSysvarMismatch:3015,StateInvalidAddress:4e3,DeclaredProgramIdMismatch:4100,Deprecated:5e3},St=new Map([[kt.InstructionMissing,"8 byte instruction identifier not provided"],[kt.InstructionFallbackNotFound,"Fallback functions are not supported"],[kt.InstructionDidNotDeserialize,"The program could not deserialize the given instruction"],[kt.InstructionDidNotSerialize,"The program could not serialize the given instruction"],[kt.IdlInstructionStub,"The program was compiled without idl instructions"],[kt.IdlInstructionInvalidProgram,"The transaction was given an invalid program for the IDL instruction"],[kt.ConstraintMut,"A mut constraint was violated"],[kt.ConstraintHasOne,"A has_one constraint was violated"],[kt.ConstraintSigner,"A signer constraint was violated"],[kt.ConstraintRaw,"A raw constraint was violated"],[kt.ConstraintOwner,"An owner constraint was violated"],[kt.ConstraintRentExempt,"A rent exemption constraint was violated"],[kt.ConstraintSeeds,"A seeds constraint was violated"],[kt.ConstraintExecutable,"An executable constraint was violated"],[kt.ConstraintState,"A state constraint was violated"],[kt.ConstraintAssociated,"An associated constraint was violated"],[kt.ConstraintAssociatedInit,"An associated init constraint was violated"],[kt.ConstraintClose,"A close constraint was violated"],[kt.ConstraintAddress,"An address constraint was violated"],[kt.ConstraintZero,"Expected zero account discriminant"],[kt.ConstraintTokenMint,"A token mint constraint was violated"],[kt.ConstraintTokenOwner,"A token owner constraint was violated"],[kt.ConstraintMintMintAuthority,"A mint mint authority constraint was violated"],[kt.ConstraintMintFreezeAuthority,"A mint freeze authority constraint was violated"],[kt.ConstraintMintDecimals,"A mint decimals constraint was violated"],[kt.ConstraintSpace,"A space constraint was violated"],[kt.RequireViolated,"A require expression was violated"],[kt.RequireEqViolated,"A require_eq expression was violated"],[kt.RequireKeysEqViolated,"A require_keys_eq expression was violated"],[kt.RequireNeqViolated,"A require_neq expression was violated"],[kt.RequireKeysNeqViolated,"A require_keys_neq expression was violated"],[kt.RequireGtViolated,"A require_gt expression was violated"],[kt.RequireGteViolated,"A require_gte expression was violated"],[kt.AccountDiscriminatorAlreadySet,"The account discriminator was already set on this account"],[kt.AccountDiscriminatorNotFound,"No 8 byte discriminator was found on the account"],[kt.AccountDiscriminatorMismatch,"8 byte discriminator did not match what was expected"],[kt.AccountDidNotDeserialize,"Failed to deserialize the account"],[kt.AccountDidNotSerialize,"Failed to serialize the account"],[kt.AccountNotEnoughKeys,"Not enough account keys given to the instruction"],[kt.AccountNotMutable,"The given account is not mutable"],[kt.AccountOwnedByWrongProgram,"The given account is owned by a different program than expected"],[kt.InvalidProgramId,"Program ID was not as expected"],[kt.InvalidProgramExecutable,"Program account is not executable"],[kt.AccountNotSigner,"The given account did not sign"],[kt.AccountNotSystemOwned,"The given account is not owned by the system program"],[kt.AccountNotInitialized,"The program expected this account to be already initialized"],[kt.AccountNotProgramData,"The given account is not a program data account"],[kt.AccountNotAssociatedTokenAccount,"The given account is not the associated token account"],[kt.AccountSysvarMismatch,"The given public key does not match the required sysvar"],[kt.StateInvalidAddress,"The given state account does not have the correct address"],[kt.DeclaredProgramIdMismatch,"The declared program id does not match the actual program id"],[kt.Deprecated,"The API being used is deprecated and should no longer be used"]]);var xt=function(){return xt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},xt.apply(this,arguments)};function It(t){return t.toLowerCase()}var At=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Et=/[^A-Z0-9]+/gi;function Tt(t,e,n){return e instanceof RegExp?t.replace(e,n):e.reduce((function(t,e){return t.replace(e,n)}),t)}class Pt{static fieldLayout(t,e){const n=void 0!==t.name?h()(t.name):void 0;switch(t.type){case"bool":return f.bool(n);case"u8":return f.u8(n);case"i8":return f.i8(n);case"u16":return f.u16(n);case"i16":return f.i16(n);case"u32":return f.u32(n);case"i32":return f.i32(n);case"f32":return f.f32(n);case"u64":return f.u64(n);case"i64":return f.i64(n);case"f64":return f.f64(n);case"u128":return f.u128(n);case"i128":return f.i128(n);case"bytes":return f.vecU8(n);case"string":return f.str(n);case"publicKey":return f.publicKey(n);default:if("vec"in t.type)return f.vec(Pt.fieldLayout({name:void 0,type:t.type.vec},e),n);if("option"in t.type)return f.option(Pt.fieldLayout({name:void 0,type:t.type.option},e),n);if("defined"in t.type){const r=t.type.defined;if(void 0===e)throw new yt("User defined types not provided");const i=e.filter((t=>t.name===r));if(1!==i.length)throw new yt(`Type not found: ${JSON.stringify(t)}`);return Pt.typeDefLayout(i[0],e,n)}if("array"in t.type){let r=t.type.array[0],i=t.type.array[1],o=Pt.fieldLayout({name:void 0,type:r},e);return f.array(o,i,n)}throw new Error(`Not yet implemented: ${t}`)}}static typeDefLayout(t,e=[],n){if("struct"===t.type.kind){const r=t.type.fields.map((t=>Pt.fieldLayout(t,e)));return f.struct(r,n)}if("enum"===t.type.kind){let r=t.type.variants.map((t=>{const n=h()(t.name);if(void 0===t.fields)return f.struct([],n);const r=t.fields.map((t=>{if(!t.hasOwnProperty("name"))throw new Error("Tuple enum variants not yet implemented.");return Pt.fieldLayout(t,e)}));return f.struct(r,n)}));return void 0!==n?f.rustEnum(r).replicate(n):f.rustEnum(r,n)}throw new Error(`Unknown type kint: ${t}`)}}class Ct{constructor(t){this.idl=t,this.ixLayout=Ct.parseIxLayout(t);const e=new Map;t.instructions.forEach((t=>{const n=Ot("global",t.name);e.set(c().encode(n),{layout:this.ixLayout.get(t.name),name:t.name})})),t.state&&t.state.methods.map((t=>{const n=Ot("state",t.name);e.set(c().encode(n),{layout:this.ixLayout.get(t.name),name:t.name})})),this.sighashLayouts=e}encode(t,e){return this._encode("global",t,e)}encodeState(t,e){return this._encode("state",t,e)}_encode(t,e,n){const i=r.Buffer.alloc(1e3),o=h()(e),s=this.ixLayout.get(o);if(!s)throw new Error(`Unknown method: ${o}`);const a=s.encode(n,i),c=i.slice(0,a);return r.Buffer.concat([Ot(t,e),c])}static parseIxLayout(t){const e=(t.state?t.state.methods:[]).map((e=>{let n=e.args.map((e=>{var n,r;return Pt.fieldLayout(e,Array.from([...null!==(n=t.accounts)&&void 0!==n?n:[],...null!==(r=t.types)&&void 0!==r?r:[]]))}
1));const r=h()(e.name);return[r,f.struct(n,r)]})).concat(t.instructions.map((e=>{let n=e.args.map((e=>{var n,r;return Pt.fieldLayout(e,Array.from([...null!==(n=t.accounts)&&void 0!==n?n:[],...null!==(r=t.types)&&void 0!==r?r:[]]))}));const r=h()(e.name);return[r,f.struct(n,r)]})));return new Map(e)}decode(t,e="hex"){"string"==typeof t&&(t="hex"===e?r.Buffer.from(t,"hex"):c().decode(t));let n=c().encode(t.slice(0,8)),i=t.slice(8);const o=this.sighashLayouts.get(n);return o?{data:o.layout.decode(i),name:o.name}:null}format(t,e){return Mt.format(t,e,this.idl)}}class Mt{static format(t,e,n){const r=n.instructions.filter((e=>t.name===e.name))[0];if(void 0===r)return console.error("Invalid instruction given"),null;const i=r.args.map((e=>({name:e.name,type:Mt.formatIdlType(e.type),data:Mt.formatIdlData(e,t.data[e.name],n.types)}))),o=Mt.flattenIdlAccounts(r.accounts);return{args:i,accounts:e.map(((t,e)=>e<o.length?{name:o[e].name,...t}:{name:void 0,...t}))}}static formatIdlType(t){if("string"==typeof t)return t;if("vec"in t)return`Vec<${this.formatIdlType(t.vec)}>`;if("option"in t)return`Option<${this.formatIdlType(t.option)}>`;if("defined"in t)return t.defined;if("array"in t)return`Array<${t.array[0]}; ${t.array[1]}>`;throw new Error(`Unknown IDL type: ${t}`)}static formatIdlData(t,e,n){if("string"==typeof t.type)return e.toString();if(t.type.hasOwnProperty("vec"))return"["+e.map((e=>this.formatIdlData({name:"",type:t.type.vec},e))).join(", ")+"]";if(t.type.hasOwnProperty("option"))return null===e?"null":this.formatIdlData({name:"",type:t.type.option},e,n);if(t.type.hasOwnProperty("defined")){if(void 0===n)throw new Error("User defined types not provided");const r=n.filter((e=>e.name===t.type.defined));if(1!==r.length)throw new Error(`Type not found: ${t.type.defined}`);return Mt.formatIdlDataDefined(r[0],e,n)}return"unknown"}static formatIdlDataDefined(t,e,n){if("struct"===t.type.kind){const r=t.type;return"{ "+Object.keys(e).map((t=>{const i=r.fields.filter((e=>e.name===t))[0];if(void 0===i)throw new Error("Unable to find type");return t+": "+Mt.formatIdlData(i,e[t],n)})).join(", ")+" }"}if(0===t.type.variants.length)return"{}";if(t.type.variants[0].name){const r=t.type.variants,i=Object.keys(e)[0],o=e[i],s=Object.keys(o).map((t=>{var e;const s=o[t],a=null===(e=r[i])||void 0===e?void 0:e.filter((e=>e.name===t))[0];if(void 0===a)throw new Error("Unable to find variant");return t+": "+Mt.formatIdlData(a,s,n)})).join(", "),a=h()(i,{pascalCase:!0});return 0===s.length?a:`${a} { ${s} }`}return"Tuple formatting not yet implemented"}static flattenIdlAccounts(t,e){return t.map((t=>{const n=function(t){const e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)}(t.name);if(t.hasOwnProperty("accounts")){const r=e?`${e} > ${n}`:n;return Mt.flattenIdlAccounts(t.accounts,r)}return{...t,name:e?`${e} > ${n}`:n}})).flat()}}function Ot(t,e){var n;let i=`${t}:${void 0===n&&(n={}),function(t,e){return void 0===e&&(e={}),function(t,e){void 0===e&&(e={});for(var n=e.splitRegexp,r=void 0===n?At:n,i=e.stripRegexp,o=void 0===i?Et:i,s=e.transform,a=void 0===s?It:s,c=e.delimiter,u=void 0===c?" ":c,l=Tt(Tt(t,r,"$1\0$2"),o,"\0"),h=0,d=l.length;"\0"===l.charAt(h);)h++;for(;"\0"===l.charAt(d-1);)d--;return l.slice(h,d).split("\0").map(a).join(u)}(t,xt({delimiter:"."},e))}(e,xt({delimiter:"_"},n))}`;return r.Buffer.from(d.sha256.digest(i)).slice(0,8)}function Rt(t,e){if("enum"===e.type.kind){let n=e.type.variants.map((e=>void 0===e.fields?0:e.fields.map((e=>{if("object"!=typeof e||!("name"in e))throw new Error("Tuple enum variants not yet implemented.");return Bt(t,e.type)})).reduce(((t,e)=>t+e))));return Math.max(...n)+1}return void 0===e.type.fields?0:e.type.fields.map((e=>Bt(t,e.type))).reduce(((t,e)=>t+e),0)}function Bt(t,e){var n,r;switch(e){case"bool":case"u8":case"i8":case"bytes":case"string":return 1;case"i16":case"u16":return 2;case"u32":case"i32":case"f32":return 4;case"u64":case"i64":case"f64":return 8;case"u128":case"i128":return 16;case"publicKey":return 32;default:if("vec"in e)return 1;if("option"in e)return 1+Bt(t,e.option);if("coption"in e)return 4+Bt(t,e.coption);if("defined"in e){const i=null!==(r=null===(n=t.types)||void 0===n?void 0:n.filter((t=>t.name===e.defined)))&&void 0!==r?r:[];if(1!==i.length)throw new yt(`Type not found: ${JSON.stringify(e)}`);return Rt(t,i[0])}if("array"in e){let n=e.array[0],r=e.array[1];return Bt(t,n)*r}throw new Error(`Invalid type ${JSON.stringify(e)}`)}}const jt=8;class Nt{constructor(t){if(void 0===t.accounts)return void(this.accountLayouts=new Map);const e=t.accounts.map((e=>[e.name,Pt.typeDefLayout(e,t.types)]));this.accountLayouts=new Map(e),this.idl=t}async encode(t,e){const n=r.Buffer.alloc(1e3),i=this.accountLayouts.get(t);if(!i)throw new Error(`Unknown account: ${t}`);const o=i.encode(e,n);let s=n.slice(0,o),a=Nt.accountDiscriminator(t);return r.Buffer.concat([a,s])}decode(t,e){if(Nt.accountDiscriminator(t).compare(e.slice(0,8)))throw new Error("Invalid account discriminator");return this.decodeUnchecked(t,e)}decodeUnchecked(t,e){const n=e.slice(8),r=this.accountLayouts.get(t);if(!r)throw new Error(`Unknown account: ${t}`);return r.decode(n)}memcmp(t,e){const n=Nt.accountDiscriminator(t);return{offset:0,bytes:c().encode(e?r.Buffer.concat([n,e]):n)}}size(t){var e;return 8+(null!==(e=Rt(this.idl,t))&&void 0!==e?e:0)}static accountDiscriminator(t){return r.Buffer.from(d.sha256.digest(`account:${h()(t,{pascalCase:!0})}`)).slice(0,8)}}class Lt{constructor(t){if(void 0===t.events)return void(this.layouts=new Map);const e=t.events.map((e=>{let n={name:e.name,type:{kind:"struct",fields:e.fields.map((t=>({name:t.name,type:t.type})))}};return[e.name,Pt.typeDefLayout(n,t.types)]}));this.layouts=new Map(e),this.discriminators=new Map(void 0===t.events?[]:t.events.map((t=>[u.fromByteArray(Dt(t.name)),t.name])))}decode(t){let e;try{e=r.Buffer.from(u.toByteArray(t))}catch(s){return null}const n=u.fromByteArray(e.slice(0,8)),i=this.discriminators.get(n);if(void 0===i)return null;const o=this.layouts.get(i);if(!o)throw new Error(`Unknown event: ${i}`);return{data:o.decode(e.slice(8)),name:i}}}function Dt(t){return r.Buffer.from(d.sha256.digest(`event:${t}`)).slice(0,8)}class zt{constructor(t){if(void 0===t.state)throw new Error("Idl state not defined.");this.layout=Pt.typeDefLayout(t.state.struct,t.types)}async encode(t,e){const n=r.Buffer.alloc(1e3),i=this.layout.encode(e,n),o=await Ft(t),s=n.slice(0,i);return r.Buffer.concat([o,s])}decode(t){const e=t.slice(8);return this.layout.decode(e)}}async function Ft(t){let e=mt("anchor-deprecated-state")?"account":"state";return r.Buffer.from(d.sha256.digest(`${e}:${t}`)).slice(0,8)}class Ut{constructor(t){this.instruction=new Ct(t),this.accounts=new Nt(t),this.events=new Lt(t),t.state&&(this.state=new zt(t))}}var Wt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};class Gt{constructor(t,e){if(!Number.isInteger(t))throw new TypeError("span must be an integer");this.span=t,this.property=e}makeDestinationObject(){return{}}decode(t,e){throw new Error("Layout is abstract")}encode(t,e,n){throw new Error("Layout is abstract")}getSpan(t,e){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(t){const e=Object.create(this.constructor.prototype);return Object.assign(e,this),e.property=t,e}fromArray(t){}}var Vt=Gt;class Kt extends Gt{isCount(){throw new Error("ExternalLayout is abstract")}}class Ht extends Kt{constructor(t,e,n){if(!(t instanceof Gt))throw new TypeError("layout must be a Layout");if(void 0===e)e=0;else if(!Number.isInteger(e))throw new TypeError("offset must be integer or undefined");super(t.span,n||t.property),this.layout=t,this.offset=e}isCount(){return this.layout instanceof qt||this.layout instanceof $t}decode(t,e){return void 0===e&&(e=0),this.layout.decode(t,e+this.offset)}encode(t,e,n){return void 0===n&&(n=0),this.layout.encode(t,e,n+this.offset)}}class qt extends Gt{constructor(t,e){if(super(t,e),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(t,e){return void 0===e&&(e=0),t.readUIntLE(e,this.span)}encode(t,e,n){return void 0===n&&(n=0),e.writeUIntLE(t,n,this.span),this.span}}class $t extends Gt{constructor(t,e){if(super(t,e),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(t,e){return void 0===e&&(e=0),t.readUIntBE(e,this.span)}encode(t,e,n){return void 0===n&&(n=0),e.writeUIntBE(t,n,this.span),this.span}}const Zt=Math.pow(2,32);class Yt extends Gt{constructor(t){super(8,t)}decode(t,e){void 0===e&&(e=0);const n=t.readUInt32LE(e);return function(t,e){return t*Zt+e}(t.readUInt32LE(e+4),n)}encode(t,e,n){void 0===n&&(n=0);const r=function(t){const e=Math.floor(t/Zt);return{hi32:e,lo32:t-e*Zt}}(t);return e.writeUInt32LE(r.lo32,n),e.writeUInt32LE(r.hi32,n+4),8}}class Xt extends Gt{constructor(t,e,n){if(!Array.isArray(t)||!t.reduce(((t,e)=>t&&e instanceof Gt),!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof e&&void 0===n&&(n=e,e=void 0);for(const i of t)if(0>i.span&&void 0===i.property)throw new Error("fields cannot contain unnamed variable-length layout");let r=-1;try{r=t.reduce(((t,e)=>t+e.getSpan()),0)}catch(t){}super(r,e),this.fields=t,this.decodePrefixes=!!n}getSpan(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);let n=0;try{n=this.fields.reduce(((n,r)=>{const i=r.getSpan(t,e);return e+=i,n+i}),0)}catch(t){throw new RangeError("indeterminate span")}return n}decode(t,e){void 0===e&&(e=0);const n=this.makeDestinationObject();for(const r of this.fields)if(void 0!==r.property&&(n[r.property]=r.decode(t,e)),e+=r.getSpan(t,e),this.decodePrefixes&&t.length===e)break;return n}encode(t,e,n){void 0===n&&(n=0);const r=n;let i=0,o=0;for(const s of this.fields){let r=s.span;if(o=0<r?r:0,void 0!==s.property){const i=t[s.property];void 0!==i&&(o=s.encode(i,e,n),0>r&&(r=s.getSpan(e,n)))}i=n,n+=r}return i+o-r}fromArray(t){const e=this.makeDestinationObject();for(const n of this.fields)void 0!==n.property&&0<t.length&&(e[n.property]=t.shift());return e}layoutFor(t){if("string"!=typeof t)throw new TypeError("property must be string");for(const e of this.fields)if(e.property===t)return e}offsetOf(t){if("string"!=typeof t)throw new TypeError("property must be string");let e=0;for(const n of this.fields){if(n.property===t)return e;0>n.span?e=-1:0<=e&&(e+=n.span)}}}class Jt{constructor(t){this.property=t}decode(){throw new Error("UnionDiscriminator is abstract")}encode(){throw new Error("UnionDiscriminator is abstract")}}class Qt extends Jt{constructor(t,e){if(!(t instanceof Kt&&t.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");
1super(e||t.property||"variant"),this.layout=t}decode(t,e){return this.layout.decode(t,e)}encode(t,e,n){return this.layout.encode(t,e,n)}}class te extends Gt{constructor(t,e,n){const r=t instanceof qt||t instanceof $t;if(r)t=new Qt(new Ht(t));else if(t instanceof Kt&&t.isCount())t=new Qt(t);else if(!(t instanceof Jt))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===e&&(e=null),!(null===e||e instanceof Gt))throw new TypeError("defaultLayout must be null or a Layout");if(null!==e){if(0>e.span)throw new Error("defaultLayout must have constant span");void 0===e.property&&(e=e.replicate("content"))}let i=-1;e&&(i=e.span,0<=i&&r&&(i+=t.layout.span)),super(i,n),this.discriminator=t,this.usesPrefixDiscriminator=r,this.defaultLayout=e,this.registry={};let o=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(t){return o(t)},this.configGetSourceVariant=function(t){o=t.bind(this)}}getSpan(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);const n=this.getVariant(t,e);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(t,e)}defaultGetSourceVariant(t){if(t.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&t.hasOwnProperty(this.defaultLayout.property))return;const e=this.registry[t[this.discriminator.property]];if(e&&(!e.layout||t.hasOwnProperty(e.property)))return e}else for(const e in this.registry){const n=this.registry[e];if(t.hasOwnProperty(n.property))return n}throw new Error("unable to infer src variant")}decode(t,e){let n;void 0===e&&(e=0);const r=this.discriminator,i=r.decode(t,e);let o=this.registry[i];if(void 0===o){let s=0;o=this.defaultLayout,this.usesPrefixDiscriminator&&(s=r.layout.span),n=this.makeDestinationObject(),n[r.property]=i,n[o.property]=this.defaultLayout.decode(t,e+s)}else n=o.decode(t,e);return n}encode(t,e,n){void 0===n&&(n=0);const r=this.getSourceVariant(t);if(void 0===r){const r=this.discriminator,i=this.defaultLayout;let o=0;return this.usesPrefixDiscriminator&&(o=r.layout.span),r.encode(t[r.property],e,n),o+i.encode(t[i.property],e,n+o)}return r.encode(t,e,n)}addVariant(t,e,n){const r=new ee(this,t,e,n);return this.registry[t]=r,r}getVariant(t,e){let n=t;return b.isBuffer(t)&&(void 0===e&&(e=0),n=this.discriminator.decode(t,e)),this.registry[n]}}class ee extends Gt{constructor(t,e,n,r){if(!(t instanceof te))throw new TypeError("union must be a Union");if(!Number.isInteger(e)||0>e)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof n&&void 0===r&&(r=n,n=null),n){if(!(n instanceof Gt))throw new TypeError("layout must be a Layout");if(null!==t.defaultLayout&&0<=n.span&&n.span>t.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof r)throw new TypeError("variant must have a String property")}let i=t.span;0>t.span&&(i=n?n.span:0,0<=i&&t.usesPrefixDiscriminator&&(i+=t.discriminator.layout.span)),super(i,r),this.union=t,this.variant=e,this.layout=n||null}getSpan(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);let n=0;return this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),n+this.layout.getSpan(t,e+n)}decode(t,e){const n=this.makeDestinationObject();if(void 0===e&&(e=0),this!==this.union.getVariant(t,e))throw new Error("variant mismatch");let r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(t,e+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}encode(t,e,n){void 0===n&&(n=0);let r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!t.hasOwnProperty(this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,e,n);let i=r;if(this.layout&&(this.layout.encode(t[this.property],e,n+r),i+=this.layout.getSpan(e,n+r),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}fromArray(t){if(this.layout)return this.layout.fromArray(t)}}class ne extends Gt{constructor(t,e){if(!(t instanceof Kt&&t.isCount()||Number.isInteger(t)&&0<=t))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let n=-1;t instanceof Kt||(n=t),super(n,e),this.length=t}getSpan(t,e){let n=this.span;return 0>n&&(n=this.length.decode(t,e)),n}decode(t,e){void 0===e&&(e=0);let n=this.span;return 0>n&&(n=this.length.decode(t,e)),t.slice(e,e+n)}encode(t,e,n){let r=this.length;if(this.length instanceof Kt&&(r=t.length),!b.isBuffer(t)||r!==t.length)throw new TypeError((i="Blob.encode",(this.property?i+"["+this.property+"]":i)+" requires (length "+r+") Buffer as src"));var i;if(n+r>e.length)throw new RangeError("encoding overruns Buffer");return e.write(t.toString("hex"),n,r,"hex"),this.length instanceof Kt&&this.length.encode(r,e,n),r}}var re=t=>new qt(1,t),ie=t=>new Yt(t),oe=(t,e,n)=>new Xt(t,e,n),se=(t,e)=>new ne(t,e);class ae{constructor(t){}encode(t,e){switch(h()(t)){case"initializeMint":return function({decimals:t,mintAuthority:e,freezeAuthority:n}){return he({initializeMint:{decimals:t,mintAuthority:e.toBuffer(),freezeAuthorityOption:!!n,freezeAuthority:(n||i.PublicKey.default).toBuffer()}})}(e);case"initializeAccount":return he({initializeAccount:{}});case"initializeMultisig":return function({m:t}){return he({initializeMultisig:{m:t}})}(e);case"transfer":return function({amount:t}){return he({transfer:{amount:t}})}(e);case"approve":return function({amount:t}){return he({approve:{amount:t}})}(e);case"revoke":return he({revoke:{}});case"setAuthority":return function({authorityType:t,newAuthority:e}){return he({setAuthority:{authorityType:t,newAuthority:e}})}(e);case"mintTo":return function({amount:t}){return he({mintTo:{amount:t}})}(e);case"burn":return function({amount:t}){return he({burn:{amount:t}})}(e);case"closeAccount":return he({closeAccount:{}});case"freezeAccount":return he({freezeAccount:{}});case"thawAccount":return he({thawAccount:{}});case"transferChecked":return function({amount:t,decimals:e}){return he({transferChecked:{amount:t,decimals:e}})}(e);case"approvedChecked":return function({amount:t,decimals:e}){return he({approveChecked:{amount:t,decimals:e}})}(e);case"mintToChecked":return function({amount:t,decimals:e}){return he({mintToChecked:{amount:t,decimals:e}})}(e);case"burnChecked":return function({amount:t,decimals:e}){return he({burnChecked:{amount:t,decimals:e}})}(e);case"intializeAccount2":return function({authority:t}){return he({initilaizeAccount2:{authority:t}})}(e);case"syncNative":return he({syncNative:{}});case"initializeAccount3":return function({authority:t}){return he({initializeAccount3:{authority:t}})}(e);case"initializeMultisig2":return function({m:t}){return he({initializeMultisig2:{m:t}})}(e);case"initializeMint2":return function({decimals:t,mintAuthority:e,freezeAuthority:n}){return he({encodeInitializeMint2:{decimals:t,mintAuthority:e,freezeAuthority:n}})}(e);default:throw new Error(`Invalid instruction: ${t}`)}}encodeState(t,e){throw new Error("SPL token does not have state")}}const ce=(ue=re("instruction"),new te(ue,undefined,undefined));var ue;function le(t){return se(32,t)}function he(t){let e=b.alloc(de),n=ce.encode(t,e);return e.slice(0,n)}ce.addVariant(0,oe([re("decimals"),se(32,"mintAuthority"),re("freezeAuthorityOption"),le("freezeAuthority")]),"initializeMint"),ce.addVariant(1,oe([]),"initializeAccount"),ce.addVariant(2,oe([re("m")]),"initializeMultisig"),ce.addVariant(3,oe([ie("amount")]),"transfer"),ce.addVariant(4,oe([ie("amount")]),"approve"),ce.addVariant(5,oe([]),"revoke"),ce.addVariant(6,oe([re("authorityType"),re("newAuthorityOption"),le("newAuthority")]),"setAuthority"),ce.addVariant(7,oe([ie("amount")]),"mintTo"),
1ce.addVariant(8,oe([ie("amount")]),"burn"),ce.addVariant(9,oe([]),"closeAccount"),ce.addVariant(10,oe([]),"freezeAccount"),ce.addVariant(11,oe([]),"thawAccount"),ce.addVariant(12,oe([ie("amount"),re("decimals")]),"transferChecked"),ce.addVariant(13,oe([ie("amount"),re("decimals")]),"approvedChecked"),ce.addVariant(14,oe([ie("amount"),re("decimals")]),"mintToChecked"),ce.addVariant(15,oe([ie("amount"),re("decimals")]),"burnedChecked"),ce.addVariant(16,oe([le("authority")]),"InitializeAccount2"),ce.addVariant(17,oe([]),"syncNative"),ce.addVariant(18,oe([le("authority")]),"initializeAccount3"),ce.addVariant(19,oe([re("m")]),"initializeMultisig2"),ce.addVariant(20,oe([re("decimals"),le("mintAuthority"),re("freezeAuthorityOption"),le("freezeAuthority")]),"initializeMint2");const de=Math.max(...Object.values(ce.registry).map((t=>t.span)));class fe{constructor(t){}encode(t,e){throw new Error("SPL token does not have state")}decode(t){throw new Error("SPL token does not have state")}}function pe(t){return new ye(se(8),(t=>_e.fromBuffer(t)),(t=>t.toBuffer()),t)}function me(t){return new ye(se(32),(t=>new i.PublicKey(t)),(t=>t.toBuffer()),t)}function ge(t,e){return new be(t,e)}class ye extends Vt{constructor(t,e,n,r){super(t.span,r),this.layout=t,this.decoder=e,this.encoder=n}decode(t,e){return this.decoder(this.layout.decode(t,e))}encode(t,e,n){return this.layout.encode(this.encoder(t),e,n)}getSpan(t,e){return this.layout.getSpan(t,e)}}class be extends Vt{constructor(t,e){super(-1,e),this.layout=t,this.discriminator=new qt(4,void 0)}encode(t,e,n=0){return null==t?this.layout.span+this.discriminator.encode(0,e,n):(this.discriminator.encode(1,e,n),this.layout.encode(t,e,n+4)+4)}decode(t,e=0){const n=this.discriminator.decode(t,e);if(0===n)return null;if(1===n)return this.layout.decode(t,e+4);throw new Error("Invalid coption "+this.layout.property)}getSpan(t,e=0){return this.layout.getSpan(t,e+4)+4}}function ve(t){if(0===t)return!1;if(1===t)return!0;throw new Error("Invalid bool: "+t)}function we(t){return t?1:0}class _e extends(s()){toBuffer(){const t=super.toArray().reverse(),e=b.from(t);if(8===e.length)return e;if(e.length>=8)throw new Error("u64 too large");const n=b.alloc(8);return e.copy(n),n}static fromBuffer(t){if(8!==t.length)throw new Error(`Invalid buffer length: ${t.length}`);return new _e([...t].reverse().map((t=>`00${t.toString(16)}`.slice(-2))).join(""),16)}}class ke{constructor(t){this.idl=t}async encode(t,e){switch(t){case"token":{const t=b.alloc(165),n=xe.encode(e,t);return t.slice(0,n)}case"mint":{const t=b.alloc(82),n=Se.encode(e,t);return t.slice(0,n)}default:throw new Error(`Invalid account name: ${t}`)}}decode(t,e){return this.decodeUnchecked(t,e)}decodeUnchecked(t,e){switch(t){case"token":return function(t){return xe.decode(t)}(e);case"mint":return function(t){return Se.decode(t)}(e);default:throw new Error(`Invalid account name: ${t}`)}}memcmp(t,e){switch(t){case"token":return{dataSize:165};case"mint":return{dataSize:82};default:throw new Error(`Invalid account name: ${t}`)}}size(t){var e;return null!==(e=Rt(this.idl,t))&&void 0!==e?e:0}}const Se=oe([ge(me(),"mintAuthority"),pe("supply"),re("decimals"),new ye(re(),ve,we,"isInitialized"),ge(me(),"freezeAuthority")]),xe=oe([me("mint"),me("authority"),pe("amount"),ge(me(),"delegate"),re("state"),ge(pe(),"isNative"),pe("delegatedAmount"),ge(me(),"closeAuthority")]);class Ie{constructor(t){}decode(t){throw new Error("SPL token program does not have events")}}class Ae{constructor(t){this.instruction=new ae(t),this.accounts=new ke(t),this.events=new Ie(t),this.state=new fe(t)}}var Ee=Object.freeze({__proto__:null,hash:function(t){return(0,d.sha256)(t)}});function Te(t,e,n){const o=r.Buffer.concat([t.toBuffer(),r.Buffer.from(e),n.toBuffer()]),s=d.sha256.digest(o);return new i.PublicKey(r.Buffer.from(s))}function Pe(t,e){let n=r.Buffer.alloc(0);t.forEach((function(t){if(t.length>32)throw new TypeError("Max seed length exceeded");n=r.Buffer.concat([n,Me(t)])})),n=r.Buffer.concat([n,e.toBuffer(),r.Buffer.from("ProgramDerivedAddress")]);let o=(0,d.sha256)(new Uint8Array(n)),a=new(s())(o,16).toArray(void 0,32);if(i.PublicKey.isOnCurve(new Uint8Array(a)))throw new Error("Invalid seeds, address must fall off the curve");return new i.PublicKey(a)}function Ce(t,e){let n,i=255;for(;0!=i;){try{n=Pe(t.concat(r.Buffer.from([i])),e)}catch(o){if(o instanceof TypeError)throw o;i--;continue}return[n,i]}throw new Error("Unable to find a viable program address nonce")}const Me=t=>t instanceof r.Buffer?t:t instanceof Uint8Array?r.Buffer.from(t.buffer,t.byteOffset,t.byteLength):r.Buffer.from(t);async function Oe(t,...e){let n=[r.Buffer.from([97,110,99,104,111,114])];e.forEach((t=>{n.push(t instanceof r.Buffer?t:M(t).toBuffer())}));const[o]=await i.PublicKey.findProgramAddress(n,M(t));return o}var Re=Object.freeze({__proto__:null,createWithSeedSync:Te,createProgramAddressSync:Pe,findProgramAddressSync:Ce,associated:Oe});const Be=new i.PublicKey("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),je=new i.PublicKey("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");var Ne=Object.freeze({__proto__:null,TOKEN_PROGRAM_ID:Be,ASSOCIATED_PROGRAM_ID:je,associatedAddress:async function({mint:t,owner:e}){return(await i.PublicKey.findProgramAddress([e.toBuffer(),Be.toBuffer(),t.toBuffer()],je))[0]}}),Le={exports:{}};!function(t,e){var n="undefined"!=typeof self?self:Wt,r=function(){function t(){this.fetch=!1,this.DOMException=n.DOMException}return t.prototype=n,new t}();!function(t){!function(e){var n="URLSearchParams"in t,r="Symbol"in t&&"iterator"in Symbol,i="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),o="FormData"in t,s="ArrayBuffer"in t;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array
1]"],c=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function l(t){return"string"!=typeof t&&(t=String(t)),t}function h(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function d(t){this.map={},t instanceof d?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function f(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function p(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function m(t){var e=new FileReader,n=p(e);return e.readAsArrayBuffer(t),n}function g(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:n&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&i&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=g(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=g(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var t=f(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var t=f(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,n=p(e);return e.readAsText(t),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(t,e){t=u(t),e=l(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},d.prototype.delete=function(t){delete this.map[u(t)]},d.prototype.get=function(t){return t=u(t),this.has(t)?this.map[t]:null},d.prototype.has=function(t){return this.map.hasOwnProperty(u(t))},d.prototype.set=function(t,e){this.map[u(t)]=l(e)},d.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},d.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),h(t)},d.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),h(t)},d.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),h(t)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(t,e){var n,r,i=(e=e||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new d(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new d(e.headers)),this.method=(r=(n=e.method||this.method||"GET").toUpperCase(),b.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function w(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function _(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},y.call(v.prototype),y.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},_.error=function(){var t=new _(null,{status:0,statusText:""});return t.type="error",t};var k=[301,302,303,307,308];_.redirect=function(t,e){if(-1===k.indexOf(e))throw new RangeError("Invalid status code");return new _(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function S(t,n){return new Promise((function(r,o){var s=new v(t,n);if(s.signal&&s.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,n={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new d,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEac
1h((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();e.append(r,i)}})),e)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;r(new _(i,n))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&i&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}S.polyfill=!0,t.fetch||(t.fetch=S,t.Headers=d,t.Request=v,t.Response=_),e.Headers=d,e.Request=v,e.Response=_,e.fetch=S,Object.defineProperty(e,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(e=i.fetch).default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e}(Le,Le.exports);var De=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(Le.exports);async function ze(t,e){const n=await t.getAccountInfo(e);if(null===n)throw new Error("program account not found");const{program:r}=Ue(n.data),i=await t.getAccountInfo(r.programdataAddress);if(null===i)throw new Error("program data account not found");const{programData:o}=Ue(i.data);return o}const Fe=f.rustEnum([f.struct([],"uninitialized"),f.struct([f.option(f.publicKey(),"authorityAddress")],"buffer"),f.struct([f.publicKey("programdataAddress")],"program"),f.struct([f.u64("slot"),f.option(f.publicKey(),"upgradeAuthorityAddress")],"programData")],void 0,f.u32());function Ue(t){return Fe.decode(t)}var We=Object.freeze({__proto__:null,verifiedBuild:async function(t,e,n=5){const r=`https://anchor.projectserum.com/api/v0/program/${e.toString()}/latest?limit=${n}`,[i,o]=await Promise.all([ze(t,e),De(r)]),s=(await o.json()).filter((t=>!t.aborted&&"Built"===t.state&&"Verified"===t.verified));if(0===s.length)return null;const a=s[0];return i.slot.toNumber()!==a.verified_slot?null:a},fetchData:ze,decodeUpgradeableLoaderState:Ue}),Ge=Object.freeze({__proto__:null,sha256:Ee,rpc:ot,publicKey:Re,bytes:E,token:Ne,features:gt,registry:We});const Ve=f.struct([f.publicKey("authority"),f.vecU8("data")]);function Ke(t,e){var n,r;let i={};const o=t.args?t.args.length:0;if(e.length>o){if(e.length!==o+1)throw new Error(`provided too many arguments ${e} to instruction ${null==t?void 0:t.name} expecting: ${null!==(r=null===(n=t.args)||void 0===n?void 0:n.map((t=>t.name)))&&void 0!==r?r:[]}`);i=e.pop()}return[e,i]}class He{static build(t,e,n){if("_inner"===t.name)throw new yt("the _inner name is reserved");const r=(...o)=>{const[s,a]=Ke(t,[...o]);C(t.accounts,a.accounts);const c=r.accounts(a.accounts);return void 0!==a.remainingAccounts&&c.push(...a.remainingAccounts),mt("debug-logs")&&console.log("Outgoing account metas:",c),new i.TransactionInstruction({keys:c,programId:n,data:e(t.name,P(t,...s))})};return r.accounts=e=>He.accountsArray(e,t.accounts,t.name),r}static accountsArray(t,e,n){return t?e.map((e=>{if(void 0!==("accounts"in e?e.accounts:void 0)){const r=t[e.name];return He.accountsArray(r,e.accounts,n).flat()}{const r=e;let i;try{i=M(t[e.name])}catch(t){throw new Error(`Wrong input type for account "${e.name}" in the instruction accounts object${void 0!==n?' for instruction "'+n+'"':""}. Expected PublicKey or string.`)}return{pubkey:i,isWritable:r.isMut,isSigner:r.isSigner}}})).flat():[]}}class qe{static build(t,e,n,r){return async(...i)=>{var o;const s=e(...i),[,a]=Ke(t,[...i]);if(void 0===r.sendAndConfirm)throw new Error("This function requires 'Provider.sendAndConfirm' to be implemented.");try{return await r.sendAndConfirm(s,null!==(o=a.signers)&&void 0!==o?o:[],a.options)}catch(t){throw _t(t,n)}}}}class $e{static build(t,e){return(...n)=>{var r,o,s;const[,a]=Ke(t,[...n]),c=new i.Transaction;if(a.preInstructions&&a.instructions)throw new Error("instructions is deprecated, use preInstructions");return null===(r=a.preInstructions)||void 0===r||r.forEach((t=>c.add(t))),null===(o=a.instructions)||void 0===o||o.forEach((t=>c.add(t))),c.add(e(...n)),null===(s=a.postInstructions)||void 0===s||s.forEac
1h((t=>c.add(t))),c}}}class Ze{constructor(t,e,n=ht(),r=new Ut(t)){this.provider=n,this.coder=r,this._idl=t,this._programId=e,this._address=Ye(e),this._sub=null;const[o,s,a]=(()=>{var o;let s={},a={},c={};return null===(o=t.state)||void 0===o||o.methods.forEach((o=>{const u=He.build(o,((t,e)=>r.instruction.encodeState(t,e)),e);u.accounts=t=>{const r=function(t,e,n,r){if("new"===n.name){const[n]=Ce([],t);if(void 0===e.wallet)throw new Error("This function requires the Provider interface implementor to have a 'wallet' field.");return[{pubkey:e.wallet.publicKey,isWritable:!1,isSigner:!0},{pubkey:Ye(t),isWritable:!0,isSigner:!1},{pubkey:n,isWritable:!1,isSigner:!1},{pubkey:i.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:t,isWritable:!1,isSigner:!1}]}return C(n.accounts,r),[{pubkey:Ye(t),isWritable:!0,isSigner:!1}]}(e,n,o,t);return r.concat(He.accountsArray(t,o.accounts,o.name))};const l=$e.build(o,u),d=qe.build(o,l,T(t),n),f=h()(o.name);s[f]=u,a[f]=l,c[f]=d})),[s,a,c]})();this.instruction=o,this.transaction=s,this.rpc=a}get programId(){return this._programId}async fetch(){const t=this.address(),e=await this.provider.connection.getAccountInfo(t);if(null===e)throw new Error(`Account does not exist ${t.toString()}`);const n=this._idl.state;if(!n)throw new Error("State is not specified in IDL.");if((await Ft(n.struct.name)).compare(e.data.slice(0,8)))throw new Error("Invalid account discriminator");return this.coder.state.decode(e.data)}address(){return this._address}subscribe(t){if(null!==this._sub)return this._sub.ee;const e=new(g()),n=this.provider.connection.onAccountChange(this.address(),(t=>{const n=this.coder.state.decode(t.data);e.emit("change",n)}),t);return this._sub={ee:e,listener:n},e}unsubscribe(){null!==this._sub&&this.provider.connection.removeAccountChangeListener(this._sub.listener).then((async()=>{this._sub=null})).catch(console.error)}}function Ye(t){let[e]=Ce([],t);return Te(e,"unversioned",t)}class Xe{constructor(t,e,n,r,i){this._idlAccount=e,this._programId=n,this._provider=null!=r?r:ht(),this._coder=null!=i?i:new Ut(t),this._size=this._coder.accounts.size(e)}get size(){return this._size}get programId(){return this._programId}get provider(){return this._provider}get coder(){return this._coder}async fetchNullable(t,e){const n=await this.getAccountInfo(t,e);return null===n?null:this._coder.accounts.decode(this._idlAccount.name,n.data)}async fetch(t,e){const n=await this.fetchNullable(t,e);if(null===n)throw new Error(`Account does not exist ${t.toString()}`);return n}async fetchMultiple(t,e){return(await J(this._provider.connection,t.map((t=>M(t))),e)).map((t=>null==t?null:this._coder.accounts.decode(this._idlAccount.name,null==t?void 0:t.account.data)))}async all(t){return(await this._provider.connection.getProgramAccounts(this._programId,{commitment:this._provider.connection.commitment,filters:[{memcmp:this.coder.accounts.memcmp(this._idlAccount.name,t instanceof b?t:void 0)},...Array.isArray(t)?t:[]]})).map((({pubkey:t,account:e})=>({publicKey:t,account:this._coder.accounts.decode(this._idlAccount.name,e.data)})))}subscribe(t,e){const n=Je.get(t.toString());if(n)return n.ee;const r=new(g());t=M(t);const i=this._provider.connection.onAccountChange(t,(t=>{const e=this._coder.accounts.decode(this._idlAccount.name,t.data);r.emit("change",e)}),e);return Je.set(t.toString(),{ee:r,listener:i}),r}async unsubscribe(t){let e=Je.get(t.toString());e?Je&&await this._provider.connection.removeAccountChangeListener(e.listener).then((()=>{Je.delete(t.toString())})).catch(console.error):console.warn("Address is not subscribed")}async createInstruction(t,e){const n=this.size;if(void 0===this._provider.wallet)throw new Error("This function requires the Provider interface implementor to have a 'wallet' field.");return i.SystemProgram.createAccount({fromPubkey:this._provider.wallet.publicKey,newAccountPubkey:t.publicKey,space:null!=e?e:n,lamports:await this._provider.connection.getMinimumBalanceForRentExemption(null!=e?e:n),programId:this._programId})}async associated(...t){const e=await this.associatedAddress(...t);return await this.fetch(e)}async associatedAddress(...t){return await Oe(this._programId,...t)}async getAccountInfo(t,e){return await this._provider.connection.getAccountInfo(M(t),e)}}const Je=new Map,Qe="Program log: ".length,tn="Program data: ".length;class en{constructor(t,e,n){this._programId=t,this._provider=e,this._eventParser=new nn(t,n),this._eventCallbacks=new Map,this._eventListeners=new Map,this._listenerIdCount=0}
1addEventListener(t,e){var n;let r=this._listenerIdCount;return this._listenerIdCount+=1,t in this._eventCallbacks||this._eventListeners.set(t,[]),this._eventListeners.set(t,(null!==(n=this._eventListeners.get(t))&&void 0!==n?n:[]).concat(r)),this._eventCallbacks.set(r,[t,e]),void 0!==this._onLogsSubscriptionId||(this._onLogsSubscriptionId=this._provider.connection.onLogs(this._programId,((t,e)=>{t.err||this._eventParser.parseLogs(t.logs,(t=>{const n=this._eventListeners.get(t.name);n&&n.forEach((n=>{const r=this._eventCallbacks.get(n);if(r){const[,n]=r;n(t.data,e.slot)}}))}))}))),r}async removeEventListener(t){const e=this._eventCallbacks.get(t);if(!e)throw new Error(`Event listener ${t} doesn't exist!`);const[n]=e;let r=this._eventListeners.get(n);if(!r)throw new Error(`Event listeners don't exist for ${n}!`);this._eventCallbacks.delete(t),r=r.filter((e=>e!==t)),0===r.length&&this._eventListeners.delete(n),0==this._eventCallbacks.size&&(y.ok(0===this._eventListeners.size),void 0!==this._onLogsSubscriptionId&&(await this._provider.connection.removeOnLogsListener(this._onLogsSubscriptionId),this._onLogsSubscriptionId=void 0))}}class nn{constructor(t,e){this.coder=e,this.programId=t}parseLogs(t,e){const n=new on(t),r=new rn;let i=n.next();for(;null!==i;){let[t,o,s]=this.handleLog(r,i);t&&e(t),o&&r.push(o),s&&r.pop(),i=n.next()}}handleLog(t,e){return t.stack.length>0&&t.program()===this.programId.toString()?this.handleProgramLog(e):[null,...this.handleSystemLog(e)]}handleProgramLog(t){if(t.startsWith("Program log: ")||t.startsWith("Program data: ")){const e=t.startsWith("Program log: ")?t.slice(Qe):t.slice(tn);return[this.coder.events.decode(e),null,!1]}return[null,...this.handleSystemLog(t)]}handleSystemLog(t){const e=t.split(":")[0];return null!==e.match(/^Program (.*) success/g)?[null,!0]:e.startsWith(`Program ${this.programId.toString()} invoke`)?[this.programId.toString(),!1]:e.includes("invoke")?["cpi",!1]:[null,!1]}}class rn{constructor(){this.stack=[]}program(){return y.ok(this.stack.length>0),this.stack[this.stack.length-1]}push(t){this.stack.push(t)}pop(){y.ok(this.stack.length>0),this.stack.pop()}}class on{constructor(t){this.logs=t}next(){if(0===this.logs.length)return null;let t=this.logs[0];return this.logs=this.logs.slice(1),t}}const sn=new i.PublicKey("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");function an(){return new Ae(cn)}const cn={version:"0.1.0",name:"spl_token",instructions:[{name:"initializeMint",accounts:[{name:"mint",isMut:!0,isSigner:!1},{name:"rent",isMut:!1,isSigner:!1}],args:[{name:"decimals",type:"u8"},{name:"mintAuthority",type:"publicKey"},{name:"freezeAuthority",type:{coption:"publicKey"}}]},{name:"initializeAccount",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!1},{name:"rent",isMut:!1,isSigner:!1}],args:[]},{name:"initializeMultisig",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"rent",isMut:!1,isSigner:!1}],args:[{name:"m",type:"u8"}]},{name:"transfer",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"destination",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"}]},{name:"approve",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"delegate",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"}]},{name:"revoke",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[]},{name:"setAuthority",accounts:[{name:"mint",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"authorityType",type:"u8"},{name:"newAuthority",type:{coption:"publicKey"}}]},{name:"mintTo",accounts:[{name:"mint",isMut:!0,isSigner:!1},{name:"to",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"}]},{name:"burn",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"mint",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"}]},{name:"closeAccount",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"destination",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!1}],args:[]},{name:"freezeAccount",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[]},{name:"thawAccount",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[]},{name:"transferChecked",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"destination",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"},{name:"decimals",type:"u8"}]},{name:"approveChecked",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"delegate",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"},{name:"decimals",type:"u8"}]},{name:"mintToChecked",accounts:[{name:"mint",isMut:!0,isSigner:!1},{name:"to",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"},{name:"decimals",type:"u8"}]},{name:"burnChecked",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"mint",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"},{name:"decimals",type:"u8"}]},{name:"initializeAccount2",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"rent",isMut:!1,isSigner:!1}],args:[{name:"authority",type:"publicKey"}]},{name:"syncNative",accounts:[{name:"account",isMut:!0,isSigner:!1}],args:[]},{name:"initializeAccount3",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1}],args:[{name:"authority",type:"publicKey"}]},{name:"initializeMultisig2",accounts:[{name:"account",isMut:!0,isSigner:!1}],args:[{name:"m",type:"u8"}]},{name:"initializeMint2",accounts:[{name:"mint",isMut:!0,isSigner:!1}],args:[{name:"decimals",type:"u8"},{name:"mintAuthority",type:"publicKey"},{name:"freezeAuthority",type:{coption:"publicKey"}}]}],accounts:[{name:"mint",type:{kind:"struct",fields:[{name:"mintAuthority",type:{coption:"publicKey"}},{name:"supply",type:"u64"},{name:"decimals",type:"u8"},{name:"isInitialized",type:"bool"},{name:"freezeAuthority",type:{coption:"publicKey"}}]}},{name:"token",type:{kind:"struct",fields:[{name:"mint",type:"publicKey"},{name:"authority",type:"publicKey"},{name:"amount",type:"u64"},{name:"delegate",type:{coption:"publicKey"}},{name:"state",type:"u8"},{name:"isNative",type:{coption:"u64"}},{name:"delegatedAmount",type:"u64"},{name:"closeAuthority",type:{coption:"publicKey"}}]}}]};class un{constructor(t,e,n,r,i,o){this._args=t,this._accounts=e,this._provider=n,this._programId=r,this._idlIx=i,this._accountStore=new ln(n,o)}async resolve(){for(let t=0;t<this._idlIx.accounts.length;t+=1){const e=this._idlIx.accounts[t],n=h()(e.name);if(e.pda&&e.pda.seeds.length>0&&!this._accounts[n])await this.autoPopulatePda(e);else if(!e.isSigner||this._accounts[n])Reflect.has(un.CONST_ACCOUNTS,n)&&!this._accounts[n]&&(this._accounts[n]=un.CONST_ACCOUNTS[n]);else{if(void 0===this._provider.wallet)throw new Error("This function requires the Provider interface implementor to have a 'wallet' field.");this._accounts[n]=this._provider.wallet.publicKey}}}async autoPopulatePda(t){if(!t.pda||!t.pda.seeds)throw new Error("Mu
1st have seeds");const e=await Promise.all(t.pda.seeds.map((t=>this.toBuffer(t)))),n=await this.parseProgramId(t),[r]=await i.PublicKey.findProgramAddress(e,n);this._accounts[h()(t.name)]=r}async parseProgramId(t){var e;if(!(null===(e=t.pda)||void 0===e?void 0:e.programId))return this._programId;switch(t.pda.programId.kind){case"const":return new i.PublicKey(this.toBufferConst(t.pda.programId.value));case"arg":return this.argValue(t.pda.programId);case"account":return await this.accountValue(t.pda.programId);default:throw new Error(`Unexpected program seed kind: ${t.pda.programId.kind}`)}}async toBuffer(t){switch(t.kind){case"const":return this.toBufferConst(t);case"arg":return await this.toBufferArg(t);case"account":return await this.toBufferAccount(t);default:throw new Error(`Unexpected seed kind: ${t.kind}`)}}toBufferConst(t){return this.toBufferValue(t.type,t.value)}async toBufferArg(t){const e=this.argValue(t);return this.toBufferValue(t.type,e)}argValue(t){const e=h()(t.path.split(".")[0]),n=this._idlIx.args.findIndex((t=>t.name===e));if(-1===n)throw new Error(`Unable to find argument for seed: ${e}`);return this._args[n]}async toBufferAccount(t){const e=await this.accountValue(t);return this.toBufferValue(t.type,e)}async accountValue(t){const e=t.path.split("."),n=e[0],r=this._accounts[h()(n)];if(1===e.length)return r;const i=await this._accountStore.fetchAccount(t.account,r);return this.parseAccountValue(i,e.slice(1))}parseAccountValue(t,e){let n;for(;e.length>0;)n=t[h()(e[0])],e=e.slice(1);return n}toBufferValue(t,e){switch(t){case"u8":return b.from([e]);case"u16":let n=b.alloc(2);return n.writeUInt16LE(e),n;case"u32":let r=b.alloc(4);return r.writeUInt32LE(e),r;case"u64":let i=b.alloc(8);return i.writeBigUInt64LE(BigInt(e)),i;case"string":return b.from(_(e));case"publicKey":return e.toBuffer();default:if(t.array)return b.from(e);throw new Error(`Unexpected seed type: ${t}`)}}}un.CONST_ACCOUNTS={systemProgram:i.SystemProgram.programId,tokenProgram:Be,associatedTokenProgram:je,rent:i.SYSVAR_RENT_PUBKEY};class ln{constructor(t,e){this._provider=t,this._accounts=e,this._cache=new Map}async fetchAccount(t,e){const n=e.toString();if(!this._cache.has(n))if("TokenAccount"===t){const t=await this._provider.connection.getAccountInfo(e);if(null===t)throw new Error(`invalid account info for ${n}`);const r=an().accounts.decode("token",t.data);this._cache.set(n,r)}else{const r=this._accounts[h()(t)].fetch(e);this._cache.set(n,r)}return this._cache.get(n)}}class hn{static build(t,e,n,r,i,o,s,a,c){return(...u)=>new dn(u,r,i,o,s,a,t,e,n,c)}}class dn{constructor(t,e,n,r,i,o,s,a,c,u){this._args=t,this._ixFn=e,this._txFn=n,this._rpcFn=r,this._simulateFn=i,this._viewFn=o,this._accounts={},this._remainingAccounts=[],this._signers=[],this._preInstructions=[],this._postInstructions=[],this._accountsResolver=new un(t,this._accounts,s,a,c,u)}async pubkeys(){return await this._accountsResolver.resolve(),this._accounts}accounts(t){return Object.assign(this._accounts,t),this}signers(t){return this._signers=this._signers.concat(t),this}remainingAccounts(t){return this._remainingAccounts=this._remainingAccounts.concat(t),this}preInstructions(t){return this._preInstructions=this._preInstructions.concat(t),this}postInstructions(t){return this._postInstructions=this._postInstructions.concat(t),this}async rpc(t){return await this._accountsResolver.resolve(),this._rpcFn(...this._args,{accounts:this._accounts,signers:this._signers,remainingAccounts:this._remainingAccounts,preInstructions:this._preInstructions,postInstructions:this._postInstructions,options:t})}async view(t){if(await this._accountsResolver.resolve(),!this._viewFn)throw new Error("Method does not support views");return this._viewFn(...this._args,{accounts:this._accounts,signers:this._signers,remainingAccounts:this._remainingAccounts,preInstructions:this._preInstructions,postInstructions:this._postInstructions,options:t})}async simulate(t){return await this._accountsResolver.resolve(),this._simulateFn(...this._args,{accounts:this._accounts,signers:this._signers,remainingAccounts:this._remainingAccounts,preInstructions:this._preInstructions,postInstructions:this._postInstructions,options:t})}async instruction(){return await this._accountsResolver.resolve(),this._ixFn(...this._args,{accounts:this._accounts,signers:this._signers,remainingAccounts:this._remainingAccounts,preInstructions:this._preInstructions,postInstructions:this._postInstructions})}async transaction(){return await this._accountsResolver.resolve(),this._txFn(...this._args,{accounts:this._accounts,signers:this._signers,remainingAccounts:this._remainingAccounts,preInstructions:this._preInstructions,postInstructions:this._postInstructions})}}class fn{constructor(t,e,n,r){e=M(e),n||(n=ht()),this._idl=t,this._provider=n,this._programId=e,this._coder=null!=r?r:new
1Ut(t),this._events=new en(this._programId,n,this._coder);const[i,o,s,a,c,u,l,d]=class{static build(t,e,n,r){const i={},o={},s={},a={},c={},u={},l=T(t),d=t.accounts?class{static build(t,e,n,r){var i;const o={};return null===(i=t.accounts)||void 0===i||i.forEach((i=>{const s=h()(i.name);o[s]=new Xe(t,i,n,r,e)})),o}}.build(t,e,n,r):{},f=class{static build(t,e,n,r){if(void 0!==t.state)return new Ze(t,n,r,e)}}.build(t,e,n,r);return t.instructions.forEach((f=>{const p=He.build(f,((t,n)=>e.instruction.encode(t,n)),n),m=$e.build(f,p),g=qe.build(f,m,l,r),y=class{static build(t,e,n,r,i,o,s){return async(...a)=>{var c;const u=e(...a),[,l]=Ke(t,[...a]);let h;if(void 0===r.simulate)throw new Error("This function requires 'Provider.simulate' to be implemented.");try{h=await r.simulate(u,l.signers,null===(c=l.options)||void 0===c?void 0:c.commitment)}catch(t){throw _t(t,n)}if(void 0===h)throw new Error("Unable to simulate transaction");const d=h.logs;if(!d)throw new Error("Simulated logs not found");const f=[];return s.events&&new nn(o,i).parseLogs(d,(t=>{f.push(t)})),{events:f,raw:d}}}}.build(f,m,l,r,e,n,t),b=class{static build(t,e,n,r){const i=e.accounts.find((t=>t.isMut)),o=!!e.returns;if(!i&&o)return async(...i)=>{var o,s;let a=await n(...i);const c=`Program return: ${t} `;let u=a.raw.find((t=>t.startsWith(c)));if(!u)throw new Error("View expected return log");let l=I(u.slice(c.length)),h=e.returns;if(!h)throw new Error("View expected return type");return Pt.fieldLayout({type:h},Array.from([...null!==(o=r.accounts)&&void 0!==o?o:[],...null!==(s=r.types)&&void 0!==s?s:[]])).decode(l)}}}.build(n,f,y,t),v=hn.build(r,n,f,p,m,g,y,b,d),w=h()(f.name);o[w]=p,s[w]=m,i[w]=g,a[w]=y,c[w]=v,b&&(u[w]=b)})),[i,o,s,d,a,c,f,u]}}.build(t,this._coder,e,n);this.rpc=i,this.instruction=o,this.transaction=s,this.account=a,this.simulate=c,this.methods=u,this.state=l,this.views=d}get programId(){return this._programId}get idl(){return this._idl}get coder(){return this._coder}get provider(){return this._provider}static async at(t,e){const n=M(t),r=await fn.fetchIdl(n,e);if(!r)throw new Error(`IDL not found for program: ${t.toString()}`);return new fn(r,n,e)}static async fetchIdl(t,e){e=null!=e?e:ht();const n=M(t),r=await async function(t){const e=(await i.PublicKey.findProgramAddress([],t))[0];return await i.PublicKey.createWithSeed(e,"anchor:idl",t)}(n),o=await e.connection.getAccountInfo(r);if(!o)return null;let s=(a=o.data.slice(8),Ve.decode(a));var a;const c=(0,p.rr)(s.data);return JSON.parse(w(c))}addEventListener(t,e){return this._events.addEventListener(t,e)}async removeEventListener(t){return await this._events.removeEventListener(t)}}class pn{static token(t){return function(t){return new fn(cn,sn,t,an())}(t)}}},80207:function(t,e,n){"use strict";var r=n(11766).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.map=e.array=e.rustEnum=e.str=e.vecU8=e.tagged=e.vec=e.bool=e.option=e.publicKey=e.i128=e.u128=e.i64=e.u64=e.struct=e.f64=e.f32=e.i32=e.u32=e.i16=e.u16=e.i8=e.u8=void 0;const o=n(20698),s=n(96370),a=i(n(13550));var c=n(20698);Object.defineProperty(e,"u8",{enumerable:!0,get:function(){return c.u8}}),Object.defineProperty(e,"i8",{enumerable:!0,get:function(){return c.s8}}),Object.defineProperty(e,"u16",{enumerable:!0,get:function(){return c.u16}}),Object.defineProperty(e,"i16",{enumerable:!0,get:function(){return c.s16}}),Object.defineProperty(e,"u32",{enumerable:!0,get:function(){return c.u32}}),Object.defineProperty(e,"i32",{enumerable:!0,get:function(){return c.s32}}),Object.defineProperty(e,"f32",{enumerable:!0,get:function(){return c.f32}}),Object.defineProperty(e,"f64",{enumerable:!0,get:function(){return c.f64}}),Object.defineProperty(e,"struct",{enumerable:!0,get:function(){return c.struct}});class u extends o.Layout{constructor(t,e,n){super(t,n),this.blob=o.blob(t),this.signed=e}decode(t,e=0){const n=new a.default(this.blob.decode(t,e),10,"le");return this.signed?n.fromTwos(8*this.span).clone():n}encode(t,e,n=0){return this.signed&&(t=t.toTwos(8*this.span)),this.blob.encode(t.toArrayLike(r,"le",this.span),e,n)}}function l(t){return new u(8,!1,t)}e.u64=l,e.i64=function(t){return new u(8,!0,t)},e.u128=function(t){return new u(16,!1,t)},e.i128=function(t){return new u(16,!0,t)};class h extends o.Layout{constructor(t,e,n,r){super(t.span,r),this.layout=t,this.decoder=e,this.encoder=n}decode(t,e){return this.decoder(this.layout.decode(t,e))}encode(t,e,n){return this.layout.encode(this.encoder(t),e,n)}getSpan(t,e){return this.layout.getSpan(t,e)}}e.publicKey=function(t){return new h(o.blob(32),(t=>new s.PublicKey(t)),(t=>t.toBuffer()),t)};class d extends o.Layout{constructor(t,e){super(-1,e),this.layout=t,this.discriminator=o.u8()}encode(t,e,n=0){return null===t||void 0===t?this.discriminator.encode(0,e,n):(this.discriminator.encode(1,e,n),this.layout.encode(t,e,n+1)+1)}decode(t,e=0){const n=this.discriminator.decode(t,e);if(0===n)return null;if(1===n)return this.layout.decode(t,e+1);throw new Error("Invalid option "+this.property)}getSpan(t,e=0){const n=this.discriminator.decode(t,e);if(0===n)return 1;if(1===n)return this.layout.getSpan(t,e+1)+1;throw new Error("Invalid option "+this.property)}}function f(t){if(0===t)return!1;if(1===t)return!0;throw new Error("Invalid bool: "+t)}function p(t){return t?1:0}function m(t){const e=o.u32("length"),n=o.struct([e,o.blob(o.offset(e,-e.span),"data")]);
1return new h(n,(({data:t})=>t),(t=>({data:t})),t)}e.option=function(t,e){return new d(t,e)},e.bool=function(t){return new h(o.u8(),f,p,t)},e.vec=function(t,e){const n=o.u32("length"),r=o.struct([n,o.seq(t,o.offset(n,-n.span),"values")]);return new h(r,(({values:t})=>t),(t=>({values:t})),e)},e.tagged=function(t,e,n){const r=o.struct([l("tag"),e.replicate("data")]);return new h(r,(function({tag:e,data:n}){if(!e.eq(t))throw new Error("Invalid tag, expected: "+t.toString("hex")+", got: "+e.toString("hex"));return n}),(e=>({tag:t,data:e})),n)},e.vecU8=m,e.str=function(t){return new h(m(),(t=>t.toString("utf-8")),(t=>r.from(t,"utf-8")),t)},e.rustEnum=function(t,e,n){const r=o.union(null!==n&&void 0!==n?n:o.u8(),e);return t.forEach(((t,e)=>r.addVariant(e,t,t.property))),r},e.array=function(t,e,n){const r=o.struct([o.seq(t,e,"values")]);return new h(r,(({values:t})=>t),(t=>({values:t})),n)};class g extends o.Layout{constructor(t,e,n){super(t.span+e.span,n),this.keyLayout=t,this.valueLayout=e}decode(t,e){e=e||0;return[this.keyLayout.decode(t,e),this.valueLayout.decode(t,e+this.keyLayout.getSpan(t,e))]}encode(t,e,n){n=n||0;const r=this.keyLayout.encode(t[0],e,n);return r+this.valueLayout.encode(t[1],e,n+r)}getSpan(t,e){return this.keyLayout.getSpan(t,e)+this.valueLayout.getSpan(t,e)}}e.map=function(t,e,n){const r=o.u32("length"),i=o.struct([r,o.seq(new g(t,e),o.offset(r,-r.span),"values")]);return new h(i,(({values:t})=>new Map(t)),(t=>({values:Array.from(t.entries())})),n)}},96370:function(t,e,n){"use strict";n.r(e),n.d(e,{Account:function(){return qe},AddressLookupTableAccount:function(){return Hn},AddressLookupTableInstruction:function(){return Ti},AddressLookupTableProgram:function(){return Pi},Authorized:function(){return Fi},BLOCKHASH_CACHE_TIMEOUT_MS:function(){return Qn},BPF_LOADER_DEPRECATED_PROGRAM_ID:function(){return $e},BPF_LOADER_PROGRAM_ID:function(){return Bn},BpfLoader:function(){return jn},COMPUTE_BUDGET_INSTRUCTION_LAYOUTS:function(){return Mi},ComputeBudgetInstruction:function(){return Ci},ComputeBudgetProgram:function(){return Oi},Connection:function(){return Ii},Ed25519Program:function(){return Bi},Enum:function(){return De},EpochSchedule:function(){return Un},FeeCalculatorLayout:function(){return Sn},Keypair:function(){return Ai},LAMPORTS_PER_SOL:function(){return uo},LOOKUP_TABLE_INSTRUCTION_LAYOUTS:function(){return Ei},Loader:function(){return Rn},Lockup:function(){return Ui},MAX_SEED_LENGTH:function(){return Fe},Message:function(){return rn},NONCE_ACCOUNT_LENGTH:function(){return In},NonceAccount:function(){return An},PACKET_DATA_SIZE:function(){return Ze},PublicKey:function(){return Ue},SIGNATURE_LENGTH_IN_BYTES:function(){return Ye},SOLANA_SCHEMA:function(){return ze},STAKE_CONFIG_ID:function(){return zi},STAKE_INSTRUCTION_LAYOUTS:function(){return Gi},SYSTEM_INSTRUCTION_LAYOUTS:function(){return Cn},SYSVAR_CLOCK_PUBKEY:function(){return ln},SYSVAR_EPOCH_SCHEDULE_PUBKEY:function(){return hn},SYSVAR_INSTRUCTIONS_PUBKEY:function(){return dn},SYSVAR_RECENT_BLOCKHASHES_PUBKEY:function(){return fn},SYSVAR_RENT_PUBKEY:function(){return pn},SYSVAR_REWARDS_PUBKEY:function(){return mn},SYSVAR_SLOT_HASHES_PUBKEY:function(){return gn},SYSVAR_SLOT_HISTORY_PUBKEY:function(){return yn},SYSVAR_STAKE_HISTORY_PUBKEY:function(){return bn},Secp256k1Program:function(){return Di},SendTransactionError:function(){return Wn},SolanaJSONRPCError:function(){return Vn},SolanaJSONRPCErrorCode:function(){return Gn},StakeAuthorizationLayout:function(){return Vi},StakeInstruction:function(){return Wi},StakeProgram:function(){return Ki},Struct:function(){return Le},SystemInstruction:function(){return Pn},SystemProgram:function(){return Mn},Transaction:function(){return un},TransactionExpiredBlockheightExceededError:function(){return Xe},TransactionExpiredTimeoutError:function(){return Je},TransactionInstruction:function(){return cn},TransactionStatus:function(){return sn},VALIDATOR_INFO_KEY:function(){return Xi},VOTE_PROGRAM_ID:function(){return to},ValidatorInfo:function(){return Qi},VoteAccount:function(){return no},VoteAuthorizationLayout:function(){return Zi},VoteInit:function(){return Hi},VoteInstruction:function(){return qi},VoteProgram:function(){return Yi},clusterApiUrl:function(){return ao},sendAndConfirmRawTransaction:function(){return co},sendAndConfirmTransaction:function(){return vn}});var r=n(50780),i=n.n(r),o=n(11766),s=n(13550),a=n.n(s),c=n(65658),u=n.n(c),l=n(25532),h=n(39386),d=n(40475),f=n(53471),p=n(83937),m=n(31198),g=n.n(m),y=n(17221),b=n.n(y),v=n(91094),w=n.n(v);const _=t=>o.Buffer.isBuffer(t)?t:t instanceof Uint8Array?o.Buffer.from(t.buffer,t.byteOffset,t.byteLength):o.Buffer.from(t);var k={},S={},x=I;function I(t,e){if(!t)throw new Error(e||"Assertion failed")}I.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)};var A={exports:{}};"function"===typeof Object.create?A.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:A.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}};var E=x,T=A.exports;function P(t,e){return 55296===(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320===(64512&t.charCodeAt(e+1)))}function C(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function M(t){return 1===t.length?"0"+t:t}function O(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}S.inherits=T,S.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"===typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(t="0"+t),i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16))}else for(var r=0,i=0;i<t.length;i++){var o=t.charCodeAt(i);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=63&o|128):P(t,i)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i<t.length;i++)n[i]=0|t[i];return n},S.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=M(t[n].toString(16));return e},S.htonl=C,S.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var i=t[r];
vendor: 5,130 bytes, line 1
1"little"===e&&(i=C(i)),n+=O(i.toString(16))}return n},S.zero2=M,S.zero8=O,S.join32=function(t,e,n,r){var i=n-e;E(i%4===0);for(var o=new Array(i/4),s=0,a=e;s<o.length;s++,a+=4){var c;c="big"===r?t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]:t[a+3]<<24|t[a+2]<<16|t[a+1]<<8|t[a],o[s]=c>>>0}return o},S.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r<t.length;r++,i+=4){var o=t[r];"big"===e?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},S.rotr32=function(t,e){return t>>>e|t<<32-e},S.rotl32=function(t,e){return t<<e|t>>>32-e},S.sum32=function(t,e){return t+e>>>0},S.sum32_3=function(t,e,n){return t+e+n>>>0},S.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},S.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},S.sum64=function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,s=(o<r?1:0)+n+i;t[e]=s>>>0,t[e+1]=o},S.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},S.sum64_lo=function(t,e,n,r){return e+r>>>0},S.sum64_4_hi=function(t,e,n,r,i,o,s,a){var c=0,u=e;return c+=(u=u+r>>>0)<e?1:0,c+=(u=u+o>>>0)<o?1:0,t+n+i+s+(c+=(u=u+a>>>0)<a?1:0)>>>0},S.sum64_4_lo=function(t,e,n,r,i,o,s,a){return e+r+o+a>>>0},S.sum64_5_hi=function(t,e,n,r,i,o,s,a,c,u){var l=0,h=e;return l+=(h=h+r>>>0)<e?1:0,l+=(h=h+o>>>0)<o?1:0,l+=(h=h+a>>>0)<a?1:0,t+n+i+s+c+(l+=(h=h+u>>>0)<u?1:0)>>>0},S.sum64_5_lo=function(t,e,n,r,i,o,s,a,c,u){return e+r+o+a+u>>>0},S.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},S.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},S.shr64_hi=function(t,e,n){return t>>>n},S.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0};var R={},B=S,j=x;function N(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}R.BlockHash=N,N.prototype.update=function(t,e){if(t=B.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=B.join32(t,0,t.length-n,this.endian);for(var r=0;r<t.length;r+=this._delta32)this._update(t,r,r+this._delta32)}return this},N.prototype.digest=function(t){return this.update(this._pad()),j(null===this.pending),this._digest(t)},N.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=t>>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r};var L={},D={},z=S.rotr32;function F(t,e,n){return t&e^~t&n}function U(t,e,n){return t&e^t&n^e&n}function W(t,e,n){return t^e^n}D.ft_1=function(t,e,n,r){return 0===t?F(e,n,r):1===t||3===t?W(e,n,r):2===t?U(e,n,r):void 0},D.ch32=F,D.maj32=U,D.p32=W,D.s0_256=function(t){return z(t,2)^z(t,13)^z(t,22)},D.s1_256=function(t){return z(t,6)^z(t,11)^z(t,25)},D.g0_256=function(t){return z(t,7)^z(t,18)^t>>>3},D.g1_256=function(t){return z(t,17)^z(t,19)^t>>>10};var G=S,V=R,K=D,H=G.rotl32,q=G.sum32,$=G.sum32_5,Z=K.ft_1,Y=V.BlockHash,X=[1518500249,1859775393,2400959708,3395469782];function J(){if(!(this instanceof J))return new J;Y.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}G.inherits(J,Y);var Q=J;J.blockSize=512,J.outSize=160,J.hmacStrength=80,J.padLength=64,J.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=H(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],s=this.h[2],a=this.h[3],c=this.h[4];for(r=0;r<n.length;r++){var u=~~(r/20),l=$(H(i,5),Z(u,o,s,a),c,n[r],X[u]);c=a,a=s,s=H(o,30),o=i,i=l}this.h[0]=q(this.h[0],i),this.h[1]=q(this.h[1],o),this.h[2]=q(this.h[2],s),this.h[3]=q(this.h[3],a),this.h[4]=q(this.h[4],c)},J.prototype._digest=function(t){return"hex"===t?G.toHex32(this.h,"big"):G.split32(this.h,"big")};var tt=S,et=R,nt=D,rt=x,it=tt.sum32,ot=tt.sum32_4,st=tt.sum32_5,at=nt.ch32,ct=nt.maj32,ut=nt.s0_256,lt=nt.s1_256,ht=nt.g0_256,dt=nt.g1_256,ft=et.BlockHash,pt=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
vendor: 14,325 bytes, line 1
1734187,3204031479,3329325298];function mt(){if(!(this instanceof mt))return new mt;ft.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=pt,this.W=new Array(64)}tt.inherits(mt,ft);var gt=mt;mt.blockSize=512,mt.outSize=256,mt.hmacStrength=192,mt.padLength=64,mt.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=ot(dt(n[r-2]),n[r-7],ht(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],s=this.h[2],a=this.h[3],c=this.h[4],u=this.h[5],l=this.h[6],h=this.h[7];for(rt(this.k.length===n.length),r=0;r<n.length;r++){var d=st(h,lt(c),at(c,u,l),this.k[r],n[r]),f=it(ut(i),ct(i,o,s));h=l,l=u,u=c,c=it(a,d),a=s,s=o,o=i,i=it(d,f)}this.h[0]=it(this.h[0],i),this.h[1]=it(this.h[1],o),this.h[2]=it(this.h[2],s),this.h[3]=it(this.h[3],a),this.h[4]=it(this.h[4],c),this.h[5]=it(this.h[5],u),this.h[6]=it(this.h[6],l),this.h[7]=it(this.h[7],h)},mt.prototype._digest=function(t){return"hex"===t?tt.toHex32(this.h,"big"):tt.split32(this.h,"big")};var yt=S,bt=gt;function vt(){if(!(this instanceof vt))return new vt;bt.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}yt.inherits(vt,bt);var wt=vt;vt.blockSize=512,vt.outSize=224,vt.hmacStrength=192,vt.padLength=64,vt.prototype._digest=function(t){return"hex"===t?yt.toHex32(this.h.slice(0,7),"big"):yt.split32(this.h.slice(0,7),"big")};var _t=S,kt=R,St=x,xt=_t.rotr64_hi,It=_t.rotr64_lo,At=_t.shr64_hi,Et=_t.shr64_lo,Tt=_t.sum64,Pt=_t.sum64_hi,Ct=_t.sum64_lo,Mt=_t.sum64_4_hi,Ot=_t.sum64_4_lo,Rt=_t.sum64_5_hi,Bt=_t.sum64_5_lo,jt=kt.BlockHash,Nt=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Lt(){if(!(this instanceof Lt))return new Lt;jt.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Nt,this.W=new Array(160)}_t.inherits(Lt,jt);var Dt=Lt;function zt(t,e,n,r,i){var o=t&n^~t&i;return o<0&&(o+=4294967296),o}function Ft(t,e,n,r,i,o){var s=e&r^~e&o;return s<0&&(s+=4294967296),s}function Ut(t,e,n,r,i){var o=t&n^t&i^n&i;return o<0&&(o+=4294967296),o}function Wt(t,e,n,r,i,o){var s=e&r^e&o^r&o;return s<0&&(s+=4294967296),s}function Gt(t,e){var n=xt(t,e,28)^xt(e,t,2)^xt(e,t,7);return n<0&&(n+=4294967296),n}function Vt(t,e){var n=It(t,e,28)^It(e,t,2)^It(e,t,7);return n<0&&(n+=4294967296),n}function Kt(t,e){var n=xt(t,e,14)^xt(t,e,18)^xt(e,t,9);return n<0&&(n+=4294967296),n}function Ht(t,e){var n=It(t,e,14)^It(t,e,18)^It(e,t,9);return n<0&&(n+=4294967296),n}function qt(t,e){var n=xt(t,e,1)^xt(t,e,8)^At(t,e,7);return n<0&&(n+=4294967296),n}function $t(t,e){var n=It(t,e,1)^It(t,e,8)^Et(t,e,7);return n<0&&(n+=4294967296),n}function Zt(t,e){var n=xt(t,e,19)^xt(e,t,29)^At(t,e,6);return n<0&&(n+=4294967296),n}function Yt(t,e){var n=It(t,e,19)^It(e,t,29)^Et(t,e,6);return n<0&&(n+=4294967296),n}Lt.blockSize=1024,Lt.outSize=512,Lt.hmacStrength=192,Lt.padLength=128,Lt.prototype._prepareBlock=function(t,e){for(var n=this.W,r=0;r<32;r++)n[r]=t[e+r];for(;r<n.length;r+=2){var i=Zt(n[r-4],n[r-3]),o=Yt(n[r-4],n[r-3]),s=n[r-14],a=n[r-13],c=qt(n[r-30],n[r-29]),u=$t(n[r-30],n[r-29]),l=n[r-32],h=n[r-31];n[r]=Mt(i,o,s,a,c,u,l,h),n[r+1]=Ot(i,o,s,a,c,u,l,h)}},Lt.prototype._update=function(t,e){this._prepareBlock(t,e);var n=this.W,r=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],a=this.h[4],c=this.h[5],u=this.h[6],l=this.h[7],h=this.h[8],d=this.h[9],f=this.h[10],p=this.h[11],m=this.h[12],g=this.h[13],y=this.h[14],b=this.h[15];St(this.k.length===n.length);for(var v=0;v<n.length;v+=2){var w=y,_=b,k=Kt(h,d),S=Ht(h,d),x=zt(h,d,f,p,m),I=Ft(h,d,f,p,m,g),A=this.k[v],E=this.k[v+1],T=n[v],P=n[v+1],C=Rt(w,_,k,S,x,I,A,E,T,P),M=Bt(w,_,k,S,x,I,A,E,T,P);w=Gt(r,i),_=Vt(r,i),k=Ut(r,i,o,s,a),S=Wt(r,i,o,s,a,c);var O=Pt(w,_,k,S),R=Ct(w,_,k,S);y=m,b=g,m=f,g=p,f=h,p=d,h=Pt(u,l,C,M),d=Ct(l,l,C,M),u=a,l=c,a=o,c=s,o=r,s=i,r=Pt(C,M,O,R),i=Ct(C,M,O,R)}Tt(this.h,0,r,i),Tt(this.h,2,o,s),Tt(this.h,4,a,c),Tt(this.h,6,u,l),Tt(this.h,8,h,d),Tt(this.h,10,f,p),Tt(this.h,12,m,g),Tt(this.h,14,y,b)},Lt.prototype._digest=function(t){return"hex"===t?_t.toHex32(this.h,"big"):_t.split32(this.h,"big")};var Xt=S,Jt=Dt;function Qt(){if(!(this instanceof Qt))return new Qt;Jt.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Xt.inherits(Qt,Jt);var te=Qt;Qt.blockSize=1024,Qt.outSize=384,Qt.hmacStrength=192,Qt.padLength=128,Qt.prototype._digest=function(t){return"hex"===t?Xt.toHex32(this.h.slice(0,12),"big"):Xt.split32(this.h.slice(0,12),"big")},L.sha1=Q,L.sha224=wt,L.sha256=gt,L.sha384=te,L.sha512=Dt;var ee={},ne=S,re=R,ie=ne.rotl32,oe=ne.sum32,se=ne.sum32_3,ae=ne.sum32_4,ce=re.BlockHash;function ue(){if(!(this instanceof ue))return new ue;ce.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function le(t,e,n,r){return t<=15?e^n^r:t<=31?e&n|~e&r:t<=47?(e|~n)^r:t<=63?e&r|n&~r:e^(n|~r)}function he(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function de(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}ne.inherits(ue,ce),ee.ripemd160=ue,ue.blockSize=512,ue.outSize=160,ue.hmacStrength=192,ue.padLength=64,ue.prototype._update=function(t,e){for(var n=this.h[0],r=this.h[1],i=this.h[2],o=this.h[3],s=this.h[4],a=n,c=r,u=i,l=o,h=s,d=0;d<80;d++){var f=oe(ie(ae(n,le(d,r,i,o),t[fe[d]+e],he(d)),me[d]),s);n=s,s=o,o=ie(i,10),i=r,r=f,f=oe(ie(ae(a,le(79-d,c,u,l),t[pe[d]+e],de(d)),ge[d]),h),a=h,h=l,l=ie(u,10),u=c,c=f}f=se(this.h[1],i,l),this.h[1]=se(this.h[2],o,h),this.h[2]=se(this.h[3],s,a),this.h[3]=se(this.h[4],n,c),this.h[4]=se(this.h[0],r,u),this.h[0]=f},ue.prototype._digest=function(t){return"hex"===t?ne.toHex32(this.h,"little"):ne.split32(this.h,"little")};var fe=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],pe=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],me=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],ge=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],ye=S,be=x;function ve(t,e,n){if(!(this instanceof ve))return new ve(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(ye.toArray(e,n))}var we=ve;ve.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),be(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},ve.prototype.update=function(t,e){return this.inner.update(t,e),this},ve.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)},function(t){var e=t;e.utils=S,e.common=R,e.sha=L,e.ripemd=ee,e.hmac=we,e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160}(k);var _e=k;let ke=!1,Se=!1;const xe={debug:1,default:2,info:2,warning:3,error:4,off:5};let Ie=xe.default,Ae=null;const Ee=function(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(n){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var Te,Pe;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(Te||(Te={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED"}(Pe||(Pe={}));const Ce="0123456789abcdef";class Me{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const n=t.toLowerCase();null==xe[n]&&this.throwArgumentError("invalid log level name","logLevel",t),Ie>xe[n]||console.log.apply(console,e)}debug(...t){this._log(Me.levels.DEBUG,t)}info(...t){this._log(Me.levels.INFO,t)}warn(...t){this._log(Me.levels.WARNING,t)}makeError(t,e,n){if(Se)return this.makeError("censored error",e,{});e||(e=Me.errors.UNKNOWN_ERROR),n||(n={});const r=[];Object.keys(n).forEach((t=>{const e=n[t];try{if(e instanceof Uint8Array){let n="";for(let t=0;t<e.length;t++)n+=Ce[e[t]>>4],n+=Ce[15&e[t]];r.push(t+"=Uint8Array(0x"+n+")")}else r.push(t+"="+JSON.stringify(e))}catch(s){r.push(t+"="+JSON.stringify(n[t].toString()))}})),r.push(`code=${e}`),r.push(`version=${this.version}`);const i=t;let o="";switch(e){case Pe.NUMERIC_FAULT:{o="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case Pe.CALL_EXCEPTION:case Pe.INSUFFICIENT_FUNDS:case Pe.MISSING_NEW:case Pe.NONCE_EXPIRED:case Pe.REPLACEMENT_UNDERPRICED:case Pe.TRANSACTION_REPLACED:case Pe.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),r.length&&(t+=" ("+r.join(", ")+")");const s=new Error(t);return s.reason=i,s.code=e,Object.keys(n).forEach((function(t){s[t]=n[t]})),s}throwError(t,e,n){throw this.makeError(t,e,n)}throwArgumentError(t,e,n){return this.throwError(t,Me.errors.INVALID_ARGUMENT,{argument:e,value:n})}assert(t,e,n,r){t||this.throwError(e,n,r)}assertArgument(t,e,n,r){t||this.throwArgumentError(e,n,r)}checkNormalize(t){Ee&&this.throwError("platform missing String.prototype.normalize",Me.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Ee})}checkSafeUint53(t,e){"number"===typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,Me.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,Me.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,n){n=n?": "+n:"",t<e&&this.throwError("missing argument"+n,Me.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+n,Me.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",Me.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",Me.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",Me.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return Ae||(Ae=new Me("logger/5.6.0")),Ae}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",Me.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),ke){if(!t)return;this.globalLogger().throwError("error censorship permanent",Me.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Se=!!t,ke=!!e}static setLogLevel(t){const e=xe[t.toLowerCase()];null!=e?Ie=e:Me.globalLogger().warn("invalid log level - "+t)}static from(t){return new Me(t)}}Me.errors=Pe,Me.levels=Te;const Oe=new Me("bytes/5.6.0");function Re(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return Re(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function Be(t){return"number"===typeof t&&t==t&&t%1===0}function je(t,e){if(e||(e={}
1),"number"===typeof t){Oe.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),Re(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"===typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),function(t){return!!t.toHexString}(t)&&(t=t.toHexString()),function(t,e){if("string"!==typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))return!1;if(e&&t.length!==2+2*e)return!1;return!0}(t)){let n=t.substring(2);n.length%2&&("left"===e.hexPad?n="0x0"+n.substring(2):"right"===e.hexPad?n+="0":Oe.throwArgumentError("hex data is odd-length","value",t));const r=[];for(let t=0;t<n.length;t+=2)r.push(parseInt(n.substring(t,t+2),16));return Re(new Uint8Array(r))}return function(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"===typeof t)return!1;if(!Be(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){const n=t[e];if(!Be(n)||n<0||n>=256)return!1}return!0}(t)?Re(new Uint8Array(t)):Oe.throwArgumentError("invalid arrayify value","value",t)}function Ne(t){return"0x"+_e.sha256().update(je(t)).digest("hex")}new Me("sha2/5.6.0");class Le{constructor(t){Object.assign(this,t)}encode(){return o.Buffer.from((0,l.serialize)(ze,this))}static decode(t){return(0,l.deserialize)(ze,this,t)}static decodeUnchecked(t){return(0,l.deserializeUnchecked)(ze,this,t)}}class De extends Le{constructor(t){if(super(t),this.enum="",1!==Object.keys(t).length)throw new Error("Enum can only take single value");Object.keys(t).map((t=>{this.enum=t}))}}const ze=new Map,Fe=32;class Ue extends Le{constructor(t){if(super({}),this._bn=void 0,function(t){return void 0!==t._bn}(t))this._bn=t._bn;else{if("string"===typeof t){const e=u().decode(t);if(32!=e.length)throw new Error("Invalid public key input");this._bn=new(a())(e)}else this._bn=new(a())(t);if(this._bn.byteLength()>32)throw new Error("Invalid public key input")}}equals(t){return this._bn.eq(t._bn)}toBase58(){return u().encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){return this.toBuffer()}toBuffer(){const t=this._bn.toArrayLike(o.Buffer);if(32===t.length)return t;const e=o.Buffer.alloc(32);return t.copy(e,32-t.length),e}toString(){return this.toBase58()}static async createWithSeed(t,e,n){const r=o.Buffer.concat([t.toBuffer(),o.Buffer.from(e),n.toBuffer()]),i=Ne(new Uint8Array(r)).slice(2);return new Ue(o.Buffer.from(i,"hex"))}static createProgramAddressSync(t,e){let n=o.Buffer.alloc(0);t.forEach((function(t){if(t.length>Fe)throw new TypeError("Max seed length exceeded");n=o.Buffer.concat([n,_(t)])})),n=o.Buffer.concat([n,e.toBuffer(),o.Buffer.from("ProgramDerivedAddress")]);let r=Ne(new Uint8Array(n)).slice(2),i=new(a())(r,16).toArray(void 0,32);if(Ge(i))throw new Error("Invalid seeds, address must fall off the curve");return new Ue(i)}static async createProgramAddress(t,e){return this.createProgramAddressSync(t,e)}static findProgramAddressSync(t,e){let n,r=255;for(;0!=r;){try{const i=t.concat(o.Buffer.from([r]));n=this.createProgramAddressSync(i,e)}catch(i){if(i instanceof TypeError)throw i;r--;continue}return[n,r]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(t,e){return this.findProgramAddressSync(t,e)}static isOnCurve(t){return 1==Ge(new Ue(t).toBytes())}}Ue.default=new Ue("11111111111111111111111111111111"),ze.set(Ue,{kind:"struct",fields:[["_bn","u256"]]});let We=i().lowlevel;function Ge(t){var e=[We.gf(),We.gf(),We.gf(),We.gf()],n=We.gf(),r=We.gf(),i=We.gf(),o=We.gf(),s=We.gf(),a=We.gf(),c=We.gf();return We.set25519(e[2],Ve),We.unpack25519(e[1],t),We.S(i,e[1]),We.M(o,i,We.D),We.Z(i,i,e[2]),We.A(o,e[2],o),We.S(s,o),We.S(a,s),We.M(c,a,s),We.M(n,c,i),We.M(n,n,o),We.pow2523(n,n),We.M(n,n,i),We.M(n,n,o),We.M(n,n,o),We.M(e[0],n,o),We.S(r,e[0]),We.M(r,r,o),He(r,i)&&We.M(e[0],e[0],Ke),We.S(r,e[0]),We.M(r,r,o),He(r,i)?0:1}let Ve=We.gf([1]),Ke=We.gf([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function He(t,e){var n=new Uint8Array(32),r=new Uint8Array(32);return We.pack25519(n,t),We.pack25519(r,e),We.crypto_verify_32(n,0,r,0)}class qe{constructor(t){this._keypair=void 0,this._keypair=t?i().sign.keyPair.fromSecretKey(_(t)):i().sign.keyPair()}get publicKey(){return new Ue(this._keypair.publicKey)}get secretKey(){return _(this._keypair.secretKey)}}const $e=new Ue("BPFLoader1111111111111111111111111111111111"),Ze=1232,Ye=64;
1class Xe extends Error{constructor(t){super(`Signature ${t} has expired: block height exceeded.`),this.signature=void 0,this.signature=t}}Object.defineProperty(Xe.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});class Je extends Error{constructor(t,e){super(`Transaction was not confirmed in ${e.toFixed(2)} seconds. It is unknown if it succeeded or failed. Check signature ${t} using the Solana Explorer or CLI tools.`),this.signature=void 0,this.signature=t}}Object.defineProperty(Je.prototype,"name",{value:"TransactionExpiredTimeoutError"});const Qe=(t="publicKey")=>h.blob(32,t),tn=(t="string")=>{const e=h.struct([h.u32("length"),h.u32("lengthPadding"),h.blob(h.offset(h.u32(),-8),"chars")],t),n=e.decode.bind(e),r=e.encode.bind(e),i=e;return i.decode=(t,e)=>n(t,e).chars.toString(),i.encode=(t,e,n)=>{const i={chars:o.Buffer.from(t,"utf8")};return r(i,e,n)},i.alloc=t=>h.u32().span+h.u32().span+o.Buffer.from(t,"utf8").length,i};function en(t){let e=0,n=0;for(;;){let r=t.shift();if(e|=(127&r)<<7*n,n+=1,0===(128&r))break}return e}function nn(t,e){let n=e;for(;;){let e=127&n;if(n>>=7,0==n){t.push(e);break}e|=128,t.push(e)}}class rn{constructor(t){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map((t=>new Ue(t))),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach((t=>this.indexToProgramIds.set(t.programIdIndex,this.accountKeys[t.programIdIndex])))}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){return t<this.header.numRequiredSignatures-this.header.numReadonlySignedAccounts||t>=this.header.numRequiredSignatures&&t<this.accountKeys.length-this.header.numReadonlyUnsignedAccounts}isProgramId(t){return this.indexToProgramIds.has(t)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter(((t,e)=>!this.isProgramId(e)))}serialize(){const t=this.accountKeys.length;let e=[];nn(e,t);const n=this.instructions.map((t=>{const{accounts:e,programIdIndex:n}=t,r=Array.from(u().decode(t.data));let i=[];nn(i,e.length);let s=[];return nn(s,r.length),{programIdIndex:n,keyIndicesCount:o.Buffer.from(i),keyIndices:e,dataLength:o.Buffer.from(s),data:r}}));let r=[];nn(r,n.length);let i=o.Buffer.alloc(Ze);o.Buffer.from(r).copy(i);let s=r.length;n.forEach((t=>{const e=h.struct([h.u8("programIdIndex"),h.blob(t.keyIndicesCount.length,"keyIndicesCount"),h.seq(h.u8("keyIndex"),t.keyIndices.length,"keyIndices"),h.blob(t.dataLength.length,"dataLength"),h.seq(h.u8("userdatum"),t.data.length,"data")]).encode(t,i,s);s+=e})),i=i.slice(0,s);const a=h.struct([h.blob(1,"numRequiredSignatures"),h.blob(1,"numReadonlySignedAccounts"),h.blob(1,"numReadonlyUnsignedAccounts"),h.blob(e.length,"keyCount"),h.seq(Qe("key"),t,"keys"),Qe("recentBlockhash")]),c={numRequiredSignatures:o.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:o.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:o.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:o.Buffer.from(e),keys:this.accountKeys.map((t=>_(t.toBytes()))),recentBlockhash:u().decode(this.recentBlockhash)};let l=o.Buffer.alloc(2048);const d=a.encode(c,l);return i.copy(l,d),l.slice(0,d+i.length)}static from(t){let e=[...t];const n=e.shift(),r=e.shift(),i=e.shift(),s=en(e);let a=[];for(let f=0;f<s;f++){const t=e.slice(0,32);e=e.slice(32),a.push(u().encode(o.Buffer.from(t)))}const c=e.slice(0,32);e=e.slice(32);const l=en(e);let h=[];for(let f=0;f<l;f++){const t=e.shift(),n=en(e),r=e.slice(0,n);e=e.slice(n);const i=en(e),s=e.slice(0,i),a=u().encode(o.Buffer.from(s));e=e.slice(i),h.push({programIdIndex:t,accounts:r,data:a})}const d={header:{numRequiredSignatures:n,numReadonlySignedAccounts:r,numReadonlyUnsignedAccounts:i},recentBlockhash:u().encode(o.Buffer.from(c)),accountKeys:a,instructions:h};return new rn(d)}}function on(t,e){if(!t)throw new Error(e||"Assertion failed")}let sn;!function(t){t[t.BLOCKHEIGHT_EXCEEDED=0]="BLOCKHEIGHT_EXCEEDED",t[t.PROCESSED=1]="PROCESSED",t[t.TIMED_OUT=2]="TIMED_OUT"}(sn||(sn={}));const an=o.Buffer.alloc(Ye).fill(0);class cn{constructor(t){this.keys=void 0,this.programId=void 0,this.data=o.Buffer.alloc(0),this.programId=t.programId,this.keys=t.keys,t.data&&(this.data=t.data)}toJSON(){return{keys:this.keys.map((({pubkey:t,isSigner:e,isWritable:n})=>({pubkey:t.toJSON(),isSigner:e,isWritable:n}))),programId:this.programId.toJSON(),data:[...this.data]}}}class un{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(t){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this._message=void 0,this._json=void 0,t)if(t.feePayer&&(this.feePayer=t.feePayer),t.signatures&&(this.signatures=t.signatures),Object.prototype.hasOwnProperty.call(t,"lastValidBlockHeight")){const{blockhash:e,lastValidBlockHeight:n}=t;this.recentBlockhash=e,this.lastValidBlockHeight=n}else{const{recentBlockhash:e,nonceInfo:n}=t;n&&(this.nonceInfo=n),this.recentBlockhash=e}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstru
1ction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map((t=>t.toJSON())),signers:this.signatures.map((({publicKey:t})=>t.toJSON()))}}add(...t){if(0===t.length)throw new Error("No instructions");return t.forEach((t=>{"instructions"in t?this.instructions=this.instructions.concat(t.instructions):"data"in t&&"programId"in t&&"keys"in t?this.instructions.push(t):this.instructions.push(new cn(t))})),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let t,e,n;if(this.nonceInfo?(t=this.nonceInfo.nonce,e=this.instructions[0]!=this.nonceInfo.nonceInstruction?[this.nonceInfo.nonceInstruction,...this.instructions]:this.instructions):(t=this.recentBlockhash,e=this.instructions),!t)throw new Error("Transaction recentBlockhash required");if(e.length<1&&console.warn("No instructions provided"),this.feePayer)n=this.feePayer;else{if(!(this.signatures.length>0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");n=this.signatures[0].publicKey}for(let u=0;u<e.length;u++)if(void 0===e[u].programId)throw new Error(`Transaction instruction index ${u} has undefined program id`);const r=[],i=[];e.forEach((t=>{t.keys.forEach((t=>{i.push({...t})}));const e=t.programId.toString();r.includes(e)||r.push(e)})),r.forEach((t=>{i.push({pubkey:new Ue(t),isSigner:!1,isWritable:!1})}
1));const o=[];i.forEach((t=>{const e=t.pubkey.toString(),n=o.findIndex((t=>t.pubkey.toString()===e));n>-1?(o[n].isWritable=o[n].isWritable||t.isWritable,o[n].isSigner=o[n].isSigner||t.isSigner):o.push(t)})),o.sort((function(t,e){return t.isSigner!==e.isSigner?t.isSigner?-1:1:t.isWritable!==e.isWritable?t.isWritable?-1:1:t.pubkey.toBase58().localeCompare(e.pubkey.toBase58())}));const s=o.findIndex((t=>t.pubkey.equals(n)));if(s>-1){const[t]=o.splice(s,1);t.isSigner=!0,t.isWritable=!0,o.unshift(t)}else o.unshift({pubkey:n,isSigner:!0,isWritable:!0});for(const u of this.signatures){const t=o.findIndex((t=>t.pubkey.equals(u.publicKey)));if(!(t>-1))throw new Error(`unknown signer: ${u.publicKey.toString()}`);o[t].isSigner||(o[t].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))}let a=0,c=0,l=0;const h=[],d=[];o.forEach((({pubkey:t,isSigner:e,isWritable:n})=>{e?(h.push(t.toString()),a+=1,n||(c+=1)):(d.push(t.toString()),n||(l+=1))}));const f=h.concat(d),p=e.map((t=>{const{data:e,programId:n}=t;return{programIdIndex:f.indexOf(n.toString()),accounts:t.keys.map((t=>f.indexOf(t.pubkey.toString()))),data:u().encode(e)}}));return p.forEach((t=>{on(t.programIdIndex>=0),t.accounts.forEach((t=>on(t>=0)))})),new rn({header:{numRequiredSignatures:a,numReadonlySignedAccounts:c,numReadonlyUnsignedAccounts:l},accountKeys:f,recentBlockhash:t,instructions:p})}_compile(){const t=this.compileMessage(),e=t.accountKeys.slice(0,t.header.numRequiredSignatures);if(this.signatures.length===e.length){if(this.signatures.every(((t,n)=>e[n].equals(t.publicKey))))return t}return this.signatures=e.map((t=>({signature:null,publicKey:t}))),t}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(t){return(await t.getFeeForMessage(this.compileMessage())).value}setSigners(...t){if(0===t.length)throw new Error("No signers");const e=new Set;this.signatures=t.filter((t=>{const n=t.toString();return!e.has(n)&&(e.add(n),!0)})).map((t=>({signature:null,publicKey:t})))}sign(...t){if(0===t.length)throw new Error("No signers");const e=new Set,n=[];for(const i of t){const t=i.publicKey.toString();e.has(t)||(e.add(t),n.push(i))}this.signatures=n.map((t=>({signature:null,publicKey:t.publicKey})));const r=this._compile();this._partialSign(r,...n)}partialSign(...t){if(0===t.length)throw new Error("No signers");const e=new Set,n=[];for(const i of t){const t=i.publicKey.toString();e.has(t)||(e.add(t),n.push(i))}const r=this._compile();this._partialSign(r,...n)}_partialSign(t,...e){const n=t.serialize();e.forEach((t=>{const e=i().sign.detached(n,t.secretKey);this._addSignature(t.publicKey,_(e))}))}addSignature(t,e){this._compile(),this._addSignature(t,e)}_addSignature(t,e){on(64===e.length);const n=this.signatures.findIndex((e=>t.equals(e.publicKey)));if(n<0)throw new Error(`unknown signer: ${t.toString()}`);this.signatures[n].signature=o.Buffer.from(e)}verifySignatures(){return this._verifySignatures(this.serializeMessage(),!0)}_verifySignatures(t,e){for(const{signature:n,publicKey:r}of this.signatures)if(null===n){if(e)return!1}else if(!i().sign.detached.verify(t,n,r.toBuffer()))return!1;return!0}serialize(t){const{requireAllSignatures:e,verifySignatures:n}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),r=this.serializeMessage();if(n&&!this._verifySignatures(r,e))throw new Error("Signature verification failed");return this._serialize(r)}_serialize(t){const{signatures:e}=this,n=[];nn(n,e.length);const r=n.length+64*e.length+t.length,i=o.Buffer.alloc(r);return on(e.length<256),o.Buffer.from(n).copy(i,0),e.forEach((({signature:t},e)=>{null!==t&&(on(64===t.length,"signature has invalid length"),o.Buffer.from(t).copy(i,n.length+64*e))})),t.copy(i,n.length+64*e.length),on(i.length<=Ze,`Transaction too large: ${i.length} > ${Ze}`),i}get keys(){return on(1===this.instructions.length),this.instructions[0].keys.map((t=>t.pubkey))}get programId(){return on(1===this.instructions.length),this.instructions[0].programId}get data(){return on(1===this.instructions.length),this.instructions[0].data}static from(t){let e=[...t];const n=en(e);let r=[];for(let i=0;i<n;i++){const t=e.slice(0,Ye);e=e.slice(Ye),r.push(u().encode(o.Buffer.from(t)))}return un.populate(rn.from(e),r)}static populate(t,e=[]){const n=new un;return n.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(n.feePayer=t.accountKeys[0]),e.forEach(((e,r)=>{const i={signature:e==u().encode(an)?null:u().decode(e),publicKey:t.accountKeys[r]};n.signatures.push(i)})),t.instructions.forEach((e=>{const r=e.accounts.map((e=>{const r=t.accountKeys[e];return{pubkey:r,isSigner:n.signatures.some((t=>t.publicKey.toString()===r.toString()))||t.isAccountSigner(e),isWritable:t.isAccountWritable(e)}}));n.instructions.push(new cn({keys:r,programId:t.accountKeys[e.programIdIndex],data:u().decode(e.data)}))})),n._message=t,n._json=n.toJSON(),n}}const ln=new Ue("SysvarC1ock11111111111111111111111111111111"),hn=new Ue("SysvarEpochSchedu1e111111111111111111111111"),dn=new Ue("Sysvar1nstructions1111111111111111111111111"),fn=new Ue("SysvarRecentB1ockHashes11111111111111111111"),pn=new Ue("SysvarRent111111111111111111111111111111111"),mn=new Ue("SysvarRewards111111111111111111111111111111"),gn=new Ue("SysvarS1otHashes111111111111111111111111111"),yn=new Ue("SysvarS1otHistory11111111111111111111111111"),bn=new Ue("SysvarStakeHistory1111111111111111111111111");async function vn(t,e,n,r){const i=r&&{skipPreflight:r.skipPreflight,preflightCommitment:r.preflightCommitment||r.commitment,maxRetries:r.maxRetries,minContextSlot:r.minContextSlot},o=await t.sendTransaction(e,n,i),s=null!=e.recentBlockhash&&null!=e.lastValidBlockHeight?(await t.confirmTransaction({signature:o,blockhash:e.recentBlockhash,lastValidBlockHeight:e.lastValidBlockHeight},r&&r.commitment)).value:(await t.confirmTransaction(o,r&&r.commitment)).value;if(s.err)throw new Error(`Transaction ${o} failed (${JSON.stringify(s)})`);return o}function wn(t){return new Promise((e=>setTimeout(e,t)))}function _n(t,e){const n=t.layout.span>=0?t.layout.span:function(t,e){const n=t=>{if(t.span>=0)return t.span;if("function"===typeof t.alloc)return t.alloc(e[t.property]);if("count"in t&&"elementLayout"in t){const r=e[t.property];if(Array.isArray(r))return r.length*n(t.elementLayout)}return 0};let r=0;return t.layout.fields.forEach((t=>{r+=n(t)})),r}(t,e),r=o.Buffer.alloc(n),i=Object.assign({instruction:t.index},e);return t.layout.encode(i,r),r}function kn(t,e){let n;try{n=t.layout.decode(e)}catch(r){throw new Error("invalid instruction; "+r)}if(n.instruction!==t.index)throw new Error(`invalid instruction; instruction index mismatch ${n.instruction} != ${t.index}`);return n}const Sn=h.nu64("lamportsPerSignature"),xn=h.struct([h.u32("version"),h.u32("state"),Qe("authorizedPubkey"),Qe("nonce"),h.struct([Sn],"feeCalculator")]),In=xn.span;class An{constructor(t){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=t.authorizedPubkey,this.nonce=t.nonce,this.feeCalculator=t.feeCalculator}static fromAccountData(t){const e=xn.decode(_(t),0);return new An({authorizedPubkey:new Ue(e.authorizedPubkey),nonce:new Ue(e.nonce).toString(),feeCalculator:e.feeCalculator})}}const En=(Tn=8,t=>{const e=(0,h.blob)(Tn,t),{encode:n,decode:r}=(t=>({decode:t.decode.bind(t),encode:t.encode.bind(t)}))(e),i=e;return i.decode=(t,e)=>{const n=r(t,e);return(0,d.toBigIntLE)(o.Buffer.from(n))},i.encode=(t,e,r)=>{const i=(0,d.toBufferLE)(t,Tn);return n(i,e,r)},i});var Tn;class Pn{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=h.u32("instruction").decode(t.data);let n;for(const[r,i]of Object.entries(Cn))if(i.index==e){n=r;break}if(!n)throw new Error("Instruction type incorrect; not a SystemInstruction");return n}static decodeCreateAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:e,space:n,programId:r}=kn(Cn.Create,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,lamports:e,space:n,programId:new Ue(r)}}static decodeTransfer(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:e}=kn(Cn.Transfer,t.data);return{fromPubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,lamports:e}}static decodeTransferWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e,seed:n,programId:r}=kn(Cn.TransferWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,basePubkey:t.keys[1].pubkey,toPubkey:t.keys[2].pubkey,lamports:e,seed:n,programId:new Ue(r)}}static decodeAllocate(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{space:e}=kn(Cn.Allocate,t.data);return{accountPubkey:t.keys[0].pubkey,space:e}}static decodeAllocateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:e,seed:n,space:r,programId:i}=kn(Cn.AllocateWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new Ue(e),seed:n,space:r,programId:new Ue(i)}}static decodeAssign(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{programId:e}=kn(Cn.Assign,t.data);return{accountPubkey:t.keys[0].pubkey,programId:new Ue(e)}}static decodeAssignWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:e,seed:n,programId:r}=kn(Cn.AssignWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new Ue(e),seed:n,programId:new Ue(r)}}static decodeCreateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{base:e,seed:n,lamports:r,space:i,programId:o}=kn(Cn.CreateWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,basePubkey:new Ue(e),seed:n,lamports:r,space:i,programId:new Ue(o)}}static decodeNonceInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{authorized:e}=kn(Cn.InitializeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:new Ue(e)}}static decodeNonceAdvance(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),kn(Cn.AdvanceNonceAccount,t.data),{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static decodeNonceWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:e}=kn(Cn.WithdrawNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:e}}static decodeNonceAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:e}=kn(Cn.AuthorizeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[1].pubkey,newAuthorizedPubkey:new Ue(e)}}static checkProgramId(t){if(!t.equals(Mn.programId))throw new Error("invalid instruction; programId is not SystemProgram")}static checkKeyLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}const Cn=Object.freeze({Create:{index:0,layout:h.struct([h.u32("instruction"),h.ns64("lamports"),h.ns64("space"),Qe("programId")])},Assign:{index:1,layout:h.struct([h.u32("instruction"),Qe("programId")])},Transfer:{index:2,layout:h.struct([h.u32("instruction"),En("lamports")])},CreateWithSeed:{index:3,layout:h.struct([h.u32("instruction"),Qe("base"),tn("seed"),h.ns64("lamports"),h.ns64("space"),Qe("programId")])},AdvanceNonceAccount:{index:4,layout:h.struct([h.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:h.struct([h.u32("instruction"),h.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:h.struct([h.u32("instruction"),Qe("authorized")])},AuthorizeNonceAccount:{index:7,layout:h.struct([h.u32("instruction"),Qe("authorized")])},Allocate:{index:8,layout:h.struct([h.u32("instruction"),h.ns64("space")])},AllocateWithSeed:{index:9,layout:h.struct([h.u32("instruction"),Qe("base"),tn("seed"),h.ns64("space"),Qe("programId")])},AssignWithSeed:{index:10,layout:h.struct([h.u32("instruction"),Qe("base"),tn("seed"),Qe("programId")])},TransferWithSeed:{index:11,layout:h.struct([h.u32("instruction"),En("lamports"),tn("seed"),Qe("programId")])},UpgradeNonceAccount:{index:12,layout:h.struct([h.u32("instruction")])}});class Mn{constructor(){}static createAccount(t){const e=_n(Cn.Create,{lamports:t.lamports,space:t.space,programId:_(t.programId.toBuffer())});return new cn({keys:[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:e})}static transfer(t){let e,n;if("basePubkey"in t){e=_n(Cn.TransferWithSeed,{lamports:BigInt(t.lamports),seed:t.seed,programId:_(t.programId.toBuffer())}),n=[{pubkey:t.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}else{e=_n(Cn.Transfer,{lamports:BigInt(t.lamports)}),n=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}return new cn({keys:n,programId:this.programId,data:e})}static assign(t){let e,n;if("basePubkey"in t){e=_n(Cn.AssignWithSeed,{base:_(t.basePubkey.toBuffer()),seed:t.seed,programId:_(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{e=_n(Cn.Assign,{programId:_(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new cn({keys:n,programId:this.programId,data:e})}static createAccountWithSeed(t){const e=_n(Cn.CreateWithSeed,{base:_(t.basePubkey.toBuffer()),seed:t.seed,lamports:t.lamports,space:t.space,programId:_(t.programId.toBuffer())});let n=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!1,isWritable:!0}];return t.basePubkey!=t.fromPubkey&&n.push({pubkey:t.basePubkey,isSigner:!0,isWritable:!1}),new cn({keys:n,programId:this.programId,data:e})}static createNonceAccount(t){const e=new un;"basePubkey"in t&&"seed"in t?e.add(Mn.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:In,programId:this.programId})):e.add(Mn.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,lamports:t.lamports,space:In,programId:this.programId}));const n={noncePubkey:t.noncePubkey,authorizedPubkey:t.authorizedPubkey};return e.add(this.nonceInitialize(n)),e}static nonceInitialize(t){const e=_n(Cn.InitializeNonceAccount,{authorized:_(t.authorizedPubkey.toBuffer())}),n={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:fn,isSigner:!1,isWritable:!1},{pubkey:pn,isSigner:!1,isWritable:!1}],programId:this.programId,data:e};return new cn(n)}static nonceAdvance(t){const e=_n(Cn.AdvanceNonceAccount),n={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:fn,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e};return new cn(n)}static nonceWithdraw(t){const e=_n(Cn.WithdrawNonceAccount,{lamports:t.lamports});return new cn({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0},{pubkey:fn,isSigner:!1,isWritable:!1},{pubkey:pn,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e})}static nonceAuthorize(t){const e=_n(Cn.AuthorizeNonceAccount,{authorized:_(t.newAuthorizedPubkey.toBuffer())});return new cn({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e})}static allocate(t){let e,n;if("basePubkey"in t){e=_n(Cn.AllocateWithSeed,{base:_(t.basePubkey.toBuffer()),seed:t.seed,space:t.space,programId:_(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{e=_n(Cn.Allocate,{space:t.space}),n=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new cn({keys:n,programId:this.programId,data:e})}}Mn.programId=new Ue("11111111111111111111111111111111");const On=Ze-300;class Rn{constructor(){}static getMinNumSignatures(t){return 2*(Math.ceil(t/Rn.chunkSize)+1+1)}static async load(t,e,n,r,i){{const o=await t.getMinimumBalanceForRentExemption(i.length),s=await t.getAccountInfo(n.publicKey,"confirmed"
1);let a=null;if(null!==s){if(s.executable)return console.error("Program load failed, account is already executable"),!1;s.data.length!==i.length&&(a=a||new un,a.add(Mn.allocate({accountPubkey:n.publicKey,space:i.length}))),s.owner.equals(r)||(a=a||new un,a.add(Mn.assign({accountPubkey:n.publicKey,programId:r}))),s.lamports<o&&(a=a||new un,a.add(Mn.transfer({fromPubkey:e.publicKey,toPubkey:n.publicKey,lamports:o-s.lamports})))}else a=(new un).add(Mn.createAccount({fromPubkey:e.publicKey,newAccountPubkey:n.publicKey,lamports:o>0?o:1,space:i.length,programId:r}));null!==a&&await vn(t,a,[e,n],{commitment:"confirmed"})}const s=h.struct([h.u32("instruction"),h.u32("offset"),h.u32("bytesLength"),h.u32("bytesLengthPadding"),h.seq(h.u8("byte"),h.offset(h.u32(),-8),"bytes")]),a=Rn.chunkSize;let c=0,u=i,l=[];for(;u.length>0;){const i=u.slice(0,a),h=o.Buffer.alloc(a+16);s.encode({instruction:0,offset:c,bytes:i,bytesLength:0,bytesLengthPadding:0},h);const d=(new un).add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0}],programId:r,data:h});if(l.push(vn(t,d,[e,n],{commitment:"confirmed"})),t._rpcEndpoint.includes("solana.com")){const t=4;await wn(1e3/t)}c+=a,u=u.slice(a)}await Promise.all(l);{const i=h.struct([h.u32("instruction")]),s=o.Buffer.alloc(i.span);i.encode({instruction:1},s);const a=(new un).add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0},{pubkey:pn,isSigner:!1,isWritable:!1}],programId:r,data:s});await vn(t,a,[e,n],{commitment:"confirmed"})}return!0}}Rn.chunkSize=On;const Bn=new Ue("BPFLoader2111111111111111111111111111111111");class jn{static getMinNumSignatures(t){return Rn.getMinNumSignatures(t)}static load(t,e,n,r,i){return Rn.load(t,e,n,i,r)}}var Nn=Object.prototype.toString,Ln=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};function Dn(t,e){var n,r,i,o,s,a,c;if(!0===t)return"true";if(!1===t)return"false";switch(typeof t){case"object":if(null===t)return null;if(t.toJSON&&"function"===typeof t.toJSON)return Dn(t.toJSON(),e);if("[object Array]"===(c=Nn.call(t))){for(i="[",r=t.length-1,n=0;n<r;n++)i+=Dn(t[n],!0)+",";return r>-1&&(i+=Dn(t[n],!0)),i+"]"}if("[object Object]"===c){for(r=(o=Ln(t).sort()).length,i="",n=0;n<r;)void 0!==(a=Dn(t[s=o[n]],!1))&&(i&&(i+=","),i+=JSON.stringify(s)+":"+a),n++;return"{"+i+"}"}return JSON.stringify(t);case"function":case"undefined":return e?null:void 0;case"string":return JSON.stringify(t);default:return isFinite(t)?t:null}}var zn=function(t){var e=Dn(t,!1);if(void 0!==e)return""+e};function Fn(t){let e=0;for(;t>1;)t/=2,e++;return e}class Un{constructor(t,e,n,r,i){this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=t,this.leaderScheduleSlotOffset=e,this.warmup=n,this.firstNormalEpoch=r,this.firstNormalSlot=i}getEpoch(t){return this.getEpochAndSlotIndex(t)[0]}getEpochAndSlotIndex(t){if(t<this.firstNormalSlot){const e=Fn(function(t){return 0===t?1:(t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,1+(t|=t>>32))}(t+32+1))-Fn(32)-1;return[e,t-(this.getSlotsInEpoch(e)-32)]}{const e=t-this.firstNormalSlot,n=Math.floor(e/this.slotsPerEpoch);return[this.firstNormalEpoch+n,e%this.slotsPerEpoch]}}getFirstSlotInEpoch(t){return t<=this.firstNormalEpoch?32*(Math.pow(2,t)-1):(t-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}getLastSlotInEpoch(t){return this.getFirstSlotInEpoch(t)+this.getSlotsInEpoch(t)-1}getSlotsInEpoch(t){return t<this.firstNormalEpoch?Math.pow(2,t+Fn(32)):this.slotsPerEpoch}}class Wn extends Error{constructor(t,e){super(t),this.logs=void 0,this.logs=e}}const Gn={JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP:-32001,JSON_RPC_SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE:-32002,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE:-32003,JSON_RPC_SERVER_ERROR_BLOCK_NOT_AVAILABLE:-32004,JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY:-32005,JSON_RPC_SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE:-32006,JSON_RPC_SERVER_ERROR_SLOT_SKIPPED:-32007,JSON_RPC_SERVER_ERROR_NO_SNAPSHOT:-32008,JSON_RPC_SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED:-32009,JSON_RPC_SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX:-32010,JSON_RPC_SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE:-32011,JSON_RPC_SCAN_ER
1ROR:-32012,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH:-32013,JSON_RPC_SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET:-32014,JSON_RPC_SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION:-32015,JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED:-32016};class Vn extends Error{constructor({code:t,message:e,data:n},r){super(null!=r?`${r}: ${e}`:e),this.code=void 0,this.data=void 0,this.code=t,this.data=n,this.name="SolanaJSONRPCError"}}var Kn=globalThis.fetch;class Hn{constructor(t){this.key=void 0,this.state=void 0,this.key=t.key,this.state=t.state}isActive(){return this.state.deactivationSlot===2n**64n-1n}static deserialize(t){const e=function(t,e){let n;try{n=t.layout.decode(e)}catch(r){throw new Error("invalid instruction; "+r)}if(n.typeIndex!==t.index)throw new Error(`invalid account data; account type mismatch ${n.typeIndex} != ${t.index}`);return n}(qn,t),n=t.length-56;on(n>=0,"lookup table is invalid"),on(n%32===0,"lookup table is invalid");const r=n/32,{addresses:i}=h.struct([h.seq(Qe(),r,"addresses")]).decode(t.slice(56));return{deactivationSlot:e.deactivationSlot,lastExtendedSlot:e.lastExtendedSlot,lastExtendedSlotStartIndex:e.lastExtendedStartIndex,authority:0!==e.authority.length?new Ue(e.authority[0]):void 0,addresses:i.map((t=>new Ue(t)))}}}const qn={index:1,layout:h.struct([h.u32("typeIndex"),En("deactivationSlot"),h.nu64("lastExtendedSlot"),h.u8("lastExtendedStartIndex"),h.u8(),h.seq(Qe(),h.offset(h.u8(),-1),"authority")])},$n=globalThis.URL;var Zn;const Yn=(0,f.oQ)((0,f.eE)(Ue),(0,f.Z_)(),(t=>new Ue(t))),Xn=(0,f.bc)([(0,f.Z_)(),(0,f.i0)("base64")]),Jn=(0,f.oQ)((0,f.eE)(o.Buffer),Xn,(t=>o.Buffer.from(t[0],"base64"))),Qn=3e4;function tr(t){let e,n;if("string"===typeof t)e=t;else if(t){const{commitment:r,...i}=t;e=r,n=i}return{commitment:e,config:n}}function er(t){return(0,f.G0)([(0,f.dt)({jsonrpc:(0,f.i0)("2.0"),id:(0,f.Z_)(),result:t}),(0,f.dt)({jsonrpc:(0,f.i0)("2.0"),id:(0,f.Z_)(),error:(0,f.dt)({code:(0,f._4)(),message:(0,f.Z_)(),data:(0,f.jt)((0,f.Yj)())})})])}const nr=er((0,f._4)());function rr(t){return(0,f.oQ)(er(t),nr,(e=>"error"in e?e:{...e,result:(0,f.Ue)(e.result,t)}))}function ir(t){return rr((0,f.dt)({context:(0,f.dt)({slot:(0,f.Rx)()}),value:t}))}function or(t){return(0,f.dt)({context:(0,f.dt)({slot:(0,f.Rx)()}),value:t})}const sr=(0,f.dt)({foundation:(0,f.Rx)(),foundationTerm:(0,f.Rx)(),initial:(0,f.Rx)(),taper:(0,f.Rx)(),terminal:(0,f.Rx)()}),ar=rr((0,f.IX)((0,f.AG)((0,f.dt)({epoch:(0,f.Rx)(),effectiveSlot:(0,f.Rx)(),amount:(0,f.Rx)(),postBalance:(0,f.Rx)()})))),cr=(0,f.dt)({epoch:(0,f.Rx)(),slotIndex:(0,f.Rx)(),slotsInEpoch:(0,f.Rx)(),absoluteSlot:(0,f.Rx)(),blockHeight:(0,f.jt)((0,f.Rx)()),transactionCount:(0,f.jt)((0,f.Rx)())}),ur=(0,f.dt)({slotsPerEpoch:(0,f.Rx)(),leaderScheduleSlotOffset:(0,f.Rx)(),warmup:(0,f.O7)(),firstNormalEpoch:(0,f.Rx)(),firstNormalSlot:(0,f.Rx)()}),lr=(0,f.IM)((0,f.Z_)(),(0,f.IX)((0,f.Rx)())),hr=(0,f.AG)((0,f.G0)([(0,f.dt)({}),(0,f.Z_)()])),dr=(0,f.dt)({err:hr}),fr=(0,f.i0)("receivedSignature"),pr=(0,f.dt)({"solana-core":(0,f.Z_)(),"feature-set":(0,f.jt)((0,f.Rx)())}),mr=ir((0,f.dt)({err:(0,f.AG)((0,f.G0)([(0,f.dt)({}),(0,f.Z_)()])),logs:(0,f.AG)((0,f.IX)((0,f.Z_)())),accounts:(0,f.jt)((0,f.AG)((0,f.IX)((0,f.AG)((0,f.dt)({executable:(0,f.O7)(),owner:(0,f.Z_)(),lamports:(0,f.Rx)(),data:(0,f.IX)((0,f.Z_)()),rentEpoch:(0,f.jt)((0,f.Rx)())}))))),unitsConsumed:(0,f.jt)((0,f.Rx)()),returnData:(0,f.jt)((0,f.AG)((0,f.dt)({programId:(0,f.Z_)(),data:(0,f.bc)([(0,f.Z_)(),(0,f.i0)("base64")])})))})),gr=ir((0,f.dt)({byIdentity:(0,f.IM)((0,f.Z_)(),(0,f.IX)((0,f.Rx)())),range:(0,f.dt)({firstSlot:(0,f.Rx)(),lastSlot:(0,f.Rx)()})}));const yr=rr(sr),br=rr(cr),vr=rr(ur),wr=rr(lr),_r=rr((0,f.Rx)()),kr=ir((0,f.dt)({total:(0,f.Rx)(),circulating:(0,f.Rx)(),nonCirculating:(0,f.Rx)(),nonCirculatingAccounts:(0,f.IX)(Yn)})),Sr=(0,f.dt)({amount:(0,f.Z_)(),uiAmount:(0,f.AG)((0,f.Rx)()),decimals:(0,f.Rx)(),uiAmountString:(0,f.jt)((0,f.Z_)())}),xr=ir((0,f.IX)((0,f.dt)({address:Yn,amount:(0,f.Z_)(),uiAmount:(0,f.AG)((0,f.Rx)()),decimals:(0,f.Rx)(),uiAmountString:(0,f.jt)((0,f.Z_)())}))),Ir=ir((0,f.IX)((0,f.dt)({pubkey:Yn,account:(0,f.dt)({executable:(0,f.O7)(),owner:Yn,lamports:(0,f.Rx)(),data:Jn,rentEpoch:(0,f.Rx)()})}))),Ar=(0,f.dt)({program:(0,f.Z_)(),parsed:(0,f._4)(),space:(0,f.Rx)()}),Er=ir((0,f.IX)((0,f.dt)({pubkey:Yn,account:(0,f.dt)({executable:(0,f.O7)(),owner:Yn,lamports:(0,f.Rx)(),data:Ar,rentEpoch:(0,f.Rx)()})}))),Tr=ir((0,f.IX)((0,f.dt)({lamports:(0,f.Rx)(),address:Yn}))),Pr=(0,f.dt)({executable:(0,f.O7)(),owner:Yn,lamports:(0,f.Rx)(),data:Jn,rentEpoch:(0,f.Rx)()}),Cr=(0,f.dt)({pubkey:Yn,account:Pr}),Mr=(0,f.oQ)((0,f.G0)([(0,f.eE)(o.Buffer),Ar]),(0,f.G0)([Xn,Ar]),(t=>Array.isArray(t)?(0,f.Ue)(t,Jn):t)),Or=(0,f.dt)({executable:(0,f.O7)(),owner:Yn,lamports:(0,f.Rx)(),data:Mr,rentEpoch:(0,f.Rx)()}),Rr=(0,f.dt)({pubkey:Yn,account:Or}),Br=(0,f.dt)({state:(0,f.G0)([(0,f.i0)("active"),(0,f.i0)("inactive"),(0,f.i0)("activating"),(0,f.i0)("deactivating")]),active:(0,f.Rx)(),inactive:(0,f.Rx)()}),jr=rr((0,f.IX)((0,f.dt)({signature:(0,f.Z_)(),slot:(0,f.Rx)(),err:hr,memo:(0,f.AG)((0,f.Z_)()),blockTime:(0,f.jt)((0,f.AG)((0,f.Rx)()))}))),Nr=rr((0,f.IX)((0,f.dt)({signature:(0,f.Z_)(),slot:(0,f.Rx)(),err:hr,memo:(0,f.AG)((0,f.Z_)()),blockTime:(0,f.jt)((0,f.AG)((0,f.Rx)()))}))),Lr=(0,f.dt)({subscription:(0,f.Rx)(),result:or(Pr)}),Dr=(0,f.dt)({pubkey:Yn,account:Pr}),zr=(0,f.dt)({subscription:(0,f.Rx)(),result:or(Dr)}),Fr=(0,f.dt)({parent:(0,f.Rx)(),slot:(0,f.Rx)(),root:(0,f.Rx)()}),Ur=(0,f.dt)({subscription:(0,f.Rx)(),result:Fr}),Wr=(0,f.G0)([(0,f.dt)({type:(0,f.G0)([(0,f.i0)("firstShredReceived"),(0,f.i0)("completed"),(0,f.i0)("optimisticConfirmation"),(0,f.i0)("root")
1]),slot:(0,f.Rx)(),timestamp:(0,f.Rx)()}),(0,f.dt)({type:(0,f.i0)("createdBank"),parent:(0,f.Rx)(),slot:(0,f.Rx)(),timestamp:(0,f.Rx)()}),(0,f.dt)({type:(0,f.i0)("frozen"),slot:(0,f.Rx)(),timestamp:(0,f.Rx)(),stats:(0,f.dt)({numTransactionEntries:(0,f.Rx)(),numSuccessfulTransactions:(0,f.Rx)(),numFailedTransactions:(0,f.Rx)(),maxTransactionsPerEntry:(0,f.Rx)()})}),(0,f.dt)({type:(0,f.i0)("dead"),slot:(0,f.Rx)(),timestamp:(0,f.Rx)(),err:(0,f.Z_)()})]),Gr=(0,f.dt)({subscription:(0,f.Rx)(),result:Wr}),Vr=(0,f.dt)({subscription:(0,f.Rx)(),result:or((0,f.G0)([dr,fr]))}),Kr=(0,f.dt)({subscription:(0,f.Rx)(),result:(0,f.Rx)()}),Hr=(0,f.dt)({pubkey:(0,f.Z_)(),gossip:(0,f.AG)((0,f.Z_)()),tpu:(0,f.AG)((0,f.Z_)()),rpc:(0,f.AG)((0,f.Z_)()),version:(0,f.AG)((0,f.Z_)())}),qr=(0,f.dt)({votePubkey:(0,f.Z_)(),nodePubkey:(0,f.Z_)(),activatedStake:(0,f.Rx)(),epochVoteAccount:(0,f.O7)(),epochCredits:(0,f.IX)((0,f.bc)([(0,f.Rx)(),(0,f.Rx)(),(0,f.Rx)()])),commission:(0,f.Rx)(),lastVote:(0,f.Rx)(),rootSlot:(0,f.AG)((0,f.Rx)())}),$r=rr((0,f.dt)({current:(0,f.IX)(qr),delinquent:(0,f.IX)(qr)})),Zr=(0,f.G0)([(0,f.i0)("processed"),(0,f.i0)("confirmed"),(0,f.i0)("finalized")]),Yr=(0,f.dt)({slot:(0,f.Rx)(),confirmations:(0,f.AG)((0,f.Rx)()),err:hr,confirmationStatus:(0,f.jt)(Zr)}),Xr=ir((0,f.IX)((0,f.AG)(Yr))),Jr=rr((0,f.Rx)()),Qr=(0,f.dt)({signatures:(0,f.IX)((0,f.Z_)()),message:(0,f.dt)({accountKeys:(0,f.IX)((0,f.Z_)()),header:(0,f.dt)({numRequiredSignatures:(0,f.Rx)(),numReadonlySignedAccounts:(0,f.Rx)(),numReadonlyUnsignedAccounts:(0,f.Rx)()}),instructions:(0,f.IX)((0,f.dt)({accounts:(0,f.IX)((0,f.Rx)()),data:(0,f.Z_)(),programIdIndex:(0,f.Rx)()})),recentBlockhash:(0,f.Z_)()})}),ti=(0,f.dt)({parsed:(0,f._4)(),program:(0,f.Z_)(),programId:Yn}),ei=(0,f.dt)({accounts:(0,f.IX)(Yn),data:(0,f.Z_)(),programId:Yn}),ni=(0,f.G0)([ei,ti]),ri=(0,f.G0)([(0,f.dt)({parsed:(0,f._4)(),program:(0,f.Z_)(),programId:(0,f.Z_)()}),(0,f.dt)({accounts:(0,f.IX)((0,f.Z_)()),data:(0,f.Z_)(),programId:(0,f.Z_)()})]),ii=(0,f.oQ)(ni,ri,(t=>"accounts"in t?(0,f.Ue)(t,ei):(0,f.Ue)(t,ti))),oi=(0,f.dt)({signatures:(0,f.IX)((0,f.Z_)()),message:(0,f.dt)({accountKeys:(0,f.IX)((0,f.dt)({pubkey:Yn,signer:(0,f.O7)(),writable:(0,f.O7)()})),instructions:(0,f.IX)(ii),recentBlockhash:(0,f.Z_)()})}),si=(0,f.dt)({accountIndex:(0,f.Rx)(),mint:(0,f.Z_)(),owner:(0,f.jt)((0,f.Z_)()),uiTokenAmount:Sr}),ai=(0,f.dt)({writable:(0,f.IX)(Yn),readonly:(0,f.IX)(Yn)}),ci=(0,f.dt)({err:hr,fee:(0,f.Rx)(),innerInstructions:(0,f.jt)((0,f.AG)((0,f.IX)((0,f.dt)({index:(0,f.Rx)(),instructions:(0,f.IX)((0,f.dt)({accounts:(0,f.IX)((0,f.Rx)()),data:(0,f.Z_)(),programIdIndex:(0,f.Rx)()}))})))),preBalances:(0,f.IX)((0,f.Rx)()),postBalances:(0,f.IX)((0,f.Rx)()),logMessages:(0,f.jt)((0,f.AG)((0,f.IX)((0,f.Z_)()))),preTokenBalances:(0,f.jt)((0,f.AG)((0,f.IX)(si))),postTokenBalances:(0,f.jt)((0,f.AG)((0,f.IX)(si))),loadedAddresses:(0,f.jt)(ai)}),ui=(0,f.dt)({err:hr,fee:(0,f.Rx)(),innerInstructions:(0,f.jt)((0,f.AG)((0,f.IX)((0,f.dt)({index:(0,f.Rx)(),instructions:(0,f.IX)(ii)})))),preBalances:(0,f.IX)((0,f.Rx)()),postBalances:(0,f.IX)((0,f.Rx)()),logMessages:(0,f.jt)((0,f.AG)((0,f.IX)((0,f.Z_)()))),preTokenBalances:(0,f.jt)((0,f.AG)((0,f.IX)(si))),postTokenBalances:(0,f.jt)((0,f.AG)((0,f.IX)(si))),loadedAddresses:(0,f.jt)(ai)}),li=rr((0,f.AG)((0,f.dt)({blockhash:(0,f.Z_)(),previousBlockhash:(0,f.Z_)(),parentSlot:(0,f.Rx)(),transactions:(0,f.IX)((0,f.dt)({transaction:Qr,meta:(0,f.AG)(ci)})),rewards:(0,f.jt)((0,f.IX)((0,f.dt)({pubkey:(0,f.Z_)(),lamports:(0,f.Rx)(),postBalance:(0,f.AG)((0,f.Rx)()),rewardType:(0,f.AG)((0,f.Z_)())}))),blockTime:(0,f.AG)((0,f.Rx)()),blockHeight:(0,f.AG)((0,f.Rx)())}))),hi=rr((0,f.AG)((0,f.dt)({blockhash:(0,f.Z_)(),previousBlockhash:(0,f.Z_)(),parentSlot:(0,f.Rx)(),transactions:(0,f.IX)((0,f.dt)({transaction:Qr,meta:(0,f.AG)(ci)})),rewards:(0,f.jt)((0,f.IX)((0,f.dt)({pubkey:(0,f.Z_)(),lamports:(0,f.Rx)(),postBalance:(0,f.AG)((0,f.Rx)()),rewardType:(0,f.AG)((0,f.Z_)())}))),blockTime:(0,f.AG)((0,f.Rx)())}))),di=rr((0,f.AG)((0,f.dt)({blockhash:(0,f.Z_)(),previousBlockhash:(0,f.Z_)(),parentSlot:(0,f.Rx)(),signatures:(0,f.IX)((0,f.Z_)()),blockTime:(0,f.AG)((0,f.Rx)())}))),fi=rr((0,f.AG)((0,f.dt)({slot:(0,f.Rx)(),meta:ci,blockTime:(0,f.jt)((0,f.AG)((0,f.Rx)())),transaction:Qr}))),pi=rr((0,f.AG)((0,f.dt)({slot:(0,f.Rx)(),transaction:oi,meta:(0,f.AG)(ui),blockTime:(0,f.jt)((0,f.AG)((0,f.Rx)()))}))),mi=ir((0,f.dt)({blockhash:(0,f.Z_)(),feeCalculator:(0,f.dt)({lamportsPerSignature:(0,f.Rx)()})}
1)),gi=ir((0,f.dt)({blockhash:(0,f.Z_)(),lastValidBlockHeight:(0,f.Rx)()})),yi=(0,f.dt)({slot:(0,f.Rx)(),numTransactions:(0,f.Rx)(),numSlots:(0,f.Rx)(),samplePeriodSecs:(0,f.Rx)()}),bi=rr((0,f.IX)(yi)),vi=ir((0,f.AG)((0,f.dt)({feeCalculator:(0,f.dt)({lamportsPerSignature:(0,f.Rx)()})}))),wi=rr((0,f.Z_)()),_i=rr((0,f.Z_)()),ki=(0,f.dt)({err:hr,logs:(0,f.IX)((0,f.Z_)()),signature:(0,f.Z_)()}),Si=(0,f.dt)({result:or(ki),subscription:(0,f.Rx)()}),xi={"solana-client":`js/${null!==(Zn="0.0.0-development")?Zn:"UNKNOWN"}`};class Ii{constructor(t,e){this._commitment=void 0,this._confirmTransactionInitialTimeout=void 0,this._rpcEndpoint=void 0,this._rpcWsEndpoint=void 0,this._rpcClient=void 0,this._rpcRequest=void 0,this._rpcBatchRequest=void 0,this._rpcWebSocket=void 0,this._rpcWebSocketConnected=!1,this._rpcWebSocketHeartbeat=null,this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketGeneration=0,this._disableBlockhashCaching=!1,this._pollingBlockhash=!1,this._blockhashInfo={latestBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]},this._nextClientSubscriptionId=0,this._subscriptionDisposeFunctionsByClientSubscriptionId={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set;let n=new $n(t);n.protocol;let r,i,o,s,a;var c;e&&"string"===typeof e?this._commitment=e:e&&(this._commitment=e.commitment,this._confirmTransactionInitialTimeout=e.confirmTransactionInitialTimeout,r=e.wsEndpoint,i=e.httpHeaders,o=e.fetch,s=e.fetchMiddleware,a=e.disableRetryOnRateLimit),this._rpcEndpoint=t,this._rpcWsEndpoint=r||function(t){let e=new $n(t);const n="https:"===e.protocol;return e.protocol=n?"wss:":"ws:",e.host="",""!==e.port&&(e.port=String(Number(e.port)+1)),e.toString()}(t),this._rpcClient=function(t,e,n,r,i,o){const s=r||Kn;let a;return i&&(a=async(t,e)=>{const n=await new Promise(((n,r)=>{try{i(t,e,((t,e)=>n([t,e])))}catch(o){r(o)}}));return await s(...n)}),new(g())((async(e,r)=>{const i={method:"POST",body:e,agent:void 0,headers:Object.assign({"Content-Type":"application/json"},n||{},xi)};try{let e,n=5,c=500;for(;e=a?await a(t,i):await s(t,i),429===e.status&&!0!==o&&(n-=1,0!==n);)console.log(`Server responded with ${e.status} ${e.statusText}. Retrying after ${c}ms delay...`),await wn(c),c*=2;const u=await e.text();e.ok?r(null,u):r(new Error(`${e.status} ${e.statusText}: ${u}`))}catch(c){c instanceof Error&&r(c)}}),{})}(n.toString(),0,i,o,s,a),this._rpcRequest=(c=this._rpcClient,(t,e)=>new Promise(((n,r)=>{c.request(t,e,((t,e)=>{t?r(t):n(e)}))}))),this._rpcBatchRequest=function(t){return e=>new Promise(((n,r)=>{0===e.length&&n([]);const i=e.map((e=>t.request(e.methodName,e.args)));t.request(i,((t,e)=>{t?r(t):n(e)}))}))}(this._rpcClient),this._rpcWebSocket=new p.K(this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}get commitment(){return this._commitment}get rpcEndpoint(){return this._rpcEndpoint}async getBalanceAndContext(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgs([t.toBase58()],n,void 0,r),o=await this._rpcRequest("getBalance",i),s=(0,f.Ue)(o,ir((0,f.Rx)()));if("error"in s)throw new Vn(s.error,`failed to get balance for ${t.toBase58()}`);return s.result}async getBalance(t,e){return await this.getBalanceAndContext(t,e).then((t=>t.value)).catch((e=>{throw new Error("failed to get balance of account "+t.toBase58()+": "+e)}))}async getBlockTime(t){const e=await this._rpcRequest("getBlockTime",[t]),n=(0,f.Ue)(e,rr((0,f.AG)((0,f.Rx)())));if("error"in n)throw new Vn(n.error,`failed to get block time for slot ${t}`);return n.result}async getMinimumLedgerSlot(){const t=await this._rpcRequest("minimumLedgerSlot",[]),e=(0,f.Ue)(t,rr((0,f.Rx)()));if("error"in e)throw new Vn(e.error,"failed to get minimum ledger slot");return e.result}async getFirstAvailableBlock(){const t=await this._rpcRequest("getFirstAvailableBlock",[]),e=(0,f.Ue)(t,_r);if("error"in e)throw new Vn(e.error,"failed to get first available block");return e.result}async getSupply(t){let e={};e="string"===typeof t?{commitment:t}:t?{...t,commitment:t&&t.commitment||this.commitment}:{commitment:this.commitment};const n=await this._rpcRequest("getSupply",[e]),r=(0,f.Ue)(n,kr);if("error"in r)throw new Vn(r.error,"failed to get supply");return r.result}async getTokenSupply(t,e){const n=this._buildArgs([t.toBase58()],e),r=await this._rpcRequest("getTokenSupply",n),i=(0,f.Ue)(r,ir(Sr));if("error"in i)throw new Vn(i.error,"failed to get token supply");return i.result}async getTokenAccountBalance(t,e){const n=this._buildArgs([t.toBase58()],e),r=await this._rpcRequest("getTokenAccountBalance",n
1),i=(0,f.Ue)(r,ir(Sr));if("error"in i)throw new Vn(i.error,"failed to get token account balance");return i.result}async getTokenAccountsByOwner(t,e,n){const{commitment:r,config:i}=tr(n);let o=[t.toBase58()];"mint"in e?o.push({mint:e.mint.toBase58()}):o.push({programId:e.programId.toBase58()});const s=this._buildArgs(o,r,"base64",i),a=await this._rpcRequest("getTokenAccountsByOwner",s),c=(0,f.Ue)(a,Ir);if("error"in c)throw new Vn(c.error,`failed to get token accounts owned by account ${t.toBase58()}`);return c.result}async getParsedTokenAccountsByOwner(t,e,n){let r=[t.toBase58()];"mint"in e?r.push({mint:e.mint.toBase58()}):r.push({programId:e.programId.toBase58()});const i=this._buildArgs(r,n,"jsonParsed"),o=await this._rpcRequest("getTokenAccountsByOwner",i),s=(0,f.Ue)(o,Er);if("error"in s)throw new Vn(s.error,`failed to get token accounts owned by account ${t.toBase58()}`);return s.result}async getLargestAccounts(t){const e={...t,commitment:t&&t.commitment||this.commitment},n=e.filter||e.commitment?[e]:[],r=await this._rpcRequest("getLargestAccounts",n),i=(0,f.Ue)(r,Tr);if("error"in i)throw new Vn(i.error,"failed to get largest accounts");return i.result}async getTokenLargestAccounts(t,e){const n=this._buildArgs([t.toBase58()],e),r=await this._rpcRequest("getTokenLargestAccounts",n),i=(0,f.Ue)(r,xr);if("error"in i)throw new Vn(i.error,"failed to get token largest accounts");return i.result}async getAccountInfoAndContext(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgs([t.toBase58()],n,"base64",r),o=await this._rpcRequest("getAccountInfo",i),s=(0,f.Ue)(o,ir((0,f.AG)(Pr)));if("error"in s)throw new Vn(s.error,`failed to get info about account ${t.toBase58()}`);return s.result}async getParsedAccountInfo(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgs([t.toBase58()],n,"jsonParsed",r),o=await this._rpcRequest("getAccountInfo",i),s=(0,f.Ue)(o,ir((0,f.AG)(Or)));if("error"in s)throw new Vn(s.error,`failed to get info about account ${t.toBase58()}`);return s.result}async getAccountInfo(t,e){try{return(await this.getAccountInfoAndContext(t,e)).value}catch(n){throw new Error("failed to get info about account "+t.toBase58()+": "+n)}}async getMultipleAccountsInfoAndContext(t,e){const{commitment:n,config:r}=tr(e),i=t.map((t=>
1t.toBase58())),o=this._buildArgs([i],n,"base64",r),s=await this._rpcRequest("getMultipleAccounts",o),a=(0,f.Ue)(s,ir((0,f.IX)((0,f.AG)(Pr))));if("error"in a)throw new Vn(a.error,`failed to get info for accounts ${i}`);return a.result}async getMultipleAccountsInfo(t,e){return(await this.getMultipleAccountsInfoAndContext(t,e)).value}async getStakeActivation(t,e,n){const{commitment:r,config:i}=tr(e),o=this._buildArgs([t.toBase58()],r,void 0,{...i,epoch:null!=n?n:null===i||void 0===i?void 0:i.epoch}),s=await this._rpcRequest("getStakeActivation",o),a=(0,f.Ue)(s,rr(Br));if("error"in a)throw new Vn(a.error,`failed to get Stake Activation ${t.toBase58()}`);return a.result}async getProgramAccounts(t,e){const{commitment:n,config:r}=tr(e),{encoding:i,...o}=r||{},s=this._buildArgs([t.toBase58()],n,i||"base64",o),a=await this._rpcRequest("getProgramAccounts",s),c=(0,f.Ue)(a,rr((0,f.IX)(Cr)));if("error"in c)throw new Vn(c.error,`failed to get accounts owned by program ${t.toBase58()}`);return c.result}async getParsedProgramAccounts(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgs([t.toBase58()],n,"jsonParsed",r),o=await this._rpcRequest("getProgramAccounts",i),s=(0,f.Ue)(o,rr((0,f.IX)(Rr)));if("error"in s)throw new Vn(s.error,`failed to get accounts owned by program ${t.toBase58()}`);return s.result}async confirmTransaction(t,e){let n,r;if("string"==typeof t)n=t;else{n=t.signature}try{r=u().decode(n)}catch(d){throw new Error("signature must be base58 encoded: "+n)}on(64===r.length,"signature has invalid length");const i=e||this.commitment;let o,s,a=!1;const c=new Promise(((t,e)=>{try{s=this.onSignature(n,((e,n)=>{s=void 0;const r={context:n,value:e};a=!0,t({__type:sn.PROCESSED,response:r})}),i)}catch(d){e(d)}})),l=new Promise((n=>{if("string"===typeof t){let t=this._confirmTransactionInitialTimeout||6e4;switch(i){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":t=this._confirmTransactionInitialTimeout||3e4}o=setTimeout((()=>n({__type:sn.TIMED_OUT,timeoutMs:t})),t)}else{let r=t;const i=async()=>{try{return await this.getBlockHeight(e)}catch(t){return-1}};(async()=>{let t=await i();if(!a){for(;t<=r.lastValidBlockHeight;){if(await wn(1e3),a)return;if(t=await i(),a)return}n({__type:sn.BLOCKHEIGHT_EXCEEDED})}})()}}));let h;try{const t=await Promise.race([c,l]);switch(t.__type){case sn.BLOCKHEIGHT_EXCEEDED:throw new Xe(n);case sn.PROCESSED:h=t.response;break;case sn.TIMED_OUT:throw new Je(n,t.timeoutMs/1e3)}}finally{clearTimeout(o),s&&this.removeSignatureListener(s)}return h}async getClusterNodes(){const t=await this._rpcRequest("getClusterNodes",[]),e=(0,f.Ue)(t,rr((0,f.IX)(Hr)));if("error"in e)throw new Vn(e.error,"failed to get cluster nodes");return e.result}async getVoteAccounts(t){const e=this._buildArgs([],t),n=await this._rpcRequest("getVoteAccounts",e),r=(0,f.Ue)(n,$r);if("error"in r)throw new Vn(r.error,"failed to get vote accounts");return r.result}async getSlot(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getSlot",r),o=(0,f.Ue)(i,rr((0,f.Rx)()));if("error"in o)throw new Vn(o.error,"failed to get slot");return o.result}async getSlotLeader(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getSlotLeader",r),o=(0,f.Ue)(i,rr((0,f.Z_)()));if("error"in o)throw new Vn(o.error,"failed to get slot leader");return o.result}async getSlotLeaders(t,e){const n=[t,e],r=await this._rpcRequest("getSlotLeaders",n),i=(0,f.Ue)(r,rr((0,f.IX)(Yn)));if("error"in i)throw new Vn(i.error,"failed to get slot leaders");return i.result}async getSignatureStatus(t,e){const{context:n,value:r}
1=await this.getSignatureStatuses([t],e);on(1===r.length);return{context:n,value:r[0]}}async getSignatureStatuses(t,e){const n=[t];e&&n.push(e);const r=await this._rpcRequest("getSignatureStatuses",n),i=(0,f.Ue)(r,Xr);if("error"in i)throw new Vn(i.error,"failed to get signature status");return i.result}async getTransactionCount(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getTransactionCount",r),o=(0,f.Ue)(i,rr((0,f.Rx)()));if("error"in o)throw new Vn(o.error,"failed to get transaction count");return o.result}async getTotalSupply(t){return(await this.getSupply({commitment:t,excludeNonCirculatingAccountsList:!0})).value.total}async getInflationGovernor(t){const e=this._buildArgs([],t),n=await this._rpcRequest("getInflationGovernor",e),r=(0,f.Ue)(n,yr);if("error"in r)throw new Vn(r.error,"failed to get inflation");return r.result}async getInflationReward(t,e,n){const{commitment:r,config:i}=tr(n),o=this._buildArgs([t.map((t=>t.toBase58()))],r,void 0,{...i,epoch:null!=e?e:null===i||void 0===i?void 0:i.epoch}),s=await this._rpcRequest("getInflationReward",o),a=(0,f.Ue)(s,ar);if("error"in a)throw new Vn(a.error,"failed to get inflation reward");return a.result}async getEpochInfo(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getEpochInfo",r),o=(0,f.Ue)(i,br);if("error"in o)throw new Vn(o.error,"failed to get epoch info");return o.result}async getEpochSchedule(){const t=await this._rpcRequest("getEpochSchedule",[]),e=(0,f.Ue)(t,vr);if("error"in e)throw new Vn(e.error,"failed to get epoch schedule");const n=e.result;return new Un(n.slotsPerEpoch,n.leaderScheduleSlotOffset,n.warmup,n.firstNormalEpoch,n.firstNormalSlot)}async getLeaderSchedule(){const t=await this._rpcRequest("getLeaderSchedule",[]),e=(0,f.Ue)(t,wr);if("error"in e)throw new Vn(e.error,"failed to get leader schedule");return e.result}async getMinimumBalanceForRentExemption(t,e){const n=this._buildArgs([t],e),r=await this._rpcRequest("getMinimumBalanceForRentExemption",n),i=(0,f.Ue)(r,Jr);return"error"in i?(console.warn("Unable to fetch minimum balance for rent exemption"),0):i.result}async getRecentBlockhashAndContext(t){const e=this._buildArgs([],t),n=await this._rpcRequest("getRecentBlockhash",e),r=(0,f.Ue)(n,mi);if("error"in r)throw new Vn(r.error,"failed to get recent blockhash");return r.result}async getRecentPerformanceSamples(t){const e=await this._rpcRequest("getRecentPerformanceSamples",t?[t]:[]),n=(0,f.Ue)(e,bi);if("error"in n)throw new Vn(n.error,"failed to get recent performance samples");return n.result}async getFeeCalculatorForBlockhash(t,e){const n=this._buildArgs([t],e),r=await this._rpcRequest("getFeeCalculatorForBlockhash",n),i=(0,f.Ue)(r,vi);if("error"in i)throw new Vn(i.error,"failed to get fee calculator");const{context:o,value:s}=i.result;return{context:o,value:null!==s?s.feeCalculator:null}}async getFeeForMessage(t,e){const n=t.serialize().toString("base64"),r=this._buildArgs([n],e),i=await this._rpcRequest("getFeeForMessage",r),o=(0,f.Ue)(i,ir((0,f.AG)((0,f.Rx)())));if("error"in o)throw new Vn(o.error,"failed to get slot");if(null===o.result)throw new Error("invalid blockhash");return o.result}async getRecentBlockhash(t){try{return(await this.getRecentBlockhashAndContext(t)).value}catch(e){throw new Error("failed to get recent blockhash: "+e)}}async getLatestBlockhash(t){try{return(await this.getLatestBlockhashAndContext(t)).value}catch(e){throw new Error("failed to get recent blockhash: "+e)}}async getLatestBlockhashAndContext(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getLatestBlockhash",r),o=(0,f.Ue)(i,gi);if("error"in o)throw new Vn(o.error,"failed to get latest blockhash");return o.result}async getVersion(){const t=await this._rpcRequest("getVersion",[]),e=(0,f.Ue)(t,rr(pr));if("error"in e)throw new Vn(e.error,"failed to get version");return e.result}async getGenesisHash(){const t=await this._rpcRequest("getGenesisHash",[]),e=(0,f.Ue)(t,rr((0,f.Z_)()));if("error"in e)throw new Vn(e.error,"failed to get genesis hash");return e.result}async getBlock(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgsAtLeastConfirmed([t],n,void 0,r),o=await this._rpcRequest("getBlock",i),s=(0,f.Ue)(o,li);if("error"in s)throw new Vn(s.error,"failed to get confirmed block");const a=s.result;return a?{...a,transactions:a.transactions.map((({transaction:t,meta:e})=>{const n=new rn(t.message);return{meta:e,transaction:{...t,message:n}}}))}:a}async getBlockHeight(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getBlockHeight",r),o=(0,f.Ue)(i,rr((0,f.Rx)()));if("error"in o)throw new Vn(o.error,"failed to get block height information");return o.result}async getBlockProduction(t){let e,n;if("string"===typeof t)n=t;else if(t){const{commitment:r,...i}=t;n=r,e=i}const r=this._buildArgs([],n,"base64",e),i=await this._rpcRequest("getBlockProduction",r),o=(0,f.Ue)(i,gr);if("error"in o)throw new Vn(o.error,"failed to get block production information");return o.result}async getTransaction(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgsAtLeastConfirmed([t],n,void 0,r),o=await this._rpcRequest("getTransaction",i),s=(0,f.Ue)(o,fi);if("error"in s)throw new Vn(s.error,"failed to get transaction");const a=s.result;return a?{...a,transaction:{...a.transaction,message:new rn(a.transaction.message)}}:a}async getParsedTransaction(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgsAtLeastConfirmed([t],n,"jsonParsed",r),o=await this._rpcRequest("getTransaction",i),s=(0,f.Ue)(o,pi);if("error"in s)throw new Vn(s.error,"failed to get transaction");return s.result}async getParsedTransactions(t,e){const{commitment:n,config:r}=tr(e),i=t.map((t=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([t],n,"jsonParsed",r)})));return(await this._rpcBatchRequest(i)).map((t=>{const e=(0,f.Ue)(t,pi);if("error"in e)throw new Vn(e.error,"failed to get transactions");return e.result}))}async getTransactions(t,e){const{commitment:n,config:r}=tr(e),i=t.map((t=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([t],n,void 0,r)})));return(await this._rpcBatchRequest(i)).map((t=>{const e=(0,f.Ue)(t,fi);if("error"in e)throw new Vn(e.error,"failed to get transactions");const n=e.result;return n?{...n,transaction:{...n.transaction,message:new rn(n.transaction.message)}}:n}))}async getConfirmedBlock(t,e){const n=this._buildArgsAtLeastConfirmed([t],e),r=await this._rpcRequest("getConfirmedBlock",
1n),i=(0,f.Ue)(r,hi);if("error"in i)throw new Vn(i.error,"failed to get confirmed block");const o=i.result;if(!o)throw new Error("Confirmed block "+t+" not found");const s={...o,transactions:o.transactions.map((({transaction:t,meta:e})=>{const n=new rn(t.message);return{meta:e,transaction:{...t,message:n}}}))};return{...s,transactions:s.transactions.map((({transaction:t,meta:e})=>({meta:e,transaction:un.populate(t.message,t.signatures)})))}}async getBlocks(t,e,n){const r=this._buildArgsAtLeastConfirmed(void 0!==e?[t,e]:[t],n),i=await this._rpcRequest("getBlocks",r),o=(0,f.Ue)(i,rr((0,f.IX)((0,f.Rx)())));if("error"in o)throw new Vn(o.error,"failed to get blocks");return o.result}async getBlockSignatures(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,void 0,{transactionDetails:"signatures",rewards:!1}),r=await this._rpcRequest("getBlock",n),i=(0,f.Ue)(r,di);if("error"in i)throw new Vn(i.error,"failed to get block");const o=i.result;if(!o)throw new Error("Block "+t+" not found");return o}async getConfirmedBlockSignatures(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,void 0,{transactionDetails:"signatures",rewards:!1}),r=await this._rpcRequest("getConfirmedBlock",n),i=(0,f.Ue)(r,di);if("error"in i)throw new Vn(i.error,"failed to get confirmed block");const o=i.result;if(!o)throw new Error("Confirmed block "+t+" not found");return o}async getConfirmedTransaction(t,e){const n=this._buildArgsAtLeastConfirmed([t],e),r=await this._rpcRequest("getConfirmedTransaction",n),i=(0,f.Ue)(r,fi);if("error"in i)throw new Vn(i.error,"failed to get transaction");const o=i.result;if(!o)return o;const s=new rn(o.transaction.message),a=o.transaction.signatures;return{...o,transaction:un.populate(s,a)}}async getParsedConfirmedTransaction(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,"jsonParsed"),r=await this._rpcRequest("getConfirmedTransaction",n),i=(0,f.Ue)(r,pi);if("error"in i)throw new Vn(i.error,"failed to get confirmed transaction");return i.result}async getParsedConfirmedTransactions(t,e){const n=t.map((t=>({methodName:"getConfirmedTransaction",args:this._buildArgsAtLeastConfirmed([t],e,"jsonParsed")})));return(await this._rpcBatchRequest(n)).map((t=>{const e=(0,f.Ue)(t,pi);if("error"in e)throw new Vn(e.error,"failed to get confirmed transactions");return e.result}))}async getConfirmedSignaturesForAddress(t,e,n){let r={},i=await this.getFirstAvailableBlock();for(;!("until"in r)&&!(--e<=0||e<i);)try{const t=await this.getConfirmedBlockSignatures(e,"finalized");t.signatures.length>0&&(r.until=t.signatures[t.signatures.length-1].toString())}catch(s){if(s instanceof Error&&s.message.includes("skipped"))continue;throw s}
1let o=await this.getSlot("finalized");for(;!("before"in r)&&!(++n>o);)try{const t=await this.getConfirmedBlockSignatures(n);t.signatures.length>0&&(r.before=t.signatures[t.signatures.length-1].toString())}catch(s){if(s instanceof Error&&s.message.includes("skipped"))continue;throw s}return(await this.getConfirmedSignaturesForAddress2(t,r)).map((t=>t.signature))}async getConfirmedSignaturesForAddress2(t,e,n){const r=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,e),i=await this._rpcRequest("getConfirmedSignaturesForAddress2",r),o=(0,f.Ue)(i,jr);if("error"in o)throw new Vn(o.error,"failed to get confirmed signatures for address");return o.result}async getSignaturesForAddress(t,e,n){const r=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,e),i=await this._rpcRequest("getSignaturesForAddress",r),o=(0,f.Ue)(i,Nr);if("error"in o)throw new Vn(o.error,"failed to get signatures for address");return o.result}async getAddressLookupTable(t,e){const{context:n,value:r}=await this.getAccountInfoAndContext(t,e);let i=null;return null!==r&&(i=new Hn({key:t,state:Hn.deserialize(r.data)})),{context:n,value:i}}async getNonceAndContext(t,e){const{context:n,value:r}=await this.getAccountInfoAndContext(t,e);let i=null;return null!==r&&(i=An.fromAccountData(r.data)),{context:n,value:i}}async getNonce(t,e){return await this.getNonceAndContext(t,e).then((t=>t.value)).catch((e=>{throw new Error("failed to get nonce for account "+t.toBase58()+": "+e)}))}async requestAirdrop(t,e){const n=await this._rpcRequest("requestAirdrop",[t.toBase58(),e]),r=(0,f.Ue)(n,wi);if("error"in r)throw new Vn(r.error,`airdrop to ${t.toBase58()} failed`);return r.result}async _blockhashWithExpiryBlockHeight(t){if(!t){for(;this._pollingBlockhash;)await wn(100);const t=Date.now()-this._blockhashInfo.lastFetch>=Qn;if(null!==this._blockhashInfo.latestBlockhash&&!t)return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{const t=Date.now(),e=this._blockhashInfo.latestBlockhash,n=e?e.blockhash:null;for(let r=0;r<50;r++){const t=await this.getLatestBlockhash("finalized");if(n!==t.blockhash)return this._blockhashInfo={latestBlockhash:t,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},t;await wn(200)}throw new Error(`Unable to obtain a new blockhash after ${Date.now()-t}ms`)}finally{this._pollingBlockhash=!1}}async getStakeMinimumDelegation(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,"base64",n),i=await this._rpcRequest("getStakeMinimumDelegation",r),o=(0,f.Ue)(i,ir((0,f.Rx)()));if("error"in o)throw new Vn(o.error,"failed to get stake minimum delegation");return o.result}async simulateTransaction(t,e,n){let r;if(t instanceof un){let e=t;r=new un,r.feePayer=e.feePayer,r.instructions=t.instructions,r.nonceInfo=e.nonceInfo,r.signatures=e.signatures}else r=un.populate(t),r._message=r._json=void 0;if(r.nonceInfo&&e)r.sign(...e);else{let t=this._disableBlockhashCaching;for(;;){const n=await this._blockhashWithExpiryBlockHeight(t);if(r.lastValidBlockHeight=n.lastValidBlockHeight,r.recentBlockhash=n.blockhash,!e)break;if(r.sign(...e),!r.signature)throw new Error("!signature");const i=r.signature.toString("base64");if(!this._blockhashInfo.simulatedSignatures.includes(i)&&!this._blockhashInfo.transactionSignatures.includes(i)){this._blockhashInfo.simulatedSignatures.push(i);break}t=!0}}const i=r._compile(),o=i.serialize(),s=r._serialize(o).toString("base64"),a={encoding:"base64",commitment:this.commitment};if(n){const t=(Array.isArray(n)?n:i.nonProgramIds()).map((t=>
1t.toBase58()));a.accounts={encoding:"base64",addresses:t}}e&&(a.sigVerify=!0);const c=[s,a],u=await this._rpcRequest("simulateTransaction",c),l=(0,f.Ue)(u,mr);if("error"in l){let t;if("data"in l.error&&(t=l.error.data.logs,t&&Array.isArray(t))){const e="\n ",n=e+t.join(e);console.error(l.error.message,n)}throw new Wn("failed to simulate transaction: "+l.error.message,t)}return l.result}async sendTransaction(t,e,n){if(t.nonceInfo)t.sign(...e);else{let n=this._disableBlockhashCaching;for(;;){const r=await this._blockhashWithExpiryBlockHeight(n);if(t.lastValidBlockHeight=r.lastValidBlockHeight,t.recentBlockhash=r.blockhash,t.sign(...e),!t.signature)throw new Error("!signature");const i=t.signature.toString("base64");if(!this._blockhashInfo.transactionSignatures.includes(i)){this._blockhashInfo.transactionSignatures.push(i);break}n=!0}}const r=t.serialize();return await this.sendRawTransaction(r,n)}async sendRawTransaction(t,e){const n=_(t).toString("base64");return await this.sendEncodedTransaction(n,e)}async sendEncodedTransaction(t,e){const n={encoding:"base64"},r=e&&e.skipPreflight,i=e&&e.preflightCommitment||this.commitment;e&&null!=e.maxRetries&&(n.maxRetries=e.maxRetries),e&&null!=e.minContextSlot&&(n.minContextSlot=e.minContextSlot),r&&(n.skipPreflight=r),i&&(n.preflightCommitment=i);const o=[t,n],s=await this._rpcRequest("sendTransaction",o),a=(0,f.Ue)(s,_i);if("error"in a){let t;throw"data"in a.error&&(t=a.error.data.logs),new Wn("failed to send transaction: "+a.error.message,t)}return a.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval((()=>{this._rpcWebSocket.notify("ping").catch((()=>{}))}),5e3),this._updateSubscriptions()}_wsOnError(t){this._rpcWebSocketConnected=!1,console.error("ws error:",t.message)}_wsOnClose(t){this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration++,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),1e3!==t?(this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach((([t,e])=>{this._subscriptionsByHash[t]={...e,state:"pending"}}))):this._updateSubscriptions()}async _updateSubscriptions(){if(0===Object.keys(this._subscriptionsByHash).length)return void(this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout((()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(t){t instanceof Error&&console.log(`Error when closing socket connection: ${t.message}`)}}),500)));if(null!==this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected)return void this._rpcWebSocket.connect();const t=this._rpcWebSocketGeneration,e=()=>t===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map((async t=>{const n=this._subscriptionsByHash[t];if(void 0!==n)switch(n.state){case"pending":case"unsubscribed":if(0===n.callbacks.size)return delete this._subscriptionsByHash[t],"unsubscribed"===n.state&&delete this._subscriptionCallbacksByServerSubscriptionId[n.serverSubscriptionId],void(await this._updateSubscriptions());await(async()=>{const{args:r,method:i}=n;try{this._subscriptionsByHash[t]={...n,state:"subscribing"};const e=await this._rpcWebSocket.call(i,r);this._subscriptionsByHash[t]={...n,serverSubscriptionId:e,state:"subscribed"},this._subscriptionCallbacksByServerSubscriptionId[e]=n.callbacks,await this._updateSubscriptions()}catch(o){if(o instanceof Error&&console.error(`${i} error for argument`,r,o.message),!e())return;this._subscriptionsByHash[t]={...n,state:"pending"},await this._updateSubscriptions()}})();break;case"subscribed":0===n.callbacks.size&&await(async()=>{const{serverSubscriptionId:r,unsubscribeMethod:i}=n;if(this._subscriptionsAutoDisposedByRpc.has(r))this._subscriptionsAutoDisposedByRpc.delete(r);else{this._subscriptionsByHash[t]={...n,state:"unsubscribing"};try{await this._rpcWebSocket.call(i,[r])}catch(o){if(o instanceof Error&&console.error(`${i} error:`,o.message),!e())return;return this._subscriptionsByHash[t]={...n,state:"subscribed"},void(await this._updateSubscriptions())}}this._subscriptionsByHash[t]={...n,state:"unsubscribed"},await this._updateSubscriptions()})()}})))}_handleServerNotification(t,e){const n=this._subscriptionCallbacksByServerSubscriptionId[t];
1void 0!==n&&n.forEach((t=>{try{t(...e)}catch(n){console.error(n)}}))}_wsOnAccountNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,Lr);this._handleServerNotification(n,[e.value,e.context])}_makeSubscription(t,e){const n=this._nextClientSubscriptionId++,r=zn([t.method,e],!0),i=this._subscriptionsByHash[r];return void 0===i?this._subscriptionsByHash[r]={...t,args:e,callbacks:new Set([t.callback]),state:"pending"}:i.callbacks.add(t.callback),this._subscriptionDisposeFunctionsByClientSubscriptionId[n]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[n];const e=this._subscriptionsByHash[r];on(void 0!==e,`Could not find a \`Subscription\` when tearing down client subscription #${n}`),e.callbacks.delete(t.callback),await this._updateSubscriptions()},this._updateSubscriptions(),n}onAccountChange(t,e,n){const r=this._buildArgs([t.toBase58()],n||this._commitment||"finalized","base64");return this._makeSubscription({callback:e,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},r)}async removeAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"account change")}_wsOnProgramAccountNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,zr);this._handleServerNotification(n,[{accountId:e.value.pubkey,accountInfo:e.value.account},e.context])}onProgramAccountChange(t,e,n,r){const i=this._buildArgs([t.toBase58()],n||this._commitment||"finalized","base64",r?{filters:r}:void 0);return this._makeSubscription({callback:e,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},i)}async removeProgramAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"program account change")}onLogs(t,e,n){const r=this._buildArgs(["object"===typeof t?{mentions:[t.toString()]}:t],n||this._commitment||"finalized");return this._makeSubscription({callback:e,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},r)}async removeOnLogsListener(t){await this._unsubscribeClientSubscription(t,"logs")}_wsOnLogsNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,Si);this._handleServerNotification(n,[e.value,e.context])}_wsOnSlotNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,Ur);this._handleServerNotification(n,[e])}onSlotChange(t){return this._makeSubscription({callback:t,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(t){await this._unsubscribeClientSubscription(t,"slot change")}_wsOnSlotUpdatesNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,Gr);this._handleServerNotification(n,[e])}onSlotUpdate(t){return this._makeSubscription({callback:t,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(t){await this._unsubscribeClientSubscription(t,"slot update")}async _unsubscribeClientSubscription(t,e){const n=this._subscriptionDisposeFunctionsByClientSubscriptionId[t];n?await n():console.warn(`Ignored unsubscribe request because an active subscription with id \`${t}\` for '${e}' events could not be found.`)}_buildArgs(t,e,n,r){const i=e||this._commitment;if(i||n||r){let e={};n&&(e.encoding=n),i&&(e.commitment=i),r&&(e=Object.assign(e,r)),t.push(e)}return t}_buildArgsAtLeastConfirmed(t,e,n,r){const i=e||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(t,e,n,r)}_wsOnSignatureNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,Vr);"receivedSignature"!==e.value&&this._subscriptionsAutoDisposedByRpc.add(n),this._handleServerNotification(n,"receivedSignature"===e.value?[{type:"received"},e.context]:[{type:"status",result:e.value},e.context])}onSignature(t,e,n){const r=this._buildArgs([t],n||this._commitment||"finalized"),i=this._makeSubscription({callback:(t,n)=>{if("status"===t.type){e(t.result,n);try{this.removeSignatureListener(i)}catch(r){}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},r);return i}onSignatureWithOptions(t,e,n){const{commitment:r,...i}={...n,commitment:n&&n.commitment||this._commitment||"finalized"},o=this._buildArgs([t],r,void 0,i),s=this._makeSubscription({callback:(t,n)=>{e(t,n);try{this.removeSignatureListener(s)}catch(r){}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},o);return s}async removeSignatureListener(t){await this._unsubscribeClientSubscription(t,"signature result")}_wsOnRootNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,Kr);this._handleServerNotification(n,[e])}onRootChange(t){return this._makeSubscription({callback:t,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(t){await this._unsubscribeClientSubscription(t,"root change")}}class Ai{constructor(t){this._keypair=void 0,this._keypair=t||i().sign.keyPair()}static generate(){return new Ai(i().sign.keyPair())}static fromSecretKey(t,e){const n=i().sign.keyPair.fromSecretKey(t);if(!e||!e.skipValidation){const t=(new TextEncoder).encode("@solana/web3.js-validation-v1"),e=i().sign.detached(t,n.secretKey);if(!i().sign.detached.verify(t,e,n.publicKey))throw new Error("provided secretKey is invali
1d")}return new Ai(n)}static fromSeed(t){return new Ai(i().sign.keyPair.fromSeed(t))}get publicKey(){return new Ue(this._keypair.publicKey)}get secretKey(){return this._keypair.secretKey}}const Ei=Object.freeze({CreateLookupTable:{index:0,layout:h.struct([h.u32("instruction"),En("recentSlot"),h.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:h.struct([h.u32("instruction")])},ExtendLookupTable:{index:2,layout:h.struct([h.u32("instruction"),En(),h.seq(Qe(),h.offset(h.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:h.struct([h.u32("instruction")])},CloseLookupTable:{index:4,layout:h.struct([h.u32("instruction")])}});class Ti{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=h.u32("instruction").decode(t.data);let n;for(const[r,i]of Object.entries(Ei))if(i.index==e){n=r;break}if(!n)throw new Error("Invalid Instruction. Should be a LookupTable Instruction");return n}static decodeCreateLookupTable(t){this.checkProgramId(t.programId),this.checkKeysLength(t.keys,4);const{recentSlot:e}=kn(Ei.CreateLookupTable,t.data);return{authority:t.keys[1].pubkey,payer:t.keys[2].pubkey,recentSlot:Number(e)}}static decodeExtendLookupTable(t){if(this.checkProgramId(t.programId),t.keys.length<2)throw new Error(`invalid instruction; found ${t.keys.length} keys, expected at least 2`);const{addresses:e}=kn(Ei.ExtendLookupTable,t.data);return{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,payer:t.keys.length>2?t.keys[2].pubkey:void 0,addresses:e.map((t=>new Ue(t)))}}static decodeCloseLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,3),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,recipient:t.keys[2].pubkey}}static decodeFreezeLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static decodeDeactivateLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(Pi.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}static checkKeysLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}class Pi{constructor(){}static createLookupTable(t){const[e,n]=Ue.findProgramAddressSync([t.authority.toBuffer(),(0,d.toBufferLE)(BigInt(t.recentSlot),8)],this.programId),r=_n(Ei.CreateLookupTable,{recentSlot:BigInt(t.recentSlot),bumpSeed:n}),i=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:Mn.programId,isSigner:!1,isWritable:!1}];return[new cn({programId:this.programId,keys:i,data:r}),e]}static freezeLookupTable(t){const e=_n(Ei.FreezeLookupTable),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new cn({programId:this.programId,keys:n,data:e})}static extendLookupTable(t){const e=_n(Ei.ExtendLookupTable,{addresses:t.addresses.map((t=>t.toBytes()))}),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return t.payer&&n.push({pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:Mn.programId,isSigner:!1,isWritable:!1}),new cn({programId:this.programId,keys:n,data:e})}static deactivateLookupTable(t){const e=_n(Ei.DeactivateLookupTable),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new cn({programId:this.programId,keys:n,data:e})}static closeLookupTable(t){const e=_n(Ei.CloseLookupTable),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.recipient,isSigner:!1,isWritable:!0}];return new cn({programId:this.programId,keys:n,data:e})}}Pi.programId=new Ue("AddressLookupTab1e1111111111111111111111111");class Ci{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=h.u8("instruction").decode(t.data);let n;for(const[r,i]of Object.entries(Mi))if(i.index==e){n=r;break}if(!n)throw new Error("Instruction type incorrect; not a ComputeBudgetInstruction");return n}static decodeRequestUnits(t){this.checkProgramId(t.programId);const{units:e,additionalFee:n}=kn(Mi.RequestUnits,t.data);return{units:e,additionalFee:n}}static decodeRequestHeapFrame(t){this.checkProgramId(t.programId);const{bytes:e}=kn(Mi.RequestHeapFrame,t.data);return{bytes:e}}static decodeSetComputeUnitLimit(t){this.checkProgramId(t.programId);const{units:e}=kn(Mi.SetComputeUnitLimit,t.data);return{units:e}}static decodeSetComputeUnitPrice(t){this.checkProgramId(t.programId);const{microLamports:e}=kn(Mi.SetComputeUnitPrice,t.data);return{microLamports:e}}static checkProgramId(t){if(!t.equals(Oi.programId))throw new Error("invalid instruction; programId is not ComputeBudgetProgram")}}const Mi=Object.freeze({RequestUnits:{index:0,layout:h.struct([h.u8("instruction"),h.u32("units"),h.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:h.struct([h.u8("instruction"),h.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:h.struct([h.u8("instruction"),h.u32("units")])},SetComputeUnitPrice:{index:3,layout:h.struct([h.u8("instruction"),En("microLamports")])}});class Oi{constructor(){}static requestUnits(t){const e=_n(Mi.RequestUnits,t);return new cn({keys:[],programId:this.programId,data:e})}static requestHeapFrame(t){const e=_n(Mi.RequestHeapFrame,t);return new cn({keys:[],programId:this.programId,data:e})}static setComputeUnitLimit(t){const e=_n(Mi.SetComputeUnitLimit,t);return new cn({keys:[],programId:this.programId,data:e})}static setComputeUnitPrice(t){const e=_n(Mi.SetComputeUnitPrice,{microLamports:BigInt(t.microLamports)});return new cn({keys:[],programId:this.programId,data:e})}}Oi.programId=new Ue("ComputeBudget111111111111111111111111111111");const Ri=h.struct([h.u8("numSignatures"),h.u8("padding"),h.u16("signatureOffset"),h.u16("signatureInstructionIndex"),h.u16("publicKeyOffset"),h.u16("publicKeyInstructionIndex"),h.u16("messageDataOffset"),h.u16("messageDataSize"),h.u16("messageInstructionIndex")]
1);class Bi{constructor(){}static createInstructionWithPublicKey(t){const{publicKey:e,message:n,signature:r,instructionIndex:i}=t;on(32===e.length,`Public Key must be 32 bytes but received ${e.length} bytes`),on(64===r.length,`Signature must be 64 bytes but received ${r.length} bytes`);const s=Ri.span,a=s+e.length,c=a+r.length,u=o.Buffer.alloc(c+n.length),l=null==i?65535:i;return Ri.encode({numSignatures:1,padding:0,signatureOffset:a,signatureInstructionIndex:l,publicKeyOffset:s,publicKeyInstructionIndex:l,messageDataOffset:c,messageDataSize:n.length,messageInstructionIndex:l},u),u.fill(e,s),u.fill(r,a),u.fill(n,c),new cn({keys:[],programId:Bi.programId,data:u})}static createInstructionWithPrivateKey(t){const{privateKey:e,message:n,instructionIndex:r}=t;on(64===e.length,`Private key must be 64 bytes but received ${e.length} bytes`);try{const t=Ai.fromSecretKey(e),o=t.publicKey.toBytes(),s=i().sign.detached(n,t.secretKey);return this.createInstructionWithPublicKey({publicKey:o,message:n,signature:s,instructionIndex:r})}catch(o){throw new Error(`Error creating instruction; ${o}`)}}}Bi.programId=new Ue("Ed25519SigVerify111111111111111111111111111");const{publicKeyCreate:ji,ecdsaSign:Ni}=b(),Li=h.struct([h.u8("numSignatures"),h.u16("signatureOffset"),h.u8("signatureInstructionIndex"),h.u16("ethAddressOffset"),h.u8("ethAddressInstructionIndex"),h.u16("messageDataOffset"),h.u16("messageDataSize"),h.u8("messageInstructionIndex"),h.blob(20,"ethAddress"),h.blob(64,"signature"),h.u8("recoveryId")]);class Di{constructor(){}static publicKeyToEthAddress(t){on(64===t.length,`Public key must be 64 bytes but received ${t.length} bytes`);try{return o.Buffer.from(w().keccak_256.update(_(t)).digest()).slice(-20)}catch(e){throw new Error(`Error constructing Ethereum address: ${e}`)}}static createInstructionWithPublicKey(t){const{publicKey:e,message:n,signature:r,recoveryId:i,instructionIndex:o}=t;return Di.createInstructionWithEthAddress({ethAddress:Di.publicKeyToEthAddress(e),message:n,signature:r,recoveryId:i,instructionIndex:o})}static createInstructionWithEthAddress(t){const{ethAddress:e,message:n,signature:r,recoveryId:i,instructionIndex:s=0}=t;let a;a="string"===typeof e?e.startsWith("0x")?o.Buffer.from(e.substr(2),"hex"):o.Buffer.from(e,"hex"):e,on(20===a.length,`Address must be 20 bytes but received ${a.length} bytes`);const c=12+a.length,u=c+r.length+1,l=o.Buffer.alloc(Li.span+n.length);return Li.encode({numSignatures:1,signatureOffset:c,signatureInstructionIndex:s,ethAddressOffset:12,ethAddressInstructionIndex:s,messageDataOffset:u,messageDataSize:n.length,messageInstructionIndex:s,signature:_(r),ethAddress:_(a),recoveryId:i},l),l.fill(_(n),Li.span),new cn({keys:[],programId:Di.programId,data:l})}static createInstructionWithPrivateKey(t){const{privateKey:e,message:n,instructionIndex:r}=t;on(32===e.length,`Private key must be 32 bytes but received ${e.length} bytes`);try{const t=_(e),i=ji(t,!1).slice(1),s=o.Buffer.from(w().keccak_256.update(_(n)).digest()),{signature:a,recid:c}=Ni(s,t);return this.createInstructionWithPublicKey({publicKey:i,message:n,signature:a,recoveryId:c,instructionIndex:r})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}}Di.programId=new Ue("KeccakSecp256k11111111111111111111111111111");const zi=new Ue("StakeConfig11111111111111111111111111111111");class Fi{constructor(t,e){this.staker=void 0,this.withdrawer=void 0,this.staker=t,this.withdrawer=e}}class Ui{constructor(t,e,n){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=e,this.custodian=n}}Ui.default=new Ui(0,0,Ue.default);class Wi{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=h.u32("instruction").decode(t.data);let n;for(const[r,i]of Object.entries(Gi))if(i.index==e){n=r;break}if(!n)throw new Error("Instruction type incorrect; not a StakeInstruction");return n}static decodeInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:e,lockup:n}=kn(Gi.Initialize,t.data);return{stakePubkey:t.keys[0].pubkey,authorized:new Fi(new Ue(e.staker),new Ue(e.withdrawer)),lockup:new Ui(n.unixTimestamp,n.epoch,new Ue(n.custodian))}}static decodeDelegate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,6),kn(Gi.Delegate,t.data),{stakePubkey:t.keys[0].pubkey,votePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[5].pubkey}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:e,stakeAuthorizationType:n}=kn(Gi.Authorize,t.data),r={stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new Ue(e),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(r.custodianPubkey=t.keys[3].pubkey),r}static decodeAuthorizeWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{newAuthorized:e,stakeAuthorizationType:n,authoritySeed:r,authorityOwner:i}=kn(Gi.AuthorizeWithSeed,t.data),o={stakePubkey:t.keys[0].pubkey,authorityBase:t.keys[1].pubkey,authoritySeed:r,authorityOwner:new Ue(i),newAuthorizedPubkey:new Ue(e),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(o.custodianPubkey=t.keys[3].pubkey),o}static decodeSplit(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e}=kn(Gi.Split,t.data);return{stakePubkey:t.keys[0].pubkey,splitStakePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[2].pubkey,lamports:e}}static decodeMerge(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),kn(Gi.Merge,t.data),{stakePubkey:t.keys[0].pubkey,sourceStakePubKey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:e}=kn(Gi.Withdraw,t.data),n={stakePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:e};return t.keys.length>5&&(n.custodianPubkey=t.keys[5].pubkey),n}static decodeDeactivate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),kn(Gi.Deactivate,t.data),{stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static checkProgramId(t){if(!t.equals(Ki.programId))throw new Error("invalid instruction; programId is not StakeProgram")}static checkKeyLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}const Gi=Object.freeze({Initialize:{index:0,layout:h.struct([h.u32("instruction"),((t="authorized")=>h.struct([Qe("staker"),Qe("withdrawer")],t))(),((t="lockup")=>h.struct([h.ns64("unixTimestamp"),h.ns64("epoch"),Qe("custodian")],t))()])},Authorize:{index:1,layout:h.struct([h.u32("instruction"),Qe("newAuthorized"),h.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:h.struct([h.u32("instruction")])},Split:{index:3,layout:h.struct([h.u32("instruction"),h.ns64("lamports")])},Withdraw:{index:4,layout:h.struct([h.u32("instruction"),h.ns64("lamports")])},Deactivate:{index:5,layout:h.struct([h.u32("instruction")])},Merge:{index:7,layout:h.struct([h.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:h.struct([h.u32("instruction"),Qe("newAuthorized"),h.u32("stakeAuthorizationType"),tn("authoritySeed"),Qe("authorityOwner")])}}),Vi=Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class Ki{constructor(){}static initialize(t){const{stakePubkey:e,authorized:n,lockup:r}=t,i=r||Ui.default,o=_n(Gi.Initialize,{authorized:{staker:_(n.staker.toBuffer()),withdrawer:_(n.withdrawer.toBuffer())},lockup:{unixTimestamp:i.unixTimestamp,epoch:i.epoch,custodian:_(i.custodian.toBuffer())}}),s={keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:pn,isSigner:!1,isWritable:!1}],programId:this.programId,data:o};return new cn(s)}static createAccountWithSeed(t){const e=new un;e.add(Mn.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:r,lockup:i}=t;return e.add(this.initialize({stakePubkey:n,authorized:r,lockup:i}))}static createAccount(t){const e=new un;e.add(Mn.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:r,lockup:i}=t;return e.add(this.initialize({stakePubkey:n,authorized:r,lockup:i}))}static delegate(t){const{stakePubkey:e,authorizedPubkey:n,votePubkey:r}=t,i=_n(Gi.Delegate);return(new un).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:ln,isSigner:!1,isWritable:!1},{pubkey:bn,isSigner:!1,isWritable:!1},{pubkey:zi,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}static authorize(t){const{stakePubkey:e,authorizedPubkey:n,newAuthorizedPubkey:r,stakeAuthorizationType:i,custodianPubkey:o}=t,s=_n(Gi.Authorize,{newAuthorized:_(r.toBuffer()),stakeAuthorizationType:i.index}),a=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:ln,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&a.push({pubkey:o,isSigner:!1,isWritable:!1}),(new un).add({keys:a,programId:this.programId,data:s})}static authorizeWithSeed(t){const{stakePubkey:e,authorityBase:n,authoritySeed:r,authorityOwner:i,newAuthorizedPubkey:o,stakeAuthorizationType:s,custodianPubkey:a}=t,c=_n(Gi.AuthorizeWithSeed,{newAuthorized:_(o.toBuffer()),stakeAuthorizationType:s.index,authoritySeed:r,authorityOwner:_(i.toBuffer())}),u=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:ln,isSigner:!1,isWritable:!1}];return a&&u.push({pubkey:a,isSigner:!1,isWritable:!1}),(new un).add({keys:u,programId:this.programId,data:c})}static splitInstruction(t){const{stakePubkey:e,authorizedPubkey:n,splitStakePubkey:r,lamports:i}=t,o=_n(Gi.Split,{lamports:i});return new cn({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}static split(t){const e=new un;return e.add(Mn.createAccount({fromPubkey:t.authorizedPubkey,newAccountPubkey:t.splitStakePubkey,lamports:0,space:this.space,programId:this.programId})),e.add(this.splitInstruction(t))}static splitWithSeed(t){const{stakePubkey:e,authorizedPubkey:n,splitStakePubkey:r,basePubkey:i,seed:o,lamports:s}=t,a=new un;return a.add(Mn.allocate({accountPubkey:r,basePubkey:i,seed:o,space:this.space,programId:this.programId})),a.add(this.splitInstruction({stakePubkey:e,authorizedPubkey:n,splitStakePubkey:r,lamports:s}))}static merge(t){const{stakePubkey:e,sourceStakePubKey:n,authorizedPubkey:r}=t,i=_n(Gi.Merge);return(new un).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:ln,isSigner:!1,isWritable:!1},{pubkey:bn,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}static withdraw(t){const{stakePubkey:e,authorizedPubkey:n,toPubkey:r,lamports:i,custodianPubkey:o}=t,s=_n(Gi.Withdraw,{lamports:i}),a=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:ln,isSigner:!1,isWritable:!1},{pubkey:bn,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&a.push({pubkey:o,isSigner:!1,isWritable:!1}),(new un).add({keys:a,programId:this.programId,data:s})}static deactivate(t){const{stakePubkey:e,authorizedPubkey:n}=t,r=_n(Gi.Deactivate);return(new un).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:ln,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:r})}}Ki.programId=new Ue("Stake11111111111111111111111111111111111111"),Ki.space=2
100;class Hi{constructor(t,e,n,r){this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=t,this.authorizedVoter=e,this.authorizedWithdrawer=n,this.commission=r}}class qi{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=h.u32("instruction").decode(t.data);let n;for(const[r,i]of Object.entries($i))if(i.index==e){n=r;break}if(!n)throw new Error("Instruction type incorrect; not a VoteInstruction");return n}static decodeInitializeAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,4);const{voteInit:e}=kn($i.InitializeAccount,t.data);return{votePubkey:t.keys[0].pubkey,nodePubkey:t.keys[3].pubkey,voteInit:new Hi(new Ue(e.nodePubkey),new Ue(e.authorizedVoter),new Ue(e.authorizedWithdrawer),e.commission)}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:e,voteAuthorizationType:n}=kn($i.Authorize,t.data);return{votePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new Ue(e),voteAuthorizationType:{index:n}}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e}=kn($i.Withdraw,t.data);return{votePubkey:t.keys[0].pubkey,authorizedWithdrawerPubkey:t.keys[2].pubkey,lamports:e,toPubkey:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(Yi.programId))throw new Error("invalid instruction; programId is not VoteProgram")}static checkKeyLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}const $i=Object.freeze({InitializeAccount:{index:0,layout:h.struct([h.u32("instruction"),((t="voteInit")=>h.struct([Qe("nodePubkey"),Qe("authorizedVoter"),Qe("authorizedWithdrawer"),h.u8("commission")],t))()])},Authorize:{index:1,layout:h.struct([h.u32("instruction"),Qe("newAuthorized"),h.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:h.struct([h.u32("instruction"),h.ns64("lamports")])}}),Zi=Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class Yi{constructor(){}static initializeAccount(t){const{votePubkey:e,nodePubkey:n,voteInit:r}=t,i=_n($i.InitializeAccount,{voteInit:{nodePubkey:_(r.nodePubkey.toBuffer()),authorizedVoter:_(r.authorizedVoter.toBuffer()),authorizedWithdrawer:_(r.authorizedWithdrawer.toBuffer()),commission:r.commission}}),o={keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:pn,isSigner:!1,isWritable:!1},{pubkey:ln,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i};return new cn(o)}static createAccount(t){const e=new un;return e.add(Mn.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.votePubkey,lamports:t.lamports,space:this.space,programId:this.programId})),e.add(this.initializeAccount({votePubkey:t.votePubkey,nodePubkey:t.voteInit.nodePubkey,voteInit:t.voteInit}))}static authorize(t){const{votePubkey:e,authorizedPubkey:n,newAuthorizedPubkey:r,voteAuthorizationType:i}=t,o=_n($i.Authorize,{newAuthorized:_(r.toBuffer()),voteAuthorizationType:i.index}),s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:ln,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return(new un).add({keys:s,programId:this.programId,data:o})}static withdraw(t){const{votePubkey:e,authorizedWithdrawerPubkey:n,lamports:r,toPubkey:i}=t,o=_n($i.Withdraw,{lamports:r}),s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return(new un).add({keys:s,programId:this.programId,data:o})}}Yi.programId=new Ue("Vote111111111111111111111111111111111111111"),Yi.space=3731;const Xi=new Ue("Va1idator1nfo111111111111111111111111111111"),Ji=(0,f.dt)({name:(0,f.Z_)(),website:(0,f.jt)((0,f.Z_)()),details:(0,f.jt)((0,f.Z_)()),keybaseUsername:(0,f.jt)((0,f.Z_)())});class Qi{constructor(t,e){this.key=void 0,this.info=void 0,this.key=t,this.info=e}static fromConfigData(t){let e=[...t];if(2!==en(e))return null;const n=[];for(let r=0;r<2;r++){const t=new Ue(e.slice(0,32));e=e.slice(32);const r=1===e.slice(0,1)[0];e=e.slice(1),n.push({publicKey:t,isSigner:r})}if(n[0].publicKey.equals(Xi)&&n[1].isSigner){const t=tn().decode(o.Buffer.from(e)),r=JSON.parse(t);return(0,f.hu)(r,Ji),new Qi(n[1].publicKey,r)}return null}}const to=new Ue("Vote111111111111111111111111111111111111111"),eo=h.struct([Qe("nodePubkey"),Qe("authorizedWithdrawer"),h.u8("commission"),h.nu64(),h.seq(h.struct([h.nu64("slot"),h.u32("confirmationCount")]),h.offset(h.u32(),-8),"votes"),h.u8("rootSlotValid"),h.nu64("rootSlot"),h.nu64(),h.seq(h.struct([h.nu64("epoch"),Qe("authorizedVoter")]),h.offset(h.u32(),-8),"authorizedVoters"),h.struct([h.seq(h.struct([Qe("authorizedPubkey"),h.nu64("epochOfLastAuthorizedSwitch"),h.nu64("targetEpoch")]),32,"buf"),h.nu64("idx"),h.u8("isEmpty")],"priorVoters"),h.nu64(),h.seq(h.struct([h.nu64("epoch"),h.nu64("credits"),h.nu64("prevCredits")]),h.offset(h.u32(),-8),"epochCredits"),h.struct([h.nu64("slot"),h.nu64("timestamp")],"lastTimestamp")]);
1class no{constructor(t){this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=t.nodePubkey,this.authorizedWithdrawer=t.authorizedWithdrawer,this.commission=t.commission,this.rootSlot=t.rootSlot,this.votes=t.votes,this.authorizedVoters=t.authorizedVoters,this.priorVoters=t.priorVoters,this.epochCredits=t.epochCredits,this.lastTimestamp=t.lastTimestamp}static fromAccountData(t){const e=eo.decode(_(t),4);let n=e.rootSlot;return e.rootSlotValid||(n=null),new no({nodePubkey:new Ue(e.nodePubkey),authorizedWithdrawer:new Ue(e.authorizedWithdrawer),commission:e.commission,votes:e.votes,rootSlot:n,authorizedVoters:e.authorizedVoters.map(ro),priorVoters:oo(e.priorVoters),epochCredits:e.epochCredits,lastTimestamp:e.lastTimestamp})}}function ro({authorizedVoter:t,epoch:e}){return{epoch:e,authorizedVoter:new Ue(t)}}function io({authorizedPubkey:t,epochOfLastAuthorizedSwitch:e,targetEpoch:n}){return{authorizedPubkey:new Ue(t),epochOfLastAuthorizedSwitch:e,targetEpoch:n}}function oo({buf:t,idx:e,isEmpty:n}){return n?[]:[...t.slice(e+1).map(io),...t.slice(0,e).map(io)]}const so={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function ao(t,e){const n=!1===e?"http":"https";if(!t)return so[n].devnet;const r=so[n][t];if(!r)throw new Error(`Unknown ${n} cluster: ${t}`);return r}async function co(t,e,n,r){let i,o;n&&Object.prototype.hasOwnProperty.call(n,"lastValidBlockHeight")?(i=n,o=r):o=n;const s=o&&{skipPreflight:o.skipPreflight,preflightCommitment:o.preflightCommitment||o.commitment,minContextSlot:o.minContextSlot},a=await t.sendRawTransaction(e,s),c=o&&o.commitment,u=i?t.confirmTransaction(i,c):t.confirmTransaction(a,c),l=(await u).value;if(l.err)throw new Error(`Raw transaction ${a} failed (${JSON.stringify(l)})`);return a}const uo=1e9},65658:function(t,e,n){var r=n(58162);t.exports=r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},11766:function(t,e,n){"use strict";const r=n(79742),i=n(80645),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},e.INSPECT_MAX_BYTES=50;const s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return u(t,e,n)}function u(t,e,n){if("string"===typeof t)return function(t,e){"string"===typeof e&&""!==e||(e="utf8");if(!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|m(t,e);let r=a(n);const i=r.write(t,e);i!==n&&(r=r.slice(0,i));return r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Z(t,Uint8Array)){const e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return d(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Z(t,ArrayBuffer)||t&&Z(t.buffer,ArrayBuffer))return f(t,e,n);if("undefined"!==typeof SharedArrayBuffer&&(Z(t,SharedArrayBuffer)||t&&Z(t.buffer,SharedArrayBuffer)))return f(t,e,n);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,n);const i=function(t){if(c.isBuffer(t)){const e=0|p(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!==typeof t.length||Y(t.length)?a(0):d(t);if("Buffer"===t.type&&Array.isArray(t.data))return d(t.data)}(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');
vendor: 7,567 bytes, line 1
1if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return l(t),a(t<0?0:0|p(t))}function d(t){const e=t.length<0?0:0|p(t.length),n=a(e);for(let r=0;r<e;r+=1)n[r]=255&t[r];return n}function f(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,c.prototype),r}function p(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function m(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Z(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(t).length;default:if(i)return r?-1:H(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return C(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return P(this,e,n);case"base64":return I(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function y(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,i){let o,s=1,a=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let r=-1;for(o=n;o<a;o++)if(u(t,o)===u(e,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===c)return r*s}else-1!==r&&(o-=o-r),r=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){let n=!0;for(let r=0;r<c;r++)if(u(t,o+r)!==u(e,r)){n=!1;break}if(n)return o}return-1}function w(t,e,n,r){n=Number(n)||0;const i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=e.length;let s;for(r>o/2&&(r=o/2),s=0;s<r;++s){const r=parseInt(e.substr(2*s,2),16);if(Y(r))return s;t[n+s]=r}return s}function _(t,e,n,r){return $(H(e,t.length-n),t,n,r)}function k(t,e,n,r){return $(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function S(t,e,n,r){return $(q(e),t,n,r)}function x(t,e,n,r){return $(function(t,e){let n,r,i;const o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function I(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function A(t,e,n){n=Math.min(t.length,n);const r=[];let i=e;for(;i<n;){const e=t[i];let o=null,s=e>239?4:e>223?3:e>191?2:1;if(i+s<=n){let n,r,a,c;switch(s){case 1:e<128&&(o=e);break;case 2:n=t[i+1],128===(192&n)&&(c=(31&e)<<6|63&n,c>127&&(o=c));break;case 3:n=t[i+1],r=t[i+2],128===(192&n)&&128===(192&r)&&(c=(15&e)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=t[i+1],r=t[i+2],a=t[i+3],128===(192&n)&&128===(192&r)&&128===(192&a)&&(c=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(t){const e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);let n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=E));return n}(r)}e.kMaxLength=s,c.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,n){return u(t,e,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,n){return function(t,e,n){return l(t),t<=0?a(t):void 0!==e?"string"===typeof n?a(t).fill(e,n):a(t).fill(e):a(t)}(t,e,n)},c.allocUnsafe=function(t){return h(t)},c.allocUnsafeSlow=function(t){return h(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(Z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),Z(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);let n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const r=c.allocUnsafe(e);let i=0;for(n=0;n<t.length;++n){let e=t[n];if(Z(e,Uint8Array))i+e.length>r.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,i)}i+=e.length}return r},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)y(this,e,e+1);return this},c.prototype.swap32=function(){const t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},c.prototype.swap64=function(){const t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},c.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?A(this,0,t):g.apply(this,arguments)}
vendor: 12,040 bytes, line 1
1,c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){let t="";const n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(t,e,n,r,i){if(Z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;let o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0);const a=Math.min(o,s),u=this.slice(r,i),l=t.slice(e,n);for(let c=0;c<a;++c)if(u[c]!==l[c]){o=u[c],s=l[c];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return _(this,t,e,n);case"ascii":case"latin1":case"binary":return k(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const E=4096;function T(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function P(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function C(t,e,n){const r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let i="";for(let o=e;o<n;++o)i+=X[t[o]];return i}function M(t,e,n){const r=t.slice(e,n);let i="";for(let o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function O(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function B(t,e,n,r,i){W(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,n}function j(t,e,n,r,i){W(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=s,s>>=8,t[n+2]=s,s>>=8,t[n+1]=s,s>>=8,t[n]=s,n+8}function N(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(t,e,n,r,o){return e=+e,n>>>=0,o||N(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function D(t,e,n,r,o){return e=+e,n>>>=0,o||N(t,0,n,8),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const r=this.subarray(t,e);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=this[t+--e],i=1;for(;e>0&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),c.prototype.readBigUInt64BE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),c.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=e,i=1,o=this[t+--r];for(;r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||O(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||O(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),c.prototype.readBigInt64BE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)})),c.prototype.readFloatLE=function(t,e){return t>>>=0,e||O(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||O(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||O(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||O(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){R(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){R(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=J((function(t,e=0){return B(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=J((function(t,e=0){return j(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=0,o=1,s=0;for(this[e]=255&t;++i<n&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=J((function(t,e=0){return B(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=J((function(t,e=0){return j(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(t,e,n){return L(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return L(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return D(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return D(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);const i=r-n;return this===t&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),i},c.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){const e=t.charCodeAt(0);("utf8"===r&&e<128||"latin1"===r)&&(t=e)}}else"number"===typeof t?t&=255:"boolean"===typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(i=e;i<n;++i)this[i]=t;else{const o=c.isBuffer(t)?t:c.from(t,r),s=o.length;
vendor: 5,329 bytes, line 1
1if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<n-e;++i)this[i+e]=o[i%s]}return this};const z={};function F(t,e,n){z[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function U(t){let e="",n=t.length;const r="-"===t[0]?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function W(t,e,n,r,i,o){if(t>n||t<e){const r="bigint"===typeof e?"n":"";let i;throw i=o>3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new z.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,n){G(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||V(e,t.length-(n+1))}(r,i,o)}function G(t,e){if("number"!==typeof t)throw new z.ERR_INVALID_ARG_TYPE(e,"number",t)}function V(t,e,n){if(Math.floor(t)!==t)throw G(t,n),new z.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new z.ERR_BUFFER_OUT_OF_BOUNDS;throw new z.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=U(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=U(i)),i+="n"),r+=` It must be ${e}. Received ${i}`,r}),RangeError);const K=/[^+/0-9A-Za-z-_]/g;function H(t,e){let n;e=e||1/0;const r=t.length;let i=null;const o=[];for(let s=0;s<r;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function $(t,e,n,r){let i;for(i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function Z(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Y(t){return t!==t}const X=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function J(t){return"undefined"===typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},98794:function(t,e,n){"use strict";n.r(e),n.d(e,{Account:function(){return qe},AddressLookupTableAccount:function(){return Hn},AddressLookupTableInstruction:function(){return Ti},AddressLookupTableProgram:function(){return Pi},Authorized:function(){return Fi},BLOCKHASH_CACHE_TIMEOUT_MS:function(){return Qn},BPF_LOADER_DEPRECATED_PROGRAM_ID:function(){return $e},BPF_LOADER_PROGRAM_ID:function(){return Bn},BpfLoader:function(){return jn},COMPUTE_BUDGET_INSTRUCTION_LAYOUTS:function(){return Mi},ComputeBudgetInstruction:function(){return Ci},ComputeBudgetProgram:function(){return Oi},Connection:function(){return Ii},Ed25519Program:function(){return Bi},Enum:function(){return De},EpochSchedule:function(){return Un},FeeCalculatorLayout:function(){return Sn},Keypair:function(){return Ai},LAMPORTS_PER_SOL:function(){return uo},LOOKUP_TABLE_INSTRUCTION_LAYOUTS:function(){return Ei},Loader:function(){return Rn},Lockup:function(){return Ui},MAX_SEED_LENGTH:function(){return Fe},Message:function(){return rn},NONCE_ACCOUNT_LENGTH:function(){return In},NonceAccount:function(){return An},PACKET_DATA_SIZE:function(){return Ze},PublicKey:function(){return Ue},SIGNATURE_LENGTH_IN_BYTES:function(){return Ye},SOLANA_SCHEMA:function(){return ze},STAKE_CONFIG_ID:function(){return zi},STAKE_INSTRUCTION_LAYOUTS:function(){return Gi},SYSTEM_INSTRUCTION_LAYOUTS:function(){return Cn},SYSVAR_CLOCK_PUBKEY:function(){return ln},SYSVAR_EPOCH_SCHEDULE_PUBKEY:function(){return hn},SYSVAR_INSTRUCTIONS_PUBKEY:function(){return dn},SYSVAR_RECENT_BLOCKHASHES_PUBKEY:function(){return fn},SYSVAR_RENT_PUBKEY:function(){return pn},SYSVAR_REWARDS_PUBKEY:function(){return mn},SYSVAR_SLOT_HASHES_PUBKEY:function(){return gn},SYSVAR_SLOT_HISTORY_PUBKEY:function(){return yn},SYSVAR_STAKE_HISTORY_PUBKEY:function(){return bn},Secp256k1Program:function(){return Di},SendTransactionError:function(){return Wn},SolanaJSONRPCError:function(){return Vn},SolanaJSONRPCErrorCode:function(){return Gn},StakeAuthorizationLayout:function(){return Vi}
1,StakeInstruction:function(){return Wi},StakeProgram:function(){return Ki},Struct:function(){return Le},SystemInstruction:function(){return Pn},SystemProgram:function(){return Mn},Transaction:function(){return un},TransactionExpiredBlockheightExceededError:function(){return Xe},TransactionExpiredTimeoutError:function(){return Je},TransactionInstruction:function(){return cn},TransactionStatus:function(){return sn},VALIDATOR_INFO_KEY:function(){return Xi},VOTE_PROGRAM_ID:function(){return to},ValidatorInfo:function(){return Qi},VoteAccount:function(){return no},VoteAuthorizationLayout:function(){return Zi},VoteInit:function(){return Hi},VoteInstruction:function(){return qi},VoteProgram:function(){return Yi},clusterApiUrl:function(){return ao},sendAndConfirmRawTransaction:function(){return co},sendAndConfirmTransaction:function(){return vn}});var r=n(50780),i=n.n(r),o=n(59012),s=n(13550),a=n.n(s),c=n(68274),u=n.n(c),l=n(25532),h=n(39386),d=n(40475),f=n(53471),p=n(83937),m=n(31198),g=n.n(m),y=n(17221),b=n.n(y),v=n(91094),w=n.n(v);const _=t=>o.Buffer.isBuffer(t)?t:t instanceof Uint8Array?o.Buffer.from(t.buffer,t.byteOffset,t.byteLength):o.Buffer.from(t);var k={},S={},x=I;function I(t,e){if(!t)throw new Error(e||"Assertion failed")}I.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)};var A={exports:{}};"function"===typeof Object.create?A.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:A.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}};var E=x,T=A.exports;function P(t,e){return 55296===(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320===(64512&t.charCodeAt(e+1)))}function C(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function M(t){return 1===t.length?"0"+t:t}function O(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}S.inherits=T,S.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"===typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(t="0"+t),i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16))}else for(var r=0,i=0;i<t.length;i++){var o=t.charCodeAt(i);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=63&o|128):P(t,i)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i<t.length;i++)n[i]=0|t[i];return n},S.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=M(t[n].toString(16));return e},S.htonl=C,S.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var i=t[r];
vendor: 5,130 bytes, line 1
1"little"===e&&(i=C(i)),n+=O(i.toString(16))}return n},S.zero2=M,S.zero8=O,S.join32=function(t,e,n,r){var i=n-e;E(i%4===0);for(var o=new Array(i/4),s=0,a=e;s<o.length;s++,a+=4){var c;c="big"===r?t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]:t[a+3]<<24|t[a+2]<<16|t[a+1]<<8|t[a],o[s]=c>>>0}return o},S.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r<t.length;r++,i+=4){var o=t[r];"big"===e?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},S.rotr32=function(t,e){return t>>>e|t<<32-e},S.rotl32=function(t,e){return t<<e|t>>>32-e},S.sum32=function(t,e){return t+e>>>0},S.sum32_3=function(t,e,n){return t+e+n>>>0},S.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},S.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},S.sum64=function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,s=(o<r?1:0)+n+i;t[e]=s>>>0,t[e+1]=o},S.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},S.sum64_lo=function(t,e,n,r){return e+r>>>0},S.sum64_4_hi=function(t,e,n,r,i,o,s,a){var c=0,u=e;return c+=(u=u+r>>>0)<e?1:0,c+=(u=u+o>>>0)<o?1:0,t+n+i+s+(c+=(u=u+a>>>0)<a?1:0)>>>0},S.sum64_4_lo=function(t,e,n,r,i,o,s,a){return e+r+o+a>>>0},S.sum64_5_hi=function(t,e,n,r,i,o,s,a,c,u){var l=0,h=e;return l+=(h=h+r>>>0)<e?1:0,l+=(h=h+o>>>0)<o?1:0,l+=(h=h+a>>>0)<a?1:0,t+n+i+s+c+(l+=(h=h+u>>>0)<u?1:0)>>>0},S.sum64_5_lo=function(t,e,n,r,i,o,s,a,c,u){return e+r+o+a+u>>>0},S.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},S.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},S.shr64_hi=function(t,e,n){return t>>>n},S.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0};var R={},B=S,j=x;function N(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}R.BlockHash=N,N.prototype.update=function(t,e){if(t=B.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=B.join32(t,0,t.length-n,this.endian);for(var r=0;r<t.length;r+=this._delta32)this._update(t,r,r+this._delta32)}return this},N.prototype.digest=function(t){return this.update(this._pad()),j(null===this.pending),this._digest(t)},N.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=t>>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r};var L={},D={},z=S.rotr32;function F(t,e,n){return t&e^~t&n}function U(t,e,n){return t&e^t&n^e&n}function W(t,e,n){return t^e^n}D.ft_1=function(t,e,n,r){return 0===t?F(e,n,r):1===t||3===t?W(e,n,r):2===t?U(e,n,r):void 0},D.ch32=F,D.maj32=U,D.p32=W,D.s0_256=function(t){return z(t,2)^z(t,13)^z(t,22)},D.s1_256=function(t){return z(t,6)^z(t,11)^z(t,25)},D.g0_256=function(t){return z(t,7)^z(t,18)^t>>>3},D.g1_256=function(t){return z(t,17)^z(t,19)^t>>>10};var G=S,V=R,K=D,H=G.rotl32,q=G.sum32,$=G.sum32_5,Z=K.ft_1,Y=V.BlockHash,X=[1518500249,1859775393,2400959708,3395469782];function J(){if(!(this instanceof J))return new J;Y.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}G.inherits(J,Y);var Q=J;J.blockSize=512,J.outSize=160,J.hmacStrength=80,J.padLength=64,J.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=H(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],s=this.h[2],a=this.h[3],c=this.h[4];for(r=0;r<n.length;r++){var u=~~(r/20),l=$(H(i,5),Z(u,o,s,a),c,n[r],X[u]);c=a,a=s,s=H(o,30),o=i,i=l}this.h[0]=q(this.h[0],i),this.h[1]=q(this.h[1],o),this.h[2]=q(this.h[2],s),this.h[3]=q(this.h[3],a),this.h[4]=q(this.h[4],c)},J.prototype._digest=function(t){return"hex"===t?G.toHex32(this.h,"big"):G.split32(this.h,"big")};var tt=S,et=R,nt=D,rt=x,it=tt.sum32,ot=tt.sum32_4,st=tt.sum32_5,at=nt.ch32,ct=nt.maj32,ut=nt.s0_256,lt=nt.s1_256,ht=nt.g0_256,dt=nt.g1_256,ft=et.BlockHash,pt=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
vendor: 14,325 bytes, line 1
1734187,3204031479,3329325298];function mt(){if(!(this instanceof mt))return new mt;ft.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=pt,this.W=new Array(64)}tt.inherits(mt,ft);var gt=mt;mt.blockSize=512,mt.outSize=256,mt.hmacStrength=192,mt.padLength=64,mt.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=ot(dt(n[r-2]),n[r-7],ht(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],s=this.h[2],a=this.h[3],c=this.h[4],u=this.h[5],l=this.h[6],h=this.h[7];for(rt(this.k.length===n.length),r=0;r<n.length;r++){var d=st(h,lt(c),at(c,u,l),this.k[r],n[r]),f=it(ut(i),ct(i,o,s));h=l,l=u,u=c,c=it(a,d),a=s,s=o,o=i,i=it(d,f)}this.h[0]=it(this.h[0],i),this.h[1]=it(this.h[1],o),this.h[2]=it(this.h[2],s),this.h[3]=it(this.h[3],a),this.h[4]=it(this.h[4],c),this.h[5]=it(this.h[5],u),this.h[6]=it(this.h[6],l),this.h[7]=it(this.h[7],h)},mt.prototype._digest=function(t){return"hex"===t?tt.toHex32(this.h,"big"):tt.split32(this.h,"big")};var yt=S,bt=gt;function vt(){if(!(this instanceof vt))return new vt;bt.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}yt.inherits(vt,bt);var wt=vt;vt.blockSize=512,vt.outSize=224,vt.hmacStrength=192,vt.padLength=64,vt.prototype._digest=function(t){return"hex"===t?yt.toHex32(this.h.slice(0,7),"big"):yt.split32(this.h.slice(0,7),"big")};var _t=S,kt=R,St=x,xt=_t.rotr64_hi,It=_t.rotr64_lo,At=_t.shr64_hi,Et=_t.shr64_lo,Tt=_t.sum64,Pt=_t.sum64_hi,Ct=_t.sum64_lo,Mt=_t.sum64_4_hi,Ot=_t.sum64_4_lo,Rt=_t.sum64_5_hi,Bt=_t.sum64_5_lo,jt=kt.BlockHash,Nt=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Lt(){if(!(this instanceof Lt))return new Lt;jt.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Nt,this.W=new Array(160)}_t.inherits(Lt,jt);var Dt=Lt;function zt(t,e,n,r,i){var o=t&n^~t&i;return o<0&&(o+=4294967296),o}function Ft(t,e,n,r,i,o){var s=e&r^~e&o;return s<0&&(s+=4294967296),s}function Ut(t,e,n,r,i){var o=t&n^t&i^n&i;return o<0&&(o+=4294967296),o}function Wt(t,e,n,r,i,o){var s=e&r^e&o^r&o;return s<0&&(s+=4294967296),s}function Gt(t,e){var n=xt(t,e,28)^xt(e,t,2)^xt(e,t,7);return n<0&&(n+=4294967296),n}function Vt(t,e){var n=It(t,e,28)^It(e,t,2)^It(e,t,7);return n<0&&(n+=4294967296),n}function Kt(t,e){var n=xt(t,e,14)^xt(t,e,18)^xt(e,t,9);return n<0&&(n+=4294967296),n}function Ht(t,e){var n=It(t,e,14)^It(t,e,18)^It(e,t,9);return n<0&&(n+=4294967296),n}function qt(t,e){var n=xt(t,e,1)^xt(t,e,8)^At(t,e,7);return n<0&&(n+=4294967296),n}function $t(t,e){var n=It(t,e,1)^It(t,e,8)^Et(t,e,7);return n<0&&(n+=4294967296),n}function Zt(t,e){var n=xt(t,e,19)^xt(e,t,29)^At(t,e,6);return n<0&&(n+=4294967296),n}function Yt(t,e){var n=It(t,e,19)^It(e,t,29)^Et(t,e,6);return n<0&&(n+=4294967296),n}Lt.blockSize=1024,Lt.outSize=512,Lt.hmacStrength=192,Lt.padLength=128,Lt.prototype._prepareBlock=function(t,e){for(var n=this.W,r=0;r<32;r++)n[r]=t[e+r];for(;r<n.length;r+=2){var i=Zt(n[r-4],n[r-3]),o=Yt(n[r-4],n[r-3]),s=n[r-14],a=n[r-13],c=qt(n[r-30],n[r-29]),u=$t(n[r-30],n[r-29]),l=n[r-32],h=n[r-31];n[r]=Mt(i,o,s,a,c,u,l,h),n[r+1]=Ot(i,o,s,a,c,u,l,h)}},Lt.prototype._update=function(t,e){this._prepareBlock(t,e);var n=this.W,r=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],a=this.h[4],c=this.h[5],u=this.h[6],l=this.h[7],h=this.h[8],d=this.h[9],f=this.h[10],p=this.h[11],m=this.h[12],g=this.h[13],y=this.h[14],b=this.h[15];St(this.k.length===n.length);for(var v=0;v<n.length;v+=2){var w=y,_=b,k=Kt(h,d),S=Ht(h,d),x=zt(h,d,f,p,m),I=Ft(h,d,f,p,m,g),A=this.k[v],E=this.k[v+1],T=n[v],P=n[v+1],C=Rt(w,_,k,S,x,I,A,E,T,P),M=Bt(w,_,k,S,x,I,A,E,T,P);w=Gt(r,i),_=Vt(r,i),k=Ut(r,i,o,s,a),S=Wt(r,i,o,s,a,c);var O=Pt(w,_,k,S),R=Ct(w,_,k,S);y=m,b=g,m=f,g=p,f=h,p=d,h=Pt(u,l,C,M),d=Ct(l,l,C,M),u=a,l=c,a=o,c=s,o=r,s=i,r=Pt(C,M,O,R),i=Ct(C,M,O,R)}Tt(this.h,0,r,i),Tt(this.h,2,o,s),Tt(this.h,4,a,c),Tt(this.h,6,u,l),Tt(this.h,8,h,d),Tt(this.h,10,f,p),Tt(this.h,12,m,g),Tt(this.h,14,y,b)},Lt.prototype._digest=function(t){return"hex"===t?_t.toHex32(this.h,"big"):_t.split32(this.h,"big")};var Xt=S,Jt=Dt;function Qt(){if(!(this instanceof Qt))return new Qt;Jt.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Xt.inherits(Qt,Jt);var te=Qt;Qt.blockSize=1024,Qt.outSize=384,Qt.hmacStrength=192,Qt.padLength=128,Qt.prototype._digest=function(t){return"hex"===t?Xt.toHex32(this.h.slice(0,12),"big"):Xt.split32(this.h.slice(0,12),"big")},L.sha1=Q,L.sha224=wt,L.sha256=gt,L.sha384=te,L.sha512=Dt;var ee={},ne=S,re=R,ie=ne.rotl32,oe=ne.sum32,se=ne.sum32_3,ae=ne.sum32_4,ce=re.BlockHash;function ue(){if(!(this instanceof ue))return new ue;ce.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function le(t,e,n,r){return t<=15?e^n^r:t<=31?e&n|~e&r:t<=47?(e|~n)^r:t<=63?e&r|n&~r:e^(n|~r)}function he(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function de(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}ne.inherits(ue,ce),ee.ripemd160=ue,ue.blockSize=512,ue.outSize=160,ue.hmacStrength=192,ue.padLength=64,ue.prototype._update=function(t,e){for(var n=this.h[0],r=this.h[1],i=this.h[2],o=this.h[3],s=this.h[4],a=n,c=r,u=i,l=o,h=s,d=0;d<80;d++){var f=oe(ie(ae(n,le(d,r,i,o),t[fe[d]+e],he(d)),me[d]),s);n=s,s=o,o=ie(i,10),i=r,r=f,f=oe(ie(ae(a,le(79-d,c,u,l),t[pe[d]+e],de(d)),ge[d]),h),a=h,h=l,l=ie(u,10),u=c,c=f}f=se(this.h[1],i,l),this.h[1]=se(this.h[2],o,h),this.h[2]=se(this.h[3],s,a),this.h[3]=se(this.h[4],n,c),this.h[4]=se(this.h[0],r,u),this.h[0]=f},ue.prototype._digest=function(t){return"hex"===t?ne.toHex32(this.h,"little"):ne.split32(this.h,"little")};var fe=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],pe=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],me=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],ge=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],ye=S,be=x;function ve(t,e,n){if(!(this instanceof ve))return new ve(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(ye.toArray(e,n))}var we=ve;ve.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),be(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},ve.prototype.update=function(t,e){return this.inner.update(t,e),this},ve.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)},function(t){var e=t;e.utils=S,e.common=R,e.sha=L,e.ripemd=ee,e.hmac=we,e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160}(k);var _e=k;let ke=!1,Se=!1;const xe={debug:1,default:2,info:2,warning:3,error:4,off:5};let Ie=xe.default,Ae=null;const Ee=function(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(n){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var Te,Pe;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(Te||(Te={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED"}(Pe||(Pe={}));const Ce="0123456789abcdef";class Me{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const n=t.toLowerCase();null==xe[n]&&this.throwArgumentError("invalid log level name","logLevel",t),Ie>xe[n]||console.log.apply(console,e)}debug(...t){this._log(Me.levels.DEBUG,t)}info(...t){this._log(Me.levels.INFO,t)}warn(...t){this._log(Me.levels.WARNING,t)}makeError(t,e,n){if(Se)return this.makeError("censored error",e,{});e||(e=Me.errors.UNKNOWN_ERROR),n||(n={});const r=[];Object.keys(n).forEach((t=>{const e=n[t];try{if(e instanceof Uint8Array){let n="";for(let t=0;t<e.length;t++)n+=Ce[e[t]>>4],n+=Ce[15&e[t]];r.push(t+"=Uint8Array(0x"+n+")")}else r.push(t+"="+JSON.stringify(e))}catch(s){r.push(t+"="+JSON.stringify(n[t].toString()))}})),r.push(`code=${e}`),r.push(`version=${this.version}`);const i=t;let o="";switch(e){case Pe.NUMERIC_FAULT:{o="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case Pe.CALL_EXCEPTION:case Pe.INSUFFICIENT_FUNDS:case Pe.MISSING_NEW:case Pe.NONCE_EXPIRED:case Pe.REPLACEMENT_UNDERPRICED:case Pe.TRANSACTION_REPLACED:case Pe.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),r.length&&(t+=" ("+r.join(", ")+")");const s=new Error(t);return s.reason=i,s.code=e,Object.keys(n).forEach((function(t){s[t]=n[t]})),s}throwError(t,e,n){throw this.makeError(t,e,n)}throwArgumentError(t,e,n){return this.throwError(t,Me.errors.INVALID_ARGUMENT,{argument:e,value:n})}assert(t,e,n,r){t||this.throwError(e,n,r)}assertArgument(t,e,n,r){t||this.throwArgumentError(e,n,r)}checkNormalize(t){Ee&&this.throwError("platform missing String.prototype.normalize",Me.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Ee})}checkSafeUint53(t,e){"number"===typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,Me.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,Me.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,n){n=n?": "+n:"",t<e&&this.throwError("missing argument"+n,Me.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+n,Me.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",Me.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",Me.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",Me.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return Ae||(Ae=new Me("logger/5.6.0")),Ae}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",Me.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),ke){if(!t)return;this.globalLogger().throwError("error censorship permanent",Me.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Se=!!t,ke=!!e}static setLogLevel(t){const e=xe[t.toLowerCase()];null!=e?Ie=e:Me.globalLogger().warn("invalid log level - "+t)}static from(t){return new Me(t)}}Me.errors=Pe,Me.levels=Te;const Oe=new Me("bytes/5.6.0");function Re(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return Re(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function Be(t){return"number"===typeof t&&t==t&&t%1===0}function je(t,e){if(e||(e={}
1),"number"===typeof t){Oe.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),Re(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"===typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),function(t){return!!t.toHexString}(t)&&(t=t.toHexString()),function(t,e){if("string"!==typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))return!1;if(e&&t.length!==2+2*e)return!1;return!0}(t)){let n=t.substring(2);n.length%2&&("left"===e.hexPad?n="0x0"+n.substring(2):"right"===e.hexPad?n+="0":Oe.throwArgumentError("hex data is odd-length","value",t));const r=[];for(let t=0;t<n.length;t+=2)r.push(parseInt(n.substring(t,t+2),16));return Re(new Uint8Array(r))}return function(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"===typeof t)return!1;if(!Be(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){const n=t[e];if(!Be(n)||n<0||n>=256)return!1}return!0}(t)?Re(new Uint8Array(t)):Oe.throwArgumentError("invalid arrayify value","value",t)}function Ne(t){return"0x"+_e.sha256().update(je(t)).digest("hex")}new Me("sha2/5.6.0");class Le{constructor(t){Object.assign(this,t)}encode(){return o.Buffer.from((0,l.serialize)(ze,this))}static decode(t){return(0,l.deserialize)(ze,this,t)}static decodeUnchecked(t){return(0,l.deserializeUnchecked)(ze,this,t)}}class De extends Le{constructor(t){if(super(t),this.enum="",1!==Object.keys(t).length)throw new Error("Enum can only take single value");Object.keys(t).map((t=>{this.enum=t}))}}const ze=new Map,Fe=32;class Ue extends Le{constructor(t){if(super({}),this._bn=void 0,function(t){return void 0!==t._bn}(t))this._bn=t._bn;else{if("string"===typeof t){const e=u().decode(t);if(32!=e.length)throw new Error("Invalid public key input");this._bn=new(a())(e)}else this._bn=new(a())(t);if(this._bn.byteLength()>32)throw new Error("Invalid public key input")}}equals(t){return this._bn.eq(t._bn)}toBase58(){return u().encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){return this.toBuffer()}toBuffer(){const t=this._bn.toArrayLike(o.Buffer);if(32===t.length)return t;const e=o.Buffer.alloc(32);return t.copy(e,32-t.length),e}toString(){return this.toBase58()}static async createWithSeed(t,e,n){const r=o.Buffer.concat([t.toBuffer(),o.Buffer.from(e),n.toBuffer()]),i=Ne(new Uint8Array(r)).slice(2);return new Ue(o.Buffer.from(i,"hex"))}static createProgramAddressSync(t,e){let n=o.Buffer.alloc(0);t.forEach((function(t){if(t.length>Fe)throw new TypeError("Max seed length exceeded");n=o.Buffer.concat([n,_(t)])})),n=o.Buffer.concat([n,e.toBuffer(),o.Buffer.from("ProgramDerivedAddress")]);let r=Ne(new Uint8Array(n)).slice(2),i=new(a())(r,16).toArray(void 0,32);if(Ge(i))throw new Error("Invalid seeds, address must fall off the curve");return new Ue(i)}static async createProgramAddress(t,e){return this.createProgramAddressSync(t,e)}static findProgramAddressSync(t,e){let n,r=255;for(;0!=r;){try{const i=t.concat(o.Buffer.from([r]));n=this.createProgramAddressSync(i,e)}catch(i){if(i instanceof TypeError)throw i;r--;continue}return[n,r]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(t,e){return this.findProgramAddressSync(t,e)}static isOnCurve(t){return 1==Ge(new Ue(t).toBytes())}}Ue.default=new Ue("11111111111111111111111111111111"),ze.set(Ue,{kind:"struct",fields:[["_bn","u256"]]});let We=i().lowlevel;function Ge(t){var e=[We.gf(),We.gf(),We.gf(),We.gf()],n=We.gf(),r=We.gf(),i=We.gf(),o=We.gf(),s=We.gf(),a=We.gf(),c=We.gf();return We.set25519(e[2],Ve),We.unpack25519(e[1],t),We.S(i,e[1]),We.M(o,i,We.D),We.Z(i,i,e[2]),We.A(o,e[2],o),We.S(s,o),We.S(a,s),We.M(c,a,s),We.M(n,c,i),We.M(n,n,o),We.pow2523(n,n),We.M(n,n,i),We.M(n,n,o),We.M(n,n,o),We.M(e[0],n,o),We.S(r,e[0]),We.M(r,r,o),He(r,i)&&We.M(e[0],e[0],Ke),We.S(r,e[0]),We.M(r,r,o),He(r,i)?0:1}let Ve=We.gf([1]),Ke=We.gf([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function He(t,e){var n=new Uint8Array(32),r=new Uint8Array(32);return We.pack25519(n,t),We.pack25519(r,e),We.crypto_verify_32(n,0,r,0)}class qe{constructor(t){this._keypair=void 0,this._keypair=t?i().sign.keyPair.fromSecretKey(_(t)):i().sign.keyPair()}get publicKey(){return new Ue(this._keypair.publicKey)}get secretKey(){return _(this._keypair.secretKey)}}const $e=new Ue("BPFLoader1111111111111111111111111111111111"),Ze=1232,Ye=64;
1class Xe extends Error{constructor(t){super(`Signature ${t} has expired: block height exceeded.`),this.signature=void 0,this.signature=t}}Object.defineProperty(Xe.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});class Je extends Error{constructor(t,e){super(`Transaction was not confirmed in ${e.toFixed(2)} seconds. It is unknown if it succeeded or failed. Check signature ${t} using the Solana Explorer or CLI tools.`),this.signature=void 0,this.signature=t}}Object.defineProperty(Je.prototype,"name",{value:"TransactionExpiredTimeoutError"});const Qe=(t="publicKey")=>h.blob(32,t),tn=(t="string")=>{const e=h.struct([h.u32("length"),h.u32("lengthPadding"),h.blob(h.offset(h.u32(),-8),"chars")],t),n=e.decode.bind(e),r=e.encode.bind(e),i=e;return i.decode=(t,e)=>n(t,e).chars.toString(),i.encode=(t,e,n)=>{const i={chars:o.Buffer.from(t,"utf8")};return r(i,e,n)},i.alloc=t=>h.u32().span+h.u32().span+o.Buffer.from(t,"utf8").length,i};function en(t){let e=0,n=0;for(;;){let r=t.shift();if(e|=(127&r)<<7*n,n+=1,0===(128&r))break}return e}function nn(t,e){let n=e;for(;;){let e=127&n;if(n>>=7,0==n){t.push(e);break}e|=128,t.push(e)}}class rn{constructor(t){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map((t=>new Ue(t))),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach((t=>this.indexToProgramIds.set(t.programIdIndex,this.accountKeys[t.programIdIndex])))}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){return t<this.header.numRequiredSignatures-this.header.numReadonlySignedAccounts||t>=this.header.numRequiredSignatures&&t<this.accountKeys.length-this.header.numReadonlyUnsignedAccounts}isProgramId(t){return this.indexToProgramIds.has(t)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter(((t,e)=>!this.isProgramId(e)))}serialize(){const t=this.accountKeys.length;let e=[];nn(e,t);const n=this.instructions.map((t=>{const{accounts:e,programIdIndex:n}=t,r=Array.from(u().decode(t.data));let i=[];nn(i,e.length);let s=[];return nn(s,r.length),{programIdIndex:n,keyIndicesCount:o.Buffer.from(i),keyIndices:e,dataLength:o.Buffer.from(s),data:r}}));let r=[];nn(r,n.length);let i=o.Buffer.alloc(Ze);o.Buffer.from(r).copy(i);let s=r.length;n.forEach((t=>{const e=h.struct([h.u8("programIdIndex"),h.blob(t.keyIndicesCount.length,"keyIndicesCount"),h.seq(h.u8("keyIndex"),t.keyIndices.length,"keyIndices"),h.blob(t.dataLength.length,"dataLength"),h.seq(h.u8("userdatum"),t.data.length,"data")]).encode(t,i,s);s+=e})),i=i.slice(0,s);const a=h.struct([h.blob(1,"numRequiredSignatures"),h.blob(1,"numReadonlySignedAccounts"),h.blob(1,"numReadonlyUnsignedAccounts"),h.blob(e.length,"keyCount"),h.seq(Qe("key"),t,"keys"),Qe("recentBlockhash")]),c={numRequiredSignatures:o.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:o.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:o.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:o.Buffer.from(e),keys:this.accountKeys.map((t=>_(t.toBytes()))),recentBlockhash:u().decode(this.recentBlockhash)};let l=o.Buffer.alloc(2048);const d=a.encode(c,l);return i.copy(l,d),l.slice(0,d+i.length)}static from(t){let e=[...t];const n=e.shift(),r=e.shift(),i=e.shift(),s=en(e);let a=[];for(let f=0;f<s;f++){const t=e.slice(0,32);e=e.slice(32),a.push(u().encode(o.Buffer.from(t)))}const c=e.slice(0,32);e=e.slice(32);const l=en(e);let h=[];for(let f=0;f<l;f++){const t=e.shift(),n=en(e),r=e.slice(0,n);e=e.slice(n);const i=en(e),s=e.slice(0,i),a=u().encode(o.Buffer.from(s));e=e.slice(i),h.push({programIdIndex:t,accounts:r,data:a})}const d={header:{numRequiredSignatures:n,numReadonlySignedAccounts:r,numReadonlyUnsignedAccounts:i},recentBlockhash:u().encode(o.Buffer.from(c)),accountKeys:a,instructions:h};return new rn(d)}}function on(t,e){if(!t)throw new Error(e||"Assertion failed")}let sn;!function(t){t[t.BLOCKHEIGHT_EXCEEDED=0]="BLOCKHEIGHT_EXCEEDED",t[t.PROCESSED=1]="PROCESSED",t[t.TIMED_OUT=2]="TIMED_OUT"}(sn||(sn={}));const an=o.Buffer.alloc(Ye).fill(0);class cn{constructor(t){this.keys=void 0,this.programId=void 0,this.data=o.Buffer.alloc(0),this.programId=t.programId,this.keys=t.keys,t.data&&(this.data=t.data)}toJSON(){return{keys:this.keys.map((({pubkey:t,isSigner:e,isWritable:n})=>({pubkey:t.toJSON(),isSigner:e,isWritable:n}))),programId:this.programId.toJSON(),data:[...this.data]}}}class un{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(t){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this._message=void 0,this._json=void 0,t)if(t.feePayer&&(this.feePayer=t.feePayer),t.signatures&&(this.signatures=t.signatures),Object.prototype.hasOwnProperty.call(t,"lastValidBlockHeight")){const{blockhash:e,lastValidBlockHeight:n}=t;this.recentBlockhash=e,this.lastValidBlockHeight=n}else{const{recentBlockhash:e,nonceInfo:n}=t;n&&(this.nonceInfo=n),this.recentBlockhash=e}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstru
1ction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map((t=>t.toJSON())),signers:this.signatures.map((({publicKey:t})=>t.toJSON()))}}add(...t){if(0===t.length)throw new Error("No instructions");return t.forEach((t=>{"instructions"in t?this.instructions=this.instructions.concat(t.instructions):"data"in t&&"programId"in t&&"keys"in t?this.instructions.push(t):this.instructions.push(new cn(t))})),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let t,e,n;if(this.nonceInfo?(t=this.nonceInfo.nonce,e=this.instructions[0]!=this.nonceInfo.nonceInstruction?[this.nonceInfo.nonceInstruction,...this.instructions]:this.instructions):(t=this.recentBlockhash,e=this.instructions),!t)throw new Error("Transaction recentBlockhash required");if(e.length<1&&console.warn("No instructions provided"),this.feePayer)n=this.feePayer;else{if(!(this.signatures.length>0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");n=this.signatures[0].publicKey}for(let u=0;u<e.length;u++)if(void 0===e[u].programId)throw new Error(`Transaction instruction index ${u} has undefined program id`);const r=[],i=[];e.forEach((t=>{t.keys.forEach((t=>{i.push({...t})}));const e=t.programId.toString();r.includes(e)||r.push(e)})),r.forEach((t=>{i.push({pubkey:new Ue(t),isSigner:!1,isWritable:!1})}
1));const o=[];i.forEach((t=>{const e=t.pubkey.toString(),n=o.findIndex((t=>t.pubkey.toString()===e));n>-1?(o[n].isWritable=o[n].isWritable||t.isWritable,o[n].isSigner=o[n].isSigner||t.isSigner):o.push(t)})),o.sort((function(t,e){return t.isSigner!==e.isSigner?t.isSigner?-1:1:t.isWritable!==e.isWritable?t.isWritable?-1:1:t.pubkey.toBase58().localeCompare(e.pubkey.toBase58())}));const s=o.findIndex((t=>t.pubkey.equals(n)));if(s>-1){const[t]=o.splice(s,1);t.isSigner=!0,t.isWritable=!0,o.unshift(t)}else o.unshift({pubkey:n,isSigner:!0,isWritable:!0});for(const u of this.signatures){const t=o.findIndex((t=>t.pubkey.equals(u.publicKey)));if(!(t>-1))throw new Error(`unknown signer: ${u.publicKey.toString()}`);o[t].isSigner||(o[t].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))}let a=0,c=0,l=0;const h=[],d=[];o.forEach((({pubkey:t,isSigner:e,isWritable:n})=>{e?(h.push(t.toString()),a+=1,n||(c+=1)):(d.push(t.toString()),n||(l+=1))}));const f=h.concat(d),p=e.map((t=>{const{data:e,programId:n}=t;return{programIdIndex:f.indexOf(n.toString()),accounts:t.keys.map((t=>f.indexOf(t.pubkey.toString()))),data:u().encode(e)}}));return p.forEach((t=>{on(t.programIdIndex>=0),t.accounts.forEach((t=>on(t>=0)))})),new rn({header:{numRequiredSignatures:a,numReadonlySignedAccounts:c,numReadonlyUnsignedAccounts:l},accountKeys:f,recentBlockhash:t,instructions:p})}_compile(){const t=this.compileMessage(),e=t.accountKeys.slice(0,t.header.numRequiredSignatures);if(this.signatures.length===e.length){if(this.signatures.every(((t,n)=>e[n].equals(t.publicKey))))return t}return this.signatures=e.map((t=>({signature:null,publicKey:t}))),t}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(t){return(await t.getFeeForMessage(this.compileMessage())).value}setSigners(...t){if(0===t.length)throw new Error("No signers");const e=new Set;this.signatures=t.filter((t=>{const n=t.toString();return!e.has(n)&&(e.add(n),!0)})).map((t=>({signature:null,publicKey:t})))}sign(...t){if(0===t.length)throw new Error("No signers");const e=new Set,n=[];for(const i of t){const t=i.publicKey.toString();e.has(t)||(e.add(t),n.push(i))}this.signatures=n.map((t=>({signature:null,publicKey:t.publicKey})));const r=this._compile();this._partialSign(r,...n)}partialSign(...t){if(0===t.length)throw new Error("No signers");const e=new Set,n=[];for(const i of t){const t=i.publicKey.toString();e.has(t)||(e.add(t),n.push(i))}const r=this._compile();this._partialSign(r,...n)}_partialSign(t,...e){const n=t.serialize();e.forEach((t=>{const e=i().sign.detached(n,t.secretKey);this._addSignature(t.publicKey,_(e))}))}addSignature(t,e){this._compile(),this._addSignature(t,e)}_addSignature(t,e){on(64===e.length);const n=this.signatures.findIndex((e=>t.equals(e.publicKey)));if(n<0)throw new Error(`unknown signer: ${t.toString()}`);this.signatures[n].signature=o.Buffer.from(e)}verifySignatures(){return this._verifySignatures(this.serializeMessage(),!0)}_verifySignatures(t,e){for(const{signature:n,publicKey:r}of this.signatures)if(null===n){if(e)return!1}else if(!i().sign.detached.verify(t,n,r.toBuffer()))return!1;return!0}serialize(t){const{requireAllSignatures:e,verifySignatures:n}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),r=this.serializeMessage();if(n&&!this._verifySignatures(r,e))throw new Error("Signature verification failed");return this._serialize(r)}_serialize(t){const{signatures:e}=this,n=[];nn(n,e.length);const r=n.length+64*e.length+t.length,i=o.Buffer.alloc(r);return on(e.length<256),o.Buffer.from(n).copy(i,0),e.forEach((({signature:t},e)=>{null!==t&&(on(64===t.length,"signature has invalid length"),o.Buffer.from(t).copy(i,n.length+64*e))})),t.copy(i,n.length+64*e.length),on(i.length<=Ze,`Transaction too large: ${i.length} > ${Ze}`),i}get keys(){return on(1===this.instructions.length),this.instructions[0].keys.map((t=>t.pubkey))}get programId(){return on(1===this.instructions.length),this.instructions[0].programId}get data(){return on(1===this.instructions.length),this.instructions[0].data}static from(t){let e=[...t];const n=en(e);let r=[];for(let i=0;i<n;i++){const t=e.slice(0,Ye);e=e.slice(Ye),r.push(u().encode(o.Buffer.from(t)))}return un.populate(rn.from(e),r)}static populate(t,e=[]){const n=new un;return n.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(n.feePayer=t.accountKeys[0]),e.forEach(((e,r)=>{const i={signature:e==u().encode(an)?null:u().decode(e),publicKey:t.accountKeys[r]};n.signatures.push(i)})),t.instructions.forEach((e=>{const r=e.accounts.map((e=>{const r=t.accountKeys[e];return{pubkey:r,isSigner:n.signatures.some((t=>t.publicKey.toString()===r.toString()))||t.isAccountSigner(e),isWritable:t.isAccountWritable(e)}}));n.instructions.push(new cn({keys:r,programId:t.accountKeys[e.programIdIndex],data:u().decode(e.data)}))})),n._message=t,n._json=n.toJSON(),n}}const ln=new Ue("SysvarC1ock11111111111111111111111111111111"),hn=new Ue("SysvarEpochSchedu1e111111111111111111111111"),dn=new Ue("Sysvar1nstructions1111111111111111111111111"),fn=new Ue("SysvarRecentB1ockHashes11111111111111111111"),pn=new Ue("SysvarRent111111111111111111111111111111111"),mn=new Ue("SysvarRewards111111111111111111111111111111"),gn=new Ue("SysvarS1otHashes111111111111111111111111111"),yn=new Ue("SysvarS1otHistory11111111111111111111111111"),bn=new Ue("SysvarStakeHistory1111111111111111111111111");async function vn(t,e,n,r){const i=r&&{skipPreflight:r.skipPreflight,preflightCommitment:r.preflightCommitment||r.commitment,maxRetries:r.maxRetries,minContextSlot:r.minContextSlot},o=await t.sendTransaction(e,n,i),s=null!=e.recentBlockhash&&null!=e.lastValidBlockHeight?(await t.confirmTransaction({signature:o,blockhash:e.recentBlockhash,lastValidBlockHeight:e.lastValidBlockHeight},r&&r.commitment)).value:(await t.confirmTransaction(o,r&&r.commitment)).value;if(s.err)throw new Error(`Transaction ${o} failed (${JSON.stringify(s)})`);return o}function wn(t){return new Promise((e=>setTimeout(e,t)))}function _n(t,e){const n=t.layout.span>=0?t.layout.span:function(t,e){const n=t=>{if(t.span>=0)return t.span;if("function"===typeof t.alloc)return t.alloc(e[t.property]);if("count"in t&&"elementLayout"in t){const r=e[t.property];if(Array.isArray(r))return r.length*n(t.elementLayout)}return 0};let r=0;return t.layout.fields.forEach((t=>{r+=n(t)})),r}(t,e),r=o.Buffer.alloc(n),i=Object.assign({instruction:t.index},e);return t.layout.encode(i,r),r}function kn(t,e){let n;try{n=t.layout.decode(e)}catch(r){throw new Error("invalid instruction; "+r)}if(n.instruction!==t.index)throw new Error(`invalid instruction; instruction index mismatch ${n.instruction} != ${t.index}`);return n}const Sn=h.nu64("lamportsPerSignature"),xn=h.struct([h.u32("version"),h.u32("state"),Qe("authorizedPubkey"),Qe("nonce"),h.struct([Sn],"feeCalculator")]),In=xn.span;class An{constructor(t){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=t.authorizedPubkey,this.nonce=t.nonce,this.feeCalculator=t.feeCalculator}static fromAccountData(t){const e=xn.decode(_(t),0);return new An({authorizedPubkey:new Ue(e.authorizedPubkey),nonce:new Ue(e.nonce).toString(),feeCalculator:e.feeCalculator})}}const En=(Tn=8,t=>{const e=(0,h.blob)(Tn,t),{encode:n,decode:r}=(t=>({decode:t.decode.bind(t),encode:t.encode.bind(t)}))(e),i=e;return i.decode=(t,e)=>{const n=r(t,e);return(0,d.toBigIntLE)(o.Buffer.from(n))},i.encode=(t,e,r)=>{const i=(0,d.toBufferLE)(t,Tn);return n(i,e,r)},i});var Tn;class Pn{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=h.u32("instruction").decode(t.data);let n;for(const[r,i]of Object.entries(Cn))if(i.index==e){n=r;break}if(!n)throw new Error("Instruction type incorrect; not a SystemInstruction");return n}static decodeCreateAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:e,space:n,programId:r}=kn(Cn.Create,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,lamports:e,space:n,programId:new Ue(r)}}static decodeTransfer(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:e}=kn(Cn.Transfer,t.data);return{fromPubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,lamports:e}}static decodeTransferWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e,seed:n,programId:r}=kn(Cn.TransferWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,basePubkey:t.keys[1].pubkey,toPubkey:t.keys[2].pubkey,lamports:e,seed:n,programId:new Ue(r)}}static decodeAllocate(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{space:e}=kn(Cn.Allocate,t.data);return{accountPubkey:t.keys[0].pubkey,space:e}}static decodeAllocateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:e,seed:n,space:r,programId:i}=kn(Cn.AllocateWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new Ue(e),seed:n,space:r,programId:new Ue(i)}}static decodeAssign(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{programId:e}=kn(Cn.Assign,t.data);return{accountPubkey:t.keys[0].pubkey,programId:new Ue(e)}}static decodeAssignWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:e,seed:n,programId:r}=kn(Cn.AssignWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new Ue(e),seed:n,programId:new Ue(r)}}static decodeCreateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{base:e,seed:n,lamports:r,space:i,programId:o}=kn(Cn.CreateWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,basePubkey:new Ue(e),seed:n,lamports:r,space:i,programId:new Ue(o)}}static decodeNonceInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{authorized:e}=kn(Cn.InitializeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:new Ue(e)}}static decodeNonceAdvance(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),kn(Cn.AdvanceNonceAccount,t.data),{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static decodeNonceWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:e}=kn(Cn.WithdrawNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:e}}static decodeNonceAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:e}=kn(Cn.AuthorizeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[1].pubkey,newAuthorizedPubkey:new Ue(e)}}static checkProgramId(t){if(!t.equals(Mn.programId))throw new Error("invalid instruction; programId is not SystemProgram")}static checkKeyLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}const Cn=Object.freeze({Create:{index:0,layout:h.struct([h.u32("instruction"),h.ns64("lamports"),h.ns64("space"),Qe("programId")])},Assign:{index:1,layout:h.struct([h.u32("instruction"),Qe("programId")])},Transfer:{index:2,layout:h.struct([h.u32("instruction"),En("lamports")])},CreateWithSeed:{index:3,layout:h.struct([h.u32("instruction"),Qe("base"),tn("seed"),h.ns64("lamports"),h.ns64("space"),Qe("programId")])},AdvanceNonceAccount:{index:4,layout:h.struct([h.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:h.struct([h.u32("instruction"),h.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:h.struct([h.u32("instruction"),Qe("authorized")])},AuthorizeNonceAccount:{index:7,layout:h.struct([h.u32("instruction"),Qe("authorized")])},Allocate:{index:8,layout:h.struct([h.u32("instruction"),h.ns64("space")])},AllocateWithSeed:{index:9,layout:h.struct([h.u32("instruction"),Qe("base"),tn("seed"),h.ns64("space"),Qe("programId")])},AssignWithSeed:{index:10,layout:h.struct([h.u32("instruction"),Qe("base"),tn("seed"),Qe("programId")])},TransferWithSeed:{index:11,layout:h.struct([h.u32("instruction"),En("lamports"),tn("seed"),Qe("programId")])},UpgradeNonceAccount:{index:12,layout:h.struct([h.u32("instruction")])}});class Mn{constructor(){}static createAccount(t){const e=_n(Cn.Create,{lamports:t.lamports,space:t.space,programId:_(t.programId.toBuffer())});return new cn({keys:[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:e})}static transfer(t){let e,n;if("basePubkey"in t){e=_n(Cn.TransferWithSeed,{lamports:BigInt(t.lamports),seed:t.seed,programId:_(t.programId.toBuffer())}),n=[{pubkey:t.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}else{e=_n(Cn.Transfer,{lamports:BigInt(t.lamports)}),n=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}return new cn({keys:n,programId:this.programId,data:e})}static assign(t){let e,n;if("basePubkey"in t){e=_n(Cn.AssignWithSeed,{base:_(t.basePubkey.toBuffer()),seed:t.seed,programId:_(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{e=_n(Cn.Assign,{programId:_(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new cn({keys:n,programId:this.programId,data:e})}static createAccountWithSeed(t){const e=_n(Cn.CreateWithSeed,{base:_(t.basePubkey.toBuffer()),seed:t.seed,lamports:t.lamports,space:t.space,programId:_(t.programId.toBuffer())});let n=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!1,isWritable:!0}];return t.basePubkey!=t.fromPubkey&&n.push({pubkey:t.basePubkey,isSigner:!0,isWritable:!1}),new cn({keys:n,programId:this.programId,data:e})}static createNonceAccount(t){const e=new un;"basePubkey"in t&&"seed"in t?e.add(Mn.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:In,programId:this.programId})):e.add(Mn.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,lamports:t.lamports,space:In,programId:this.programId}));const n={noncePubkey:t.noncePubkey,authorizedPubkey:t.authorizedPubkey};return e.add(this.nonceInitialize(n)),e}static nonceInitialize(t){const e=_n(Cn.InitializeNonceAccount,{authorized:_(t.authorizedPubkey.toBuffer())}),n={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:fn,isSigner:!1,isWritable:!1},{pubkey:pn,isSigner:!1,isWritable:!1}],programId:this.programId,data:e};return new cn(n)}static nonceAdvance(t){const e=_n(Cn.AdvanceNonceAccount),n={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:fn,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e};return new cn(n)}static nonceWithdraw(t){const e=_n(Cn.WithdrawNonceAccount,{lamports:t.lamports});return new cn({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0},{pubkey:fn,isSigner:!1,isWritable:!1},{pubkey:pn,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e})}static nonceAuthorize(t){const e=_n(Cn.AuthorizeNonceAccount,{authorized:_(t.newAuthorizedPubkey.toBuffer())});return new cn({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e})}static allocate(t){let e,n;if("basePubkey"in t){e=_n(Cn.AllocateWithSeed,{base:_(t.basePubkey.toBuffer()),seed:t.seed,space:t.space,programId:_(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{e=_n(Cn.Allocate,{space:t.space}),n=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new cn({keys:n,programId:this.programId,data:e})}}Mn.programId=new Ue("11111111111111111111111111111111");const On=Ze-300;class Rn{constructor(){}static getMinNumSignatures(t){return 2*(Math.ceil(t/Rn.chunkSize)+1+1)}static async load(t,e,n,r,i){{const o=await t.getMinimumBalanceForRentExemption(i.length),s=await t.getAccountInfo(n.publicKey,"confirmed"
1);let a=null;if(null!==s){if(s.executable)return console.error("Program load failed, account is already executable"),!1;s.data.length!==i.length&&(a=a||new un,a.add(Mn.allocate({accountPubkey:n.publicKey,space:i.length}))),s.owner.equals(r)||(a=a||new un,a.add(Mn.assign({accountPubkey:n.publicKey,programId:r}))),s.lamports<o&&(a=a||new un,a.add(Mn.transfer({fromPubkey:e.publicKey,toPubkey:n.publicKey,lamports:o-s.lamports})))}else a=(new un).add(Mn.createAccount({fromPubkey:e.publicKey,newAccountPubkey:n.publicKey,lamports:o>0?o:1,space:i.length,programId:r}));null!==a&&await vn(t,a,[e,n],{commitment:"confirmed"})}const s=h.struct([h.u32("instruction"),h.u32("offset"),h.u32("bytesLength"),h.u32("bytesLengthPadding"),h.seq(h.u8("byte"),h.offset(h.u32(),-8),"bytes")]),a=Rn.chunkSize;let c=0,u=i,l=[];for(;u.length>0;){const i=u.slice(0,a),h=o.Buffer.alloc(a+16);s.encode({instruction:0,offset:c,bytes:i,bytesLength:0,bytesLengthPadding:0},h);const d=(new un).add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0}],programId:r,data:h});if(l.push(vn(t,d,[e,n],{commitment:"confirmed"})),t._rpcEndpoint.includes("solana.com")){const t=4;await wn(1e3/t)}c+=a,u=u.slice(a)}await Promise.all(l);{const i=h.struct([h.u32("instruction")]),s=o.Buffer.alloc(i.span);i.encode({instruction:1},s);const a=(new un).add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0},{pubkey:pn,isSigner:!1,isWritable:!1}],programId:r,data:s});await vn(t,a,[e,n],{commitment:"confirmed"})}return!0}}Rn.chunkSize=On;const Bn=new Ue("BPFLoader2111111111111111111111111111111111");class jn{static getMinNumSignatures(t){return Rn.getMinNumSignatures(t)}static load(t,e,n,r,i){return Rn.load(t,e,n,i,r)}}var Nn=Object.prototype.toString,Ln=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};function Dn(t,e){var n,r,i,o,s,a,c;if(!0===t)return"true";if(!1===t)return"false";switch(typeof t){case"object":if(null===t)return null;if(t.toJSON&&"function"===typeof t.toJSON)return Dn(t.toJSON(),e);if("[object Array]"===(c=Nn.call(t))){for(i="[",r=t.length-1,n=0;n<r;n++)i+=Dn(t[n],!0)+",";return r>-1&&(i+=Dn(t[n],!0)),i+"]"}if("[object Object]"===c){for(r=(o=Ln(t).sort()).length,i="",n=0;n<r;)void 0!==(a=Dn(t[s=o[n]],!1))&&(i&&(i+=","),i+=JSON.stringify(s)+":"+a),n++;return"{"+i+"}"}return JSON.stringify(t);case"function":case"undefined":return e?null:void 0;case"string":return JSON.stringify(t);default:return isFinite(t)?t:null}}var zn=function(t){var e=Dn(t,!1);if(void 0!==e)return""+e};function Fn(t){let e=0;for(;t>1;)t/=2,e++;return e}class Un{constructor(t,e,n,r,i){this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=t,this.leaderScheduleSlotOffset=e,this.warmup=n,this.firstNormalEpoch=r,this.firstNormalSlot=i}getEpoch(t){return this.getEpochAndSlotIndex(t)[0]}getEpochAndSlotIndex(t){if(t<this.firstNormalSlot){const e=Fn(function(t){return 0===t?1:(t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,1+(t|=t>>32))}(t+32+1))-Fn(32)-1;return[e,t-(this.getSlotsInEpoch(e)-32)]}{const e=t-this.firstNormalSlot,n=Math.floor(e/this.slotsPerEpoch);return[this.firstNormalEpoch+n,e%this.slotsPerEpoch]}}getFirstSlotInEpoch(t){return t<=this.firstNormalEpoch?32*(Math.pow(2,t)-1):(t-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}getLastSlotInEpoch(t){return this.getFirstSlotInEpoch(t)+this.getSlotsInEpoch(t)-1}getSlotsInEpoch(t){return t<this.firstNormalEpoch?Math.pow(2,t+Fn(32)):this.slotsPerEpoch}}class Wn extends Error{constructor(t,e){super(t),this.logs=void 0,this.logs=e}}const Gn={JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP:-32001,JSON_RPC_SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE:-32002,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE:-32003,JSON_RPC_SERVER_ERROR_BLOCK_NOT_AVAILABLE:-32004,JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY:-32005,JSON_RPC_SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE:-32006,JSON_RPC_SERVER_ERROR_SLOT_SKIPPED:-32007,JSON_RPC_SERVER_ERROR_NO_SNAPSHOT:-32008,JSON_RPC_SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED:-32009,JSON_RPC_SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX:-32010,JSON_RPC_SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE:-32011,JSON_RPC_SCAN_ER
1ROR:-32012,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH:-32013,JSON_RPC_SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET:-32014,JSON_RPC_SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION:-32015,JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED:-32016};class Vn extends Error{constructor({code:t,message:e,data:n},r){super(null!=r?`${r}: ${e}`:e),this.code=void 0,this.data=void 0,this.code=t,this.data=n,this.name="SolanaJSONRPCError"}}var Kn=globalThis.fetch;class Hn{constructor(t){this.key=void 0,this.state=void 0,this.key=t.key,this.state=t.state}isActive(){return this.state.deactivationSlot===2n**64n-1n}static deserialize(t){const e=function(t,e){let n;try{n=t.layout.decode(e)}catch(r){throw new Error("invalid instruction; "+r)}if(n.typeIndex!==t.index)throw new Error(`invalid account data; account type mismatch ${n.typeIndex} != ${t.index}`);return n}(qn,t),n=t.length-56;on(n>=0,"lookup table is invalid"),on(n%32===0,"lookup table is invalid");const r=n/32,{addresses:i}=h.struct([h.seq(Qe(),r,"addresses")]).decode(t.slice(56));return{deactivationSlot:e.deactivationSlot,lastExtendedSlot:e.lastExtendedSlot,lastExtendedSlotStartIndex:e.lastExtendedStartIndex,authority:0!==e.authority.length?new Ue(e.authority[0]):void 0,addresses:i.map((t=>new Ue(t)))}}}const qn={index:1,layout:h.struct([h.u32("typeIndex"),En("deactivationSlot"),h.nu64("lastExtendedSlot"),h.u8("lastExtendedStartIndex"),h.u8(),h.seq(Qe(),h.offset(h.u8(),-1),"authority")])},$n=globalThis.URL;var Zn;const Yn=(0,f.oQ)((0,f.eE)(Ue),(0,f.Z_)(),(t=>new Ue(t))),Xn=(0,f.bc)([(0,f.Z_)(),(0,f.i0)("base64")]),Jn=(0,f.oQ)((0,f.eE)(o.Buffer),Xn,(t=>o.Buffer.from(t[0],"base64"))),Qn=3e4;function tr(t){let e,n;if("string"===typeof t)e=t;else if(t){const{commitment:r,...i}=t;e=r,n=i}return{commitment:e,config:n}}function er(t){return(0,f.G0)([(0,f.dt)({jsonrpc:(0,f.i0)("2.0"),id:(0,f.Z_)(),result:t}),(0,f.dt)({jsonrpc:(0,f.i0)("2.0"),id:(0,f.Z_)(),error:(0,f.dt)({code:(0,f._4)(),message:(0,f.Z_)(),data:(0,f.jt)((0,f.Yj)())})})])}const nr=er((0,f._4)());function rr(t){return(0,f.oQ)(er(t),nr,(e=>"error"in e?e:{...e,result:(0,f.Ue)(e.result,t)}))}function ir(t){return rr((0,f.dt)({context:(0,f.dt)({slot:(0,f.Rx)()}),value:t}))}function or(t){return(0,f.dt)({context:(0,f.dt)({slot:(0,f.Rx)()}),value:t})}const sr=(0,f.dt)({foundation:(0,f.Rx)(),foundationTerm:(0,f.Rx)(),initial:(0,f.Rx)(),taper:(0,f.Rx)(),terminal:(0,f.Rx)()}),ar=rr((0,f.IX)((0,f.AG)((0,f.dt)({epoch:(0,f.Rx)(),effectiveSlot:(0,f.Rx)(),amount:(0,f.Rx)(),postBalance:(0,f.Rx)()})))),cr=(0,f.dt)({epoch:(0,f.Rx)(),slotIndex:(0,f.Rx)(),slotsInEpoch:(0,f.Rx)(),absoluteSlot:(0,f.Rx)(),blockHeight:(0,f.jt)((0,f.Rx)()),transactionCount:(0,f.jt)((0,f.Rx)())}),ur=(0,f.dt)({slotsPerEpoch:(0,f.Rx)(),leaderScheduleSlotOffset:(0,f.Rx)(),warmup:(0,f.O7)(),firstNormalEpoch:(0,f.Rx)(),firstNormalSlot:(0,f.Rx)()}),lr=(0,f.IM)((0,f.Z_)(),(0,f.IX)((0,f.Rx)())),hr=(0,f.AG)((0,f.G0)([(0,f.dt)({}),(0,f.Z_)()])),dr=(0,f.dt)({err:hr}),fr=(0,f.i0)("receivedSignature"),pr=(0,f.dt)({"solana-core":(0,f.Z_)(),"feature-set":(0,f.jt)((0,f.Rx)())}),mr=ir((0,f.dt)({err:(0,f.AG)((0,f.G0)([(0,f.dt)({}),(0,f.Z_)()])),logs:(0,f.AG)((0,f.IX)((0,f.Z_)())),accounts:(0,f.jt)((0,f.AG)((0,f.IX)((0,f.AG)((0,f.dt)({executable:(0,f.O7)(),owner:(0,f.Z_)(),lamports:(0,f.Rx)(),data:(0,f.IX)((0,f.Z_)()),rentEpoch:(0,f.jt)((0,f.Rx)())}))))),unitsConsumed:(0,f.jt)((0,f.Rx)()),returnData:(0,f.jt)((0,f.AG)((0,f.dt)({programId:(0,f.Z_)(),data:(0,f.bc)([(0,f.Z_)(),(0,f.i0)("base64")])})))})),gr=ir((0,f.dt)({byIdentity:(0,f.IM)((0,f.Z_)(),(0,f.IX)((0,f.Rx)())),range:(0,f.dt)({firstSlot:(0,f.Rx)(),lastSlot:(0,f.Rx)()})}));const yr=rr(sr),br=rr(cr),vr=rr(ur),wr=rr(lr),_r=rr((0,f.Rx)()),kr=ir((0,f.dt)({total:(0,f.Rx)(),circulating:(0,f.Rx)(),nonCirculating:(0,f.Rx)(),nonCirculatingAccounts:(0,f.IX)(Yn)})),Sr=(0,f.dt)({amount:(0,f.Z_)(),uiAmount:(0,f.AG)((0,f.Rx)()),decimals:(0,f.Rx)(),uiAmountString:(0,f.jt)((0,f.Z_)())}),xr=ir((0,f.IX)((0,f.dt)({address:Yn,amount:(0,f.Z_)(),uiAmount:(0,f.AG)((0,f.Rx)()),decimals:(0,f.Rx)(),uiAmountString:(0,f.jt)((0,f.Z_)())}))),Ir=ir((0,f.IX)((0,f.dt)({pubkey:Yn,account:(0,f.dt)({executable:(0,f.O7)(),owner:Yn,lamports:(0,f.Rx)(),data:Jn,rentEpoch:(0,f.Rx)()})}))),Ar=(0,f.dt)({program:(0,f.Z_)(),parsed:(0,f._4)(),space:(0,f.Rx)()}),Er=ir((0,f.IX)((0,f.dt)({pubkey:Yn,account:(0,f.dt)({executable:(0,f.O7)(),owner:Yn,lamports:(0,f.Rx)(),data:Ar,rentEpoch:(0,f.Rx)()})}))),Tr=ir((0,f.IX)((0,f.dt)({lamports:(0,f.Rx)(),address:Yn}))),Pr=(0,f.dt)({executable:(0,f.O7)(),owner:Yn,lamports:(0,f.Rx)(),data:Jn,rentEpoch:(0,f.Rx)()}),Cr=(0,f.dt)({pubkey:Yn,account:Pr}),Mr=(0,f.oQ)((0,f.G0)([(0,f.eE)(o.Buffer),Ar]),(0,f.G0)([Xn,Ar]),(t=>Array.isArray(t)?(0,f.Ue)(t,Jn):t)),Or=(0,f.dt)({executable:(0,f.O7)(),owner:Yn,lamports:(0,f.Rx)(),data:Mr,rentEpoch:(0,f.Rx)()}),Rr=(0,f.dt)({pubkey:Yn,account:Or}),Br=(0,f.dt)({state:(0,f.G0)([(0,f.i0)("active"),(0,f.i0)("inactive"),(0,f.i0)("activating"),(0,f.i0)("deactivating")]),active:(0,f.Rx)(),inactive:(0,f.Rx)()}),jr=rr((0,f.IX)((0,f.dt)({signature:(0,f.Z_)(),slot:(0,f.Rx)(),err:hr,memo:(0,f.AG)((0,f.Z_)()),blockTime:(0,f.jt)((0,f.AG)((0,f.Rx)()))}))),Nr=rr((0,f.IX)((0,f.dt)({signature:(0,f.Z_)(),slot:(0,f.Rx)(),err:hr,memo:(0,f.AG)((0,f.Z_)()),blockTime:(0,f.jt)((0,f.AG)((0,f.Rx)()))}))),Lr=(0,f.dt)({subscription:(0,f.Rx)(),result:or(Pr)}),Dr=(0,f.dt)({pubkey:Yn,account:Pr}),zr=(0,f.dt)({subscription:(0,f.Rx)(),result:or(Dr)}),Fr=(0,f.dt)({parent:(0,f.Rx)(),slot:(0,f.Rx)(),root:(0,f.Rx)()}),Ur=(0,f.dt)({subscription:(0,f.Rx)(),result:Fr}),Wr=(0,f.G0)([(0,f.dt)({type:(0,f.G0)([(0,f.i0)("firstShredReceived"),(0,f.i0)("completed"),(0,f.i0)("optimisticConfirmation"),(0,f.i0)("root")
1]),slot:(0,f.Rx)(),timestamp:(0,f.Rx)()}),(0,f.dt)({type:(0,f.i0)("createdBank"),parent:(0,f.Rx)(),slot:(0,f.Rx)(),timestamp:(0,f.Rx)()}),(0,f.dt)({type:(0,f.i0)("frozen"),slot:(0,f.Rx)(),timestamp:(0,f.Rx)(),stats:(0,f.dt)({numTransactionEntries:(0,f.Rx)(),numSuccessfulTransactions:(0,f.Rx)(),numFailedTransactions:(0,f.Rx)(),maxTransactionsPerEntry:(0,f.Rx)()})}),(0,f.dt)({type:(0,f.i0)("dead"),slot:(0,f.Rx)(),timestamp:(0,f.Rx)(),err:(0,f.Z_)()})]),Gr=(0,f.dt)({subscription:(0,f.Rx)(),result:Wr}),Vr=(0,f.dt)({subscription:(0,f.Rx)(),result:or((0,f.G0)([dr,fr]))}),Kr=(0,f.dt)({subscription:(0,f.Rx)(),result:(0,f.Rx)()}),Hr=(0,f.dt)({pubkey:(0,f.Z_)(),gossip:(0,f.AG)((0,f.Z_)()),tpu:(0,f.AG)((0,f.Z_)()),rpc:(0,f.AG)((0,f.Z_)()),version:(0,f.AG)((0,f.Z_)())}),qr=(0,f.dt)({votePubkey:(0,f.Z_)(),nodePubkey:(0,f.Z_)(),activatedStake:(0,f.Rx)(),epochVoteAccount:(0,f.O7)(),epochCredits:(0,f.IX)((0,f.bc)([(0,f.Rx)(),(0,f.Rx)(),(0,f.Rx)()])),commission:(0,f.Rx)(),lastVote:(0,f.Rx)(),rootSlot:(0,f.AG)((0,f.Rx)())}),$r=rr((0,f.dt)({current:(0,f.IX)(qr),delinquent:(0,f.IX)(qr)})),Zr=(0,f.G0)([(0,f.i0)("processed"),(0,f.i0)("confirmed"),(0,f.i0)("finalized")]),Yr=(0,f.dt)({slot:(0,f.Rx)(),confirmations:(0,f.AG)((0,f.Rx)()),err:hr,confirmationStatus:(0,f.jt)(Zr)}),Xr=ir((0,f.IX)((0,f.AG)(Yr))),Jr=rr((0,f.Rx)()),Qr=(0,f.dt)({signatures:(0,f.IX)((0,f.Z_)()),message:(0,f.dt)({accountKeys:(0,f.IX)((0,f.Z_)()),header:(0,f.dt)({numRequiredSignatures:(0,f.Rx)(),numReadonlySignedAccounts:(0,f.Rx)(),numReadonlyUnsignedAccounts:(0,f.Rx)()}),instructions:(0,f.IX)((0,f.dt)({accounts:(0,f.IX)((0,f.Rx)()),data:(0,f.Z_)(),programIdIndex:(0,f.Rx)()})),recentBlockhash:(0,f.Z_)()})}),ti=(0,f.dt)({parsed:(0,f._4)(),program:(0,f.Z_)(),programId:Yn}),ei=(0,f.dt)({accounts:(0,f.IX)(Yn),data:(0,f.Z_)(),programId:Yn}),ni=(0,f.G0)([ei,ti]),ri=(0,f.G0)([(0,f.dt)({parsed:(0,f._4)(),program:(0,f.Z_)(),programId:(0,f.Z_)()}),(0,f.dt)({accounts:(0,f.IX)((0,f.Z_)()),data:(0,f.Z_)(),programId:(0,f.Z_)()})]),ii=(0,f.oQ)(ni,ri,(t=>"accounts"in t?(0,f.Ue)(t,ei):(0,f.Ue)(t,ti))),oi=(0,f.dt)({signatures:(0,f.IX)((0,f.Z_)()),message:(0,f.dt)({accountKeys:(0,f.IX)((0,f.dt)({pubkey:Yn,signer:(0,f.O7)(),writable:(0,f.O7)()})),instructions:(0,f.IX)(ii),recentBlockhash:(0,f.Z_)()})}),si=(0,f.dt)({accountIndex:(0,f.Rx)(),mint:(0,f.Z_)(),owner:(0,f.jt)((0,f.Z_)()),uiTokenAmount:Sr}),ai=(0,f.dt)({writable:(0,f.IX)(Yn),readonly:(0,f.IX)(Yn)}),ci=(0,f.dt)({err:hr,fee:(0,f.Rx)(),innerInstructions:(0,f.jt)((0,f.AG)((0,f.IX)((0,f.dt)({index:(0,f.Rx)(),instructions:(0,f.IX)((0,f.dt)({accounts:(0,f.IX)((0,f.Rx)()),data:(0,f.Z_)(),programIdIndex:(0,f.Rx)()}))})))),preBalances:(0,f.IX)((0,f.Rx)()),postBalances:(0,f.IX)((0,f.Rx)()),logMessages:(0,f.jt)((0,f.AG)((0,f.IX)((0,f.Z_)()))),preTokenBalances:(0,f.jt)((0,f.AG)((0,f.IX)(si))),postTokenBalances:(0,f.jt)((0,f.AG)((0,f.IX)(si))),loadedAddresses:(0,f.jt)(ai)}),ui=(0,f.dt)({err:hr,fee:(0,f.Rx)(),innerInstructions:(0,f.jt)((0,f.AG)((0,f.IX)((0,f.dt)({index:(0,f.Rx)(),instructions:(0,f.IX)(ii)})))),preBalances:(0,f.IX)((0,f.Rx)()),postBalances:(0,f.IX)((0,f.Rx)()),logMessages:(0,f.jt)((0,f.AG)((0,f.IX)((0,f.Z_)()))),preTokenBalances:(0,f.jt)((0,f.AG)((0,f.IX)(si))),postTokenBalances:(0,f.jt)((0,f.AG)((0,f.IX)(si))),loadedAddresses:(0,f.jt)(ai)}),li=rr((0,f.AG)((0,f.dt)({blockhash:(0,f.Z_)(),previousBlockhash:(0,f.Z_)(),parentSlot:(0,f.Rx)(),transactions:(0,f.IX)((0,f.dt)({transaction:Qr,meta:(0,f.AG)(ci)})),rewards:(0,f.jt)((0,f.IX)((0,f.dt)({pubkey:(0,f.Z_)(),lamports:(0,f.Rx)(),postBalance:(0,f.AG)((0,f.Rx)()),rewardType:(0,f.AG)((0,f.Z_)())}))),blockTime:(0,f.AG)((0,f.Rx)()),blockHeight:(0,f.AG)((0,f.Rx)())}))),hi=rr((0,f.AG)((0,f.dt)({blockhash:(0,f.Z_)(),previousBlockhash:(0,f.Z_)(),parentSlot:(0,f.Rx)(),transactions:(0,f.IX)((0,f.dt)({transaction:Qr,meta:(0,f.AG)(ci)})),rewards:(0,f.jt)((0,f.IX)((0,f.dt)({pubkey:(0,f.Z_)(),lamports:(0,f.Rx)(),postBalance:(0,f.AG)((0,f.Rx)()),rewardType:(0,f.AG)((0,f.Z_)())}))),blockTime:(0,f.AG)((0,f.Rx)())}))),di=rr((0,f.AG)((0,f.dt)({blockhash:(0,f.Z_)(),previousBlockhash:(0,f.Z_)(),parentSlot:(0,f.Rx)(),signatures:(0,f.IX)((0,f.Z_)()),blockTime:(0,f.AG)((0,f.Rx)())}))),fi=rr((0,f.AG)((0,f.dt)({slot:(0,f.Rx)(),meta:ci,blockTime:(0,f.jt)((0,f.AG)((0,f.Rx)())),transaction:Qr}))),pi=rr((0,f.AG)((0,f.dt)({slot:(0,f.Rx)(),transaction:oi,meta:(0,f.AG)(ui),blockTime:(0,f.jt)((0,f.AG)((0,f.Rx)()))}))),mi=ir((0,f.dt)({blockhash:(0,f.Z_)(),feeCalculator:(0,f.dt)({lamportsPerSignature:(0,f.Rx)()})}
1)),gi=ir((0,f.dt)({blockhash:(0,f.Z_)(),lastValidBlockHeight:(0,f.Rx)()})),yi=(0,f.dt)({slot:(0,f.Rx)(),numTransactions:(0,f.Rx)(),numSlots:(0,f.Rx)(),samplePeriodSecs:(0,f.Rx)()}),bi=rr((0,f.IX)(yi)),vi=ir((0,f.AG)((0,f.dt)({feeCalculator:(0,f.dt)({lamportsPerSignature:(0,f.Rx)()})}))),wi=rr((0,f.Z_)()),_i=rr((0,f.Z_)()),ki=(0,f.dt)({err:hr,logs:(0,f.IX)((0,f.Z_)()),signature:(0,f.Z_)()}),Si=(0,f.dt)({result:or(ki),subscription:(0,f.Rx)()}),xi={"solana-client":`js/${null!==(Zn="0.0.0-development")?Zn:"UNKNOWN"}`};class Ii{constructor(t,e){this._commitment=void 0,this._confirmTransactionInitialTimeout=void 0,this._rpcEndpoint=void 0,this._rpcWsEndpoint=void 0,this._rpcClient=void 0,this._rpcRequest=void 0,this._rpcBatchRequest=void 0,this._rpcWebSocket=void 0,this._rpcWebSocketConnected=!1,this._rpcWebSocketHeartbeat=null,this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketGeneration=0,this._disableBlockhashCaching=!1,this._pollingBlockhash=!1,this._blockhashInfo={latestBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]},this._nextClientSubscriptionId=0,this._subscriptionDisposeFunctionsByClientSubscriptionId={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set;let n=new $n(t);n.protocol;let r,i,o,s,a;var c;e&&"string"===typeof e?this._commitment=e:e&&(this._commitment=e.commitment,this._confirmTransactionInitialTimeout=e.confirmTransactionInitialTimeout,r=e.wsEndpoint,i=e.httpHeaders,o=e.fetch,s=e.fetchMiddleware,a=e.disableRetryOnRateLimit),this._rpcEndpoint=t,this._rpcWsEndpoint=r||function(t){let e=new $n(t);const n="https:"===e.protocol;return e.protocol=n?"wss:":"ws:",e.host="",""!==e.port&&(e.port=String(Number(e.port)+1)),e.toString()}(t),this._rpcClient=function(t,e,n,r,i,o){const s=r||Kn;let a;return i&&(a=async(t,e)=>{const n=await new Promise(((n,r)=>{try{i(t,e,((t,e)=>n([t,e])))}catch(o){r(o)}}));return await s(...n)}),new(g())((async(e,r)=>{const i={method:"POST",body:e,agent:void 0,headers:Object.assign({"Content-Type":"application/json"},n||{},xi)};try{let e,n=5,c=500;for(;e=a?await a(t,i):await s(t,i),429===e.status&&!0!==o&&(n-=1,0!==n);)console.log(`Server responded with ${e.status} ${e.statusText}. Retrying after ${c}ms delay...`),await wn(c),c*=2;const u=await e.text();e.ok?r(null,u):r(new Error(`${e.status} ${e.statusText}: ${u}`))}catch(c){c instanceof Error&&r(c)}}),{})}(n.toString(),0,i,o,s,a),this._rpcRequest=(c=this._rpcClient,(t,e)=>new Promise(((n,r)=>{c.request(t,e,((t,e)=>{t?r(t):n(e)}))}))),this._rpcBatchRequest=function(t){return e=>new Promise(((n,r)=>{0===e.length&&n([]);const i=e.map((e=>t.request(e.methodName,e.args)));t.request(i,((t,e)=>{t?r(t):n(e)}))}))}(this._rpcClient),this._rpcWebSocket=new p.K(this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}get commitment(){return this._commitment}get rpcEndpoint(){return this._rpcEndpoint}async getBalanceAndContext(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgs([t.toBase58()],n,void 0,r),o=await this._rpcRequest("getBalance",i),s=(0,f.Ue)(o,ir((0,f.Rx)()));if("error"in s)throw new Vn(s.error,`failed to get balance for ${t.toBase58()}`);return s.result}async getBalance(t,e){return await this.getBalanceAndContext(t,e).then((t=>t.value)).catch((e=>{throw new Error("failed to get balance of account "+t.toBase58()+": "+e)}))}async getBlockTime(t){const e=await this._rpcRequest("getBlockTime",[t]),n=(0,f.Ue)(e,rr((0,f.AG)((0,f.Rx)())));if("error"in n)throw new Vn(n.error,`failed to get block time for slot ${t}`);return n.result}async getMinimumLedgerSlot(){const t=await this._rpcRequest("minimumLedgerSlot",[]),e=(0,f.Ue)(t,rr((0,f.Rx)()));if("error"in e)throw new Vn(e.error,"failed to get minimum ledger slot");return e.result}async getFirstAvailableBlock(){const t=await this._rpcRequest("getFirstAvailableBlock",[]),e=(0,f.Ue)(t,_r);if("error"in e)throw new Vn(e.error,"failed to get first available block");return e.result}async getSupply(t){let e={};e="string"===typeof t?{commitment:t}:t?{...t,commitment:t&&t.commitment||this.commitment}:{commitment:this.commitment};const n=await this._rpcRequest("getSupply",[e]),r=(0,f.Ue)(n,kr);if("error"in r)throw new Vn(r.error,"failed to get supply");return r.result}async getTokenSupply(t,e){const n=this._buildArgs([t.toBase58()],e),r=await this._rpcRequest("getTokenSupply",n),i=(0,f.Ue)(r,ir(Sr));if("error"in i)throw new Vn(i.error,"failed to get token supply");return i.result}async getTokenAccountBalance(t,e){const n=this._buildArgs([t.toBase58()],e),r=await this._rpcRequest("getTokenAccountBalance",n
1),i=(0,f.Ue)(r,ir(Sr));if("error"in i)throw new Vn(i.error,"failed to get token account balance");return i.result}async getTokenAccountsByOwner(t,e,n){const{commitment:r,config:i}=tr(n);let o=[t.toBase58()];"mint"in e?o.push({mint:e.mint.toBase58()}):o.push({programId:e.programId.toBase58()});const s=this._buildArgs(o,r,"base64",i),a=await this._rpcRequest("getTokenAccountsByOwner",s),c=(0,f.Ue)(a,Ir);if("error"in c)throw new Vn(c.error,`failed to get token accounts owned by account ${t.toBase58()}`);return c.result}async getParsedTokenAccountsByOwner(t,e,n){let r=[t.toBase58()];"mint"in e?r.push({mint:e.mint.toBase58()}):r.push({programId:e.programId.toBase58()});const i=this._buildArgs(r,n,"jsonParsed"),o=await this._rpcRequest("getTokenAccountsByOwner",i),s=(0,f.Ue)(o,Er);if("error"in s)throw new Vn(s.error,`failed to get token accounts owned by account ${t.toBase58()}`);return s.result}async getLargestAccounts(t){const e={...t,commitment:t&&t.commitment||this.commitment},n=e.filter||e.commitment?[e]:[],r=await this._rpcRequest("getLargestAccounts",n),i=(0,f.Ue)(r,Tr);if("error"in i)throw new Vn(i.error,"failed to get largest accounts");return i.result}async getTokenLargestAccounts(t,e){const n=this._buildArgs([t.toBase58()],e),r=await this._rpcRequest("getTokenLargestAccounts",n),i=(0,f.Ue)(r,xr);if("error"in i)throw new Vn(i.error,"failed to get token largest accounts");return i.result}async getAccountInfoAndContext(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgs([t.toBase58()],n,"base64",r),o=await this._rpcRequest("getAccountInfo",i),s=(0,f.Ue)(o,ir((0,f.AG)(Pr)));if("error"in s)throw new Vn(s.error,`failed to get info about account ${t.toBase58()}`);return s.result}async getParsedAccountInfo(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgs([t.toBase58()],n,"jsonParsed",r),o=await this._rpcRequest("getAccountInfo",i),s=(0,f.Ue)(o,ir((0,f.AG)(Or)));if("error"in s)throw new Vn(s.error,`failed to get info about account ${t.toBase58()}`);return s.result}async getAccountInfo(t,e){try{return(await this.getAccountInfoAndContext(t,e)).value}catch(n){throw new Error("failed to get info about account "+t.toBase58()+": "+n)}}async getMultipleAccountsInfoAndContext(t,e){const{commitment:n,config:r}=tr(e),i=t.map((t=>
1t.toBase58())),o=this._buildArgs([i],n,"base64",r),s=await this._rpcRequest("getMultipleAccounts",o),a=(0,f.Ue)(s,ir((0,f.IX)((0,f.AG)(Pr))));if("error"in a)throw new Vn(a.error,`failed to get info for accounts ${i}`);return a.result}async getMultipleAccountsInfo(t,e){return(await this.getMultipleAccountsInfoAndContext(t,e)).value}async getStakeActivation(t,e,n){const{commitment:r,config:i}=tr(e),o=this._buildArgs([t.toBase58()],r,void 0,{...i,epoch:null!=n?n:null===i||void 0===i?void 0:i.epoch}),s=await this._rpcRequest("getStakeActivation",o),a=(0,f.Ue)(s,rr(Br));if("error"in a)throw new Vn(a.error,`failed to get Stake Activation ${t.toBase58()}`);return a.result}async getProgramAccounts(t,e){const{commitment:n,config:r}=tr(e),{encoding:i,...o}=r||{},s=this._buildArgs([t.toBase58()],n,i||"base64",o),a=await this._rpcRequest("getProgramAccounts",s),c=(0,f.Ue)(a,rr((0,f.IX)(Cr)));if("error"in c)throw new Vn(c.error,`failed to get accounts owned by program ${t.toBase58()}`);return c.result}async getParsedProgramAccounts(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgs([t.toBase58()],n,"jsonParsed",r),o=await this._rpcRequest("getProgramAccounts",i),s=(0,f.Ue)(o,rr((0,f.IX)(Rr)));if("error"in s)throw new Vn(s.error,`failed to get accounts owned by program ${t.toBase58()}`);return s.result}async confirmTransaction(t,e){let n,r;if("string"==typeof t)n=t;else{n=t.signature}try{r=u().decode(n)}catch(d){throw new Error("signature must be base58 encoded: "+n)}on(64===r.length,"signature has invalid length");const i=e||this.commitment;let o,s,a=!1;const c=new Promise(((t,e)=>{try{s=this.onSignature(n,((e,n)=>{s=void 0;const r={context:n,value:e};a=!0,t({__type:sn.PROCESSED,response:r})}),i)}catch(d){e(d)}})),l=new Promise((n=>{if("string"===typeof t){let t=this._confirmTransactionInitialTimeout||6e4;switch(i){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":t=this._confirmTransactionInitialTimeout||3e4}o=setTimeout((()=>n({__type:sn.TIMED_OUT,timeoutMs:t})),t)}else{let r=t;const i=async()=>{try{return await this.getBlockHeight(e)}catch(t){return-1}};(async()=>{let t=await i();if(!a){for(;t<=r.lastValidBlockHeight;){if(await wn(1e3),a)return;if(t=await i(),a)return}n({__type:sn.BLOCKHEIGHT_EXCEEDED})}})()}}));let h;try{const t=await Promise.race([c,l]);switch(t.__type){case sn.BLOCKHEIGHT_EXCEEDED:throw new Xe(n);case sn.PROCESSED:h=t.response;break;case sn.TIMED_OUT:throw new Je(n,t.timeoutMs/1e3)}}finally{clearTimeout(o),s&&this.removeSignatureListener(s)}return h}async getClusterNodes(){const t=await this._rpcRequest("getClusterNodes",[]),e=(0,f.Ue)(t,rr((0,f.IX)(Hr)));if("error"in e)throw new Vn(e.error,"failed to get cluster nodes");return e.result}async getVoteAccounts(t){const e=this._buildArgs([],t),n=await this._rpcRequest("getVoteAccounts",e),r=(0,f.Ue)(n,$r);if("error"in r)throw new Vn(r.error,"failed to get vote accounts");return r.result}async getSlot(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getSlot",r),o=(0,f.Ue)(i,rr((0,f.Rx)()));if("error"in o)throw new Vn(o.error,"failed to get slot");return o.result}async getSlotLeader(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getSlotLeader",r),o=(0,f.Ue)(i,rr((0,f.Z_)()));if("error"in o)throw new Vn(o.error,"failed to get slot leader");return o.result}async getSlotLeaders(t,e){const n=[t,e],r=await this._rpcRequest("getSlotLeaders",n),i=(0,f.Ue)(r,rr((0,f.IX)(Yn)));if("error"in i)throw new Vn(i.error,"failed to get slot leaders");return i.result}async getSignatureStatus(t,e){const{context:n,value:r}
1=await this.getSignatureStatuses([t],e);on(1===r.length);return{context:n,value:r[0]}}async getSignatureStatuses(t,e){const n=[t];e&&n.push(e);const r=await this._rpcRequest("getSignatureStatuses",n),i=(0,f.Ue)(r,Xr);if("error"in i)throw new Vn(i.error,"failed to get signature status");return i.result}async getTransactionCount(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getTransactionCount",r),o=(0,f.Ue)(i,rr((0,f.Rx)()));if("error"in o)throw new Vn(o.error,"failed to get transaction count");return o.result}async getTotalSupply(t){return(await this.getSupply({commitment:t,excludeNonCirculatingAccountsList:!0})).value.total}async getInflationGovernor(t){const e=this._buildArgs([],t),n=await this._rpcRequest("getInflationGovernor",e),r=(0,f.Ue)(n,yr);if("error"in r)throw new Vn(r.error,"failed to get inflation");return r.result}async getInflationReward(t,e,n){const{commitment:r,config:i}=tr(n),o=this._buildArgs([t.map((t=>t.toBase58()))],r,void 0,{...i,epoch:null!=e?e:null===i||void 0===i?void 0:i.epoch}),s=await this._rpcRequest("getInflationReward",o),a=(0,f.Ue)(s,ar);if("error"in a)throw new Vn(a.error,"failed to get inflation reward");return a.result}async getEpochInfo(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getEpochInfo",r),o=(0,f.Ue)(i,br);if("error"in o)throw new Vn(o.error,"failed to get epoch info");return o.result}async getEpochSchedule(){const t=await this._rpcRequest("getEpochSchedule",[]),e=(0,f.Ue)(t,vr);if("error"in e)throw new Vn(e.error,"failed to get epoch schedule");const n=e.result;return new Un(n.slotsPerEpoch,n.leaderScheduleSlotOffset,n.warmup,n.firstNormalEpoch,n.firstNormalSlot)}async getLeaderSchedule(){const t=await this._rpcRequest("getLeaderSchedule",[]),e=(0,f.Ue)(t,wr);if("error"in e)throw new Vn(e.error,"failed to get leader schedule");return e.result}async getMinimumBalanceForRentExemption(t,e){const n=this._buildArgs([t],e),r=await this._rpcRequest("getMinimumBalanceForRentExemption",n),i=(0,f.Ue)(r,Jr);return"error"in i?(console.warn("Unable to fetch minimum balance for rent exemption"),0):i.result}async getRecentBlockhashAndContext(t){const e=this._buildArgs([],t),n=await this._rpcRequest("getRecentBlockhash",e),r=(0,f.Ue)(n,mi);if("error"in r)throw new Vn(r.error,"failed to get recent blockhash");return r.result}async getRecentPerformanceSamples(t){const e=await this._rpcRequest("getRecentPerformanceSamples",t?[t]:[]),n=(0,f.Ue)(e,bi);if("error"in n)throw new Vn(n.error,"failed to get recent performance samples");return n.result}async getFeeCalculatorForBlockhash(t,e){const n=this._buildArgs([t],e),r=await this._rpcRequest("getFeeCalculatorForBlockhash",n),i=(0,f.Ue)(r,vi);if("error"in i)throw new Vn(i.error,"failed to get fee calculator");const{context:o,value:s}=i.result;return{context:o,value:null!==s?s.feeCalculator:null}}async getFeeForMessage(t,e){const n=t.serialize().toString("base64"),r=this._buildArgs([n],e),i=await this._rpcRequest("getFeeForMessage",r),o=(0,f.Ue)(i,ir((0,f.AG)((0,f.Rx)())));if("error"in o)throw new Vn(o.error,"failed to get slot");if(null===o.result)throw new Error("invalid blockhash");return o.result}async getRecentBlockhash(t){try{return(await this.getRecentBlockhashAndContext(t)).value}catch(e){throw new Error("failed to get recent blockhash: "+e)}}async getLatestBlockhash(t){try{return(await this.getLatestBlockhashAndContext(t)).value}catch(e){throw new Error("failed to get recent blockhash: "+e)}}async getLatestBlockhashAndContext(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getLatestBlockhash",r),o=(0,f.Ue)(i,gi);if("error"in o)throw new Vn(o.error,"failed to get latest blockhash");return o.result}async getVersion(){const t=await this._rpcRequest("getVersion",[]),e=(0,f.Ue)(t,rr(pr));if("error"in e)throw new Vn(e.error,"failed to get version");return e.result}async getGenesisHash(){const t=await this._rpcRequest("getGenesisHash",[]),e=(0,f.Ue)(t,rr((0,f.Z_)()));if("error"in e)throw new Vn(e.error,"failed to get genesis hash");return e.result}async getBlock(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgsAtLeastConfirmed([t],n,void 0,r),o=await this._rpcRequest("getBlock",i),s=(0,f.Ue)(o,li);if("error"in s)throw new Vn(s.error,"failed to get confirmed block");const a=s.result;return a?{...a,transactions:a.transactions.map((({transaction:t,meta:e})=>{const n=new rn(t.message);return{meta:e,transaction:{...t,message:n}}}))}:a}async getBlockHeight(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getBlockHeight",r),o=(0,f.Ue)(i,rr((0,f.Rx)()));if("error"in o)throw new Vn(o.error,"failed to get block height information");return o.result}async getBlockProduction(t){let e,n;if("string"===typeof t)n=t;else if(t){const{commitment:r,...i}=t;n=r,e=i}const r=this._buildArgs([],n,"base64",e),i=await this._rpcRequest("getBlockProduction",r),o=(0,f.Ue)(i,gr);if("error"in o)throw new Vn(o.error,"failed to get block production information");return o.result}async getTransaction(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgsAtLeastConfirmed([t],n,void 0,r),o=await this._rpcRequest("getTransaction",i),s=(0,f.Ue)(o,fi);if("error"in s)throw new Vn(s.error,"failed to get transaction");const a=s.result;return a?{...a,transaction:{...a.transaction,message:new rn(a.transaction.message)}}:a}async getParsedTransaction(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgsAtLeastConfirmed([t],n,"jsonParsed",r),o=await this._rpcRequest("getTransaction",i),s=(0,f.Ue)(o,pi);if("error"in s)throw new Vn(s.error,"failed to get transaction");return s.result}async getParsedTransactions(t,e){const{commitment:n,config:r}=tr(e),i=t.map((t=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([t],n,"jsonParsed",r)})));return(await this._rpcBatchRequest(i)).map((t=>{const e=(0,f.Ue)(t,pi);if("error"in e)throw new Vn(e.error,"failed to get transactions");return e.result}))}async getTransactions(t,e){const{commitment:n,config:r}=tr(e),i=t.map((t=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([t],n,void 0,r)})));return(await this._rpcBatchRequest(i)).map((t=>{const e=(0,f.Ue)(t,fi);if("error"in e)throw new Vn(e.error,"failed to get transactions");const n=e.result;return n?{...n,transaction:{...n.transaction,message:new rn(n.transaction.message)}}:n}))}async getConfirmedBlock(t,e){const n=this._buildArgsAtLeastConfirmed([t],e),r=await this._rpcRequest("getConfirmedBlock",
1n),i=(0,f.Ue)(r,hi);if("error"in i)throw new Vn(i.error,"failed to get confirmed block");const o=i.result;if(!o)throw new Error("Confirmed block "+t+" not found");const s={...o,transactions:o.transactions.map((({transaction:t,meta:e})=>{const n=new rn(t.message);return{meta:e,transaction:{...t,message:n}}}))};return{...s,transactions:s.transactions.map((({transaction:t,meta:e})=>({meta:e,transaction:un.populate(t.message,t.signatures)})))}}async getBlocks(t,e,n){const r=this._buildArgsAtLeastConfirmed(void 0!==e?[t,e]:[t],n),i=await this._rpcRequest("getBlocks",r),o=(0,f.Ue)(i,rr((0,f.IX)((0,f.Rx)())));if("error"in o)throw new Vn(o.error,"failed to get blocks");return o.result}async getBlockSignatures(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,void 0,{transactionDetails:"signatures",rewards:!1}),r=await this._rpcRequest("getBlock",n),i=(0,f.Ue)(r,di);if("error"in i)throw new Vn(i.error,"failed to get block");const o=i.result;if(!o)throw new Error("Block "+t+" not found");return o}async getConfirmedBlockSignatures(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,void 0,{transactionDetails:"signatures",rewards:!1}),r=await this._rpcRequest("getConfirmedBlock",n),i=(0,f.Ue)(r,di);if("error"in i)throw new Vn(i.error,"failed to get confirmed block");const o=i.result;if(!o)throw new Error("Confirmed block "+t+" not found");return o}async getConfirmedTransaction(t,e){const n=this._buildArgsAtLeastConfirmed([t],e),r=await this._rpcRequest("getConfirmedTransaction",n),i=(0,f.Ue)(r,fi);if("error"in i)throw new Vn(i.error,"failed to get transaction");const o=i.result;if(!o)return o;const s=new rn(o.transaction.message),a=o.transaction.signatures;return{...o,transaction:un.populate(s,a)}}async getParsedConfirmedTransaction(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,"jsonParsed"),r=await this._rpcRequest("getConfirmedTransaction",n),i=(0,f.Ue)(r,pi);if("error"in i)throw new Vn(i.error,"failed to get confirmed transaction");return i.result}async getParsedConfirmedTransactions(t,e){const n=t.map((t=>({methodName:"getConfirmedTransaction",args:this._buildArgsAtLeastConfirmed([t],e,"jsonParsed")})));return(await this._rpcBatchRequest(n)).map((t=>{const e=(0,f.Ue)(t,pi);if("error"in e)throw new Vn(e.error,"failed to get confirmed transactions");return e.result}))}async getConfirmedSignaturesForAddress(t,e,n){let r={},i=await this.getFirstAvailableBlock();for(;!("until"in r)&&!(--e<=0||e<i);)try{const t=await this.getConfirmedBlockSignatures(e,"finalized");t.signatures.length>0&&(r.until=t.signatures[t.signatures.length-1].toString())}catch(s){if(s instanceof Error&&s.message.includes("skipped"))continue;throw s}
1let o=await this.getSlot("finalized");for(;!("before"in r)&&!(++n>o);)try{const t=await this.getConfirmedBlockSignatures(n);t.signatures.length>0&&(r.before=t.signatures[t.signatures.length-1].toString())}catch(s){if(s instanceof Error&&s.message.includes("skipped"))continue;throw s}return(await this.getConfirmedSignaturesForAddress2(t,r)).map((t=>t.signature))}async getConfirmedSignaturesForAddress2(t,e,n){const r=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,e),i=await this._rpcRequest("getConfirmedSignaturesForAddress2",r),o=(0,f.Ue)(i,jr);if("error"in o)throw new Vn(o.error,"failed to get confirmed signatures for address");return o.result}async getSignaturesForAddress(t,e,n){const r=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,e),i=await this._rpcRequest("getSignaturesForAddress",r),o=(0,f.Ue)(i,Nr);if("error"in o)throw new Vn(o.error,"failed to get signatures for address");return o.result}async getAddressLookupTable(t,e){const{context:n,value:r}=await this.getAccountInfoAndContext(t,e);let i=null;return null!==r&&(i=new Hn({key:t,state:Hn.deserialize(r.data)})),{context:n,value:i}}async getNonceAndContext(t,e){const{context:n,value:r}=await this.getAccountInfoAndContext(t,e);let i=null;return null!==r&&(i=An.fromAccountData(r.data)),{context:n,value:i}}async getNonce(t,e){return await this.getNonceAndContext(t,e).then((t=>t.value)).catch((e=>{throw new Error("failed to get nonce for account "+t.toBase58()+": "+e)}))}async requestAirdrop(t,e){const n=await this._rpcRequest("requestAirdrop",[t.toBase58(),e]),r=(0,f.Ue)(n,wi);if("error"in r)throw new Vn(r.error,`airdrop to ${t.toBase58()} failed`);return r.result}async _blockhashWithExpiryBlockHeight(t){if(!t){for(;this._pollingBlockhash;)await wn(100);const t=Date.now()-this._blockhashInfo.lastFetch>=Qn;if(null!==this._blockhashInfo.latestBlockhash&&!t)return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{const t=Date.now(),e=this._blockhashInfo.latestBlockhash,n=e?e.blockhash:null;for(let r=0;r<50;r++){const t=await this.getLatestBlockhash("finalized");if(n!==t.blockhash)return this._blockhashInfo={latestBlockhash:t,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},t;await wn(200)}throw new Error(`Unable to obtain a new blockhash after ${Date.now()-t}ms`)}finally{this._pollingBlockhash=!1}}async getStakeMinimumDelegation(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,"base64",n),i=await this._rpcRequest("getStakeMinimumDelegation",r),o=(0,f.Ue)(i,ir((0,f.Rx)()));if("error"in o)throw new Vn(o.error,"failed to get stake minimum delegation");return o.result}async simulateTransaction(t,e,n){let r;if(t instanceof un){let e=t;r=new un,r.feePayer=e.feePayer,r.instructions=t.instructions,r.nonceInfo=e.nonceInfo,r.signatures=e.signatures}else r=un.populate(t),r._message=r._json=void 0;if(r.nonceInfo&&e)r.sign(...e);else{let t=this._disableBlockhashCaching;for(;;){const n=await this._blockhashWithExpiryBlockHeight(t);if(r.lastValidBlockHeight=n.lastValidBlockHeight,r.recentBlockhash=n.blockhash,!e)break;if(r.sign(...e),!r.signature)throw new Error("!signature");const i=r.signature.toString("base64");if(!this._blockhashInfo.simulatedSignatures.includes(i)&&!this._blockhashInfo.transactionSignatures.includes(i)){this._blockhashInfo.simulatedSignatures.push(i);break}t=!0}}const i=r._compile(),o=i.serialize(),s=r._serialize(o).toString("base64"),a={encoding:"base64",commitment:this.commitment};if(n){const t=(Array.isArray(n)?n:i.nonProgramIds()).map((t=>
1t.toBase58()));a.accounts={encoding:"base64",addresses:t}}e&&(a.sigVerify=!0);const c=[s,a],u=await this._rpcRequest("simulateTransaction",c),l=(0,f.Ue)(u,mr);if("error"in l){let t;if("data"in l.error&&(t=l.error.data.logs,t&&Array.isArray(t))){const e="\n ",n=e+t.join(e);console.error(l.error.message,n)}throw new Wn("failed to simulate transaction: "+l.error.message,t)}return l.result}async sendTransaction(t,e,n){if(t.nonceInfo)t.sign(...e);else{let n=this._disableBlockhashCaching;for(;;){const r=await this._blockhashWithExpiryBlockHeight(n);if(t.lastValidBlockHeight=r.lastValidBlockHeight,t.recentBlockhash=r.blockhash,t.sign(...e),!t.signature)throw new Error("!signature");const i=t.signature.toString("base64");if(!this._blockhashInfo.transactionSignatures.includes(i)){this._blockhashInfo.transactionSignatures.push(i);break}n=!0}}const r=t.serialize();return await this.sendRawTransaction(r,n)}async sendRawTransaction(t,e){const n=_(t).toString("base64");return await this.sendEncodedTransaction(n,e)}async sendEncodedTransaction(t,e){const n={encoding:"base64"},r=e&&e.skipPreflight,i=e&&e.preflightCommitment||this.commitment;e&&null!=e.maxRetries&&(n.maxRetries=e.maxRetries),e&&null!=e.minContextSlot&&(n.minContextSlot=e.minContextSlot),r&&(n.skipPreflight=r),i&&(n.preflightCommitment=i);const o=[t,n],s=await this._rpcRequest("sendTransaction",o),a=(0,f.Ue)(s,_i);if("error"in a){let t;throw"data"in a.error&&(t=a.error.data.logs),new Wn("failed to send transaction: "+a.error.message,t)}return a.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval((()=>{this._rpcWebSocket.notify("ping").catch((()=>{}))}),5e3),this._updateSubscriptions()}_wsOnError(t){this._rpcWebSocketConnected=!1,console.error("ws error:",t.message)}_wsOnClose(t){this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration++,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),1e3!==t?(this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach((([t,e])=>{this._subscriptionsByHash[t]={...e,state:"pending"}}))):this._updateSubscriptions()}async _updateSubscriptions(){if(0===Object.keys(this._subscriptionsByHash).length)return void(this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout((()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(t){t instanceof Error&&console.log(`Error when closing socket connection: ${t.message}`)}}),500)));if(null!==this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected)return void this._rpcWebSocket.connect();const t=this._rpcWebSocketGeneration,e=()=>t===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map((async t=>{const n=this._subscriptionsByHash[t];if(void 0!==n)switch(n.state){case"pending":case"unsubscribed":if(0===n.callbacks.size)return delete this._subscriptionsByHash[t],"unsubscribed"===n.state&&delete this._subscriptionCallbacksByServerSubscriptionId[n.serverSubscriptionId],void(await this._updateSubscriptions());await(async()=>{const{args:r,method:i}=n;try{this._subscriptionsByHash[t]={...n,state:"subscribing"};const e=await this._rpcWebSocket.call(i,r);this._subscriptionsByHash[t]={...n,serverSubscriptionId:e,state:"subscribed"},this._subscriptionCallbacksByServerSubscriptionId[e]=n.callbacks,await this._updateSubscriptions()}catch(o){if(o instanceof Error&&console.error(`${i} error for argument`,r,o.message),!e())return;this._subscriptionsByHash[t]={...n,state:"pending"},await this._updateSubscriptions()}})();break;case"subscribed":0===n.callbacks.size&&await(async()=>{const{serverSubscriptionId:r,unsubscribeMethod:i}=n;if(this._subscriptionsAutoDisposedByRpc.has(r))this._subscriptionsAutoDisposedByRpc.delete(r);else{this._subscriptionsByHash[t]={...n,state:"unsubscribing"};try{await this._rpcWebSocket.call(i,[r])}catch(o){if(o instanceof Error&&console.error(`${i} error:`,o.message),!e())return;return this._subscriptionsByHash[t]={...n,state:"subscribed"},void(await this._updateSubscriptions())}}this._subscriptionsByHash[t]={...n,state:"unsubscribed"},await this._updateSubscriptions()})()}})))}_handleServerNotification(t,e){const n=this._subscriptionCallbacksByServerSubscriptionId[t];
1void 0!==n&&n.forEach((t=>{try{t(...e)}catch(n){console.error(n)}}))}_wsOnAccountNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,Lr);this._handleServerNotification(n,[e.value,e.context])}_makeSubscription(t,e){const n=this._nextClientSubscriptionId++,r=zn([t.method,e],!0),i=this._subscriptionsByHash[r];return void 0===i?this._subscriptionsByHash[r]={...t,args:e,callbacks:new Set([t.callback]),state:"pending"}:i.callbacks.add(t.callback),this._subscriptionDisposeFunctionsByClientSubscriptionId[n]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[n];const e=this._subscriptionsByHash[r];on(void 0!==e,`Could not find a \`Subscription\` when tearing down client subscription #${n}`),e.callbacks.delete(t.callback),await this._updateSubscriptions()},this._updateSubscriptions(),n}onAccountChange(t,e,n){const r=this._buildArgs([t.toBase58()],n||this._commitment||"finalized","base64");return this._makeSubscription({callback:e,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},r)}async removeAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"account change")}_wsOnProgramAccountNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,zr);this._handleServerNotification(n,[{accountId:e.value.pubkey,accountInfo:e.value.account},e.context])}onProgramAccountChange(t,e,n,r){const i=this._buildArgs([t.toBase58()],n||this._commitment||"finalized","base64",r?{filters:r}:void 0);return this._makeSubscription({callback:e,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},i)}async removeProgramAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"program account change")}onLogs(t,e,n){const r=this._buildArgs(["object"===typeof t?{mentions:[t.toString()]}:t],n||this._commitment||"finalized");return this._makeSubscription({callback:e,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},r)}async removeOnLogsListener(t){await this._unsubscribeClientSubscription(t,"logs")}_wsOnLogsNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,Si);this._handleServerNotification(n,[e.value,e.context])}_wsOnSlotNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,Ur);this._handleServerNotification(n,[e])}onSlotChange(t){return this._makeSubscription({callback:t,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(t){await this._unsubscribeClientSubscription(t,"slot change")}_wsOnSlotUpdatesNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,Gr);this._handleServerNotification(n,[e])}onSlotUpdate(t){return this._makeSubscription({callback:t,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(t){await this._unsubscribeClientSubscription(t,"slot update")}async _unsubscribeClientSubscription(t,e){const n=this._subscriptionDisposeFunctionsByClientSubscriptionId[t];n?await n():console.warn(`Ignored unsubscribe request because an active subscription with id \`${t}\` for '${e}' events could not be found.`)}_buildArgs(t,e,n,r){const i=e||this._commitment;if(i||n||r){let e={};n&&(e.encoding=n),i&&(e.commitment=i),r&&(e=Object.assign(e,r)),t.push(e)}return t}_buildArgsAtLeastConfirmed(t,e,n,r){const i=e||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(t,e,n,r)}_wsOnSignatureNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,Vr);"receivedSignature"!==e.value&&this._subscriptionsAutoDisposedByRpc.add(n),this._handleServerNotification(n,"receivedSignature"===e.value?[{type:"received"},e.context]:[{type:"status",result:e.value},e.context])}onSignature(t,e,n){const r=this._buildArgs([t],n||this._commitment||"finalized"),i=this._makeSubscription({callback:(t,n)=>{if("status"===t.type){e(t.result,n);try{this.removeSignatureListener(i)}catch(r){}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},r);return i}onSignatureWithOptions(t,e,n){const{commitment:r,...i}={...n,commitment:n&&n.commitment||this._commitment||"finalized"},o=this._buildArgs([t],r,void 0,i),s=this._makeSubscription({callback:(t,n)=>{e(t,n);try{this.removeSignatureListener(s)}catch(r){}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},o);return s}async removeSignatureListener(t){await this._unsubscribeClientSubscription(t,"signature result")}_wsOnRootNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,Kr);this._handleServerNotification(n,[e])}onRootChange(t){return this._makeSubscription({callback:t,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(t){await this._unsubscribeClientSubscription(t,"root change")}}class Ai{constructor(t){this._keypair=void 0,this._keypair=t||i().sign.keyPair()}static generate(){return new Ai(i().sign.keyPair())}static fromSecretKey(t,e){const n=i().sign.keyPair.fromSecretKey(t);if(!e||!e.skipValidation){const t=(new TextEncoder).encode("@solana/web3.js-validation-v1"),e=i().sign.detached(t,n.secretKey);if(!i().sign.detached.verify(t,e,n.publicKey))throw new Error("provided secretKey is invali
1d")}return new Ai(n)}static fromSeed(t){return new Ai(i().sign.keyPair.fromSeed(t))}get publicKey(){return new Ue(this._keypair.publicKey)}get secretKey(){return this._keypair.secretKey}}const Ei=Object.freeze({CreateLookupTable:{index:0,layout:h.struct([h.u32("instruction"),En("recentSlot"),h.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:h.struct([h.u32("instruction")])},ExtendLookupTable:{index:2,layout:h.struct([h.u32("instruction"),En(),h.seq(Qe(),h.offset(h.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:h.struct([h.u32("instruction")])},CloseLookupTable:{index:4,layout:h.struct([h.u32("instruction")])}});class Ti{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=h.u32("instruction").decode(t.data);let n;for(const[r,i]of Object.entries(Ei))if(i.index==e){n=r;break}if(!n)throw new Error("Invalid Instruction. Should be a LookupTable Instruction");return n}static decodeCreateLookupTable(t){this.checkProgramId(t.programId),this.checkKeysLength(t.keys,4);const{recentSlot:e}=kn(Ei.CreateLookupTable,t.data);return{authority:t.keys[1].pubkey,payer:t.keys[2].pubkey,recentSlot:Number(e)}}static decodeExtendLookupTable(t){if(this.checkProgramId(t.programId),t.keys.length<2)throw new Error(`invalid instruction; found ${t.keys.length} keys, expected at least 2`);const{addresses:e}=kn(Ei.ExtendLookupTable,t.data);return{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,payer:t.keys.length>2?t.keys[2].pubkey:void 0,addresses:e.map((t=>new Ue(t)))}}static decodeCloseLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,3),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,recipient:t.keys[2].pubkey}}static decodeFreezeLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static decodeDeactivateLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(Pi.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}static checkKeysLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}class Pi{constructor(){}static createLookupTable(t){const[e,n]=Ue.findProgramAddressSync([t.authority.toBuffer(),(0,d.toBufferLE)(BigInt(t.recentSlot),8)],this.programId),r=_n(Ei.CreateLookupTable,{recentSlot:BigInt(t.recentSlot),bumpSeed:n}),i=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:Mn.programId,isSigner:!1,isWritable:!1}];return[new cn({programId:this.programId,keys:i,data:r}),e]}static freezeLookupTable(t){const e=_n(Ei.FreezeLookupTable),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new cn({programId:this.programId,keys:n,data:e})}static extendLookupTable(t){const e=_n(Ei.ExtendLookupTable,{addresses:t.addresses.map((t=>t.toBytes()))}),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return t.payer&&n.push({pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:Mn.programId,isSigner:!1,isWritable:!1}),new cn({programId:this.programId,keys:n,data:e})}static deactivateLookupTable(t){const e=_n(Ei.DeactivateLookupTable),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new cn({programId:this.programId,keys:n,data:e})}static closeLookupTable(t){const e=_n(Ei.CloseLookupTable),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.recipient,isSigner:!1,isWritable:!0}];return new cn({programId:this.programId,keys:n,data:e})}}Pi.programId=new Ue("AddressLookupTab1e1111111111111111111111111");class Ci{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=h.u8("instruction").decode(t.data);let n;for(const[r,i]of Object.entries(Mi))if(i.index==e){n=r;break}if(!n)throw new Error("Instruction type incorrect; not a ComputeBudgetInstruction");return n}static decodeRequestUnits(t){this.checkProgramId(t.programId);const{units:e,additionalFee:n}=kn(Mi.RequestUnits,t.data);return{units:e,additionalFee:n}}static decodeRequestHeapFrame(t){this.checkProgramId(t.programId);const{bytes:e}=kn(Mi.RequestHeapFrame,t.data);return{bytes:e}}static decodeSetComputeUnitLimit(t){this.checkProgramId(t.programId);const{units:e}=kn(Mi.SetComputeUnitLimit,t.data);return{units:e}}static decodeSetComputeUnitPrice(t){this.checkProgramId(t.programId);const{microLamports:e}=kn(Mi.SetComputeUnitPrice,t.data);return{microLamports:e}}static checkProgramId(t){if(!t.equals(Oi.programId))throw new Error("invalid instruction; programId is not ComputeBudgetProgram")}}const Mi=Object.freeze({RequestUnits:{index:0,layout:h.struct([h.u8("instruction"),h.u32("units"),h.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:h.struct([h.u8("instruction"),h.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:h.struct([h.u8("instruction"),h.u32("units")])},SetComputeUnitPrice:{index:3,layout:h.struct([h.u8("instruction"),En("microLamports")])}});class Oi{constructor(){}static requestUnits(t){const e=_n(Mi.RequestUnits,t);return new cn({keys:[],programId:this.programId,data:e})}static requestHeapFrame(t){const e=_n(Mi.RequestHeapFrame,t);return new cn({keys:[],programId:this.programId,data:e})}static setComputeUnitLimit(t){const e=_n(Mi.SetComputeUnitLimit,t);return new cn({keys:[],programId:this.programId,data:e})}static setComputeUnitPrice(t){const e=_n(Mi.SetComputeUnitPrice,{microLamports:BigInt(t.microLamports)});return new cn({keys:[],programId:this.programId,data:e})}}Oi.programId=new Ue("ComputeBudget111111111111111111111111111111");const Ri=h.struct([h.u8("numSignatures"),h.u8("padding"),h.u16("signatureOffset"),h.u16("signatureInstructionIndex"),h.u16("publicKeyOffset"),h.u16("publicKeyInstructionIndex"),h.u16("messageDataOffset"),h.u16("messageDataSize"),h.u16("messageInstructionIndex")]
1);class Bi{constructor(){}static createInstructionWithPublicKey(t){const{publicKey:e,message:n,signature:r,instructionIndex:i}=t;on(32===e.length,`Public Key must be 32 bytes but received ${e.length} bytes`),on(64===r.length,`Signature must be 64 bytes but received ${r.length} bytes`);const s=Ri.span,a=s+e.length,c=a+r.length,u=o.Buffer.alloc(c+n.length),l=null==i?65535:i;return Ri.encode({numSignatures:1,padding:0,signatureOffset:a,signatureInstructionIndex:l,publicKeyOffset:s,publicKeyInstructionIndex:l,messageDataOffset:c,messageDataSize:n.length,messageInstructionIndex:l},u),u.fill(e,s),u.fill(r,a),u.fill(n,c),new cn({keys:[],programId:Bi.programId,data:u})}static createInstructionWithPrivateKey(t){const{privateKey:e,message:n,instructionIndex:r}=t;on(64===e.length,`Private key must be 64 bytes but received ${e.length} bytes`);try{const t=Ai.fromSecretKey(e),o=t.publicKey.toBytes(),s=i().sign.detached(n,t.secretKey);return this.createInstructionWithPublicKey({publicKey:o,message:n,signature:s,instructionIndex:r})}catch(o){throw new Error(`Error creating instruction; ${o}`)}}}Bi.programId=new Ue("Ed25519SigVerify111111111111111111111111111");const{publicKeyCreate:ji,ecdsaSign:Ni}=b(),Li=h.struct([h.u8("numSignatures"),h.u16("signatureOffset"),h.u8("signatureInstructionIndex"),h.u16("ethAddressOffset"),h.u8("ethAddressInstructionIndex"),h.u16("messageDataOffset"),h.u16("messageDataSize"),h.u8("messageInstructionIndex"),h.blob(20,"ethAddress"),h.blob(64,"signature"),h.u8("recoveryId")]);class Di{constructor(){}static publicKeyToEthAddress(t){on(64===t.length,`Public key must be 64 bytes but received ${t.length} bytes`);try{return o.Buffer.from(w().keccak_256.update(_(t)).digest()).slice(-20)}catch(e){throw new Error(`Error constructing Ethereum address: ${e}`)}}static createInstructionWithPublicKey(t){const{publicKey:e,message:n,signature:r,recoveryId:i,instructionIndex:o}=t;return Di.createInstructionWithEthAddress({ethAddress:Di.publicKeyToEthAddress(e),message:n,signature:r,recoveryId:i,instructionIndex:o})}static createInstructionWithEthAddress(t){const{ethAddress:e,message:n,signature:r,recoveryId:i,instructionIndex:s=0}=t;let a;a="string"===typeof e?e.startsWith("0x")?o.Buffer.from(e.substr(2),"hex"):o.Buffer.from(e,"hex"):e,on(20===a.length,`Address must be 20 bytes but received ${a.length} bytes`);const c=12+a.length,u=c+r.length+1,l=o.Buffer.alloc(Li.span+n.length);return Li.encode({numSignatures:1,signatureOffset:c,signatureInstructionIndex:s,ethAddressOffset:12,ethAddressInstructionIndex:s,messageDataOffset:u,messageDataSize:n.length,messageInstructionIndex:s,signature:_(r),ethAddress:_(a),recoveryId:i},l),l.fill(_(n),Li.span),new cn({keys:[],programId:Di.programId,data:l})}static createInstructionWithPrivateKey(t){const{privateKey:e,message:n,instructionIndex:r}=t;on(32===e.length,`Private key must be 32 bytes but received ${e.length} bytes`);try{const t=_(e),i=ji(t,!1).slice(1),s=o.Buffer.from(w().keccak_256.update(_(n)).digest()),{signature:a,recid:c}=Ni(s,t);return this.createInstructionWithPublicKey({publicKey:i,message:n,signature:a,recoveryId:c,instructionIndex:r})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}}Di.programId=new Ue("KeccakSecp256k11111111111111111111111111111");const zi=new Ue("StakeConfig11111111111111111111111111111111");class Fi{constructor(t,e){this.staker=void 0,this.withdrawer=void 0,this.staker=t,this.withdrawer=e}}class Ui{constructor(t,e,n){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=e,this.custodian=n}}Ui.default=new Ui(0,0,Ue.default);class Wi{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=h.u32("instruction").decode(t.data);let n;for(const[r,i]of Object.entries(Gi))if(i.index==e){n=r;break}if(!n)throw new Error("Instruction type incorrect; not a StakeInstruction");return n}static decodeInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:e,lockup:n}=kn(Gi.Initialize,t.data);return{stakePubkey:t.keys[0].pubkey,authorized:new Fi(new Ue(e.staker),new Ue(e.withdrawer)),lockup:new Ui(n.unixTimestamp,n.epoch,new Ue(n.custodian))}}static decodeDelegate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,6),kn(Gi.Delegate,t.data),{stakePubkey:t.keys[0].pubkey,votePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[5].pubkey}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:e,stakeAuthorizationType:n}=kn(Gi.Authorize,t.data),r={stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new Ue(e),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(r.custodianPubkey=t.keys[3].pubkey),r}static decodeAuthorizeWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{newAuthorized:e,stakeAuthorizationType:n,authoritySeed:r,authorityOwner:i}=kn(Gi.AuthorizeWithSeed,t.data),o={stakePubkey:t.keys[0].pubkey,authorityBase:t.keys[1].pubkey,authoritySeed:r,authorityOwner:new Ue(i),newAuthorizedPubkey:new Ue(e),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(o.custodianPubkey=t.keys[3].pubkey),o}static decodeSplit(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e}=kn(Gi.Split,t.data);return{stakePubkey:t.keys[0].pubkey,splitStakePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[2].pubkey,lamports:e}}static decodeMerge(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),kn(Gi.Merge,t.data),{stakePubkey:t.keys[0].pubkey,sourceStakePubKey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:e}=kn(Gi.Withdraw,t.data),n={stakePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:e};return t.keys.length>5&&(n.custodianPubkey=t.keys[5].pubkey),n}static decodeDeactivate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),kn(Gi.Deactivate,t.data),{stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static checkProgramId(t){if(!t.equals(Ki.programId))throw new Error("invalid instruction; programId is not StakeProgram")}static checkKeyLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}const Gi=Object.freeze({Initialize:{index:0,layout:h.struct([h.u32("instruction"),((t="authorized")=>h.struct([Qe("staker"),Qe("withdrawer")],t))(),((t="lockup")=>h.struct([h.ns64("unixTimestamp"),h.ns64("epoch"),Qe("custodian")],t))()])},Authorize:{index:1,layout:h.struct([h.u32("instruction"),Qe("newAuthorized"),h.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:h.struct([h.u32("instruction")])},Split:{index:3,layout:h.struct([h.u32("instruction"),h.ns64("lamports")])},Withdraw:{index:4,layout:h.struct([h.u32("instruction"),h.ns64("lamports")])},Deactivate:{index:5,layout:h.struct([h.u32("instruction")])},Merge:{index:7,layout:h.struct([h.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:h.struct([h.u32("instruction"),Qe("newAuthorized"),h.u32("stakeAuthorizationType"),tn("authoritySeed"),Qe("authorityOwner")])}}),Vi=Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class Ki{constructor(){}static initialize(t){const{stakePubkey:e,authorized:n,lockup:r}=t,i=r||Ui.default,o=_n(Gi.Initialize,{authorized:{staker:_(n.staker.toBuffer()),withdrawer:_(n.withdrawer.toBuffer())},lockup:{unixTimestamp:i.unixTimestamp,epoch:i.epoch,custodian:_(i.custodian.toBuffer())}}),s={keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:pn,isSigner:!1,isWritable:!1}],programId:this.programId,data:o};return new cn(s)}static createAccountWithSeed(t){const e=new un;e.add(Mn.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:r,lockup:i}=t;return e.add(this.initialize({stakePubkey:n,authorized:r,lockup:i}))}static createAccount(t){const e=new un;e.add(Mn.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:r,lockup:i}=t;return e.add(this.initialize({stakePubkey:n,authorized:r,lockup:i}))}static delegate(t){const{stakePubkey:e,authorizedPubkey:n,votePubkey:r}=t,i=_n(Gi.Delegate);return(new un).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:ln,isSigner:!1,isWritable:!1},{pubkey:bn,isSigner:!1,isWritable:!1},{pubkey:zi,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}static authorize(t){const{stakePubkey:e,authorizedPubkey:n,newAuthorizedPubkey:r,stakeAuthorizationType:i,custodianPubkey:o}=t,s=_n(Gi.Authorize,{newAuthorized:_(r.toBuffer()),stakeAuthorizationType:i.index}),a=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:ln,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&a.push({pubkey:o,isSigner:!1,isWritable:!1}),(new un).add({keys:a,programId:this.programId,data:s})}static authorizeWithSeed(t){const{stakePubkey:e,authorityBase:n,authoritySeed:r,authorityOwner:i,newAuthorizedPubkey:o,stakeAuthorizationType:s,custodianPubkey:a}=t,c=_n(Gi.AuthorizeWithSeed,{newAuthorized:_(o.toBuffer()),stakeAuthorizationType:s.index,authoritySeed:r,authorityOwner:_(i.toBuffer())}),u=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:ln,isSigner:!1,isWritable:!1}];return a&&u.push({pubkey:a,isSigner:!1,isWritable:!1}),(new un).add({keys:u,programId:this.programId,data:c})}static splitInstruction(t){const{stakePubkey:e,authorizedPubkey:n,splitStakePubkey:r,lamports:i}=t,o=_n(Gi.Split,{lamports:i});return new cn({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}static split(t){const e=new un;return e.add(Mn.createAccount({fromPubkey:t.authorizedPubkey,newAccountPubkey:t.splitStakePubkey,lamports:0,space:this.space,programId:this.programId})),e.add(this.splitInstruction(t))}static splitWithSeed(t){const{stakePubkey:e,authorizedPubkey:n,splitStakePubkey:r,basePubkey:i,seed:o,lamports:s}=t,a=new un;return a.add(Mn.allocate({accountPubkey:r,basePubkey:i,seed:o,space:this.space,programId:this.programId})),a.add(this.splitInstruction({stakePubkey:e,authorizedPubkey:n,splitStakePubkey:r,lamports:s}))}static merge(t){const{stakePubkey:e,sourceStakePubKey:n,authorizedPubkey:r}=t,i=_n(Gi.Merge);return(new un).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:ln,isSigner:!1,isWritable:!1},{pubkey:bn,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}static withdraw(t){const{stakePubkey:e,authorizedPubkey:n,toPubkey:r,lamports:i,custodianPubkey:o}=t,s=_n(Gi.Withdraw,{lamports:i}),a=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:ln,isSigner:!1,isWritable:!1},{pubkey:bn,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&a.push({pubkey:o,isSigner:!1,isWritable:!1}),(new un).add({keys:a,programId:this.programId,data:s})}static deactivate(t){const{stakePubkey:e,authorizedPubkey:n}=t,r=_n(Gi.Deactivate);return(new un).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:ln,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:r})}}Ki.programId=new Ue("Stake11111111111111111111111111111111111111"),Ki.space=2
100;class Hi{constructor(t,e,n,r){this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=t,this.authorizedVoter=e,this.authorizedWithdrawer=n,this.commission=r}}class qi{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=h.u32("instruction").decode(t.data);let n;for(const[r,i]of Object.entries($i))if(i.index==e){n=r;break}if(!n)throw new Error("Instruction type incorrect; not a VoteInstruction");return n}static decodeInitializeAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,4);const{voteInit:e}=kn($i.InitializeAccount,t.data);return{votePubkey:t.keys[0].pubkey,nodePubkey:t.keys[3].pubkey,voteInit:new Hi(new Ue(e.nodePubkey),new Ue(e.authorizedVoter),new Ue(e.authorizedWithdrawer),e.commission)}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:e,voteAuthorizationType:n}=kn($i.Authorize,t.data);return{votePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new Ue(e),voteAuthorizationType:{index:n}}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e}=kn($i.Withdraw,t.data);return{votePubkey:t.keys[0].pubkey,authorizedWithdrawerPubkey:t.keys[2].pubkey,lamports:e,toPubkey:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(Yi.programId))throw new Error("invalid instruction; programId is not VoteProgram")}static checkKeyLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}const $i=Object.freeze({InitializeAccount:{index:0,layout:h.struct([h.u32("instruction"),((t="voteInit")=>h.struct([Qe("nodePubkey"),Qe("authorizedVoter"),Qe("authorizedWithdrawer"),h.u8("commission")],t))()])},Authorize:{index:1,layout:h.struct([h.u32("instruction"),Qe("newAuthorized"),h.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:h.struct([h.u32("instruction"),h.ns64("lamports")])}}),Zi=Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class Yi{constructor(){}static initializeAccount(t){const{votePubkey:e,nodePubkey:n,voteInit:r}=t,i=_n($i.InitializeAccount,{voteInit:{nodePubkey:_(r.nodePubkey.toBuffer()),authorizedVoter:_(r.authorizedVoter.toBuffer()),authorizedWithdrawer:_(r.authorizedWithdrawer.toBuffer()),commission:r.commission}}),o={keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:pn,isSigner:!1,isWritable:!1},{pubkey:ln,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i};return new cn(o)}static createAccount(t){const e=new un;return e.add(Mn.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.votePubkey,lamports:t.lamports,space:this.space,programId:this.programId})),e.add(this.initializeAccount({votePubkey:t.votePubkey,nodePubkey:t.voteInit.nodePubkey,voteInit:t.voteInit}))}static authorize(t){const{votePubkey:e,authorizedPubkey:n,newAuthorizedPubkey:r,voteAuthorizationType:i}=t,o=_n($i.Authorize,{newAuthorized:_(r.toBuffer()),voteAuthorizationType:i.index}),s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:ln,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return(new un).add({keys:s,programId:this.programId,data:o})}static withdraw(t){const{votePubkey:e,authorizedWithdrawerPubkey:n,lamports:r,toPubkey:i}=t,o=_n($i.Withdraw,{lamports:r}),s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return(new un).add({keys:s,programId:this.programId,data:o})}}Yi.programId=new Ue("Vote111111111111111111111111111111111111111"),Yi.space=3731;const Xi=new Ue("Va1idator1nfo111111111111111111111111111111"),Ji=(0,f.dt)({name:(0,f.Z_)(),website:(0,f.jt)((0,f.Z_)()),details:(0,f.jt)((0,f.Z_)()),keybaseUsername:(0,f.jt)((0,f.Z_)())});class Qi{constructor(t,e){this.key=void 0,this.info=void 0,this.key=t,this.info=e}static fromConfigData(t){let e=[...t];if(2!==en(e))return null;const n=[];for(let r=0;r<2;r++){const t=new Ue(e.slice(0,32));e=e.slice(32);const r=1===e.slice(0,1)[0];e=e.slice(1),n.push({publicKey:t,isSigner:r})}if(n[0].publicKey.equals(Xi)&&n[1].isSigner){const t=tn().decode(o.Buffer.from(e)),r=JSON.parse(t);return(0,f.hu)(r,Ji),new Qi(n[1].publicKey,r)}return null}}const to=new Ue("Vote111111111111111111111111111111111111111"),eo=h.struct([Qe("nodePubkey"),Qe("authorizedWithdrawer"),h.u8("commission"),h.nu64(),h.seq(h.struct([h.nu64("slot"),h.u32("confirmationCount")]),h.offset(h.u32(),-8),"votes"),h.u8("rootSlotValid"),h.nu64("rootSlot"),h.nu64(),h.seq(h.struct([h.nu64("epoch"),Qe("authorizedVoter")]),h.offset(h.u32(),-8),"authorizedVoters"),h.struct([h.seq(h.struct([Qe("authorizedPubkey"),h.nu64("epochOfLastAuthorizedSwitch"),h.nu64("targetEpoch")]),32,"buf"),h.nu64("idx"),h.u8("isEmpty")],"priorVoters"),h.nu64(),h.seq(h.struct([h.nu64("epoch"),h.nu64("credits"),h.nu64("prevCredits")]),h.offset(h.u32(),-8),"epochCredits"),h.struct([h.nu64("slot"),h.nu64("timestamp")],"lastTimestamp")]);
1class no{constructor(t){this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=t.nodePubkey,this.authorizedWithdrawer=t.authorizedWithdrawer,this.commission=t.commission,this.rootSlot=t.rootSlot,this.votes=t.votes,this.authorizedVoters=t.authorizedVoters,this.priorVoters=t.priorVoters,this.epochCredits=t.epochCredits,this.lastTimestamp=t.lastTimestamp}static fromAccountData(t){const e=eo.decode(_(t),4);let n=e.rootSlot;return e.rootSlotValid||(n=null),new no({nodePubkey:new Ue(e.nodePubkey),authorizedWithdrawer:new Ue(e.authorizedWithdrawer),commission:e.commission,votes:e.votes,rootSlot:n,authorizedVoters:e.authorizedVoters.map(ro),priorVoters:oo(e.priorVoters),epochCredits:e.epochCredits,lastTimestamp:e.lastTimestamp})}}function ro({authorizedVoter:t,epoch:e}){return{epoch:e,authorizedVoter:new Ue(t)}}function io({authorizedPubkey:t,epochOfLastAuthorizedSwitch:e,targetEpoch:n}){return{authorizedPubkey:new Ue(t),epochOfLastAuthorizedSwitch:e,targetEpoch:n}}function oo({buf:t,idx:e,isEmpty:n}){return n?[]:[...t.slice(e+1).map(io),...t.slice(0,e).map(io)]}const so={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function ao(t,e){const n=!1===e?"http":"https";if(!t)return so[n].devnet;const r=so[n][t];if(!r)throw new Error(`Unknown ${n} cluster: ${t}`);return r}async function co(t,e,n,r){let i,o;n&&Object.prototype.hasOwnProperty.call(n,"lastValidBlockHeight")?(i=n,o=r):o=n;const s=o&&{skipPreflight:o.skipPreflight,preflightCommitment:o.preflightCommitment||o.commitment,minContextSlot:o.minContextSlot},a=await t.sendRawTransaction(e,s),c=o&&o.commitment,u=i?t.confirmTransaction(i,c):t.confirmTransaction(a,c),l=(await u).value;if(l.err)throw new Error(`Raw transaction ${a} failed (${JSON.stringify(l)})`);return a}const uo=1e9},68274:function(t,e,n){var r=n(58162);t.exports=r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},59012:function(t,e,n){"use strict";const r=n(79742),i=n(80645),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},e.INSPECT_MAX_BYTES=50;const s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return u(t,e,n)}function u(t,e,n){if("string"===typeof t)return function(t,e){"string"===typeof e&&""!==e||(e="utf8");if(!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|m(t,e);let r=a(n);const i=r.write(t,e);i!==n&&(r=r.slice(0,i));return r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Z(t,Uint8Array)){const e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return d(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Z(t,ArrayBuffer)||t&&Z(t.buffer,ArrayBuffer))return f(t,e,n);if("undefined"!==typeof SharedArrayBuffer&&(Z(t,SharedArrayBuffer)||t&&Z(t.buffer,SharedArrayBuffer)))return f(t,e,n);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,n);const i=function(t){if(c.isBuffer(t)){const e=0|p(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!==typeof t.length||Y(t.length)?a(0):d(t);if("Buffer"===t.type&&Array.isArray(t.data))return d(t.data)}(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');
vendor: 7,567 bytes, line 1
1if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return l(t),a(t<0?0:0|p(t))}function d(t){const e=t.length<0?0:0|p(t.length),n=a(e);for(let r=0;r<e;r+=1)n[r]=255&t[r];return n}function f(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,c.prototype),r}function p(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function m(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Z(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(t).length;default:if(i)return r?-1:H(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return C(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return P(this,e,n);case"base64":return I(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function y(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,i){let o,s=1,a=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let r=-1;for(o=n;o<a;o++)if(u(t,o)===u(e,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===c)return r*s}else-1!==r&&(o-=o-r),r=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){let n=!0;for(let r=0;r<c;r++)if(u(t,o+r)!==u(e,r)){n=!1;break}if(n)return o}return-1}function w(t,e,n,r){n=Number(n)||0;const i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=e.length;let s;for(r>o/2&&(r=o/2),s=0;s<r;++s){const r=parseInt(e.substr(2*s,2),16);if(Y(r))return s;t[n+s]=r}return s}function _(t,e,n,r){return $(H(e,t.length-n),t,n,r)}function k(t,e,n,r){return $(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function S(t,e,n,r){return $(q(e),t,n,r)}function x(t,e,n,r){return $(function(t,e){let n,r,i;const o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function I(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function A(t,e,n){n=Math.min(t.length,n);const r=[];let i=e;for(;i<n;){const e=t[i];let o=null,s=e>239?4:e>223?3:e>191?2:1;if(i+s<=n){let n,r,a,c;switch(s){case 1:e<128&&(o=e);break;case 2:n=t[i+1],128===(192&n)&&(c=(31&e)<<6|63&n,c>127&&(o=c));break;case 3:n=t[i+1],r=t[i+2],128===(192&n)&&128===(192&r)&&(c=(15&e)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=t[i+1],r=t[i+2],a=t[i+3],128===(192&n)&&128===(192&r)&&128===(192&a)&&(c=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(t){const e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);let n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=E));return n}(r)}e.kMaxLength=s,c.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,n){return u(t,e,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,n){return function(t,e,n){return l(t),t<=0?a(t):void 0!==e?"string"===typeof n?a(t).fill(e,n):a(t).fill(e):a(t)}(t,e,n)},c.allocUnsafe=function(t){return h(t)},c.allocUnsafeSlow=function(t){return h(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(Z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),Z(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);let n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const r=c.allocUnsafe(e);let i=0;for(n=0;n<t.length;++n){let e=t[n];if(Z(e,Uint8Array))i+e.length>r.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,i)}i+=e.length}return r},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)y(this,e,e+1);return this},c.prototype.swap32=function(){const t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},c.prototype.swap64=function(){const t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},c.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?A(this,0,t):g.apply(this,arguments)}
vendor: 12,040 bytes, line 1
1,c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){let t="";const n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(t,e,n,r,i){if(Z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;let o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0);const a=Math.min(o,s),u=this.slice(r,i),l=t.slice(e,n);for(let c=0;c<a;++c)if(u[c]!==l[c]){o=u[c],s=l[c];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return _(this,t,e,n);case"ascii":case"latin1":case"binary":return k(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const E=4096;function T(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function P(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function C(t,e,n){const r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let i="";for(let o=e;o<n;++o)i+=X[t[o]];return i}function M(t,e,n){const r=t.slice(e,n);let i="";for(let o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function O(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function B(t,e,n,r,i){W(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,n}function j(t,e,n,r,i){W(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=s,s>>=8,t[n+2]=s,s>>=8,t[n+1]=s,s>>=8,t[n]=s,n+8}function N(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(t,e,n,r,o){return e=+e,n>>>=0,o||N(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function D(t,e,n,r,o){return e=+e,n>>>=0,o||N(t,0,n,8),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const r=this.subarray(t,e);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=this[t+--e],i=1;for(;e>0&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),c.prototype.readBigUInt64BE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),c.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=e,i=1,o=this[t+--r];for(;r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||O(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||O(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),c.prototype.readBigInt64BE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)})),c.prototype.readFloatLE=function(t,e){return t>>>=0,e||O(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||O(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||O(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||O(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){R(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){R(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=J((function(t,e=0){return B(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=J((function(t,e=0){return j(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=0,o=1,s=0;for(this[e]=255&t;++i<n&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=J((function(t,e=0){return B(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=J((function(t,e=0){return j(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(t,e,n){return L(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return L(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return D(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return D(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);const i=r-n;return this===t&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),i},c.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){const e=t.charCodeAt(0);("utf8"===r&&e<128||"latin1"===r)&&(t=e)}}else"number"===typeof t?t&=255:"boolean"===typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(i=e;i<n;++i)this[i]=t;else{const o=c.isBuffer(t)?t:c.from(t,r),s=o.length;
1if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<n-e;++i)this[i+e]=o[i%s]}return this};const z={};function F(t,e,n){z[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function U(t){let e="",n=t.length;const r="-"===t[0]?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function W(t,e,n,r,i,o){if(t>n||t<e){const r="bigint"===typeof e?"n":"";let i;throw i=o>3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new z.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,n){G(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||V(e,t.length-(n+1))}(r,i,o)}function G(t,e){if("number"!==typeof t)throw new z.ERR_INVALID_ARG_TYPE(e,"number",t)}function V(t,e,n){if(Math.floor(t)!==t)throw G(t,n),new z.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new z.ERR_BUFFER_OUT_OF_BOUNDS;throw new z.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=U(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=U(i)),i+="n"),r+=` It must be ${e}. Received ${i}`,r}),RangeError);const K=/[^+/0-9A-Za-z-_]/g;function H(t,e){let n;e=e||1/0;const r=t.length;let i=null;const o=[];for(let s=0;s<r;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function $(t,e,n,r){let i;for(i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function Z(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Y(t){return t!==t}const X=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function J(t){return"undefined"===typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},39386:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.s16=e.s8=e.nu64be=e.u48be=e.u40be=e.u32be=e.u24be=e.u16be=e.nu64=e.u48=e.u40=e.u32=e.u24=e.u16=e.u8=e.offset=e.greedy=e.Constant=e.UTF8=e.CString=e.Blob=e.Boolean=e.BitField=e.BitStructure=e.VariantLayout=e.Union=e.UnionLayoutDiscriminator=e.UnionDiscriminator=e.Structure=e.Sequence=e.DoubleBE=e.Double=e.FloatBE=e.Float=e.NearInt64BE=e.NearInt64=e.NearUInt64BE=e.NearUInt64=e.IntBE=e.Int=e.UIntBE=e.UInt=e.OffsetLayout=e.GreedyCount=e.ExternalLayout=e.bindConstructorLayout=e.nameWithProperty=e.Layout=e.uint8ArrayToBuffer=e.checkUint8Array=void 0,e.constant=e.utf8=e.cstr=e.blob=e.unionLayoutDiscriminator=e.union=e.seq=e.bits=e.struct=e.f64be=e.f64=e.f32be=e.f32=e.ns64be=e.s48be=e.s40be=e.s32be=e.s24be=e.s16be=e.ns64=e.s48=e.s40=e.s32=e.s24=void 0;const r=n(48764);function i(t){if(!(t instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function o(t){return i(t),r.Buffer.from(t.buffer,t.byteOffset,t.length)}e.checkUint8Array=i,e.uint8ArrayToBuffer=o;class s{constructor(t,e){if(!Number.isInteger(t))throw new TypeError("span must be an integer");this.span=t,this.property=e}makeDestinationObject(){return{}}getSpan(t,e){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(t){const e=Object.create(this.constructor.prototype);return Object.assign(e,this),e.property=t,e}fromArray(t){}}function a(t,e){return e.property?t+"["+e.property+"]":t}e.Layout=s,e.nameWithProperty=a,e.bindConstructorLayout=function(t,e){if("function"!==typeof t)throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(t,"layout_"))throw new Error("Class is already bound to a layout");if(!(e&&e instanceof s))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(e,"boundConstructor_"))throw new Error("layout is already bound to a constructor");
1t.layout_=e,e.boundConstructor_=t,e.makeDestinationObject=()=>new t,Object.defineProperty(t.prototype,"encode",{value(t,n){return e.encode(this,t,n)},writable:!0}),Object.defineProperty(t,"decode",{value:(t,n)=>e.decode(t,n),writable:!0})};class c extends s{isCount(){throw new Error("ExternalLayout is abstract")}}e.ExternalLayout=c;class u extends c{constructor(t=1,e){if(!Number.isInteger(t)||0>=t)throw new TypeError("elementSpan must be a (positive) integer");super(-1,e),this.elementSpan=t}isCount(){return!0}decode(t,e=0){i(t);const n=t.length-e;return Math.floor(n/this.elementSpan)}encode(t,e,n){return 0}}e.GreedyCount=u;class l extends c{constructor(t,e=0,n){if(!(t instanceof s))throw new TypeError("layout must be a Layout");if(!Number.isInteger(e))throw new TypeError("offset must be integer or undefined");super(t.span,n||t.property),this.layout=t,this.offset=e}isCount(){return this.layout instanceof h||this.layout instanceof d}decode(t,e=0){return this.layout.decode(t,e+this.offset)}encode(t,e,n=0){return this.layout.encode(t,e,n+this.offset)}}e.OffsetLayout=l;class h extends s{constructor(t,e){if(super(t,e),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(t,e=0){return o(t).readUIntLE(e,this.span)}encode(t,e,n=0){return o(e).writeUIntLE(t,n,this.span),this.span}}e.UInt=h;class d extends s{constructor(t,e){if(super(t,e),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(t,e=0){return o(t).readUIntBE(e,this.span)}encode(t,e,n=0){return o(e).writeUIntBE(t,n,this.span),this.span}}e.UIntBE=d;class f extends s{constructor(t,e){if(super(t,e),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(t,e=0){return o(t).readIntLE(e,this.span)}encode(t,e,n=0){return o(e).writeIntLE(t,n,this.span),this.span}}e.Int=f;class p extends s{constructor(t,e){if(super(t,e),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(t,e=0){return o(t).readIntBE(e,this.span)}encode(t,e,n=0){return o(e).writeIntBE(t,n,this.span),this.span}}e.IntBE=p;const m=Math.pow(2,32);function g(t){const e=Math.floor(t/m);return{hi32:e,lo32:t-e*m}}function y(t,e){return t*m+e}class b extends s{constructor(t){super(8,t)}decode(t,e=0){const n=o(t),r=n.readUInt32LE(e);return y(n.readUInt32LE(e+4),r)}encode(t,e,n=0){const r=g(t),i=o(e);return i.writeUInt32LE(r.lo32,n),i.writeUInt32LE(r.hi32,n+4),8}}e.NearUInt64=b;class v extends s{constructor(t){super(8,t)}decode(t,e=0){const n=o(t);return y(n.readUInt32BE(e),n.readUInt32BE(e+4))}encode(t,e,n=0){const r=g(t),i=o(e);return i.writeUInt32BE(r.hi32,n),i.writeUInt32BE(r.lo32,n+4),8}}e.NearUInt64BE=v;class w extends s{constructor(t){super(8,t)}decode(t,e=0){const n=o(t),r=n.readUInt32LE(e);return y(n.readInt32LE(e+4),r)}encode(t,e,n=0){const r=g(t),i=o(e);return i.writeUInt32LE(r.lo32,n),i.writeInt32LE(r.hi32,n+4),8}}e.NearInt64=w;class _ extends s{constructor(t){super(8,t)}decode(t,e=0){const n=o(t);return y(n.readInt32BE(e),n.readUInt32BE(e+4))}encode(t,e,n=0){const r=g(t),i=o(e);return i.writeInt32BE(r.hi32,n),i.writeUInt32BE(r.lo32,n+4),8}}e.NearInt64BE=_;class k extends s{constructor(t){super(4,t)}decode(t,e=0){return o(t).readFloatLE(e)}encode(t,e,n=0){return o(e).writeFloatLE(t,n),4}}e.Float=k;class S extends s{constructor(t){super(4,t)}decode(t,e=0){return o(t).readFloatBE(e)}encode(t,e,n=0){return o(e).writeFloatBE(t,n),4}}e.FloatBE=S;class x extends s{constructor(t){super(8,t)}decode(t,e=0){return o(t).readDoubleLE(e)}encode(t,e,n=0){return o(e).writeDoubleLE(t,n),8}}e.Double=x;class I extends s{constructor(t){super(8,t)}decode(t,e=0){return o(t).readDoubleBE(e)}encode(t,e,n=0){return o(e).writeDoubleBE(t,n),8}}e.DoubleBE=I;class A extends s{constructor(t,e,n){if(!(t instanceof s))throw new TypeError("elementLayout must be a Layout");if(!(e instanceof c&&e.isCount()||Number.isInteger(e)&&0<=e))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let r=-1;!(e instanceof c)&&0<t.span&&(r=e*t.span),super(r,n),this.elementLayout=t,this.count=e}getSpan(t,e=0){if(0<=this.span)return this.span;let n=0,r=this.count;if(r instanceof c&&(r=r.decode(t,e)),0<this.elementLayout.span)n=r*this.elementLayout.span;else{let i=0;for(;i<r;)n+=this.elementLayout.getSpan(t,e+n),++i}return n}decode(t,e=0){const n=[];let r=0,i=this.count;for(i instanceof c&&(i=i.decode(t,e));r<i;)n.push(this.elementLayout.decode(t,e)),e+=this.elementLayout.getSpan(t,e),r+=1;return n}encode(t,e,n=0){const r=this.elementLayout,i=t.reduce(((t,i)=>t+r.encode(i,e,n+t)),0);return this.count instanceof c&&this.count.encode(t.length,e,n),i}}e.Sequence=A;class E extends s{constructor(t,e,n){if(!Array.isArray(t)||!t.reduce(((t,e)=>t&&e instanceof s),!0))throw new TypeError("fields must be array of Layout instances");"boolean"===typeof e&&void 0===n&&(n=e,e=void 0);for(const o of t)if(0>o.span&&void 0===o.property)throw new Error("fields cannot contain unnamed variable-length layout");let r=-1;try{r=t.reduce(((t,e)=>t+e.getSpan()),0)}catch(i){}super(r,e),this.fields=t,this.decodePrefixes=!!n}getSpan(t,e=0){if(0<=this.span)return this.span;let n=0;try{n=this.fields.reduce(((n,r)=>{const i=r.getSpan(t,e);return e+=i,n+i}),0)}catch(r){throw new RangeError("indeterminate span")}return n}decode(t,e=0){i(t);const n=this.makeDestinationObject();for(const r of this.fields)if(void 0!==r.property&&(n[r.property]=r.decode(t,e)),e+=r.getSpan(t,e),this.decodePrefixes&&t.length===e)break;return n}encode(t,e,n=0){const r=n;let i=0,o=0;for(const s of this.fields){let r=s.span;if(o=0<r?r:0,void 0!==s.property){const i=t[s.property];void 0!==i&&(o=s.encode(i,e,n),0>r&&(r=s.getSpan(e,n)))}i=n,n+=r}return i+o-r}fromArray(t){const e=this.makeDestinationObject();for(const n of this.fields)void 0!==n.property&&0<t.length&&(e[n.property]=t.shift());return e}layoutFor(t){if("string"!==typeof t)throw new TypeError("property must be string");for(const e of this.fields)if(e.property===t)return e}offsetOf(t){if("string"!==typeof t)throw new TypeError("property must be string");let e=0;for(const n of this.fields){if(n.property===t)return e;0>n.span?e=-1:0<=e&&(e+=n.span)}}}e.Structure=E;class T{constructor(t){this.property=t}decode(t,e){throw new Error("UnionDiscriminator is abstract")}encode(t,e,n){throw new Error("UnionDiscriminator is abstract")}}e.UnionDiscriminator=T;class P extends T{constructor(t,e){if(!(t instanceof c&&t.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");
1super(e||t.property||"variant"),this.layout=t}decode(t,e){return this.layout.decode(t,e)}encode(t,e,n){return this.layout.encode(t,e,n)}}e.UnionLayoutDiscriminator=P;class C extends s{constructor(t,e,n){let r;if(t instanceof h||t instanceof d)r=new P(new l(t));else if(t instanceof c&&t.isCount())r=new P(t);else{if(!(t instanceof T))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");r=t}if(void 0===e&&(e=null),!(null===e||e instanceof s))throw new TypeError("defaultLayout must be null or a Layout");if(null!==e){if(0>e.span)throw new Error("defaultLayout must have constant span");void 0===e.property&&(e=e.replicate("content"))}let i=-1;e&&(i=e.span,0<=i&&(t instanceof h||t instanceof d)&&(i+=r.layout.span)),super(i,n),this.discriminator=r,this.usesPrefixDiscriminator=t instanceof h||t instanceof d,this.defaultLayout=e,this.registry={};let o=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(t){return o(t)},this.configGetSourceVariant=function(t){o=t.bind(this)}}getSpan(t,e=0){if(0<=this.span)return this.span;const n=this.getVariant(t,e);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(t,e)}defaultGetSourceVariant(t){if(Object.prototype.hasOwnProperty.call(t,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(t,this.defaultLayout.property))return;const e=this.registry[t[this.discriminator.property]];if(e&&(!e.layout||e.property&&Object.prototype.hasOwnProperty.call(t,e.property)))return e}else for(const e in this.registry){const n=this.registry[e];if(n.property&&Object.prototype.hasOwnProperty.call(t,n.property))return n}throw new Error("unable to infer src variant")}decode(t,e=0){let n;const r=this.discriminator,i=r.decode(t,e),o=this.registry[i];if(void 0===o){const o=this.defaultLayout;let s=0;this.usesPrefixDiscriminator&&(s=r.layout.span),n=this.makeDestinationObject(),n[r.property]=i,n[o.property]=o.decode(t,e+s)}else n=o.decode(t,e);return n}encode(t,e,n=0){const r=this.getSourceVariant(t);if(void 0===r){const r=this.discriminator,i=this.defaultLayout;let o=0;return this.usesPrefixDiscriminator&&(o=r.layout.span),r.encode(t[r.property],e,n),o+i.encode(t[i.property],e,n+o)}return r.encode(t,e,n)}addVariant(t,e,n){const r=new M(this,t,e,n);return this.registry[t]=r,r}getVariant(t,e=0){let n;return n=t instanceof Uint8Array?this.discriminator.decode(t,e):t,this.registry[n]}}e.Union=C;class M extends s{constructor(t,e,n,r){if(!(t instanceof C))throw new TypeError("union must be a Union");if(!Number.isInteger(e)||0>e)throw new TypeError("variant must be a (non-negative) integer");if("string"===typeof n&&void 0===r&&(r=n,n=null),n){if(!(n instanceof s))throw new TypeError("layout must be a Layout");if(null!==t.defaultLayout&&0<=n.span&&n.span>t.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!==typeof r)throw new TypeError("variant must have a String property")}let i=t.span;0>t.span&&(i=n?n.span:0,0<=i&&t.usesPrefixDiscriminator&&(i+=t.discriminator.layout.span)),super(i,r),this.union=t,this.variant=e,this.layout=n||null}getSpan(t,e=0){if(0<=this.span)return this.span;let n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);let r=0;return this.layout&&(r=this.layout.getSpan(t,e+n)),n+r}decode(t,e=0){const n=this.makeDestinationObject();if(this!==this.union.getVariant(t,e))throw new Error("variant mismatch");let r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(t,e+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}encode(t,e,n=0){let r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(t,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,e,n);let i=r;if(this.layout&&(this.layout.encode(t[this.property],e,n+r),i+=this.layout.getSpan(e,n+r),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}fromArray(t){if(this.layout)return this.layout.fromArray(t)}}function O(t){return 0>t&&(t+=4294967296),t}e.VariantLayout=M;class R extends s{constructor(t,e,n){if(!(t instanceof h||t instanceof d))throw new TypeError("word must be a UInt or UIntBE layout");if("string"===typeof e&&void 0===n&&(n=e,e=!1),4<t.span)throw new RangeError("word cannot exceed 32 bits");super(t.span,n),this.word=t,this.msb=!!e,this.fields=[];let r=0;this._packedSetValue=function(t){return r=O(t),this},this._packedGetValue=function(){return r}}decode(t,e=0){const n=this.makeDestinationObject(),r=this.word.decode(t,e);this._packedSetValue(r);for(const i of this.fields)void 0!==i.property&&(n[i.property]=i.decode(t));return n}encode(t,e,n=0){const r=this.word.decode(e,n);this._packedSetValue(r);for(const i of this.fields)if(void 0!==i.property){const e=t[i.property];void 0!==e&&i.encode(e)}return this.word.encode(this._packedGetValue(),e,n)}addField(t,e){const n=new B(this,t,e);return this.fields.push(n),n}addBoolean(t){const e=new j(this,t);return this.fields.push(e),e}fieldFor(t){if("string"!==typeof t)throw new TypeError("property must be string");for(const e of this.fields)if(e.property===t)return e}}e.BitStructure=R;class B{constructor(t,e,n){if(!(t instanceof R))throw new TypeError("container must be a BitStructure");
1if(!Number.isInteger(e)||0>=e)throw new TypeError("bits must be positive integer");const r=8*t.span,i=t.fields.reduce(((t,e)=>t+e.bits),0);if(e+i>r)throw new Error("bits too long for span remainder ("+(r-i)+" of "+r+" remain)");this.container=t,this.bits=e,this.valueMask=(1<<e)-1,32===e&&(this.valueMask=4294967295),this.start=i,this.container.msb&&(this.start=r-i-e),this.wordMask=O(this.valueMask<<this.start),this.property=n}decode(t,e){return O(this.container._packedGetValue()&this.wordMask)>>>this.start}encode(t){if("number"!==typeof t||!Number.isInteger(t)||t!==O(t&this.valueMask))throw new TypeError(a("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const e=this.container._packedGetValue(),n=O(t<<this.start);this.container._packedSetValue(O(e&~this.wordMask)|n)}}e.BitField=B;class j extends B{constructor(t,e){super(t,1,e)}decode(t,e){return!!super.decode(t,e)}encode(t){"boolean"===typeof t&&(t=+t),super.encode(t)}}e.Boolean=j;class N extends s{constructor(t,e){if(!(t instanceof c&&t.isCount()||Number.isInteger(t)&&0<=t))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let n=-1;t instanceof c||(n=t),super(n,e),this.length=t}getSpan(t,e){let n=this.span;return 0>n&&(n=this.length.decode(t,e)),n}decode(t,e=0){let n=this.span;return 0>n&&(n=this.length.decode(t,e)),o(t).slice(e,e+n)}encode(t,e,n){let r=this.length;if(this.length instanceof c&&(r=t.length),!(t instanceof Uint8Array&&r===t.length))throw new TypeError(a("Blob.encode",this)+" requires (length "+r+") Uint8Array as src");if(n+r>e.length)throw new RangeError("encoding overruns Uint8Array");const i=o(t);return o(e).write(i.toString("hex"),n,r,"hex"),this.length instanceof c&&this.length.encode(r,e,n),r}}e.Blob=N;class L extends s{constructor(t){super(-1,t)}getSpan(t,e=0){i(t);let n=e;for(;n<t.length&&0!==t[n];)n+=1;return 1+n-e}decode(t,e=0){const n=this.getSpan(t,e);return o(t).slice(e,e+n-1).toString("utf-8")}encode(t,e,n=0){"string"!==typeof t&&(t=String(t));const i=r.Buffer.from(t,"utf8"),s=i.length;if(n+s>e.length)throw new RangeError("encoding overruns Buffer");const a=o(e);return i.copy(a,n),a[n+s]=0,s+1}}e.CString=L;class D extends s{constructor(t,e){if("string"===typeof t&&void 0===e&&(e=t,t=void 0),void 0===t)t=-1;else if(!Number.isInteger(t))throw new TypeError("maxSpan must be an integer");super(-1,e),this.maxSpan=t}getSpan(t,e=0){return i(t),t.length-e}decode(t,e=0){const n=this.getSpan(t,e);if(0<=this.maxSpan&&this.maxSpan<n)throw new RangeError("text length exceeds maxSpan");return o(t).slice(e,e+n).toString("utf-8")}encode(t,e,n=0){"string"!==typeof t&&(t=String(t));const i=r.Buffer.from(t,"utf8"),s=i.length;if(0<=this.maxSpan&&this.maxSpan<s)throw new RangeError("text length exceeds maxSpan");if(n+s>e.length)throw new RangeError("encoding overruns Buffer");return i.copy(o(e),n),s}}e.UTF8=D;class z extends s{constructor(t,e){super(0,e),this.value=t}decode(t,e){return this.value}encode(t,e,n){return 0}}e.Constant=z,e.greedy=(t,e)=>new u(t,e),e.offset=(t,e,n)=>new l(t,e,n),e.u8=t=>new h(1,t),e.u16=t=>new h(2,t),e.u24=t=>new h(3,t),e.u32=t=>new h(4,t),e.u40=t=>new h(5,t),e.u48=t=>new h(6,t),e.nu64=t=>new b(t),e.u16be=t=>new d(2,t),e.u24be=t=>new d(3,t),e.u32be=t=>new d(4,t),e.u40be=t=>new d(5,t),e.u48be=t=>new d(6,t),e.nu64be=t=>new v(t),e.s8=t=>new f(1,t),e.s16=t=>new f(2,t),e.s24=t=>new f(3,t),e.s32=t=>new f(4,t),e.s40=t=>new f(5,t),e.s48=t=>new f(6,t),e.ns64=t=>new w(t),e.s16be=t=>new p(2,t),e.s24be=t=>new p(3,t),e.s32be=t=>new p(4,t),e.s40be=t=>new p(5,t),e.s48be=t=>new p(6,t),e.ns64be=t=>new _(t),e.f32=t=>new k(t),e.f32be=t=>new S(t),e.f64=t=>new x(t),e.f64be=t=>new I(t),e.struct=(t,e,n)=>new E(t,e,n),e.bits=(t,e,n)=>new R(t,e,n),e.seq=(t,e,n)=>new A(t,e,n),e.union=(t,e,n)=>new C(t,e,n),e.unionLayoutDiscriminator=(t,e)=>new P(t,e),e.blob=(t,e)=>new N(t,e),e.cstr=t=>new L(t),e.utf8=(t,e)=>new D(t,e),e.constant=(t,e)=>new z(t,e)},26087:function(t,e,n){"use strict";n.r(e),n.d(e,{Account:function(){return Et},AddressLookupTableAccount:function(){return Ne},AddressLookupTableInstruction:function(){return Mr},AddressLookupTableProgram:function(){return Or},Authorized:function(){return Wr},BLOCKHASH_CACHE_TIMEOUT_MS:function(){return We},BPF_LOADER_DEPRECATED_PROGRAM_ID:function(){return Tt},BPF_LOADER_PROGRAM_ID:function(){return Se},BpfLoader:function(){return xe},COMPUTE_BUDGET_INSTRUCTION_LAYOUTS:function(){return Br}
1,ComputeBudgetInstruction:function(){return Rr},ComputeBudgetProgram:function(){return jr},Connection:function(){return Tr},Ed25519Program:function(){return Lr},Enum:function(){return wt},EpochSchedule:function(){return Ce},FeeCalculatorLayout:function(){return de},Keypair:function(){return Pr},LAMPORTS_PER_SOL:function(){return hi},LOOKUP_TABLE_INSTRUCTION_LAYOUTS:function(){return Cr},Loader:function(){return ke},Lockup:function(){return Gr},MAX_SEED_LENGTH:function(){return St},Message:function(){return Vt},MessageAccountKeys:function(){return jt},MessageV0:function(){return Kt},NONCE_ACCOUNT_LENGTH:function(){return pe},NonceAccount:function(){return me},PACKET_DATA_SIZE:function(){return Pt},PUBLIC_KEY_LENGTH:function(){return xt},PublicKey:function(){return At},SIGNATURE_LENGTH_IN_BYTES:function(){return Mt},SOLANA_SCHEMA:function(){return _t},STAKE_CONFIG_ID:function(){return Ur},STAKE_INSTRUCTION_LAYOUTS:function(){return Kr},SYSTEM_INSTRUCTION_LAYOUTS:function(){return ve},SYSVAR_CLOCK_PUBKEY:function(){return Qt},SYSVAR_EPOCH_SCHEDULE_PUBKEY:function(){return te},SYSVAR_INSTRUCTIONS_PUBKEY:function(){return ee},SYSVAR_RECENT_BLOCKHASHES_PUBKEY:function(){return ne},SYSVAR_RENT_PUBKEY:function(){return re},SYSVAR_REWARDS_PUBKEY:function(){return ie},SYSVAR_SLOT_HASHES_PUBKEY:function(){return oe},SYSVAR_SLOT_HISTORY_PUBKEY:function(){return se},SYSVAR_STAKE_HISTORY_PUBKEY:function(){return ae},Secp256k1Program:function(){return Fr},SendTransactionError:function(){return Me},SolanaJSONRPCError:function(){return Re},SolanaJSONRPCErrorCode:function(){return Oe},StakeAuthorizationLayout:function(){return Hr},StakeInstruction:function(){return Vr},StakeProgram:function(){return qr},Struct:function(){return vt},SystemInstruction:function(){return be},SystemProgram:function(){return we},Transaction:function(){return Yt},TransactionExpiredBlockheightExceededError:function(){return Ot},TransactionExpiredNonceInvalidError:function(){return Bt},TransactionExpiredTimeoutError:function(){return Rt},TransactionInstruction:function(){return Zt},TransactionMessage:function(){return Xt},TransactionStatus:function(){return qt},VALIDATOR_INFO_KEY:function(){return Qr},VERSION_PREFIX_MASK:function(){return Ct},VOTE_PROGRAM_ID:function(){return ni},ValidatorInfo:function(){return ei},VersionedMessage:function(){return Ht},VersionedTransaction:function(){return Jt},VoteAccount:function(){return ii},VoteAuthorizationLayout:function(){return Xr},VoteInit:function(){return $r},VoteInstruction:function(){return Zr},VoteProgram:function(){return Jr},clusterApiUrl:function(){return ui},sendAndConfirmRawTransaction:function(){return li},sendAndConfirmTransaction:function(){return ce}});var r=n(64285);function i(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function o(t,...e){if(!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new TypeError(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}const s={number:i,bool:function(t){if("boolean"!==typeof t)throw new Error(`Expected boolean, not ${t}`)},bytes:o,hash:function(t){if("function"!==typeof t||"function"!==typeof t.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");i(t.outputLen),i(t.blockLen)},exists:function(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")},output:function(t,e){o(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}};var a=s;"object"===typeof self&&"crypto"in self&&self.crypto;const c=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),u=(t,e)=>t<<32-e|t>>>e;if(!(68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]))throw new Error("Non little-endian hardware is not supported");Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function l(t){if("string"===typeof t&&(t=function(t){if("string"!==typeof t)throw new TypeError("utf8ToBytes expected string, got "+typeof t);return(new TextEncoder).encode(t)}(t)),!(t instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof t})`);return t}class h{clone(){return this._cloneInto()}}function d(t){const e=e=>t().update(l(e)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}class f extends h{constructor(t,e,n,r){super(),this.blockLen=t,this.outputLen=e,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=c(this.buffer)}update(t){a.exists(this);const{view:e,buffer:n,blockLen:r}=this,i=(t=l(t)).length;for(let o=0;o<i;){const s=Math.min(r-this.pos,i-o);if(s!==r)n.set(t.subarray(o,o+s),this.pos),this.pos+=s,o+=s,this.pos===r&&(this.process(e,0),this.pos=0);else{const e=c(t);for(;r<=i-o;o+=r)this.process(e,o)}}return this.length+=t.length,this.roundClean(),this}digestInto(t){a.exists(this),a.output(t,this),this.finished=!0;const{buffer:e,view:n,blockLen:r,isLE:i}=this;let{pos:o}=this;e[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>r-o&&(this.process(n,0),o=0);for(let a=o;a<r;a++)e[a]=0;!function(t,e,n,r){if("function"===typeof t.setBigUint64)return t.setBigUint64(e,n,r);const i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),a=Number(n&o),c=r?4:0,u=r?0:4;t.setUint32(e+c,s,r),t.setUint32(e+u,a,r)}(n,r-8,BigInt(8*this.length),i),this.process(n,0);const s=c(t);
1this.get().forEach(((t,e)=>s.setUint32(4*e,t,i)))}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const n=t.slice(0,e);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:e,buffer:n,length:r,finished:i,destroyed:o,pos:s}=this;return t.length=r,t.pos=s,t.finished=i,t.destroyed=o,r%e&&t.buffer.set(n),t}}const p=BigInt(2**32-1),m=BigInt(32);function g(t,e=!1){return e?{h:Number(t&p),l:Number(t>>m&p)}:{h:0|Number(t>>m&p),l:0|Number(t&p)}}var y={fromBig:g,split:function(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let i=0;i<t.length;i++){const{h:o,l:s}=g(t[i],e);[n[i],r[i]]=[o,s]}return[n,r]},toBig:(t,e)=>BigInt(t>>>0)<<m|BigInt(e>>>0),shrSH:(t,e,n)=>t>>>n,shrSL:(t,e,n)=>t<<32-n|e>>>n,rotrSH:(t,e,n)=>t>>>n|e<<32-n,rotrSL:(t,e,n)=>t<<32-n|e>>>n,rotrBH:(t,e,n)=>t<<64-n|e>>>n-32,rotrBL:(t,e,n)=>t>>>n-32|e<<64-n,rotr32H:(t,e)=>e,rotr32L:(t,e)=>t,rotlSH:(t,e,n)=>t<<n|e>>>32-n,rotlSL:(t,e,n)=>e<<n|t>>>32-n,rotlBH:(t,e,n)=>e<<n-32|t>>>64-n,rotlBL:(t,e,n)=>t<<n-32|e>>>64-n,add:function(t,e,n,r){const i=(e>>>0)+(r>>>0);return{h:t+n+(i/2**32|0)|0,l:0|i}},add3L:(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0),add3H:(t,e,n,r)=>e+n+r+(t/2**32|0)|0,add4L:(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0),add4H:(t,e,n,r,i)=>e+n+r+i+(t/2**32|0)|0,add5H:(t,e,n,r,i,o)=>e+n+r+i+o+(t/2**32|0)|0,add5L:(t,e,n,r,i)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(i>>>0)};const[b,v]=y.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e3585
15771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((t=>BigInt(t)))),w=new Uint32Array(80),_=new Uint32Array(80);class k extends f{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:e,Bh:n,Bl:r,Ch:i,Cl:o,Dh:s,Dl:a,Eh:c,El:u,Fh:l,Fl:h,Gh:d,Gl:f,Hh:p,Hl:m}=this;return[t,e,n,r,i,o,s,a,c,u,l,h,d,f,p,m]}set(t,e,n,r,i,o,s,a,c,u,l,h,d,f,p,m){this.Ah=0|t,this.Al=0|e,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|o,this.Dh=0|s,this.Dl=0|a,this.Eh=0|c,this.El=0|u,this.Fh=0|l,this.Fl=0|h,this.Gh=0|d,this.Gl=0|f,this.Hh=0|p,this.Hl=0|m}process(t,e){for(let y=0;y<16;y++,e+=4)w[y]=t.getUint32(e),_[y]=t.getUint32(e+=4);for(let b=16;b<80;b++){const t=0|w[b-15],e=0|_[b-15],n=y.rotrSH(t,e,1)^y.rotrSH(t,e,8)^y.shrSH(t,e,7),r=y.rotrSL(t,e,1)^y.rotrSL(t,e,8)^y.shrSL(t,e,7),i=0|w[b-2],o=0|_[b-2],s=y.rotrSH(i,o,19)^y.rotrBH(i,o,61)^y.shrSH(i,o,6),a=y.rotrSL(i,o,19)^y.rotrBL(i,o,61)^y.shrSL(i,o,6),c=y.add4L(r,a,_[b-7],_[b-16]),u=y.add4H(c,n,s,w[b-7],w[b-16]);w[b]=0|u,_[b]=0|c}let{Ah:n,Al:r,Bh:i,Bl:o,Ch:s,Cl:a,Dh:c,Dl:u,Eh:l,El:h,Fh:d,Fl:f,Gh:p,Gl:m,Hh:g,Hl:k}=this;for(let S=0;S<80;S++){const t=y.rotrSH(l,h,14)^y.rotrSH(l,h,18)^y.rotrBH(l,h,41),e=y.rotrSL(l,h,14)^y.rotrSL(l,h,18)^y.rotrBL(l,h,41),x=l&d^~l&p,I=h&f^~h&m,A=y.add5L(k,e,I,v[S],_[S]),E=y.add5H(A,g,t,x,b[S],w[S]),T=0|A,P=y.rotrSH(n,r,28)^y.rotrBH(n,r,34)^y.rotrBH(n,r,39),C=y.rotrSL(n,r,28)^y.rotrBL(n,r,34)^y.rotrBL(n,r,39),M=n&i^n&s^i&s,O=r&o^r&a^o&a;g=0|p,k=0|m,p=0|d,m=0|f,d=0|l,f=0|h,({h:l,l:h}=y.add(0|c,0|u,0|E,0|T)),c=0|s,u=0|a,s=0|i,a=0|o,i=0|n,o=0|r;const R=y.add3L(T,C,O);n=y.add3H(R,E,P,M),r=0|R}({h:n,l:r}=y.add(0|this.Ah,0|this.Al,0|n,0|r)),({h:i,l:o}=y.add(0|this.Bh,0|this.Bl,0|i,0|o)),({h:s,l:a}=y.add(0|this.Ch,0|this.Cl,0|s,0|a)),({h:c,l:u}=y.add(0|this.Dh,0|this.Dl,0|c,0|u)),({h:l,l:h}=y.add(0|this.Eh,0|this.El,0|l,0|h)),({h:d,l:f}=y.add(0|this.Fh,0|this.Fl,0|d,0|f)),({h:p,l:m}=y.add(0|this.Gh,0|this.Gl,0|p,0|m)),({h:g,l:k}=y.add(0|this.Hh,0|this.Hl,0|g,0|k)),this.set(n,r,i,o,s,a,c,u,l,h,d,f,p,m,g,k)}roundClean(){w.fill(0),_.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class S extends k{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class x extends k{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}const I=d((()=>new k));d((()=>new S)),d((()=>new x));var A=n(15866),E=n(13550),T=n.n(E),P=n(10011),C=n.n(P);const M=(t,e,n)=>t&e^~t&n,O=(t,e,n)=>t&e^t&n^e&n,R=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
1734187,3204031479,3329325298]),B=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),j=new Uint32Array(64);class N extends f{constructor(){super(64,32,8,!1),this.A=0|B[0],this.B=0|B[1],this.C=0|B[2],this.D=0|B[3],this.E=0|B[4],this.F=0|B[5],this.G=0|B[6],this.H=0|B[7]}get(){const{A:t,B:e,C:n,D:r,E:i,F:o,G:s,H:a}=this;return[t,e,n,r,i,o,s,a]}set(t,e,n,r,i,o,s,a){this.A=0|t,this.B=0|e,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|a}process(t,e){for(let u=0;u<16;u++,e+=4)j[u]=t.getUint32(e,!1);for(let h=16;h<64;h++){const t=j[h-15],e=j[h-2],n=u(t,7)^u(t,18)^t>>>3,r=u(e,17)^u(e,19)^e>>>10;j[h]=r+j[h-7]+n+j[h-16]|0}let{A:n,B:r,C:i,D:o,E:s,F:a,G:c,H:l}=this;for(let h=0;h<64;h++){const t=l+(u(s,6)^u(s,11)^u(s,25))+M(s,a,c)+R[h]+j[h]|0,e=(u(n,2)^u(n,13)^u(n,22))+O(n,r,i)|0;l=c,c=a,a=s,s=o+t|0,o=i,i=r,r=n,n=t+e|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,o=o+this.D|0,s=s+this.E|0,a=a+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(n,r,i,o,s,a,c,l)}roundClean(){j.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const L=d((()=>new N));var D=n(25532),z=n(39386),F=n(40475),U=n(53471),W=n(31198),G=n.n(W),V=n(66855),K=n(89062);const[H,q,$]=[[],[],[]],Z=BigInt(0),Y=BigInt(1),X=BigInt(2),J=BigInt(7),Q=BigInt(256),tt=BigInt(113);for(let di=0,fi=Y,pi=1,mi=0;di<24;di++){[pi,mi]=[mi,(2*pi+3*mi)%5],H.push(2*(5*mi+pi)),q.push((di+1)*(di+2)/2%64);let t=Z;for(let e=0;e<7;e++)fi=(fi<<Y^(fi>>J)*tt)%Q,fi&X&&(t^=Y<<(Y<<BigInt(e))-Y);$.push(t)}const[et,nt]=y.split($,!0),rt=(t,e,n)=>n>32?y.rotlBH(t,e,n):y.rotlSH(t,e,n),it=(t,e,n)=>n>32?y.rotlBL(t,e,n):y.rotlSL(t,e,n);class ot extends h{constructor(t,e,n,r=!1,i=24){if(super(),this.blockLen=t,this.suffix=e,this.outputLen=n,this.enableXOF=r,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,a.number(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");var o;this.state=new Uint8Array(200),this.state32=(o=this.state,new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4)))}keccak(){!function(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let r=0;r<10;r++)n[r]=t[r]^t[r+10]^t[r+20]^t[r+30]^t[r+40];for(let r=0;r<10;r+=2){const e=(r+8)%10,i=(r+2)%10,o=n[i],s=n[i+1],a=rt(o,s,1)^n[e],c=it(o,s,1)^n[e+1];for(let n=0;n<50;n+=10)t[r+n]^=a,t[r+n+1]^=c}let e=t[2],i=t[3];for(let n=0;n<24;n++){const r=q[n],o=rt(e,i,r),s=it(e,i,r),a=H[n];e=t[a],i=t[a+1],t[a]=o,t[a+1]=s}for(let r=0;r<50;r+=10){for(let e=0;e<10;e++)n[e]=t[r+e];for(let e=0;e<10;e++)t[r+e]^=~n[(e+2)%10]&n[(e+4)%10]}t[0]^=et[r],t[1]^=nt[r]}n.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){a.exists(this);const{blockLen:e,state:n}=this,r=(t=l(t)).length;for(let i=0;i<r;){const o=Math.min(e-this.pos,r-i);for(let e=0;e<o;e++)n[this.pos++]^=t[i++];this.pos===e&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:e,pos:n,blockLen:r}=this;t[n]^=e,0!==(128&e)&&n===r-1&&this.keccak(),t[r-1]^=128,this.keccak()}writeInto(t){a.exists(this,!1),a.bytes(t),this.finish();const e=this.state,{blockLen:n}=this;for(let r=0,i=t.length;r<i;){this.posOut>=n&&this.keccak();const o=Math.min(n-this.posOut,i-r);t.set(e.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return a.number(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(a.output(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:e,suffix:n,outputLen:r,rounds:i,enableXOF:o}=this;return t||(t=new ot(e,n,r,o,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=n,t.outputLen=r,t.enableXOF=o,t.destroyed=this.destroyed,t}}const st=(t,e,n)=>d((()=>new ot(e,t,n))),at=(st(6,144,28),st(6,136,32),st(6,104,48),st(6,72,64),st(1,144,28),st(1,136,32)),ct=(st(1,104,48),st(1,72,64),(t,e,n)=>function(t){const e=(e,n)=>t(n).update(l(e)).digest(),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=e=>t(e),e}(((r={})=>new ot(e,t,void 0===r.dkLen?n:r.dkLen,!0))));ct(31,168,16),ct(31,136,32);class ut extends h{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,a.hash(t);const n=l(e);if(this.iHash=t.create(),"function"!==typeof this.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const r=this.blockLen,i=new Uint8Array(r);i.set(n.length>r?t.create().update(n).digest():n);for(let o=0;o<i.length;o++)i[o]^=54;this.iHash.update(i),this.oHash=t.create();for(let o=0;o<i.length;o++)i[o]^=106;this.oHash.update(i),i.fill(0)}update(t){return a.exists(this),this.iHash.update(t),this}digestInto(t){a.exists(this),a.bytes(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:e,iHash:n,finished:r,destroyed:i,blockLen:o,outputLen:s}=this;return(t=t).finished=r,t.destroyed=i,t.blockLen=o,t.outputLen=s,t.oHash=e._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const lt=(t,e,n)=>new ut(t,e).update(n).digest();lt.create=(t,e)=>new ut(t,e);var ht=n(27760);A.P6.sha512Sync=(...t)=>I(A.P6.concatBytes(...t));const dt=A.P6.randomPrivateKey,ft=()=>{const t=A.P6.randomPrivateKey(),e=pt(t),n=new Uint8Array(64);return n.set(t),n.set(e,32),{publicKey:e,secretKey:n}},pt=A.Z_.getPublicKey;function mt(t){try{return A.E9.fromHex(t,!0),!0}catch{return!1}}const gt=(t,e)=>A.Z_.sign(t,e.slice(0,32)),yt=A.Z_.verify,bt=t=>r.lW.isBuffer(t)?t:t instanceof Uint8Array?r.lW.from(t.buffer,t.byteOffset,t.byteLength):r.lW.from(t);class vt{constructor(t){Object.assign(this,t)}encode(){return r.lW.from((0,D.serialize)(_t,this))}static decode(t){return(0,D.deserialize)(_t,this,t)}
1static decodeUnchecked(t){return(0,D.deserializeUnchecked)(_t,this,t)}}class wt extends vt{constructor(t){if(super(t),this.enum="",1!==Object.keys(t).length)throw new Error("Enum can only take single value");Object.keys(t).map((t=>{this.enum=t}))}}const _t=new Map;let kt;const St=32,xt=32;let It=1;kt=Symbol.toStringTag;class At extends vt{constructor(t){if(super({}),this._bn=void 0,function(t){return void 0!==t._bn}(t))this._bn=t._bn;else{if("string"===typeof t){const e=C().decode(t);if(e.length!=xt)throw new Error("Invalid public key input");this._bn=new(T())(e)}else this._bn=new(T())(t);if(this._bn.byteLength()>xt)throw new Error("Invalid public key input")}}static unique(){const t=new At(It);return It+=1,new At(t.toBuffer())}equals(t){return this._bn.eq(t._bn)}toBase58(){return C().encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){const t=this.toBuffer();return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}toBuffer(){const t=this._bn.toArrayLike(r.lW);if(t.length===xt)return t;const e=r.lW.alloc(32);return t.copy(e,32-t.length),e}get[kt](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(t,e,n){const i=r.lW.concat([t.toBuffer(),r.lW.from(e),n.toBuffer()]),o=L(i);return new At(o)}static createProgramAddressSync(t,e){let n=r.lW.alloc(0);t.forEach((function(t){if(t.length>St)throw new TypeError("Max seed length exceeded");n=r.lW.concat([n,bt(t)])})),n=r.lW.concat([n,e.toBuffer(),r.lW.from("ProgramDerivedAddress")]);const i=L(n);if(mt(i))throw new Error("Invalid seeds, address must fall off the curve");return new At(i)}static async createProgramAddress(t,e){return this.createProgramAddressSync(t,e)}static findProgramAddressSync(t,e){let n,i=255;for(;0!=i;){try{const o=t.concat(r.lW.from([i]));n=this.createProgramAddressSync(o,e)}catch(o){if(o instanceof TypeError)throw o;i--;continue}return[n,i]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(t,e){return this.findProgramAddressSync(t,e)}static isOnCurve(t){return mt(new At(t).toBytes())}}At.default=new At("11111111111111111111111111111111"),_t.set(At,{kind:"struct",fields:[["_bn","u256"]]});class Et{constructor(t){if(this._publicKey=void 0,this._secretKey=void 0,t){const e=bt(t);if(64!==t.length)throw new Error("bad secret key size");this._publicKey=e.slice(32,64),this._secretKey=e.slice(0,32)}else this._secretKey=bt(dt()),this._publicKey=bt(pt(this._secretKey))}get publicKey(){return new At(this._publicKey)}get secretKey(){return r.lW.concat([this._secretKey,this._publicKey],64)}}const Tt=new At("BPFLoader1111111111111111111111111111111111"),Pt=1232,Ct=127,Mt=64;class Ot extends Error{constructor(t){super(`Signature ${t} has expired: block height exceeded.`),this.signature=void 0,this.signature=t}}Object.defineProperty(Ot.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});class Rt extends Error{constructor(t,e){super(`Transaction was not confirmed in ${e.toFixed(2)} seconds. It is unknown if it succeeded or failed. Check signature ${t} using the Solana Explorer or CLI tools.`),this.signature=void 0,this.signature=t}}Object.defineProperty(Rt.prototype,"name",{value:"TransactionExpiredTimeoutError"});class Bt extends Error{constructor(t){super(`Signature ${t} has expired: the nonce is no longer valid.`),this.signature=void 0,this.signature=t}}Object.defineProperty(Bt.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});class jt{constructor(t,e){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=t,this.accountKeysFromLookups=e}keySegments(){const t=[this.staticAccountKeys];return this.accountKeysFromLookups&&(t.push(this.accountKeysFromLookups.writable),t.push(this.accountKeysFromLookups.readonly)),t}get(t){for(const e of this.keySegments()){if(t<e.length)return e[t];t-=e.length}}get length(){return this.keySegments().flat().length}compileInstructions(t){if(this.length>256)throw new Error("Account index overflow encountered during compilation");const e=new Map;
1this.keySegments().flat().forEach(((t,n)=>{e.set(t.toBase58(),n)}));const n=t=>{const n=e.get(t.toBase58());if(void 0===n)throw new Error("Encountered an unknown instruction account key during compilation");return n};return t.map((t=>({programIdIndex:n(t.programId),accountKeyIndexes:t.keys.map((t=>n(t.pubkey))),data:t.data})))}}const Nt=(t="publicKey")=>z.blob(32,t),Lt=(t="signature")=>z.blob(64,t),Dt=(t="string")=>{const e=z.struct([z.u32("length"),z.u32("lengthPadding"),z.blob(z.offset(z.u32(),-8),"chars")],t),n=e.decode.bind(e),i=e.encode.bind(e),o=e;return o.decode=(t,e)=>n(t,e).chars.toString(),o.encode=(t,e,n)=>{const o={chars:r.lW.from(t,"utf8")};return i(o,e,n)},o.alloc=t=>z.u32().span+z.u32().span+r.lW.from(t,"utf8").length,o};function zt(t,e){const n=t=>{if(t.span>=0)return t.span;if("function"===typeof t.alloc)return t.alloc(e[t.property]);if("count"in t&&"elementLayout"in t){const r=e[t.property];if(Array.isArray(r))return r.length*n(t.elementLayout)}else if("fields"in t)return zt({layout:t},e[t.property]);return 0};let r=0;return t.layout.fields.forEach((t=>{r+=n(t)})),r}function Ft(t){let e=0,n=0;for(;;){let r=t.shift();if(e|=(127&r)<<7*n,n+=1,0===(128&r))break}return e}function Ut(t,e){let n=e;for(;;){let e=127&n;if(n>>=7,0==n){t.push(e);break}e|=128,t.push(e)}}function Wt(t,e){if(!t)throw new Error(e||"Assertion failed")}class Gt{constructor(t,e){this.payer=void 0,this.keyMetaMap=void 0,this.payer=t,this.keyMetaMap=e}static compile(t,e){const n=new Map,r=t=>{const e=t.toBase58();let r=n.get(e);return void 0===r&&(r={isSigner:!1,isWritable:!1,isInvoked:!1},n.set(e,r)),r},i=r(e);i.isSigner=!0,i.isWritable=!0;for(const o of t){r(o.programId).isInvoked=!0;for(const t of o.keys){const e=r(t.pubkey);e.isSigner||(e.isSigner=t.isSigner),e.isWritable||(e.isWritable=t.isWritable)}}return new Gt(e,n)}getMessageComponents(){const t=[...this.keyMetaMap.entries()];Wt(t.length<=256,"Max static account keys length exceeded");const e=t.filter((([,t])=>t.isSigner&&t.isWritable)),n=t.filter((([,t])=>t.isSigner&&!t.isWritable)),r=t.filter((([,t])=>!t.isSigner&&t.isWritable)),i=t.filter((([,t])=>!t.isSigner&&!t.isWritable)),o={numRequiredSignatures:e.length+n.length,numReadonlySignedAccounts:n.length,numReadonlyUnsignedAccounts:i.length};{Wt(e.length>0,"Expected at least one writable signer key");const[t]=e[0];Wt(t===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}return[o,[...e.map((([t])=>new At(t))),...n.map((([t])=>new At(t))),...r.map((([t])=>new At(t))),...i.map((([t])=>new At(t)))]]}extractTableLookup(t){const[e,n]=this.drainKeysFoundInLookupTable(t.state.addresses,(t=>!t.isSigner&&!t.isInvoked&&t.isWritable)),[r,i]=this.drainKeysFoundInLookupTable(t.state.addresses,(t=>!t.isSigner&&!t.isInvoked&&!t.isWritable));if(0!==e.length||0!==r.length)return[{accountKey:t.key,writableIndexes:e,readonlyIndexes:r},{writable:n,readonly:i}]}drainKeysFoundInLookupTable(t,e){const n=new Array,r=new Array;for(const[i,o]of this.keyMetaMap.entries())if(e(o)){const e=new At(i),o=t.findIndex((t=>t.equals(e)));o>=0&&(Wt(o<256,"Max lookup table index exceeded"),n.push(o),r.push(e),this.keyMetaMap.delete(i))}return[n,r]}}class Vt{constructor(t){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map((t=>new At(t))),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach((t=>this.indexToProgramIds.set(t.programIdIndex,this.accountKeys[t.programIdIndex])))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map((t=>({programIdIndex:t.programIdIndex,accountKeyIndexes:t.accounts,data:C().decode(t.data)})))}get addressTableLookups(){return[]}getAccountKeys(){return new jt(this.staticAccountKeys)}static compile(t){const e=Gt.compile(t.instructions,t.payerKey),[n,r]=e.getMessageComponents(),i=new jt(r).compileInstructions(t.instructions).map((t=>({programIdIndex:t.programIdIndex,accounts:t.accountKeyIndexes,data:C().encode(t.data)})));return new Vt({header:n,accountKeys:r,recentBlockhash:t.recentBlockhash,instructions:i})}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const e=this.header.numRequiredSignatures;if(t>=this.header.numRequiredSignatures){return t-e<this.accountKeys.length-e-this.header.numReadonlyUnsignedAccounts}return t<e-this.header.numReadonlySignedAccounts}isProgramId(t){return this.indexToProgramIds.has(t)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter(((t,e)=>!this.isProgramId(e)))}serialize(){const t=this.accountKeys.length;let e=[];Ut(e,t);const n=this.instructions.map((t=>{const{accounts:e,programIdIndex:n}=t,i=Array.from(C().decode(t.data));let o=[];Ut(o,e.length);let s=[];return Ut(s,i.length),{programIdIndex:n,keyIndicesCount:r.lW.from(o),keyIndices:e,dataLength:r.lW.from(s),data:i}}));let i=[];Ut(i,n.length);let o=r.lW.alloc(Pt);r.lW.from(i).copy(o);let s=i.length;
1n.forEach((t=>{const e=z.struct([z.u8("programIdIndex"),z.blob(t.keyIndicesCount.length,"keyIndicesCount"),z.seq(z.u8("keyIndex"),t.keyIndices.length,"keyIndices"),z.blob(t.dataLength.length,"dataLength"),z.seq(z.u8("userdatum"),t.data.length,"data")]).encode(t,o,s);s+=e})),o=o.slice(0,s);const a=z.struct([z.blob(1,"numRequiredSignatures"),z.blob(1,"numReadonlySignedAccounts"),z.blob(1,"numReadonlyUnsignedAccounts"),z.blob(e.length,"keyCount"),z.seq(Nt("key"),t,"keys"),Nt("recentBlockhash")]),c={numRequiredSignatures:r.lW.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:r.lW.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:r.lW.from([this.header.numReadonlyUnsignedAccounts]),keyCount:r.lW.from(e),keys:this.accountKeys.map((t=>bt(t.toBytes()))),recentBlockhash:C().decode(this.recentBlockhash)};let u=r.lW.alloc(2048);const l=a.encode(c,u);return o.copy(u,l),u.slice(0,l+o.length)}static from(t){let e=[...t];const n=e.shift();if(n!==(n&Ct))throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");const i=e.shift(),o=e.shift(),s=Ft(e);let a=[];for(let d=0;d<s;d++){const t=e.slice(0,xt);e=e.slice(xt),a.push(new At(r.lW.from(t)))}const c=e.slice(0,xt);e=e.slice(xt);const u=Ft(e);let l=[];for(let d=0;d<u;d++){const t=e.shift(),n=Ft(e),i=e.slice(0,n);e=e.slice(n);const o=Ft(e),s=e.slice(0,o),a=C().encode(r.lW.from(s));e=e.slice(o),l.push({programIdIndex:t,accounts:i,data:a})}const h={header:{numRequiredSignatures:n,numReadonlySignedAccounts:i,numReadonlyUnsignedAccounts:o},recentBlockhash:C().encode(r.lW.from(c)),accountKeys:a,instructions:l};return new Vt(h)}}class Kt{constructor(t){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.addressTableLookups=void 0,this.header=t.header,this.staticAccountKeys=t.staticAccountKeys,this.recentBlockhash=t.recentBlockhash,this.compiledInstructions=t.compiledInstructions,this.addressTableLookups=t.addressTableLookups}get version(){return 0}get numAccountKeysFromLookups(){let t=0;for(const e of this.addressTableLookups)t+=e.readonlyIndexes.length+e.writableIndexes.length;return t}getAccountKeys(t){let e;if(t&&"accountKeysFromLookups"in t&&t.accountKeysFromLookups){if(this.numAccountKeysFromLookups!=t.accountKeysFromLookups.writable.length+t.accountKeysFromLookups.readonly.length)throw new Error("Failed to get account keys because of a mismatch in the number of account keys from lookups");e=t.accountKeysFromLookups}else if(t&&"addressLookupTableAccounts"in t&&t.addressLookupTableAccounts)e=this.resolveAddressTableLookups(t.addressLookupTableAccounts);else if(this.addressTableLookups.length>0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new jt(this.staticAccountKeys,e)}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const e=this.header.numRequiredSignatures,n=this.staticAccountKeys.length;if(t>=n){return t-n<this.addressTableLookups.reduce(((t,e)=>t+e.writableIndexes.length),0)}if(t>=this.header.numRequiredSignatures){return t-e<n-e-this.header.numReadonlyUnsignedAccounts}return t<e-this.header.numReadonlySignedAccounts}resolveAddressTableLookups(t){const e={writable:[],readonly:[]};for(const n of this.addressTableLookups){const r=t.find((t=>t.key.equals(n.accountKey)));if(!r)throw new Error(`Failed to find address lookup table account for table key ${n.accountKey.toBase58()}`);for(const t of n.writableIndexes){if(!(t<r.state.addresses.length))throw new Error(`Failed to find address for index ${t} in address lookup table ${n.accountKey.toBase58()}`);e.writable.push(r.state.addresses[t])}for(const t of n.readonlyIndexes){if(!(t<r.state.addresses.length))throw new Error(`Failed to find address for index ${t} in address lookup table ${n.accountKey.toBase58()}`);e.readonly.push(r.state.addresses[t])}}return e}static compile(t){const e=Gt.compile(t.instructions,t.payerKey),n=new Array,r={writable:new Array,readonly:new Array},i=t.addressLookupTableAccounts||[];for(const c of i){const t=e.extractTableLookup(c);if(void 0!==t){const[e,{writable:i,readonly:o}]=t;n.push(e),r.writable.push(...i),r.readonly.push(...o)}}const[o,s]=e.getMessageComponents(),a=new jt(s,r).compileInstructions(t.instructions);return new Kt({header:o,staticAccountKeys:s,recentBlockhash:t.recentBlockhash,compiledInstructions:a,addressTableLookups:n})}serialize(){const t=Array();Ut(t,this.staticAccountKeys.length);const e=this.serializeInstructions(),n=Array();Ut(n,this.compiledInstructions.length);const r=this.serializeAddressTableLookups(),i=Array();Ut(i,this.addressTableLookups.length);const o=z.struct([z.u8("prefix"),z.struct([z.u8("numRequiredSignatures"),z.u8("numReadonlySignedAccounts"),z.u8("numReadonlyUnsignedAccounts")],"header"),z.blob(t.length,"staticAccountKeysLength"),z.seq(Nt(),this.staticAccountKeys.length,"staticAccountKeys"),Nt("recentBlockhash"),z.blob(n.length,"instructionsLength"),z.blob(e.length,"serializedInstructions"),z.blob(i.length,"addressTableLookupsLength"),z.blob(r.length,"serializedAddressTableLookups")]),s=new Uint8Array(Pt),a=o.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(t),staticAccountKeys:this.staticAccountKeys.map((t=>t.toBytes())),recentBlockhash:C().decode(this.recentBlockhash),instructionsLength:new Uint8Array(n),serializedInstructions:e,addressTableLookupsLength:new Uint8Array(i),serializedAddressTableLookups:r},s);return s.slice(0,a)}serializeInstructions(){let t=0;const e=new Uint8Array(Pt);for(const n of this.compiledInstructions){const r=Array();Ut(r,n.accountKeyIndexes.length);const i=Array();Ut(i,n.data.length);t+=z.struct([z.u8("programIdIndex"),z.blob(r.length,"encodedAccountKeyIndexesLength"),z.seq(z.u8(),n.accountKeyIndexes.length,"accountKeyIndexes"),z.blob(i.length,"encodedDataLength"),z.blob(n.data.length,"data")]).encode({programIdIndex:n.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(r),accountKeyIndexes:n.accountKeyIndexes,encodedDataLength:new Uint8Array(i),data:n.data},e,t)}return e.slice(0,t)}serializeAddressTableLookups(){let t=0;const e=new Uint8Array(Pt);for(const n of this.addressTableLookups){const r=Array();Ut(r,n.writableIndexes.length);const i=Array();Ut(i,n.readonlyIndexes.length);t+=z.struct([Nt("accountKey"),z.blob(r.length,"encodedWritableIndexesLength"),z.seq(z.u8(),n.writableIndexes.length,"writableIndexes"),z.blob(i.length,"encodedReadonlyIndexesLength"),z.seq(z.u8(),n.readonlyIndexes.length,"readonlyIndexes")]).encode({accountKey:n.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(r),writableIndexes:n.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(i),readonlyIndexes:n.readonlyIndexes},e,t)}return e.slice(0,t)}static deserialize(t){let e=[...t];const n=e.shift(),r=n&Ct;Wt(n!==r,"Expected versioned message but received legacy message");Wt(0===r,`Expected versioned message with version 0 but found version ${r}`);const i={numRequiredSignatures:e.shift(),numReadonlySignedAccounts:e.shift(),numReadonlyUnsignedAccounts:e.shift()},o=[],s=Ft(e);for(let d=0;d<s;d++)o.push(new At(e.splice(0,xt)));const a=C().encode(e.splice(0,xt)),c=Ft(e),u=[];for(let d=0;d<c;d++){const t=e.shift(),n=Ft(e),r=e.splice(0,n),i=Ft(e),o=new Uint8Array(e.splice(0,i));u.push({programIdIndex:t,accountKeyIndexes:r,data:o})}const l=Ft(e),h=[];for(let d=0;d<l;d++){const t=new At(e.splice(0,xt)),n=Ft(e),r=e.splice(0,n),i=Ft(e),o=e.splice(0,i);h.push({accountKey:t,writableIndexes:r,readonlyIndexes:o})}return new Kt({header:i,staticAccountKeys:o,recentBlockhash:a,compiledInstructions:u,addressTableLookups:h})}}const Ht={deserializeMessageVersion(t){const e=t[0],n=e&Ct;return n===e?"legacy":n},deserialize:t=>{const e=Ht.deserializeMessageVersion(t);if("legacy"===e)return Vt.from(t);if(0===e)return Kt.deserialize(t);throw new Error(`Transaction message version ${e} deserialization is not supported`)}};let qt;!function(t){t[t.BLOCKHEIGHT_EXCEEDED=0]="BLOCKHEIGHT_EXCEEDED",t[t.PROCESSED=1]="PROCESSED",t[t.TIMED_OUT=2]="TIMED_OUT",t[t.NONCE_INVALID=3]="NONCE_INVALID"}(qt||(qt={}));const $t=r.lW.alloc(Mt).fill(0);class Zt{constructor(t){this.keys=void 0,this.programId=void 0,this.data=r.lW.alloc(0),this.programId=t.programId,this.keys=t.keys,t.data&&(this.data=t.data)}toJSON(){return{keys:this.keys.map((({pubkey:t,isSigner:e,isWritable:n})=>({pubkey:t.toJSON(),isSigner:e,isWritable:n}))),programId:this.programId.toJSON(),data:[...this.data]}}}class Yt{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(t){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this.minNonceContextSlot=void 0,this._message=void 0,this._json=void 0,t)if(t.feePayer&&(this.feePayer=t.feePayer),t.signatures&&(this.signatures=t.signatures),Object.prototype.hasOwnProperty.call(t,"nonceInfo")){const{minContextSlot:e,nonceInfo:n}=t;this.minNonceContextSlot=e,this.nonceInfo=n}else if(Object.prototype.hasOwnProperty.call(t,"lastValidBlockHeight")){const{blockhash:e,lastValidBlockHeight:n}=t;this.recentBlockhash=e,this.lastValidBlockHeight=n}else{const{recentBlockhash:e,nonceInfo:n}=t;n&&(this.nonceInfo=n),this.recentBlockhash=e}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstru
1ction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map((t=>t.toJSON())),signers:this.signatures.map((({publicKey:t})=>t.toJSON()))}}add(...t){if(0===t.length)throw new Error("No instructions");return t.forEach((t=>{"instructions"in t?this.instructions=this.instructions.concat(t.instructions):"data"in t&&"programId"in t&&"keys"in t?this.instructions.push(t):this.instructions.push(new Zt(t))})),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let t,e,n;if(this.nonceInfo?(t=this.nonceInfo.nonce,e=this.instructions[0]!=this.nonceInfo.nonceInstruction?[this.nonceInfo.nonceInstruction,...this.instructions]:this.instructions):(t=this.recentBlockhash,e=this.instructions),!t)throw new Error("Transaction recentBlockhash required");if(e.length<1&&console.warn("No instructions provided"),this.feePayer)n=this.feePayer;else{if(!(this.signatures.length>0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");n=this.signatures[0].publicKey}for(let p=0;p<e.length;p++)if(void 0===e[p].programId)throw new Error(`Transaction instruction index ${p} has undefined program id`);const r=[],i=[];e.forEach((t=>{t.keys.forEach((t=>{i.push({...t})}));const e=t.programId.toString();r.includes(e)||r.push(e)})),r.forEach((t=>{i.push({pubkey:new At(t),isSigner:!1,isWritable:!1})}
1));const o=[];i.forEach((t=>{const e=t.pubkey.toString(),n=o.findIndex((t=>t.pubkey.toString()===e));n>-1?(o[n].isWritable=o[n].isWritable||t.isWritable,o[n].isSigner=o[n].isSigner||t.isSigner):o.push(t)})),o.sort((function(t,e){return t.isSigner!==e.isSigner?t.isSigner?-1:1:t.isWritable!==e.isWritable?t.isWritable?-1:1:t.pubkey.toBase58().localeCompare(e.pubkey.toBase58())}));const s=o.findIndex((t=>t.pubkey.equals(n)));if(s>-1){const[t]=o.splice(s,1);t.isSigner=!0,t.isWritable=!0,o.unshift(t)}else o.unshift({pubkey:n,isSigner:!0,isWritable:!0});for(const p of this.signatures){const t=o.findIndex((t=>t.pubkey.equals(p.publicKey)));if(!(t>-1))throw new Error(`unknown signer: ${p.publicKey.toString()}`);o[t].isSigner||(o[t].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))}let a=0,c=0,u=0;const l=[],h=[];o.forEach((({pubkey:t,isSigner:e,isWritable:n})=>{e?(l.push(t.toString()),a+=1,n||(c+=1)):(h.push(t.toString()),n||(u+=1))}));const d=l.concat(h),f=e.map((t=>{const{data:e,programId:n}=t;return{programIdIndex:d.indexOf(n.toString()),accounts:t.keys.map((t=>d.indexOf(t.pubkey.toString()))),data:C().encode(e)}}));return f.forEach((t=>{Wt(t.programIdIndex>=0),t.accounts.forEach((t=>Wt(t>=0)))})),new Vt({header:{numRequiredSignatures:a,numReadonlySignedAccounts:c,numReadonlyUnsignedAccounts:u},accountKeys:d,recentBlockhash:t,instructions:f})}_compile(){const t=this.compileMessage(),e=t.accountKeys.slice(0,t.header.numRequiredSignatures);if(this.signatures.length===e.length){if(this.signatures.every(((t,n)=>e[n].equals(t.publicKey))))return t}return this.signatures=e.map((t=>({signature:null,publicKey:t}))),t}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(t){return(await t.getFeeForMessage(this.compileMessage())).value}setSigners(...t){if(0===t.length)throw new Error("No signers");const e=new Set;this.signatures=t.filter((t=>{const n=t.toString();return!e.has(n)&&(e.add(n),!0)})).map((t=>({signature:null,publicKey:t})))}sign(...t){if(0===t.length)throw new Error("No signers");const e=new Set,n=[];for(const i of t){const t=i.publicKey.toString();e.has(t)||(e.add(t),n.push(i))}this.signatures=n.map((t=>({signature:null,publicKey:t.publicKey})));const r=this._compile();this._partialSign(r,...n)}partialSign(...t){if(0===t.length)throw new Error("No signers");const e=new Set,n=[];for(const i of t){const t=i.publicKey.toString();e.has(t)||(e.add(t),n.push(i))}const r=this._compile();this._partialSign(r,...n)}_partialSign(t,...e){const n=t.serialize();e.forEach((t=>{const e=gt(n,t.secretKey);this._addSignature(t.publicKey,bt(e))}))}addSignature(t,e){this._compile(),this._addSignature(t,e)}_addSignature(t,e){Wt(64===e.length);const n=this.signatures.findIndex((e=>t.equals(e.publicKey)));if(n<0)throw new Error(`unknown signer: ${t.toString()}`);this.signatures[n].signature=r.lW.from(e)}verifySignatures(t){return this._verifySignatures(this.serializeMessage(),void 0===t||t)}_verifySignatures(t,e){for(const{signature:n,publicKey:r}of this.signatures)if(null===n){if(e)return!1}else if(!yt(n,t,r.toBytes()))return!1;return!0}serialize(t){const{requireAllSignatures:e,verifySignatures:n}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),r=this.serializeMessage();if(n&&!this._verifySignatures(r,e))throw new Error("Signature verification failed");return this._serialize(r)}_serialize(t){const{signatures:e}=this,n=[];Ut(n,e.length);const i=n.length+64*e.length+t.length,o=r.lW.alloc(i);return Wt(e.length<256),r.lW.from(n).copy(o,0),e.forEach((({signature:t},e)=>{null!==t&&(Wt(64===t.length,"signature has invalid length"),r.lW.from(t).copy(o,n.length+64*e))})),t.copy(o,n.length+64*e.length),Wt(o.length<=Pt,`Transaction too large: ${o.length} > ${Pt}`),o}get keys(){return Wt(1===this.instructions.length),this.instructions[0].keys.map((t=>t.pubkey))}get programId(){return Wt(1===this.instructions.length),this.instructions[0].programId}get data(){return Wt(1===this.instructions.length),this.instructions[0].data}static from(t){let e=[...t];const n=Ft(e);let i=[];for(let o=0;o<n;o++){const t=e.slice(0,Mt);e=e.slice(Mt),i.push(C().encode(r.lW.from(t)))}return Yt.populate(Vt.from(e),i)}static populate(t,e=[]){const n=new Yt;return n.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(n.feePayer=t.accountKeys[0]),e.forEach(((e,r)=>{const i={signature:e==C().encode($t)?null:C().decode(e),publicKey:t.accountKeys[r]};n.signatures.push(i)})),t.instructions.forEach((e=>{const r=e.accounts.map((e=>{const r=t.accountKeys[e];return{pubkey:r,isSigner:n.signatures.some((t=>t.publicKey.toString()===r.toString()))||t.isAccountSigner(e),isWritable:t.isAccountWritable(e)}}));n.instructions.push(new Zt({keys:r,programId:t.accountKeys[e.programIdIndex],data:C().decode(e.data)}))})),n._message=t,n._json=n.toJSON(),n}}class Xt{constructor(t){this.payerKey=void 0,this.instructions=void 0,this.recentBlockhash=void 0,this.payerKey=t.payerKey,this.instructions=t.instructions,this.recentBlockhash=t.recentBlockhash}static decompile(t,e){const{header:n,compiledInstructions:r,recentBlockhash:i}=t,{numRequiredSignatures:o,numReadonlySignedAccounts:s,numReadonlyUnsignedAccounts:a}=n,c=o-s;Wt(c>
10,"Message header is invalid");const u=t.staticAccountKeys.length-o-a;Wt(u>=0,"Message header is invalid");const l=t.getAccountKeys(e),h=l.get(0);if(void 0===h)throw new Error("Failed to decompile message because no account keys were found");const d=[];for(const f of r){const t=[];for(const r of f.accountKeyIndexes){const e=l.get(r);if(void 0===e)throw new Error(`Failed to find key for account key index ${r}`);let i;i=r<o?r<c:r<l.staticAccountKeys.length?r-o<u:r-l.staticAccountKeys.length<l.accountKeysFromLookups.writable.length,t.push({pubkey:e,isSigner:r<n.numRequiredSignatures,isWritable:i})}const e=l.get(f.programIdIndex);if(void 0===e)throw new Error(`Failed to find program id for program id index ${f.programIdIndex}`);d.push(new Zt({programId:e,data:bt(f.data),keys:t}))}return new Xt({payerKey:h,instructions:d,recentBlockhash:i})}compileToLegacyMessage(){return Vt.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions})}compileToV0Message(t){return Kt.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions,addressLookupTableAccounts:t})}}class Jt{get version(){return this.message.version}constructor(t,e){if(this.signatures=void 0,this.message=void 0,void 0!==e)Wt(e.length===t.header.numRequiredSignatures,"Expected signatures length to be equal to the number of required signatures"),this.signatures=e;else{const e=[];for(let n=0;n<t.header.numRequiredSignatures;n++)e.push(new Uint8Array(Mt));this.signatures=e}this.message=t}serialize(){const t=this.message.serialize(),e=Array();Ut(e,this.signatures.length);const n=z.struct([z.blob(e.length,"encodedSignaturesLength"),z.seq(Lt(),this.signatures.length,"signatures"),z.blob(t.length,"serializedMessage")]),r=new Uint8Array(2048),i=n.encode({encodedSignaturesLength:new Uint8Array(e),signatures:this.signatures,serializedMessage:t},r);return r.slice(0,i)}static deserialize(t){let e=[...t];const n=[],r=Ft(e);for(let o=0;o<r;o++)n.push(new Uint8Array(e.splice(0,Mt)));const i=Ht.deserialize(new Uint8Array(e));return new Jt(i,n)}sign(t){const e=this.message.serialize(),n=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures);for(const r of t){const t=n.findIndex((t=>t.equals(r.publicKey)));Wt(t>=0,`Cannot sign with non signer key ${r.publicKey.toBase58()}`),this.signatures[t]=gt(e,r.secretKey)}}addSignature(t,e){Wt(64===e.byteLength,"Signature must be 64 bytes long");const n=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex((e=>e.equals(t)));Wt(n>=0,`Can not add signature; \`${t.toBase58()}\` is not required to sign this transaction`),this.signatures[n]=e}}const Qt=new At("SysvarC1ock11111111111111111111111111111111"),te=new At("SysvarEpochSchedu1e111111111111111111111111"),ee=new At("Sysvar1nstructions1111111111111111111111111"),ne=new At("SysvarRecentB1ockHashes11111111111111111111"),re=new At("SysvarRent111111111111111111111111111111111"),ie=new At("SysvarRewards111111111111111111111111111111"),oe=new At("SysvarS1otHashes111111111111111111111111111"),se=new At("SysvarS1otHistory11111111111111111111111111"),ae=new At("SysvarStakeHistory1111111111111111111111111");async function ce(t,e,n,r){const i=r&&{skipPreflight:r.skipPreflight,preflightCommitment:r.preflightCommitment||r.commitment,maxRetries:r.maxRetries,minContextSlot:r.minContextSlot},o=await t.sendTransaction(e,n,i);let s;if(null!=e.recentBlockhash&&null!=e.lastValidBlockHeight)s=(await t.confirmTransaction({abortSignal:r?.abortSignal,signature:o,blockhash:e.recentBlockhash,lastValidBlockHeight:e.lastValidBlockHeight},r&&r.commitment)).value;else if(null!=e.minNonceContextSlot&&null!=e.nonceInfo){const{nonceInstruction:n}=e.nonceInfo,i=n.keys[0].pubkey;s=(await t.confirmTransaction({abortSignal:r?.abortSignal,minContextSlot:e.minNonceContextSlot,nonceAccountPubkey:i,nonceValue:e.nonceInfo.nonce,signature:o},r&&r.commitment)).value}else null!=r?.abortSignal&&console.warn("sendAndConfirmTransaction(): A transaction with a deprecated confirmation strategy was supplied along with an `abortSignal`. Only transactions having `lastV
1alidBlockHeight` or a combination of `nonceInfo` and `minNonceContextSlot` are abortable."),s=(await t.confirmTransaction(o,r&&r.commitment)).value;if(s.err)throw new Error(`Transaction ${o} failed (${JSON.stringify(s)})`);return o}function ue(t){return new Promise((e=>setTimeout(e,t)))}function le(t,e){const n=t.layout.span>=0?t.layout.span:zt(t,e),i=r.lW.alloc(n),o=Object.assign({instruction:t.index},e);return t.layout.encode(o,i),i}function he(t,e){let n;try{n=t.layout.decode(e)}catch(r){throw new Error("invalid instruction; "+r)}if(n.instruction!==t.index)throw new Error(`invalid instruction; instruction index mismatch ${n.instruction} != ${t.index}`);return n}const de=z.nu64("lamportsPerSignature"),fe=z.struct([z.u32("version"),z.u32("state"),Nt("authorizedPubkey"),Nt("nonce"),z.struct([de],"feeCalculator")]),pe=fe.span;class me{constructor(t){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=t.authorizedPubkey,this.nonce=t.nonce,this.feeCalculator=t.feeCalculator}static fromAccountData(t){const e=fe.decode(bt(t),0);return new me({authorizedPubkey:new At(e.authorizedPubkey),nonce:new At(e.nonce).toString(),feeCalculator:e.feeCalculator})}}const ge=(ye=8,t=>{const e=(0,z.blob)(ye,t),{encode:n,decode:i}=(t=>({decode:t.decode.bind(t),encode:t.encode.bind(t)}))(e),o=e;return o.decode=(t,e)=>{const n=i(t,e);return(0,F.toBigIntLE)(r.lW.from(n))},o.encode=(t,e,r)=>{const i=(0,F.toBufferLE)(t,ye);return n(i,e,r)},o});var ye;class be{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=z.u32("instruction").decode(t.data);let n;for(const[r,i]of Object.entries(ve))if(i.index==e){n=r;break}if(!n)throw new Error("Instruction type incorrect; not a SystemInstruction");return n}static decodeCreateAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:e,space:n,programId:r}=he(ve.Create,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,lamports:e,space:n,programId:new At(r)}}static decodeTransfer(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:e}=he(ve.Transfer,t.data);return{fromPubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,lamports:e}}static decodeTransferWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e,seed:n,programId:r}=he(ve.TransferWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,basePubkey:t.keys[1].pubkey,toPubkey:t.keys[2].pubkey,lamports:e,seed:n,programId:new At(r)}}static decodeAllocate(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{space:e}=he(ve.Allocate,t.data);return{accountPubkey:t.keys[0].pubkey,space:e}}static decodeAllocateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:e,seed:n,space:r,programId:i}=he(ve.AllocateWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new At(e),seed:n,space:r,programId:new At(i)}}static decodeAssign(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{programId:e}=he(ve.Assign,t.data);return{accountPubkey:t.keys[0].pubkey,programId:new At(e)}}static decodeAssignWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:e,seed:n,programId:r}=he(ve.AssignWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new At(e),seed:n,programId:new At(r)}}static decodeCreateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{base:e,seed:n,lamports:r,space:i,programId:o}=he(ve.CreateWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,basePubkey:new At(e),seed:n,lamports:r,space:i,programId:new At(o)}}static decodeNonceInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{authorized:e}=he(ve.InitializeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:new At(e)}}static decodeNonceAdvance(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),he(ve.AdvanceNonceAccount,t.data),{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static decodeNonceWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:e}=he(ve.WithdrawNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:e}}static decodeNonceAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:e}=he(ve.AuthorizeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[1].pubkey,newAuthorizedPubkey:new At(e)}}static checkProgramId(t){if(!t.equals(we.programId))throw new Error("invalid instruction; programId is not SystemProgram")}static checkKeyLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}const ve=Object.freeze({Create:{index:0,layout:z.struct([z.u32("instruction"),z.ns64("lamports"),z.ns64("space"),Nt("programId")])},Assign:{index:1,layout:z.struct([z.u32("instruction"),Nt("programId")])},Transfer:{index:2,layout:z.struct([z.u32("instruction"),ge("lamports")])},CreateWithSeed:{index:3,layout:z.struct([z.u32("instruction"),Nt("base"),Dt("seed"),z.ns64("lamports"),z.ns64("space"),Nt("programId")])},AdvanceNonceAccount:{index:4,layout:z.struct([z.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:z.struct([z.u32("instruction"),z.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:z.struct([z.u32("instruction"),Nt("authorized")])},AuthorizeNonceAccount:{index:7,layout:z.struct([z.u32("instruction"),Nt("authorized")])},Allocate:{index:8,layout:z.struct([z.u32("instruction"),z.ns64("space")])},AllocateWithSeed:{index:9,layout:z.struct([z.u32("instruction"),Nt("base"),Dt("seed"),z.ns64("space"),Nt("programId")])},AssignWithSeed:{index:10,layout:z.struct([z.u32("instruction"),Nt("base"),Dt("seed"),Nt("programId")])},TransferWithSeed:{index:11,layout:z.struct([z.u32("instruction"),ge("lamports"),Dt("seed"),Nt("programId")])},UpgradeNonceAccount:{index:12,layout:z.struct([z.u32("instruction")])}});class we{constructor(){}static createAccount(t){const e=le(ve.Create,{lamports:t.lamports,space:t.space,programId:bt(t.programId.toBuffer())});return new Zt({keys:[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:e})}static transfer(t){let e,n;if("basePubkey"in t){e=le(ve.TransferWithSeed,{lamports:BigInt(t.lamports),seed:t.seed,programId:bt(t.programId.toBuffer())}),n=[{pubkey:t.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}else{e=le(ve.Transfer,{lamports:BigInt(t.lamports)}),n=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}return new Zt({keys:n,programId:this.programId,data:e})}static assign(t){let e,n;if("basePubkey"in t){e=le(ve.AssignWithSeed,{base:bt(t.basePubkey.toBuffer()),seed:t.seed,programId:bt(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{e=le(ve.Assign,{programId:bt(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new Zt({keys:n,programId:this.programId,data:e})}static createAccountWithSeed(t){const e=le(ve.CreateWithSeed,{base:bt(t.basePubkey.toBuffer()),seed:t.seed,lamports:t.lamports,space:t.space,programId:bt(t.programId.toBuffer())});let n=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!1,isWritable:!0}];return t.basePubkey!=t.fromPubkey&&n.push({pubkey:t.basePubkey,isSigner:!0,isWritable:!1}),new Zt({keys:n,programId:this.programId,data:e})}static createNonceAccount(t){const e=new Yt;"basePubkey"in t&&"seed"in t?e.add(we.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:pe,programId:this.programId})):e.add(we.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,lamports:t.lamports,space:pe,programId:this.programId}));const n={noncePubkey:t.noncePubkey,authorizedPubkey:t.authorizedPubkey};return e.add(this.nonceInitialize(n)),e}static nonceInitialize(t){const e=le(ve.InitializeNonceAccount,{authorized:bt(t.authorizedPubkey.toBuffer())}),n={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:ne,isSigner:!1,isWritable:!1},{pubkey:re,isSigner:!1,isWritable:!1}],programId:this.programId,data:e};return new Zt(n)}static nonceAdvance(t){const e=le(ve.AdvanceNonceAccount),n={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:ne,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e};return new Zt(n)}static nonceWithdraw(t){const e=le(ve.WithdrawNonceAccount,{lamports:t.lamports});return new Zt({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0},{pubkey:ne,isSigner:!1,isWritable:!1},{pubkey:re,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e})}static nonceAuthorize(t){const e=le(ve.AuthorizeNonceAccount,{authorized:bt(t.newAuthorizedPubkey.toBuffer())});return new Zt({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e})}static allocate(t){let e,n;if("basePubkey"in t){e=le(ve.AllocateWithSeed,{base:bt(t.basePubkey.toBuffer()),seed:t.seed,space:t.space,programId:bt(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{e=le(ve.Allocate,{space:t.space}),n=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new Zt({keys:n,programId:this.programId,data:e})}}we.programId=new At("11111111111111111111111111111111");const _e=Pt-300;class ke{constructor(){}static getMinNumSignatures(t){return 2*(Math.ceil(t/ke.chunkSize)+1+1)}static async load(t,e,n,i,o){{const r=await t.getMinimumBalanceForRentExemption(o.length),s=await t.getAccountInfo(n.publicKey,"confirmed");let a=null;if(null!==s){if(s.executable)return console.error("Program load failed, account is already executable"),!1;s.data.length!==o.length&&(a=a||new Yt,a.add(we.allocate({accountPubkey:n.publicKey,space:o.length}))),s.owner.equals(i)||(a=a||new Yt,a.add(we.assign({accountPubkey:n.publicKey,programId:i}))),s.lamports<r&&(a=a||new Yt,a.add(we.transfer({fromPubkey:e.publicKey,toPubkey:n.publicKey,lamports:r-s.lamports})))}else a=(new Yt).add(we.createAccount({fromPubkey:e.publicKey,newAccountPubkey:n.publicKey,lamports:r>0?r:1,space:o.length,programId:i}));null!==a&&await ce(t,a,[e,n],{commitment:"confirmed"})}const s=z.struct([z.u32("instruction"),z.u32("offset"),z.u32("bytesLength"),z.u32("bytesLengthPadding"),z.seq(z.u8("byte"),z.offset(z.u32(),-8),"bytes")]),a=ke.chunkSize;let c=0,u=o,l=[];for(;u.length>0;){const o=u.slice(0,a),h=r.lW.alloc(a+16);s.encode({instruction:0,offset:c,bytes:o,bytesLength:0,bytesLengthPadding:0},h);const d=(new Yt).add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0}],programId:i,data:h});if(l.push(ce(t,d,[e,n],{commitment:"confirmed"})),t._rpcEndpoint.includes("solana.com")){const t=4;await ue(1e3/t)}c+=a,u=u.slice(a)}await Promise.all(l);{const o=z.struct([z.u32("instruction")]),s=r.lW.alloc(o.span);o.encode({instruction:1},s);const a=(new Yt).add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0},{pubkey:re,isSigner:!1,isWritable:!1}],programId:i,data:s});await ce(t,a,[e,n],{commitment:"confirmed"})}return!0}}ke.chunkSize=_e;const Se=new At("BPFLoader2111111111111111111111111111111111");class xe{static getMinNumSignatures(t){return ke.getMinNumSignatures(t)}static load(t,e,n,r,i){return ke.load(t,e,n,i,r)}}var Ie=Object.prototype.toString,Ae=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};function Ee(t,e){var n,r,i,o,s,a,c;if(!0===t)return"true";if(!1===t)return"false";switch(typeof t){case"object":if(null===t)return null;if(t.toJSON&&"function"===typeof t.toJSON)return Ee(t.toJSON(),e);if("[object Array]"===(c=Ie.call(t))){for(i="[",r=t.length-1,n=0;n<r;n++)i+=Ee(t[n],!0)+",";return r>-1&&(i+=Ee(t[n],!0)),i+"]"}
1if("[object Object]"===c){for(r=(o=Ae(t).sort()).length,i="",n=0;n<r;)void 0!==(a=Ee(t[s=o[n]],!1))&&(i&&(i+=","),i+=JSON.stringify(s)+":"+a),n++;return"{"+i+"}"}return JSON.stringify(t);case"function":case"undefined":return e?null:void 0;case"string":return JSON.stringify(t);default:return isFinite(t)?t:null}}var Te=function(t){var e=Ee(t,!1);if(void 0!==e)return""+e};function Pe(t){let e=0;for(;t>1;)t/=2,e++;return e}class Ce{constructor(t,e,n,r,i){this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=t,this.leaderScheduleSlotOffset=e,this.warmup=n,this.firstNormalEpoch=r,this.firstNormalSlot=i}getEpoch(t){return this.getEpochAndSlotIndex(t)[0]}getEpochAndSlotIndex(t){if(t<this.firstNormalSlot){const e=Pe(function(t){return 0===t?1:(t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,1+(t|=t>>32))}(t+32+1))-Pe(32)-1;return[e,t-(this.getSlotsInEpoch(e)-32)]}{const e=t-this.firstNormalSlot,n=Math.floor(e/this.slotsPerEpoch);return[this.firstNormalEpoch+n,e%this.slotsPerEpoch]}}getFirstSlotInEpoch(t){return t<=this.firstNormalEpoch?32*(Math.pow(2,t)-1):(t-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}getLastSlotInEpoch(t){return this.getFirstSlotInEpoch(t)+this.getSlotsInEpoch(t)-1}getSlotsInEpoch(t){return t<this.firstNormalEpoch?Math.pow(2,t+Pe(32)):this.slotsPerEpoch}}class Me extends Error{constructor(t,e){super(t),this.logs=void 0,this.logs=e}}const Oe={JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP:-32001,JSON_RPC_SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE:-32002,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE:-32003,JSON_RPC_SERVER_ERROR_BLOCK_NOT_AVAILABLE:-32004,JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY:-32005,JSON_RPC_SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE:-32006,JSON_RPC_SERVER_ERROR_SLOT_SKIPPED:-32007,JSON_RPC_SERVER_ERROR_NO_SNAPSHOT:-32008,JSON_RPC_SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED:-32009,JSON_RPC_SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX:-32010,JSON_RPC_SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE:-32011,JSON_RPC_SCAN_ERROR:-32012,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH:-32013,JSON_RPC_SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET:-32014,JSON_RPC_SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION:-32015,JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED:-32016};class Re extends Error{constructor({code:t,message:e,data:n},r){super(null!=r?`${r}: ${e}`:e),this.code=void 0,this.data=void 0,this.code=t,this.data=n,this.name="SolanaJSONRPCError"}}var Be=globalThis.fetch;class je extends V.default{constructor(t,e,n){super((t=>{const n=(0,K.default)(t,{autoconnect:!0,max_reconnects:5,reconnect:!0,reconnect_interval:1e3,...e});return this.underlyingSocket="socket"in n?n.socket:n,n}),t,e,n),this.underlyingSocket=void 0}call(...t){const e=this.underlyingSocket?.readyState;return 1===e?super.call(...t):Promise.reject(new Error("Tried to call a JSON-RPC method `"+t[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+e+")"))}notify(...t){const e=this.underlyingSocket?.readyState;return 1===e?super.notify(...t):Promise.reject(new Error("Tried to send a JSON-RPC notification `"+t[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+e+")"))}}class Ne{constructor(t){this.key=void 0,this.state=void 0,this.key=t.key,this.state=t.state}isActive(){const t=BigInt("0xffffffffffffffff");return this.state.deactivationSlot===t}static deserialize(t){const e=function(t,e){let n;try{n=t.layout.decode(e)}catch(r){throw new Error("invalid instruction; "+r)}if(n.typeIndex!==t.index)throw new Error(`invalid account data; account type mismatch ${n.typeIndex} != ${t.index}`);return n}(Le,t),n=t.length-56;Wt(n>=0,"lookup table is invalid"),Wt(n%32===0,"lookup table is invalid");const r=n/32,{addresses:i}=z.struct([z.seq(Nt(),r,"addresses")]).decode(t.slice(56));return{deactivationSlot:e.deactivationSlot,lastExtendedSlot:e.lastExtendedSlot,lastExtendedSlotStartIndex:e.lastExtendedStartIndex,authority:0!==e.authority.length?new At(e.authority[0]):void 0,addresses:i.map((t=>new At(t)))}}}const Le={index:1,layout:z.struct([z.u32("typeIndex"),ge("deactivationSlot"),z.nu64("lastExtendedSlot"),z.u8("lastExtendedStartIndex"),z.u8(),z.seq(Nt(),z.offset(z.u8(),-1),"authority")])},De=/^[^:]+:\/\/([^:[]+|\[[^\]]+\])(:\d+)?(.*)/i;const ze=(0,U.oQ)((0,U.eE)(At),(0,U.Z_)(),(t=>new At(t))),Fe=(0,U.bc)([(0,U.Z_)(),(0,U.i0)("base64")]),Ue=(0,U.oQ)((0,U.eE)(r.lW),Fe,(t=>r.lW.from(t[0],"base64"))),We=3e4;function Ge(t){let e,n;if("string"===typeof t)e=t;else if(t){const{commitment:r,...i}=t;e=r,n=i}return{commitment:e,config:n}}function Ve(t){return(0,U.G0)([(0,U.dt)({jsonrpc:(0,U.i0)("2.0"),id:(0,U.Z_)(),result:t}),(0,U.dt)({jsonrpc:(0,U.i0)("2.0"),id:(0,U.Z_)(),error:(0,U.dt)({code:(0,U._4)(),message:(0,U.Z_)(),data:(0,U.jt)((0,U.Yj)())})})])}const Ke=Ve((0,U._4)());function He(t){return(0,U.oQ)(Ve(t),Ke,(e=>"error"in e?e:{...e,result:(0,U.Ue)(e.result,t)}))}function qe(t){return He((0,U.dt)({context:(0,U.dt)({slot:(0,U.Rx)()}),value:t}))}function $e(t){return(0,U.dt)({context:(0,U.dt)({slot:(0,U.Rx)()}),value:t})}function Ze(t,e){return 0===t?new Kt({header:e.header,staticAccountKeys:e.accountKeys.map((t=>new At(t))),recentBlockhash:e.recentBlockhash,compiledInstructions:e.instructions.map((t=>({programIdIndex:t.programIdIndex,accountKeyIndexes:t.accounts,data:C().decode(t.data)}))),addressTableLookups:e.addressTableLookups}):new Vt(e)}const Ye=(0,U.dt)({foundation:(0,U.Rx)(),foundationTerm:(0,U.Rx)(),initial:(0,U.Rx)(),taper:(0,U.Rx)(),terminal:(0,U.Rx)()}),Xe=He((0,U.IX)((0,U.AG)((0,U.dt)({epoch:(0,U.Rx)(),effectiveSlot:(0,U.Rx)(),amount:(0,U.Rx)(),postBalance:(0,U.Rx)(),commission:(0,U.jt)((0,U.AG)((0,U.Rx)()))})))),Je=(0,U.dt)({total:(0,U.Rx)(),validator:(0,U.Rx)(),foundation:(0,U.Rx)(),epoch:(0,U.Rx)()}),Qe=(0,U.dt)({epoch:(0,U.Rx)(),slotIndex:(0,U.Rx)(),slotsInEpoch:(0,U.Rx)(),absoluteSlot:(0,U.Rx)(),blockHeight:(0,U.jt)((0,U.Rx)()),transactionCount:(0,U.jt)((0,U.Rx)())}),tn=(0,U.dt)({slotsPerEpoch:(0,U.Rx)(),leaderScheduleSlotOffset:(0,U.Rx)(),warmup:(0,U.O7)(),firstNormalEpoch:(0,U.Rx)(),firstNormalSlot:(0,U.Rx)()}),en=(0,U.IM)((0,U.Z_)(),(0,U.IX)((0,U.Rx)())),nn=(0,U.AG)((0,U.G0)([(0,U.dt)({}),(0,U.Z_)()])),rn=(0,U.dt)({err:nn}),on=(0,U.i0)("receivedSignature"),sn=(0,U.dt)({"solana-core":(0,U.Z_)(),"feature-set":(0,U.jt)((0,U.Rx)())}),an=qe((0,U.dt)({err:(0,U.AG)((0,U.G0)([(0,U.dt)({}),(0,U.Z_)()])),logs:(0,U.AG)((0,U.IX)((0,U.Z_)())),accounts:(0,U.jt)((0,U.AG)((0,U.IX)((0,U.AG)((0,U.dt)({executable:(0,U.O7)(),owner:(0,U.Z_)(),lamports:(0,U.Rx)(),data:(0,U.IX)((0,U.Z_)()),rentEpoch:(0,U.jt)((0,U.Rx)())}))))),unitsConsumed:(0,U.jt)((0,U.Rx)()),returnData:(0,U.jt)((0,U.AG)((0,U.dt)({programId:(0,U.Z_)(),data:(0,U.bc)([(0,U.Z_)(),(0,U.i0)("base64")])})))})),cn=qe((0,U.dt)({byIdentity:(0,U.IM)((0,U.Z_)(),(0,U.IX)((0,U.Rx)())),range:(0,U.dt)({firstSlot:(0,U.Rx)(),lastSlot:(0,U.Rx)()})}));const un=He(Ye),ln=He(Je),hn=He(Qe),dn=He(tn),fn=He(en),pn=He((0,U.Rx)()),mn=qe((0,U.dt)({total:(0,U.Rx)(),circulating:(0,U.Rx)(),nonCirculating:(0,U.Rx)(),nonCirculatingAccounts:(0,U.IX)(ze)})),gn=(0,U.dt)({amount:(0,U.Z_)(),uiAmount:(0,U.AG)((0,U.Rx)()),decimals:(0,U.Rx)(),uiAmountString:(0,U.jt)((0,U.Z_)())}),yn=qe((0,U.IX)((0,U.dt)({address:ze,amount:(0,U.Z_)(),uiAmount:(0,U.AG)((0,U.Rx)()),decimals:(0,U.Rx)(),uiAmountString:(0,U.jt)((0,U.Z_)())}))),bn=qe((0,U.IX)((0,U.dt)({pubkey:ze,account:(0,U.dt)({executable:(0,U.O7)(),owner:ze,lamports:(0,U.Rx)(),data:Ue,rentEpoch:(0,U.Rx)()})}))),vn=(0,U.dt)({program:(0,U.Z_)(),parsed:(0,U._4)(),space:(0,U.Rx)()}),wn=qe((0,U.IX)((0,U.dt)({pubkey:ze,account:(0,U.dt)({executable:(0,U.O7)(),owner:ze,lamports:(0,U.Rx)(),data:vn,rentEpoch:(0,U.Rx)()})}))),_n=qe((0,U.IX)((0,U.dt)({lamports:(0,U.Rx)(),address:ze}))),kn=(0,U.dt)({executable:(0,U.O7)(),owner:ze,lamports:(0,U.Rx)(),data:Ue,rentEpoch:(0,U.Rx)()}),Sn=(0,U.dt)({pubkey:ze,account:kn}),xn=(0,U.oQ)((0,U.G0)([(0,U.eE)(r.lW),vn]),(0,U.G0)([Fe,vn]),(t=>Array.isArray(t)?(0,U.Ue)(t,Ue):t)),In=(0,U.dt)({executable:(0,U.O7)(),owner:ze,lamports:(0,U.Rx)(),data:xn,rentEpoch:(0,U.Rx)()}),An=(0,U.dt)({pubkey:ze,account:In}),En=(0,U.dt)({state:(0,U.G0)([(0,U.i0)("active"),(0,U.i0)("inactive"),(0,U.i0)("activating"),(0,U.i0)("deactivating")]),active:(0,U.Rx)(),inactive:(0,U.Rx)()}),Tn=He((0,U.IX)((0,U.dt)({signature:(0,U.Z_)(),slot:(0,U.Rx)(),err:nn,memo:(0,U.AG)((0,U.Z_)()),blockTime:(0,U.jt)((0,U.AG)((0,U.Rx)()))}))),Pn=He((0,U.IX)((0,U.dt)({signature:(0,U.Z_)(),slot:(0,U.Rx)(),err:nn,memo:(0,U.AG)((0,U.Z_)()),blockTime:(0,U.jt)((0,U.AG)((0,U.Rx)()))}))),Cn=(0,U.dt)({subscription:(0,U.Rx)(),result:$e(kn)}),Mn=(0,U.dt)({pubkey:ze,account:kn}),On=(0,U.dt)({subscription:(0,U.Rx)(),result:$e(Mn)}),Rn=(0,U.dt)({parent:(0,U.Rx)(),slot:(0,U.Rx)(),root:(0,U.Rx)()}),Bn=(0,U.dt)({subscription:(0,U.Rx)(),result:Rn}),jn=(0,U.G0)([(0,U.dt)({type:(0,U.G0)([(0,U.i0)("firstShredReceived"),(0,U.i0)("completed"),(0,U.i0)("optimisticConfirmation"),(0,U.i0)("root")
1]),slot:(0,U.Rx)(),timestamp:(0,U.Rx)()}),(0,U.dt)({type:(0,U.i0)("createdBank"),parent:(0,U.Rx)(),slot:(0,U.Rx)(),timestamp:(0,U.Rx)()}),(0,U.dt)({type:(0,U.i0)("frozen"),slot:(0,U.Rx)(),timestamp:(0,U.Rx)(),stats:(0,U.dt)({numTransactionEntries:(0,U.Rx)(),numSuccessfulTransactions:(0,U.Rx)(),numFailedTransactions:(0,U.Rx)(),maxTransactionsPerEntry:(0,U.Rx)()})}),(0,U.dt)({type:(0,U.i0)("dead"),slot:(0,U.Rx)(),timestamp:(0,U.Rx)(),err:(0,U.Z_)()})]),Nn=(0,U.dt)({subscription:(0,U.Rx)(),result:jn}),Ln=(0,U.dt)({subscription:(0,U.Rx)(),result:$e((0,U.G0)([rn,on]))}),Dn=(0,U.dt)({subscription:(0,U.Rx)(),result:(0,U.Rx)()}),zn=(0,U.dt)({pubkey:(0,U.Z_)(),gossip:(0,U.AG)((0,U.Z_)()),tpu:(0,U.AG)((0,U.Z_)()),rpc:(0,U.AG)((0,U.Z_)()),version:(0,U.AG)((0,U.Z_)())}),Fn=(0,U.dt)({votePubkey:(0,U.Z_)(),nodePubkey:(0,U.Z_)(),activatedStake:(0,U.Rx)(),epochVoteAccount:(0,U.O7)(),epochCredits:(0,U.IX)((0,U.bc)([(0,U.Rx)(),(0,U.Rx)(),(0,U.Rx)()])),commission:(0,U.Rx)(),lastVote:(0,U.Rx)(),rootSlot:(0,U.AG)((0,U.Rx)())}),Un=He((0,U.dt)({current:(0,U.IX)(Fn),delinquent:(0,U.IX)(Fn)})),Wn=(0,U.G0)([(0,U.i0)("processed"),(0,U.i0)("confirmed"),(0,U.i0)("finalized")]),Gn=(0,U.dt)({slot:(0,U.Rx)(),confirmations:(0,U.AG)((0,U.Rx)()),err:nn,confirmationStatus:(0,U.jt)(Wn)}),Vn=qe((0,U.IX)((0,U.AG)(Gn))),Kn=He((0,U.Rx)()),Hn=(0,U.dt)({accountKey:ze,writableIndexes:(0,U.IX)((0,U.Rx)()),readonlyIndexes:(0,U.IX)((0,U.Rx)())}),qn=(0,U.dt)({signatures:(0,U.IX)((0,U.Z_)()),message:(0,U.dt)({accountKeys:(0,U.IX)((0,U.Z_)()),header:(0,U.dt)({numRequiredSignatures:(0,U.Rx)(),numReadonlySignedAccounts:(0,U.Rx)(),numReadonlyUnsignedAccounts:(0,U.Rx)()}),instructions:(0,U.IX)((0,U.dt)({accounts:(0,U.IX)((0,U.Rx)()),data:(0,U.Z_)(),programIdIndex:(0,U.Rx)()})),recentBlockhash:(0,U.Z_)(),addressTableLookups:(0,U.jt)((0,U.IX)(Hn))})}),$n=(0,U.dt)({pubkey:ze,signer:(0,U.O7)(),writable:(0,U.O7)(),source:(0,U.jt)((0,U.G0)([(0,U.i0)("transaction"),(0,U.i0)("lookupTable")]))}),Zn=(0,U.dt)({accountKeys:(0,U.IX)($n),signatures:(0,U.IX)((0,U.Z_)())}),Yn=(0,U.dt)({parsed:(0,U._4)(),program:(0,U.Z_)(),programId:ze}),Xn=(0,U.dt)({accounts:(0,U.IX)(ze),data:(0,U.Z_)(),programId:ze}),Jn=(0,U.G0)([Xn,Yn]),Qn=(0,U.G0)([(0,U.dt)({parsed:(0,U._4)(),program:(0,U.Z_)(),programId:(0,U.Z_)()}),(0,U.dt)({accounts:(0,U.IX)((0,U.Z_)()),data:(0,U.Z_)(),programId:(0,U.Z_)()})]),tr=(0,U.oQ)(Jn,Qn,(t=>"accounts"in t?(0,U.Ue)(t,Xn):(0,U.Ue)(t,Yn))),er=(0,U.dt)({signatures:(0,U.IX)((0,U.Z_)()),message:(0,U.dt)({accountKeys:(0,U.IX)($n),instructions:(0,U.IX)(tr),recentBlockhash:(0,U.Z_)(),addressTableLookups:(0,U.jt)((0,U.AG)((0,U.IX)(Hn)))})}),nr=(0,U.dt)({accountIndex:(0,U.Rx)(),mint:(0,U.Z_)(),owner:(0,U.jt)((0,U.Z_)()),uiTokenAmount:gn}),rr=(0,U.dt)({writable:(0,U.IX)(ze),readonly:(0,U.IX)(ze)}),ir=(0,U.dt)({err:nn,fee:(0,U.Rx)(),innerInstructions:(0,U.jt)((0,U.AG)((0,U.IX)((0,U.dt)({index:(0,U.Rx)(),instructions:(0,U.IX)((0,U.dt)({accounts:(0,U.IX)((0,U.Rx)()),data:(0,U.Z_)(),programIdIndex:(0,U.Rx)()}))})))),preBalances:(0,U.IX)((0,U.Rx)()),postBalances:(0,U.IX)((0,U.Rx)()),logMessages:(0,U.jt)((0,U.AG)((0,U.IX)((0,U.Z_)()))),preTokenBalances:(0,U.jt)((0,U.AG)((0,U.IX)(nr))),postTokenBalances:(0,U.jt)((0,U.AG)((0,U.IX)(nr))),loadedAddresses:(0,U.jt)(rr),computeUnitsConsumed:(0,U.jt)((0,U.Rx)())}),or=(0,U.dt)({err:nn,fee:(0,U.Rx)(),innerInstructions:(0,U.jt)((0,U.AG)((0,U.IX)((0,U.dt)({index:(0,U.Rx)(),instructions:(0,U.IX)(tr)})))),preBalances:(0,U.IX)((0,U.Rx)()),postBalances:(0,U.IX)((0,U.Rx)()),logMessages:(0,U.jt)((0,U.AG)((0,U.IX)((0,U.Z_)()))),preTokenBalances:(0,U.jt)((0,U.AG)((0,U.IX)(nr))),postTokenBalances:(0,U.jt)((0,U.AG)((0,U.IX)(nr))),loadedAddresses:(0,U.jt)(rr),computeUnitsConsumed:(0,U.jt)((0,U.Rx)())}),sr=(0,U.G0)([(0,U.i0)(0),(0,U.i0)("legacy")]),ar=(0,U.dt)({pubkey:(0,U.Z_)(),lamports:(0,U.Rx)(),postBalance:(0,U.AG)((0,U.Rx)()),rewardType:(0,U.AG)((0,U.Z_)()),commission:(0,U.jt)((0,U.AG)((0,U.Rx)()))}),cr=He((0,U.AG)((0,U.dt)({blockhash:(0,U.Z_)(),previousBlockhash:(0,U.Z_)(),parentSlot:(0,U.Rx)(),transactions:(0,U.IX)((0,U.dt)({transaction:qn,meta:(0,U.AG)(ir),version:(0,U.jt)(sr)})),rewards:(0,U.jt)((0,U.IX)(ar)),blockTime:(0,U.AG)((0,U.Rx)()),blockHeight:(0,U.AG)((0,U.Rx)())}))),ur=He((0,U.AG)((0,U.dt)({blockhash:(0,U.Z_)(),previousBlockhash:(0,U.Z_)(),parentSlot:(0,U.Rx)(),rewards:(0,U.jt)((0,U.IX)(ar)),blockTime:(0,U.AG)((0,U.Rx)()),blockHeight:(0,U.AG)((0,U.Rx)())}))),lr=He((0,U.AG)((0,U.dt)({blockhash:(0,U.Z_)(),previousBlockhash:(0,U.Z_)(),parentSlot:(0,U.Rx)(),transactions:(0,U.IX)((0,U.dt)({transaction:Zn,meta:(0,U.AG)(ir),version:(0,U.jt)(sr)})),rewards:(0,U.jt)((0,U.IX)(ar)),blockTime:(0,U.AG)((0,U.Rx)()),blockHeight:(0,U.AG)((0,U.Rx)())}))),hr=He((0,U.AG)((0,U.dt)({blockhash:(0,U.Z_)(),previousBlockhash:(0,U.Z_)(),parentSlot:(0,U.Rx)(),transactions:(0,U.IX)((0,U.dt)({transaction:er,meta:(0,U.AG)(or),version:(0,U.jt)(sr)})),rewards:(0,U.jt)((0,U.IX)(ar)),blockTime:(0,U.AG)((0,U.Rx)()),blockHeight:(0,U.AG)((0,U.Rx)())}))),dr=He((0,U.AG)((0,U.dt)({blockhash:(0,U.Z_)(),previousBlockhash:(0,U.Z_)(),parentSlot:(0,U.Rx)(),transactions:(0,U.IX)((0,U.dt)({transaction:Zn,meta:(0,U.AG)(or),version:(0,U.jt)(sr)})),rewards:(0,U.jt)((0,U.IX)(ar)),blockTime:(0,U.AG)((0,U.Rx)()),blockHeight:(0,U.AG)((0,U.Rx)())}))),fr=He((0,U.AG)((0,U.dt)({blockhash:(0,U.Z_)(),previousBlockhash:(0,U.Z_)(),parentSlot:(0,U.Rx)(),rewards:(0,U.jt)((0,U.IX)(ar)),blockTime:(0,U.AG)((0,U.Rx)()),blockHeight:(0,U.AG)((0,U.Rx)())}))),pr=He((0,U.AG)((0,U.dt)({blockhash:(0,U.Z_)(),previousBlockhash:(0,U.Z_)(),parentSlot:(0,U.Rx)(),transactions:(0,U.IX)((0,U.dt)({transaction:qn,meta:(0,U.AG)(ir)})),rewards:(0,U.jt)((0,U.IX)(ar)),blockTime:(0,U.AG)((0,U.Rx)())}))),mr=He((0,U.AG)((0,U.dt)({blockhash:(0,U.Z_)(),previousBlockhash:(0,U.Z_)(),parentSlot:(0,U.Rx)(),signatures:(0,U.IX)((0,U.Z_)()),blockTime:(0,U.AG)((0,U.Rx)())}))),gr=He((0,U.AG)((0,U.dt)({slot:(0,U.Rx)(),meta:ir,blockTime:(0,U.jt)((0,U.AG)((0,U.Rx)())),transaction:qn,version:(0,U.jt)(sr)}))),yr=He((0,U.AG)((0,U.dt)({slot:(0,U.Rx)(),transaction:er,meta:(0,U.AG)(or),blockTime:(0,U.jt)((0,U.AG)((0,U.Rx)())),version:(0,U.jt)(sr)}))),br=qe((0,U.dt)({blockhash:(0,U.Z_)(),feeCalculator:(0,U.dt)({lamportsPerSignature:(0,U.Rx)()})}
1)),vr=qe((0,U.dt)({blockhash:(0,U.Z_)(),lastValidBlockHeight:(0,U.Rx)()})),wr=(0,U.dt)({slot:(0,U.Rx)(),numTransactions:(0,U.Rx)(),numSlots:(0,U.Rx)(),samplePeriodSecs:(0,U.Rx)()}),_r=He((0,U.IX)(wr)),kr=qe((0,U.AG)((0,U.dt)({feeCalculator:(0,U.dt)({lamportsPerSignature:(0,U.Rx)()})}))),Sr=He((0,U.Z_)()),xr=He((0,U.Z_)()),Ir=(0,U.dt)({err:nn,logs:(0,U.IX)((0,U.Z_)()),signature:(0,U.Z_)()}),Ar=(0,U.dt)({result:$e(Ir),subscription:(0,U.Rx)()}),Er={"solana-client":"js/0.0.0-development"};class Tr{constructor(t,e){let n,r,i,o,s,a;this._commitment=void 0,this._confirmTransactionInitialTimeout=void 0,this._rpcEndpoint=void 0,this._rpcWsEndpoint=void 0,this._rpcClient=void 0,this._rpcRequest=void 0,this._rpcBatchRequest=void 0,this._rpcWebSocket=void 0,this._rpcWebSocketConnected=!1,this._rpcWebSocketHeartbeat=null,this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketGeneration=0,this._disableBlockhashCaching=!1,this._pollingBlockhash=!1,this._blockhashInfo={latestBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]},this._nextClientSubscriptionId=0,this._subscriptionDisposeFunctionsByClientSubscriptionId={},this._subscriptionHashByClientSubscriptionId={},this._subscriptionStateChangeCallbacksByHash={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set,e&&"string"===typeof e?this._commitment=e:e&&(this._commitment=e.commitment,this._confirmTransactionInitialTimeout=e.confirmTransactionInitialTimeout,n=e.wsEndpoint,r=e.httpHeaders,i=e.fetch,o=e.fetchMiddleware,s=e.disableRetryOnRateLimit,a=e.httpAgent),this._rpcEndpoint=function(t){if(!1===/^https?:/.test(t))throw new TypeError("Endpoint URL must start with `http:` or `https:`.");return t}(t),this._rpcWsEndpoint=n||function(t){const e=t.match(De);if(null==e)throw TypeError(`Failed to validate endpoint URL \`${t}\``);const[n,r,i,o]=e,s=t.startsWith("https:")?"wss:":"ws:",a=null==i?null:parseInt(i.slice(1),10);return`${s}//${r}${null==a?"":`:${a+1}`}${o}`}(t),this._rpcClient=function(t,e,n,r,i,o){const s=n||Be;let a;return null!=o&&console.warn("You have supplied an `httpAgent` when creating a `Connection` in a browser environment.It has been ignored; `httpAgent` is only used in Node environments."),r&&(a=async(t,e)=>{const n=await new Promise(((n,i)=>{try{r(t,e,((t,e)=>n([t,e])))}catch(o){i(o)}}));return await s(...n)}),new(G())((async(n,r)=>{const o={method:"POST",body:n,agent:void 0,headers:Object.assign({"Content-Type":"application/json"},e||{},Er)};try{let e,n=5,c=500;for(;e=a?await a(t,o):await s(t,o),429===e.status&&!0!==i&&(n-=1,0!==n);)console.log(`Server responded with ${e.status} ${e.statusText}. Retrying after ${c}ms delay...`),await ue(c),c*=2;const u=await e.text();e.ok?r(null,u):r(new Error(`${e.status} ${e.statusText}: ${u}`))}catch(c){c instanceof Error&&r(c)}}),{})}(t,r,i,o,s,a),this._rpcRequest=function(t){return(e,n)=>new Promise(((r,i)=>{t.request(e,n,((t,e)=>{t?i(t):r(e)}))}))}(this._rpcClient),this._rpcBatchRequest=function(t){return e=>new Promise(((n,r)=>{0===e.length&&n([]);const i=e.map((e=>t.request(e.methodName,e.args)));t.request(i,((t,e)=>{t?r(t):n(e)}))}))}(this._rpcClient),this._rpcWebSocket=new je(this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}get commitment(){return this._commitment}get rpcEndpoint(){return this._rpcEndpoint}async getBalanceAndContext(t,e){const{commitment:n,config:r}=Ge(e),i=this._buildArgs([t.toBase58()],n,void 0,r),o=await this._rpcRequest("getBalance",i),s=(0,U.Ue)(o,qe((0,U.Rx)()));if("error"in s)throw new Re(s.error,`failed to get balance for ${t.toBase58()}`);return s.result}async getBalance(t,e){return await this.getBalanceAndContext(t,e).then((t=>t.value)).catch((e=>{throw new Error("failed to get balance of account "+t.toBase58()+": "+e)}))}async getBlockTime(t){const e=await this._rpcRequest("getBlockTime",[t]),n=(0,U.Ue)(e,He((0,U.AG)((0,U.Rx)())));if("error"in n)throw new Re(n.error,`failed to get block time for slot ${t}`);return n.result}async getMinimumLedgerSlot(){const t=await this._rpcRequest("minimumLedgerSlot",[]),e=(0,U.Ue)(t,He((0,U.Rx)()));if("error"in e)throw new Re(e.error,"failed to get minimum ledger slot");return e.result}async getFirstAvailableBlock(){const t=await this._rpcRequest("getFirstAvailableBlock",[]),e=(0,U.Ue)(t,pn);if("error"in e)throw new Re(e.error,"failed to get first available block");return e.result}async getSupply(t){let e={};e="string"===typeof t?{commitment:t}:t?{...t,commitment:t&&t.commitment||this.commitment}:{commitment:this.commitment};const n=await this._rpcRequest("getSupply",[e]),r=(0,U.Ue)(n,mn);if("error"in r)throw new Re(r.error,"failed to get supply");return r.result}async getTokenSupply(t,e){const n=this._buildArgs([t.toBase58()],e),r=await this._rpcRequest("getTokenSupply",n),i=(0,U.Ue)(r,qe(gn));if("error"in i)throw new Re(i.error,"failed to get token supply");return i.result}async getTokenAccountBalance(t,e){const n=this._buildArgs([t.toBase58()],e),r=await this._rpcRequest("getTokenAccountBalance",n
1),i=(0,U.Ue)(r,qe(gn));if("error"in i)throw new Re(i.error,"failed to get token account balance");return i.result}async getTokenAccountsByOwner(t,e,n){const{commitment:r,config:i}=Ge(n);let o=[t.toBase58()];"mint"in e?o.push({mint:e.mint.toBase58()}):o.push({programId:e.programId.toBase58()});const s=this._buildArgs(o,r,"base64",i),a=await this._rpcRequest("getTokenAccountsByOwner",s),c=(0,U.Ue)(a,bn);if("error"in c)throw new Re(c.error,`failed to get token accounts owned by account ${t.toBase58()}`);return c.result}async getParsedTokenAccountsByOwner(t,e,n){let r=[t.toBase58()];"mint"in e?r.push({mint:e.mint.toBase58()}):r.push({programId:e.programId.toBase58()});const i=this._buildArgs(r,n,"jsonParsed"),o=await this._rpcRequest("getTokenAccountsByOwner",i),s=(0,U.Ue)(o,wn);if("error"in s)throw new Re(s.error,`failed to get token accounts owned by account ${t.toBase58()}`);return s.result}async getLargestAccounts(t){const e={...t,commitment:t&&t.commitment||this.commitment},n=e.filter||e.commitment?[e]:[],r=await this._rpcRequest("getLargestAccounts",n),i=(0,U.Ue)(r,_n);if("error"in i)throw new Re(i.error,"failed to get largest accounts");return i.result}async getTokenLargestAccounts(t,e){const n=this._buildArgs([t.toBase58()],e),r=await this._rpcRequest("getTokenLargestAccounts",n),i=(0,U.Ue)(r,yn);if("error"in i)throw new Re(i.error,"failed to get token largest accounts");return i.result}async getAccountInfoAndContext(t,e){const{commitment:n,config:r}=Ge(e),i=this._buildArgs([t.toBase58()],n,"base64",r),o=await this._rpcRequest("getAccountInfo",i),s=(0,U.Ue)(o,qe((0,U.AG)(kn)));if("error"in s)throw new Re(s.error,`failed to get info about account ${t.toBase58()}`);return s.result}async getParsedAccountInfo(t,e){const{commitment:n,config:r}=Ge(e),i=this._buildArgs([t.toBase58()],n,"jsonParsed",r),o=await this._rpcRequest("getAccountInfo",i),s=(0,U.Ue)(o,qe((0,U.AG)(In)));if("error"in s)throw new Re(s.error,`failed to get info about account ${t.toBase58()}`);return s.result}async getAccountInfo(t,e){try{return(await this.getAccountInfoAndContext(t,e)).value}catch(n){throw new Error("failed to get info about account "+t.toBase58()+": "+n)}}async getMultipleParsedAccounts(t,e){const{commitment:n,config:r}=Ge(e),i=t.map((t=>
1t.toBase58())),o=this._buildArgs([i],n,"jsonParsed",r),s=await this._rpcRequest("getMultipleAccounts",o),a=(0,U.Ue)(s,qe((0,U.IX)((0,U.AG)(In))));if("error"in a)throw new Re(a.error,`failed to get info for accounts ${i}`);return a.result}async getMultipleAccountsInfoAndContext(t,e){const{commitment:n,config:r}=Ge(e),i=t.map((t=>t.toBase58())),o=this._buildArgs([i],n,"base64",r),s=await this._rpcRequest("getMultipleAccounts",o),a=(0,U.Ue)(s,qe((0,U.IX)((0,U.AG)(kn))));if("error"in a)throw new Re(a.error,`failed to get info for accounts ${i}`);return a.result}async getMultipleAccountsInfo(t,e){return(await this.getMultipleAccountsInfoAndContext(t,e)).value}async getStakeActivation(t,e,n){const{commitment:r,config:i}=Ge(e),o=this._buildArgs([t.toBase58()],r,void 0,{...i,epoch:null!=n?n:i?.epoch}),s=await this._rpcRequest("getStakeActivation",o),a=(0,U.Ue)(s,He(En));if("error"in a)throw new Re(a.error,`failed to get Stake Activation ${t.toBase58()}`);return a.result}async getProgramAccounts(t,e){const{commitment:n,config:r}=Ge(e),{encoding:i,...o}=r||{},s=this._buildArgs([t.toBase58()],n,i||"base64",o),a=await this._rpcRequest("getProgramAccounts",s),c=(0,U.Ue)(a,He((0,U.IX)(Sn)));if("error"in c)throw new Re(c.error,`failed to get accounts owned by program ${t.toBase58()}`);return c.result}async getParsedProgramAccounts(t,e){const{commitment:n,config:r}=Ge(e),i=this._buildArgs([t.toBase58()],n,"jsonParsed",r),o=await this._rpcRequest("getProgramAccounts",i),s=(0,U.Ue)(o,He((0,U.IX)(An)));if("error"in s)throw new Re(s.error,`failed to get accounts owned by program ${t.toBase58()}`);return s.result}async confirmTransaction(t,e){let n,r;if("string"==typeof t)n=t;else{const e=t;if(e.abortSignal?.aborted)return Promise.reject(e.abortSignal.reason);n=e.signature}try{r=C().decode(n)}catch(i){throw new Error("signature must be base58 encoded: "+n)}return Wt(64===r.length,"signature has invalid length"),"string"===typeof t?await this.confirmTransactionUsingLegacyTimeoutStrategy({commitment:e||this.commitment,signature:n}):"lastValidBlockHeight"in t?await this.confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:e||this.commitment,strategy:t}):await this.confirmTransactionUsingDurableNonceStrategy({commitment:e||this.commitment,strategy:t})}getCancellationPromise(t){return new Promise(((e,n)=>{null!=t&&(t.aborted?n(t.reason):t.addEventListener("abort",(()=>{n(t.reason)})))}))}getTransactionConfirmationPromise({commitment:t,signature:e}){let n,r,i=!1;return{abortConfirmation:()=>{r&&(r(),r=void 0),null!=n&&(this.removeSignatureListener(n),n=void 0)},confirmationPromise:new Promise(((o,s)=>{try{n=this.onSignature(e,((t,e)=>{n=void 0;const r={context:e,value:t};o({__type:qt.PROCESSED,response:r})}),t);const a=new Promise((t=>{null==n?t():r=this._onSubscriptionStateChange(n,(e=>{"subscribed"===e&&t()}))}));(async()=>{if(await a,i)return;
1const n=await this.getSignatureStatus(e);if(i)return;if(null==n)return;const{context:r,value:c}=n;if(null!=c)if(c?.err)s(c.err);else{switch(t){case"confirmed":case"single":case"singleGossip":if("processed"===c.confirmationStatus)return;break;case"finalized":case"max":case"root":if("processed"===c.confirmationStatus||"confirmed"===c.confirmationStatus)return}i=!0,o({__type:qt.PROCESSED,response:{context:r,value:c}})}})()}catch(a){s(a)}}))}}async confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:t,strategy:{abortSignal:e,lastValidBlockHeight:n,signature:r}}){let i=!1;const o=new Promise((e=>{const r=async()=>{try{return await this.getBlockHeight(t)}catch(e){return-1}};(async()=>{let t=await r();if(!i){for(;t<=n;){if(await ue(1e3),i)return;if(t=await r(),i)return}e({__type:qt.BLOCKHEIGHT_EXCEEDED})}})()})),{abortConfirmation:s,confirmationPromise:a}=this.getTransactionConfirmationPromise({commitment:t,signature:r}),c=this.getCancellationPromise(e);let u;try{const t=await Promise.race([c,a,o]);if(t.__type!==qt.PROCESSED)throw new Ot(r);u=t.response}finally{i=!0,s()}return u}async confirmTransactionUsingDurableNonceStrategy({commitment:t,strategy:{abortSignal:e,minContextSlot:n,nonceAccountPubkey:r,nonceValue:i,signature:o}}){let s=!1;const a=new Promise((e=>{let o=i,a=null;const c=async()=>{try{const{context:e,value:i}=await this.getNonceAndContext(r,{commitment:t,minContextSlot:n});return a=e.slot,i?.nonce}catch(e){return o}};(async()=>{if(o=await c(),!s)for(;;){if(i!==o)return void e({__type:qt.NONCE_INVALID,slotInWhichNonceDidAdvance:a});if(await ue(2e3),s)return;if(o=await c(),s)return}})()})),{abortConfirmation:c,confirmationPromise:u}=this.getTransactionConfirmationPromise({commitment:t,signature:o}),l=this.getCancellationPromise(e);let h;try{const e=await Promise.race([l,u,a]);if(e.__type===qt.PROCESSED)h=e.response;else{let r;for(;;
1){const t=await this.getSignatureStatus(o);if(null==t)break;if(!(t.context.slot<(e.slotInWhichNonceDidAdvance??n))){r=t;break}await ue(400)}if(!r?.value)throw new Bt(o);{const e=t||"finalized",{confirmationStatus:n}=r.value;switch(e){case"processed":case"recent":if("processed"!==n&&"confirmed"!==n&&"finalized"!==n)throw new Bt(o);break;case"confirmed":case"single":case"singleGossip":if("confirmed"!==n&&"finalized"!==n)throw new Bt(o);break;case"finalized":case"max":case"root":if("finalized"!==n)throw new Bt(o)}h={context:r.context,value:{err:r.value.err}}}}}finally{s=!0,c()}return h}async confirmTransactionUsingLegacyTimeoutStrategy({commitment:t,signature:e}){let n;const r=new Promise((e=>{let r=this._confirmTransactionInitialTimeout||6e4;switch(t){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":r=this._confirmTransactionInitialTimeout||3e4}n=setTimeout((()=>e({__type:qt.TIMED_OUT,timeoutMs:r})),r)})),{abortConfirmation:i,confirmationPromise:o}=this.getTransactionConfirmationPromise({commitment:t,signature:e});let s;try{const t=await Promise.race([o,r]);if(t.__type!==qt.PROCESSED)throw new Rt(e,t.timeoutMs/1e3);s=t.response}finally{clearTimeout(n),i()}return s}async getClusterNodes(){const t=await this._rpcRequest("getClusterNodes",[]),e=(0,U.Ue)(t,He((0,U.IX)(zn)));if("error"in e)throw new Re(e.error,"failed to get cluster nodes");return e.result}async getVoteAccounts(t){const e=this._buildArgs([],t),n=await this._rpcRequest("getVoteAccounts",e),r=(0,U.Ue)(n,Un);if("error"in r)throw new Re(r.error,"failed to get vote accounts");return r.result}async getSlot(t){const{commitment:e,config:n}=Ge(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getSlot",r),o=(0,U.Ue)(i,He((0,U.Rx)()));if("error"in o)throw new Re(o.error,"failed to get slot");return o.result}async getSlotLeader(t){const{commitment:e,config:n}=Ge(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getSlotLeader",r),o=(0,U.Ue)(i,He((0,U.Z_)()));if("error"in o)throw new Re(o.error,"failed to get slot leader");return o.result}async getSlotLeaders(t,e){const n=[t,e],r=await this._rpcRequest("getSlotLeaders",n),i=(0,U.Ue)(r,He((0,U.IX)(ze)));if("error"in i)throw new Re(i.error,"failed to get slot leaders");return i.result}async getSignatureStatus(t,e){const{context:n,value:r}
1=await this.getSignatureStatuses([t],e);Wt(1===r.length);return{context:n,value:r[0]}}async getSignatureStatuses(t,e){const n=[t];e&&n.push(e);const r=await this._rpcRequest("getSignatureStatuses",n),i=(0,U.Ue)(r,Vn);if("error"in i)throw new Re(i.error,"failed to get signature status");return i.result}async getTransactionCount(t){const{commitment:e,config:n}=Ge(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getTransactionCount",r),o=(0,U.Ue)(i,He((0,U.Rx)()));if("error"in o)throw new Re(o.error,"failed to get transaction count");return o.result}async getTotalSupply(t){return(await this.getSupply({commitment:t,excludeNonCirculatingAccountsList:!0})).value.total}async getInflationGovernor(t){const e=this._buildArgs([],t),n=await this._rpcRequest("getInflationGovernor",e),r=(0,U.Ue)(n,un);if("error"in r)throw new Re(r.error,"failed to get inflation");return r.result}async getInflationReward(t,e,n){const{commitment:r,config:i}=Ge(n),o=this._buildArgs([t.map((t=>t.toBase58()))],r,void 0,{...i,epoch:null!=e?e:i?.epoch}),s=await this._rpcRequest("getInflationReward",o),a=(0,U.Ue)(s,Xe);if("error"in a)throw new Re(a.error,"failed to get inflation reward");return a.result}async getInflationRate(){const t=await this._rpcRequest("getInflationRate",[]),e=(0,U.Ue)(t,ln);if("error"in e)throw new Re(e.error,"failed to get inflation rate");return e.result}async getEpochInfo(t){const{commitment:e,config:n}=Ge(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getEpochInfo",r),o=(0,U.Ue)(i,hn);if("error"in o)throw new Re(o.error,"failed to get epoch info");return o.result}async getEpochSchedule(){const t=await this._rpcRequest("getEpochSchedule",[]),e=(0,U.Ue)(t,dn);if("error"in e)throw new Re(e.error,"failed to get epoch schedule");const n=e.result;return new Ce(n.slotsPerEpoch,n.leaderScheduleSlotOffset,n.warmup,n.firstNormalEpoch,n.firstNormalSlot)}async getLeaderSchedule(){const t=await this._rpcRequest("getLeaderSchedule",[]),e=(0,U.Ue)(t,fn);if("error"in e)throw new Re(e.error,"failed to get leader schedule");return e.result}async getMinimumBalanceForRentExemption(t,e){const n=this._buildArgs([t],e),r=await this._rpcRequest("getMinimumBalanceForRentExemption",n),i=(0,U.Ue)(r,Kn);return"error"in i?(console.warn("Unable to fetch minimum balance for rent exemption"),0):i.result}async getRecentBlockhashAndContext(t){const e=this._buildArgs([],t),n=await this._rpcRequest("getRecentBlockhash",e),r=(0,U.Ue)(n,br);if("error"in r)throw new Re(r.error,"failed to get recent blockhash");return r.result}async getRecentPerformanceSamples(t){const e=await this._rpcRequest("getRecentPerformanceSamples",t?[t]:[]),n=(0,U.Ue)(e,_r);if("error"in n)throw new Re(n.error,"failed to get recent performance samples");return n.result}async getFeeCalculatorForBlockhash(t,e){const n=this._buildArgs([t],e),r=await this._rpcRequest("getFeeCalculatorForBlockhash",n),i=(0,U.Ue)(r,kr);if("error"in i)throw new Re(i.error,"failed to get fee calculator");const{context:o,value:s}=i.result;return{context:o,value:null!==s?s.feeCalculator:null}}async getFeeForMessage(t,e){const n=bt(t.serialize()).toString("base64"),r=this._buildArgs([n],e),i=await this._rpcRequest("getFeeForMessage",r),o=(0,U.Ue)(i,qe((0,U.AG)((0,U.Rx)())));if("error"in o)throw new Re(o.error,"failed to get fee for message");if(null===o.result)throw new Error("invalid blockhash");return o.result}async getRecentBlockhash(t){try{return(await this.getRecentBlockhashAndContext(t)).value}catch(e){throw new Error("failed to get recent blockhash: "+e)}}async getLatestBlockhash(t){try{return(await this.getLatestBlockhashAndContext(t)).value}catch(e){throw new Error("failed to get recent blockhash: "+e)}}async getLatestBlockhashAndContext(t){const{commitment:e,config:n}=Ge(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getLatestBlockhash",r),o=(0,U.Ue)(i,vr);if("error"in o)throw new Re(o.error,"failed to get latest blockhash");return o.result}async getVersion(){const t=await this._rpcRequest("getVersion",[]),e=(0,U.Ue)(t,He(sn));if("error"in e)throw new Re(e.error,"failed to get version");return e.result}async getGenesisHash(){const t=await this._rpcRequest("getGenesisHash",[]),e=(0,U.Ue)(t,He((0,U.Z_)()));if("error"in e)throw new Re(e.error,"failed to get genesis hash");return e.result}async getBlock(t,e){const{commitment:n,config:r}=Ge(e),i=this._buildArgsAtLeastConfirmed([t],n,void 0,r),o=await this._rpcRequest("getBlock",i);
1try{switch(r?.transactionDetails){case"accounts":{const t=(0,U.Ue)(o,lr);if("error"in t)throw t.error;return t.result}case"none":{const t=(0,U.Ue)(o,ur);if("error"in t)throw t.error;return t.result}default:{const t=(0,U.Ue)(o,cr);if("error"in t)throw t.error;const{result:e}=t;return e?{...e,transactions:e.transactions.map((({transaction:t,meta:e,version:n})=>({meta:e,transaction:{...t,message:Ze(n,t.message)},version:n})))}:null}}}catch(s){throw new Re(s,"failed to get confirmed block")}}async getParsedBlock(t,e){const{commitment:n,config:r}=Ge(e),i=this._buildArgsAtLeastConfirmed([t],n,"jsonParsed",r),o=await this._rpcRequest("getBlock",i);try{switch(r?.transactionDetails){case"accounts":{const t=(0,U.Ue)(o,dr);if("error"in t)throw t.error;return t.result}case"none":{const t=(0,U.Ue)(o,fr);if("error"in t)throw t.error;return t.result}default:{const t=(0,U.Ue)(o,hr);if("error"in t)throw t.error;return t.result}}}catch(s){throw new Re(s,"failed to get block")}}async getBlockHeight(t){const{commitment:e,config:n}=Ge(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getBlockHeight",r),o=(0,U.Ue)(i,He((0,U.Rx)()));if("error"in o)throw new Re(o.error,"failed to get block height information");return o.result}async getBlockProduction(t){let e,n;if("string"===typeof t)n=t;else if(t){const{commitment:r,...i}=t;n=r,e=i}const r=this._buildArgs([],n,"base64",e),i=await this._rpcRequest("getBlockProduction",r),o=(0,U.Ue)(i,cn);if("error"in o)throw new Re(o.error,"failed to get block production information");return o.result}async getTransaction(t,e){const{commitment:n,config:r}=Ge(e),i=this._buildArgsAtLeastConfirmed([t],n,void 0,r),o=await this._rpcRequest("getTransaction",i),s=(0,U.Ue)(o,gr);if("error"in s)throw new Re(s.error,"failed to get transaction");const a=s.result;return a?{...a,transaction:{...a.transaction,message:Ze(a.version,a.transaction.message)}}:a}async getParsedTransaction(t,e){const{commitment:n,config:r}=Ge(e),i=this._buildArgsAtLeastConfirmed([t],n,"jsonParsed",r),o=await this._rpcRequest("getTransaction",i),s=(0,U.Ue)(o,yr);if("error"in s)throw new Re(s.error,"failed to get transaction");return s.result}async getParsedTransactions(t,e){const{commitment:n,config:r}=Ge(e),i=t.map((t=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([t],n,"jsonParsed",r)})));return(await this._rpcBatchRequest(i)).map((t=>{const e=(0,U.Ue)(t,yr);if("error"in e)throw new Re(e.error,"failed to get transactions");return e.result}))}async getTransactions(t,e){const{commitment:n,config:r}=Ge(e),i=t.map((t=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([t],n,void 0,r)})));return(await this._rpcBatchRequest(i)).map((t=>{const e=(0,U.Ue)(t,gr);if("error"in e)throw new Re(e.error,"failed to get transactions");const n=e.result;return n?{...n,transaction:{...n.transaction,message:Ze(n.version,n.transaction.message)}}:n}))}async getConfirmedBlock(t,e){const n=this._buildArgsAtLeastConfirmed([t],e),r=await this._rpcRequest("getConfirmedBlock",n),i=(0,U.Ue)(r,pr);if("error"in i)throw new Re(i.error,"failed to get confirmed block");const o=i.result;if(!o)throw new Error("Confirmed block "+t+" not found");const s={...o,transactions:o.transactions.map((({transaction:t,meta:e})=>{const n=new Vt(t.message);return{meta:e,transaction:{...t,message:n}}}))};return{...s,transactions:s.transactions.map((({transaction:t,meta:e})=>({meta:e,transaction:Yt.populate(t.message,t.signatures)})))}}async getBlocks(t,e,n){const r=this._buildArgsAtLeastConfirmed(void 0!==e?[t,e]:[t],n),i=await this._rpcRequest("getBlocks",r),o=(0,U.Ue)(i,He((0,U.IX)((0,U.Rx)())));if("error"in o)throw new Re(o.error,"failed to get blocks");return o.result}async getBlockSignatures(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,void 0,{transactionDetails:"signatures",rewards:!1}),r=await this._rpcRequest("getBlock",n),i=(0,U.Ue)(r,mr);if("error"in i)throw new Re(i.error,"failed to get block");const o=i.result;if(!o)throw new Error("Block "+t+" not found");return o}async getConfirmedBlockSignatures(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,void 0,{transactionDetail
1s:"signatures",rewards:!1}),r=await this._rpcRequest("getConfirmedBlock",n),i=(0,U.Ue)(r,mr);if("error"in i)throw new Re(i.error,"failed to get confirmed block");const o=i.result;if(!o)throw new Error("Confirmed block "+t+" not found");return o}async getConfirmedTransaction(t,e){const n=this._buildArgsAtLeastConfirmed([t],e),r=await this._rpcRequest("getConfirmedTransaction",n),i=(0,U.Ue)(r,gr);if("error"in i)throw new Re(i.error,"failed to get transaction");const o=i.result;if(!o)return o;const s=new Vt(o.transaction.message),a=o.transaction.signatures;return{...o,transaction:Yt.populate(s,a)}}async getParsedConfirmedTransaction(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,"jsonParsed"),r=await this._rpcRequest("getConfirmedTransaction",n),i=(0,U.Ue)(r,yr);if("error"in i)throw new Re(i.error,"failed to get confirmed transaction");return i.result}async getParsedConfirmedTransactions(t,e){const n=t.map((t=>({methodName:"getConfirmedTransaction",args:this._buildArgsAtLeastConfirmed([t],e,"jsonParsed")})));return(await this._rpcBatchRequest(n)).map((t=>{const e=(0,U.Ue)(t,yr);if("error"in e)throw new Re(e.error,"failed to get confirmed transactions");return e.result}))}async getConfirmedSignaturesForAddress(t,e,n){let r={},i=await this.getFirstAvailableBlock();for(;!("until"in r)&&!(--e<=0||e<i);)try{const t=await this.getConfirmedBlockSignatures(e,"finalized");t.signatures.length>0&&(r.until=t.signatures[t.signatures.length-1].toString())}catch(s){if(s instanceof Error&&s.message.includes("skipped"))continue;throw s}
1let o=await this.getSlot("finalized");for(;!("before"in r)&&!(++n>o);)try{const t=await this.getConfirmedBlockSignatures(n);t.signatures.length>0&&(r.before=t.signatures[t.signatures.length-1].toString())}catch(s){if(s instanceof Error&&s.message.includes("skipped"))continue;throw s}return(await this.getConfirmedSignaturesForAddress2(t,r)).map((t=>t.signature))}async getConfirmedSignaturesForAddress2(t,e,n){const r=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,e),i=await this._rpcRequest("getConfirmedSignaturesForAddress2",r),o=(0,U.Ue)(i,Tn);if("error"in o)throw new Re(o.error,"failed to get confirmed signatures for address");return o.result}async getSignaturesForAddress(t,e,n){const r=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,e),i=await this._rpcRequest("getSignaturesForAddress",r),o=(0,U.Ue)(i,Pn);if("error"in o)throw new Re(o.error,"failed to get signatures for address");return o.result}async getAddressLookupTable(t,e){const{context:n,value:r}=await this.getAccountInfoAndContext(t,e);let i=null;return null!==r&&(i=new Ne({key:t,state:Ne.deserialize(r.data)})),{context:n,value:i}}async getNonceAndContext(t,e){const{context:n,value:r}=await this.getAccountInfoAndContext(t,e);let i=null;return null!==r&&(i=me.fromAccountData(r.data)),{context:n,value:i}}async getNonce(t,e){return await this.getNonceAndContext(t,e).then((t=>t.value)).catch((e=>{throw new Error("failed to get nonce for account "+t.toBase58()+": "+e)}))}async requestAirdrop(t,e){const n=await this._rpcRequest("requestAirdrop",[t.toBase58(),e]),r=(0,U.Ue)(n,Sr);if("error"in r)throw new Re(r.error,`airdrop to ${t.toBase58()} failed`);return r.result}async _blockhashWithExpiryBlockHeight(t){if(!t){for(;this._pollingBlockhash;)await ue(100);const t=Date.now()-this._blockhashInfo.lastFetch>=We;if(null!==this._blockhashInfo.latestBlockhash&&!t)return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{const t=Date.now(),e=this._blockhashInfo.latestBlockhash,n=e?e.blockhash:null;for(let r=0;r<50;r++){const t=await this.getLatestBlockhash("finalized");if(n!==t.blockhash)return this._blockhashInfo={latestBlockhash:t,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},t;await ue(200)}throw new Error(`Unable to obtain a new blockhash after ${Date.now()-t}ms`)}finally{this._pollingBlockhash=!1}}async getStakeMinimumDelegation(t){const{commitment:e,config:n}=Ge(t),r=this._buildArgs([],e,"base64",n),i=await this._rpcRequest("getStakeMinimumDelegation",r),o=(0,U.Ue)(i,qe((0,U.Rx)()));if("error"in o)throw new Re(o.error,"failed to get stake minimum delegation");return o.result}async simulateTransaction(t,e,n){if("message"in t){const i=t.serialize(),o=r.lW.from(i).toString("base64");if(Array.isArray(e)||void 0!==n)throw new Error("Invalid arguments");const s=e||{};s.encoding="base64","commitment"in s||(s.commitment=this.commitment);const a=[o,s],c=await this._rpcRequest("simulateTransaction",a),u=(0,U.Ue)(c,an);if("error"in u)throw new Error("failed to simulate transaction: "+u.error.message);return u.result}let i;if(t instanceof Yt){let e=t;i=new Yt,i.feePayer=e.feePayer,i.instructions=t.instructions,i.nonceInfo=e.nonceInfo,i.signatures=e.signatures}else i=Yt.populate(t),i._message=i._json=void 0;if(void 0!==e&&!Array.isArray(e))throw new Error("Invalid arguments");const o=e;if(i.nonceInfo&&o)i.sign(...o);else{let t=this._disableBlockhashCaching;for(;;){const e=await this._blockhashWithExpiryBlockHeight(t);if(i.lastValidBlockHeight=e.lastValidBlockHeight,i.recentBlockhash=e.blockhash,!o)break;if(i.sign(...o),!i.signature)throw new Error("!signature");const n=i.signature.toString("base64");if(!this._blockhashInfo.simulatedSignatures.includes(n)&&!this._blockhashInfo.transactionSignatures.includes(n)){this._blockhashInfo.simulatedSignatures.push(n);break}t=!0}}const s=i._compile(),a=s.serialize(),c=i._serialize(a).toString("base64"),u={encoding:"base64",commitment:this.commitment};if(n){const t=(Array.isArray(n)?n:s.nonProgramIds()).map((t=>
1t.toBase58()));u.accounts={encoding:"base64",addresses:t}}o&&(u.sigVerify=!0);const l=[c,u],h=await this._rpcRequest("simulateTransaction",l),d=(0,U.Ue)(h,an);if("error"in d){let t;if("data"in d.error&&(t=d.error.data.logs,t&&Array.isArray(t))){const e="\n ",n=e+t.join(e);console.error(d.error.message,n)}throw new Me("failed to simulate transaction: "+d.error.message,t)}return d.result}async sendTransaction(t,e,n){if("version"in t){if(e&&Array.isArray(e))throw new Error("Invalid arguments");const r=t.serialize();return await this.sendRawTransaction(r,n)}if(void 0===e||!Array.isArray(e))throw new Error("Invalid arguments");const r=e;if(t.nonceInfo)t.sign(...r);else{let e=this._disableBlockhashCaching;for(;;){const n=await this._blockhashWithExpiryBlockHeight(e);if(t.lastValidBlockHeight=n.lastValidBlockHeight,t.recentBlockhash=n.blockhash,t.sign(...r),!t.signature)throw new Error("!signature");const i=t.signature.toString("base64");if(!this._blockhashInfo.transactionSignatures.includes(i)){this._blockhashInfo.transactionSignatures.push(i);break}e=!0}}const i=t.serialize();return await this.sendRawTransaction(i,n)}async sendRawTransaction(t,e){const n=bt(t).toString("base64");return await this.sendEncodedTransaction(n,e)}async sendEncodedTransaction(t,e){const n={encoding:"base64"},r=e&&e.skipPreflight,i=e&&e.preflightCommitment||this.commitment;e&&null!=e.maxRetries&&(n.maxRetries=e.maxRetries),e&&null!=e.minContextSlot&&(n.minContextSlot=e.minContextSlot),r&&(n.skipPreflight=r),i&&(n.preflightCommitment=i);const o=[t,n],s=await this._rpcRequest("sendTransaction",o),a=(0,U.Ue)(s,xr);if("error"in a){let t;throw"data"in a.error&&(t=a.error.data.logs),new Me("failed to send transaction: "+a.error.message,t)}return a.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval((()=>{(async()=>{try{await this._rpcWebSocket.notify("ping")}catch{}})()}),5e3),this._updateSubscriptions()}_wsOnError(t){this._rpcWebSocketConnected=!1,console.error("ws error:",t.message)}_wsOnClose(t){this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),1e3!==t?(this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach((([t,e])=>{this._setSubscription(t,{...e,state:"pending"})}))):this._updateSubscriptions()}_setSubscription(t,e){const n=this._subscriptionsByHash[t]?.state;if(this._subscriptionsByHash[t]=e,n!==e.state){const n=this._subscriptionStateChangeCallbacksByHash[t];n&&n.forEach((t=>{try{t(e.state)}catch{}}))}}_onSubscriptionStateChange(t,e){var n;const r=this._subscriptionHashByClientSubscriptionId[t];if(null==r)return()=>{};const i=(n=this._subscriptionStateChangeCallbacksByHash)[r]||(n[r]=new Set);return i.add(e),()=>{i.delete(e),0===i.size&&delete this._subscriptionStateChangeCallbacksByHash[r]}}async _updateSubscriptions(){if(0===Object.keys(this._subscriptionsByHash).length)return void(this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout((()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(t){t instanceof Error&&console.log(`Error when closing socket connection: ${t.message}`)}}),500)));if(null!==this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected)return void this._rpcWebSocket.connect();const t=this._rpcWebSocketGeneration,e=()=>t===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map((async t=>{const n=this._subscriptionsByHash[t];if(void 0!==n)switch(n.state){case"pending":case"unsubscribed":if(0===n.callbacks.size)return delete this._subscriptionsByHash[t],"unsubscribed"===n.state&&delete this._subscriptionCallbacksByServerSubscriptionId[n.serverSubscriptionId],void(await this._updateSubscriptions());await(async()=>{const{args:r,method:i}=n;try{this._setSubscription(t,{...n,state:"subscribing"});const e=await this._rpcWebSocket.call(i,r);this._setSubscription(t,{...n,serverSubscriptionId:e,state:"subscribed"}),this._subscriptionCallbacksByServerSubscriptionId[e]=n.callbacks,await this._updateSubscriptions()}catch(o){if(o instanceof Error&&console.error(`${i} error for argument`,r,o.message),!e())return;this._setSubscription(t,{...n,state:"pending"}),await this._updateSubscriptions()}})();break;case"subscribed":0===n.callbacks.size&&await(async()=>{const{serverSubscriptionId:r,unsubscribeMethod:i}=n;if(this._subscriptionsAutoDisposedByRpc.has(r))this._subscriptionsAutoDisposedByRpc.delete(r);else{this._setSubscription(t,{...n,state:"unsubscribing"}),this._setSubscription(t,{...n,state:"unsubscribing"});try{await this._rpcWebSocket.call(i,[r])}catch(o){if(o instanceof Error&&console.error(`${i} error:`,o.message),!e())return;return this._setSubscription(t,{...n,state:"subscribed"}),void(await this._updateSubscriptions())}}this._setSubscription(t,{...n,state:"unsubscribed"}),await this._updateSubscriptions()})()}})))}_handleServerNotification(t,e){const n=this._subscriptionCallbacksByServerSubscriptionId[t];
1void 0!==n&&n.forEach((t=>{try{t(...e)}catch(n){console.error(n)}}))}_wsOnAccountNotification(t){const{result:e,subscription:n}=(0,U.Ue)(t,Cn);this._handleServerNotification(n,[e.value,e.context])}_makeSubscription(t,e){const n=this._nextClientSubscriptionId++,r=Te([t.method,e]),i=this._subscriptionsByHash[r];return void 0===i?this._subscriptionsByHash[r]={...t,args:e,callbacks:new Set([t.callback]),state:"pending"}:i.callbacks.add(t.callback),this._subscriptionHashByClientSubscriptionId[n]=r,this._subscriptionDisposeFunctionsByClientSubscriptionId[n]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[n],delete this._subscriptionHashByClientSubscriptionId[n];const e=this._subscriptionsByHash[r];Wt(void 0!==e,`Could not find a \`Subscription\` when tearing down client subscription #${n}`),e.callbacks.delete(t.callback),await this._updateSubscriptions()},this._updateSubscriptions(),n}onAccountChange(t,e,n){const r=this._buildArgs([t.toBase58()],n||this._commitment||"finalized","base64");return this._makeSubscription({callback:e,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},r)}async removeAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"account change")}_wsOnProgramAccountNotification(t){const{result:e,subscription:n}=(0,U.Ue)(t,On);this._handleServerNotification(n,[{accountId:e.value.pubkey,accountInfo:e.value.account},e.context])}onProgramAccountChange(t,e,n,r){const i=this._buildArgs([t.toBase58()],n||this._commitment||"finalized","base64",r?{filters:r}:void 0);return this._makeSubscription({callback:e,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},i)}async removeProgramAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"program account change")}onLogs(t,e,n){const r=this._buildArgs(["object"===typeof t?{mentions:[t.toString()]}:t],n||this._commitment||"finalized");return this._makeSubscription({callback:e,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},r)}async removeOnLogsListener(t){await this._unsubscribeClientSubscription(t,"logs")}_wsOnLogsNotification(t){const{result:e,subscription:n}=(0,U.Ue)(t,Ar);this._handleServerNotification(n,[e.value,e.context])}_wsOnSlotNotification(t){const{result:e,subscription:n}=(0,U.Ue)(t,Bn);this._handleServerNotification(n,[e])}onSlotChange(t){return this._makeSubscription({callback:t,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(t){await this._unsubscribeClientSubscription(t,"slot change")}_wsOnSlotUpdatesNotification(t){const{result:e,subscription:n}=(0,U.Ue)(t,Nn);this._handleServerNotification(n,[e])}onSlotUpdate(t){return this._makeSubscription({callback:t,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(t){await this._unsubscribeClientSubscription(t,"slot update")}async _unsubscribeClientSubscription(t,e){const n=this._subscriptionDisposeFunctionsByClientSubscriptionId[t];n?await n():console.warn(`Ignored unsubscribe request because an active subscription with id \`${t}\` for '${e}' events could not be found.`)}_buildArgs(t,e,n,r){const i=e||this._commitment;if(i||n||r){let e={};n&&(e.encoding=n),i&&(e.commitment=i),r&&(e=Object.assign(e,r)),t.push(e)}return t}_buildArgsAtLeastConfirmed(t,e,n,r){const i=e||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(t,e,n,r)}_wsOnSignatureNotification(t){const{result:e,subscription:n}=(0,U.Ue)(t,Ln);"receivedSignature"!==e.value&&this._subscriptionsAutoDisposedByRpc.add(n),this._handleServerNotification(n,"receivedSignature"===e.value?[{type:"received"},e.context]:[{type:"status",result:e.value},e.context])}onSignature(t,e,n){const r=this._buildArgs([t],n||this._commitment||"finalized"),i=this._makeSubscription({callback:(t,n)=>{if("status"===t.type){e(t.result,n);try{this.removeSignatureListener(i)}catch(r){}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},r);return i}onSignatureWithOptions(t,e,n){const{commitment:r,...i}={...n,commitment:n&&n.commitment||this._commitment||"finalized"},o=this._buildArgs([t],r,void 0,i),s=this._makeSubscription({callback:(t,n)=>{e(t,n);try{this.removeSignatureListener(s)}catch(r){}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},o);return s}async removeSignatureListener(t){await this._unsubscribeClientSubscription(t,"signature result")}_wsOnRootNotification(t){const{result:e,subscription:n}=(0,U.Ue)(t,Dn);this._handleServerNotification(n,[e])}onRootChange(t){return this._makeSubscription({callback:t,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(t){await this._unsubscribeClientSubscription(t,"root change")}}class Pr{constructor(t){this._keypair=void 0,this._keypair=t??ft()}static generate(){return new Pr(ft())}static fromSecretKey(t,e){if(64!==t.byteLength)throw new Error("bad secret key size");const n=t.slice(32,64);if(!e||!e.skipValidation){const e=t.slice(0,32),r=pt(e);for(let t=0;t<32;t++)if(n[t]!==r[t])throw new Error("provided secretKey is invali
1d")}return new Pr({publicKey:n,secretKey:t})}static fromSeed(t){const e=pt(t),n=new Uint8Array(64);return n.set(t),n.set(e,32),new Pr({publicKey:e,secretKey:n})}get publicKey(){return new At(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}}const Cr=Object.freeze({CreateLookupTable:{index:0,layout:z.struct([z.u32("instruction"),ge("recentSlot"),z.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:z.struct([z.u32("instruction")])},ExtendLookupTable:{index:2,layout:z.struct([z.u32("instruction"),ge(),z.seq(Nt(),z.offset(z.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:z.struct([z.u32("instruction")])},CloseLookupTable:{index:4,layout:z.struct([z.u32("instruction")])}});class Mr{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=z.u32("instruction").decode(t.data);let n;for(const[r,i]of Object.entries(Cr))if(i.index==e){n=r;break}if(!n)throw new Error("Invalid Instruction. Should be a LookupTable Instruction");return n}static decodeCreateLookupTable(t){this.checkProgramId(t.programId),this.checkKeysLength(t.keys,4);const{recentSlot:e}=he(Cr.CreateLookupTable,t.data);return{authority:t.keys[1].pubkey,payer:t.keys[2].pubkey,recentSlot:Number(e)}}static decodeExtendLookupTable(t){if(this.checkProgramId(t.programId),t.keys.length<2)throw new Error(`invalid instruction; found ${t.keys.length} keys, expected at least 2`);const{addresses:e}=he(Cr.ExtendLookupTable,t.data);return{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,payer:t.keys.length>2?t.keys[2].pubkey:void 0,addresses:e.map((t=>new At(t)))}}static decodeCloseLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,3),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,recipient:t.keys[2].pubkey}}static decodeFreezeLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static decodeDeactivateLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(Or.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}static checkKeysLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}class Or{constructor(){}static createLookupTable(t){const[e,n]=At.findProgramAddressSync([t.authority.toBuffer(),(0,F.toBufferLE)(BigInt(t.recentSlot),8)],this.programId),r=le(Cr.CreateLookupTable,{recentSlot:BigInt(t.recentSlot),bumpSeed:n}),i=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:we.programId,isSigner:!1,isWritable:!1}];return[new Zt({programId:this.programId,keys:i,data:r}),e]}static freezeLookupTable(t){const e=le(Cr.FreezeLookupTable),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new Zt({programId:this.programId,keys:n,data:e})}static extendLookupTable(t){const e=le(Cr.ExtendLookupTable,{addresses:t.addresses.map((t=>t.toBytes()))}),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return t.payer&&n.push({pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:we.programId,isSigner:!1,isWritable:!1}),new Zt({programId:this.programId,keys:n,data:e})}static deactivateLookupTable(t){const e=le(Cr.DeactivateLookupTable),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new Zt({programId:this.programId,keys:n,data:e})}static closeLookupTable(t){const e=le(Cr.CloseLookupTable),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.recipient,isSigner:!1,isWritable:!0}];return new Zt({programId:this.programId,keys:n,data:e})}}Or.programId=new At("AddressLookupTab1e1111111111111111111111111");class Rr{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=z.u8("instruction").decode(t.data);let n;for(const[r,i]of Object.entries(Br))if(i.index==e){n=r;break}if(!n)throw new Error("Instruction type incorrect; not a ComputeBudgetInstruction");return n}static decodeRequestUnits(t){this.checkProgramId(t.programId);const{units:e,additionalFee:n}=he(Br.RequestUnits,t.data);return{units:e,additionalFee:n}}static decodeRequestHeapFrame(t){this.checkProgramId(t.programId);const{bytes:e}=he(Br.RequestHeapFrame,t.data);return{bytes:e}}static decodeSetComputeUnitLimit(t){this.checkProgramId(t.programId);const{units:e}=he(Br.SetComputeUnitLimit,t.data);return{units:e}}static decodeSetComputeUnitPrice(t){this.checkProgramId(t.programId);const{microLamports:e}=he(Br.SetComputeUnitPrice,t.data);return{microLamports:e}}static checkProgramId(t){if(!t.equals(jr.programId))throw new Error("invalid instruction; programId is not ComputeBudgetProgram")}}const Br=Object.freeze({RequestUnits:{index:0,layout:z.struct([z.u8("instruction"),z.u32("units"),z.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:z.struct([z.u8("instruction"),z.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:z.struct([z.u8("instruction"),z.u32("units")])},SetComputeUnitPrice:{index:3,layout:z.struct([z.u8("instruction"),ge("microLamports")])}});
1class jr{constructor(){}static requestUnits(t){const e=le(Br.RequestUnits,t);return new Zt({keys:[],programId:this.programId,data:e})}static requestHeapFrame(t){const e=le(Br.RequestHeapFrame,t);return new Zt({keys:[],programId:this.programId,data:e})}static setComputeUnitLimit(t){const e=le(Br.SetComputeUnitLimit,t);return new Zt({keys:[],programId:this.programId,data:e})}static setComputeUnitPrice(t){const e=le(Br.SetComputeUnitPrice,{microLamports:BigInt(t.microLamports)});return new Zt({keys:[],programId:this.programId,data:e})}}jr.programId=new At("ComputeBudget111111111111111111111111111111");const Nr=z.struct([z.u8("numSignatures"),z.u8("padding"),z.u16("signatureOffset"),z.u16("signatureInstructionIndex"),z.u16("publicKeyOffset"),z.u16("publicKeyInstructionIndex"),z.u16("messageDataOffset"),z.u16("messageDataSize"),z.u16("messageInstructionIndex")]);class Lr{constructor(){}static createInstructionWithPublicKey(t){const{publicKey:e,message:n,signature:i,instructionIndex:o}=t;Wt(32===e.length,`Public Key must be 32 bytes but received ${e.length} bytes`),Wt(64===i.length,`Signature must be 64 bytes but received ${i.length} bytes`);const s=Nr.span,a=s+e.length,c=a+i.length,u=r.lW.alloc(c+n.length),l=null==o?65535:o;return Nr.encode({numSignatures:1,padding:0,signatureOffset:a,signatureInstructionIndex:l,publicKeyOffset:s,publicKeyInstructionIndex:l,messageDataOffset:c,messageDataSize:n.length,messageInstructionIndex:l},u),u.fill(e,s),u.fill(i,a),u.fill(n,c),new Zt({keys:[],programId:Lr.programId,data:u})}static createInstructionWithPrivateKey(t){const{privateKey:e,message:n,instructionIndex:r}=t;Wt(64===e.length,`Private key must be 64 bytes but received ${e.length} bytes`);try{const t=Pr.fromSecretKey(e),i=t.publicKey.toBytes(),o=gt(n,t.secretKey);return this.createInstructionWithPublicKey({publicKey:i,message:n,signature:o,instructionIndex:r})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}}Lr.programId=new At("Ed25519SigVerify111111111111111111111111111"),ht.P6.hmacSha256Sync=(t,...e)=>{const n=lt.create(L,t);return e.forEach((t=>n.update(t))),n.digest()};ht.P6.isValidPrivateKey;const Dr=ht.$3,zr=z.struct([z.u8("numSignatures"),z.u16("signatureOffset"),z.u8("signatureInstructionIndex"),z.u16("ethAddressOffset"),z.u8("ethAddressInstructionIndex"),z.u16("messageDataOffset"),z.u16("messageDataSize"),z.u8("messageInstructionIndex"),z.blob(20,"ethAddress"),z.blob(64,"signature"),z.u8("recoveryId")]);class Fr{constructor(){}static publicKeyToEthAddress(t){Wt(64===t.length,`Public key must be 64 bytes but received ${t.length} bytes`);try{return r.lW.from(at(bt(t))).slice(-20)}catch(e){throw new Error(`Error constructing Ethereum address: ${e}`)}}static createInstructionWithPublicKey(t){const{publicKey:e,message:n,signature:r,recoveryId:i,instructionIndex:o}=t;return Fr.createInstructionWithEthAddress({ethAddress:Fr.publicKeyToEthAddress(e),message:n,signature:r,recoveryId:i,instructionIndex:o})}static createInstructionWithEthAddress(t){const{ethAddress:e,message:n,signature:i,recoveryId:o,instructionIndex:s=0}=t;let a;a="string"===typeof e?e.startsWith("0x")?r.lW.from(e.substr(2),"hex"):r.lW.from(e,"hex"):e,Wt(20===a.length,`Address must be 20 bytes but received ${a.length} bytes`);const c=12+a.length,u=c+i.length+1,l=r.lW.alloc(zr.span+n.length);return zr.encode({numSignatures:1,signatureOffset:c,signatureInstructionIndex:s,ethAddressOffset:12,ethAddressInstructionIndex:s,messageDataOffset:u,messageDataSize:n.length,messageInstructionIndex:s,signature:bt(i),ethAddress:bt(a),recoveryId:o},l),l.fill(bt(n),zr.span),new Zt({keys:[],programId:Fr.programId,data:l})}static createInstructionWithPrivateKey(t){const{privateKey:e,message:n,instructionIndex:i}=t;Wt(32===e.length,`Private key must be 32 bytes but received ${e.length} bytes`);try{const t=bt(e),a=Dr(t,!1).slice(1),c=r.lW.from(at(bt(n))),[u,l]=(o=c,s=t,ht.kS(o,s,{der:!1,recovered:!0}));return this.createInstructionWithPublicKey({publicKey:a,message:n,signature:u,recoveryId:l,instructionIndex:i})}catch(a){throw new Error(`Error creating instruction; ${a}`)}var o,s}}Fr.programId=new At("KeccakSecp256k11111111111111111111111111111");const Ur=new At("StakeConfig11111111111111111111111111111111");
1class Wr{constructor(t,e){this.staker=void 0,this.withdrawer=void 0,this.staker=t,this.withdrawer=e}}class Gr{constructor(t,e,n){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=e,this.custodian=n}}Gr.default=new Gr(0,0,At.default);class Vr{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=z.u32("instruction").decode(t.data);let n;for(const[r,i]of Object.entries(Kr))if(i.index==e){n=r;break}if(!n)throw new Error("Instruction type incorrect; not a StakeInstruction");return n}static decodeInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:e,lockup:n}=he(Kr.Initialize,t.data);return{stakePubkey:t.keys[0].pubkey,authorized:new Wr(new At(e.staker),new At(e.withdrawer)),lockup:new Gr(n.unixTimestamp,n.epoch,new At(n.custodian))}}static decodeDelegate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,6),he(Kr.Delegate,t.data),{stakePubkey:t.keys[0].pubkey,votePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[5].pubkey}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:e,stakeAuthorizationType:n}=he(Kr.Authorize,t.data),r={stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new At(e),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(r.custodianPubkey=t.keys[3].pubkey),r}static decodeAuthorizeWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{newAuthorized:e,stakeAuthorizationType:n,authoritySeed:r,authorityOwner:i}=he(Kr.AuthorizeWithSeed,t.data),o={stakePubkey:t.keys[0].pubkey,authorityBase:t.keys[1].pubkey,authoritySeed:r,authorityOwner:new At(i),newAuthorizedPubkey:new At(e),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(o.custodianPubkey=t.keys[3].pubkey),o}static decodeSplit(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e}=he(Kr.Split,t.data);return{stakePubkey:t.keys[0].pubkey,splitStakePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[2].pubkey,lamports:e}}static decodeMerge(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),he(Kr.Merge,t.data),{stakePubkey:t.keys[0].pubkey,sourceStakePubKey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:e}=he(Kr.Withdraw,t.data),n={stakePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:e};return t.keys.length>5&&(n.custodianPubkey=t.keys[5].pubkey),n}static decodeDeactivate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),he(Kr.Deactivate,t.data),{stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static checkProgramId(t){if(!t.equals(qr.programId))throw new Error("invalid instruction; programId is not StakeProgram")}static checkKeyLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}const Kr=Object.freeze({Initialize:{index:0,layout:z.struct([z.u32("instruction"),((t="authorized")=>z.struct([Nt("staker"),Nt("withdrawer")],t))(),((t="lockup")=>z.struct([z.ns64("unixTimestamp"),z.ns64("epoch"),Nt("custodian")],t))()])},Authorize:{index:1,layout:z.struct([z.u32("instruction"),Nt("newAuthorized"),z.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:z.struct([z.u32("instruction")])},Split:{index:3,layout:z.struct([z.u32("instruction"),z.ns64("lamports")])},Withdraw:{index:4,layout:z.struct([z.u32("instruction"),z.ns64("lamports")])},Deactivate:{index:5,layout:z.struct([z.u32("instruction")])},Merge:{index:7,layout:z.struct([z.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:z.struct([z.u32("instruction"),Nt("newAuthorized"),z.u32("stakeAuthorizationType"),Dt("authoritySeed"),Nt("authorityOwner")])}}),Hr=Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class qr{constructor(){}static initialize(t){const{stakePubkey:e,authorized:n,lockup:r}=t,i=r||Gr.default,o=le(Kr.Initialize,{authorized:{staker:bt(n.staker.toBuffer()),withdrawer:bt(n.withdrawer.toBuffer())},lockup:{unixTimestamp:i.unixTimestamp,epoch:i.epoch,custodian:bt(i.custodian.toBuffer())}}),s={keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:re,isSigner:!1,isWritable:!1}],programId:this.programId,data:o};return new Zt(s)}static createAccountWithSeed(t){const e=new Yt;e.add(we.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:r,lockup:i}=t;return e.add(this.initialize({stakePubkey:n,authorized:r,lockup:i}))}static createAccount(t){const e=new Yt;e.add(we.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:r,lockup:i}=t;return e.add(this.initialize({stakePubkey:n,authorized:r,lockup:i}))}static delegate(t){const{stakePubkey:e,authorizedPubkey:n,votePubkey:r}=t,i=le(Kr.Delegate);return(new Yt).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:Qt,isSigner:!1,isWritable:!1},{pubkey:ae,isSigner:!1,isWritable:!1},{pubkey:Ur,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}static authorize(t){const{stakePubkey:e,authorizedPubkey:n,newAuthorizedPubkey:r,stakeAuthorizationType:i,custodianPubkey:o}=t,s=le(Kr.Authorize,{newAuthorized:bt(r.toBuffer()),stakeAuthorizationType:i.index}),a=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Qt,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&a.push({pubkey:o,isSigner:!1,isWritable:!1}),(new Yt).add({keys:a,programId:this.programId,data:s})}static authorizeWithSeed(t){const{stakePubkey:e,authorityBase:n,authoritySeed:r,authorityOwner:i,newAuthorizedPubkey:o,stakeAuthorizationType:s,custodianPubkey:a}=t,c=le(Kr.AuthorizeWithSeed,{newAuthorized:bt(o.toBuffer()),stakeAuthorizationType:s.index,authoritySeed:r,authorityOwner:bt(i.toBuffer())}),u=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:Qt,isSigner:!1,isWritable:!1}];return a&&u.push({pubkey:a,isSigner:!1,isWritable:!1}),(new Yt).add({keys:u,programId:this.programId,data:c})}static splitInstruction(t){const{stakePubkey:e,authorizedPubkey:n,splitStakePubkey:r,lamports:i}=t,o=le(Kr.Split,{lamports:i});return new Zt({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}static split(t){const e=new Yt;return e.add(we.createAccount({fromPubkey:t.authorizedPubkey,newAccountPubkey:t.splitStakePubkey,lamports:0,space:this.space,programId:this.programId})),e.add(this.splitInstruction(t))}static splitWithSeed(t){const{stakePubkey:e,authorizedPubkey:n,splitStakePubkey:r,basePubkey:i,seed:o,lamports:s}=t,a=new Yt;return a.add(we.allocate({accountPubkey:r,basePubkey:i,seed:o,space:this.space,programId:this.programId})),a.add(this.splitInstruction({stakePubkey:e,authorizedPubkey:n,splitStakePubkey:r,lamports:s}))}static merge(t){const{stakePubkey:e,sourceStakePubKey:n,authorizedPubkey:r}=t,i=le(Kr.Merge);return(new Yt).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:Qt,isSigner:!1,isWritable:!1},{pubkey:ae,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}static withdraw(t){const{stakePubkey:e,authorizedPubkey:n,toPubkey:r,lamports:i,custodianPubkey:o}=t,s=le(Kr.Withdraw,{lamports:i}),a=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:Qt,isSigner:!1,isWritable:!1},{pubkey:ae,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&a.push({pubkey:o,isSigner:!1,isWritable:!1}),(new Yt).add({keys:a,programId:this.programId,data:s})}static deactivate(t){const{stakePubkey:e,authorizedPubkey:n}=t,r=le(Kr.Deactivate);return(new Yt).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Qt,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:r})}}qr.programId=new At("Stake11111111111111111111111111111111111111"),qr.space=200;class $r{constructor(t,e,n,r){this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=t,this.authorizedVoter=e,this.authorizedWithdrawer=n,this.commission=r}}class Zr{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=z.u32("instruction").decode(t.data);let n;for(const[r,i]of Object.entries(Yr))if(i.index==e){n=r;break}if(!n)throw new Error("Instruction type incorrect; not a VoteInstruction");return n}static decodeInitializeAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,4);const{voteInit:e}=he(Yr.InitializeAccount,t.data);return{votePubkey:t.keys[0].pubkey,nodePubkey:t.keys[3].pubkey,voteInit:new $r(new At(e.nodePubkey),new At(e.authorizedVoter),new At(e.authorizedWithdrawer),e.commission)}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:e,voteAuthorizationType:n}=he(Yr.Authorize,t.data);return{votePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new At(e),voteAuthorizationType:{index:n}}}static decodeAuthorizeWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:e,currentAuthorityDerivedKeySeed:n,newAuthorized:r,voteAuthorizationType:i}}=he(Yr.AuthorizeWithSeed,t.data);return{currentAuthorityDerivedKeyBasePubkey:t.keys[2].pubkey,currentAuthorityDerivedKeyOwnerPubkey:new At(e),currentAuthorityDerivedKeySeed:n,newAuthorizedPubkey:new At(r),voteAuthorizationType:{index:i},votePubkey:t.keys[0].pubkey}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e}=he(Yr.Withdraw,t.data);return{votePubkey:t.keys[0].pubkey,authorizedWithdrawerPubkey:t.keys[2].pubkey,lamports:e,toPubkey:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(Jr.programId))throw new Error("invalid instruction; programId is not VoteProgram")}static checkKeyLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}const Yr=Object.freeze({InitializeAccount:{index:0,layout:z.struct([z.u32("instruction"),((t="voteInit")=>z.struct([Nt("nodePubkey"),Nt("authorizedVoter"),Nt("authorizedWithdrawer"),z.u8("commission")],t))()])},Authorize:{index:1,layout:z.struct([z.u32("instruction"),Nt("newAuthorized"),z.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:z.struct([z.u32("instruction"),z.ns64("lamports")])},AuthorizeWithSeed:{index:10,layout:z.struct([z.u32("instruction"),((t="voteAuthorizeWithSeedArgs")=>z.struct([z.u32("voteAuthorizationType"),Nt("currentAuthorityDerivedKeyOwnerPubkey"),Dt("currentAuthorityDerivedKeySeed"),Nt("newAuthorized")],t))()])}}),Xr=Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class Jr{constructor(){}static initializeAccount(t){const{votePubkey:e,nodePubkey:n,voteInit:r}=t,i=le(Yr.InitializeAccount,{voteInit:{nodePubkey:bt(r.nodePubkey.toBuffer()),authorizedVoter:bt(r.authorizedVoter.toBuffer()),authorizedWithdrawer:bt(r.authorizedWithdrawer.toBuffer()),commission:r.commission}}),o={keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:re,isSigner:!1,isWritable:!1},{pubkey:Qt,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i};
1return new Zt(o)}static createAccount(t){const e=new Yt;return e.add(we.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.votePubkey,lamports:t.lamports,space:this.space,programId:this.programId})),e.add(this.initializeAccount({votePubkey:t.votePubkey,nodePubkey:t.voteInit.nodePubkey,voteInit:t.voteInit}))}static authorize(t){const{votePubkey:e,authorizedPubkey:n,newAuthorizedPubkey:r,voteAuthorizationType:i}=t,o=le(Yr.Authorize,{newAuthorized:bt(r.toBuffer()),voteAuthorizationType:i.index}),s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Qt,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return(new Yt).add({keys:s,programId:this.programId,data:o})}static authorizeWithSeed(t){const{currentAuthorityDerivedKeyBasePubkey:e,currentAuthorityDerivedKeyOwnerPubkey:n,currentAuthorityDerivedKeySeed:r,newAuthorizedPubkey:i,voteAuthorizationType:o,votePubkey:s}=t,a=le(Yr.AuthorizeWithSeed,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:bt(n.toBuffer()),currentAuthorityDerivedKeySeed:r,newAuthorized:bt(i.toBuffer()),voteAuthorizationType:o.index}}),c=[{pubkey:s,isSigner:!1,isWritable:!0},{pubkey:Qt,isSigner:!1,isWritable:!1},{pubkey:e,isSigner:!0,isWritable:!1}];return(new Yt).add({keys:c,programId:this.programId,data:a})}static withdraw(t){const{votePubkey:e,authorizedWithdrawerPubkey:n,lamports:r,toPubkey:i}=t,o=le(Yr.Withdraw,{lamports:r}),s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return(new Yt).add({keys:s,programId:this.programId,data:o})}static safeWithdraw(t,e,n){if(t.lamports>e-n)throw new Error("Withdraw will leave vote account with insuffcient funds.");return Jr.withdraw(t)}}Jr.programId=new At("Vote111111111111111111111111111111111111111"),Jr.space=3731;const Qr=new At("Va1idator1nfo111111111111111111111111111111"),ti=(0,U.dt)({name:(0,U.Z_)(),website:(0,U.jt)((0,U.Z_)()),details:(0,U.jt)((0,U.Z_)()),keybaseUsername:(0,U.jt)((0,U.Z_)())});class ei{constructor(t,e){this.key=void 0,this.info=void 0,this.key=t,this.info=e}static fromConfigData(t){let e=[...t];if(2!==Ft(e))return null;const n=[];for(let r=0;r<2;r++){const t=new At(e.slice(0,xt));e=e.slice(xt);const r=1===e.slice(0,1)[0];e=e.slice(1),n.push({publicKey:t,isSigner:r})}if(n[0].publicKey.equals(Qr)&&n[1].isSigner){const t=Dt().decode(r.lW.from(e)),i=JSON.parse(t);return(0,U.hu)(i,ti),new ei(n[1].publicKey,i)}return null}}const ni=new At("Vote111111111111111111111111111111111111111"),ri=z.struct([Nt("nodePubkey"),Nt("authorizedWithdrawer"),z.u8("commission"),z.nu64(),z.seq(z.struct([z.nu64("slot"),z.u32("confirmationCount")]),z.offset(z.u32(),-8),"votes"),z.u8("rootSlotValid"),z.nu64("rootSlot"),z.nu64(),z.seq(z.struct([z.nu64("epoch"),Nt("authorizedVoter")]),z.offset(z.u32(),-8),"authorizedVoters"),z.struct([z.seq(z.struct([Nt("authorizedPubkey"),z.nu64("epochOfLastAuthorizedSwitch"),z.nu64("targetEpoch")]),32,"buf"),z.nu64("idx"),z.u8("isEmpty")],"priorVoters"),z.nu64(),z.seq(z.struct([z.nu64("epoch"),z.nu64("credits"),z.nu64("prevCredits")]),z.offset(z.u32(),-8),"epochCredits"),z.struct([z.nu64("slot"),z.nu64("timestamp")],"lastTimestamp")]);class ii{constructor(t){this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=t.nodePubkey,this.authorizedWithdrawer=t.authorizedWithdrawer,this.commission=t.commission,this.rootSlot=t.rootSlot,this.votes=t.votes,this.authorizedVoters=t.authorizedVoters,this.priorVoters=t.priorVoters,this.epochCredits=t.epochCredits,this.lastTimestamp=t.lastTimestamp}static fromAccountData(t){const e=ri.decode(bt(t),4);let n=e.rootSlot;return e.rootSlotValid||(n=null),new ii({nodePubkey:new At(e.nodePubkey),authorizedWithdrawer:new At(e.authorizedWithdrawer),commission:e.commission,votes:e.votes,rootSlot:n,authorizedVoters:e.authorizedVoters.map(oi),priorVoters:ai(e.priorVoters),epochCredits:e.epochCredits,lastTimestamp:e.lastTimestamp})}}function oi({authorizedVoter:t,epoch:e}){return{epoch:e,authorizedVoter:new At(t)}}function si({authorizedPubkey:t,epochOfLastAuthorizedSwitch:e,targetEpoch:n}){return{authorizedPubkey:new At(t),epochOfLastAuthorizedSwitch:e,targetEpoch:n}}function ai({buf:t,idx:e,isEmpty:n}){return n?[]:[...t.slice(e+1).map(si),...t.slice(0,e).map(si)]}const ci={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function ui(t,e){const n=!1===e?"http":"https";if(!t)return ci[n].devnet;const r=ci[n][t];if(!r)throw new Error(`Unknown ${n} cluster: ${t}`);return r}async function li(t,e,n,r){let i,o;n&&Object.prototype.hasOwnProperty.call(n,"lastValidBlockHeight")||n&&Object.prototype.hasOwnProperty.call(n,"nonceValue")?(i=n,o=r):o=n;const s=o&&{skipPreflight:o.skipPreflight,preflightCommitment:o.preflightCommitment||o.commitment,minContextSlot:o.minContextSlot},a=await t.sendRawTransaction(e,s),c=o&&o.commitment,u=i?t.confirmTransaction(i,c):t.confirmTransaction(a,c),l=(await u).value;if(l.err)throw new Error(`Raw transaction ${a} failed (${JSON.stringify(l)})`);return a}const hi=1e9},10011:function(t,e,n){var r=n(58162);t.exports=r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},64285:function(t,e,n){"use strict";const r=n(79742),i=n(80645),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.lW=c,e.h2=50;const s=2147483647;function a(t){if(t>
vendor: 9,464 bytes, line 1
1s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return u(t,e,n)}function u(t,e,n){if("string"===typeof t)return function(t,e){"string"===typeof e&&""!==e||(e="utf8");if(!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|m(t,e);let r=a(n);const i=r.write(t,e);i!==n&&(r=r.slice(0,i));return r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Z(t,Uint8Array)){const e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return d(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Z(t,ArrayBuffer)||t&&Z(t.buffer,ArrayBuffer))return f(t,e,n);if("undefined"!==typeof SharedArrayBuffer&&(Z(t,SharedArrayBuffer)||t&&Z(t.buffer,SharedArrayBuffer)))return f(t,e,n);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,n);const i=function(t){if(c.isBuffer(t)){const e=0|p(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!==typeof t.length||Y(t.length)?a(0):d(t);if("Buffer"===t.type&&Array.isArray(t.data))return d(t.data)}(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return l(t),a(t<0?0:0|p(t))}function d(t){const e=t.length<0?0:0|p(t.length),n=a(e);for(let r=0;r<e;r+=1)n[r]=255&t[r];return n}function f(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,c.prototype),r}function p(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function m(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Z(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(t).length;default:if(i)return r?-1:H(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return C(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return P(this,e,n);case"base64":return I(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function y(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,i){let o,s=1,a=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let r=-1;for(o=n;o<a;o++)if(u(t,o)===u(e,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===c)return r*s}else-1!==r&&(o-=o-r),r=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){let n=!0;for(let r=0;r<c;r++)if(u(t,o+r)!==u(e,r)){n=!1;break}if(n)return o}return-1}function w(t,e,n,r){n=Number(n)||0;const i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=e.length;let s;for(r>o/2&&(r=o/2),s=0;s<r;++s){const r=parseInt(e.substr(2*s,2),16);if(Y(r))return s;t[n+s]=r}return s}function _(t,e,n,r){return $(H(e,t.length-n),t,n,r)}function k(t,e,n,r){return $(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function S(t,e,n,r){return $(q(e),t,n,r)}function x(t,e,n,r){return $(function(t,e){let n,r,i;const o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function I(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function A(t,e,n){n=Math.min(t.length,n);const r=[];let i=e;for(;i<n;){const e=t[i];let o=null,s=e>239?4:e>223?3:e>191?2:1;if(i+s<=n){let n,r,a,c;switch(s){case 1:e<128&&(o=e);break;case 2:n=t[i+1],128===(192&n)&&(c=(31&e)<<6|63&n,c>127&&(o=c));break;case 3:n=t[i+1],r=t[i+2],128===(192&n)&&128===(192&r)&&(c=(15&e)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=t[i+1],r=t[i+2],a=t[i+3],128===(192&n)&&128===(192&r)&&128===(192&a)&&(c=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(t){const e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);let n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=E));return n}(r)}c.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,n){return u(t,e,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,n){return function(t,e,n){return l(t),t<=0?a(t):void 0!==e?"string"===typeof n?a(t).fill(e,n):a(t).fill(e):a(t)}(t,e,n)},c.allocUnsafe=function(t){return h(t)},c.allocUnsafeSlow=function(t){return h(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(Z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),Z(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);let n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const r=c.allocUnsafe(e);let i=0;for(n=0;n<t.length;++n){let e=t[n];if(Z(e,Uint8Array))i+e.length>r.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,i)}i+=e.length}return r},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)y(this,e,e+1);return this},c.prototype.swap32=function(){const t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},c.prototype.swap64=function(){const t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},c.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?A(this,0,t):g.apply(this,arguments)}
vendor: 12,025 bytes, line 1
1,c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){let t="";const n=e.h2;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(t,e,n,r,i){if(Z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;let o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0);const a=Math.min(o,s),u=this.slice(r,i),l=t.slice(e,n);for(let c=0;c<a;++c)if(u[c]!==l[c]){o=u[c],s=l[c];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return _(this,t,e,n);case"ascii":case"latin1":case"binary":return k(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const E=4096;function T(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function P(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function C(t,e,n){const r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let i="";for(let o=e;o<n;++o)i+=X[t[o]];return i}function M(t,e,n){const r=t.slice(e,n);let i="";for(let o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function O(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function B(t,e,n,r,i){W(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,n}function j(t,e,n,r,i){W(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=s,s>>=8,t[n+2]=s,s>>=8,t[n+1]=s,s>>=8,t[n]=s,n+8}function N(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(t,e,n,r,o){return e=+e,n>>>=0,o||N(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function D(t,e,n,r,o){return e=+e,n>>>=0,o||N(t,0,n,8),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const r=this.subarray(t,e);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=this[t+--e],i=1;for(;e>0&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),c.prototype.readBigUInt64BE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),c.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=e,i=1,o=this[t+--r];for(;r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||O(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||O(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),c.prototype.readBigInt64BE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)})),c.prototype.readFloatLE=function(t,e){return t>>>=0,e||O(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||O(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||O(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||O(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){R(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){R(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=J((function(t,e=0){return B(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=J((function(t,e=0){return j(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=0,o=1,s=0;for(this[e]=255&t;++i<n&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=J((function(t,e=0){return B(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=J((function(t,e=0){return j(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(t,e,n){return L(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return L(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return D(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return D(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);const i=r-n;return this===t&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),i},c.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){const e=t.charCodeAt(0);("utf8"===r&&e<128||"latin1"===r)&&(t=e)}}else"number"===typeof t?t&=255:"boolean"===typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(i=e;i<n;++i)this[i]=t;else{const o=c.isBuffer(t)?t:c.from(t,r),s=o.length;
vendor: 4,139 bytes, line 1
1if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<n-e;++i)this[i+e]=o[i%s]}return this};const z={};function F(t,e,n){z[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function U(t){let e="",n=t.length;const r="-"===t[0]?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function W(t,e,n,r,i,o){if(t>n||t<e){const r="bigint"===typeof e?"n":"";let i;throw i=o>3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new z.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,n){G(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||V(e,t.length-(n+1))}(r,i,o)}function G(t,e){if("number"!==typeof t)throw new z.ERR_INVALID_ARG_TYPE(e,"number",t)}function V(t,e,n){if(Math.floor(t)!==t)throw G(t,n),new z.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new z.ERR_BUFFER_OUT_OF_BOUNDS;throw new z.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=U(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=U(i)),i+="n"),r+=` It must be ${e}. Received ${i}`,r}),RangeError);const K=/[^+/0-9A-Za-z-_]/g;function H(t,e){let n;e=e||1/0;const r=t.length;let i=null;const o=[];for(let s=0;s<r;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function $(t,e,n,r){let i;for(i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function Z(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Y(t){return t!==t}const X=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function J(t){return"undefined"===typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},30218:function(t,e,n){"use strict";n.r(e),n.d(e,{GoTrueApi:function(){return A},GoTrueClient:function(){return C},RealtimeClient:function(){return ut},RealtimeSubscription:function(){return st},SupabaseClient:function(){return Ot},Transformers:function(){return r},createClient:function(){return Rt}});var r={};n.r(r),n.d(r,{PostgresTypes:function(){return F},convertCell:function(){return G},convertChangeData:function(){return U},convertColumn:function(){return W},toArray:function(){return $},toBoolean:function(){return K},toJson:function(){return q},toNumber:function(){return H},toTimestampString:function(){return Z}});const i={"X-Client-Info":"supabase-js/1.35.7"};const o={"X-Client-Info":"gotrue-js/1.24.0"},s="Request Failed",a=10,c=2,u="supabase.auth.token",l={name:"sb",lifetime:28800,domain:"",path:"/",sameSite:"lax"};
1var h=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};const d=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t);function f(t,e,n,r,i){return h(this,void 0,void 0,(function*(){return new Promise(((o,a)=>{t(n,((t,e,n)=>{const r={method:t,headers:(null===e||void 0===e?void 0:e.headers)||{}};return"GET"===t||(r.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},null===e||void 0===e?void 0:e.headers),r.body=JSON.stringify(n)),r})(e,r,i)).then((t=>{if(!t.ok)throw t;return(null===r||void 0===r?void 0:r.noResolveJson)?o:t.json()})).then((t=>o(t))).catch((t=>((t,e)=>(null===t||void 0===t?void 0:t.status)?"function"!==typeof t.json?e(t):void t.json().then((n=>e({message:d(n),status:(null===t||void 0===t?void 0:t.status)||500}))):e({message:s}))(t,a)))}))}))}function p(t,e,n){return h(this,void 0,void 0,(function*(){return f(t,"GET",e,n)}))}function m(t,e,n,r){return h(this,void 0,void 0,(function*(){return f(t,"POST",e,r,n)}))}function g(t,e,n,r){return h(this,void 0,void 0,(function*(){return f(t,"PUT",e,r,n)}))}function y(t,e){var n,r,i;return function(t,e,n){const r=n||{},i=encodeURIComponent,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;if("function"!==typeof i)throw new TypeError("option encode is invalid");if(!o.test(t))throw new TypeError("argument name is invalid");const s=i(e);if(s&&!o.test(s))throw new TypeError("argument val is invalid");let a=t+"="+s;if(null!=r.maxAge){const t=r.maxAge-0;if(isNaN(t)||!isFinite(t))throw new TypeError("option maxAge is invalid");a+="; Max-Age="+Math.floor(t)}if(r.domain){if(!o.test(r.domain))throw new TypeError("option domain is invalid");a+="; Domain="+r.domain}if(r.path){if(!o.test(r.path))throw new TypeError("option path is invalid");a+="; Path="+r.path}if(r.expires){if("function"!==typeof r.expires.toUTCString)throw new TypeError("option expires is invali
1d");a+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(a+="; HttpOnly"),r.secure&&(a+="; Secure"),r.sameSite)switch("string"===typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a}(t.name,t.value,{maxAge:t.maxAge,expires:new Date(Date.now()+1e3*t.maxAge),httpOnly:!0,secure:e,path:null!==(n=t.path)&&void 0!==n?n:"/",domain:null!==(r=t.domain)&&void 0!==r?r:"",sameSite:null!==(i=t.sameSite)&&void 0!==i?i:"lax"})}function b(t,e,n){const r=n.map((e=>y(e,function(t){if(!t||!t.headers||!t.headers.host)throw new Error('The "host" request header is not available');const e=t.headers.host.indexOf(":")>-1&&t.headers.host.split(":")[0]||t.headers.host;return!(["localhost","127.0.0.1"].indexOf(e)>-1||e.endsWith(".local"))}(t)))),i=e.getHeader("Set-Cookie");return i&&(i instanceof Array?Array.prototype.push.apply(r,i):"string"===typeof i&&r.push(i)),r}function v(t,e,n){e.setHeader("Set-Cookie",b(t,e,n))}var w=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};function _(t){return Math.round(Date.now()/1e3)+t}const k=()=>"undefined"!==typeof window;function S(t,e){var n;e||(e=(null===(n=null===window||void 0===window?void 0:window.location)||void 0===n?void 0:n.href)||""),t=t.replace(/[\[\]]/g,"\\$&");const r=new RegExp("[?&#]"+t+"(=([^&#]*)|&|#|$)").exec(e);return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null}const x=t=>{let e;return e=t||("undefined"===typeof fetch?(...t)=>w(void 0,void 0,void 0,(function*(){return yield(yield n.e(4098).then(n.t.bind(n,54098,23))).fetch(...t)})):fetch),(...t)=>e(...t)};var I=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};class A{constructor({url:t="",headers:e={},cookieOptions:n,fetch:r}){this.url=t,this.headers=e,this.cookieOptions=Object.assign(Object.assign({},l),n),this.fetch=x(r)}_createRequestHeaders(t){const e=Object.assign({},this.headers);return e.Authorization=`Bearer ${t}`,e}cookieName(){var t;return null!==(t=this.cookieOptions.name)&&void 0!==t?t:""}getUrlForProvider(t,e){const n=[`provider=${encodeURIComponent(t)}`];if((null===e||void 0===e?void 0:e.redirectTo)&&n.push(`redirect_to=${encodeURIComponent(e.redirectTo)}`),(null===e||void 0===e?void 0:e.scopes)&&n.push(`scopes=${encodeURIComponent(e.scopes)}`),null===e||void 0===e?void 0:e.queryParams){const t=new URLSearchParams(e.queryParams);n.push(`${t}`)}return`${this.url}/authorize?${n.join("&")}`}signUpWithEmail(t,e,n={}){return I(this,void 0,void 0,(function*(){try{const r=Object.assign({},this.headers);let i="";n.redirectTo&&(i="?redirect_to="+encodeURIComponent(n.redirectTo));const o=yield m(this.fetch,`${this.url}/signup${i}`,{email:t,password:e,data:n.data,gotrue_meta_security:{captcha_token:n.captchaToken}},{headers:r}),s=Object.assign({},o);return s.expires_in&&(s.expires_at=_(o.expires_in)),{data:s,error:null}}catch(r){return{data:null,error:r}}}))}signInWithEmail(t,e,n={}){return I(this,void 0,void 0,(function*(){try{const r=Object.assign({},this.headers);let i="?grant_type=password";n.redirectTo&&(i+="&redirect_to="+encodeURIComponent(n.redirectTo));const o=yield m(this.fetch,`${this.url}/token${i}`,{email:t,password:e,gotrue_meta_security:{captcha_token:n.captchaToken}},{headers:r}),s=Object.assign({},o);return s.expires_in&&(s.expires_at=_(o.expires_in)),{data:s,error:null}}catch(r){return{data:null,error:r}}}))}signUpWithPhone(t,e,n={}){return I(this,void 0,void 0,(function*(){try{const r=Object.assign({},this.headers),i=yield m(this.fetch,`${this.url}/signup`,{phone:t,password:e,data:n.data,gotrue_meta_security:{captcha_token:n.captchaToken}},{headers:r}),o=Object.assign({},i);return o.expires_in&&(o.expires_at=_(i.expires_in)),{data:o,error:null}}catch(r){return{data:null,error:r}}}))}signInWithPhone(t,e,n={}){return I(this,void 0,void 0,(function*(){try{const r=Object.assign({},this.headers),i="?grant_type=password",o=yield m(this.fetch,`${this.url}/token${i}`,{phone:t,password:e,gotrue_meta_security:{captcha_token:n.captchaToken}},{headers:r}),s=Object.assign({},o);return s.expires_in&&(s.expires_at=_(o.expires_in)),{data:s,error:null}}catch(r){return{data:null,error:r}}}))}signInWithOpenIDConnect({id_token:t,nonce:e,client_id:n,issuer:r,provider:i}){return I(this,void 0,void 0,(function*(){try{const o=Object.assign({},this.headers),s="?grant_type=id_token",a=yield m(this.fetch,`${this.url}/token${s}`,{id_token:t,nonce:e,client_id:n,issuer:r,provider:i},{headers:o}),c=Object.assign({},a);return c.expires_in&&(c.expires_at=_(a.expires_in)),{data:c,error:null}}catch(o){return{data:null,error:o}}}))}sendMagicLinkEmail(t,e={}){var n;return I(this,void 0,void 0,(function*(){try{const r=Object.assign({},this.headers);let i="";
1e.redirectTo&&(i+="?redirect_to="+encodeURIComponent(e.redirectTo));const o=null===(n=e.shouldCreateUser)||void 0===n||n;return{data:yield m(this.fetch,`${this.url}/otp${i}`,{email:t,create_user:o,gotrue_meta_security:{captcha_token:e.captchaToken}},{headers:r}),error:null}}catch(r){return{data:null,error:r}}}))}sendMobileOTP(t,e={}){var n;return I(this,void 0,void 0,(function*(){try{const r=null===(n=e.shouldCreateUser)||void 0===n||n,i=Object.assign({},this.headers);return{data:yield m(this.fetch,`${this.url}/otp`,{phone:t,create_user:r,gotrue_meta_security:{captcha_token:e.captchaToken}},{headers:i}),error:null}}catch(r){return{data:null,error:r}}}))}signOut(t){return I(this,void 0,void 0,(function*(){try{return yield m(this.fetch,`${this.url}/logout`,{},{headers:this._createRequestHeaders(t),noResolveJson:!0}),{error:null}}catch(e){return{error:e}}}))}verifyMobileOTP(t,e,n={}){return I(this,void 0,void 0,(function*(){try{const r=Object.assign({},this.headers),i=yield m(this.fetch,`${this.url}/verify`,{phone:t,token:e,type:"sms",redirect_to:n.redirectTo},{headers:r}),o=Object.assign({},i);return o.expires_in&&(o.expires_at=_(i.expires_in)),{data:o,error:null}}catch(r){return{data:null,error:r}}}))}verifyOTP({email:t,phone:e,token:n,type:r="sms"},i={}){return I(this,void 0,void 0,(function*(){try{const o=Object.assign({},this.headers),s=yield m(this.fetch,`${this.url}/verify`,{email:t,phone:e,token:n,type:r,redirect_to:i.redirectTo},{headers:o}),a=Object.assign({},s);return a.expires_in&&(a.expires_at=_(s.expires_in)),{data:a,error:null}}catch(o){return{data:null,error:o}}}))}inviteUserByEmail(t,e={}){return I(this,void 0,void 0,(function*(){try{const n=Object.assign({},this.headers);let r="";e.redirectTo&&(r+="?redirect_to="+encodeURIComponent(e.redirectTo));return{data:yield m(this.fetch,`${this.url}/invite${r}`,{email:t,data:e.data},{headers:n}),error:null}}catch(n){return{data:null,error:n}}}))}resetPasswordForEmail(t,e={}){return I(this,void 0,void 0,(function*(){try{const n=Object.assign({},this.headers);let r="";e.redirectTo&&(r+="?redirect_to="+encodeURIComponent(e.redirectTo));return{data:yield m(this.fetch,`${this.url}/recover${r}`,{email:t,gotrue_meta_security:{captcha_token:e.captchaToken}},{headers:n}),error:null}}catch(n){return{data:null,error:n}}}))}refreshAccessToken(t){return I(this,void 0,void 0,(function*(){try{const e=yield m(this.fetch,`${this.url}/token?grant_type=refresh_token`,{refresh_token:t},{headers:this.headers}),n=Object.assign({},e);return n.expires_in&&(n.expires_at=_(e.expires_in)),{data:n,error:null}}catch(e){return{data:null,error:e}}}))}setAuthCookie(t,e){"POST"!==t.method&&(e.setHeader("Allow","POST"),e.status(405).end("Method Not Allowed"));const{event:n,session:r}=t.body;if(!n)throw new Error("Auth event missing!");if("SIGNED_IN"===n){if(!r)throw new Error("Auth session missing!");v(t,e,[{key:"access-token",value:r.access_token},{key:"refresh-token",value:r.refresh_token}].map((t=>{var e;return{name:`${this.cookieName()}-${t.key}`,value:t.value,domain:this.cookieOptions.domain,maxAge:null!==(e=this.cookieOptions.lifetime)&&void 0!==e?e:0,path:this.cookieOptions.path,sameSite:this.cookieOptions.sameSite}})))}"SIGNED_OUT"===n&&v(t,e,["access-token","refresh-token"].map((t=>({name:`${this.cookieName()}-${t}`,value:"",maxAge:-1})))),e.status(200).json({})}deleteAuthCookie(t,e,{redirectTo:n="/"}){return v(t,e,["access-token","refresh-token"].map((t=>({name:`${this.cookieName()}-${t}`,value:"",maxAge:-1})))),e.redirect(307,n)}getAuthCookieString(t,e){"POST"!==t.method&&(e.setHeader("Allow","POST"),e.status(405).end("Method Not Allowed"));const{event:n,session:r}=t.body;if(!n)throw new Error("Auth event missing!");if("SIGNED_IN"===n){if(!r)throw new Error("Auth session missing!");return b(t,e,[{key:"access-token",value:r.access_token},{key:"refresh-token",value:r.refresh_token}].map((t=>{var e;return{name:`${this.cookieName()}-${t.key}`,value:t.value,domain:this.cookieOptions.domain,maxAge:null!==(e=this.cookieOptions.lifetime)&&void 0!==e?e:0,path:this.cookieOptions.path,sameSite:this.cookieOptions.sameSite}})))}return"SIGNED_OUT"===n?b(t,e,["access-token","refresh-token"].map((t=>({name:`${this.cookieName()}-${t}`,value:"",maxAge:-1})))):e.getHeader("Set-Cookie")}generateLink(t,e,n={}){return I(this,void 0,void 0,(function*(){try{return{data:yield m(this.fetch,`${this.url}/admin/generate_link`,{type:t,email:e,password:n.password,data:n.data,redirect_to:n.redirectTo},{headers:this.headers}),error:null}}catch(r){return{data:null,error:r}}}))}createUser(t){return I(this,void 0,void 0,(function*(){try{const e=yield m(this.fetch,`${this.url}/admin/users`,t,{headers:this.headers});return{user:e,data:e,error:null}}catch(e){return{user:null,data:null,error:e}}}))}listUsers(){return I(this,void 0,void 0,(function*(){try{return{data:(yield p(this.fetch,`${this.url}/admin/users`,{headers:this.headers})).users,error:null}}catch(t){return{data:null,error:t}}}))}getUserById(t){return I(this,void 0,void 0,(function*(){try{return{data:yield p(this.fetch,`${this.url}/admin/users/${t}`,{headers:this.headers}),error:null}}catch(e){return{data:null,error:e}}}))}getUserByCookie(t,e){return I(this,void 0,void 0,(function*(){try{if(!t.cookies)throw new Error("Not able to parse cookies! When using Express make sure the cookie-parser middleware is in use!");const n=t.cookies[`${this.cookieName()}-access-token`],r=t.cookies[`${this.cookieName()}-refresh-token`];if(!n)throw new Error("No cookie found!");const{user:i,error:o}=yield this.getUser(n);if(o){if(!r)throw new Error("No refresh_token cookie found!");if(!e)throw new Error("You need to pass the res object to automatically refresh the session!");const{data:n,error:i}=yield this.refreshAccessToken(r);if(i)throw i;if(n)return v(t,e,[{key:"access-token",value:n.access_token},{key:"refresh-token",value:n.refresh_token}].map((t=>{var e;return{name:`${this.cookieName()}-${t.key}`,value:t.value,domain:this.cookieOptions.domain,maxAge:null!==(e=this.cookieOptions.lifetime)&&void 0!==e?e:0,path:this.cookieOptions.path,sameSite:this.cookieOptions.sameSite}}))),{token:n.access_token,user:n.user,data:n.user,error:null}}return{token:n,user:i,data:i,error:null}}catch(n){return{token:null,user:null,data:null,error:n}}}))}updateUserById(t,e){return I(this,void 0,void 0,(function*(){try{const n=yield g(this.fetch,`${this.url}/admin/users/${t}`,e,{headers:this.headers});return{user:n,data:n,error:null}}catch(n){return{user:null,data:null,error:n}}}))}deleteUser(t){return I(this,void 0,void 0,(function*(){try{const e=yield function(t,e,n,r){return h(this,void 0,void 0,(function*(){return f(t,"DELETE",e,r,n)}))}(this.fetch,`${this.url}/admin/users/${t}`,{},{headers:this.headers});return{user:e,data:e,error:null}}catch(e){return{user:null,data:null,error:e}}}))}getUser(t){return I(this,void 0,void 0,(function*(){try{const e=yield p(this.fetch,`${this.url}/user`,{headers:this._createRequestHeaders(t)});return{user:e,data:e,error:null}}catch(e){return{user:null,data:null,error:e}}}))}updateUser(t,e){return I(this,void 0,void 0,(function*(){try{const n=yield g(this.fetch,`${this.url}/user`,e,{headers:this._createRequestHeaders(t)});return{user:n,data:n,error:null}}catch(n){return{user:null,data:null,error:n}}}))}}
1var E=n(48764).Buffer,T=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};!function(){if("object"!==typeof globalThis)try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch(t){"undefined"!==typeof self&&(self.globalThis=self)}}();const P={url:"http://localhost:9999",autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,multiTab:!0,headers:o};class C{constructor(t){this.stateChangeEmitters=new Map,this.networkRetries=0;const e=Object.assign(Object.assign({},P),t);this.currentUser=null,this.currentSession=null,this.autoRefreshToken=e.autoRefreshToken,this.persistSession=e.persistSession,this.multiTab=e.multiTab,this.localStorage=e.localStorage||globalThis.localStorage,this.api=new A({url:e.url,headers:e.headers,cookieOptions:e.cookieOptions,fetch:e.fetch}),this._recoverSession(),this._recoverAndRefresh(),this._listenForMultiTabEvents(),this._handleVisibilityChange(),e.detectSessionInUrl&&k()&&S("access_token")&&this.getSessionFromUrl({storeSession:!0}).then((({error:t})=>{if(t)throw new Error("Error getting session from URL.")}))}signUp({email:t,password:e,phone:n},r={}){return T(this,void 0,void 0,(function*(){try{this._removeSession();const{data:i,error:o}=n&&e?yield this.api.signUpWithPhone(n,e,{data:r.data,captchaToken:r.captchaToken}):yield this.api.signUpWithEmail(t,e,{redirectTo:r.redirectTo,data:r.data,captchaToken:r.captchaToken});if(o)throw o;if(!i)throw"An error occurred on sign up.";let s=null,a=null;return i.access_token&&(s=i,a=s.user,this._saveSession(s),this._notifyAllSubscribers("SIGNED_IN")),i.id&&(a=i),{user:a,session:s,error:null}}catch(i){return{user:null,session:null,error:i}}}))}signIn({email:t,phone:e,password:n,refreshToken:r,provider:i,oidc:o},s={}){return T(this,void 0,void 0,(function*(){try{if(this._removeSession(),t&&!n){const{error:e}=yield this.api.sendMagicLinkEmail(t,{redirectTo:s.redirectTo,shouldCreateUser:s.shouldCreateUser,captchaToken:s.captchaToken});return{user:null,session:null,error:e}}if(t&&n)return this._handleEmailSignIn(t,n,{redirectTo:s.redirectTo,captchaToken:s.captchaToken});if(e&&!n){const{error:t}=yield this.api.sendMobileOTP(e,{shouldCreateUser:s.shouldCreateUser,captchaToken:s.captchaToken});return{user:null,session:null,error:t}}if(e&&n)return this._handlePhoneSignIn(e,n);if(r){const{error:t}=yield this._callRefreshToken(r);if(t)throw t;return{user:this.currentUser,session:this.currentSession,error:null}}if(i)return this._handleProviderSignIn(i,{redirectTo:s.redirectTo,scopes:s.scopes,queryParams:s.queryParams});if(o)return this._handleOpenIDConnectSignIn(o);throw new Error("You must provide either an email, phone number, a third-party provider or OpenID Connect.")}catch(a){return{user:null,session:null,error:a}}}))}verifyOTP(t,e={}){return T(this,void 0,void 0,(function*(){try{this._removeSession();const{data:n,error:r}=yield this.api.verifyOTP(t,e);if(r)throw r;if(!n)throw"An error occurred on token verification.";let i=null,o=null;return n.access_token&&(i=n,o=i.user,this._saveSession(i),this._notifyAllSubscribers("SIGNED_IN")),n.id&&(o=n),{user:o,session:i,error:null}}catch(n){return{user:null,session:null,error:n}}}))}user(){return this.currentUser}session(){return this.currentSession}refreshSession(){var t;return T(this,void 0,void 0,(function*(){try{if(!(null===(t=this.currentSession)||void 0===t?void 0:t.access_token))throw new Error("Not logged in.");const{error:e}=yield this._callRefreshToken();if(e)throw e;return{data:this.currentSession,user:this.currentUser,error:null}}catch(e){return{data:null,user:null,error:e}}}))}update(t){var e;return T(this,void 0,void 0,(function*(){try{if(!(null===(e=this.currentSession)||void 0===e?void 0:e.access_token))throw new Error("Not logged in.");const{user:n,error:r}=yield this.api.updateUser(this.currentSession.access_token,t);if(r)throw r;if(!n)throw Error("Invalid user data.");const i=Object.assign(Object.assign({},this.currentSession),{user:n});return this._saveSession(i),this._notifyAllSubscribers("USER_UPDATED"),{data:n,user:n,error:null}}catch(n){return{data:null,user:null,error:n}}}))}setSession(t){return T(this,void 0,void 0,(function*(){let e;if("string"===typeof t){const n=t,{data:r,error:i}=yield this.api.refreshAccessToken(n);if(i)return{session:null,error:i};e=r}else{const r=Math.round(Date.now()/1e3);let{refresh_token:i,access_token:o}=t,s=0,a=0;const c=o.split(".");if(3!==c.length)throw new Error("access_token is not a proper JWT");const u=(t=>{try{return atob(t.replace(/[-]/g,"+").replace(/[_]/g,"/"))}catch(e){if(e instanceof ReferenceError)return E.from(t,"base64").toString("utf-8");throw e}})(c[1]);let l;try{l=JSON.parse(u)}catch(n){throw new Error("access_token is not a proper JWT, invalid JSON in body")}if("object"!==typeof l||!l||"number"!==typeof l.exp)throw new Error("access_token is not a proper JWT, missing exp claim");if(s=l.exp,a=r-l.exp,r>s){const{data:t,error:n}=yield this.api.refreshAccessToken(i);if(n)return{session:null,error:n};e=t}else{const{user:t,error:n}=yield this.api.getUser(o);if(n)throw n;e={access_token:o,expires_in:a,expires_at:s,refresh_token:i,token_type:"bearer",user:t}}}try{return this._saveSession(e),this._notifyAllSubscribers("SIGNED_IN"),{session:e,error:null}}catch(n){return{error:n,session:null}}}))}setAuth(t){return this.currentSession=Object.assign(Object.assign({},this.currentSession),{access_token:t,token_type:"bearer",user:this.user()}),this._notifyAllSubscribers("TOKEN_REFRESHED"),this.currentSession}getSessionFromUrl(t){return T(this,void 0,void 0,(function*(){try{if(!k())throw new Error("No browser detected.");const e=S("error_description");if(e)throw new Error(e);const n=S("provider_token"),r=S("provider_refresh_token"),i=S("access_token");if(!i)throw new Error("No access_token detected.");const o=S("expires_in");if(!o)throw new Error("No expires_in detected.");const s=S("refresh_token");if(!s)throw new Error("No refresh_token detected.");const a=S("token_type");if(!a)throw new Error("No token_type detected.");const c=Math.round(Date.now()/1e3)+parseInt(o),{user:u,error:l}=yield this.api.getUser(i);if(l)throw l;const h={provider_token:n,provider_refresh_token:r,access_token:i,expires_in:parseInt(o),expires_at:c,refresh_token:s,token_type:a,user:u};if(null===t||void 0===t?void 0:t.storeSession){this._saveSession(h);const t=S("type");this._notifyAllSubscribers("SIGNED_IN"),"recovery"===t&&this._notifyAllSubscribers("PASSWORD_RECOVERY")}return window.location.hash="",{data:h,error:null}}catch(e){return{data:null,error:e}}}))}signOut(){var t;return T(this,void 0,void 0,(function*(){const e=null===(t=this.currentSession)||void 0===t?void 0:t.access_token;if(this._removeSession(),this._notifyAllSubscribers("SIGNED_OUT"),e){const{error:t}=yield this.api.signOut(e);if(t)return{error:t}}return{error:null}}))}onAuthStateChange(t){try{const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})),n={id:e,callback:t,unsubscribe:()=>{this.stateChangeEmitters.delete(e)}};return this.stateChangeEmitters.set(e,n),{data:n,error:null}}catch(e){return{data:null,error:e}}}_handleEmailSignIn(t,e,n={}){var r,i;return T(this,void 0,void 0,(function*(){try{const{data:o,error:s}=yield this.api.signInWithEmail(t,e,{redirectTo:n.redirectTo,captchaToken:n.captchaToken});return s||!o?{data:null,user:null,session:null,error:s}:(((null===(r=null===o||void 0===o?void 0:o.user)||void 0===r?void 0:r.confirmed_at)||(null===(i=null===o||void 0===o?void 0:o.user)||void 0===i?void 0:i.email_confirmed_at))&&(this._saveSession(o),this._notifyAllSubscribers("SIGNED_IN")),{data:o,user:o.user,session:o,error:null})}catch(o){return{data:null,user:null,session:null,error:o}}}))}_handlePhoneSignIn(t,e,n={}){var r;return T(this,void 0,void 0,(function*(){try{const{data:i,error:o}=yield this.api.signInWithPhone(t,e,n);return o||!i?{data:null,user:null,session:null,error:o}:((null===(r=null===i||void 0===i?void 0:i.user)||void 0===r?void 0:r.phone_confirmed_at)&&(this._saveSession(i),this._notifyAllSubscribers("SIGNED_IN")),{data:i,user:i.user,session:i,error:null})}catch(i){return{data:null,user:null,session:null,error:i}}}))}_handleProviderSignIn(t,e={}){const n=this.api.getUrlForProvider(t,{redirectTo:e.redirectTo,scopes:e.scopes,queryParams:e.queryParams});try{return k()&&(window.location.href=n),{provider:t,url:n,data:null,session:null,user:null,error:null}}catch(r){return n?{provider:t,url:n,data:null,session:null,user:null,error:null}:{data:null,user:null,session:null,error:r}}}_handleOpenIDConnectSignIn({id_token:t,nonce:e,client_id:n,issuer:r,provider:i}){return T(this,void 0,void 0,(function*(){if(t&&e&&(n&&r||i))try{const{data:o,error:s}=yield this.api.signInWithOpenIDConnect({id_token:t,nonce:e,client_id:n,issuer:r,provider:i});return s||!o?{user:null,session:null,error:s}:(this._saveSession(o),this._notifyAllSubscribers("SIGNED_IN"),{user:o.user,session:o,error:null})}catch(o){return{user:null,session:null,error:o}}throw new Error("You must provide a OpenID Connect provider with your id token and nonce.")}))}_recoverSession(){try{const t=((t,e)=>{const n=k()&&(null===t||void 0===t?void 0:t.getItem(e));if(!n||"string"!==typeof n)return null;try{return JSON.parse(n)}catch(r){return n}})(this.localStorage,u);if(!t)return null;const{currentSession:e,expiresAt:n}=t;n>=Math.round(Date.now()/1e3)+10&&(null===e||void 0===e?void 0:e.user)&&(this._saveSession(e),this._notifyAllSubscribers("SIGNED_IN"))}catch(t){console.log("error",t)}}_recoverAndRefresh(){return T(this,void 0,void 0,(function*(){try{const n=yield(t=this.localStorage,e=u,w(void 0,void 0,void 0,(function*(){const n=k()&&(yield null===t||void 0===t?void 0:t.getItem(e));if(!n)return null;try{return JSON.parse(n)}catch(r){return n}})));if(!n)return null;const{currentSession:r,expiresAt:i}=n;if(i<Math.round(Date.now()/1e3)+10)if(this.autoRefreshToken&&r.refresh_token){this.networkRetries++;const{error:t}=yield this._callRefreshToken(r.refresh_token);if(t){if(console.log(t.message),t.message===s&&this.networkRetries<a)return this.refreshTokenTimer&&clearTimeout(this.refreshTokenTimer),void(this.refreshTokenTimer=setTimeout((()=>this._recoverAndRefresh()),100*Math.pow(c,this.networkRetries)));yield this._removeSession()}this.networkRetries=0}else this._removeSession();else r?(this._saveSession(r),this._notifyAllSubscribers("SIGNED_IN")):(console.log("Current session is missing data."),this._removeSession())}catch(n){return console.error(n),null}var t,e}))}_callRefreshToken(t){var e;return void 0===t&&(t=null===(e=this.currentSession)||void 0===e?void 0:e.refresh_token),T(this,void 0,void 0,(function*(){try{if(!t)throw new Error("No current session.");const{data:e,error:n}=yield this.api.refreshAccessToken(t);if(n)throw n;if(!e)throw Error("Invalid session data.");return this._saveSession(e),this._notifyAllSubscribers("TOKEN_REFRESHED"),this._notifyAllSubscribers("SIGNED_IN"),{data:e,error:null}}catch(e){return{data:null,error:e}}}))}
1_notifyAllSubscribers(t){this.stateChangeEmitters.forEach((e=>e.callback(t,this.currentSession)))}_saveSession(t){this.currentSession=t,this.currentUser=t.user;const e=t.expires_at;if(e){const t=e-Math.round(Date.now()/1e3),n=t>10?10:.5;this._startAutoRefreshToken(1e3*(t-n))}this.persistSession&&t.expires_at&&this._persistSession(this.currentSession)}_persistSession(t){const e={currentSession:t,expiresAt:t.expires_at};((t,e,n)=>{w(void 0,void 0,void 0,(function*(){k()&&(yield null===t||void 0===t?void 0:t.setItem(e,JSON.stringify(n)))}))})(this.localStorage,u,e)}_removeSession(){return T(this,void 0,void 0,(function*(){var t,e;this.currentSession=null,this.currentUser=null,this.refreshTokenTimer&&clearTimeout(this.refreshTokenTimer),t=this.localStorage,e=u,w(void 0,void 0,void 0,(function*(){k()&&(yield null===t||void 0===t?void 0:t.removeItem(e))}))}))}_startAutoRefreshToken(t){this.refreshTokenTimer&&clearTimeout(this.refreshTokenTimer),t<=0||!this.autoRefreshToken||(this.refreshTokenTimer=setTimeout((()=>T(this,void 0,void 0,(function*(){this.networkRetries++;const{error:t}=yield this._callRefreshToken();t||(this.networkRetries=0),(null===t||void 0===t?void 0:t.message)===s&&this.networkRetries<a&&this._startAutoRefreshToken(100*Math.pow(c,this.networkRetries))}))),t),"function"===typeof this.refreshTokenTimer.unref&&this.refreshTokenTimer.unref())}_listenForMultiTabEvents(){if(!this.multiTab||!k()||!(null===window||void 0===window?void 0:window.addEventListener))return!1;try{null===window||void 0===window||window.addEventListener("storage",(t=>{var e;if(t.key===u){const n=JSON.parse(String(t.newValue));(null===(e=null===n||void 0===n?void 0:n.currentSession)||void 0===e?void 0:e.access_token)?(this._saveSession(n.currentSession),this._notifyAllSubscribers("SIGNED_IN")):(this._removeSession(),this._notifyAllSubscribers("SIGNED_OUT"))}}))}catch(t){console.error("_listenForMultiTabEvents",t)}}_handleVisibilityChange(){if(!this.multiTab||!k()||!(null===window||void 0===window?void 0:window.addEventListener))return!1;try{null===window||void 0===window||window.addEventListener("visibilitychange",(()=>{"visible"===document.visibilityState&&this._recoverAndRefresh()}))}catch(t){console.error("_handleVisibilityChange",t)}}}class M extends C{constructor(t){super(t)}}var O=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};class R{constructor(t){let e;Object.assign(this,t),e=t.fetch?t.fetch:"undefined"===typeof fetch?(...t)=>O(this,void 0,void 0,(function*(){return yield(yield n.e(4098).then(n.t.bind(n,54098,23))).fetch(...t)})):fetch,this.fetch=(...t)=>e(...t),this.shouldThrowOnError=t.shouldThrowOnError||!1,this.allowEmpty=t.allowEmpty||!1}throwOnError(t){return null!==t&&void 0!==t||(t=!0),this.shouldThrowOnError=t,this}then(t,e){"undefined"===typeof this.schema||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),"GET"!==this.method&&"HEAD"!==this.method&&(this.headers["Content-Type"]="application/json");let n=this.fetch(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then((t=>O(this,void 0,void 0,(function*(){var e,n,r,i;let o=null,s=null,a=null,c=t.status,u=t.statusText;if(t.ok){const i=null===(e=this.headers.Prefer)||void 0===e?void 0:e.split(",").includes("return=minimal");if("HEAD"!==this.method&&!i){const e=yield t.text();e&&(s="text/csv"===this.headers.Accept?e:JSON.parse(e))}const o=null===(n=this.headers.Prefer)||void 0===n?void 0:n.match(/count=(exact|planned|estimated)/),c=null===(r=t.headers.get("content-range"))||void 0===r?void 0:r.split("/");o&&c&&c.length>1&&(a=parseInt(c[1]))}else{const e=yield t.text();try{o=JSON.parse(e)}catch(l){o={message:e}}if(o&&this.allowEmpty&&(null===(i=null===o||void 0===o?void 0:o.details)||void 0===i?void 0:i.includes("Results contain 0 rows"))&&(o=null,c=200,u="OK"),o&&this.shouldThrowOnError)throw o}return{error:o,data:s,count:a,status:c,statusText:u,body:s}}))));return this.shouldThrowOnError||(n=n.catch((t=>({error:{message:`FetchError: ${t.message}`,details:"",hint:"",code:t.code||""},data:null,body:null,count:null,status:400,statusText:"Bad Request"})))),n.then(t,e)}}class B extends R{select(t="*"){let e=!1;const n=t.split("").map((t=>/\s/.test(t)&&!e?"":('"'===t&&(e=!e),t))).join("");return this.url.searchParams.set("select",n),this}order(t,{ascending:e=!0,nullsFirst:n=!1,foreignTable:r}={}){const i="undefined"===typeof r?"order":`${r}.order`,o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${t}.${e?"asc":"desc"}.${n?"nullsfirst":"nullslast"}`),this}limit(t,{foreignTable:e}={}){const n="undefined"===typeof e?"limit":`${e}.limit`;return this.url.searchParams.set(n,`${t}`),this}range(t,e,{foreignTable:n}={}){const r="undefined"===typeof n?"offset":`${n}.offset`,i="undefined"===typeof n?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${t}`),this.url.searchParams.set(i,""+(e-t+1)),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.headers.Accept="application/vnd.pgrst.object+json",this.allowEmpty=!0,this}csv(){return this.headers.Accept="text/csv",this}}class j extends B{constructor(){super(...arguments),this.cs=this.contains,this.cd=this.containedBy,this.sl=this.rangeLt,this.sr=this.rangeGt,this.nxl=this.rangeGte,this.nxr=this.rangeLte,this.adj=this.rangeAdjacent,this.ov=this.overlaps}not(t,e,n){return this.url.searchParams.append(`${t}`,`not.${e}.${n}`),this}or(t,{foreignTable:e}={}){const n="undefined"===typeof e?"or":`${e}.or`;return this.url.searchParams.append(n,`(${t})`),this}eq(t,e){return this.url.searchParams.append(`${t}`,`eq.${e}`),this}neq(t,e){return this.url.searchParams.append(`${t}`,`neq.${e}`),this}gt(t,e){return this.url.searchParams.append(`${t}`,`gt.${e}`),this}gte(t,e){return this.url.searchParams.append(`${t}`,`gte.${e}`),this}lt(t,e){return this.url.searchParams.append(`${t}`,`lt.${e}`),this}lte(t,e){return this.url.searchParams.append(`${t}`,`lte.${e}`),this}like(t,e){return this.url.searchParams.append(`${t}`,`like.${e}`),this}ilike(t,e){return this.url.searchParams.append(`${t}`,`ilike.${e}`),this}is(t,e){return this.url.searchParams.append(`${t}`,`is.${e}`),this}in(t,e){const n=e.map((t=>"string"===typeof t&&new RegExp("[,()]").test(t)?`"${t}"`:`${t}`)).join(",");return this.url.searchParams.append(`${t}`,`in.(${n})`),this}contains(t,e){return"string"===typeof e?this.url.searchParams.append(`${t}`,`cs.${e}`):Array.isArray(e)?this.url.searchParams.append(`${t}`,`cs.{${e.join(",")}}`):this.url.searchParams.append(`${t}`,`cs.${JSON.stringify(e)}`),this}containedBy(t,e){return"string"===typeof e?this.url.searchParams.append(`${t}`,`cd.${e}`):Array.isArray(e)?this.url.searchParams.append(`${t}`,`cd.{${e.join(",")}}`):this.url.searchParams.append(`${t}`,`cd.${JSON.stringify(e)}`),this}rangeLt(t,e){return this.url.searchParams.append(`${t}`,`sl.${e}`),this}rangeGt(t,e){return this.url.searchParams.append(`${t}`,`sr.${e}`),this}rangeGte(t,e){return this.url.searchParams.append(`${t}`,`nxl.${e}`),this}rangeLte(t,e){return this.url.searchParams.append(`${t}`,`nxr.${e}`),this}rangeAdjacent(t,e){return this.url.searchParams.append(`${t}`,`adj.${e}`),this}overlaps(t,e){return"string"===typeof e?this.url.searchParams.append(`${t}`,`ov.${e}`):this.url.searchParams.append(`${t}`,`ov.{${e.join(",")}}`),this}textSearch(t,e,{config:n,type:r=null}={}){let i="";"plain"===r?i="pl":"phrase"===r?i="ph":"websearch"===r&&(i="w");const o=void 0===n?"":`(${n})`;return this.url.searchParams.append(`${t}`,`${i}fts${o}.${e}`),this}fts(t,e,{config:n}={}){const r="undefined"===typeof n?"":`(${n})`;return this.url.searchParams.append(`${t}`,`fts${r}.${e}`),this}plfts(t,e,{config:n}={}){const r="undefined"===typeof n?"":`(${n})`;return this.url.searchParams.append(`${t}`,`plfts${r}.${e}`),this}phfts(t,e,{config:n}={}){const r="undefined"===typeof n?"":`(${n})`;return this.url.searchParams.append(`${t}`,`phfts${r}.${e}`),this}wfts(t,e,{config:n}={}){const r="undefined"===typeof n?"":`(${n})`;return this.url.searchParams.append(`${t}`,`wfts${r}.${e}`),this}filter(t,e,n){return this.url.searchParams.append(`${t}`,`${e}.${n}`),this}match(t){return Object.keys(t).forEach((e=>{this.url.searchParams.append(`${e}`,`eq.${t[e]}`)})),this}}class N extends R{constructor(t,{headers:e={},schema:n,fetch:r,shouldThrowOnError:i}={}){super({fetch:r,shouldThrowOnError:i}),this.url=new URL(t),this.headers=Object.assign({},e),this.schema=n}select(t="*",{head:e=!1,count:n=null}={}){this.method="GET";let r=!1;const i=t.split("").map((t=>/\s/.test(t)&&!r?"":('"'===t&&(r=!r),t))).join("");return this.url.searchParams.set("select",i),n&&(this.headers.Prefer=`count=${n}`),e&&(this.method="HEAD"),new j(this)}insert(t,{upsert:e=!1,onConflict:n,returning:r="representation",count:i=null}={}){this.method="POST";const o=[`return=${r}`];if(e&&o.push("resolution=merge-duplicates"),e&&void 0!==n&&this.url.searchParams.set("on_conflict",n),this.body=t,i&&o.push(`count=${i}`),this.headers.Prefer&&o.unshift(this.headers.Prefer),this.headers.Prefer=o.join(","),Array.isArray(t)){const e=t.reduce(((t,e)=>t.concat(Object.keys(e))),[]);if(e.length>0){const t=[...new Set(e)].map((t=>`"${t}"`));this.url.searchParams.set("columns",t.join(","))}}return new j(this)}upsert(t,{onConflict:e,returning:n="representation",count:r=null,ignoreDuplicates:i=!1}={}){this.method="POST";const o=[`resolution=${i?"ignore":"merge"}-duplicates`,`return=${n}`];return void 0!==e&&this.url.searchParams.set("on_conflict",e),this.body=t,r&&o.push(`count=${r}`),this.headers.Prefer&&o.unshift(this.headers.Prefer),this.headers.Prefer=o.join(","),new j(this)}update(t,{returning:e="representation",count:n=null}={}){this.method="PATCH";const r=[`return=${e}`];return this.body=t,n&&r.push(`count=${n}`),this.headers.Prefer&&r.unshift(this.headers.Prefer),this.headers.Prefer=r.join(","),new j(this)}delete({returning:t="representation",count:e=null}={}){this.method="DELETE";const n=[`return=${t}`];return e&&n.push(`count=${e}`),this.headers.Prefer&&n.unshift(this.headers.Prefer),this.headers.Prefer=n.join(","),new j(this)}}class L extends R{constructor(t,{headers:e={},schema:n,fetch:r,shouldThrowOnError:i}={}){super({fetch:r,shouldThrowOnError:i}),this.url=new URL(t),this.headers=Object.assign({},e),this.schema=n}rpc(t,{head:e=!1,count:n=null}={}){return e?(this.method="HEAD",t&&Object.entries(t).forEach((([t,e])=>{this.url.searchParams.append(t,e)}))):(this.method="POST",this.body=t),n&&(void 0!==this.headers.Prefer?this.headers.Prefer+=`,count=${n}`:this.headers.Prefer=`count=${n}`),new j(this)}}const D={"X-Client-Info":"postgrest-js/0.37.4"};class z{constructor(t,{headers:e={},schema:n,fetch:r,throwOnError:i}={}){this.url=t,this.headers=Object.assign(Object.assign({},D),e),this.schema=n,this.fetch=r,this.shouldThrowOnError=i}auth(t){return this.headers.Authorization=`Bearer ${t}`,this}from(t){const e=`${this.url}/${t}`;return new N(e,{headers:this.headers,schema:this.schema,fetch:this.fetch,shouldThrowOnError:this.shouldThrowOnError})}rpc(t,e,{head:n=!1,count:r=null}={}){const i=`${this.url}/rpc/${t}`;return new L(i,{headers:this.headers,schema:this.schema,fetch:this.fetch,shouldThrowOnError:this.shouldThrowOnError}).rpc(e,{head:n,count:r})}}var F;!function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.t
1srange="tsrange",t.tstzrange="tstzrange"}(F||(F={}));const U=(t,e,n={})=>{var r;const i=null!==(r=n.skipTypes)&&void 0!==r?r:[];return Object.keys(e).reduce(((n,r)=>(n[r]=W(r,t,e,i),n)),{})},W=(t,e,n,r)=>{const i=e.find((e=>e.name===t)),o=null===i||void 0===i?void 0:i.type,s=n[t];return o&&!r.includes(o)?G(o,s):V(s)},G=(t,e)=>{if("_"===t.charAt(0)){const n=t.slice(1,t.length);return $(e,n)}switch(t){case F.bool:return K(e);case F.float4:case F.float8:case F.int2:case F.int4:case F.int8:case F.numeric:case F.oid:return H(e);case F.json:case F.jsonb:return q(e);case F.timestamp:return Z(e);case F.abstime:case F.date:case F.daterange:case F.int4range:case F.int8range:case F.money:case F.reltime:case F.text:case F.time:case F.timestamptz:case F.timetz:case F.tsrange:case F.tstzrange:default:return V(e)}},V=t=>t,K=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},H=t=>{if("string"===typeof t){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},q=t=>{if("string"===typeof t)try{return JSON.parse(t)}catch(e){return console.log(`JSON parse error: ${e}`),t}return t},$=(t,e)=>{if("string"!==typeof t)return t;const n=t.length-1,r=t[n];if("{"===t[0]&&"}"===r){let r;const o=t.slice(1,n);try{r=JSON.parse("["+o+"]")}catch(i){r=o?o.split(","):[]}return r.map((t=>G(e,t)))}return t},Z=t=>"string"===typeof t?t.replace(" ","T"):t;var Y=n(45840);const X={"X-Client-Info":"realtime-js/1.7.5"};var J,Q,tt,et,nt;!function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"}(J||(J={})),function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"}(Q||(Q={})),function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"}(tt||(tt={})),function(t){t.websocket="websocket"}(et||(et={})),function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"}(nt||(nt={}));class rt{constructor(t,e){this.callback=t,this.timerCalc=e,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=e}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout((()=>{this.tries=this.tries+1,this.callback()}),this.timerCalc(this.tries+1))}}class it{constructor(){this.HEADER_LENGTH=1}decode(t,e){return t.constructor===ArrayBuffer?e(this._binaryDecode(t)):e("string"===typeof t?JSON.parse(t):{})}_binaryDecode(t){const e=new DataView(t),n=new TextDecoder;return this._decodeBroadcast(t,e,n)}_decodeBroadcast(t,e,n){const r=e.getUint8(1),i=e.getUint8(2);let o=this.HEADER_LENGTH+2;const s=n.decode(t.slice(o,o+r));o+=r;const a=n.decode(t.slice(o,o+i));o+=i;return{ref:null,topic:s,event:a,payload:JSON.parse(n.decode(t.slice(o,t.byteLength)))}}}class ot{constructor(t,e,n={},r=1e4){this.channel=t,this.event=e,this.payload=n,this.timeout=r,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel.joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,e){var n;return this._hasReceived(t)&&e(null===(n=this.receivedResp)||void 0===n?void 0:n.response),this.recHooks.push({status:t,callback:e}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref);this.channel.on(this.refEvent,(t=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=t,this._matchReceive(t)})),this.timeoutTimer=setTimeout((()=>{this.trigger("timeout",{})}),this.timeout)}trigger(t,e){this.refEvent&&this.channel.trigger(this.refEvent,{status:t,response:e})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}
1_matchReceive({status:t,response:e}){this.recHooks.filter((e=>e.status===t)).forEach((t=>t.callback(e)))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}class st{constructor(t,e={},n){this.topic=t,this.params=e,this.socket=n,this.bindings=[],this.state=Q.closed,this.joinedOnce=!1,this.pushBuffer=[],this.timeout=this.socket.timeout,this.joinPush=new ot(this,tt.join,this.params,this.timeout),this.rejoinTimer=new rt((()=>this.rejoinUntilConnected()),this.socket.reconnectAfterMs),this.joinPush.receive("ok",(()=>{this.state=Q.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach((t=>t.send())),this.pushBuffer=[]})),this.onClose((()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=Q.closed,this.socket.remove(this)})),this.onError((t=>{this.isLeaving()||this.isClosed()||(this.socket.log("channel",`error ${this.topic}`,t),this.state=Q.errored,this.rejoinTimer.scheduleTimeout())})),this.joinPush.receive("timeout",(()=>{this.isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Q.errored,this.rejoinTimer.scheduleTimeout())})),this.on(tt.reply,((t,e)=>{this.trigger(this.replyEventName(e),t)}))}rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this.rejoin()}subscribe(t=this.timeout){if(this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";return this.joinedOnce=!0,this.rejoin(t),this.joinPush}onClose(t){this.on(tt.close,t)}onError(t){this.on(tt.error,(e=>t(e)))}on(t,e){this.bindings.push({event:t,callback:e})}off(t){this.bindings=this.bindings.filter((e=>e.event!==t))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(t,e,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let r=new ot(this,t,e,n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Q.leaving;let e=()=>{this.socket.log("channel",`leave ${this.topic}`),this.trigger(tt.close,"leave",this.joinRef())};this.joinPush.destroy();let n=new ot(this,tt.leave,{},t);return n.receive("ok",(()=>e())).receive("timeout",(()=>e())),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(t,e,n){return e}isMember(t){return this.topic===t}joinRef(){return this.joinPush.ref}rejoin(t=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Q.joining,this.joinPush.resend(t))}trigger(t,e,n){let{close:r,error:i,leave:o,join:s}=tt;if(n&&[r,i,o,s].indexOf(t)>=0&&n!==this.joinRef())return;let a=this.onMessage(t,e,n);if(e&&!a)throw"channel onMessage callbacks must return the payload, modified or unmodified";this.bindings.filter((n=>"*"===n.event?t===(null===e||void 0===e?void 0:e.type):n.event===t)).map((t=>t.callback(a,n)))}replyEventName(t){return`chan_reply_${t}`}isClosed(){return this.state===Q.closed}isErrored(){return this.state===Q.errored}isJoined(){return this.state===Q.joined}isJoining(){return this.state===Q.joining}isLeaving(){return this.state===Q.leaving}}var at=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};const ct=()=>{};class ut{constructor(t,e){this.accessToken=null,this.channels=[],this.endPoint="",this.headers=X,this.params={},this.timeout=1e4,this.transport=Y.w3cwebsocket,this.heartbeatIntervalMs=3e4,this.longpollerTimeout=2e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=ct,this.conn=null,this.sendBuffer=[],this.serializer=new it,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.endPoint=`${t}/${et.websocket}`,(null===e||void 0===e?void 0:e.params)&&(this.params=e.params),(null===e||void 0===e?void 0:e.headers)&&(this.headers=Object.assign(Object.assign({},this.headers),e.headers)),(null===e||void 0===e?void 0:e.timeout)&&(this.timeout=e.timeout),(null===e||void 0===e?void 0:e.logger)&&(this.logger=e.logger),(null===e||void 0===e?void 0:e.transport)&&(this.transport=e.transport),(null===e||void 0===e?void 0:e.heartbeatIntervalMs)&&(this.heartbeatIntervalMs=e.heartbeatIntervalMs),(null===e||void 0===e?void 0:e.longpollerTimeout)&&(this.longpollerTimeout=e.longpollerTimeout),this.reconnectAfterMs=(null===e||void 0===e?void 0:e.reconnectAfterMs)?e.reconnectAfterMs:t=>[1e3,2e3,5e3,1e4][t-1]||1e4,this.encode=(null===e||void 0===e?void 0:e.encode)?e.encode:(t,e)=>e(JSON.stringify(t)),this.decode=(null===e||void 0===e?void 0:e.decode)?e.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new rt((()=>at(this,void 0,void 0,(function*(){yield this.disconnect(),this.connect()}))),this.reconnectAfterMs)}connect(){this.conn||(this.conn=new this.transport(this.endPointURL(),[],null,this.headers),this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>
1this.onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t)))}disconnect(t,e){return new Promise(((n,r)=>{try{this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,e||""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset()),n({error:null,data:!0})}catch(i){n({error:i,data:!1})}}))}log(t,e,n){this.logger(t,e,n)}onOpen(t){this.stateChangeCallbacks.open.push(t)}onClose(t){this.stateChangeCallbacks.close.push(t)}onError(t){this.stateChangeCallbacks.error.push(t)}onMessage(t){this.stateChangeCallbacks.message.push(t)}connectionState(){switch(this.conn&&this.conn.readyState){case J.connecting:return nt.Connecting;case J.open:return nt.Open;case J.closing:return nt.Closing;default:return nt.Closed}}isConnected(){return this.connectionState()===nt.Open}remove(t){this.channels=this.channels.filter((e=>e.joinRef()!==t.joinRef()))}channel(t,e={}){const n=new st(t,e,this);return this.channels.push(n),n}push(t){const{topic:e,event:n,payload:r,ref:i}=t;let o=()=>{this.encode(t,(t=>{var e;null===(e=this.conn)||void 0===e||e.send(t)}))};this.log("push",`${e} ${n} (${i})`,r),this.isConnected()?o():this.sendBuffer.push(o)}onConnMessage(t){this.decode(t.data,(t=>{let{topic:e,event:n,payload:r,ref:i}=t;(i&&i===this.pendingHeartbeatRef||n===(null===r||void 0===r?void 0:r.type))&&(this.pendingHeartbeatRef=null),this.log("receive",`${r.status||""} ${e} ${n} ${i&&"("+i+")"||""}`,r),this.channels.filter((t=>t.isMember(e))).forEach((t=>t.trigger(n,r,i))),this.stateChangeCallbacks.message.forEach((e=>e(t)))}))}endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:"1.0.0"}))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}setAuth(t){this.accessToken=t,this.channels.forEach((e=>{t&&e.updateJoinPayload({user_token:t}),e.joinedOnce&&e.isJoined()&&e.push(tt.access_token,{access_token:t})}))}leaveOpenTopic(t){let e=this.channels.find((e=>e.topic===t&&(e.isJoined()||e.isJoining())));e&&(this.log("transport",`leaving duplicate topic "${t}"`),e.unsubscribe())}_onConnOpen(){this.log("transport",`connected to ${this.endPointURL()}`),this._flushSendBuffer(),this.reconnectTimer.reset(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval((()=>this._sendHeartbeat()),this.heartbeatIntervalMs),this.stateChangeCallbacks.open.forEach((t=>t()))}_onConnClose(t){this.log("transport","close",t),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach((e=>e(t)))}_onConnError(t){this.log("transport",t.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach((e=>e(t)))}_triggerChanError(){this.channels.forEach((t=>t.trigger(tt.error)))}_appendParams(t,e){if(0===Object.keys(e).length)return t;const n=t.match(/\?/)?"&":"?";return`${t}${n}${new URLSearchParams(e)}`}_flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach((t=>t())),this.sendBuffer=[])}_sendHeartbeat(){var t;if(this.isConnected()){if(this.pendingHeartbeatRef)return this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),void(null===(t=this.conn)||void 0===t||t.close(1e3,"hearbeat timeout"));this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth(this.accessToken)}}}class lt{constructor(t,e,n,r){const i={},o="*"===r?`realtime:${n}`:`realtime:${n}:${r}`,s=e.Authorization.split(" ")[1];s&&(i.user_token=s),this.subscription=t.channel(o,i)}getPayloadRecords(t){const e={new:{},old:{}};return"INSERT"!==t.type&&"UPDATE"!==t.type||(e.new=U(t.columns,t.record)),"UPDATE"!==t.type&&"DELETE"!==t.type||(e.old=U(t.columns,t.old_record)),e}on(t,e){return this.subscription.on(t,(t=>{let n={schema:t.schema,table:t.table,commit_timestamp:t.commit_timestamp,eventType:t.type,new:{},old:{},errors:t.errors};n=Object.assign(Object.assign({},n),this.getPayloadRecords(t)),e(n)})),this}subscribe(t=(()=>{})){return this.subscription.onError((e=>t("SUBSCRIPTION_ERROR",e))),this.subscription.onClose((()=>t("CLOSED"))),this.subscription.subscribe().receive("ok",(()=>t("SUBSCRIBED"))).receive("error",(e=>t("SUBSCRIPTION_ERROR",e))).receive("timeout",(()=>t("RETRYING_AFTER_TIMEOUT"))),this.subscription}}class ht extends N{constructor(t,{headers:e={},schema:n,realtime:r,table:i,fetch:o,shouldThrowOnError:s}){super(t,{headers:e,schema:n,fetch:o,shouldThrowOnError:s}),this._subscription=null,this._realtime=r,this._headers=e,this._schema=n,this._table=i}on(t,e){return this._realtime.isConnected()||this._realtime.connect(),this._subscription||(this._subscription=new lt(this._realtime,this._headers,this._schema,this._table)),this._subscription.on(t,e)}}const dt={"X-Client-Info":"storage-js/1.7.3"};
1var ft=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};const pt=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t);function mt(t,e,n,r,i,o){return ft(this,void 0,void 0,(function*(){return new Promise(((s,a)=>{t(n,((t,e,n,r)=>{const i={method:t,headers:(null===e||void 0===e?void 0:e.headers)||{}};return"GET"===t?i:(i.headers=Object.assign({"Content-Type":"application/json"},null===e||void 0===e?void 0:e.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))})(e,r,i,o)).then((t=>{if(!t.ok)throw t;return(null===r||void 0===r?void 0:r.noResolveJson)?s(t):t.json()})).then((t=>s(t))).catch((t=>((t,e)=>{if("function"!==typeof t.json)return e(t);t.json().then((n=>e({message:pt(n),status:(null===t||void 0===t?void 0:t.status)||500})))})(t,a)))}))}))}function gt(t,e,n,r){return ft(this,void 0,void 0,(function*(){return mt(t,"GET",e,n,r)}))}function yt(t,e,n,r,i){return ft(this,void 0,void 0,(function*(){return mt(t,"POST",e,r,i,n)}))}function bt(t,e,n,r,i){return ft(this,void 0,void 0,(function*(){return mt(t,"DELETE",e,r,i,n)}))}var vt=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};const wt=t=>{let e;return e=t||("undefined"===typeof fetch?(...t)=>vt(void 0,void 0,void 0,(function*(){return yield(yield n.e(4098).then(n.t.bind(n,54098,23))).fetch(...t)})):fetch),(...t)=>e(...t)};var _t=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};var kt=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};const St={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},xt={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class It{constructor(t,e={},n,r){this.url=t,this.headers=e,this.bucketId=n,this.fetch=wt(r)}uploadOrUpdate(t,e,n,r){return kt(this,void 0,void 0,(function*(){try{let i;const o=Object.assign(Object.assign({},xt),r),s=Object.assign(Object.assign({},this.headers),"POST"===t&&{"x-upsert":String(o.upsert)});"undefined"!==typeof Blob&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),i.append("",n)):"undefined"!==typeof FormData&&n instanceof FormData?(i=n,i.append("cacheControl",o.cacheControl)):(i=n,s["cache-control"]=`max-age=${o.cacheControl}`,s["content-type"]=o.contentType);const a=this._removeEmptyFolders(e),c=this._getFinalPath(a),u=yield this.fetch(`${this.url}/object/${c}`,{method:t,body:i,headers:s});if(u.ok)return{data:{Key:c},error:null};return{data:null,error:yield u.json()}}catch(i){return{data:null,error:i}}}))}upload(t,e,n){return kt(this,void 0,void 0,(function*(){return this.uploadOrUpdate("POST",t,e,n)}))}update(t,e,n){return kt(this,void 0,void 0,(function*(){return this.uploadOrUpdate("PUT",t,e,n)}))}move(t,e){return kt(this,void 0,void 0,(function*(){try{return{data:yield yt(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:e},{headers:this.headers}),error:null}}catch(n){return{data:null,error:n}}}))}copy(t,e){return kt(this,void 0,void 0,(function*(){try{return{data:yield yt(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:e},{headers:this.headers}),error:null}}catch(n){return{data:null,error:n}}}))}createSignedUrl(t,e){return kt(this,void 0,void 0,(function*(){try{const n=this._getFinalPath(t);let r=yield yt(this.fetch,`${this.url}/object/sign/${n}`,{expiresIn:e},{headers:this.headers});const i=`${this.url}${r.signedURL}`;return r={signedURL:i},{data:r,error:null,signedURL:i}}catch(n){return{data:null,error:n,signedURL:null}}}))}createSignedUrls(t,e){return kt(this,void 0,void 0,(function*(){try{return{data:(yield yt(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:e,paths:t},{headers:this.headers})).map((t=>Object.assign(Object.assign({},t),{signedURL:t.signedURL?`${this.url}${t.signedURL}`:null}))),error:null}}catch(n){return{data:null,error:n}}}))}download(t){return kt(this,void 0,void 0,(function*(){try{const e=this._getFinalPath(t),n=yield gt(this.fetch,`${this.url}/object/${e}`,{headers:this.headers,noResolveJson:!0});return{data:yield n.blob(),error:null}}catch(e){return{data:null,error:e}}}))}getPublicUrl(t){try{const e=this._getFinalPath(t),n=`${this.url}/object/public/${e}`;return{data:{publicURL:n},error:null,publicURL:n}}catch(e){return{data:null,error:e,publicURL:null}}}remove(t){return kt(this,void 0,void 0,(function*(){try{return{data:yield bt(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(e){return{data:null,error:e}}}))}list(t,e,n){return kt(this,void 0,void 0,(function*(){try{const r=Object.assign(Object.assign(Object.assign({},St),e),{prefix:t||""});return{data:yield yt(this.fetch,`${this.url}/object/list/${this.bucketId}`,r,{headers:this.headers},n),error:null}}catch(r){return{data:null,error:r}}}))}_getFinalPath(t){return`${this.bucketId}/${t}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}}class At extends class{constructor(t,e={},n){this.url=t,this.headers=Object.assign(Object.assign({},dt),e),this.fetch=wt(n)}listBuckets(){return _t(this,void 0,void 0,(function*(){try{return{data:yield gt(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){return{data:null,error:t}}}))}getBucket(t){return _t(this,void 0,void 0,(function*(){try{return{data:yield gt(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(e){return{data:null,error:e}}}))}createBucket(t,e={public:!1}){return _t(this,void 0,void 0,(function*(){try{return{data:(yield yt(this.fetch,`${this.url}/bucket`,{id:t,name:t,public:e.public},{headers:this.headers})).name,error:null}}catch(n){return{data:null,error:n}}}))}updateBucket(t,e){return _t(this,void 0,void 0,(function*(){try{const n=yield function(t,e,n,r,i){return ft(this,void 0,void 0,(function*(){return mt(t,"PUT",e,r,i,n)}))}(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:e.public},{headers:this.headers});return{data:n,error:null}}catch(n){return{data:null,error:n}}}))}emptyBucket(t){return _t(this,void 0,void 0,(function*(){try{return{data:yield yt(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(e){return{data:null,error:e}}}))}deleteBucket(t){return _t(this,void 0,void 0,(function*(){try{return{data:yield bt(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(e){return{data:null,error:e}}}))}}{constructor(t,e={},n){super(t,e,n)}from(t){return new It(this.url,this.headers,t,this.fetch)}}
1var Et=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};var Tt=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};class Pt{constructor(t,{headers:e={},customFetch:r}={}){this.url=t,this.headers=e,this.fetch=(t=>{let e;return e=t||("undefined"===typeof fetch?(...t)=>Et(void 0,void 0,void 0,(function*(){return yield(yield n.e(4098).then(n.t.bind(n,54098,23))).fetch(...t)})):fetch),(...t)=>e(...t)})(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,e){return Tt(this,void 0,void 0,(function*(){try{const{headers:n,body:r}=null!==e&&void 0!==e?e:{},i=yield this.fetch(`${this.url}/${t}`,{method:"POST",headers:Object.assign({},this.headers,n),body:r}),o=i.headers.get("x-relay-error");if(o&&"true"===o)return{data:null,error:new Error(yield i.text())};let s;const{responseType:a}=null!==e&&void 0!==e?e:{};return s=a&&"json"!==a?"arrayBuffer"===a?yield i.arrayBuffer():"blob"===a?yield i.blob():yield i.text():yield i.json(),{data:s,error:null}}catch(n){return{data:null,error:n}}}))}}var Ct=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};const Mt={schema:"public",autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,multiTab:!0,headers:i};class Ot{constructor(t,e,n){if(this.supabaseUrl=t,this.supabaseKey=e,!t)throw new Error("supabaseUrl is required.");if(!e)throw new Error("supabaseKey is required.");const r=t.replace(/\/$/,"");const o=Object.assign(Object.assign({},Mt),n);this.restUrl=`${r}/rest/v1`,this.realtimeUrl=`${r}/realtime/v1`.replace("http","ws"),this.authUrl=`${r}/auth/v1`,this.storageUrl=`${r}/storage/v1`;if(r.match(/(supabase\.co)|(supabase\.in)/)){const t=r.split(".");this.functionsUrl=`${t[0]}.functions.${t[1]}.${t[2]}`}else this.functionsUrl=`${r}/functions/v1`;this.schema=o.schema,this.multiTab=o.multiTab,this.fetch=o.fetch,this.headers=Object.assign(Object.assign({},i),null===n||void 0===n?void 0:n.headers),this.shouldThrowOnError=o.shouldThrowOnError||!1,this.auth=this._initSupabaseAuthClient(o),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},o.realtime)),this._listenForAuthEvents(),this._listenForMultiTabEvents()}get functions(){return new Pt(this.functionsUrl,{headers:this._getAuthHeaders(),customFetch:this.fetch})}get storage(){return new At(this.storageUrl,this._getAuthHeaders(),this.fetch)}from(t){const e=`${this.restUrl}/${t}`;return new ht(e,{headers:this._getAuthHeaders(),schema:this.schema,realtime:this.realtime,table:t,fetch:this.fetch,shouldThrowOnError:this.shouldThrowOnError})}rpc(t,e,{head:n=!1,count:r=null}={}){return this._initPostgRESTClient().rpc(t,e,{head:n,count:r})}removeAllSubscriptions(){return Ct(this,void 0,void 0,(function*(){const t=this.getSubscriptions().slice(),e=t.map((t=>this.removeSubscription(t)));return(yield Promise.all(e)).map((({error:e},n)=>({data:{subscription:t[n]},error:e})))}))}removeSubscription(t){return Ct(this,void 0,void 0,(function*(){const{error:e}=yield this._closeSubscription(t),n=this.getSubscriptions(),r=n.filter((t=>t.isJoined())).length;return 0===n.length&&(yield this.realtime.disconnect()),{data:{openSubscriptions:r},error:e}}))}_closeSubscription(t){return Ct(this,void 0,void 0,(function*(){let e=null;if(!t.isClosed()){const{error:n}=yield this._unsubscribeSubscription(t);e=n}return this.realtime.remove(t),{error:e}}))}_unsubscribeSubscription(t){return new Promise((e=>{t.unsubscribe().receive("ok",(()=>e({error:null}))).receive("error",(t=>e({error:t}))).receive("timeout",(()=>e({error:new Error("timed out")})))}
1))}getSubscriptions(){return this.realtime.channels}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,localStorage:r,headers:i,fetch:o,cookieOptions:s,multiTab:a}){const c={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new M({url:this.authUrl,headers:Object.assign(Object.assign({},i),c),autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,localStorage:r,fetch:o,cookieOptions:s,multiTab:a})}_initRealtimeClient(t){return new ut(this.realtimeUrl,Object.assign(Object.assign({},t),{params:Object.assign(Object.assign({},null===t||void 0===t?void 0:t.params),{apikey:this.supabaseKey})}))}_initPostgRESTClient(){return new z(this.restUrl,{headers:this._getAuthHeaders(),schema:this.schema,fetch:this.fetch,throwOnError:this.shouldThrowOnError})}_getAuthHeaders(){var t,e;const n=Object.assign({},this.headers),r=null!==(e=null===(t=this.auth.session())||void 0===t?void 0:t.access_token)&&void 0!==e?e:this.supabaseKey;return n.apikey=this.supabaseKey,n.Authorization=n.Authorization||`Bearer ${r}`,n}_listenForMultiTabEvents(){if(!this.multiTab||"undefined"===typeof window||!(null===window||void 0===window?void 0:window.addEventListener))return null;try{return null===window||void 0===window?void 0:window.addEventListener("storage",(t=>{var e,n,r;if("supabase.auth.token"===t.key){const i=JSON.parse(String(t.newValue)),o=null!==(n=null===(e=null===i||void 0===i?void 0:i.currentSession)||void 0===e?void 0:e.access_token)&&void 0!==n?n:void 0,s=null===(r=this.auth.session())||void 0===r?void 0:r.access_token;o?!s&&o?this._handleTokenChanged("SIGNED_IN",o,"STORAGE"):s!==o&&this._handleTokenChanged("TOKEN_REFRESHED",o,"STORAGE"):this._handleTokenChanged("SIGNED_OUT",o,"STORAGE")}}))}catch(t){return console.error("_listenForMultiTabEvents",t),null}}_listenForAuthEvents(){let{data:t}=this.auth.onAuthStateChange(((t,e)=>{this._handleTokenChanged(t,null===e||void 0===e?void 0:e.access_token,"CLIENT")}));return t}_handleTokenChanged(t,e,n){"TOKEN_REFRESHED"!==t&&"SIGNED_IN"!==t||this.changedAccessToken===e?"SIGNED_OUT"!==t&&"USER_DELETED"!==t||(this.realtime.setAuth(this.supabaseKey),"STORAGE"==n&&this.auth.signOut()):(this.realtime.setAuth(e),"STORAGE"==n&&this.auth.setAuth(e),this.changedAccessToken=e)}}const Rt=(t,e,n)=>new Ot(t,e,n)},32156:function(t,e,n){var r=n(85893),i=n(14293),o=n(67294),s=n(34988),a=n(96486),c=n(74522),u=n(15489),l=n(68873),h=n(29955),d=n(79732),f=n(69260),p=n(40353),m=n(48764),g=n(45578),y=n(4788),b=n(45220),v=n(64593),w=n(52353);function _(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,enumerable:!0,configurable:!0})}function k(t){return t&&t.__esModule?t.default:t}_(t.exports,"PopUpModal",(()=>S.PopUpModal)),_(t.exports,"MessageType",(()=>S.MessageType)),_(t.exports,"PoweredByDispatch",(()=>Dt.PoweredByDispatch)),_(t.exports,"ForumContent",(()=>ze.ForumContent)),_(t.exports,"DispatchProvider",(()=>zt.DispatchProvider)),_(t.exports,"useForum",(()=>zt.useForum)),_(t.exports,"MainForum",(()=>Ft.MainForum)),_(t.exports,"TopicView",(()=>Ai.TopicView)),_(t.exports,"ForumView",(()=>Vi.ForumView));var S={};_(S,"MessageType",(()=>Mt),(t=>Mt=t)),_(S,"getMessageTypeIcon",(()=>Nt),(t=>Nt=t)),_(S,"PopUpModal",(()=>Lt),(t=>Lt=t));var x={};_(x,"Chain",(()=>A),(t=>A=t));var I=function(){return I=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},I.apply(this,arguments)};function A(){return(0,r.jsx)("svg",I({width:"14",height:"14",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7084 1.54046C11.7425 0.540833 13.1274 -0.0122958 14.565 0.000207449C16.0025 0.0127107 17.3776 0.589845 18.3942 1.60731C19.4107 2.62477 19.9873 4.00115 19.9998 5.44001C20.0123 6.87886 19.4597 8.26507 18.4609 9.30006L18.4498 9.31139L15.7086 12.0551C15.7086 12.0552 15.7086 12.0551 15.7086 12.0551C15.1528 12.6116 14.4838 13.042 13.7473 13.317C13.0107 13.5921 12.2236 13.7053 11.4394 13.6491C10.6552 13.5929 9.89229 13.3685 9.20236 12.9913C8.51242 12.614 7.91163 12.0926 7.44072 11.4625C7.13843 11.058 7.22099 10.4848 7.62511 10.1822C8.02923 9.87966 8.60188 9.96229 8.90416 10.3668C9.2181 10.7869 9.61863 11.1345 10.0786 11.386C10.5385 11.6375 11.0472 11.7871 11.57 11.8246C12.0927 11.862 12.6175 11.7865 13.1085 11.6032C13.5996 11.4198 14.0455 11.1329 14.4161 10.7619L17.1516 8.02383C17.8141 7.33442 18.1806 6.41262 18.1723 5.4559C18.164 4.49667 17.7796 3.57908
117.1019 2.90077C16.4242 2.22246 15.5074 1.8377 14.5491 1.82937C13.5928 1.82105 12.6714 2.18819 11.9826 2.85187L10.4158 4.41094C10.0579 4.76707 9.47934 4.76539 9.12353 4.40717C8.76772 4.04895 8.76941 3.46985 9.1273 3.11371L10.699 1.54972L10.7084 1.54046ZM6.25273 6.68295C6.98933 6.40792 7.77642 6.29467 8.5606 6.35089C9.34478 6.4071 10.1077 6.63146 10.7976 7.00874C11.4876 7.38603 12.0884 7.90742 12.5593 8.53755C12.8616 8.94204 12.779 9.51521 12.3749 9.81778C11.9708 10.1203 11.3981 10.0377 11.0958 9.63322C10.7819 9.21313 10.3814 8.86554 9.92141 8.61402C9.46145 8.36249 8.95284 8.21292 8.43005 8.17544C7.90726 8.13797 7.38254 8.21347 6.89147 8.39682C6.40039 8.58017 5.95446 8.86709 5.58392 9.2381L2.84839 11.9761C2.18586 12.6655 1.81939 13.5874 1.8277 14.5441C1.83603 15.5033 2.22043 16.4209 2.89812 17.0992C3.57581 17.7775 4.49256 18.1623 5.45092 18.1706C6.40678 18.1789 7.32776 17.8121 8.01654 17.149L9.57317 15.5909C9.93002 15.2338 10.5086 15.2338 10.8654 15.5909C11.2223 15.9481 11.2223 16.5272 10.8654 16.8844L9.30288 18.4484L9.29156 18.4595C8.25751 19.4592 6.87258 20.0123 5.43504 19.9998C3.9975 19.9873 2.62237 19.4102 1.60584 18.3927C0.589306 17.3752 0.0126991 15.9988 0.000207259 14.56C-0.0122846 13.1211 0.540338 11.7349 1.53905 10.6999L1.55018 10.6886L4.2914 7.94488C4.29144 7.94484 4.29137 7.94492 4.2914 7.94488C4.8472 7.38841 5.51617 6.95796 6.25273 6.68295Z",fill:"#86878E"})}))}var E={};_(E,"Chevron",(()=>P),(t=>P=t));var T=function(){return T=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},T.apply(this,arguments)};function P(t){var e="";switch(t.direction){case"up":e="rotate(270)";break;case"down":e="rotate(90)";break;case"left":e="rotate(180)";break;case"right":e="rotate(0)"}return(0,r.jsx)("svg",T({width:"4",height:"8",viewBox:"0 0 4 8",fill:"none",transform:e,xmlns:"http://www.w3.org/2000/svg"},{children:(0,r.jsx)("path",{d:"M0.5 7L3.5 4L0.5 1",stroke:"#CAC9CB",strokeLinecap:"round",strokeLinejoin:"round"})}))}var C={};_(C,"Close",(()=>O),(t=>O=t));var M=function(){return M=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},M.apply(this,arguments)};function O(){return(0,r.jsx)("svg",M({viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,r.jsx)("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z",fill:"black"})}))}var R={};_(R,"DispatchLogo",(()=>j),(t=>j=t));var B=function(){return B=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},B.apply(this,arguments)};function j(t){return["degenApeAcademy","metaplex","solana"].includes(t.customStyle)||"dark"===t.mode?(0,r.jsxs)("svg",B({width:"156",height:"52",viewBox:"0 0 156 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,r.jsx)("path",{d:"M5.0365 17.3551C4.2915 17.3551 3.6615 17.1676 3.1465 16.7926C2.6315 16.4126 2.2415 15.9001 1.9765 15.2551C1.7115 14.6051 1.579 13.8776 1.579 13.0726C1.579 12.2526 1.7115 11.5226 1.9765 10.8826C2.2465 10.2376 2.6415 9.73013 3.1615 9.36013C3.6815 8.99013 4.3215 8.80513 5.0815 8.80513C5.8215 8.80513 6.4565 8.99263 6.9865 9.36763C7.5165 9.74263 7.9215 10.2526 8.2015 10.8976C8.4865 11.5426 8.629 12.2676 8.629 13.0726C8.629 13.8826 8.4865 14.6101 8.2015 15.2551C7.9165 15.9001 7.5065 16.4126 6.9715 16.7926C6.4365 17.1676 5.7915 17.3551 5.0365 17.3551ZM1.3915 20.7301V9.03013H2.3815V15.1276H2.5015V20.7301H1.3915ZM4.924 16.3276C5.489 16.3276 5.959 16.1851 6.334 15.9001C6.709 15.6151 6.989 15.2276 7.174 14.7376C7.364 14.2426 7.459 13.6876 7.459 13.0726C7.459 12.4626 7.3665 11.9126 7.1815 11.4226C6.9965 10.9326 6.714 10.5451 6.334 10.2601C5.959 9.97513 5.4815 9.83263 4.9015 9.83263C4.3365 9.83263 3.8665 9.97013 3.4915 10.2451C3.1215 10.5201 2.844 10.9026 2.659 11.3926C2.474 11.8776 2.3815 12.4376 2.3815 13.0726C2.3815 13.6976 2.474 14.2576 2.659 14.7526C2.844 15.2426 3.124 15.6276 3.499 15.9076C3.874 16.1876 4.349 16.3276 4.924 16.3276ZM13.6585 17.3551C12.8535 17.3551 12.166 17.1726 11.596 16.8076C11.026 16.4426 10.5885 15.9376 10.2835 15.2926C9.97845 14.6476 9.82595 13.9076 9.82595 13.0726C9.82595 12.2226 9.98095 11.4776 10.291 10.8376C10.601 10.1976 11.041 9.70013 11.611 9.34513C12.186 8.98513 12.8685 8.80513 13.6585 8.80513C14.4685 8.80513 15.1585 8.98763 15.7285 9.35263C16.3035 9.71263 16.741 10.2151 17.041 10.8601C17.346 11.5001 17.4985 12.2376 17.4985 13.0726C17.4985 13.9226 17.346 14.6701 17.041 15.3151C16.736 15.9551 16.296 16.4551 15.721 16.8151C15.146 17.1751 14.4585 17.3551 13.6585 17.3551ZM13.6585 16.2976C14.5585 16.2976 15.2285 16.0001 15.6685 15.4051C16.1085 14.8051 16.3285 14.0276 16.3285 13.0726C16.3285 12.0926 16.106 11.3126 15.661 10.7326C15.221 10.1526 14.5535 9.86263 13.6585 9.86263C13.0535 9.86263 12.5535 10.0001 12.1585 10.2751C11.7685 10.5451 11.476 10.9226 11.281 11.4076C11.091 11.8876 10.996 12.4426 10.996 13.0726C10.996 14.0476 11.221 14.8301 11.671 15.4201C12.121 16.0051 12.7835 16.2976 13.6585 16.2976ZM20.5849 17.1301L18.1099 9.02263L19.2124 9.03013L21.1324 15.3226L23.0599 9.03013H24.0649L25.9924 15.3226L27.9274 9.03013H29.0224L26.5474 17.1301H25.5874L23.5624 10.6801L21.5449 17.1301H20.5849ZM33.5081 17.3551C32.7181 17.3551 32.0331 17.1801 31.4531 16.8301C30.8781 16.4801 30.4306 15.9876 30.1106 15.3526C29.7906 14.7176 29.6306 13.9726 29.6306 13.1176C29.6306 12.2326 29.7881 11.4676 30.1031 10.8226C30.4181 10.1776 30.8606 9.68013 31.4306 9.33013C32.0056 8.98013 32.6831 8.80513 33.4631 8.80513C34.2631 8.80513 34.9456 8.99013 35.5106 9.36013C36.0756 9.72513 36.5031 10.2501 36.7931 10.9351C37.0831 11.6201 37.2156 12.4376 37.1906 13.3876H36.0656V12.9976C36.0456 11.9476 35.8181 11.
11551 35.3831 10.6201C34.9531 10.0851 34.3231 9.81763 33.4931 9.81763C32.6231 9.81763 31.9556 10.1001 31.4906 10.6651C31.0306 11.2301 30.8006 12.0351 30.8006 13.0801C30.8006 14.1001 31.0306 14.8926 31.4906 15.4576C31.9556 16.0176 32.6131 16.2976 33.4631 16.2976C34.0431 16.2976 34.5481 16.1651 34.9781 15.9001C35.4131 15.6301 35.7556 15.2426 36.0056 14.7376L37.0331 15.1351C36.7131 15.8401 36.2406 16.3876 35.6156 16.7776C34.9956 17.1626 34.2931 17.3551 33.5081 17.3551ZM30.4106 13.3876V12.4651H36.5981V13.3876H30.4106ZM38.8551 17.1301V9.03013H39.8451V10.9801L39.6501 10.7251C39.7401 10.4851 39.8576 10.2651 40.0026 10.0651C40.1476 9.86013 40.3051 9.69263 40.4751 9.56263C40.6851 9.37763 40.9301 9.23763 41.2101 9.14263C41.4901 9.04263 41.7726 8.98513 42.0576 8.97013C42.3426 8.95013 42.6026 8.97013 42.8376 9.03013V10.0651C42.5426 9.99013 42.2201 9.97263 41.8701 10.0126C41.5201 10.0526 41.1976 10.1926 40.9026 10.4326C40.6326 10.6426 40.4301 10.8951 40.2951 11.1901C40.1601 11.4801 40.0701 11.7901 40.0251 12.1201C39.9801 12.4451 39.9576 12.7676 39.9576 13.0876V17.1301H38.8551ZM47.5413 17.3551C46.7513 17.3551 46.0663 17.1801 45.4863 16.8301C44.9113 16.4801 44.4638 15.9876 44.1438 15.3526C43.8238 14.7176 43.6638 13.9726 43.6638 13.1176C43.6638 12.2326 43.8213 11.4676 44.1363 10.8226C44.4513 10.1776 44.8938 9.68013 45.4638 9.33013C46.0388 8.98013 46.7163 8.80513 47.4963 8.80513C48.2963 8.80513 48.9788 8.99013 49.5438 9.36013C50.
11088 9.72513 50.5363 10.2501 50.8263 10.9351C51.1163 11.6201 51.2488 12.4376 51.2238 13.3876H50.0988V12.9976C50.0788 11.9476 49.8513 11.1551 49.4163 10.6201C48.9863 10.0851 48.3563 9.81763 47.5263 9.81763C46.6563 9.81763 45.9888 10.1001 45.5238 10.6651C45.0638 11.2301 44.8338 12.0351 44.8338 13.0801C44.8338 14.1001 45.0638 14.8926 45.5238 15.4576C45.9888 16.0176 46.6463 16.2976 47.4963 16.2976C48.0763 16.2976 48.5813 16.1651 49.0113 15.9001C49.4463 15.6301 49.7888 15.2426 50.0388 14.7376L51.0663 15.1351C50.7463 15.8401 50.2738 16.3876 49.6488 16.7776C49.0288 17.1626 48.3263 17.3551 47.5413 17.3551ZM44.4438 13.3876V12.4651H50.6313V13.3876H44.4438ZM56.0308 17.3551C55.2758 17.3551 54.6308 17.1676 54.0958 16.7926C53.5608 16.4126 53.1508 15.9001 52.8658 15.2551C52.5808 14.6101 52.4383 13.8826 52.4383 13.0726C52.4383 12.2676 52.5783 11.5426 52.8583 10.8976C53.1433 10.2526 53.5508 9.74263 54.0808 9.36763C54.6108 8.99263 55.2458 8.80513 55.9858 8.80513C56.7458 8.80513 57.3858 8.99013 57.9058 9.36013C58.4258 9.73013 58.8183 10.2376 59.0833 10.8826C59.3533 11.5226 59.4883 12.2526 59.4883 13.0726C59.4883 13.8776 59.3558 14.6051 59.0908 15.2551C58.8258 15.9001 58.4358 16.4126 57.9208 16.7926C57.4058 17.1676 56.7758 17.3551 56.0308 17.3551ZM56.1433 16.3276C56.7183 16.3276 57.1933 16.1876 57.5683 15.9076C57.9433 15.6276 58.2233 15.2426 58.4083 14.7526C58.5933 14.2576 58.6858 13.6976 58.6858 13.0726C58.6858 12.4376 58.5933 11.8776 58.4083 11.3926C58.2233 10.9026 57.9433 10.5201 57.5683 10.2451C57.1983 9.97013 56.7308 9.83263 56.1658 9.83263C55.5858 9.83263 55.1058 9.97513 54.7258 10.2601C54.3458 10.5451 54.0633 10.9326 53.8783 11.4226C53.6983 11.9126 53.6083 12.4626 53.6083 13.0726C53.6083 13.6876 53.7008 14.2426 53.8858 14.7376C54.0758 15.2276 54.3583 15.6151 54.7333 15.9001C55.1083 16.1851 55.5783 16.3276 56.1433 16.3276ZM58.6858 17.1301V11.0326H58.5658V6.33013H59.6758V17.1301H58.6858ZM68.4203 17.3551C67.6753 17.3551 67.0453 17.1676 66.5303 16.7926C66.0153 16.4126 65.6253 15.9001 65.3603 15.2551C65.0953 14.6051 64.9628 13.8776 64.9628 13.0726C64.9628 12.2526 65.0953 11.5226 65.3603 10.8826C65.6303 10.2376 66.0253 9.73013 66.5453 9.36013C67.0653 8.99013 67.7053 8.80513 68.4653 8.80513C69.2053 8.80513 69.8403 8.99263 70.3703 9.36763C70.9003 9.74263 71.3053 10.2526 71.5853 10.8976C71.8703 11.5426 72.0128 12.2676 72.0128 13.0726C72.0128 13.8826 71.8703 14.6101 71.5853 15.2551C71.3003 15.9001 70.8903 16.4126 70.3553 16.7926C69.8203 17.1676 69.1753 17.3551 68.4203 17.3551ZM64.7753 17.1301V6.33013H65.8853V11.0326H65.7653V17.1301H64.7753ZM68.3078 16.3276C68.8728 16.3276 69.3428 16.1851 69.7178 15.9001C70.0928 15.6151 70.3728 15.2276 70.5578 14.7376C70.7478 14.2426 70.8428 13.6876 70.8428 13.0726C70.8428 12.4626 70.7503 11.9126 70.5653 11.4226C70.3803 10.9326 70.0978 10.5451 69.7178 10.2601C69.3428 9.97513 68.8653 9.83263 68.2853 9.83263C67.7203 9.83263 67.2503 9.97013 66.8753 10.2451C66.5053 10.5201 66.2278 10.9026 66.0428 11.3926C65.8578 11.8776 65.7653 12.4376 65.7653 13.0726C65.7653 13.6976 65.8578 14.2576 66.0428 14.7526C66.2278 15.2426 66.5078 15.6276 66.8828 15.9076C67.2578 16.1876 67.7328 16.3276 68.3078 16.3276ZM74.4192 20.7301L75.9867 16.4776L76.0092 17.7376L72.4617 9.03013H73.6317L76.5417 16.3126H76.0617L78.7467 9.03013H79.8717L75.5217 20.7301H74.4192Z",fill:"#DADADA"}),(0,r.jsx)("path",{d:"M142.152 22C136.766 22 132.119 25.1532 129.951 29.7143H138.294V27.7857C138.294 26.7202 139.158 25.8571 140.223 25.8571H146.004C147.07 25.8571 147.933 26.7202 147.933 27.7857C147.933 28.8512 147.07 29.7143 146.004 29.7143H138.294V31.6429C138.294 32.7084 137.431 33.5714 136.366 33.5714H128.791C128.701 34.2014 128.651 34.8443 128.651 35.5C128.651 36.1557 128.701 36.7986 128.791 37.4286H138.294V35.5C138.294 34.4345 139.158 33.5714 140.223 33.5714H149.867C150.932 33.5714 151.795 34.4345 151.795 35.5C151.795 36.5655 150.932 37.4286 149.867 37.4286H138.294V39.3571C138.294 40.4227 137.431 41.2857 136.366 41.2857H129.951C130.639 42.7321 131.576 44.0355 132.706 45.1429H138.293V43.2143C138.293 42.1488 139.156 41.2857 140.222 41.2857H146.003C147.068 41.2857 147.931 42.1488 147.931 43.2143C147.931 44.2798 147.068 45.1429 146.003 45.1429H138.293V48.4375C139.516 48.8007 140.81 49 142.15 49C149.606 49 155.651 42.9555 155.651 35.5C155.651 28.0445 149.608 22 142.152 22Z",fill:"white"}),(0,r.jsx)("path",{d:"M7.77571 45.2469C10.2743 45.2469 11.8475 44.0747 12.7112 42.2856H12.8654V44.9076H16.1043V23.0064H10.0892V25.0423H12.8654V32.0137H12.7112C11.6316 30.4713 10.1509 29.3917 7.77571 29.3917C3.98156 29.3917 1.32874 31.8594 1.32874 37.4735C1.32874 42.6866 3.98156 45.2778 7.77571 45.2469ZM12.8654 38.584C12.8654 41.0518 11.5082 43.0259 8.8245 43.0259C6.32591 43.0259 4.84527 41.5145 4.84527 39.0467V35.6536C4.84527 33.1241 6.35676 31.6126 8.8245 31.6126C10.4902 31.6126 11.7241 32.4455 12.8654 33.957V38.584Z",fill:"white"}),(0,r.jsx)("path",{d:"M23.1526 25.9677C24.2939 25.9677 25.1885 25.104 25.1885 23.9318C25.1885 22.7596 24.2939 21.9268 23.1526 21.9268C22.0421 21.9268 21.1475 22.7596 21.1475 23.9318C21.1475 25.104 22.0421 25.9677 23.1526 25.9677ZM24.7566 29.731H18.7723V31.7977H21.5485V44.9076H24.7566V29.731Z",fill:"white"}),(0,r.jsx)("path",{d:"M35.1847 43.7354C32.5936 43.7354 31.514 42.81 31.514 41.4836V41.1751C31.514 40.4348 30.8354 40.0955 30.1876 40.0955C29.1079 40.0955 28.6144 40.7433 28.6144 41.4528
1C28.6144 43.4886 30.4343 45.432 35.339 45.432C39.8426 45.432 42.0019 43.3653 42.0019 40.6507C42.0019 38.3372 40.7063 36.8566 37.2206 36.0854L34.5987 35.4993C32.9329 35.1292 32.1926 34.4197 32.1926 33.3709C32.1926 31.952 33.3648 30.9649 35.5241 30.9649C37.7759 30.9649 38.763 31.7669 38.763 32.8774V33.1858C38.763 33.8645 39.3491 34.2346 40.0277 34.2346C41.1073 34.2346 41.6009 33.6177 41.6009 32.8465C41.6009 31.2116 40.1819 29.2683 35.3081 29.2683C31.298 29.2683 29.2005 31.1499 29.2005 33.8336C29.2005 35.9929 30.496 37.4735 33.4882 38.1522L36.2952 38.7999C38.1769 39.2626 38.9789 39.8487 38.9789 41.0826C38.9789 42.7175 37.4983 43.7354 35.1847 43.7354Z",fill:"white"}),(0,r.jsx)("path",{d:"M60.5967 37.4735C60.5967 32.0445 57.9439 29.4225 54.1189 29.4225C51.7745 29.4225 50.2322 30.5639 49.1834 32.137H49.0292V29.731H43.0449V31.7977H45.8211V51.1695H49.0292L49.06 42.4399H49.2142C50.1088 44.1056 51.6203 45.2469 54.1189 45.2469C57.913 45.2469 60.5967 42.7483 60.5967 37.4735ZM49.0292 38.6149V33.9878C50.1705 32.4764 51.3735 31.6435 53.1009 31.6435C55.5378 31.6435 57.0493 33.2167 57.0493 35.6844V38.9542C57.0493 41.5145 55.5687 43.0259 53.0701 43.0259C50.3864 43.0259 49.0292 41.0518 49.0292 38.6149Z",fill:"white"}),(0,r.jsx)("path",{d:"M73.6873 42.9026C73.9341 43.828 74.3351 44.5683 74.952 45.1544L79.2089 44.5374V42.7483L77.7899 42.8717C76.957 42.9643 76.4943 42.409 76.4943 40.805V35.0366C76.4943 31.2116 74.3659 29.2683 69.7697 29.2683C65.9139 29.2683 63.8472 31.0266 63.8472 33.1858C63.8472 34.2038 64.3716 34.759 65.3278 34.759C66.3149 34.759 66.8393 34.2963 66.8393 33.4634V33.0933C66.8393 31.8594 67.8881 31.0882 69.7081 31.0882C72.2375 31.0882 73.2554 32.2296 73.2554 34.4814V37.0417C71.8365 36.5173 70.4175 36.178 68.7518 36.178C65.1119 36.178 63.0143 37.8128 63.0143 40.7433C63.0143 43.5195 64.9885 45.3395 68.4742 45.3395C70.8802 45.3395 72.5151 44.3524 73.5022 42.9026H73.6873ZM66.3458 41.2677V39.9104C66.3458 38.4915 67.3945 37.6586 69.4304 37.6586C70.7877 37.6586 72.0524 37.9671 73.2554 38.4915V39.8796C73.2554 42.2239 71.528 43.4578 69.307 43.4578C67.3329 43.4578 66.3458 42.5632 66.3458 41.2677Z",fill:"white"}),(0,r.jsx)("path",{d:"M85.6792 45.3395C87.129 45.3395 88.3012 44.9076 89.2266 44.1364L88.7639 42.5941C88.0853 42.9643 87.3758 43.1493 86.6046 43.1493C85.4633 43.1493 84.7847 42.2856 84.7847 41.0518V31.7977H88.9798V29.731H84.7847V24.7955H82.8722C82.6871 29.1141 82.1627 29.731 80.1885 29.731H78.8004V31.7977H81.5766V41.3294C81.5766 43.828 83.0264 45.3395 85.6792 45.3395Z",fill:"white"}),(0,r.jsx)("path",{d:"M98.1136 29.2683C93.5483 29.2683 90.5253 32.3221 90.5253 37.3501C90.5253 42.3473 93.5174 45.3703 98.0827 45.3703C101.044 45.3703 103.172 44.013 104.345 41.1443L102.525 40.4657C101.599 42.4707 100.304 43.427 98.2061 43.427C95.8926 43.427 94.0418 41.8846 94.0418 39.5403V34.8824C94.0418 32.7231 95.8309 31.2116 98.237 31.2116C100.427 31.2116 101.322 32.2913 101.322 33.6794V34.4197C101.322 35.3451 101.877 35.8078 102.679 35.8078C103.82 35.8078 104.375 35.1292 104.375 34.1112C104.375 31.8903 102.71 29.2683 98.1136 29.2683Z",fill:"white"}),(0,r.jsx)("path",{d:"M108.044 44.9076H111.283V33.8953C112.455 32.538 113.781 31.736 115.416 31.736C117.545 31.736 118.439 32.7848 118.439 35.1909V44.9076H124.423V42.8409H121.678V34.7899C121.678 31.7977 120.105 29.3917 116.65 29.3917C114.429 29.3917 112.671 30.4713 111.437 32.0445H111.283V23.0064H105.298V25.0423H108.044V44.9076Z",fill:"white"})]})):"solanaSpace"===t.customStyle?(0,r.jsxs)("svg",B({width:"127",height:"44",viewBox:"0 0 127 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,r.jsx)("path",{d:"M6.75428 38.423C8.80462 38.423 10.0956 37.4611 10.8043 35.9929H10.9309V38.1445H13.5888V20.1723H8.65275V21.843H10.9309V27.5637H10.8043C9.91839 26.2981 8.70337 25.4121 6.75428 25.4121C3.64078 25.4121 1.46387 27.4372 1.46387 32.0441C1.46387 36.322 3.64078 38.4483 6.75428 38.423ZM10.9309 32.9554C10.9309 34.9804 9.81714 36.6004 7.61492 36.6004C5.56457 36.6004 4.34955 35.3601 4.34955 33.3351V30.5507C4.34955 28.475 5.58988 27.2347 7.61492 27.2347C8.98181 27.2347 9.99433 27.9181 10.9309 29.1584V32.9554ZM19.3726 22.6024C20.3092 22.6024 21.0432 21.8936 21.0432 20.9317C21.0432 19.9698 20.3092 19.2864 19.3726 19.2864C18.4613 19.2864 17.7272 19.9698 17.7272 20.9317C17.7272 21.8936 18.4613 22.6024 19.3726 22.6024ZM20.6888 25.6906H15.7781V27.3865H18.0563V38.1445H20.6888V25.6906ZM29.2462 37.1826C27.1199 37.1826 26.234 36.4233 26.234 35.3348V35.0817C26.234 34.4742 25.6771 34.1957 25.1455 34.1957C24.2596 34.1957 23.8545 34.7273 23.8545 35.3095C23.8545 36.9801 25.348 38.5749 29.3728 38.5749C33.0685 38.5749 34.8404 36.8789 34.8404 34.6513C34.8404 32.7529 33.7772 31.5379 30.9169 30.905L28.7653 30.4241C27.3984 30.1203 26.7908 29.5381 26.7908 28.6775C26.7908 27.5131 27.7527 26.7031 29.5246 26.7031C31.3725 26.7031 32.1825 27.3612 32.1825 28.2725V28.5256C32.1825 29.0825 32.6634 29.3863 33.2203 29.3863C34.1063 29.3863 34.5113 28.88 34.5113 28.2472C34.5113 26.9056 33.3469 25.3109 29.3475 25.3109C26.0568 25.3109 24.3355 26.855 24.3355 29.0572C24.3355 30.8291 25.3986 32.0441 27.854 32.601L30.1575 33.1326C31.7016 33.5123 32.3597 33.9932 32.3597 35.0057C32.3597 36.3473 31.1447 37.1826 29.2462 37.1826ZM50.0993 32.0441C50.0993 27.589 47.9224 25.4374 44.7836 25.4374C42.8598 25.4374 41.5942 26.374 40.7335 27.665H40.607V25.6906H35.6963V27.3865H37.9744V43.2831H40.607L40.6323 36.1195H40.7588C41.4929 37.4864 42.7332 38.423 44.7836 38.423C47.8971 38.423 50.0993 36.3726 50.0993 32.0441ZM40.607 32.9807V29.1838C41.5435 27.9434 42.5307 27.26 43.9483 27.26C45.948 27.26 47.1883 28.5509 47.1883 30.576V33.2591C47.1883 35.3601 45.9733 36.6004 43.923 36.6004C41.7207 36.6004 40.607 34.9804 40.607 32.9807ZM60.8415 36.4992C61.044 37.2586 61.3731 37.8661 61.8793 38.347L65.3725 37.8408V36.3726L64.2081 36.4739
1C63.5247 36.5498 63.145 36.0942 63.145 34.7779V30.0444C63.145 26.9056 61.3984 25.3109 57.6267 25.3109C54.4626 25.3109 52.7667 26.7537 52.7667 28.5256C52.7667 29.3609 53.197 29.8166 53.9817 29.8166C54.7917 29.8166 55.222 29.4369 55.222 28.7534V28.4497C55.222 27.4372 56.0827 26.8043 57.5761 26.8043C59.6518 26.8043 60.4871 27.7409 60.4871 29.5888V31.6897C59.3227 31.2594 58.1583 30.981 56.7914 30.981C53.8045 30.981 52.0832 32.3226 52.0832 34.7273C52.0832 37.0054 53.7032 38.4989 56.5636 38.4989C58.538 38.4989 59.8796 37.6889 60.6896 36.4992H60.8415ZM54.817 35.1576V34.0438C54.817 32.8794 55.6776 32.196 57.3483 32.196C58.4621 32.196 59.4999 32.4491 60.4871 32.8794V34.0185C60.4871 35.9423 59.0696 36.9548 57.2471 36.9548C55.627 36.9548 54.817 36.2207 54.817 35.1576ZM70.6821 38.4989C71.8718 38.4989 72.8337 38.1445 73.5931 37.5117L73.2134 36.2461C72.6565 36.5498 72.0743 36.7017 71.4415 36.7017C70.5049 36.7017 69.948 35.9929 69.948 34.9804V27.3865H73.3906V25.6906H69.948V21.6405H68.3786C68.2267 25.1843 67.7964 25.6906 66.1764 25.6906H65.0373V27.3865H67.3155V35.2082C67.3155 37.2586 68.5052 38.4989 70.6821 38.4989ZM80.8858 25.3109C77.1395 25.3109 74.6588 27.8169 74.6588 31.9429C74.6588 36.0436 77.1141 38.5242 80.8605 38.5242C83.2905 38.5242 85.0371 37.4105 85.999 35.0564L84.5055 34.4995C83.7461 36.1448 82.683 36.9295 80.9617 36.9295C79.0632 36.9295 77.5445 35.6639 77.5445 33.7401V29.9178C77.5445 28.1459 79.0126 26.9056 80.987 26.9056C82.7842 26.9056 83.5183 27.7915 83.5183 28.9306V29.5381C83.5183 30.2975 83.974 30.6772 84.6321 30.6772C85.5687 30.6772 86.0243 30.1203 86.0243 29.285C86.0243 27.4625 84.6574 25.3109 80.8858 25.3109ZM89.0346 38.1445H91.6924V29.1078C92.6543 27.994 93.7428 27.3359 95.0843 27.3359C96.8309 27.3359 97.565 28.1965 97.565 30.171V38.1445H102.476V36.4486H100.223V29.8419C100.223 27.3865 98.9319 25.4121 96.0969 25.4121C94.2743 25.4121 92.8315 26.2981 91.819 27.589H91.6924V20.1723H86.7817V21.843H89.0346V38.1445Z",fill:"black"}),(0,r.jsx)("path",{d:"M116.096 20.1758C111.746 20.1758 107.993 22.7227 106.242 26.4067H112.98V24.8489C112.98 23.9883 113.678 23.2912 114.538 23.2912H119.208C120.069 23.2912 120.766 23.9883 120.766 24.8489C120.766 25.7096 120.069 26.4067 119.208 26.4067H112.98V27.9644C112.98 28.825 112.283 29.5221 111.423 29.5221H105.304C105.232 30.031 105.191 30.5502 105.191 31.0798C105.191 31.6094 105.232 32.1287 105.304 32.6375H112.98V31.0798C112.98 30.2192 113.678 29.5221 114.538 29.5221H122.327C123.188 29.5221 123.885 30.2192 123.885 31.0798C123.885 31.9405 123.188 32.6375 122.327 32.6375H112.98V34.1953C112.98 35.0559 112.283 35.753 111.423 35.753H106.242C106.797 36.9213 107.554 37.974 108.467 38.8684H112.979V37.3107C112.979 36.4501 113.676 35.753 114.537 35.753H119.207C120.067 35.753 120.764 36.4501 120.764 37.3107C120.764 38.1713 120.067 38.8684 119.207 38.8684H112.979V41.5295C113.967 41.8229 115.012 41.9838 116.095 41.9838C122.117 41.9838 126.999 37.1017 126.999 31.0798C126.999 25.0579 122.118 20.1758 116.096 20.1758Z",fill:"black"}),(0,r.jsx)("path",{d:"M112.981 41.533C111.259 41.0205 109.715 40.0941 108.465 38.8691H112.981V41.533Z",fill:"white"}),(0,r.jsx)("path",{d:"M112.98 38.8693H119.207C120.068 38.8693 120.765 38.1723 120.765 37.3116C120.765 36.451 120.068 35.7539 119.207 35.7539H114.538C113.678 35.7539 112.98 36.451 112.98 37.3116V38.8693Z",fill:"white"}),(0,r.jsx)("path",{d:"M106.24 35.7522C105.78 34.7837 105.458 33.7367 105.301 32.6367H112.979V34.1944C112.979 35.0551 112.282 35.7522 111.421 35.7522H106.24Z",fill:"white"}),(0,r.jsx)("path",{d:"M114.538 29.5215H122.327C123.187 29.5215 123.885 30.2186 123.885 31.0792C123.885 31.9398 123.187 32.6369 122.327 32.6369H112.98V31.0792C112.98 30.2186 113.678 29.5215 114.538 29.5215Z",fill:"white"}),(0,r.jsx)("path",{d:"M105.301 29.5217C105.458 28.4217 105.78 27.3747 106.24 26.4062H112.979V27.964C112.979 28.8246 112.282 29.5217 111.421 29.5217H105.301Z",fill:"white"}),(0,r.jsx)("path",{d:"M112.98 26.4065H119.207C120.068 26.4065 120.765 25.7094 120.765 24.8487C120.765 23.9881 120.068 23.291 119.207 23.291H114.538C113.678 23.291 112.98 23.9881 112.98 24.8487V26.4065Z",fill:"white"}),(0,r.jsx)("path",{d:"M4.05192 13.18C3.43192 13.18 2.91192 13.03 2.49192 12.73C2.07192 12.426 1.75392 12.016 1.53792 11.5C1.32192 10.984 1.21392 10.402 1.21392 9.754C1.21392 9.106 1.31992 8.524 1.53192 8.008C1.74792 7.492 2.06392 7.086 2.47992 6.79C2.89992 6.49 3.41592 6.34 4.02792 6.34C4.63592 6.34 5.15992 6.49 5.59992 6.79C6.04392 7.086 6.38592 7.492 6.62592 8.008C6.86592 8.52 6.98592 9.102 6.98592 9.754C6.98592 10.402 6.86592 10.986 6.62592 11.506C6.38992 12.022 6.05192 12.43 5.61192 12.73C5.17592 13.03 4.65592 13.18 4.05192 13.18ZM1.00392 15.88V6.52H2.11992V11.182H2.26392V15.88H1.00392ZM3.87792 12.046C4.27792 12.046 4.60792 11.944 4.86792 11.74C5.13192 11.536 5.32792 11.262 5.45592 10.918C5.58792 10.57 5.65392 10.182 5.65392 9.754C5.65392 9.33 5.58792 8.946 5.45592 8.602C5.32792 8.258 5.12992 7.984 4.86192 7.78C4.59392 7.576 4.25192 7.474 3.83592 7.474C3.44392 7.474 3.11992 7.57 2.86392 7.762C2.61192 7.954 2.42392 8.222 2.29992 8.566C2.17992 8.91 2.11992 9.306 2.11992 9.754C2.11992 10.202 2.17992 10.598 2.29992 10.942C2.41992 11.286 2.60992 11.556 2.86992 11.752C3.12992 11.948 3.46592 12.046 3.87792 12.046ZM11.1247 13.18C10.4767 13.18 9.9147 13.034 9.4387 12.742C8.9627 12.45 8.5947 12.048 8.3347 11.536C8.0787 11.02 7.9507 10.426 7.9507 9.754C7.9507 9.078 8.0827 8.484 8.3467 7.972C8.6107 7.456 8.9807 7.056 9.4567 6.772C9.9327 6.484 10.4887 6.34 11.1247 6.34C11.7727 6.34 12.3347 6.486 12.8107 6.778C13.2867 7.07 13.6547 7.472 13.9147 7.984C14.1747 8.496 14.3047 9.086 14.3047 9.754C14.3047 10.43 14.1727 11.026 13.9087 11.542C13.6487 12.054 13.2807 12.456 12.8047 12.748C12.3287 13.036 11.7687 13.18 11.1247 13.18ZM11.1247 11.998C11.7447 11.998 12.2067 11.79
112.5107 11.374C12.8187 10.954 12.9727 10.414 12.9727 9.754C12.9727 9.078 12.8167 8.538 12.5047 8.134C12.1967 7.726 11.7367 7.522 11.1247 7.522C10.7047 7.522 10.3587 7.618 10.0867 7.81C9.8147 7.998 9.6127 8.26 9.4807 8.596C9.3487 8.928 9.2827 9.314 9.2827 9.754C9.2827 10.434 9.4387 10.978 9.7507 11.386C10.0627 11.794 10.5207 11.998 11.1247 11.998ZM16.7688 13L14.7888 6.514L16.0308 6.52L17.3868 10.966L18.7548 6.52H19.8348L21.2028 10.966L22.5588 6.52H23.7948L21.8148 13H20.8068L19.2948 8.308L17.7768 13H16.7688ZM27.5089 13.18C26.8649 13.18 26.2989 13.04 25.8109 12.76C25.3269 12.476 24.9489 12.082 24.6769 11.578C24.4089 11.07 24.2749 10.482 24.2749 9.814C24.2749 9.106 24.4069 8.492 24.6709 7.972C24.9389 7.452 25.3109 7.05 25.7869 6.766C26.2629 6.482 26.8169 6.34 27.4489 6.34C28.1089 6.34 28.6709 6.494 29.1349 6.802C29.5989 7.106 29.9449 7.54 30.1729 8.104C30.4049 8.668 30.4969 9.338 30.4489 10.114H29.1949V9.658C29.1869 8.906 29.0429 8.35 28.7629 7.99C28.4869 7.63 28.0649 7.45 27.4969 7.45C26.8689 7.45 26.3969 7.648 26.0809 8.044C25.7649 8.44 25.6069 9.012 25.6069 9.76C25.6069 10.472 25.7649 11.024 26.0809 11.416C26.3969 11.804 26.8529 11.998 27.4489 11.998C27.8409 11.998 28.1789 11.91 28.4629 11.734C28.7509 11.554 28.9749 11.298 29.1349 10.966L30.3649 11.356C30.1129 11.936 29.7309 12.386 29.2189 12.706C28.7069 13.022 28.1369 13.18 27.5089 13.18ZM25.1989 10.114V9.136H29.8249V10.114H25.1989ZM31.7951 13V6.52H32.9111V8.092L32.7551 7.888C32.8351 7.68 32.9391 7.49 33.0671 7.318C33.1951 7.142 33.3431 6.998 33.5111 6.886C33.6751 6.766 33.8571 6.674 34.0571 6.61C34.2611 6.542 34.4691 6.502 34.6811 6.49C34.8931 6.474 35.0971 6.484 35.2931 6.52V7.696C35.0811 7.64 34.8451 7.624 34.5851 7.648C34.3291 7.672 34.0931 7.754 33.8771 7.894C33.6731 8.026 33.5111 8.186 33.3911 8.374C33.2751 8.562 33.1911 8.772 33.1391 9.004C33.0871 9.232 33.0611 9.474 33.0611 9.73V13H31.7951ZM39.1925 13.18C38.5485 13.18 37.9825 13.04 37.4945 12.76C37.0105 12.476 36.6325 12.082 36.3605 11.578C36.0925 11.07 35.9585 10.482 35.9585 9.814C35.9585 9.106 36.0905 8.492 36.3545 7.972C36.6225 7.452 36.9945 7.05 37.4705 6.766C37.9465 6.482 38.5005 6.34 39.1325 6.34C39.7925 6.34 40.3545 6.494 40.8185 6.802C41.2825 7.106 41.6285 7.54 41.8565 8.104C42.0885 8.668 42.1805 9.338 42.1325 10.114H40.8785V9.658C40.8705 8.906 40.7265 8.35 40.4465 7.99C40.1705 7.63 39.7485 7.45 39.1805 7.45C38.5525 7.45 38.0805 7.648 37.7645 8.044C37.4485 8.44 37.2905 9.012 37.2905 9.76C37.2905 10.472 37.4485 11.024 37.7645 11.416C38.0805 11.804 38.5365 11.998 39.1325 11.998C39.5245 11.998 39.8625 11.91 40.1465 11.734C40.4345 11.554 40.6585 11.298 40.8185 10.966L42.0485 11.356C41.7965 11.936 41.4145 12.386 40.9025 12.706C40.3905 13.022 39.8205 13.18 39.1925 13.18ZM36.8825 10.114V9.136H41.5085V10.114H36.8825ZM46.0527 13.18C45.4487 13.18 44.9267 13.03 44.4867 12.73C44.0507 12.43 43.7127 12.022 43.4727 11.506C43.2367 10.986 43.1187 10.402 43.1187 9.754C43.1187 9.102 43.2387 8.52 43.4787 8.008C43.7187 7.492 44.0587 7.086 44.4987 6.79C44.9427 6.49 45.4687 6.34 46.0767 6.34C46.6887 6.34 47.2027 6.49 47.6187 6.79C48.0387 7.086 48.3547 7.492 48.5667 8.008C48.7827 8.524 48.8907 9.106 48.8907 9.754C48.8907 10.402 48.7827 10.984 48.5667 11.5C48.3507 12.016 48.0327 12.426 47.6127 12.73C47.1927 13.03 46.6727 13.18 46.0527 13.18ZM46.2267 12.046C46.6387 12.046 46.9747 11.948 47.2347 11.752C47.4947 11.556 47.6847 11.286 47.8047 10.942C47.9247 10.598 47.9847 10.202 47.9847 9.754C47.9847 9.306 47.9227 8.91 47.7987 8.566C47.6787 8.222 47.4907 7.954 47.2347 7.762C46.9827 7.57 46.6607 7.474 46.2687 7.474C45.8527 7.474 45.5107 7.576 45.2427 7.78C44.9747 7.984 44.7747 8.258 44.6427 8.602C44.5147 8.946 44.4507 9.33 44.4507 9.754C44.4507 10.182 44.5147 10.57 44.6427 10.918C44.7747 11.262 44.9707 11.536 45.2307 11.74C45.4947 11.944 45.8267 12.046 46.2267 12.046ZM47.9847 13V8.338H47.8407V4.36H49.1007V13H47.9847ZM56.2238 13.18C55.6038 13.18 55.0838 13.03 54.6638 12.73C54.2438 12.426 53.9258 12.016 53.7098 11.5C53.4938 10.984 53.3858 10.402 53.3858 9.754C53.3858 9.106 53.4918 8.524 53.7038 8.008C53.9198 7.492 54.2358 7.086 54.6518 6.79C55.0718 6.49 55.5878 6.34 56.1998 6.34C56.8078 6.34 57.3318 6.49 57.7718 6.79C58.2158 7.086 58.5578 7.492 58.7978 8.008C59.0378 8.52 59.1578 9.102 59.1578 9.754C59.1578 10.402 59.0378 10.986 58.7978 11.506C58.5618 12.022 58.2238 12.43 57.7838 12.73C57.3478 13.03 56.8278 13.18 56.2238 13.18ZM53.1758 13V4.36H54.4358V8.338H54.2918V13H53.1758ZM56.0498 12.046C56.4498 12.046 56.7798 11.944 57.0398 11.74C57.3038 11.536 57.4998 11.262 57.6278 10.918C57.7598 10.57 57.8258 10.182 57.8258 9.754C57.8258 9.33 57.7598 8.946 57.6278 8.602C57.4998 8.258 57.3018 7.984 57.0338 7.78C56.7658 7.576 56.4238 7.474 56.0078 7.474C55.6158 7.474 55.2918 7.57 55.0358 7.762C54.7838 7.954 54.5958 8.222 54.4718 8.566C54.3518 8.91 54.2918 9.306 54.2918 9.754C54.2918 10.202 54.3518 10.598 54.4718 10.942C54.5918 11.286 54.7818 11.556 55.0418 11.752C55.3018 11.948 55.6378 12.046 56.0498 12.046ZM60.9601 15.88L62.2141 12.466L62.2321 13.474L59.4061 6.52H60.7141L62.8261 11.89H62.4421L64.4581 6.52H65.7301L62.1541 15.88H60.9601Z",fill:"white"})]})):(0,r.jsxs)("svg",B({width:"127",height:"44",viewBox:"0 0 127 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,r.jsx)("path",{d:"M6.75428 38.423C8.80462 38.423 10.0956 37.4611 10.8043 35.9929H10.9309V38.1445H13.5888V20.1723H8.65275V21.843H10.9309V27.5637H10.8043C9.91839 26.2981 8.70337 25.4121 6.75428 25.4121C3.64078 25.4121 1.46387 27.4372 1.46387 32.0441C1.46387 36.322 3.64078 38.4483 6.75428 38.423ZM10.9309 32.9554C10.9309 34.9804 9.81714 36.6004 7.61492 36.6004C5.56457 36.6004 4.34955 35.3601 4.34955 33.3351V30.5507C4.34955 28.475 5.58988 27.2347 7.61492 27.2347C8.98181 27.2347 9.99433 27.9181 10.9309 29.1584V32.9554ZM19.3726 22.6024C20.3092 22.6024 21.0432 21.8936 21.0432 20.9317C21.0432 19.9698 20.3092 19.2864 19.3726 19.2864C18.4613 19.2864 17.7272 19.9698 17.7272 20.9317C17.7272 21.8936 18.4613 22.6024 19.3726 22.6024ZM20.6888 25.6906H15.7781V27.3865H18.0563V38.1445H20.6888V25.6906ZM29.2462 37.1826C27.1199 37.1826 26.234 36.4233 26.234 35.3348V35.0817C26.234 34.4742 25.6771 34.1957 25.1455 34.1957C24.2596 34.1957 23.8545 34.7273 23.8545 35.3095C23.8545 36.9801 25.348 38.5749 29.3728 38.5749C33.0685 38.5749 34.8404 36.8789 34.8404 34.6513C34.8404 32.7529 33.7772 31.5379 30.9169 30.905L28.7653 30.4241C27.3984 30.1203 26.7908 29.5381 26.7908 28.6775C26.7908 27.5131 27.7527 26.7031 29.5246 26.7031C31.3725 26.7031 32.1825 27.3612 32.1825 28.2725V28.5256C32.1825 29.0825 32.6634 29.3863 33.2203 29.3863C34.1063 29.3863 34.5113 28.88 34.5113 28.2472C34.5113 26.9056 33.3469 25.3109 29.3475 25.3109C26.0568 25.3109 24.3355 26.855 24.3355 29.0572C24.3355 30.8291 25.3986 32.0441 27.854 32.601L30.1575 33.1326C31.7016 33.5123 32.3597 33.9932 32.3597 35.0057C32.3597 36.3473 31.1447 37.1826 29.2462 37.1826ZM50.0993 32.0441C50.0993 27.589 47.9224 25.4374 44.7836 25.4374C42.8598 25.4374 41.5942 26.374 40.7335 27.665H40.607V25.6906H35.6963V27.3865H37.9744V43.2831H40.607L40.6323 36.1195H40.7588C41.4929 37.4864 42.7332 38.423 44.7836 38.423C47.8971 38.423 50.0993 36.3726 50.0993 32.0441ZM40.607 32.9807V29.1838C41.5435 27.9434 42.5307 27.26 43.9483 27.26C45.948 27.26 47.1883 28.5509 47.1883 30.576V33.2591C47.1883 35.3601 45.9733 36.6004 43.923 36.6004C41.7207 36.6004 40.607 34.9804 40.607 32.9807ZM60.8415 36.4992C61.044 37.2586 61.3731 37.8661 61.8793 38.347L65.3725 37.8408V36.3726L64.2081 36.4739
1C63.5247 36.5498 63.145 36.0942 63.145 34.7779V30.0444C63.145 26.9056 61.3984 25.3109 57.6267 25.3109C54.4626 25.3109 52.7667 26.7537 52.7667 28.5256C52.7667 29.3609 53.197 29.8166 53.9817 29.8166C54.7917 29.8166 55.222 29.4369 55.222 28.7534V28.4497C55.222 27.4372 56.0827 26.8043 57.5761 26.8043C59.6518 26.8043 60.4871 27.7409 60.4871 29.5888V31.6897C59.3227 31.2594 58.1583 30.981 56.7914 30.981C53.8045 30.981 52.0832 32.3226 52.0832 34.7273C52.0832 37.0054 53.7032 38.4989 56.5636 38.4989C58.538 38.4989 59.8796 37.6889 60.6896 36.4992H60.8415ZM54.817 35.1576V34.0438C54.817 32.8794 55.6776 32.196 57.3483 32.196C58.4621 32.196 59.4999 32.4491 60.4871 32.8794V34.0185C60.4871 35.9423 59.0696 36.9548 57.2471 36.9548C55.627 36.9548 54.817 36.2207 54.817 35.1576ZM70.6821 38.4989C71.8718 38.4989 72.8337 38.1445 73.5931 37.5117L73.2134 36.2461C72.6565 36.5498 72.0743 36.7017 71.4415 36.7017C70.5049 36.7017 69.948 35.9929 69.948 34.9804V27.3865H73.3906V25.6906H69.948V21.6405H68.3786C68.2267 25.1843 67.7964 25.6906 66.1764 25.6906H65.0373V27.3865H67.3155V35.2082C67.3155 37.2586 68.5052 38.4989 70.6821 38.4989ZM80.8858 25.3109C77.1395 25.3109 74.6588 27.8169 74.6588 31.9429C74.6588 36.0436 77.1141 38.5242 80.8605 38.5242C83.2905 38.5242 85.0371 37.4105 85.999 35.0564L84.5055 34.4995C83.7461 36.1448 82.683 36.9295 80.9617 36.9295C79.0632 36.9295 77.5445 35.6639 77.5445 33.7401V29.9178C77.5445 28.1459 79.0126 26.9056 80.987 26.9056C82.7842 26.9056 83.5183 27.7915 83.5183 28.9306V29.5381C83.5183 30.2975 83.974 30.6772 84.6321 30.6772C85.5687 30.6772 86.0243 30.1203 86.0243 29.285C86.0243 27.4625 84.6574 25.3109 80.8858 25.3109ZM89.0346 38.1445H91.6924V29.1078C92.6543 27.994 93.7428 27.3359 95.0843 27.3359C96.8309 27.3359 97.565 28.1965 97.565 30.171V38.1445H102.476V36.4486H100.223V29.8419C100.223 27.3865 98.9319 25.4121 96.0969 25.4121C94.2743 25.4121 92.8315 26.2981 91.819 27.589H91.6924V20.1723H86.7817V21.843H89.0346V38.1445Z",fill:"#2E008B"}),(0,r.jsx)("path",{d:"M116.096 20.1758C111.746 20.1758 107.993 22.7227 106.242 26.4067H112.98V24.8489C112.98 23.9883 113.678 23.2912 114.538 23.2912H119.208C120.069 23.2912 120.766 23.9883 120.766 24.8489C120.766 25.7096 120.069 26.4067 119.208 26.4067H112.98V27.9644C112.98 28.825 112.283 29.5221 111.423 29.5221H105.304C105.232 30.031 105.191 30.5502 105.191 31.0798C105.191 31.6094 105.232 32.1287 105.304 32.6375H112.98V31.0798C112.98 30.2192 113.678 29.5221 114.538 29.5221H122.327C123.188 29.5221 123.885 30.2192 123.885 31.0798C123.885 31.9405 123.188 32.6375 122.327 32.6375H112.98V34.1953C112.98 35.0559 112.283 35.753 111.423 35.753H106.242C106.797 36.9213 107.554 37.974 108.467 38.8684H112.979V37.3107C112.979 36.4501 113.676 35.753 114.537 35.753H119.207C120.067 35.753 120.764 36.4501 120.764 37.3107C120.764 38.1713 120.067 38.8684 119.207 38.8684H112.979V41.5295C113.967 41.8229 115.012 41.9838 116.095 41.9838C122.117 41.9838 126.999 37.1017 126.999 31.0798C126.999 25.0579 122.118 20.1758 116.096 20.1758Z",fill:"#2E008B"}),(0,r.jsx)("path",{d:"M112.981 41.533C111.259 41.0205 109.715 40.0941 108.465 38.8691H112.981V41.533Z",fill:"#F7F7FE"}),(0,r.jsx)("path",{d:"M112.98 38.8693H119.207C120.068 38.8693 120.765 38.1723 120.765 37.3116C120.765 36.451 120.068 35.7539 119.207 35.7539H114.538C113.678 35.7539 112.98 36.451 112.98 37.3116V38.8693Z",fill:"#F7F7FE"}),(0,r.jsx)("path",{d:"M106.24 35.7522C105.78 34.7837 105.458 33.7367 105.301 32.6367H112.979V34.1944C112.979 35.0551 112.282 35.7522 111.421 35.7522H106.24Z",fill:"#F7F7FE"}),(0,r.jsx)("path",{d:"M114.538 29.5215H122.327C123.187 29.5215 123.885 30.2186 123.885 31.0792C123.885 31.9398 123.187 32.6369 122.327 32.6369H112.98V31.0792C112.98 30.2186 113.678 29.5215 114.538 29.5215Z",fill:"#F7F7FE"}),(0,r.jsx)("path",{d:"M105.301 29.5217C105.458 28.4217 105.78 27.3747 106.24 26.4062H112.979V27.964C112.979 28.8246 112.282 29.5217 111.421 29.5217H105.301Z",fill:"#F7F7FE"}),(0,r.jsx)("path",{d:"M112.98 26.4065H119.207C120.068 26.4065 120.765 25.7094 120.765 24.8487C120.765 23.9881 120.068 23.291 119.207 23.291H114.538C113.678 23.291 112.98 23.9881 112.98 24.8487V26.4065Z",fill:"#F7F7FE"}),(0,r.jsx)("path",{d:"M4.05192 13.18C3.43192 13.18 2.91192 13.03 2.49192 12.73C2.07192 12.426 1.75392 12.016 1.53792 11.5C1.32192 10.984 1.21392 10.402 1.21392 9.754C1.21392 9.106 1.31992 8.524 1.53192 8.008C1.74792 7.492 2.06392 7.086 2.47992 6.79C2.89992 6.49 3.41592 6.34 4.02792 6.34C4.63592 6.34 5.15992 6.49 5.59992 6.79C6.04392 7.086 6.38592 7.492 6.62592 8.008C6.86592 8.52 6.98592 9.102 6.98592 9.754C6.98592 10.402 6.86592 10.986 6.62592 11.506C6.38992 12.022 6.05192 12.43 5.61192 12.73C5.17592 13.03 4.65592 13.18 4.05192 13.18ZM1.00392 15.88V6.52H2.11992V11.182H2.26392V15.88H1.00392ZM3.87792 12.046C4.27792 12.046 4.60792 11.944 4.86792 11.74C5.13192 11.536 5.32792 11.262 5.45592 10.918C5.58792 10.57 5.65392 10.182 5.65392 9.754C5.65392 9.33 5.58792 8.946 5.45592 8.602C5.32792 8.258 5.12992 7.984 4.86192 7.78C4.59392 7.576 4.25192 7.474 3.83592 7.474C3.44392 7.474 3.11992 7.57 2.86392 7.762C2.61192 7.954 2.42392 8.222 2.29992 8.566C2.17992 8.91 2.11992 9.306 2.11992 9.754C2.11992 10.202 2.17992 10.598 2.29992 10.942C2.41992 11.286 2.60992 11.556 2.86992 11.752C3.12992 11.948 3.46592 12.046 3.87792 12.046ZM11.1247 13.18C10.4767 13.18 9.9147 13.034 9.4387 12.742C8.9627 12.45 8.5947 12.048 8.3347 11.536C8.0787 11.02 7.9507 10.426 7.9507 9.754C7.9507 9.078 8.0827 8.484 8.3467 7.972C8.6107 7.456 8.9807 7.056 9.4567 6.772C9.9327 6.484 10.4887 6.34 11.1247 6.34C11.7727 6.34 12.3347 6.486 12.8107 6.778C13.2867 7.07 13.6547 7.472 13.9147 7.984C14.1747 8.496 14.3047 9.086 14.3047 9.754C14.3047 10.43 14.1727 11.026 13.9087 11.542C13.6487 12.054 13.2807 12.456 12.8047 12.748C12.3287 13.036 11.7687 13.18 11.1247 13.18ZM11.1247 11.998C11.7447 11.998 12.2067 11.79
112.5107 11.374C12.8187 10.954 12.9727 10.414 12.9727 9.754C12.9727 9.078 12.8167 8.538 12.5047 8.134C12.1967 7.726 11.7367 7.522 11.1247 7.522C10.7047 7.522 10.3587 7.618 10.0867 7.81C9.8147 7.998 9.6127 8.26 9.4807 8.596C9.3487 8.928 9.2827 9.314 9.2827 9.754C9.2827 10.434 9.4387 10.978 9.7507 11.386C10.0627 11.794 10.5207 11.998 11.1247 11.998ZM16.7688 13L14.7888 6.514L16.0308 6.52L17.3868 10.966L18.7548 6.52H19.8348L21.2028 10.966L22.5588 6.52H23.7948L21.8148 13H20.8068L19.2948 8.308L17.7768 13H16.7688ZM27.5089 13.18C26.8649 13.18 26.2989 13.04 25.8109 12.76C25.3269 12.476 24.9489 12.082 24.6769 11.578C24.4089 11.07 24.2749 10.482 24.2749 9.814C24.2749 9.106 24.4069 8.492 24.6709 7.972C24.9389 7.452 25.3109 7.05 25.7869 6.766C26.2629 6.482 26.8169 6.34 27.4489 6.34C28.1089 6.34 28.6709 6.494 29.1349 6.802C29.5989 7.106 29.9449 7.54 30.1729 8.104C30.4049 8.668 30.4969 9.338 30.4489 10.114H29.1949V9.658C29.1869 8.906 29.0429 8.35 28.7629 7.99C28.4869 7.63 28.0649 7.45 27.4969 7.45C26.8689 7.45 26.3969 7.648 26.0809 8.044C25.7649 8.44 25.6069 9.012 25.6069 9.76C25.6069 10.472 25.7649 11.024 26.0809 11.416C26.3969 11.804 26.8529 11.998 27.4489 11.998C27.8409 11.998 28.1789 11.91 28.4629 11.734C28.7509 11.554 28.9749 11.298 29.1349 10.966L30.3649 11.356C30.1129 11.936 29.7309 12.386 29.2189 12.706C28.7069 13.022 28.1369 13.18 27.5089 13.18ZM25.1989 10.114V9.136H29.8249V10.114H25.1989ZM31.7951 13V6.52H32.9111V8.092L32.7551 7.888C32.8351 7.68 32.9391 7.49 33.0671 7.318C33.1951 7.142 33.3431 6.998 33.5111 6.886C33.6751 6.766 33.8571 6.674 34.0571 6.61C34.2611 6.542 34.4691 6.502 34.6811 6.49C34.8931 6.474 35.0971 6.484 35.2931 6.52V7.696C35.0811 7.64 34.8451 7.624 34.5851 7.648C34.3291 7.672 34.0931 7.754 33.8771 7.894C33.6731 8.026 33.5111 8.186 33.3911 8.374C33.2751 8.562 33.1911 8.772 33.1391 9.004C33.0871 9.232 33.0611 9.474 33.0611 9.73V13H31.7951ZM39.1925 13.18C38.5485 13.18 37.9825 13.04 37.4945 12.76C37.0105 12.476 36.6325 12.082 36.3605 11.578C36.0925 11.07 35.9585 10.482 35.9585 9.814C35.9585 9.106 36.0905 8.492 36.3545 7.972C36.6225 7.452 36.9945 7.05 37.4705 6.766C37.9465 6.482 38.5005 6.34 39.1325 6.34C39.7925 6.34 40.3545 6.494 40.8185 6.802C41.2825 7.106 41.6285 7.54 41.8565 8.104C42.0885 8.668 42.1805 9.338 42.1325 10.114H40.8785V9.658C40.8705 8.906 40.7265 8.35 40.4465 7.99C40.1705 7.63 39.7485 7.45 39.1805 7.45C38.5525 7.45 38.0805 7.648 37.7645 8.044C37.4485 8.44 37.2905 9.012 37.2905 9.76C37.2905 10.472 37.4485 11.024 37.7645 11.416C38.0805 11.804 38.5365 11.998 39.1325 11.998C39.5245 11.998 39.8625 11.91 40.1465 11.734C40.4345 11.554 40.6585 11.298 40.8185 10.966L42.0485 11.356C41.7965 11.936 41.4145 12.386 40.9025 12.706C40.3905 13.022 39.8205 13.18 39.1925 13.18ZM36.8825 10.114V9.136H41.5085V10.114H36.8825ZM46.0527 13.18C45.4487 13.18 44.9267 13.03 44.4867 12.73C44.0507 12.43 43.7127 12.022 43.4727 11.506C43.2367 10.986 43.1187 10.402 43.1187 9.754C43.1187 9.102 43.2387 8.52 43.4787 8.008C43.7187 7.492 44.0587 7.086 44.4987 6.79C44.9427 6.49 45.4687 6.34 46.0767 6.34C46.6887 6.34 47.2027 6.49 47.6187 6.79C48.0387 7.086 48.3547 7.492 48.5667 8.008C48.7827 8.524 48.8907 9.106 48.8907 9.754C48.8907 10.402 48.7827 10.984 48.5667 11.5C48.3507 12.016 48.0327 12.426 47.6127 12.73C47.1927 13.03 46.6727 13.18 46.0527 13.18ZM46.2267 12.046C46.6387 12.046 46.9747 11.948 47.2347 11.752C47.4947 11.556 47.6847 11.286 47.8047 10.942C47.9247 10.598 47.9847 10.202 47.9847 9.754C47.9847 9.306 47.9227 8.91 47.7987 8.566C47.6787 8.222 47.4907 7.954 47.2347 7.762C46.9827 7.57 46.6607 7.474 46.2687 7.474C45.8527 7.474 45.5107 7.576 45.2427 7.78C44.9747 7.984 44.7747 8.258 44.6427 8.602C44.5147 8.946 44.4507 9.33 44.4507 9.754C44.4507 10.182 44.5147 10.57 44.6427 10.918C44.7747 11.262 44.9707 11.536 45.2307 11.74C45.4947 11.944 45.8267 12.046 46.2267 12.046ZM47.9847 13V8.338H47.8407V4.36H49.1007V13H47.9847ZM56.2238 13.18C55.6038 13.18 55.0838 13.03 54.6638 12.73C54.2438 12.426 53.9258 12.016 53.7098 11.5C53.4938 10.984 53.3858 10.402 53.3858 9.754C53.3858 9.106 53.4918 8.524 53.7038 8.008C53.9198 7.492 54.2358 7.086 54.6518 6.79C55.0718 6.49 55.5878 6.34 56.1998 6.34C56.8078 6.34 57.3318 6.49 57.7718 6.79C58.2158 7.086 58.5578 7.492 58.7978 8.008C59.0378 8.52 59.1578 9.102 59.1578 9.754C59.1578 10.402 59.0378 10.986 58.7978 11.506C58.5618 12.022 58.2238 12.43 57.7838 12.73C57.3478 13.03 56.8278 13.18 56.2238 13.18ZM53.1758 13V4.36H54.4358V8.338H54.2918V13H53.1758ZM56.0498 12.046C56.4498 12.046 56.7798 11.944 57.0398 11.74C57.3038 11.536 57.4998 11.262 57.6278 10.918C57.7598 10.57 57.8258 10.182 57.8258 9.754C57.8258 9.33 57.7598 8.946 57.6278 8.602C57.4998 8.258 57.3018 7.984 57.0338 7.78C56.7658 7.576 56.4238 7.474 56.0078 7.474C55.6158 7.474 55.2918 7.57 55.0358 7.762C54.7838 7.954 54.5958 8.222 54.4718 8.566C54.3518 8.91 54.2918 9.306 54.2918 9.754C54.2918 10.202 54.3518 10.598 54.4718 10.942C54.5918 11.286 54.7818 11.556 55.0418 11.752C55.3018 11.948 55.6378 12.046 56.0498 12.046ZM60.9601 15.88L62.2141 12.466L62.2321 13.474L59.4061 6.52H60.7141L62.8261 11.89H62.4421L64.4581 6.52H65.7301L62.1541 15.88H60.9601Z",fill:"#B8B9DC"})]}))}var N={};_(N,"Edit",(()=>D),(t=>D=t));var L=function(){return L=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},L.apply(this,arguments)};function D(){return(0,r.jsx)("svg",L({width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,r.jsx)("path",{d:"M8.18665 0.896908C8.31249 0.771073 8.46188 0.671254 8.62629 0.603153C8.7907 0.535051 8.96691 0.5 9.14487 0.5C9.32283 0.5 9.49905 0.535051 9.66346 0.603153C9.82787 0.671254 9.97726 0.771073 10.1031 0.896908C10.2289 1.02274 10.3287 1.17213 10.3968 1.33654C10.4649 1.50095 10.5 1.67717 10.5 1.85513C10.5 2.03309 10.4649 2.2093 10.3968 2.37371C10.3287 2.53812 10.2289 2.68751 10.1031 2.81335L3.63511 9.28133L1 10L1.71867 7.36489L8.18665 0.896908Z",stroke:"#B8B9DC",strokeLinecap:"round",strokeLinejoin:"round"})}))}var z={};_(z,"Error",(()=>U),(t=>U=t));var F=function(){return F=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},F.apply(this,arguments)};function U(t){return(0,r.jsxs)("svg",F({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,r.jsx)("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"#E86143",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M15 9L9 15",stroke:"#E86143",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M9 9L15 15",stroke:"#E86143",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))}var W={};_(W,"ExternalLink",(()=>V),(t=>V=t));var G=function(){return G=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},G.apply(this,arguments)};function V(){return(0,r.jsxs)("svg",G({width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,r.jsx)("path",{d:"M9 7.07422V10.0742C9 10.3394 8.89464 10.5938 8.70711 10.7813C8.51957 10.9689 8.26522 11.0742 8 11.0742H2.5C2.23478 11.0742 1.98043 10.9689 1.79289 10.7813C1.60536 10.5938 1.5 10.3394 1.5 10.0742V4.57422C1.5 4.309 1.60536 4.05465 1.79289 3.86711C1.98043 3.67958 2.23478 3.57422 2.5 3.57422H5.5",stroke:"#397BAD",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M7.5 2.07422H10.5V5.07422",stroke:"#397BAD",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M5 7.57422L10.5 2.07422",stroke:"#397BAD",strokeLinecap:"round",strokeLinejoin:"round"})]}))}var K={};_(K,"Gift",(()=>q),(t=>q=t));var H=function(){return H=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},H.apply(this,arguments)};function q(){return(0,r.jsxs)("svg",H({width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,r.jsx)("path",{d:"M15 9.57227V17.0723H3V9.57227",stroke:"#4A279C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M16.5 5.82227H1.5V9.57227H16.5V5.82227Z",stroke:"#4A279C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M9 17.0723V5.82227",stroke:"#4A279C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M9 5.82227H5.625C5.12772 5.82227 4.65081 5.62472 4.29917 5.27309C3.94754 4.92146 3.75 4.44455 3.75 3.94727C3.75 3.44998 3.94754 2.97307 4.29917 2.62144C4.65081 2.26981 5.12772 2.07227 5.625 2.07227C8.25 2.07227 9 5.82227 9 5.82227Z",stroke:"#4A279C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M9 5.82227H12.375C12.8723 5.82227 13.3492 5.62472 13.7008 5.27309C14.0525 4.92146 14.25 4.44455 14.25 3.94727C14.25 3.44998 14.0525 2.97307 13.7008 2.62144C13.3492 2.26981 12.8723 2.07227 12.375 2.07227C9.75 2.07227 9 5.82227 9 5.82227Z",stroke:"#4A279C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))}var $={};_($,"Info",(()=>Y),(t=>Y=t));var Z=function(){return Z=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Z.apply(this,arguments)};function Y(t){return(0,r.jsxs)("svg",Z({viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[(0,r.jsx)("path",{d:"M9 16.5C13.1421 16.5 16.5 13.1421 16.5 9C16.5 4.85786 13.1421 1.5 9 1.5C4.85786 1.5 1.5 4.85786 1.5 9C1.5 13.1421 4.85786 16.5 9 16.5Z",stroke:"#397BAD",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M9 12V9",stroke:"#397BAD",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M9 6H9.0075",stroke:"#397BAD",strokeLinecap:"round",strokeLinejoin:"round"})]}))}var X={};_(X,"Lock",(()=>Q),(t=>Q=t));var J=function(){return J=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},J.apply(this,arguments)};function Q(t){return(0,r.jsxs)("svg",J({viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,r.jsx)("path",{d:"M14.25 8.25H3.75C2.92157 8.25 2.25 8.92157 2.25 9.75V15C2.25 15.8284 2.92157 16.5 3.75 16.5H14.25C15.0784 16.5 15.75 15.8284 15.75 15V9.75C15.75 8.92157 15.0784 8.25 14.25 8.25Z",stroke:"#3f1d96",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M5.25 8.25V5.25C5.25 4.25544 5.64509 3.30161 6.34835 2.59835C7.05161 1.89509 8.00544 1.5 9 1.5C9.99456 1.5 10.9484 1.89509 11.6517 2.59835C12.3549 3.30161 12.75 4.25544 12.75 5.25V8.25",stroke:"#3f1d96",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}))}var tt={};_(tt,"MessageSquare",(()=>nt),(t=>nt=t));var et=function(){return et=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},et.apply(this,arguments)};function nt(){return(0,r.jsx)("svg",et({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 2C2.36739 2 2.24021 2.05268 2.14645 2.14645C2.05268 2.24021 2 2.36739 2 2.5V9.29289L3.14645 8.14645C3.24021 8.05268 3.36739 8 3.5 8H9.5C9.63261 8 9.75978 7.94732 9.85355 7.85355C9.94732 7.75978 10 7.63261 10 7.5V2.5C10 2.36739 9.94732 2.24021 9.85355 2.14645C9.75978 2.05268 9.63261 2 9.5 2H2.5ZM1.43934 1.43934C1.72064 1.15804 2.10218 1 2.5 1H9.5C9.89783 1 10.2794 1.15804 10.5607 1.43934C10.842 1.72064 11 2.10217 11 2.5V7.5C11 7.89783 10.842 8.27936 10.5607 8.56066C10.2794 8.84196 9.89783 9 9.5 9H3.70711L1.85355 10.8536C1.71055 10.9966 1.4955 11.0393 1.30866 10.9619C1.12182 10.8845 1 10.7022
11 10.5V2.5C1 2.10218 1.15804 1.72064 1.43934 1.43934Z",fill:"#212936"})}))}var rt={};_(rt,"Plus",(()=>ot),(t=>ot=t));var it=function(){return it=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},it.apply(this,arguments)};function ot(){return(0,r.jsx)("svg",it({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 0C8.55228 0 9 0.447715 9 1V7H15C15.5523 7 16 7.44772 16 8C16 8.55228 15.5523 9 15 9H9V15C9 15.5523 8.55228 16 8 16C7.44772 16 7 15.5523 7 15V9H1C0.447715 9 0 8.55228 0 8C0 7.44772 0.447715 7 1 7H7V1C7 0.447715 7.44772 0 8 0Z",fill:"white"})}))}var st={};_(st,"Reply",(()=>ct),(t=>ct=t));var at=function(){return at=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},at.apply(this,arguments)};function ct(){return(0,r.jsx)("svg",at({viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.28033 0.46967C5.57322 0.762563 5.57322 1.23744 5.28033 1.53033L2.81066 4H10C10.9946 4 11.9484 4.39509 12.6517 5.09835C13.3549 5.80161 13.75 6.75544 13.75 7.75V13C13.75 13.4142 13.4142 13.75 13 13.75C12.5858 13.75 12.25 13.4142 12.25 13V7.75C12.25 7.15326 12.0129 6.58097 11.591 6.15901C11.169 5.73705 10.5967 5.5 10 5.5H2.81066L5.28033 7.96967C5.57322 8.26256 5.57322 8.73744 5.28033 9.03033C4.98744 9.32322 4.51256 9.32322 4.21967 9.03033L0.46967 5.28033C0.176777 4.98744 0.176777 4.51256 0.46967 4.21967L4.21967 0.46967C4.51256 0.176777 4.98744 0.176777 5.28033 0.46967Z",fill:"black"})}))}var ut={};_(ut,"SolanaLogo",(()=>ht),(t=>ht=t));var lt=function(){return lt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},lt.apply(this,arguments)};function ht(t){return"black"===t.color?(0,r.jsx)("svg",lt({viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,r.jsx)("path",{d:"M15.9162 11.0381L13.2749 13.809C13.2178 13.8691 13.1486 13.9172 13.0717 13.95C12.9947 13.9829 12.9117 13.9999 12.8277 14H0.306886C0.247169 14 0.188756 13.9829 0.138801 13.9509C0.0888471 13.9189 0.0495197 13.8733 0.0256332 13.8198C0.00174671 13.7662 -0.00566146 13.707 0.00431646 13.6494C0.0142944 13.5918 0.0412231 13.5383 0.0818086 13.4954L2.72013 10.7246C2.77726 10.6644 2.84644 10.6164 2.92339 10.5835C3.00031 10.5507 3.08335 10.5336 3.1673 10.5336H15.6882C15.7484 10.5323 15.8077 10.5486 15.8585 10.5803C15.9094 10.6119 15.9496 10.6576 15.9739 10.7115C15.9983 10.7655 16.0058 10.8253 15.9955 10.8834C15.9852 10.9415 15.9576 10.9954 15.9162 11.0381ZM13.2749 5.45712C13.2176 5.39721 13.1483 5.34938 13.0714 5.31652C12.9946 5.28368 12.9116 5.26651 12.8277 5.26609H0.306886C0.247169 5.26612 0.188756 5.28318 0.138801 5.31521C0.0888471 5.34722 0.0495197 5.39279 0.0256332 5.44634C0.00174671 5.49989 -0.00566146 5.55908 0.00431646 5.61669C0.0142944 5.67429 0.0412231 5.72781 0.0818086 5.77067L2.72013 8.54295C2.77747 8.60286 2.84671 8.65069 2.92359 8.68355C3.00048 8.71639 3.08341 8.73356 3.1673 8.73398H15.6882C15.7478 8.73367 15.8059 8.71639 15.8557 8.68428C15.9055 8.65215 15.9445 8.60657 15.9682 8.55307C15.9919 8.49958 15.9992 8.44049 15.9891 8.38302C15.9791 8.32555 15.9523 8.27217 15.9117 8.22941L13.2749 5.45712ZM0.306886 3.4665H12.8277C12.9117 3.46643 12.9947 3.44941 13.0717 3.41654C13.1486 3.38368 13.2178 3.33565 13.2749 3.27546L15.9162 0.504645C15.9576 0.461846 15.9852 0.408003 15.9955 0.34989C16.0058 0.291778 15.9983 0.23199 15.9739 0.178053C15.9496 0.124115 15.9094 0.0784371 15.8585 0.0467661C15.8077 0.015095 15.7484 -0.00115396 15.6882 6.37584e-05H3.1673C3.08335 0.000150214 3.00031 0.017158 2.92339 0.0500267C2.84644 0.0828952 2.77726 0.130919 2.72013 0.191105L0.0818086 2.96192C0.0412231 3.00478 0.0142944 3.0583 0.00431646 3.1159C-0.00566146 3.17351 0.00174671 3.2327 0.0256332 3.28625C0.0495197 3.3398 0.0888471 3.38537 0.138801 3.41738C0.188756 3.44941 0.247169 3.46647 0.306886 3.4665Z",fill:"black"})})):"white"===t.color?(0,r.jsx)("svg",lt({viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,r.jsx)("path",{d:"M15.9162 11.0381L13.2749 13.809C13.2178 13.8691 13.1486 13.9172 13.0717 13.95C12.9947 13.9829 12.9117 13.9999 12.8277 14H0.306886C0.247169 14 0.188756 13.9829 0.138801 13.9509C0.0888471 13.9189 0.0495197 13.8733 0.0256332 13.8198C0.
100174671 13.7662 -0.00566146 13.707 0.00431646 13.6494C0.0142944 13.5918 0.0412231 13.5383 0.0818086 13.4954L2.72013 10.7246C2.77726 10.6644 2.84644 10.6164 2.92339 10.5835C3.00031 10.5507 3.08335 10.5336 3.1673 10.5336H15.6882C15.7484 10.5323 15.8077 10.5486 15.8585 10.5803C15.9094 10.6119 15.9496 10.6576 15.9739 10.7115C15.9983 10.7655 16.0058 10.8253 15.9955 10.8834C15.9852 10.9415 15.9576 10.9954 15.9162 11.0381ZM13.2749 5.45712C13.2176 5.39721 13.1483 5.34938 13.0714 5.31652C12.9946 5.28368 12.9116 5.26651 12.8277 5.26609H0.306886C0.247169 5.26612 0.188756 5.28318 0.138801 5.31521C0.0888471 5.34722 0.0495197 5.39279 0.0256332 5.44634C0.00174671 5.49989 -0.00566146 5.55908 0.00431646 5.61669C0.0142944 5.67429 0.0412231 5.72781 0.0818086 5.77067L2.72013 8.54295C2.77747 8.60286 2.84671 8.65069 2.92359 8.68355C3.00048 8.71639 3.08341 8.73356 3.1673 8.73398H15.6882C15.7478 8.73367 15.8059 8.71639 15.8557 8.68428C15.9055 8.65215 15.9445 8.60657 15.9682 8.55307C15.9919 8.49958 15.9992 8.44049 15.9891 8.38302C15.9791 8.32555 15.9523 8.27217 15.9117 8.22941L13.2749 5.45712ZM0.306886 3.4665H12.8277C12.9117 3.46643 12.9947 3.44941 13.0717 3.41654C13.1486 3.38368 13.2178 3.33565 13.2749 3.27546L15.9162 0.504645C15.9576 0.461846 15.9852 0.408003 15.9955 0.34989C16.0058 0.291778 15.9983 0.23199 15.9739 0.178053C15.9496 0.124115 15.9094 0.0784371 15.8585 0.0467661C15.8077 0.015095 15.7484 -0.00115396 15.6882 6.37584e-05H3.1673C3.08335 0.000150214 3.00031 0.017158 2.92339 0.0500267C2.84644 0.0828952 2.77726 0.130919 2.72013 0.191105L0.0818086 2.96192C0.0412231 3.00478 0.0142944 3.0583 0.00431646 3.1159C-0.00566146 3.17351 0.00174671 3.2327 0.0256332 3.28625C0.0495197 3.3398 0.0888471 3.38537 0.138801 3.41738C0.188756 3.44941 0.247169 3.46647 0.306886 3.4665Z",fill:"white"})})):(0,r.jsxs)("svg",lt({width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,r.jsx)("path",{d:"M15.9162 11.0381L13.2749 13.809C13.2178 13.8691 13.1486 13.9172 13.0717 13.95C12.9947 13.9829 12.9117 13.9999 12.8277 14H0.306886C0.247169 14 0.188756 13.9829 0.138801 13.9509C0.0888471 13.9189 0.0495197 13.8733 0.0256332 13.8198C0.00174671 13.7662 -0.00566146 13.707 0.00431646 13.6494C0.0142944 13.5918 0.0412231 13.5383 0.0818086 13.4954L2.72013 10.7246C2.77726 10.6644 2.84644 10.6164 2.92339 10.5835C3.00031 10.5507 3.08335 10.5336 3.1673 10.5336H15.6882C15.7484 10.5323 15.8077 10.5486 15.8585 10.5803C15.9094 10.6119 15.9496 10.6576 15.9739 10.7115C15.9983 10.7655 16.0058 10.8253 15.9955 10.8834C15.9852 10.9415 15.9576 10.9954 15.9162 11.0381ZM13.2749 5.45712C13.2176 5.39721 13.1483 5.34938 13.0714 5.31652C12.9946 5.28368 12.9116 5.26651 12.8277 5.26609H0.306886C0.247169 5.26612 0.188756 5.28318 0.138801 5.31521C0.0888471 5.34722 0.0495197 5.39279 0.0256332 5.44634C0.00174671 5.49989 -0.00566146 5.55908 0.00431646 5.61669C0.0142944 5.67429 0.0412231 5.72781 0.0818086 5.77067L2.72013 8.54295C2.77747 8.60286 2.84671 8.65069 2.92359 8.68355C3.00048 8.71639 3.08341 8.73356 3.1673 8.73398H15.6882C15.7478 8.73367 15.8059 8.71639 15.8557 8.68428C15.9055 8.65215 15.9445 8.60657 15.9682 8.55307C15.9919 8.49958 15.9992 8.44049 15.9891 8.38302C15.9791 8.32555 15.9523 8.27217 15.9117 8.22941L13.2749 5.45712ZM0.306886 3.4665H12.8277C12.9117 3.46643 12.9947 3.44941 13.0717 3.41654C13.1486 3.38368 13.2178 3.33565 13.2749 3.27546L15.9162 0.504645C15.9576 0.461846 15.9852 0.408003 15.9955 0.34989C16.0058 0.291778 15.9983 0.23199 15.9739 0.178053C15.9496 0.124115 15.9094 0.0784371 15.8585 0.0467661C15.8077 0.015095 15.7484 -0.00115396 15.6882 6.37584e-05H3.1673C3.08335 0.000150214 3.00031 0.017158 2.92339 0.0500267C2.84644 0.0828952 2.77726 0.130919 2.72013 0.191105L0.0818086 2.96192C0.0412231 3.00478 0.0142944 3.0583 0.00431646 3.1159C-0.00566146 3.17351 0.00174671 3.2327 0.0256332 3.28625C0.0495197 3.3398 0.0888471 3.38537 0.138801 3.41738C0.188756 3.44941 0.247169 3.46647 0.306886 3.4665Z",fill:"url(#paint0_linear_163_612)"}),(0,r.jsx)("path",{d:"M15.9162 11.0381L13.2749 13.809C13.2178 13.8691 13.1486 13.9172 13.0717 13.95C12.9947 13.9829 12.9117 13.9999 12.8277 14H0.306886C0.247169 14 0.188756 13.9829 0.138801 13.9509C0.0888471 13.9189 0.0495197 13.8733 0.0256332 13.8198C0.
100174671 13.7662 -0.00566146 13.707 0.00431646 13.6494C0.0142944 13.5918 0.0412231 13.5383 0.0818086 13.4954L2.72013 10.7246C2.77726 10.6644 2.84644 10.6164 2.92339 10.5835C3.00031 10.5507 3.08335 10.5336 3.1673 10.5336H15.6882C15.7484 10.5323 15.8077 10.5486 15.8585 10.5803C15.9094 10.6119 15.9496 10.6576 15.9739 10.7115C15.9983 10.7655 16.0058 10.8253 15.9955 10.8834C15.9852 10.9415 15.9576 10.9954 15.9162 11.0381ZM13.2749 5.45712C13.2176 5.39721 13.1483 5.34938 13.0714 5.31652C12.9946 5.28368 12.9116 5.26651 12.8277 5.26609H0.306886C0.247169 5.26612 0.188756 5.28318 0.138801 5.31521C0.0888471 5.34722 0.0495197 5.39279 0.0256332 5.44634C0.00174671 5.49989 -0.00566146 5.55908 0.00431646 5.61669C0.0142944 5.67429 0.0412231 5.72781 0.0818086 5.77067L2.72013 8.54295C2.77747 8.60286 2.84671 8.65069 2.92359 8.68355C3.00048 8.71639 3.08341 8.73356 3.1673 8.73398H15.6882C15.7478 8.73367 15.8059 8.71639 15.8557 8.68428C15.9055 8.65215 15.9445 8.60657 15.9682 8.55307C15.9919 8.49958 15.9992 8.44049 15.9891 8.38302C15.9791 8.32555 15.9523 8.27217 15.9117 8.22941L13.2749 5.45712ZM0.306886 3.4665H12.8277C12.9117 3.46643 12.9947 3.44941 13.0717 3.41654C13.1486 3.38368 13.2178 3.33565 13.2749 3.27546L15.9162 0.504645C15.9576 0.461846 15.9852 0.408003 15.9955 0.34989C16.0058 0.291778 15.9983 0.23199 15.9739 0.178053C15.9496 0.124115 15.9094 0.0784371 15.8585 0.0467661C15.8077 0.015095 15.7484 -0.00115396 15.6882 6.37584e-05H3.1673C3.08335 0.000150214 3.00031 0.017158 2.92339 0.0500267C2.84644 0.0828952 2.77726 0.130919 2.72013 0.191105L0.0818086 2.96192C0.0412231 3.00478 0.0142944 3.0583 0.00431646 3.1159C-0.00566146 3.17351 0.00174671 3.2327 0.0256332 3.28625C0.0495197 3.3398 0.0888471 3.38537 0.138801 3.41738C0.188756 3.44941 0.247169 3.46647 0.306886 3.4665Z",fill:"black",fillOpacity:"0.2"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",lt({id:"paint0_linear_163_612",x1:"1.35029",y1:"14.334",x2:"14.1587",y2:"-0.42541",gradientUnits:"userSpaceOnUse"},{children:[(0,r.jsx)("stop",{offset:"0.08",stopColor:"#9945FF"}),(0,r.jsx)("stop",{offset:"0.3",stopColor:"#8752F3"}),(0,r.jsx)("stop",{offset:"0.5",stopColor:"#5497D5"}),(0,r.jsx)("stop",{offset:"0.6",stopColor:"#43B4CA"}),(0,r.jsx)("stop",{offset:"0.72",stopColor:"#28E0B9"}),(0,r.jsx)("stop",{offset:"0.97",stopColor:"#19FB9B"})]}))})]}))}var dt={};_(dt,"Success",(()=>pt),(t=>pt=t));var ft=function(){return ft=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ft.apply(this,arguments)};function pt(t){return(0,r.jsxs)("svg",ft({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,r.jsx)("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"#84B971",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.821 8.18024C18.0597 8.42056 18.0597 8.8102 17.821 9.05053L11.0988 15.8198C10.8601 16.0601 10.4732 16.0601 10.2345 15.8198L7.17899 12.7428C6.94034 12.5025 6.94034 12.1129 7.17899 11.8726C7.41764 11.6322 7.80458 11.6322 8.04323 11.8726L10.6667 14.5143L16.9568 8.18024C17.1954 7.93992 17.5824 7.93992 17.821 8.18024Z",fill:"#84B971"})]}))}var mt={};_(mt,"Trash",(()=>yt),(t=>yt=t));var gt=function(){return gt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},gt.apply(this,arguments)};function yt(t){return(0,r.jsxs)("svg",gt({viewBox:"0 0 18 18",fill:"black",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 4.5C1.5 4.08579 1.83579 3.75 2.25 3.75H15.75C16.1642 3.75 16.5 4.08579 16.5 4.5C16.5 4.91421 16.1642 5.25 15.75 5.25H2.25C1.83579 5.25 1.5 4.91421 1.5 4.5Z",fill:"black"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 2.25C7.30109 2.25 7.11032 2.32902 6.96967 2.46967C6.82902 2.61032 6.75 2.80109 6.75 3V3.75H11.25V3C11.25 2.80109 11.171 2.61032 11.0303 2.46967C10.8897 2.32902 10.6989 2.25 10.5 2.25H7.5ZM12.75 3.75V3C12.75 2.40326 12.5129 1.83097 12.091 1.40901C11.669 0.987053 11.0967 0.75 10.5 0.75H7.5C6.90326 0.75 6.33097 0.987053 5.90901 1.40901C5.48705 1.83097 5.25 2.40326 5.25 3V3.75H3.75C3.33579 3.75 3 4.08579 3 4.5V15C3 15.5967 3.23705 16.169 3.65901 16.591C4.08097 17.0129 4.65326 17.25 5.25 17.25H12.75C13.3467 17.25 13.919 17.0129 14.341 16.591C14.7629 16.169 15 15.5967 15 15V4.5C15 4.08579 14.6642 3.75 14.25 3.75H12.75ZM4.5 5.25V15C4.5 15.1989 4.57902 15.3897 4.71967 15.5303C4.86032 15.671 5.05109 15.75 5.25 15.75H12.75C12.9489 15.75 13.1397 15.671 13.2803 15.5303C13.421 15.3897 13.5 15.1989 13.5 15V5.25H4.5Z",fill:"black"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 7.5C7.91421 7.5 8.25 7.83579 8.25 8.25V12.75C8.25 13.1642 7.91421 13.5 7.5 13.5C7.08579 13.5 6.75 13.1642 6.75 12.75V8.25C6.75 7.83579 7.08579 7.5 7.5 7.5Z",fill:"black"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 7.5C10.9142 7.5 11.25 7.83579 11.25 8.25V12.75C11.25 13.1642 10.9142 13.5 10.5 13.5C10.0858 13.5 9.75 13.1642 9.75 12.75V8.25C9.75 7.83579 10.0858 7.5 10.5 7.5Z",fill:"black"})]}))}var bt={};_(bt,"Undo",(()=>wt),(t=>wt=t));var vt=function(){return vt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},vt.apply(this,arguments)};function wt(){return(0,r.jsxs)("svg",vt({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,r.jsx)("path",{d:"M0.5 2V5H3.5",stroke:"#4A279C",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M1.755 7.49924C2.0792 8.41943 2.69367 9.20933 3.50583 9.74993C4.31799 10.2905 5.28384 10.5525 6.25786 10.4965C7.23187 10.4404 8.16129 10.0693 8.90606 9.43912C9.65084 8.80891 10.1706 7.95373 10.3871 7.00242C10.6036 6.05112 10.505 5.05522 10.1063 4.16479C9.70758 3.27436 9.03026 2.53764 8.17642 2.06562C7.32257 1.59361 6.33845 1.41187 5.37234 1.5478C4.40623 1.68373 3.51046 2.12995 2.82 2.81924L0.5 4.99924",stroke:"#4A279C",strokeLinecap:"round",strokeLinejoin:"round"})]}))}var _t={};_(_t,"Vote",(()=>St),(t=>St=t));var kt=function(){return kt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},kt.apply(this,arguments)};function St(t){return t.isUpVote?(0,r.jsxs)("svg",kt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,r.jsx)("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"#84B971",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M16 12L12 8L8 12",stroke:"#84B971",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M12 16V8",stroke:"#84B971",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})):(0,r.jsxs)("svg",kt({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,r.jsx)("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"#E86143",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M8 12L12 16L16 12",stroke:"#E86143",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M12 8V16",stroke:"#E86143",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))}var xt={};_(xt,"Warning",(()=>At),(t=>At=t));var It=function(){return It=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},It.apply(this,arguments)};function At(t){return(0,r.jsxs)("svg",It({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,r.jsx)("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"#FFB549",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M12 8V12",stroke:"#FFB549",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M12 16H12.01",stroke:"#FFB549",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))}var Et={};_(Et,"Collapsible",(()=>Pt),(t=>Pt=t));var Tt=function(){return Tt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Tt.apply(this,arguments)},Pt=function(t){var e=t.header,n=t.content,i=(0,o.useState)(!0),s=i[0],a=i[1];return(0,r.jsxs)("div",Tt({className:"collapsibleContainer"},{children:[(0,r.jsxs)("div",Tt({className:"collapsibleHeaderContainer",onClick:function(){return a(!s)}},{children:[(0,r.jsx)("div",Tt({className:"collapsibleHeader"},{children:null!=e?e:""})),(0,r.jsx)("button",Tt({className:"visibilityButton"},{children:(0,r.jsx)(E.Chevron,{direction:s?"up":"down"})}))]})),(0,r.jsx)("div",Tt({className:"collapsibleContent",hidden:!s},{children:n}))]}))},Ct={};_(Ct,"Spinner",(()=>Bt),(t=>Bt=t));var Mt,Ot,Rt=function(){return Rt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Rt.apply(this,arguments)},Bt=function(){return(0,r.jsx)("div",Rt({className:"spinner"},{children:(0,r.jsxs)("svg",Rt({role:"status",className:"fill-current text-gray-300 inline mr-2 w-12 animate-spin dark:text-gray-300",viewBox:"0 0 100 101",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,r.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,r.jsx)("path",{className:"fill-current text-blue-400",d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.
11071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})]}))}))},jt=function(){return jt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},jt.apply(this,arguments)};function Nt(t){var e;switch(t){case Mt.success:e=(0,r.jsx)(dt.Success,{alt:"success"});break;case Mt.warning:e=(0,r.jsx)(xt.Warning,{alt:"warning"});break;case Mt.error:e=(0,r.jsx)(z.Error,{alt:"error"});break;case Mt.info:e=(0,r.jsx)($.Info,{alt:"info"})}return(0,r.jsx)("div",jt({className:"iconTypeContainer"},{children:e}))}(Ot=Mt||(Mt={})).success="success",Ot.warning="warning",Ot.error="error",Ot.info="info";var Lt=function(t){var e=(0,o.useRef)(null),n=Nt(t.messageType),s=function(e){"Escape"===e.key&&t.onClose()};return(0,o.useEffect)((function(){return document.addEventListener("keydown",s),function(){document.removeEventListener("keydown",s)}}),[t.onClose]),(0,r.jsx)("div",jt({className:"dsp-",hidden:!t.visible},{children:(0,r.jsxs)("div",jt({className:"popUpModal"},{children:[(0,r.jsx)("input",{type:"checkbox",id:t.id,className:"modal-toggle",ref:e}),(0,r.jsx)("div",jt({className:"modalContainer",tabIndex:0},{children:(0,r.jsxs)("div",jt({className:"modalBox"},{children:[(0,r.jsxs)("div",jt({className:"modalTitle"},{children:[(0,r.jsxs)("div",jt({className:"titleTextIcon"},{children:[!k(i)(t.messageType)&&n,t.title]}
1)),(0,r.jsx)("label",jt({htmlFor:t.id,className:"modalClose",onClick:t.onClose},{children:(0,r.jsx)("div",jt({className:"closeIcon"},{children:(0,r.jsx)(C.Close,{})}))}))]})),(0,r.jsx)("div",jt({className:"modalBody ".concat(k(i)(t.loading)?"":t.loading?"loading":"")},{children:t.body})),null!=t.collapsible?(0,r.jsx)("div",jt({className:"modalCollapsible"},{children:(0,r.jsx)(Et.Collapsible,{content:t.collapsible.content,header:t.collapsible.header})})):void 0,!k(i)(t.loading)&&t.loading?(0,r.jsx)("div",jt({className:"modalLoading"},{children:(0,r.jsx)(Ct.Spinner,{})})):(0,r.jsxs)("div",jt({className:"modalActionsContainer"},{children:[(0,r.jsx)("div",jt({className:"cancelAction"},{children:t.cancelButton})),(0,r.jsx)("div",jt({className:"acceptAction"},{children:t.okButton}))]}))]}))}))]}))}))},Dt={};_(Dt,"PoweredByDispatch",(()=>Le),(t=>Le=t));var zt={};_(zt,"DispatchProvider",(()=>Me),(t=>Me=t)),_(zt,"useRole",(()=>Oe),(t=>Oe=t)),_(zt,"useForum",(()=>Re),(t=>Re=t)),_(zt,"usePath",(()=>Be),(t=>Be=t)),_(zt,"useTheme",(()=>je),(t=>je=t));var Ft={};function Ut(t){return"".concat(t.errorKind,": ").concat(t.message)}function Wt(t){return"object"==typeof t&&"errorKind"in t}function Gt(t){return"NotFound"===t.errorKind}function Vt(t){return{errorKind:"NotFound",message:t}}function Kt(t){return{errorKind:"Uncategorized",message:JSON.stringify(t),error:t}}function Ht(t,e){return{errorKind:"BadInput",message:t,suggestion:e}}_(Ft,"MainForum",(()=>se),(t=>se=t));var qt={0:"This forum is experiencing high on-chain activity. Please try again shortly.",6100:"The provided post ID is too large an increase",6101:"The reply-to account is not a Post account",6102:"Replies cannot have a further reply restriction",6103:"Invalid setting type for post",6200:"The provided token account is not a token account",6201:"Missing the token required by the restriction",6202:"Account provided is not expected metadata key",6203:"The provided account is not a metadata account",6204:"No collection set on the metadata",6205:"Missing an NFT from the collection required by the restriction",6206:"Cannot parse a setting",6207:"Extra account offsets invalid for this restriction type",6208:"Must supply user credentials when post restrictions apply",6209:"We hit the test error",6210:"You have already made this vote, you can only vote up or down once, but you can switch your vote"};function $t(t){var e;if(k(i)(null==t?void 0:t.message))return Kt(t);var n=t.message.indexOf("0x");if(n>=0&&!k(i)(t.message)){var r=t.message.substring(n+2),o=parseInt(r,16);return{errorKind:"Contract",code:o,message:qt[o]}}var s=t.toString();if(s.includes("WalletSendTransactionError"))return{errorKind:"Wallet",message:"".concat(s),suggestion:"Make sure you are using the correct network, devnet or mainnet, and try again"};if(s.includes("mint could not be unpacked"))return{errorKind:"BadInput",message:JSON.stringify("Invalid Mint Address"),suggestion:"The mint address you entered is invalid, please check the address or try another."};var a=null!==(e=s.match(/(?:.* {2})(.*)/))&&void 0!==e?e:[];return 429===JSON.parse(a[1]).error.code?{errorKind:"RateLimiting",message:JSON.stringify("HTTP 429 Rate limited"),suggestion:"The Solana Blockchain RPC servers has rate limited your IP address, some actions may be limited, please try again in a few seconds."}:Kt(t)}function Zt(t){return function(t){return!("object"==typeof t&&"loadingState"in t)}(t)&&!Wt(t)}function Yt(t){return"object"==typeof t&&"loadingState"in t&&"initial"===t.loadingState}function Xt(t){return"object"==typeof t&&"loadingState"in t&&"pending"===t.loadingState}function Jt(t){try{return new URL(t)}catch(t){return Kt(t)}}var Qt,te,ee=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},ne=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
1function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};(te=Qt||(Qt={}))[te.moderator=0]="moderator",te[te.owner=1]="owner",te[te.poster=2]="poster";var re,ie,oe,se=function(t,e,n){var r=this;this.exists=function(t){return ee(r,void 0,Promise,(function(){var e,n,r,i;return ne(this,(function(o){return n=(e=this).connection,r=e.wallet,i=e.cluster,[2,new(0,u.Forum)(new(0,u.DispatchConnection)(n,r,{cluster:i}),t).exists()]}))}))},this.createForum=function(t){return ee(r,void 0,Promise,(function(){var e,n,r,i,o,s,a,c;return ne(this,(function(h){switch(h.label){case 0:e=this.wallet,n=this.connection,h.label=1;case 1:return h.trys.push([1,7,,8]),r=new(0,l.PublicKey)(t.collectionId),e.publicKey?(i=new(0,u.Forum)(new(0,u.DispatchConnection)(n,e,{cluster:this.cluster}),r),o=[],[4,i.exists()]):[3,5];case 2:return h.sent()?[3,4]:(s={collectionId:r,owners:t.owners,moderators:t.moderators,title:t.title,description:t.description,postRestriction:t.postRestriction},void 0===(null===(a=t.postRestriction)||void 0===a?void 0:a.nftOwnership)&&null===(null===(c=t.postRestriction)||void 0===c?void 0:c.tokenOwnership)||(s.postRestriction=t.postRestriction),[4,i.createForum(s)]);case 3:o=h.sent(),h.label=4;case 4:return[2,{forum:i,txs:o}];case 5:return[2,Vt("Owner public key not found")];case 6:return[3,8];case 7:return[2,$t(h.sent())];case 8:return[2]}}
1))}))},this.isOwner=function(t){return ee(r,void 0,Promise,(function(){var e,n;return ne(this,(function(r){switch(r.label){case 0:return e=this.wallet,n=this.connection,[4,new(0,u.Forum)(new(0,u.DispatchConnection)(n,e,{cluster:this.cluster}),t).isOwner()];case 1:return[2,r.sent()]}}))}))},this.isModerator=function(t){return ee(r,void 0,Promise,(function(){var e,n;return ne(this,(function(r){switch(r.label){case 0:return e=this.wallet,n=this.connection,[4,new(0,u.Forum)(new(0,u.DispatchConnection)(n,e,{cluster:this.cluster}),t).isModerator()];case 1:return[2,r.sent()]}}))}))},this.getDescription=function(t,e){return void 0===e&&(e=!1),ee(r,void 0,Promise,(function(){var n,r,i,o,s;return ne(this,(function(a){switch(a.label){case 0:n=this.wallet,r=this.connection,a.label=1;case 1:return a.trys.push([1,9,,10]),n.publicKey?(i=new(0,u.Forum)(new(0,u.DispatchConnection)(r,n,{cluster:this.cluster}),t),(o=e)?[3,3]:[4,i.exists()]):[3,7];case 2:o=a.sent(),a.label=3;case 3:return o?[4,i.getDescription()]:[3,5];case 4:return null!=(s=a.sent())?[2,s]:[2,Vt("Description not found")];case 5:return[2,Vt("Forum does not exist")];case 6:return[3,8];case 7:return[2,Vt("Owner publicKey not found")];case 8:return[3,10];case 9:return[2,$t(a.sent())];case 10:return[2]}}
1))}))},this.setImageUrls=function(t,e){return ee(r,void 0,Promise,(function(){var n,r,i,o;return ne(this,(function(s){switch(s.label){case 0:n=this.wallet,r=this.connection,s.label=1;case 1:return s.trys.push([1,3,,4]),i=new(0,u.Forum)(new(0,u.DispatchConnection)(r,n,{cluster:this.cluster}),t),o={background:e},[4,i.setImageUrls(o)];case 2:return[2,s.sent()];case 3:return[2,$t(s.sent())];case 4:return[2]}}))}))},this.getImageUrls=function(t){return ee(r,void 0,Promise,(function(){var e,n;return ne(this,(function(r){switch(r.label){case 0:e=this.wallet,n=this.connection,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,new(0,u.Forum)(new(0,u.DispatchConnection)(n,e,{cluster:this.cluster}),t).getImageUrls()];case 2:return[2,r.sent()];case 3:return[2,$t(r.sent())];case 4:return[2]}}))}))},this.getModeratorMint=function(t,e){return void 0===e&&(e=!1),ee(r,void 0,Promise,(function(){var n,r,i,o;return ne(this,(function(s){switch(s.label){case 0:n=this.wallet,r=this.connection,s.label=1;case 1:return s.trys.push([1,9,,10]),n.publicKey?(i=new(0,u.Forum)(new(0,u.DispatchConnection)(r,n,{cluster:this.cluster}),t),(o=e)?[3,3]:[4,i.exists()]):[3,7];case 2:o=s.sent(),s.label=3;case 3:return o?[4,i.getModeratorMint()]:[3,5];case 4:return[2,s.sent()];case 5:return[2,Vt("Forum does not exist")];case 6:return[3,8];case 7:return[2,Vt("Owner public key not found")];case 8:return[3,10];case 9:return[2,$t(s.sent())];case 10:return[2]}}
1))}))},this.setDescription=function(t,e){return ee(r,void 0,Promise,(function(){var n,r;return ne(this,(function(i){switch(i.label){case 0:n=this.wallet,r=this.connection,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,new(0,u.Forum)(new(0,u.DispatchConnection)(r,n,{cluster:this.cluster}),t).setDescription(e)];case 2:return[2,i.sent()];case 3:return[2,$t(i.sent())];case 4:return[2]}}))}))},this.addModerator=function(t,e){return ee(r,void 0,Promise,(function(){var n,r,i;return ne(this,(function(o){switch(o.label){case 0:n=this.wallet,r=this.connection,o.label=1;case 1:return o.trys.push([1,6,,7]),[4,(i=new(0,u.Forum)(new(0,u.DispatchConnection)(r,n,{cluster:this.cluster}),e)).exists()];case 2:return o.sent()?[4,i.addModerator(t)]:[3,4];case 3:return[2,o.sent()];case 4:return[2,Vt("Forum does not exist")];case 5:return[3,7];case 6:return[2,$t(o.sent())];case 7:return[2]}}))}))},this.setOwners=function(t,e){return ee(r,void 0,Promise,(function(){var n,r,i;return ne(this,(function(o){switch(o.label){case 0:n=this.wallet,r=this.connection,o.label=1;case 1:return o.trys.push([1,6,,7]),[4,(i=new(0,u.Forum)(new(0,u.DispatchConnection)(r,n,{cluster:this.cluster}),e)).exists()];case 2:return o.sent()?[4,i.setOwners(t)]:[3,4];case 3:return[2,o.sent()];case 4:return[2,Vt("Forum does not exist")];case 5:return[3,7];case 6:return[2,$t(o.sent())];case 7:return[2]}}
1))}))},this.getModerators=function(t,e){return void 0===e&&(e=!1),ee(r,void 0,Promise,(function(){var n,r,i,o;return ne(this,(function(s){switch(s.label){case 0:n=this.wallet,r=this.connection,s.label=1;case 1:return s.trys.push([1,7,,8]),i=new(0,u.Forum)(new(0,u.DispatchConnection)(r,n,{cluster:this.cluster}),t),(o=e)?[3,3]:[4,i.exists()];case 2:o=s.sent(),s.label=3;case 3:return o?[4,i.getModerators()]:[3,5];case 4:return[2,s.sent()];case 5:return[2,Vt("Forum does not exist")];case 6:return[3,8];case 7:return[2,$t(s.sent())];case 8:return[2]}}))}))},this.getOwners=function(t,e){return void 0===e&&(e=!1),ee(r,void 0,Promise,(function(){var n,r,i,o,s;return ne(this,(function(a){switch(a.label){case 0:n=this.wallet,r=this.connection,a.label=1;case 1:return a.trys.push([1,7,,8]),i=new(0,u.Forum)(new(0,u.DispatchConnection)(r,n,{cluster:this.cluster}),t),(o=e)?[3,3]:[4,i.exists()];case 2:o=a.sent(),a.label=3;case 3:return o?[4,i.getOwners()]:[3,5];case 4:return[2,a.sent()];case 5:return[2,Vt("Forum does not exist")];case 6:return[3,8];case 7:return s=a.sent(),[2,$t(JSON.stringify(s))];case 8:return[2]}}
1))}))},this.getForumForCollection=function(t){return ee(r,void 0,Promise,(function(){var e,n,r;return ne(this,(function(i){switch(i.label){case 0:e=this.wallet,n=this.connection,r=new(0,u.Forum)(new(0,u.DispatchConnection)(n,e,{cluster:this.cluster}),t),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.exists()];case 2:return i.sent()?[2,r]:[2,Vt("Forum does not exist")];case 3:return[2,$t(i.sent())];case 4:return[2]}}))}))},this.getTopicsForForum=function(t){return ee(r,void 0,Promise,(function(){var e,n,r;return ne(this,(function(i){switch(i.label){case 0:e=this.wallet,n=this.connection,i.label=1;case 1:return i.trys.push([1,6,,7]),[4,(r=new(0,u.Forum)(new(0,u.DispatchConnection)(n,e,{cluster:this.cluster}),t)).exists()];case 2:return i.sent()?[4,r.getTopicsForForum()]:[3,4];case 3:return[2,i.sent()];case 4:return[2,Vt("Forum does not exist")];case 5:return[3,7];case 6:return[2,$t(i.sent())];case 7:return[2]}}))}))},this.getPostsForForum=function(t,e){return void 0===e&&(e=!1),ee(r,void 0,Promise,(function(){var n,r,i,o,s;return ne(this,(function(a){switch(a.label){case 0:r=(n=this).wallet,i=n.connection,a.label=1;case 1:return a.trys.push([1,7,,8]),o=new(0,u.Forum)(new(0,u.DispatchConnection)(i,r,{cluster:this.cluster}),t),(s=e)?[3,3]:[4,o.exists()];case 2:s=a.sent(),a.label=3;case 3:return s?[4,o.getPostsForForum()]:[3,5];case 4:return[2,a.sent()];case 5:return[2,Vt("Forum does not exist")];case 6:return[3,8];case 7:return[2,$t(a.sent())];case 8:return[2]}}
1))}))},this.canCreateTopic=function(t){return ee(r,void 0,Promise,(function(){var e,n;return ne(this,(function(r){switch(r.label){case 0:return e=this.wallet,n=this.connection,[4,new(0,u.Forum)(new(0,u.DispatchConnection)(n,e,{cluster:this.cluster}),t).canCreateTopic()];case 1:return r.sent()?[2,!0]:[2,!1]}}))}))},this.createTopic=function(t,e,n){return ee(r,void 0,Promise,(function(){var r,i,o;return ne(this,(function(s){switch(s.label){case 0:r=this.wallet,i=this.connection,s.label=1;case 1:return s.trys.push([1,6,,7]),[4,(o=new(0,u.Forum)(new(0,u.DispatchConnection)(i,r,{cluster:this.cluster}),e)).exists()];case 2:return s.sent()?[4,o.createTopic(t,n)]:[3,4];case 3:return[2,s.sent()];case 4:return[2,Vt("The forum does not exist")];case 5:return[3,7];case 6:return[2,$t(s.sent())];case 7:return[2]}}))}))},this.getTopicData=function(t,e){return ee(r,void 0,Promise,(function(){var n,r;return ne(this,(function(i){switch(i.label){case 0:n=this.wallet,r=this.connection,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,new(0,u.Forum)(new(0,u.DispatchConnection)(r,n,{cluster:this.cluster}),e).getTopicsForForum()];case 2:return[2,i.sent().filter((function(e){return e.isTopic&&e.postId===t}))[0]];case 3:return[2,$t(i.sent())];case 4:return[2]}}
1))}))},this.canPost=function(t,e){return ee(r,void 0,Promise,(function(){var n,r;return ne(this,(function(i){switch(i.label){case 0:return n=this.wallet,r=this.connection,[4,new(0,u.Forum)(new(0,u.DispatchConnection)(r,n,{cluster:this.cluster}),t).canPost(e)];case 1:return i.sent()?[2,!0]:[2,!1]}}))}))},this.createForumPost=function(t,e,n){return ee(r,void 0,Promise,(function(){var r,i,o,s;return ne(this,(function(a){switch(a.label){case 0:r=this.wallet,i=this.connection,a.label=1;case 1:return a.trys.push([1,9,,10]),o=new(0,u.Forum)(new(0,u.DispatchConnection)(i,r,{cluster:this.cluster}),n),[4,this.getTopicData(e,n)];case 2:return s=a.sent(),[4,o.exists()];case 3:return a.sent()&&s?Zt(s)?[4,o.createForumPost(t,s)]:[3,5]:[3,7];case 4:return[2,a.sent()];case 5:return[2,s];case 6:return[3,8];case 7:return[2,Vt("Forum does not exist")];case 8:return[3,10];case 9:return[2,$t(a.sent())];case 10:return[2]}}))}))},this.editForumPost=function(t,e,n){return ee(r,void 0,Promise,(function(){var r,i;return ne(this,(function(o){switch(o.label){case 0:r=this.wallet,i=this.connection,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,new(0,u.Forum)(new(0,u.DispatchConnection)(i,r,{cluster:this.cluster}),t).editForumPost(e,n)];case 2:return[2,o.sent()];case 3:return[2,$t(o.sent())];case 4:return[2]}}
1))}))},this.getTopicMessages=function(t,e){return ee(r,void 0,Promise,(function(){var n,r,i,o;return ne(this,(function(s){switch(s.label){case 0:n=this.wallet,r=this.connection,s.label=1;case 1:return s.trys.push([1,6,,7]),i=new(0,u.Forum)(new(0,u.DispatchConnection)(r,n,{cluster:this.cluster}),e),[4,this.getTopicData(t,e)];case 2:return Zt(o=s.sent())?[4,i.getTopicMessages(o)]:[3,4];case 3:return[2,s.sent()];case 4:return[2,o];case 5:return[3,7];case 6:return[2,$t(s.sent())];case 7:return[2]}}))}))},this.deleteForumPost=function(t,e,n){return ee(r,void 0,Promise,(function(){var r,i;return ne(this,(function(o){switch(o.label){case 0:r=this.wallet,i=this.connection,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,new(0,u.Forum)(new(0,u.DispatchConnection)(i,r,{cluster:this.cluster}),e).deleteForumPost(t,n)];case 2:return[2,o.sent()];case 3:return[2,$t(o.sent())];case 4:return[2]}}))}))},this.voteUpForumPost=function(t,e){return ee(r,void 0,Promise,(function(){var n,r;return ne(this,(function(i){switch(i.label){case 0:n=this.wallet,r=this.connection,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,new(0,u.Forum)(new(0,u.DispatchConnection)(r,n,{cluster:this.cluster}),e).voteUpForumPost(t)];case 2:return[2,i.sent()];case 3:return[2,$t(i.sent())];case 4:return[2]}}
1))}))},this.voteDownForumPost=function(t,e){return ee(r,void 0,Promise,(function(){var n,r;return ne(this,(function(i){switch(i.label){case 0:n=this.wallet,r=this.connection,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,new(0,u.Forum)(new(0,u.DispatchConnection)(r,n,{cluster:this.cluster}),e).voteDownForumPost(t)];case 2:return[2,i.sent()];case 3:return[2,$t(i.sent())];case 4:return[2]}}))}))},this.replyToForumPost=function(t,e,n){return ee(r,void 0,Promise,(function(){var r,i;return ne(this,(function(o){switch(o.label){case 0:r=this.wallet,i=this.connection,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,new(0,u.Forum)(new(0,u.DispatchConnection)(i,r,{cluster:this.cluster}),e).replyToForumPost(t,n)];case 2:return[2,o.sent()];case 3:return[2,$t(o.sent())];case 4:return[2]}}))}))},this.getReplies=function(t,e){return ee(r,void 0,Promise,(function(){var n,r;return ne(this,(function(i){switch(i.label){case 0:n=this.wallet,r=this.connection,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,new(0,u.Forum)(new(0,u.DispatchConnection)(r,n,{cluster:this.cluster}),e).getReplies(t)];case 2:return[2,i.sent()];case 3:return[2,$t(i.sent())];case 4:return[2]}}
1))}))},this.getForumPostRestriction=function(t){return ee(r,void 0,void 0,(function(){var e,n;return ne(this,(function(r){switch(r.label){case 0:e=this.wallet,n=this.connection,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,new(0,u.Forum)(new(0,u.DispatchConnection)(n,e,{cluster:this.cluster}),t).getForumPostRestriction()];case 2:return[2,r.sent()];case 3:return[2,$t(r.sent())];case 4:return[2]}}))}))},this.setForumPostRestriction=function(t,e){return ee(r,void 0,void 0,(function(){var n,r,i,o;return ne(this,(function(s){switch(s.label){case 0:n=this.wallet,r=this.connection,s.label=1;case 1:return s.trys.push([1,4,,5]),i=new(0,u.DispatchConnection)(r,n,{cluster:this.cluster}),[4,new(0,u.Forum)(i,t).setForumPostRestrictionIx(e)];case 2:return o=s.sent(),[4,i.sendTransaction(o)];case 3:return[2,s.sent()];case 4:return[2,$t(s.sent())];case 5:return[2]}}))}))},this.deleteForumPostRestriction=function(t){return ee(r,void 0,void 0,(function(){var e,n,r;return ne(this,(function(i){switch(i.label){case 0:e=this.wallet,n=this.connection,i.label=1;case 1:return i.trys.push([1,3,,4]),r=new(0,u.DispatchConnection)(n,e,{cluster:this.cluster}),[4,new(0,u.Forum)(r,t).deleteForumPostRestriction()];case 2:return[2,i.sent()];case 3:return[2,$t(i.sent())];case 4:return[2]}}
1))}))},this.canVote=function(t,e){return ee(r,void 0,void 0,(function(){var n,r;return ne(this,(function(i){switch(i.label){case 0:n=this.wallet,r=this.connection,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,new(0,u.Forum)(new(0,u.DispatchConnection)(r,n,{cluster:this.cluster}),t).canVote(e)];case 2:return[2,i.sent()];case 3:return[2,$t(i.sent())];case 4:return[2]}}))}))},this.getVote=function(t,e){return ee(r,void 0,void 0,(function(){var n,r,i;return ne(this,(function(o){switch(o.label){case 0:n=this.wallet,r=this.connection,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,new(0,u.Forum)(new(0,u.DispatchConnection)(r,n,{cluster:this.cluster}),t).getVote(e)];case 2:return(i=o.sent())==u.VoteType.down?[2,!1]:i==u.VoteType.up?[2,!0]:[2,Vt("The vote is neither up nor down")];case 3:return[2,$t(o.sent())];case 4:return[2]}}))}))},this.getVotes=function(t){return ee(r,void 0,void 0,(function(){var e,n,r;return ne(this,(function(i){switch(i.label){case 0:e=this.wallet,n=this.connection,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,new(0,u.Forum)(new(0,u.DispatchConnection)(n,e,{cluster:this.cluster}),t).getVotes()];case 2:return null!=(r=i.sent())?[2,r]:[2,Vt("The votes were not found")];case 3:return[2,$t(i.sent())];case 4:return[2]}}
1))}))},this.getNFTsForCurrentUser=function(){return ee(r,void 0,void 0,(function(){var t,e;return ne(this,(function(n){switch(n.label){case 0:t=this.wallet,e=this.connection,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,u.getMintsForOwner)(e,t.publicKey)];case 2:return[2,n.sent()];case 3:return[2,$t(n.sent())];case 4:return[2]}}))}))},this.getNFTMetadataForCurrentUser=function(){return ee(r,void 0,Promise,(function(){var t,e,n,r,i=this;return ne(this,(function(o){switch(o.label){case 0:t=this.wallet,e=this.connection,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,u.getMetadataForOwner)(e,t.publicKey)];case 2:return n=o.sent(),r=n.map((function(t){var e=t.mint,n=t.data;return ee(i,void 0,void 0,(function(){var t,r,i,o,s;return ne(this,(function(a){switch(a.label){case 0:if(t=n.name.replaceAll("\0",""),""===(r=n.uri.replaceAll("\0","")))return[2,Vt("Cannot load metadata for token ".concat(e.toBase58(),". Field uri is empty"))];if(!Zt(i=Jt(r)))return[3,8];if("https:"!==i.protocol)return[3,6];o=void 0,a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch(i)];case 2:return[4,a.sent().json()];case 3:return o=a.sent(),[3,5];case 4:return a.sent(),[2,Vt("Cannot load metadata for token ".concat(e.toBase58(),". The metadata URI is invalid."))];case 5:return"image"in o&&"string"==typeof o.image?Zt(s=Jt(o.image))?"https:"===s.protocol?[2,{name:t,mint:e,uri:s}]:[2,Ht("Cannot use non HTTP-protocol ".concat(o.image.protocol," in ").concat(i," for token ").concat(e.toBase58()))]:[2,Ht("Image address ".concat(o.image," is not a valid URL for mint ").concat(e.toBase58()))]:[2,Ht("Cannot parse fetched image metadata ".concat(o," for token ").concat(e.toBase58(),". .image field is not found or not a string."))];case 6:return[2,Ht("Cannot use non HTTP-protocol ".concat(i.protocol," in ").concat(i," for token ").concat(e.toBase58()))];case 7:return[3,9];case 8:return[2,i];case 9:return[2]}}
1))}))})),[2,r];case 3:return[2,$t(o.sent())];case 4:return[2]}}))}))},this.transferNFTs=function(t,e,n){return ee(r,void 0,void 0,(function(){var r,i,o,s,a,c;return ne(this,(function(u){switch(u.label){case 0:r=this.wallet,i=this.connection,u.label=1;case 1:return u.trys.push([1,9,,10]),[4,(0,h.getAssociatedTokenAddress)(e,t)];case 2:o=u.sent(),s=new(0,l.Transaction),u.label=3;case 3:return u.trys.push([3,5,,6]),[4,(0,h.getAccount)(i,o)];case 4:return u.sent(),[3,6];case 5:return u.sent(),s.add((0,h.createAssociatedTokenAccountInstruction)(r.publicKey,o,t,e)),[3,6];case 6:return[4,(0,h.getAssociatedTokenAddress)(e,r.publicKey)];case 7:return a=u.sent(),s.add((0,h.createTransferCheckedInstruction)(a,e,o,r.publicKey,1,0)),[4,n(s,i)];case 8:return[2,u.sent()];case 9:return c=u.sent(),console.log("dsp",c),[2,$t(c)];case 10:return[2]}}))}))},this.connection=e,this.wallet=t,this.cluster=n,t.publicKey&&e?this.permission={readAndWrite:!0}:(this.wallet={publicKey:new(0,l.PublicKey)("11111111111111111111111111111111"),signAllTransactions:function(){return ee(r,void 0,void 0,(function(){return ne(this,(function(t){return[2,Promise.resolve([])]}))}))},signTransaction:function(){return ee(r,void 0,void 0,(function(){return ne(this,(function(t){return[2,Promise.resolve(new(0,l.Transaction))]}))}))},sendTransaction:function(){return ee(r,void 0,void 0,(function(){return ne(this,(function(t){return[2,Promise.resolve("")]}))}))},wallet:null},this.permission={readAndWrite:!1})};(oe=ie||(ie={})).Owner="owner",oe.Moderator="mod",oe.Poster="poster",oe.Viewer="viewer";var ae="can-view",ce="edit-mods",ue="edit-forum",le="can-claim",he="can-add-forum",de="can-delete-forum",fe="can-create-topic",pe="can-delete-topic",me="can-vote",ge="can-add-forum-restriction",ye="can-remove-forum-restriction",be="can-add-topic-restriction",ve="can-remove-topic-restriction",we="can-create-post",_e="can-delete-post",ke="can-create-reply",Se="can-delete-reply",xe=((re={})[ie.Viewer]=[ae],re[ie.Poster]=[me,fe,we,ke],re[ie.Moderator]=[me,fe,we,ke,pe,_e,Se,be,ve],re[ie.Owner]=[me,fe,we,ke,ce,ge,ye,be,ve,he,de,le,ue],re),Ie=function(){return(0,r.jsx)(r.Fragment,{})},Ae=function(){return Ae=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ae.apply(this,arguments)},Ee=(0,o.createContext)({}),Te=(0,o.createContext)({}),Pe=(0,o.createContext)({}),Ce=(0,o.createContext)({}),Me=function(t){var e=t.wallet,n=t.connection,i=t.cluster,u=t.children,l=t.buildForumPath,h=t.buildTopicPath,d=t.themeMode;k(s).initialize("G-QD3BDH1D5P");var f=(0,o.useMemo)((function(){return new(0,Ft.MainForum)(e,n,i)}),[e,n,i]),p={buildForumPath:l,buildTopicPath:h},m=(0,o.useState)([ie.Viewer]),g={roles:m[0],setRoles:m[1]},y={mode:(0,a.isNil)(d)?"light":d};return(0,r.jsx)(Ee.Provider,Ae({value:f},{children:(0,r.jsx)(Te.Provider,Ae({value:p},{children:(0,r.jsx)(Pe.Provider,Ae({value:g},{children:(0,r.jsxs)(c.SearchContextManager,Ae({apiKey:"S869Msi1OL3o4bPrwFjLG2bRABGLbvix"},{children:[(0,r.jsx)(Ie,{}),(0,r.jsx)(Ce.Provider,Ae({value:y},{children:u}))]}))}))}))}))};function Oe(){return(0,o.useContext)(Pe)}function Re(){return(0,o.useContext)(Ee)}function Be(){return(0,o.useContext)(Te)}function je(){return(0,o.useContext)(Ce)}var Ne=function(){return Ne=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ne.apply(this,arguments)};function Le(t){var e=(0,zt.useTheme)();return(0,r.jsx)("div",Ne({className:"dsp-"},{children:(0,r.jsx)("div",Ne({className:"poweredByDispatch"},{children:(0,r.jsx)("a",Ne({href:"https://www.dispatch.forum",rel:"noopener noreferrer",target:"_blank"},{children:(0,r.jsx)(R.DispatchLogo,{customStyle:t.customStyle,mode:e.mode})}))}))}))}var De,ze={};_(ze,"ForumContent",(()=>xi),(t=>xi=t)),De=JSON.parse('{"v":"4.8.0","meta":{"g":"LottieFiles AE 3.0.2","a":"","k":"","d":"","tc":""},"fr":29.9700012207031,"ip":0,"op":33.0000013441176,"w":600,"h":200,"nm":"Comp 1","ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Square","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[-208,40,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":1,"k":[{"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0.437,0.437],"y":[0,0]},"t":5.994,"s":[0,0]},{"i":{"x":[0.667,0.667],"y":[1,1]},"o":{"x":[0.975,0.975],"y":[0,0]}
1,"t":20.979,"s":[31.4,31.4]},{"t":35.9640014648437,"s":[0,0]}],"ix":2},"p":{"a":0,"k":[80,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0.180392161012,0,0.54509806633,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-248,40],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":1,"k":[{"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0.437,0.437],"y":[0,0]},"t":2.997,"s":[0,0]},{"i":{"x":[0.667,0.667],"y":[1,1]},"o":{"x":[0.975,0.975],"y":[0,0]},"t":17.982,"s":[31.4,31.4]},{"t":32.9670013427734,"s":[0,0]}],"ix":2},"p":{"a":0,"k":[40,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0.180392161012,0,0.54509806633,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-248,40],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":1,"k":[{"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0.437,0.437],"y":[0,0]},"t":0,"s":[0,0]},{"i":{"x":[0.667,0.667],"y":[1,1]},"o":{"x":[0.975,0.975],"y":[0,0]},"t":14.985,"s":[31.4,31.4]},{"t":29.9700012207031,"s":[0,0]}],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0.180392161012,0,0.54509806633,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-248,40],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":32.9670013427734,"st":0,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"Square Loading","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[296,100,0],"ix":2},"a":{"a":0,"k":[400,300,0],"ix":1},"s":{"a":0,"k":[475.333,475.333,100],"ix":6}},"ao":0,"w":800,"h":600,"ip":0,"op":32.9670013427734,"st":0,"bm":0}],"markers":[]}');var Fe={};_(Fe,"AccountInfoLink",(()=>We),(t=>We=t));var Ue=function(){return Ue=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ue.apply(this,arguments)};function We(t){var e=t.href;return(0,r.jsx)("div",Ue({className:"accountInfo"},{children:(0,r.jsx)("a",Ue({href:e,target:"_blank",rel:"noreferrer"},{children:(0,r.jsx)(W.ExternalLink,{})}))}))}function Ge(t){var e=t.type,n=t.value,i=t.min,s=t.max,a=t.step,c=t.placeholder,u=t.className,l=t.onChange,h=(0,o.useState)(Number.isNaN(n)?"":n),d=h[0],f=h[1];return(0,o.useEffect)((function(){f(Number.isNaN(n)?"":n)}),[n]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("input",{type:"text",placeholder:c,step:"number"===e?null!=a?a:"any":void 0,min:i,max:s,value:d,onKeyPress:function(t){if("text"!==e){var n=t.target.value,r=n.includes(".")||n.includes(","),i="."===t.key||","===t.key;(!/^[\d,.]*$/.test(t.key)||i&&r)&&t.preventDefault(),t.target.value=n.replace(",",".")}},onChange:function(t){return f(t.target.value),"number"!==e||isNaN(parseFloat(t.target.value))?l(t.target.value):l(parseFloat(t.target.value))},className:u})})}var Ve={};_(Ve,"Link",(()=>He),(t=>He=t));var Ke=function(){return Ke=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ke.apply(this,arguments)};function He(t){var e=t.className,n=t.href,i=t.children;return(0,r.jsx)("a",Ke({className:e,href:n+window.location.search,onClick:function(t){if(!(t.metaKey||t.ctrlKey||t.metaKey||t.ctrlKey)){t.preventDefault(),window.history.pushState({},"",n+window.location.search);var e=new PopStateEvent("popstate");window.dispatchEvent(e)}}},{children:i}))}function qe(t){var e,n=t.children,i=t.scopes,o=t.posterKey,s=t.RenderError,a=(0,zt.useRole)().roles,c=[""];a.forEach((function(t){c.push.apply(c,xe[t])}));var u=(0,zt.useForum)().wallet,l=function(t){var e=t.permissions,n={};
1return t.scopes.forEach((function(t){n[t]=!0})),e.some((function(t){return n[t]}))}({permissions:c,scopes:i})||(null===(e=u.publicKey)||void 0===e?void 0:e.toBase58())===(null==o?void 0:o.toBase58());return l?(0,r.jsx)(r.Fragment,{children:n}):s?(0,r.jsx)(s,{}):null}var $e={};_($e,"Tooltip",(()=>Ye),(t=>Ye=t));var Ze=function(){return Ze=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ze.apply(this,arguments)},Ye=function(t){var e=t.message,n=t.content,i=(0,o.useState)(!1),s=i[0],a=i[1];return(0,r.jsxs)("div",Ze({className:"tooltipContainer ".concat(s?"visible":"")},{children:[(0,r.jsx)("div",Ze({className:"tooltipContent",onMouseLeave:function(){return a(!1)},onMouseEnter:function(){return a(!0)}},{children:n})),(0,r.jsx)("span",Ze({className:"tooltipMessage"},{children:e}))]}))},Xe={};_(Xe,"TransactionLink",(()=>Qe),(t=>Qe=t));var Je=function(){return Je=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Je.apply(this,arguments)},Qe=function(t){var e=t.transaction,n=(0,zt.useForum)().cluster,i=e.substring(0,4),o=e.substring(t.transaction.length-4),s="".concat(i,"...").concat(o);return(0,r.jsxs)("div",Je({className:"transactionLinkContainer"},{children:["Transaction:",(0,r.jsx)("a",Je({href:"https://solscan.io/tx/".concat(e)+("devnet"===n&&"?cluster=".concat(n)),className:"transactionLink",target:"_blank"},{children:s}))]}))},tn={};_(tn,"ConnectionAlert",(()=>nn),(t=>nn=t));var en=function(){return en=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},en.apply(this,arguments)};function nn(){return(0,r.jsx)("div",en({className:"alertContainer"},{children:(0,r.jsxs)("div",en({className:"alertContent"},{children:[(0,r.jsx)($.Info,{}),(0,r.jsx)("div",en({className:"alertText"},{children:"Connect your wallet to join the forum and be able to participate. We advise you have at least 0.5 SOL to participate fully. Each post costs about 0.002 SOL, depending on size."}))]}))}))}var rn={};_(rn,"Notification",(()=>sn),(t=>sn=t));var on=function(){return on=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},on.apply(this,arguments)},sn=function(t){var e=t.content,n=t.hidden,i=t.type,o=t.onClose,s=(0,S.getMessageTypeIcon)(i);return(0,r.jsxs)("div",on({className:"notificationContainer ".concat(n?"isHidden":""," ").concat(i)},{children:[(0,r.jsxs)("div",on({className:"notificationText"},{children:[s,e]})),(0,r.jsx)("div",on({className:"closeContainer",onClick:function(){return o()}},{children:(0,r.jsx)(C.Close,{})}))]}))},an={};_(an,"CreateForum",(()=>Rn),(t=>Rn=t));var cn={};_(cn,"isForumPost",(()=>pn),(t=>pn=t)),_(cn,"isEditedPost",(()=>mn),(t=>mn=t)),_(cn,"isCreatedPost",(()=>gn),(t=>gn=t)),_(cn,"useForumData",(()=>yn),(t=>yn=t)),_(cn,"useModerators",(()=>bn),(t=>bn=t)),_(cn,"useModal",(()=>vn),(t=>vn=t)),_(cn,"useParticipatingModerators",(()=>wn),(t=>wn=t)),_(cn,"ForumIdentity",(()=>un),(t=>un=t)),_(cn,"useForumIdentity",(()=>_n),(t=>_n=t));var un,ln,hn=function(){return hn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},hn.apply(this,arguments)},dn=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},fn=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
1function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function pn(t){return!("state"in t)}function mn(t){return"state"in t&&"edited"===t.state}function gn(t){return"state"in t&&"created"===t.state}function yn(t,e){var n=(0,o.useState)({loadingState:"initial"}),r=n[0],i=n[1];function s(){return dn(this,void 0,Promise,(function(){var n;return fn(this,(function(r){switch(r.label){case 0:if(!t)return[3,5];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.getOwners(t,!0)];case 2:return(n=r.sent())?[2,n]:[2,Vt("The owners did not exist")];case 3:return[2,$t(r.sent())];case 4:return[3,6];case 5:return[2,Vt("The collectionId was not defined")];case 6:return[2]}}
1))}))}function a(){return dn(this,void 0,Promise,(function(){var n;return fn(this,(function(r){switch(r.label){case 0:if(!t)return[3,5];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.getModeratorMint(t)];case 2:return(n=r.sent())?[2,n]:[2,Vt("The moderator mint did not exist")];case 3:return[2,$t(r.sent())];case 4:return[3,6];case 5:return[2,Vt("The collectionId was not defined")];case 6:return[2]}}))}))}function c(){return dn(this,void 0,Promise,(function(){var n;return fn(this,(function(r){switch(r.label){case 0:if(!t)return[3,5];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.getDescription(t,!0)];case 2:return(n=r.sent())?[2,n]:[2,Vt("The description was not defined")];case 3:return[2,$t(r.sent())];case 4:return[3,6];case 5:return[2,Vt("The collectionId was not defined")];case 6:return[2]}}))}))}function u(){return dn(this,void 0,Promise,(function(){var n;return fn(this,(function(r){switch(r.label){case 0:if(!t)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.getImageUrls(t)];case 2:return(n=r.
1sent())?[2,n]:[2,Vt("The banner could not be fetched")];case 3:return[2,$t(r.sent())];case 4:return[2]}}))}))}function l(){return dn(this,void 0,Promise,(function(){var n;return fn(this,(function(r){switch(r.label){case 0:if(!t)return[3,5];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.getPostsForForum(t,!0)];case 2:return(n=r.sent())?[2,n]:[2,Vt("The posts could not be fetched")];case 3:return[2,$t(r.sent())];case 4:return[3,6];case 5:return[2,Vt("The collectionId was not defined")];case 6:return[2]}}))}))}function h(){return dn(this,void 0,Promise,(function(){var n;return fn(this,(function(r){switch(r.label){case 0:if(!t)return[3,5];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.getForumPostRestriction(t)];case 2:return null!=(n=r.sent())?[2,n]:[2,Vt("The restriction was not defined")];case 3:return[2,$t(r.sent())];case 4:return[3,6];case 5:return[2,Vt("The collectionId was not defined")];case 6:return[2]}}))}))}return(0,o.useEffect)((function(){Zt(r)&&Yt(r.votes)&&function(){return dn(this,void 0,Promise,(function(){var n;return fn(this,(function(i){switch(i.label){case 0:if(!(t&&e.permission.readAndWrite&&Zt(r)))return[3,5];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,e.getVotes(t)];case 2:return(n=i.sent())?[2,n]:[2,Vt("The votes could not be found on-chain")];case 3:return[2,$t(i.sent())];case 4:return[3,6];case 5:return[2,Vt("The collection ID waas not defined")];case 6:return[2]}}
1))}))}().then((function(t){Zt(t)&&i(hn(hn({},r),{votes:t}))}))}),[e.wallet,r]),{forumData:r,addPost:function(t){Zt(r)&&i(hn(hn({},r),{posts:r.posts.concat(t)}))},deletePost:function(t){Zt(r)&&i(hn(hn({},r),{posts:r.posts.filter((function(e){return t!==e}))}))},editPost:function(t,e,n){if(Zt(r)){var o=r.posts,s=o.filter((function(e){return pn(e)&&e.address.equals(t.address)}));if(1!==s.length)throw"Error in edit post: could not find exactly one post to be edited. Found ".concat(s.length);var a=s[0],c=o.filter((function(t){return t!==a})),u=hn(hn({},a),{data:{ts:a.data.ts,body:e,subj:n},state:"edited"}),l=c.concat(u);if(l.length!==o.length)throw"Error in edit post: the same number of posts were not found before and after the posts were edited";i(hn(hn({},r),{posts:l}))}},update:function(){return dn(this,void 0,void 0,(function(){var n,r,o,d,f,p,m;return fn(this,(function(g){switch(g.label){case 0:return t?[4,e.exists(t)]:[3,5];case 1:return g.sent()?[4,Promise.all([s(),c(),l(),h(),a(),u()])]:[3,3];case 2:return n=g.sent(),r=n[0],o=n[1],d=n[2],f=n[3],p=n[4],m=n[5],Zt(o)&&Zt(d)&&Zt(p)?i({collectionId:t,owners:r,description:o,posts:d,restriction:f,moderatorMint:p,votes:{loadingState:"initial"},images:m}):i(Vt("One or more of description, posts, and moderatorMint could not be fetched")),[3,4];case 3:i(Vt("The forum did not exist")),g.label=4;case 4:return[3,6];case 5:i(Vt("The collectionId was not defined")),g.label=6;case 6:return[2]}}
1))}))}}}function bn(t,e){var n=(0,o.useState)({loadingState:"initial"}),r=n[0],i=n[1];function s(){return dn(this,void 0,Promise,(function(){var n;return fn(this,(function(r){switch(r.label){case 0:if(!t)return[3,5];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.getModerators(t,!0)];case 2:return(n=r.sent())?[2,n]:[2,Vt("The moderators were not defined")];case 3:return[2,$t(r.sent())];case 4:return[3,6];case 5:return[2,Vt("The collectionId was not defined")];case 6:return[2]}}))}))}return{moderators:r,update:function(){return dn(this,void 0,void 0,(function(){var n;return fn(this,(function(r){switch(r.label){case 0:return t?[4,e.exists(t)]:[3,3];case 1:return r.sent()?[4,s()]:[3,3];case 2:n=r.sent(),i(n),r.label=3;case 3:return[2]}}))}))}}}function vn(){var t=(0,o.useState)([]),e=t[0],n=t[1];function i(t){n(e.concat(t))}function s(){n(e.slice(1))}return{modal:(0,o.useMemo)((function(){if(e.length>0){var t=e[0];return(0,r.jsx)(S.PopUpModal,{id:"create-forum-info",visible:!0,title:t.title,messageType:t.type,body:t.body,collapsible:t.collapsible,okButton:(0,r.jsx)("a",hn({className:"okInfoButton",onClick:s},{children:"OK"})),onClose:s})}return null}),[e]),close:s,showModal:function(t){i([t])},showModals:i,setModals:n}}function wn(t,e){var n=(0,o.useState)(null),r=n[0],s=n[1];return(0,o.useEffect)((function(){Zt(t)&&function(t){return dn(this,void 0,void 0,(function(){var n,r,o,s,a,c,l,d,f,p=this;return fn(this,(function(m){switch(m.label){case 0:return n=t.moderatorMint,r=k(g)(t.posts.map((function(t){return t.poster})),(function(t){return t.toBase58()})),[4,Promise.all(r.map((function(t){return dn(p,void 0,void 0,(function(){return fn(this,(function(e){return[2,(0,h.getAssociatedTokenAddress)(n,t)]}))}))})))];case 1:return o=m.sent(),[4,(0,u.getAccountsInfoPaginated)(e.connection,o)];case 2:return s=m.sent(),a=k(y)(r,o,s),c=a.filter((function(t){var e=t[0],n=t[1],r=t[2];return!k(i)(e)&&!k(i)(n)&&!k(i)(r)})),l=c.map((function(t){var e=t[0],n=t[1],r=t[2];return[e,n,(0,h.unpackAccount)(n,r)]})),d=l.filter((function(t){return t[2].amount>0})),f=d.map((function(t){return t[0]})),[2,f]}}))}))}(t).then((function(t){return s(t)}))}),[t]),r}function _n(t){return(0,o.useMemo)((function(){return t.equals(new(0,l.PublicKey)("DSwfRF1j
1hhu6HpSuzaig1G19kzP73PfLZBPLofkw6fLD"))?un.DegenerateApeAcademy:null}),[t])}function kn(t){try{return new(0,l.PublicKey)(t)}catch(i){return Ht("The public key '".concat(t,"' is invalid"))}}function Sn(t){return k(i)(t)?[]:k(i)(t.nftOwnership)?k(i)(t.nftListAnyOwnership)?k(i)(t.tokenOwnership)?[]:[t.tokenOwnership.mint]:t.nftListAnyOwnership.collectionIds:[t.nftOwnership.collectionId]}function xn(t){return Sn(t).map((function(t){return t.toBase58()}))}function In(t,e){var n=t.replace(/\s+/g,"").split(",").map((function(t){return kn(t)})),r=n.filter((function(t){return Wt(t)}));if(r.length>0)return Ht(r.map((function(t){return Ut(t)})).join(", "));var i=n;if(null!=e){var o=Sn(e);i=i.concat(o)}return 0===i.length?{null:{}}:1===i.length?{nftOwnership:{collectionId:i[0]}}:{nftListAnyOwnership:{collectionIds:i}}}function An(t,e,n){var r=t.replace(/\s+/g,"").split(",").map((function(t){return kn(t)})),i=r.filter((function(t){return Wt(t)}));if(i.length>0)return Ht(i.map((function(t){return Ut(t)})).join(", "));var o=r,s=e*Math.pow(10,n);return 0===o.length?{null:{}}:1===o.length?{tokenOwnership:{mint:o[0],amount:s}}:Ht("Only one SPL token can be specified","Please remove all but one SPL token from the list")}function En(t){return t.replace(/\s+/g,"").split(",").map((function(t){return kn(t)})).filter((function(t){return!!Zt(t)||(console.error(t),!1)}))}(ln=un||(un={}))[ln.DegenerateApeAcademy=0]="DegenerateApeAcademy";var Tn=[{publicKey:new(0,l.PublicKey)("BFvLq3gN8aRMLHygobRoGnmTwSooyeByZx63RPViMxhj"),displayName:"Sea_Eoh",profilePicture:new URL("https://raw.githubusercontent.com/usedispatch/assets/main/img/degenapes/Sea_Eoh.jpeg")},{publicKey:new(0,l.PublicKey)("8BniKCvVuCPP798zWBKCwPjwTtK99BNs2X1onpbAXFKp"),displayName:"crass-host",profilePicture:new URL("https://raw.githubusercontent.com/usedispatch/assets/main/img/degenapes/Crasskitty.png")},{publicKey:new(0,l.PublicKey)("2qoTQ69Af49e1rW3KP5EkHbhgeXmaRowuL21Q5jJL9rD"),displayName:"nicky-host",profilePicture:new URL("https://raw.githubusercontent.com/usedispatch/assets/main/img/degenapes/NickyScanz.png")},{publicKey:new(0,l.PublicKey)("E7MwrNbFtDaymDxa5ah69z1EyynFkWKrWnrGNSuL8BUo"),displayName:"Crasskitty",profilePicture:new URL("https://raw.githubusercontent.com/usedispatch/assets/main/img/degenapes/Crasskitty.png")},{publicKey:new(0,l.PublicKey)("EfWzmSQW3VB8BVmNFBA1M2GcsQcZCWvSD27WArGs753p"),displayName:"DevLock",profilePicture:new URL("https://raw.githubusercontent.com/usedispatch/assets/main/img/degenapes/DevLock.png")},{publicKey:new(0,l.PublicKey)("6rF7ZEs84kAEA3bxcHeFJ2ej4vQxyhc5NrRpTvwkreTp"),displayName:"Verata",profilePicture:new URL("https://raw.githubusercontent.com/usedispatch/assets/main/img/degenapes/verata.png")},{publicKey:new(0,l.PublicKey)("G36xZhaHPtKNaGC3oWKtRHMCBWomkDT4BoaBxkLRGYjN"),displayName:"NickyScanz",profilePicture:new URL("https://raw.githubusercontent.com/usedispatch/assets/main/img/degenapes/NickyScanz.png")},{publicKey:new(0,l.PublicKey)("6bqNbw4Zzweny7vC8gG6P66MV7gJcyaZ9bZoJmrne331"),displayName:"King Konga",profilePicture:new URL("https://raw.githubusercontent.com/usedispatch/assets/main/img/degenapes/King_Konga.png")},{publicKey:new(0,l.PublicKey)("DMa4C88ZFqjjGs7nmwwAhVxwXnCpsEnqN6GdZJ3vHApu"),displayName:"Jp_Up",profilePicture:new URL("https://raw.githubusercontent.com/usedispatch/assets/main/img/degenapes/Jp_up.png")},{publicKey:new(0,l.PublicKey)("8G73CkB9y4djR9pqKpDnzuPWveoK8x9daijyfjs2cDLg"),displayName:"Toasi",profilePicture:new URL("https://raw.githubusercontent.com/usedispatch/assets/main/img/degenapes/Toasi.png")},{publicKey:new(0,l.PublicKey)("BvRcaZYyZCR4i4jgtR2oSSiM2xQ5muv1gPAma7U25pYJ"),displayName:"DegenService",profilePicture:new URL("https://raw.githubusercontent.com/usedispatch/assets/main/img/degenapes/DegenService.png")},{publicKey:new(0,l.PublicKey)("63HPANsJRKeDPxGFcHShFQsv36TLWPduMS7JN3Y9HxPs"),displayName:"Grove St",profilePicture:new URL("https://raw.githubusercontent.com/usedispatch/assets/main/img/degenapes/Grove_St.png")},{publicKey:new(0,l.PublicKey)("69RXtQajCYTmHEK6WPRszURg6ovQ59bVSdNAM8QvGX4e"),displayName:"Sonder",profilePicture:new URL("https://raw.githubusercontent.com/usedispatch/assets/main/img/degenapes/Sonder.png")},{publicKey:new(0,l.PublicKey)("CH1xiMgDpFGngfEBMFjp5xD7vH54GVJYG6Lxspz5T4C4"),displayName:"Conor Holds",profilePicture:new URL("https://raw.githubusercontent.com/usedispatch/assets/main/img/degenapes/Conor_Holds.png")},{publicKey:new(0,l.PublicKey)("9PtkVgmsYnmRGQb6R92rVgcRzTrRe1ttJchmB7dhgJNP"),displayName:"Satyam",profilePicture:new URL("https://raw.githubusercontent.com/usedispatch/assets/main/img/degenapes/Satyam.png")},{publicKey:new(0,l.PublicKey)("AfJnSBXcwwEGzAxdwY4x1XGYWH2D7XuTduz89VNS6iLY"),displayName:"Seb Monty",profilePicture:new URL("https://raw.githubusercontent.com/usedispatch/assets/main/img/degenapes/Seb_Monty.png")},{publicKey:new(0,l.PublicKey)("85iDLGzsPBsXn7ao83WtRFsQLfqi8LYhYk3xu2uwo9qD"),displayName:"andrew | dispatch",profilePicture:new URL("https://raw.githubusercontent.com/usedispatch/assets/main/img/dispatch/dispat
1ch-logo-mark-color-circle-reverse-margin.png")},{publicKey:new(0,l.PublicKey)("2T8MWSB8VyeweT41U7HG12bKVUHU4YKKZeagmy7YCUVe"),displayName:"Stephen | Metaplex",profilePicture:new URL("https://pbs.twimg.com/profile_images/1572467339043672064/4gZGTTa4_400x400.jpg")},{publicKey:new(0,l.PublicKey)("6o49yAj4bmK35NQjDBDEwtC6LVLr2mjFeZ9MTvhMv9Tw"),displayName:"Metaplex Foundation",profilePicture:new URL("https://pbs.twimg.com/profile_images/1570901153814089731/wToMbM7E_400x400.jpg")},{publicKey:new(0,l.PublicKey)("73qUJmmCtf4K2LJfqTAuq7n9kJGg7h5Kr5NTt8eQm7Li"),displayName:"Nhan | Metaplex",profilePicture:new URL("https://pbs.twimg.com/profile_images/1577359588856197120/TIK6n5gi_400x400.jpg")},{publicKey:new(0,l.PublicKey)("Aj4LWdVWWjAAG34Q7nCPGT9X5RNPcxJG8Yo5Ku9MJaU6"),displayName:"Solana Spaces",profilePicture:new URL("https://pbs.twimg.com/profile_images/1583182250581102623/AOrgeepS_400x400.jpg")}];function Pn(t){return Tn.find((function(e){return e.publicKey.equals(t)}))||null}var Cn=m.Buffer,Mn=function(){return Mn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Mn.apply(this,arguments)},On=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function Rn(t){var e=this,n=t.collectionId,a=t.forumObject,c=t.sendCreateForum,u=a.permission,h=a.wallet,d=h.publicKey,f=(0,o.useState)(!1),m=f[0],g=f[1],y=(0,o.useState)(""),b=y[0],v=y[1],w=(0,o.useState)(""),_=w[0],x=w[1],I=(0,o.useState)(""),A=I[0],E=I[1],T=(0,o.useState)(""),P=T[0],C=T[1],M=(0,o.useState)(""),O=M[0],R=M[1],B=(0,o.useState)([]),j=B[0],N=B[1],L=(0,o.useState)([]),D=L[0],z=L[1],F=(0,o.useState)([]),U=F[0],W=F[1],G=(0,o.useState)(0),V=G[0],K=G[1],H=(0,o.useState)({isHidden:!0}),q=H[0],Z=H[1],Y=(0,cn.useModal)(),X=Y.modal,J=Y.showModal,Q=(0,o.useMemo)((function(){try{return"".concat(n.slice(0,4),"...").concat(n.slice(-4))}catch(i){var t=JSON.stringify(i);return J({title:"Something went wrong!",type:S.MessageType.error,body:"Invalid Collection ID Public Key",collapsible:{header:"Error",content:t}}),""}}),[n]),tt=(0,o.useMemo)((function(){try{return new(0,l.PublicKey)(n)}catch(i){var t=JSON.stringify(i);return console.log("dsp",i),J({title:"Something went wrong!",type:S.MessageType.error,body:"Invalid Collection ID Public Key",collapsible:{header:"Error",content:t}}),null}}),[n]),et=(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",Mn({className:"formSection"},{children:[(0,r.jsxs)("span",Mn({className:"formLabel"},{children:["Add moderators",(0,r.jsx)($e.Tooltip,{content:(0,r.jsx)("div",Mn({className:"labelTooltip"},{children:(0,r.jsx)($.Info,{})})),message:"Your wallet ID will be automatically added as a moderator, but if you'd like to add additional moderators you can specify them here as a comma seperated list!"})]})),(0,r.jsx)("input",{placeholder:"Add a comma separated list of moderator IDs",className:"formInput",value:A,disabled:m,onChange:function(t){return E(t.target.value)},onBlur:function(){return function(){try{if(A.length>0){var t=En(A);N(t)}else N([])}catch(t){N([]),Z({isHidden:!1,content:(0,r.jsxs)(r.Fragment,{children:["Error on adding moderator: ",t.message]}),type:S.MessageType.error})}}()}}),j.length>0&&(0,r.jsx)("ul",Mn({className:"idsList"},{children:j.map((function(t){var e=t.toBase58(),n=Pn(t);return(0,r.jsxs)("li",Mn({className:"addedIds"},{children:[(0,r.jsx)("div",Mn({className:"iconContainer"},{children:k(i)(n)?(0,r.jsx)(k(p),{value:e,alt:"moderatorId"}):(0,r.jsx)("img",{src:n.profilePicture.href,style:{borderRadius:"50%"}})})),(0,r.jsx)("div",Mn({className:"displayName"},{children:k(i)(n)?e:n.displayName}))]}),e)}))}))]})),(0,r.jsxs)("div",Mn({className:"formSection"},{children:[(0,r.jsxs)("span",Mn({className:"formLabel"},{children:["Add owners",(0,r.jsx)($e.Tooltip,{content:(0,r.jsx)("div",Mn({className:"labelTooltip"},{children:(0,r.jsx)($.Info,{})})),message:"Your wallet ID will be automatically added as an owner, but if you'd like to add additional owners you can specify them here as a comma seperated list!"})]})),(0,r.jsx)("input",{placeholder:"Add a comma separated list of owners IDs",className:"formInput",value:P,disabled:m,onChange:function(t){return C(t.target.value)},onBlur:function(){return function(){try{if(P.length>0){var t=En(P);z(t)}else z([])}catch(t){z([]),Z({isHidden:!1,content:(0,r.jsxs)(r.Fragment,{children:["Error on adding owner: ",t.message]}),type:S.MessageType.error})}}()}}),D.length>0&&(0,r.jsx)("ul",Mn({className:"idsList"},{children:D.map((function(t){var e=t.toBase58();return(0,r.jsxs)("li",Mn({className:"addedIds"},{children:[(0,r.jsx)("div",Mn({className:"iconContainer"},{children:(0,r.jsx)(k(p),{value:e,alt:"ownerId"})})),(0,r.jsx)("div",Mn({className:"displayName"},{children:e}))]}),e)}))}))]})),(0,r.jsxs)("div",Mn({className:"formSection"},{children:[(0,r.jsxs)("span",Mn({className:"formLabel"},{children:["Limit forum access",(0,r.jsx)($e.Tooltip,{content:(0,r.jsx)("div",Mn({className:"labelTooltip"},{children:(0,r.jsx)($.Info,{})})),message:"Here, you are able to gate your forum to Metaplex NFT Collection holders. Simply enter the collection ID of your NFT collection and only token holders can create posts. You can find the collection ID in the metadata URI of your NFT."})]})),(0,r.jsx)("input",{placeholder:"Add a comma separated list of collection IDs",className:"formInput lastInputField",value:O,disabled:m||V>800,onChange:function(t){return R(t.target.value)},onBlur:function(){return function(){try{if(O.length>0){var t=En(O);W(t)}else W([])}catch(t){W([]),Z({isHidden:!1,content:(0,r.jsxs)(r.Fragment,{children:["Error on limiting access: ",t.message]}),type:S.MessageType.error})}}()}}),U.length>0&&(0,r.jsx)("ul",Mn({className:"idsList"},{children:U.map((function(t){var e=t.toBase58();return(0,r.jsx)("li",Mn({className:"addedIds"},{children:(0,r.jsx)("div",Mn({className:"displayName"},{children:e}))}),e)}))}))]}))]});return(0,r.jsx)("div",Mn({className:"dsp- "},{children:(0,r.jsxs)("div",Mn({className:"createForumContainer"}
1,{children:[X,(0,r.jsx)(rn.Notification,{hidden:q.isHidden,content:null==q?void 0:q.content,type:null==q?void 0:q.type,onClose:function(){return Z({isHidden:!0})}}),!u.readAndWrite&&(0,r.jsx)(tn.ConnectionAlert,{}),(0,r.jsx)("div",Mn({className:"createForumTitle"},{children:"Create New Forum"})),(0,r.jsx)("div",Mn({className:"createForumSubtitle"},{children:"Create one to create topics, post, share, rate, and gift tokens."})),(0,r.jsx)("div",Mn({className:"createForumForm ".concat(m?"creating":"")},{children:(0,r.jsxs)("div",Mn({className:"formBody"},{children:[(0,r.jsxs)("div",Mn({className:"formSection"},{children:[(0,r.jsxs)("span",Mn({className:"formLabel"},{children:["Forum ID",(0,r.jsx)($e.Tooltip,{content:(0,r.jsx)("div",Mn({className:"labelTooltip"},{children:(0,r.jsx)($.Info,{})})),message:"This is the unique ID for your forum and generated automatically. This is part of the URL for this forum"})]})),(0,r.jsx)("input",{type:"text",className:"formInput readonly",required:!0,value:n,readOnly:!0})]})),(0,r.jsxs)("div",Mn({className:"formSection"},{children:[(0,r.jsx)(r.Fragment,{children:k(s).send("pageview")}),(0,r.jsx)("span",Mn({className:"formLabel"},{children:"Title"})),(0,r.jsx)("input",{type:"text",placeholder:"Title",className:"formInput",name:"name",required:!0,value:b,disabled:m,onChange:function(t){return v(t.target.value)}})]})),(0,r.jsxs)("div",Mn({className:"formSection"},{children:[(0,r.jsx)("span",Mn({className:"formLabel"},{children:"Description"})),(0,r.jsx)("textarea",{placeholder:"Description",className:"formInput description",maxLength:800,value:_,disabled:m,onChange:function(t){x(t.target.value),K(Cn.from(t.target.value).byteLength)}}),(0,r.jsxs)("div",Mn({className:"textSize"},{children:[V,"/800"]}))]})),(0,r.jsx)(Et.Collapsible,{header:"Advanced options",content:et}),(0,r.jsx)("div",Mn({className:"createForumButtonContainer"},{children:(0,r.jsxs)("button",Mn({type:"submit",className:"acceptCreateForumButton",disabled:!u.readAndWrite||m||0===b.length,onClick:function(){return function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}(e,void 0,void 0,(function(){return function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}(this,(function(t){return function(){if(g(!0),k(i)(h)||k(i)(tt))J({title:"Something went wrong!",type:S.MessageType.error,body:"The forum '".concat(b,"' for the collection ").concat(Q," could not be created.")});else{var t,e=On(On([],j,!0),[d],!1),n=On(On([],D,!0),[d],!1);if(O.length>0){var r=In(O);Zt(r)&&(t=r)}c({owners:n,moderators:e,title:b,description:_,collectionId:tt,postRestriction:t})}}(),k(s).event("sendForumCreate"),[2]}))}))}},{children:[m&&(0,r.jsx)("div",Mn({className:"creating"},{children:(0,r.jsx)(Ct.Spinner,{})})),"Create forum"]}))}))]}))}))]}))}))}var Bn={};_(Bn,"CreateTopic",(()=>Dn),(t=>Dn=t));var jn=function(){return jn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},jn.apply(this,arguments)}
1,Nn=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},Ln=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function Dn(t){var e,n=this,s=t.currentForumAccessToken,a=t.forumObject,c=t.forumData,u=t.topicInFlight,l=t.update,h=(0,zt.useRole)().roles,d=a.permission,f=(0,o.useState)({title:"",description:"",NFTaccessToken:"",SPLaccessToken:"",SPLamount:1}),p=f[0],m=f[1],g=(0,o.useState)(!1),y=g[0],b=g[1],v=(0,o.useState)(!1),w=v[0],_=v[1],x=(0,o.useState)(!1),I=x[0],A=x[1],E=(0,o.useState)(0===s.length),T=E[0],P=E[1],C=(0,o.useState)(!T),M=C[0],O=C[1],R=(0,o.useState)(!1),B=R[0],j=R[1],N=(0,o.useState)(!1),L=N[0],D=N[1],z=(0,o.useState)(""),F=z[0],U=z[1],W=(0,o.useState)({isHidden:!0}),G=W[0],V=W[1],K=(0,o.useState)(null),H=K[0],q=K[1];return(0,o.useEffect)((function(){M||0!==p.NFTaccessToken.length&&0!==p.SPLaccessToken.length?(P(!1),"SPL"===F&&u("")):P(!0)}),[p.SPLaccessToken,p.NFTaccessToken.length,M]),(0,o.useEffect)((function(){j("NFT"===F),D("SPL"===F)}),[F]),e=h.includes(ie.Viewer)?{title:"You are not authorized",body:Zt(c.restriction)&&!k(i)(c.restriction.tokenOwnership)&&Zt(c.restriction.tokenOwnership)&&c.restriction.tokenOwnership.mint.equals(c.moderatorMint)?"Oops! Only moderators can create new topics at this time.":"Oops! You need a token to participate. Please contact the forum\u2019s moderators.",okButton:(0,r.jsx)("button",jn({className:"okButton",onClick:function(){return b(!1)}},{children:"OK"})),cancelButton:(0,r.jsx)("button",jn({className:"cancelButton",onClick:function(){return b(!1)}},{children:"Cancel"}))}:{title:"Create new Topic",body:(0,r.jsxs)("div",jn({className:"createTopicBody"},{children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",jn({className:"createTopicLabel"},{children:"Topic title"})),(0,r.jsx)("input",{type:"text",placeholder:"Title",className:"createTopicTitleInput",name:"name",required:!0,value:p.title,onChange:function(t){return m(jn(jn({},p),{title:t.target.value}))}})]}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",jn({className:"createTopicLabel"},{children:"Topic description"})),(0,r.jsx)("textarea",{placeholder:"Description",className:"createTopicTitleInput createTopicTextArea",maxLength:800,value:p.description,onChange:function(t){return m(jn(jn({},p),{description:t.target.value}))}})]}),(0,r.jsx)(qe,jn({scopes:[be]},{children:(0,r.jsxs)(r.Fragment,{children:[s.length>0&&(0,r.jsxs)("div",jn({className:"gateCheckbox"},{children:[(0,r.jsx)("div",jn({className:"createTopicLabel"},{children:"Keep existing forum gates on topic"})),(0,r.jsx)("input",{type:"checkbox",checked:M,onChange:function(t){O(t.target.checked)}})]})),(0,r.jsxs)("div",jn({className:"gateCheckbox"},{children:[(0,r.jsx)("div",jn({className:"createTopicLabel"},{children:"Add a Token Gate?"})),(0,r.jsxs)("select",jn({value:F,className:"addTokenGateSelect",onChange:function(t){return U(t.target.value)}},{children:[(0,r.jsx)("option",jn({value:""},{children:"Select a token type"})),(0,r.jsx)("option",jn({value:"NFT"},{children:"Metaplex NFT"})),T&&(0,r.jsx)("option",jn({value:"SPL"},{children:"SPL Token"}))]}))]})),B&&(0,r.jsxs)("div",{children:[(0,r.jsx)("span",jn({className:"createTopicLabel"},{children:"Limit post access by NFT Collection ID"})),(0,r.jsx)("input",{type:"text",placeholder:"Metaplex collection ID as comma separated list",className:"newAccessToken",name:"accessToken",value:p.NFTaccessToken,onChange:function(t){return m(jn(jn({},p),{NFTaccessToken:t.target.value}))}})]}),L&&(0,r.jsxs)("div",{children:[(0,r.jsx)("span",jn({className:"createTopicLabel"},{children:"Limit post access by SPL Mint ID"})),(0,r.jsx)("input",{type:"text",placeholder:"Token mint ID",className:"newAccessToken",name:"accessToken",value:p.SPLaccessToken,onChange:function(t){m(jn(jn({},p),{SPLaccessToken:t.target.value}))}}),(0,r.jsx)("span",jn({className:"createTopicLabel"},{children:"Amount"}
1)),(0,r.jsx)(Ge,{type:"number",value:1,min:0,step:.01,className:"newAccessToken",onChange:function(t){m(jn(jn({},p),{SPLamount:parseFloat(t)}))}})]})]})}))]})),loading:w,okButton:(0,r.jsx)("button",jn({className:"okButton",disabled:0===p.title.length,onClick:function(){return Nn(n,void 0,void 0,(function(){return Ln(this,(function(t){return[2,Nn(n,void 0,Promise,(function(){var t,e,n,i,o,s,h,d;return Ln(this,(function(f){switch(f.label){case 0:return t={subj:p.title,body:p.description},_(!0),A(!0),M&&B&&""!==p.NFTaccessToken?(e=In(p.NFTaccessToken,Zt(c.restriction)?c.restriction:void 0),[3,9]):[3,1];case 1:return M||!B||""===p.NFTaccessToken?[3,2]:(e=In(p.NFTaccessToken),[3,9]);case 2:if(Zt(c.restriction)&&!T||!L||""===p.SPLaccessToken)return[3,8];f.label=3;case 3:return f.trys.push([3,6,,7]),Zt(n=kn(p.SPLaccessToken))?[4,a.connection.getTokenSupply(n)]:[3,5];case 4:i=f.sent(),e=An(p.SPLaccessToken,p.SPLamount,i.value.decimals),f.label=5;case 5:return[3,7];case 6:return o=f.sent(),_(!1),q({title:"Something went wrong!",type:S.MessageType.error,body:"The topic could not be created",collapsible:{header:"Error",content:Ut(o)}}),b(!1),[2];case 7:return[3,9];case 8:e=M?void 0:{null:{}},f.label=9;case 9:return Wt(e)?(d=e,_(!1),q({title:"Something went wrong!",type:S.MessageType.error,body:"The topic could not be created",collapsible:{header:"Error",content:Ut(d)}}),b(!1),[2]):(s=e,[4,a.createTopic(t,c.collectionId,s)]);case 10:return h=f.sent(),u(p.title),_(!1),Zt(h)?(b(!1),m({title:"",description:"",NFTaccessToken:"",SPLaccessToken:"",SPLamount:1}),V({isHidden:!1,content:(0,r.jsxs)(r.Fragment,{children:["Topic created! You will be redirected in a moment",(0,r.jsx)(Xe.TransactionLink,{transaction:h})]}),type:S.MessageType.success}),setTimeout((function(){return V({isHidden:!0})}),5e3),[4,a.connection.confirmTransaction(h)]):[3,13];case 11:return f.sent(),[4,l()];case 12:return f.sent(),[3,14];case 13:d=h,_(!1),u(""),q({title:"Something went wrong!",type:S.MessageType.error,body:"The topic could not be created",collapsible:{header:"Error",content:Ut(d)}}),b(!1),f.label=14;case 14:return A(!1),[2]}}))}))]}))}))}},{children:"Create"})),cancelButton:(0,r.jsx)("button",jn({className:"cancelButton",onClick:function(){return b(!1)}},{children:"Cancel"}))},(0,r.jsxs)("div",jn({className:"createTopic"},{children:[(0,r.jsx)(rn.Notification,{hidden:G.isHidden,content:null==G?void 0:G.content,type:null==G?void 0:G.type,onClose:function(){return V({isHidden:!0})}}),!k(i)(H)&&(0,r.jsx)(S.PopUpModal,{id:"create-topic-info",visible:!0,title:H.title,messageType:H.type,body:H.body,collapsible:H.collapsible,onClose:function(){return q(null)},okButton:(0,r.jsx)("a",jn({className:"okButton",onClick:function(){return q(null)}},{children:"OK"}))}),y&&(0,r.jsx)(S.PopUpModal,{id:"create-topic",visible:!0,title:e.title,body:e.body,loading:w,onClose:function(){return b(!1)},okButton:e.okButton}),(0,r.jsxs)("button",jn({className:"createTopicButton ".concat(w?"loading":""),type:"button",disabled:!d.readAndWrite||I,onClick:function(){b(!0)}},{children:[I?(0,r.jsx)("div",jn({className:"loading"},{children:(0,r.jsx)(Ct.Spinner,{})})):(0,r.jsx)("div",jn({className:"buttonImageContainer"},{children:(0,r.jsx)(rt.Plus,{})})),"Create Topic"]}))]}))}var zn={};_(zn,"EditForum",(()=>Vn),(t=>Vn=t));var Fn=m.Buffer,Un=function(){return Un=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Un.apply(this,arguments)},Wn=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},Gn=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
1function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function Vn(t){var e=this,n=t.forumData,s=t.update,a=(0,zt.useForum)(),c=a.permission,u=(0,o.useState)(new Fn(n.description.desc,"utf-8").byteLength),l=u[0],h=u[1],d=(0,o.useState)({show:!1,title:n.description.title,description:n.description.desc}),f=d[0],p=d[1],m=(0,o.useState)({isHidden:!0}),g=m[0],y=m[1],b=(0,o.useState)(null),v=b[0],w=b[1];return(0,o.useMemo)((function(){return Wn(e,void 0,void 0,(function(){return Gn(this,(function(t){return[2,a.isOwner(n.collectionId)]}))}))}),[a])?(0,r.jsx)("div",Un({className:"dsp- "},{children:(0,r.jsxs)("div",Un({className:"editForumContainer"},{children:[(0,r.jsx)(rn.Notification,{hidden:g.isHidden,content:null==g?void 0:g.content,type:null==g?void 0:g.type,onClose:function(){return y({isHidden:!0})}}),f.show&&k(i)(v)&&(0,r.jsx)(S.PopUpModal,{id:"edit-forum",visible:!0,title:"Edit forum",body:(0,r.jsxs)("div",Un({className:"editForumBody"},{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",Un({className:"editForumLabel"},{children:"Forum title"})),(0,r.jsx)("input",{type:"text",placeholder:"New forum title",className:"editForumInput",value:f.title,onChange:function(t){return p(Un(Un({},f),{title:t.target.value}))}})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",Un({className:"editForumLabel"},{children:"Forum description"})),(0,r.jsx)("textarea",{placeholder:"New forum description",className:"editForumInput description",value:f.description,maxLength:800,onChange:function(t){p(Un(Un({},f),{description:t.target.value})),h(new Fn(t.target.value,"utf-8").byteLength)}}),(0,r.jsxs)("div",Un({className:"textSize"},{children:[" ",l,"/800 "]}))]})]})),loading:f.loading,onClose:function(){p({show:!1,title:n.description.title,description:n.description.desc}),h(new Fn(n.description.desc,"utf-8").byteLength)},okButton:(0,r.jsx)("button",Un({className:"okButton",disabled:!(f.description.length>0&&f.title.length>0)||l>800,onClick:function(){return Wn(e,void 0,void 0,(function(){return Gn(this,(function(t){return[2,Wn(e,void 0,void 0,(function(){var t,e,i;return Gn(this,(function(o){switch(o.label){case 0:return p(Un(Un({},f),{loading:!0})),t={title:f.title,desc:f.description},[4,a.setDescription(n.collectionId,t)];case 1:return Zt(e=o.sent())?[4,s()]:[3,3];case 2:return o.sent(),h(0),p({show:!1,title:t.title,description:t.desc}),y({isHidden:!1,type:S.MessageType.success,content:(0,r.jsxs)(r.Fragment,{children:["The forum was edited.",(0,r.jsx)(Xe.TransactionLink,{transaction:e})]})}),setTimeout((function(){return y({isHidden:!0})}),5e3),[3,4];case 3:i=e,p(Un(Un({},f),{loading:!1})),w({title:"Something went wrong!",type:S.MessageType.error,body:"The forum could not be edited",collapsible:{header:"Error",content:Ut(i)}}),o.label=4;case 4:return[2]}}
1))}))]}))}))}},{children:"Save"}))}),!k(i)(v)&&(0,r.jsx)(S.PopUpModal,{id:"edit-forum-info",visible:!0,title:v.title,messageType:v.type,body:v.body,collapsible:v.collapsible,onClose:function(){return w(null)},okButton:(0,r.jsx)("a",Un({className:"okButton",onClick:function(){return w(null)}},{children:"OK"}))}),(0,r.jsx)("div",{className:"actionDivider"}),(0,r.jsxs)("button",Un({className:"editForumButton",disabled:!c.readAndWrite,onClick:function(){return p(Un(Un({},f),{show:!0}))}},{children:[(0,r.jsx)(N.Edit,{})," Edit"]}))]}))})):null}var Kn={};_(Kn,"ManageModerators",(()=>Zn),(t=>Zn=t));var Hn=function(){return Hn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Hn.apply(this,arguments)},qn=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},$n=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function Zn(t){var e=this,n=t.forumData,s=(0,zt.useForum)(),a=s.permission,c=(0,cn.useModerators)(n.collectionId,s),u=c.moderators,l=c.update,h=(0,o.useState)({show:!1,newModerator:"",addingNewModerator:!1}),d=h[0],f=h[1],m=function(){f({show:!1,newModerator:"",addingNewModerator:!1})},g=(0,o.useState)({isHidden:!0}),y=g[0],b=g[1],v=(0,o.useState)(null),w=v[0],_=v[1],x=Zt(u);return(0,r.jsx)("div",Hn({className:"dsp- "},{children:(0,r.jsxs)("div",Hn({className:"manageModeratorsContainer"},{children:[(0,r.jsx)(rn.Notification,{hidden:y.isHidden,content:null==y?void 0:y.content,type:null==y?void 0:y.type,onClose:function(){return b({isHidden:!0})}}),k(i)(w)&&d.show&&(0,r.jsx)(S.PopUpModal,{id:"add-moderators",visible:!0,title:"Manage moderators",body:(0,r.jsx)("div",Hn({className:"manageModeratorsBody"},{children:x?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("label",Hn({className:"manageModeratorsLabel"},{children:"Add new"})),(0,r.jsx)("input",{placeholder:"Add moderator's wallet ID here",className:"manageModeratorsInput",maxLength:800,value:d.newModerator,onChange:function(t){return f(Hn(Hn({},d),{newModerator:t.target.value}))}}),(0,r.jsx)("label",Hn({className:"manageModeratorsLabel"},{children:"Current moderators"})),(0,r.jsx)("ul",{children:u.map((function(t){var e=Pn(t),n=t.toBase58();return(0,r.jsx)("li",Hn({className:"currentModerators"},{children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",Hn({className:"iconContainer"},{children:null!=e?(0,r.jsx)("img",{src:e.profilePicture.href,style:{borderRadius:"50%"}}):(0,r.jsx)(k(p),{value:n,alt:"moderatorId"})})),(0,r.jsx)("div",Hn({className:"displayName"},{children:null!=e?e.displayName:n}))]})}),n)}))})]}):(0,r.jsx)("div",Hn({className:"emptyList"},{children:"Click to load the list of current moderators"}))})),loading:d.addingNewModerator,okButton:x?(0,r.jsx)("button",Hn({className:"okButton",disabled:!d.newModerator.length,onClick:function(){return qn(e,void 0,void 0,(function(){return $n(this,(function(t){return[2,qn(e,void 0,void 0,(function(){var t,e,i,o=this;return $n(this,(function(a){switch(a.label){case 0:return Zt(u)?(f(Hn(Hn({},d),{addingNewModerator:!0})),Wt(t=kn(d.newModerator))?(i=t,f(Hn(Hn({},d),{addingNewModerator:!0})),m(),_({title:"Something went wrong!",type:S.MessageType.error,body:"The moderator could not be added",collapsible:{header:"Error",content:Ut(i)}}),[2]):[4,s.addModerator(t,n.collectionId)]):[2];case 1:return Zt(e=a.sent())?(m(),b({isHidden:!1,content:(0,r.jsxs)(r.Fragment,{children:["The moderator was added.",(0,r.jsx)(Xe.TransactionLink,{transaction:e})]}),type:S.MessageType.success}),setTimeout((function(){return b({isHidden:!0})}),5e3),s.connection.confirmTransaction(e).then((function(){return qn(o,void 0,void 0,(function(){return $n(this,(function(t){return[2,l()]}))}))}))):(i=e,f(Hn(Hn({},d),{addingNewModerator:!0})),m(),_({title:"Something went wrong!",type:S.MessageType.error,body:"The moderator could not be added",collapsible:{header:"Error",content:Ut(i)}})),[2]}}))}))]}))}))}},{children:"Save"})):(0,r.jsx)("button",Hn({className:"okButton fetchModerators",onClick:l},{children:"Fetch moderators"})),onClose:function(){return m()}}),!k(i)(w)&&(0,r.jsx)(S.PopUpModal,{id:"manage-moderators-info",visible:!0,title:w.title,messageType:w.type,body:w.body,collapsible:w.collapsible,okButton:(0,r.jsx)("a",Hn({className:"okButton",onClick:function(){return _(null)}},{children:"OK"})),onClose:function(){return _(null)}}),(0,r.jsx)(qe,Hn({scopes:[ce]},{children:(0,r.jsx)("button",Hn({className:"manageModeratorsButton",disabled:!a.readAndWrite,onClick:function(){return f(Hn(Hn({},d),{show:!0}))}},{children:"Moderators"}))}))]}))}))}var Yn={};_(Yn,"ManageOwners",(()=>tr),(t=>tr=t));var Xn=function(){return Xn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Xn.apply(this,arguments)}
1,Jn=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},Qn=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function tr(t){var e=this,n=t.forumData,s=(0,zt.useForum)(),a=s.permission,c=(0,o.useState)((function(){var t=[];return Zt(n.owners)&&(t=n.owners.map((function(t){return{id:t.toBase58(),toRemove:!1}}))),{show:!1,newOwner:"",currentOwners:t,saving:!1}})),u=c[0],l=c[1],h=function(){var t=[];Zt(n.owners)&&(t=n.owners.map((function(t){return{id:t.toBase58(),toRemove:!1}}))),l({show:!1,newOwner:"",currentOwners:t,saving:!1})},d=(0,o.useState)({isHidden:!0}),f=d[0],m=d[1],g=(0,o.useState)(null),y=g[0],b=g[1];return(0,r.jsx)("div",Xn({className:"dsp- "},{children:(0,r.jsxs)("div",Xn({className:"manageOwnersContainer"},{children:[(0,r.jsx)(rn.Notification,{hidden:f.isHidden,content:null==f?void 0:f.content,type:null==f?void 0:f.type,onClose:function(){return m({isHidden:!0})}}),k(i)(y)&&u.show&&(0,r.jsx)(S.PopUpModal,{id:"add-owners",visible:!0,title:"Manage owners",body:(0,r.jsxs)("div",Xn({className:"manageOwnersBody"},{children:[(0,r.jsx)("label",Xn({className:"manageOwnersLabel"},{children:"Add new"})),(0,r.jsxs)("div",Xn({className:"addOwner"},{children:[(0,r.jsx)("input",{placeholder:"Add owners's wallet ID here",className:"manageOwnersInput",maxLength:800,value:u.newOwner,onChange:function(t){return l(Xn(Xn({},u),{newOwner:t.target.value}))}}),(0,r.jsx)("button",Xn({className:"okButton add",onClick:function(){return Jn(e,void 0,void 0,(function(){return Qn(this,(function(t){return[2,Jn(e,void 0,Promise,(function(){var t,e,n;return Qn(this,(function(r){return u.newOwner.length>0&&(Zt(t=kn(u.newOwner))?((e=u.currentOwners).push({id:u.newOwner,toRemove:!1}),l(Xn(Xn({},u),{newOwner:"",currentOwners:e}))):(n=t,b({title:"Something went wrong!",type:S.MessageType.error,collapsible:{header:"Error",content:Ut(n)}}))),[2]}))}))]}))}))}},{children:"Add"}))]})),(0,r.jsx)("label",Xn({className:"manageOwnersLabel"},{children:"Owners"})),(0,r.jsx)("ul",{children:u.currentOwners.map((function(t,e){var n=kn(t.id);if(Zt(n)){var o=Pn(n),a=null!=o?o.displayName:t.id;return(0,r.jsxs)("li",Xn({className:"currentOwners ".concat(t.toRemove?"toRemove":"")},{children:[(0,r.jsxs)("div",Xn({className:"identity"},{children:[(0,r.jsxs)("div",Xn({className:"iconContainer"},{children:[!k(i)(o)&&(0,r.jsx)("img",{src:o.profilePicture.href,style:{borderRadius:"50%"}}),k(i)(o)&&(0,r.jsx)(k(p),{value:t.id,alt:"ownerId"})]})),(0,r.jsx)("div",Xn({className:"displayName"},{children:a}))]})),(0,r.jsxs)("button",Xn({className:"deleteIcon ".concat(s.wallet.publicKey.toBase58()===t.id?"hide":""),onClick:function(){var t=u.currentOwners;t[e].toRemove=!u.currentOwners[e].toRemove,l(Xn(Xn({},u),{currentOwners:t}))}},{children:[t.toRemove&&(0,r.jsx)(bt.Undo,{}),!t.toRemove&&(0,r.jsx)("div",Xn({className:"trash"},{children:(0,r.jsx)(mt.Trash,{})}))]}))]}),t.id)}return console.error(n),null}))})]})),loading:u.saving,okButton:(0,r.jsx)("button",Xn({className:"okButton",onClick:function(){return Jn(e,void 0,void 0,(function(){return Qn(this,(function(t){return[2,Jn(e,void 0,Promise,(function(){var t,e,i,o,a;return Qn(this,(function(c){switch(c.label){case 0:return l(Xn(Xn({},u),{saving:!0})),t=u.currentOwners.filter((function(t){return!t.toRemove})),e=t.map((function(t){return kn(t.id)})),i=e.filter((function(t){return Zt(t)})),[4,s.setOwners(i,n.collectionId)];case 1:return Zt(o=c.sent())?(l({currentOwners:t,show:!1,newOwner:"",saving:!1}),m({isHidden:!1,content:(0,r.jsxs)(r.Fragment,{children:["Owners list updated.",(0,r.jsx)(Xe.TransactionLink,{transaction:o})]}),type:S.MessageType.success}),setTimeout((function(){return m({isHidden:!0})}),5e3)):(a=o,h(),b({title:"Something went wrong!",type:S.MessageType.error,body:"The owners list could not be updated",collapsible:{header:"Error",content:Ut(a)}})),[2]}}))}))]}))}))}},{children:"Save"})),cancelButton:(0,r.jsx)("button",Xn({className:"cancelButton",onClick:function(){return h()}},{children:"Cancel"})),onClose:function(){return h()}}),!k(i)(y)&&(0,r.jsx)(S.PopUpModal,{id:"manage-owners-info",visible:!0,title:y.title,messageType:y.type,body:y.body,collapsible:y.collapsible,okButton:(0,r.jsx)("a",Xn({className:"okButton",onClick:function(){return b(null)}},{children:"OK"})),onClose:function(){return b(null)}}),(0,r.jsx)(qe,Xn({scopes:[he]},{children:(0,r.jsxs)("button",Xn({className:"manageOwnersButton",disabled:!a.readAndWrite,onClick:function(){return l(Xn(Xn({},u),{show:!0}))}},{children:[(0,r.jsx)(X.Lock,{}),"Owners"]}))}))]}))}))}var er={};_(er,"TopicList",(()=>
1lr),(t=>lr=t));var nr={};function rr(t){return t.filter((function(t){return(0,cn.isForumPost)(t)}))}function ir(t,e){return t.filter((function(t){return!(!(0,cn.isForumPost)(e)&&!(0,cn.isEditedPost)(e)||!t.replyTo)&&t.replyTo.equals(e.address)}))}function or(t){return t.sort((function(t,e){if(!(0,cn.isForumPost)(t))return-1;if(!(0,cn.isForumPost)(e))return 1;var n=t.upVotes-t.downVotes;return e.upVotes-e.downVotes-n}))}_(nr,"TopicListRow",(()=>ar),(t=>ar=t)),_(nr,"TopicInFlightRow",(()=>cr),(t=>cr=t));var sr=function(){return sr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},sr.apply(this,arguments)};function ar(t){var e,n=t.topic,i=t.forumData,s=(0,(0,zt.usePath)().buildTopicPath)(i.collectionId.toBase58(),n.postId),c=(0,o.useMemo)((function(){return rr(ir(i.posts,n))}),[i]),u=(0,o.useCallback)((function(t){var e=t.map((function(t){return t.data.ts})),n=(0,a.maxBy)(e,(function(t){return t.getTime()}));if((0,a.isNil)(n))return"-";var r=n.getFullYear()!==(new Date).getFullYear()?{year:"numeric",month:"short",day:"numeric"}:{year:void 0,month:"short",day:"numeric"};return n.toLocaleDateString(void 0,sr({},r))}),[]),l=(0,o.useCallback)((function(t){if(t.length>0){var e=t.slice(0,8).map((function(t){return t.poster.toBase58()}));return(0,r.jsxs)("div",sr({className:"rowContentIcons"},{children:[e.map((function(t,e){var n=kn(t);if(Zt(n)){var i=Pn(n);return(0,r.jsx)("div",sr({className:"icon"},{children:null!=i?(0,r.jsx)("img",{src:i.profilePicture.href,style:{borderRadius:"50%"}}):(0,r.jsx)(k(p),{value:t,alt:"posterID"})}),e)}return null})),t.length>8?"...":null]}))}return"-"}),[]);return(0,r.jsxs)("tr",sr({className:"row "},{children:[(0,r.jsx)("th",sr({className:"rowSubj"},{children:(0,r.jsx)(Ve.Link,sr({className:"",href:s},{children:(0,r.jsx)("div",sr({className:"textBox"},{children:(0,r.jsx)(k(d),{children:null!==(e=n.data.subj)&&void 0!==e?e:""})}))}))})),(0,r.jsx)("td",sr({className:"rowIconReplies"},{children:(0,r.jsx)(Ve.Link,sr({className:"",href:s},{children:l(c)}))})),(0,r.jsx)("td",sr({className:"rowAmountReplies"},{children:(0,r.jsx)(Ve.Link,sr({className:"",href:s},{children:c.length}))})),(0,r.jsx)("td",sr({className:"rowDate"},{children:(0,r.jsx)(Ve.Link,sr({className:"",href:s},{children:u(c)}))}))]}))}function cr(t){var e=t.title;return(0,r.jsxs)("tr",sr({className:"row topicInFlight"},{children:[(0,r.jsx)("th",sr({className:"rowSubj"},{children:(0,r.jsxs)("div",sr({className:"rowSubjInFlight"},{children:[(0,r.jsx)("div",sr({className:"textBox"},{children:e})),(0,r.jsxs)("div",sr({className:"confirmingTopic"},{children:["confirming",(0,r.jsx)("div",sr({className:"loading"},{children:(0,r.jsx)(Ct.Spinner,{})}))]}))]}))})),(0,r.jsx)("td",sr({className:"rowIconReplies"},{children:" - "})),(0,r.jsx)("td",sr({className:"rowAmountReplies"},{children:" - "})),(0,r.jsx)("td",sr({className:"rowDate"},{children:" - "}))]}))}var ur=function(){return ur=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ur.apply(this,arguments)};function lr(t){var e=t.forumData,n=t.topicInFlight;if((0,a.isNil)(e))return(0,r.jsx)("div",ur({className:"topicListContainer"},{children:(0,r.jsxs)("div",{children:[(0,r.jsxs)("table",ur({className:"tableContainer"},{children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",ur({className:"tableHeader"},{children:[(0,r.jsx)("th",ur({className:"tableHeaderTitle"},{children:(0,r.jsx)("div",ur({className:"tableHeaderText"},{children:"Topics"}))})),(0,r.jsx)("th",ur({className:"tableHeaderTitle"},{children:(0,r.jsx)("div",ur({className:"tableHeaderText posters"},{children:"Wallets"}))})),(0,r.jsx)("th",ur({className:"tableHeaderTitle"},{children:(0,r.jsx)("div",ur({className:"tableHeaderTextCenter"},{children:"Replies"}))})),(0,r.jsx)("th",ur({className:"tableHeaderTitle"},{children:(0,r.jsx)("div",ur({className:"tableHeaderTextCenter"},{children:"Activity"}))}))]}))}),(0,r.jsx)("tbody",{})]})),(0,r.jsx)("div",ur({className:"emptyTopicList"},{children:"No topics yet"}))]})}));var i=(0,o.useMemo)((function(){var t=e.posts.filter((function(t){var e;return!0===(null===(e=t.data.meta)||void 0===e?void 0:e.topic)}));return rr(or(t))}),[e]);return(0,r.jsx)("div",ur({className:"topicListContainer"},{children:(0,r.jsxs)("div",{children:[(0,r.jsxs)("table",ur({className:"tableContainer"},{children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",ur({className:"tableHeader"},{children:[(0,r.jsx)("th",ur({className:"tableHeaderTitle"},{children:(0,r.jsx)("div",ur({className:"tableHeaderText"},{children:"Topics"}))})),(0,r.jsx)("th",ur({className:"tableHeaderTitle"},{children:(0,r.jsx)("div",ur({className:"tableHeaderText posters"},{children:"Wallets"}))})),(0,r.jsx)("th",ur({className:"tableHeaderTitle"},{children:(0,r.jsx)("div",ur({className:"tableHeaderTextCenter"},{children:"Replies"}))})),(0,r.jsx)("th",ur({className:"tableHeaderTitle"},{children:(0,r.jsx)("div",ur({className:"tableHeaderTextCenter"},{children:"Activity"}))}))]}))}),(0,r.jsxs)("tbody",{children:[!(0,a.isNil)(n)&&(0,r.jsx)(nr.TopicInFlightRow,{title:n.title}),i.map((function(t,n){return(0,r.jsx)(nr.TopicListRow,{topic:t,forumData:e},n)}))]})]})),0===i.length&&(0,r.jsx)("div",ur({className:"emptyTopicList"},{children:"No topics yet"}))]})}))}var hr={};_(hr,"UploadForumBanner",(()=>fr),(t=>fr=t));var dr=function(){return dr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},dr.apply(this,arguments)};function fr(t){var e=this,n=t.collectionId,s=t.onSetImageURL,a=t.currentBannerURL,c=(0,zt.useForum)(),u=c.permission,l=(0,o.useState)({showUploadImage:!1,imageURL:a,saving:!1}),h=l[0],d=l[1],f=(0,o.useState)({isHidden:!0}),p=f[0],m=f[1],g=(0,o.useState)(null),y=g[0],b=g[1],v=function(){return d({showUploadImage:!1,imageURL:a,saving:!1})};return(0,r.jsx)("div",dr({className:"dsp- "},{children:(0,r.jsxs)("div",dr({className:"customizeBanner"}
1,{children:[(0,r.jsx)(rn.Notification,{hidden:p.isHidden,content:null==p?void 0:p.content,type:null==p?void 0:p.type,onClose:function(){return m({isHidden:!0})}}),!k(i)(y)&&(0,r.jsx)(S.PopUpModal,{id:"create-topic-info",visible:!0,title:y.title,messageType:y.type,body:y.body,collapsible:y.collapsible,okButton:(0,r.jsx)("a",dr({className:"okButton",onClick:function(){return b(null)}},{children:"OK"})),onClose:function(){return b(null)}}),h.showUploadImage&&(0,r.jsx)(S.PopUpModal,{id:"cutomize-banner",visible:!0,title:"Upload banner image",loading:h.saving,body:(0,r.jsxs)("div",dr({className:"uploadImageWrapper"},{children:[(0,r.jsxs)("div",dr({className:"uploadImageLabel"},{children:["Banner URL",(0,r.jsx)($e.Tooltip,{content:(0,r.jsx)("div",dr({className:"labelTooltip"},{children:(0,r.jsx)($.Info,{})})),message:"Banners should be 1400px x 900px"})]})),(0,r.jsx)("input",{placeholder:"add URL for new banner",className:"imageSrcInput",value:h.imageURL,onChange:function(t){return d(dr(dr({},h),{imageURL:t.target.value}))}}),h.imageURL.length>0&&(0,r.jsx)("div",dr({className:"imageContainer"},{children:(0,r.jsx)("img",{src:h.imageURL,alt:""})}))]})),onClose:function(){return v()},okButton:(0,r.jsx)("button",dr({className:"okButton",onClick:function(){return function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}(e,void 0,Promise,(function(){var t;return function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}(this,(function(e){switch(e.label){case 0:return d(dr(dr({},h),{saving:!0})),[4,c.setImageUrls(n,h.imageURL)];case 1:return Zt(t=e.sent())?(m({isHidden:!1,type:S.MessageType.success,content:(0,r.jsxs)(r.Fragment,{children:["The banner was edited.",(0,r.jsx)(Xe.TransactionLink,{transaction:t})]})}),setTimeout((function(){return m({isHidden:!0})}),5e3),[4,s(h.imageURL)]):[3,3];case 2:return e.sent(),v(),[3,4];case 3:v(),b({title:"Something went wrong!",type:S.MessageType.error,body:"The banner image could not be updated",collapsible:{header:"Error",content:Ut(t)}}),e.label=4;case 4:return[2]}}
1))}))}},{children:"Save"}))}),(0,r.jsx)("button",dr({className:"customizeBannerButton",disabled:!u.readAndWrite,onClick:function(){return d(dr(dr({},h),{showUploadImage:!0}))}},{children:(0,r.jsx)(N.Edit,{})}))]}))}))}var pr={};_(pr,"CreatePost",(()=>kr),(t=>kr=t));var mr={};_(mr,"AddGIF",(()=>yr),(t=>yr=t));var gr=function(){return gr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},gr.apply(this,arguments)};function yr(t){var e=t.onGifSelect,n=(0,o.useContext)(c.SearchContext),i=n.fetchGifs,s=n.term;return(0,r.jsxs)("div",gr({className:"gifModal"},{children:[(0,r.jsx)(c.SearchBar,{className:"searchBarWrapper"}),(0,r.jsx)("img",{src:"https://aiqrzujttjxgjhumjcky.supabase.co/storage/v1/object/public/forum-images/PoweredBy_200px-White_HorizText.png?t=2022-10-11T21%3A29%3A36.618Z",alt:"Powered by GIPHY",className:"poweredByGiphy"}),(0,r.jsx)(c.Grid,{className:"gifGrid",columns:3,width:350,fetchGifs:i,noLink:!0,onGifClick:function(t){return e(t.images.downsized.url)}},"".concat(s))]}))}var br=m.Buffer,vr=function(){return vr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},vr.apply(this,arguments)},wr=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},_r=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function kr(t){var e=this,n=t.collectionId,s=t.topic,a=t.onReload,c=t.update,u=t.addPost,l=t.setPostInFlight,h=(0,zt.useForum)(),d=h.permission,f=(0,o.useState)(!1),p=f[0],m=f[1],g=(0,o.useState)(0),y=g[0],b=g[1],v=(0,o.useState)(""),w=v[0],_=v[1],x=(0,o.useState)(!1),I=x[0],A=x[1],E=(0,o.useState)({isHidden:!0}),T=E[0],P=E[1],C=(0,o.useState)(null),M=C[0],O=C[1];return(0,r.jsxs)(r.Fragment,{children:[!k(i)(M)&&(0,r.jsx)(S.PopUpModal,{id:"create-topic-info",visible:!0,title:M.title,messageType:M.type,body:M.body,collapsible:M.collapsible,okButton:(0,r.jsx)("a",vr({className:"okButton",onClick:function(){return O(null)}},{children:"OK"})),onClose:function(){return O(null)}}),p&&(0,r.jsx)(S.PopUpModal,{id:"add-gif-modal",visible:!0,title:"Add GIF",body:(0,r.jsx)(mr.AddGIF,{onGifSelect:function(t){_(w.concat("\n  \n"))),m(!1)}}),onClose:function(){return m(!1)}}
1),(0,r.jsx)(rn.Notification,{hidden:T.isHidden,content:null==T?void 0:T.content,type:null==T?void 0:T.type,onClose:function(){return P({isHidden:!0})}}),(0,r.jsx)("div",vr({className:"createPostContainer"},{children:(0,r.jsx)("div",vr({className:"createPostContent"},{children:(0,r.jsxs)("div",{children:[(0,r.jsx)("div",vr({className:"formContainer"},{children:(0,r.jsx)("textarea",{className:"postContent",placeholder:"Type your comment here. We support markdown!",maxLength:800,disabled:!d.readAndWrite,value:w,onChange:function(t){b(br.from(t.target.value,"utf-8").byteLength),_(t.target.value)},name:"post"})})),(0,r.jsxs)("div",vr({className:"textSize"},{children:[y,"/800"]})),(0,r.jsxs)("div",vr({className:"buttonContainer"},{children:[(0,r.jsx)("button",vr({className:"addGIFButton",disabled:!d.readAndWrite,onClick:function(){m(!0)}},{children:(0,r.jsx)("span",{children:"GIF"})})),(0,r.jsxs)("button",vr({className:"createPostButton",type:"submit",disabled:!d.readAndWrite||y>800,onClick:function(t){return wr(e,void 0,void 0,(function(){return _r(this,(function(i){switch(i.label){case 0:return w.length>0?[4,(o=t,wr(e,void 0,Promise,(function(){var t,e,i,d,f=this;return _r(this,(function(p){switch(p.label){case 0:return o.preventDefault(),t={body:w},l(!0),A(!0),[4,h.createForumPost(t,s.postId,n)];case 1:return e=p.sent(),A(!1),_(""),Zt(e)&&Zt(h.wallet)?(i={data:{body:t.body,ts:new Date},poster:h.wallet.publicKey,isTopic:!1,replyTo:s.address,state:"created"},u(i),[4,h.connection.confirmTransaction(e).then((function(){l(!1),P({isHidden:!1,content:(0,r.jsxs)(r.Fragment,{children:["Post created successfully.",(0,r.jsx)(Xe.TransactionLink,{transaction:e})]}),type:S.MessageType.success})})).then((function(){return wr(f,void 0,void 0,(function(){return _r(this,(function(t){return[2,c()]}))}))}))]):[3,3];case 2:return p.sent(),setTimeout((function(){return P({isHidden:!0})}),5e3),a(),b(0),[3,4];case 3:d=e,l(!1),P({isHidden:!0}),O({title:"Something went wrong!",type:S.MessageType.error,body:"The new post could not be created",collapsible:{header:"Error",content:Ut(d)}}),p.label=4;case 4:return[2]}}
1))})))]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}var o}))}))}},{children:[I&&(0,r.jsx)("div",vr({className:"loading"},{children:(0,r.jsx)(Ct.Spinner,{})})),"Post"]}))]}))]})}))}))]})}var Sr={};_(Sr,"EditPost",(()=>Tr),(t=>Tr=t));var xr=m.Buffer,Ir=function(){return Ir=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ir.apply(this,arguments)},Ar=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},Er=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function Tr(t){var e,n,s,a=this,c=t.post,u=t.forumData,l=t.update,h=t.showDividers,d=t.editPostLocal,f=(0,zt.useForum)(),p=f.permission,m=f.wallet,g=(0,o.useState)({show:!1,body:null!==(e=c.data.body)&&void 0!==e?e:"",subj:null!==(n=c.data.subj)&&void 0!==n?n:""}),y=g[0],b=g[1],v=(0,o.useState)(new xr(c.data.body,"utf-8").byteLength),w=v[0],_=v[1],x=(0,o.useState)({isHidden:!0}),I=x[0],A=x[1],E=(0,o.useState)(null),T=E[0],P=E[1],C=function(){var t,e;b({show:!1,body:null!==(t=c.data.body)&&void 0!==t?t:"",subj:null!==(e=c.data.subj)&&void 0!==e?e:""}),_(new xr(c.data.body,"utf-8").byteLength)};return(null===(s=m.publicKey)||void 0===s?void 0:s.equals(c.poster))?(0,r.jsx)("div",Ir({className:"dsp- "},{children:(0,r.jsxs)("div",Ir({className:"editPostContainer"},{children:[(0,r.jsx)(rn.Notification,{hidden:I.isHidden,content:null==I?void 0:I.content,type:null==I?void 0:I.type,onClose:function(){return A({isHidden:!0})}}),y.show&&k(i)(T)&&(0,r.jsx)(S.PopUpModal,{id:"edit-post",visible:!0,title:c.isTopic?"Edit topic":"Edit post",body:(0,r.jsxs)("div",Ir({className:"editPostBody"},{children:[c.isTopic&&(0,r.jsxs)("div",{children:[(0,r.jsx)("label",Ir({className:"editPostLabel"},{children:"Topic title"})),(0,r.jsx)("input",{type:"text",placeholder:"New topic title",className:"editPostInput",value:y.subj,onChange:function(t){return b(Ir(Ir({},y),{subj:t.target.value}))}})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",Ir({className:"editPostLabel"},{children:c.isTopic?"Topic description":"Post content"})),(0,r.jsx)("textarea",{maxLength:800,placeholder:c.isTopic?"New topic description":"New post content",className:"editPostInput description",value:y.body,onChange:function(t){b(Ir(Ir({},y),{body:t.target.value})),_(new xr(t.target.value).byteLength)}}),(0,r.jsxs)("div",Ir({className:"textSize"},{children:[" ",w,"/800 "]}))]})]})),loading:y.loading,onClose:function(){return C()},okButton:(0,r.jsx)("button",Ir({className:"okButton",disabled:(c.isTopic?0===y.subj.length:0===y.body.length)||w>800,onClick:function(){return Ar(a,void 0,void 0,(function(){return Er(this,(function(t){return[2,Ar(a,void 0,void 0,(function(){var t,e,n=this;return Er(this,(function(i){switch(i.label){case 0:return b(Ir(Ir({},y),{loading:!0})),[4,f.editForumPost(u.collectionId,c,{body:y.body,subj:y.subj,meta:c.data.meta})];case 1:return Zt(t=i.sent())?(b({show:!1,loading:!1,body:y.body,subj:y.subj}),A({isHidden:!1,type:S.MessageType.success,content:(0,r.jsxs)(r.Fragment,{children:["The "," ".concat(c.isTopic?"topic":"post"," "),"was edited.",(0,r.jsx)(Xe.TransactionLink,{transaction:t})]})}),d(c,y.body,y.subj),f.connection.confirmTransaction(t).then((function(){return Ar(n,void 0,void 0,(function(){return Er(this,(function(t){return[2,l()]}))}))})),setTimeout((function(){return A({isHidden:!0})}),5e3)):(b(Ir(Ir({},y),{loading:!1})),e=t,C(),P({title:"Something went wrong!",type:S.MessageType.error,body:"The ".concat(c.isTopic?"topic":"post"," could not be edited"),collapsible:{header:"Error",content:Ut(e)}})),[2]}}))}))]}))}))}},{children:"Save"}))}),!k(i)(T)&&(0,r.jsx)(S.PopUpModal,{id:"edit-post-info",visible:!0,title:T.title,messageType:T.type,body:T.body,collapsible:T.collapsible,okButton:(0,r.jsx)("a",Ir({className:"okButton",onClick:function(){return P(null)}},{children:"OK"})),onClose:function(){return P(null)}}
1),h.leftDivider&&(0,r.jsx)("div",{className:"actionDivider"}),(0,r.jsxs)("button",Ir({className:"editPostButton",disabled:!p.readAndWrite,onClick:function(){return b(Ir(Ir({},y),{show:!0}))}},{children:[(0,r.jsx)(N.Edit,{})," ",(0,r.jsx)("span",{children:"Edit"})]})),h.rightDivider&&(0,r.jsx)("div",{className:"actionDivider"})]}))})):null}var Pr={};_(Pr,"GiveAward",(()=>Lr),(t=>Lr=t));var Cr,Mr,Or=function(){return Or=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Or.apply(this,arguments)},Rr=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},Br=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},jr=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function Nr(t){return Rr(this,void 0,Promise,(function(){var e,n,r,i,o;return Br(this,(function(s){switch(s.label){case 0:return e=t.posterId,n=t.amount,r=t.wallet,i=t.connection,o=(new(0,l.Transaction)).add(l.SystemProgram.transfer({fromPubkey:r.publicKey,toPubkey:e,lamports:n*l.LAMPORTS_PER_SOL})),[4,r.sendTransaction(o,i)];case 1:return[2,s.sent()]}}))}))}function Lr(t){var e=this,n=t.collectionId,s=t.post,a=t.onCancel,c=t.onSuccess,u=t.onError,l=(0,zt.useForum)(),h=(0,o.useState)(!1),d=h[0],f=h[1],p=(0,o.useState)(null),m=p[0],g=p[1],y=(0,o.useState)(),b=y[0],v=y[1],w=(0,o.useState)(1),_=w[0],x=w[1],I=(0,o.useState)(),A=I[0],E=I[1],T=(0,o.useState)([]),P=T[0],C=T[1],M=k(i)(b)?"Select type of award":b===Cr.SOL?"How many SOL do you want to award?":"Select NFT",O=(0,r.jsx)("div",Or({className:"awardContent"},{children:k(i)(b)?(0,r.jsxs)("div",{children:["You can award one of your NFTs or select a custom amount of SOL",(0,r.jsxs)("div",Or({className:"typeSelector"},{children:[(0,r.jsxs)("button",Or({className:"nftType",onClick:function(){return Rr(e,void 0,void 0,(function(){return Br(this,(function(t){switch(t.label){case 0:return v(Cr.NFT),[4,Rr(e,void 0,Promise,(function(){var t,e=this;return Br(this,(function(n){switch(n.label){case 0:return[4,l.getNFTMetadataForCurrentUser()];case 1:return Zt(t=n.sent())?t.map((function(t){return Rr(e,void 0,void 0,(function(){return Br(this,(function(e){switch(e.label){case 0:return[4,t.then((function(t){Zt(t)&&C((function(e){return jr(jr([],e,!0),[t],!1)}))})).catch((function(t){console.log("dsp",t)}))];case 1:return e.sent(),[2]}}))}))})):u(t),[2]}}))}))];case 1:return t.sent(),[2]}}))}))}},{children:[(0,r.jsx)(rt.Plus,{}),"NFT"]})),(0,r.jsxs)("button",Or({className:"solType",onClick:function(){return v(Cr.SOL)}},{children:[(0,r.jsx)(ut.SolanaLogo,{color:"white"}),"SOL"]}))]}))]}):(0,r.jsxs)(r.Fragment,{children:[b===Cr.SOL&&(0,r.jsxs)("div",Or({className:"amountInputContainer"},{children:[(0,r.jsx)("div",Or({className:"iconContainer"},{children:(0,r.jsx)(ut.SolanaLogo,{color:"black"})})),(0,r.jsx)(Ge,{className:"amountInput",type:"number",placeholder:"Insert a numeric value bigger than 0",value:1,min:0,step:.
101,onChange:function(t){return x(parseFloat(t))}})]})),b===Cr.NFT&&(0,r.jsx)("div",Or({className:"giftsContainer"},{children:(0,r.jsx)("div",Or({className:"giftsGrid"},{children:0===P.length?(0,r.jsx)("div",Or({className:"noAvailableNFT"},{children:"There are no available NFTs in your wallet"})):P.map((function(t,e){return(0,r.jsxs)("div",Or({className:"giftContainer ".concat(t.mint===(null==A?void 0:A.mint)?"selectedNFT":""),onClick:function(){return E(t)}},{children:[(0,r.jsx)("img",{src:t.uri.toString()}),(0,r.jsx)("div",Or({className:"giftName"},{children:t.name}))]}),e)}))}))}))]})}));return(0,r.jsxs)("div",Or({className:"awardContainer"},{children:[!k(i)(m)&&(0,r.jsx)(S.PopUpModal,{id:"give-award-info",visible:!0,title:m.title,messageType:m.type,body:m.body,collapsible:m.collapsible,okButton:(0,r.jsx)("a",Or({className:"okButton",onClick:function(){return g(null)}},{children:"OK"})),onClose:function(){return g(null)}}),(0,r.jsx)(S.PopUpModal,{id:"give-award",visible:!0,title:M,body:O,loading:d,onClose:function(){return a()},okButton:!k(i)(b)&&(b===Cr.SOL?(0,r.jsx)("button",Or({className:"attachButton",disabled:_<=0,onClick:function(){return Rr(e,void 0,void 0,(function(){return Br(this,(function(t){return[2,Rr(e,void 0,Promise,(function(){var t,e;return Br(this,(function(i){switch(i.label){case 0:f(!0),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Nr({wallet:l.wallet,posterId:s.poster,collectionId:n,amount:_,connection:l.connection})];case 2:return t=i.sent(),f(!1),c((0,r.jsxs)(r.Fragment,{children:["Award attached successfully.",(0,r.jsx)(Xe.TransactionLink,{transaction:t})]})),[3,4];case 3:return e=i.sent(),console.log("dsp",e),f(!1),u(e),[3,4];case 4:return[2]}}
1))}))]}))}))}},{children:"Send"})):(0,r.jsx)("button",Or({className:"confirmAndAwardButton",disabled:k(i)(A),onClick:function(){return Rr(e,void 0,void 0,(function(){return Br(this,(function(t){return[2,Rr(e,void 0,Promise,(function(){var t,e;return Br(this,(function(n){switch(n.label){case 0:return f(!0),k(i)(A)?[3,2]:[4,l.transferNFTs(s.poster,A.mint,l.wallet.sendTransaction)];case 1:Zt(t=n.sent())?(f(!1),c((0,r.jsxs)(r.Fragment,{children:["NFT transferred successfully.",(0,r.jsx)(Xe.TransactionLink,{transaction:t})]}))):(e=t,console.log("dsp",e),f(!1),u(e)),n.label=2;case 2:return[2]}}))}))]}))}))}},{children:"Send"})))})]}))}(Mr=Cr||(Cr={})).NFT="NFT",Mr.SOL="SOL";var Dr={};_(Dr,"PostContent",(()=>Gr),(t=>Gr=t));var zr=m.Buffer,Fr=function(){return Fr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Fr.apply(this,arguments)},Ur=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},Wr=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function Gr(t){var e=this,n=t.forumData,i=t.forum,s=t.userRoles,c=t.topicPosterId,u=t.onDeletePost,l=t.update,h=t.addPost,f=t.editPost,m=t.deletePost,g=t.postInFlight,y=t.setPostInFlight,v=t.participatingModerators,w=t.userIsMod,_=(0,o.useRef)(null),x=i.permission,I=(0,cn.useForumIdentity)(n.collectionId),A=(0,o.useState)(!1),E=A[0],T=A[1],P=(0,o.useState)(t.post),C=P[0],M=P[1],O=(0,o.useState)(!1),R=O[0],B=O[1],j=(0,o.useState)(!1),N=j[0],L=j[1],D=(0,o.useState)(!1),z=D[0],F=D[1],U=(0,o.useState)(""),W=U[0],G=U[1],V=(0,o.useState)(zr.from(W,"utf-8").byteLength),H=V[0],q=V[1],$=(0,o.useState)(!1),Z=$[0],Y=$[1],X=(0,o.useState)(!1),J=X[0],Q=X[1],tt=(0,o.useState)(),et=tt[0],nt=tt[1],rt=(0,o.useState)({isHidden:!0}),it=rt[0],ot=rt[1],at=(0,o.useState)(null),ct=at[0],ut=at[1],lt=(0,o.useMemo)((function(){return t.post}),[t.post]);(0,o.useEffect)((function(){var t=window.location.hash;!(0,a.isNil)(_.current)&&(0,cn.isForumPost)(lt)&&t.split("#")[1]===lt.address.toBase58()&&_.current.scrollIntoView({behavior:"smooth"})}),[_]);var ht=(0,o.useMemo)((function(){return(0,cn.isForumPost)(lt)?or(ir(n.posts,lt)):[]}),[n,lt]),dt=(0,o.useRef)(null),ft="".concat(lt.data.ts.toLocaleDateString(void 0,{year:"numeric",month:"numeric",day:"numeric"})," at ").concat(lt.data.ts.toLocaleTimeString(void 0,{hour:"numeric",minute:"numeric"})),pt=(0,cn.isCreatedPost)(lt),gt=Pn(lt.poster),yt=(I!==cn.ForumIdentity.DegenerateApeAcademy||w)&&!(0,a.isNil)(i.wallet.publicKey)&&!i.wallet.publicKey.equals(lt.poster);return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",Fr({className:"postContentContainer ".concat(g&&pt?"inFlight":"")},{children:[J&&(0,r.jsx)(S.PopUpModal,{id:"add-gif-modal",visible:!0,title:"Add GIF",body:(0,r.jsx)(mr.AddGIF,{onGifSelect:function(t){G(W.concat("\n  \n"))),Q(!1)}}),onClose:function(){return Q(!1)}}),k(b)(ct)&&E&&(0,r.jsx)(S.PopUpModal,{id:"post-delete-confirmation",visible:!0,title:"Are you sure you want to delete this post?",body:"This is permanent and
1you won\u2019t be able to retrieve this comment again. Upvotes and downvotes will go too.",loading:R,okButton:!R&&(0,r.jsx)("a",Fr({className:"acceptDeletePostButton",onClick:function(){return Ur(e,void 0,void 0,(function(){return Wr(this,(function(t){return[2,Ur(e,void 0,Promise,(function(){var t,e,r=this;return Wr(this,(function(o){switch(o.label){case 0:return B(!0),(0,cn.isForumPost)(C)?[4,i.deleteForumPost(C,n.collectionId,s.includes(ie.Moderator))]:[2];case 1:return Zt(t=o.sent())?(m(C),[4,u(t)]):[3,4];case 2:return o.sent(),ut({title:"Success!",type:S.MessageType.success,body:"The post was deleted"}),T(!1),[4,i.connection.confirmTransaction(t).then((function(){return Ur(r,void 0,void 0,(function(){return Wr(this,(function(t){return[2,l()]}))}))}))];case 3:return o.sent(),B(!1),[3,5];case 4:e=t,T(!1),B(!1),ut({title:"Something went wrong!",type:S.MessageType.error,body:"The post could not be deleted",collapsible:{header:"Error",content:Ut(e)}}),o.label=5;case 5:return[2]}}))}))]}))}))}},{children:"Confirm"})),onClose:function(){return T(!1)}}),!k(b)(ct)&&(0,r.jsx)(S.PopUpModal,{id:"post-info",visible:!0,title:null==ct?void 0:ct.title,messageType:null==ct?void 0:ct.type,body:null==ct?void 0:ct.body,okButton:(0,r.jsx)("a",Fr({className:"okInfoButton",onClick:function(){return ut(null)}},{children:"OK"})),onClose:function(){return ut(null)}}),Z&&null!=et&&(0,r.jsx)(Pr.GiveAward,{post:et,collectionId:n.collectionId,onCancel:function(){return Y(!1)},onSuccess:function(t){Y(!1),ot({isHidden:!1,content:t,type:S.MessageType.success}),setTimeout((function(){return ot({isHidden:!0})}),5e3)},onError:function(t){Y(!1),ut({title:"Something went wrong!",type:S.MessageType.error,body:"The award could not be given.",collapsible:{header:"Error",content:null==t?void 0:t.message}})}}),(0,r.jsx)(rn.Notification,{hidden:it.isHidden,content:null==it?void 0:it.content,type:null==it?void 0:it.type,onClose:function(){return ot({isHidden:!0})}}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",Fr({className:"postContentBox"},{children:(0,r.jsxs)("div",Fr({className:"box",ref:_},{children:[(0,r.jsxs)("div",Fr({className:"postHeader"},{children:[(0,r.jsxs)("div",Fr({className:"posterId"},{children:[(0,r.jsx)("div",Fr({className:"icon"},{children:null!=gt?(0,r.jsx)("img",{src:gt.profilePicture.href,style:{borderRadius:"50%"}}):(0,r.jsx)(k(p),{value:null==lt?void 0:lt.poster.toBase58(),alt:"posterID"})})),(0,r.jsx)("div",Fr({className:"walletId"},{children:null!=gt?gt.displayName:lt.poster.toBase58()})),(0,r.jsx)(ei.RoleLabel,{topicOwnerId:c,posterId:null==lt?void 0:lt.poster,moderators:v})]})),(0,r.jsx)("div",Fr({className:"postedAt"},{children:(0,cn.isForumPost)(lt)?(0,r.jsxs)(r.Fragment,{children:[ft,(0,r.jsx)(Fe.AccountInfoLink,{href:"https://solscan.io/account/".concat(lt.address.toBase58(),"?cluster=").concat(i.cluster)})]}):(0,cn.isEditedPost)(lt)?(0,r.jsxs)(r.Fragment,{children:["Confirming edit",(0,r.jsx)("div",Fr({className:"posting"},{children:(0,r.jsx)(Ct.Spinner,{})}))]}):(0,cn.isCreatedPost)(lt)?(0,r.jsxs)(r.Fragment,{children:["Confirming on chain",(0,r.jsx)("div",Fr({className:"posting"},{children:(0,r.jsx)(Ct.Spinner,{})}))]}):null}))]})),(0,r.jsx)("div",Fr({className:"postBody"},{children:(0,r.jsx)(k(d),{children:null==lt?void 0:lt.data.body})})),(0,cn.isForumPost)(lt)&&(0,r.jsxs)("div",Fr({className:"actionsContainer"},{children:[(0,r.jsx)(qe,Fr({scopes:[me]},{children:(0,r.jsx)(fi.Votes,{forumData:n,update:l,post:lt,onDownVotePost:function(){return Ur(e,void 0,void 0,(function(){return Wr(this,(function(t){return[2,i.voteDownForumPost(lt,n.collectionId)]}))}))},onUpVotePost:function(){return Ur(e,void 0,void 0,(function(){return Wr(this,(function(t){return[2,i.voteUpForumPost(lt,n.collectionId)]}))}))},updateVotes:function(t){return function(t){(0,cn.isForumPost)(lt)&&(t?lt.upVotes=lt.upVotes+1:lt.downVotes=lt.downVotes+1)}(t)}})})),(0,r.jsx)(Sr.EditPost,{post:lt,forumData:n,update:function(){return Ur(e,void 0,void 0,(function(){return Wr(this,(function(t){return[2,l()]}))}))},editPostLocal:f,showDividers:{leftDivider:!0,rightDivider:!1}}),(0,cn.isForumPost)(lt)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"actionDiv
1ider"}),(0,r.jsx)(ii.SharePost,{postAddress:lt.address.toBase58()})]}),(0,r.jsx)(qe,Fr({scopes:[ke]},{children:(0,r.jsxs)("div",Fr({className:"right"},{children:[(0,r.jsxs)(qe,Fr({scopes:[_e],posterKey:lt.poster},{children:[(0,r.jsx)("button",Fr({className:"deleteButton",disabled:!x.readAndWrite,onClick:function(){M(t.post),T(!0)}},{children:(0,r.jsx)(mt.Trash,{})})),(0,r.jsx)("div",{className:"actionDivider"})]})),yt&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("button",Fr({className:"awardButton",disabled:!x.readAndWrite,onClick:function(){nt(lt),Y(!0)}},{children:[(0,r.jsx)("span",{children:"Send Token"}),(0,r.jsx)(K.Gift,{})]})),(0,r.jsx)("div",{className:"actionDivider"})]}),(0,r.jsxs)("button",Fr({className:"replyButton",disabled:!x.readAndWrite,onClick:function(){var t;L(!0),null===(t=dt.current)||void 0===t||t.scrollIntoView({behavior:"smooth",block:"center"})}},{children:[(0,r.jsx)("span",{children:"Reply"})," ",(0,r.jsx)(st.Reply,{})]}))]}))}))]}))]}))})),(0,r.jsxs)("div",Fr({className:"repliesSection",hidden:0===ht.length&&!N},{children:[(0,r.jsx)("div",Fr({ref:dt,className:"replyFormContainer ".concat(N?"visible":"")},{children:(0,r.jsxs)("div",Fr({className:"replyForm"},{children:[(0,r.jsx)("textarea",{placeholder:"Type your reply here. We support markdown!",className:"replyTextArea",maxLength:800,value:W,onChange:function(t){G(t.target.value),q(zr.from(t.target.value,"utf-8").byteLength)}}),(0,r.jsxs)("div",Fr({className:"textSize"},{children:[" ",H,"/800 "]})),(0,r.jsxs)("div",Fr({className:"buttonsWrapper"},{children:[N&&(0,r.jsx)("button",Fr({className:"addGIFButton",disabled:!x.readAndWrite,onClick:function(){Q(!0)}},{children:(0,r.jsx)("span",{children:"GIF"})})),(0,r.jsxs)("div",Fr({className:"buttonsContainer"},{children:[(0,r.jsx)("button",Fr({className:"cancelReplyButton",onClick:function(){L(!1),q(zr.from(W,"utf-8").byteLength)}},{children:"Cancel"})),(0,r.jsxs)("button",Fr({className:"postReplyButton",type:"submit",disabled:0===W.length,onClick:function(){return Ur(e,void 0,Promise,(function(){var t,e,o;return Wr(this,(function(s){switch(s.label){case 0:return y(!0),(0,cn.isForumPost)(lt)?(F(!0),[4,i.replyToForumPost(lt,n.collectionId,{body:W})]):[2];case 1:return t=s.sent(),F(!1),Zt(t)?(L(!1),G(""),e={data:{body:W,ts:new Date},poster:i.wallet.publicKey,isTopic:!1,replyTo:lt.address,state:"created"},h(e),[4,i.connection.confirmTransaction(t)]):[3,4];case 2:return s.sent(),[4,l()];case 3:return s.sent(),y(!1),ot({isHidden:!1,content:(0,r.jsxs)(r.Fragment,{children:["Replied successfully.",(0,r.jsx)(Xe.TransactionLink,{transaction:t})]}),type:S.MessageType.success}),setTimeout((function(){return ot({isHidden:!0})}),5e3),[3,5];case 4:o=t,y(!1),ot({isHidden:!0}),console.log("dsp",o),ut({title:"Something went wrong!",type:S.MessageType.error,body:"The reply could not be sent",collapsible:{header:"Error",content:o.message}}),s.label=5;case 5:return[2]}}
1))}))}},{children:[z&&(0,r.jsx)("div",Fr({className:"loading"},{children:(0,r.jsx)(Ct.Spinner,{})})),"Reply"]}))]}))]}))]}))})),(0,r.jsx)("div",Fr({className:"repliesBox"},{children:(0,r.jsx)(qr.PostReplies,{forumData:n,participatingModerators:v,replies:ht,userRoles:s,showGift:yt,topicOwnerId:c,update:function(){return Ur(e,void 0,void 0,(function(){return Wr(this,(function(t){return[2,l()]}))}))},editPost:f,onDeletePost:function(t){return Ur(e,void 0,void 0,(function(){return Wr(this,(function(e){return M(t),T(!0),[2]}))}))},onDownVotePost:function(t){return Ur(e,void 0,void 0,(function(){return Wr(this,(function(e){return[2,i.voteDownForumPost(t,n.collectionId)]}))}))},onUpVotePost:function(t){return Ur(e,void 0,void 0,(function(){return Wr(this,(function(e){return[2,i.voteUpForumPost(t,n.collectionId)]}))}))},onAwardReply:function(t){nt(t),Y(!0)}})}))]}))]})]}))})}var Vr={};_(Vr,"PostList",(()=>Hr),(t=>Hr=t));var Kr=function(){return Kr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Kr.apply(this,arguments)};function Hr(t){var e=t.forumData,n=t.forum,i=t.userRoles,s=t.onDeletePost,a=t.topic,c=t.update,u=t.editPost,l=t.addPost,h=t.deletePost,d=t.postInFlight,f=t.setPostInFlight,p=t.participatingModerators,m=t.userIsMod,g=(0,o.useMemo)((function(){return or(ir(e.posts,a))}),[e]),y=(0,r.jsx)("div",Kr({className:"emptyPostsList"},{children:(0,r.jsx)("div",Kr({className:"text"},{children:"The topic has no comments"}))}));return(0,r.jsx)("div",Kr({className:"postListContainer"},{children:0===g.length?y:g.map((function(t){return(0,r.jsx)("div",{children:(0,r.jsx)(Dr.PostContent,{forum:n,forumData:e,post:t,userRoles:i,topicPosterId:a.poster,onDeletePost:s,update:c,participatingModerators:p,addPost:l,editPost:u,deletePost:h,postInFlight:d,setPostInFlight:f,userIsMod:m})},"post_".concat(t.data.body))}))}))}var qr={};_(qr,"PostReplies",(()=>ti),(t=>ti=t));var $r={};_($r,"ReplyEntity",(()=>Jr),(t=>Jr=t));var Zr=function(){return Zr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Zr.apply(this,arguments)},Yr=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},Xr=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function Jr(t){var e=this,n=t.reply,i=t.topicOwnerId,s=t.participatingModerators,c=t.forumData,u=t.update,l=t.showGift,h=t.updateVotes,f=t.onUpVotePost,m=t.onDownVotePost,g=t.editPost,y=t.onAwardReply,b=t.onDeletePost,v=(0,zt.useForum)(),w=(0,o.useRef)(null),_=v.permission,S=(0,cn.isForumPost)(n),x=Pn(n.poster);return(0,o.useEffect)((function(){var t=window.location.hash;!(0,a.isNil)(w.current)&&S&&t.split("#")[1]===n.address.toBase58()&&w.current.scrollIntoView({behavior:"smooth"})}),[w]),(0,r.jsxs)("div",Zr({className:"replyContent ".concat(S?"":"inFlight")},{children:[(0,r.jsxs)("div",Zr({className:"replyHeader"},{children:[(0,r.jsxs)("div",Zr({className:"posterId",ref:w}
1,{children:[(0,r.jsx)("div",Zr({className:"icon"},{children:null!=x?(0,r.jsx)("img",{src:x.profilePicture.href,style:{borderRadius:"50%"}}):(0,r.jsx)(k(p),{value:n.poster.toBase58(),alt:"posterID"})})),(0,r.jsx)("div",Zr({className:"walletId"},{children:null!=x?x.displayName:n.poster.toBase58()})),(0,r.jsx)(ei.RoleLabel,{topicOwnerId:i,posterId:n.poster,moderators:s})]})),(0,r.jsx)("div",Zr({className:"postedAt"},{children:S?(0,r.jsxs)(r.Fragment,{children:[function(t){return"".concat(t.data.ts.toLocaleDateString(void 0,{year:"numeric",month:"numeric",day:"numeric"})," at ").concat(t.data.ts.toLocaleTimeString(void 0,{hour:"numeric",minute:"numeric"}))}(n),(0,r.jsx)(Fe.AccountInfoLink,{href:"https://solscan.io/account/".concat(n.address.toBase58(),"?cluster=").concat(v.cluster)})]}):(0,r.jsxs)(r.Fragment,{children:["Confirming on chain",(0,r.jsx)("div",Zr({className:"posting"},{children:(0,r.jsx)(Ct.Spinner,{})}))]})}))]})),(0,r.jsx)("div",Zr({className:"replyBody"},{children:(0,r.jsx)(k(d),{children:null==n?void 0:n.data.body})})),(0,r.jsxs)("div",Zr({className:"replyActionsContainer"},{children:[(0,r.jsxs)("div",Zr({className:"leftBox"},{children:[(0,cn.isForumPost)(n)&&(0,r.jsx)(qe,Zr({scopes:[me]},{children:(0,r.jsx)(fi.Votes,{forumData:c,update:u,updateVotes:function(t){return h(t,n)},onUpVotePost:function(){return Yr(e,void 0,void 0,(function(){return Xr(this,(function(t){return[2,f(n)]}))}))},onDownVotePost:function(){return Yr(e,void 0,void 0,(function(){return Xr(this,(function(t){return[2,m(n)]}))}))},post:n})})),(0,cn.isForumPost)(n)&&(0,r.jsx)(Sr.EditPost,{post:n,forumData:c,update:function(){return Yr(e,void 0,void 0,(function(){return Xr(this,(function(t){return[2,u()]}))}))},editPostLocal:g,showDividers:{leftDivider:!0,rightDivider:!1}}),S&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"actionDivider"}),(0,r.jsx)(ii.SharePost,{postAddress:n.address.toBase58()})]})]})),(0,cn.isForumPost)(n)&&(0,r.jsxs)("div",Zr({className:"rightBox"},{children:[(0,r.jsx)(qe,Zr({scopes:[Se],posterKey:n.poster},{children:(0,r.jsx)("button",Zr({className:"deleteButton",disabled:!_.readAndWrite,onClick:function(){return Yr(e,void 0,void 0,(function(){return Xr(this,(function(t){return[2,b(n)]}))}))}},{children:(0,r.jsx)(mt.Trash,{})}))})),(0,r.jsx)(qe,Zr({scopes:[ke]},{children:l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"actionDivider"}),(0,r.jsxs)("button",Zr({className:"awardButton",disabled:!_.readAndWrite,onClick:function(){return y(n)}},{children:[(0,r.jsx)("span",{children:"Send Token"}),(0,r.jsx)(K.Gift,{})]}))]})}))]}))]}))]}))}var Qr=function(){return Qr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Qr.apply(this,arguments)};function ti(t){var e=t.forumData,n=t.participatingModerators,i=t.topicOwnerId,s=t.onDeletePost,a=t.onDownVotePost,c=t.onUpVotePost,u=t.onAwardReply,l=t.update,h=t.showGift,d=t.editPost,f=(0,o.useMemo)((function(){return or(t.replies)}),[t.replies]),p=function(t,e){var n=f.findIndex((function(t){return"postId"in t&&t.postId===e.postId}));t?(e.upVotes=e.upVotes+1,f[n]=e):(e.downVotes=e.downVotes+1,f[n]=e)};return 0===f.length?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)("div",Qr({className:"repliesContainer"},{children:f.map((function(t,o){return(0,r.jsx)($r.ReplyEntity,{reply:t,updateVotes:p,topicOwnerId:i,participatingModerators:n,forumData:e,update:l,onUpVotePost:c,onDownVotePost:a,editPost:d,onAwardReply:u,onDeletePost:s,showGift:h},o)}))}))}var ei={};_(ei,"RoleLabel",(()=>ri),(t=>ri=t));var ni=function(){return ni=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ni.apply(this,arguments)};function ri(t){var e=t.topicOwnerId,n=t.posterId,o=t.moderators,s=!k(i)(o)&&o.some((function(t){return t.equals(n)})),a=e.equals(n);return(0,r.jsxs)("div",ni({className:"roleLabelContainer"},{children:[a&&(0,r.jsx)("div",ni({className:"roleLabel op"},{children:"op"})),s&&(0,r.jsx)("div",ni({className:"roleLabel mod"},{children:"mod"}))]}))}var ii={};_(ii,"SharePost",(()=>si),(t=>si=t));var oi=function(){return oi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},oi.apply(this,arguments)};function si(t){var e=this,n=t.postAddress,i=(0,o.useState)({isHidden:!0}),s=i[0],a=i[1];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(rn.Notification,{hidden:s.isHidden,c
1ontent:null==s?void 0:s.content,type:null==s?void 0:s.type,onClose:function(){return a({isHidden:!0})}}),(0,r.jsx)("button",oi({type:"button",onClick:function(){return function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}(e,void 0,Promise,(function(){return function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}(this,(function(t){switch(t.label){case 0:return window.location.replace("#".concat(n)),[4,navigator.clipboard.writeText(window.location.href)];case 1:return t.sent(),a({isHidden:!1,content:"Link copied successfully",type:S.MessageType.info}),setTimeout((function(){return a({isHidden:!0})}),5e3),[2]}}))}))}},{children:(0,r.jsx)(x.Chain,{})}))]})}var ai={};_(ai,"TopicContent",(()=>di),(t=>di=t));var ci=function(){return ci=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ci.apply(this,arguments)},ui=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},li=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function hi(t){var e,n,o=t.isGated,s=t.topic,a=t.forum,c=t.participatingModerators,u=k(i)(s)?"-":"".concat(s.data.ts.toLocaleDateString(void 0,{year:"numeric",month:"numeric",day:"numeric"})," at ").concat(s.data.ts.toLocaleTimeString(void 0,{hour:"numeric",minute:"numeric"})),l=Pn(s.poster);return(0,r.jsxs)("div",ci({className:"topicHeader"},{children:[(0,r.jsxs)("div",ci({className:"topicTitle"},{children:[(0,r.jsxs)("div",ci({className:"posted"},{children:[(0,r.jsxs)("div",ci({className:"postedBy"},{children:[(0,r.jsx)("div",ci({className:"icon"},{children:null!=l?(0,r.jsx)("img",{src:l.profilePicture.href,style:{borderRadius:"50%"}}):(0,r.jsx)(k(p),{value:s.poster.toBase58(),alt:"posterID"})})),(0,r.jsx)("div",ci({className:"posterId"},{children:null!=l?l.displayName:s.poster.toBase58()})),(0,r.jsx)(ei.RoleLabel,{topicOwnerId:s.poster,posterId:s.poster,moderators:c})]})),(0,r.jsxs)("div",ci({className:"postedAt"},{children:[u,(0,r.jsx)(Fe.AccountInfoLink,{href:"https://solscan.io/account/".concat(s.address.toBase58(),"?cluster=").concat(a.cluster)})]}))]})),(0,cn.isEditedPost)(s)?(0,r.jsx)(Ct.Spinner,{}):(0,r.jsxs)("div",ci({className:"subj"},{children:[o&&(0,r.jsx)("div",ci({className:"gatedTopic"},{children:(0,r.jsx)(X.Lock,{})})),(0,r.jsx)(k(d),{children:null!==(e=null==s?void 0:s.data.subj)&&void 0!==e?e:"subject"})]}))]})),!(0,cn.isEditedPost)(s)&&(0,r.jsx)("div",ci({className:"topicBody"},{children:(0,r.jsx)(k(d),{children:null!==(n=null==s?void 0:s.data.body)&&void 0!==n?n:"body of the topic"})}))]}))}function di(t){var e,n=this,a=t.forum,c=t.forumData,u=t.userRoles,l=t.update,h=t.addPost,d=t.editPost,f=t.deletePost,p=t.updateVotes,m=t.topic,g=t.participatingModerators,y=(0,o.useMemo)((function(){return ir(c.posts,m)}),[c]),b=(0,(0,zt.usePath)().buildForumPath)(c.collectionId.toBase58()
1),v=m.settings.find((function(t){return t.postRestriction})),w=(0,o.useMemo)((function(){return k(i)(v)||k(i)(v.postRestriction)?[]:xn(v.postRestriction.postRestriction)}),[]),_=(0,o.useState)(!1),x=_[0],I=_[1],A=(0,o.useState)(!1),E=A[0],T=A[1],P=(0,o.useState)(!0),C=P[0],M=P[1],O=a.permission,R=(0,o.useState)(),B=R[0],j=R[1],N=u.includes(ie.Moderator),L=(0,cn.useForumIdentity)(c.collectionId),D=(0,o.useState)(!1),z=D[0],F=D[1],U=(0,o.useState)(!1),W=U[0],G=U[1],V=(0,o.useState)(null),H=V[0],q=V[1],$=(0,o.useState)(!1),Z=$[0],Y=$[1];return(0,r.jsxs)(r.Fragment,{children:[!k(i)(H)&&(0,r.jsx)(S.PopUpModal,{id:"topic-info",visible:!0,title:H.title,messageType:H.type,body:H.body,loading:E,collapsible:H.collapsible,okButton:(0,r.jsx)("button",ci({className:"okButton",onClick:function(){return q(null)}},{children:"OK"})),onClose:function(){return q(null)}}),k(s).send("pageview"),z&&k(i)(H)&&(0,r.jsx)(S.PopUpModal,{id:"add-access-token",visible:!0,title:"Limit post access",body:(0,r.jsxs)("div",{children:[(0,r.jsx)("label",ci({className:"addModeratorsLabel"},{children:"Current NFT Collection IDs"})),0===w.length&&(0,r.jsx)("div",ci({className:"noRestriction"},{children:"The topic has no restriction"})),w.map((function(t){return(0,r.jsx)("div",ci({className:"currentAccessToken"},{children:t}),t)}))]}),onClose:function(){return F(!1)}}),x&&(0,r.jsx)(S.PopUpModal,{id:"topic-delete-confirmation",visible:!0,title:"Are you sure you want to delete this topic?",body:"This is permanent and you won't be able to access this topic again. All the posts here will be deleted too.",loading:E,okButton:(0,r.jsx)("a",ci({className:"acceptDeleteTopicButton",onClick:function(){return ui(n,void 0,Promise,(function(){var t,e;return li(this,(function(n){switch(n.label){case 0:return T(!0),[4,a.deleteForumPost(m,c.collectionId,u.includes(ie.Moderator))];case 1:return t=n.sent(),I(!1),q({title:"Confirming",body:(0,r.jsx)("div",{children:"The topic is being deleted and you will be redirected back to the forum"})}),Zt(t)?[4,a.connection.confirmTransaction(t)]:[3,3];case 2:return n.sent(),q({title:"Success!",type:S.MessageType.success,body:(0,r.jsx)("div",{children:"Topic deleted"})}),location.assign("".concat(b).concat(location.search)),[3,4];case 3:e=t,T(!1),I(!1),q({title:"Something went wrong!",type:S.MessageType.error,body:"The topic could not be deleted",collapsible:{header:"Error",content:Ut(e)}}),n.label=4;case 4:return[2]}}
1))}))}},{children:"Confirm"})),onClose:function(){return I(!1)}}),W&&(0,r.jsx)(Pr.GiveAward,{post:m,collectionId:c.collectionId,onCancel:function(){return G(!1)},onSuccess:function(t){G(!1),M(!1),j({content:t,type:S.MessageType.success}),setTimeout((function(){return M(!0)}),5e3)},onError:function(t){G(!1),q({title:"Something went wrong!",type:S.MessageType.error,body:"The award could not be given.",collapsible:{header:"Error",content:null==t?void 0:t.message}})}}),(0,r.jsxs)("div",ci({className:"topicContentBox"},{children:[(0,r.jsxs)("div",ci({className:"activityInfo"},{children:[(0,r.jsx)(qe,ci({scopes:[me]},{children:(0,r.jsx)(fi.Votes,{forumData:c,update:l,onDownVotePost:function(){return ui(n,void 0,void 0,(function(){return li(this,(function(t){return[2,a.voteDownForumPost(m,c.collectionId)]}))}))},onUpVotePost:function(){return ui(n,void 0,void 0,(function(){return li(this,(function(t){return[2,a.voteUpForumPost(m,c.collectionId)]}))}))},post:m,updateVotes:function(t){return p(t)}})})),(0,r.jsxs)("div",ci({className:"commentsContainer"},{children:[(0,r.jsx)("div",ci({className:"image"},{children:(0,r.jsx)(tt.MessageSquare,{})})),y.length]}))]})),(0,r.jsxs)("div",ci({className:"headerAndActions"},{children:[(0,r.jsx)(hi,{topic:m,forum:a,participatingModerators:g,isGated:w.length>0}),(0,r.jsxs)("div",ci({className:"topicToolsContainer"},{children:[(0,r.jsxs)("div",ci({className:"topicTools"},{children:[(0,r.jsxs)(qe,ci({scopes:[pe],posterKey:m.poster},{children:[(0,r.jsx)("button",ci({className:"moderatorTool",disabled:!O.readAndWrite,onClick:function(){return I(!0)}},{children:(0,r.jsx)("div",ci({className:"delete"},{children:(0,r.jsx)(mt.Trash,{})}))})),(0,r.jsx)("div",{className:"actionDivider"})]})),(0,r.jsx)(Sr.EditPost,{post:m,forumData:c,update:function(){return ui(n,void 0,void 0,(function(){return li(this,(function(t){return[2,l()]}))}))},editPostLocal:d,showDividers:{leftDivider:!1,rightDivider:!0}}),(0,r.jsx)("div",ci({className:"lock"},{children:(0,r.jsx)(X.Lock,{})})),(0,r.jsxs)("button",ci({className:"moderatorTool",disabled:!O.readAndWrite,onClick:function(){return F(!0)}},{children:[(0,r.jsx)("span",{children:"Manage post access"}),(0,r.jsx)("div",ci({className:"lock"},{children:(0,r.jsx)(X.Lock,{})}))]}))]})),(L!==cn.ForumIdentity.DegenerateApeAcademy||N)&&!(null===(e=a.wallet.publicKey)||void 0===e?void 0:e.equals(m.poster))&&(0,r.jsx)(qe,ci({scopes:[ke]},{children:(0,r.jsxs)("button",ci({className:"awardButton",disabled:!O.readAndWrite,onClick:function(){return G(!0)}},{children:[(0,r.jsx)("span",{children:"Send Token"}),(0,r.jsx)(K.Gift,{})]}))}))]})),(0,r.jsx)(qe,ci({scopes:[we]},{children:(0,r.jsx)(pr.CreatePost,{topic:m,collectionId:c.collectionId,update:l,addPost:h,onReload:function(){},setPostInFlight:Y})}))]}))]})),(0,r.jsx)(rn.Notification,{hidden:C,content:null==B?void 0:B.content,type:null==B?void 0:B.type,onClose:function(){return M(!0)}}),(0,r.jsx)(Vr.PostList,{forum:a,forumData:c,participatingModerators:g,update:l,addPost:h,editPost:d,deletePost:f,topic:m,userIsMod:null!=N&&N,onDeletePost:function(t){return ui(n,void 0,void 0,(function(){return li(this,(function(e){return M(!1),j({content:(0,r.jsxs)(r.Fragment,{children:["Post deleted successfully.",(0,r.jsx)(Xe.TransactionLink,{transaction:t})]}),type:S.MessageType.success}),setTimeout((function(){return M(!0)}),5e3),[2]}))}))},userRoles:u,postInFlight:Z,setPostInFlight:Y})]})}var fi={};_(fi,"Votes",(()=>yi),(t=>yi=t));var pi=function(){return pi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},pi.apply(this,arguments)},mi=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},gi=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
1function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function yi(t){var e=this,n=(0,zt.useForum)().permission,s=t.post,a=t.onDownVotePost,c=t.onUpVotePost,u=t.updateVotes,l=(t.update,t.forumData),h=(0,o.useState)(!0),d=h[0],f=h[1],p=(0,o.useState)(),m=p[0],g=p[1],y=(0,o.useState)(!1),b=y[0],v=y[1],w=(0,o.useState)(!1),_=w[0],x=w[1],I=(0,o.useState)(!1),A=I[0],E=I[1],T=(0,o.useState)(null),P=T[0],C=T[1];return(0,o.useEffect)((function(){mi(e,void 0,void 0,(function(){var t;return gi(this,(function(e){return Zt(l.votes)&&((null==(t=l.votes.find((function(t){return t.postId===s.postId})))?void 0:t.upVote)?(x(!0),E(!1)):!1===(null==t?void 0:t.upVote)&&(E(!0),x(!1))),[2]}))}))}),[l.votes]),(0,r.jsxs)(r.Fragment,{children:[!k(i)(P)&&(0,r.jsx)(S.PopUpModal,{id:"vote-info",visible:!0,title:P.title,messageType:P.type,body:P.body,collapsible:P.collapsible,okButton:(0,r.jsx)("a",pi({className:"okButton",onClick:function(){return C(null)}},{children:"OK"})),onClose:function(){return C(null)}}),(0,r.jsxs)("div",pi({className:"votePostContainer"},{children:[(0,r.jsx)(rn.Notification,{hidden:d,content:null==m?void 0:m.content,type:null==m?void 0:m.type,onClose:function(){return f(!0)}}),(0,r.jsxs)("div",pi({className:"votePostContent"},{children:[(0,r.jsx)("button",pi({className:"votePostButton upVote"+(_?"d":""),disabled:_||!n.readAndWrite,onClick:function(){return mi(e,void 0,void 0,(function(){var t,e;return gi(this,(function(n){switch(n.label){case 0:return v(!0),[4,c()];case 1:return Zt(t=n.sent())?(u(!0),x(!0),E(!1),v(!1),f(!1),g({content:(0,r.jsxs)(r.Fragment,{children:["You voted!",(0,r.jsx)(Xe.TransactionLink,{transaction:t})]}),type:S.MessageType.success}),setTimeout((function(){return f(!0)}),5e3)):(e=t,console.log("dsp",e),C({title:"Something went wrong!",type:S.MessageType.error,body:"The post could not be up voted",collapsible:{header:"Error",content:Ut(e)}}),v(!1)),[2]}}))}))}},{children:(0,r.jsx)(_t.Vote,{isUpVote:!0})})),b?(0,r.jsx)("div",pi({className:"spinnerContainer"},{children:(0,r.jsx)(Ct.Spinner,{})})):(0,r.jsx)("div",pi({className:"currentVotes"},{children:s.upVotes-s.downVotes})),(0,r.jsx)("button",pi({className:"votePostButton downVote"+(A?"d":""),disabled:A||!n.readAndWrite,onClick:function(t){return mi(e,void 0,void 0,(function(){var e,n;return gi(this,(function(i){switch(i.label){case 0:return t.preventDefault(),v(!0),[4,a()];case 1:return Zt(e=i.sent())?(u(!1),E(!0),x(!1),f(!1),g({content:(0,r.jsxs)(r.Fragment,{children:["You voted!",(0,r.jsx)(Xe.TransactionLink,{transaction:e})]}),type:S.MessageType.success}),setTimeout((function(){return f(!0)}),5e3),v(!1)):(n=e,console.log("dsp",n),C({title:"Something went wrong!",type:S.MessageType.error,body:"The post could not be down voted.",collapsible:{header:"Error",content:Ut(n)}}),v(!1)),[2]}}))}))}},{children:(0,r.jsx)(_t.Vote,{})}))]}))]}))]})}var bi={};_(bi,"StarsAlert",(()=>wi),(t=>wi=t));var vi=function(){return vi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},vi.apply(this,arguments)};function wi(){return(0,r.jsx)("div",vi({className:"starsAlert"},{children:(0,r.jsx)("div",vi({className:"alertContainer"},{children:(0,r.jsxs)("div",vi({className:"alertContent"},{children:[(0,r.jsx)($.Info,{}),(0,r.jsx)("div",vi({className:"alertText"},{children:"Please note: Official Degenerate Gold Star Voucher NFTs will be minted by Degen9nCBXi84Mw88qAW4YWLZ1azni4AcvDcax1LgTxH and given value using the Degenerate Star Program (StarLA9YsjQc6P21ALscSkXKE7mqUGsjfhCGBwmJPfS). Official Vouchers do not have any links in the metadata. Stay
1safe Degens\u2014don't click any random links you aren't sure about!"}))]}))}))}))}var _i=function(){return _i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},_i.apply(this,arguments)},ki=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},Si=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function xi(t){var e=t.forumData,n=t.forumObject,o=t.basicInfo,a=t.update,c=n.permission;if(k(i)(e)){var u=(0,r.jsxs)("div",_i({className:"confirmingBanner"},{children:[(0,r.jsxs)("div",_i({className:"title"},{children:[(0,r.jsx)("div",_i({className:"animation"},{children:(0,r.jsx)(k(f),{loop:!0,animationData:k(De)})})),(0,r.jsx)("div",_i({className:"text"},{children:"The network is confirming your forum."}))]})),(0,r.jsx)("div",_i({className:"subtitle"},{children:"When it's ready, the page will reload itself. This may take a few seconds."}))]}));if(k(i)(o))return(0,r.jsx)(Ct.Spinner,{});var l=(0,r.jsxs)("div",_i({className:"forumContentHeader"},{children:[(0,r.jsx)("div",_i({className:"titleBox"},{children:(0,r.jsx)(k(d),{children:o.title})})),(0,r.jsxs)("div",_i({className:"descriptionBox"},{children:[(0,r.jsx)("div",_i({className:"description"},{children:(0,r.jsx)(k(d),{children:o.desc})})),(0,r.jsxs)("button",_i({className:"createTopicButton",type:"button",disabled:!0},{children:[(0,r.jsx)("div",_i({className:"buttonImageContainer"},{children:(0,r.jsx)(rt.Plus,{})})),"Create Topic"]}))]}))]}));return(0,r.jsx)("div",_i({className:"confirmingWrapper"},{children:(0,r.jsxs)("div",_i({className:"forumContent"},{children:[(0,r.jsx)(r.Fragment,{children:k(s).send("pageview")}),(0,r.jsxs)("div",_i({className:"forumContentBox"},{children:[!c.readAndWrite&&(0,r.jsx)(tn.ConnectionAlert,{}),u,l]})),(0,r.jsx)("div",{className:"toolsWrapper"}),(0,r.jsx)("div",_i({className:"topicListWrapper"},{children:(0,r.jsx)(er.TopicList,{})}))]}))}))}return(0,r.jsx)(Ii,{forumObject:n,initialForumData:e,update:a})}function Ii(t){var e,n,a,c,u=this,l=t.initialForumData,h=t.forumObject,f=t.update,p=h.permission,m=(0,zt.usePath)().buildTopicPath,g=(0,o.useState)(l),y=g[0],b=g[1];(0,o.useEffect)((function(){b(l)}),[l]);var v=(0,cn.useForumIdentity)(y.collectionId),w=(0,o.useState)(),_=w[0],x=w[1],I=(0,o.useState)(!1),A=I[0],E=I[1],T=(0,o.useState)(!1),P=T[0],C=T[1],M=(0,o.useState)(""),O=M[0],R=M[1],B=(0,o.useState)({isHidden:!0}),j=B[0],N=B[1],L=(0,o.useState)([]),D=L[0],z=L[1],F=(0,o.useState)(!1),U=F[
10],W=F[1],G=(0,o.useState)({show:!1,removing:!1}),V=G[0],K=G[1],H=(0,o.useState)((function(){return Zt(y.restriction)?xn(y.restriction):[]})),q=H[0],$=H[1],Z=(0,o.useState)(""),Y=Z[0],J=Z[1],Q=(0,o.useState)(1),tt=Q[0],et=Q[1],nt=(0,o.useState)(!1),rt=nt[0],it=nt[1],ot=(0,o.useState)(null),st=ot[0],at=ot[1];(0,o.useEffect)((function(){if(!k(i)(_)){var t=l.posts.filter((function(t){return t.isTopic})),e=m(l.collectionId.toBase58(),t[0].postId);location.assign("".concat(e).concat(location.search)),x(void 0)}}),[l.posts]);var ct=(0,r.jsxs)("div",_i({className:"forumContentHeader"},{children:[(0,r.jsxs)("div",_i({className:"titleBox"},{children:[q.length>0&&(0,r.jsx)("div",_i({className:"gatedForum"},{children:(0,r.jsx)(X.Lock,{})})),(0,r.jsx)(k(d),{children:y.description.title})]})),(0,r.jsxs)("div",_i({className:"descriptionBox"},{children:[(0,r.jsx)("div",_i({className:"description"},{children:(0,r.jsx)(k(d),{children:y.description.desc})})),(0,r.jsx)(Bn.CreateTopic,{forumObject:h,forumData:l,currentForumAccessToken:q,topicInFlight:function(t){x(""===t?void 0:{title:t})},update:f})]}))]}));return(0,o.useEffect)((function(){!function(t){try{if(t.length>0){var e=En(t);z(e)}else z([])}catch(t){z([]),N({isHidden:!1,content:(0,r.jsxs)(r.Fragment,{children:["Error on limiting access: ",t.message]}),type:S.MessageType.error})}}(Y)}),[Y]),(0,o.useEffect)((function(){"NFT"===O?(E(!0),C(!1)):"SPL"===O?(E(!1),C(!0)):(E(!1),C(!1))}),[O]),(0,r.jsx)("div",_i({className:"dsp- "},{children:(0,r.jsx)("div",_i({className:"forumContent"},{children:(0,r.jsxs)(r.Fragment,{children:[k(s).send("pageview"),(0,r.jsx)(rn.Notification,{hidden:j.isHidden,content:null==j?void 0:j.content,type:null==j?void 0:j.type,onClose:function(){return N({isHidden:!0})}}),!k(i)(st)&&(0,r.jsx)(S.PopUpModal,{id:"create-topic-info",visible:!0,title:st.title,messageType:st.type,body:st.body,collapsible:st.collapsible,onClose:function(){return at(null)},okButton:(0,r.jsx)("a",_i({className:"okButton",onClick:function(){return at(null)}},{children:"OK"}))}),U&&k(i)(st)&&(0,r.jsx)(S.PopUpModal,{id:"add-access-token",visible:!0,title:"Limit forum access",body:(0,r.jsxs)("div",_i({className:"addModeratorsBody"},{children:[(0,r.jsxs)("div",_i({className:"gateCheckbox"},{children:[(0,r.jsx)("div",_i({className:"createTopicLabel"},{children:"Add a Token Gate?"})),(0,r.jsxs)("select",_i({value:O,onChange:function(t){return R(t.target.value)},className:"addTokenGateSelect"},{children:[(0,r.jsx)("option",_i({value:""},{children:"Select a token type"})),(0,r.jsx)("option",_i({value:"NFT"},{children:"Metaplex NFT"})),0===q.length&&(0,r.jsx)("option",_i({value:"SPL"},{children:"SPL Token"}))]}))]})),A&&(0,r.jsxs)("div",{children:[(0,r.jsx)("label",_i({className:"addModeratorsLabel"},{children:"Add new NFT Collection ID"})),(0,r.jsx)("div",{children:"You can enter a list of Metaplex NFT Collection IDs here such that only holders of NFTs in the collection can participate in this forum."}),(0,r.jsx)("input",{type:"text",placeholder:"Enter NFT Collection IDs as a comma separted list",className:"newAccessToken",name:"accessToken",value:Y,onChange:function(t){return J(t.target.value)}})]}),P&&(0,r.jsxs)("div",_i({className:"addSPLToken"},{children:[(0,r.jsx)("span",_i({className:"createTopicLabel"},{children:"Limit post access by SPL Mint ID"})),(0,r.jsx)("input",{type:"text",placeholder:"Token mint ID",className:"newAccessToken",name:"accessToken",value:Y,onChange:function(t){J(t.target.value)}}),(0,r.jsx)("span",_i({className:"createTopicLabel"},{children:"Amount"})),(0,r.jsx)(Ge,{type:"number",value:1,min:0,step:.01,className:"newAccessToken",onChange:function(t){et(parseFloat(t))}})]})),Y.length>0&&D.map((function(t){var e=t.toBase58();return(0,r.jsx)("li",_i({className:"addedIds"},{children:(0,r.jsx)("div",_i({className:"displayName"},{children:e}))}),e)})),(0,r.jsx)("label",_i({className:"addModeratorsLabel"},{children:"Current NFT Collection ID"})),0===q.length?(0,r.jsx)("div",_i({className:"noRestriction"},{children:"The forum has no restriction"})):(0,r.jsx)("ul",{children:q.map((function(t,e){return(0,r.jsxs)("li",_i({className:"currentToken"},{children:[(0,r.jsx)("div",_i({className:"token"},{children:t})),(0,r.jsx)("div",_i({onClick:function(){W(!1),K(_i(_i({},V),{show:!0,token:t}))}},{children:(0,r.jsx)(mt.Trash,{})}))]}),e)}))})]})),loading:rt,onClose:function(){W(!1),C(!1),E(!1),J("")},okButton:(0,r.jsx)("button",_i({className:"okButton",onClick:function(){return ki(u,void 0,void 0,(function(){return Si(this,(function(t){return[2,ki(u,void 0,Promise,(function(){var t,e,n,i,o,s,a;return Si(this,(function(c){switch(c.label){case 0:return it(!0),A?(t=In(Y,Zt(y.restriction)?y.restriction:void 0),[3,5]):[3,1];case 1:return c.trys.push([1,4,,5]),Zt(e=kn(Y))?[4,h.connection.getTokenSupply(e)]:[3,3];case 2:n=c.sent(),t=An(Y,tt,n.value.decimals),c.label=3;case 3:return[3,5];case 4:return i=c.sent(),it(!1),at({title:"Something went wrong!",type:S.MessageType.error,body:"The topic could not be created",collapsible:{header:"Error",content:Ut(i)}}),W(!1),[2];case 5:return Wt(t)?(a=t,it(!1),W(!1),at({title:"Something went wrong!",type:S.MessageType.error,body:"The access token could not be added",collapsible:{header:"Error",content:Ut(a)}}),[2]):(o=xn(t),[4,h.setForumPostRestriction(y.collectionId,t)]);case 6:return Zt(s=c.sent())?($(q.concat([Y])),J(""),W(!1),it(!1),E(!1),C(!1),at({title:"Success!",type:S.MessageType.success,body:(0,r.jsxs)("div",_i({className:"successBody"},{children:[(0,r.jsx)("div",{children:"The access token was added"}),(0,r.jsx)(Xe.TransactionLink,{transaction:s})]}))}),$(o)):(a=s,it(!1),W(!1),at({title:"Something went wrong!",type:S.MessageType.error,body:"The access token could not be added",collapsible:{header:"Error",content:Ut(a)}})),[2]}}))}))]}))}))}},{children:"Save"}))}),V.show&&!k(i)(V.token)&&k(i)(st)&&(0,r.jsx)(S.PopUpModal,{id:"remove-access-token",visible:!0,title:"Are you sure you want to remove NFT Collection ID?",body:(0,r.jsxs)("div",{children:["This action will remove the token"," ".concat(V.token.substring(0,4),"..."),"".concat(V.token.slice(-4)," ")," from gating the forum."]}),loading:V.removing,onClose:function(){return K({show:!1,removing:!1})},okButton:(0,r.jsx)("button",_i({className:"okButton",onClick:function(){return ki(u,void 0,void 0,(function(){return Si(this,(function(t){return[2,ki(u,void 0,Promise,(function(){var t,e,n,i;return Si(this,(function(o){switch(o.label){case 0:return K(_i(_i({},V),{removing:!0})),(t=q.filter((function(t){return t!==V.token}
1))).length>0?Wt(n=In(t.join(",")))?(i=n,K({show:!1,removing:!1}),at({title:"Something went wrong!",type:S.MessageType.error,body:"The access token could not be removed",collapsible:{header:"Error",content:Ut(i)}}),[2]):[4,h.setForumPostRestriction(y.collectionId,n)]:[3,2];case 1:return e=o.sent(),[3,4];case 2:return[4,h.deleteForumPostRestriction(y.collectionId)];case 3:e=o.sent(),o.label=4;case 4:return $(t),K({show:!1,removing:!1}),Zt(e)?at({title:"Success!",type:S.MessageType.success,body:(0,r.jsxs)("div",_i({className:"successBody"},{children:[(0,r.jsx)("div",{children:"The access token was removed."}),(0,r.jsx)(Xe.TransactionLink,{transaction:e})]}))}):(i=e,K({show:!1,removing:!1}),at({title:"Something went wrong!",type:S.MessageType.error,body:"The access token could not be removed",collapsible:{header:"Error",content:Ut(i)}})),[2]}}))}))]}))}))}},{children:"Remove"}))}),(0,r.jsxs)("div",_i({className:"forumContentBox",style:{backgroundImage:!k(i)(null===(e=y.images)||void 0===e?void 0:e.background)&&y.images.background.length>0?"url(".concat(null===(n=y.images)||void 0===n?void 0:n.background,")"):void 0}},{children:[!p.readAndWrite&&(0,r.jsx)(tn.ConnectionAlert,{}),"DSwfRF1jhhu6HpSuzaig1G19kzP73PfLZBPLofkw6fLD"===y.collectionId.toBase58()&&(0,r.jsx)(bi.StarsAlert,{}),ct]})),(0,r.jsx)("div",_i({className:"toolsWrapper"},{children:(0,r.jsx)(qe,_i({scopes:[ue]},{children:(0,r.jsxs)("div",_i({className:"moderatorToolsContainer"},{children:[(0,r.jsx)("div",{children:"Manage tools: "}),(0,r.jsxs)("div",_i({className:"tools"},{children:[(0,r.jsx)(Yn.ManageOwners,{forumData:y}),(0,r.jsx)(Kn.ManageModerators,{forumData:y}),v!==cn.ForumIdentity.DegenerateApeAcademy&&(0,r.jsx)(qe,_i({scopes:[ge]},{children:(0,r.jsx)("button",_i({className:"moderatorTool",disabled:!p.readAndWrite,onClick:function(){return W(!0)}},{children:"Forum access"}))})),(0,r.jsx)(zn.EditForum,{forumData:y,update:f}),(0,r.jsx)(hr.UploadForumBanner,{onSetImageURL:function(t){return ki(u,void 0,Promise,(function(){var e;return Si(this,(function(n){switch(n.label){case 0:return e=y.images,b(_i(_i({},y),{images:_i(_i({},e),{background:t})})),[4,f()];case 1:return n.sent(),[2]}}))}))},collectionId:y.collectionId,currentBannerURL:null!==(c=null===(a=y.images)||void 0===a?void 0:a.background)&&void 0!==c?c:""})]}))]}))}))})),!k(i)(y.collectionId)&&(0,r.jsx)("div",_i({className:"topicListWrapper"},{children:(0,r.jsx)(er.TopicList,{forumData:y,topicInFlight:_})}))]})}))}))}var Ai={};function Ei(t){return void 0!==t.solanartID}_(Ai,"TopicView",(()=>Gi),(t=>Gi=t));var Ti={};_(Ti,"getForumID",(()=>Mi),(t=>Mi=t)),_(Ti,"addSolanartIdToForum",(()=>Oi),(t=>Oi=t));var Pi=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},Ci=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},Mi=function(t,e){return Pi(void 0,void 0,Promise,(function(){return Ci(this,(function(n){switch(n.label){case 0:return[4,(0,u.getForumIdFromSolanartId)(t,e)];case 1:return[2,n.sent()]}}))}))},Oi=function(t,e,n){return Pi(void 0,void 0,Promise,(function(){return Ci(this,(function(r){switch(r.label){case 0:return[4,(0,u.addSolanartMap)(t,e,n)];case 1:return r.sent(),[2]}}))}))},Ri={};_(Ri,"TopicPageContent",(()=>Ui),(t=>Ui=t));var Bi={};_(Bi,"getUserRole",(()=>ji),(t=>ji=t));var ji=function(t,e,n,r){return function(t,e,n,r){return new(n||(n=Prom
1ise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}(void 0,void 0,void 0,(function(){var i,o,s,a,c,u,l;return function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}(this,(function(h){switch(h.label){case 0:return k(w)(r)?[4,Promise.all([t.isModerator(e),t.isOwner(e),t.canCreateTopic(e)])]:[3,2];case 1:return i=h.sent(),a=i[0],c=i[1],o=i[2],l=[],c&&l.push(ie.Owner),a&&l.push(ie.Moderator),o&&l.push(ie.Poster),0===l.length&&l.push(ie.Viewer),n.setRoles(l),[3,4];case 2:return[4,Promise.all([t.isModerator(e),t.isOwner(e),t.canPost(e,r)])];case 3:s=h.sent(),a=s[0],c=s[1],u=s[2],l=[],c&&l.push(ie.Owner),a&&l.push(ie.Moderator),u&&l.push(ie.Poster),0===l.length&&l.push(ie.Viewer),n.setRoles(l),h.label=4;case 4:return[2]}}
1))}))};function Ni(t){var e="";switch(t){case"DSwfRF1jhhu6HpSuzaig1G19kzP73PfLZBPLofkw6fLD":e="degenApeAcademy";break;case"B2qpsPkDVwS4ecDNNJ3jyzaLkXsPtpJcUnHdo9uBkrHy":e="metaplex";break;case"6ThcrupJDDxxKKsDdGy1xjEkZdrZGsjt33B6iyK8VhP9":e="solana";break;case"AWuH8QVibFvJMgzvRmwyCtWN5Vrwd55tURPzjpsFR8ut":e="solanaSpace"}return e}var Li={};_(Li,"Breadcrumb",(()=>zi),(t=>zi=t));var Di=function(){return Di=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Di.apply(this,arguments)};function zi(t){var e=t.navigateTo,n=t.parent;return(0,r.jsxs)("div",Di({className:"breadcrumbContainer"},{children:[(0,r.jsx)("div",Di({className:"separationIcon"},{children:(0,r.jsx)(E.Chevron,{})})),(0,r.jsx)(Ve.Link,Di({className:"parent",href:e},{children:(0,r.jsx)(k(d),{children:n})}))]}))}var Fi=function(){return Fi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Fi.apply(this,arguments)};function Ui(t){var e=(0,cn.useModal)(),n=e.modal,s=e.showModal,a=e.setModals,c=(0,zt.useRole)(),u=(0,zt.useForum)(),h=u.permission,d=t.forumId,f=t.topicId,p=t.showTitle,m=(0,zt.useTheme)(),g=(0,o.useMemo)((function(){try{return new(0,l.PublicKey)(d)}catch(r){return s({type:S.MessageType.error,title:"Invalid Collection ID"}),null}}),[d]),y=(0,cn.useForumData)(g,u),w=y.forumData,_=y.update,x=y.addPost,I=y.editPost,A=y.deletePost,E=(0,cn.useParticipatingModerators)(w,u),T=(0,o.useMemo)((function(){if(Zt(w)){var t=w.posts.find((function(t){return"postId"in t&&((0,cn.isForumPost)(t)||(0,cn.isEditedPost)(t))&&t.isTopic&&t.postId===f}));return null!=t?t:Vt("Post not found")}return Xt(w)?{loadingState:"pending"}:w}),[w,f]);(0,o.useEffect)((function(){if(Zt(w)){var t=[w.owners].filter((function(t){return Wt(t)}));a(t.map((function(t){return"Uncategorized"===t.errorKind?{type:S.MessageType.error,title:"Error loading",collapsible:{header:"Error",content:JSON.stringify(t.error)}}:{type:S.MessageType.error,title:"Error loading ".concat(t.errorKind),collapsible:{header:"Error",content:Ut(t)}}})))}}),[w]);var P=(0,(0,zt.usePath)().buildForumPath)(d);(0,o.useEffect)((function(){_()}),[u.cluster]),(0,o.useEffect)((function(){k(i)(g)||k(i)(T)||null==u.wallet.publicKey||!Zt(T)||(0,Bi.getUserRole)(u,g,c,T)}),[g,T,u.wallet.publicKey]);var C=(0,r.jsx)("div",Fi({className:"disconnectedTopicView"},{children:"".concat(d," is not a valid Collection ID")})),M=(0,r.jsx)("div",Fi({className:"disconnectedTopicView"},{children:"The topic with id ".concat(f," does not exist")})),O=Ni(d);return(0,r.jsx)("div",Fi({className:m.mode},{children:(0,r.jsxs)("div",Fi({className:O},{children:[p&&(0,r.jsxs)(v.Helmet,{children:[(0,r.jsx)("meta",{charSet:"utf-8"}),Zt(T)&&(0,r.jsxs)("title",{children:[T.data.subj," -- Topic "]})]}),(0,r.jsxs)("div",Fi({className:"topicView"},{children:[n,(0,r.jsxs)("div",Fi({className:"topicViewContainer"},{children:[(0,r.jsxs)("div",Fi({className:"topicViewContent"},{children:[!h.readAndWrite&&(0,r.jsx)(tn.ConnectionAlert,{}),"DSwfRF1jhhu6HpSuzaig1G19kzP73PfLZBPLofkw6fLD"===d&&(0,r.jsx)(bi.StarsAlert,{}),(0,r.jsx)("main",{children:(0,r.jsx)("div",{children:null!=g&&Yt(T)||Xt(T)?(0,r.jsx)("div",Fi({className:"topicViewLoading"},{children:(0,r.jsx)(Ct.Spinner,{})})):null!=g&&Zt(w)&&Zt(T)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Li.Breadcrumb,{navigateTo:P,parent:w.description.title}),(0,r.jsx)(ai.TopicContent,{forumData:w,participatingModerators:E,forum:u,topic:T,userRoles:c.roles,update:_,addPost:x,editPost:I,deletePost:A,updateVotes:function(t){return function(t){Zt(T)&&(t?T.upVotes+=1:T.downVotes+=1)}(t)}})]}):k(b)(g)?C:M})})]})),(0,r.jsx)(Dt.PoweredByDispatch,{customStyle:O})]}))]}))]}))}))}var Wi=function(){return Wi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Wi.apply(this,arguments)},Gi=function(t){var e=(0,zt.useForum)(),n=t.forumId,i=t.topicId,s=t.showTitle,a=(0,o.useState)(),c=a[0],u=a[1];return(0,o.useEffect)((function(){Ei(n)?function(t){!function(t,e,n,r){new(n||(n=Prom
1ise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}(this,void 0,Promise,(function(){var r;return function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}(this,(function(i){switch(i.label){case 0:return void 0===n?[3,2]:[4,(0,Ti.getForumID)(e.cluster,t)];case 1:r=i.sent(),u(r),i.label=2;case 2:return[2]}}
1))}))}(n.solanartID):u(n.forumID)}),[e.cluster,n]),(0,r.jsx)("div",Wi({className:"dsp- "},{children:void 0!==c?(0,r.jsx)(Ri.TopicPageContent,{forumId:c,topicId:i,showTitle:s}):(0,r.jsx)(Ct.Spinner,{})}))};Gi.defaultProps={showTitle:!0};var Vi={};_(Vi,"ForumView",(()=>Xi),(t=>Xi=t));var Ki={};_(Ki,"ForumPageContent",(()=>Zi),(t=>Zi=t));var Hi=function(){return Hi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Hi.apply(this,arguments)},qi=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},$i=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function Zi(t){var e=this,n=t.forumID,i=t.showTitle,a=(0,zt.useForum)(),c=(0,zt.useRole)(),u=a.wallet,h=a.permission,d=u.publicKey,f=(0,zt.useTheme)(),p=(0,cn.useModal)(),m=p.modal,g=p.showModal,y=Ni(n),b=(0,o.useState)(),w=b[0],_=b[1],x=(0,o.useState)(!1),I=x[0],A=x[1],E=(0,o.useMemo)((function(){try{return new(0,l.PublicKey)(n)}catch(t){var e=JSON.stringify(t);return console.log("dsp",t),g({title:"Something went wrong!",type:S.MessageType.error,body:"Invalid Collection ID Public Key",collapsible:{header:"Error",content:e}}),null}}),[n]),T=(0,cn.useForumData)(E,a),P=T.forumData,C=T.update,M=function(t){return qi(e,void 0,Promise,(function(){var e,i,o=this;return $i(this,(function(c){switch(c.label){case 0:return A(!0),_({title:t.title,desc:t.description}),[4,a.createForum(t)];case 1:return Zt(e=c.sent())?void 0===e.forum?[3,3]:(g({title:"Success!",body:(0,r.jsxs)("div",Hi({className:"successBody"},{children:[(0,r.jsx)("div",{children:"The forum '".concat(t.title,"' for the collection ").concat(n," was created")}),(0,r.jsx)("div",{children:e.txs.map((function(t){return(0,r.jsx)(Xe.TransactionLink,{transaction:t},t)}))})]})),type:S.MessageType.success}),void 0===e.txs?[3,3]:[4,Promise.all(e.txs.map((function(t){return qi(o,void 0,void 0,(function(){return $i(this,(function(e){return[2,a.connection.confirmTransaction(t)]}))}))}))).then((function(){return qi(o,void 0,void 0,(function(){return $i(this,(function(t){switch(t.label){case 0:return[4,C()];case 1:return t.sent(),A(!1),[2]}}))}))}))]):[3,4];case 2:c.sent(),c.label=3;case 3:return k(s).event("successfulForumCreation"),[3,5];case 4:_(void 0),A(!1),i=e,k(s).event("failedForumCreation"),g({title:"Something went wrong!",type:S.MessageType.error,body:"The forum '".concat(t.title,"' for the collection ").concat(n," could not be created."),collapsible:{header:"Error",content:Ut(i)}}),c.label=5;case 5:return[2]}}
1))}))};(0,o.useEffect)((function(){C()}),[a.cluster]),(0,o.useEffect)((function(){Zt(P)&&h.readAndWrite&&null!==E&&(0,Bi.getUserRole)(a,E,c)}),[P,d]);var O=(0,r.jsx)("div",Hi({className:"disconnectedView"},{children:"Connect to your wallet in order to see or create a forum"})),R=(0,o.useMemo)((function(){return Zt(P)?(0,r.jsx)(ze.ForumContent,{forumObject:a,forumData:P,update:C}):I?(0,r.jsx)(ze.ForumContent,{forumObject:a,basicInfo:w,update:C}):Xt(P)||Yt(P)?(0,r.jsx)("div",Hi({className:"forumLoading"},{children:(0,r.jsx)(Ct.Spinner,{})})):Gt(P)&&!I?(0,r.jsx)(an.CreateForum,{forumObject:a,collectionId:n,update:C,sendCreateForum:function(t){return qi(e,void 0,void 0,(function(){return $i(this,(function(e){return[2,M(t)]}))}))}}):O}),[P,I,d]);return(0,r.jsx)("div",Hi({className:f.mode},{children:(0,r.jsxs)("div",Hi({className:y},{children:[!0===i&&(0,r.jsxs)(v.Helmet,{children:[(0,r.jsx)("meta",{charSet:"utf-8"}),Wt(P)&&Gt(P)&&(0,r.jsxs)("title",{children:["Create Forum for ",n]}),Zt(P)&&(0,r.jsxs)("title",{children:[P.description.title," -- Forum"]})]}),(0,r.jsxs)("div",Hi({className:"forumView"},{children:[m,(0,r.jsx)("div",Hi({className:"forumViewContainer"},{children:(0,r.jsxs)("div",Hi({className:"forumViewContent"},{children:[R,(0,r.jsx)(Dt.PoweredByDispatch,{customStyle:y})]}))}))]}))]}))}))}var Yi=function(){return Yi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Yi.apply(this,arguments)},Xi=function(t){var e=t.collectionId,n=t.showTitle,i=(0,zt.useForum)().cluster,s=(0,o.useState)(),a=s[0],c=s[1];return(0,o.useEffect)((function(){Ei(e)?function(t){!function(t,e,n,r){new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}(this,void 0,Promise,(function(){var n,r;return function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}(this,(function(o){switch(o.label){case 0:return void 0===e?[3,4]:[4,(0,Ti.getForumID)(i,t)];case 1:return Zt(kn(n=o.sent()))?(c(n),[3,4]):[3,2];case 2:return r=l.Keypair.generate().publicKey,[4,(0,Ti.addSolanartIdToForum)(i,t,r)];
1case 3:o.sent(),c(r.toBase58()),o.label=4;case 4:return[2]}}))}))}(e.solanartID):c(e.forumID)}),[i,e]),(0,r.jsx)("div",Yi({className:"dsp-"},{children:void 0!==a?(0,r.jsx)(Ki.ForumPageContent,{forumID:a,showTitle:n}):(0,r.jsx)(Ct.Spinner,{})}))};Xi.defaultProps={showTitle:!0}},74597:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.supportedTypeMap=void 0;const o=n(88078);i(n(88078),e),i(n(36856),e),e.supportedTypeMap=o.keysTypeMap},36856:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GpaBuilder=void 0;const r=n(43650),i=n(69282),o=n(89087),s=n(54079);class a{constructor(t,e,n){this.programId=t,this.beets=e,this.accountSize=n,this.config={}}_addFilter(t){return null==this.config.filters&&(this.config.filters=[]),this.config.filters.push(t),this}_addInnerFilter(t,e,n){(0,o.logTrace)(`gpa.addInnerFilter: ${t}.${e}`);const a=this.beets.get(t);(0,i.strict)(null!=a,"Outer filter key needs to be an existing field name");const c=a.beet;let u=a.offset;const l=(0,r.isFixedSizeBeet)(c)?c:c.toFixedFromValue(n);let h;for(const[r,i]of l.fields){if(r===e){h=i;break}u+=i.byteSize}(0,i.strict)(null!=h,`${e} is not a field of the ${t} struct`);const d=(0,s.encodeFixedBeet)(h,n);return this._addFilter({memcmp:{offset:u,bytes:d}}),this}addInnerFilter(t,e){const n=t.split(".");i.strict.equal(n.length,2,"inner filters can go only one level deep, i.e. 'outer.inner' is ok, but 'outer.inner.deep' is not");const[r,o]=n;return this._addInnerFilter(r,o,e)}addFilter(t,e){const n=this.beets.get(t);(0,i.strict)(null!=n,"Filter key needs to be an existing field name");const o=(0,r.isFixedSizeBeet)(n.beet)?n.beet:n.beet.toFixedFromValue(e),a=(0,s.encodeFixedBeet)(o,e);return this._addFilter({memcmp:{offset:n.offset,bytes:a}}),this}dataSize(t){return t=null!==t&&void 0!==t?t:this.accountSize,(0,i.strict)(null!=t,"for accounts of dynamic size the dataSize arg needs to be provided"),this._addFilter({dataSize:t})}run(t){return t.getProgramAccounts(this.programId,this.config)}static fromBeetFields(t,e){const n=new Map;let i=0,o=!1;for(const[s,a]of e){if(n.set(s,{beet:a,offset:i}),!(0,r.isFixedSizeBeet)(a)){o=!0;break}i+=a.byteSize}return new a(t,n,o?void 0:i)}static fromStruct(t,e){return a.fromBeetFields(t,e.fields)}}e.GpaBuilder=a},54079:function(t,e,n){"use strict";var r=n(48764).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.encodeFixedBeet=void 0;const o=i(n(77191));e.encodeFixedBeet=function(t,e){const n=r.alloc(t.byteSize);return t.write(n,0,e),o.default.encode(n)}},88078:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.keysTypeMap=e.publicKey=void 0;const r=n(68873),i=(0,n(43650).fixedSizeUint8Array)(32);e.publicKey={write:function(t,e,n){const r=n.toBytes();i.write(t,e,r)},read:function(t,e){const n=i.read(t,e);return new r.PublicKey(n)},byteSize:i.byteSize,description:"PublicKey"},e.keysTypeMap={publicKey:{beet:"publicKey",isFixable:!1,sourcePack:"@metaplex-foundation/beet-solana",ts:"PublicKey",pack:"@solana/web3.js"}}},89087:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.logTrace=e.logDebug=e.logInfo=e.logError=void 0;const i=r(n(11227));e.logError=(0,i.default)("beet:error"),e.logInfo=(0,i.default)("beet:info"),e.logDebug=(0,i.default)("beet:debug"),e.logTrace=(0,i.default)("beet:trace")},89609:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fixBeetFromValue=e.fixBeetFromData=void 0;const r=n(71563);e.fixBeetFromData=function(t,e,n){if((0,r.isFixedSizeBeet)(t))return t;if((0,r.isFixableBeet)(t))return t.toFixedFromData(e,n);throw new Error(`${t.description} is neither fixed size nor fixable`)},e.fixBeetFromValue=function(t,e){if((0,r.isFixedSizeBeet)(t))return t;if((0,r.isFixableBeet)(t))return t.toFixedFromValue(e);throw new Error(`${t.description} is neither fixed size nor fixable`)}},43650:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};
1Object.defineProperty(e,"__esModule",{value:!0}),e.supportedTypeMap=void 0;const o=n(86548),s=n(23297),a=n(21352),c=n(8554),u=n(39037),l=n(83562),h=n(78075),d=n(30261);i(n(83562),e),i(n(86548),e),i(n(23297),e),i(n(39037),e),i(n(30261),e),i(n(21352),e),i(n(8554),e),i(n(78075),e),i(n(89609),e),i(n(50914),e),i(n(87727),e),i(n(19869),e),i(n(71563),e),e.supportedTypeMap={...o.collectionsTypeMap,...c.stringTypeMap,...s.compositesTypeMap,...u.enumsTypeMap,...a.numbersTypeMap,...l.aliasesTypeMap,...h.tuplesTypeMap,...d.mapsTypeMap}},83562:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.aliasesTypeMap=e.bytes=void 0;const r=n(86548);e.bytes=r.uint8Array,e.aliasesTypeMap={bytes:r.collectionsTypeMap.Uint8Array}},86548:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.collectionsTypeMap=e.uint8Array=e.fixedSizeUint8Array=e.fixedSizeBuffer=e.array=e.fixedSizeArray=e.uniformFixedSizeArray=void 0;const i=n(71563),o=n(69282),s=n(21352),a=n(71563),c=n(45303),u=n(89609);function l(t,e){const n=t.length,r=0===n?"<EMPTY>":t[0].description;return{write:function(e,r,i){o.strict.equal(i.length,n,`array length ${i.length} should match len ${n}`),s.u32.write(e,r,n);let a=r+4;for(let o=0;o<n;o++){const n=t[o];n.write(e,a,i[o]),a+=n.byteSize}},read:function(e,r){const i=s.u32.read(e,r);o.strict.equal(i,n,"invalid byte size");let a=r+4;const c=new Array(n);for(let o=0;o<n;o++){const n=t[o];c[o]=n.read(e,a),a+=n.byteSize}return c},byteSize:4+e,length:n,description:`Array<${r}>(${n})[ 4 + ${e} ]`}}function h(t){return{write:function(e,n,r){r.copy(e,n,0,t)},read:function(e,n){return e.slice(n,n+t)},byteSize:t,description:`Buffer(${t})`}}function d(t,e=!1){const n=h(t);return{write:function(i,a,c){o.strict.equal(c.byteLength,t,`Uint8Array length ${c.byteLength} should match len ${t}`),e&&(s.u32.write(i,a,t),a+=4);const u=r.from(c);n.write(i,a,u)},read:function(r,i){if(e){const e=s.u32.read(r,i);o.strict.equal(e,t,"invalid byte size"),i+=4}const a=n.read(r,i);return Uint8Array.from(a)},byteSize:e?t+4:t,description:`Uint8Array(${t})`}}e.uniformFixedSizeArray=function(t,e,n=!1){const r=t.byteSize*e;return{write:function(r,i,a){o.strict.equal(a.length,e,`array length ${a.length} should match len ${e}`),n&&(s.u32.write(r,i,e),i+=4);for(let n=0;n<e;n++)t.write(r,i+n*t.byteSize,a[n])},read:function(r,i){if(n){const t=s.u32.read(r,i);o.strict.equal(t,e,"invalid byte size"),i+=4}const a=new Array(e);for(let n=0;n<e;n++)a[n]=t.read(r,i+n*t.byteSize);return a},byteSize:n?4+r:r,length:e,elementByteSize:t.byteSize,lenPrefixByteSize:4,description:`Array<${t.description}>(${e})`}},e.fixedSizeArray=l,e.array=function(t){return{toFixedFromData(e,n){const r=s.u32.read(e,n);(0,c.logTrace)(`${this.description}[${r}]`);const i=n+4;let o=i;const a=new Array(r);for(let s=0;s<r;s++){const n=(0,u.fixBeetFromData)(t,e,o);a[s]=n,o+=n.byteSize}return l(a,o-i)},toFixedFromValue(e){(0,o.strict)(Array.isArray(e),`${e} should be an array`);let n=0;const r=new Array(e.length);for(let i=0;i<e.length;i++){const o=(0,u.fixBeetFromValue)(t,e[i]);r[i]=o,n+=o.byteSize}return l(r,n)},description:"array"}},e.fixedSizeBuffer=h,e.fixedSizeUint8Array=d,e.uint8Array={toFixedFromData(t,e){const n=s.u32.read(t,e);return(0,c.logTrace)(`${this.description}[${n}]`),d(n,!0)},toFixedFromValue:t=>d(t.byteLength,!0),description:"Uint8Array"},e.collectionsTypeMap={Array:{beet:"array",isFixable:!0,sourcePack:a.BEET_PACKAGE,ts:"Array",arg:i.BEET_TYPE_ARG_LEN},FixedSizeArray:{beet:"fixedSizeArray",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"Array",arg:i.BEET_TYPE_ARG_LEN},UniformFixedSizeArray:{beet:"uniformFixedSizeArray",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"Array",arg:i.BEET_TYPE_ARG_LEN},Buffer:{beet:"fixedSizeBuffer",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"Buffer",arg:i.BEET_TYPE_ARG_LEN},FixedSizeUint8Array:{beet:"fixedSizeUint8Array",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"Uint8Array",arg:i.BEET_TYPE_ARG_LEN},Uint8Array:{beet:"uint8Array",isFixable:!0,sourcePack:a.BEET_PACKAGE,ts:"Uint8Array",arg:i.BEET_TYPE_ARG_LEN}}},23297:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.compositesTypeMap=e.coption=e.coptionSome=e.coptionNone=e.isNoneBuffer=e.isSomeBuffer=void 0;const r=n(69282),i=n(71563),o=n(71563),s=n(45303),a=n(89609);function c(t,e){return 1===t[e]}function u(t,e){return 0===t[e]}function l(t){return(0,s.logTrace)(`coptionNone(${t})`),{write:function(t,e,n){(0,r.strict)(null==n,"coptionNone can only handle `null` values"),t[e]=0},read:function(t,e){return(0,r.strict)(u(t,e),"coptionNone can only handle `NONE` data"),null},byteSize:1,description:`COption<None(${t})>`}}function h(t){const e=1+t.byteSize,n={write:function(e,n,o){(0,i.assertFixedSizeBeet)(t,`coption inner type ${t.description} needs to be fixed before calling write`),(0,r.strict)(null!=o,"coptionSome cannot handle `null` values"),e[n]=1,t.write(e,n+1,o)},read:function(e,n){return(0,i.assertFixedSizeBeet)(t,`coption inner type ${t.description} needs to be fixed before calling read`),(0,r.strict)(c(e,n),"coptionSome can only handle `SOME` data"),t.read(e,n+1)},description:`COption<${t.description}>[1 + ${t.byteSize}]`,byteSize:e,inner:t};return(0,s.logTrace)(n.description),n}e.isSomeBuffer=c,e.isNoneBuffer=u,e.coptionNone=l,e.coptionSome=h,e.coption=function(t){return{toFixedFromData(e,n){if(c(e,n)){return h((0,a.fixBeetFromData)(t,e,n+1))}return(0,r.strict)(u(e,n),`Expected ${e} to hold a COption`),l(t.description)},toFixedFromValue:e=>null==e?l(t.description):h((0,a.fixBeetFromValue)(t,e)),description:`COption<${t.description}>`}},e.compositesTypeMap={option:{beet:"coption",isFixable:!0,sourcePack:o.BEET_PACKAGE,ts:"COption<Inner>",arg:i.BEET_TYPE_ARG_INNER,pack:o.BEET_PACKAGE}}},39037:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enumsTypeMap=e.dataEnum=e.uniformDataEnum=e.fixedScalarEnum=void 0;const r=n(71563),i=n(21352),o=n(69282),s=n(87727),a=n(19869);function c(t,e){return e?`${t}`:t}function u(t,e,n){return{write(n,r,o){i.u8.write(n,r,e),t.write(n,r+i.u8.byteSize,o)},read(e,r){const o=t.read(e,r+i.u8.byteSize);return{__kind:n,...o}},byteSize:t.byteSize+i.u8.byteSize,description:`EnumData<${t.description}>`}}e.fixedScalarEnum=function(t){const e=Object.keys(t);return{write(n,r,s){const a="number"===typeof s,u=c(s,a);if(e.includes(u)||o.strict.fail(`${s} should be a variant of the provided enum type, i.e. [ ${Object.values(t).join(", ")} ], but isn't`),a)i.u8.write(n,r,s);else{const e=t[u];i.u8.write(n,r,e)}},read(n,r){const s=i.u8.read(n,r),a="number"===typeof s,u=c(s,a);return e.includes(u)||o.strict.fail(`${s} should be a of a variant of the provided enum type, i.e. [ ${Object.values(t).join(", ")} ], but isn't`),a?s:t[u]},byteSize:i.u8.byteSize,description:"Enum"}},e.uniformDataEnum=function(t){return{write:function(e,n,r){i.u8.write(e,n,r.kind),t.write(e,n+1,r.data)},read:function(e,n){return{kind:i.u8.read(e,n),data:t.read(e,n+1)}},byteSize:1+t.byteSize,description:`UniformDataEnum<${t.description}>`}},e.dataEnum=function(t){for(const[e,n]of t)(0,o.strict)((0,s.isBeetStruct)(n)||(0,a.isFixableBeetStruct)(n),"dataEnum: data beet must be a struct");return{toFixedFromData(e,n){const s=i.u8.read(e,n),a=t[s];(0,o.strict)(null!=a,`Discriminant ${s} out of range for ${t.length} variants`);const[c,l]=a;return u((0,r.isFixedSizeBeet)(l)?l:l.toFixedFromData(e,n+1),s,c)},toFixedFromValue(e){if(null==e.__kind){const n=Object.keys(e).join(", "),r=t.map((([t])=>t)).join(", ");o.strict.fail(`Value with fields [ ${n} ] is missing __kind, which needs to be set to one of [ ${r} ]`)}const n=t.findIndex((([t])=>t===e.__kind));if(n<0){const n=t.map((([t])=>t)).join(", ");o.strict.fail(`${e.__kind} is not a valid kind, needs to be one of [ ${n} ]`)}const i=t[n],{__kind:s,...a}=e,[c,l]=i;return u((0,r.isFixedSizeBeet)(l)?l:l.toFixedFromValue(a),n,c)},description:`DataEnum<${t.length} variants>`}},e.enumsTypeMap={fixedScalarEnum:{beet:"fixedScalarEnum",isFixable:!1,sourcePack:r.BEET_PACKAGE,ts:"<TypeName>",arg:r.BEET_TYPE_ARG_INNER,pack:r.BEET_PACKAGE},dataEnum:{beet:"dataEnum",isFixable:!1,sourcePack:r.BEET_PACKAGE,ts:"DataEnum<Kind, Inner>",arg:r.BEET_TYPE_ARG_INNER,pack:r.BEET_PACKAGE}}},30261:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.mapsTypeMap=e.map=void 0;const r=n(71563),i=n(21352),o=n(69282);function s(t,e,n,s){const a=(0,r.isFixedSizeBeet)(t),c=(0,r.isFixedSizeBeet)(e);const{elementByteSize:u,byteSize:l}=function(){if(a&&c){const n=t.byteSize+e.byteSize;return{elementByteSize:n,byteSize:4+s*n}}if(a){let e=0;for(const[t,r]of n.values())e+=r.byteSize;return{elementByteSize:t.byteSize+Math.ceil(e/s),byteSize:4+t.byteSize*s+e}}if(c){let t=0;for(const[e,r]of n.values())t+=e.byteSize;return{elementByteSize:Math.ceil(t/s)+e.byteSize,byteSize:4+t+e.byteSize*s}}{let t=0,e=0;for(const[r,i]of n.values())t+=r.byteSize,e+=i.byteSize;return{elementByteSize:Math.ceil(t/s+e/s),byteSize:4+t+e}}}();return{write:function(r,u,l){let h=u+4,d=0;for(const[i,s]of l.entries()){let u=a?t:null,l=c?e:null;if(null==u||null==l){const t=n.get(i);(0,o.strict)(null!=t,`Should be able to find beet els for ${i.toString()}, but could not`),null!==u&&void 0!==u||(u=t[0]),null!==l&&void 0!==l||(l=t[1])}u.write(r,h,i),h+=u.byteSize,l.write(r,h,s),h+=l.byteSize,d++}i.u32.write(r,u,d),o.strict.equal(d,s,`Expected map to have size ${s}, but has ${d}.`)},read:function(n,r){const u=i.u32.read(n,r);o.strict.equal(u,s,`Expected map to have size ${s}, but has ${u}.`);let l=r+4;const h=new Map;for(let i=0;i<u;i++){const r=a?t:t.toFixedFromData(n,l),i=r.read(n,l);l+=r.byteSize;const o=c?e:e.toFixedFromData(n,l),s=o.read(n,l);l+=o.byteSize,h.set(i,s)}return h},elementByteSize:u,byteSize:l,length:s,lenPrefixByteSize:4,description:`Map<${t.description}, ${e.description}>`}}e.map=function(t,e){const n=(0,r.isFixedSizeBeet)(t),o=(0,r.isFixedSizeBeet)(e);return{toFixedFromData(r,a){const c=i.u32.read(r,a);let u=a+4;if(n&&o)return s(t,e,new Map,c);const l=new Map;for(let i=0;i<c;i++){const i=n?t:t.toFixedFromData(r,u),s=i.read(r,u);u+=i.byteSize;const a=o?e:e.toFixedFromData(r,u);u+=a.byteSize,l.set(s,[i,a])}return s(t,e,l,c)},toFixedFromValue(r){const i=r.size;if(n&&o)return s(t,e,new Map,i);const a=new Map;for(const[s,c]of r){const r=n?t:t.toFixedFromValue(s),i=o?e:e.toFixedFromValue(c);a.set(s,[r,i])}return s(t,e,a,i)},description:`FixableMap<${t.description}, ${e.description}>`}},e.mapsTypeMap={Map:{beet:"map",isFixable:!0,sourcePack:r.BEET_PACKAGE,ts:"Map"}}},21352:function(t,e,n){"use strict";var r=n(48764).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.numbersTypeMap=e.bool=e.i512=e.i256=e.i128=e.i64=e.i32=e.i16=e.i8=e.u512=e.u256=e.u128=e.u64=e.u32=e.u16=e.u8=void 0;const o=i(n(13550)),s=n(71563);function a(t,e){return{write:function(t,e,n){const i=(o.default.isBN(n)?n:new o.default(n)).toArray("le",this.byteSize);r.from(i).copy(t,e,0,this.byteSize)},read:function(t,e){const n=t.slice(e,e+this.byteSize);return new o.default(n,"le")},byteSize:t,description:e}}function c(t,e){const n=8*t;return{write:function(t,e,i){const s=(o.default.isBN(i)?i:new o.default(i)).toTwos(n).toArray("le",this.byteSize);r.from(s).copy(t,e,0,this.byteSize)},read:function(t,e){const r=t.slice(e,e+this.byteSize);return new o.default(r,"le").fromTwos(n)},byteSize:t,description:e}}e.u8={write:function(t,e,n){t.writeUInt8(n,e)},read:function(t,e){return t.readUInt8(e)},byteSize:1,description:"u8"},e.u16={write:function(t,e,n){t.writeUInt16LE(n,e)},read:function(t,e){return t.readUInt16LE(e)},byteSize:2,description:"u16"},e.u32={write:function(t,e,n){t.writeUInt32LE(n,e)},read:function(t,e){return t.readUInt32LE(e)},byteSize:4,description:"u32"},e.u64=a(8,"u64"),e.u128=a(16,"u128"),e.u256=a(32,"u256"),e.u512=a(64,"u512"),e.i8={write:function(t,e,n){t.writeInt8(n,e)},read:function(t,e){return t.readInt8(e)},byteSize:1,description:"i8"},e.i16={write:function(t,e,n){t.writeInt16LE(n,e)},read:function(t,e){return t.readInt16LE(e)},byteSize:2,description:"i16"},e.i32={write:function(t,e,n){t.writeInt32LE(n,e)},read:function(t,e){return t.readInt32LE(e)},byteSize:4,description:"i32"},e.i64=c(8,"i64"),e.i128=c(16,"i128"),e.i256=c(32,"i256"),e.i512=c(64,"i512"),e.bool={write:function(t,n,r){const i=r?1:0;e.u8.write(t,n,i)},read:function(t,n){return 1===e.u8.read(t,n)},byteSize:1,description:"bool"},e.numbersTypeMap={u8:{beet:"u8",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"number"},u16:{beet:"u16",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"number"},u32:{beet:"u32",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"number"},i8:{beet:"i8",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"number"}
1,i16:{beet:"i16",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"number"},i32:{beet:"i32",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"number"},bool:{beet:"bool",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"boolean"},u64:{beet:"u64",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},u128:{beet:"u128",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},u256:{beet:"u256",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},u512:{beet:"u512",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},i64:{beet:"i64",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},i128:{beet:"i128",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},i256:{beet:"i256",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},i512:{beet:"i512",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE}}},8554:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.stringTypeMap=e.utf8String=e.fixedSizeUtf8String=void 0;const i=n(71563),o=n(69282),s=n(21352),a=n(45303);e.fixedSizeUtf8String=t=>({write:function(e,n,i){const a=r.from(i,"utf8");o.strict.equal(a.byteLength,t,`${i} has invalid byte size`),s.u32.write(e,n,t),a.copy(e,n+4,0,t)},read:function(e,n){const r=s.u32.read(e,n);o.strict.equal(r,t,"invalid byte size");return e.slice(n+4,n+4+t).toString("utf8")},elementByteSize:1,length:t,lenPrefixByteSize:4,byteSize:4+t,description:`Utf8String(4 + ${t})`}),e.utf8String={toFixedFromData(t,n){const r=s.u32.read(t,n);return(0,a.logTrace)(`${this.description}[${r}]`),(0,e.fixedSizeUtf8String)(r)},toFixedFromValue(t){const n=r.from(t).byteLength;return(0,e.fixedSizeUtf8String)(n)},description:"Utf8String"},e.stringTypeMap={fixedSizeString:{beet:"fixedSizeUtf8String",isFixable:!1,sourcePack:i.BEET_PACKAGE,ts:"string",arg:i.BEET_TYPE_ARG_LEN},string:{beet:"utf8String",isFixable:!0,sourcePack:i.BEET_PACKAGE,ts:"string"}}},78075:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tuplesTypeMap=e.tuple=e.fixedSizeTuple=void 0;const r=n(71563),i=n(69282),o=n(89609);function s(t){const e=t.length,n=t.map((t=>
1t.description)),r=t.map((t=>t.byteSize));return{write:function(n,r,o){i.strict.equal(o.length,e,`tuple value element size ${o.length} should match len ${e}`);let s=r;for(let i=0;i<e;i++){const e=o[i],r=t[i];r.write(n,s,e),s+=r.byteSize}},read:function(n,r){const i=[];let o=r;for(let s=0;s<e;s++){const e=t[s];i[s]=e.read(n,o),o+=e.byteSize}return i},byteSize:r.reduce(((t,e)=>t+e),0),length:e,description:`FixedSizeTuple<${n.join(",")}>[ ${r.join(", ")} ]`}}e.fixedSizeTuple=s,e.tuple=function(t){const e=t.length;return{toFixedFromData(n,r){let i=r;const a=new Array(e);for(let s=0;s<e;s++){const e=(0,o.fixBeetFromData)(t[s],n,i);a[s]=e,i+=e.byteSize}return s(a)},toFixedFromValue(n){(0,i.strict)(Array.isArray(n),`${n} should be an array of tuple values`),i.strict.equal(n.length,e,`There should be ${e} tuple values, but there are ${n.length}`);const r=new Array(e);for(let e=0;e<n.length;e++){const i=(0,o.fixBeetFromValue)(t[e],n[e]);r[e]=i}return s(r)},description:`Tuple<${t.map((t=>t.description)).join(",")}>`}},e.tuplesTypeMap={Tuple:{beet:"tuple",isFixable:!0,sourcePack:r.BEET_PACKAGE,ts:"[__tuple_elements__]"},FixedSizeTuple:{beet:"fixedSizeTuple",isFixable:!1,sourcePack:r.BEET_PACKAGE,ts:"[__tuple_elements__]"}}},50914:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.BeetReader=e.BeetWriter=void 0;const i=n(69282);e.BeetWriter=class{constructor(t){this.buf=r.alloc(t),this._offset=0}get buffer(){return this.buf}get offset(){return this._offset}maybeResize(t){this._offset+t>this.buf.length&&i.strict.fail(`We shouldn't ever need to resize, but ${this._offset+t} > ${this.buf.length}`)}write(t,e){this.maybeResize(t.byteSize),t.write(this.buf,this._offset,e),this._offset+=t.byteSize}writeStruct(t,e){for(const[n,r]of e){const e=t[n];this.write(r,e)}}};e.BeetReader=class{constructor(t,e=0){this.buffer=t,this._offset=e}get offset(){return this._offset}read(t){const e=t.read(this.buffer,this._offset);return this._offset+=t.byteSize,e}readStruct(t){const e={};for(const[n,r]of t)e[n]=this.read(r);return e}}},19869:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.FixableBeetArgsStruct=e.isFixableBeetStruct=e.FixableBeetStruct=void 0;const i=n(89609),o=n(87727),s=n(71563),a=n(69282),c=n(45303),u=r(n(48811)),{brightBlack:l}=u.default;class h{constructor(t,e,n=h.description){this.fields=t,this.construct=e,this.description=n;let r=0;if(c.logDebug.enabled){const e=t.map((([t,e])=>((0,s.isFixedSizeBeet)(e)&&(r+=e.byteSize),`${t}: ${e.description} ${(0,c.beetBytes)(e)}`))).join("\n "),i=`> ${r} B`;(0,c.logDebug)(`struct ${n} {\n ${e}\n} ${l(i)}`)}}deserialize(t,e=0){return this.toFixedFromData(t,e).deserialize(t,e)}serialize(t,e){return this.toFixedFromValue(t).serialize(t,e)}toFixedFromData(t,e){let n=e;const r=new Array(this.fields.length);for(let o=0;o<this.fields.length;o++){const[e,s]=this.fields[o],a=(0,i.fixBeetFromData)(s,t,n);r[o]=[e,a],n+=a.byteSize}return this.description!==h.description?new o.BeetStruct(r,this.construct,this.description):new o.BeetStruct(r,this.construct)}toFixedFromValue(t){const e=Object.keys(t),n=new Array(this.fields.length);for(let r=0;r<this.fields.length;r++){const[o,s]=this.fields[r];(0,a.strict)(e.includes(o),`Value with keys [ ${e} ] should include struct key '${o}' but doesn't.`);const c=t[o],u=(0,i.fixBeetFromValue)(s,c);n[r]=[o,u]}return this.description!==h.description?new o.BeetStruct(n,this.construct,this.description):new o.BeetStruct(n,this.construct)}get type(){return h.TYPE}}e.FixableBeetStruct=h,h.description="FixableBeetStruct",h.TYPE="FixableBeetStruct",e.isFixableBeetStruct=function(t){return t.type===h.TYPE};class d extends h{constructor(t,e=d.description){super(t,(t=>t),e)}}e.FixableBeetArgsStruct=d,d.description="FixableBeetArgsStruct"},87727:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BeetArgsStruct=e.isBeetStruct=e.BeetStruct=void 0;const r=n(50914),i=n(45303);class o{constructor(t,e,n=o.description){if(this.fields=t,this.construct=e,this.description=n,this.byteSize=this.getByteSize(),i.logDebug.enabled){const e=t.map((([t,e])=>`${String(t)}: ${e.description} ${(0,i.beetBytes)(e)}`)).join("\n ");(0,i.logDebug)(`struct ${n} {\n ${e}\n} ${(0,i.beetBytes)(this)}`)}}read(t,e){const[n]=this.deserialize(t,e);return n}write(t,e,n){const[r,i]=this.serialize(n);r.copy(t,e,0,i)}deserialize(t,e=0){i.logTrace.enabled&&((0,i.logTrace)("deserializing [%s] from %d bytes buffer",this.description,t.byteLength),(0,i.logTrace)(t),(0,i.logTrace)(t.toJSON().data));const n=new r.BeetReader(t,e),o=n.readStruct(this.fields);return[this.construct(o),n.offset]}serialize(t,e=this.byteSize){(0,i.logTrace)("serializing [%s] %o to %d bytes buffer",this.description,t,e);const n=new r.BeetWriter(e);return n.writeStruct(t,this.fields),[n.buffer,n.offset]}getByteSize(){return this.fields.reduce(((t,[e,n])=>t+n.byteSize),0)}get type(){return o.TYPE}}e.BeetStruct=o,o.description="BeetStruct",o.TYPE="BeetStruct",e.isBeetStruct=function(t){return t.type===o.TYPE};class s extends o{constructor(t,e=s.description){super(t,(t=>t),e)}}e.BeetArgsStruct=s,s.description="BeetArgsStruct"},71563:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.isElementCollectionFixedSizeBeet=e.isFixableBeet=e.assertFixedSizeBeet=e.isFixedSizeBeet=e.BEET_TYPE_ARG_INNER=e.BEET_TYPE_ARG_LEN=e.BEET_PACKAGE=void 0;const r=n(69282);function i(t){return Object.keys(t).includes("byteSize")}e.BEET_PACKAGE="@metaplex-foundation/beet",e.BEET_TYPE_ARG_LEN="len",e.BEET_TYPE_ARG_INNER="Beet<{innner}>",e.isFixedSizeBeet=i,e.assertFixedSizeBeet=function(t,e=`${t} should have been a fixed beet`){(0,r.strict)(i(t),e)},e.isFixableBeet=function(t){return"function"===typeof t.toFixedFromData&&"function"===typeof t.toFixedFromValue},e.isElementCollectionFixedSizeBeet=function(t){const e=Object.keys(t);return e.includes("length")&&e.includes("elementByteSize")&&e.includes("lenPrefixByteSize")}},45303:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.bytes=e.beetBytes=e.logTrace=e.logDebug=e.logInfo=e.logError=void 0;const i=r(n(11227)),o=r(n(48811)),s=n(71563),{brightBlack:a}=o.default;e.logError=(0,i.default)("beet:error"),e.logInfo=(0,i.default)("beet:info"),e.logDebug=(0,i.default)("beet:debug"),e.logTrace=(0,i.default)("beet:trace"),e.beetBytes=function(t,e=!1){let n;if((0,s.isFixableBeet)(t))n="? B";else if((0,s.isElementCollectionFixedSizeBeet)(t)){const r=e?"length":t.length,i=t.lenPrefixByteSize;n=i>0?`${i} + (${t.elementByteSize} * ${r}) B (${t.byteSize} B)`:`(${t.elementByteSize} * ${r}) B (${t.byteSize} B)`}else n=`${t.byteSize} B`;return a(n)},e.bytes=function(t){return a(`${t} B`)}},1538:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fixBeetFromValue=e.fixBeetFromData=void 0;const r=n(40933);e.fixBeetFromData=function(t,e,n){if((0,r.isFixedSizeBeet)(t))return t;if((0,r.isFixableBeet)(t))return t.toFixedFromData(e,n);throw new Error(`${t.description} is neither fixed size nor fixable`)},e.fixBeetFromValue=function(t,e){if((0,r.isFixedSizeBeet)(t))return t;if((0,r.isFixableBeet)(t))return t.toFixedFromValue(e);throw new Error(`${t.description} is neither fixed size nor fixable`)}},10853:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.supportedTypeMap=void 0;const o=n(61131),s=n(32492),a=n(68394),c=n(80101),u=n(4982),l=n(69599);i(n(69599),e),i(n(61131),e),i(n(80101),e),i(n(32492),e),i(n(4982),e),i(n(68394),e),i(n(1538),e),i(n(19217),e),i(n(25611),e),i(n(16304),e),i(n(40933),e),e.supportedTypeMap={...o.collectionsTypeMap,...c.stringTypeMap,...s.compositesTypeMap,...u.enumsTypeMap,...a.numbersTypeMap,...l.aliasesTypeMap}},69599:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.aliasesTypeMap=e.bytes=void 0;const r=n(61131);e.bytes=r.uint8Array,e.aliasesTypeMap={bytes:r.collectionsTypeMap.Uint8Array}},61131:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.collectionsTypeMap=e.uint8Array=e.fixedSizeUint8Array=e.fixedSizeBuffer=e.array=e.fixedSizeArray=e.uniformFixedSizeArray=void 0;const i=n(40933),o=n(69282),s=n(68394),a=n(40933),c=n(64467),u=n(1538);function l(t,e){const n=t.length,r=0===n?"<EMPTY>":t[0].description;return{write:function(e,r,i){o.strict.equal(i.length,n,`array length ${i.length} should match len ${n}`),s.u32.write(e,r,n);let a=r+4;for(let o=0;o<n;o++){const n=t[o];n.write(e,a,i[o]),a+=n.byteSize}},read:function(e,r){const i=s.u32.read(e,r);o.strict.equal(i,n,"invalid byte size");let a=r+4;const c=new Array(n);for(let o=0;o<n;o++){const n=t[o];c[o]=n.read(e,a),a+=n.byteSize}return c},byteSize:4+e,length:n,description:`Array<${r}>(${n})[ 4 + ${e} ]`}}function h(t){return{write:function(e,n,r){r.copy(e,n,0,t)},read:function(e,n){return e.slice(n,n+t)},byteSize:t,description:`Buffer(${t})`}}function d(t,e=!1){const n=h(t);return{write:function(i,a,c){o.strict.equal(c.byteLength,t,`Uint8Array length ${c.byteLength} should match len ${t}`),e&&(s.u32.write(i,a,t),a+=4);const u=r.from(c);n.write(i,a,u)},read:function(r,i){if(e){const e=s.u32.read(r,i);
1o.strict.equal(e,t,"invalid byte size"),i+=4}const a=n.read(r,i);return Uint8Array.from(a)},byteSize:e?t+4:t,description:`Uint8Array(${t})`}}e.uniformFixedSizeArray=function(t,e,n=!1){const r=t.byteSize*e;return{write:function(r,i,a){o.strict.equal(a.length,e,`array length ${a.length} should match len ${e}`),n&&(s.u32.write(r,i,e),i+=4);for(let n=0;n<e;n++)t.write(r,i+n*t.byteSize,a[n])},read:function(r,i){if(n){const t=s.u32.read(r,i);o.strict.equal(t,e,"invalid byte size"),i+=4}const a=new Array(e);for(let n=0;n<e;n++)a[n]=t.read(r,i+n*t.byteSize);return a},byteSize:n?4+r:r,length:e,elementByteSize:t.byteSize,lenPrefixByteSize:4,description:`Array<${t.description}>(${e})`}},e.fixedSizeArray=l,e.array=function(t){return{toFixedFromData(e,n){const r=s.u32.read(e,n);(0,c.logTrace)(`${this.description}[${r}]`);const i=n+4;let o=i;const a=new Array(r);for(let s=0;s<r;s++){const n=(0,u.fixBeetFromData)(t,e,o);a[s]=n,o+=n.byteSize}return l(a,o-i)},toFixedFromValue(e){(0,o.strict)(Array.isArray(e),`${e} should be an array`);let n=0;const r=new Array(e.length);for(let i=0;i<e.length;i++){const o=(0,u.fixBeetFromValue)(t,e[i]);r[i]=o,n+=o.byteSize}return l(r,n)},description:"array"}},e.fixedSizeBuffer=h,e.fixedSizeUint8Array=d,e.uint8Array={toFixedFromData(t,e){const n=s.u32.read(t,e);return(0,c.logTrace)(`${this.description}[${n}]`),d(n,!0)},toFixedFromValue:t=>d(t.byteLength,!0),description:"Uint8Array"},e.collectionsTypeMap={Array:{beet:"array",isFixable:!0,sourcePack:a.BEET_PACKAGE,ts:"Array",arg:i.BEET_TYPE_ARG_LEN},FixedSizeArray:{beet:"fixedSizeArray",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"Array",arg:i.BEET_TYPE_ARG_LEN},UniformFixedSizeArray:{beet:"uniformFixedSizeArray",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"Array",arg:i.BEET_TYPE_ARG_LEN},Buffer:{beet:"fixedSizeBuffer",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"Buffer",arg:i.BEET_TYPE_ARG_LEN},FixedSizeUint8Array:{beet:"fixedSizeUint8Array",isFixable:!1,sourcePack:a.BEET_PACKAGE,ts:"Uint8Array",arg:i.BEET_TYPE_ARG_LEN},Uint8Array:{beet:"uint8Array",isFixable:!0,sourcePack:a.BEET_PACKAGE,ts:"Uint8Array",arg:i.BEET_TYPE_ARG_LEN}}},32492:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compositesTypeMap=e.coption=e.coptionSome=e.coptionNone=e.isNoneBuffer=e.isSomeBuffer=void 0;const r=n(69282),i=n(40933),o=n(40933),s=n(64467),a=n(1538);function c(t,e){return 1===t[e]}function u(t,e){return 0===t[e]}function l(t){return(0,s.logTrace)(`coptionNone(${t})`),{write:function(t,e,n){(0,r.strict)(null==n,"coptionNone can only handle `null` values"),t[e]=0},read:function(t,e){return(0,r.strict)(u(t,e),"coptionNone can only handle `NONE` data"),null},byteSize:1,description:`COption<None(${t})>`}}function h(t){const e=1+t.byteSize,n={write:function(e,n,o){(0,i.assertFixedSizeBeet)(t,`coption inner type ${t.description} needs to be fixed before calling write`),(0,r.strict)(null!=o,"coptionSome cannot handle `null` values"),e[n]=1,t.write(e,n+1,o)},read:function(e,n){return(0,i.assertFixedSizeBeet)(t,`coption inner type ${t.description} needs to be fixed before calling read`),(0,r.strict)(c(e,n),"coptionSome can only handle `SOME` data"),t.read(e,n+1)},description:`COption<${t.description}>[1 + ${t.byteSize}]`,byteSize:e,inner:t};return(0,s.logTrace)(n.description),n}e.isSomeBuffer=c,e.isNoneBuffer=u,e.coptionNone=l,e.coptionSome=h,e.coption=function(t){return{toFixedFromData(e,n){if(c(e,n)){return h((0,a.fixBeetFromData)(t,e,n+1))}return(0,r.strict)(u(e,n),`Expected ${e} to hold a COption`),l(t.description)},toFixedFromValue:e=>null==e?l(t.description):h((0,a.fixBeetFromValue)(t,e)),description:`COption<${t.description}>`}},e.compositesTypeMap={option:{beet:"coption",isFixable:!0,sourcePack:o.BEET_PACKAGE,ts:"COption<Inner>",arg:i.BEET_TYPE_ARG_INNER,pack:o.BEET_PACKAGE}}},4982:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enumsTypeMap=e.dataEnum=e.uniformDataEnum=e.fixedScalarEnum=void 0;const r=n(40933),i=n(68394),o=n(69282),s=n(25611),a=n(16304);function c(t,e){return e?`${t}`:t}function u(t,e,n){return{write(n,r,o){i.u8.write(n,r,e),t.write(n,r+i.u8.byteSize,o)},read(e,r){const o=t.read(e,r+i.u8.byteSize);return{__kind:n,...o}}
1,byteSize:t.byteSize+i.u8.byteSize,description:`EnumData<${t.description}>`}}e.fixedScalarEnum=function(t){const e=Object.keys(t);return{write(n,r,s){const a="number"===typeof s,u=c(s,a);if(e.includes(u)||o.strict.fail(`${s} should be a variant of the provided enum type, i.e. [ ${Object.values(t).join(", ")} ], but isn't`),a)i.u8.write(n,r,s);else{const e=t[u];i.u8.write(n,r,e)}},read(n,r){const s=i.u8.read(n,r),a="number"===typeof s,u=c(s,a);return e.includes(u)||o.strict.fail(`${s} should be a of a variant of the provided enum type, i.e. [ ${Object.values(t).join(", ")} ], but isn't`),a?s:t[u]},byteSize:i.u8.byteSize,description:"Enum"}},e.uniformDataEnum=function(t){return{write:function(e,n,r){i.u8.write(e,n,r.kind),t.write(e,n+1,r.data)},read:function(e,n){return{kind:i.u8.read(e,n),data:t.read(e,n+1)}},byteSize:1+t.byteSize,description:`UniformDataEnum<${t.description}>`}},e.dataEnum=function(t){for(const[e,n]of t)(0,o.strict)((0,s.isBeetStruct)(n)||(0,a.isFixableBeetStruct)(n),"dataEnum: data beet must be a struct");return{toFixedFromData(e,n){const s=i.u8.read(e,n),a=t[s];(0,o.strict)(null!=a,`Discriminant ${s} out of range for ${t.length} variants`);const[c,l]=a;return u((0,r.isFixedSizeBeet)(l)?l:l.toFixedFromData(e,n+1),s,c)},toFixedFromValue(e){if(null==e.__kind){const n=Object.keys(e).join(", "),r=t.map((([t])=>t)).join(", ");o.strict.fail(`Value with fields [ ${n} ] is missing __kind, which needs to be set to one of [ ${r} ]`)}const n=t.findIndex((([t])=>t===e.__kind));if(n<0){const n=t.map((([t])=>t)).join(", ");o.strict.fail(`${e.__kind} is not a valid kind, needs to be one of [ ${n} ]`)}const i=t[n],{__kind:s,...a}=e,[c,l]=i;return u((0,r.isFixedSizeBeet)(l)?l:l.toFixedFromValue(a),n,c)},description:`DataEnum<${t.length} variants>`}},e.enumsTypeMap={fixedScalarEnum:{beet:"fixedScalarEnum",isFixable:!1,sourcePack:r.BEET_PACKAGE,ts:"<TypeName>",arg:r.BEET_TYPE_ARG_INNER,pack:r.BEET_PACKAGE},dataEnum:{beet:"dataEnum",isFixable:!1,sourcePack:r.BEET_PACKAGE,ts:"DataEnum<Kind, Inner>",arg:r.BEET_TYPE_ARG_INNER,pack:r.BEET_PACKAGE}}},68394:function(t,e,n){"use strict";var r=n(48764).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.numbersTypeMap=e.bool=e.i512=e.i256=e.i128=e.i64=e.i32=e.i16=e.i8=e.u512=e.u256=e.u128=e.u64=e.u32=e.u16=e.u8=void 0;const o=i(n(13550)),s=n(40933);function a(t,e){return{write:function(t,e,n){const i=(o.default.isBN(n)?n:new o.default(n)).toArray("le",this.byteSize);r.from(i).copy(t,e,0,this.byteSize)},read:function(t,e){const n=t.slice(e,e+this.byteSize);return new o.default(n,"le")},byteSize:t,description:e}}function c(t,e){const n=8*t;return{write:function(t,e,i){const s=(o.default.isBN(i)?i:new o.default(i)).toTwos(n).toArray("le",this.byteSize);r.from(s).copy(t,e,0,this.byteSize)},read:function(t,e){const r=t.slice(e,e+this.byteSize);return new o.default(r,"le").fromTwos(n)},byteSize:t,description:e}}e.u8={write:function(t,e,n){t.writeUInt8(n,e)},read:function(t,e){return t.readUInt8(e)},byteSize:1,description:"u8"},e.u16={write:function(t,e,n){t.writeUInt16LE(n,e)},read:function(t,e){return t.readUInt16LE(e)},byteSize:2,description:"u16"},e.u32={write:function(t,e,n){t.writeUInt32LE(n,e)},read:function(t,e){return t.readUInt32LE(e)},byteSize:4,description:"u32"},e.u64=a(8,"u64"),e.u128=a(16,"u128"),e.u256=a(32,"u256"),e.u512=a(64,"u512"),e.i8={write:function(t,e,n){t.writeInt8(n,e)},read:function(t,e){return t.readInt8(e)},byteSize:1,description:"i8"},e.i16={write:function(t,e,n){t.writeInt16LE(n,e)},read:function(t,e){return t.readInt16LE(e)},byteSize:2,description:"i16"},e.i32={write:function(t,e,n){t.writeInt32LE(n,e)},read:function(t,e){return t.readInt32LE(e)},byteSize:4,description:"i32"},e.i64=c(8,"i64"),e.i128=c(16,"i128"),e.i256=c(32,"i256"),e.i512=c(64,"i512"),e.bool={write:function(t,n,r){const i=r?1:0;e.u8.write(t,n,i)},read:function(t,n){return 1===e.u8.read(t,n)},byteSize:1,description:"bool"},e.numbersTypeMap={u8:{beet:"u8",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"number"},u16:{beet:"u16",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"number"},u32:{beet:"u32",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"number"},i8:{beet:"i8",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"number"}
1,i16:{beet:"i16",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"number"},i32:{beet:"i32",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"number"},bool:{beet:"bool",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"boolean"},u64:{beet:"u64",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},u128:{beet:"u128",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},u256:{beet:"u256",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},u512:{beet:"u512",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},i64:{beet:"i64",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},i128:{beet:"i128",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},i256:{beet:"i256",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE},i512:{beet:"i512",isFixable:!1,sourcePack:s.BEET_PACKAGE,ts:"bignum",pack:s.BEET_PACKAGE}}},80101:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.stringTypeMap=e.utf8String=e.fixedSizeUtf8String=void 0;const i=n(40933),o=n(69282),s=n(68394),a=n(64467);e.fixedSizeUtf8String=t=>({write:function(e,n,i){const a=r.from(i,"utf8");o.strict.equal(a.byteLength,t,`${i} has invalid byte size`),s.u32.write(e,n,t),a.copy(e,n+4,0,t)},read:function(e,n){const r=s.u32.read(e,n);o.strict.equal(r,t,"invalid byte size");return e.slice(n+4,n+4+t).toString("utf8")},elementByteSize:1,length:t,lenPrefixByteSize:4,byteSize:4+t,description:`Utf8String(4 + ${t})`}),e.utf8String={toFixedFromData(t,n){const r=s.u32.read(t,n);return(0,a.logTrace)(`${this.description}[${r}]`),(0,e.fixedSizeUtf8String)(r)},toFixedFromValue(t){const n=r.from(t).byteLength;return(0,e.fixedSizeUtf8String)(n)},description:"Utf8String"},e.stringTypeMap={fixedSizeString:{beet:"fixedSizeUtf8String",isFixable:!1,sourcePack:i.BEET_PACKAGE,ts:"string",arg:i.BEET_TYPE_ARG_LEN},string:{beet:"utf8String",isFixable:!0,sourcePack:i.BEET_PACKAGE,ts:"string"}}},19217:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.BeetReader=e.BeetWriter=void 0;const i=n(69282);e.BeetWriter=class{constructor(t){this.buf=r.alloc(t),this._offset=0}get buffer(){return this.buf}get offset(){return this._offset}maybeResize(t){this._offset+t>this.buf.length&&i.strict.fail(`We shouldn't ever need to resize, but ${this._offset+t} > ${this.buf.length}`)}write(t,e){this.maybeResize(t.byteSize),t.write(this.buf,this._offset,e),this._offset+=t.byteSize}writeStruct(t,e){for(const[n,r]of e){const e=t[n];this.write(r,e)}}};e.BeetReader=class{constructor(t,e=0){this.buffer=t,this._offset=e}get offset(){return this._offset}read(t){const e=t.read(this.buffer,this._offset);return this._offset+=t.byteSize,e}readStruct(t){const e={};for(const[n,r]of t)e[n]=this.read(r);return e}}},16304:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.FixableBeetArgsStruct=e.isFixableBeetStruct=e.FixableBeetStruct=void 0;const i=n(1538),o=n(25611),s=n(40933),a=n(69282),c=n(64467),u=r(n(48811)),{brightBlack:l}=u.default;class h{constructor(t,e,n=h.description){this.fields=t,this.construct=e,this.description=n;let r=0;if(c.logDebug.enabled){const e=t.map((([t,e])=>((0,s.isFixedSizeBeet)(e)&&(r+=e.byteSize),`${t}: ${e.description} ${(0,c.beetBytes)(e)}`))).join("\n "),i=`> ${r} B`;(0,c.logDebug)(`struct ${n} {\n ${e}\n} ${l(i)}`)}}deserialize(t,e=0){return this.toFixedFromData(t,e).deserialize(t,e)}serialize(t,e){return this.toFixedFromValue(t).serialize(t,e)}toFixedFromData(t,e){let n=e;const r=new Array(this.fields.length);for(let o=0;o<this.fields.length;o++){const[e,s]=this.fields[o],a=(0,i.fixBeetFromData)(s,t,n);r[o]=[e,a],n+=a.byteSize}return this.description!==h.description?new o.BeetStruct(r,this.construct,this.description):new o.BeetStruct(r,this.construct)}toFixedFromValue(t){const e=Object.keys(t),n=new Array(this.fields.length);for(let r=0;r<this.fields.length;r++){const[o,s]=this.fields[r];(0,a.strict)(e.includes(o),`Value with keys [ ${e} ] should include struct key '${o}' but doesn't.`);
1const c=t[o],u=(0,i.fixBeetFromValue)(s,c);n[r]=[o,u]}return this.description!==h.description?new o.BeetStruct(n,this.construct,this.description):new o.BeetStruct(n,this.construct)}get type(){return h.TYPE}}e.FixableBeetStruct=h,h.description="FixableBeetStruct",h.TYPE="FixableBeetStruct",e.isFixableBeetStruct=function(t){return t.type===h.TYPE};class d extends h{constructor(t,e=d.description){super(t,(t=>t),e)}}e.FixableBeetArgsStruct=d,d.description="FixableBeetArgsStruct"},25611:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BeetArgsStruct=e.isBeetStruct=e.BeetStruct=void 0;const r=n(19217),i=n(64467);class o{constructor(t,e,n=o.description){if(this.fields=t,this.construct=e,this.description=n,this.byteSize=this.getByteSize(),i.logDebug.enabled){const e=t.map((([t,e])=>`${String(t)}: ${e.description} ${(0,i.beetBytes)(e)}`)).join("\n ");(0,i.logDebug)(`struct ${n} {\n ${e}\n} ${(0,i.beetBytes)(this)}`)}}read(t,e){const[n]=this.deserialize(t,e);return n}write(t,e,n){const[r,i]=this.serialize(n);r.copy(t,e,0,i)}deserialize(t,e=0){i.logTrace.enabled&&((0,i.logTrace)("deserializing [%s] from %d bytes buffer",this.description,t.byteLength),(0,i.logTrace)(t),(0,i.logTrace)(t.toJSON().data));const n=new r.BeetReader(t,e),o=n.readStruct(this.fields);return[this.construct(o),n.offset]}serialize(t,e=this.byteSize){(0,i.logTrace)("serializing [%s] %o to %d bytes buffer",this.description,t,e);const n=new r.BeetWriter(e);return n.writeStruct(t,this.fields),[n.buffer,n.offset]}getByteSize(){return this.fields.reduce(((t,[e,n])=>t+n.byteSize),0)}get type(){return o.TYPE}}e.BeetStruct=o,o.description="BeetStruct",o.TYPE="BeetStruct",e.isBeetStruct=function(t){return t.type===o.TYPE};class s extends o{constructor(t,e=s.description){super(t,(t=>t),e)}}e.BeetArgsStruct=s,s.description="BeetArgsStruct"},40933:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isElementCollectionFixedSizeBeet=e.isFixableBeet=e.assertFixedSizeBeet=e.isFixedSizeBeet=e.BEET_TYPE_ARG_INNER=e.BEET_TYPE_ARG_LEN=e.BEET_PACKAGE=void 0;const r=n(69282);function i(t){return Object.keys(t).includes("byteSize")}e.BEET_PACKAGE="@metaplex-foundation/beet",e.BEET_TYPE_ARG_LEN="len",e.BEET_TYPE_ARG_INNER="Beet<{innner}>",e.isFixedSizeBeet=i,e.assertFixedSizeBeet=function(t,e=`${t} should have been a fixed beet`){(0,r.strict)(i(t),e)},e.isFixableBeet=function(t){return"function"===typeof t.toFixedFromData&&"function"===typeof t.toFixedFromValue},e.isElementCollectionFixedSizeBeet=function(t){const e=Object.keys(t);return e.includes("length")&&e.includes("elementByteSize")&&e.includes("lenPrefixByteSize")}},64467:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.bytes=e.beetBytes=e.logTrace=e.logDebug=e.logInfo=e.logError=void 0;const i=r(n(11227)),o=r(n(48811)),s=n(40933),{brightBlack:a}=o.default;e.logError=(0,i.default)("beet:error"),e.logInfo=(0,i.default)("beet:info"),e.logDebug=(0,i.default)("beet:debug"),e.logTrace=(0,i.default)("beet:trace"),e.beetBytes=function(t,e=!1){let n;if((0,s.isFixableBeet)(t))n="? B";else if((0,s.isElementCollectionFixedSizeBeet)(t)){const r=e?"length":t.length,i=t.lenPrefixByteSize;n=i>0?`${i} + (${t.elementByteSize} * ${r}) B (${t.byteSize} B)`:`(${t.elementByteSize} * ${r}) B (${t.byteSize} B)`}else n=`${t.byteSize} B`;return a(n)},e.bytes=function(t){return a(`${t} B`)}},59930:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};
1Object.defineProperty(e,"__esModule",{value:!0}),e.deserialize=void 0;const s=o(n(10853)),a=o(n(74597)),c=n(81441),u=n(198),l=n(24013),h=n(61031),d=n(62434),f=n(56694),p=n(35637),m=s.coptionNone("").byteSize;function g(t,e,n){try{const r=t.toFixedFromData(e,n);return[r.read(e,n),r.byteSize,!1]}catch(r){return[null,m,!0]}}e.deserialize=function(t,e=0){let n=e;const r=d.keyBeet.read(t,n);n+=d.keyBeet.byteSize;const i=a.publicKey.read(t,n);n+=a.publicKey.byteSize;const o=a.publicKey.read(t,n);n+=a.publicKey.byteSize;const[y,b]=h.dataBeet.deserialize(t,n);n=b;const v=s.bool.read(t,n);n+=s.bool.byteSize;const w=s.bool.read(t,n);n+=s.bool.byteSize;const _=s.coption(s.u8).toFixedFromData(t,n),k=_.read(t,n);n+=_.byteSize;const[S,x,I]=g(s.coption(f.tokenStandardBeet),t,n);n+=x;const[A,E,T]=I?[null,m,!0]:g(s.coption(u.collectionBeet),t,n);n+=E;const[P,C,M]=I||T?[null,m,!0]:g(s.coption(p.usesBeet),t,n);n+=C;const[O,R,B]=I||T||M?[null,m,!0]:g(s.coption(l.collectionDetailsBeet),t,n);n+=R;const j=I||T||M||B,N={key:r,updateAuthority:i,mint:o,data:y,primarySaleHappened:v,isMutable:w,editionNonce:k,tokenStandard:j?null:S,collection:j?null:A,uses:j?null:P,collectionDetails:j?null:O};return[c.Metadata.fromArgs(N),n]}},81441:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.metadataBeet=e.Metadata=void 0;const s=o(n(68873)),a=o(n(10853)),c=o(n(74597)),u=n(62434),l=n(61031),h=n(56694),d=n(198),f=n(35637),p=n(24013),m=o(n(59930));class g{constructor(t,e,n,r,i,o,s,a,c,u,l){this.key=t,this.updateAuthority=e,this.mint=n,this.data=r,this.primarySaleHappened=i,this.isMutable=o,this.editionNonce=s,this.tokenStandard=a,this.collection=c,this.uses=u,this.collectionDetails=l}static fromArgs(t){return new g(t.key,t.updateAuthority,t.mint,t.data,t.primarySaleHappened,t.isMutable,t.editionNonce,t.tokenStandard,t.collection,t.uses,t.collectionDetails)}static fromAccountInfo(t,e=0){return g.deserialize(t.data,e)}static async fromAccountAddress(t,e){const n=await t.getAccountInfo(e);if(null==n)throw new Error(`Unable to find Metadata account at ${e}`);return g.fromAccountInfo(n,0)[0]}static gpaBuilder(t=new s.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")){return c.GpaBuilder.fromStruct(t,e.metadataBeet)}static deserialize(t,e=0){return v(t,e)}serialize(){return b(this)}static byteSize(t){const n=g.fromArgs(t);return e.metadataBeet.toFixedFromValue(n).byteSize}static async getMinimumBalanceForRentExemption(t,e,n){return e.getMinimumBalanceForRentExemption(g.byteSize(t),n)}pretty(){return{key:"Key."+u.Key[this.key],updateAuthority:this.updateAuthority.toBase58(),mint:this.mint.toBase58(),data:this.data,primarySaleHappened:this.primarySaleHappened,isMutable:this.isMutable,editionNonce:this.editionNonce,tokenStandard:this.tokenStandard,collection:this.collection,uses:this.uses,collectionDetails:this.collectionDetails}}}e.Metadata=g,e.metadataBeet=new a.FixableBeetStruct([["key",u.keyBeet],["updateAuthority",c.publicKey],["mint",c.publicKey],["data",l.dataBeet],["primarySaleHappened",a.bool],["isMutable",a.bool],["editionNonce",a.coption(a.u8)],["tokenStandard",a.coption(h.tokenStandardBeet)],["collection",a.coption(d.collectionBeet)],["uses",a.coption(f.usesBeet)],["collectionDetails",a.coption(p.collectionDetailsBeet)]],g.fromArgs,"Metadata");const y=m,b="function"===typeof y.serialize?y.serialize.bind(y):e.metadataBeet.serialize.bind(e.metadataBeet),v="function"===typeof y.deserialize?y.deserialize.bind(y):e.metadataBeet.deserialize.bind(e.metadataBeet)},198:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};
1Object.defineProperty(e,"__esModule",{value:!0}),e.collectionBeet=void 0;const s=o(n(10853)),a=o(n(74597));e.collectionBeet=new s.BeetArgsStruct([["verified",s.bool],["key",a.publicKey]],"Collection")},24013:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.collectionDetailsBeet=e.isCollectionDetailsV1=void 0;const s=o(n(10853));e.isCollectionDetailsV1=t=>"V1"===t.__kind,e.collectionDetailsBeet=s.dataEnum([["V1",new s.BeetArgsStruct([["size",s.u64]],'CollectionDetailsRecord["V1"]')]])},13419:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.creatorBeet=void 0;const s=o(n(74597)),a=o(n(10853));e.creatorBeet=new a.BeetArgsStruct([["address",s.publicKey],["verified",a.bool],["share",a.u8]],"Creator")},61031:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.dataBeet=void 0;const s=o(n(10853)),a=n(13419);e.dataBeet=new s.FixableBeetArgsStruct([["name",s.utf8String],["symbol",s.utf8String],["uri",s.utf8String],["sellerFeeBasisPoints",s.u16],["creators",s.coption(s.array(a.creatorBeet))]],"Data")},62434:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.keyBeet=e.Key=void 0;const s=o(n(10853));var a;!function(t){t[t.Uninitialized=0]="Uninitialized",t[t.EditionV1=1]="EditionV1",t[t.MasterEditionV1=2]="MasterEditionV1",t[t.ReservationListV1=3]="ReservationListV1",t[t.MetadataV1=4]="MetadataV1",t[t.ReservationListV2=5]="ReservationListV2",t[t.MasterEditionV2=6]="MasterEditionV2",t[t.EditionMarker=7]="EditionMarker",t[t.UseAuthorityRecord=8]="UseAuthorityRecord",t[t.CollectionAuthorityRecord=9]="CollectionAuthorityRecord"}(a=e.Key||(e.Key={})),e.keyBeet=s.fixedScalarEnum(a)},56694:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};
1Object.defineProperty(e,"__esModule",{value:!0}),e.tokenStandardBeet=e.TokenStandard=void 0;const s=o(n(10853));var a;!function(t){t[t.NonFungible=0]="NonFungible",t[t.FungibleAsset=1]="FungibleAsset",t[t.Fungible=2]="Fungible",t[t.NonFungibleEdition=3]="NonFungibleEdition"}(a=e.TokenStandard||(e.TokenStandard={})),e.tokenStandardBeet=s.fixedScalarEnum(a)},89953:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.useMethodBeet=e.UseMethod=void 0;const s=o(n(10853));var a;!function(t){t[t.Burn=0]="Burn",t[t.Multiple=1]="Multiple",t[t.Single=2]="Single"}(a=e.UseMethod||(e.UseMethod={})),e.useMethodBeet=s.fixedScalarEnum(a)},35637:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.usesBeet=void 0;const s=o(n(10853)),a=n(89953);e.usesBeet=new s.BeetArgsStruct([["useMethod",a.useMethodBeet],["remaining",s.u64],["total",s.u64]],"Uses")},68873:function(t,e,n){"use strict";n.r(e),n.d(e,{Account:function(){return qe},AddressLookupTableAccount:function(){return Hn},AddressLookupTableInstruction:function(){return Ti},AddressLookupTableProgram:function(){return Pi},Authorized:function(){return Fi},BLOCKHASH_CACHE_TIMEOUT_MS:function(){return Qn},BPF_LOADER_DEPRECATED_PROGRAM_ID:function(){return $e},BPF_LOADER_PROGRAM_ID:function(){return Bn},BpfLoader:function(){return jn},COMPUTE_BUDGET_INSTRUCTION_LAYOUTS:function(){return Mi},ComputeBudgetInstruction:function(){return Ci},ComputeBudgetProgram:function(){return Oi},Connection:function(){return Ii},Ed25519Program:function(){return Bi},Enum:function(){return De},EpochSchedule:function(){return Un},FeeCalculatorLayout:function(){return Sn},Keypair:function(){return Ai},LAMPORTS_PER_SOL:function(){return uo},LOOKUP_TABLE_INSTRUCTION_LAYOUTS:function(){return Ei},Loader:function(){return Rn},Lockup:function(){return Ui},MAX_SEED_LENGTH:function(){return Fe},Message:function(){return rn},NONCE_ACCOUNT_LENGTH:function(){return In},NonceAccount:function(){return An},PACKET_DATA_SIZE:function(){return Ze},PublicKey:function(){return Ue},SIGNATURE_LENGTH_IN_BYTES:function(){return Ye},SOLANA_SCHEMA:function(){return ze},STAKE_CONFIG_ID:function(){return zi},STAKE_INSTRUCTION_LAYOUTS:function(){return Gi},SYSTEM_INSTRUCTION_LAYOUTS:function(){return Cn},SYSVAR_CLOCK_PUBKEY:function(){return ln},SYSVAR_EPOCH_SCHEDULE_PUBKEY:function(){return hn},SYSVAR_INSTRUCTIONS_PUBKEY:function(){return dn},SYSVAR_RECENT_BLOCKHASHES_PUBKEY:function(){return fn},SYSVAR_RENT_PUBKEY:function(){return pn},SYSVAR_REWARDS_PUBKEY:function(){return mn},SYSVAR_SLOT_HASHES_PUBKEY:function(){return gn},SYSVAR_SLOT_HISTORY_PUBKEY:function(){return yn},SYSVAR_STAKE_HISTORY_PUBKEY:function(){return bn},Secp256k1Program:function(){return Di},SendTransactionError:function(){return Wn},SolanaJSONRPCError:function(){return Vn},SolanaJSONRPCErrorCode:function(){return Gn},StakeAuthorizationLayout:function(){return Vi}
1,StakeInstruction:function(){return Wi},StakeProgram:function(){return Ki},Struct:function(){return Le},SystemInstruction:function(){return Pn},SystemProgram:function(){return Mn},Transaction:function(){return un},TransactionExpiredBlockheightExceededError:function(){return Xe},TransactionExpiredTimeoutError:function(){return Je},TransactionInstruction:function(){return cn},TransactionStatus:function(){return sn},VALIDATOR_INFO_KEY:function(){return Xi},VOTE_PROGRAM_ID:function(){return to},ValidatorInfo:function(){return Qi},VoteAccount:function(){return no},VoteAuthorizationLayout:function(){return Zi},VoteInit:function(){return Hi},VoteInstruction:function(){return qi},VoteProgram:function(){return Yi},clusterApiUrl:function(){return ao},sendAndConfirmRawTransaction:function(){return co},sendAndConfirmTransaction:function(){return vn}});var r=n(50780),i=n.n(r),o=n(81020),s=n(13550),a=n.n(s),c=n(14866),u=n.n(c),l=n(25532),h=n(39386),d=n(40475),f=n(53471),p=n(83937),m=n(31198),g=n.n(m),y=n(17221),b=n.n(y),v=n(91094),w=n.n(v);const _=t=>o.lW.isBuffer(t)?t:t instanceof Uint8Array?o.lW.from(t.buffer,t.byteOffset,t.byteLength):o.lW.from(t);var k={},S={},x=I;function I(t,e){if(!t)throw new Error(e||"Assertion failed")}I.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)};var A={exports:{}};"function"===typeof Object.create?A.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:A.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}};var E=x,T=A.exports;function P(t,e){return 55296===(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320===(64512&t.charCodeAt(e+1)))}function C(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function M(t){return 1===t.length?"0"+t:t}function O(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}S.inherits=T,S.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"===typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(t="0"+t),i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16))}else for(var r=0,i=0;i<t.length;i++){var o=t.charCodeAt(i);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=63&o|128):P(t,i)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i<t.length;i++)n[i]=0|t[i];return n},S.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=M(t[n].toString(16));return e},S.htonl=C,S.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var i=t[r];
vendor: 5,130 bytes, line 1
1"little"===e&&(i=C(i)),n+=O(i.toString(16))}return n},S.zero2=M,S.zero8=O,S.join32=function(t,e,n,r){var i=n-e;E(i%4===0);for(var o=new Array(i/4),s=0,a=e;s<o.length;s++,a+=4){var c;c="big"===r?t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]:t[a+3]<<24|t[a+2]<<16|t[a+1]<<8|t[a],o[s]=c>>>0}return o},S.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r<t.length;r++,i+=4){var o=t[r];"big"===e?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},S.rotr32=function(t,e){return t>>>e|t<<32-e},S.rotl32=function(t,e){return t<<e|t>>>32-e},S.sum32=function(t,e){return t+e>>>0},S.sum32_3=function(t,e,n){return t+e+n>>>0},S.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},S.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},S.sum64=function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,s=(o<r?1:0)+n+i;t[e]=s>>>0,t[e+1]=o},S.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},S.sum64_lo=function(t,e,n,r){return e+r>>>0},S.sum64_4_hi=function(t,e,n,r,i,o,s,a){var c=0,u=e;return c+=(u=u+r>>>0)<e?1:0,c+=(u=u+o>>>0)<o?1:0,t+n+i+s+(c+=(u=u+a>>>0)<a?1:0)>>>0},S.sum64_4_lo=function(t,e,n,r,i,o,s,a){return e+r+o+a>>>0},S.sum64_5_hi=function(t,e,n,r,i,o,s,a,c,u){var l=0,h=e;return l+=(h=h+r>>>0)<e?1:0,l+=(h=h+o>>>0)<o?1:0,l+=(h=h+a>>>0)<a?1:0,t+n+i+s+c+(l+=(h=h+u>>>0)<u?1:0)>>>0},S.sum64_5_lo=function(t,e,n,r,i,o,s,a,c,u){return e+r+o+a+u>>>0},S.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},S.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},S.shr64_hi=function(t,e,n){return t>>>n},S.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0};var R={},B=S,j=x;function N(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}R.BlockHash=N,N.prototype.update=function(t,e){if(t=B.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=B.join32(t,0,t.length-n,this.endian);for(var r=0;r<t.length;r+=this._delta32)this._update(t,r,r+this._delta32)}return this},N.prototype.digest=function(t){return this.update(this._pad()),j(null===this.pending),this._digest(t)},N.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=t>>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r};var L={},D={},z=S.rotr32;function F(t,e,n){return t&e^~t&n}function U(t,e,n){return t&e^t&n^e&n}function W(t,e,n){return t^e^n}D.ft_1=function(t,e,n,r){return 0===t?F(e,n,r):1===t||3===t?W(e,n,r):2===t?U(e,n,r):void 0},D.ch32=F,D.maj32=U,D.p32=W,D.s0_256=function(t){return z(t,2)^z(t,13)^z(t,22)},D.s1_256=function(t){return z(t,6)^z(t,11)^z(t,25)},D.g0_256=function(t){return z(t,7)^z(t,18)^t>>>3},D.g1_256=function(t){return z(t,17)^z(t,19)^t>>>10};var G=S,V=R,K=D,H=G.rotl32,q=G.sum32,$=G.sum32_5,Z=K.ft_1,Y=V.BlockHash,X=[1518500249,1859775393,2400959708,3395469782];function J(){if(!(this instanceof J))return new J;Y.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}G.inherits(J,Y);var Q=J;J.blockSize=512,J.outSize=160,J.hmacStrength=80,J.padLength=64,J.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=H(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],s=this.h[2],a=this.h[3],c=this.h[4];for(r=0;r<n.length;r++){var u=~~(r/20),l=$(H(i,5),Z(u,o,s,a),c,n[r],X[u]);c=a,a=s,s=H(o,30),o=i,i=l}this.h[0]=q(this.h[0],i),this.h[1]=q(this.h[1],o),this.h[2]=q(this.h[2],s),this.h[3]=q(this.h[3],a),this.h[4]=q(this.h[4],c)},J.prototype._digest=function(t){return"hex"===t?G.toHex32(this.h,"big"):G.split32(this.h,"big")};var tt=S,et=R,nt=D,rt=x,it=tt.sum32,ot=tt.sum32_4,st=tt.sum32_5,at=nt.ch32,ct=nt.maj32,ut=nt.s0_256,lt=nt.s1_256,ht=nt.g0_256,dt=nt.g1_256,ft=et.BlockHash,pt=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
vendor: 14,325 bytes, line 1
1734187,3204031479,3329325298];function mt(){if(!(this instanceof mt))return new mt;ft.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=pt,this.W=new Array(64)}tt.inherits(mt,ft);var gt=mt;mt.blockSize=512,mt.outSize=256,mt.hmacStrength=192,mt.padLength=64,mt.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=ot(dt(n[r-2]),n[r-7],ht(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],s=this.h[2],a=this.h[3],c=this.h[4],u=this.h[5],l=this.h[6],h=this.h[7];for(rt(this.k.length===n.length),r=0;r<n.length;r++){var d=st(h,lt(c),at(c,u,l),this.k[r],n[r]),f=it(ut(i),ct(i,o,s));h=l,l=u,u=c,c=it(a,d),a=s,s=o,o=i,i=it(d,f)}this.h[0]=it(this.h[0],i),this.h[1]=it(this.h[1],o),this.h[2]=it(this.h[2],s),this.h[3]=it(this.h[3],a),this.h[4]=it(this.h[4],c),this.h[5]=it(this.h[5],u),this.h[6]=it(this.h[6],l),this.h[7]=it(this.h[7],h)},mt.prototype._digest=function(t){return"hex"===t?tt.toHex32(this.h,"big"):tt.split32(this.h,"big")};var yt=S,bt=gt;function vt(){if(!(this instanceof vt))return new vt;bt.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}yt.inherits(vt,bt);var wt=vt;vt.blockSize=512,vt.outSize=224,vt.hmacStrength=192,vt.padLength=64,vt.prototype._digest=function(t){return"hex"===t?yt.toHex32(this.h.slice(0,7),"big"):yt.split32(this.h.slice(0,7),"big")};var _t=S,kt=R,St=x,xt=_t.rotr64_hi,It=_t.rotr64_lo,At=_t.shr64_hi,Et=_t.shr64_lo,Tt=_t.sum64,Pt=_t.sum64_hi,Ct=_t.sum64_lo,Mt=_t.sum64_4_hi,Ot=_t.sum64_4_lo,Rt=_t.sum64_5_hi,Bt=_t.sum64_5_lo,jt=kt.BlockHash,Nt=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Lt(){if(!(this instanceof Lt))return new Lt;jt.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Nt,this.W=new Array(160)}_t.inherits(Lt,jt);var Dt=Lt;function zt(t,e,n,r,i){var o=t&n^~t&i;return o<0&&(o+=4294967296),o}function Ft(t,e,n,r,i,o){var s=e&r^~e&o;return s<0&&(s+=4294967296),s}function Ut(t,e,n,r,i){var o=t&n^t&i^n&i;return o<0&&(o+=4294967296),o}function Wt(t,e,n,r,i,o){var s=e&r^e&o^r&o;return s<0&&(s+=4294967296),s}function Gt(t,e){var n=xt(t,e,28)^xt(e,t,2)^xt(e,t,7);return n<0&&(n+=4294967296),n}function Vt(t,e){var n=It(t,e,28)^It(e,t,2)^It(e,t,7);return n<0&&(n+=4294967296),n}function Kt(t,e){var n=xt(t,e,14)^xt(t,e,18)^xt(e,t,9);return n<0&&(n+=4294967296),n}function Ht(t,e){var n=It(t,e,14)^It(t,e,18)^It(e,t,9);return n<0&&(n+=4294967296),n}function qt(t,e){var n=xt(t,e,1)^xt(t,e,8)^At(t,e,7);return n<0&&(n+=4294967296),n}function $t(t,e){var n=It(t,e,1)^It(t,e,8)^Et(t,e,7);return n<0&&(n+=4294967296),n}function Zt(t,e){var n=xt(t,e,19)^xt(e,t,29)^At(t,e,6);return n<0&&(n+=4294967296),n}function Yt(t,e){var n=It(t,e,19)^It(e,t,29)^Et(t,e,6);return n<0&&(n+=4294967296),n}Lt.blockSize=1024,Lt.outSize=512,Lt.hmacStrength=192,Lt.padLength=128,Lt.prototype._prepareBlock=function(t,e){for(var n=this.W,r=0;r<32;r++)n[r]=t[e+r];for(;r<n.length;r+=2){var i=Zt(n[r-4],n[r-3]),o=Yt(n[r-4],n[r-3]),s=n[r-14],a=n[r-13],c=qt(n[r-30],n[r-29]),u=$t(n[r-30],n[r-29]),l=n[r-32],h=n[r-31];n[r]=Mt(i,o,s,a,c,u,l,h),n[r+1]=Ot(i,o,s,a,c,u,l,h)}},Lt.prototype._update=function(t,e){this._prepareBlock(t,e);var n=this.W,r=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],a=this.h[4],c=this.h[5],u=this.h[6],l=this.h[7],h=this.h[8],d=this.h[9],f=this.h[10],p=this.h[11],m=this.h[12],g=this.h[13],y=this.h[14],b=this.h[15];St(this.k.length===n.length);for(var v=0;v<n.length;v+=2){var w=y,_=b,k=Kt(h,d),S=Ht(h,d),x=zt(h,d,f,p,m),I=Ft(h,d,f,p,m,g),A=this.k[v],E=this.k[v+1],T=n[v],P=n[v+1],C=Rt(w,_,k,S,x,I,A,E,T,P),M=Bt(w,_,k,S,x,I,A,E,T,P);w=Gt(r,i),_=Vt(r,i),k=Ut(r,i,o,s,a),S=Wt(r,i,o,s,a,c);var O=Pt(w,_,k,S),R=Ct(w,_,k,S);y=m,b=g,m=f,g=p,f=h,p=d,h=Pt(u,l,C,M),d=Ct(l,l,C,M),u=a,l=c,a=o,c=s,o=r,s=i,r=Pt(C,M,O,R),i=Ct(C,M,O,R)}Tt(this.h,0,r,i),Tt(this.h,2,o,s),Tt(this.h,4,a,c),Tt(this.h,6,u,l),Tt(this.h,8,h,d),Tt(this.h,10,f,p),Tt(this.h,12,m,g),Tt(this.h,14,y,b)},Lt.prototype._digest=function(t){return"hex"===t?_t.toHex32(this.h,"big"):_t.split32(this.h,"big")};var Xt=S,Jt=Dt;function Qt(){if(!(this instanceof Qt))return new Qt;Jt.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Xt.inherits(Qt,Jt);var te=Qt;Qt.blockSize=1024,Qt.outSize=384,Qt.hmacStrength=192,Qt.padLength=128,Qt.prototype._digest=function(t){return"hex"===t?Xt.toHex32(this.h.slice(0,12),"big"):Xt.split32(this.h.slice(0,12),"big")},L.sha1=Q,L.sha224=wt,L.sha256=gt,L.sha384=te,L.sha512=Dt;var ee={},ne=S,re=R,ie=ne.rotl32,oe=ne.sum32,se=ne.sum32_3,ae=ne.sum32_4,ce=re.BlockHash;function ue(){if(!(this instanceof ue))return new ue;ce.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function le(t,e,n,r){return t<=15?e^n^r:t<=31?e&n|~e&r:t<=47?(e|~n)^r:t<=63?e&r|n&~r:e^(n|~r)}function he(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function de(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}ne.inherits(ue,ce),ee.ripemd160=ue,ue.blockSize=512,ue.outSize=160,ue.hmacStrength=192,ue.padLength=64,ue.prototype._update=function(t,e){for(var n=this.h[0],r=this.h[1],i=this.h[2],o=this.h[3],s=this.h[4],a=n,c=r,u=i,l=o,h=s,d=0;d<80;d++){var f=oe(ie(ae(n,le(d,r,i,o),t[fe[d]+e],he(d)),me[d]),s);n=s,s=o,o=ie(i,10),i=r,r=f,f=oe(ie(ae(a,le(79-d,c,u,l),t[pe[d]+e],de(d)),ge[d]),h),a=h,h=l,l=ie(u,10),u=c,c=f}f=se(this.h[1],i,l),this.h[1]=se(this.h[2],o,h),this.h[2]=se(this.h[3],s,a),this.h[3]=se(this.h[4],n,c),this.h[4]=se(this.h[0],r,u),this.h[0]=f},ue.prototype._digest=function(t){return"hex"===t?ne.toHex32(this.h,"little"):ne.split32(this.h,"little")};var fe=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],pe=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],me=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],ge=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],ye=S,be=x;function ve(t,e,n){if(!(this instanceof ve))return new ve(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(ye.toArray(e,n))}var we=ve;ve.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),be(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},ve.prototype.update=function(t,e){return this.inner.update(t,e),this},ve.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)},function(t){var e=t;e.utils=S,e.common=R,e.sha=L,e.ripemd=ee,e.hmac=we,e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160}(k);var _e=k;let ke=!1,Se=!1;const xe={debug:1,default:2,info:2,warning:3,error:4,off:5};let Ie=xe.default,Ae=null;const Ee=function(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(n){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var Te,Pe;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(Te||(Te={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED"}(Pe||(Pe={}));const Ce="0123456789abcdef";class Me{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const n=t.toLowerCase();null==xe[n]&&this.throwArgumentError("invalid log level name","logLevel",t),Ie>xe[n]||console.log.apply(console,e)}debug(...t){this._log(Me.levels.DEBUG,t)}info(...t){this._log(Me.levels.INFO,t)}warn(...t){this._log(Me.levels.WARNING,t)}makeError(t,e,n){if(Se)return this.makeError("censored error",e,{});e||(e=Me.errors.UNKNOWN_ERROR),n||(n={});const r=[];Object.keys(n).forEach((t=>{const e=n[t];try{if(e instanceof Uint8Array){let n="";for(let t=0;t<e.length;t++)n+=Ce[e[t]>>4],n+=Ce[15&e[t]];r.push(t+"=Uint8Array(0x"+n+")")}else r.push(t+"="+JSON.stringify(e))}catch(s){r.push(t+"="+JSON.stringify(n[t].toString()))}})),r.push(`code=${e}`),r.push(`version=${this.version}`);const i=t;let o="";switch(e){case Pe.NUMERIC_FAULT:{o="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case Pe.CALL_EXCEPTION:case Pe.INSUFFICIENT_FUNDS:case Pe.MISSING_NEW:case Pe.NONCE_EXPIRED:case Pe.REPLACEMENT_UNDERPRICED:case Pe.TRANSACTION_REPLACED:case Pe.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),r.length&&(t+=" ("+r.join(", ")+")");const s=new Error(t);return s.reason=i,s.code=e,Object.keys(n).forEach((function(t){s[t]=n[t]})),s}throwError(t,e,n){throw this.makeError(t,e,n)}throwArgumentError(t,e,n){return this.throwError(t,Me.errors.INVALID_ARGUMENT,{argument:e,value:n})}assert(t,e,n,r){t||this.throwError(e,n,r)}assertArgument(t,e,n,r){t||this.throwArgumentError(e,n,r)}checkNormalize(t){Ee&&this.throwError("platform missing String.prototype.normalize",Me.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Ee})}checkSafeUint53(t,e){"number"===typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,Me.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,Me.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,n){n=n?": "+n:"",t<e&&this.throwError("missing argument"+n,Me.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+n,Me.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",Me.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",Me.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",Me.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return Ae||(Ae=new Me("logger/5.6.0")),Ae}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",Me.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),ke){if(!t)return;this.globalLogger().throwError("error censorship permanent",Me.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Se=!!t,ke=!!e}static setLogLevel(t){const e=xe[t.toLowerCase()];null!=e?Ie=e:Me.globalLogger().warn("invalid log level - "+t)}static from(t){return new Me(t)}}Me.errors=Pe,Me.levels=Te;const Oe=new Me("bytes/5.6.0");function Re(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return Re(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function Be(t){return"number"===typeof t&&t==t&&t%1===0}function je(t,e){if(e||(e={}
1),"number"===typeof t){Oe.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),Re(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"===typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),function(t){return!!t.toHexString}(t)&&(t=t.toHexString()),function(t,e){if("string"!==typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))return!1;if(e&&t.length!==2+2*e)return!1;return!0}(t)){let n=t.substring(2);n.length%2&&("left"===e.hexPad?n="0x0"+n.substring(2):"right"===e.hexPad?n+="0":Oe.throwArgumentError("hex data is odd-length","value",t));const r=[];for(let t=0;t<n.length;t+=2)r.push(parseInt(n.substring(t,t+2),16));return Re(new Uint8Array(r))}return function(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"===typeof t)return!1;if(!Be(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){const n=t[e];if(!Be(n)||n<0||n>=256)return!1}return!0}(t)?Re(new Uint8Array(t)):Oe.throwArgumentError("invalid arrayify value","value",t)}function Ne(t){return"0x"+_e.sha256().update(je(t)).digest("hex")}new Me("sha2/5.6.0");class Le{constructor(t){Object.assign(this,t)}encode(){return o.lW.from((0,l.serialize)(ze,this))}static decode(t){return(0,l.deserialize)(ze,this,t)}static decodeUnchecked(t){return(0,l.deserializeUnchecked)(ze,this,t)}}class De extends Le{constructor(t){if(super(t),this.enum="",1!==Object.keys(t).length)throw new Error("Enum can only take single value");Object.keys(t).map((t=>{this.enum=t}))}}const ze=new Map,Fe=32;class Ue extends Le{constructor(t){if(super({}),this._bn=void 0,function(t){return void 0!==t._bn}(t))this._bn=t._bn;else{if("string"===typeof t){const e=u().decode(t);if(32!=e.length)throw new Error("Invalid public key input");this._bn=new(a())(e)}else this._bn=new(a())(t);if(this._bn.byteLength()>32)throw new Error("Invalid public key input")}}equals(t){return this._bn.eq(t._bn)}toBase58(){return u().encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){return this.toBuffer()}toBuffer(){const t=this._bn.toArrayLike(o.lW);if(32===t.length)return t;const e=o.lW.alloc(32);return t.copy(e,32-t.length),e}toString(){return this.toBase58()}static async createWithSeed(t,e,n){const r=o.lW.concat([t.toBuffer(),o.lW.from(e),n.toBuffer()]),i=Ne(new Uint8Array(r)).slice(2);return new Ue(o.lW.from(i,"hex"))}static createProgramAddressSync(t,e){let n=o.lW.alloc(0);t.forEach((function(t){if(t.length>Fe)throw new TypeError("Max seed length exceeded");n=o.lW.concat([n,_(t)])})),n=o.lW.concat([n,e.toBuffer(),o.lW.from("ProgramDerivedAddress")]);let r=Ne(new Uint8Array(n)).slice(2),i=new(a())(r,16).toArray(void 0,32);if(Ge(i))throw new Error("Invalid seeds, address must fall off the curve");return new Ue(i)}static async createProgramAddress(t,e){return this.createProgramAddressSync(t,e)}static findProgramAddressSync(t,e){let n,r=255;for(;0!=r;){try{const i=t.concat(o.lW.from([r]));n=this.createProgramAddressSync(i,e)}catch(i){if(i instanceof TypeError)throw i;r--;continue}return[n,r]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(t,e){return this.findProgramAddressSync(t,e)}static isOnCurve(t){return 1==Ge(new Ue(t).toBytes())}}Ue.default=new Ue("11111111111111111111111111111111"),ze.set(Ue,{kind:"struct",fields:[["_bn","u256"]]});let We=i().lowlevel;function Ge(t){var e=[We.gf(),We.gf(),We.gf(),We.gf()],n=We.gf(),r=We.gf(),i=We.gf(),o=We.gf(),s=We.gf(),a=We.gf(),c=We.gf();return We.set25519(e[2],Ve),We.unpack25519(e[1],t),We.S(i,e[1]),We.M(o,i,We.D),We.Z(i,i,e[2]),We.A(o,e[2],o),We.S(s,o),We.S(a,s),We.M(c,a,s),We.M(n,c,i),We.M(n,n,o),We.pow2523(n,n),We.M(n,n,i),We.M(n,n,o),We.M(n,n,o),We.M(e[0],n,o),We.S(r,e[0]),We.M(r,r,o),He(r,i)&&We.M(e[0],e[0],Ke),We.S(r,e[0]),We.M(r,r,o),He(r,i)?0:1}let Ve=We.gf([1]),Ke=We.gf([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function He(t,e){var n=new Uint8Array(32),r=new Uint8Array(32);return We.pack25519(n,t),We.pack25519(r,e),We.crypto_verify_32(n,0,r,0)}class qe{constructor(t){this._keypair=void 0,this._keypair=t?i().sign.keyPair.fromSecretKey(_(t)):i().sign.keyPair()}get publicKey(){return new Ue(this._keypair.publicKey)}get secretKey(){return _(this._keypair.secretKey)}}const $e=new Ue("BPFLoader1111111111111111111111111111111111"),Ze=1232,Ye=64;
1class Xe extends Error{constructor(t){super(`Signature ${t} has expired: block height exceeded.`),this.signature=void 0,this.signature=t}}Object.defineProperty(Xe.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});class Je extends Error{constructor(t,e){super(`Transaction was not confirmed in ${e.toFixed(2)} seconds. It is unknown if it succeeded or failed. Check signature ${t} using the Solana Explorer or CLI tools.`),this.signature=void 0,this.signature=t}}Object.defineProperty(Je.prototype,"name",{value:"TransactionExpiredTimeoutError"});const Qe=(t="publicKey")=>h.blob(32,t),tn=(t="string")=>{const e=h.struct([h.u32("length"),h.u32("lengthPadding"),h.blob(h.offset(h.u32(),-8),"chars")],t),n=e.decode.bind(e),r=e.encode.bind(e),i=e;return i.decode=(t,e)=>n(t,e).chars.toString(),i.encode=(t,e,n)=>{const i={chars:o.lW.from(t,"utf8")};return r(i,e,n)},i.alloc=t=>h.u32().span+h.u32().span+o.lW.from(t,"utf8").length,i};function en(t){let e=0,n=0;for(;;){let r=t.shift();if(e|=(127&r)<<7*n,n+=1,0===(128&r))break}return e}function nn(t,e){let n=e;for(;;){let e=127&n;if(n>>=7,0==n){t.push(e);break}e|=128,t.push(e)}}class rn{constructor(t){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map((t=>new Ue(t))),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach((t=>this.indexToProgramIds.set(t.programIdIndex,this.accountKeys[t.programIdIndex])))}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){return t<this.header.numRequiredSignatures-this.header.numReadonlySignedAccounts||t>=this.header.numRequiredSignatures&&t<this.accountKeys.length-this.header.numReadonlyUnsignedAccounts}isProgramId(t){return this.indexToProgramIds.has(t)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter(((t,e)=>!this.isProgramId(e)))}serialize(){const t=this.accountKeys.length;let e=[];nn(e,t);const n=this.instructions.map((t=>{const{accounts:e,programIdIndex:n}=t,r=Array.from(u().decode(t.data));let i=[];nn(i,e.length);let s=[];return nn(s,r.length),{programIdIndex:n,keyIndicesCount:o.lW.from(i),keyIndices:e,dataLength:o.lW.from(s),data:r}}));let r=[];nn(r,n.length);let i=o.lW.alloc(Ze);o.lW.from(r).copy(i);let s=r.length;n.forEach((t=>{const e=h.struct([h.u8("programIdIndex"),h.blob(t.keyIndicesCount.length,"keyIndicesCount"),h.seq(h.u8("keyIndex"),t.keyIndices.length,"keyIndices"),h.blob(t.dataLength.length,"dataLength"),h.seq(h.u8("userdatum"),t.data.length,"data")]).encode(t,i,s);s+=e})),i=i.slice(0,s);const a=h.struct([h.blob(1,"numRequiredSignatures"),h.blob(1,"numReadonlySignedAccounts"),h.blob(1,"numReadonlyUnsignedAccounts"),h.blob(e.length,"keyCount"),h.seq(Qe("key"),t,"keys"),Qe("recentBlockhash")]),c={numRequiredSignatures:o.lW.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:o.lW.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:o.lW.from([this.header.numReadonlyUnsignedAccounts]),keyCount:o.lW.from(e),keys:this.accountKeys.map((t=>_(t.toBytes()))),recentBlockhash:u().decode(this.recentBlockhash)};let l=o.lW.alloc(2048);const d=a.encode(c,l);return i.copy(l,d),l.slice(0,d+i.length)}static from(t){let e=[...t];const n=e.shift(),r=e.shift(),i=e.shift(),s=en(e);let a=[];for(let f=0;f<s;f++){const t=e.slice(0,32);e=e.slice(32),a.push(u().encode(o.lW.from(t)))}const c=e.slice(0,32);e=e.slice(32);const l=en(e);let h=[];for(let f=0;f<l;f++){const t=e.shift(),n=en(e),r=e.slice(0,n);e=e.slice(n);const i=en(e),s=e.slice(0,i),a=u().encode(o.lW.from(s));e=e.slice(i),h.push({programIdIndex:t,accounts:r,data:a})}const d={header:{numRequiredSignatures:n,numReadonlySignedAccounts:r,numReadonlyUnsignedAccounts:i},recentBlockhash:u().encode(o.lW.from(c)),accountKeys:a,instructions:h};return new rn(d)}}function on(t,e){if(!t)throw new Error(e||"Assertion failed")}let sn;!function(t){t[t.BLOCKHEIGHT_EXCEEDED=0]="BLOCKHEIGHT_EXCEEDED",t[t.PROCESSED=1]="PROCESSED",t[t.TIMED_OUT=2]="TIMED_OUT"}(sn||(sn={}));const an=o.lW.alloc(Ye).fill(0);class cn{constructor(t){this.keys=void 0,this.programId=void 0,this.data=o.lW.alloc(0),this.programId=t.programId,this.keys=t.keys,t.data&&(this.data=t.data)}toJSON(){return{keys:this.keys.map((({pubkey:t,isSigner:e,isWritable:n})=>({pubkey:t.toJSON(),isSigner:e,isWritable:n}))),programId:this.programId.toJSON(),data:[...this.data]}}}class un{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(t){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this._message=void 0,this._json=void 0,t)if(t.feePayer&&(this.feePayer=t.feePayer),t.signatures&&(this.signatures=t.signatures),Object.prototype.hasOwnProperty.call(t,"lastValidBlockHeight")){const{blockhash:e,lastValidBlockHeight:n}=t;this.recentBlockhash=e,this.lastValidBlockHeight=n}else{const{recentBlockhash:e,nonceInfo:n}=t;n&&(this.nonceInfo=n),this.recentBlockhash=e}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstru
1ction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map((t=>t.toJSON())),signers:this.signatures.map((({publicKey:t})=>t.toJSON()))}}add(...t){if(0===t.length)throw new Error("No instructions");return t.forEach((t=>{"instructions"in t?this.instructions=this.instructions.concat(t.instructions):"data"in t&&"programId"in t&&"keys"in t?this.instructions.push(t):this.instructions.push(new cn(t))})),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let t,e,n;if(this.nonceInfo?(t=this.nonceInfo.nonce,e=this.instructions[0]!=this.nonceInfo.nonceInstruction?[this.nonceInfo.nonceInstruction,...this.instructions]:this.instructions):(t=this.recentBlockhash,e=this.instructions),!t)throw new Error("Transaction recentBlockhash required");if(e.length<1&&console.warn("No instructions provided"),this.feePayer)n=this.feePayer;else{if(!(this.signatures.length>0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");n=this.signatures[0].publicKey}for(let u=0;u<e.length;u++)if(void 0===e[u].programId)throw new Error(`Transaction instruction index ${u} has undefined program id`);const r=[],i=[];e.forEach((t=>{t.keys.forEach((t=>{i.push({...t})}));const e=t.programId.toString();r.includes(e)||r.push(e)})),r.forEach((t=>{i.push({pubkey:new Ue(t),isSigner:!1,isWritable:!1})}
1));const o=[];i.forEach((t=>{const e=t.pubkey.toString(),n=o.findIndex((t=>t.pubkey.toString()===e));n>-1?(o[n].isWritable=o[n].isWritable||t.isWritable,o[n].isSigner=o[n].isSigner||t.isSigner):o.push(t)})),o.sort((function(t,e){return t.isSigner!==e.isSigner?t.isSigner?-1:1:t.isWritable!==e.isWritable?t.isWritable?-1:1:t.pubkey.toBase58().localeCompare(e.pubkey.toBase58())}));const s=o.findIndex((t=>t.pubkey.equals(n)));if(s>-1){const[t]=o.splice(s,1);t.isSigner=!0,t.isWritable=!0,o.unshift(t)}else o.unshift({pubkey:n,isSigner:!0,isWritable:!0});for(const u of this.signatures){const t=o.findIndex((t=>t.pubkey.equals(u.publicKey)));if(!(t>-1))throw new Error(`unknown signer: ${u.publicKey.toString()}`);o[t].isSigner||(o[t].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))}let a=0,c=0,l=0;const h=[],d=[];o.forEach((({pubkey:t,isSigner:e,isWritable:n})=>{e?(h.push(t.toString()),a+=1,n||(c+=1)):(d.push(t.toString()),n||(l+=1))}));const f=h.concat(d),p=e.map((t=>{const{data:e,programId:n}=t;return{programIdIndex:f.indexOf(n.toString()),accounts:t.keys.map((t=>f.indexOf(t.pubkey.toString()))),data:u().encode(e)}}));return p.forEach((t=>{on(t.programIdIndex>=0),t.accounts.forEach((t=>on(t>=0)))})),new rn({header:{numRequiredSignatures:a,numReadonlySignedAccounts:c,numReadonlyUnsignedAccounts:l},accountKeys:f,recentBlockhash:t,instructions:p})}_compile(){const t=this.compileMessage(),e=t.accountKeys.slice(0,t.header.numRequiredSignatures);if(this.signatures.length===e.length){if(this.signatures.every(((t,n)=>e[n].equals(t.publicKey))))return t}return this.signatures=e.map((t=>({signature:null,publicKey:t}))),t}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(t){return(await t.getFeeForMessage(this.compileMessage())).value}setSigners(...t){if(0===t.length)throw new Error("No signers");const e=new Set;this.signatures=t.filter((t=>{const n=t.toString();return!e.has(n)&&(e.add(n),!0)})).map((t=>({signature:null,publicKey:t})))}sign(...t){if(0===t.length)throw new Error("No signers");const e=new Set,n=[];for(const i of t){const t=i.publicKey.toString();e.has(t)||(e.add(t),n.push(i))}this.signatures=n.map((t=>({signature:null,publicKey:t.publicKey})));const r=this._compile();this._partialSign(r,...n)}partialSign(...t){if(0===t.length)throw new Error("No signers");const e=new Set,n=[];for(const i of t){const t=i.publicKey.toString();e.has(t)||(e.add(t),n.push(i))}const r=this._compile();this._partialSign(r,...n)}_partialSign(t,...e){const n=t.serialize();e.forEach((t=>{const e=i().sign.detached(n,t.secretKey);this._addSignature(t.publicKey,_(e))}))}addSignature(t,e){this._compile(),this._addSignature(t,e)}_addSignature(t,e){on(64===e.length);const n=this.signatures.findIndex((e=>t.equals(e.publicKey)));if(n<0)throw new Error(`unknown signer: ${t.toString()}`);this.signatures[n].signature=o.lW.from(e)}verifySignatures(){return this._verifySignatures(this.serializeMessage(),!0)}_verifySignatures(t,e){for(const{signature:n,publicKey:r}of this.signatures)if(null===n){if(e)return!1}else if(!i().sign.detached.verify(t,n,r.toBuffer()))return!1;return!0}serialize(t){const{requireAllSignatures:e,verifySignatures:n}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),r=this.serializeMessage();if(n&&!this._verifySignatures(r,e))throw new Error("Signature verification failed");return this._serialize(r)}_serialize(t){const{signatures:e}=this,n=[];nn(n,e.length);const r=n.length+64*e.length+t.length,i=o.lW.alloc(r);return on(e.length<256),o.lW.from(n).copy(i,0),e.forEach((({signature:t},e)=>{null!==t&&(on(64===t.length,"signature has invalid length"),o.lW.from(t).copy(i,n.length+64*e))})),t.copy(i,n.length+64*e.length),on(i.length<=Ze,`Transaction too large: ${i.length} > ${Ze}`),i}get keys(){return on(1===this.instructions.length),this.instructions[0].keys.map((t=>t.pubkey))}get programId(){return on(1===this.instructions.length),this.instructions[0].programId}get data(){return on(1===this.instructions.length),this.instructions[0].data}static from(t){let e=[...t];const n=en(e);let r=[];for(let i=0;i<n;i++){const t=e.slice(0,Ye);e=e.slice(Ye),r.push(u().encode(o.lW.from(t)))}return un.populate(rn.from(e),r)}static populate(t,e=[]){const n=new un;return n.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(n.feePayer=t.accountKeys[0]),e.forEach(((e,r)=>{const i={signature:e==u().encode(an)?null:u().decode(e),publicKey:t.accountKeys[r]};n.signatures.push(i)})),t.instructions.forEach((e=>{const r=e.accounts.map((e=>{const r=t.accountKeys[e];return{pubkey:r,isSigner:n.signatures.some((t=>t.publicKey.toString()===r.toString()))||t.isAccountSigner(e),isWritable:t.isAccountWritable(e)}}));n.instructions.push(new cn({keys:r,programId:t.accountKeys[e.programIdIndex],data:u().decode(e.data)}))})),n._message=t,n._json=n.toJSON(),n}}const ln=new Ue("SysvarC1ock11111111111111111111111111111111"),hn=new Ue("SysvarEpochSchedu1e111111111111111111111111"),dn=new Ue("Sysvar1nstructions1111111111111111111111111"),fn=new Ue("SysvarRecentB1ockHashes11111111111111111111"),pn=new Ue("SysvarRent111111111111111111111111111111111"),mn=new Ue("SysvarRewards111111111111111111111111111111"),gn=new Ue("SysvarS1otHashes111111111111111111111111111"),yn=new Ue("SysvarS1otHistory11111111111111111111111111"),bn=new Ue("SysvarStakeHistory1111111111111111111111111");async function vn(t,e,n,r){const i=r&&{skipPreflight:r.skipPreflight,preflightCommitment:r.preflightCommitment||r.commitment,maxRetries:r.maxRetries,minContextSlot:r.minContextSlot},o=await t.sendTransaction(e,n,i),s=null!=e.recentBlockhash&&null!=e.lastValidBlockHeight?(await t.confirmTransaction({signature:o,blockhash:e.recentBlockhash,lastValidBlockHeight:e.lastValidBlockHeight},r&&r.commitment)).value:(await t.confirmTransaction(o,r&&r.commitment)).value;if(s.err)throw new Error(`Transaction ${o} failed (${JSON.stringify(s)})`);return o}function wn(t){return new Promise((e=>setTimeout(e,t)))}function _n(t,e){const n=t.layout.span>=0?t.layout.span:function(t,e){const n=t=>{if(t.span>=0)return t.span;if("function"===typeof t.alloc)return t.alloc(e[t.property]);if("count"in t&&"elementLayout"in t){const r=e[t.property];if(Array.isArray(r))return r.length*n(t.elementLayout)}return 0};let r=0;return t.layout.fields.forEach((t=>{r+=n(t)})),r}(t,e),r=o.lW.alloc(n),i=Object.assign({instruction:t.index},e);return t.layout.encode(i,r),r}function kn(t,e){let n;try{n=t.layout.decode(e)}catch(r){throw new Error("invalid instruction; "+r)}if(n.instruction!==t.index)throw new Error(`invalid instruction; instruction index mismatch ${n.instruction} != ${t.index}`);return n}const Sn=h.nu64("lamportsPerSignature"),xn=h.struct([h.u32("version"),h.u32("state"),Qe("authorizedPubkey"),Qe("nonce"),h.struct([Sn],"feeCalculator")]),In=xn.span;class An{constructor(t){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=t.authorizedPubkey,this.nonce=t.nonce,this.feeCalculator=t.feeCalculator}static fromAccountData(t){const e=xn.decode(_(t),0);return new An({authorizedPubkey:new Ue(e.authorizedPubkey),nonce:new Ue(e.nonce).toString(),feeCalculator:e.feeCalculator})}}const En=(Tn=8,t=>{const e=(0,h.blob)(Tn,t),{encode:n,decode:r}=(t=>({decode:t.decode.bind(t),encode:t.encode.bind(t)}))(e),i=e;return i.decode=(t,e)=>{const n=r(t,e);return(0,d.toBigIntLE)(o.lW.from(n))},i.encode=(t,e,r)=>{const i=(0,d.toBufferLE)(t,Tn);return n(i,e,r)},i});var Tn;class Pn{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=h.u32("instruction").decode(t.data);let n;for(const[r,i]of Object.entries(Cn))if(i.index==e){n=r;break}if(!n)throw new Error("Instruction type incorrect; not a SystemInstruction");return n}static decodeCreateAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:e,space:n,programId:r}=kn(Cn.Create,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,lamports:e,space:n,programId:new Ue(r)}}static decodeTransfer(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:e}=kn(Cn.Transfer,t.data);return{fromPubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,lamports:e}}static decodeTransferWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e,seed:n,programId:r}=kn(Cn.TransferWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,basePubkey:t.keys[1].pubkey,toPubkey:t.keys[2].pubkey,lamports:e,seed:n,programId:new Ue(r)}}static decodeAllocate(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{space:e}=kn(Cn.Allocate,t.data);return{accountPubkey:t.keys[0].pubkey,space:e}}static decodeAllocateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:e,seed:n,space:r,programId:i}=kn(Cn.AllocateWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new Ue(e),seed:n,space:r,programId:new Ue(i)}}static decodeAssign(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{programId:e}=kn(Cn.Assign,t.data);return{accountPubkey:t.keys[0].pubkey,programId:new Ue(e)}}static decodeAssignWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:e,seed:n,programId:r}=kn(Cn.AssignWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new Ue(e),seed:n,programId:new Ue(r)}}static decodeCreateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{base:e,seed:n,lamports:r,space:i,programId:o}=kn(Cn.CreateWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,basePubkey:new Ue(e),seed:n,lamports:r,space:i,programId:new Ue(o)}}static decodeNonceInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{authorized:e}=kn(Cn.InitializeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:new Ue(e)}}static decodeNonceAdvance(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),kn(Cn.AdvanceNonceAccount,t.data),{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static decodeNonceWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:e}=kn(Cn.WithdrawNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:e}}static decodeNonceAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:e}=kn(Cn.AuthorizeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[1].pubkey,newAuthorizedPubkey:new Ue(e)}}static checkProgramId(t){if(!t.equals(Mn.programId))throw new Error("invalid instruction; programId is not SystemProgram")}static checkKeyLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}const Cn=Object.freeze({Create:{index:0,layout:h.struct([h.u32("instruction"),h.ns64("lamports"),h.ns64("space"),Qe("programId")])},Assign:{index:1,layout:h.struct([h.u32("instruction"),Qe("programId")])},Transfer:{index:2,layout:h.struct([h.u32("instruction"),En("lamports")])},CreateWithSeed:{index:3,layout:h.struct([h.u32("instruction"),Qe("base"),tn("seed"),h.ns64("lamports"),h.ns64("space"),Qe("programId")])},AdvanceNonceAccount:{index:4,layout:h.struct([h.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:h.struct([h.u32("instruction"),h.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:h.struct([h.u32("instruction"),Qe("authorized")])},AuthorizeNonceAccount:{index:7,layout:h.struct([h.u32("instruction"),Qe("authorized")])},Allocate:{index:8,layout:h.struct([h.u32("instruction"),h.ns64("space")])},AllocateWithSeed:{index:9,layout:h.struct([h.u32("instruction"),Qe("base"),tn("seed"),h.ns64("space"),Qe("programId")])},AssignWithSeed:{index:10,layout:h.struct([h.u32("instruction"),Qe("base"),tn("seed"),Qe("programId")])},TransferWithSeed:{index:11,layout:h.struct([h.u32("instruction"),En("lamports"),tn("seed"),Qe("programId")])},UpgradeNonceAccount:{index:12,layout:h.struct([h.u32("instruction")])}});class Mn{constructor(){}static createAccount(t){const e=_n(Cn.Create,{lamports:t.lamports,space:t.space,programId:_(t.programId.toBuffer())});return new cn({keys:[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:e})}static transfer(t){let e,n;if("basePubkey"in t){e=_n(Cn.TransferWithSeed,{lamports:BigInt(t.lamports),seed:t.seed,programId:_(t.programId.toBuffer())}),n=[{pubkey:t.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}else{e=_n(Cn.Transfer,{lamports:BigInt(t.lamports)}),n=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}return new cn({keys:n,programId:this.programId,data:e})}static assign(t){let e,n;if("basePubkey"in t){e=_n(Cn.AssignWithSeed,{base:_(t.basePubkey.toBuffer()),seed:t.seed,programId:_(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{e=_n(Cn.Assign,{programId:_(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new cn({keys:n,programId:this.programId,data:e})}static createAccountWithSeed(t){const e=_n(Cn.CreateWithSeed,{base:_(t.basePubkey.toBuffer()),seed:t.seed,lamports:t.lamports,space:t.space,programId:_(t.programId.toBuffer())});let n=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!1,isWritable:!0}];return t.basePubkey!=t.fromPubkey&&n.push({pubkey:t.basePubkey,isSigner:!0,isWritable:!1}),new cn({keys:n,programId:this.programId,data:e})}static createNonceAccount(t){const e=new un;"basePubkey"in t&&"seed"in t?e.add(Mn.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:In,programId:this.programId})):e.add(Mn.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,lamports:t.lamports,space:In,programId:this.programId}));const n={noncePubkey:t.noncePubkey,authorizedPubkey:t.authorizedPubkey};return e.add(this.nonceInitialize(n)),e}static nonceInitialize(t){const e=_n(Cn.InitializeNonceAccount,{authorized:_(t.authorizedPubkey.toBuffer())}),n={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:fn,isSigner:!1,isWritable:!1},{pubkey:pn,isSigner:!1,isWritable:!1}],programId:this.programId,data:e};return new cn(n)}static nonceAdvance(t){const e=_n(Cn.AdvanceNonceAccount),n={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:fn,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e};return new cn(n)}static nonceWithdraw(t){const e=_n(Cn.WithdrawNonceAccount,{lamports:t.lamports});return new cn({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0},{pubkey:fn,isSigner:!1,isWritable:!1},{pubkey:pn,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e})}static nonceAuthorize(t){const e=_n(Cn.AuthorizeNonceAccount,{authorized:_(t.newAuthorizedPubkey.toBuffer())});return new cn({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:e})}static allocate(t){let e,n;if("basePubkey"in t){e=_n(Cn.AllocateWithSeed,{base:_(t.basePubkey.toBuffer()),seed:t.seed,space:t.space,programId:_(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{e=_n(Cn.Allocate,{space:t.space}),n=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new cn({keys:n,programId:this.programId,data:e})}}Mn.programId=new Ue("11111111111111111111111111111111");const On=Ze-300;class Rn{constructor(){}static getMinNumSignatures(t){return 2*(Math.ceil(t/Rn.chunkSize)+1+1)}static async load(t,e,n,r,i){{const o=await t.getMinimumBalanceForRentExemption(i.length),s=await t.getAccountInfo(n.publicKey,"confirmed");let a=null;if(null!==s){if
1(s.executable)return console.error("Program load failed, account is already executable"),!1;s.data.length!==i.length&&(a=a||new un,a.add(Mn.allocate({accountPubkey:n.publicKey,space:i.length}))),s.owner.equals(r)||(a=a||new un,a.add(Mn.assign({accountPubkey:n.publicKey,programId:r}))),s.lamports<o&&(a=a||new un,a.add(Mn.transfer({fromPubkey:e.publicKey,toPubkey:n.publicKey,lamports:o-s.lamports})))}else a=(new un).add(Mn.createAccount({fromPubkey:e.publicKey,newAccountPubkey:n.publicKey,lamports:o>0?o:1,space:i.length,programId:r}));null!==a&&await vn(t,a,[e,n],{commitment:"confirmed"})}const s=h.struct([h.u32("instruction"),h.u32("offset"),h.u32("bytesLength"),h.u32("bytesLengthPadding"),h.seq(h.u8("byte"),h.offset(h.u32(),-8),"bytes")]),a=Rn.chunkSize;let c=0,u=i,l=[];for(;u.length>0;){const i=u.slice(0,a),h=o.lW.alloc(a+16);s.encode({instruction:0,offset:c,bytes:i,bytesLength:0,bytesLengthPadding:0},h);const d=(new un).add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0}],programId:r,data:h});if(l.push(vn(t,d,[e,n],{commitment:"confirmed"})),t._rpcEndpoint.includes("solana.com")){const t=4;await wn(1e3/t)}c+=a,u=u.slice(a)}await Promise.all(l);{const i=h.struct([h.u32("instruction")]),s=o.lW.alloc(i.span);i.encode({instruction:1},s);const a=(new un).add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0},{pubkey:pn,isSigner:!1,isWritable:!1}],programId:r,data:s});await vn(t,a,[e,n],{commitment:"confirmed"})}return!0}}Rn.chunkSize=On;const Bn=new Ue("BPFLoader2111111111111111111111111111111111");class jn{static getMinNumSignatures(t){return Rn.getMinNumSignatures(t)}static load(t,e,n,r,i){return Rn.load(t,e,n,i,r)}}var Nn=Object.prototype.toString,Ln=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};function Dn(t,e){var n,r,i,o,s,a,c;if(!0===t)return"true";if(!1===t)return"false";switch(typeof t){case"object":if(null===t)return null;if(t.toJSON&&"function"===typeof t.toJSON)return Dn(t.toJSON(),e);if("[object Array]"===(c=Nn.call(t))){for(i="[",r=t.length-1,n=0;n<r;n++)i+=Dn(t[n],!0)+",";return r>-1&&(i+=Dn(t[n],!0)),i+"]"}if("[object Object]"===c){for(r=(o=Ln(t).sort()).length,i="",n=0;n<r;)void 0!==(a=Dn(t[s=o[n]],!1))&&(i&&(i+=","),i+=JSON.stringify(s)+":"+a),n++;return"{"+i+"}"}return JSON.stringify(t);case"function":case"undefined":return e?null:void 0;case"string":return JSON.stringify(t);default:return isFinite(t)?t:null}}var zn=function(t){var e=Dn(t,!1);if(void 0!==e)return""+e};function Fn(t){let e=0;for(;t>1;)t/=2,e++;return e}class Un{constructor(t,e,n,r,i){this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=t,this.leaderScheduleSlotOffset=e,this.warmup=n,this.firstNormalEpoch=r,this.firstNormalSlot=i}getEpoch(t){return this.getEpochAndSlotIndex(t)[0]}getEpochAndSlotIndex(t){if(t<this.firstNormalSlot){const e=Fn(function(t){return 0===t?1:(t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,1+(t|=t>>32))}(t+32+1))-Fn(32)-1;return[e,t-(this.getSlotsInEpoch(e)-32)]}{const e=t-this.firstNormalSlot,n=Math.floor(e/this.slotsPerEpoch);return[this.firstNormalEpoch+n,e%this.slotsPerEpoch]}}getFirstSlotInEpoch(t){return t<=this.firstNormalEpoch?32*(Math.pow(2,t)-1):(t-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}getLastSlotInEpoch(t){return this.getFirstSlotInEpoch(t)+this.getSlotsInEpoch(t)-1}getSlotsInEpoch(t){return t<this.firstNormalEpoch?Math.pow(2,t+Fn(32)):this.slotsPerEpoch}}class Wn extends Error{constructor(t,e){super(t),this.logs=void 0,this.logs=e}}const Gn={JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP:-32001,JSON_RPC_SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE:-32002,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE:-32003,JSON_RPC_SERVER_ERROR_BLOCK_NOT_AVAILABLE:-32004,JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY:-32005,JSON_RPC_SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE:-32006,JSON_RPC_SERVER_ERROR_SLOT_SKIPPED:-32007,JSON_RPC_SERVER_ERROR_NO_SNAPSHOT:-32008,JSON_RPC_SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED:-32009,JSON_RPC_SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX:-32010,JSON_RPC_SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE:-32011,JSON_RPC_SCAN_ER
1ROR:-32012,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH:-32013,JSON_RPC_SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET:-32014,JSON_RPC_SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION:-32015,JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED:-32016};class Vn extends Error{constructor({code:t,message:e,data:n},r){super(null!=r?`${r}: ${e}`:e),this.code=void 0,this.data=void 0,this.code=t,this.data=n,this.name="SolanaJSONRPCError"}}var Kn=globalThis.fetch;class Hn{constructor(t){this.key=void 0,this.state=void 0,this.key=t.key,this.state=t.state}isActive(){return this.state.deactivationSlot===2n**64n-1n}static deserialize(t){const e=function(t,e){let n;try{n=t.layout.decode(e)}catch(r){throw new Error("invalid instruction; "+r)}if(n.typeIndex!==t.index)throw new Error(`invalid account data; account type mismatch ${n.typeIndex} != ${t.index}`);return n}(qn,t),n=t.length-56;on(n>=0,"lookup table is invalid"),on(n%32===0,"lookup table is invalid");const r=n/32,{addresses:i}=h.struct([h.seq(Qe(),r,"addresses")]).decode(t.slice(56));return{deactivationSlot:e.deactivationSlot,lastExtendedSlot:e.lastExtendedSlot,lastExtendedSlotStartIndex:e.lastExtendedStartIndex,authority:0!==e.authority.length?new Ue(e.authority[0]):void 0,addresses:i.map((t=>new Ue(t)))}}}const qn={index:1,layout:h.struct([h.u32("typeIndex"),En("deactivationSlot"),h.nu64("lastExtendedSlot"),h.u8("lastExtendedStartIndex"),h.u8(),h.seq(Qe(),h.offset(h.u8(),-1),"authority")])},$n=globalThis.URL;var Zn;const Yn=(0,f.oQ)((0,f.eE)(Ue),(0,f.Z_)(),(t=>new Ue(t))),Xn=(0,f.bc)([(0,f.Z_)(),(0,f.i0)("base64")]),Jn=(0,f.oQ)((0,f.eE)(o.lW),Xn,(t=>o.lW.from(t[0],"base64"))),Qn=3e4;function tr(t){let e,n;if("string"===typeof t)e=t;else if(t){const{commitment:r,...i}=t;e=r,n=i}return{commitment:e,config:n}}function er(t){return(0,f.G0)([(0,f.dt)({jsonrpc:(0,f.i0)("2.0"),id:(0,f.Z_)(),result:t}),(0,f.dt)({jsonrpc:(0,f.i0)("2.0"),id:(0,f.Z_)(),error:(0,f.dt)({code:(0,f._4)(),message:(0,f.Z_)(),data:(0,f.jt)((0,f.Yj)())})})])}const nr=er((0,f._4)());function rr(t){return(0,f.oQ)(er(t),nr,(e=>"error"in e?e:{...e,result:(0,f.Ue)(e.result,t)}))}function ir(t){return rr((0,f.dt)({context:(0,f.dt)({slot:(0,f.Rx)()}),value:t}))}function or(t){return(0,f.dt)({context:(0,f.dt)({slot:(0,f.Rx)()}),value:t})}const sr=(0,f.dt)({foundation:(0,f.Rx)(),foundationTerm:(0,f.Rx)(),initial:(0,f.Rx)(),taper:(0,f.Rx)(),terminal:(0,f.Rx)()}),ar=rr((0,f.IX)((0,f.AG)((0,f.dt)({epoch:(0,f.Rx)(),effectiveSlot:(0,f.Rx)(),amount:(0,f.Rx)(),postBalance:(0,f.Rx)()})))),cr=(0,f.dt)({epoch:(0,f.Rx)(),slotIndex:(0,f.Rx)(),slotsInEpoch:(0,f.Rx)(),absoluteSlot:(0,f.Rx)(),blockHeight:(0,f.jt)((0,f.Rx)()),transactionCount:(0,f.jt)((0,f.Rx)())}),ur=(0,f.dt)({slotsPerEpoch:(0,f.Rx)(),leaderScheduleSlotOffset:(0,f.Rx)(),warmup:(0,f.O7)(),firstNormalEpoch:(0,f.Rx)(),firstNormalSlot:(0,f.Rx)()}),lr=(0,f.IM)((0,f.Z_)(),(0,f.IX)((0,f.Rx)())),hr=(0,f.AG)((0,f.G0)([(0,f.dt)({}),(0,f.Z_)()])),dr=(0,f.dt)({err:hr}),fr=(0,f.i0)("receivedSignature"),pr=(0,f.dt)({"solana-core":(0,f.Z_)(),"feature-set":(0,f.jt)((0,f.Rx)())}),mr=ir((0,f.dt)({err:(0,f.AG)((0,f.G0)([(0,f.dt)({}),(0,f.Z_)()])),logs:(0,f.AG)((0,f.IX)((0,f.Z_)())),accounts:(0,f.jt)((0,f.AG)((0,f.IX)((0,f.AG)((0,f.dt)({executable:(0,f.O7)(),owner:(0,f.Z_)(),lamports:(0,f.Rx)(),data:(0,f.IX)((0,f.Z_)()),rentEpoch:(0,f.jt)((0,f.Rx)())}))))),unitsConsumed:(0,f.jt)((0,f.Rx)()),returnData:(0,f.jt)((0,f.AG)((0,f.dt)({programId:(0,f.Z_)(),data:(0,f.bc)([(0,f.Z_)(),(0,f.i0)("base64")])})))})),gr=ir((0,f.dt)({byIdentity:(0,f.IM)((0,f.Z_)(),(0,f.IX)((0,f.Rx)())),range:(0,f.dt)({firstSlot:(0,f.Rx)(),lastSlot:(0,f.Rx)()})}));const yr=rr(sr),br=rr(cr),vr=rr(ur),wr=rr(lr),_r=rr((0,f.Rx)()),kr=ir((0,f.dt)({total:(0,f.Rx)(),circulating:(0,f.Rx)(),nonCirculating:(0,f.Rx)(),nonCirculatingAccounts:(0,f.IX)(Yn)})),Sr=(0,f.dt)({amount:(0,f.Z_)(),uiAmount:(0,f.AG)((0,f.Rx)()),decimals:(0,f.Rx)(),uiAmountString:(0,f.jt)((0,f.Z_)())}),xr=ir((0,f.IX)((0,f.dt)({address:Yn,amount:(0,f.Z_)(),uiAmount:(0,f.AG)((0,f.Rx)()),decimals:(0,f.Rx)(),uiAmountString:(0,f.jt)((0,f.Z_)())}))),Ir=ir((0,f.IX)((0,f.dt)({pubkey:Yn,account:(0,f.dt)({executable:(0,f.O7)(),owner:Yn,lamports:(0,f.Rx)(),data:Jn,rentEpoch:(0,f.Rx)()})}))),Ar=(0,f.dt)({program:(0,f.Z_)(),parsed:(0,f._4)(),space:(0,f.Rx)()}),Er=ir((0,f.IX)((0,f.dt)({pubkey:Yn,account:(0,f.dt)({executable:(0,f.O7)(),owner:Yn,lamports:(0,f.Rx)(),data:Ar,rentEpoch:(0,f.Rx)()})}))),Tr=ir((0,f.IX)((0,f.dt)({lamports:(0,f.Rx)(),address:Yn}))),Pr=(0,f.dt)({executable:(0,f.O7)(),owner:Yn,lamports:(0,f.Rx)(),data:Jn,rentEpoch:(0,f.Rx)()}),Cr=(0,f.dt)({pubkey:Yn,account:Pr}),Mr=(0,f.oQ)((0,f.G0)([(0,f.eE)(o.lW),Ar]),(0,f.G0)([Xn,Ar]),(t=>Array.isArray(t)?(0,f.Ue)(t,Jn):t)),Or=(0,f.dt)({executable:(0,f.O7)(),owner:Yn,lamports:(0,f.Rx)(),data:Mr,rentEpoch:(0,f.Rx)()}),Rr=(0,f.dt)({pubkey:Yn,account:Or}),Br=(0,f.dt)({state:(0,f.G0)([(0,f.i0)("active"),(0,f.i0)("inactive"),(0,f.i0)("activating"),(0,f.i0)("deactivating")]),active:(0,f.Rx)(),inactive:(0,f.Rx)()}),jr=rr((0,f.IX)((0,f.dt)({signature:(0,f.Z_)(),slot:(0,f.Rx)(),err:hr,memo:(0,f.AG)((0,f.Z_)()),blockTime:(0,f.jt)((0,f.AG)((0,f.Rx)()))}))),Nr=rr((0,f.IX)((0,f.dt)({signature:(0,f.Z_)(),slot:(0,f.Rx)(),err:hr,memo:(0,f.AG)((0,f.Z_)()),blockTime:(0,f.jt)((0,f.AG)((0,f.Rx)()))}))),Lr=(0,f.dt)({subscription:(0,f.Rx)(),result:or(Pr)}),Dr=(0,f.dt)({pubkey:Yn,account:Pr}),zr=(0,f.dt)({subscription:(0,f.Rx)(),result:or(Dr)}),Fr=(0,f.dt)({parent:(0,f.Rx)(),slot:(0,f.Rx)(),root:(0,f.Rx)()}),Ur=(0,f.dt)({subscription:(0,f.Rx)(),result:Fr}),Wr=(0,f.G0)([(0,f.dt)({type:(0,f.G0)([(0,f.i0)("firstShredReceived"),(0,f.i0)("completed"),(0,f.i0)("optimisticConfirmation"),(0,f.i0)("root")
1]),slot:(0,f.Rx)(),timestamp:(0,f.Rx)()}),(0,f.dt)({type:(0,f.i0)("createdBank"),parent:(0,f.Rx)(),slot:(0,f.Rx)(),timestamp:(0,f.Rx)()}),(0,f.dt)({type:(0,f.i0)("frozen"),slot:(0,f.Rx)(),timestamp:(0,f.Rx)(),stats:(0,f.dt)({numTransactionEntries:(0,f.Rx)(),numSuccessfulTransactions:(0,f.Rx)(),numFailedTransactions:(0,f.Rx)(),maxTransactionsPerEntry:(0,f.Rx)()})}),(0,f.dt)({type:(0,f.i0)("dead"),slot:(0,f.Rx)(),timestamp:(0,f.Rx)(),err:(0,f.Z_)()})]),Gr=(0,f.dt)({subscription:(0,f.Rx)(),result:Wr}),Vr=(0,f.dt)({subscription:(0,f.Rx)(),result:or((0,f.G0)([dr,fr]))}),Kr=(0,f.dt)({subscription:(0,f.Rx)(),result:(0,f.Rx)()}),Hr=(0,f.dt)({pubkey:(0,f.Z_)(),gossip:(0,f.AG)((0,f.Z_)()),tpu:(0,f.AG)((0,f.Z_)()),rpc:(0,f.AG)((0,f.Z_)()),version:(0,f.AG)((0,f.Z_)())}),qr=(0,f.dt)({votePubkey:(0,f.Z_)(),nodePubkey:(0,f.Z_)(),activatedStake:(0,f.Rx)(),epochVoteAccount:(0,f.O7)(),epochCredits:(0,f.IX)((0,f.bc)([(0,f.Rx)(),(0,f.Rx)(),(0,f.Rx)()])),commission:(0,f.Rx)(),lastVote:(0,f.Rx)(),rootSlot:(0,f.AG)((0,f.Rx)())}),$r=rr((0,f.dt)({current:(0,f.IX)(qr),delinquent:(0,f.IX)(qr)})),Zr=(0,f.G0)([(0,f.i0)("processed"),(0,f.i0)("confirmed"),(0,f.i0)("finalized")]),Yr=(0,f.dt)({slot:(0,f.Rx)(),confirmations:(0,f.AG)((0,f.Rx)()),err:hr,confirmationStatus:(0,f.jt)(Zr)}),Xr=ir((0,f.IX)((0,f.AG)(Yr))),Jr=rr((0,f.Rx)()),Qr=(0,f.dt)({signatures:(0,f.IX)((0,f.Z_)()),message:(0,f.dt)({accountKeys:(0,f.IX)((0,f.Z_)()),header:(0,f.dt)({numRequiredSignatures:(0,f.Rx)(),numReadonlySignedAccounts:(0,f.Rx)(),numReadonlyUnsignedAccounts:(0,f.Rx)()}),instructions:(0,f.IX)((0,f.dt)({accounts:(0,f.IX)((0,f.Rx)()),data:(0,f.Z_)(),programIdIndex:(0,f.Rx)()})),recentBlockhash:(0,f.Z_)()})}),ti=(0,f.dt)({parsed:(0,f._4)(),program:(0,f.Z_)(),programId:Yn}),ei=(0,f.dt)({accounts:(0,f.IX)(Yn),data:(0,f.Z_)(),programId:Yn}),ni=(0,f.G0)([ei,ti]),ri=(0,f.G0)([(0,f.dt)({parsed:(0,f._4)(),program:(0,f.Z_)(),programId:(0,f.Z_)()}),(0,f.dt)({accounts:(0,f.IX)((0,f.Z_)()),data:(0,f.Z_)(),programId:(0,f.Z_)()})]),ii=(0,f.oQ)(ni,ri,(t=>"accounts"in t?(0,f.Ue)(t,ei):(0,f.Ue)(t,ti))),oi=(0,f.dt)({signatures:(0,f.IX)((0,f.Z_)()),message:(0,f.dt)({accountKeys:(0,f.IX)((0,f.dt)({pubkey:Yn,signer:(0,f.O7)(),writable:(0,f.O7)()})),instructions:(0,f.IX)(ii),recentBlockhash:(0,f.Z_)()})}),si=(0,f.dt)({accountIndex:(0,f.Rx)(),mint:(0,f.Z_)(),owner:(0,f.jt)((0,f.Z_)()),uiTokenAmount:Sr}),ai=(0,f.dt)({writable:(0,f.IX)(Yn),readonly:(0,f.IX)(Yn)}),ci=(0,f.dt)({err:hr,fee:(0,f.Rx)(),innerInstructions:(0,f.jt)((0,f.AG)((0,f.IX)((0,f.dt)({index:(0,f.Rx)(),instructions:(0,f.IX)((0,f.dt)({accounts:(0,f.IX)((0,f.Rx)()),data:(0,f.Z_)(),programIdIndex:(0,f.Rx)()}))})))),preBalances:(0,f.IX)((0,f.Rx)()),postBalances:(0,f.IX)((0,f.Rx)()),logMessages:(0,f.jt)((0,f.AG)((0,f.IX)((0,f.Z_)()))),preTokenBalances:(0,f.jt)((0,f.AG)((0,f.IX)(si))),postTokenBalances:(0,f.jt)((0,f.AG)((0,f.IX)(si))),loadedAddresses:(0,f.jt)(ai)}),ui=(0,f.dt)({err:hr,fee:(0,f.Rx)(),innerInstructions:(0,f.jt)((0,f.AG)((0,f.IX)((0,f.dt)({index:(0,f.Rx)(),instructions:(0,f.IX)(ii)})))),preBalances:(0,f.IX)((0,f.Rx)()),postBalances:(0,f.IX)((0,f.Rx)()),logMessages:(0,f.jt)((0,f.AG)((0,f.IX)((0,f.Z_)()))),preTokenBalances:(0,f.jt)((0,f.AG)((0,f.IX)(si))),postTokenBalances:(0,f.jt)((0,f.AG)((0,f.IX)(si))),loadedAddresses:(0,f.jt)(ai)}),li=rr((0,f.AG)((0,f.dt)({blockhash:(0,f.Z_)(),previousBlockhash:(0,f.Z_)(),parentSlot:(0,f.Rx)(),transactions:(0,f.IX)((0,f.dt)({transaction:Qr,meta:(0,f.AG)(ci)})),rewards:(0,f.jt)((0,f.IX)((0,f.dt)({pubkey:(0,f.Z_)(),lamports:(0,f.Rx)(),postBalance:(0,f.AG)((0,f.Rx)()),rewardType:(0,f.AG)((0,f.Z_)())}))),blockTime:(0,f.AG)((0,f.Rx)()),blockHeight:(0,f.AG)((0,f.Rx)())}))),hi=rr((0,f.AG)((0,f.dt)({blockhash:(0,f.Z_)(),previousBlockhash:(0,f.Z_)(),parentSlot:(0,f.Rx)(),transactions:(0,f.IX)((0,f.dt)({transaction:Qr,meta:(0,f.AG)(ci)})),rewards:(0,f.jt)((0,f.IX)((0,f.dt)({pubkey:(0,f.Z_)(),lamports:(0,f.Rx)(),postBalance:(0,f.AG)((0,f.Rx)()),rewardType:(0,f.AG)((0,f.Z_)())}))),blockTime:(0,f.AG)((0,f.Rx)())}))),di=rr((0,f.AG)((0,f.dt)({blockhash:(0,f.Z_)(),previousBlockhash:(0,f.Z_)(),parentSlot:(0,f.Rx)(),signatures:(0,f.IX)((0,f.Z_)()),blockTime:(0,f.AG)((0,f.Rx)())}))),fi=rr((0,f.AG)((0,f.dt)({slot:(0,f.Rx)(),meta:ci,blockTime:(0,f.jt)((0,f.AG)((0,f.Rx)())),transaction:Qr}))),pi=rr((0,f.AG)((0,f.dt)({slot:(0,f.Rx)(),transaction:oi,meta:(0,f.AG)(ui),blockTime:(0,f.jt)((0,f.AG)((0,f.Rx)()))}))),mi=ir((0,f.dt)({blockhash:(0,f.Z_)(),feeCalculator:(0,f.dt)({lamportsPerSignature:(0,f.Rx)()})}
1)),gi=ir((0,f.dt)({blockhash:(0,f.Z_)(),lastValidBlockHeight:(0,f.Rx)()})),yi=(0,f.dt)({slot:(0,f.Rx)(),numTransactions:(0,f.Rx)(),numSlots:(0,f.Rx)(),samplePeriodSecs:(0,f.Rx)()}),bi=rr((0,f.IX)(yi)),vi=ir((0,f.AG)((0,f.dt)({feeCalculator:(0,f.dt)({lamportsPerSignature:(0,f.Rx)()})}))),wi=rr((0,f.Z_)()),_i=rr((0,f.Z_)()),ki=(0,f.dt)({err:hr,logs:(0,f.IX)((0,f.Z_)()),signature:(0,f.Z_)()}),Si=(0,f.dt)({result:or(ki),subscription:(0,f.Rx)()}),xi={"solana-client":`js/${null!==(Zn="0.0.0-development")?Zn:"UNKNOWN"}`};class Ii{constructor(t,e){this._commitment=void 0,this._confirmTransactionInitialTimeout=void 0,this._rpcEndpoint=void 0,this._rpcWsEndpoint=void 0,this._rpcClient=void 0,this._rpcRequest=void 0,this._rpcBatchRequest=void 0,this._rpcWebSocket=void 0,this._rpcWebSocketConnected=!1,this._rpcWebSocketHeartbeat=null,this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketGeneration=0,this._disableBlockhashCaching=!1,this._pollingBlockhash=!1,this._blockhashInfo={latestBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]},this._nextClientSubscriptionId=0,this._subscriptionDisposeFunctionsByClientSubscriptionId={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set;let n=new $n(t);n.protocol;let r,i,o,s,a;var c;e&&"string"===typeof e?this._commitment=e:e&&(this._commitment=e.commitment,this._confirmTransactionInitialTimeout=e.confirmTransactionInitialTimeout,r=e.wsEndpoint,i=e.httpHeaders,o=e.fetch,s=e.fetchMiddleware,a=e.disableRetryOnRateLimit),this._rpcEndpoint=t,this._rpcWsEndpoint=r||function(t){let e=new $n(t);const n="https:"===e.protocol;return e.protocol=n?"wss:":"ws:",e.host="",""!==e.port&&(e.port=String(Number(e.port)+1)),e.toString()}(t),this._rpcClient=function(t,e,n,r,i,o){const s=r||Kn;let a;return i&&(a=async(t,e)=>{const n=await new Promise(((n,r)=>{try{i(t,e,((t,e)=>n([t,e])))}catch(o){r(o)}}));return await s(...n)}),new(g())((async(e,r)=>{const i={method:"POST",body:e,agent:void 0,headers:Object.assign({"Content-Type":"application/json"},n||{},xi)};try{let e,n=5,c=500;for(;e=a?await a(t,i):await s(t,i),429===e.status&&!0!==o&&(n-=1,0!==n);)console.log(`Server responded with ${e.status} ${e.statusText}. Retrying after ${c}ms delay...`),await wn(c),c*=2;const u=await e.text();e.ok?r(null,u):r(new Error(`${e.status} ${e.statusText}: ${u}`))}catch(c){c instanceof Error&&r(c)}}),{})}(n.toString(),0,i,o,s,a),this._rpcRequest=(c=this._rpcClient,(t,e)=>new Promise(((n,r)=>{c.request(t,e,((t,e)=>{t?r(t):n(e)}))}))),this._rpcBatchRequest=function(t){return e=>new Promise(((n,r)=>{0===e.length&&n([]);const i=e.map((e=>t.request(e.methodName,e.args)));t.request(i,((t,e)=>{t?r(t):n(e)}))}))}(this._rpcClient),this._rpcWebSocket=new p.K(this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}get commitment(){return this._commitment}get rpcEndpoint(){return this._rpcEndpoint}async getBalanceAndContext(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgs([t.toBase58()],n,void 0,r),o=await this._rpcRequest("getBalance",i),s=(0,f.Ue)(o,ir((0,f.Rx)()));if("error"in s)throw new Vn(s.error,`failed to get balance for ${t.toBase58()}`);return s.result}async getBalance(t,e){return await this.getBalanceAndContext(t,e).then((t=>t.value)).catch((e=>{throw new Error("failed to get balance of account "+t.toBase58()+": "+e)}))}async getBlockTime(t){const e=await this._rpcRequest("getBlockTime",[t]),n=(0,f.Ue)(e,rr((0,f.AG)((0,f.Rx)())));if("error"in n)throw new Vn(n.error,`failed to get block time for slot ${t}`);return n.result}async getMinimumLedgerSlot(){const t=await this._rpcRequest("minimumLedgerSlot",[]),e=(0,f.Ue)(t,rr((0,f.Rx)()));if("error"in e)throw new Vn(e.error,"failed to get minimum ledger slot");return e.result}async getFirstAvailableBlock(){const t=await this._rpcRequest("getFirstAvailableBlock",[]),e=(0,f.Ue)(t,_r);if("error"in e)throw new Vn(e.error,"failed to get first available block");return e.result}async getSupply(t){let e={};e="string"===typeof t?{commitment:t}:t?{...t,commitment:t&&t.commitment||this.commitment}:{commitment:this.commitment};const n=await this._rpcRequest("getSupply",[e]),r=(0,f.Ue)(n,kr);if("error"in r)throw new Vn(r.error,"failed to get supply");return r.result}async getTokenSupply(t,e){const n=this._buildArgs([t.toBase58()],e),r=await this._rpcRequest("getTokenSupply",n),i=(0,f.Ue)(r,ir(Sr));if("error"in i)throw new Vn(i.error,"failed to get token supply");return i.result}async getTokenAccountBalance(t,e){const n=this._buildArgs([t.toBase58()],e),r=await this._rpcRequest("getTokenAccountBalance",n
1),i=(0,f.Ue)(r,ir(Sr));if("error"in i)throw new Vn(i.error,"failed to get token account balance");return i.result}async getTokenAccountsByOwner(t,e,n){const{commitment:r,config:i}=tr(n);let o=[t.toBase58()];"mint"in e?o.push({mint:e.mint.toBase58()}):o.push({programId:e.programId.toBase58()});const s=this._buildArgs(o,r,"base64",i),a=await this._rpcRequest("getTokenAccountsByOwner",s),c=(0,f.Ue)(a,Ir);if("error"in c)throw new Vn(c.error,`failed to get token accounts owned by account ${t.toBase58()}`);return c.result}async getParsedTokenAccountsByOwner(t,e,n){let r=[t.toBase58()];"mint"in e?r.push({mint:e.mint.toBase58()}):r.push({programId:e.programId.toBase58()});const i=this._buildArgs(r,n,"jsonParsed"),o=await this._rpcRequest("getTokenAccountsByOwner",i),s=(0,f.Ue)(o,Er);if("error"in s)throw new Vn(s.error,`failed to get token accounts owned by account ${t.toBase58()}`);return s.result}async getLargestAccounts(t){const e={...t,commitment:t&&t.commitment||this.commitment},n=e.filter||e.commitment?[e]:[],r=await this._rpcRequest("getLargestAccounts",n),i=(0,f.Ue)(r,Tr);if("error"in i)throw new Vn(i.error,"failed to get largest accounts");return i.result}async getTokenLargestAccounts(t,e){const n=this._buildArgs([t.toBase58()],e),r=await this._rpcRequest("getTokenLargestAccounts",n),i=(0,f.Ue)(r,xr);if("error"in i)throw new Vn(i.error,"failed to get token largest accounts");return i.result}async getAccountInfoAndContext(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgs([t.toBase58()],n,"base64",r),o=await this._rpcRequest("getAccountInfo",i),s=(0,f.Ue)(o,ir((0,f.AG)(Pr)));if("error"in s)throw new Vn(s.error,`failed to get info about account ${t.toBase58()}`);return s.result}async getParsedAccountInfo(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgs([t.toBase58()],n,"jsonParsed",r),o=await this._rpcRequest("getAccountInfo",i),s=(0,f.Ue)(o,ir((0,f.AG)(Or)));if("error"in s)throw new Vn(s.error,`failed to get info about account ${t.toBase58()}`);return s.result}async getAccountInfo(t,e){try{return(await this.getAccountInfoAndContext(t,e)).value}catch(n){throw new Error("failed to get info about account "+t.toBase58()+": "+n)}}async getMultipleAccountsInfoAndContext(t,e){const{commitment:n,config:r}=tr(e),i=t.map((t=>
1t.toBase58())),o=this._buildArgs([i],n,"base64",r),s=await this._rpcRequest("getMultipleAccounts",o),a=(0,f.Ue)(s,ir((0,f.IX)((0,f.AG)(Pr))));if("error"in a)throw new Vn(a.error,`failed to get info for accounts ${i}`);return a.result}async getMultipleAccountsInfo(t,e){return(await this.getMultipleAccountsInfoAndContext(t,e)).value}async getStakeActivation(t,e,n){const{commitment:r,config:i}=tr(e),o=this._buildArgs([t.toBase58()],r,void 0,{...i,epoch:null!=n?n:null===i||void 0===i?void 0:i.epoch}),s=await this._rpcRequest("getStakeActivation",o),a=(0,f.Ue)(s,rr(Br));if("error"in a)throw new Vn(a.error,`failed to get Stake Activation ${t.toBase58()}`);return a.result}async getProgramAccounts(t,e){const{commitment:n,config:r}=tr(e),{encoding:i,...o}=r||{},s=this._buildArgs([t.toBase58()],n,i||"base64",o),a=await this._rpcRequest("getProgramAccounts",s),c=(0,f.Ue)(a,rr((0,f.IX)(Cr)));if("error"in c)throw new Vn(c.error,`failed to get accounts owned by program ${t.toBase58()}`);return c.result}async getParsedProgramAccounts(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgs([t.toBase58()],n,"jsonParsed",r),o=await this._rpcRequest("getProgramAccounts",i),s=(0,f.Ue)(o,rr((0,f.IX)(Rr)));if("error"in s)throw new Vn(s.error,`failed to get accounts owned by program ${t.toBase58()}`);return s.result}async confirmTransaction(t,e){let n,r;if("string"==typeof t)n=t;else{n=t.signature}try{r=u().decode(n)}catch(d){throw new Error("signature must be base58 encoded: "+n)}on(64===r.length,"signature has invalid length");const i=e||this.commitment;let o,s,a=!1;const c=new Promise(((t,e)=>{try{s=this.onSignature(n,((e,n)=>{s=void 0;const r={context:n,value:e};a=!0,t({__type:sn.PROCESSED,response:r})}),i)}catch(d){e(d)}})),l=new Promise((n=>{if("string"===typeof t){let t=this._confirmTransactionInitialTimeout||6e4;switch(i){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":t=this._confirmTransactionInitialTimeout||3e4}o=setTimeout((()=>n({__type:sn.TIMED_OUT,timeoutMs:t})),t)}else{let r=t;const i=async()=>{try{return await this.getBlockHeight(e)}catch(t){return-1}};(async()=>{let t=await i();if(!a){for(;t<=r.lastValidBlockHeight;){if(await wn(1e3),a)return;if(t=await i(),a)return}n({__type:sn.BLOCKHEIGHT_EXCEEDED})}})()}}));let h;try{const t=await Promise.race([c,l]);switch(t.__type){case sn.BLOCKHEIGHT_EXCEEDED:throw new Xe(n);case sn.PROCESSED:h=t.response;break;case sn.TIMED_OUT:throw new Je(n,t.timeoutMs/1e3)}}finally{clearTimeout(o),s&&this.removeSignatureListener(s)}return h}async getClusterNodes(){const t=await this._rpcRequest("getClusterNodes",[]),e=(0,f.Ue)(t,rr((0,f.IX)(Hr)));if("error"in e)throw new Vn(e.error,"failed to get cluster nodes");return e.result}async getVoteAccounts(t){const e=this._buildArgs([],t),n=await this._rpcRequest("getVoteAccounts",e),r=(0,f.Ue)(n,$r);if("error"in r)throw new Vn(r.error,"failed to get vote accounts");return r.result}async getSlot(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getSlot",r),o=(0,f.Ue)(i,rr((0,f.Rx)()));if("error"in o)throw new Vn(o.error,"failed to get slot");return o.result}async getSlotLeader(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getSlotLeader",r),o=(0,f.Ue)(i,rr((0,f.Z_)()));if("error"in o)throw new Vn(o.error,"failed to get slot leader");return o.result}async getSlotLeaders(t,e){const n=[t,e],r=await this._rpcRequest("getSlotLeaders",n),i=(0,f.Ue)(r,rr((0,f.IX)(Yn)));if("error"in i)throw new Vn(i.error,"failed to get slot leaders");return i.result}async getSignatureStatus(t,e){const{context:n,value:r}
1=await this.getSignatureStatuses([t],e);on(1===r.length);return{context:n,value:r[0]}}async getSignatureStatuses(t,e){const n=[t];e&&n.push(e);const r=await this._rpcRequest("getSignatureStatuses",n),i=(0,f.Ue)(r,Xr);if("error"in i)throw new Vn(i.error,"failed to get signature status");return i.result}async getTransactionCount(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getTransactionCount",r),o=(0,f.Ue)(i,rr((0,f.Rx)()));if("error"in o)throw new Vn(o.error,"failed to get transaction count");return o.result}async getTotalSupply(t){return(await this.getSupply({commitment:t,excludeNonCirculatingAccountsList:!0})).value.total}async getInflationGovernor(t){const e=this._buildArgs([],t),n=await this._rpcRequest("getInflationGovernor",e),r=(0,f.Ue)(n,yr);if("error"in r)throw new Vn(r.error,"failed to get inflation");return r.result}async getInflationReward(t,e,n){const{commitment:r,config:i}=tr(n),o=this._buildArgs([t.map((t=>t.toBase58()))],r,void 0,{...i,epoch:null!=e?e:null===i||void 0===i?void 0:i.epoch}),s=await this._rpcRequest("getInflationReward",o),a=(0,f.Ue)(s,ar);if("error"in a)throw new Vn(a.error,"failed to get inflation reward");return a.result}async getEpochInfo(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getEpochInfo",r),o=(0,f.Ue)(i,br);if("error"in o)throw new Vn(o.error,"failed to get epoch info");return o.result}async getEpochSchedule(){const t=await this._rpcRequest("getEpochSchedule",[]),e=(0,f.Ue)(t,vr);if("error"in e)throw new Vn(e.error,"failed to get epoch schedule");const n=e.result;return new Un(n.slotsPerEpoch,n.leaderScheduleSlotOffset,n.warmup,n.firstNormalEpoch,n.firstNormalSlot)}async getLeaderSchedule(){const t=await this._rpcRequest("getLeaderSchedule",[]),e=(0,f.Ue)(t,wr);if("error"in e)throw new Vn(e.error,"failed to get leader schedule");return e.result}async getMinimumBalanceForRentExemption(t,e){const n=this._buildArgs([t],e),r=await this._rpcRequest("getMinimumBalanceForRentExemption",n),i=(0,f.Ue)(r,Jr);return"error"in i?(console.warn("Unable to fetch minimum balance for rent exemption"),0):i.result}async getRecentBlockhashAndContext(t){const e=this._buildArgs([],t),n=await this._rpcRequest("getRecentBlockhash",e),r=(0,f.Ue)(n,mi);if("error"in r)throw new Vn(r.error,"failed to get recent blockhash");return r.result}async getRecentPerformanceSamples(t){const e=await this._rpcRequest("getRecentPerformanceSamples",t?[t]:[]),n=(0,f.Ue)(e,bi);if("error"in n)throw new Vn(n.error,"failed to get recent performance samples");return n.result}async getFeeCalculatorForBlockhash(t,e){const n=this._buildArgs([t],e),r=await this._rpcRequest("getFeeCalculatorForBlockhash",n),i=(0,f.Ue)(r,vi);if("error"in i)throw new Vn(i.error,"failed to get fee calculator");const{context:o,value:s}=i.result;return{context:o,value:null!==s?s.feeCalculator:null}}async getFeeForMessage(t,e){const n=t.serialize().toString("base64"),r=this._buildArgs([n],e),i=await this._rpcRequest("getFeeForMessage",r),o=(0,f.Ue)(i,ir((0,f.AG)((0,f.Rx)())));if("error"in o)throw new Vn(o.error,"failed to get slot");if(null===o.result)throw new Error("invalid blockhash");return o.result}async getRecentBlockhash(t){try{return(await this.getRecentBlockhashAndContext(t)).value}catch(e){throw new Error("failed to get recent blockhash: "+e)}}async getLatestBlockhash(t){try{return(await this.getLatestBlockhashAndContext(t)).value}catch(e){throw new Error("failed to get recent blockhash: "+e)}}async getLatestBlockhashAndContext(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getLatestBlockhash",r),o=(0,f.Ue)(i,gi);if("error"in o)throw new Vn(o.error,"failed to get latest blockhash");return o.result}async getVersion(){const t=await this._rpcRequest("getVersion",[]),e=(0,f.Ue)(t,rr(pr));if("error"in e)throw new Vn(e.error,"failed to get version");return e.result}async getGenesisHash(){const t=await this._rpcRequest("getGenesisHash",[]),e=(0,f.Ue)(t,rr((0,f.Z_)()));if("error"in e)throw new Vn(e.error,"failed to get genesis hash");return e.result}async getBlock(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgsAtLeastConfirmed([t],n,void 0,r),o=await this._rpcRequest("getBlock",i),s=(0,f.Ue)(o,li);if("error"in s)throw new Vn(s.error,"failed to get confirmed block");const a=s.result;return a?{...a,transactions:a.transactions.map((({transaction:t,meta:e})=>{const n=new rn(t.message);return{meta:e,transaction:{...t,message:n}}}))}:a}async getBlockHeight(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getBlockHeight",r),o=(0,f.Ue)(i,rr((0,f.Rx)()));if("error"in o)throw new Vn(o.error,"failed to get block height information");return o.result}async getBlockProduction(t){let e,n;if("string"===typeof t)n=t;else if(t){const{commitment:r,...i}=t;n=r,e=i}const r=this._buildArgs([],n,"base64",e),i=await this._rpcRequest("getBlockProduction",r),o=(0,f.Ue)(i,gr);if("error"in o)throw new Vn(o.error,"failed to get block production information");return o.result}async getTransaction(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgsAtLeastConfirmed([t],n,void 0,r),o=await this._rpcRequest("getTransaction",i),s=(0,f.Ue)(o,fi);if("error"in s)throw new Vn(s.error,"failed to get transaction");const a=s.result;return a?{...a,transaction:{...a.transaction,message:new rn(a.transaction.message)}}:a}async getParsedTransaction(t,e){const{commitment:n,config:r}=tr(e),i=this._buildArgsAtLeastConfirmed([t],n,"jsonParsed",r),o=await this._rpcRequest("getTransaction",i),s=(0,f.Ue)(o,pi);if("error"in s)throw new Vn(s.error,"failed to get transaction");return s.result}async getParsedTransactions(t,e){const{commitment:n,config:r}=tr(e),i=t.map((t=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([t],n,"jsonParsed",r)})));return(await this._rpcBatchRequest(i)).map((t=>{const e=(0,f.Ue)(t,pi);if("error"in e)throw new Vn(e.error,"failed to get transactions");return e.result}))}async getTransactions(t,e){const{commitment:n,config:r}=tr(e),i=t.map((t=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([t],n,void 0,r)})));return(await this._rpcBatchRequest(i)).map((t=>{const e=(0,f.Ue)(t,fi);if("error"in e)throw new Vn(e.error,"failed to get transactions");const n=e.result;return n?{...n,transaction:{...n.transaction,message:new rn(n.transaction.message)}}:n}))}async getConfirmedBlock(t,e){const n=this._buildArgsAtLeastConfirmed([t],e),r=await this._rpcRequest("getConfirmedBlock",
1n),i=(0,f.Ue)(r,hi);if("error"in i)throw new Vn(i.error,"failed to get confirmed block");const o=i.result;if(!o)throw new Error("Confirmed block "+t+" not found");const s={...o,transactions:o.transactions.map((({transaction:t,meta:e})=>{const n=new rn(t.message);return{meta:e,transaction:{...t,message:n}}}))};return{...s,transactions:s.transactions.map((({transaction:t,meta:e})=>({meta:e,transaction:un.populate(t.message,t.signatures)})))}}async getBlocks(t,e,n){const r=this._buildArgsAtLeastConfirmed(void 0!==e?[t,e]:[t],n),i=await this._rpcRequest("getBlocks",r),o=(0,f.Ue)(i,rr((0,f.IX)((0,f.Rx)())));if("error"in o)throw new Vn(o.error,"failed to get blocks");return o.result}async getBlockSignatures(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,void 0,{transactionDetails:"signatures",rewards:!1}),r=await this._rpcRequest("getBlock",n),i=(0,f.Ue)(r,di);if("error"in i)throw new Vn(i.error,"failed to get block");const o=i.result;if(!o)throw new Error("Block "+t+" not found");return o}async getConfirmedBlockSignatures(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,void 0,{transactionDetails:"signatures",rewards:!1}),r=await this._rpcRequest("getConfirmedBlock",n),i=(0,f.Ue)(r,di);if("error"in i)throw new Vn(i.error,"failed to get confirmed block");const o=i.result;if(!o)throw new Error("Confirmed block "+t+" not found");return o}async getConfirmedTransaction(t,e){const n=this._buildArgsAtLeastConfirmed([t],e),r=await this._rpcRequest("getConfirmedTransaction",n),i=(0,f.Ue)(r,fi);if("error"in i)throw new Vn(i.error,"failed to get transaction");const o=i.result;if(!o)return o;const s=new rn(o.transaction.message),a=o.transaction.signatures;return{...o,transaction:un.populate(s,a)}}async getParsedConfirmedTransaction(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,"jsonParsed"),r=await this._rpcRequest("getConfirmedTransaction",n),i=(0,f.Ue)(r,pi);if("error"in i)throw new Vn(i.error,"failed to get confirmed transaction");return i.result}async getParsedConfirmedTransactions(t,e){const n=t.map((t=>({methodName:"getConfirmedTransaction",args:this._buildArgsAtLeastConfirmed([t],e,"jsonParsed")})));return(await this._rpcBatchRequest(n)).map((t=>{const e=(0,f.Ue)(t,pi);if("error"in e)throw new Vn(e.error,"failed to get confirmed transactions");return e.result}))}async getConfirmedSignaturesForAddress(t,e,n){let r={},i=await this.getFirstAvailableBlock();for(;!("until"in r)&&!(--e<=0||e<i);)try{const t=await this.getConfirmedBlockSignatures(e,"finalized");t.signatures.length>0&&(r.until=t.signatures[t.signatures.length-1].toString())}catch(s){if(s instanceof Error&&s.message.includes("skipped"))continue;throw s}
1let o=await this.getSlot("finalized");for(;!("before"in r)&&!(++n>o);)try{const t=await this.getConfirmedBlockSignatures(n);t.signatures.length>0&&(r.before=t.signatures[t.signatures.length-1].toString())}catch(s){if(s instanceof Error&&s.message.includes("skipped"))continue;throw s}return(await this.getConfirmedSignaturesForAddress2(t,r)).map((t=>t.signature))}async getConfirmedSignaturesForAddress2(t,e,n){const r=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,e),i=await this._rpcRequest("getConfirmedSignaturesForAddress2",r),o=(0,f.Ue)(i,jr);if("error"in o)throw new Vn(o.error,"failed to get confirmed signatures for address");return o.result}async getSignaturesForAddress(t,e,n){const r=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,e),i=await this._rpcRequest("getSignaturesForAddress",r),o=(0,f.Ue)(i,Nr);if("error"in o)throw new Vn(o.error,"failed to get signatures for address");return o.result}async getAddressLookupTable(t,e){const{context:n,value:r}=await this.getAccountInfoAndContext(t,e);let i=null;return null!==r&&(i=new Hn({key:t,state:Hn.deserialize(r.data)})),{context:n,value:i}}async getNonceAndContext(t,e){const{context:n,value:r}=await this.getAccountInfoAndContext(t,e);let i=null;return null!==r&&(i=An.fromAccountData(r.data)),{context:n,value:i}}async getNonce(t,e){return await this.getNonceAndContext(t,e).then((t=>t.value)).catch((e=>{throw new Error("failed to get nonce for account "+t.toBase58()+": "+e)}))}async requestAirdrop(t,e){const n=await this._rpcRequest("requestAirdrop",[t.toBase58(),e]),r=(0,f.Ue)(n,wi);if("error"in r)throw new Vn(r.error,`airdrop to ${t.toBase58()} failed`);return r.result}async _blockhashWithExpiryBlockHeight(t){if(!t){for(;this._pollingBlockhash;)await wn(100);const t=Date.now()-this._blockhashInfo.lastFetch>=Qn;if(null!==this._blockhashInfo.latestBlockhash&&!t)return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{const t=Date.now(),e=this._blockhashInfo.latestBlockhash,n=e?e.blockhash:null;for(let r=0;r<50;r++){const t=await this.getLatestBlockhash("finalized");if(n!==t.blockhash)return this._blockhashInfo={latestBlockhash:t,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},t;await wn(200)}throw new Error(`Unable to obtain a new blockhash after ${Date.now()-t}ms`)}finally{this._pollingBlockhash=!1}}async getStakeMinimumDelegation(t){const{commitment:e,config:n}=tr(t),r=this._buildArgs([],e,"base64",n),i=await this._rpcRequest("getStakeMinimumDelegation",r),o=(0,f.Ue)(i,ir((0,f.Rx)()));if("error"in o)throw new Vn(o.error,"failed to get stake minimum delegation");return o.result}async simulateTransaction(t,e,n){let r;if(t instanceof un){let e=t;r=new un,r.feePayer=e.feePayer,r.instructions=t.instructions,r.nonceInfo=e.nonceInfo,r.signatures=e.signatures}else r=un.populate(t),r._message=r._json=void 0;if(r.nonceInfo&&e)r.sign(...e);else{let t=this._disableBlockhashCaching;for(;;){const n=await this._blockhashWithExpiryBlockHeight(t);if(r.lastValidBlockHeight=n.lastValidBlockHeight,r.recentBlockhash=n.blockhash,!e)break;if(r.sign(...e),!r.signature)throw new Error("!signature");const i=r.signature.toString("base64");if(!this._blockhashInfo.simulatedSignatures.includes(i)&&!this._blockhashInfo.transactionSignatures.includes(i)){this._blockhashInfo.simulatedSignatures.push(i);break}t=!0}}const i=r._compile(),o=i.serialize(),s=r._serialize(o).toString("base64"),a={encoding:"base64",commitment:this.commitment};if(n){const t=(Array.isArray(n)?n:i.nonProgramIds()).map((t=>
1t.toBase58()));a.accounts={encoding:"base64",addresses:t}}e&&(a.sigVerify=!0);const c=[s,a],u=await this._rpcRequest("simulateTransaction",c),l=(0,f.Ue)(u,mr);if("error"in l){let t;if("data"in l.error&&(t=l.error.data.logs,t&&Array.isArray(t))){const e="\n ",n=e+t.join(e);console.error(l.error.message,n)}throw new Wn("failed to simulate transaction: "+l.error.message,t)}return l.result}async sendTransaction(t,e,n){if(t.nonceInfo)t.sign(...e);else{let n=this._disableBlockhashCaching;for(;;){const r=await this._blockhashWithExpiryBlockHeight(n);if(t.lastValidBlockHeight=r.lastValidBlockHeight,t.recentBlockhash=r.blockhash,t.sign(...e),!t.signature)throw new Error("!signature");const i=t.signature.toString("base64");if(!this._blockhashInfo.transactionSignatures.includes(i)){this._blockhashInfo.transactionSignatures.push(i);break}n=!0}}const r=t.serialize();return await this.sendRawTransaction(r,n)}async sendRawTransaction(t,e){const n=_(t).toString("base64");return await this.sendEncodedTransaction(n,e)}async sendEncodedTransaction(t,e){const n={encoding:"base64"},r=e&&e.skipPreflight,i=e&&e.preflightCommitment||this.commitment;e&&null!=e.maxRetries&&(n.maxRetries=e.maxRetries),e&&null!=e.minContextSlot&&(n.minContextSlot=e.minContextSlot),r&&(n.skipPreflight=r),i&&(n.preflightCommitment=i);const o=[t,n],s=await this._rpcRequest("sendTransaction",o),a=(0,f.Ue)(s,_i);if("error"in a){let t;throw"data"in a.error&&(t=a.error.data.logs),new Wn("failed to send transaction: "+a.error.message,t)}return a.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval((()=>{this._rpcWebSocket.notify("ping").catch((()=>{}))}),5e3),this._updateSubscriptions()}_wsOnError(t){this._rpcWebSocketConnected=!1,console.error("ws error:",t.message)}_wsOnClose(t){this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration++,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),1e3!==t?(this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach((([t,e])=>{this._subscriptionsByHash[t]={...e,state:"pending"}}))):this._updateSubscriptions()}async _updateSubscriptions(){if(0===Object.keys(this._subscriptionsByHash).length)return void(this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout((()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(t){t instanceof Error&&console.log(`Error when closing socket connection: ${t.message}`)}}),500)));if(null!==this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected)return void this._rpcWebSocket.connect();const t=this._rpcWebSocketGeneration,e=()=>t===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map((async t=>{const n=this._subscriptionsByHash[t];if(void 0!==n)switch(n.state){case"pending":case"unsubscribed":if(0===n.callbacks.size)return delete this._subscriptionsByHash[t],"unsubscribed"===n.state&&delete this._subscriptionCallbacksByServerSubscriptionId[n.serverSubscriptionId],void(await this._updateSubscriptions());await(async()=>{const{args:r,method:i}=n;try{this._subscriptionsByHash[t]={...n,state:"subscribing"};const e=await this._rpcWebSocket.call(i,r);this._subscriptionsByHash[t]={...n,serverSubscriptionId:e,state:"subscribed"},this._subscriptionCallbacksByServerSubscriptionId[e]=n.callbacks,await this._updateSubscriptions()}catch(o){if(o instanceof Error&&console.error(`${i} error for argument`,r,o.message),!e())return;this._subscriptionsByHash[t]={...n,state:"pending"},await this._updateSubscriptions()}})();break;case"subscribed":0===n.callbacks.size&&await(async()=>{const{serverSubscriptionId:r,unsubscribeMethod:i}=n;if(this._subscriptionsAutoDisposedByRpc.has(r))this._subscriptionsAutoDisposedByRpc.delete(r);else{this._subscriptionsByHash[t]={...n,state:"unsubscribing"};try{await this._rpcWebSocket.call(i,[r])}catch(o){if(o instanceof Error&&console.error(`${i} error:`,o.message),!e())return;return this._subscriptionsByHash[t]={...n,state:"subscribed"},void(await this._updateSubscriptions())}}this._subscriptionsByHash[t]={...n,state:"unsubscribed"},await this._updateSubscriptions()})()}})))}_handleServerNotification(t,e){const n=this._subscriptionCallbacksByServerSubscriptionId[t];
1void 0!==n&&n.forEach((t=>{try{t(...e)}catch(n){console.error(n)}}))}_wsOnAccountNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,Lr);this._handleServerNotification(n,[e.value,e.context])}_makeSubscription(t,e){const n=this._nextClientSubscriptionId++,r=zn([t.method,e],!0),i=this._subscriptionsByHash[r];return void 0===i?this._subscriptionsByHash[r]={...t,args:e,callbacks:new Set([t.callback]),state:"pending"}:i.callbacks.add(t.callback),this._subscriptionDisposeFunctionsByClientSubscriptionId[n]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[n];const e=this._subscriptionsByHash[r];on(void 0!==e,`Could not find a \`Subscription\` when tearing down client subscription #${n}`),e.callbacks.delete(t.callback),await this._updateSubscriptions()},this._updateSubscriptions(),n}onAccountChange(t,e,n){const r=this._buildArgs([t.toBase58()],n||this._commitment||"finalized","base64");return this._makeSubscription({callback:e,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},r)}async removeAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"account change")}_wsOnProgramAccountNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,zr);this._handleServerNotification(n,[{accountId:e.value.pubkey,accountInfo:e.value.account},e.context])}onProgramAccountChange(t,e,n,r){const i=this._buildArgs([t.toBase58()],n||this._commitment||"finalized","base64",r?{filters:r}:void 0);return this._makeSubscription({callback:e,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},i)}async removeProgramAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"program account change")}onLogs(t,e,n){const r=this._buildArgs(["object"===typeof t?{mentions:[t.toString()]}:t],n||this._commitment||"finalized");return this._makeSubscription({callback:e,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},r)}async removeOnLogsListener(t){await this._unsubscribeClientSubscription(t,"logs")}_wsOnLogsNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,Si);this._handleServerNotification(n,[e.value,e.context])}_wsOnSlotNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,Ur);this._handleServerNotification(n,[e])}onSlotChange(t){return this._makeSubscription({callback:t,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(t){await this._unsubscribeClientSubscription(t,"slot change")}_wsOnSlotUpdatesNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,Gr);this._handleServerNotification(n,[e])}onSlotUpdate(t){return this._makeSubscription({callback:t,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(t){await this._unsubscribeClientSubscription(t,"slot update")}async _unsubscribeClientSubscription(t,e){const n=this._subscriptionDisposeFunctionsByClientSubscriptionId[t];n?await n():console.warn(`Ignored unsubscribe request because an active subscription with id \`${t}\` for '${e}' events could not be found.`)}_buildArgs(t,e,n,r){const i=e||this._commitment;if(i||n||r){let e={};n&&(e.encoding=n),i&&(e.commitment=i),r&&(e=Object.assign(e,r)),t.push(e)}return t}_buildArgsAtLeastConfirmed(t,e,n,r){const i=e||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(t,e,n,r)}_wsOnSignatureNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,Vr);"receivedSignature"!==e.value&&this._subscriptionsAutoDisposedByRpc.add(n),this._handleServerNotification(n,"receivedSignature"===e.value?[{type:"received"},e.context]:[{type:"status",result:e.value},e.context])}onSignature(t,e,n){const r=this._buildArgs([t],n||this._commitment||"finalized"),i=this._makeSubscription({callback:(t,n)=>{if("status"===t.type){e(t.result,n);try{this.removeSignatureListener(i)}catch(r){}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},r);return i}onSignatureWithOptions(t,e,n){const{commitment:r,...i}={...n,commitment:n&&n.commitment||this._commitment||"finalized"},o=this._buildArgs([t],r,void 0,i),s=this._makeSubscription({callback:(t,n)=>{e(t,n);try{this.removeSignatureListener(s)}catch(r){}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},o);return s}async removeSignatureListener(t){await this._unsubscribeClientSubscription(t,"signature result")}_wsOnRootNotification(t){const{result:e,subscription:n}=(0,f.Ue)(t,Kr);this._handleServerNotification(n,[e])}onRootChange(t){return this._makeSubscription({callback:t,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(t){await this._unsubscribeClientSubscription(t,"root change")}}class Ai{constructor(t){this._keypair=void 0,this._keypair=t||i().sign.keyPair()}static generate(){return new Ai(i().sign.keyPair())}static fromSecretKey(t,e){const n=i().sign.keyPair.fromSecretKey(t);if(!e||!e.skipValidation){const t=(new TextEncoder).encode("@solana/web3.js-validation-v1"),e=i().sign.detached(t,n.secretKey);if(!i().sign.detached.verify(t,e,n.publicKey))throw new Error("provided secretKey is invali
1d")}return new Ai(n)}static fromSeed(t){return new Ai(i().sign.keyPair.fromSeed(t))}get publicKey(){return new Ue(this._keypair.publicKey)}get secretKey(){return this._keypair.secretKey}}const Ei=Object.freeze({CreateLookupTable:{index:0,layout:h.struct([h.u32("instruction"),En("recentSlot"),h.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:h.struct([h.u32("instruction")])},ExtendLookupTable:{index:2,layout:h.struct([h.u32("instruction"),En(),h.seq(Qe(),h.offset(h.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:h.struct([h.u32("instruction")])},CloseLookupTable:{index:4,layout:h.struct([h.u32("instruction")])}});class Ti{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=h.u32("instruction").decode(t.data);let n;for(const[r,i]of Object.entries(Ei))if(i.index==e){n=r;break}if(!n)throw new Error("Invalid Instruction. Should be a LookupTable Instruction");return n}static decodeCreateLookupTable(t){this.checkProgramId(t.programId),this.checkKeysLength(t.keys,4);const{recentSlot:e}=kn(Ei.CreateLookupTable,t.data);return{authority:t.keys[1].pubkey,payer:t.keys[2].pubkey,recentSlot:Number(e)}}static decodeExtendLookupTable(t){if(this.checkProgramId(t.programId),t.keys.length<2)throw new Error(`invalid instruction; found ${t.keys.length} keys, expected at least 2`);const{addresses:e}=kn(Ei.ExtendLookupTable,t.data);return{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,payer:t.keys.length>2?t.keys[2].pubkey:void 0,addresses:e.map((t=>new Ue(t)))}}static decodeCloseLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,3),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,recipient:t.keys[2].pubkey}}static decodeFreezeLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static decodeDeactivateLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(Pi.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}static checkKeysLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}class Pi{constructor(){}static createLookupTable(t){const[e,n]=Ue.findProgramAddressSync([t.authority.toBuffer(),(0,d.toBufferLE)(BigInt(t.recentSlot),8)],this.programId),r=_n(Ei.CreateLookupTable,{recentSlot:BigInt(t.recentSlot),bumpSeed:n}),i=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:Mn.programId,isSigner:!1,isWritable:!1}];return[new cn({programId:this.programId,keys:i,data:r}),e]}static freezeLookupTable(t){const e=_n(Ei.FreezeLookupTable),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new cn({programId:this.programId,keys:n,data:e})}static extendLookupTable(t){const e=_n(Ei.ExtendLookupTable,{addresses:t.addresses.map((t=>t.toBytes()))}),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return t.payer&&n.push({pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:Mn.programId,isSigner:!1,isWritable:!1}),new cn({programId:this.programId,keys:n,data:e})}static deactivateLookupTable(t){const e=_n(Ei.DeactivateLookupTable),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new cn({programId:this.programId,keys:n,data:e})}static closeLookupTable(t){const e=_n(Ei.CloseLookupTable),n=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.recipient,isSigner:!1,isWritable:!0}];return new cn({programId:this.programId,keys:n,data:e})}}Pi.programId=new Ue("AddressLookupTab1e1111111111111111111111111");class Ci{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=h.u8("instruction").decode(t.data);let n;for(const[r,i]of Object.entries(Mi))if(i.index==e){n=r;break}if(!n)throw new Error("Instruction type incorrect; not a ComputeBudgetInstruction");return n}static decodeRequestUnits(t){this.checkProgramId(t.programId);const{units:e,additionalFee:n}=kn(Mi.RequestUnits,t.data);return{units:e,additionalFee:n}}static decodeRequestHeapFrame(t){this.checkProgramId(t.programId);const{bytes:e}=kn(Mi.RequestHeapFrame,t.data);return{bytes:e}}static decodeSetComputeUnitLimit(t){this.checkProgramId(t.programId);const{units:e}=kn(Mi.SetComputeUnitLimit,t.data);return{units:e}}static decodeSetComputeUnitPrice(t){this.checkProgramId(t.programId);const{microLamports:e}=kn(Mi.SetComputeUnitPrice,t.data);return{microLamports:e}}static checkProgramId(t){if(!t.equals(Oi.programId))throw new Error("invalid instruction; programId is not ComputeBudgetProgram")}}const Mi=Object.freeze({RequestUnits:{index:0,layout:h.struct([h.u8("instruction"),h.u32("units"),h.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:h.struct([h.u8("instruction"),h.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:h.struct([h.u8("instruction"),h.u32("units")])},SetComputeUnitPrice:{index:3,layout:h.struct([h.u8("instruction"),En("microLamports")])}});class Oi{constructor(){}static requestUnits(t){const e=_n(Mi.RequestUnits,t);return new cn({keys:[],programId:this.programId,data:e})}static requestHeapFrame(t){const e=_n(Mi.RequestHeapFrame,t);return new cn({keys:[],programId:this.programId,data:e})}static setComputeUnitLimit(t){const e=_n(Mi.SetComputeUnitLimit,t);return new cn({keys:[],programId:this.programId,data:e})}static setComputeUnitPrice(t){const e=_n(Mi.SetComputeUnitPrice,{microLamports:BigInt(t.microLamports)});return new cn({keys:[],programId:this.programId,data:e})}}Oi.programId=new Ue("ComputeBudget111111111111111111111111111111");const Ri=h.struct([h.u8("numSignatures"),h.u8("padding"),h.u16("signatureOffset"),h.u16("signatureInstructionIndex"),h.u16("publicKeyOffset"),h.u16("publicKeyInstructionIndex"),h.u16("messageDataOffset"),h.u16("messageDataSize"),h.u16("messageInstructionIndex")]
1);class Bi{constructor(){}static createInstructionWithPublicKey(t){const{publicKey:e,message:n,signature:r,instructionIndex:i}=t;on(32===e.length,`Public Key must be 32 bytes but received ${e.length} bytes`),on(64===r.length,`Signature must be 64 bytes but received ${r.length} bytes`);const s=Ri.span,a=s+e.length,c=a+r.length,u=o.lW.alloc(c+n.length),l=null==i?65535:i;return Ri.encode({numSignatures:1,padding:0,signatureOffset:a,signatureInstructionIndex:l,publicKeyOffset:s,publicKeyInstructionIndex:l,messageDataOffset:c,messageDataSize:n.length,messageInstructionIndex:l},u),u.fill(e,s),u.fill(r,a),u.fill(n,c),new cn({keys:[],programId:Bi.programId,data:u})}static createInstructionWithPrivateKey(t){const{privateKey:e,message:n,instructionIndex:r}=t;on(64===e.length,`Private key must be 64 bytes but received ${e.length} bytes`);try{const t=Ai.fromSecretKey(e),o=t.publicKey.toBytes(),s=i().sign.detached(n,t.secretKey);return this.createInstructionWithPublicKey({publicKey:o,message:n,signature:s,instructionIndex:r})}catch(o){throw new Error(`Error creating instruction; ${o}`)}}}Bi.programId=new Ue("Ed25519SigVerify111111111111111111111111111");const{publicKeyCreate:ji,ecdsaSign:Ni}=b(),Li=h.struct([h.u8("numSignatures"),h.u16("signatureOffset"),h.u8("signatureInstructionIndex"),h.u16("ethAddressOffset"),h.u8("ethAddressInstructionIndex"),h.u16("messageDataOffset"),h.u16("messageDataSize"),h.u8("messageInstructionIndex"),h.blob(20,"ethAddress"),h.blob(64,"signature"),h.u8("recoveryId")]);class Di{constructor(){}static publicKeyToEthAddress(t){on(64===t.length,`Public key must be 64 bytes but received ${t.length} bytes`);try{return o.lW.from(w().keccak_256.update(_(t)).digest()).slice(-20)}catch(e){throw new Error(`Error constructing Ethereum address: ${e}`)}}static createInstructionWithPublicKey(t){const{publicKey:e,message:n,signature:r,recoveryId:i,instructionIndex:o}=t;return Di.createInstructionWithEthAddress({ethAddress:Di.publicKeyToEthAddress(e),message:n,signature:r,recoveryId:i,instructionIndex:o})}static createInstructionWithEthAddress(t){const{ethAddress:e,message:n,signature:r,recoveryId:i,instructionIndex:s=0}=t;let a;a="string"===typeof e?e.startsWith("0x")?o.lW.from(e.substr(2),"hex"):o.lW.from(e,"hex"):e,on(20===a.length,`Address must be 20 bytes but received ${a.length} bytes`);const c=12+a.length,u=c+r.length+1,l=o.lW.alloc(Li.span+n.length);return Li.encode({numSignatures:1,signatureOffset:c,signatureInstructionIndex:s,ethAddressOffset:12,ethAddressInstructionIndex:s,messageDataOffset:u,messageDataSize:n.length,messageInstructionIndex:s,signature:_(r),ethAddress:_(a),recoveryId:i},l),l.fill(_(n),Li.span),new cn({keys:[],programId:Di.programId,data:l})}static createInstructionWithPrivateKey(t){const{privateKey:e,message:n,instructionIndex:r}=t;on(32===e.length,`Private key must be 32 bytes but received ${e.length} bytes`);try{const t=_(e),i=ji(t,!1).slice(1),s=o.lW.from(w().keccak_256.update(_(n)).digest()),{signature:a,recid:c}=Ni(s,t);return this.createInstructionWithPublicKey({publicKey:i,message:n,signature:a,recoveryId:c,instructionIndex:r})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}}Di.programId=new Ue("KeccakSecp256k11111111111111111111111111111");const zi=new Ue("StakeConfig11111111111111111111111111111111");class Fi{constructor(t,e){this.staker=void 0,this.withdrawer=void 0,this.staker=t,this.withdrawer=e}}class Ui{constructor(t,e,n){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=e,this.custodian=n}}Ui.default=new Ui(0,0,Ue.default);class Wi{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=h.u32("instruction").decode(t.data);let n;for(const[r,i]of Object.entries(Gi))if(i.index==e){n=r;break}if(!n)throw new Error("Instruction type incorrect; not a StakeInstruction");return n}static decodeInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:e,lockup:n}=kn(Gi.Initialize,t.data);return{stakePubkey:t.keys[0].pubkey,authorized:new Fi(new Ue(e.staker),new Ue(e.withdrawer)),lockup:new Ui(n.unixTimestamp,n.epoch,new Ue(n.custodian))}}static decodeDelegate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,6),kn(Gi.Delegate,t.data),{stakePubkey:t.keys[0].pubkey,votePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[5].pubkey}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:e,stakeAuthorizationType:n}=kn(Gi.Authorize,t.data),r={stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new Ue(e),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(r.custodianPubkey=t.keys[3].pubkey),r}static decodeAuthorizeWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{newAuthorized:e,stakeAuthorizationType:n,authoritySeed:r,authorityOwner:i}=kn(Gi.AuthorizeWithSeed,t.data),o={stakePubkey:t.keys[0].pubkey,authorityBase:t.keys[1].pubkey,authoritySeed:r,authorityOwner:new Ue(i),newAuthorizedPubkey:new Ue(e),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(o.custodianPubkey=t.keys[3].pubkey),o}static decodeSplit(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e}=kn(Gi.Split,t.data);return{stakePubkey:t.keys[0].pubkey,splitStakePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[2].pubkey,lamports:e}}static decodeMerge(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),kn(Gi.Merge,t.data),{stakePubkey:t.keys[0].pubkey,sourceStakePubKey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:e}=kn(Gi.Withdraw,t.data),n={stakePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:e};return t.keys.length>5&&(n.custodianPubkey=t.keys[5].pubkey),n}static decodeDeactivate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),kn(Gi.Deactivate,t.data),{stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static checkProgramId(t){if(!t.equals(Ki.programId))throw new Error("invalid instruction; programId is not StakeProgram")}static checkKeyLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}const Gi=Object.freeze({Initialize:{index:0,layout:h.struct([h.u32("instruction"),((t="authorized")=>h.struct([Qe("staker"),Qe("withdrawer")],t))(),((t="lockup")=>h.struct([h.ns64("unixTimestamp"),h.ns64("epoch"),Qe("custodian")],t))()])},Authorize:{index:1,layout:h.struct([h.u32("instruction"),Qe("newAuthorized"),h.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:h.struct([h.u32("instruction")])},Split:{index:3,layout:h.struct([h.u32("instruction"),h.ns64("lamports")])},Withdraw:{index:4,layout:h.struct([h.u32("instruction"),h.ns64("lamports")])},Deactivate:{index:5,layout:h.struct([h.u32("instruction")])},Merge:{index:7,layout:h.struct([h.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:h.struct([h.u32("instruction"),Qe("newAuthorized"),h.u32("stakeAuthorizationType"),tn("authoritySeed"),Qe("authorityOwner")])}}),Vi=Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class Ki{constructor(){}static initialize(t){const{stakePubkey:e,authorized:n,lockup:r}=t,i=r||Ui.default,o=_n(Gi.Initialize,{authorized:{staker:_(n.staker.toBuffer()),withdrawer:_(n.withdrawer.toBuffer())},lockup:{unixTimestamp:i.unixTimestamp,epoch:i.epoch,custodian:_(i.custodian.toBuffer())}}),s={keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:pn,isSigner:!1,isWritable:!1}],programId:this.programId,data:o};return new cn(s)}static createAccountWithSeed(t){const e=new un;e.add(Mn.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:r,lockup:i}=t;return e.add(this.initialize({stakePubkey:n,authorized:r,lockup:i}))}static createAccount(t){const e=new un;e.add(Mn.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:r,lockup:i}=t;return e.add(this.initialize({stakePubkey:n,authorized:r,lockup:i}))}static delegate(t){const{stakePubkey:e,authorizedPubkey:n,votePubkey:r}=t,i=_n(Gi.Delegate);return(new un).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:ln,isSigner:!1,isWritable:!1},{pubkey:bn,isSigner:!1,isWritable:!1},{pubkey:zi,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}static authorize(t){const{stakePubkey:e,authorizedPubkey:n,newAuthorizedPubkey:r,stakeAuthorizationType:i,custodianPubkey:o}=t,s=_n(Gi.Authorize,{newAuthorized:_(r.toBuffer()),stakeAuthorizationType:i.index}),a=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:ln,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&a.push({pubkey:o,isSigner:!1,isWritable:!1}),(new un).add({keys:a,programId:this.programId,data:s})}static authorizeWithSeed(t){const{stakePubkey:e,authorityBase:n,authoritySeed:r,authorityOwner:i,newAuthorizedPubkey:o,stakeAuthorizationType:s,custodianPubkey:a}=t,c=_n(Gi.AuthorizeWithSeed,{newAuthorized:_(o.toBuffer()),stakeAuthorizationType:s.index,authoritySeed:r,authorityOwner:_(i.toBuffer())}),u=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:ln,isSigner:!1,isWritable:!1}];return a&&u.push({pubkey:a,isSigner:!1,isWritable:!1}),(new un).add({keys:u,programId:this.programId,data:c})}static splitInstruction(t){const{stakePubkey:e,authorizedPubkey:n,splitStakePubkey:r,lamports:i}=t,o=_n(Gi.Split,{lamports:i});return new cn({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}static split(t){const e=new un;return e.add(Mn.createAccount({fromPubkey:t.authorizedPubkey,newAccountPubkey:t.splitStakePubkey,lamports:0,space:this.space,programId:this.programId})),e.add(this.splitInstruction(t))}static splitWithSeed(t){const{stakePubkey:e,authorizedPubkey:n,splitStakePubkey:r,basePubkey:i,seed:o,lamports:s}=t,a=new un;return a.add(Mn.allocate({accountPubkey:r,basePubkey:i,seed:o,space:this.space,programId:this.programId})),a.add(this.splitInstruction({stakePubkey:e,authorizedPubkey:n,splitStakePubkey:r,lamports:s}))}static merge(t){const{stakePubkey:e,sourceStakePubKey:n,authorizedPubkey:r}=t,i=_n(Gi.Merge);return(new un).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:ln,isSigner:!1,isWritable:!1},{pubkey:bn,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}static withdraw(t){const{stakePubkey:e,authorizedPubkey:n,toPubkey:r,lamports:i,custodianPubkey:o}=t,s=_n(Gi.Withdraw,{lamports:i}),a=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:ln,isSigner:!1,isWritable:!1},{pubkey:bn,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&a.push({pubkey:o,isSigner:!1,isWritable:!1}),(new un).add({keys:a,programId:this.programId,data:s})}static deactivate(t){const{stakePubkey:e,authorizedPubkey:n}=t,r=_n(Gi.Deactivate);return(new un).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:ln,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:r})}}Ki.programId=new Ue("Stake11111111111111111111111111111111111111"),Ki.space=2
100;class Hi{constructor(t,e,n,r){this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=t,this.authorizedVoter=e,this.authorizedWithdrawer=n,this.commission=r}}class qi{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const e=h.u32("instruction").decode(t.data);let n;for(const[r,i]of Object.entries($i))if(i.index==e){n=r;break}if(!n)throw new Error("Instruction type incorrect; not a VoteInstruction");return n}static decodeInitializeAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,4);const{voteInit:e}=kn($i.InitializeAccount,t.data);return{votePubkey:t.keys[0].pubkey,nodePubkey:t.keys[3].pubkey,voteInit:new Hi(new Ue(e.nodePubkey),new Ue(e.authorizedVoter),new Ue(e.authorizedWithdrawer),e.commission)}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:e,voteAuthorizationType:n}=kn($i.Authorize,t.data);return{votePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new Ue(e),voteAuthorizationType:{index:n}}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e}=kn($i.Withdraw,t.data);return{votePubkey:t.keys[0].pubkey,authorizedWithdrawerPubkey:t.keys[2].pubkey,lamports:e,toPubkey:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(Yi.programId))throw new Error("invalid instruction; programId is not VoteProgram")}static checkKeyLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}const $i=Object.freeze({InitializeAccount:{index:0,layout:h.struct([h.u32("instruction"),((t="voteInit")=>h.struct([Qe("nodePubkey"),Qe("authorizedVoter"),Qe("authorizedWithdrawer"),h.u8("commission")],t))()])},Authorize:{index:1,layout:h.struct([h.u32("instruction"),Qe("newAuthorized"),h.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:h.struct([h.u32("instruction"),h.ns64("lamports")])}}),Zi=Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class Yi{constructor(){}static initializeAccount(t){const{votePubkey:e,nodePubkey:n,voteInit:r}=t,i=_n($i.InitializeAccount,{voteInit:{nodePubkey:_(r.nodePubkey.toBuffer()),authorizedVoter:_(r.authorizedVoter.toBuffer()),authorizedWithdrawer:_(r.authorizedWithdrawer.toBuffer()),commission:r.commission}}),o={keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:pn,isSigner:!1,isWritable:!1},{pubkey:ln,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i};return new cn(o)}static createAccount(t){const e=new un;return e.add(Mn.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.votePubkey,lamports:t.lamports,space:this.space,programId:this.programId})),e.add(this.initializeAccount({votePubkey:t.votePubkey,nodePubkey:t.voteInit.nodePubkey,voteInit:t.voteInit}))}static authorize(t){const{votePubkey:e,authorizedPubkey:n,newAuthorizedPubkey:r,voteAuthorizationType:i}=t,o=_n($i.Authorize,{newAuthorized:_(r.toBuffer()),voteAuthorizationType:i.index}),s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:ln,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return(new un).add({keys:s,programId:this.programId,data:o})}static withdraw(t){const{votePubkey:e,authorizedWithdrawerPubkey:n,lamports:r,toPubkey:i}=t,o=_n($i.Withdraw,{lamports:r}),s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return(new un).add({keys:s,programId:this.programId,data:o})}}Yi.programId=new Ue("Vote111111111111111111111111111111111111111"),Yi.space=3731;const Xi=new Ue("Va1idator1nfo111111111111111111111111111111"),Ji=(0,f.dt)({name:(0,f.Z_)(),website:(0,f.jt)((0,f.Z_)()),details:(0,f.jt)((0,f.Z_)()),keybaseUsername:(0,f.jt)((0,f.Z_)())});class Qi{constructor(t,e){this.key=void 0,this.info=void 0,this.key=t,this.info=e}static fromConfigData(t){let e=[...t];if(2!==en(e))return null;const n=[];for(let r=0;r<2;r++){const t=new Ue(e.slice(0,32));e=e.slice(32);const r=1===e.slice(0,1)[0];e=e.slice(1),n.push({publicKey:t,isSigner:r})}if(n[0].publicKey.equals(Xi)&&n[1].isSigner){const t=tn().decode(o.lW.from(e)),r=JSON.parse(t);return(0,f.hu)(r,Ji),new Qi(n[1].publicKey,r)}return null}}const to=new Ue("Vote111111111111111111111111111111111111111"),eo=h.struct([Qe("nodePubkey"),Qe("authorizedWithdrawer"),h.u8("commission"),h.nu64(),h.seq(h.struct([h.nu64("slot"),h.u32("confirmationCount")]),h.offset(h.u32(),-8),"votes"),h.u8("rootSlotValid"),h.nu64("rootSlot"),h.nu64(),h.seq(h.struct([h.nu64("epoch"),Qe("authorizedVoter")]),h.offset(h.u32(),-8),"authorizedVoters"),h.struct([h.seq(h.struct([Qe("authorizedPubkey"),h.nu64("epochOfLastAuthorizedSwitch"),h.nu64("targetEpoch")]),32,"buf"),h.nu64("idx"),h.u8("isEmpty")],"priorVoters"),h.nu64(),h.seq(h.struct([h.nu64("epoch"),h.nu64("credits"),h.nu64("prevCredits")]),h.offset(h.u32(),-8),"epochCredits"),h.struct([h.nu64("slot"),h.nu64("timestamp")],"lastTimestamp")]);
1class no{constructor(t){this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=t.nodePubkey,this.authorizedWithdrawer=t.authorizedWithdrawer,this.commission=t.commission,this.rootSlot=t.rootSlot,this.votes=t.votes,this.authorizedVoters=t.authorizedVoters,this.priorVoters=t.priorVoters,this.epochCredits=t.epochCredits,this.lastTimestamp=t.lastTimestamp}static fromAccountData(t){const e=eo.decode(_(t),4);let n=e.rootSlot;return e.rootSlotValid||(n=null),new no({nodePubkey:new Ue(e.nodePubkey),authorizedWithdrawer:new Ue(e.authorizedWithdrawer),commission:e.commission,votes:e.votes,rootSlot:n,authorizedVoters:e.authorizedVoters.map(ro),priorVoters:oo(e.priorVoters),epochCredits:e.epochCredits,lastTimestamp:e.lastTimestamp})}}function ro({authorizedVoter:t,epoch:e}){return{epoch:e,authorizedVoter:new Ue(t)}}function io({authorizedPubkey:t,epochOfLastAuthorizedSwitch:e,targetEpoch:n}){return{authorizedPubkey:new Ue(t),epochOfLastAuthorizedSwitch:e,targetEpoch:n}}function oo({buf:t,idx:e,isEmpty:n}){return n?[]:[...t.slice(e+1).map(io),...t.slice(0,e).map(io)]}const so={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function ao(t,e){const n=!1===e?"http":"https";if(!t)return so[n].devnet;const r=so[n][t];if(!r)throw new Error(`Unknown ${n} cluster: ${t}`);return r}async function co(t,e,n,r){let i,o;n&&Object.prototype.hasOwnProperty.call(n,"lastValidBlockHeight")?(i=n,o=r):o=n;const s=o&&{skipPreflight:o.skipPreflight,preflightCommitment:o.preflightCommitment||o.commitment,minContextSlot:o.minContextSlot},a=await t.sendRawTransaction(e,s),c=o&&o.commitment,u=i?t.confirmTransaction(i,c):t.confirmTransaction(a,c),l=(await u).value;if(l.err)throw new Error(`Raw transaction ${a} failed (${JSON.stringify(l)})`);return a}const uo=1e9},14866:function(t,e,n){var r=n(58162);t.exports=r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},81020:function(t,e,n){"use strict";const r=n(79742),i=n(80645),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.lW=c,e.h2=50;const s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return u(t,e,n)}function u(t,e,n){if("string"===typeof t)return function(t,e){"string"===typeof e&&""!==e||(e="utf8");if(!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|m(t,e);let r=a(n);const i=r.write(t,e);i!==n&&(r=r.slice(0,i));return r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Z(t,Uint8Array)){const e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return d(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Z(t,ArrayBuffer)||t&&Z(t.buffer,ArrayBuffer))return f(t,e,n);if("undefined"!==typeof SharedArrayBuffer&&(Z(t,SharedArrayBuffer)||t&&Z(t.buffer,SharedArrayBuffer)))return f(t,e,n);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,n);const i=function(t){if(c.isBuffer(t)){const e=0|p(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!==typeof t.length||Y(t.length)?a(0):d(t);if("Buffer"===t.type&&Array.isArray(t.data))return d(t.data)}(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');
vendor: 7,552 bytes, line 1
1if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return l(t),a(t<0?0:0|p(t))}function d(t){const e=t.length<0?0:0|p(t.length),n=a(e);for(let r=0;r<e;r+=1)n[r]=255&t[r];return n}function f(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,c.prototype),r}function p(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function m(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Z(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(t).length;default:if(i)return r?-1:H(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return C(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return P(this,e,n);case"base64":return I(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function y(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,i){let o,s=1,a=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let r=-1;for(o=n;o<a;o++)if(u(t,o)===u(e,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===c)return r*s}else-1!==r&&(o-=o-r),r=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){let n=!0;for(let r=0;r<c;r++)if(u(t,o+r)!==u(e,r)){n=!1;break}if(n)return o}return-1}function w(t,e,n,r){n=Number(n)||0;const i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=e.length;let s;for(r>o/2&&(r=o/2),s=0;s<r;++s){const r=parseInt(e.substr(2*s,2),16);if(Y(r))return s;t[n+s]=r}return s}function _(t,e,n,r){return $(H(e,t.length-n),t,n,r)}function k(t,e,n,r){return $(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function S(t,e,n,r){return $(q(e),t,n,r)}function x(t,e,n,r){return $(function(t,e){let n,r,i;const o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function I(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function A(t,e,n){n=Math.min(t.length,n);const r=[];let i=e;for(;i<n;){const e=t[i];let o=null,s=e>239?4:e>223?3:e>191?2:1;if(i+s<=n){let n,r,a,c;switch(s){case 1:e<128&&(o=e);break;case 2:n=t[i+1],128===(192&n)&&(c=(31&e)<<6|63&n,c>127&&(o=c));break;case 3:n=t[i+1],r=t[i+2],128===(192&n)&&128===(192&r)&&(c=(15&e)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=t[i+1],r=t[i+2],a=t[i+3],128===(192&n)&&128===(192&r)&&128===(192&a)&&(c=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(t){const e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);let n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=E));return n}(r)}c.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,n){return u(t,e,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,n){return function(t,e,n){return l(t),t<=0?a(t):void 0!==e?"string"===typeof n?a(t).fill(e,n):a(t).fill(e):a(t)}(t,e,n)},c.allocUnsafe=function(t){return h(t)},c.allocUnsafeSlow=function(t){return h(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(Z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),Z(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);let n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const r=c.allocUnsafe(e);let i=0;for(n=0;n<t.length;++n){let e=t[n];if(Z(e,Uint8Array))i+e.length>r.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,i)}i+=e.length}return r},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)y(this,e,e+1);return this},c.prototype.swap32=function(){const t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},c.prototype.swap64=function(){const t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},c.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?A(this,0,t):g.apply(this,arguments)}
vendor: 12,025 bytes, line 1
1,c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){let t="";const n=e.h2;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(t,e,n,r,i){if(Z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;let o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0);const a=Math.min(o,s),u=this.slice(r,i),l=t.slice(e,n);for(let c=0;c<a;++c)if(u[c]!==l[c]){o=u[c],s=l[c];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return _(this,t,e,n);case"ascii":case"latin1":case"binary":return k(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const E=4096;function T(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function P(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function C(t,e,n){const r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let i="";for(let o=e;o<n;++o)i+=X[t[o]];return i}function M(t,e,n){const r=t.slice(e,n);let i="";for(let o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function O(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function B(t,e,n,r,i){W(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,n}function j(t,e,n,r,i){W(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=s,s>>=8,t[n+2]=s,s>>=8,t[n+1]=s,s>>=8,t[n]=s,n+8}function N(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(t,e,n,r,o){return e=+e,n>>>=0,o||N(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function D(t,e,n,r,o){return e=+e,n>>>=0,o||N(t,0,n,8),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const r=this.subarray(t,e);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=this[t+--e],i=1;for(;e>0&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),c.prototype.readBigUInt64BE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),c.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=e,i=1,o=this[t+--r];for(;r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||O(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||O(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),c.prototype.readBigInt64BE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)})),c.prototype.readFloatLE=function(t,e){return t>>>=0,e||O(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||O(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||O(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||O(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){R(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){R(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=J((function(t,e=0){return B(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=J((function(t,e=0){return j(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=0,o=1,s=0;for(this[e]=255&t;++i<n&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=J((function(t,e=0){return B(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=J((function(t,e=0){return j(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(t,e,n){return L(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return L(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return D(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return D(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);const i=r-n;return this===t&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),i},c.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){const e=t.charCodeAt(0);("utf8"===r&&e<128||"latin1"===r)&&(t=e)}}else"number"===typeof t?t&=255:"boolean"===typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(i=e;i<n;++i)this[i]=t;else{const o=c.isBuffer(t)?t:c.from(t,r),s=o.length;
vendor: 4,690 bytes, line 1
1if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<n-e;++i)this[i+e]=o[i%s]}return this};const z={};function F(t,e,n){z[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function U(t){let e="",n=t.length;const r="-"===t[0]?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function W(t,e,n,r,i,o){if(t>n||t<e){const r="bigint"===typeof e?"n":"";let i;throw i=o>3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new z.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,n){G(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||V(e,t.length-(n+1))}(r,i,o)}function G(t,e){if("number"!==typeof t)throw new z.ERR_INVALID_ARG_TYPE(e,"number",t)}function V(t,e,n){if(Math.floor(t)!==t)throw G(t,n),new z.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new z.ERR_BUFFER_OUT_OF_BOUNDS;throw new z.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=U(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=U(i)),i+="n"),r+=` It must be ${e}. Received ${i}`,r}),RangeError);const K=/[^+/0-9A-Za-z-_]/g;function H(t,e){let n;e=e||1/0;const r=t.length;let i=null;const o=[];for(let s=0;s<r;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function $(t,e,n,r){let i;for(i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function Z(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Y(t){return t!==t}const X=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function J(t){return"undefined"===typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},15489:function(t,e,n){var r=n(94758),i=n(68873),o=n(48764),s=n(30218),a=n(36044),c=n(8400),u=n(81441),l=n(81354);function h(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,enumerable:!0,configurable:!0})}function d(t){return t&&t.__esModule?t.default:t}h(t.exports,"DispatchConnection",(()=>m.DispatchConnection)),h(t.exports,"clusterAddresses",(()=>b)),h(t.exports,"defaultCluster",(()=>v)),h(t.exports,"seeds",(()=>y)),h(t.exports,"Forum",(()=>_.Forum)),h(t.exports,"ForumInfo",(()=>_.ForumInfo)),h(t.exports,"ForumPost",(()=>_.ForumPost)),h(t.exports,"IForum",(()=>_.IForum)),h(t.exports,"MailboxAccount",(()=>J.MailboxAccount)),h(t.exports,"MessageAccount",(()=>J.MessageAccount)),h(t.exports,"MailboxOpts",(()=>J.MailboxOpts)),h(t.exports,"Mailbox",(()=>J.Mailbox)),h(t.exports,"KeyPairWallet",(()=>nt.KeyPairWallet)),h(t.exports,"WalletInterface",(()=>nt.WalletInterface)),h(t.exports,"Postbox",(()=>O.Postbox)),h(t.exports,"SettingsType",(()=>O.SettingsType)),h(t.exports,"PostRestriction",(()=>O.PostRestriction)),h(t.exports,"VoteType",(()=>O.VoteType)),h(t.exports,"ChainVoteEntry",(()=>O.ChainVoteEntry)),h(t.exports,"getForumIdFromSolanartId",(()=>k.getForumIdFromSolanartId)),h(t.exports,"addSolanartMap",(()=>k.addSolanartMap));var f,p,m={};h(m,"DispatchConnection",(()=>w),(t=>w=t)),f=JSON.parse('{"version":"0.2.1","name":"messaging","constants":[{"name":"MESSAGE_FEE_
1LAMPORTS","type":"u64","value":"50000"}],"instructions":[{"name":"sendMessage","docs":["Send a message to the receiver. Note that anyone can create a mailbox for the receiver","and send messages."],"accounts":[{"name":"mailbox","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"mailbox"},{"kind":"account","type":"publicKey","path":"receiver"}]}},{"name":"receiver","isMut":false,"isSigner":false},{"name":"message","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"message"},{"kind":"account","type":"publicKey","account":"Mailbox","path":"mailbox"},{"kind":"account","type":"u32","account":"Mailbox","path":"mailbox.message_count"}]}},{"name":"payer","isMut":true,"isSigner":true},{"name":"sender","isMut":false,"isSigner":true},{"name":"feeReceiver","isMut":true,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false}],"args":[{"name":"data","type":"string"}]},{"name":"deleteMessage","docs":["Delete an arbitrary message account and send rent to the original payer. Only the","sender, payer, or receiver is allowed to call this function. If the account being","deleted is the first remaining message, increment the read message count pointer."],"accounts":[{"name":"mailbox","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"mailbox"},{"kind":"account","type":"publicKey","path":"receiver"}]}},{"name":"receiver","isMut":false,"isSigner":false,"docs":["and verify it based on the PDA of the mailbox"]},{"name":"authorizedDeleter","isMut":true,"isSigner":true},{"name":"message","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"message"},{"kind":"account","type":"publicKey","account":"Mailbox","path":"mailbox"},{"kind":"arg","type":"u32","path":"message_index"}]}},{"name":"rentDestination","isMut":true,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false}],"args":[{"name":"messageIndex","type":"u32"}]},{"name":"updateReadMessages","docs":["Allow the receiver to update the count of read messages in case others have deleted","and a gap has formed."],"accounts":[{"name":"mailbox","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"mailbox"},{"kind":"account","type":"publicKey","path":"receiver"}]}},{"name":"receiver","isMut":false,"isSigner":true}],"args":[{"name":"readMessages","type":"u32"}]},{"name":"sendMessageWithIncentive","docs":["Send a message while creating an attachment"],"accounts":[{"name":"mailbox","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"mailbox"},{"kind":"account","type":"publicKey","path":"receiver"}]}},{"name":"receiver","isMut":false,"isSigner":false},{"name":"message","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"message"},{"kind":"account","type":"publicKey","account":"Mailbox","path":"mailbox"},{"kind":"account","type":"u32","account":"Mailbox","path":"mailbox.message_count"}]}},{"name":"payer","isMut":true,"isSigner":true},{"name":"sender","isMut":false,"isSigner":true},{"name":"feeReceiver","isMut":true,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"incentiveMint","isMut":false,"isSigner":false},{"name":"payerTokenAccount","isMut":true,"isSigner":false},{"name":"incentiveTokenAccount","isMut":true,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"associatedTokenProgram","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false}],"args":[{"name":"data","type":"string"},{"name":"incentiveAmount","type":"u64"}]},{"name":"claimIncentive","docs":["Allow the receiver to claim the incentive payment"],"accounts":[{"name":"mailbox","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"mailbox"},{"kind":"account","type":"publicKey","path":"receiver"}]}},{"name":"receiver","isMut":true,"isSigner":true},{"name":"message","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"message"},{"kind":"account","type":"publicKey","account":"Mailbox","path":"mailbox"},{"kind":"arg","type":"u32","path":"message_index"}]}},{"name":"rentDestination","isMut":true,"isSigner":false},{"name":"incentiveMint","isMut":false,"isSigner":false}
1,{"name":"incentiveTokenAccount","isMut":true,"isSigner":false},{"name":"receiverTokenAccount","isMut":true,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"associatedTokenProgram","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false}],"args":[{"name":"messageIndex","type":"u32"}]}],"accounts":[{"name":"Mailbox","type":{"kind":"struct","fields":[{"name":"readMessageCount","type":"u32"},{"name":"messageCount","type":"u32"}]}},{"name":"Message","type":{"kind":"struct","fields":[{"name":"sender","type":"publicKey"},{"name":"payer","type":"publicKey"},{"name":"data","type":"string"},{"name":"incentiveMint","type":"publicKey"}]}}],"events":[{"name":"DispatchMessage","fields":[{"name":"senderPubkey","type":"publicKey","index":false},{"name":"receiverPubkey","type":"publicKey","index":false},{"name":"messageIndex","type":"u32","index":false},{"name":"message","type":"string","index":false}]},{"name":"IncentiveClaimed","fields":[{"name":"senderPubkey","type":"publicKey","index":false},{"name":"receiverPubkey","type":"publicKey","index":false},{"name":"messageIndex","type":"u32","index":false},{"name":"mint","type":"publicKey","index":false},{"name":"amount","type":"u64","index":false}]}],"metadata":{"address":"BHJ4tRcogS88tUhYotPfYWDjR4q7MGdizdiguY3N54rb"}}'),p=JSON.parse('{"version":"0.1.0","name":"postbox","constants":[{"name":"POSTBOX_GROW_CHILDREN_BY","type":"u32","value":"1_000"},{"name":"FEE_NEW_POSTBOX","type":"u64","value":"100_000"},{"name":"FEE_NEW_PERSONAL_BOX","type":"u64","value":"50_000"},{"name":"FEE_POST","type":"u64","value":"50_000"},{"name":"FEE_VOTE","type":"u64","value":"50_000"}],"instructions":[{"name":"initialize","accounts":[{"name":"postbox","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"postbox"},{"kind":"account","type":"publicKey","path":"target_account"},{"kind":"arg","type":"string","path":"target"}]}},{"name":"moderatorMint","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"moderator"},{"kind":"account","type":"publicKey","account":"Postbox","path":"postbox"}]}},{"name":"targetAccount","isMut":false,"isSigner":false},{"name":"signer","isMut":true,"isSigner":true},{"name":"treasury","isMut":true,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false}],"args":[{"name":"target","type":"string"},{"name":"owners","type":{"vec":"publicKey"}},{"name":"desc","type":{"option":{"defined":"SettingsData"}}}]},{"name":"createPost","accounts":[{"name":"post","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"post"},{"kind":"account","type":"publicKey","account":"Postbox","path":"postbox"},{"kind":"arg","type":"u32","path":"post_id"}]}},{"name":"postbox","isMut":true,"isSigner":false},{"name":"poster","isMut":true,"isSigner":true},{"name":"treasury","isMut":true,"isSigner":false},{"name":"replyTo","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false}],"args":[{"name":"data","type":"bytes"},{"name":"postId","type":"u32"},{"name":"settings","type":{"vec":{"defined":"SettingsData"}}},{"name":"additionalAccountOffsets","type":{"vec":{"defined":"AdditionalAccountIndices"}}}]},{"name":"deleteOwnPost","accounts":[{"name":"post","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"post"},{"kind":"account","type":"publicKey","account":"Postbox","path":"postbox"},{"kind":"arg","type":"u32","path":"post_id"}]}},{"name":"postbox","isMut":false,"isSigner":false},{"name":"poster","isMut":true,"isSigner":true}],"args":[{"name":"postId","type":"u32"}]},{"name":"deletePostByModerator","accounts":[{"name":"post","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"post"},{"kind":"account","type":"publicKey","account":"Postbox","path":"postbox"},{"kind":"arg","type":"u32","path":"post_id"}]}},{"name":"postbox","isMut":false,"isSigner":false},{"name":"poster","isMut":true,"isSigner":false},{"name":"moderator","isMut":false,"isSigner":true},{"name":"moderatorTokenAta","isMut":false,"isSigner":false}],"args":[{"name":"postId","type":"u32"}]}
1,{"name":"vote","accounts":[{"name":"post","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"post"},{"kind":"account","type":"publicKey","account":"Postbox","path":"postbox"},{"kind":"arg","type":"u32","path":"post_id"}]}},{"name":"postbox","isMut":true,"isSigner":false},{"name":"voter","isMut":true,"isSigner":true},{"name":"voteTracker","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"votes"},{"kind":"account","type":"publicKey","account":"Postbox","path":"postbox"},{"kind":"account","type":"publicKey","path":"voter"}]}},{"name":"treasury","isMut":true,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false}],"args":[{"name":"postId","type":"u32"},{"name":"upVote","type":"bool"},{"name":"additionalAccountOffsets","type":{"vec":{"defined":"AdditionalAccountIndices"}}}]},{"name":"designateModerator","accounts":[{"name":"postbox","isMut":false,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"postbox"},{"kind":"account","type":"publicKey","path":"target_account"},{"kind":"arg","type":"string","path":"target"}]}},{"name":"targetAccount","isMut":false,"isSigner":false},{"name":"moderatorMint","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"moderator"},{"kind":"account","type":"publicKey","account":"Postbox","path":"postbox"}]}},{"name":"owner","isMut":true,"isSigner":true},{"name":"newModerator","isMut":false,"isSigner":false},{"name":"moderatorAta","isMut":true,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"associatedTokenProgram","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false}],"args":[{"name":"target","type":"string"}]},{"name":"addOrUpdateSetting","accounts":[{"name":"postbox","isMut":true,"isSigner":false},{"name":"owner","isMut":true,"isSigner":true},{"name":"systemProgram","isMut":false,"isSigner":false}],"args":[{"name":"settingsData","type":{"defined":"SettingsData"}}]},{"name":"editPost","accounts":[{"name":"post","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"post"},{"kind":"account","type":"publicKey","account":"Postbox","path":"postbox"},{"kind":"arg","type":"u32","path":"post_id"}]}},{"name":"postbox","isMut":false,"isSigner":false},{"name":"poster","isMut":true,"isSigner":true},{"name":"systemProgram","isMut":false,"isSigner":false}],"args":[{"name":"postId","type":"u32"},{"name":"newData","type":"bytes"}]},{"name":"createVoteTracker","accounts":[{"name":"postbox","isMut":true,"isSigner":false},{"name":"voter","isMut":true,"isSigner":true},{"name":"voteTracker","isMut":true,"isSigner":false,"pda":{"seeds":[{"kind":"const","type":"string","value":"dispatch"},{"kind":"const","type":"string","value":"votes"},{"kind":"account","type":"publicKey","account":"Postbox","path":"postbox"},{"kind":"account","type":"publicKey","path":"voter"}]}},{"name":"systemProgram","isMut":false,"isSigner":false}],"args":[]}],"accounts":[{"name":"Postbox","type":{"kind":"struct","fields":[{"name":"maxChildId","type":"u32"},{"name":"moderatorMint","type":"publicKey"},{"name":"settings","type":{"vec":{"defined":"SettingsData"}}}]}},{"name":"Post","type":{"kind":"struct","fields":[{"name":"poster","type":"publicKey"},{"name":"data","type":"bytes"},{"name":"upVotes","type":"u16"},{"name":"downVotes","type":"u16"},{"name":"replyTo","type":{"option":"publicKey"}},{"name":"settings","type":{"vec":{"defined":"SettingsData"}}}]}},{"name":"VoteTracker","type":{"kind":"struct","fields":[{"name":"votes","type":{"vec":{"defined":"VoteEntry"}}}]}}],"types":[{"name":"VoteEntry","type":{"kind":"struct","fields":[{"name":"postId","type":"u32"},{"name":"upVote","type":"bool"}]}},{"name":"PostRestrictionRule","type":{"kind":"enum","variants":[{"name":"TokenOwnership","fields":[{"name":"mint","type":"publicKey"},{"name":"amount","type":"u64"}]}
1,{"name":"NftOwnership","fields":[{"name":"collection_id","type":"publicKey"}]},{"name":"Null"},{"name":"NftListAnyOwnership","fields":[{"name":"collection_ids","type":{"vec":"publicKey"}}]}]}},{"name":"AdditionalAccountIndices","type":{"kind":"enum","variants":[{"name":"TokenOwnership","fields":[{"name":"token_idx","type":"u8"}]},{"name":"NftOwnership","fields":[{"name":"token_idx","type":"u8"},{"name":"meta_idx","type":"u8"},{"name":"collection_idx","type":"u8"}]},{"name":"Null"}]}},{"name":"SettingsType","type":{"kind":"enum","variants":[{"name":"Description"},{"name":"OwnerInfo"},{"name":"PostRestriction"},{"name":"Null"},{"name":"Images"}]}},{"name":"SettingsData","type":{"kind":"enum","variants":[{"name":"Description","fields":[{"name":"title","type":"string"},{"name":"desc","type":"string"}]},{"name":"OwnerInfo","fields":[{"name":"owners","type":{"vec":"publicKey"}}]},{"name":"PostRestriction","fields":[{"name":"post_restriction","type":{"defined":"PostRestrictionRule"}}]},{"name":"Null"},{"name":"Images","fields":[{"name":"json","type":"string"}]}]}}],"events":[{"name":"PostEvent","fields":[{"name":"posterPubkey","type":"publicKey","index":false},{"name":"postboxPubkey","type":"publicKey","index":false},{"name":"postPubkey","type":"publicKey","index":false},{"name":"postId","type":"u32","index":false},{"name":"data","type":"bytes","index":false},{"name":"replyTo","type":{"option":"publicKey"},"index":false}]},{"name":"DeleteEvent","fields":[{"name":"deleterPubkey","type":"publicKey","index":false},{"name":"postboxPubkey","type":"publicKey","index":false},{"name":"postPubkey","type":"publicKey","index":false},{"name":"postId","type":"u32","index":false}]},{"name":"EditedEvent","fields":[{"name":"postboxPubkey","type":"publicKey","index":false},{"name":"postPubkey","type":"publicKey","index":false},{"name":"postId","type":"u32","index":false},{"name":"oldData","type":"bytes","index":false},{"name":"newData","type":"bytes","index":false}]}],"errors":[{"code":6000,"name":"NotPersonalPostbox","msg":"If no target string, target account must be the signer"},{"code":6001,"name":"BadDescriptionSetting","msg":"The description provided is not a description setting"},{"code":6100,"name":"PostIdTooLarge","msg":"The provided post ID is too large an increase"},{"code":6101,"name":"ReplyToNotPost","msg":"The reply-to account is not a Post account"},{"code":6102,"name":"ReplyCannotRestrictReplies","msg":"Replies cannot have a further reply restriction"},{"code":6103,"name":"PostInvalidSettingsType","msg":"Invalid setting type for post"},{"code":6200,"name":"NotTokenAccount","msg":"The provided token account is not a token account"},{"code":6201,"name":"MissingTokenRestriction","msg":"Missing the token required by the restriction"},{"code":6202,"name":"InvalidMetadataKey","msg":"Account provided is not expected metadata key"},{"code":6203,"name":"MetadataAccountInvalid","msg":"The provided account is not a metadata account"},{"code":6204,"name":"NoCollectionOnMetadata","msg":"No collection set on the metadata"},{"code":6205,"name":"MissingCollectionNftRestriction","msg":"Missing an NFT from the collection required by the restriction"},{"code":6206,"name":"MalformedSetting","msg":"Cannot parse a setting"},{"code":6207,"name":"InvalidRestrictionExtraAccounts","msg":"Extra account offsets invalid for this restriction type"},{"code":6208,"name":"MissingRequiredOffsets","msg":"Must supply offsets when a post restriction applies"},{"code":6209,"name":"TestError","msg":"We hit the test error"},{"code":6210,"name":"AlreadyVoted","msg":"Already voted on this post"}],"metadata":{"address":"Fs5wSa7GYtTqivXGqHyx673v5oPuD5Cb7ij9utsFKdLb"}}');var g=o.Buffer;const y={protocolSeed:g.from("dispatch"),mailboxSeed:g.from("mailbox"),messageSeed:g.from("message"),postboxSeed:g.from("postbox"),postSeed:g.from("post"),moderatorSeed:g.from("moderator"),voteTrackerSeed:g.from("votes")},b=new Map;b.set("devnet",{programAddress:new i.PublicKey("BHJ4tRcogS88tUhYotPfYWDjR4q7MGdizdiguY3N54rb"),treasuryAddress:new i.PublicKey("G2GGDc89qpuk21WgRUVPDY517uc6qR5yT4KX7AakyVR1"),postboxAddress:new i.PublicKey("Fs5wSa7GYtTqivXGqHyx673v5oPuD5Cb7ij9utsFKdLb")}),b.set("mainnet-beta",{programAddress:new i.PublicKey("BHJ4tRcogS88tUhYotPfYWDjR4q7MGdizdiguY3N54rb"),treasuryAddress:new i.PublicKey("5MNBoBJDHHG4pB6qtWgYPzGEncoYTLAaANovvoaxu28p"),postboxAddress:new i.PublicKey("DHepkufWDLJ9DCD37nbEDbPSFKjGiziQ6Lbgo1zgGX7S")});const v="devnet";class w{constructor(t,e,n){var i,o;if(this.conn=t,this.wallet=e,!e.publicKey)throw new Error("Provided wallet must have a public key defined");if(this.addresses=b.get(null!==(i=null==n?void 0:n.cluster)&&void 0!==i?i:v),this.cluster=null!==(o=null==n?void 0:n.cluster)&&void 0!==o?o:v,!(null==n?void 0:n.skipAnchorProvider)){if(!this.wallet.signTransaction||!this.wallet.signAllTransactions)throw new Error("The provided wallet is unable to sign transactions");{const e=this.wallet;r.setProvider(new r.AnchorProvider(t,e,{}))}}this.messagingProgram=new r.Program(d(f),this.addresses.programAddress),this.postboxProgram=new r.Program(d(p),this.addresses.postboxAddress)}sendTransaction(t,e="processed"){return function(t,e,n,r){return new(n||(n=Prom
1ise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}(this,void 0,void 0,(function*(){let n;if("sendTransaction"in this.wallet){const e=this.wallet;n=yield e.sendTransaction(t,this.conn,{maxRetries:6})}else{if(!("payer"in this.wallet))throw new Error("`wallet` has neither `sendTransaction` nor `payer` so cannot send transaction");{const e=this.wallet.payer;n=yield this.conn.sendTransaction(t,[e],{maxRetries:6})}}return yield this.conn.confirmTransaction(n,e),n}))}}var _={};h(_,"Forum",(()=>X),(t=>X=t));var k={};h(k,"getMaxChildId",(()=>A),(t=>A=t)),h(k,"updateAndGetNewChildId",(()=>E),(t=>E=t)),h(k,"addNewPostbox",(()=>T),(t=>T=t)),h(k,"createNewForum",(()=>P),(t=>P=t)),h(k,"addSolanartMap",(()=>C),(t=>C=t)),h(k,"getForumIdFromSolanartId",(()=>M),(t=>M=t));var S=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};const x=(0,s.createClient)("https://aiqrzujttjxgjhumjcky.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImFpcXJ6dWp0dGp4Z2podW1qY2t5Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2NjE0NzA5NjgsImV4cCI6MTk3NzA0Njk2OH0.qyDrAwwq1pyys4t12Klp7YWHCV05YRMj29Du2xRLKe8"),I=t=>"mainnet-beta"===t?"mainnet":t,A=(t,e)=>S(void 0,void 0,void 0,(function*(){const{data:n,error:r}=yield x.from(`ro_view_postbox_post_id_${I(t)}
1`).select("*").eq("forum_id",e.toBase58()).limit(1).single();return n.max_child_id})),E=(t,e)=>S(void 0,void 0,void 0,(function*(){const{data:n,error:r}=yield x.rpc(`increment_max_child_${I(t)}`,{forum_id_key:e.toBase58()});return n})),T=(t,e)=>S(void 0,void 0,void 0,(function*(){yield x.rpc(`add_postbox_${I(t)}`,{forum_id_key:e.toBase58()})})),P=(t,e)=>S(void 0,void 0,void 0,(function*(){const n={forum_id_key:e.collectionId.toBase58(),vanity_url_key:e.collectionId.toBase58(),forum_name_key:e.title,forum_desc_key:e.description,forum_image_url_key:"https://aiqrzujttjxgjhumjcky.supabase.co/storage/v1/object/public/forum-images/dispatch_header.png",show_forum_key:!0,featured_forum_key:!1};yield x.rpc(`create_new_forum_${I(t)}`,n)})),C=(t,e,n)=>S(void 0,void 0,void 0,(function*(){yield x.rpc(`create_solanart_${I(t)}_map`,{solanart_id_key:e,forum_id_key:n.toBase58()})})),M=(t,e)=>S(void 0,void 0,void 0,(function*(){const{data:n,error:r}=yield x.from(`ro_view_solanart_${I(t)}`).select("*").eq("solanart_id",e).limit(1).single();return null!=n?n.forum_id:null!=r?r.message:void 0}));var O={};h(O,"SettingsType",(()=>G),(t=>G=t)),h(O,"VoteType",(()=>K),(t=>K=t)),h(O,"Postbox",(()=>Z),(t=>Z=t));var R={};h(R,"deriveMetadataAccount",(()=>L),(t=>L=t)),h(R,"getMintsForOwner",(()=>D),(t=>D=t)),h(R,"getMetadataForMints",(()=>z),(t=>z=t)),h(R,"getAccountsInfoPaginated",(()=>F),(t=>F=t)),h(R,"getMetadataForMint",(()=>U),(t=>U=t)),h(R,"getMetadataForOwner",(()=>W),(t=>W=t));var B=o.Buffer,j=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};const N=new(0,i.PublicKey)("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s");function L(t){return j(this,void 0,void 0,(function*(){const[e]=yield i.PublicKey.findProgramAddress([B.from("metadata"),N.toBuffer(),t.toBuffer()],N);return e}))}function D(t,e){return j(this,void 0,void 0,(function*(){const{value:n}=yield t.getParsedTokenAccountsByOwner(e,{programId:a.TOKEN_PROGRAM_ID});return n.map((({account:t})=>t.data.parsed)).filter((t=>"info"in t&&"mint"in t.info&&"string"==typeof t.info.mint&&"tokenAmount"in t.info&&"amount"in t.info.tokenAmount&&"string"==typeof t.info.tokenAmount.amount&&Number(t.info.tokenAmount.amount)>0)).map((t=>new(0,i.PublicKey)(t.info.mint)))}))}function z(t,e){return j(this,void 0,void 0,(function*(){const n=yield Promise.all(e.map((t=>j(this,void 0,void 0,(function*(){return L(t)})))));return(yield F(t,n)).filter((t=>null!==t)).map((t=>u.Metadata.fromAccountInfo(t))).map((([t])=>t))}))}function F(t,e,n=100){return j(this,void 0,void 0,(function*(){const r=d(c)(e,n).map((e=>t.getMultipleAccountsInfo(e)));return(yield Promise.all(r)).flat()}))}function U(t,e){return j(this,void 0,void 0,(function*(){return(yield z(t,[e]))[0]||{error:!0,message:`Derived account for mint ${e.toBase58()} not found`}}))}function W(t,e){return j(this,void 0,void 0,(function*(){const n=yield D(t,e);return(yield z(t,n)).filter((t=>!("error"in t)))}))}var G,V,K,H,q=o.Buffer,$=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};(V=G||(G={})).description="description",V.images="images",V.ownerInfo="ownerInfo",V.postRestrictions="postRestriction",(H=K||(K={}))[H.down=0]="down",H[H.up=1]="up";class Z{constructor(t,e){this.dispatch=t,this.target=e}initialize(t,e){return $(this,void 0,void 0,(function*(){const n=yield this.createInitializeIx(t,e);return this.dispatch.sendTransaction(n)}))}createInitializeIx(t,e){var n;return $(this,void 0,void 0,(function*(){const r=yield this.dispatch.postboxProgram.methods.initialize(null!==(n=this.target.str)&&void 0!==n?n:"",null!=t?t:[this.dispatch.wallet.publicKey],e?{description:e}:null).accounts({signer:this.dispatch.wallet.publicKey,targetAccount:this.target.key,treasury:this.dispatch.addresses.treasuryAddress}).transaction();return yield(0,k.addNewPostbox)(this.dispatch.cluster,this.target.key),r}))}createVoteTrackerIx(){return $(this,void 0,void 0,(function*(){return yield this.dispatch.postboxProgram.methods.createV
1oteTracker().accounts({postbox:yield this.getAddress(),voter:this.dispatch.wallet.publicKey}).transaction()}))}_getTokenPostRestrictionAccounts(t){return $(this,void 0,void 0,(function*(){return{pra:[{pubkey:yield a.getAssociatedTokenAddress(t.mint,this.dispatch.wallet.publicKey),isWritable:!1,isSigner:!1}],praIdxs:{tokenOwnership:{tokenIdx:0}}}}))}_getNftPostRestrictionAccounts(t){return $(this,void 0,void 0,(function*(){const e=(yield(0,R.getMetadataForOwner)(this.dispatch.conn,this.dispatch.wallet.publicKey)).filter((e=>{var n;return(null===(n=e.collection)||void 0===n?void 0:n.key)&&t.some((t=>t.equals(e.collection.key)))}));if(e.length){const t=e[0],n=t.collection.key;return{pra:[{pubkey:yield a.getAssociatedTokenAddress(t.mint,this.dispatch.wallet.publicKey),isWritable:!1,isSigner:!1},{pubkey:yield(0,R.deriveMetadataAccount)(t.mint),isWritable:!1,isSigner:!1},{pubkey:n,isWritable:!1,isSigner:!1}],praIdxs:{nftOwnership:{tokenIdx:0,metaIdx:1,collectionIdx:2}}}}return{pra:[],praIdxs:null}}))}_getPostRestrictionAccounts(t){var e;return $(this,void 0,void 0,(function*(){const n=(null!==(e=null==t?void 0:t.settings)&&void 0!==e?e:[]).map((t=>{var e;return(null===(e=t.postRestriction)||void 0===e?void 0:e.postRestriction)||null}));n.push(yield this.getPostboxPostRestriction());for(const t of n){if(null==t?void 0:t.tokenOwnership)return this._getTokenPostRestrictionAccounts(t.tokenOwnership);if(null==t?void 0:t.nftOwnership)return this._getNftPostRestrictionAccounts([t.nftOwnership.collectionId]);if(null==t?void 0:t.nftListAnyOwnership)return this._getNftPostRestrictionAccounts(t.nftListAnyOwnership.collectionIds)}return{pra:[],praIdxs:null}}))}_formatPostRestrictionSetting(t){let e;return e=(null==t?void 0:t.tokenOwnership)?{tokenOwnership:{mint:t.tokenOwnership.mint,amount:new r.BN(t.tokenOwnership.amount)}}:t,{postRestriction:{postRestriction:e}}}createPost(t,e,n){var r;return $(this,void 0,void 0,(function*(){const o=yield(0,k.updateAndGetNewChildId)(this.dispatch.cluster,this.target.key),s=yield this.postDataToBuffer(t),a=yield this._getPostRestrictionAccounts(e),c=yield this.dispatch.postboxProgram.methods.createPost(s,o,n?[this._formatPostRestrictionSetting(n)]:[],a.praIdxs?[a.praIdxs]:[]).accounts({postbox:yield this.getAddress(),poster:this.dispatch.wallet.publicKey,treasury:this.dispatch.addresses.treasuryAddress,replyTo:null!==(r=null==e?void 0:e.address)&&void 0!==r?r:i.PublicKey.default}).remainingAccounts(a.pra).transaction();return this.dispatch.sendTransaction(c)}))}replyToPost(t,e){return $(this,void 0,void 0,(function*(){return this.createPost(t,e)}))}editPost(t,e){return $(this,void 0,void 0,(function*(){const n=yield this.postDataToBuffer(e),r=yield this.dispatch.postboxProgram.methods.editPost(t.postId,n).accounts({postbox:yield this.getAddress(),post:t.address}).transaction();return this.dispatch.sendTransaction(r)}))}deletePost(t){return $(this,void 0,void 0,(function*(){const e=yield this.dispatch.postboxProgram.methods.deleteOwnPost(t.postId).accounts({postbox:yield this.getAddress(),post:t.address}).transaction();return this.dispatch.sendTransaction(e)}))}deletePostAsModerator(t){return $(this,void 0,void 0,(function*(){const e=yield this.getModeratorMint(),n=yield a.getAssociatedTokenAddress(e,this.dispatch.wallet.publicKey),r=yield this.dispatch.postboxProgram.methods.deletePostByModerator(t.postId).accounts({postbox:yield this.getAddress(),post:t.address,poster:t.poster,moderatorTokenAta:n}).transaction();return this.dispatch.sendTransaction(r)}))}vote(t,e){return $(this,void 0,void 0,(function*(){const n=(yield this.hasVoteTracker())?new i.Transaction:yield this.createVoteTrackerIx(),r=yield this._getPostRestrictionAccounts(t),o=yield this.dispatch.postboxProgram.methods.vote(t.postId,e,r.praIdxs?[r.praIdxs]:[]).accounts({postbox:yield this.getAddress(),post:t.address,treasury:this.dispatch.addresses.treasuryAddress}).remainingAccounts(r.pra).transaction();return n.add(o),this.dispatch.sendTransaction(n)}))}innerFetchPosts(t,e){return $(this,void 0,void 0,(function*(){if(0===e)return[];const n=yield this.getAddresses(e),r=yield this.dispatch.postboxProgram.account.post.fetchMultiple(n);return(yield Promise.all(r.map(((e,r)=>this.convertChainPost(e,n[r],t,r))))).filter((t=>null!==t))}))}fetchAllPosts(){return $(this,void 0,void 0,(function*(){const t=yield this.getChainPostboxInfo();return this.innerFetchPosts(this,t.maxChildId)}))}fetchPosts(){return $(this,void 0,void 0,(function*(){return(yield this.fetchAllPosts()).filter((t=>!t.replyTo))}))}fetchReplies(t){return $(this,void 0,void 0,(function*(){return(yield this.fetchAllPosts()).filter((e=>e.replyTo&&e.replyTo.equals(t.address)))}))}getVote(t){return $(this,void 0,void 0,(function*(){const e=yield this.getVoteTrackerAddress(),n=yield this.dispatch.postboxProgram.account.voteTracker.fetchNullable(e);if(null!==n)for(const r of n.votes)if(t.postId===r.postId)return r.upVote?K.up:K.down}))}getVotes(){return $(this,void 0,void 0,(function*(){const t=yield this.getVoteTrackerAddress(),e=yield this.dispatch.postboxProgram.account.voteTracker.fetchNullable(t);if(null!==e)return e.votes}))}createAddModeratorIx(t){var e;return $(this,void 0,void 0,(function*(){const n=yield this.getModeratorMint(),r=yield a.getAssociatedTokenAddress(n,t);return yield this.dispatch.postboxProgram.methods.designateModerator(null!==(e=this.target.str)&&void 0!==e?e:"").accounts({postbox:yield this.getAddress(),targetAccount:this.target.key,newModerator:t,moderatorAta:r}).transaction()}))}addModerator(t){return $(this,void 0,void 0,(function*(){const e=yield this.createAddModeratorIx(t);return this.dispatch.sendTransaction(e)}))}getOwners(){var t,e,n;return $(this,void 0,void 0,(function*(){return null!==(n=null===(e=null===(t=yield this.innerGetSetting(G.ownerInfo))||void 0===t?void 0:t.ownerInfo)||void 0===e?void 0:e.owners)&&void 0!==n?n:[]}))}setOwners(t){return $(this,void 0,void 0,(function*(){return this.innerSetSetting({ownerInfo:{owners:t}})}))}getDescription(){var t;return $(this,void 0,void 0,(function*(){return null===(t=yield this.innerGetSetting(G.de
1scription))||void 0===t?void 0:t.description}))}setDescription(t){return $(this,void 0,void 0,(function*(){return this.innerSetSetting({description:t})}))}getImages(){var t;return $(this,void 0,void 0,(function*(){const e=null===(t=yield this.innerGetSetting(G.images))||void 0===t?void 0:t.images;return e?JSON.parse(e.json):void 0}))}setImages(t){return $(this,void 0,void 0,(function*(){return this.innerSetSetting({images:{json:JSON.stringify(t)}})}))}getPostboxPostRestriction(){var t,e;return $(this,void 0,void 0,(function*(){const n=yield this.innerGetSetting(G.postRestrictions),r=null!==(e=null===(t=null==n?void 0:n.postRestriction)||void 0===t?void 0:t.postRestriction)&&void 0!==e?e:null;return(null==r?void 0:r.tokenOwnership)?{tokenOwnership:{mint:r.tokenOwnership.mint,amount:r.tokenOwnership.amount.toNumber()}}:r}))}setPostboxPostRestriction(t,e="processed"){return $(this,void 0,void 0,(function*(){return this.innerSetSetting(this._formatPostRestrictionSetting(t),e)}))}setPostboxPostRestrictionIx(t){return $(this,void 0,void 0,(function*(){return this.innerSetSettingIx(this._formatPostRestrictionSetting(t))}))}innerGetSetting(t){return $(this,void 0,void 0,(function*(){const e=yield this.getChainPostboxInfo();for(const n of e.settings)if(n[t])return n}))}innerSetSetting(t,e="processed"){return $(this,void 0,void 0,(function*(){const n=yield this.innerSetSettingIx(t);return this.dispatch.sendTransaction(n,e)}))}innerSetSettingIx(t){return $(this,void 0,void 0,(function*(){return yield this.dispatch.postboxProgram.methods.addOrUpdateSetting(t).accounts({postbox:yield this.getAddress()}).transaction()}))}isOwner(){return $(this,void 0,void 0,(function*(){return(yield this.getOwners()).some((t=>t.equals(this.dispatch.wallet.publicKey)))}))}isModerator(){return $(this,void 0,void 0,(function*(){const t=yield this.getModeratorMint(),e=yield a.getAssociatedTokenAddress(t,this.dispatch.wallet.publicKey);try{if((yield a.getAccount(this.dispatch.conn,e)).amount>0)return!0}catch(t){}return!1}))}canPost(t){var e,n;return $(this,void 0,void 0,(function*(){let r=null;for(const i of null!==(e=null==t?void 0:t.settings)&&void 0!==e?e:[])(null===(n=i.postRestriction)||void 0===n?void 0:n.postRestriction)&&(r=i.postRestriction.postRestriction);if(r||(r=yield this.getPostboxPostRestriction()),!r)return!0;if(r.null)return!0;if(r.tokenOwnership){const t=yield a.getAssociatedTokenAddress(r.tokenOwnership.mint,this.dispatch.wallet.publicKey),e=yield this.dispatch.conn.getAccountInfo(t);return((null==e?void 0:e.data)?a.AccountLayout.decode(null==e?void 0:e.data).amount:0)>=r.tokenOwnership.amount}if(r.nftOwnership){const t=r.nftOwnership.collectionId,e=(yield(0,R.getMetadataForOwner)(this.dispatch.conn,this.dispatch.wallet.publicKey)).filter((e=>{var n;return null===(n=e.collection)||void 0===n?void 0:n.key.equals(t)}));return e.length>0}if(r.nftListAnyOwnership){const t=r.nftListAnyOwnership.collectionIds,e=(yield(0,R.getMetadataForOwner)(this.dispatch.conn,this.dispatch.wallet.publicKey)).filter((e=>{var n;return(null===(n=e.collection)||void 0===n?void 0:n.key)&&t.some((t=>t.equals(e.collection.key)))}));return e.length>0}return!1}))}hasVoteTracker(){return $(this,void 0,void 0,(function*(){const t=yield this.getVoteTrackerAddress();return null!==(yield this.dispatch.postboxProgram.account.voteTracker.fetchNullable(t))}))}getAddress(){var t;return $(this,void 0,void 0,(function*(){if(!this._address){const[e]=yield i.PublicKey.findProgramAddress([y.protocolSeed,y.postboxSeed,this.target.key.toBuffer(),q.from(null!==(t=this.target.str)&&void 0!==t?t:"")],this.dispatch.postboxProgram.programId);this._address=e}return this._address}))}getVoteTrackerAddress(){return $(this,void 0,void 0,(function*(){if(!this._voteTrackerAddress){const t=yield this.getAddress(),[e]=yield i.PublicKey.findProgramAddress([y.protocolSeed,y.voteTrackerSeed,t.toBuffer(),this.dispatch.wallet.publicKey.toBuffer()],this.dispatch.postboxProgram.programId);this._voteTrackerAddress=e}return this._voteTrackerAddress}))}getPostAddress(t){return $(this,void 0,void 0,(function*(){const e=yield this.getAddress(),n=q.allocUnsafe(4);n.writeInt32LE(t);const[r]=yield i.PublicKey.findProgramAddress([y.protocolSeed,y.postSeed,e.toBuffer(),n],this.dispatch.postboxProgram.programId);return r}))}getAddresses(t,e){return $(this,void 0,void 0,(function*(){if((null!=e?e:0)>t)return[];const n=Array(1+t-(null!=e?e:0)).fill(0).map(((t,e)=>e));return yield Promise.all(n.map((t=>this.getPostAddress(t))))}))}getChainPostboxInfo(){return $(this,void 0,void 0,(function*(){const t=yield this.dispatch.postboxProgram.account.postbox.fetch(yield this.getAddress());return t.maxChildId=yield(0,k.getMaxChildId)(this.dispatch.cluster,this.target.key),t}))}getModeratorMint(){return $(this,void 0,void 0,(function*(){const t=yield this.getAddress(),[e]=yield r.web3.PublicKey.findProgramAddress([y.protocolSeed,y.moderatorSeed,t.toBuffer()],this.dispatch.postboxProgram.programId);return e}))}getModerators(){return $(this,void 0,void 0,(function*(){return(yield this.dispatch.conn.getProgramAccounts(a.TOKEN_PROGRAM_ID,{filters:[{dataSize:165},{memcmp:{offset:0,bytes:(yield this.getModeratorMint()).toBase58()}}]})).map((t=>a.AccountLayout.decode(t.account.data).owner))}))}convertChainPost(t,e,n,r){return $(this,void 0,void 0,(function*(){if(!t)return null;const i=yield this.bufferToPostData(t.data);return{parent:n,address:e,postId:r,poster:t.poster,data:i,upVotes:t.upVotes,downVotes:t.downVotes,replyTo:t.replyTo||void 0,settings:t.settings}}))}postDataToBuffer(t){return $(this,void 0,void 0,(function*(){const e={s:t.subj,b:t.body,m:t.meta,t:Math.floor((new Date).getTime()/1e3)},n=JSON.stringify(e);return q.from(n)}))}bufferToPostData(t){var e,n;return $(this,void 0,void 0,(function*(){const r=t.toString(),i=JSON.parse(r);return{subj:i.s,body:null!==(e=i.b)&&void 0!==e?e:"",ts:new Date(1e3*(null!==(n=i.t)&&void 0!==n?n:0)),meta:i.m}}))}}
1var Y=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};class X{constructor(t,e){this.dispatchConn=t,this.collectionId=e,this._postbox=new O.Postbox(t,{key:e,str:"Public"})}exists(){return Y(this,void 0,void 0,(function*(){return null!==(yield this._postbox.dispatch.conn.getAccountInfo(yield this._postbox.getAddress()))}))}createForum(t){return Y(this,void 0,void 0,(function*(){const e=yield this.createForumIx(t),n=yield this.dispatchConn.sendTransaction(e);return yield(0,k.createNewForum)(this.dispatchConn.cluster,t),yield this._postbox.dispatch.conn.confirmTransaction(n),[n]}))}createForumIx(t){return Y(this,void 0,void 0,(function*(){if(!this.collectionId.equals(t.collectionId))throw new Error("Collection ID must match");const e={title:t.title,desc:t.description},n=new i.Transaction;if(n.add(yield this._postbox.createInitializeIx(t.owners,e)),void 0!==t.postRestriction){const e=yield this._postbox.setPostboxPostRestrictionIx(t.postRestriction);n.add(e)}return yield Promise.all(t.moderators.map((t=>Y(this,void 0,void 0,(function*(){n.add(yield this.addModeratorIx(t))}))))),n}))}getTopicsForForum(){return Y(this,void 0,void 0,(function*(){return(yield this._postbox.fetchPosts()).filter((t=>{var e;return!0===(null===(e=t.data.meta)||void 0===e?void 0:e.topic)})).map(this.convertPostboxToForum).sort(((t,e)=>-(t.data.ts.getTime()-e.data.ts.getTime())))}))}getPostsForForum(){return Y(this,void 0,void 0,(function*(){return(yield this._postbox.fetchAllPosts()).map(this.convertPostboxToForum).sort(((t,e)=>-(t.data.ts.getTime()-e.data.ts.getTime())))}))}getTopicMessages(t){return Y(this,void 0,void 0,(function*(){return(yield this._postbox.fetchReplies(t)).map(this.convertPostboxToForum).sort(((t,e)=>t.data.ts.getTime()-e.data.ts.getTime()))}))}createTopic(t,e){return Y(this,void 0,void 0,(function*(){return t.meta||(t.meta={}),t.meta.topic=!0,this._postbox.createPost(t,void 0,e)}))}createForumPost(t,e){return Y(this,void 0,void 0,(function*(){if(!e.isTopic)throw new Error("`topic` must have isTopic true");return this._postbox.createPost(t,e)}))}editForumPost(t,e){return Y(this,void 0,void 0,(function*(){t.isTopic&&(e.meta||(e.meta={}),e.meta.topic=!0);const n=this.convertForumToInteractable(t);return this._postbox.editPost(n,e)}))}deleteForumPost(t,e){return Y(this,void 0,void 0,(function*(){const n=this.convertForumToInteractable(t);return e?this._postbox.deletePostAsModerator(n):this._postbox.deletePost(n)}))}replyToForumPost(t,e){return Y(this,void 0,void 0,(function*(){return this._postbox.replyToPost(e,t)}))}getReplies(t){return Y(this,void 0,void 0,(function*(){return(yield this._postbox.fetchReplies(t)).map(this.convertPostboxToForum).sort(((t,e)=>t.data.ts.getTime()-e.data.ts.getTime()))}))}voteUpForumPost(t){return Y(this,void 0,void 0,(function*(){return this._postbox.vote(t,!0)}))}voteDownForumPost(t){return Y(this,void 0,void 0,(function*(){return this._postbox.vote(t,!1)}))}getVote(t){return Y(this,void 0,void 0,(function*(){return this._postbox.getVote(t)}))}getVotes(){return Y(this,void 0,void 0,(function*(){return this._postbox.getVotes()}))}setOwners(t){return Y(this,void 0,void 0,(function*(){const e=t;return t.find((t=>t.equals(this.dispatchConn.wallet.publicKey)))||e.push(this.dispatchConn.wallet.publicKey),this._postbox.setOwners(e)}))}getOwners(){return Y(this,void 0,void 0,(function*(){return this._postbox.getOwners()}))}getDescription(){return Y(this,void 0,void 0,(function*(){return this._postbox.getDescription()}))}setDescription(t){return Y(this,void 0,void 0,(function*(){return this._postbox.setDescription(t)}))}getImageUrls(){return Y(this,void 0,void 0,(function*(){return this._postbox.getImages()}))}setImageUrls(t){return Y(this,void 0,void 0,(function*(){return this._postbox.setImages(t)}))}getForumPostRestriction(){return Y(this,void 0,void 0,(function*(){return this._postbox.getPostboxPostRestriction()}))}setForumPostRestriction(t,e="processed"){return Y(this,void 0,void 0,(function*(){return this._postbox.setPostboxPostRestriction(t,e)}))}setForumPostRestrictionIx(t){return Y(this,void 0,void 0,(function*(){return this._postbox.setPostboxPostRestrictionIx(t)}))}deleteForumPostRestriction(t="processed"){return Y(this,void 0,void 0,(function*(){return this._postbox.setPostboxPostRestriction({null:{}},t)}
1))}addModerator(t){return Y(this,void 0,void 0,(function*(){return this._postbox.addModerator(t)}))}addModeratorIx(t){return Y(this,void 0,void 0,(function*(){return this._postbox.createAddModeratorIx(t)}))}getModeratorMint(){return Y(this,void 0,void 0,(function*(){return this._postbox.getModeratorMint()}))}getModerators(){return Y(this,void 0,void 0,(function*(){return this._postbox.getModerators()}))}isOwner(){return Y(this,void 0,void 0,(function*(){return this._postbox.isOwner()}))}isModerator(){return Y(this,void 0,void 0,(function*(){return this._postbox.isModerator()}))}canCreateTopic(){return Y(this,void 0,void 0,(function*(){return this._postbox.canPost()}))}canPost(t){return Y(this,void 0,void 0,(function*(){return this._postbox.canPost(t)}))}canVote(t){return Y(this,void 0,void 0,(function*(){return this._postbox.canPost(t)}))}convertPostboxToForum(t){var e,n;return Object.assign(Object.assign({},t),{forum:this,isTopic:!0===(null!==(n=null===(e=t.data.meta)||void 0===e?void 0:e.topic)&&void 0!==n&&n)})}convertForumToInteractable(t){return{postId:t.postId,address:t.address,poster:t.poster,settings:t.settings}}}var J={};h(J,"Mailbox",(()=>et),(t=>et=t));var Q=o.Buffer,tt=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};class et extends m.DispatchConnection{constructor(t,e,n){var r,i;super(t,e,n),this.conn=t,this.wallet=e,this._obfuscationPrefix="__o__",this.mailboxOwner=null!==(r=null==n?void 0:n.mailboxOwner)&&void 0!==r?r:e.publicKey,this.payer=null==n?void 0:n.payer,this.obfuscate=null!==(i=null==n?void 0:n.sendObfuscated)&&void 0!==i&&i}send(t,e,n){return tt(this,void 0,void 0,(function*(){this.validateWallet();const r=yield this.makeSendTx(t,e,n);return this.sendTransaction(r)}))}sendMessage(t,e,n,r,i){return tt(this,void 0,void 0,(function*(){this.validateWallet();const o=yield this.makeSendTx(this.getMessageString(t,e,i),n,r);return this.sendTransaction(o)}))}pop(){return tt(this,void 0,void 0,(function*(){this.validateWallet();const t=yield this.makePopTx();return this.sendTransaction(t)}))}delete(t,e){return tt(this,void 0,void 0,(function*(){this.validateWallet();const n=yield this.makeDeleteTx(t,e);return this.sendTransaction(n)}))}deleteMessage(t){return tt(this,void 0,void 0,(function*(){this.validateWallet();const e=yield this.makeDeleteTx(t.messageId,t.receiver);return this.sendTransaction(e)}))}claimIncentive(t){return tt(this,void 0,void 0,(function*(){if(this.validateWallet(),!t.receiver.equals(this.mailboxOwner))throw new Error("Receiver does not match mailboxOwner");const e=yield this.makeClaimIncentiveTx(t.messageId);return this.sendTransaction(e)}))}fetch(){return tt(this,void 0,void 0,(function*(){const t=yield this.fetchMailbox();if(!t)return[];const e=t.messageCount-t.readMessageCount;if(0===e)return[];const n=Array(e).fill(0).map(((e,n)=>n+t.readMessageCount)),r=yield Promise.all(n.map((t=>this.getMessageAddress(t))));return(yield this.messagingProgram.account.message.fetchMultiple(r)).map(((e,n)=>this.normalizeMessageAccountDeprecated(e,n+t.readMessageCount))).filter((t=>null!==t))}))}fetchMessages(){return tt(this,void 0,void 0,(function*(){const t=yield this.fetchMailbox();if(!t)return[];const e=t.messageCount-t.readMessageCount;if(0===e)return[];const n=Array(e).fill(0).map(((e,n)=>n+t.readMessageCount)),r=yield Promise.all(n.map((t=>this.getMessageAddress(t))));return(yield this.messagingProgram.account.message.fetchMultiple(r)).map(((e,n)=>this.normalizeMessageAccount(e,n+t.readMessageCount))).filter((t=>null!==t))}))}fetchMessageById(t){return tt(this,void 0,void 0,(function*(){const e=yield this.getMessageAddress(t),n=yield this.messagingProgram.account.message.fetch(e);return this.normalizeMessageAccount(n,t)}))}fetchSentMessagesTo(t){return tt(this,void 0,void 0,(function*(){const e=new et(this.conn,this.wallet,{mailboxOwner:t});return(yield e.fetchMessages()).filter((t=>t.sender.equals(this.mailboxOwner)))}))}fetchIncentiveTokenAccount(t){return tt(this,void 0,void 0,(function*(){if(!t.incentiveMint)throw new Error("messageAccount does not have incentive attached");const e=yield this.getMessageAddress(t.messageId,t.receiver),n=yield a.getAssociatedTokenAddress(t.incentiveMint,e,!0);return yield a.getAccount(this.conn,n)}))}count(){return tt(this,void 0,void 0,(function*(){return(yield this.fetchMessages()).length}))}countEx(){return tt(this,void 0,void 0,(function*(){const t=yield this.fetchMailbox();return t?{messageCount:t.messageCount,readMessageCount:t.readMessageCount}:{messageCount:0,readMessageCount:0}}))}makeSendTx(t,e,n){var o;return tt(this,void 0,void 0,(function*(){const s=yield this.getMailboxAddress(e);let c=0;const u=yield this.fetchMailbox(s);u&&(c=u.messageCount);const l=yield this.getMessageAddress(c,e),h=this.obfuscate?this.obfuscateMessage(t,e):t,d={mailbox:s,receiver:e,message:l,payer:null!==(o=this.payer)&&void 0!==o?o:this.mailboxOwner,sender:this.mailboxOwner,feeReceiver:this.addresses.treasuryAddress,systemProgram:i.SystemProgram.programId};let f;if(null==n?void 0:n.incentive){const t=yield a.getAssociatedTokenAddress(n.incentive.mint,l,!0),e=Object.assign(Object.assign({},d),{incentiveMint:n.incentive.mint,payerTokenAccount:n.incentive.payerAccount,incentiveTokenAccount:t,tokenProgram:a.TOKEN_PROGRAM_ID,associatedTokenProgram:a.ASSOCIATED_TOKEN_PROGRAM_ID,rent:i.SYSVAR_RENT_PUBKEY});f=this.messagingProgram.transaction.sendMessageWithIncentive(h,new r.BN(n.incentive.amount),{accounts:e})}else f=this.messagingProgram.transaction.sendMessage(h,{accounts:d});return this.setTransactionPayer(f)}))}makePopTx(){return tt(this,void 0,void 0,(function*(){const t=yield this.getMailboxAddress(),e=yield this.fetchMailbox();if(!e)throw new Error(`Mailbox ${t.toBase58()} not found`);return this.makeDeleteTx(e.readMessageCount,this.mailboxOwner)}))}makeDeleteTx(t,e){return tt(this,void 0,void 0,(function*(){const n=yield this.getMessageAddress(t,null!=e?e:this.mailboxOwner),r=yield this.messagingProgram.account.message.fetch(n),i=yield this.messagingProgram.methods.deleteMessage(t).accounts({receiver:null!=e?e:this.mailboxOwner,authorizedDeleter:this.mailboxOwner,rentDestination:r.payer}).transaction();return this.setTransactionPayer(i)}))}makeClaimIncentiveTx(t,e){return tt(this,void 0,void 0,(function*(){const n=null!=e?e:this.mailboxOwner,r=yield this.getMessageAddress(t,n),i=yield this.messagingProgram.account.message.fetch(r),o=i.incentiveMint,s=yield a.getAssociatedTokenAddress(o,r,!0),c=yield a.getAssociatedTokenAddress(o,n,!0),u=yield this.messagingProgram.methods.claimIncentive(t).accounts({receiver:n,rentDestination:i.payer,incentiveMint:o,incentiveTokenAccount:s,receiverTokenAccount:c}).transaction();return this.setTransactionPayer(u)}))}addMessageListener(t){return this.messagingProgram.addEventListener("DispatchMessage",((e,n)=>{e.receiverPubkey.equals(this.mailboxOwner)&&t({sender:e.senderPubkey,receiver:e.receiverPubkey,data:this.unpackMessageData(e.message,e.senderPubkey,e.receiverPubkey),messageId:e.messageIndex})}))}addSentMessageListener(t){return this.messagingProgram.addEventListener("DispatchMessage",((e,n)=>{e.senderPubkey.equals(this.mailboxOwner)&&t({receiver:e.receiverPubkey,messageId:e.messageIndex})}))}removeMessageListener(t){this.messagingProgram.removeEventListener(t)}getMailboxAddress(t){return tt(this,void 0,void 0,(function*(){const e=null!=t?t:this.mailboxOwner,[n]=yield i.PublicKey.findProgramAddress([y.protocolSeed,y.mailboxSeed,e.toBuffer()],this.messagingProgram.programId);return n}))}getMessageAddress(t,e){return tt(this,void 0,void 0,(function*(){const n=null!=e?e:this.mailboxOwner,r=yield this.getMailboxAddress(n),o=Q.allocUnsafe(4);o.writeInt32LE(t);const[s]=yield i.PublicKey.findProgramAddress([y.protocolSeed,y.messageSeed,r.toBuffer(),o],this.messagingProgram.programId);return s}))}fetchMailbox(t){return tt(this,void 0,void 0,(function*(){const e=null!=t?t:yield this.getMailboxAddress();return yield this.messagingProgram.account.mailbox.fetchNullable(e)}))}validateWallet(){if(!this.wallet.publicKey.equals(this.mailboxOwner))throw new Error("`mailboxOwner` must equal `wallet.publicKey` to send transaction");if(this.payer&&!this.payer.equals(this.mailboxOwner))throw new Error("`mailboxOwner` must equal `payer` to send transaction")}setTransactionPayer(t){return this.payer&&(t.feePayer=this.wallet.publicKey),t}getMessageString(t,e,n){const r={subj:t,body:e,ts:(new Date).getTime()/1e3,meta:n};return JSON.stringify(r)}getObfuscationKey(t){return`PK_${t.toBase58()}`}obfuscateMessage(t,e){const n=this.getObfuscationKey(e),r=l.AES.encrypt
1(t,n).toString();return`${this._obfuscationPrefix}${r}`}unObfuscateMessage(t,e,n){var r,i;if(t.startsWith(this._obfuscationPrefix)&&((null===(r=this.wallet.publicKey)||void 0===r?void 0:r.equals(e))||(null===(i=this.wallet.publicKey)||void 0===i?void 0:i.equals(n)))){const e=t.substring(this._obfuscationPrefix.length),n=this.mailboxOwner,r=this.getObfuscationKey(n);return l.AES.decrypt(e,r).toString(l.enc.Utf8)}return t}unpackMessageData(t,e,n){var r;const i=this.unObfuscateMessage(t,e,n);try{if(i.startsWith("{")){const t=JSON.parse(i);return"solanart"===t.ns?(t=>{if("solanart"!==t.ns)throw new Error("Cannot parse message as a solanart native message if ns not solanart");const e=t;return{subj:e.message.subject,body:e.message.message,ts:new Date(1e3*+e.message.timestamp)}})(t):{subj:t.subj,body:null!==(r=t.body)&&void 0!==r?r:"",ts:t.ts?new Date(1e3*+t.ts):void 0,meta:t.meta}}}catch(t){}return{body:i}}normalizeMessageAccountDeprecated(t,e){return null===t?null:{sender:t.sender,receiver:this.mailboxOwner,payer:t.payer,data:this.unObfuscateMessage(t.data,t.sender,this.mailboxOwner),messageId:e}}normalizeMessageAccount(t,e){return null===t?null:{sender:t.sender,receiver:this.mailboxOwner,payer:t.payer,data:this.unpackMessageData(t.data,t.sender,this.mailboxOwner),messageId:e,incentiveMint:i.PublicKey.default.equals(t.incentiveMint)?void 0:t.incentiveMint}}}var nt={};h(nt,"KeyPairWallet",(()=>st),(t=>st=t));var rt,it,ot=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};class st{constructor(t){this.payer=t}signTransaction(t){return ot(this,void 0,void 0,(function*(){return t.partialSign(this.payer),t}))}signAllTransactions(t){return ot(this,void 0,void 0,(function*(){return t.map((t=>(t.partialSign(this.payer),t)))}))}get publicKey(){return this.payer.publicKey}}rt=t.exports,it=R,Object.keys(it).forEach((function(t){"default"===t||"__esModule"===t||rt.hasOwnProperty(t)||Object.defineProperty(rt,t,{enumerable:!0,get:function(){return it[t]}})}))},14437:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=t||"";e&&(o=r(t));n&&(o=i(o));return o};var n=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function r(t){return t.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(t,e,r){return e>0&&e+t.length!==r.length&&t.search(n)>-1&&":"!==r.charAt(e-2)&&("-"!==r.charAt(e+t.length)||"-"===r.charAt(e-1))&&r.charAt(e-1).search(/[^\s-]/)<0?t.toLowerCase():t.substr(1).search(/[A-Z]|\../)>-1?t:t.charAt(0).toUpperCase()+t.substr(1)}))}function i(t){return function(t){return"string"===typeof t&&-1!==t.indexOf("@")}(t)?(console.warn("This arg looks like an email address, redacting."),"REDACTED (Potential Email Address)"):t}},1661:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var r=u(n(22071)),i=u(n(14437)),o=["eventCategory","eventAction","eventLabel","eventValue","hitType"],s=["title","location"],a=["page","hitType"],c=["action","category","label","value","nonInteraction","transport"];function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function h(t){return h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function d(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||g(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
vendor: 9,243 bytes, line 1
1e%2?f(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);s=!0);}catch(c){a=!0,i=c}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(t,e)||g(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){if(t){if("string"===typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),v(this,"reset",(function(){e.isInitialized=!1,e._testMode=!1,e._currentMeasurementId,e._hasLoadedGA=!1,e._isQueuing=!1,e._queueGtag=[]})),v(this,"_gtag",(function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];e._testMode||e._isQueuing?e._queueGtag.push(n):r.default.apply(void 0,n)})),v(this,"_loadGA",(function(t,n){if("undefined"!==typeof window&&"undefined"!==typeof document&&!e._hasLoadedGA){var r=document.createElement("script");r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(t),n&&r.setAttribute("nonce",n),document.body.appendChild(r),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},e._hasLoadedGA=!0}})),v(this,"_toGtagOptions",(function(t){if(t){var e={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"};return Object.entries(t).reduce((function(t,n){var r=m(n,2),i=r[0],o=r[1];return e[i]?t[e[i]]=o:t[i]=o,t}),{})}})),v(this,"initialize",(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw new Error("Require GA_MEASUREMENT_ID");var r="string"===typeof t?[{trackingId:t}]:t;e._currentMeasurementId=r[0].trackingId;var i=n.gaOptions,o=n.gtagOptions,s=n.legacyDimensionMetric,a=void 0===s||s,c=n.nonce,u=n.testMode,l=void 0!==u&&u;if(e._testMode=l,l||e._loadGA(e._currentMeasurementId,c),e.isInitialized||(e._gtag("js",new Date),r.forEach((function(t){var n=e._appendCustomMap(p(p(p({send_page_view:!1},e._toGtagOptions(p(p({},i),t.gaOptions))),o),t.gtagOptions),a);e._gtag("config",t.trackingId,n)}))),e.isInitialized=!0,!l){var h=d(e._queueGtag);for(e._queueGtag=[],e._isQueuing=!1;h.length;){var f=h.shift();e._gtag.apply(e,d(f)),"get"===f[0]&&(e._isQueuing=!0)}}})),v(this,"set",(function(t){t?"object"===h(t)?(0===Object.keys(t).length&&console.warn("empty `fieldsObject` given to .set()"),e._gaCommand("set",t)):console.warn("Expected `fieldsObject` arg to be an Object"):console.warn("`fieldsObject` is required in .set()")})),v(this,"_gaCommandSendEvent",(function(t,n,r,i,o){e._gtag("event",n,p(p({event_category:t,event_label:r,value:i},o&&{non_interaction:o.nonInteraction}),e._toGtagOptions(o)))})),v(this,"_gaCommandSendEventParameters",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if("string"===typeof n[0])e._gaCommandSendEvent.apply(e,d(n.slice(1)));else{var i=n[0],s=i.eventCategory,a=i.eventAction,c=i.eventLabel,u=i.eventValue,h=(i.hitType,l(i,o));e._gaCommandSendEvent(s,a,c,u,h)}})),v(this,"_gaCommandSendTiming",(function(t,n,r,i){e._gtag("event","timing_complete",{name:n,value:r,event_category:t,event_label:i})})),v(this,"_gaCommandSendPageview",(function(t,n){if(n&&Object.keys(n).length){var r=e._toGtagOptions(n),i=r.title,o=r.location,a=l(r,s);e._gtag("event","page_view",p(p(p(p({},t&&{page_path:t}),i&&{page_title:i}),o&&{page_location:o}),a))}else t?e._gtag("event","page_view",{page_path:t}):e._gtag("event","page_view")})),v(this,"_gaCommandSendPageviewParameters",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if("string"===typeof n[0])e._gaCommandSendPageview.apply(e,d(n.slice(1)));else{var i=n[0],o=i.page,s=(i.hitType,l(i,a));e._gaCommandSendPageview(o,s)}})),v(this,"_gaCommandSend",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i="string"===typeof n[0]?n[0]:n[0].hitType;switch(i){case"event":e._gaCommandSendEventParameters.apply(e,n);break;case"pageview":e._gaCommandSendPageviewParameters.apply(e,n);break;case"timing":e._gaCommandSendTiming.apply(e,d(n.slice(1)));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(i));break;default:console.warn("Send command doesn't exist: ".concat(i))}})),v(this,"_gaCommandSet",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"===typeof n[0]&&(n[0]=v({},n[0],n[1])),e._gtag("set",e._toGtagOptions(n[0]))})),v(this,"_gaCommand",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];switch(t){case"send":e._gaCommandSend.apply(e,r);break;case"set":e._gaCommandSet.apply(e,r);break;default:console.warn("Command doesn't exist: ".concat(t))}})),v(this,"ga",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if("string"===typeof n[0])e._gaCommand.apply(e,n);else{var i=n[0];e._gtag("get",e._currentMeasurementId,"client_id",(function(t){e._isQueuing=!1;var n=e._queueGtag;for(i({get:function(n){return"clientId"===n?t:"trackingId"===n?e._currentMeasurementId:"apiVersion"===n?"1":void 0}});n.length;){var r=n.shift();e._gtag.apply(e,d(r))}})),e._isQueuing=!0}return e.ga})),v(this,"event",(function(t,n){if("string"===typeof t)e._gtag("event",t,e._toGtagOptions(n));else{var r=t.action,o=t.category,s=t.label,a=t.value,u=t.nonInteraction,h=t.transport,d=l(t,c);if(!o||!r)return void console.warn("args.category AND args.action are required in event()");var f={hitType:"event",eventCategory:(0,i.default)(o),eventAction:(0,i.default)(r)};s&&(f.eventLabel=(0,i.default)(s)),"undefined"!==typeof a&&("number"!==typeof a?console.warn("Expected `args.value` arg to be a Number."):f.eventValue=a),"undefined"!==typeof u&&("boolean"!==typeof u?console.warn("`args.nonInteraction` must be a boolean."):f.nonInteraction=u),"undefined"!==typeof h&&("string"!==typeof h?console.warn("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(h)&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),f.transport=h)),Object.keys(d).filter((function(t){return"dimension"===t.substr(0,"dimension".length)})).forEach((function(t){f[t]=d[t]})),Object.keys(d).filter((function(t){return"metric"===t.substr(0,"metric".length)})).forEach((function(t){f[t]=d[t]})),e._gaCommand("send",f)}})),v(this,"send",(function(t){e._gaCommand("send",t)})),v(this,"pageview",(function(t,n,r){var i=null===t||void 0===t?void 0:t.trim();""!==i?e._gaCommand("send","pageview",i,{title:r}):console.warn("path cannot be an empty string in .pageview()")})),this.reset()}var e,n,u;return e=t,n=[{key:"gtag",value:function(){this._gtag.apply(this,arguments)}},{key:"_appendCustomMap",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!e)return t;t.custom_map||(t.custom_map={});for(var n=1;n<=200;n++)t.custom_map["dimension".concat(n)]||(t.custom_map["dimension".concat(n)]="dimension".concat(n)),t.custom_map["metric".concat(n)]||(t.custom_map["metric".concat(n)]="metric".concat(n));return t}},{key:"outboundLink",value:function(t,e){var n=t.label;if("function"===typeof e)if(n){var r={hitType:"event",eventCategory:"Outbound",eventAction:"Click",eventLabel:(0,i.default)(n)},o=!1,s=setTimeout((function(){o=!0,e()}),250);r.hitCallback=function(){clearTimeout(s),o||e()},this._gaCommand("send",r)}else console.warn("args.label is required in outboundLink()");else console.warn("hitCallback function is required")}}],n&&b(e.prototype,n),u&&b(e,u),t}();e.GA4=w;var _=new w;e.default=_},22071:function(t,e){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r;"undefined"!==typeof window&&("undefined"===typeof window.gtag&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(r=window).gtag.apply(r,e))};e.default=n},34988:function(t,e,n){"use strict";function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ReactGAImplementation=void 0;var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var n=o(e);if(n&&n.has(t))return n.get(t);var i={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var c=s?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(i,a,c):i[a]=t[a]}i.default=t,n&&n.set(t,i);return i}(n(1661));function o(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}var s=i.GA4;e.ReactGAImplementation=s;var a=i.default;e.default=a},48811:function(t){"use strict";var e={white:37,black:30,blue:34,cyan:36,green:32,magenta:35,red:31,yellow:33,brightBlack:90,brightRed:91,brightGreen:92,brightYellow:93,brightBlue:94,brightMagenta:95,brightCyan:96,brightWhite:97},n={bgBlack:40,bgRed:41,bgGreen:42,bgYellow:43,bgBlue:44,bgMagenta:45,bgCyan:46,bgWhite:47,bgBrightBlack:100,bgBrightRed:101,bgBrightGreen:102,bgBrightYellow:103,bgBrightBlue:104,bgBrightMagenta:105,bgBrightCyan:106,bgBrightWhite:107},r={},i={},o={};Object.keys(e).forEach((function(t){var n=r[t]="\x1b["+e[t]+"m",s=i[t]="\x1b[39m";o[t]=function(t){return n+t+s}})),Object.keys(n).forEach((function(t){var e=r[t]="\x1b["+n[t]+"m",s=i[t]="\x1b[49m";o[t]=function(t){return e+t+s}})),t.exports=o,o.open=r,o.close=i},69282:function(t,e,n){"use strict";var r=n(34155);function i(t){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var o,s,a=n(62136).codes,c=a.ERR_AMBIGUOUS_ARGUMENT,u=a.ERR_INVALID_ARG_TYPE,l=a.ERR_INVALID_ARG_VALUE,h=a.ERR_INVALID_RETURN_VALUE,d=a.ERR_MISSING_ARGS,f=n(25961),p=n(89539).inspect,m=n(89539).types,g=m.isPromise,y=m.isRegExp,b=Object.assign?Object.assign:n(8091).assign,v=Object.is?Object.is:n(20609);new Map;function w(){var t=n(19158);o=t.isDeepEqual,s=t.isDeepStrictEqual}var _=!1,k=t.exports=A,S={};function x(t){if(t.message instanceof Error)throw t.message;throw new f(t)}function I(t,e,n,r){if(!n){var i=!1;if(0===e)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var o=new f({actual:n,expected:!0,message:r,operator:"==",stackStartFn:t});throw o.generatedMessage=i,o}}function A(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];I.apply(void 0,[A,e.length].concat(e))}k.fail=function t(e,n,i,o,s){var a,c=arguments.length;if(0===c)a="Failed";else if(1===c)i=e,e=void 0;else{if(!1===_){_=!0;var u=r.emitWarning?r.emitWarning:console.warn.bind(console);u("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===c&&(o="!=")}if(i instanceof Error)throw i;var l={actual:e,expected:n,operator:void 0===o?"fail":o,stackStartFn:s||t};void 0!==i&&(l.message=i);var h=new f(l);throw a&&(h.message=a,h.generatedMessage=!0),h},k.AssertionError=f,k.ok=A,k.equal=function t(e,n,r){if(arguments.length<2)throw new d("actual","expected");e!=n&&x({actual:e,expected:n,message:r,operator:"==",stackStartFn:t})},k.notEqual=function t(e,n,r){if(arguments.length<2)throw new d("actual","expected");e==n&&x({actual:e,expected:n,message:r,operator:"!=",stackStartFn:t})},k.deepEqual=function t(e,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===o&&w(),o(e,n)||x({actual:e,expected:n,message:r,operator:"deepEqual",stackStartFn:t})},k.notDeepEqual=function t(e,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===o&&w(),o(e,n)&&x({actual:e,expected:n,message:r,operator:"notDeepEqual",stackStartFn:t})},k.deepStrictEqual=function t(e,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===o&&w(),s(e,n)||x({actual:e,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:t})},k.notDeepStrictEqual=function t(e,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===o&&w();s(e,n)&&x({actual:e,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:t})}
vendor: 4,549 bytes, line 1
1,k.strictEqual=function t(e,n,r){if(arguments.length<2)throw new d("actual","expected");v(e,n)||x({actual:e,expected:n,message:r,operator:"strictEqual",stackStartFn:t})},k.notStrictEqual=function t(e,n,r){if(arguments.length<2)throw new d("actual","expected");v(e,n)&&x({actual:e,expected:n,message:r,operator:"notStrictEqual",stackStartFn:t})};var E=function t(e,n,r){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n.forEach((function(t){t in e&&(void 0!==r&&"string"===typeof r[t]&&y(e[t])&&e[t].test(r[t])?i[t]=r[t]:i[t]=e[t])}))};function T(t,e,n,r,i,o){if(!(n in t)||!s(t[n],e[n])){if(!r){var a=new E(t,i),c=new E(e,i,t),u=new f({actual:a,expected:c,operator:"deepStrictEqual",stackStartFn:o});throw u.actual=t,u.expected=e,u.operator=o.name,u}x({actual:t,expected:e,message:r,operator:o.name,stackStartFn:o})}}function P(t,e,n,r){if("function"!==typeof e){if(y(e))return e.test(t);if(2===arguments.length)throw new u("expected",["Function","RegExp"],e);if("object"!==i(t)||null===t){var s=new f({actual:t,expected:e,message:n,operator:"deepStrictEqual",stackStartFn:r});throw s.operator=r.name,s}var a=Object.keys(e);if(e instanceof Error)a.push("name","message");else if(0===a.length)throw new l("error",e,"may not be an empty object");return void 0===o&&w(),a.forEach((function(i){"string"===typeof t[i]&&y(e[i])&&e[i].test(t[i])||T(t,e,i,n,a,r)})),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function C(t){if("function"!==typeof t)throw new u("fn","Function",t);try{t()}catch(e){return e}return S}function M(t){return g(t)||null!==t&&"object"===i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function O(t){return Promise.resolve().then((function(){var e;if("function"===typeof t){if(!M(e=t()))throw new h("instance of Promise","promiseFn",e)}else{if(!M(t))throw new u("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then((function(){return e})).then((function(){return S})).catch((function(t){return t}))}))}function R(t,e,n,r){if("string"===typeof n){if(4===arguments.length)throw new u("error",["Object","Error","Function","RegExp"],n);if("object"===i(e)&&null!==e){if(e.message===n)throw new c("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===n)throw new c("error/message",'The error "'.concat(e,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==i(n)&&"function"!==typeof n)throw new u("error",["Object","Error","Function","RegExp"],n);if(e===S){var o="";n&&n.name&&(o+=" (".concat(n.name,")")),o+=r?": ".concat(r):".";var s="rejects"===t.name?"rejection":"exception";x({actual:void 0,expected:n,operator:t.name,message:"Missing expected ".concat(s).concat(o),stackStartFn:t})}if(n&&!P(e,n,r,t))throw e}function B(t,e,n,r){if(e!==S){if("string"===typeof n&&(r=n,n=void 0),!n||P(e,n)){var i=r?": ".concat(r):".",o="doesNotReject"===t.name?"rejection":"exception";x({actual:e,expected:n,operator:t.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function j(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];I.apply(void 0,[j,e.length].concat(e))}k.throws=function t(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];R.apply(void 0,[t,C(e)].concat(r))},k.rejects=function t(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return O(e).then((function(e){return R.apply(void 0,[t,e].concat(r))}))},k.doesNotThrow=function t(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];B.apply(void 0,[t,C(e)].concat(r))},k.doesNotReject=function t(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return O(e).then((function(e){return B.apply(void 0,[t,e].concat(r))}))},k.ifError=function t(e){if(null!==e&&void 0!==e){var n="ifError got unwanted exception: ";"object"===i(e)&&"string"===typeof e.message?0===e.message.length&&e.constructor?n+=e.constructor.name:n+=e.message:n+=p(e);var r=new f({actual:e,expected:null,operator:"ifError",message:n,stackStartFn:t}),o=e.stack;if("string"===typeof o){var s=o.split("\n");s.shift();for(var a=r.stack.split("\n"),c=0;c<s.length;c++){var u=a.indexOf(s[c]);if(-1!==u){a=a.slice(0,u);break}}r.stack="".concat(a.join("\n"),"\n").concat(s.join("\n"))}throw r}},k.strict=b(j,k,{equal:k.strictEqual,deepEqual:k.deepStrictEqual,notEqual:k.notStr
1ictEqual,notDeepEqual:k.notDeepStrictEqual}),k.strict.strict=k.strict},25961:function(t,e,n){"use strict";var r=n(34155);function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return!e||"object"!==f(e)&&"function"!==typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){var e="function"===typeof Map?new Map:void 0;return c=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return l(t,arguments,d(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,t)},c(t)}function u(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function l(t,e,n){return l=u()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&h(i,n.prototype),i},l.apply(null,arguments)}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function f(t){return f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}var p=n(89539).inspect,m=n(62136).codes.ERR_INVALID_ARG_TYPE;function g(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}var y="",b="",v="",w="",_={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function k(t){var e=Object.keys(t),n=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){n[e]=t[e]})),Object.defineProperty(n,"message",{value:t.message}),n}function S(t){return p(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function x(t,e,n){var i="",o="",s=0,a="",c=!1,u=S(t),l=u.split("\n"),h=S(e).split("\n"),d=0,p="";if("strictEqual"===n&&"object"===f(t)&&"object"===f(e)&&null!==t&&null!==e&&(n="strictEqualObject"),1===l.length&&1===h.length&&l[0]!==h[0]){var m=l[0].length+h[0].length;if(m<=10){if(("object"!==f(t)||null===t)&&("object"!==f(e)||null===e)&&(0!==t||0!==e))return"".concat(_[n],"\n\n")+"".concat(l[0]," !== ").concat(h[0],"\n")}else if("strictEqualObject"!==n){if(m<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;l[0][d]===h[0][d];)d++;d>2&&(p="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var n=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,n-t.length)}(" ",d),"^"),d=0)}}}for(var k=l[l.length-1],x=h[h.length-1];k===x&&(d++<2?a="\n ".concat(k).concat(a):i=k,l.pop(),h.pop(),0!==l.length&&0!==h.length);)k=l[l.length-1],x=h[h.length-1];var I=Math.max(l.length,h.length);if(0===I){var A=u.split("\n");if(A.length>30)for(A[26]="".concat(y,"...").concat(w);A.length>27;)A.pop();return"".concat(_.notIdentical,"\n\n").concat(A.join("\n"),"\n")}d>
vendor: 1,135 bytes, line 1
13&&(a="\n".concat(y,"...").concat(w).concat(a),c=!0),""!==i&&(a="\n ".concat(i).concat(a),i="");var E=0,T=_[n]+"\n".concat(b,"+ actual").concat(w," ").concat(v,"- expected").concat(w),P=" ".concat(y,"...").concat(w," Lines skipped");for(d=0;d<I;d++){var C=d-s;if(l.length<d+1)C>1&&d>2&&(C>4?(o+="\n".concat(y,"...").concat(w),c=!0):C>3&&(o+="\n ".concat(h[d-2]),E++),o+="\n ".concat(h[d-1]),E++),s=d,i+="\n".concat(v,"-").concat(w," ").concat(h[d]),E++;else if(h.length<d+1)C>1&&d>2&&(C>4?(o+="\n".concat(y,"...").concat(w),c=!0):C>3&&(o+="\n ".concat(l[d-2]),E++),o+="\n ".concat(l[d-1]),E++),s=d,o+="\n".concat(b,"+").concat(w," ").concat(l[d]),E++;else{var M=h[d],O=l[d],R=O!==M&&(!g(O,",")||O.slice(0,-1)!==M);R&&g(M,",")&&M.slice(0,-1)===O&&(R=!1,O+=","),R?(C>1&&d>2&&(C>4?(o+="\n".concat(y,"...").concat(w),c=!0):C>3&&(o+="\n ".concat(l[d-2]),E++),o+="\n ".concat(l[d-1]),E++),s=d,o+="\n".concat(b,"+").concat(w," ").concat(O),i+="\n".concat(v,"-").concat(w," ").concat(M),E+=2):(o+=i,i="",1!==C&&0!==d||(o+="\n ".concat(O),E++))}if(E>20&&d<I-2)return"".concat(T).concat(P,"\n").concat(o,"\n").concat(y,"...").concat(w).c
1oncat(i,"\n")+"".concat(y,"...").concat(w)}return"".concat(T).concat(c?P:"","\n").concat(o).concat(i).concat(a).concat(p)}var I=function(t){function e(t){var n;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),"object"!==f(t)||null===t)throw new m("options","Object",t);var i=t.message,o=t.operator,c=t.stackStartFn,u=t.actual,l=t.expected,h=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)n=s(this,d(e).call(this,String(i)));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(y="\x1b[34m",b="\x1b[32m",w="\x1b[39m",v="\x1b[31m"):(y="",b="",w="",v="")),"object"===f(u)&&null!==u&&"object"===f(l)&&null!==l&&"stack"in u&&u instanceof Error&&"stack"in l&&l instanceof Error&&(u=k(u),l=k(l)),"deepStrictEqual"===o||"strictEqual"===o)n=s(this,d(e).call(this,x(u,l,o)));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var p=_[o],g=S(u).split("\n");if("notStrictEqual"===o&&"object"===f(u)&&null!==u&&(p=_.notStrictEqualObject),g.length>30)for(g[26]="".concat(y,"...").concat(w);g.length>27;)g.pop();n=1===g.length?s(this,d(e).call(this,"".concat(p," ").concat(g[0]))):s(this,d(e).call(this,"".concat(p,"\n\n").concat(g.join("\n"),"\n")))}else{var I=S(u),A="",E=_[o];"notDeepEqual"===o||"notEqual"===o?(I="".concat(_[o],"\n\n").concat(I)).length>1024&&(I="".concat(I.slice(0,1021),"...")):(A="".concat(S(l)),I.length>512&&(I="".concat(I.slice(0,509),"...")),A.length>512&&(A="".concat(A.slice(0,509),"...")),"deepEqual"===o||"equal"===o?I="".concat(E,"\n\n").concat(I,"\n\nshould equal\n\n"):A=" ".concat(o," ").concat(A)),n=s(this,d(e).call(this,"".concat(I).concat(A)))}return Error.stackTraceLimit=h,n.generatedMessage=!i,Object.defineProperty(a(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=u,n.expected=l,n.operator=o,Error.captureStackTrace&&Error.captureStackTrace(a(n),c),n.stack,n.name="AssertionError",s(n)}var n,c,u;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(e,t),n=e,c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:p.custom,value:function(t,e){return p(this,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}({},e,{customInspect:!1,depth:0}))}}],c&&o(n.prototype,c),u&&o(n,u),e}(c(Error));t.exports=I},62136:function(t,e,n){"use strict";function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}
1function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}var a,c,u={};function l(t,e,n){n||(n=Error);var r=function(n){function r(n,s,a){var c;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),c=i(this,o(r).call(this,function(t,n,r){return"string"===typeof e?e:e(t,n,r)}(n,s,a))),c.code=t,c}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(r,n),r}(n);u[t]=r}function h(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",(function(t,e,i){var o,s,c,u;if(void 0===a&&(a=n(69282)),a("string"===typeof t,"'name' must be a string"),"string"===typeof e&&(s="not ",e.substr(!c||c<0?0:+c,s.length)===s)?(o="must not be",e=e.replace(/^not /,"")):o="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))u="The ".concat(t," ").concat(o," ").concat(h(e,"type"));else{var l=function(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}(t,".")?"property":"argument";u='The "'.concat(t,'" ').concat(l," ").concat(o," ").concat(h(e,"type"))}return u+=". Received type ".concat(r(i))}),TypeError),l("ERR_INVALID_ARG_VALUE",(function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===c&&(c=n(89539));var i=c.inspect(e);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),l("ERR_INVALID_RETURN_VALUE",(function(t,e,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")}),TypeError),l("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];void 0===a&&(a=n(69282)),a(e.length>0,"At least one arg needs to be specified");var i="The ",o=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),o){case 1:i+="".concat(e[0]," argument");break;case 2:i+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:i+=e.slice(0,o-1).join(", "),i+=", and ".concat(e[o-1]," arguments")}return"".concat(i," must be specified")}
vendor: 4,213 bytes, line 1
1),TypeError),t.exports.codes=u},19158:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(c){i=!0,o=c}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(t){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var o=void 0!==/a/g.flags,s=function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e},a=function(t){var e=[];return t.forEach((function(t,n){return e.push([n,t])})),e},c=Object.is?Object.is:n(20609),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:n(20360);function h(t){return t.call.bind(t)}var d=h(Object.prototype.hasOwnProperty),f=h(Object.prototype.propertyIsEnumerable),p=h(Object.prototype.toString),m=n(89539).types,g=m.isAnyArrayBuffer,y=m.isArrayBufferView,b=m.isDate,v=m.isMap,w=m.isRegExp,_=m.isSet,k=m.isNativeError,S=m.isBoxedPrimitive,x=m.isNumberObject,I=m.isStringObject,A=m.isBooleanObject,E=m.isBigIntObject,T=m.isSymbolObject,P=m.isFloat32Array,C=m.isFloat64Array;function M(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var n=t.charCodeAt(e);if(n<48||n>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function O(t){return Object.keys(t).filter(M).concat(u(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function R(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0}function B(t,e,n,r){if(t===e)return 0!==t||(!n||c(t,e));if(n){if("object"!==i(t))return"number"===typeof t&&l(t)&&l(e);if("object"!==i(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==i(t))return(null===e||"object"!==i(e))&&t==e;if(null===e||"object"!==i(e))return!1}var s,a,u=p(t);if(u!==p(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var h=O(t),d=O(e);return h.length===d.length&&N(t,e,n,r,1,h)}if("[object Object]"===u&&(!v(t)&&v(e)||!_(t)&&_(e)))return!1;if(b(t)){if(!b(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(w(t)){if(!w(e)||!function(t,e){return o?t.source===e.source&&t.flags===e.flags:RegExp.prototype.toString.call(t)===RegExp.prototype.toString.call(e)}(t,e))return!1}else if(k(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(y(t)){if(n||!P(t)&&!C(t)){if(!function(t,e){return t.byteLength===e.byteLength&&0===R(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}(t,e))return!1}else if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var n=0;n<t.byteLength;n++)if(t[n]!==e[n])return!1;return!0}(t,e))return!1;var f=O(t),m=O(e);return f.length===m.length&&N(t,e,n,r,0,f)}if(_(t))return!(!_(e)||t.size!==e.size)&&N(t,e,n,r,2);if(v(t))return!(!v(e)||t.size!==e.size)&&N(t,e,n,r,3);if(g(t)){if(a=e,(s=t).byteLength!==a.byteLength||0!==R(new Uint8Array(s),new Uint8Array(a)))return!1}else if(S(t)&&!function(t,e){return x(t)?x(e)&&c(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):I(t)?I(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):A(t)?A(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):E(t)?E(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):T(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return N(t,e,n,r,0)}function j(t,e){return e.filter((function(e){return f(t,e)}))}function N(t,e,n,r,i,o){if(5===arguments.length){o=Object.keys(t);var s=Object.keys(e);if(o.length!==s.length)return!1}for(var a=0;a<o.length;a++)if(!d(e,o[a]))return!1;if(n&&5===arguments.length){var c=u(t);if(0!==c.length){var l=0;for(a=0;a<c.length;a++){var h=c[a];
1if(f(t,h)){if(!f(e,h))return!1;o.push(h),l++}else if(f(e,h))return!1}var p=u(e);if(c.length!==p.length&&j(e,p).length!==l)return!1}else{var m=u(e);if(0!==m.length&&0!==j(e,m).length)return!1}}if(0===o.length&&(0===i||1===i&&0===t.length||0===t.size))return!0;if(void 0===r)r={val1:new Map,val2:new Map,position:0};else{var g=r.val1.get(t);if(void 0!==g){var y=r.val2.get(e);if(void 0!==y)return g===y}r.position++}r.val1.set(t,r.position),r.val2.set(e,r.position);var b=W(t,e,n,o,r,i);return r.val1.delete(t),r.val2.delete(e),b}function L(t,e,n,r){for(var i=s(t),o=0;o<i.length;o++){var a=i[o];if(B(e,a,n,r))return t.delete(a),!0}return!1}function D(t){switch(i(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(l(t))return!1}return!0}function z(t,e,n){var r=D(n);return null!=r?r:e.has(r)&&!t.has(r)}function F(t,e,n,r,i){var o=D(n);if(null!=o)return o;var s=e.get(o);return!(void 0===s&&!e.has(o)||!B(r,s,!1,i))&&(!t.has(o)&&B(r,s,!1,i))}function U(t,e,n,r,i,o){for(var a=s(t),c=0;c<a.length;c++){var u=a[c];if(B(n,u,i,o)&&B(r,e.get(u),i,o))return t.delete(u),!0}return!1}function W(t,e,n,o,c,u){var l=0;if(2===u){if(!function(t,e,n,r){for(var o=null,a=s(t),c=0;c<a.length;c++){var u=a[c];if("object"===i(u)&&null!==u)null===o&&(o=new Set),o.add(u);else if(!e.has(u)){if(n)return!1;if(!z(t,e,u))return!1;null===o&&(o=new Set),o.add(u)}}if(null!==o){for(var l=s(e),h=0;h<l.length;h++){var d=l[h];if("object"===i(d)&&null!==d){if(!L(o,d,n,r))return!1}else if(!n&&!t.has(d)&&!L(o,d,n,r))return!1}return 0===o.size}return!0}(t,e,n,c))return!1}else if(3===u){if(!function(t,e,n,o){for(var s=null,c=a(t),u=0;u<c.length;u++){var l=r(c[u],2),h=l[0],d=l[1];if("object"===i(h)&&null!==h)null===s&&(s=new Set),s.add(h);else{var f=e.get(h);if(void 0===f&&!e.has(h)||!B(d,f,n,o)){if(n)return!1;if(!F(t,e,h,d,o))return!1;null===s&&(s=new Set),s.add(h)}}}if(null!==s){for(var p=a(e),m=0;m<p.length;m++){var g=r(p[m],2),y=(h=g[0],g[1]);if("object"===i(h)&&null!==h){if(!U(s,t,h,y,n,o))return!1}else if(!n&&(!t.has(h)||!B(t.get(h),y,!1,o))&&!U(s,t,h,y,!1,o))return!1}return 0===s.size}return!0}(t,e,n,c))return!1}else if(1===u)for(;l<t.length;l++){if(!d(t,l)){if(d(e,l))return!1;for(var h=Object.keys(t);l<h.length;l++){var f=h[l];if(!d(e,f)||!B(t[f],e[f],n,c))return!1}return h.length===Object.keys(e).length}if(!d(e,l)||!B(t[l],e[l],n,c))return!1}for(l=0;l<o.length;l++){var p=o[l];if(!B(t[p],e[p],n,c))return!1}return!0}t.exports={isDeepEqual:function(t,e){return B(t,e,false)},isDeepStrictEqual:function(t,e){return B(t,e,true)}}},9669:function(t,e,n){t.exports=n(51609)},55448:function(t,e,n){"use strict";var r=n(64867),i=n(36026),o=n(4372),s=n(15327),a=n(94097),c=n(84109),u=n(67985),l=n(77874),h=n(82648),d=n(60644),f=n(90205);t.exports=function(t){return new Promise((function(e,n){var p,m=t.data,g=t.headers,y=t.responseType;function b(){t.cancelToken&&t.cancelToken.unsubscribe(p),t.signal&&t.signal.removeEventListener("abort",p)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete g["Content-Type"];var v=new XMLHttpRequest;if(t.auth){var w=t.auth.username||"",_=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";g.Authorization="Basic "+btoa(w+":"+_)}var k=a(t.baseURL,t.url);function S(){if(v){var r="getAllResponseHeaders"in v?c(v.getAllResponseHeaders()):null,o={data:y&&"text"!==y&&"json"!==y?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:t,request:v};i((function(t){e(t),b()}),(function(t){n(t),b()}),o),v=null}}if(v.open(t.method.toUpperCase(),s(k,t.params,t.paramsSerializer),!0),v.timeout=t.timeout,"onloadend"in v?v.onloadend=S:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(S)},v.onabort=function(){v&&(n(new h("Request aborted",h.ECONNABORTED,t,v)),v=null)},v.onerror=function(){n(new h("Network Error",h.ERR_NETWORK,t,v,v)),v=null},v.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||l;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new h(e,r.clarifyTimeoutError?h.ETIMEDOUT:h.ECONNABORTED,t,v)),v=null},r.isStandardBrowserEnv()){var x=(t.withCredentials||u(k))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;x&&(g[t.xsrfHeaderName]=x)}"setRequestHeader"in v&&r.forEach(g,(function(t,e){"undefined"===typeof m&&"content-type"===e.toLowerCase()?delete g[e]:v.setRequestHeader(e,t)}
vendor: 7,330 bytes, line 1
1)),r.isUndefined(t.withCredentials)||(v.withCredentials=!!t.withCredentials),y&&"json"!==y&&(v.responseType=t.responseType),"function"===typeof t.onDownloadProgress&&v.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(p=function(t){v&&(n(!t||t&&t.type?new d:t),v.abort(),v=null)},t.cancelToken&&t.cancelToken.subscribe(p),t.signal&&(t.signal.aborted?p():t.signal.addEventListener("abort",p))),m||(m=null);var I=f(k);I&&-1===["http","https","file"].indexOf(I)?n(new h("Unsupported protocol "+I+":",h.ERR_BAD_REQUEST,t)):v.send(m)}))}},51609:function(t,e,n){"use strict";var r=n(64867),i=n(91849),o=n(30321),s=n(47185);var a=function t(e){var n=new o(e),a=i(o.prototype.request,n);return r.extend(a,o.prototype,n),r.extend(a,n),a.create=function(n){return t(s(e,n))},a}(n(45546));a.Axios=o,a.CanceledError=n(60644),a.CancelToken=n(14972),a.isCancel=n(26502),a.VERSION=n(97288).version,a.toFormData=n(47675),a.AxiosError=n(82648),a.Cancel=a.CanceledError,a.all=function(t){return Promise.all(t)},a.spread=n(8713),a.isAxiosError=n(16268),t.exports=a,t.exports.default=a},14972:function(t,e,n){"use strict";var r=n(60644);function i(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e<r;e++)n._listeners[e](t);n._listeners=null}})),this.promise.then=function(t){var e,r=new Promise((function(t){n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},i.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},60644:function(t,e,n){"use strict";var r=n(82648);function i(t){r.call(this,null==t?"canceled":t,r.ERR_CANCELED),this.name="CanceledError"}n(64867).inherits(i,r,{__CANCEL__:!0}),t.exports=i},26502:function(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},30321:function(t,e,n){"use strict";var r=n(64867),i=n(15327),o=n(80782),s=n(13572),a=n(47185),c=n(94097),u=n(54875),l=u.validators;function h(t){this.defaults=t,this.interceptors={request:new o,response:new o}}h.prototype.request=function(t,e){"string"===typeof t?(e=e||{}).url=t:e=t||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var o,c=[];if(this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)})),!i){var h=[s,void 0];for(Array.prototype.unshift.apply(h,r),h=h.concat(c),o=Promise.resolve(e);h.length;)o=o.then(h.shift(),h.shift());return o}for(var d=e;r.length;){var f=r.shift(),p=r.shift();try{d=f(d)}catch(m){p(m);break}}try{o=s(d)}catch(m){return Promise.reject(m)}for(;c.length;)o=o.then(c.shift(),c.shift());return o},h.prototype.getUri=function(t){t=a(this.defaults,t);var e=c(t.baseURL,t.url);return i(e,t.params,t.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(t){h.prototype[t]=function(e,n){return this.request(a(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(a(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}h.prototype[t]=e(),h.prototype[t+"Form"]=e(!0)})),t.exports=h},82648:function(t,e,n){"use strict";var r=n(64867);function i(t,e,n,r,i){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=i.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(t){s[t]={value:t}})),Object.defineProperties(i,s),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=function(t,e,n,s,a,c){var u=Object.create(o);return r.toFlatObject(t,u,(function(t){return t!==Error.prototype})),i.call(u,t.message,e,n,s,a),u.name=t.name,c&&Object.assign(u,c),u},t.exports=i},80782:function(t,e,n){"use strict";var r=n(64867);function i(){this.handlers=[]}i.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},94097:function(t,e,n){"use strict";var r=n(91793),i=n(7303);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},13572:function(t,e,n){"use strict";var r=n(64867),i=n(18527),o=n(26502),s=n(45546),a=n(60644);function c(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new a}t.exports=function(t){return c(t),t.headers=t.headers||{},t.data=i.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||s.adapter)(t).then((function(e){return c(t),e.data=i.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(c(t),e&&e.response&&(e.response.data=i.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},47185:function(t,e,n){"use strict";var r=n(64867);t.exports=function(t,e){e=e||{};var n={};function i(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function o(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:i(void 0,t[n]):i(t[n],e[n])}function s(t){if(!r.isUndefined(e[t]))return i(void 0,e[t])}function a(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:i(void 0,t[n]):i(void 0,e[n])}function c(n){return n in e?i(t[n],e[n]):n in t?i(void 0,t[n]):void 0}var u={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBo
vendor: 4,278 bytes, line 1
1dyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c};return r.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||o,i=e(t);r.isUndefined(i)&&e!==c||(n[t]=i)})),n}},36026:function(t,e,n){"use strict";var r=n(82648);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}},18527:function(t,e,n){"use strict";var r=n(64867),i=n(45546);t.exports=function(t,e,n){var o=this||i;return r.forEach(n,(function(n){t=n.call(o,t,e)})),t}},45546:function(t,e,n){"use strict";var r=n(34155),i=n(64867),o=n(16016),s=n(82648),a=n(77874),c=n(47675),u={"Content-Type":"application/x-www-form-urlencoded"};function l(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var h={transitional:a,adapter:function(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof r&&"[object process]"===Object.prototype.toString.call(r))&&(t=n(55448)),t}(),transformRequest:[function(t,e){if(o(e,"Accept"),o(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t))return t;if(i.isArrayBufferView(t))return t.buffer;if(i.isURLSearchParams(t))return l(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var n,r=i.isObject(t),s=e&&e["Content-Type"];if((n=i.isFileList(t))||r&&"multipart/form-data"===s){var a=this.env&&this.env.FormData;return c(n?{"files[]":t}:t,a&&new a)}return r||"application/json"===s?(l(e,"application/json"),function(t,e,n){if(i.isString(t))try{return(e||JSON.parse)(t),i.trim(t)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||h.transitional,n=e&&e.silentJSONParsing,r=e&&e.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&i.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(o){if("SyntaxError"===a.name)throw s.from(a,s.ERR_BAD_RESPONSE,this,null,this.response);throw a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(91623)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(t){h.headers[t]={}})),i.forEach(["post","put","patch"],(function(t){h.headers[t]=i.merge(u)})),t.exports=h},77874:function(t){"use strict";t.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},97288:function(t){t.exports={version:"0.27.2"}},91849:function(t){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},15327:function(t,e,n){"use strict";var r=n(64867);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var s=[];r.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),s.push(i(e)+"="+i(t))})))})),o=s.join("&")}if(o){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},7303:function(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:function(t,e,n){"use strict";var r=n(64867);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,s){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},91793:function(t){"use strict";
1t.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},16268:function(t,e,n){"use strict";var r=n(64867);t.exports=function(t){return r.isObject(t)&&!0===t.isAxiosError}},67985:function(t,e,n){"use strict";var r=n(64867);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},16016:function(t,e,n){"use strict";var r=n(64867);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},91623:function(t){t.exports=null},84109:function(t,e,n){"use strict";var r=n(64867),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,s={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(s[e]&&i.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}})),s):s}},90205:function(t){"use strict";t.exports=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}},8713:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},47675:function(t,e,n){"use strict";var r=n(48764).Buffer,i=n(64867);t.exports=function(t,e){e=e||new FormData;var n=[];function o(t){return null===t?"":i.isDate(t)?t.toISOString():i.isArrayBuffer(t)||i.isTypedArray(t)?"function"===typeof Blob?new Blob([t]):r.from(t):t}return function t(r,s){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+s);n.push(r),i.forEach(r,(function(n,r){if(!i.isUndefined(n)){var a,c=s?s+"."+r:r;if(n&&!s&&"object"===typeof n)if(i.endsWith(r,"{}"))n=JSON.stringify(n);else if(i.endsWith(r,"[]")&&(a=i.toArray(n)))return void a.forEach((function(t){!i.isUndefined(t)&&e.append(c,o(t))}));t(n,c)}})),n.pop()}else e.append(s,o(r))}(t),e}},54875:function(t,e,n){"use strict";var r=n(97288).version,i=n(82648),o={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){o[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var s={};o.transitional=function(t,e,n){function o(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,a){if(!1===t)throw new i(o(r," has been removed"+(e?" in "+e:"")),i.ERR_DEPRECATED);return e&&!s[r]&&(s[r]=!0,console.warn(o(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,a)}},t.exports={assertOptions:function(t,e,n){if("object"!==typeof t)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(t),o=r.length;o-- >0;){var s=r[o],a=e[s];if(a){var c=t[s],u=void 0===c||a(c,s,t);if(!0!==u)throw new i("option "+s+" must be "+u,i.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i("Unknown option "+s,i.ERR_BAD_OPTION)}},validators:o}},64867:function(t,e,n){"use strict";var r,i=n(91849),o=Object.prototype.toString,s=(r=Object.create(null),function(t){var e=o.call(t);return r[e]||(r[e]=e.slice(8,-1).toLowerCase())});function a(t){return t=t.toLowerCase(),function(e){return s(e)===t}}function c(t){return Array.isArray(t)}function u(t){return"undefined"===typeof t}var l=a("ArrayBuffer");function h(t){return null!==t&&"object"===typeof t}function d(t){if("object"!==s(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var f=a("Date"),p=a("File"),m=a("Blob"),g=a("FileList");function y(t){return"[object Function]"===o.call(t)}var b=a("URLSearchParams");function v(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),c(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}var w,_=(w="undefined"!==typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return w&&t instanceof w});t.exports={isArray:c,isArrayBuffer:l,isBuffer:function(t){return null!==t&&!u(t)&&null!==t.constructor&&!u(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"===typeof FormData&&t instanceof FormData||o.call(t)===e||y(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&l(t.buffer)},isString:function(t){return"string"===typeof t},isNumber:function(t){return"number"===typeof t},isObject:h,isPlainObject:d,isUndefined:u,isDate:f,isFile:p,isBlob:m,isFunction:y,isStream:function(t){return h(t)&&y(t.pipe)},isURLSearchParams:b,isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}
1,forEach:v,merge:function t(){var e={};function n(n,r){d(e[r])&&d(n)?e[r]=t(e[r],n):d(n)?e[r]=t({},n):c(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)v(arguments[r],n);return e},extend:function(t,e,n){return v(e,(function(e,r){t[r]=n&&"function"===typeof e?i(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,n,r){t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,n&&Object.assign(t.prototype,n)},toFlatObject:function(t,e,n){var r,i,o,s={};e=e||{};do{for(i=(r=Object.getOwnPropertyNames(t)).length;i-- >0;)s[o=r[i]]||(e[o]=t[o],s[o]=!0);t=Object.getPrototypeOf(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:s,kindOfTest:a,endsWith:function(t,e,n){t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;var r=t.indexOf(e,n);return-1!==r&&r===n},toArray:function(t){if(!t)return null;var e=t.length;if(u(e))return null;for(var n=new Array(e);e-- >0;)n[e]=t[e];return n},isTypedArray:_,isFileList:g}},58162:function(t,e,n){"use strict";var r=n(89509).Buffer;t.exports=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n<e.length;n++)e[n]=255;for(var i=0;i<t.length;i++){var o=t.charAt(i),s=o.charCodeAt(0);if(255!==e[s])throw new TypeError(o+" is ambiguous");e[s]=i}var a=t.length,c=t.charAt(0),u=Math.log(a)/Math.log(256),l=Math.log(256)/Math.log(a);function h(t){if("string"!==typeof t)throw new TypeError("Expected String");if(0===t.length)return r.alloc(0);for(var n=0,i=0,o=0;t[n]===c;)i++,n++;for(var s=(t.length-n)*u+1>>>0,l=new Uint8Array(s);t[n];){var h=e[t.charCodeAt(n)];if(255===h)return;for(var d=0,f=s-1;(0!==h||d<o)&&-1!==f;f--,d++)h+=a*l[f]>>>0,l[f]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=d,n++}for(var p=s-o;p!==s&&0===l[p];)p++;var m=r.allocUnsafe(i+(s-p));m.fill(0,0,i);for(var g=i;p!==s;)m[g++]=l[p++];return m}return{encode:function(e){if((Array.isArray(e)||e instanceof Uint8Array)&&(e=r.from(e)),!r.isBuffer(e))throw new TypeError("Expected Buffer");if(0===e.length)return"";for(var n=0,i=0,o=0,s=e.length;o!==s&&0===e[o];)o++,n++;for(var u=(s-o)*l+1>>>0,h=new Uint8Array(u);o!==s;){for(var d=e[o],f=0,p=u-1;(0!==d||f<i)&&-1!==p;p--,f++)d+=256*h[p]>>>0,h[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");i=f,o++}for(var m=u-i;m!==u&&0===h[m];)m++;for(var g=c.repeat(n);m<u;++m)g+=t.charAt(h[m]);return g},decodeUnsafe:h,decode:function(t){var e=h(t);if(e)return e;throw new Error("Non-base"+a+" character")}}}},79742:function(t,e){"use strict";e.byteLength=function(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,o=c(t),s=o[0],a=o[1],u=new i(function(t,e,n){return 3*(e+n)/4-n}(0,s,a)),l=0,h=a>0?s-4:s;for(n=0;n<h;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;2===a&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,u[l++]=255&e);1===a&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e);return u},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],s=16383,a=0,c=r-i;a<c;a+=s)o.push(u(t,a,a+s>c?c:a+s));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)n[s]=o[s],r[o.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,r){for(var i,o,s=[],a=e;a<r;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},40475:function(t,e,n){"use strict";var r=n(48764).Buffer;
1Object.defineProperty(e,"__esModule",{value:!0}),e.toBigIntLE=function(t){{const e=r.from(t);e.reverse();const n=e.toString("hex");return 0===n.length?BigInt(0):BigInt(`0x${n}`)}},e.toBigIntBE=function(t){{const e=t.toString("hex");return 0===e.length?BigInt(0):BigInt(`0x${e}`)}},e.toBufferLE=function(t,e){{const n=t.toString(16),i=r.from(n.padStart(2*e,"0").slice(0,2*e),"hex");return i.reverse(),i}},e.toBufferBE=function(t,e){{const n=t.toString(16);return r.from(n.padStart(2*e,"0").slice(0,2*e),"hex")}}},44431:function(t,e,n){var r;!function(i){"use strict";var o,s=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,c=Math.floor,u="[BigNumber Error] ",l=u+"Number primitive has more than 15 significant digits: ",h=1e14,d=14,f=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],m=1e7,g=1e9;function y(t){var e=0|t;return t>0||t===e?e:e-1}function b(t){for(var e,n,r=1,i=t.length,o=t[0]+"";r<i;){for(e=t[r++]+"",n=d-e.length;n--;e="0"+e);o+=e}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function v(t,e){var n,r,i=t.c,o=e.c,s=t.s,a=e.s,c=t.e,u=e.e;if(!s||!a)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-a:s;
vendor: 5,555 bytes, line 1
1if(s!=a)return s;if(n=s<0,r=c==u,!i||!o)return r?0:!i^n?1:-1;if(!r)return c>u^n?1:-1;for(a=(c=i.length)<(u=o.length)?c:u,s=0;s<a;s++)if(i[s]!=o[s])return i[s]>o[s]^n?1:-1;return c==u?0:c>u^n?1:-1}function w(t,e,n,r){if(t<e||t>n||t!==c(t))throw Error(u+(r||"Argument")+("number"==typeof t?t<e||t>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function _(t){var e=t.c.length-1;return y(t.e/d)==e&&t.c[e]%2!=0}function k(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function S(t,e,n){var r,i;if(e<0){for(i=n+".";++e;i+=n);t=i+t}else if(++e>(r=t.length)){for(i=n,e-=r;--e;i+=n);t+=i}else e<r&&(t=t.slice(0,e)+"."+t.slice(e));return t}o=function t(e){var n,r,i,o=L.prototype={constructor:L,toString:null,valueOf:null},x=new L(1),I=20,A=4,E=-7,T=21,P=-1e7,C=1e7,M=!1,O=1,R=0,B={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},j="0123456789abcdefghijklmnopqrstuvwxyz",N=!0;function L(t,e){var n,o,a,u,h,p,m,g,y=this;if(!(y instanceof L))return new L(t,e);if(null==e){if(t&&!0===t._isBigNumber)return y.s=t.s,void(!t.c||t.e>C?y.c=y.e=null:t.e<P?y.c=[y.e=0]:(y.e=t.e,y.c=t.c.slice()));if((p="number"==typeof t)&&0*t==0){if(y.s=1/t<0?(t=-t,-1):1,t===~~t){for(u=0,h=t;h>=10;h/=10,u++);return void(u>C?y.c=y.e=null:(y.e=u,y.c=[t]))}g=String(t)}else{if(!s.test(g=String(t)))return i(y,g,p);y.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(u=g.indexOf("."))>-1&&(g=g.replace(".","")),(h=g.search(/e/i))>0?(u<0&&(u=h),u+=+g.slice(h+1),g=g.substring(0,h)):u<0&&(u=g.length)}else{if(w(e,2,j.length,"Base"),10==e&&N)return U(y=new L(t),I+y.e+1,A);if(g=String(t),p="number"==typeof t){if(0*t!=0)return i(y,g,p,e);if(y.s=1/t<0?(g=g.slice(1),-1):1,L.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(l+t)}else y.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(n=j.slice(0,e),u=h=0,m=g.length;h<m;h++)if(n.indexOf(o=g.charAt(h))<0){if("."==o){if(h>u){u=m;continue}}else if(!a&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){a=!0,h=-1,u=0;continue}return i(y,String(t),p,e)}p=!1,(u=(g=r(g,e,10,y.s)).indexOf("."))>-1?g=g.replace(".",""):u=g.length}for(h=0;48===g.charCodeAt(h);h++);for(m=g.length;48===g.charCodeAt(--m););if(g=g.slice(h,++m)){if(m-=h,p&&L.DEBUG&&m>15&&(t>f||t!==c(t)))throw Error(l+y.s*t);if((u=u-h-1)>C)y.c=y.e=null;else if(u<P)y.c=[y.e=0];else{if(y.e=u,y.c=[],h=(u+1)%d,u<0&&(h+=d),h<m){for(h&&y.c.push(+g.slice(0,h)),m-=d;h<m;)y.c.push(+g.slice(h,h+=d));h=d-(g=g.slice(h)).length}else h-=m;for(;h--;g+="0");y.c.push(+g)}}else y.c=[y.e=0]}function D(t,e,n,r){var i,o,s,a,c;if(null==n?n=A:w(n,0,8),!t.c)return t.toString();if(i=t.c[0],s=t.e,null==e)c=b(t.c),c=1==r||2==r&&(s<=E||s>=T)?k(c,s):S(c,s,"0");else if(o=(t=U(new L(t),e,n)).e,a=(c=b(t.c)).length,1==r||2==r&&(e<=o||o<=E)){for(;a<e;c+="0",a++);c=k(c,o)}else if(e-=s,c=S(c,o,"0"),o+1>a){if(--e>0)for(c+=".";e--;c+="0");}else if((e+=o-a)>0)for(o+1==a&&(c+=".");e--;c+="0");return t.s<0&&i?"-"+c:c}function z(t,e){for(var n,r=1,i=new L(t[0]);r<t.length;r++){if(!(n=new L(t[r])).s){i=n;break}e.call(i,n)&&(i=n)}return i}function F(t,e,n){for(var r=1,i=e.length;!e[--i];e.pop());for(i=e[0];i>=10;i/=10,r++);return(n=r+n*d-1)>C?t.c=t.e=null:n<P?t.c=[t.e=0]:(t.e=n,t.c=e),t}function U(t,e,n,r){var i,o,s,u,l,f,m,g=t.c,y=p;if(g){t:{for(i=1,u=g[0];u>=10;u/=10,i++);if((o=e-i)<0)o+=d,s=e,m=(l=g[f=0])/y[i-s-1]%10|0;else if((f=a((o+1)/d))>=g.length){if(!r)break t;for(;g.length<=f;g.push(0));l=m=0,i=1,s=(o%=d)-d+1}else{for(l=u=g[f],i=1;u>=10;u/=10,i++);m=(s=(o%=d)-d+i)<0?0:l/y[i-s-1]%10|0}if(r=r||e<0||null!=g[f+1]||(s<0?l:l%y[i-s-1]),r=n<4?(m||r)&&(0==n||n==(t.s<0?3:2)):m>5||5==m&&(4==n||r||6==n&&(o>0?s>0?l/y[i-s]:0:g[f-1])%10&1||n==(t.s<0?8:7)),e<1||!g[0])return g.length=0,r?(e-=t.e+1,g[0]=y[(d-e%d)%d],t.e=-e||0):g[0]=t.e=0,t;if(0==o?(g.length=f,u=1,f--):(g.length=f+1,u=y[d-o],g[f]=s>0?c(l/y[i-s]%y[s])*u:0),r)for(;;){if(0==f){for(o=1,s=g[0];s>=10;s/=10,o++);for(s=g[0]+=u,u=1;s>=10;s/=10,u++);o!=u&&(t.e++,g[0]==h&&(g[0]=1));break}if(g[f]+=u,g[f]!=h)break;g[f--]=0,u=1}for(o=g.length;0===g[--o];g.pop());}t.e>C?t.c=t.e=null:t.e<P&&(t.c=[t.e=0])}return t}function W(t){var e,n=t.e;return null===n?t.toString():(e=b(t.c),e=n<=E||n>=T?k(e,n):S(e,n,"0"),t.s<0?"-"+e:e)}return L.clone=t,L.ROUND_UP=0,L.ROUND_DOWN=1,L.ROUND_CEIL=2,L.ROUND_FLOOR=3,L.ROUND_HALF_UP=4,L.ROUND_HALF_DOWN=5,L.ROUND_HALF_EVEN=6,L.ROUND_HALF_CEIL=7,L.ROUND_HALF_FLOOR=8,L.EUCLID=9,L.config=L.set=function(t){var e,n;if(null!=t){if("object"!=typeof t)throw Error(u+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(w(n=t[e],0,g,e),I=n),t.hasOwnProperty(e="ROUNDING_MODE")&&(w(n=t[e],0,8,e),A=n),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((n=t[e])&&n.pop?(w(n[0],-g,0,e),w(n[1],0,g,e),E=n[0],T=n[1]):(w(n,-g,g,e),E=-(T=n<0?-n:n))),t.hasOwnProperty(e="RANGE"))if((n=t[e])&&n.pop)w(n[0],-g,-1,e),w(n[1],1,g,e),P=n[0],C=n[1];else{if(w(n,-g,g,e),!n)throw Error(u+e+" cannot be zero: "+n);P=-(C=n<0?-n:n)}if(t.hasOwnProperty(e="CRYPTO")){if((n=t[e])!==!!n)throw Error(u+e+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw M=!n,Error(u+"crypto unavailable");M=n}else M=n}if(t.hasOwnProperty(e="MODULO_MODE")&&(w(n=t[e],0,9,e),O=n),t.hasOwnProperty(e="POW_PRECISION")&&(w(n=t[e],0,g,e),R=n),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(n=t[e]))throw Error(u+e+" not an object: "+n);B=n}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(n=t[e])||/^.?$|[+\-.\
vendor: 6,273 bytes, line 1
1s]|(.).*\1/.test(n))throw Error(u+e+" invalid: "+n);N="0123456789"==n.slice(0,10),j=n}}return{DECIMAL_PLACES:I,ROUNDING_MODE:A,EXPONENTIAL_AT:[E,T],RANGE:[P,C],CRYPTO:M,MODULO_MODE:O,POW_PRECISION:R,FORMAT:B,ALPHABET:j}},L.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!L.DEBUG)return!0;var e,n,r=t.c,i=t.e,o=t.s;t:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&i>=-g&&i<=g&&i===c(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break t}if((e=(i+1)%d)<1&&(e+=d),String(r[0]).length==e){for(e=0;e<r.length;e++)if((n=r[e])<0||n>=h||n!==c(n))break t;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+t)},L.maximum=L.max=function(){return z(arguments,o.lt)},L.minimum=L.min=function(){return z(arguments,o.gt)},L.random=function(){var t=9007199254740992,e=Math.random()*t&2097151?function(){return c(Math.random()*t)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(t){var n,r,i,o,s,l=0,h=[],f=new L(x);if(null==t?t=I:w(t,0,g),o=a(t/d),M)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(o*=2));l<o;)(s=131072*n[l]+(n[l+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[l]=r[0],n[l+1]=r[1]):(h.push(s%1e14),l+=2);l=o/2}else{if(!crypto.randomBytes)throw M=!1,Error(u+"crypto unavailable");for(n=crypto.randomBytes(o*=7);l<o;)(s=281474976710656*(31&n[l])+1099511627776*n[l+1]+4294967296*n[l+2]+16777216*n[l+3]+(n[l+4]<<16)+(n[l+5]<<8)+n[l+6])>=9e15?crypto.randomBytes(7).copy(n,l):(h.push(s%1e14),l+=7);l=o/7}if(!M)for(;l<o;)(s=e())<9e15&&(h[l++]=s%1e14);for(o=h[--l],t%=d,o&&t&&(s=p[d-t],h[l]=c(o/s)*s);0===h[l];h.pop(),l--);if(l<0)h=[i=0];else{for(i=-1;0===h[0];h.splice(0,1),i-=d);for(l=1,s=h[0];s>=10;s/=10,l++);l<d&&(i-=d-l)}return f.e=i,f.c=h,f}}(),L.sum=function(){for(var t=1,e=arguments,n=new L(e[0]);t<e.length;)n=n.plus(e[t++]);return n},r=function(){var t="0123456789";function e(t,e,n,r){for(var i,o,s=[0],a=0,c=t.length;a<c;){for(o=s.length;o--;s[o]*=e);for(s[0]+=r.indexOf(t.charAt(a++)),i=0;i<s.length;i++)s[i]>n-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(r,i,o,s,a){var c,u,l,h,d,f,p,m,g=r.indexOf("."),y=I,v=A;for(g>=0&&(h=R,R=0,r=r.replace(".",""),f=(m=new L(i)).pow(r.length-g),R=h,m.c=e(S(b(f.c),f.e,"0"),10,o,t),m.e=m.c.length),l=h=(p=e(r,i,o,a?(c=j,t):(c=t,j))).length;0==p[--h];p.pop());if(!p[0])return c.charAt(0);if(g<0?--l:(f.c=p,f.e=l,f.s=s,p=(f=n(f,m,y,v,o)).c,d=f.r,l=f.e),g=p[u=l+y+1],h=o/2,d=d||u<0||null!=p[u+1],d=v<4?(null!=g||d)&&(0==v||v==(f.s<0?3:2)):g>h||g==h&&(4==v||d||6==v&&1&p[u-1]||v==(f.s<0?8:7)),u<1||!p[0])r=d?S(c.charAt(1),-y,c.charAt(0)):c.charAt(0);else{if(p.length=u,d)for(--o;++p[--u]>o;)p[u]=0,u||(++l,p=[1].concat(p));for(h=p.length;!p[--h];);for(g=0,r="";g<=h;r+=c.charAt(p[g++]));r=S(r,l,c.charAt(0))}return r}}(),n=function(){function t(t,e,n){var r,i,o,s,a=0,c=t.length,u=e%m,l=e/m|0;for(t=t.slice();c--;)a=((i=u*(o=t[c]%m)+(r=l*o+(s=t[c]/m|0)*u)%m*m+a)/n|0)+(r/m|0)+l*s,t[c]=i%n;return a&&(t=[a].concat(t)),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]<e[n]?1:0,t[n]=i*r+t[n]-e[n];for(;!t[0]&&t.length>1;t.splice(0,1));}return function(r,i,o,s,a){var u,l,f,p,m,g,b,v,w,_,k,S,x,I,A,E,T,P=r.s==i.s?1:-1,C=r.c,M=i.c;if(!C||!C[0]||!M||!M[0])return new L(r.s&&i.s&&(C?!M||C[0]!=M[0]:M)?C&&0==C[0]||!M?0*P:P/0:NaN);for(w=(v=new L(P)).c=[],P=o+(l=r.e-i.e)+1,a||(a=h,l=y(r.e/d)-y(i.e/d),P=P/d|0),f=0;M[f]==(C[f]||0);f++);if(M[f]>(C[f]||0)&&l--,P<0)w.push(1),p=!0;else{for(I=C.length,E=M.length,f=0,P+=2,(m=c(a/(M[0]+1)))>1&&(M=t(M,m,a),C=t(C,m,a),E=M.length,I=C.length),x=E,k=(_=C.slice(0,E)).length;k<E;_[k++]=0);T=M.slice(),T=[0].concat(T),A=M[0],M[1]>=a/2&&A++;do{if(m=0,(u=e(M,_,E,k))<0){if(S=_[0],E!=k&&(S=S*a+(_[1]||0)),(m=c(S/A))>1)for(m>=a&&(m=a-1),b=(g=t(M,m,a)).length,k=_.length;1==e(g,_,b,k);)m--,n(g,E<b?T:M,b,a),b=g.length,u=1;else 0==m&&(u=m=1),b=(g=M.slice()).length;if(b<k&&(g=[0].concat(g)),n(_,g,k,a),k=_.length,-1==u)for(;e(M,_,E,k)<1;)m++,n(_,E<k?T:M,k,a),k=_.length}else 0===u&&(m++,_=[0]);w[f++]=m,_[0]?_[k++]=C[x]||0:(_=[C[x]],k=1)}while((x++<I||null!=_[0])&&P--);p=null!=_[0],w[0]||w.splice(0,1)}if(a==h){for(f=1,P=w[0];P>=10;P/=10,f++);U(v,o+(v.e=f+l*d-1)+1,s,p)}else v.e=l,v.r=+p;return v}}(),i=function(){var t=/^(-?)0([xbo])(?=\w[\w.]*$)/i,e=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,s,a,c){var l,h=a?s:s.replace(i,"");if(r.test(h))o.s=isNaN(h)?null:h<0?-1:1;else{if(!a&&(h=h.replace(t,(function(t,e,n){return l="x"==(n=n.toLowerCase())?16:"b"==n?2:8,c&&c!=l?t:e})),c&&(l=c,h=h.replace(e,"$1").replace(n,"0.$1")),s!=h))return new L(h,l);if(L.DEBUG)throw Error(u+"Not a"+(c?" base "+c:"")+" number: "+s);o.s=null}o.c=o.e=null}}(),o.absoluteValue=o.abs=function(){var t=new L(this);return t.s<0&&(t.s=1),t},o.comparedTo=function(t,e){return v(this,new L(t,e))},o.decimalPlaces=o.dp=function(t,e){var n,r,i,o=this;if(null!=t)return w(t,0,g),null==e?e=A:w(e,0,8),U(new L(o),t+o.e+1,e);if(!(n=o.c))return null;if(r=((i=n.length-1)-y(this.e/d))*d,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},o.dividedBy=o.div=function(t,e){return n(this,new L(t,e),I,A)},o.dividedToIntegerBy=o.idiv=function(t,e){return n(this,new L(t,e),0,1)},o.exponentiatedBy=o.pow=function(t,e){var n,r,i,o,s,l,h,f,p=this;if((t=new L(t)).c&&!t.isInteger())throw Error(u+"Exponent not an integer: "+W(t));if(null!=e&&(e=new L(e)),s=t.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!t.c||!t.c[0])return f=new L(Math.pow(+W(p),s?2-_(t):+W(t))),e?f.mod(e):f;if(l=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new L(NaN);(r=!l&&p.isInteger()&&e.isInteger())&&(p=p.mod(e))}else{if(t.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||s&&p.c[1]>=24e7:p.c[0]<8e13||s&&p.c[0]<=9999975e7)))return o=p.s<0&&_(t)?-0:0,p.e>-1&&(o=1/o),new L(l?1/o:o);R&&(o=a(R/d+2))}for(s?(n=new L(.5),l&&(t.s=1),h=_(t)):h=(i=Math.abs(+W(t)))%2,f=new L(x);;){if(h){if(!(f=f.times(p)).c)break;o?f.c.length>o&&(f.c.length=o):r&&(f=f.mod(e))}if(i){if(0===(i=c(i/2)))break;h=i%2}else if(U(t=t.times(n),t.e+1,1),t.e>14)h=_(t);else{if(0===(i=+W(t)))break;h=i%2}
vendor: 5,020 bytes, line 1
1p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(e))}return r?f:(l&&(f=x.div(f)),e?f.mod(e):o?U(f,R,A,undefined):f)},o.integerValue=function(t){var e=new L(this);return null==t?t=A:w(t,0,8),U(e,e.e+1,t)},o.isEqualTo=o.eq=function(t,e){return 0===v(this,new L(t,e))},o.isFinite=function(){return!!this.c},o.isGreaterThan=o.gt=function(t,e){return v(this,new L(t,e))>0},o.isGreaterThanOrEqualTo=o.gte=function(t,e){return 1===(e=v(this,new L(t,e)))||0===e},o.isInteger=function(){return!!this.c&&y(this.e/d)>this.c.length-2},o.isLessThan=o.lt=function(t,e){return v(this,new L(t,e))<0},o.isLessThanOrEqualTo=o.lte=function(t,e){return-1===(e=v(this,new L(t,e)))||0===e},o.isNaN=function(){return!this.s},o.isNegative=function(){return this.s<0},o.isPositive=function(){return this.s>0},o.isZero=function(){return!!this.c&&0==this.c[0]},o.minus=function(t,e){var n,r,i,o,s=this,a=s.s;if(e=(t=new L(t,e)).s,!a||!e)return new L(NaN);if(a!=e)return t.s=-e,s.plus(t);var c=s.e/d,u=t.e/d,l=s.c,f=t.c;if(!c||!u){if(!l||!f)return l?(t.s=-e,t):new L(f?s:NaN);if(!l[0]||!f[0])return f[0]?(t.s=-e,t):new L(l[0]?s:3==A?-0:0)}if(c=y(c),u=y(u),l=l.slice(),a=c-u){for((o=a<0)?(a=-a,i=l):(u=c,i=f),i.reverse(),e=a;e--;i.push(0));i.reverse()}else for(r=(o=(a=l.length)<(e=f.length))?a:e,a=e=0;e<r;e++)if(l[e]!=f[e]){o=l[e]<f[e];break}if(o&&(i=l,l=f,f=i,t.s=-t.s),(e=(r=f.length)-(n=l.length))>0)for(;e--;l[n++]=0);for(e=h-1;r>a;){if(l[--r]<f[r]){for(n=r;n&&!l[--n];l[n]=e);--l[n],l[r]+=h}l[r]-=f[r]}for(;0==l[0];l.splice(0,1),--u);return l[0]?F(t,l,u):(t.s=3==A?-1:1,t.c=[t.e=0],t)},o.modulo=o.mod=function(t,e){var r,i,o=this;return t=new L(t,e),!o.c||!t.s||t.c&&!t.c[0]?new L(NaN):!t.c||o.c&&!o.c[0]?new L(o):(9==O?(i=t.s,t.s=1,r=n(o,t,0,3),t.s=i,r.s*=i):r=n(o,t,0,O),(t=o.minus(r.times(t))).c[0]||1!=O||(t.s=o.s),t)},o.multipliedBy=o.times=function(t,e){var n,r,i,o,s,a,c,u,l,f,p,g,b,v,w,_=this,k=_.c,S=(t=new L(t,e)).c;if(!k||!S||!k[0]||!S[0])return!_.s||!t.s||k&&!k[0]&&!S||S&&!S[0]&&!k?t.c=t.e=t.s=null:(t.s*=_.s,k&&S?(t.c=[0],t.e=0):t.c=t.e=null),t;for(r=y(_.e/d)+y(t.e/d),t.s*=_.s,(c=k.length)<(f=S.length)&&(b=k,k=S,S=b,i=c,c=f,f=i),i=c+f,b=[];i--;b.push(0));for(v=h,w=m,i=f;--i>=0;){for(n=0,p=S[i]%w,g=S[i]/w|0,o=i+(s=c);o>i;)n=((u=p*(u=k[--s]%w)+(a=g*u+(l=k[s]/w|0)*p)%w*w+b[o]+n)/v|0)+(a/w|0)+g*l,b[o--]=u%v;b[o]=n}return n?++r:b.splice(0,1),F(t,b,r)},o.negated=function(){var t=new L(this);return t.s=-t.s||null,t},o.plus=function(t,e){var n,r=this,i=r.s;if(e=(t=new L(t,e)).s,!i||!e)return new L(NaN);if(i!=e)return t.s=-e,r.minus(t);var o=r.e/d,s=t.e/d,a=r.c,c=t.c;if(!o||!s){if(!a||!c)return new L(i/0);if(!a[0]||!c[0])return c[0]?t:new L(a[0]?r:0*i)}if(o=y(o),s=y(s),a=a.slice(),i=o-s){for(i>0?(s=o,n=c):(i=-i,n=a),n.reverse();i--;n.push(0));n.reverse()}for((i=a.length)-(e=c.length)<0&&(n=c,c=a,a=n,e=i),i=0;e;)i=(a[--e]=a[e]+c[e]+i)/h|0,a[e]=h===a[e]?0:a[e]%h;return i&&(a=[i].concat(a),++s),F(t,a,s)},o.precision=o.sd=function(t,e){var n,r,i,o=this;if(null!=t&&t!==!!t)return w(t,1,g),null==e?e=A:w(e,0,8),U(new L(o),t,e);if(!(n=o.c))return null;if(r=(i=n.length-1)*d+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return t&&o.e+1>r&&(r=o.e+1),r},o.shiftedBy=function(t){return w(t,-9007199254740991,f),this.times("1e"+t)},o.squareRoot=o.sqrt=function(){var t,e,r,i,o,s=this,a=s.c,c=s.s,u=s.e,l=I+4,h=new L("0.5");if(1!==c||!a||!a[0])return new L(!c||c<0&&(!a||a[0])?NaN:a?s:1/0);if(0==(c=Math.sqrt(+W(s)))||c==1/0?(((e=b(a)).length+u)%2==0&&(e+="0"),c=Math.sqrt(+e),u=y((u+1)/2)-(u<0||u%2),r=new L(e=c==1/0?"5e"+u:(e=c.toExponential()).slice(0,e.indexOf("e")+1)+u)):r=new L(c+""),r.c[0])for((c=(u=r.e)+l)<3&&(c=0);;)if(o=r,r=h.times(o.plus(n(s,o,l,1))),b(o.c).slice(0,c)===(e=b(r.c)).slice(0,c)){if(r.e<u&&--c,"9999"!=(e=e.slice(c-3,c+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(U(r,r.e+I+2,1),t=!r.times(r).eq(s));break}if(!i&&(U(o,o.e+I+2,0),o.times(o).eq(s))){r=o;break}l+=4,c+=4,i=1}return U(r,r.e+I+1,A,t)},o.toExponential=function(t,e){return null!=t&&(w(t,0,g),t++),D(this,t,e,1)},o.toFixed=function(t,e){return null!=t&&(w(t,0,g),t=t+this.e+1),D(this,t,e)},o.toFormat=function(t,e,n){var r,i=this;if(null==n)null!=t&&e&&"object"==typeof e?(n=e,e=null):t&&"object"==typeof t?(n=t,t=e=null):n=B;else if("object"!=typeof n)throw Error(u+"Argument not an object: "+n);if(r=i.toFixed(t,e),i.c){var o,s=r.split("."),a=+n.groupSize,c=+n.secondaryGroupSize,l=n.groupSeparator||"",h=s[0],d=s[1],f=i.s<0,p=f?h.slice(1):h,m=p.length;if(c&&(o=a,a=c,c=o,m-=o),a>0&&m>0){for(o=m%a||a,h=p.substr(0,o);o<m;o+=a)h+=l+p.substr(o,a);c>0&&(h+=l+p.slice(o)),f&&(h="-"+h)}r=d?h+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?d.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):h}return(n.prefix||"")+r+(n.suffix||"")},o.toFraction=function(t){var e,r,i,o,s,a,c,l,h,f,m,g,y=this,v=y.c;if(null!=t&&(!(c=new L(t)).isInteger()&&(c.c||1!==c.s)||c.lt(x)))throw Error(u+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+W(c));if(!v)return new L(y);
1for(e=new L(x),h=r=new L(x),i=l=new L(x),g=b(v),s=e.e=g.length-y.e-1,e.c[0]=p[(a=s%d)<0?d+a:a],t=!t||c.comparedTo(e)>0?s>0?e:h:c,a=C,C=1/0,c=new L(g),l.c[0]=0;f=n(c,e,0,1),1!=(o=r.plus(f.times(i))).comparedTo(t);)r=i,i=o,h=l.plus(f.times(o=h)),l=o,e=c.minus(f.times(o=e)),c=o;return o=n(t.minus(r),i,0,1),l=l.plus(o.times(h)),r=r.plus(o.times(i)),l.s=h.s=y.s,m=n(h,i,s*=2,A).minus(y).abs().comparedTo(n(l,r,s,A).minus(y).abs())<1?[h,i]:[l,r],C=a,m},o.toNumber=function(){return+W(this)},o.toPrecision=function(t,e){return null!=t&&w(t,1,g),D(this,t,e,2)},o.toString=function(t){var e,n=this,i=n.s,o=n.e;return null===o?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(null==t?e=o<=E||o>=T?k(b(n.c),o):S(b(n.c),o,"0"):10===t&&N?e=S(b((n=U(new L(n),I+o+1,A)).c),n.e,"0"):(w(t,2,j.length,"Base"),e=r(S(b(n.c),o,"0"),10,t,i,!0)),i<0&&n.c[0]&&(e="-"+e)),e},o.valueOf=o.toJSON=function(){return W(this)},o._isBigNumber=!0,null!=e&&L.set(e),L}(),o.default=o.BigNumber=o,void 0===(r=function(){return o}.call(e,n,e,t))||(t.exports=r)}()},13550:function(t,e,n){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:n(46601).Buffer}catch(T){}function a(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function c(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function u(t,e,n,i){for(var o=0,s=0,a=Math.min(t.length,n),c=e;c<a;c++){var u=t.charCodeAt(c)-48;o*=i,s=u>=49?u-49+10:u>=17?u-17+10:u,r(u>=0&&s<i,"Invalid character"),o+=s}return o}function l(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,n):(this._parseBase(t,e,i),"le"===n&&this._initArray(this.toArray(),e,n)))},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,s=0;if("be"===n)for(r=t.length-1;r>=e;r-=2)i=c(t,e,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(r=(t.length-e)%2===0?e+1:e;r<t.length;r+=2)i=c(t,e,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,s=o%r,a=Math.min(o,o-s)+n,c=0,l=n;l<a;l+=r)c=u(t,l,l+r,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==s){var h=1;for(c=u(t,l,t.length,e),l=0;l<s;l++)h*=e;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){l(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(T){o.prototype.inspect=h}else o.prototype.inspect=h;function h(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 5,028 bytes, line 1
1777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],c=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),n=0!==o||s!==this.length-1?d[6-c.length]+c+n:c+n}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var u=f[t],l=p[t];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(l).toString(t);n=(h=h.idivn(l)).isZero()?m+n:d[u-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function m(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,c=s/67108864|0;n.words[0]=a;for(var u=1;u<r;u++){for(var l=c>>>26,h=67108863&c,d=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=d;f++){var p=u-f|0;l+=(s=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&s}n.words[u]=0|h,c=0|l}return 0!==c?n.words[u]=0|c:n.length--,n._strip()}o.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var s=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](s,i),s},o.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|r;t[n++]=255&s,n<t.length&&(t[n++]=s>>8&255),n<t.length&&(t[n++]=s>>16&255),6===o?(n<t.length&&(t[n++]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n<t.length)for(t[n++]=r;n<t.length;)t[n++]=0},o.prototype._toArrayLikeBE=function(t,e){for(var n=t.length-1,r=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|r;t[n--]=255&s,n>=0&&(t[n--]=s>>8&255),n>=0&&(t[n--]=s>>16&255),6===o?(n>=0&&(t[n--]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)}
vendor: 7,405 bytes, line 1
1,o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,s=0;s<r.length;s++)o=(e=(0|n.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<n.length;s++)o=(e=(0|n.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<n.length&&n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this.length=Math.max(this.length,s),n!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,n){var r,i,o,s=t.words,a=e.words,c=n.words,u=0,l=0|s[0],h=8191&l,d=l>>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,b=g>>>13,v=0|s[3],w=8191&v,_=v>>>13,k=0|s[4],S=8191&k,x=k>>>13,I=0|s[5],A=8191&I,E=I>>>13,T=0|s[6],P=8191&T,C=T>>>13,M=0|s[7],O=8191&M,R=M>>>13,B=0|s[8],j=8191&B,N=B>>>13,L=0|s[9],D=8191&L,z=L>>>13,F=0|a[0],U=8191&F,W=F>>>13,G=0|a[1],V=8191&G,K=G>>>13,H=0|a[2],q=8191&H,$=H>>>13,Z=0|a[3],Y=8191&Z,X=Z>>>13,J=0|a[4],Q=8191&J,tt=J>>>13,et=0|a[5],nt=8191&et,rt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ct=8191&at,ut=at>>>13,lt=0|a[8],ht=8191<,dt=lt>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(u+(r=Math.imul(h,U))|0)+((8191&(i=(i=Math.imul(h,W))+Math.imul(d,U)|0))<<13)|0;u=((o=Math.imul(d,W))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,U),i=(i=Math.imul(p,W))+Math.imul(m,U)|0,o=Math.imul(m,W);var yt=(u+(r=r+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,V)|0))<<13)|0;u=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,U),i=(i=Math.imul(y,W))+Math.imul(b,U)|0,o=Math.imul(b,W),r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,K)|0;var bt=(u+(r=r+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,$)|0)+Math.imul(d,q)|0))<<13)|0;u=((o=o+Math.imul(d,$)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,U),i=(i=Math.imul(w,W))+Math.imul(_,U)|0,o=Math.imul(_,W),r=r+Math.imul(y,V)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,K)|0,r=r+Math.imul(p,q)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,$)|0;var vt=(u+(r=r+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,Y)|0))<<13)|0;u=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(S,U),i=(i=Math.imul(S,W))+Math.imul(x,U)|0,o=Math.imul(x,W),r=r+Math.imul(w,V)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,K)|0,r=r+Math.imul(y,q)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,$)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,X)|0;var wt=(u+(r=r+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(A,U),i=(i=Math.imul(A,W))+Math.imul(E,U)|0,o=Math.imul(E,W),r=r+Math.imul(S,V)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(x,V)|0,o=o+Math.imul(x,K)|0,r=r+Math.imul(w,q)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,$)|0,r=r+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,X)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,X)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var _t=(u+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(d,nt)|0))<<13)|0;u=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(P,U),i=(i=Math.imul(P,W))+Math.imul(C,U)|0,o=Math.imul(C,W),r=r+Math.imul(A,V)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(E,V)|0,o=o+Math.imul(E,K)|0,r=r+Math.imul(S,q)|0,i=(i=i+Math.imul(S,$)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,$)|0,r=r+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,X)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var kt=(u+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,st)|0)+Math.imul(d,ot)|0))<<13)|0;u=((o=o+Math.imul(d,st)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(O,U),i=(i=Math.imul(O,W))+Math.imul(R,U)|0,o=Math.imul(R,W),r=r+Math.imul(P,V)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,K)|0,r=r+Math.imul(A,q)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,$)|0,r=r+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,X)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(y,nt)|0,i=(i=i+Math.imul(y,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,st)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0;var St=(u+(r=r+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,ut)|0)+Math.imul(d,ct)|0))<<13)|0;u=((o=o+Math.imul(d,ut)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(j,U),i=(i=Math.imul(j,W))+Math.imul(N,U)|0,o=Math.imul(N,W),r=r+Math.imul(O,V)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,K)|0,r=r+Math.imul(P,q)|0,i=(i=i+Math.imul(P,$)|0)+Math.imul(C,q)|0,o=o+Math.imul(C,$)|0,r=r+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,X)|0,r=r+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,st)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,r=r+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,ut)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,ut)|0;var xt=(u+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;u=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(D,U),i=(i=Math.imul(D,W))+Math.imul(z,U
vendor: 5,879 bytes, line 1
1)|0,o=Math.imul(z,W),r=r+Math.imul(j,V)|0,i=(i=i+Math.imul(j,K)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,K)|0,r=r+Math.imul(O,q)|0,i=(i=i+Math.imul(O,$)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,$)|0,r=r+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,X)|0,r=r+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,r=r+Math.imul(S,nt)|0,i=(i=i+Math.imul(S,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,st)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,st)|0,r=r+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,ut)|0)+Math.imul(b,ct)|0,o=o+Math.imul(b,ut)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,dt)|0;var It=(u+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,pt)|0))<<13)|0;u=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(D,V),i=(i=Math.imul(D,K))+Math.imul(z,V)|0,o=Math.imul(z,K),r=r+Math.imul(j,q)|0,i=(i=i+Math.imul(j,$)|0)+Math.imul(N,q)|0,o=o+Math.imul(N,$)|0,r=r+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,X)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(E,nt)|0,o=o+Math.imul(E,rt)|0,r=r+Math.imul(S,ot)|0,i=(i=i+Math.imul(S,st)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,st)|0,r=r+Math.imul(w,ct)|0,i=(i=i+Math.imul(w,ut)|0)+Math.imul(_,ct)|0,o=o+Math.imul(_,ut)|0,r=r+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(b,ht)|0,o=o+Math.imul(b,dt)|0;var At=(u+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;u=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(D,q),i=(i=Math.imul(D,$))+Math.imul(z,q)|0,o=Math.imul(z,$),r=r+Math.imul(j,Y)|0,i=(i=i+Math.imul(j,X)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,st)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,st)|0,r=r+Math.imul(S,ct)|0,i=(i=i+Math.imul(S,ut)|0)+Math.imul(x,ct)|0,o=o+Math.imul(x,ut)|0,r=r+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,dt)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,dt)|0;var Et=(u+(r=r+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(b,pt)|0))<<13)|0;u=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(D,Y),i=(i=Math.imul(D,X))+Math.imul(z,Y)|0,o=Math.imul(z,X),r=r+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(O,nt)|0,i=(i=i+Math.imul(O,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,st)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,r=r+Math.imul(A,ct)|0,i=(i=i+Math.imul(A,ut)|0)+Math.imul(E,ct)|0,o=o+Math.imul(E,ut)|0,r=r+Math.imul(S,ht)|0,i=(i=i+Math.imul(S,dt)|0)+Math.imul(x,ht)|0,o=o+Math.imul(x,dt)|0;var Tt=(u+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;u=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(D,Q),i=(i=Math.imul(D,tt))+Math.imul(z,Q)|0,o=Math.imul(z,tt),r=r+Math.imul(j,nt)|0,i=(i=i+Math.imul(j,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(O,ot)|0,i=(i=i+Math.imul(O,st)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,st)|0,r=r+Math.imul(P,ct)|0,i=(i=i+Math.imul(P,ut)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,ut)|0,r=r+Math.imul(A,ht)|0,i=(i=i+Math.imul(A,dt)|0)+Math.imul(E,ht)|0,o=o+Math.imul(E,dt)|0;var Pt=(u+(r=r+Math.imul(S,pt)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(x,pt)|0))<<13)|0;u=((o=o+Math.imul(x,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(D,nt),i=(i=Math.imul(D,rt))+Math.imul(z,nt)|0,o=Math.imul(z,rt),r=r+Math.imul(j,ot)|0,i=(i=i+Math.imul(j,st)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,st)|0,r=r+Math.imul(O,ct)|0,i=(i=i+Math.imul(O,ut)|0)+Math.imul(R,ct)|0,o=o+Math.imul(R,ut)|0,r=r+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,dt)|0)+Math.imul(C,ht)|0,o=o+Math.imul(C,dt)|0;var Ct=(u+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(E,pt)|0))<<13)|0;u=((o=o+Math.imul(E,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(D,ot),i=(i=Math.imul(D,st))+Math.imul(z,ot)|0,o=Math.imul(z,st),r=r+Math.imul(j,ct)|0,i=(i=i+Math.imul(j,ut)|0)+Math.imul(N,ct)|0,o=o+Math.imul(N,ut)|0,r=r+Math.imul(O,ht)|0,i=(i=i+Math.imul(O,dt)|0)+Math.imul(R,ht)|0,o=o+Math.imul(R,dt)|0;var Mt=(u+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(C,pt)|0))<<13)|0;u=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(D,ct),i=(i=Math.imul(D,ut))+Math.imul(z,ct)|0,o=Math.imul(z,ut),r=r+Math.imul(j,ht)|0,i=(i=i+Math.imul(j,dt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,dt)|0;var Ot=(u+(r=r+Math.imul(O,pt)|0)|0)+((8191&(i=(i=i+Math.imul(O,mt)|0)+Math.imul(R,pt)|0))<<13)|0;u=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(D,ht),i=(i=Math.imul(D,dt))+Math.imul(z,ht)|0,o=Math.imul(z,dt);var Rt=(u+(r=r+Math.imul(j,pt)|0)|0)+((8191&(i=(i=i+Math.imul(j,mt)|0)+Math.imul(N,pt)|0))<<13)|0;u=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var Bt=(u+(r=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,mt))+Math.imul(z,pt)|0))<<13)|0;return u=((o=Math.imul(z,mt))+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,c[0]=gt,c[1]=yt,c[2]=bt,c[3]=vt,c[4]=wt,c[5]=_t,c[6]=kt,c[7]=St,c[8]=xt,c[9]=It,c[10]=At,c[11]=Et,c[12]=Tt,c[13]=Pt,c[14]=Ct,c[15]=Mt,c[16]=Ot,c[17]=Rt,c[18]=Bt,0!==u&&(c[19]=u,n.length++),n};function y(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var s=i;i=0;for(var a=67108863&r,c=Math.min(o,e.length-1),u=Math.max(0,o-t.length+1);u<=c;u++){var l=o-u,h=(0|t.words[l])*(0|e.words[u]),d=67108863&h;a=67108863&(d=d+a|0),i+=(s=(s=s+(h/67108864|0)|0)+(d>>>
vendor: 16,384 bytes, line 1
126)|0)>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function b(t,e,n){return y(t,e,n)}function v(t,e){this.x=t,this.y=e}Math.imul||(g=m),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):n<63?m(this,t,e):n<1024?y(this,t,e):b(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},v.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},v.prototype.permute=function(t,e,n,r,i,o){for(var s=0;s<o;s++)r[s]=e[t[s]],i[s]=n[t[s]]},v.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,c=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=c,d=u,f=0;f<s;f++){var p=n[l+f],m=r[l+f],g=n[l+f+s],y=r[l+f+s],b=h*g-d*y;y=h*y+d*g,g=b,n[l+f]=p+g,r[l+f]=m+y,n[l+f+s]=p-g,r[l+f+s]=m-y,f!==a&&(b=c*h-u*d,d=c*d+u*h,h=b)}},v.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},v.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},v.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},v.prototype.convert13b=function(t,e,n,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],n[2*s]=8191&o,o>>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)n[s]=0;r(0===o),r(0===(-8192&o))},v.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},v.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),s=new Array(r),a=new Array(r),c=new Array(r),u=new Array(r),l=new Array(r),h=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,a,c,r,i),this.transform(u,o,l,h,r,i);for(var f=0;f<r;f++){var p=a[f]*l[f]-c[f]*h[f];c[f]=a[f]*h[f]+c[f]*l[f],a[f]=p}return this.conjugate(a,c,r),this.transform(a,c,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),b(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"===typeof t),r(t<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,s=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=s>>>26,this.words[i]=67108863&s}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=t.words[r]>>>i&1}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"===typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,c=(0|this.words[e])-a<<n;this.words[e]=c|s,s=a>>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,c=n;if(i-=s,i=Math.max(0,i),c){for(var u=0;u<s;u++)c.words[u]=this.words[u];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=i);u--){var h=0|this.words[u];this.words[u]=l<<26-o|h>>>o,l=h&a}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"===typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,s=t.length+n;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+a;var c=(0|t.words[i])*e;a=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)a=(o=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&o;if(0===a)return this._strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,s=0|i.words[i.length-1];0!==(n=26-this._countBits(s))&&(i=i.ushln(n),r.iushln(n),s=0|i.words[i.length-1]);var a,c=r.length-i.length;if("mod"!==e){(a=new o(null)).length=c+1,a.words=new Array(a.length);for(var u=0;u<a.length;u++)a.words[u]=0}var l=r.clone()._ishlnsubmul(i,1,c);0===l.negative&&(r=l,a&&(a.words[c]=1));for(var h=c-1;h>=0;h--){var d=67108864*(0|r.words[i.length+h])+(0|r.words[i.length+h-1]);for(d=Math.min(d/s|0,67108863),r._ishlnsubmul(i,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,h),r.isZero()||(r.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),s=new o(0),a=new o(0),c=new o(1),u=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++u;for(var l=n.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(h)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(l),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(a),s.isub(c)):(n.isub(e),a.isub(i),c.isub(s))}return{a:a,b:c,gcd:n.iushln(u)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,s=new o(1),a=new o(0),c=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,l=1;0===(e.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(e.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var h=0,d=1;0===(n.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(n.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),s.isub(a)):(n.isub(e),a.isub(s))}return(i=0===e.cmpn(1)?s:a).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,s=n;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new A(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function k(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){A.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},i(k,_),k.prototype.spl
vendor: 3,526 bytes, line 1
1it=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&n)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},k.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(S,_),i(x,_),i(I,_),I.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(w[t])return w[t];var e;if("k256"===t)e=new k;else if("p224"===t)e=new S;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new I}return w[t]=e,e},A.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},A.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},A.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},A.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},A.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},A.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},A.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},A.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},A.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},A.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},A.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},A.prototype.isqr=function(t){return this.imul(t,t.clone())},A.prototype.sqr=function(t){return this.mul(t,t)},A.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);r(!i.isZero());var a=new o(1).toRed(this),c=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var h=this.pow(l,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();r(g<p);var y=this.pow(h,new o(1).iushln(p-g-1));d=d.redMul(y),h=y.redSqr(),f=f.redMul(h),p=g}return d},A.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},A.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],s=0,a=0,c=e.bitLength()%26;for(0===c&&(c=26),r=e.length-1;r>=0;r--){for(var u=e.words[r],l=c-1;l>=0;l--){var h=u>>l&1;i!==n[0]&&(i=this.sqr(i)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===r&&0===l)&&(i=this.mul(i,n[s]),a=0,s=0)):a=0}
1c=26}return i},A.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},A.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new E(t)},i(E,A),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=n.nmd(t),this)},25532:function(t,e,n){"use strict";var r=n(48764).Buffer,i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e},c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.deserializeUnchecked=e.deserialize=e.serialize=e.BinaryReader=e.BinaryWriter=e.BorshError=e.baseDecode=e.baseEncode=void 0;const u=c(n(13550)),l=c(n(97304)),h=a(n(21127)),d=new("function"!==typeof TextDecoder?h.TextDecoder:TextDecoder)("utf-8",{fatal:!0});e.baseEncode=function(t){return"string"===typeof t&&(t=r.from(t,"utf8")),l.default.encode(r.from(t))},e.baseDecode=function(t){return r.from(l.default.decode(t))};const f=1024;
1class p extends Error{constructor(t){super(t),this.fieldPath=[],this.originalMessage=t}addToFieldPath(t){this.fieldPath.splice(0,0,t),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}e.BorshError=p;class m{constructor(){this.buf=r.alloc(f),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=r.concat([this.buf,r.alloc(f)]))}writeU8(t){this.maybeResize(),this.buf.writeUInt8(t,this.length),this.length+=1}writeU16(t){this.maybeResize(),this.buf.writeUInt16LE(t,this.length),this.length+=2}writeU32(t){this.maybeResize(),this.buf.writeUInt32LE(t,this.length),this.length+=4}writeU64(t){this.maybeResize(),this.writeBuffer(r.from(new u.default(t).toArray("le",8)))}writeU128(t){this.maybeResize(),this.writeBuffer(r.from(new u.default(t).toArray("le",16)))}writeU256(t){this.maybeResize(),this.writeBuffer(r.from(new u.default(t).toArray("le",32)))}writeU512(t){this.maybeResize(),this.writeBuffer(r.from(new u.default(t).toArray("le",64)))}writeBuffer(t){this.buf=r.concat([r.from(this.buf.subarray(0,this.length)),t,r.alloc(f)]),this.length+=t.length}writeString(t){this.maybeResize();const e=r.from(t,"utf8");this.writeU32(e.length),this.writeBuffer(e)}writeFixedArray(t){this.writeBuffer(r.from(t))}writeArray(t,e){this.maybeResize(),this.writeU32(t.length);for(const n of t)this.maybeResize(),e(n)}toArray(){return this.buf.subarray(0,this.length)}}function g(t,e,n){const r=n.value;n.value=function(...t){try{return r.apply(this,t)}catch(e){if(e instanceof RangeError){const t=e.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(t)>=0)throw new p("Reached the end of buffer when deserializing")}throw e}}}e.BinaryWriter=m;class y{constructor(t){this.buf=t,this.offset=0}readU8(){const t=this.buf.readUInt8(this.offset);return this.offset+=1,t}readU16(){const t=this.buf.readUInt16LE(this.offset);return this.offset+=2,t}readU32(){const t=this.buf.readUInt32LE(this.offset);return this.offset+=4,t}readU64(){const t=this.readBuffer(8);return new u.default(t,"le")}readU128(){const t=this.readBuffer(16);return new u.default(t,"le")}readU256(){const t=this.readBuffer(32);return new u.default(t,"le")}readU512(){const t=this.readBuffer(64);return new u.default(t,"le")}readBuffer(t){if(this.offset+t>this.buf.length)throw new p(`Expected buffer length ${t} isn't within bounds`);const e=this.buf.slice(this.offset,this.offset+t);return this.offset+=t,e}readString(){const t=this.readU32(),e=this.readBuffer(t);try{return d.decode(e)}catch(n){throw new p(`Error decoding UTF-8 string: ${n}`)}}readFixedArray(t){return new Uint8Array(this.readBuffer(t))}readArray(t){const e=this.readU32(),n=Array();for(let r=0;r<e;++r)n.push(t());return n}}function b(t){return t.charAt(0).toUpperCase()+t.slice(1)}function v(t,e,n,r,i){try{if("string"===typeof r)i[`write${b(r)}`](n);else if(r instanceof Array)if("number"===typeof r[0]){if(n.length!==r[0])throw new p(`Expecting byte array of length ${r[0]}, but got ${n.length} bytes`);i.writeFixedArray(n)}else if(2===r.length&&"number"===typeof r[1]){if(n.length!==r[1])throw new p(`Expecting byte array of length ${r[1]}, but got ${n.length} bytes`);for(let e=0;e<r[1];e++)v(t,null,n[e],r[0],i)}else i.writeArray(n,(n=>{v(t,e,n,r[0],i)}));else if(void 0!==r.kind)switch(r.kind){case"option":null===n||void 0===n?i.writeU8(0):(i.writeU8(1),v(t,e,n,r.type,i));break;case"map":i.writeU32(n.size),n.forEach(((n,o)=>{v(t,e,o,r.key,i),v(t,e,n,r.value,i)}));break;default:throw new p(`FieldType ${r} unrecognized`)}else w(t,n,i)}catch(o){throw o instanceof p&&o.addToFieldPath(e),o}}function w(t,e,n){if("function"===typeof e.borshSerialize)return void e.borshSerialize(n);const r=t.get(e.constructor);if(!r)throw new p(`Class ${e.constructor.name} is missing in schema`);if("struct"===r.kind)r.fields.map((([r,i])=>{v(t,r,e[r],i,n)}));else{if("enum"!==r.kind)throw new p(`Unexpected schema kind: ${r.kind} for ${e.constructor.name}`);{const i=e[r.field];for(let o=0;o<r.values.length;++o){const[s,a]=r.values[o];if(s===i){n.writeU8(o),v(t,s,e[s],a,n);break}}}}}function _(t,e,n,r){try{if("string"===typeof n)return r[`read${b(n)}`]();if(n instanceof Array){if("number"===typeof n[0])return r.readFixedArray(n[0]);if("number"===typeof n[1]){const e=[];for(let i=0;i<n[1];i++)e.push(_(t,null,n[0],r));return e}return r.readArray((()=>_(t,e,n[0],r)))}if("option"===n.kind){return r.readU8()?_(t,e,n.type,r):void 0}if("map"===n.kind){let i=new Map;const o=r.readU32();for(let s=0;s<o;s++){const o=_(t,e,n.key,r),s=_(t,e,n.value,r);i.set(o,s)}return i}
1return k(t,n,r)}catch(i){throw i instanceof p&&i.addToFieldPath(e),i}}function k(t,e,n){if("function"===typeof e.borshDeserialize)return e.borshDeserialize(n);const r=t.get(e);if(!r)throw new p(`Class ${e.name} is missing in schema`);if("struct"===r.kind){const r={};for(const[i,o]of t.get(e).fields)r[i]=_(t,i,o,n);return new e(r)}if("enum"===r.kind){const i=n.readU8();if(i>=r.values.length)throw new p(`Enum index: ${i} is out of range`);const[o,s]=r.values[i];return new e({[o]:_(t,o,s,n)})}throw new p(`Unexpected schema kind: ${r.kind} for ${e.constructor.name}`)}s([g],y.prototype,"readU8",null),s([g],y.prototype,"readU16",null),s([g],y.prototype,"readU32",null),s([g],y.prototype,"readU64",null),s([g],y.prototype,"readU128",null),s([g],y.prototype,"readU256",null),s([g],y.prototype,"readU512",null),s([g],y.prototype,"readString",null),s([g],y.prototype,"readFixedArray",null),s([g],y.prototype,"readArray",null),e.BinaryReader=y,e.serialize=function(t,e,n=m){const r=new n;return w(t,e,r),r.toArray()},e.deserialize=function(t,e,n,r=y){const i=new r(n),o=k(t,e,i);if(i.offset<n.length)throw new p(`Unexpected ${n.length-i.offset} bytes after deserialized data`);return o},e.deserializeUnchecked=function(t,e,n,r=y){return k(t,e,new r(n))}},97304:function(t,e,n){var r=n(58162);t.exports=r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},29931:function(t,e,n){var r;function i(t){this.rand=t}if(t.exports=function(t){return r||(r=new i(null)),r.generate(t)},t.exports.Rand=i,i.prototype.generate=function(t){return this._rand(t)},i.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),n=0;n<e.length;n++)e[n]=this.rand.getByte();return e},"object"===typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"===typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=n(89214);if("function"!==typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(t){return o.randomBytes(t)}}catch(s){}},77191:function(t,e,n){const r=n(78247);t.exports=r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},78247:function(t){"use strict";t.exports=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n<e.length;n++)e[n]=255;for(var r=0;r<t.length;r++){var i=t.charAt(r),o=i.charCodeAt(0);if(255!==e[o])throw new TypeError(i+" is ambiguous");e[o]=r}var s=t.length,a=t.charAt(0),c=Math.log(s)/Math.log(256),u=Math.log(256)/Math.log(s);function l(t){if("string"!==typeof t)throw new TypeError("Expected String");if(0===t.length)return new Uint8Array;for(var n=0,r=0,i=0;t[n]===a;)r++,n++;for(var o=(t.length-n)*c+1>>>0,u=new Uint8Array(o);t[n];){var l=e[t.charCodeAt(n)];if(255===l)return;for(var h=0,d=o-1;(0!==l||h<i)&&-1!==d;d--,h++)l+=s*u[d]>>>0,u[d]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=h,n++}for(var f=o-i;f!==o&&0===u[f];)f++;for(var p=new Uint8Array(r+(o-f)),m=r;f!==o;)p[m++]=u[f++];return p}return{encode:function(e){if(e instanceof Uint8Array||(ArrayBuffer.isView(e)?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Array.isArray(e)&&(e=Uint8Array.from(e))),!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===e.length)return"";for(var n=0,r=0,i=0,o=e.length;i!==o&&0===e[i];)i++,n++;for(var c=(o-i)*u+1>>>0,l=new Uint8Array(c);i!==o;){for(var h=e[i],d=0,f=c-1;(0!==h||d<r)&&-1!==f;f--,d++)h+=256*l[f]>>>0,l[f]=h%s>>>0,h=h/s>>>0;if(0!==h)throw new Error("Non-zero carry");r=d,i++}for(var p=c-r;p!==c&&0===l[p];)p++;for(var m=a.repeat(n);p<c;++p)m+=t.charAt(l[p]);return m},decodeUnsafe:l,decode:function(t){var e=l(t);if(e)return e;throw new Error("Non-base"+s+" character")}}}},20698:function(t,e,n){"use strict";var r=n(48764).Buffer;class i{constructor(t,e){if(!Number.isInteger(t))throw new TypeError("span must be an integer");this.span=t,this.property=e}makeDestinationObject(){return{}}decode(t,e){throw new Error("Layout is abstract")}encode(t,e,n){throw new Error("Layout is abstract")}getSpan(t,e){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(t){const e=Object.create(this.constructor.prototype);return Object.assign(e,this),e.property=t,e}fromArray(t){}}function o(t,e){return e.property?t+"["+e.property+"]":t}e.Layout=i,e.nameWithProperty=o,e.bindConstructorLayout=function(t,e){if("function"!==typeof t)throw new TypeError("Class must be constructor");if(t.hasOwnProperty("layout_"))throw new Error("Class is already bound to a layout");if(!(e&&e instanceof i))throw new TypeError("layout must be a Layout");if(e.hasOwnProperty("boundConstructor_"))throw new Error("layout is already bound to a constructor");
1t.layout_=e,e.boundConstructor_=t,e.makeDestinationObject=()=>new t,Object.defineProperty(t.prototype,"encode",{value:function(t,n){return e.encode(this,t,n)},writable:!0}),Object.defineProperty(t,"decode",{value:function(t,n){return e.decode(t,n)},writable:!0})};class s extends i{isCount(){throw new Error("ExternalLayout is abstract")}}class a extends s{constructor(t,e){if(void 0===t&&(t=1),!Number.isInteger(t)||0>=t)throw new TypeError("elementSpan must be a (positive) integer");super(-1,e),this.elementSpan=t}isCount(){return!0}decode(t,e){void 0===e&&(e=0);const n=t.length-e;return Math.floor(n/this.elementSpan)}encode(t,e,n){return 0}}class c extends s{constructor(t,e,n){if(!(t instanceof i))throw new TypeError("layout must be a Layout");if(void 0===e)e=0;else if(!Number.isInteger(e))throw new TypeError("offset must be integer or undefined");super(t.span,n||t.property),this.layout=t,this.offset=e}isCount(){return this.layout instanceof u||this.layout instanceof l}decode(t,e){return void 0===e&&(e=0),this.layout.decode(t,e+this.offset)}encode(t,e,n){return void 0===n&&(n=0),this.layout.encode(t,e,n+this.offset)}}class u extends i{constructor(t,e){if(super(t,e),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(t,e){return void 0===e&&(e=0),t.readUIntLE(e,this.span)}encode(t,e,n){return void 0===n&&(n=0),e.writeUIntLE(t,n,this.span),this.span}}class l extends i{constructor(t,e){if(super(t,e),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(t,e){return void 0===e&&(e=0),t.readUIntBE(e,this.span)}encode(t,e,n){return void 0===n&&(n=0),e.writeUIntBE(t,n,this.span),this.span}}class h extends i{constructor(t,e){if(super(t,e),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(t,e){return void 0===e&&(e=0),t.readIntLE(e,this.span)}encode(t,e,n){return void 0===n&&(n=0),e.writeIntLE(t,n,this.span),this.span}}class d extends i{constructor(t,e){if(super(t,e),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(t,e){return void 0===e&&(e=0),t.readIntBE(e,this.span)}encode(t,e,n){return void 0===n&&(n=0),e.writeIntBE(t,n,this.span),this.span}}const f=Math.pow(2,32);function p(t){const e=Math.floor(t/f);return{hi32:e,lo32:t-e*f}}function m(t,e){return t*f+e}class g extends i{constructor(t){super(8,t)}decode(t,e){void 0===e&&(e=0);const n=t.readUInt32LE(e);return m(t.readUInt32LE(e+4),n)}encode(t,e,n){void 0===n&&(n=0);const r=p(t);return e.writeUInt32LE(r.lo32,n),e.writeUInt32LE(r.hi32,n+4),8}}class y extends i{constructor(t){super(8,t)}decode(t,e){void 0===e&&(e=0);return m(t.readUInt32BE(e),t.readUInt32BE(e+4))}encode(t,e,n){void 0===n&&(n=0);const r=p(t);return e.writeUInt32BE(r.hi32,n),e.writeUInt32BE(r.lo32,n+4),8}}class b extends i{constructor(t){super(8,t)}decode(t,e){void 0===e&&(e=0);const n=t.readUInt32LE(e);return m(t.readInt32LE(e+4),n)}encode(t,e,n){void 0===n&&(n=0);const r=p(t);return e.writeUInt32LE(r.lo32,n),e.writeInt32LE(r.hi32,n+4),8}}class v extends i{constructor(t){super(8,t)}decode(t,e){void 0===e&&(e=0);return m(t.readInt32BE(e),t.readUInt32BE(e+4))}encode(t,e,n){void 0===n&&(n=0);const r=p(t);return e.writeInt32BE(r.hi32,n),e.writeUInt32BE(r.lo32,n+4),8}}class w extends i{constructor(t){super(4,t)}decode(t,e){return void 0===e&&(e=0),t.readFloatLE(e)}encode(t,e,n){return void 0===n&&(n=0),e.writeFloatLE(t,n),4}}class _ extends i{constructor(t){super(4,t)}decode(t,e){return void 0===e&&(e=0),t.readFloatBE(e)}encode(t,e,n){return void 0===n&&(n=0),e.writeFloatBE(t,n),4}}class k extends i{constructor(t){super(8,t)}decode(t,e){return void 0===e&&(e=0),t.readDoubleLE(e)}encode(t,e,n){return void 0===n&&(n=0),e.writeDoubleLE(t,n),8}}class S extends i{constructor(t){super(8,t)}decode(t,e){return void 0===e&&(e=0),t.readDoubleBE(e)}encode(t,e,n){return void 0===n&&(n=0),e.writeDoubleBE(t,n),8}}class x extends i{constructor(t,e,n){if(!(t instanceof i))throw new TypeError("elementLayout must be a Layout");if(!(e instanceof s&&e.isCount()||Number.isInteger(e)&&0<=e))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let r=-1;!(e instanceof s)&&0<t.span&&(r=e*t.span),super(r,n),this.elementLayout=t,this.count=e}getSpan(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);let n=0,r=this.count;if(r instanceof s&&(r=r.decode(t,e)),0<this.elementLayout.span)n=r*this.elementLayout.span;else{let i=0;for(;i<r;)n+=this.elementLayout.getSpan(t,e+n),++i}return n}decode(t,e){void 0===e&&(e=0);const n=[];let r=0,i=this.count;for(i instanceof s&&(i=i.decode(t,e));r<i;)n.push(this.elementLayout.decode(t,e)),e+=this.elementLayout.getSpan(t,e),r+=1;return n}encode(t,e,n){void 0===n&&(n=0);const r=this.elementLayout,i=t.reduce(((t,i)=>t+r.encode(i,e,n+t)),0);return this.count instanceof s&&this.count.encode(t.length,e,n),i}}class I extends i{constructor(t,e,n){if(!Array.isArray(t)||!t.reduce(((t,e)=>t&&e instanceof i),!0))throw new TypeError("fields must be array of Layout instances");"boolean"===typeof e&&void 0===n&&(n=e,e=void 0);for(const i of t)if(0>i.span&&void 0===i.property)throw new Error("fields cannot contain unnamed variable-length layout");let r=-1;try{r=t.reduce(((t,e)=>t+e.getSpan()),0)}catch(o){}super(r,e),this.fields=t,this.decodePrefixes=!!n}getSpan(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);let n=0;try{n=this.fields.reduce(((n,r)=>{const i=r.getSpan(t,e);return e+=i,n+i}),0)}catch(r){throw new RangeError("indeterminate span")}return n}decode(t,e){void 0===e&&(e=0);const n=this.makeDestinationObject();for(const r of this.fields)if(void 0!==r.property&&(n[r.property]=r.decode(t,e)),e+=r.getSpan(t,e),this.decodePrefixes&&t.length===e)break;return n}encode(t,e,n){void 0===n&&(n=0);const r=n;let i=0,o=0;for(const s of this.fields){let r=s.span;if(o=0<r?r:0,void 0!==s.property){const i=t[s.property];void 0!==i&&(o=s.encode(i,e,n),0>r&&(r=s.getSpan(e,n)))}i=n,n+=r}return i+o-r}fromArray(t){const e=this.makeDestinationObject();for(const n of this.fields)void 0!==n.property&&0<t.length&&(e[n.property]=t.shift());return e}layoutFor(t){if("string"!==typeof t)throw new TypeError("property must be string");for(const e of this.fields)if(e.property===t)return e}offsetOf(t){if("string"!==typeof t)throw new TypeError("property must be string");let e=0;for(const n of this.fields){if(n.property===t)return e;0>n.span?e=-1:0<=e&&(e+=n.span)}}}class A{constructor(t){this.property=t}decode(){throw new Error("UnionDiscriminator is abstract")}encode(){throw new Error("UnionDiscriminator is abstract")}}class E extends A{constructor(t,e){if(!(t instanceof s&&t.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");
1super(e||t.property||"variant"),this.layout=t}decode(t,e){return this.layout.decode(t,e)}encode(t,e,n){return this.layout.encode(t,e,n)}}class T extends i{constructor(t,e,n){const r=t instanceof u||t instanceof l;if(r)t=new E(new c(t));else if(t instanceof s&&t.isCount())t=new E(t);else if(!(t instanceof A))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===e&&(e=null),!(null===e||e instanceof i))throw new TypeError("defaultLayout must be null or a Layout");if(null!==e){if(0>e.span)throw new Error("defaultLayout must have constant span");void 0===e.property&&(e=e.replicate("content"))}let o=-1;e&&(o=e.span,0<=o&&r&&(o+=t.layout.span)),super(o,n),this.discriminator=t,this.usesPrefixDiscriminator=r,this.defaultLayout=e,this.registry={};let a=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(t){return a(t)},this.configGetSourceVariant=function(t){a=t.bind(this)}}getSpan(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);const n=this.getVariant(t,e);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(t,e)}defaultGetSourceVariant(t){if(t.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&t.hasOwnProperty(this.defaultLayout.property))return;const e=this.registry[t[this.discriminator.property]];if(e&&(!e.layout||t.hasOwnProperty(e.property)))return e}else for(const e in this.registry){const n=this.registry[e];if(t.hasOwnProperty(n.property))return n}throw new Error("unable to infer src variant")}decode(t,e){let n;void 0===e&&(e=0);const r=this.discriminator,i=r.decode(t,e);let o=this.registry[i];if(void 0===o){let s=0;o=this.defaultLayout,this.usesPrefixDiscriminator&&(s=r.layout.span),n=this.makeDestinationObject(),n[r.property]=i,n[o.property]=this.defaultLayout.decode(t,e+s)}else n=o.decode(t,e);return n}encode(t,e,n){void 0===n&&(n=0);const r=this.getSourceVariant(t);if(void 0===r){const r=this.discriminator,i=this.defaultLayout;let o=0;return this.usesPrefixDiscriminator&&(o=r.layout.span),r.encode(t[r.property],e,n),o+i.encode(t[i.property],e,n+o)}return r.encode(t,e,n)}addVariant(t,e,n){const r=new P(this,t,e,n);return this.registry[t]=r,r}getVariant(t,e){let n=t;return r.isBuffer(t)&&(void 0===e&&(e=0),n=this.discriminator.decode(t,e)),this.registry[n]}}class P extends i{constructor(t,e,n,r){if(!(t instanceof T))throw new TypeError("union must be a Union");if(!Number.isInteger(e)||0>e)throw new TypeError("variant must be a (non-negative) integer");if("string"===typeof n&&void 0===r&&(r=n,n=null),n){if(!(n instanceof i))throw new TypeError("layout must be a Layout");if(null!==t.defaultLayout&&0<=n.span&&n.span>t.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!==typeof r)throw new TypeError("variant must have a String property")}let o=t.span;0>t.span&&(o=n?n.span:0,0<=o&&t.usesPrefixDiscriminator&&(o+=t.discriminator.layout.span)),super(o,r),this.union=t,this.variant=e,this.layout=n||null}getSpan(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);let n=0;return this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),n+this.layout.getSpan(t,e+n)}decode(t,e){const n=this.makeDestinationObject();if(void 0===e&&(e=0),this!==this.union.getVariant(t,e))throw new Error("variant mismatch");let r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(t,e+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}encode(t,e,n){void 0===n&&(n=0);let r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!t.hasOwnProperty(this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,e,n);let i=r;if(this.layout&&(this.layout.encode(t[this.property],e,n+r),i+=this.layout.getSpan(e,n+r),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}fromArray(t){if(this.layout)return this.layout.fromArray(t)}}function C(t){return 0>t&&(t+=4294967296),t}class M extends i{constructor(t,e,n){if(!(t instanceof u||t instanceof l))throw new TypeError("word must be a UInt or UIntBE layout");if("string"===typeof e&&void 0===n&&(n=e,e=void 0),4<t.span)throw new RangeError("word cannot exceed 32 bits");super(t.span,n),this.word=t,this.msb=!!e,this.fields=[];let r=0;this._packedSetValue=function(t){return r=C(t),this},this._packedGetValue=function(){return r}}decode(t,e){const n=this.makeDestinationObject();void 0===e&&(e=0);const r=this.word.decode(t,e);this._packedSetValue(r);for(const i of this.fields)void 0!==i.property&&(n[i.property]=i.decode(r));return n}encode(t,e,n){void 0===n&&(n=0);const r=this.word.decode(e,n);this._packedSetValue(r);for(const i of this.fields)if(void 0!==i.property){const e=t[i.property];void 0!==e&&i.encode(e)}return this.word.encode(this._packedGetValue(),e,n)}addField(t,e){const n=new O(this,t,e);return this.fields.push(n),n}addBoolean(t){const e=new R(this,t);return this.fields.push(e),e}fieldFor(t){if("string"!==typeof t)throw new TypeError("property must be string");for(const e of this.fields)if(e.property===t)return e}}class O{constructor(t,e,n){if(!(t instanceof M))throw new TypeError("container must be a BitStructure");
1if(!Number.isInteger(e)||0>=e)throw new TypeError("bits must be positive integer");const r=8*t.span,i=t.fields.reduce(((t,e)=>t+e.bits),0);if(e+i>r)throw new Error("bits too long for span remainder ("+(r-i)+" of "+r+" remain)");this.container=t,this.bits=e,this.valueMask=(1<<e)-1,32===e&&(this.valueMask=4294967295),this.start=i,this.container.msb&&(this.start=r-i-e),this.wordMask=C(this.valueMask<<this.start),this.property=n}decode(){return C(this.container._packedGetValue()&this.wordMask)>>>this.start}encode(t){if(!Number.isInteger(t)||t!==C(t&this.valueMask))throw new TypeError(o("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const e=this.container._packedGetValue(),n=C(t<<this.start);this.container._packedSetValue(C(e&~this.wordMask)|n)}}class R extends O{constructor(t,e){super(t,1,e)}decode(t,e){return!!O.prototype.decode.call(this,t,e)}encode(t){return"boolean"===typeof t&&(t=+t),O.prototype.encode.call(this,t)}}class B extends i{constructor(t,e){if(!(t instanceof s&&t.isCount()||Number.isInteger(t)&&0<=t))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let n=-1;t instanceof s||(n=t),super(n,e),this.length=t}getSpan(t,e){let n=this.span;return 0>n&&(n=this.length.decode(t,e)),n}decode(t,e){void 0===e&&(e=0);let n=this.span;return 0>n&&(n=this.length.decode(t,e)),t.slice(e,e+n)}encode(t,e,n){let i=this.length;if(this.length instanceof s&&(i=t.length),!r.isBuffer(t)||i!==t.length)throw new TypeError(o("Blob.encode",this)+" requires (length "+i+") Buffer as src");if(n+i>e.length)throw new RangeError("encoding overruns Buffer");return e.write(t.toString("hex"),n,i,"hex"),this.length instanceof s&&this.length.encode(i,e,n),i}}class j extends i{constructor(t){super(-1,t)}getSpan(t,e){if(!r.isBuffer(t))throw new TypeError("b must be a Buffer");void 0===e&&(e=0);let n=e;for(;n<t.length&&0!==t[n];)n+=1;return 1+n-e}decode(t,e,n){void 0===e&&(e=0);let r=this.getSpan(t,e);return t.slice(e,e+r-1).toString("utf-8")}encode(t,e,n){void 0===n&&(n=0),"string"!==typeof t&&(t=t.toString());const i=new r(t,"utf8"),o=i.length;if(n+o>e.length)throw new RangeError("encoding overruns Buffer");return i.copy(e,n),e[n+o]=0,o+1}}class N extends i{constructor(t,e){if("string"===typeof t&&void 0===e&&(e=t,t=void 0),void 0===t)t=-1;else if(!Number.isInteger(t))throw new TypeError("maxSpan must be an integer");super(-1,e),this.maxSpan=t}getSpan(t,e){if(!r.isBuffer(t))throw new TypeError("b must be a Buffer");return void 0===e&&(e=0),t.length-e}decode(t,e,n){void 0===e&&(e=0);let r=this.getSpan(t,e);if(0<=this.maxSpan&&this.maxSpan<r)throw new RangeError("text length exceeds maxSpan");return t.slice(e,e+r).toString("utf-8")}encode(t,e,n){void 0===n&&(n=0),"string"!==typeof t&&(t=t.toString());const i=new r(t,"utf8"),o=i.length;if(0<=this.maxSpan&&this.maxSpan<o)throw new RangeError("text length exceeds maxSpan");if(n+o>e.length)throw new RangeError("encoding overruns Buffer");return i.copy(e,n),o}}class L extends i{constructor(t,e){super(0,e),this.value=t}decode(t,e,n){return this.value}encode(t,e,n){return 0}}e.ExternalLayout=s,e.GreedyCount=a,e.OffsetLayout=c,e.UInt=u,e.UIntBE=l,e.Int=h,e.IntBE=d,e.Float=w,e.FloatBE=_,e.Double=k,e.DoubleBE=S,e.Sequence=x,e.Structure=I,e.UnionDiscriminator=A,e.UnionLayoutDiscriminator=E,e.Union=T,e.VariantLayout=P,e.BitStructure=M,e.BitField=O,e.Boolean=R,e.Blob=B,e.CString=j,e.UTF8=N,e.Constant=L,e.greedy=(t,e)=>new a(t,e),e.offset=(t,e,n)=>new c(t,e,n),e.u8=t=>new u(1,t),e.u16=t=>new u(2,t),e.u24=t=>new u(3,t),e.u32=t=>new u(4,t),e.u40=t=>new u(5,t),e.u48=t=>new u(6,t),e.nu64=t=>new g(t),e.u16be=t=>new l(2,t),e.u24be=t=>new l(3,t),e.u32be=t=>new l(4,t),e.u40be=t=>new l(5,t),e.u48be=t=>new l(6,t),e.nu64be=t=>new y(t),e.s8=t=>new h(1,t),e.s16=t=>new h(2,t),e.s24=t=>new h(3,t),e.s32=t=>new h(4,t),e.s40=t=>new h(5,t),e.s48=t=>new h(6,t),e.ns64=t=>new b(t),e.s16be=t=>new d(2,t),e.s24be=t=>new d(3,t),e.s32be=t=>new d(4,t),e.s40be=t=>new d(5,t),e.s48be=t=>new d(6,t),e.ns64be=t=>new v(t),e.f32=t=>new w(t),e.f32be=t=>new _(t),e.f64=t=>new k(t),e.f64be=t=>new S(t),e.struct=(t,e,n)=>new I(t,e,n),e.bits=(t,e,n)=>new M(t,e,n),e.seq=(t,e,n)=>new x(t,e,n),e.union=(t,e,n)=>new T(t,e,n),e.unionLayoutDiscriminator=(t,e)=>new E(t,e),e.blob=(t,e)=>new B(t,e),e.cstr=t=>new j(t),e.utf8=(t,e)=>new N(t,e),e.const=(t,e)=>new L(t,e)},48764:function(t,e,n){"use strict";const r=n(79742),i=n(80645),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},e.INSPECT_MAX_BYTES=50;const s=2147483647;function a(t){if(t>
vendor: 9,479 bytes, line 1
1s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return u(t,e,n)}function u(t,e,n){if("string"===typeof t)return function(t,e){"string"===typeof e&&""!==e||(e="utf8");if(!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|m(t,e);let r=a(n);const i=r.write(t,e);i!==n&&(r=r.slice(0,i));return r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Z(t,Uint8Array)){const e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return d(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Z(t,ArrayBuffer)||t&&Z(t.buffer,ArrayBuffer))return f(t,e,n);if("undefined"!==typeof SharedArrayBuffer&&(Z(t,SharedArrayBuffer)||t&&Z(t.buffer,SharedArrayBuffer)))return f(t,e,n);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,n);const i=function(t){if(c.isBuffer(t)){const e=0|p(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!==typeof t.length||Y(t.length)?a(0):d(t);if("Buffer"===t.type&&Array.isArray(t.data))return d(t.data)}(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return l(t),a(t<0?0:0|p(t))}function d(t){const e=t.length<0?0:0|p(t.length),n=a(e);for(let r=0;r<e;r+=1)n[r]=255&t[r];return n}function f(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,c.prototype),r}function p(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function m(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Z(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(t).length;default:if(i)return r?-1:H(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return C(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return P(this,e,n);case"base64":return I(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function y(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,i){let o,s=1,a=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let r=-1;for(o=n;o<a;o++)if(u(t,o)===u(e,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===c)return r*s}else-1!==r&&(o-=o-r),r=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){let n=!0;for(let r=0;r<c;r++)if(u(t,o+r)!==u(e,r)){n=!1;break}if(n)return o}return-1}function w(t,e,n,r){n=Number(n)||0;const i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=e.length;let s;for(r>o/2&&(r=o/2),s=0;s<r;++s){const r=parseInt(e.substr(2*s,2),16);if(Y(r))return s;t[n+s]=r}return s}function _(t,e,n,r){return $(H(e,t.length-n),t,n,r)}function k(t,e,n,r){return $(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function S(t,e,n,r){return $(q(e),t,n,r)}function x(t,e,n,r){return $(function(t,e){let n,r,i;const o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function I(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function A(t,e,n){n=Math.min(t.length,n);const r=[];let i=e;for(;i<n;){const e=t[i];let o=null,s=e>239?4:e>223?3:e>191?2:1;if(i+s<=n){let n,r,a,c;switch(s){case 1:e<128&&(o=e);break;case 2:n=t[i+1],128===(192&n)&&(c=(31&e)<<6|63&n,c>127&&(o=c));break;case 3:n=t[i+1],r=t[i+2],128===(192&n)&&128===(192&r)&&(c=(15&e)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=t[i+1],r=t[i+2],a=t[i+3],128===(192&n)&&128===(192&r)&&128===(192&a)&&(c=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(t){const e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);let n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=E));return n}(r)}e.kMaxLength=s,c.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,n){return u(t,e,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,n){return function(t,e,n){return l(t),t<=0?a(t):void 0!==e?"string"===typeof n?a(t).fill(e,n):a(t).fill(e):a(t)}(t,e,n)},c.allocUnsafe=function(t){return h(t)},c.allocUnsafeSlow=function(t){return h(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(Z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),Z(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);let n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const r=c.allocUnsafe(e);let i=0;for(n=0;n<t.length;++n){let e=t[n];if(Z(e,Uint8Array))i+e.length>r.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,i)}i+=e.length}return r},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)y(this,e,e+1);return this},c.prototype.swap32=function(){const t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},c.prototype.swap64=function(){const t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},c.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?A(this,0,t):g.apply(this,arguments)}
vendor: 12,040 bytes, line 1
1,c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){let t="";const n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(t,e,n,r,i){if(Z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;let o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0);const a=Math.min(o,s),u=this.slice(r,i),l=t.slice(e,n);for(let c=0;c<a;++c)if(u[c]!==l[c]){o=u[c],s=l[c];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return _(this,t,e,n);case"ascii":case"latin1":case"binary":return k(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const E=4096;function T(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function P(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function C(t,e,n){const r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let i="";for(let o=e;o<n;++o)i+=X[t[o]];return i}function M(t,e,n){const r=t.slice(e,n);let i="";for(let o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function O(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function B(t,e,n,r,i){W(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,n}function j(t,e,n,r,i){W(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=s,s>>=8,t[n+2]=s,s>>=8,t[n+1]=s,s>>=8,t[n]=s,n+8}function N(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(t,e,n,r,o){return e=+e,n>>>=0,o||N(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function D(t,e,n,r,o){return e=+e,n>>>=0,o||N(t,0,n,8),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const r=this.subarray(t,e);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=this[t+--e],i=1;for(;e>0&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||O(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),c.prototype.readBigUInt64BE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),c.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||O(t,e,this.length);let r=e,i=1,o=this[t+--r];for(;r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return t>>>=0,e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||O(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||O(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),c.prototype.readBigInt64BE=J((function(t){G(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)})),c.prototype.readFloatLE=function(t,e){return t>>>=0,e||O(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||O(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||O(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||O(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){R(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){R(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=J((function(t,e=0){return B(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=J((function(t,e=0){return j(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=0,o=1,s=0;for(this[e]=255&t;++i<n&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=J((function(t,e=0){return B(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=J((function(t,e=0){return j(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(t,e,n){return L(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return L(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return D(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return D(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);const i=r-n;return this===t&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),i},c.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){const e=t.charCodeAt(0);("utf8"===r&&e<128||"latin1"===r)&&(t=e)}}else"number"===typeof t?t&=255:"boolean"===typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(i=e;i<n;++i)this[i]=t;else{const o=c.isBuffer(t)?t:c.from(t,r),s=o.length;
1if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<n-e;++i)this[i+e]=o[i%s]}return this};const z={};function F(t,e,n){z[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function U(t){let e="",n=t.length;const r="-"===t[0]?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function W(t,e,n,r,i,o){if(t>n||t<e){const r="bigint"===typeof e?"n":"";let i;throw i=o>3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new z.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,n){G(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||V(e,t.length-(n+1))}(r,i,o)}function G(t,e){if("number"!==typeof t)throw new z.ERR_INVALID_ARG_TYPE(e,"number",t)}function V(t,e,n){if(Math.floor(t)!==t)throw G(t,n),new z.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new z.ERR_BUFFER_OUT_OF_BOUNDS;throw new z.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=U(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=U(i)),i+="n"),r+=` It must be ${e}. Received ${i}`,r}),RangeError);const K=/[^+/0-9A-Za-z-_]/g;function H(t,e){let n;e=e||1/0;const r=t.length;let i=null;const o=[];for(let s=0;s<r;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function $(t,e,n,r){let i;for(i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function Z(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Y(t){return t!==t}const X=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function J(t){return"undefined"===typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},21924:function(t,e,n){"use strict";var r=n(40210),i=n(55559),o=i(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"===typeof n&&o(t,".prototype.")>-1?i(n):n}},55559:function(t,e,n){"use strict";var r=n(58612),i=n(40210),o=i("%Function.prototype.apply%"),s=i("%Function.prototype.call%"),a=i("%Reflect.apply%",!0)||r.call(s,o),c=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(d){u=null}t.exports=function(t){var e=a(r,s,arguments);if(c&&u){var n=c(e,"length");n.configurable&&u(e,"length",{value:1+l(0,t.length-(arguments.length-1))})}return e};var h=function(){return a(r,o,arguments)};u?u(t.exports,"apply",{value:h}):t.exports.apply=h},23204:function(t){"use strict";const e=(t,e)=>{if("string"!==typeof t&&!Array.isArray(t))throw new TypeError("Expected the input to be `string | string[]`");e=Object.assign({pascalCase:!1},e);if(t=Array.isArray(t)?t.map((t=>t.trim())).filter((t=>t.length)).join("-"):t.trim(),0===t.length)return"";if(1===t.length)return e.pascalCase?t.toUpperCase():t.toLowerCase();return t!==t.toLowerCase()&&(t=(t=>{let e=!1,n=!1,r=!1;for(let i=0;i<t.length;i++){const o=t[i];e&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(t=t.slice(0,i)+"-"+t.slice(i),e=!1,r=n,n=!0,i++):n&&r&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?(t=t.slice(0,i-1)+"-"+t.slice(i-1),r=n,n=!1,e=!0):(e=o.toLowerCase()===o&&o.toUpperCase()!==o,r=n,n=o.toUpperCase()===o&&o.toLowerCase()!==o)}return t})(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,((t,e)=>e.toUpperCase())).replace(/\d+(\w|$)/g,(t=>t.toUpperCase())),n=t,e.pascalCase?n.charAt(0).toUpperCase()+n.slice(1):n;var n};t.exports=e,t.exports.default=e},40452:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(98269),n(68214),n(90888),n(75109),function(){var t=o,e=t.lib.BlockCipher,n=t.algo,r=[],i=[],s=[],a=[],c=[],u=[],l=[],h=[],d=[],f=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,o=0;for(e=0;e<256;e++){var p=o^o<<1^o<<2^o<<3^o<<4;p=p>>>8^255&p^99,r[n]=p,i[p]=n;var m=t[n],g=t[m],y=t[g],b=257*t[p]^16843008*p;s[n]=b<<24|b>>>8,a[n]=b<<16|b>>>16,c[n]=b<<8|b>>>24,u[n]=b,b=16843009*y^65537*g^257*m^16843008*n,l[p]=b<<24|b>>>8,h[p]=b<<16|b>>>16,d[p]=b<<8|b>>>24,f[p]=b,n?(n=m^t[t[t[y^m]]],o^=t[t[o]]):n=o=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,i=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],s=0;s<i;s++)s<n?o[s]=e[s]:(u=o[s-1],s%n?n>6&&s%n==4&&(u=r[u>>>24]<<24|r[u>>>16&255]<<16|r[u>>>8&255]<<8|r[255&u]):(u=r[(u=u<<8|u>>>24)>>>24]<<24|r[u>>>16&255]<<16|r[u>>>8&255]<<8|r[255&u],u^=p[s/n|0]<<24),o[s]=o[s-n]^u);for(var a=this._invKeySchedule=[],c=0;c<i;c++){if(s=i-c,c%4)var u=o[s];else u=o[s-4];a[c]=c<4||s<=4?u:l[r[u>>>24]]^h[r[u>>>16&255]]^d[r[u>>>8&255]]^f[r[255&u]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,a,
vendor: 5,639 bytes, line 1
1c,u,r)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,l,h,d,f,i),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,o,s,a){for(var c=this._nRounds,u=t[e]^n[0],l=t[e+1]^n[1],h=t[e+2]^n[2],d=t[e+3]^n[3],f=4,p=1;p<c;p++){var m=r[u>>>24]^i[l>>>16&255]^o[h>>>8&255]^s[255&d]^n[f++],g=r[l>>>24]^i[h>>>16&255]^o[d>>>8&255]^s[255&u]^n[f++],y=r[h>>>24]^i[d>>>16&255]^o[u>>>8&255]^s[255&l]^n[f++],b=r[d>>>24]^i[u>>>16&255]^o[l>>>8&255]^s[255&h]^n[f++];u=m,l=g,h=y,d=b}m=(a[u>>>24]<<24|a[l>>>16&255]<<16|a[h>>>8&255]<<8|a[255&d])^n[f++],g=(a[l>>>24]<<24|a[h>>>16&255]<<16|a[d>>>8&255]<<8|a[255&u])^n[f++],y=(a[h>>>24]<<24|a[d>>>16&255]<<16|a[u>>>8&255]<<8|a[255&l])^n[f++],b=(a[d>>>24]<<24|a[u>>>16&255]<<16|a[l>>>8&255]<<8|a[255&h])^n[f++],t[e]=m,t[e+1]=g,t[e+2]=y,t[e+3]=b},keySize:8});t.AES=e._createHelper(m)}(),o.AES)}()},75109:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(90888),void(o.lib.Cipher||function(t){var e=o,n=e.lib,r=n.Base,i=n.WordArray,s=n.BufferedBlockAlgorithm,a=e.enc,c=(a.Utf8,a.Base64),u=e.algo.EvpKDF,l=n.Cipher=s.extend({cfg:r.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?v:y}return function(e){return{encrypt:function(n,r,i){return t(r).encrypt(e,n,r,i)},decrypt:function(n,r,i){return t(r).decrypt(e,n,r,i)}}}}()}),h=(n.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),e.mode={}),d=n.BlockCipherMode=r.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),f=h.CBC=function(){var e=d.extend();function n(e,n,r){var i,o=this._iv;o?(i=o,this._iv=t):i=this._prevBlock;for(var s=0;s<r;s++)e[n+s]^=i[s]}return e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize;n.call(this,t,e,i),r.encryptBlock(t,e),this._prevBlock=t.slice(e,e+i)}}),e.Decryptor=e.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize,o=t.slice(e,e+i);r.decryptBlock(t,e),n.call(this,t,e,i),this._prevBlock=o}}),e}(),p=(e.pad={}).Pkcs7={pad:function(t,e){for(var n=4*e,r=n-t.sigBytes%n,o=r<<24|r<<16|r<<8|r,s=[],a=0;a<r;a+=4)s.push(o);var c=i.create(s,r);t.concat(c)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},m=(n.BlockCipher=l.extend({cfg:l.cfg.extend({mode:f,padding:p}),reset:function(){var t;l.reset.call(this);var e=this.cfg,n=e.iv,r=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=r.createEncryptor:(t=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(r,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),n.CipherParams=r.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),g=(e.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;return(n?i.create([1398893684,1701076831]).concat(n).concat(e):e).toString(c)},parse:function(t){var e,n=c.parse(t),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(e=i.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:e})}},y=n.SerializableCipher=r.extend({cfg:r.extend({format:g}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var i=t.createEncryptor(n,r),o=i.finalize(e),s=i.cfg;return m.create({ciphertext:o,key:n,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),t.createDecryptor(n,r).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),b=(e.kdf={}).OpenSSL={execute:function(t,e,n,r){r||(r=i.random(8));var o=u.create({keySize:e+n}).compute(t,r),s=i.create(o.words.slice(e),4*n);return o.sigBytes=4*e,m.create({key:o,iv:s,salt:r})}},v=n.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:b}),encrypt:function(t,e,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,t.keySize,t.ivSize);r.iv=i.iv;var o=y.encrypt.call(this,t,e,i.key,r);return o.mixIn(i),o},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var i=r.kdf.execute(n,t.keySize,t.ivSize,e.salt);return r.iv=i.iv,y.decrypt.call(this,t,e,i.key,r)}})}()))}()},78249:function(t,e,n){t.exports=function(){var t=t||function(t,e){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(42480)}catch(g){}var i=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(g){}}
vendor: 4,151 bytes, line 1
1throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),s={},a=s.lib={},c=a.Base={extend:function(t){var e=o(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},u=a.WordArray=c.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||h).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var s=n[o>>>2]>>>24-o%4*8&255;e[r+o>>>2]|=s<<24-(r+o)%4*8}else for(var a=0;a<i;a+=4)e[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(i());return new u.init(e,t)}}),l=s.enc={},h=l.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new u.init(n,e/2)}},d=l.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new u.init(n,e)}},f=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(d.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return d.parse(unescape(encodeURIComponent(t)))}},p=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,i=r.words,o=r.sigBytes,s=this.blockSize,a=o/(4*s),c=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,l=t.min(4*c,o);if(c){for(var h=0;h<c;h+=s)this._doProcessBlock(i,h);n=i.splice(0,c),r.sigBytes-=l}return new u.init(n,l)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),m=(a.Hasher=p.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new m.HMAC.init(t,n).finalize(e)}}}),s.algo={});return s}(Math);return t}()},98269:function(t,e,n){!function(e,r){var i;t.exports=(i=n(78249),function(){var t=i,e=t.lib.WordArray;function n(t,n,r){for(var i=[],o=0,s=0;s<n;s++)if(s%4){var a=r[t.charCodeAt(s-1)]<<s%4*2|r[t.charCodeAt(s)]>>>6-s%4*2;i[o>>>2]|=a<<24-o%4*8,o++}return e.create(i,o)}t.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var i=[],o=0;o<n;o+=3)for(var s=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<n;a++)i.push(r.charAt(s>>>6*(3-a)&63));var c=r.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(t){var e=t.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var s=r.charAt(64);if(s){var a=t.indexOf(s);-1!==a&&(e=a)}return n(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/="}}(),i.enc.Base64)}()},43786:function(t,e,n){!function(e,r){var i;t.exports=(i=n(78249),function(){var t=i,e=t.lib.WordArray;function n(t,n,r){for(var i=[],o=0,s=0;s<n;s++)if(s%4){var a=r[t.charCodeAt(s-1)]<<s%4*2|r[t.charCodeAt(s)]>>>6-s%4*2;i[o>>>2]|=a<<24-o%4*8,o++}return e.create(i,o)}t.enc.Base64url={stringify:function(t,e=!0){var n=t.words,r=t.sigBytes,i=e?this._safe_map:this._map;t.clamp();for(var o=[],s=0;s<r;s+=3)for(var a=(n[s>>>2]>>>24-s%4*8&255)<<16|(n[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|n[s+2>>>2]>>>24-(s+2)%4*8&255,c=0;c<4&&s+.75*c<r;c++)o.push(i.charAt(a>>>6*(3-c)&63));var u=i.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(t,e=!0){var r=t.length,i=e?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var s=0;s<i.length;s++)o[i.charCodeAt(s)]=s}var a=i.charAt(64);if(a){var c=t.indexOf(a);-1!==c&&(r=c)}return n(t,r,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),i.enc.Base64url)}()},50298:function(t,e,n){!function(e,r){var i;t.exports=(i=n(78249),function(){var t=i,e=t.lib.WordArray,n=t.enc;function r(t){return t<<8&4278255360|t>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i+=2){var o=e[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var n=t.length,r=[],i=0;i<n;i++)r[i>>>1]|=t.charCodeAt(i)<<16-i%2*16;return e.create(r,2*n)}},n.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],o=0;o<n;o+=2){var s=r(e[o>>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(s))}return i.join("")},parse:function(t){for(var n=t.length,i=[],o=0;o<n;o++)i[o>>>1]|=r(t.charCodeAt(o)<<16-o%2*16);return e.create(i,2*n)}}}(),i.enc.Utf16)}()},90888:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(62783),n(89824),function(){var t=o,e=t.lib,n=e.Base,r=e.WordArray,i=t.algo,s=i.MD5,a=i.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:s,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n,i=this.cfg,o=i.hasher.create(),s=r.create(),a=s.words,c=i.keySize,u=i.iterations;a.length<c;){n&&o.update(n),n=o.update(t).finalize(e),o.reset();for(var l=1;l<u;l++)n=o.finalize(n),o.reset();s.concat(n)}return s.sigBytes=4*c,s}});t.EvpKDF=function(t,e,n){return a.create(n).compute(t,e)}}(),o.EvpKDF)}()},42209:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(75109),function(t){var e=o,n=e.lib.CipherParams,r=e.enc.Hex;e.format.Hex={stringify:function(t){return t.ciphertext.toString(r)},parse:function(t){var e=r.parse(t);return n.create({ciphertext:e})}}}(),o.format.Hex)}()},89824:function(t,e,n){!function(e,r){var i;t.exports=(i=n(78249),void function(){var t=i,e=t.lib.Base,n=t.enc.Utf8;t.algo.HMAC=e.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=n.parse(e));var r=t.blockSize,i=4*r;e.sigBytes>i&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),s=this._iKey=e.clone(),a=o.words,c=s.words,u=0;u<r;u++)a[u]^=1549556828,c[u]^=909522486;o.sigBytes=s.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(n))}})}())}()},81354:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(64938),n(4433),n(50298),n(98269),n(43786),n(68214),n(62783),n(52153),n(87792),n(70034),n(17460),n(13327),n(30706),n(89824),n(2112),n(90888),n(75109),n(8568),n(74242),n(59968),n(27660),n(31148),n(43615),n(92807),n(71077),n(56475),n(16991),n(42209),n(40452),n(94253),n(51857),n(84454),n(93974),o)}()},4433:function(t,e,n){!function(e,r){var i;t.exports=(i=n(78249),function(){if("function"==typeof ArrayBuffer){var t=i.lib.WordArray,e=t.init,n=t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var n=t.byteLength,r=[],i=0;i<n;i++)r[i>>>2]|=t[i]<<24-i%4*8;e.call(this,r,n)}
vendor: 26,532 bytes, line 1
1else e.apply(this,arguments)};n.prototype=t}}(),i.lib.WordArray)}()},68214:function(t,e,n){!function(e,r){var i;t.exports=(i=n(78249),function(t){var e=i,n=e.lib,r=n.WordArray,o=n.Hasher,s=e.algo,a=[];!function(){for(var e=0;e<64;e++)a[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=s.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,s=t[e+0],c=t[e+1],f=t[e+2],p=t[e+3],m=t[e+4],g=t[e+5],y=t[e+6],b=t[e+7],v=t[e+8],w=t[e+9],_=t[e+10],k=t[e+11],S=t[e+12],x=t[e+13],I=t[e+14],A=t[e+15],E=o[0],T=o[1],P=o[2],C=o[3];E=u(E,T,P,C,s,7,a[0]),C=u(C,E,T,P,c,12,a[1]),P=u(P,C,E,T,f,17,a[2]),T=u(T,P,C,E,p,22,a[3]),E=u(E,T,P,C,m,7,a[4]),C=u(C,E,T,P,g,12,a[5]),P=u(P,C,E,T,y,17,a[6]),T=u(T,P,C,E,b,22,a[7]),E=u(E,T,P,C,v,7,a[8]),C=u(C,E,T,P,w,12,a[9]),P=u(P,C,E,T,_,17,a[10]),T=u(T,P,C,E,k,22,a[11]),E=u(E,T,P,C,S,7,a[12]),C=u(C,E,T,P,x,12,a[13]),P=u(P,C,E,T,I,17,a[14]),E=l(E,T=u(T,P,C,E,A,22,a[15]),P,C,c,5,a[16]),C=l(C,E,T,P,y,9,a[17]),P=l(P,C,E,T,k,14,a[18]),T=l(T,P,C,E,s,20,a[19]),E=l(E,T,P,C,g,5,a[20]),C=l(C,E,T,P,_,9,a[21]),P=l(P,C,E,T,A,14,a[22]),T=l(T,P,C,E,m,20,a[23]),E=l(E,T,P,C,w,5,a[24]),C=l(C,E,T,P,I,9,a[25]),P=l(P,C,E,T,p,14,a[26]),T=l(T,P,C,E,v,20,a[27]),E=l(E,T,P,C,x,5,a[28]),C=l(C,E,T,P,f,9,a[29]),P=l(P,C,E,T,b,14,a[30]),E=h(E,T=l(T,P,C,E,S,20,a[31]),P,C,g,4,a[32]),C=h(C,E,T,P,v,11,a[33]),P=h(P,C,E,T,k,16,a[34]),T=h(T,P,C,E,I,23,a[35]),E=h(E,T,P,C,c,4,a[36]),C=h(C,E,T,P,m,11,a[37]),P=h(P,C,E,T,b,16,a[38]),T=h(T,P,C,E,_,23,a[39]),E=h(E,T,P,C,x,4,a[40]),C=h(C,E,T,P,s,11,a[41]),P=h(P,C,E,T,p,16,a[42]),T=h(T,P,C,E,y,23,a[43]),E=h(E,T,P,C,w,4,a[44]),C=h(C,E,T,P,S,11,a[45]),P=h(P,C,E,T,A,16,a[46]),E=d(E,T=h(T,P,C,E,f,23,a[47]),P,C,s,6,a[48]),C=d(C,E,T,P,b,10,a[49]),P=d(P,C,E,T,I,15,a[50]),T=d(T,P,C,E,g,21,a[51]),E=d(E,T,P,C,S,6,a[52]),C=d(C,E,T,P,p,10,a[53]),P=d(P,C,E,T,_,15,a[54]),T=d(T,P,C,E,c,21,a[55]),E=d(E,T,P,C,v,6,a[56]),C=d(C,E,T,P,A,10,a[57]),P=d(P,C,E,T,y,15,a[58]),T=d(T,P,C,E,x,21,a[59]),E=d(E,T,P,C,m,6,a[60]),C=d(C,E,T,P,k,10,a[61]),P=d(P,C,E,T,f,15,a[62]),T=d(T,P,C,E,w,21,a[63]),o[0]=o[0]+E|0,o[1]=o[1]+T|0,o[2]=o[2]+P|0,o[3]=o[3]+C|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/4294967296),s=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),e.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return a},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function u(t,e,n,r,i,o,s){var a=t+(e&n|~e&r)+i+s;return(a<<o|a>>>32-o)+e}function l(t,e,n,r,i,o,s){var a=t+(e&r|n&~r)+i+s;return(a<<o|a>>>32-o)+e}function h(t,e,n,r,i,o,s){var a=t+(e^n^r)+i+s;return(a<<o|a>>>32-o)+e}function d(t,e,n,r,i,o,s){var a=t+(n^(e|~r))+i+s;return(a<<o|a>>>32-o)+e}e.MD5=o._createHelper(c),e.HmacMD5=o._createHmacHelper(c)}(Math),i.MD5)}()},8568:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(75109),o.mode.CFB=function(){var t=o.lib.BlockCipherMode.extend();function e(t,e,n,r){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var s=0;s<n;s++)t[e+s]^=i[s]}return t.Encryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize;e.call(this,t,n,i,r),this._prevBlock=t.slice(n,n+i)}}),t.Decryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,o=t.slice(n,n+i);e.call(this,t,n,i,r),this._prevBlock=o}}),t}(),o.mode.CFB)}()},59968:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(75109),o.mode.CTRGladman=function(){var t=o.lib.BlockCipherMode.extend();function e(t){if(255===(t>>24&255)){var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}function n(t){return 0===(t[0]=e(t[0]))&&(t[1]=e(t[1])),t}var r=t.Encryptor=t.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),n(s);var a=s.slice(0);r.encryptBlock(a,0);for(var c=0;c<i;c++)t[e+c]^=a[c]}});return t.Decryptor=r,t}(),o.mode.CTRGladman)}()},74242:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(75109),o.mode.CTR=function(){var t=o.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var s=o.slice(0);n.encryptBlock(s,0),o[r-1]=o[r-1]+1|0;for(var a=0;a<r;a++)t[e+a]^=s[a]}});return t.Decryptor=e,t}(),o.mode.CTR)}()},31148:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(75109),o.mode.ECB=function(){var t=o.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),t.Decryptor=t.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),t}(),o.mode.ECB)}()},27660:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(75109),o.mode.OFB=function(){var t=o.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var s=0;s<r;s++)t[e+s]^=o[s]}});return t.Decryptor=e,t}(),o.mode.OFB)}()},43615:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(75109),o.pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,r=4*e,i=r-n%r,o=n+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},o.pad.Ansix923)}()},92807:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(75109),o.pad.Iso10126={pad:function(t,e){var n=4*e,r=n-t.sigBytes%n;t.concat(o.lib.WordArray.random(r-1)).concat(o.lib.WordArray.create([r<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},o.pad.Iso10126)}()},71077:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(75109),o.pad.Iso97971={pad:function(t,e){t.concat(o.lib.WordArray.create([2147483648],1)),o.pad.ZeroPadding.pad(t,e)},unpad:function(t){o.pad.ZeroPadding.unpad(t),t.sigBytes--}},o.pad.Iso97971)}()},16991:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(75109),o.pad.NoPadding={pad:function(){},unpad:function(){}},o.pad.NoPadding)}()},56475:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(75109),o.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},o.pad.ZeroPadding)}()},2112:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(62783),n(89824),function(){var t=o,e=t.lib,n=e.Base,r=e.WordArray,i=t.algo,s=i.SHA1,a=i.HMAC,c=i.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:s,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,i=a.create(n.hasher,t),o=r.create(),s=r.create([1]),c=o.words,u=s.words,l=n.keySize,h=n.iterations;c.length<l;){var d=i.update(e).finalize(s);i.reset();for(var f=d.words,p=f.length,m=d,g=1;g<h;g++){m=i.finalize(m),i.reset();for(var y=m.words,b=0;b<p;b++)f[b]^=y[b]}o.concat(d),u[0]++}return o.sigBytes=4*l,o}});t.PBKDF2=function(t,e,n){return c.create(n).compute(t,e)}}(),o.PBKDF2)}()},93974:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(98269),n(68214),n(90888),n(75109),function(){var t=o,e=t.lib.StreamCipher,n=t.algo,r=[],i=[],s=[],a=n.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(e){var o=e.words,s=o[0],a=o[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=u>>>16|4294901760&l,d=l<<16|65535&u;for(r[0]^=u,r[1]^=h,r[2]^=l,r[3]^=d,r[4]^=u,r[5]^=h,r[6]^=l,r[7]^=d,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),t[e+i]^=r[i]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)i[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<i[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<i[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<i[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<i[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<i[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<i[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<i[6]>>>0?1:0)|0,this._b=e[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],o=65535&r,a=r>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,u=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=c^u}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=e._createHelper(a)}(),o.RabbitLegacy)}()},84454:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(98269),n(68214),n(90888),n(75109),function(){var t=o,e=t.lib.StreamCipher,n=t.algo,r=[],i=[],s=[],a=n.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var o=e.words,s=o[0],a=o[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=u>>>16|4294901760&l,d=l<<16|65535&u;for(i[0]^=u,i[1]^=h,i[2]^=l,i[3]^=d,i[4]^=u,i[5]^=h,i[6]^=l,i[7]^=d,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),t[e+i]^=r[i]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)i[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<i[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<i[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<i[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<i[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<i[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<i[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<i[6]>>>0?1:0)|0,this._b=e[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],o=65535&r,a=r>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,u=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=c^u}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=e._createHelper(a)}(),o.Rabbit)}()},51857:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(98269),n(68214),n(90888),n(75109),function(){var t=o,e=t.lib.StreamCipher,n=t.algo,r=n.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var o=0;i<256;i++){var s=i%n,a=e[s>>>2]>>>24-s%4*8&255;o=(o+r[i]+a)%256;var c=r[i];r[i]=r[o],r[o]=c}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var t=this._S,e=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[n],t[n]=o,r|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,r}t.RC4=e._createHelper(r);var s=n.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)i.call(this)}});t.RC4Drop=e._createHelper(s)}(),o.RC4)}()},30706:function(t,e,n){!function(e,r){var i;t.exports=(i=n(78249),function(t){var e=i,n=e.lib,r=n.WordArray,o=n.Hasher,s=e.algo,a=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=r.create([0,1518500249,1859775393,2400959708,2840853838]),d=r.create([1352829926,1548603684,1836072691,2053994217,0]),f=s.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,s,f,w,_,k,S,x,I,A,E,T=this._hash.words,P=h.words,C=d.words,M=a.words,O=c.words,R=u.words,B=l.words;for(k=o=T[0],S=s=T[1],x=f=T[2],I=w=T[3],A=_=T[4],n=0;n<80;n+=1)E=o+t[e+M[n]]|0,E+=n<16?p(s,f,w)+P[0]:n<32?m(s,f,w)+P[1]:n<48?g(s,f,w)+P[2]:n<64?y(s,f,w)+P[3]:b(s,f,w)+P[4],E=(E=v(E|=0,R[n]))+_|0,o=_,_=w,w=v(f,10),f=s,s=E,E=k+t[e+O[n]]|0,E+=n<16?b(S,x,I)+C[0]:n<32?y(S,x,I)+C[1]:n<48?g(S,x,I)+C[2]:n<64?m(S,x,I)+C[3]:p(S,x,I)+C[4],E=(E=v(E|=0,B[n]))+A|0,k=A,A=I,I=v(x,10),x=S,S=E;E=T[1]+f+I|0,T[1]=T[2]+w+A|0,T[2]=T[3]+_+k|0,T[3]=T[4]+o+S|0,T[4]=T[0]+s+x|0,T[0]=E},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,o=i.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,n){return t^e^n}function m(t,e,n){return t&e|~t&n}function g(t,e,n){return(t|~e)^n}function y(t,e,n){return t&n|e&~n}function b(t,e,n){return t^(e|~n)}function v(t,e){return t<<e|t>>>32-e}e.RIPEMD160=o._createHelper(f),e.HmacRIPEMD160=o._createHmacHelper(f)}(Math),i.RIPEMD160)}()},62783:function(t,e,n){!function(e,r){var i;t.exports=(i=n(78249),function(){var t=i,e=t.lib,n=e.WordArray,r=e.Hasher,o=t.algo,s=[],a=o.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],c=n[4],u=0;u<80;u++){if(u<16)s[u]=0|t[e+u];else{var l=s[u-3]^s[u-8]^s[u-14]^s[u-16];s[u]=l<<1|l>>>31}var h=(r<<5|r>>>27)+c+s[u];h+=u<20?1518500249+(i&o|~i&a):u<40?1859775393+(i^o^a):u<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,c=a,a=o,o=i<<30|i>>>2,i=r,r=h}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});t.SHA1=r._createHelper(a),t.HmacSHA1=r._createHmacHelper(a)}(),i.SHA1)}()},87792:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(52153),function(){var t=o,e=t.lib.WordArray,n=t.algo,r=n.SHA256,i=n.SHA224=r.extend({_doReset:function(){this._hash=new e.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=r._doFinalize.call(this);return t.sigBytes-=4,t}});t.SHA224=r._createHelper(i),t.HmacSHA224=r._createHmacHelper(i)}(),o.SHA224)}()},52153:function(t,e,n){!function(e,r){var i;t.exports=(i=n(78249),function(t){var e=i,n=e.lib,r=n.WordArray,o=n.Hasher,s=e.algo,a=[],c=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(a[i]=n(t.pow(r,.5))),c[i]=n(t.pow(r,1/3)),i++),r++}();var u=[],l=s.SHA256=o.extend({_doReset:function(){this._hash=new r.init(a.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],l=n[5],h=n[6],d=n[7],f=0;f<64;f++){if(f<16)u[f]=0|t[e+f];else{var p=u[f-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=u[f-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;u[f]=m+u[f-7]+y+u[f-16]}var b=r&i^r&o^i&o,v=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&l^~a&h)+c[f]+u[f];d=h,h=l,l=a,a=s+w|0,s=o,o=i,i=r,r=w+(v+b)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+l|0,n[6]=n[6]+h|0,n[7]=n[7]+d|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(l),e.HmacSHA256=o._createHmacHelper(l)}(Math),i.SHA256)}()},13327:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(64938),function(t){var e=o,n=e.lib,r=n.WordArray,i=n.Hasher,s=e.x64.Word,a=e.algo,c=[],u=[],l=[];!function(){for(var t=1,e=0,n=0;n<24;n++){c[t+5*e]=(n+1)*(n+2)/2%64;var r=(2*t+3*e)%5;t=e%5,e=r}for(t=0;t<5;t++)for(e=0;e<5;e++)u[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,o=0;o<24;o++){for(var a=0,h=0,d=0;d<7;d++){if(1&i){var f=(1<<d)-1;f<32?h^=1<<f:a^=1<<f-32}128&i?i=i<<1^113:i<<=1}l[o]=s.create(a,h)}}();var h=[];!function(){for(var t=0;t<25;t++)h[t]=s.create()}();var d=a.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var o=t[e+2*i],s=t[e+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(T=n[i]).high^=s,T.low^=o}for(var a=0;a<24;a++){for(var d=0;d<5;d++){for(var f=0,p=0,m=0;m<5;m++)f^=(T=n[d+5*m]).high,p^=T.low;var g=h[d];g.high=f,g.low=p}for(d=0;d<5;d++){var y=h[(d+4)%5],b=h[(d+1)%5],v=b.high,w=b.low;for(f=y.high^(v<<1|w>>>31),p=y.low^(w<<1|v>>>31),m=0;m<5;m++)(T=n[d+5*m]).high^=f,T.low^=p}for(var _=1;_<25;_++){var k=(T=n[_]).high,S=T.low,x=c[_];x<32?(f=k<<x|S>>>32-x,p=S<<x|k>>>32-x):(f=S<<x-32|k>>>64-x,p=k<<x-32|S>>>64-x);var I=h[u[_]];I.high=f,I.low=p}var A=h[0],E=n[0];for(A.high=E.high,A.low=E.low,d=0;d<5;d++)for(m=0;m<5;m++){var T=n[_=d+5*m],P=h[_],C=h[(d+1)%5+5*m],M=h[(d+2)%5+5*m];T.high=P.high^~C.high&M.high,T.low=P.low^~C.low&M.low}T=n[0];var O=l[a];T.high^=O.high,T.low^=O.low}},_doFinalize:function(){var e=this._data,n=e.words,i=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(t.ceil((i+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,c=a/8,u=[],l=0;l<c;l++){var h=s[l],d=h.high,f=h.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),u.push(f),u.push(d)}return new r.init(u,a)},clone:function(){for(var t=i.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});e.SHA3=i._createHelper(d),e.HmacSHA3=i._createHmacHelper(d)}(Math),o.SHA3)}()},17460:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(64938),n(70034),function(){var t=o,e=t.x64,n=e.Word,r=e.WordArray,i=t.algo,s=i.SHA512,a=i.SHA384=s.extend({_doReset:function(){this._hash=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var t=s._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=s._createHelper(a),t.HmacSHA384=s._createHmacHelper(a)}(),o.SHA384)}()},70034:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(64938),function(){var t=o,e=t.lib.Hasher,n=t.x64,r=n.Word,i=n.WordArray,s=t.algo;function a(){return r.create.apply(r,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],u=[];!function(){for(var t=0;t<80;t++)u[t]=a()}();var l=s.SHA512=e.extend({_doReset:function(){this._hash=new i.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],l=n[5],h=n[6],d=n[7],f=r.high,p=r.low,m=i.high,g=i.low,y=o.high,b=o.low,v=s.high,w=s.low,_=a.high,k=a.low,S=l.high,x=l.low,I=h.high,A=h.low,E=d.high,T=d.low,P=f,C=p,M=m,O=g,R=y,B=b,j=v,N=w,L=_,D=k,z=S,F=x,U=I,W=A,G=E,V=T,K=0;K<80;K++){var H,q,$=u[K];if(K<16)q=$.high=0|t[e+2*K],H=$.low=0|t[e+2*K+1];else{var Z=u[K-15],Y=Z.high,X=Z.low,J=(Y>>>1|X<<31)^(Y>>>8|X<<24)^Y>>>7,Q=(X>>>1|Y<<31)^(X>>>8|Y<<24)^(X>>>7|Y<<25),tt=u[K-2],et=tt.high,nt=tt.low,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,it=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),ot=u[K-7],st=ot.high,at=ot.low,ct=u[K-16],ut=ct.high,lt=ct.low;q=(q=(q=J+st+((H=Q+at)>>>0<Q>>>0?1:0))+rt+((H+=it)>>>0<it>>>0?1:0))+ut+((H+=lt)>>>0<lt>>>0?1:0),$.high=q,$.low=H}var ht,dt=L&z^~L&U,ft=D&F^~D&W,pt=P&M^P&R^M&R,mt=C&O^C&B^O&B,gt=(P>>>28|C<<4)^(P<<30|C>>>2)^(P<<25|C>>>7),yt=(C>>>28|P<<4)^(C<<30|P>>>2)^(C<<25|P>>>7),bt=(L>>>14|D<<18)^(L>>>18|D<<14)^(L<<23|D>>>9),vt=(D>>>14|L<<18)^(D>>>18|L<<14)^(D<<23|L>>>9),wt=c[K],_t=wt.high,kt=wt.low,St=G+bt+((ht=V+vt)>>>0<V>>>0?1:0),xt=yt+mt;G=U,V=W,U=z,W=F,z=L,F=D,L=j+(St=(St=(St=St+dt+((ht+=ft)>>>0<ft>>>0?1:0))+_t+((ht+=kt)>>>0<kt>>>0?1:0))+q+((ht+=H)>>>0<H>>>0?1:0))+((D=N+ht|0)>>>0<N>>>0?1:0)|0,j=R,N=B,R=M,B=O,M=P,O=C,P=St+(gt+pt+(xt>>>0<yt>>>0?1:0))+((C=ht+xt|0)>>>0<ht>>>0?1:0)|0}p=r.low=p+C,r.high=f+P+(p>>>0<C>>>0?1:0),g=i.low=g+O,i.high=m+M+(g>>>0<O>>>0?1:0),b=o.low=b+B,o.high=y+R+(b>>>0<B>>>0?1:0),w=s.low=w+N,s.high=v+j+(w>>>0<N>>>0?1:0),k=a.low=k+D,a.high=_+L+(k>>>0<D>>>0?1:0),x=l.low=x+F,l.high=S+z+(x>>>0<F>>>0?1:0),A=h.low=A+W,h.high=I+U+(A>>>0<W>>>0?1:0),T=d.low=T+V,d.high=E+G+(T>>>0<V>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(r+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(l),t.HmacSHA512=e._createHmacHelper(l)}(),o.SHA512)}()},94253:function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(78249),n(98269),n(68214),n(90888),n(75109),function(){var t=o,e=t.lib,n=e.WordArray,r=e.BlockCipher,i=t.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u
vendor: 7,629 bytes, line 1
1=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
1l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=i.DES=r.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var r=s[n]-1;e[n]=t[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var u=i[o]=[],l=c[o];for(n=0;n<24;n++)u[n/6|0]|=e[(a[n]-1+l)%28]<<31-n%6,u[4+(n/6|0)]|=e[28+(a[n+24]-1+l)%28]<<31-n%6;for(u[0]=u[0]<<1|u[0]>>>31,n=1;n<7;n++)u[n]=u[n]>>>4*(n-1)+3;u[7]=u[7]<<5|u[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=i[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],d.call(this,4,252645135),d.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),d.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],o=this._lBlock,s=this._rBlock,a=0,c=0;c<8;c++)a|=u[c][((s^i[c])&l[c])>>>0];this._lBlock=s,this._rBlock=o^a}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function f(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}t.DES=r._createHelper(h);var p=i.TripleDES=r.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),r=t.length<4?t.slice(0,2):t.slice(2,4),i=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=h.createEncryptor(n.create(e)),this._des2=h.createEncryptor(n.create(r)),this._des3=h.createEncryptor(n.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=r._createHelper(p)}(),o.TripleDES)}()},64938:function(t,e,n){!function(e,r){var i;t.exports=(i=n(78249),function(t){var e=i,n=e.lib,r=n.Base,o=n.WordArray,s=e.x64={};s.Word=r.extend({init:function(t,e){this.high=t,this.low=e}}),s.WordArray=r.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var t=this.words,e=t.length,n=[],r=0;r<e;r++){var i=t[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var t=r.clone.call(this),e=t.words=this.words.slice(0),n=e.length,i=0;i<n;i++)e[i]=e[i].clone();return t}})}(),i)}()},11227:function(t,e,n){var r=n(34155);e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(r++,"%c"===t&&(i=r))})),e.splice(i,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(n){}!t&&"undefined"!==typeof r&&"env"in r&&(t=r.env.DEBUG);return t},e.useColors=function(){if("undefined"!==typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;
1if("undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=n(82447)(e);const{formatters:i}=t.exports;i.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},82447:function(t,e,n){t.exports=function(t){function e(t){let n,i,o,s=null;function a(...t){if(!a.enabled)return;const r=a,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,t[0]=e.coerce(t[0]),"string"!==typeof t[0]&&t.unshift("%O");let s=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";s++;const o=e.formatters[i];if("function"===typeof o){const e=t[s];n=o.call(r,e),t.splice(s,1),s--}return n})),e.formatArgs.call(r,t);(r.log||e.log).apply(r,t)}return a.namespace=t,a.useColors=e.useColors(),a.color=e.selectColor(t),a.extend=r,a.destroy=e.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==e.namespaces&&(i=e.namespaces,o=e.enabled(t)),o),set:t=>{s=t}}),"function"===typeof e.init&&e.init(a),a}function r(t,n){const r=e(this.namespace+("undefined"===typeof n?":":n)+t);return r.log=this.log,r}function i(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){const t=[...e.names.map(i),...e.skips.map(i).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let n;e.save(t),e.namespaces=t,e.names=[],e.skips=[];const r=("string"===typeof t?t:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.slice(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(57824),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((n=>{e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e}},4289:function(t,e,n){"use strict";var r=n(82215),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=Object.defineProperty,c=n(31044)(),u=a&&c,l=function(t,e,n,r){var i;(!(e in t)||"function"===typeof(i=r)&&"[object Function]"===o.call(i)&&r())&&(u?a(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},h=function(t,e){var n=arguments.length>2?arguments[2]:{},o=r(e);
vendor: 4,057 bytes, line 1
1i&&(o=s.call(o,Object.getOwnPropertySymbols(e)));for(var a=0;a<o.length;a+=1)l(t,o[a],e[o[a]],n[o[a]])};h.supportsDescriptors=!!u,t.exports=h},86266:function(t,e,n){"use strict";var r=e;r.version=n(18597).i8,r.utils=n(80953),r.rand=n(29931),r.curve=n(88254),r.curves=n(45427),r.ec=n(57954),r.eddsa=n(65980)},4918:function(t,e,n){"use strict";var r=n(73785),i=n(80953),o=i.getNAF,s=i.getJSF,a=i.assert;function c(t,e){this.type=t,this.p=new r(e.p,16),this.red=e.prime?r.red(e.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=e.n&&new r(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(t,e){a(t.precomputed);var n=t._getDoubles(),r=o(e,1,this._bitLength),i=(1<<n.step+1)-(n.step%2===0?2:1);i/=3;var s,c,u=[];for(s=0;s<r.length;s+=n.step){c=0;for(var l=s+n.step-1;l>=s;l--)c=(c<<1)+r[l];u.push(c)}for(var h=this.jpoint(null,null,null),d=this.jpoint(null,null,null),f=i;f>0;f--){for(s=0;s<u.length;s++)(c=u[s])===f?d=d.mixedAdd(n.points[s]):c===-f&&(d=d.mixedAdd(n.points[s].neg()));h=h.add(d)}return h.toP()},c.prototype._wnafMul=function(t,e){var n=4,r=t._getNAFPoints(n);n=r.wnd;for(var i=r.points,s=o(e,n,this._bitLength),c=this.jpoint(null,null,null),u=s.length-1;u>=0;u--){for(var l=0;u>=0&&0===s[u];u--)l++;if(u>=0&&l++,c=c.dblp(l),u<0)break;var h=s[u];a(0!==h),c="affine"===t.type?h>0?c.mixedAdd(i[h-1>>1]):c.mixedAdd(i[-h-1>>1].neg()):h>0?c.add(i[h-1>>1]):c.add(i[-h-1>>1].neg())}return"affine"===t.type?c.toP():c},c.prototype._wnafMulAdd=function(t,e,n,r,i){var a,c,u,l=this._wnafT1,h=this._wnafT2,d=this._wnafT3,f=0;for(a=0;a<r;a++){var p=(u=e[a])._getNAFPoints(t);l[a]=p.wnd,h[a]=p.points}for(a=r-1;a>=1;a-=2){var m=a-1,g=a;if(1===l[m]&&1===l[g]){var y=[e[m],null,null,e[g]];0===e[m].y.cmp(e[g].y)?(y[1]=e[m].add(e[g]),y[2]=e[m].toJ().mixedAdd(e[g].neg())):0===e[m].y.cmp(e[g].y.redNeg())?(y[1]=e[m].toJ().mixedAdd(e[g]),y[2]=e[m].add(e[g].neg())):(y[1]=e[m].toJ().mixedAdd(e[g]),y[2]=e[m].toJ().mixedAdd(e[g].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],v=s(n[m],n[g]);for(f=Math.max(v[0].length,f),d[m]=new Array(f),d[g]=new Array(f),c=0;c<f;c++){var w=0|v[0][c],_=0|v[1][c];d[m][c]=b[3*(w+1)+(_+1)],d[g][c]=0,h[m]=y}}else d[m]=o(n[m],l[m],this._bitLength),d[g]=o(n[g],l[g],this._bitLength),f=Math.max(d[m].length,f),f=Math.max(d[g].length,f)}var k=this.jpoint(null,null,null),S=this._wnafT4;for(a=f;a>=0;a--){for(var x=0;a>=0;){var I=!0;for(c=0;c<r;c++)S[c]=0|d[c][a],0!==S[c]&&(I=!1);if(!I)break;x++,a--}if(a>=0&&x++,k=k.dblp(x),a<0)break;for(c=0;c<r;c++){var A=S[c];0!==A&&(A>0?u=h[c][A-1>>1]:A<0&&(u=h[c][-A-1>>1].neg()),k="affine"===u.type?k.mixedAdd(u):k.add(u))}}for(a=0;a<r;a++)h[a]=null;return i?k:k.toP()},c.BasePoint=u,u.prototype.eq=function(){throw new Error("Not implemented")},u.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(t,e){t=i.toArray(t,e);var n=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1===2*n)return 6===t[0]?a(t[t.length-1]%2===0):7===t[0]&&a(t[t.length-1]%2===1),this.point(t.slice(1,1+n),t.slice(1+n,1+2*n));if((2===t[0]||3===t[0])&&t.length-1===n)return this.pointFromX(t.slice(1,1+n),3===t[0]);throw new Error("Unknown point format")},u.prototype.encodeCompressed=function(t){return this.encode(t,!0)},u.prototype._encode=function(t){var e=this.curve.p.byteLength(),n=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",e))},u.prototype.encode=function(t,e){return i.encode(this._encode(e),t)}
vendor: 7,864 bytes, line 1
1,u.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},u.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},u.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)r=r.dbl();n.push(r)}return{step:t,points:n}},u.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],n=(1<<t)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)e[i]=e[i-1].add(r);return{wnd:t,points:e}},u.prototype._getBeta=function(){return null},u.prototype.dblp=function(t){for(var e=this,n=0;n<t;n++)e=e.dbl();return e}},31138:function(t,e,n){"use strict";var r=n(80953),i=n(73785),o=n(35717),s=n(4918),a=r.assert;function c(t){this.twisted=1!==(0|t.a),this.mOneA=this.twisted&&-1===(0|t.a),this.extended=this.mOneA,s.call(this,"edwards",t),this.a=new i(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1===(0|t.c)}function u(t,e,n,r,o){s.BasePoint.call(this,t,"projective"),null===e&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(e,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(c,s),t.exports=c,c.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},c.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},c.prototype.jpoint=function(t,e,n,r){return this.point(t,e,n,r)},c.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),r=this.c2.redSub(this.a.redMul(n)),o=this.one.redSub(this.c2.redMul(this.d).redMul(n)),s=r.redMul(o.redInvm()),a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");var c=a.fromRed().isOdd();return(e&&!c||!e&&c)&&(a=a.redNeg()),this.point(t,a)},c.prototype.pointFromY=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),r=n.redSub(this.c2),o=n.redMul(this.d).redMul(this.c2).redSub(this.a),s=r.redMul(o.redInvm());if(0===s.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==e&&(a=a.redNeg()),this.point(a,t)},c.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),n=t.y.redSqr(),r=e.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(n)));return 0===r.cmp(i)},o(u,s.BasePoint),c.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},c.prototype.point=function(t,e,n,r){return new u(this,t,e,n,r)},u.fromJSON=function(t,e){return new u(t,e[0],e[1],e[2])},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=r.redAdd(e),s=o.redSub(n),a=r.redSub(e),c=i.redMul(s),u=o.redMul(a),l=i.redMul(a),h=s.redMul(o);return this.curve.point(c,u,h,l)},u.prototype._projDbl=function(){var t,e,n,r,i,o,s=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var u=(r=this.curve._mulA(a)).redAdd(c);this.zOne?(t=s.redSub(a).redSub(c).redMul(u.redSub(this.curve.two)),e=u.redMul(r.redSub(c)),n=u.redSqr().redSub(u).redSub(u)):(i=this.z.redSqr(),o=u.redSub(i).redISub(i),t=s.redSub(a).redISub(c).redMul(o),e=u.redMul(r.redSub(c)),n=u.redMul(o))}else r=a.redAdd(c),i=this.curve._mulC(this.z).redSqr(),o=r.redSub(i).redSub(i),t=this.curve._mulC(s.redISub(r)).redMul(o),e=this.curve._mulC(r).redMul(a.redISub(c)),n=r.redMul(o);return this.curve.point(t,e,n)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),r=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=n.redSub(e),s=i.redSub(r),a=i.redAdd(r),c=n.redAdd(e),u=o.redMul(s),l=a.redMul(c),h=o.redMul(c),d=s.redMul(a);return this.curve.point(u,l,d,h)},u.prototype._projAdd=function(t){var e,n,r=this.z.redMul(t.z),i=r.redSqr(),o=this.x.redMul(t.x),s=this.y.redMul(t.y),a=this.curve.d.redMul(o).redMul(s),c=i.redSub(a),u=i.redAdd(a),l=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(s),h=r.redMul(c).redMul(l);return this.curve.twisted?(e=r.redMul(u).redMul(s.redSub(this.curve._mulA(o))),n=c.redMul(u)):(e=r.redMul(u).redMul(s.redSub(o)),n=this.curve._mulC(c).redMul(u)),this.curve.point(h,e,n)},u.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},u.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},u.prototype.mulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!1)},u.prototype.jmulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},u.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var n=t.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},88254:function(t,e,n){"use strict";var r=e;r.base=n(4918),r.short=n(6673),r.mont=n(22881),r.edwards=n(31138)},22881:function(t,e,n){"use strict";var r=n(73785),i=n(35717),o=n(4918),s=n(80953);function a(t){o.call(this,"mont",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(t,e,n){o.BasePoint.call(this,t,"projective"),null===e&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(e,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(a,o),t.exports=a,a.prototype.validate=function(t){var e=t.normalize().x,n=e.redSqr(),r
vendor: 4,103 bytes, line 1
1=n.redMul(e).redAdd(n.redMul(this.a)).redAdd(e);return 0===r.redSqrt().redSqr().cmp(r)},i(c,o.BasePoint),a.prototype.decodePoint=function(t,e){return this.point(s.toArray(t,e),1)},a.prototype.point=function(t,e){return new c(this,t,e)},a.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(t,e){return new c(t,e[0],e[1]||t.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),n=t.redSub(e),r=t.redMul(e),i=n.redMul(e.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(t,e){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(n),s=i.redMul(r),a=e.z.redMul(o.redAdd(s).redSqr()),c=e.x.redMul(o.redISub(s).redSqr());return this.curve.point(a,c)},c.prototype.mul=function(t){for(var e=t.clone(),n=this,r=this.curve.point(null,null),i=[];0!==e.cmpn(0);e.iushrn(1))i.push(e.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},6673:function(t,e,n){"use strict";var r=n(80953),i=n(73785),o=n(35717),s=n(4918),a=r.assert;function c(t){s.call(this,"short",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(t,e,n,r){s.BasePoint.call(this,t,"affine"),null===e&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(e,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(t,e,n,r){s.BasePoint.call(this,t,"jacobian"),null===e&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(e,16),this.y=new i(n,16),this.z=new i(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(c,s),t.exports=c,c.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,n;if(t.beta)e=new i(t.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);e=(e=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(t.lambda)n=new i(t.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(e))?n=o[0]:(n=o[1],a(0===this.g.mul(n).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:n,basis:t.basis?t.basis.map((function(t){return{a:new i(t.a,16),b:new i(t.b,16)}})):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:i.mont(t),n=new i(2).toRed(e).redInvm(),r=n.redNeg(),o=new i(3).toRed(e).redNeg().redSqrt().redMul(n);return[r.redAdd(o).fromRed(),r.redSub(o).fromRed()]},c.prototype._getEndoBasis=function(t){for(var e,n,r,o,s,a,c,u,l,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=t,f=this.n.clone(),p=new i(1),m=new i(0),g=new i(0),y=new i(1),b=0;0!==d.cmpn(0);){var v=f.div(d);u=f.sub(v.mul(d)),l=g.sub(v.mul(p));var w=y.sub(v.mul(m));
vendor: 4,445 bytes, line 1
1if(!r&&u.cmp(h)<0)e=c.neg(),n=p,r=u.neg(),o=l;else if(r&&2===++b)break;c=u,f=d,d=u,g=p,p=l,y=m,m=w}s=u.neg(),a=l;var _=r.sqr().add(o.sqr());return s.sqr().add(a.sqr()).cmp(_)>=0&&(s=e,a=n),r.negative&&(r=r.neg(),o=o.neg()),s.negative&&(s=s.neg(),a=a.neg()),[{a:r,b:o},{a:s,b:a}]},c.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],r=e[1],i=r.b.mul(t).divRound(this.n),o=n.b.neg().mul(t).divRound(this.n),s=i.mul(n.a),a=o.mul(r.a),c=i.mul(n.b),u=o.mul(r.b);return{k1:t.sub(s).sub(a),k2:c.add(u).neg()}},c.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var o=r.fromRed().isOdd();return(e&&!o||!e&&o)&&(r=r.redNeg()),this.point(t,r)},c.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,r=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(t,e,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var s=this._endoSplit(e[o]),a=t[o],c=a._getBeta();s.k1.negative&&(s.k1.ineg(),a=a.neg(!0)),s.k2.negative&&(s.k2.ineg(),c=c.neg(!0)),r[2*o]=a,r[2*o+1]=c,i[2*o]=s.k1,i[2*o+1]=s.k2}for(var u=this._wnafMulAdd(1,r,i,2*o,n),l=0;l<2*o;l++)r[l]=null,i[l]=null;return u},o(u,s.BasePoint),c.prototype.point=function(t,e,n){return new u(this,t,e,n)},c.prototype.pointFromJSON=function(t,e){return u.fromJSON(this,t,e)},u.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var n=this.curve,r=function(t){return n.point(t.x.redMul(n.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(r)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(r)}}}return e}},u.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},u.fromJSON=function(t,e,n){"string"===typeof e&&(e=JSON.parse(e));var r=t.point(e[0],e[1],n);if(!e[2])return r;function i(e){return t.point(e[0],e[1],n)}var o=e[2];return r.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[r].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[r].concat(o.naf.points.map(i))}},r},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var n=e.redSqr().redISub(this.x).redISub(t.x),r=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},u.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,n=this.x.redSqr(),r=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(t){return t=new i(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},u.prototype.mulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},u.prototype.jmulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},u.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},u.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());
vendor: 4,413 bytes, line 1
1if(t&&this.precomputed){var n=this.precomputed,r=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return e},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(l,s.BasePoint),c.prototype.jpoint=function(t,e,n){return new l(this,t,e,n)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(n,r)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(e),i=t.x.redMul(n),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(n.redMul(this.z)),a=r.redSub(i),c=o.redSub(s);if(0===a.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),l=u.redMul(a),h=r.redMul(u),d=c.redSqr().redIAdd(l).redISub(h).redISub(h),f=c.redMul(h.redISub(d)).redISub(o.redMul(l)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(d,f,p)},l.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,r=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),s=n.redSub(r),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),l=n.redMul(c),h=a.redSqr().redIAdd(u).redISub(l).redISub(l),d=a.redMul(l.redISub(h)).redISub(i.redMul(u)),f=this.z.redMul(s);return this.curve.jpoint(h,d,f)},l.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var n=this;for(e=0;e<t;e++)n=n.dbl();return n}var r=this.curve.a,i=this.curve.tinv,o=this.x,s=this.y,a=this.z,c=a.redSqr().redSqr(),u=s.redAdd(s);for(e=0;e<t;e++){var l=o.redSqr(),h=u.redSqr(),d=h.redSqr(),f=l.redAdd(l).redIAdd(l).redIAdd(r.redMul(c)),p=o.redMul(h),m=f.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),y=f.redMul(g);y=y.redIAdd(y).redISub(d);var b=u.redMul(a);e+1<t&&(c=c.redMul(d)),o=m,a=b,u=y}return this.curve.jpoint(o,u.redMul(i),a)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){var t,e,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(r).redISub(o);s=s.redIAdd(s);var a=r.redAdd(r).redIAdd(r),c=a.redSqr().redISub(s).redISub(s),u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),t=c,e=a.redMul(s.redISub(c)).redISub(u),n=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),h=this.y.redSqr(),d=h.redSqr(),f=this.x.redAdd(h).redSqr().redISub(l).redISub(d);f=f.redIAdd(f);var p=l.redAdd(l).redIAdd(l),m=p.redSqr(),g=d.redIAdd(d);g=(g=g.redIAdd(g)).redIAdd(g),t=m.redISub(f).redISub(f),e=p.redMul(f.redISub(t)).redISub(g),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(t,e,n)},l.prototype._threeDbl=function(){var t,e,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(r).redISub(o);s=s.redIAdd(s);var a=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),c=a.redSqr().redISub(s).redISub(s);t=c;var u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),e=a.redMul(s.redISub(c)).redISub(u),n=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),h=this.y.redSqr(),d=this.x.redMul(h),f=this.x.redSub(l).redMul(this.x.redAdd(l));f=f.redAdd(f).redIAdd(f);var p=d.redIAdd(d),m=(p=p.redIAdd(p)).redAdd(p);t=f.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(h).redISub(l);var g=h.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),e=f.redMul(p.redISub(t)).redISub(g)}return this.curve.jpoint(t,e,n)},l.prototype._dbl=function(){var t=this.curve.a,e=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),o=e.redSqr(),s=n.redSqr(),a=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),c=e.redAdd(e),u=(c=c.redIAdd(c)).redMul(s),l=a.redSqr().redISub(u.redAdd(u)),h=u.redISub(l),d=s.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var f=a.redMul(h).redISub(d),p=n.redAdd(n).redMul(r);return this.curve.jpoint(l,f,p)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);
vendor: 4,218 bytes, line 1
1var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr(),r=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),s=this.x.redAdd(e).redSqr().redISub(t).redISub(r),a=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(o)).redSqr(),c=r.redIAdd(r);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var u=i.redIAdd(s).redSqr().redISub(o).redISub(a).redISub(c),l=e.redMul(u);l=(l=l.redIAdd(l)).redIAdd(l);var h=this.x.redMul(a).redISub(l);h=(h=h.redIAdd(h)).redIAdd(h);var d=this.y.redMul(u.redMul(c.redISub(u)).redISub(s.redMul(a)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var f=this.z.redAdd(s).redSqr().redISub(n).redISub(a);return this.curve.jpoint(h,d,f)},l.prototype.mul=function(t,e){return t=new i(t,e),this.curve._wnafMul(this,t)},l.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),n=t.z.redSqr();if(0!==this.x.redMul(n).redISub(t.x.redMul(e)).cmpn(0))return!1;var r=e.redMul(this.z),i=n.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(r)).cmpn(0)},l.prototype.eqXToP=function(t){var e=this.z.redSqr(),n=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(n))return!0;for(var r=t.clone(),i=this.curve.redN.redMul(e);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},45427:function(t,e,n){"use strict";var r,i=e,o=n(33715),s=n(88254),a=n(80953).assert;function c(t){"short"===t.type?this.curve=new s.short(t):"edwards"===t.type?this.curve=new s.edwards(t):this.curve=new s.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(t,e){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var n=new c(e);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=c,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}
vendor: 10,862 bytes, line 1
1),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(91037)}catch(l){r=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},57954:function(t,e,n){"use strict";var r=n(73785),i=n(2156),o=n(80953),s=n(45427),a=n(29931),c=o.assert,u=n(31251),l=n(90611);function h(t){if(!(this instanceof h))return new h(t);"string"===typeof t&&(c(Object.prototype.hasOwnProperty.call(s,t),"Unknown curve "+t),t=s[t]),t instanceof s.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=h,h.prototype.keyPair=function(t){return new u(this,t)},h.prototype.keyFromPrivate=function(t,e){return u.fromPrivate(this,t,e)},h.prototype.keyFromPublic=function(t,e){return u.fromPublic(this,t,e)},h.prototype.genKeyPair=function(t){t||(t={});for(var e=new i({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||a(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),o=this.n.sub(new r(2));;){var s=new r(e.generate(n));if(!(s.cmp(o)>0))return s.iaddn(1),this.keyFromPrivate(s)}},h.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},h.prototype.sign=function(t,e,n,o){"object"===typeof n&&(o=n,n=null),o||(o={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new r(t,16));for(var s=this.n.byteLength(),a=e.getPrivate().toArray("be",s),c=t.toArray("be",s),u=new i({hash:this.hash,entropy:a,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new r(1)),d=0;;d++){var f=o.k?o.k(d):new r(u.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(h)>=0)){var p=this.g.mul(f);if(!p.isInfinity()){var m=p.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var y=f.invm(this.n).mul(g.mul(e.getPrivate()).iadd(t));if(0!==(y=y.umod(this.n)).cmpn(0)){var b=(p.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return o.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),b^=1),new l({r:g,s:y,recoveryParam:b})}}}}}},h.prototype.verify=function(t,e,n,i){t=this._truncateToN(new r(t,16)),n=this.keyFromPublic(n,i);var o=(e=new l(e,"hex")).r,s=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var a,c=s.invm(this.n),u=c.mul(t).umod(this.n),h=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(u,n.getPublic(),h)).isInfinity()&&a.eqXToP(o):!(a=this.g.mulAdd(u,n.getPublic(),h)).isInfinity()&&0===a.getX().umod(this.n).cmp(o)},h.prototype.recoverPubKey=function(t,e,n,i){c((3&n)===n,"The recovery param is more than two bits"),e=new l(e,i);var o=this.n,s=new r(t),a=e.r,u=e.s,h=1&n,d=n>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");a=d?this.curve.pointFromX(a.add(this.curve.n),h):this.curve.pointFromX(a,h);var f=e.r.invm(o),p=o.sub(s).mul(f).umod(o),m=u.mul(f).umod(o);return this.g.mulAdd(p,a,m)},h.prototype.getKeyRecoveryParam=function(t,e,n,r){if(null!==(e=new l(e,r)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},31251:function(t,e,n){"use strict";var r=n(73785),i=n(80953).assert;function o(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=o,o.fromPublic=function(t,e,n){return e instanceof o?e:new o(t,{pub:e,pubEnc:n})},o.fromPrivate=function(t,e,n){return e instanceof o?e:new o(t,{priv:e,privEnc:n})},o.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(t,e){return"string"===typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},o.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(t,e){this.priv=new r(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?i(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},o.prototype.derive=function(t){return t.validate()||i(t.validate(),"public point not validated"),t.mul(this.priv).getX()},o.prototype.sign=function(t,e,n){return this.ec.sign(t,this,e,n)},o.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},90611:function(t,e,n){"use strict";var r=n(73785),i=n(80953),o=i.assert;function s(t,e){if(t instanceof s)return t;this._importDER(t,e)||(o(t.r&&t.s,"Signature without r or s"),this.r=new r(t.r,16),this.s=new r(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function a(){this.place=0}function c(t,e){var n=t[e.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,s=e.place;o<r;o++,s++)i<<=8,i|=t[s],i>>>=0;return!(i<=127)&&(e.place=s,i)}function u(t){for(var e=0,n=t.length-1;!t[e]&&!(128&t[e+1])&&e<n;)e++;return 0===e?t:t.slice(e)}function l(t,e){if(e<128)t.push(e);else{var n=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}}t.exports=s,s.prototype._importDER=function(t,e){t=i.toArray(t,e);var n=new a;if(48!==t[n.place++])return!1;var o=c(t,n);if(!1===o)return!1;if(o+n.place!==t.length)return!1;if(2!==t[n.place++])return!1;var s=c(t,n);if(!1===s)return!1;var u=t.slice(n.place,s+n.place);if(n.place+=s,2!==t[n.place++])return!1;var l=c(t,n);if(!1===l)return!1;if(t.length!==l+n.place)return!1;var h=t.slice(n.place,l+n.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}return this.r=new r(u),this.s=new r(h),this.recoveryParam=null,!0},s.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=u(e),n=u(n);!n[0]&&!(128&n[1]);)n=n.slice(1);var r=[2];l(r,e.length),(r=r.concat(e)).push(2),l(r,n.length);var o=r.concat(n),s=[48];return l(s,o.length),s=s.concat(o),i.encode(s,t)}},65980:function(t,e,n){"use strict";var r=n(33715),i=n(45427),o=n(80953),s=o.assert,a=o.parseBytes,c=n(79087),u=n(23622);function l(t){if(s("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof l))return new l(t);t=i[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=r.sha512}t.exports=l,l.prototype.sign=function(t,e){t=a(t);var n=this.keyFromSecret(e),r=this.hashInt(n.messagePrefix(),t),i=this.g.mul(r),o=this.encodePoint(i),s=this.hashInt(o,n.pubBytes(),t).mul(n.priv()),c=r.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:o})},l.prototype.verify=function(t,e,n){t=a(t),e=this.makeSignature(e);var r=this.keyFromPublic(n),i=this.hashInt(e.Rencoded(),r.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(r.pub().mul(i)).eq(o)},l.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return o.intFromLE(t.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(t){return c.fromPublic(this,t)},l.prototype.keyFromSecret=function(t){return c.fromSecret(this,t)},l.prototype.makeSignature=function(t){return t instanceof u?t:new u(this,t)},l.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},l.prototype.decodePoint=function(t){var e=(t=o.parseBytes(t)).length-1,n=t.slice(0,e).concat(-129&t[e]),r=0!==(128&t[e]),i=o.intFromLE(n);return this.curve.pointFromY(i,r)},l.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(t){return o.intFromLE(t)},l.prototype.isPoint=function(t){return t instanceof this.pointClass}},79087:function(t,e,n){"use strict";var r=n(80953),i=r.assert,o=r.parseBytes,s=r.cachedProperty;function a(t,e){this.eddsa=t,this._secret=o(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=o(e.pub)}
vendor: 2,051 bytes, line 1
1a.fromPublic=function(t,e){return e instanceof a?e:new a(t,{pub:e})},a.fromSecret=function(t,e){return e instanceof a?e:new a(t,{secret:e})},a.prototype.secret=function(){return this._secret},s(a,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),s(a,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),s(a,"privBytes",(function(){var t=this.eddsa,e=this.hash(),n=t.encodingLength-1,r=e.slice(0,t.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),s(a,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),s(a,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),s(a,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),a.prototype.sign=function(t){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},a.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},a.prototype.getSecret=function(t){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),t)},a.prototype.getPublic=function(t){return r.encode(this.pubBytes(),t)},t.exports=a},23622:function(t,e,n){"use strict";var r=n(73785),i=n(80953),o=i.assert,s=i.cachedProperty,a=i.parseBytes;function c(t,e){this.eddsa=t,"object"!==typeof e&&(e=a(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),o(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof r&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}s(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),s(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),s(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),s(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=c},91037:function(t){t
vendor: 26,137 bytes, line 1
1.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},
vendor: 1,432 bytes, line 1
180953:function(t,e,n){"use strict";var r=e,i=n(73785),o=n(79746),s=n(34504);r.assert=o,r.toArray=s.toArray,r.zero2=s.zero2,r.toHex=s.toHex,r.encode=s.encode,r.getNAF=function(t,e,n){var r=new Array(Math.max(t.bitLength(),n)+1);r.fill(0);for(var i=1<<e+1,o=t.clone(),s=0;s<r.length;s++){var a,c=o.andln(i-1);o.isOdd()?(a=c>(i>>1)-1?(i>>1)-c:c,o.isubn(a)):a=0,r[s]=a,o.iushrn(1)}return r},r.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var r,i=0,o=0;t.cmpn(-i)>0||e.cmpn(-o)>0;){var s,a,c=t.andln(3)+i&3,u=e.andln(3)+o&3;3===c&&(c=-1),3===u&&(u=-1),s=0===(1&c)?0:3!==(r=t.andln(7)+i&7)&&5!==r||2!==u?c:-c,n[0].push(s),a=0===(1&u)?0:3!==(r=e.andln(7)+o&7)&&5!==r||2!==c?u:-u,n[1].push(a),2*i===s+1&&(i=1-i),2*o===a+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return n},r.cachedProperty=function(t,e,n){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(t){return"string"===typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new i(t,"hex","le")}},73785:function(t,e,n){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var s;
vendor: 4,111 bytes, line 1
1"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:n(85568).Buffer}catch(I){}function a(t,e){var n=t.charCodeAt(e);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function u(t,e,n,r){for(var i=0,o=Math.min(t.length,n),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=r,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,n):(this._parseBase(t,e,i),"le"===n&&this._initArray(this.toArray(),e,n)))},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,s=0;if("be"===n)for(r=t.length-1;r>=e;r-=2)i=c(t,e,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(r=(t.length-e)%2===0?e+1:e;r<t.length;r+=2)i=c(t,e,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,s=o%r,a=Math.min(o,o-s)+n,c=0,l=n;l<a;l+=r)c=u(t,l,l+r,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==s){var h=1;for(c=u(t,l,t.length,e),l=0;l<s;l++)h*=e;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 4,573 bytes, line 1
1777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,c=s/67108864|0;n.words[0]=a;for(var u=1;u<r;u++){for(var l=c>>>26,h=67108863&c,d=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=d;f++){var p=u-f|0;l+=(s=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&s}n.words[u]=0|h,c=0|l}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],c=(16777215&(a<<i|o)).toString(16);n=0!==(o=a>>>24-i&16777215)||s!==this.length-1?l[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var u=h[t],f=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);n=(p=p.idivn(f)).isZero()?m+n:l[u-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var s,a,c="le"===e,u=new t(o),l=this.clone();if(c){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),u[a]=s;for(;a<o;a++)u[a]=0}else{for(a=0;a<o-i;a++)u[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),u[o-a-1]=s}return u},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)}
vendor: 7,402 bytes, line 1
1,o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,s=0;s<r.length;s++)o=(e=(0|n.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<n.length;s++)o=(e=(0|n.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<n.length&&n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this.length=Math.max(this.length,s),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,n){var r,i,o,s=t.words,a=e.words,c=n.words,u=0,l=0|s[0],h=8191&l,d=l>>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,b=g>>>13,v=0|s[3],w=8191&v,_=v>>>13,k=0|s[4],S=8191&k,x=k>>>13,I=0|s[5],A=8191&I,E=I>>>13,T=0|s[6],P=8191&T,C=T>>>13,M=0|s[7],O=8191&M,R=M>>>13,B=0|s[8],j=8191&B,N=B>>>13,L=0|s[9],D=8191&L,z=L>>>13,F=0|a[0],U=8191&F,W=F>>>13,G=0|a[1],V=8191&G,K=G>>>13,H=0|a[2],q=8191&H,$=H>>>13,Z=0|a[3],Y=8191&Z,X=Z>>>13,J=0|a[4],Q=8191&J,tt=J>>>13,et=0|a[5],nt=8191&et,rt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ct=8191&at,ut=at>>>13,lt=0|a[8],ht=8191<,dt=lt>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(u+(r=Math.imul(h,U))|0)+((8191&(i=(i=Math.imul(h,W))+Math.imul(d,U)|0))<<13)|0;u=((o=Math.imul(d,W))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,U),i=(i=Math.imul(p,W))+Math.imul(m,U)|0,o=Math.imul(m,W);var yt=(u+(r=r+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,V)|0))<<13)|0;u=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,U),i=(i=Math.imul(y,W))+Math.imul(b,U)|0,o=Math.imul(b,W),r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,K)|0;var bt=(u+(r=r+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,$)|0)+Math.imul(d,q)|0))<<13)|0;u=((o=o+Math.imul(d,$)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,U),i=(i=Math.imul(w,W))+Math.imul(_,U)|0,o=Math.imul(_,W),r=r+Math.imul(y,V)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,K)|0,r=r+Math.imul(p,q)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,$)|0;var vt=(u+(r=r+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,Y)|0))<<13)|0;u=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(S,U),i=(i=Math.imul(S,W))+Math.imul(x,U)|0,o=Math.imul(x,W),r=r+Math.imul(w,V)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,K)|0,r=r+Math.imul(y,q)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,$)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,X)|0;var wt=(u+(r=r+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(A,U),i=(i=Math.imul(A,W))+Math.imul(E,U)|0,o=Math.imul(E,W),r=r+Math.imul(S,V)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(x,V)|0,o=o+Math.imul(x,K)|0,r=r+Math.imul(w,q)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,$)|0,r=r+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,X)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,X)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var _t=(u+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(d,nt)|0))<<13)|0;u=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(P,U),i=(i=Math.imul(P,W))+Math.imul(C,U)|0,o=Math.imul(C,W),r=r+Math.imul(A,V)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(E,V)|0,o=o+Math.imul(E,K)|0,r=r+Math.imul(S,q)|0,i=(i=i+Math.imul(S,$)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,$)|0,r=r+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,X)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var kt=(u+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,st)|0)+Math.imul(d,ot)|0))<<13)|0;u=((o=o+Math.imul(d,st)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(O,U),i=(i=Math.imul(O,W))+Math.imul(R,U)|0,o=Math.imul(R,W),r=r+Math.imul(P,V)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,K)|0,r=r+Math.imul(A,q)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,$)|0,r=r+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,X)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(y,nt)|0,i=(i=i+Math.imul(y,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,st)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0;var St=(u+(r=r+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,ut)|0)+Math.imul(d,ct)|0))<<13)|0;u=((o=o+Math.imul(d,ut)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(j,U),i=(i=Math.imul(j,W))+Math.imul(N,U)|0,o=Math.imul(N,W),r=r+Math.imul(O,V)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,K)|0,r=r+Math.imul(P,q)|0,i=(i=i+Math.imul(P,$)|0)+Math.imul(C,q)|0,o=o+Math.imul(C,$)|0,r=r+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,X)|0,r=r+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,st)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,r=r+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,ut)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,ut)|0;var xt=(u+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;u=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(D,U),i=(i=Math.imul(D,W))+Math.imul(z,U
vendor: 6,110 bytes, line 1
1)|0,o=Math.imul(z,W),r=r+Math.imul(j,V)|0,i=(i=i+Math.imul(j,K)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,K)|0,r=r+Math.imul(O,q)|0,i=(i=i+Math.imul(O,$)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,$)|0,r=r+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,X)|0,r=r+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,r=r+Math.imul(S,nt)|0,i=(i=i+Math.imul(S,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,st)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,st)|0,r=r+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,ut)|0)+Math.imul(b,ct)|0,o=o+Math.imul(b,ut)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,dt)|0;var It=(u+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,pt)|0))<<13)|0;u=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(D,V),i=(i=Math.imul(D,K))+Math.imul(z,V)|0,o=Math.imul(z,K),r=r+Math.imul(j,q)|0,i=(i=i+Math.imul(j,$)|0)+Math.imul(N,q)|0,o=o+Math.imul(N,$)|0,r=r+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,X)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(E,nt)|0,o=o+Math.imul(E,rt)|0,r=r+Math.imul(S,ot)|0,i=(i=i+Math.imul(S,st)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,st)|0,r=r+Math.imul(w,ct)|0,i=(i=i+Math.imul(w,ut)|0)+Math.imul(_,ct)|0,o=o+Math.imul(_,ut)|0,r=r+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(b,ht)|0,o=o+Math.imul(b,dt)|0;var At=(u+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;u=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(D,q),i=(i=Math.imul(D,$))+Math.imul(z,q)|0,o=Math.imul(z,$),r=r+Math.imul(j,Y)|0,i=(i=i+Math.imul(j,X)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,st)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,st)|0,r=r+Math.imul(S,ct)|0,i=(i=i+Math.imul(S,ut)|0)+Math.imul(x,ct)|0,o=o+Math.imul(x,ut)|0,r=r+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,dt)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,dt)|0;var Et=(u+(r=r+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(b,pt)|0))<<13)|0;u=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(D,Y),i=(i=Math.imul(D,X))+Math.imul(z,Y)|0,o=Math.imul(z,X),r=r+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(O,nt)|0,i=(i=i+Math.imul(O,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,st)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,r=r+Math.imul(A,ct)|0,i=(i=i+Math.imul(A,ut)|0)+Math.imul(E,ct)|0,o=o+Math.imul(E,ut)|0,r=r+Math.imul(S,ht)|0,i=(i=i+Math.imul(S,dt)|0)+Math.imul(x,ht)|0,o=o+Math.imul(x,dt)|0;var Tt=(u+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;u=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(D,Q),i=(i=Math.imul(D,tt))+Math.imul(z,Q)|0,o=Math.imul(z,tt),r=r+Math.imul(j,nt)|0,i=(i=i+Math.imul(j,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(O,ot)|0,i=(i=i+Math.imul(O,st)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,st)|0,r=r+Math.imul(P,ct)|0,i=(i=i+Math.imul(P,ut)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,ut)|0,r=r+Math.imul(A,ht)|0,i=(i=i+Math.imul(A,dt)|0)+Math.imul(E,ht)|0,o=o+Math.imul(E,dt)|0;var Pt=(u+(r=r+Math.imul(S,pt)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(x,pt)|0))<<13)|0;u=((o=o+Math.imul(x,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(D,nt),i=(i=Math.imul(D,rt))+Math.imul(z,nt)|0,o=Math.imul(z,rt),r=r+Math.imul(j,ot)|0,i=(i=i+Math.imul(j,st)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,st)|0,r=r+Math.imul(O,ct)|0,i=(i=i+Math.imul(O,ut)|0)+Math.imul(R,ct)|0,o=o+Math.imul(R,ut)|0,r=r+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,dt)|0)+Math.imul(C,ht)|0,o=o+Math.imul(C,dt)|0;var Ct=(u+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(E,pt)|0))<<13)|0;u=((o=o+Math.imul(E,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(D,ot),i=(i=Math.imul(D,st))+Math.imul(z,ot)|0,o=Math.imul(z,st),r=r+Math.imul(j,ct)|0,i=(i=i+Math.imul(j,ut)|0)+Math.imul(N,ct)|0,o=o+Math.imul(N,ut)|0,r=r+Math.imul(O,ht)|0,i=(i=i+Math.imul(O,dt)|0)+Math.imul(R,ht)|0,o=o+Math.imul(R,dt)|0;var Mt=(u+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(C,pt)|0))<<13)|0;u=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(D,ct),i=(i=Math.imul(D,ut))+Math.imul(z,ct)|0,o=Math.imul(z,ut),r=r+Math.imul(j,ht)|0,i=(i=i+Math.imul(j,dt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,dt)|0;var Ot=(u+(r=r+Math.imul(O,pt)|0)|0)+((8191&(i=(i=i+Math.imul(O,mt)|0)+Math.imul(R,pt)|0))<<13)|0;u=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(D,ht),i=(i=Math.imul(D,dt))+Math.imul(z,ht)|0,o=Math.imul(z,dt);var Rt=(u+(r=r+Math.imul(j,pt)|0)|0)+((8191&(i=(i=i+Math.imul(j,mt)|0)+Math.imul(N,pt)|0))<<13)|0;u=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var Bt=(u+(r=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,mt))+Math.imul(z,pt)|0))<<13)|0;return u=((o=Math.imul(z,mt))+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,c[0]=gt,c[1]=yt,c[2]=bt,c[3]=vt,c[4]=wt,c[5]=_t,c[6]=kt,c[7]=St,c[8]=xt,c[9]=It,c[10]=At,c[11]=Et,c[12]=Tt,c[13]=Pt,c[14]=Ct,c[15]=Mt,c[16]=Ot,c[17]=Rt,c[18]=Bt,0!==u&&(c[19]=u,n.length++),n};function m(t,e,n){return(new g).mulp(t,e,n)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=f),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?p(this,t,e):r<63?f(this,t,e):r<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var s=i;i=0;for(var a=67108863&r,c=Math.min(o,e.length-1),u=Math.max(0,o-t.length+1);u<=c;u++){var l=o-u,h=(0|t.words[l])*(0|e.words[u]),d=67108863&h;a=67108863&(d=d+a|0),i+=(s=(s=s+(h/67108864|0)|0)+(d>>>
vendor: 16,384 bytes, line 1
126)|0)>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):m(this,t,e),n},g.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},g.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},g.prototype.permute=function(t,e,n,r,i,o){for(var s=0;s<o;s++)r[s]=e[t[s]],i[s]=n[t[s]]},g.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,c=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=c,d=u,f=0;f<s;f++){var p=n[l+f],m=r[l+f],g=n[l+f+s],y=r[l+f+s],b=h*g-d*y;y=h*y+d*g,g=b,n[l+f]=p+g,r[l+f]=m+y,n[l+f+s]=p-g,r[l+f+s]=m-y,f!==a&&(b=c*h-u*d,d=c*d+u*h,h=b)}},g.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},g.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},g.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,n,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],n[2*s]=8191&o,o>>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)n[s]=0;r(0===o),r(0===(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},g.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),s=new Array(r),a=new Array(r),c=new Array(r),u=new Array(r),l=new Array(r),h=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,a,c,r,i),this.transform(u,o,l,h,r,i);for(var f=0;f<r;f++){var p=a[f]*l[f]-c[f]*h[f];c[f]=a[f]*h[f]+c[f]*l[f],a[f]=p}return this.conjugate(a,c,r),this.transform(a,c,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"===typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"===typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,c=(0|this.words[e])-a<<n;this.words[e]=c|s,s=a>>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,c=n;if(i-=s,i=Math.max(0,i),c){for(var u=0;u<s;u++)c.words[u]=this.words[u];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=i);u--){var h=0|this.words[u];this.words[u]=l<<26-o|h>>>o,l=h&a}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"===typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,s=t.length+n;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+a;var c=(0|t.words[i])*e;a=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)a=(o=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&o;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,s=0|i.words[i.length-1];0!==(n=26-this._countBits(s))&&(i=i.ushln(n),r.iushln(n),s=0|i.words[i.length-1]);var a,c=r.length-i.length;if("mod"!==e){(a=new o(null)).length=c+1,a.words=new Array(a.length);for(var u=0;u<a.length;u++)a.words[u]=0}var l=r.clone()._ishlnsubmul(i,1,c);0===l.negative&&(r=l,a&&(a.words[c]=1));for(var h=c-1;h>=0;h--){var d=67108864*(0|r.words[i.length+h])+(0|r.words[i.length+h-1]);for(d=Math.min(d/s|0,67108863),r._ishlnsubmul(i,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,h),r.isZero()||(r.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),s=new o(0),a=new o(0),c=new o(1),u=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++u;for(var l=n.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(h)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(l),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(a),s.isub(c)):(n.isub(e),a.isub(i),c.isub(s))}return{a:a,b:c,gcd:n.iushln(u)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,s=new o(1),a=new o(0),c=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,l=1;0===(e.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(e.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var h=0,d=1;0===(n.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(n.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),s.isub(a)):(n.isub(e),a.isub(s))}return(i=0===e.cmpn(1)?s:a).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,s=n;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(v,b),v.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&n)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.wor
vendor: 3,139 bytes, line 1
1ds[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(w,b),i(_,b),i(k,b),k.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new w;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return y[t]=e,e},S.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);r(!i.isZero());var a=new o(1).toRed(this),c=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var h=this.pow(l,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();r(g<p);var y=this.pow(h,new o(1).iushln(p-g-1));d=d.redMul(y),h=y.redSqr(),f=f.redMul(h),p=g}return d},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],s=0,a=0,c=e.bitLength()%26;for(0===c&&(c=26),r=e.length-1;r>=0;r--){for(var u=e.words[r],l=c-1;l>=0;l--){var h=u>>l&1;i!==n[0]&&(i=this.sqr(i)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===r&&0===l)&&(i=this.mul(i,n[s]),a=0,s=0)):a=0}
1c=26}return i},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},i(x,S),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=n.nmd(t),this)},37765:function(t,e,n){"use strict";n.r(e),n.d(e,{cache:function(){return z},css:function(){return L},cx:function(){return O},flush:function(){return C},getRegisteredStyles:function(){return B},hydrate:function(){return M},injectGlobal:function(){return j},keyframes:function(){return N},merge:function(){return R},sheet:function(){return D}});var r=function(){function t(t){this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.before=null}var e=t.prototype;return e.insert=function(t){if(this.ctr%(this.isSpeedy?65e3:1)===0){var e,n=function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e}(this);e=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,e),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(r);try{var o=105===t.charCodeAt(1)&&64===t.charCodeAt(0);i.insertRule(t,o?0:i.cssRules.length)}catch(s){0}}else r.appendChild(document.createTextNode(t));this.ctr++}
vendor: 5,430 bytes, line 1
1,e.flush=function(){this.tags.forEach((function(t){return t.parentNode.removeChild(t)})),this.tags=[],this.ctr=0},t}();var i=function(t){function e(t,r,c,u,d){for(var f,p,m,g,w,k=0,S=0,x=0,I=0,A=0,O=0,B=m=f=0,N=0,L=0,D=0,z=0,F=c.length,U=F-1,W="",G="",V="",K="";N<F;){if(p=c.charCodeAt(N),N===U&&0!==S+I+x+k&&(0!==S&&(p=47===S?10:47),I=x=k=0,F++,U++),0===S+I+x+k){if(N===U&&(0<L&&(W=W.replace(h,"")),0<W.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:W+=c.charAt(N)}p=59}switch(p){case 123:for(f=(W=W.trim()).charCodeAt(0),m=1,z=++N;N<F;){switch(p=c.charCodeAt(N)){case 123:m++;break;case 125:m--;break;case 47:switch(p=c.charCodeAt(N+1)){case 42:case 47:t:{for(B=N+1;B<U;++B)switch(c.charCodeAt(B)){case 47:if(42===p&&42===c.charCodeAt(B-1)&&N+2!==B){N=B+1;break t}break;case 10:if(47===p){N=B+1;break t}}N=B}}break;case 91:p++;case 40:p++;case 34:case 39:for(;N++<U&&c.charCodeAt(N)!==p;);}if(0===m)break;N++}if(m=c.substring(z,N),0===f&&(f=(W=W.replace(l,"").trim()).charCodeAt(0)),64===f){switch(0<L&&(W=W.replace(h,"")),p=W.charCodeAt(1)){case 100:case 109:case 115:case 45:L=r;break;default:L=M}if(z=(m=e(r,L,m,p,d+1)).length,0<R&&(w=a(3,m,L=n(M,W,D),r,T,E,z,p,d,u),W=L.join(""),void 0!==w&&0===(z=(m=w.trim()).length)&&(p=0,m="")),0<z)switch(p){case 115:W=W.replace(_,s);case 100:case 109:case 45:m=W+"{"+m+"}";break;case 107:m=(W=W.replace(y,"$1 $2"))+"{"+m+"}",m=1===C||2===C&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=W+m,112===u&&(G+=m,m="")}else m=""}else m=e(r,n(r,W,D),m,u,d+1);V+=m,m=D=L=B=f=0,W="",p=c.charCodeAt(++N);break;case 125:case 59:if(1<(z=(W=(0<L?W.replace(h,""):W).trim()).length))switch(0===B&&(f=W.charCodeAt(0),45===f||96<f&&123>f)&&(z=(W=W.replace(" ",":")).length),0<R&&void 0!==(w=a(1,W,r,t,T,E,G.length,u,d,u))&&0===(z=(W=w.trim()).length)&&(W="\0\0"),f=W.charCodeAt(0),p=W.charCodeAt(1),f){case 0:break;case 64:if(105===p||99===p){K+=W+c.charAt(N);break}default:58!==W.charCodeAt(z-1)&&(G+=i(W,f,p,W.charCodeAt(2)))}D=L=B=f=0,W="",p=c.charCodeAt(++N)}}switch(p){case 13:case 10:47===S?S=0:0===1+f&&107!==u&&0<W.length&&(L=1,W+="\0"),0<R*j&&a(0,W,r,t,T,E,G.length,u,d,u),E=1,T++;break;case 59:case 125:if(0===S+I+x+k){E++;break}default:switch(E++,g=c.charAt(N),p){case 9:case 32:if(0===I+k+S)switch(A){case 44:case 58:case 9:case 32:g="";break;default:32!==p&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===I+S+k&&(L=D=1,g="\f"+g);break;case 108:if(0===I+S+k+P&&0<B)switch(N-B){case 2:112===A&&58===c.charCodeAt(N-3)&&(P=A);case 8:111===O&&(P=O)}break;case 58:0===I+S+k&&(B=N);break;case 44:0===S+x+I+k&&(L=1,g+="\r");break;case 34:case 39:0===S&&(I=I===p?0:0===I?p:I);break;case 91:0===I+S+x&&k++;break;case 93:0===I+S+x&&k--;break;case 41:0===I+S+k&&x--;break;case 40:if(0===I+S+k){if(0===f)if(2*A+3*O===533);else f=1;x++}break;case 64:0===S+x+I+k+B+m&&(m=1);break;case 42:case 47:if(!(0<I+k+x))switch(S){case 0:switch(2*p+3*c.charCodeAt(N+1)){case 235:S=47;break;case 220:z=N,S=42}break;case 42:47===p&&42===A&&z+2!==N&&(33===c.charCodeAt(z+2)&&(G+=c.substring(z,N+1)),g="",S=0)}}0===S&&(W+=g)}O=A,A=p,N++}if(0<(z=G.length)){if(L=r,0<R&&(void 0!==(w=a(2,G,L,t,T,E,z,u,d,u))&&0===(G=w).length))return K+G+V;if(G=L.join(",")+"{"+G+"}",0!==C*P){switch(2!==C||o(G,2)||(P=0),P){case 111:G=G.replace(v,":-moz-$1")+G;break;case 112:G=G.replace(b,"::-webkit-input-$1")+G.replace(b,"::-moz-$1")+G.replace(b,":-ms-input-$1")+G}P=0}}return K+G+V}function n(t,e,n){var i=e.trim().split(m);e=i;var o=i.length,s=t.length;switch(s){case 0:case 1:var a=0;for(t=0===s?"":t[0]+" ";a<o;++a)e[a]=r(t,e[a],n).trim();break;default:var c=a=0;for(e=[];a<o;++a)for(var u=0;u<s;++u)e[c++]=r(t[u]+" ",i[a],n).trim()}return e}function r(t,e,n){var r=e.charCodeAt(0);switch(33>r&&(r=(e=e.trim()).charCodeAt(0)),r){case 38:return e.replace(g,"$1"+t.trim());case 58:return t.trim()+e.replace(g,"$1"+t.trim());default:if(0<1*n&&0<e.indexOf("\f"))return e.replace(g,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+e}function i(t,e,n,r){var s=t+";",a=2*e+3*n+4*r;if(944===a){t=s.indexOf(":",9)+1;var c=s.substring(t,s.length-1).trim();return c=s.substring(0,t).trim()+c+";",1===C||2===C&&o(c,1)?"-webkit-"+c+c:c}if(0===C||2===C&&!o(s,1))return s;switch(a){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(A,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(c=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+c+s;case 1005:return f.test(s)?s.replace(d,":-webkit-")+s.replace(d,":-moz-")+s:s;case 1e3:switch(e=(c=s.substring(13).trim()).indexOf("-")+1,c.charCo
vendor: 4,791 bytes, line 1
1deAt(0)+c.charCodeAt(e)){case 226:c=s.replace(w,"tb");break;case 232:c=s.replace(w,"tb-rl");break;case 220:c=s.replace(w,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+c+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(e=(s=t).length-10,a=(c=(33===s.charCodeAt(e)?s.substring(0,e):s).substring(t.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:s=s.replace(c,"-webkit-"+c)+";"+s;break;case 207:case 102:s=s.replace(c,"-webkit-"+(102<a?"inline-":"")+"box")+";"+s.replace(c,"-webkit-"+c)+";"+s.replace(c,"-ms-"+c+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return c=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+c+"-ms-flex-"+c+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(S,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(S,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===I.test(t))return 115===(c=t.substring(t.indexOf(":")+1)).charCodeAt(0)?i(t.replace("stretch","fill-available"),e,n,r).replace(":fill-available",":stretch"):s.replace(c,"-webkit-"+c)+s.replace(c,"-moz-"+c.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===n+r&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+s}return s}function o(t,e){var n=t.indexOf(1===e?":":"{"),r=t.substring(0,3!==e?n:10);return n=t.substring(n+1,t.length-1),B(2!==e?r:r.replace(x,"$1"),n,e)}function s(t,e){var n=i(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return n!==e+";"?n.replace(k," or ($1)").substring(4):"("+e+")"}function a(t,e,n,r,i,o,s,a,c,l){for(var h,d=0,f=e;d<R;++d)switch(h=O[d].call(u,t,f,n,r,i,o,s,a,c,l)){case void 0:case!1:case!0:case null:break;default:f=h}if(f!==e)return f}function c(t){return void 0!==(t=t.prefix)&&(B=null,t?"function"!==typeof t?C=1:(C=2,B=t):C=0),c}function u(t,n){var r=t;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<R){var i=a(-1,n,r,r,T,E,0,0,0,0);void 0!==i&&"string"===typeof i&&(n=i)}var o=e(M,r,n,0,0);return 0<R&&(void 0!==(i=a(-2,o,r,r,T,E,o.length,0,0,0))&&(o=i)),"",P=0,E=T=1,o}var l=/^\0+/g,h=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,p=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,v=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,S=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,I=/stretch|:\s*\w+\-(?:conte|avail)/,A=/([^-])(image-set\()/,E=1,T=1,P=0,C=1,M=[],O=[],R=0,B=null,j=0;return u.use=function t(e){switch(e){case void 0:case null:R=O.length=0;break;default:if("function"===typeof e)O[R++]=e;else if("object"===typeof e)for(var n=0,r=e.length;n<r;++n)t(e[n]);else j=0|!!e}return t},u.set=c,void 0!==t&&c(t),u},o="/*|*/";function s(t){t&&a.current.insert(t+"}")}var a={current:null},c=function(t,e,n,r,i,c,u,l,h,d){switch(t){case 1:switch(e.charCodeAt(0)){case 64:return a.current.insert(e+";"),"";case 108:if(98===e.charCodeAt(2))return""}break;case 2:if(0===l)return e+o;break;case 3:switch(l){case 102:case 112:return a.current.insert(n[0]+e),"";default:return e+(0===d?o:"")}case-2:e.split("/*|*/}").forEach(s)}},u=function(t){void 0===t&&(t={});var e,n=t.key||"css";void 0!==t.prefix&&(e={prefix:t.prefix});var o=new i(e);var s,u={};s=t.container||document.head;var l,h=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(h,(function(t){t.getAttribute("data-emotion-"+n).split(" ").forEach((function(t){u[t]=!0})),t.parentNode!==s&&s.appendChild(t)})),o.use(t.stylisPlugins)(c),l=function(t,e,n,r){var i=e.name;a.current=n,o(t,e.styles),r&&(d.inserted[i]=!0)};var d={key:n,sheet:new r({key:n,container:s,nonce:t.nonce,speedy:t.speedy}),nonce:t.nonce,inserted:u,registered:{},insert:l};return d};var l=function(t){for(var e,n=0,r=0,i=t.length;i>=4;++r,i-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},h={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGr
1idRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var d=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}},f=/[A-Z]|^ms/g,p=/_EMO_([^_]+?)_([^]*?)_EMO_/g,m=function(t){return 45===t.charCodeAt(1)},g=function(t){return null!=t&&"boolean"!==typeof t},y=d((function(t){return m(t)?t:t.replace(f,"-$&").toLowerCase()})),b=function(t,e){switch(t){case"animation":case"animationName":if("string"===typeof e)return e.replace(p,(function(t,e,n){return w={name:e,styles:n,next:w},e}))}return 1===h[t]||m(t)||"number"!==typeof e||0===e?e:e+"px"};function v(t,e,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return w={name:n.name,styles:n.styles,next:w},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)w={name:i.name,styles:i.styles,next:w},i=i.next;return n.styles+";"}return function(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=v(t,e,n[i],!1);else for(var o in n){var s=n[o];if("object"!==typeof s)null!=e&&void 0!==e[s]?r+=o+"{"+e[s]+"}":g(s)&&(r+=y(o)+":"+b(o,s)+";");else if(!Array.isArray(s)||"string"!==typeof s[0]||null!=e&&void 0!==e[s[0]]){var a=v(t,e,s,!1);switch(o){case"animation":case"animationName":r+=y(o)+":"+a+";";break;default:r+=o+"{"+a+"}"}}else for(var c=0;c<s.length;c++)g(s[c])&&(r+=y(o)+":"+b(o,s[c])+";")}return r}(t,e,n);case"function":if(void 0!==t){var o=w,s=n(t);return w=o,v(t,e,s,r)}}if(null==e)return n;var a=e[n];return void 0===a||r?n:a}var w,_=/label:\s*([^\s;\n{]+)\s*;/g;var k=function(t,e,n){if(1===t.length&&"object"===typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var r=!0,i="";w=void 0;var o=t[0];null==o||void 0===o.raw?(r=!1,i+=v(n,e,o,!1)):i+=o[0];for(var s=1;s<t.length;s++)i+=v(n,e,t[s],46===i.charCodeAt(i.length-1)),r&&(i+=o[s]);_.lastIndex=0;for(var a,c="";null!==(a=_.exec(i));)c+="-"+a[1];return{name:l(i)+c,styles:i,next:w}};function S(t,e,n){var r="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]):r+=n+" "})),r}var x=function(t,e,n){var r=t.key+"-"+e.name;if(!1===n&&void 0===t.registered[r]&&(t.registered[r]=e.styles),void 0===t.inserted[e.name]){var i=e;do{t.insert("."+r,i,t.sheet,!0);i=i.next}while(void 0!==i)}};function I(t,e){if(void 0===t.inserted[e.name])return t.insert("",e,t.sheet,!0)}function A(t,e,n){var r=[],i=S(t,r,n);return r.length<2?n:i+e(r)}var E=function t(e){for(var n="",r=0;r<e.length;r++){var i=e[r];if(null!=i){var o=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))o=t(i);else for(var s in o="",i)i[s]&&s&&(o&&(o+=" "),o+=s);break;default:o=i}o&&(n&&(n+=" "),n+=o)}}return n},T=function(t){var e=u(t);e.sheet.speedy=function(t){this.isSpeedy=t},e.compat=!0;var n=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=k(n,e.registered,void 0);return x(e,i,!1),e.key+"-"+i.name};return{css:n,cx:function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return A(e.registered,n,E(r))},injectGlobal:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=k(n,e.registered);I(e,i)},keyframes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=k(n,e.registered),o="animation-"+i.name;return I(e,{name:i.name,styles:"@keyframes "+o+"{"+i.styles+"}"}),o},hydrate:function(t){t.forEach((function(t){e.inserted[t]=!0}))},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:S.bind(null,e.registered),merge:A.bind(null,e.registered,n)}},P=T(),C=P.flush,M=P.hydrate,O=P.cx,R=P.merge,B=P.getRegisteredStyles,j=P.injectGlobal,N=P.keyframes,L=P.css,D=P.sheet,z=P.cache},284:function(t){var e=function(){if("object"===typeof self&&self)return self;if("object"===typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};t.exports=function(){if(this)return this;if("object"===typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return e()}try{return __global__||e()}finally{delete Object.prototype.__global__}}()},8091:function(t){"use strict";function e(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),r=1;r<arguments.length;r++){var i=arguments[r];if(void 0!==i&&null!==i)for(var o=Object.keys(Object(i)),s=0,a=o.length;s<a;s++){var c=o[s],u=Object.getOwnPropertyDescriptor(i,c);void 0!==u&&u.enumerable&&(n[c]=i[c])}}return n}t.exports={assign:e,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,
vendor: 5,087 bytes, line 1
1configurable:!0,writable:!0,value:e})}}},26729:function(t){"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(t,e,r,o,s){if("function"!==typeof r)throw new TypeError("The listener must be a function");var a=new i(r,o||t,s),c=n?n+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],a]:t._events[c].push(a):(t._events[c]=a,t._eventsCount++),t}function s(t,e){0===--t._eventsCount?t._events=new r:delete t._events[e]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},a.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,s=new Array(o);i<o;i++)s[i]=r[i].fn;return s},a.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},a.prototype.emit=function(t,e,r,i,o,s){var a=n?n+t:t;if(!this._events[a])return!1;var c,u,l=this._events[a],h=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),h){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,r),!0;case 4:return l.fn.call(l.context,e,r,i),!0;case 5:return l.fn.call(l.context,e,r,i,o),!0;case 6:return l.fn.call(l.context,e,r,i,o,s),!0}for(u=1,c=new Array(h-1);u<h;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var d,f=l.length;for(u=0;u<f;u++)switch(l[u].once&&this.removeListener(t,l[u].fn,void 0,!0),h){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,e);break;case 3:l[u].fn.call(l[u].context,e,r);break;case 4:l[u].fn.call(l[u].context,e,r,i);break;default:if(!c)for(d=1,c=new Array(h-1);d<h;d++)c[d-1]=arguments[d];l[u].fn.apply(l[u].context,c)}}return!0},a.prototype.on=function(t,e,n){return o(this,t,e,n,!1)},a.prototype.once=function(t,e,n){return o(this,t,e,n,!0)},a.prototype.removeListener=function(t,e,r,i){var o=n?n+t:t;if(!this._events[o])return this;if(!e)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||i&&!a.once||r&&a.context!==r||s(this,o);else{for(var c=0,u=[],l=a.length;c<l;c++)(a[c].fn!==e||i&&!a[c].once||r&&a[c].context!==r)&&u.push(a[c]);u.length?this._events[o]=1===u.length?u[0]:u:s(this,o)}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&s(this,e)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,t.exports=a},94029:function(t,e,n){"use strict";var r=n(95320),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=function(t,e,n){for(var r=0,i=t.length;r<i;r++)o.call(t,r)&&(null==n?e(t[r],r,t):e.call(n,t[r],r,t))},a=function(t,e,n){for(var r=0,i=t.length;r<i;r++)null==n?e(t.charAt(r),r,t):e.call(n,t.charAt(r),r,t)},c=function(t,e,n){for(var r in t)o.call(t,r)&&(null==n?e(t[r],r,t):e.call(n,t[r],r,t))};t.exports=function(t,e,n){if(!r(e))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=n),"[object Array]"===i.call(t)?s(t,e,o):"string"===typeof t?a(t,e,o):c(t,e,o)}},17648:function(t){"use strict";var e="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,i="[object Function]";t.exports=function(t){var o=this;if("function"!==typeof o||r.call(o)!==i)throw new TypeError(e+o);for(var s,a=n.call(arguments,1),c=function(){if(this instanceof s){var e=o.apply(this,a.concat(n.call(arguments)));return Object(e)===e?e:this}return o.apply(t,a.concat(n.call(arguments)))},u=Math.max(0,o.length-a.length),l=[],h=0;h<u;h++)l.push("$"+h);if(s=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(c),o.prototype){var d=function(){};d.prototype=o.prototype,s.prototype=new d,d.prototype=null}return s}},58612:function(t,e,n){"use strict";var r=n(17648);t.exports=Function.prototype.bind||r},40210:function(t,e,n){"use strict";var r,i=SyntaxError,o=Function,s=TypeError,a=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(P){c=null}var u=function(){throw new s},l=c?function(){try{return u}catch(t){try{return c(arguments,"callee").get}catch(e){return u}}}():u,h=n(41405)(),d=Object.getPrototypeOf||function(t){return t.__proto__},f={},p="undefined"===typeof Uint8Array?r:d(Uint8Array),m={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":h?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"===typeof Atomics?r:Atom
1ics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":f,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h?d(d([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&h?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&h?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h?d(""[Symbol.iterator]()):r,"%Symbol%":h?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":p,"%TypeError%":s,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet},g=function t(e){var n;if("%AsyncFunction%"===e)n=a("async function () {}");else if("%GeneratorFunction%"===e)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=a("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(n=d(i.prototype))}return m[e]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=n(58612),v=n(17642),w=b.call(Function.call,Array.prototype.concat),_=b.call(Function.apply,Array.prototype.splice),k=b.call(Function.call,String.prototype.replace),S=b.call(Function.call,String.prototype.slice),x=b.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,E=function(t){var e=S(t,0,1),n=S(t,-1);if("%"===e&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];
vendor: 7,795 bytes, line 1
1return k(t,I,(function(t,e,n,i){r[r.length]=n?k(i,A,"$1"):e||t})),r},T=function(t,e){var n,r=t;if(v(y,r)&&(r="%"+(n=y[r])[0]+"%"),v(m,r)){var o=m[r];if(o===f&&(o=g(r)),"undefined"===typeof o&&!e)throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!==typeof t||0===t.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof e)throw new s('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/g,t))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=E(t),r=n.length>0?n[0]:"",o=T("%"+r+"%",e),a=o.name,u=o.value,l=!1,h=o.alias;h&&(r=h[0],_(n,w([0,1],h)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],g=S(p,0,1),y=S(p,-1);if(('"'===g||"'"===g||"`"===g||'"'===y||"'"===y||"`"===y)&&g!==y)throw new i("property names with quotes must have matching quotes");if("constructor"!==p&&f||(l=!0),v(m,a="%"+(r+="."+p)+"%"))u=m[a];else if(null!=u){if(!(p in u)){if(!e)throw new s("base intrinsic for "+t+" exists, but the property is not available.");return}if(c&&d+1>=n.length){var b=c(u,p);u=(f=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:u[p]}else f=v(u,p),u=u[p];f&&!l&&(m[a]=u)}}return u}},31044:function(t,e,n){"use strict";var r=n(40210)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(t){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},41405:function(t,e,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(55419);t.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},55419:function(t){"use strict";t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},96410:function(t,e,n){"use strict";var r=n(55419);t.exports=function(){return r()&&!!Symbol.toStringTag}},17642:function(t,e,n){"use strict";var r=n(58612);t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},33715:function(t,e,n){var r=e;r.utils=n(26436),r.common=n(95772),r.sha=n(89041),r.ripemd=n(12949),r.hmac=n(52344),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},95772:function(t,e,n){"use strict";var r=n(26436),i=n(79746);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=o,o.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},o.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},o.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=t>>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},52344:function(t,e,n){"use strict";var r=n(26436),i=n(79746);function o(t,e,n){if(!(this instanceof o))return new o(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(e,n))}t.exports=o,o.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},o.prototype.update=function(t,e){return this.inner.update(t,e),this},o.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},12949:function(t,e,n){"use strict";var r=n(26436),i=n(95772),o=r.rotl32,s=r.sum32,a=r.sum32_3,c=r.sum32_4,u=i.BlockHash;function l(){if(!(this instanceof l))return new l;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(t,e,n,r){return t<=15?e^n^r:t<=31?e&n|~e&r:t<=47?(e|~n)^r:t<=63?e&r|n&~r:e^(n|~r)}function d(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function f(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}r.inherits(l,u),e.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(t,e){for(var n=this.h[0],r=this.h[1],i=this.h[2],u=this.h[3],l=this.h[4],b=n,v=r,w=i,_=u,k=l,S=0;S<80;S++){var x=s(o(c(n,h(S,r,i,u),t[p[S]+e],d(S)),g[S]),l);n=l,l=u,u=o(i,10),i=r,r=x,x=s(o(c(b,h(79-S,v,w,_),t[m[S]+e],f(S)),y[S]),k),b=k,k=_,_=o(w,10),w=v,v=x}x=a(this.h[1],i,_),this.h[1]=a(this.h[2],u,k),this.h[2]=a(this.h[3],l,b),this.h[3]=a(this.h[4],n,v),this.h[4]=a(this.h[0],r,w),this.h[0]=x},l.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},89041:function(t,e,n){"use strict";e.sha1=n(84761),e.sha224=n(10799),e.sha256=n(89344),e.sha384=n(80772),e.sha512=n(45900)},84761:function(t,e,n){"use strict";var r=n(26436),i=n(95772),o=n(37038),s=r.rotl32,a=r.sum32,c=r.sum32_5,u=o.ft_1,l=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}
vendor: 12,278 bytes, line 1
1r.inherits(d,l),t.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=s(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],l=this.h[2],d=this.h[3],f=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),m=c(s(i,5),u(p,o,l,d),f,n[r],h[p]);f=d,d=l,l=s(o,30),o=i,i=m}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],l),this.h[3]=a(this.h[3],d),this.h[4]=a(this.h[4],f)},d.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},10799:function(t,e,n){"use strict";var r=n(26436),i=n(89344);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(o,i),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},89344:function(t,e,n){"use strict";var r=n(26436),i=n(95772),o=n(37038),s=n(79746),a=r.sum32,c=r.sum32_4,u=r.sum32_5,l=o.ch32,h=o.maj32,d=o.s0_256,f=o.s1_256,p=o.g0_256,m=o.g1_256,g=i.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}r.inherits(b,g),t.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=c(m(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],g=this.h[2],y=this.h[3],b=this.h[4],v=this.h[5],w=this.h[6],_=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var k=u(_,f(b),l(b,v,w),this.k[r],n[r]),S=a(d(i),h(i,o,g));_=w,w=v,v=b,b=a(y,k),y=g,g=o,o=i,i=a(k,S)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],y),this.h[4]=a(this.h[4],b),this.h[5]=a(this.h[5],v),this.h[6]=a(this.h[6],w),this.h[7]=a(this.h[7],_)},b.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},80772:function(t,e,n){"use strict";var r=n(26436),i=n(45900);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(o,i),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},45900:function(t,e,n){"use strict";var r=n(26436),i=n(95772),o=n(79746),s=r.rotr64_hi,a=r.rotr64_lo,c=r.shr64_hi,u=r.shr64_lo,l=r.sum64,h=r.sum64_hi,d=r.sum64_lo,f=r.sum64_4_hi,p=r.sum64_4_lo,m=r.sum64_5_hi,g=r.sum64_5_lo,y=i.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function w(t,e,n,r,i){var o=t&n^~t&i;return o<0&&(o+=4294967296),o}function _(t,e,n,r,i,o){var s=e&r^~e&o;return s<0&&(s+=4294967296),s}function k(t,e,n,r,i){var o=t&n^t&i^n&i;return o<0&&(o+=4294967296),o}function S(t,e,n,r,i,o){var s=e&r^e&o^r&o;return s<0&&(s+=4294967296),s}function x(t,e){var n=s(t,e,28)^s(e,t,2)^s(e,t,7);return n<0&&(n+=4294967296),n}function I(t,e){var n=a(t,e,28)^a(e,t,2)^a(e,t,7);return n<0&&(n+=4294967296),n}function A(t,e){var n=s(t,e,14)^s(t,e,18)^s(e,t,9);return n<0&&(n+=4294967296),n}function E(t,e){var n=a(t,e,14)^a(t,e,18)^a(e,t,9);return n<0&&(n+=4294967296),n}function T(t,e){var n=s(t,e,1)^s(t,e,8)^c(t,e,7);return n<0&&(n+=4294967296),n}function P(t,e){var n=a(t,e,1)^a(t,e,8)^u(t,e,7);return n<0&&(n+=4294967296),n}function C(t,e){var n=s(t,e,19)^s(e,t,29)^c(t,e,6);return n<0&&(n+=4294967296),n}function M(t,e){var n=a(t,e,19)^a(e,t,29)^u(t,e,6);return n<0&&(n+=4294967296),n}r.inherits(v,y),t.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(t,e){for(var n=this.W,r=0;r<32;r++)n[r]=t[e+r];for(;r<n.length;r+=2){var i=C(n[r-4],n[r-3]),o=M(n[r-4],n[r-3]),s=n[r-14],a=n[r-13],c=T(n[r-30],n[r-29]),u=P(n[r-30],n[r-29]),l=n[r-32],h=n[r-31];n[r]=f(i,o,s,a,c,u,l,h),n[r+1]=p(i,o,s,a,c,u,l,h)}},v.prototype._update=function(t,e){this._prepareBlock(t,e);var n=this.W,r=this.h[0],i=this.h[1],s=this.h[2],a=this.h[3],c=this.h[4],u=this.h[5],f=this.h[6],p=this.h[7],y=this.h[8],b=this.h[9],v=this.h[10],T=this.h[11],P=this.h[12],C=this.h[13],M=this.h[14],O=this.h[15];o(this.k.length===n.length);for(var R=0;R<n.length;R+=2){var B=M,j=O,N=A(y,b),L=E(y,b),D=w(y,b,v,T,P),z=_(y,b,v,T,P,C),F=this.k[R],U=this.k[R+1],W=n[R],G=n[R+1],V=m(B,j,N,L,D,z,F,U,W,G),K=g(B,j,N,L,D,z,F,U,W,G);B=x(r,i),j=I(r,i),N=k(r,i,s,a,c),L=S(r,i,s,a,c,u);var H=h(B,j,N,L),q=d(B,j,N,L);M=P,O=C,P=v,C=T,v=y,T=b,y=h(f,p,V,K),b=d(p,p,V,K),f=c,p=u,c=s,u=a,s=r,a=i,r=h(V,K,H,q),i=d(V,K,H,q)}l(this.h,0,r,i),l(this.h,2,s,a),l(this.h,4,c,u),l(this.h,6,f,p),l(this.h,8,y,b),l(this.h,10,v,T),l(this.h,12,P,C),l(this.h,14,M,O)},v.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},37038:function(t,e,n){"use strict";var r=n(26436).rotr32;function i(t,e,n){return t&e^~t&n}function o(t,e,n){return t&e^t&n^e&n}function s(t,e,n){return t^e^n}e.ft_1=function(t,e,n,r){return 0===t?i(e,n,r):1===t||3===t?s(e,n,r):2===t?o(e,n,r):void 0},e.ch32=i,e.maj32=o,e.p32=s,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},26436:function(t,e,n){"use strict";var r=n(79746),i=n(35717);function o(t,e){return 55296===(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320===(64512&t.charCodeAt(e+1)))}function s(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function a(t){return 1===t.length?"0"+t:t}function c(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"===typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(t="0"+t),i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16))}else for(var r=0,i=0;i<t.length;i++){var s=t.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(t,i)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<t.length;i++)n[i]=0|t[i];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=a(t[n].toString(16));return e},e.htonl=s,e.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var i=t[r];"little"===e&&(i=s(i)),n+=c(i.toString(16))}return n},e.zero2=a,e.zero8=c,e.join32=function(t,e,n,i){var o=n-e;r(o%4===0);for(var s=new Array(o/4),a=0,c=e;a<s.length;a++,c+=4){var u;u="big"===i?t[c]<<24|t[c+1]<<16|t[c+2]<<8|t[c+3]:t[c+3]<<24|t[c+2]<<16|t[c+1]<<8|t[c],s[a]=u>>>0}return s},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r<t.length;r++,i+=4){var o=t[r];"big"===e?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},e.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},e.sum64=function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,s=(o<r?1:0)+n+i;t[e]=s>>>0,t[e+1]=o},e.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,i,o,s,a){var c=0,u=e;return c+=(u=u+r>>>0)<e?1:0,c+=(u=u+o>>>0)<o?1:0,t+n+i+s+(c+=(u=u+a>>>0)<a?1:0)>>>0},e.sum64_4_lo=function(t,e,n,r,i,o,s,a){return e+r+o+a>>>0},e.sum64_5_hi=function(t,e,n,r,i,o,s,a,c,u){var l=0,h=e;return l+=(h=h+r>>>0)<e?1:0,l+=(h=h+o>>>0)<o?1:0,l+=(h=h+a>>>0)<a?1:0,t+n+i+s+c+(l+=(h=h+u>>>0)<u?1:0)>>>0},e.sum64_5_lo=function(t,e,n,r,i,o,s,a,c,u){return e+r+o+a+u>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},2156:function(t,e,n){"use strict";var r=n(33715),i=n(34504),o=n(79746);function s(t){if(!(this instanceof s))return new s(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=i.toArray(t.entropy,t.entropyEnc||"hex"),n=i.toArray(t.nonce,t.nonceEnc||"hex"),r=i.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,r)}t.exports=s,s.prototype._init=function(t,e,n){var r=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},s.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([
11]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(t,e,n,r){"string"!==typeof e&&(r=n,n=e,e=null),t=i.toArray(t,e),n=i.toArray(n,r),o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},s.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof e&&(r=n,n=e,e=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var o=[];o.length<t;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var s=o.slice(0,t);return this._update(n),this._reseed++,i.encode(s,e)}},8679:function(t,e,n){"use strict";var r=n(59864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(t){return r.isMemo(t)?s:a[t.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var u=Object.defineProperty,l=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;t.exports=function t(e,n,r){if("string"!==typeof n){if(p){var i=f(n);i&&i!==p&&t(e,i,r)}var s=l(n);h&&(s=s.concat(h(n)));for(var a=c(e),m=c(n),g=0;g<s.length;++g){var y=s[g];if(!o[y]&&(!r||!r[y])&&(!m||!m[y])&&(!a||!a[y])){var b=d(n,y);try{u(e,y,b)}catch(v){}}}}return e}},80645:function(t,e){e.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,u=c>>1,l=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+t[e+h],h+=d,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+t[e+h],h+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),o-=u}return(f?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,c,u=8*o-i-1,l=(1<<u)-1,h=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(s++,c/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(e*c-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[n+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;t[n+f]=255&s,f+=p,s/=256,u-=8);t[n+f-p]|=128*m}},35717:function(t){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},66337:function(){!function(){"use strict";if("object"===typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,n=i(e);n;)n=i(e=n.ownerDocument);return e}(),e=[],n=null,r=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(t,n){r=t&&n?d(t,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),n},s._resetCrossOriginUpdater=function(){n=null,r=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var n=e.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(e)){var r=this._checkForIntersections,o=null,s=null;this.POLL_INTERVAL?o=n.setInterval(r,this.POLL_INTERVAL):(a(n,"resize",r,!0),a(e,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(s=new n.MutationObserver(r)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(o&&t.clearInterval(o),c(t,"resize",r,!0)),c(e,"scroll",r,!0),s&&s.disconnect()}));var u=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=u){var l=i(e);l&&this._monitorIntersections(l.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var n=this._monitoringDocuments.indexOf(e);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||t,o=this._observationTargets.some((function(t){var n=t.element.ownerDocument;if(n==e)return!0;for(;n&&n!=r;){var o=i(n);if((n=o&&o.ownerDocument)==e)return!0}return!1}));if(!o){var s=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),s(),e!=r){var a=i(e);a&&this._unmonitorIntersections(a.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!n||r){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};
vendor: 4,805 bytes, line 1
1this._observationTargets.forEach((function(r){var i=r.element,s=l(i),a=this._rootContainsTarget(i),c=r.entry,u=t&&a&&this._computeTargetAndRootIntersection(i,s,e),h=null;this._rootContainsTarget(i)?n&&!this.root||(h=e):h={top:0,bottom:0,left:0,right:0,width:0,height:0};var d=r.entry=new o({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:h,intersectionRect:u});c?t&&a?this._hasCrossedThreshold(c,d)&&this._queuedEntries.push(d):c&&c.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,i,o){if("none"!=window.getComputedStyle(e).display){for(var s=i,a=p(e),c=!1;!c&&a;){var h=null,f=1==a.nodeType?window.getComputedStyle(a):{};if("none"==f.display)return null;if(a==this.root||9==a.nodeType)if(c=!0,a==this.root||a==t)n&&!this.root?!r||0==r.width&&0==r.height?(a=null,h=null,s=null):h=r:h=o;else{var m=p(a),g=m&&l(m),y=m&&this._computeTargetAndRootIntersection(m,g,o);g&&y?(a=m,h=d(g,y)):(a=null,s=null)}else{var b=a.ownerDocument;a!=b.body&&a!=b.documentElement&&"visible"!=f.overflow&&(h=l(a))}if(h&&(s=u(h,s)),!s)break;a=a&&p(a)}return s}},s.prototype._getRootRect=function(){var e;if(this.root&&!m(this.root))e=l(this.root);else{var n=m(this.root)?this.root:t,r=n.documentElement,i=n.body;e={top:0,left:0,right:r.clientWidth||i.clientWidth,width:r.clientWidth||i.clientWidth,bottom:r.clientHeight||i.clientHeight,height:r.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},s.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==n||o==r||o<n!==o<r)return!0}},s.prototype._rootIsInDom=function(){return!this.root||f(t,this.root)},s.prototype._rootContainsTarget=function(e){var n=this.root&&(this.root.ownerDocument||this.root)||t;return f(n,e)&&(!this.root||n==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=o}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(e){return null}}function o(t){this.time=t.time,this.target=t.target,this.rootBounds=h(t.rootBounds),this.boundingClientRect=h(t.boundingClientRect),this.intersectionRect=h(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var n=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=function(t,e){var n=null;return function(){n||(n=setTimeout((function(){t(),n=null}),e))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(t,e,n,r){"function"==typeof t.addEventListener?t.addEventListener(e,n,r||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function c(t,e,n,r){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,r||!1):"function"==typeof t.detachEvent&&t.detachEvent("on"+e,n)}function u(t,e){var n=Math.max(t.top,e.top),r=Math.min(t.bottom,e.bottom),i=Math.max(t.left,e.left),o=Math.min(t.right,e.right),s=o-i,a=r-n;return s>=0&&a>=0&&{top:n,bottom:r,left:i,right:o,width:s,height:a}||null}function l(t){var e;try{e=t.getBoundingClientRect()}catch(n){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function h(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function d(t,e){var n=e.top-t.top,r=e.left-t.left;
1return{top:n,left:r,height:e.height,width:e.width,bottom:n+e.height,right:r+e.width}}function f(t,e){for(var n=e;n;){if(n==t)return!0;n=p(n)}return!1}function p(e){var n=e.parentNode;return 9==e.nodeType&&e!=t?i(e):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function m(t){return t&&9===t.nodeType}}()},82584:function(t,e,n){"use strict";var r=n(96410)(),i=n(21924)("Object.prototype.toString"),o=function(t){return!(r&&t&&"object"===typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},s=function(t){return!!o(t)||null!==t&&"object"===typeof t&&"number"===typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},a=function(){return o(arguments)}();o.isLegacyArguments=s,t.exports=a?o:s},95320:function(t){"use strict";var e,n,r=Function.prototype.toString,i="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof i&&"function"===typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,e)}catch(l){l!==n&&(i=null)}else i=null;var o=/^\s*class\b/,s=function(t){try{var e=r.call(t);return o.test(e)}catch(n){return!1}},a=Object.prototype.toString,c="function"===typeof Symbol&&!!Symbol.toStringTag,u="object"===typeof document&&"undefined"===typeof document.all&&void 0!==document.all?document.all:{};t.exports=i?function(t){if(t===u)return!0;if(!t)return!1;if("function"!==typeof t&&"object"!==typeof t)return!1;if("function"===typeof t&&!t.prototype)return!0;try{i(t,null,e)}catch(r){if(r!==n)return!1}return!s(t)}:function(t){if(t===u)return!0;if(!t)return!1;if("function"!==typeof t&&"object"!==typeof t)return!1;if("function"===typeof t&&!t.prototype)return!0;if(c)return function(t){try{return!s(t)&&(r.call(t),!0)}catch(e){return!1}}(t);if(s(t))return!1;var e=a.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e}},48662:function(t,e,n){"use strict";var r,i=Object.prototype.toString,o=Function.prototype.toString,s=/^\s*(?:function)?\*/,a=n(96410)(),c=Object.getPrototypeOf;t.exports=function(t){if("function"!==typeof t)return!1;if(s.test(o.call(t)))return!0;if(!a)return"[object GeneratorFunction]"===i.call(t);if(!c)return!1;if("undefined"===typeof r){var e=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(t){}}();r=!!e&&c(e)}return c(t)===r}},98611:function(t){"use strict";t.exports=function(t){return t!==t}},20360:function(t,e,n){"use strict";var r=n(55559),i=n(4289),o=n(98611),s=n(29415),a=n(23194),c=r(s(),Number);i(c,{getPolyfill:s,implementation:o,shim:a}),t.exports=c},29415:function(t,e,n){"use strict";var r=n(98611);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},23194:function(t,e,n){"use strict";var r=n(4289),i=n(29415);t.exports=function(){var t=i();return r(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},85692:function(t,e,n){"use strict";var r=n(94029),i=n(63083),o=n(21924),s=o("Object.prototype.toString"),a=n(96410)(),c="undefined"===typeof globalThis?n.g:globalThis,u=i(),l=o("Array.prototype.indexOf",!0)||function(t,e){for(var n=0;n<t.length;n+=1)if(t[n]===e)return n;return-1},h=o("String.prototype.slice"),d={},f=n(20882),p=Object.getPrototypeOf;a&&f&&p&&r(u,(function(t){var e=new c[t];if(Symbol.toStringTag in e){var n=p(e),r=f(n,Symbol.toStringTag);if(!r){var i=p(n);r=f(i,Symbol.toStringTag)}d[t]=r.get}}));t.exports=function(t){if(!t||"object"!==typeof t)return!1;if(!a||!(Symbol.toStringTag in t)){var e=h(s(t),8,-1);return l(u,e)>-1}return!!f&&function(t){var e=!1;return r(d,(function(n,r){if(!e)try{e=n.call(t)===r}catch(i){}})),e}(t)}},31198:function(t,e,n){"use strict";const r=n(97466).v4,i=n(17741),o=function(t,e){if(!(this instanceof o))return new o(t,e);e||(e={}),this.options={reviver:"undefined"!==typeof e.reviver?e.reviver:null,replacer:"undefined"!==typeof e.replacer?e.replacer:null,generator:"undefined"!==typeof e.generator?e.generator:function(){return r()},version:"undefined"!==typeof e.version?e.version:2,notificationIdNull:"boolean"===typeof e.notificationIdNull&&e.notificationIdNull},this.callServer=t};t.exports=o,o.prototype.request=function(t,e,n,r){const o=this;let s=null;const a=Array.isArray(t)&&"function"===typeof e;if(1===this.options.version&&a)throw new TypeError("JSON-RPC 1.0 does not support batching");if(a||!a&&t&&"object"===typeof t&&"function"===typeof e)r=e,s=t;else{"function"===typeof n&&(r=n,n=void 0);const o="function"===typeof r;try{s=i(t,e,n,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(u){if(o)return r(u);throw u}if(!o)return s}let c;try{c=JSON.stringify(s,this.options.replacer)}catch(u){return r(u)}return this.callServer(c,(function(t,e){o._parseResponse(t,e,r)})),s},o.prototype._parseResponse=function(t,e,n){if(t)return void n(t);if(!e)return n();let r;try{r=JSON.parse(e,this.options.reviver)}catch(t){return n(t)}if(3===n.length){if(Array.isArray(r)){const t=function(t){return"undefined"!==typeof t.error},e=function(e){return!t(e)};return n(null,r.filter(t),r.filter(e))}return n(null,r.error,r.result)}n(null,r)}},17741:function(t,e,n){"use strict";const r=n(97466).v4;t.exports=function(t,e,n,i){if("string"!==typeof t)throw new TypeError(t+" must be a string");const o="number"===typeof(i=i||{}).version?i.version:2;if(1!==o&&2!==o)throw new TypeError(o+" must be 1 or 2");const s={method:t};if(2===o&&(s.jsonrpc="2.0"),e){if("object"!==typeof e&&!Array.isArray(e))throw new TypeError(e+" must be an object, array or omitted");s.params=e}if("undefined"===typeof n){const t="function"===typeof i.generator?i.generator:function(){return r()};s.id=t(s,i)}else 2===o&&null===n?i.notificationIdNull&&(s.id=null):s.id=n;return s}},21509:function(t,e,n){"use strict";function r(t,e,n){return parseInt(t.substr(e,n),16)}function i(t){return(t|=0)<0?"00":t<16?"0"+t.toString(16):t<256?t.toString(16):"ff"}function o(t,e,n){return i(255*((n=n<0?n+6:n>6?n-6:n)<1?t+(e-t)*n:n<3?e:n<4?t+(e-t)*(4-n):t))}function s(t){if(/^#[0-9a-f]{3,8}$/i.test(t)){var e,n=t.length;if(n<6){var r=t[1],i=t[2],o=t[3],s=t[4]||"";e="#"+r+r+i+i+o+o+s+s}return(7==n||n>8)&&(e=t),e}}function a(t){var e,n=r(t,7,2);isNaN(n)?e=t:e="rgba("+r(t,1,2)+","+r(t,3,2)+","+r(t,5,2)+","+(n/255).toFixed(2)+")";return e}function c(t,e,n){var r=[.55,.5,.5,.46,.6,.55,.55][6*t+.5|0];return function(t,e,n){var r;if(0==e){var s=i(255*n);r=s+s+s}else{var a=n<=.5?n*(e+1):n+e-n*e,c=2*n-a;r=o(c,a,6*t+2)+o(c,a,6*t)+o(c,a,6*t-2)}return"#"+r}(t,e,n=n<.5?n*r*2:r+(n-.5)*(1-r)*2)}var u="undefined"!==typeof window?window:"undefined"!==typeof self?self:"undefined"!==typeof n.g?n.g:{},l="jdenticon_config",h="config",d={};function f(t,e){this.x=t,this.y=e}function p(t,e,n,r){this.q=t,this.t=e,this.I=n,this.Z=r}p.prototype.J=function(t,e,n,r){var i=this.q+this.I,o=this.t+this.I,s=this.Z;return 1===s?new f(i-e-(r||0),this.t+t):2===s?new f(i-t-(n||0),o-e-(r||0)):3===s?new f(this.q+e,o-t-(n||0)):new f(this.q+t,this.t+e)};var m=new p(0,0,0,0);function g(t){this.K=t,this.u=m}var y=g.prototype;function b(t,e,n,r){var i,o,s,a,c,u;(t%=14)?1==t?(s=0|.5*n,a=0|.8*n,e.j(n-s,0,s,a,2)):2==t?(s=0|n/3,e.i(s,s,n-s,n-s)):3==t?(u=n<6?1:n<8?2:0|.25*n,c=(c=.1*n)>1?0|c:c>.5?1:c,e.i(u,u,n-c-u,n-c-u)):4==t?(o=0|.15*n,s=0|.5*n,e.h(n-s-o,n-s-o,s)):5==t?((u=4*(c=.1*n))>3&&(u|=0),e.i(0,0,n,n),e.g([u,u,n-c,u,u+(n-u-c)/2,n-c],!0)):6==t?e.g([0,0,n,0,n,.7*n,.4*n,.4*n,.7*n,n,0,n]):7==t?e.j(n/2,n/2,n/2,n/2,3):8==t?(e.i(0,0,n,n/2),e.i(0,n/2,n/2,n/2),e.j(n/2,n/2,n/2,n/2,1)):9==t?(c=.14*n,u=n<4?1:n<6?2:0|.35*n,c=n<8?c:0|c,e.i(0,0,n,n),e.
vendor: 5,701 bytes, line 1
1i(u,u,n-u-c,n-u-c,!0)):10==t?(u=3*(c=.12*n),e.i(0,0,n,n),e.h(u,u,n-c-u,!0)):11==t?e.j(n/2,n/2,n/2,n/2,3):12==t?(o=.25*n,e.i(0,0,n,n),e.L(o,o,n-o,n-o,!0)):!r&&(o=.4*n,s=1.2*n,e.h(o,o,s)):(i=.42*n,e.g([0,0,n,0,n,n-2*i,n-i,n,0,n]))}function v(t,e,n){var r;(t%=4)?1==t?e.j(0,n/2,n,n/2,0):2==t?e.L(0,0,n,n):(r=n/6,e.h(r,r,n-2*r)):e.j(0,0,n,n,0)}function w(t,e,n){var i=function(t,e){var n="object"==typeof t&&t||d[h]||u[l]||{},r=n.lightness||{},i=n.saturation||{},o="color"in i?i.color:i,a=i.grayscale,c=n.backColor,f=n.padding;function p(t,e){var n=r[t];return n&&n.length>1||(n=e),function(t){return(t=n[0]+t*(n[1]-n[0]))<0?0:t>1?1:t}}return{X:function(t){var e,r=n.hues;return r&&r.length>0&&(e=r[0|.999*t*r.length]),"number"==typeof e?(e/360%1+1)%1:t},o:"number"==typeof o?o:.5,F:"number"==typeof a?a:0,p:p("color",[.4,.8]),G:p("grayscale",[.3,.9]),H:s(c),Y:"number"==typeof t?t:"number"==typeof f?f:e}}(n,.08);i.H&&t.m(i.H);var o=t.k,a=.5+o*i.Y|0;o-=2*a;var f=new g(t),m=0|o/4,y=0|a+o/2-2*m,w=0|a+o/2-2*m;function _(n,i,o,s,a){var c=r(e,o,1),u=s?r(e,s,1):0;t.M(S[x[n]]);for(var l=0;l<a.length;l++)f.u=new p(y+a[l][0]*m,w+a[l][1]*m,m,u++%4),i(c,f,m,l);t.N()}var k,S=function(t,e){return[c(t=e.X(t),e.F,e.G(0)),c(t,e.o,e.p(.5)),c(t,e.F,e.G(1)),c(t,e.o,e.p(1)),c(t,e.o,e.p(0))]}(r(e,-7)/268435455,i),x=[];function I(t){if(t.indexOf(k)>=0)for(var e=0;e<t.length;e++)if(x.indexOf(t[e])>=0)return!0}for(var A=0;A<3;A++)k=r(e,8+A,1)%S.length,(I([0,4])||I([2,3]))&&(k=1),x.push(k);_(0,v,2,3,[[1,0],[2,0],[2,3],[1,3],[0,1],[3,1],[3,2],[0,2]]),_(1,v,4,5,[[0,0],[3,0],[3,3],[0,3]]),_(2,b,1,null,[[1,1],[2,1],[2,2],[1,2]]),t.finish()}function _(t){return/^[0-9a-f]{11,}$/i.test(t)&&t}function k(t){return function(t){var e,n=0,r=0,i=encodeURI(t)+"%80",o=[],s=[],a=1732584193,c=4023233417,u=~a,l=~c,h=3285377520,d=[a,c,u,l,h],f=0,p="";function m(t,e){return t<<e|t>>>32-e}for(;n<i.length;r++)o[r>>2]=o[r>>2]|("%"==i[n]?parseInt(i.substring(n+1,n+=3),16):i.charCodeAt(n++))<<8*(3-(3&r));for(o[(e=16*(1+(r+7>>6)))-1]=8*r-8;f<e;f+=16){for(n=0;n<80;n++)r=m(a,5)+h+(n<20?1518500249+(c&u^~c&l):n<40?1859775393+(c^u^l):n<60?2400959708+(c&u^c&l^u&l):3395469782+(c^u^l))+(s[n]=n<16?0|o[f+n]:m(s[n-3]^s[n-8]^s[n-14]^s[n-16],1)),h=l,l=u,u=m(c,30),c=a,a=r;d[0]=a=d[0]+a|0,d[1]=c=d[1]+c|0,d[2]=u=d[2]+u|0,d[3]=l=d[3]+l|0,d[4]=h=d[4]+h|0}for(n=0;n<40;n++)p+=(d[n>>3]>>>4*(7-(7&n))&15).toString(16);return p}(null==t?"":""+t)}function S(t,e){var n=t.canvas,r=n.width,i=n.height;t.save(),e||(e=Math.min(r,i),t.translate((r-e)/2|0,(i-e)/2|0)),this.l=t,this.k=e,t.clearRect(0,0,e,e)}y.g=function(t,e){for(var n=e?-2:2,r=[],i=e?t.length-2:0;i<t.length&&i>=0;i+=n)r.push(this.u.J(t[i],t[i+1]));this.K.g(r)},y.h=function(t,e,n,r){var i=this.u.J(t,e,n,n);this.K.h(i,n,r)},y.i=function(t,e,n,r,i){this.g([t,e,t+n,e,t+n,e+r,t,e+r],i)},y.j=function(t,e,n,r,i,o){var s=[t+n,e,t+n,e+r,t,e+r,t,e];s.splice((i||0)%4*2,2),this.g(s,o)},y.L=function(t,e,n,r,i){this.g([t+n/2,e,t+n,e+r/2,t+n/2,e+r,t,e+r/2],i)};var x=S.prototype;function I(t){return(10*t+.5|0)/10}function A(){this.v=""}x.m=function(t){var e=this.l,n=this.k;e.fillStyle=a(t),e.fillRect(0,0,n,n)},x.M=function(t){var e=this.l;e.fillStyle=a(t),e.beginPath()},x.N=function(){this.l.fill()},x.g=function(t){var e=this.l;e.moveTo(t[0].x,t[0].y);for(var n=1;n<t.length;n++)e.lineTo(t[n].x,t[n].y);e.closePath()},x.h=function(t,e,n){var r=this.l,i=e/2;r.moveTo(t.x+i,t.y+i),r.arc(t.x+i,t.y+i,i,0,2*Math.PI,n),r.closePath()},x.finish=function(){this.l.restore()};var E=A.prototype;function T(t){this.A,this.B={},this.O=t,this.k=t.k}E.g=function(t){for(var e="",n=0;n<t.length;n++)e+=(n?"L":"M")+I(t[n].x)+" "+I(t[n].y);this.v+=e+"Z"},E.h=function(t,e,n){var r=n?0:1,i=I(e/2),o=I(e),s="a"+i+","+i+" 0 1,"+r+" ";this.v+="M"+I(t.x)+" "+I(t.y+e/2)+s+o+",0"+s+-o+",0"};var P=T.prototype;P.m=function(t){var e=/^(#......)(..)?/.exec(t),n=e[2]?r(e[2],0)/255:1;this.O.m(e[1],n)},P.M=function(t){this.A=this.B[t]||(this.B[t]=new A)},P.N=function(){},P.g=function(t){this.A.g(t)},P.h=function(t,e,n){this.A.h(t,e,n)},P.finish=function(){var t=this.B;for(var e in t)t.hasOwnProperty(e)&&this.O.P(e,t[e].v)};var C="http://www.w3.org/2000/svg",M="width",O="height";function R(t){this.k=t,this.C='<svg xmlns="'+C+'" width="'+t+'" height="'+t+'" viewBox="0 0 '+t+" "+t+'">'}var B=R.prototype;B.m=function(t,e){e&&(this.C+='<rect width="100%" height="100%" fill="'+t+'" opacity="'+e.toFixed(2)+'"/>')},B.P=function(t,e){this.C+='<path fill="'+t+'" d="'+e+'"/>'},B.toString=function(){return this.C+"</svg>"};var j="data-jdenticon-hash",N="data-jdenticon-value",L="["+j+"],["+N+"]",D="undefined"!==typeof document&&document.querySelectorAll.bind(document);function z(t,e){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];for(var i=document.createElementNS(C,e),o=0;o+1<n.length;o+=2)i.setAttribute(n[o],n[o+1]);t.appendChild(i)}function F(t){var e=this.k=Math.min(Number(t.getAttribute(M))||100,Number(t.getAttribute(O))||100);for(this.V=t;t.firstChild;)t.removeChild(t.firstChild);t.setAttribute("viewBox","0 0 "+e+" "+e),t.setAttribute("preserveAspectRatio","xMidYMid meet")}var U=F.prototype;function W(t,e,n){G(t,e,n,(function(t,e){if(e)return 1==e?new T(new F(t)):new S(t.getContext("2d"))}))}function G(t,e,n,r){if("string"!==typeof t){var i=_(e)||null!=e&&k(e)||_(t.getAttribute(j))||t.hasAttribute(N)&&k(t.getAttribute(N));if(i){var o=r(t,function(t){if(t){var e=t.tagName;if(/^svg$/i.test(e))return 1;if(/^canvas$/i.test(e)&&"getContext"in t)return 2}}(t));o&&w(o,i,n)}}else if(D)for(var s=D(t),a=0;a<s.length;a++)G(s[a],e,n,r)}U.m=function(t,e){e&&z(this.V,"rect",M,"100%",O,"100%","fill",t,"opacity",e)},U.P=function(t,e){z(this.V,"path","fill",t,"d",e)};var V=function(){D&&W(L)};
1d=V,V.configure=function(t){return arguments.length&&(d[h]=t),d[h]},V.drawIcon=function(t,e,n,r){if(!t)throw new Error("No canvas specified.");w(new S(t,n),_(e)||k(e),r)},V.toSvg=function(t,e,n){var r=new R(e);return w(new T(r),_(t)||k(t),n),r.toString()},V.update=W,V.updateCanvas=function(t,e,n){G(t,e,n,(function(t,e){if(2==e)return new S(t.getContext("2d"))}))},V.updateSvg=function(t,e,n){G(t,e,n,(function(t,e){if(1==e)return new T(new F(t))}))},V.version="3.2.0",V.bundle="browser-cjs",t.exports=V},72023:function(module,exports,__webpack_require__){var process=__webpack_require__(34155),__WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"===typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"===typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(n){return new Sha256(e,!0).update(n)[t]()}},createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var n=0;n<OUTPUT_TYPES.length;++n){var r=OUTPUT_TYPES[n];e[r]=createOutputMethod(r,t)}return e},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(t){if("string"===typeof t)return crypto.createHash(algorithm).update(t,"utf8").digest("hex");if(null===t||void 0===t)throw new Error(ERROR);return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(t)).digest("hex"):method(t)};return nodeMethod},createHmacOutputMethod=function(t,e){return function(n,r){return new HmacSha256(n,e,!0).update(r)[t]()}},createHmacMethod=function(t){var e=createHmacOutputMethod("hex",t);e.create=function(e){return new HmacSha256(e,t)},e.update=function(t,n){return e.create(t).update(n)};for(var n=0;n<OUTPUT_TYPES.length;++n){var r=OUTPUT_TYPES[n];e[r]=createHmacOutputMethod(r,t)}return e};function Sha256(t,e){e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=t}function HmacSha256(t,e,n){var r,i=typeof t;if("string"===i){var o,s=[],a=t.length,c=0;for(r=0;r<a;++r)(o=t.charCodeAt(r))<128?s[c++]=o:o<2048?(s[c++]=192|o>>6,s[c++]=128|63&o):o<55296||o>=57344?(s[c++]=224|o>>12,s[c++]=128|o>>6&63,s[c++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++r)),s[c++]=240|o>>18,s[c++]=128|o>>12&63,s[c++]=128|o>>6&63,s[c++]=128|63&o);t=s}else{if("object"!==i)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var u=[],l=[];for(r=0;r<64;++r){var h=t[r]||0;u[r]=92^h,l[r]=54^h}Sha256.call(this,e,n),this.update(l),this.oKeyPad=u,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(t){if(!this.finalized){var e,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var r,i,o=0,s=t.length,a=this.blocks;o<s;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),e)for(i=this.start;o<s&&i<64;++o)a[i>>2]|=t[o]<<SHIFT[3&i++];else for(i=this.start;o<s&&i<64;++o)(r=t.charCodeAt(o))<128?a[i>>2]|=r<<SHIFT[3&i++]:r<2048?(a[i>>2]|=(192|r>>6)<<SHIFT[3&i++],a[i>>2]|=(128|63&r)<<SHIFT[3&i++]):r<55296||r>=57344?(a[i>>2]|=(224|r>>12)<<SHIFT[3&i++],a[i>>2]|=(128|r>>6&63)<<SHIFT[3&i++],a[i>>2]|=(128|63&r)<<SHIFT[3&i++]):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++o)),a[i>>2]|=(240|r>>18)<<SHIFT[3&i++],a[i>>2]|=(128|r>>12&63)<<SHIFT[3&i++],a[i>>2]|=(128|r>>6&63)<<SHIFT[3&i++],a[i>>2]|=(128|63&r)<<SHIFT[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.block=a[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,n,r,i,o,s,a,c,u=this.h0,l=this.h1,h=this.h2,d=this.h3,f=this.h4,p=this.h5,m=this.h6,g=this.h7,y=this.blocks;for(t=16;t<64;
1++t)e=((i=y[t-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,n=((i=y[t-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,y[t]=y[t-16]+e+y[t-7]+n<<0;for(c=l&h,t=0;t<64;t+=4)this.first?(this.is224?(o=300032,g=(i=y[0]-1413257819)-150054599<<0,d=i+24177077<<0):(o=704751109,g=(i=y[0]-210244248)-1521486534<<0,d=i+143694565<<0),this.first=!1):(e=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),r=(o=u&l)^u&h^c,g=d+(i=g+(n=(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&p^~f&m)+K[t]+y[t])<<0,d=i+(e+r)<<0),e=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),r=(s=d&u)^d&l^o,m=h+(i=m+(n=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&f^~g&p)+K[t+1]+y[t+1])<<0,e=((h=i+(e+r)<<0)>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),r=(a=h&d)^h&u^s,p=l+(i=p+(n=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&g^~m&f)+K[t+2]+y[t+2])<<0,e=((l=i+(e+r)<<0)>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),r=(c=l&h)^l&d^a,f=u+(i=f+(n=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&m^~p&g)+K[t+3]+y[t+3])<<0,u=i+(e+r)<<0;this.h0=this.h0+u<<0,this.h1=this.h1+l<<0,this.h2=this.h2+h<<0,this.h3=this.h3+d<<0,this.h4=this.h4+f<<0,this.h5=this.h5+p<<0,this.h6=this.h6+m<<0,this.h7=this.h7+g<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3,i=this.h4,o=this.h5,s=this.h6,a=this.h7,c=HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s];return this.is224||(c+=HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3,i=this.h4,o=this.h5,s=this.h6,a=this.h7,c=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o,s>>24&255,s>>16&255,s>>8&255,255&s];return this.is224||c.push(a>>24&255,a>>16&255,a>>8&255,255&a),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},91094:function(t,e,n){var r,i=n(34155);!function(){"use strict";
vendor: 6,977 bytes, line 1
1var o="input is invalid type",s="object"===typeof window,a=s?window:{};a.JS_SHA3_NO_WINDOW&&(s=!1);var c=!s&&"object"===typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"===typeof i&&i.versions&&i.versions.node?a=n.g:c&&(a=self);var u=!a.JS_SHA3_NO_COMMON_JS&&t.exports,l=n.amdO,h=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,d="0123456789abcdef".split(""),f=[4,1024,262144,67108864],p=[0,8,16,24],m=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],g=[224,256,384,512],y=[128,256],b=["hex","buffer","arrayBuffer","array","digest"],v={128:168,256:136};!a.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!h||!a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var w=function(t,e,n){return function(r){return new j(t,e,t).update(r)[n]()}},_=function(t,e,n){return function(r,i){return new j(t,e,i).update(r)[n]()}},k=function(t,e,n){return function(e,r,i,o){return E["cshake"+t].update(e,r,i,o)[n]()}},S=function(t,e,n){return function(e,r,i,o){return E["kmac"+t].update(e,r,i,o)[n]()}},x=function(t,e,n,r){for(var i=0;i<b.length;++i){var o=b[i];t[o]=e(n,r,o)}return t},I=function(t,e){var n=w(t,e,"hex");return n.create=function(){return new j(t,e,t)},n.update=function(t){return n.create().update(t)},x(n,w,t,e)},A=[{name:"keccak",padding:[1,256,65536,16777216],bits:g,createMethod:I},{name:"sha3",padding:[6,1536,393216,100663296],bits:g,createMethod:I},{name:"shake",padding:[31,7936,2031616,520093696],bits:y,createMethod:function(t,e){var n=_(t,e,"hex");return n.create=function(n){return new j(t,e,n)},n.update=function(t,e){return n.create(e).update(t)},x(n,_,t,e)}},{name:"cshake",padding:f,bits:y,createMethod:function(t,e){var n=v[t],r=k(t,0,"hex");return r.create=function(r,i,o){return i||o?new j(t,e,r).bytepad([i,o],n):E["shake"+t].create(r)},r.update=function(t,e,n,i){return r.create(e,n,i).update(t)},x(r,k,t,e)}},{name:"kmac",padding:f,bits:y,createMethod:function(t,e){var n=v[t],r=S(t,0,"hex");return r.create=function(r,i,o){return new N(t,e,i).bytepad(["KMAC",o],n).bytepad([r],n)},r.update=function(t,e,n,i){return r.create(t,n,i).update(e)},x(r,S,t,e)}}],E={},T=[],P=0;P<A.length;++P)for(var C=A[P],M=C.bits,O=0;O<M.length;++O){var R=C.name+"_"+M[O];if(T.push(R),E[R]=C.createMethod(M[O],C.padding),"sha3"!==C.name){var B=C.name+M[O];T.push(B),E[B]=E[R]}}function j(t,e,n){this.blocks=[],this.s=[],this.padding=e,this.outputBits=n,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function N(t,e,n){j.call(this,t,e,n)}j.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(o);if(null===t)throw new Error(o);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw new Error(o);e=!0}for(var r,i,s=this.blocks,a=this.byteCount,c=t.length,u=this.blockCount,l=0,d=this.s;l<c;){if(this.reset)for(this.reset=!1,s[0]=this.block,r=1;r<u+1;++r)s[r]=0;if(e)for(r=this.start;l<c&&r<a;++l)s[r>>2]|=t[l]<<p[3&r++];else for(r=this.start;l<c&&r<a;++l)(i=t.charCodeAt(l))<128?s[r>>2]|=i<<p[3&r++]:i<2048?(s[r>>2]|=(192|i>>6)<<p[3&r++],s[r>>2]|=(128|63&i)<<p[3&r++]):i<55296||i>=57344?(s[r>>2]|=(224|i>>12)<<p[3&r++],s[r>>2]|=(128|i>>6&63)<<p[3&r++],s[r>>2]|=(128|63&i)<<p[3&r++]):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++l)),s[r>>2]|=(240|i>>18)<<p[3&r++],s[r>>2]|=(128|i>>12&63)<<p[3&r++],s[r>>2]|=(128|i>>6&63)<<p[3&r++],s[r>>2]|=(128|63&i)<<p[3&r++]);if(this.lastByteIndex=r,r>=a){for(this.start=r-a,this.block=s[u],r=0;r<u;++r)d[r]^=s[r];L(d),this.reset=!0}else this.start=r}return this},j.prototype.encode=function(t,e){var n=255&t,r=1,i=[n];for(n=255&(t>>=8);n>0;)i.unshift(n),n=255&(t>>=8),++r;return e?i.push(r):i.unshift(r),this.update(i),i.length},j.prototype.encodeString=function(t){var e,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(o);if(null===t)throw new Error(o);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw new Error(o);e=!0}var r=0,i=t.length;if(e)r=i;else for(var s=0;s<t.length;++s){var a=t.charCodeAt(s);a<128?r+=1:a<2048?r+=2:a<55296||a>=57344?r+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++s)),r+=4)}return r+=this.encode(8*r),this.update(t),r},j.prototype.bytepad=function(t,e){for(var n=this.encode(e),r=0;r<t.length;++r)n+=this.encodeString(t[r]);var i=e-n%e,o=[];return o.length=i,this.update(o),this},j.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,n=this.blockCount,r=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[n],e=1;e<n+1;++e)t[e]=0;for(t[n-1]|=2147483648,e=0;e<n;++e)r[e]^=t[e];L(r)}},j.prototype.toString=j.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,s=0,a="";s<r;){for(o=0;o<e&&s<r;++o,++s)t=n[o],a+=d[t>>4&15]+d[15&t]+d[t>>12&15]+d[t>>8&15]+d[t>>20&15]+d[t>>16&15]+d[t>>28&15]+d[t>>24&15];s%e===0&&(L(n),o=0)}return i&&(t=n[o],a+=d[t>>4&15]+d[15&t],i>1&&(a+=d[t>>12&15]+d[t>>8&15]),i>2&&(a+=d[t>>20&15]+d[t>>16&15])),a},j.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,s=0,a=this.outputBits>>3;t=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(a);for(var c=new Uint32Array(t);s<r;){for(o=0;o<e&&s<r;++o,++s)c[s]=n[o];s%e===0&&L(n)}return i&&(c[o]=n[o],t=t.slice(0,a)),t},j.prototype.buffer=j.prototype.arrayBuffer,j.prototype.digest=j.prototype.array=function(){this.finalize();for(var t,e,n=this.blockCount,r=this.s,i=this.outputBlocks,o=this.extraBytes,s=0,a=0,c=[];a<i;){for(s=0;s<n&&a<i;++s,++a)t=a<<2,e=r[s],c[t]=255&e,c[t+1]=e>>8&255,c[t+2]=e>>16&255,c[t+3]=e>>24&255;a%n===0&&L(r)}return o&&(t=a<<2,e=r[s],c[t]=255&e,o>1&&(c[t+1]=e>>8&255),o>2&&(c[t+2]=e>>16&255)),c},N.prototype=new j,N.prototype.finalize=function(){return this.encode(this.outputBits,!0),j.prototype.finalize.call(this)};var L=function(t){var e,n,r,i,o,s,a,c,u,l,h,d,f,p,g,y,b,v,w,_,k,S,x,I,A,E,T,P,C,M,O,R,B,j,N,L,D,z,F,U,W,G,V,K,H,q,$,Z,Y,X,J,Q,tt,et,nt,rt,it,ot,st,at,ct,ut,lt;for(r=0;r<48;r+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],c=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[3
16]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],e=(d=t[8]^t[18]^t[28]^t[38]^t[48])^(s<<1|a>>>31),n=(f=t[9]^t[19]^t[29]^t[39]^t[49])^(a<<1|s>>>31),t[0]^=e,t[1]^=n,t[10]^=e,t[11]^=n,t[20]^=e,t[21]^=n,t[30]^=e,t[31]^=n,t[40]^=e,t[41]^=n,e=i^(c<<1|u>>>31),n=o^(u<<1|c>>>31),t[2]^=e,t[3]^=n,t[12]^=e,t[13]^=n,t[22]^=e,t[23]^=n,t[32]^=e,t[33]^=n,t[42]^=e,t[43]^=n,e=s^(l<<1|h>>>31),n=a^(h<<1|l>>>31),t[4]^=e,t[5]^=n,t[14]^=e,t[15]^=n,t[24]^=e,t[25]^=n,t[34]^=e,t[35]^=n,t[44]^=e,t[45]^=n,e=c^(d<<1|f>>>31),n=u^(f<<1|d>>>31),t[6]^=e,t[7]^=n,t[16]^=e,t[17]^=n,t[26]^=e,t[27]^=n,t[36]^=e,t[37]^=n,t[46]^=e,t[47]^=n,e=l^(i<<1|o>>>31),n=h^(o<<1|i>>>31),t[8]^=e,t[9]^=n,t[18]^=e,t[19]^=n,t[28]^=e,t[29]^=n,t[38]^=e,t[39]^=n,t[48]^=e,t[49]^=n,p=t[0],g=t[1],q=t[11]<<4|t[10]>>>28,$=t[10]<<4|t[11]>>>28,P=t[20]<<3|t[21]>>>29,C=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ct=t[30]<<9|t[31]>>>23,G=t[40]<<18|t[41]>>>14,V=t[41]<<18|t[40]>>>14,j=t[2]<<1|t[3]>>>31,N=t[3]<<1|t[2]>>>31,y=t[13]<<12|t[12]>>>20,b=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,Y=t[23]<<10|t[22]>>>22,M=t[33]<<13|t[32]>>>19,O=t[32]<<13|t[33]>>>19,ut=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,nt=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,D=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,X=t[34]<<15|t[35]>>>17,J=t[35]<<15|t[34]>>>17,R=t[45]<<29|t[44]>>>3,B=t[44]<<29|t[45]>>>3,I=t[6]<<28|t[7]>>>4,A=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,z=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,_=t[36]<<21|t[37]>>>11,k=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,K=t[8]<<27|t[9]>>>5,H=t[9]<<27|t[8]>>>5,E=t[18]<<20|t[19]>>>12,T=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,U=t[38]<<8|t[39]>>>24,W=t[39]<<8|t[38]>>>24,S=t[48]<<14|t[49]>>>18,x=t[49]<<14|t[48]>>>18,t[0]=p^~y&v,t[1]=g^~b&w,t[10]=I^~E&P,t[11]=A^~T&C,t[20]=j^~L&z,t[21]=N^~D&F,t[30]=K^~q&Z,t[31]=H^~$&Y,t[40]=et^~rt&ot,t[41]=nt^~it&st,t[2]=y^~v&_,t[3]=b^~w&k,t[12]=E^~P&M,t[13]=T^~C&O,t[22]=L^~z&U,t[23]=D^~F&W,t[32]=q^~Z&X,t[33]=$^~Y&J,t[42]=rt^~ot&at,t[43]=it^~st&ct,t[4]=v^~_&S,t[5]=w^~k&x,t[14]=P^~M&R,t[15]=C^~O&B,t[24]=z^~U&G,t[25]=F^~W&V,t[34]=Z^~X&Q,t[35]=Y^~J&tt,t[44]=ot^~at&ut,t[45]=st^~ct<,t[6]=_^~S&p,t[7]=k^~x&g,t[16]=M^~R&I,t[17]=O^~B&A,t[26]=U^~G&j,t[27]=W^~V&N,t[36]=X^~Q&K,t[37]=J^~tt&H,t[46]=at^~ut&et,t[47]=ct^~lt&nt,t[8]=S^~p&y,t[9]=x^~g&b,t[18]=R^~I&E,t[19]=B^~A&T,t[28]=G^~j&L,t[29]=V^~N&D,t[38]=Q^~K&q,t[39]=tt^~H&$,t[48]=ut^~et&rt,t[49]=lt^~nt&it,t[0]^=m[r],t[1]^=m[r+1]};if(u)t.exports=E;else{for(P=0;P<T.length;++P)a[T[P]]=E[T[P]];l&&(void 0===(r=function(){return E}.call(e,n,e,t))||(t.exports=r))}}()},18552:function(t,e,n){var r=n(10852)(n(55639),"DataView");t.exports=r},1989:function(t,e,n){var r=n(51789),i=n(80401),o=n(57667),s=n(21327),a=n(81866);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,t.exports=c},38407:function(t,e,n){var r=n(27040),i=n(14125),o=n(82117),s=n(67518),a=n(54705);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,t.exports=c},57071:function(t,e,n){var r=n(10852)(n(55639),"Map");t.exports=r},83369:function(t,e,n){var r=n(24785),i=n(11285),o=n(96e3),s=n(49916),a=n(95265);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,t.exports=c},53818:function(t,e,n){var r=n(10852)(n(55639),"Promise");t.exports=r},58525:function(t,e,n){var r=n(10852)(n(55639),"Set");t.exports=r},88668:function(t,e,n){var r=n(83369),i=n(90619),o=n(72385);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},46384:function(t,e,n){var r=n(38407),i=n(37465),o=n(63779),s=n(67599),a=n(44758),c=n(34309);function u(t){var e=this.__data__=new r(t);this.size=e.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=s,u.prototype.has=a,u.prototype.set=c,t.exports=u},62705:function(t,e,n){var r=n(55639).Symbol;t.exports=r},11149:function(t,e,n){var r=n(55639).Uint8Array;t.exports=r},70577:function(t,e,n){var r=n(10852)(n(55639),"WeakMap");t.exports=r},96874:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},34963:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},47443:function(t,e,n){var r=n(42118);t.exports=function(t,e){return!!(null==t?0:t.length)&&r(t,e,0)>-1}},1196:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},14636:function(t,e,n){var r=n(22545),i=n(35694),o=n(1469),s=n(44144),a=n(65776),c=n(36719),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),l=!n&&i(t),h=!n&&!l&&s(t),d=!n&&!l&&!h&&c(t),f=n||l||h||d,p=f?r(t.length,String):[],m=p.length;for(var g in t)!e&&!u.call(t,g)||f&&("length"==g||h&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m))||p.push(g);return p}},29932:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},62488:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},82908:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},18470:function(t,e,n){var r=n(77813);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},41848:function(t){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},97786:function(t,e,n){var r=n(71811),i=n(40327);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},68866:function(t,e,n){var r=n(62488),i=n(1469);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},44239:function(t,e,n){var r=n(62705),i=n(89607),o=n(2333),s=r?r.toStringTag:void 0;
vendor: 1,077 bytes, line 1
1t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},13:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},42118:function(t,e,n){var r=n(41848),i=n(62722),o=n(42351);t.exports=function(t,e,n){return e===e?o(t,e,n):r(t,i,n)}},9454:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},90939:function(t,e,n){var r=n(2492),i=n(37005);t.exports=function t(e,n,o,s,a){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!==e&&n!==n:r(e,n,o,s,t,a))}},2492:function(t,e,n){var r=n(46384),i=n(67114),o=n(18351),s=n(16096),a=n(64160),c=n(1469),u=n(44144),l=n(36719),h="[object Arguments]",d="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,m,g,y){var b=c(t),v=c(e),w=b?d:a(t),_=v?d:a(e),k=(w=w==h?f:w)==f,S=(_=_==h?f:_)==f,x=w==_;if(x&&u(t)){if(!u(e))return!1;b=!0,k=!1}if(x&&!k)return y||(y=new r),b||l(t)?i(t,e,n,m,g,y):o(t,e,w,n,m,g,y);if(!(1&n)){var I=k&&p.call(t,"__wrapped__"),A=S&&p.call(e,"__wrapped__");
vendor: 6,165 bytes, line 1
1if(I||A){var E=I?t.value():t,T=A?e.value():e;return y||(y=new r),g(E,T,n,m,y)}}return!!x&&(y||(y=new r),s(t,e,n,m,g,y))}},2958:function(t,e,n){var r=n(46384),i=n(90939);t.exports=function(t,e,n,o){var s=n.length,a=s,c=!o;if(null==t)return!a;for(t=Object(t);s--;){var u=n[s];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++s<a;){var l=(u=n[s])[0],h=t[l],d=u[1];if(c&&u[2]){if(void 0===h&&!(l in t))return!1}else{var f=new r;if(o)var p=o(h,d,l,t,e,f);if(!(void 0===p?i(d,h,3,o,f):p))return!1}}return!0}},62722:function(t){t.exports=function(t){return t!==t}},28458:function(t,e,n){var r=n(23560),i=n(15346),o=n(13218),s=n(80346),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,h=u.hasOwnProperty,d=RegExp("^"+l.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?d:a).test(s(t))}},38749:function(t,e,n){var r=n(44239),i=n(41780),o=n(37005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[r(t)]}},67206:function(t,e,n){var r=n(91573),i=n(16432),o=n(6557),s=n(1469),a=n(39601);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):r(t):a(t)}},280:function(t,e,n){var r=n(25726),i=n(86916),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},91573:function(t,e,n){var r=n(2958),i=n(1499),o=n(42634);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},16432:function(t,e,n){var r=n(90939),i=n(27361),o=n(79095),s=n(15403),a=n(89162),c=n(42634),u=n(40327);t.exports=function(t,e){return s(t)&&a(e)?c(u(t),e):function(n){var s=i(n,t);return void 0===s&&s===e?o(n,t):r(e,s,3)}}},40371:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},79152:function(t,e,n){var r=n(97786);t.exports=function(t){return function(e){return r(e,t)}}},5976:function(t,e,n){var r=n(6557),i=n(45357),o=n(30061);t.exports=function(t,e){return o(i(t,e,r),t+"")}},56560:function(t,e,n){var r=n(75703),i=n(38777),o=n(6557),s=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=s},14259:function(t){t.exports=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}},22545:function(t){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},80531:function(t,e,n){var r=n(62705),i=n(29932),o=n(1469),s=n(33448),a=r?r.prototype:void 0,c=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}},27561:function(t,e,n){var r=n(67990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},7518:function(t){t.exports=function(t){return function(e){return t(e)}}},45652:function(t,e,n){var r=n(88668),i=n(47443),o=n(1196),s=n(74757),a=n(23593),c=n(21814);t.exports=function(t,e,n){var u=-1,l=i,h=t.length,d=!0,f=[],p=f;if(n)d=!1,l=o;else if(h>=200){var m=e?null:a(t);if(m)return c(m);d=!1,l=s,p=new r}else p=e?[]:f;t:for(;++u<h;){var g=t[u],y=e?e(g):g;if(g=n||0!==g?g:0,d&&y===y){for(var b=p.length;b--;)if(p[b]===y)continue t;e&&p.push(y),f.push(g)}else l(p,y,n)||(p!==f&&p.push(y),f.push(g))}return f}},74757:function(t){t.exports=function(t,e){return t.has(e)}},71811:function(t,e,n){var r=n(1469),i=n(15403),o=n(55514),s=n(79833);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(s(t))}},14429:function(t,e,n){var r=n(55639)["__core-js_shared__"];t.exports=r},23593:function(t,e,n){var r=n(58525),i=n(50308),o=n(21814),s=r&&1/o(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=s},38777:function(t,e,n){var r=n(10852),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=i},67114:function(t,e,n){var r=n(88668),i=n(82908),o=n(74757);t.exports=function(t,e,n,s,a,c){var u=1&n,l=t.length,h=e.length;if(l!=h&&!(u&&h>l))return!1;var d=c.get(t),f=c.get(e);if(d&&f)return d==e&&f==t;var p=-1,m=!0,g=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++p<l;){var y=t[p],b=e[p];if(s)var v=u?s(b,y,p,e,t,c):s(y,b,p,t,e,c);if(void 0!==v){if(v)continue;m=!1;break}if(g){if(!i(e,(function(t,e){if(!o(g,e)&&(y===t||a(y,t,n,s,c)))return g.push(e)}))){m=!1;break}}else if(y!==b&&!a(y,b,n,s,c)){m=!1;break}}return c.delete(t),c.delete(e),m}},18351:function(t,e,n){var r=n(62705),i=n(11149),o=n(77813),s=n(67114),a=n(68776),c=n(21814),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;t.exports=function(t,e,n,r,u,h,d){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!h(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var f=a;case"[object Set]":var p=1&r;if(f||(f=c),t.size!=e.size&&!p)return!1;var m=d.get(t);if(m)return m==e;r|=2,d.set(t,e);var g=s(f(t),f(e),r,u,h,d);return d.delete(t),g;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},16096:function(t,e,n){var r=n(58234),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,s,a){var c=1&n,u=r(t),l=u.length;if(l!=r(e).length&&!c)return!1;for(var h=l;h--;){var d=u[h];
vendor: 1,787 bytes, line 1
1if(!(c?d in e:i.call(e,d)))return!1}var f=a.get(t),p=a.get(e);if(f&&p)return f==e&&p==t;var m=!0;a.set(t,e),a.set(e,t);for(var g=c;++h<l;){var y=t[d=u[h]],b=e[d];if(o)var v=c?o(b,y,d,e,t,a):o(y,b,d,t,e,a);if(!(void 0===v?y===b||s(y,b,n,o,a):v)){m=!1;break}g||(g="constructor"==d)}if(m&&!g){var w=t.constructor,_=e.constructor;w==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(m=!1)}return a.delete(t),a.delete(e),m}},31957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},58234:function(t,e,n){var r=n(68866),i=n(99551),o=n(3674);t.exports=function(t){return r(t,o,i)}},45050:function(t,e,n){var r=n(37019);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},1499:function(t,e,n){var r=n(89162),i=n(3674);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,r(s)]}return e}},10852:function(t,e,n){var r=n(28458),i=n(47801);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},89607:function(t,e,n){var r=n(62705),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(c){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},99551:function(t,e,n){var r=n(34963),i=n(70479),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return o.call(t,e)})))}:i;t.exports=a},64160:function(t,e,n){var r=n(18552),i=n(57071),o=n(53818),s=n(58525),a=n(70577),c=n(44239),u=n(80346),l="[object Map]",h="[object Promise]",d="[object Set]",f="[object WeakMap]",p="[object DataView]",m=u(r),g=u(i),y=u(o),b=u(s),v=u(a),w=c;
vendor: 4,470 bytes, line 1
1(r&&w(new r(new ArrayBuffer(1)))!=p||i&&w(new i)!=l||o&&w(o.resolve())!=h||s&&w(new s)!=d||a&&w(new a)!=f)&&(w=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case m:return p;case g:return l;case y:return h;case b:return d;case v:return f}return e}),t.exports=w},47801:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},222:function(t,e,n){var r=n(71811),i=n(35694),o=n(1469),s=n(65776),a=n(41780),c=n(40327);t.exports=function(t,e,n){for(var u=-1,l=(e=r(e,t)).length,h=!1;++u<l;){var d=c(e[u]);if(!(h=null!=t&&n(t,d)))break;t=t[d]}return h||++u!=l?h:!!(l=null==t?0:t.length)&&a(l)&&s(d,l)&&(o(t)||i(t))}},51789:function(t,e,n){var r=n(94536);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},80401:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},57667:function(t,e,n){var r=n(94536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},21327:function(t,e,n){var r=n(94536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},81866:function(t,e,n){var r=n(94536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},65776:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},16612:function(t,e,n){var r=n(77813),i=n(98612),o=n(65776),s=n(13218);t.exports=function(t,e,n){if(!s(n))return!1;var a=typeof e;return!!("number"==a?i(n)&&o(e,n.length):"string"==a&&e in n)&&r(n[e],t)}},15403:function(t,e,n){var r=n(1469),i=n(33448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(s.test(t)||!o.test(t)||null!=e&&t in Object(e))}},37019:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},15346:function(t,e,n){var r=n(14429),i=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!i&&i in t}},25726:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},89162:function(t,e,n){var r=n(13218);t.exports=function(t){return t===t&&!r(t)}},27040:function(t){t.exports=function(){this.__data__=[],this.size=0}},14125:function(t,e,n){var r=n(18470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},82117:function(t,e,n){var r=n(18470);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},67518:function(t,e,n){var r=n(18470);t.exports=function(t){return r(this.__data__,t)>-1}},54705:function(t,e,n){var r=n(18470);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},24785:function(t,e,n){var r=n(1989),i=n(38407),o=n(57071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},11285:function(t,e,n){var r=n(45050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},96e3:function(t,e,n){var r=n(45050);t.exports=function(t){return r(this,t).get(t)}},49916:function(t,e,n){var r=n(45050);t.exports=function(t){return r(this,t).has(t)}},95265:function(t,e,n){var r=n(45050);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},68776:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},42634:function(t){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},24523:function(t,e,n){var r=n(88306);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},94536:function(t,e,n){var r=n(10852)(Object,"create");t.exports=r},86916:function(t,e,n){var r=n(5569)(Object.keys,Object);t.exports=r},31167:function(t,e,n){t=n.nmd(t);var r=n(31957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").t
vendor: 5,689 bytes, line 1
1ypes;return t||s&&s.binding&&s.binding("util")}catch(e){}}();t.exports=a},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},45357:function(t,e,n){var r=n(96874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),c=Array(a);++s<a;)c[s]=o[e+s];s=-1;for(var u=Array(e+1);++s<e;)u[s]=o[s];return u[e]=n(c),r(t,this,u)}}},55639:function(t,e,n){var r=n(31957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},90619:function(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},72385:function(t){t.exports=function(t){return this.__data__.has(t)}},21814:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},30061:function(t,e,n){var r=n(56560),i=n(21275)(r);t.exports=i},21275:function(t){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},37465:function(t,e,n){var r=n(38407);t.exports=function(){this.__data__=new r,this.size=0}},63779:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},67599:function(t){t.exports=function(t){return this.__data__.get(t)}},44758:function(t){t.exports=function(t){return this.__data__.has(t)}},34309:function(t,e,n){var r=n(38407),i=n(57071),o=n(83369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}},42351:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},55514:function(t,e,n){var r=n(24523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=s},40327:function(t,e,n){var r=n(33448);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},80346:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(n){}try{return t+""}catch(n){}}return""}},67990:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},8400:function(t,e,n){var r=n(14259),i=n(16612),o=n(40554),s=Math.ceil,a=Math.max;t.exports=function(t,e,n){e=(n?i(t,e,n):void 0===e)?1:a(o(e),0);var c=null==t?0:t.length;if(!c||e<1)return[];for(var u=0,l=0,h=Array(s(c/e));u<c;)h[l++]=r(t,u,u+=e);return h}},75703:function(t){t.exports=function(t){return function(){return t}}},77813:function(t){t.exports=function(t,e){return t===e||t!==t&&e!==e}},27361:function(t,e,n){var r=n(97786);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},79095:function(t,e,n){var r=n(13),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,r)}},6557:function(t){t.exports=function(t){return t}},35694:function(t,e,n){var r=n(9454),i=n(37005),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},1469:function(t){var e=Array.isArray;t.exports=e},98612:function(t,e,n){var r=n(23560),i=n(41780);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},29246:function(t,e,n){var r=n(98612),i=n(37005);t.exports=function(t){return i(t)&&r(t)}},44144:function(t,e,n){t=n.nmd(t);var r=n(55639),i=n(95062),o=e&&!e.nodeType&&e,s=o&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||i;t.exports=c},23560:function(t,e,n){var r=n(44239),i=n(13218);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},41780:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},14293:function(t){t.exports=function(t){return null==t}},45220:function(t){t.exports=function(t){return null===t}},13218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},33448:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},36719:function(t,e,n){var r=n(38749),i=n(7518),o=n(31167),s=o&&o.isTypedArray,a=s?i(s):r;t.exports=a},52353:function(t){t.exports=function(t){return void 0===t}},3674:function(t,e,n){var r=n(14636),i=n(280),o=n(98612);t.exports=function(t){return o(t)?r(t):i(t)}},96486:function(t,e,n){var r;t=n.nmd(t),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",c=16,u=32,l=64,h=128,d=256,f=1/0,p=9007199254740991,m=NaN,g=4294967295,y=[["ary",h],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",u],["partialRight",l],["rearg",d]],b="[object Arguments]",v="[object Array]",w="[object Boolean]",_="[object Date]",k="[object Error]",S="[object Function]",x="[object GeneratorFunction]",I="[object Map]",A="[object Number]",E="[object Object]",T="[object Promise]",P="[object RegExp]",C="[object Set]",M="[object String]",O="[object Symbol]",R="[object WeakMap]",B="[object ArrayBuffer]",j="[object DataView]",N="[object Float32Array]",L="[object Float64Array
vendor: 7,176 bytes, line 1
1]",D="[object Int8Array]",z="[object Int16Array]",F="[object Int32Array]",U="[object Uint8Array]",W="[object Uint8ClampedArray]",G="[object Uint16Array]",V="[object Uint32Array]",K=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,Z=/[&<>"']/g,Y=RegExp($.source),X=RegExp(Z.source),J=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nt=/^\w*$/,rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,it=/[\\^$.*+?()[\]{}|]/g,ot=RegExp(it.source),st=/^\s+/,at=/\s/,ct=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ut=/\{\n\/\* \[wrapped with (.+)\] \*/,lt=/,? & /,ht=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dt=/[()=,{}\[\]\/\s]/,ft=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,mt=/\w*$/,gt=/^[-+]0x[0-9a-f]+$/i,yt=/^0b[01]+$/i,bt=/^\[object .+?Constructor\]$/,vt=/^0o[0-7]+$/i,wt=/^(?:0|[1-9]\d*)$/,_t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kt=/($^)/,St=/['\n\r\u2028\u2029\\]/g,xt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",It="\\u2700-\\u27bf",At="a-z\\xdf-\\xf6\\xf8-\\xff",Et="A-Z\\xc0-\\xd6\\xd8-\\xde",Tt="\\ufe0e\\ufe0f",Pt="\\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",Ct="['\u2019]",Mt="[\\ud800-\\udfff]",Ot="["+Pt+"]",Rt="["+xt+"]",Bt="\\d+",jt="[\\u2700-\\u27bf]",Nt="["+At+"]",Lt="[^\\ud800-\\udfff"+Pt+Bt+It+At+Et+"]",Dt="\\ud83c[\\udffb-\\udfff]",zt="[^\\ud800-\\udfff]",Ft="(?:\\ud83c[\\udde6-\\uddff]){2}",Ut="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+Et+"]",Gt="(?:"+Nt+"|"+Lt+")",Vt="(?:"+Wt+"|"+Lt+")",Kt="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ht="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",qt="(?:"+Rt+"|"+Dt+")"+"?",$t="[\\ufe0e\\ufe0f]?",Zt=$t+qt+("(?:\\u200d(?:"+[zt,Ft,Ut].join("|")+")"+$t+qt+")*"),Yt="(?:"+[jt,Ft,Ut].join("|")+")"+Zt,Xt="(?:"+[zt+Rt+"?",Rt,Ft,Ut,Mt].join("|")+")",Jt=RegExp(Ct,"g"),Qt=RegExp(Rt,"g"),te=RegExp(Dt+"(?="+Dt+")|"+Xt+Zt,"g"),ee=RegExp([Wt+"?"+Nt+"+"+Kt+"(?="+[Ot,Wt,"$"].join("|")+")",Vt+"+"+Ht+"(?="+[Ot,Wt+Gt,"$"].join("|")+")",Wt+"?"+Gt+"+"+Kt,Wt+"+"+Ht,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Bt,Yt].join("|"),"g"),ne=RegExp("[\\u200d\\ud800-\\udfff"+xt+Tt+"]"),re=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ie=["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"],oe=-1,se={};se[N]=se[L]=se[D]=se[z]=se[F]=se[U]=se[W]=se[G]=se[V]=!0,se[b]=se[v]=se[B]=se[w]=se[j]=se[_]=se[k]=se[S]=se[I]=se[A]=se[E]=se[P]=se[C]=se[M]=se[R]=!1;var ae={};ae[b]=ae[v]=ae[B]=ae[j]=ae[w]=ae[_]=ae[N]=ae[L]=ae[D]=ae[z]=ae[F]=ae[I]=ae[A]=ae[E]=ae[P]=ae[C]=ae[M]=ae[O]=ae[U]=ae[W]=ae[G]=ae[V]=!0,ae[k]=ae[S]=ae[R]=!1;var ce={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ue=parseFloat,le=parseInt,he="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,de="object"==typeof self&&self&&self.Object===Object&&self,fe=he||de||Function("return this")(),pe=e&&!e.nodeType&&e,me=pe&&t&&!t.nodeType&&t,ge=me&&me.exports===pe,ye=ge&&he.process,be=function(){try{var t=me&&me.require&&me.require("util").types;return t||ye&&ye.binding&&ye.binding("util")}catch(e){}}(),ve=be&&be.isArrayBuffer,we=be&&be.isDate,_e=be&&be.isMap,ke=be&&be.isRegExp,Se=be&&be.isSet,xe=be&&be.isTypedArray;function Ie(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ae(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];e(r,s,n(s),t)}return r}function Ee(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Te(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Pe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Ce(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}function Me(t,e){return!!(null==t?0:t.length)&&Ue(t,e,0)>-1}function Oe(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Re(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Be(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function je(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function Ne(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Le(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var De=Ke("length");function ze(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function Fe(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Ue(t,e,n){return e===e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Fe(t,Ge,n)}function We(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function Ge(t){return t!==t}function Ve(t,e){var n=null==t?0:t.length;return n?$e(t,e)/n:m}function Ke(t){return function(e){return null==e?i:e[t]}}function He(t){return function(e){return null==t?i:t[e]}}function qe(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function $e(t,e){for(var n,r=-1,o=t.length;++r<o;){var s=e(t[r]);s!==i&&(n=n===i?s:n+s)}return n}function Ze(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ye(t){return t?t.slice(0,mn(t)+1).replace(st,""):t}function Xe(t){return function(e){return t(e)}}function Je(t,e){return Re(e,(function(e){return t[e]}))}function Qe(t,e){return t.has(e)}function tn(t,e){for(var n=-1,r=t.length;++n<r&&Ue(e,t[n],0)>-1;);return n}function en(t,e){for(var n=t.length;n--&&Ue(e,t[n],0)>-1;);return n}function nn(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var rn=He({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"
1c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),on=He({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(t){return"\\"+ce[t]}function an(t){return ne.test(t)}function cn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function un(t,e){return function(n){return t(e(n))}}function ln(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n];s!==e&&s!==a||(t[n]=a,o[i++]=n)}return o}function hn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function dn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function fn(t){return an(t)?function(t){var e=te.lastIndex=0;for(;te.test(t);)++e;return e}(t):De(t)}function pn(t){return an(t)?function(t){return t.match(te)||[]}(t):function(t){return t.split("")}(t)}function mn(t){for(var e=t.length;e--&&at.test(t.charAt(e)););return e}var gn=He({"&":"&","<":"<",">":">",""":'"',"'":"'"});var yn=function t(e){var n=(e=null==e?fe:yn.defaults(fe.Object(),e,yn.pick(fe,ie))).Array,r=e.Date,at=e.Error,xt=e.Function,It=e.Math,At=e.Object,Et=e.RegExp,Tt=e.String,Pt=e.TypeError,Ct=n.prototype,Mt=xt.prototype,Ot=At.prototype,Rt=e["__core-js_shared__"],Bt=Mt.toString,jt=Ot.hasOwnProperty,Nt=0,Lt=function(){var t=/[^.]+$/.exec(Rt&&Rt.keys&&Rt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Dt=Ot.toString,zt=Bt.call(At),Ft=fe._,Ut=Et("^"+Bt.call(jt).replace(it,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wt=ge?e.Buffer:i,Gt=e.Symbol,Vt=e.Uint8Array,Kt=Wt?Wt.allocUnsafe:i,Ht=un(At.getPrototypeOf,At),qt=At.create,$t=Ot.propertyIsEnumerable,Zt=Ct.splice,Yt=Gt?Gt.isConcatSpreadable:i,Xt=Gt?Gt.iterator:i,te=Gt?Gt.toStringTag:i,ne=function(){try{var t=fo(At,"defineProperty");return t({},"",{}),t}catch(e){}}(),ce=e.clearTimeout!==fe.clearTimeout&&e.clearTimeout,he=r&&r.now!==fe.Date.now&&r.now,de=e.setTimeout!==fe.setTimeout&&e.setTimeout,pe=It.ceil,me=It.floor,ye=At.getOwnPropertySymbols,be=Wt?Wt.isBuffer:i,De=e.isFinite,He=Ct.join,bn=un(At.keys,At),vn=It.max,wn=It.min,_n=r.now,kn=e.parseInt,Sn=It.random,xn=Ct.reverse,In=fo(e,"DataView"),An=fo(e,"Map"),En=fo(e,"Promise"),Tn=fo(e,"Set"),Pn=fo(e,"WeakMap"),Cn=fo(At,"create"),Mn=Pn&&new Pn,On={},Rn=Fo(In),Bn=Fo(An),jn=Fo(En),Nn=Fo(Tn),Ln=Fo(Pn),Dn=Gt?Gt.prototype:i,zn=Dn?Dn.valueOf:i,Fn=Dn?Dn.toString:i;function Un(t){if(ra(t)&&!Hs(t)&&!(t instanceof Kn)){if(t instanceof Vn)return t;if(jt.call(t,"__wrapped__"))return Uo(t)}return new Vn(t)}var Wn=function(){function t(){}return function(e){if(!na(e))return{};if(qt)return qt(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function Gn(){}function Vn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Kn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Hn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function qn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function $n(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Zn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new $n;++e<n;)this.add(t[e])}function Yn(t){var e=this.__data__=new qn(t);this.size=e.size}function Xn(t,e){var n=Hs(t),r=!n&&Ks(t),i=!n&&!r&&Ys(t),o=!n&&!r&&!i&&ha(t),s=n||r||i||o,a=s?Ze(t.length,Tt):[],c=a.length;for(var u in t)!e&&!jt.call(t,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||wo(u,c))||a.push(u);return a}function Jn(t){var e=t.length;return e?t[Zr(0,e-1)]:i}function Qn(t,e){return Lo(Ci(t),cr(e,0,t.length))}function tr(t){return Lo(Ci(t))}function er(t,e,n){(n!==i&&!Ws(t[e],n)||n===i&&!(e in t))&&sr(t,e,n)}function nr(t,e,n){var r=t[e];jt.call(t,e)&&Ws(r,n)&&(n!==i||e in t)||sr(t,e,n)}function rr(t,e){for(var n=t.length;n--;)if(Ws(t[n][0],e))return n;return-1}function ir(t,e,n,r){return fr(t,(function(t,i,o){e(r,t,n(t),o)})),r}function or(t,e){return t&&Mi(e,Ra(e),t)}function sr(t,e,n){"__proto__"==e&&ne?ne(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ar(t,e){for(var r=-1,o=e.length,s=n(o),a=null==t;++r<o;)s[r]=a?i:Ta(t,e[r]);return s}function cr(t,e,n){return t===t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function ur(t,e,n,r,o,s){var a,c=1&e,u=2&e,l=4&e;if(n&&(a=o?n(t,r,o,s):n(t)),a!==i)return a;
vendor: 6,645 bytes, line 1
1if(!na(t))return t;var h=Hs(t);if(h){if(a=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&jt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!c)return Ci(t,a)}else{var d=go(t),f=d==S||d==x;if(Ys(t))return xi(t,c);if(d==E||d==b||f&&!o){if(a=u||f?{}:bo(t),!c)return u?function(t,e){return Mi(t,mo(t),e)}(t,function(t,e){return t&&Mi(e,Ba(e),t)}(a,t)):function(t,e){return Mi(t,po(t),e)}(t,or(a,t))}else{if(!ae[d])return o?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case B:return Ii(t);case w:case _:return new r(+t);case j:return function(t,e){var n=e?Ii(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case N:case L:case D:case z:case F:case U:case W:case G:case V:return Ai(t,n);case I:return new r;case A:case M:return new r(t);case P:return function(t){var e=new t.constructor(t.source,mt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case C:return new r;case O:return i=t,zn?At(zn.call(i)):{}}var i}(t,d,c)}}s||(s=new Yn);var p=s.get(t);if(p)return p;s.set(t,a),ca(t)?t.forEach((function(r){a.add(ur(r,e,n,r,t,s))})):ia(t)&&t.forEach((function(r,i){a.set(i,ur(r,e,n,i,t,s))}));var m=h?i:(l?u?oo:io:u?Ba:Ra)(t);return Ee(m||t,(function(r,i){m&&(r=t[i=r]),nr(a,i,ur(r,e,n,i,t,s))})),a}function lr(t,e,n){var r=n.length;if(null==t)return!r;for(t=At(t);r--;){var o=n[r],s=e[o],a=t[o];if(a===i&&!(o in t)||!s(a))return!1}return!0}function hr(t,e,n){if("function"!=typeof t)throw new Pt(o);return Ro((function(){t.apply(i,n)}),e)}function dr(t,e,n,r){var i=-1,o=Me,s=!0,a=t.length,c=[],u=e.length;if(!a)return c;n&&(e=Re(e,Xe(n))),r?(o=Oe,s=!1):e.length>=200&&(o=Qe,s=!1,e=new Zn(e));t:for(;++i<a;){var l=t[i],h=null==n?l:n(l);if(l=r||0!==l?l:0,s&&h===h){for(var d=u;d--;)if(e[d]===h)continue t;c.push(l)}else o(e,h,r)||c.push(l)}return c}Un.templateSettings={escape:J,evaluate:Q,interpolate:tt,variable:"",imports:{_:Un}},Un.prototype=Gn.prototype,Un.prototype.constructor=Un,Vn.prototype=Wn(Gn.prototype),Vn.prototype.constructor=Vn,Kn.prototype=Wn(Gn.prototype),Kn.prototype.constructor=Kn,Hn.prototype.clear=function(){this.__data__=Cn?Cn(null):{},this.size=0},Hn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Hn.prototype.get=function(t){var e=this.__data__;if(Cn){var n=e[t];return n===s?i:n}return jt.call(e,t)?e[t]:i},Hn.prototype.has=function(t){var e=this.__data__;return Cn?e[t]!==i:jt.call(e,t)},Hn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Cn&&e===i?s:e,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(t){var e=this.__data__,n=rr(e,t);return!(n<0)&&(n==e.length-1?e.pop():Zt.call(e,n,1),--this.size,!0)},qn.prototype.get=function(t){var e=this.__data__,n=rr(e,t);return n<0?i:e[n][1]},qn.prototype.has=function(t){return rr(this.__data__,t)>-1},qn.prototype.set=function(t,e){var n=this.__data__,r=rr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},$n.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(An||qn),string:new Hn}},$n.prototype.delete=function(t){var e=lo(this,t).delete(t);return this.size-=e?1:0,e},$n.prototype.get=function(t){return lo(this,t).get(t)},$n.prototype.has=function(t){return lo(this,t).has(t)},$n.prototype.set=function(t,e){var n=lo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Zn.prototype.add=Zn.prototype.push=function(t){return this.__data__.set(t,s),this},Zn.prototype.has=function(t){return this.__data__.has(t)},Yn.prototype.clear=function(){this.__data__=new qn,this.size=0},Yn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Yn.prototype.get=function(t){return this.__data__.get(t)},Yn.prototype.has=function(t){return this.__data__.has(t)},Yn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!An||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new $n(r)}return n.set(t,e),this.size=n.size,this};var fr=Bi(_r),pr=Bi(kr,!0);function mr(t,e){var n=!0;return fr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function gr(t,e,n){for(var r=-1,o=t.length;++r<o;){var s=t[r],a=e(s);if(null!=a&&(c===i?a===a&&!la(a):n(a,c)))var c=a,u=s}return u}function yr(t,e){var n=[];return fr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function br(t,e,n,r,i){var o=-1,s=t.length;for(n||(n=vo),i||(i=[]);++o<s;){var a=t[o];e>0&&n(a)?e>1?br(a,e-1,n,r,i):Be(i,a):r||(i[i.length]=a)}return i}var vr=ji(),wr=ji(!0);function _r(t,e){return t&&vr(t,e,Ra)}function kr(t,e){return t&&wr(t,e,Ra)}function Sr(t,e){return Ce(e,(function(e){return Qs(t[e])}))}function xr(t,e){for(var n=0,r=(e=wi(e,t)).length;null!=t&&n<r;)t=t[zo(e[n++])];return n&&n==r?t:i}function Ir(t,e,n){var r=e(t);return Hs(t)?r:Be(r,n(t))}function Ar(t){return null==t?t===i?"[object Undefined]":"[object Null]":te&&te in At(t)?function(t){var e=jt.call(t,te),n=t[te];try{t[te]=i;var r=!0}catch(s){}var o=Dt.call(t);r&&(e?t[te]=n:delete t[te]);return o}(t):function(t){return Dt.call(t)}(t)}function Er(t,e){return t>e}function Tr(t,e){return null!=t&&jt.call(t,e)}function Pr(t,e){return null!=t&&e in At(t)}function Cr(t,e,r){for(var o=r?Oe:Me,s=t[0].length,a=t.length,c=a,u=n(a),l=1/0,h=[];c--;){var d=t[c];c&&e&&(d=Re(d,Xe(e))),l=wn(d.length,l),u[c]=!r&&(e||s>=120&&d.length>=120)?new Zn(c&&d):i}d=t[0];var f=-1,p=u[0];t:for(;++f<s&&h.length<l;){var m=d[f],g=e?e(m):m;if(m=r||0!==m?m:0,!(p?Qe(p,g):o(h,g,r))){for(c=a;--c;){var y=u[c];if(!(y?Qe(y,g):o(t[c],g,r)))continue t}p&&p.push(g),h.push(m)}}return h}function Mr(t,e,n){var r=null==(t=Po(t,e=wi(e,t)))?t:t[zo(Jo(e))];return null==r?i:Ie(r,t,n)}function Or(t){return ra(t)&&Ar(t)==b}function Rr(t,e,n,r,o){return t===e||(null==t||null==e||!ra(t)&&!ra(e)?t!==t&&e!==e:function(t,e,n,r,o,s){var a=Hs(t),c=Hs(e),u=a?v:go(t),l=c?v:go(e),h=(u=u==b?E:u)==E,d=(l=l==b?E:l)==E,f=u==l;if(f&&Ys(t)){if(!Ys(e))return!1;a=!0,h=!1}if(f&&!h)return s||(s=new Yn),a||ha(t)?no(t,e,n,r,o,s):function(t,e,n,r,i,o,s){switch(n){case j:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case B:return!(t.byteLength!=e.byteLength||!o(new Vt(t),new Vt(e)));case w:case _:case A:return Ws(+t,+e);case k:return t.name==e.name&&t.message==e.message;case P:case M:return t==e+"";case I:var a=cn;case C:var c=1&r;if(a||(a=hn),t.size!=e.size&&!c)return!1;var u=s.get(t);if(u)return u==e;r|=2,s.set(t,e);var l=no(a(t),a(e),r,i,o,s);return s.delete(t),l;case O:if(zn)return zn.call(t)==zn.call(e)}return!1}(t,e,u,n,r,o,s);if(!(1&n)){var p=h&&jt.call(t,"__wrapped__"),m=d&&jt.call(e,"__wrapped__");
vendor: 4,775 bytes, line 1
1if(p||m){var g=p?t.value():t,y=m?e.value():e;return s||(s=new Yn),o(g,y,n,r,s)}}if(!f)return!1;return s||(s=new Yn),function(t,e,n,r,o,s){var a=1&n,c=io(t),u=c.length,l=io(e).length;if(u!=l&&!a)return!1;var h=u;for(;h--;){var d=c[h];if(!(a?d in e:jt.call(e,d)))return!1}var f=s.get(t),p=s.get(e);if(f&&p)return f==e&&p==t;var m=!0;s.set(t,e),s.set(e,t);var g=a;for(;++h<u;){var y=t[d=c[h]],b=e[d];if(r)var v=a?r(b,y,d,e,t,s):r(y,b,d,t,e,s);if(!(v===i?y===b||o(y,b,n,r,s):v)){m=!1;break}g||(g="constructor"==d)}if(m&&!g){var w=t.constructor,_=e.constructor;w==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(m=!1)}return s.delete(t),s.delete(e),m}(t,e,n,r,o,s)}(t,e,n,r,Rr,o))}function Br(t,e,n,r){var o=n.length,s=o,a=!r;if(null==t)return!s;for(t=At(t);o--;){var c=n[o];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<s;){var u=(c=n[o])[0],l=t[u],h=c[1];if(a&&c[2]){if(l===i&&!(u in t))return!1}else{var d=new Yn;if(r)var f=r(l,h,u,t,e,d);if(!(f===i?Rr(h,l,3,r,d):f))return!1}}return!0}function jr(t){return!(!na(t)||(e=t,Lt&&Lt in e))&&(Qs(t)?Ut:bt).test(Fo(t));var e}function Nr(t){return"function"==typeof t?t:null==t?oc:"object"==typeof t?Hs(t)?Wr(t[0],t[1]):Ur(t):pc(t)}function Lr(t){if(!Io(t))return bn(t);var e=[];for(var n in At(t))jt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Dr(t){if(!na(t))return function(t){var e=[];if(null!=t)for(var n in At(t))e.push(n);return e}(t);var e=Io(t),n=[];for(var r in t)("constructor"!=r||!e&&jt.call(t,r))&&n.push(r);return n}function zr(t,e){return t<e}function Fr(t,e){var r=-1,i=$s(t)?n(t.length):[];return fr(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}function Ur(t){var e=ho(t);return 1==e.length&&e[0][2]?Eo(e[0][0],e[0][1]):function(n){return n===t||Br(n,t,e)}}function Wr(t,e){return ko(t)&&Ao(e)?Eo(zo(t),e):function(n){var r=Ta(n,t);return r===i&&r===e?Pa(n,t):Rr(e,r,3)}}function Gr(t,e,n,r,o){t!==e&&vr(e,(function(s,a){if(o||(o=new Yn),na(s))!function(t,e,n,r,o,s,a){var c=Mo(t,n),u=Mo(e,n),l=a.get(u);if(l)return void er(t,n,l);var h=s?s(c,u,n+"",t,e,a):i,d=h===i;if(d){var f=Hs(u),p=!f&&Ys(u),m=!f&&!p&&ha(u);h=u,f||p||m?Hs(c)?h=c:Zs(c)?h=Ci(c):p?(d=!1,h=xi(u,!0)):m?(d=!1,h=Ai(u,!0)):h=[]:sa(u)||Ks(u)?(h=c,Ks(c)?h=va(c):na(c)&&!Qs(c)||(h=bo(u))):d=!1}d&&(a.set(u,h),o(h,u,r,s,a),a.delete(u));er(t,n,h)}(t,e,a,n,Gr,r,o);else{var c=r?r(Mo(t,a),s,a+"",t,e,o):i;c===i&&(c=s),er(t,a,c)}}),Ba)}function Vr(t,e){var n=t.length;if(n)return wo(e+=e<0?n:0,n)?t[e]:i}function Kr(t,e,n){e=e.length?Re(e,(function(t){return Hs(t)?function(e){return xr(e,1===t.length?t[0]:t)}:t})):[oc];var r=-1;e=Re(e,Xe(uo()));var i=Fr(t,(function(t,n,i){var o=Re(e,(function(e){return e(t)}));return{criteria:o,index:++r,value:t}}));return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(i,(function(t,e){return function(t,e,n){var r=-1,i=t.criteria,o=e.criteria,s=i.length,a=n.length;for(;++r<s;){var c=Ei(i[r],o[r]);if(c)return r>=a?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function Hr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var s=e[r],a=xr(t,s);n(a,s)&&ti(o,wi(s,t),a)}return o}function qr(t,e,n,r){var i=r?We:Ue,o=-1,s=e.length,a=t;for(t===e&&(e=Ci(e)),n&&(a=Re(t,Xe(n)));++o<s;)for(var c=0,u=e[o],l=n?n(u):u;(c=i(a,l,c,r))>-1;)a!==t&&Zt.call(a,c,1),Zt.call(t,c,1);return t}function $r(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;wo(i)?Zt.call(t,i,1):di(t,i)}}return t}function Zr(t,e){return t+me(Sn()*(e-t+1))}function Yr(t,e){var n="";if(!t||e<1||e>p)return n;do{e%2&&(n+=t),(e=me(e/2))&&(t+=t)}while(e);return n}function Xr(t,e){return Bo(To(t,e,oc),t+"")}function Jr(t){return Jn(Wa(t))}function Qr(t,e){var n=Wa(t);return Lo(n,cr(e,0,n.length))}function ti(t,e,n,r){if(!na(t))return t;for(var o=-1,s=(e=wi(e,t)).length,a=s-1,c=t;null!=c&&++o<s;){var u=zo(e[o]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(o!=a){var h=c[u];(l=r?r(h,u,c):i)===i&&(l=na(h)?h:wo(e[o+1])?[]:{})}nr(c,u,l),c=c[u]}return t}var ei=Mn?function(t,e){return Mn.set(t,e),t}:oc,ni=ne?function(t,e){return ne(t,"toString",{configurable:!0,enumerable:!1,value:nc(e),writable:!0})}:oc;function ri(t){return Lo(Wa(t))}function ii(t,e,r){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var s=n(o);++i<o;)s[i]=t[i+e];return s}function oi(t,e){var n;return fr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function si(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e===e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,s=t[o];null!==s&&!la(s)&&(n?s<=e:s<e)?r=o+1:i=o}return i}return ai(t,e,oc,n)}function ai(t,e,n,r){var o=0,s=null==t?0:t.length;if(0===s)return 0;for(var a=(e=n(e))!==e,c=null===e,u=la(e),l=e===i;o<s;
vendor: 2,677 bytes, line 1
1){var h=me((o+s)/2),d=n(t[h]),f=d!==i,p=null===d,m=d===d,g=la(d);if(a)var y=r||m;else y=l?m&&(r||f):c?m&&f&&(r||!p):u?m&&f&&!p&&(r||!g):!p&&!g&&(r?d<=e:d<e);y?o=h+1:s=h}return wn(s,4294967294)}function ci(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n],a=e?e(s):s;if(!n||!Ws(a,c)){var c=a;o[i++]=0===s?0:s}}return o}function ui(t){return"number"==typeof t?t:la(t)?m:+t}function li(t){if("string"==typeof t)return t;if(Hs(t))return Re(t,li)+"";if(la(t))return Fn?Fn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function hi(t,e,n){var r=-1,i=Me,o=t.length,s=!0,a=[],c=a;if(n)s=!1,i=Oe;else if(o>=200){var u=e?null:Yi(t);if(u)return hn(u);s=!1,i=Qe,c=new Zn}else c=e?[]:a;t:for(;++r<o;){var l=t[r],h=e?e(l):l;if(l=n||0!==l?l:0,s&&h===h){for(var d=c.length;d--;)if(c[d]===h)continue t;e&&c.push(h),a.push(l)}else i(c,h,n)||(c!==a&&c.push(h),a.push(l))}return a}function di(t,e){return null==(t=Po(t,e=wi(e,t)))||delete t[zo(Jo(e))]}function fi(t,e,n,r){return ti(t,e,n(xr(t,e)),r)}function pi(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?ii(t,r?0:o,r?o+1:i):ii(t,r?o+1:0,r?i:o)}function mi(t,e){var n=t;return n instanceof Kn&&(n=n.value()),je(e,(function(t,e){return e.func.apply(e.thisArg,Be([t],e.args))}),n)}function gi(t,e,r){var i=t.length;if(i<2)return i?hi(t[0]):[];for(var o=-1,s=n(i);++o<i;)for(var a=t[o],c=-1;++c<i;)c!=o&&(s[o]=dr(s[o]||a,t[c],e,r));return hi(br(s,1),e,r)}function yi(t,e,n){for(var r=-1,o=t.length,s=e.length,a={};++r<o;){var c=r<s?e[r]:i;n(a,t[r],c)}return a}function bi(t){return Zs(t)?t:[]}function vi(t){return"function"==typeof t?t:oc}function wi(t,e){return Hs(t)?t:ko(t,e)?[t]:Do(wa(t))}var _i=Xr;function ki(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:ii(t,e,n)}var Si=ce||function(t){return fe.clearTimeout(t)};function xi(t,e){if(e)return t.slice();var n=t.length,r=Kt?Kt(n):new t.constructor(n);return t.copy(r),r}function Ii(t){var e=new t.constructor(t.byteLength);return new Vt(e).set(new Vt(t)),e}function Ai(t,e){var n=e?Ii(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ei(t,e){if(t!==e){var n=t!==i,r=null===t,o=t===t,s=la(t),a=e!==i,c=null===e,u=e===e,l=la(e);if(!c&&!l&&!s&&t>e||s&&a&&u&&!c&&!l||r&&a&&u||!n&&u||!o)return 1;if(!r&&!s&&!l&&t<e||l&&n&&o&&!r&&!s||c&&n&&o||!a&&o||!u)return-1}return 0}function Ti(t,e,r,i){for(var o=-1,s=t.length,a=r.length,c=-1,u=e.length,l=vn(s-a,0),h=n(u+l),d=!i;++c<u;)h[c]=e[c];for(;++o<a;)(d||o<s)&&(h[r[o]]=t[o]);for(;l--;)h[c++]=t[o++];return h}function Pi(t,e,r,i){for(var o=-1,s=t.length,a=-1,c=r.length,u=-1,l=e.length,h=vn(s-c,0),d=n(h+l),f=!i;++o<h;)d[o]=t[o];for(var p=o;++u<l;)d[p+u]=e[u];for(;++a<c;
vendor: 2,880 bytes, line 1
1)(f||o<s)&&(d[p+r[a]]=t[o++]);return d}function Ci(t,e){var r=-1,i=t.length;for(e||(e=n(i));++r<i;)e[r]=t[r];return e}function Mi(t,e,n,r){var o=!n;n||(n={});for(var s=-1,a=e.length;++s<a;){var c=e[s],u=r?r(n[c],t[c],c,n,t):i;u===i&&(u=t[c]),o?sr(n,c,u):nr(n,c,u)}return n}function Oi(t,e){return function(n,r){var i=Hs(n)?Ae:ir,o=e?e():{};return i(n,t,uo(r,2),o)}}function Ri(t){return Xr((function(e,n){var r=-1,o=n.length,s=o>1?n[o-1]:i,a=o>2?n[2]:i;for(s=t.length>3&&"function"==typeof s?(o--,s):i,a&&_o(n[0],n[1],a)&&(s=o<3?i:s,o=1),e=At(e);++r<o;){var c=n[r];c&&t(e,c,r,s)}return e}))}function Bi(t,e){return function(n,r){if(null==n)return n;if(!$s(n))return t(n,r);for(var i=n.length,o=e?i:-1,s=At(n);(e?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function ji(t){return function(e,n,r){for(var i=-1,o=At(e),s=r(e),a=s.length;a--;){var c=s[t?a:++i];if(!1===n(o[c],c,o))break}return e}}function Ni(t){return function(e){var n=an(e=wa(e))?pn(e):i,r=n?n[0]:e.charAt(0),o=n?ki(n,1).join(""):e.slice(1);return r[t]()+o}}function Li(t){return function(e){return je(Qa(Ka(e).replace(Jt,"")),t,"")}}function Di(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Wn(t.prototype),r=t.apply(n,e);return na(r)?r:n}}function zi(t){return function(e,n,r){var o=At(e);if(!$s(e)){var s=uo(n,3);e=Ra(e),n=function(t){return s(o[t],t,o)}}var a=t(e,n,r);return a>-1?o[s?e[a]:a]:i}}function Fi(t){return ro((function(e){var n=e.length,r=n,s=Vn.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new Pt(o);if(s&&!c&&"wrapper"==ao(a))var c=new Vn([],!0)}for(r=c?r:n;++r<n;){var u=ao(a=e[r]),l="wrapper"==u?so(a):i;c=l&&So(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[ao(l[0])].apply(c,l[3]):1==a.length&&So(a)?c[u]():c.thru(a)}return function(){var t=arguments,r=t[0];if(c&&1==t.length&&Hs(r))return c.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}function Ui(t,e,r,o,s,a,c,u,l,d){var f=e&h,p=1&e,m=2&e,g=24&e,y=512&e,b=m?i:Di(t);return function i(){for(var h=arguments.length,v=n(h),w=h;w--;)v[w]=arguments[w];if(g)var _=co(i),k=nn(v,_);if(o&&(v=Ti(v,o,s,g)),a&&(v=Pi(v,a,c,g)),h-=k,g&&h<d){var S=ln(v,_);return $i(t,e,Ui,i.placeholder,r,v,S,u,l,d-h)}var x=p?r:this,I=m?x[t]:t;return h=v.length,u?v=Co(v,u):y&&h>1&&v.reverse(),f&&l<h&&(v.length=l),this&&this!==fe&&this instanceof i&&(I=b||Di(I)),I.apply(x,v)}}function Wi(t,e){return function(n,r){return function(t,e,n,r){return _r(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function Gi(t,e){return function(n,r){var o;if(n===i&&r===i)return e;
vendor: 16,382 bytes, line 1
1if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=li(n),r=li(r)):(n=ui(n),r=ui(r)),o=t(n,r)}return o}}function Vi(t){return ro((function(e){return e=Re(e,Xe(uo())),Xr((function(n){var r=this;return t(e,(function(t){return Ie(t,r,n)}))}))}))}function Ki(t,e){var n=(e=e===i?" ":li(e)).length;if(n<2)return n?Yr(e,t):e;var r=Yr(e,pe(t/fn(e)));return an(e)?ki(pn(r),0,t).join(""):r.slice(0,t)}function Hi(t){return function(e,r,o){return o&&"number"!=typeof o&&_o(e,r,o)&&(r=o=i),e=ma(e),r===i?(r=e,e=0):r=ma(r),function(t,e,r,i){for(var o=-1,s=vn(pe((e-t)/(r||1)),0),a=n(s);s--;)a[i?s:++o]=t,t+=r;return a}(e,r,o=o===i?e<r?1:-1:ma(o),t)}}function qi(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ba(e),n=ba(n)),t(e,n)}}function $i(t,e,n,r,o,s,a,c,h,d){var f=8&e;e|=f?u:l,4&(e&=~(f?l:u))||(e&=-4);var p=[t,e,o,f?s:i,f?a:i,f?i:s,f?i:a,c,h,d],m=n.apply(i,p);return So(t)&&Oo(m,p),m.placeholder=r,jo(m,t,e)}function Zi(t){var e=It[t];return function(t,n){if(t=ba(t),(n=null==n?0:wn(ga(n),292))&&De(t)){var r=(wa(t)+"e").split("e");return+((r=(wa(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Yi=Tn&&1/hn(new Tn([,-0]))[1]==f?function(t){return new Tn(t)}:lc;function Xi(t){return function(e){var n=go(e);return n==I?cn(e):n==C?dn(e):function(t,e){return Re(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Ji(t,e,r,s,f,p,m,g){var y=2&e;if(!y&&"function"!=typeof t)throw new Pt(o);var b=s?s.length:0;if(b||(e&=-97,s=f=i),m=m===i?m:vn(ga(m),0),g=g===i?g:ga(g),b-=f?f.length:0,e&l){var v=s,w=f;s=f=i}var _=y?i:so(t),k=[t,e,r,s,f,v,w,p,m,g];if(_&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,s=r==h&&8==n||r==h&&n==d&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!s)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var c=e[3];if(c){var u=t[3];t[3]=u?Ti(u,c,e[4]):c,t[4]=u?ln(t[3],a):e[4]}(c=e[5])&&(u=t[5],t[5]=u?Pi(u,c,e[6]):c,t[6]=u?ln(t[5],a):e[6]);(c=e[7])&&(t[7]=c);r&h&&(t[8]=null==t[8]?e[8]:wn(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(k,_),t=k[0],e=k[1],r=k[2],s=k[3],f=k[4],!(g=k[9]=k[9]===i?y?0:t.length:vn(k[9]-b,0))&&24&e&&(e&=-25),e&&1!=e)S=8==e||e==c?function(t,e,r){var o=Di(t);return function s(){for(var a=arguments.length,c=n(a),u=a,l=co(s);u--;)c[u]=arguments[u];var h=a<3&&c[0]!==l&&c[a-1]!==l?[]:ln(c,l);return(a-=h.length)<r?$i(t,e,Ui,s.placeholder,i,c,h,i,i,r-a):Ie(this&&this!==fe&&this instanceof s?o:t,this,c)}}(t,e,g):e!=u&&33!=e||f.length?Ui.apply(i,k):function(t,e,r,i){var o=1&e,s=Di(t);return function e(){for(var a=-1,c=arguments.length,u=-1,l=i.length,h=n(l+c),d=this&&this!==fe&&this instanceof e?s:t;++u<l;)h[u]=i[u];for(;c--;)h[u++]=arguments[++a];return Ie(d,o?r:this,h)}}(t,e,r,s);else var S=function(t,e,n){var r=1&e,i=Di(t);return function e(){return(this&&this!==fe&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,r);return jo((_?ei:Oo)(S,k),t,e)}function Qi(t,e,n,r){return t===i||Ws(t,Ot[n])&&!jt.call(r,n)?e:t}function to(t,e,n,r,o,s){return na(t)&&na(e)&&(s.set(e,t),Gr(t,e,i,to,s),s.delete(e)),t}function eo(t){return sa(t)?i:t}function no(t,e,n,r,o,s){var a=1&n,c=t.length,u=e.length;if(c!=u&&!(a&&u>c))return!1;var l=s.get(t),h=s.get(e);if(l&&h)return l==e&&h==t;var d=-1,f=!0,p=2&n?new Zn:i;for(s.set(t,e),s.set(e,t);++d<c;){var m=t[d],g=e[d];if(r)var y=a?r(g,m,d,e,t,s):r(m,g,d,t,e,s);if(y!==i){if(y)continue;f=!1;break}if(p){if(!Le(e,(function(t,e){if(!Qe(p,e)&&(m===t||o(m,t,n,r,s)))return p.push(e)}))){f=!1;break}}else if(m!==g&&!o(m,g,n,r,s)){f=!1;break}}return s.delete(t),s.delete(e),f}function ro(t){return Bo(To(t,i,qo),t+"")}function io(t){return Ir(t,Ra,po)}function oo(t){return Ir(t,Ba,mo)}var so=Mn?function(t){return Mn.get(t)}:lc;function ao(t){for(var e=t.name+"",n=On[e],r=jt.call(On,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function co(t){return(jt.call(Un,"placeholder")?Un:t).placeholder}function uo(){var t=Un.iteratee||sc;return t=t===sc?Nr:t,arguments.length?t(arguments[0],arguments[1]):t}function lo(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function ho(t){for(var e=Ra(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Ao(i)]}return e}function fo(t,e){var n=function(t,e){return null==t?i:t[e]}(t,e);return jr(n)?n:i}var po=ye?function(t){return null==t?[]:(t=At(t),Ce(ye(t),(function(e){return $t.call(t,e)})))}:yc,mo=ye?function(t){for(var e=[];t;)Be(e,po(t)),t=Ht(t);return e}:yc,go=Ar;function yo(t,e,n){for(var r=-1,i=(e=wi(e,t)).length,o=!1;++r<i;){var s=zo(e[r]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&ea(i)&&wo(s,i)&&(Hs(t)||Ks(t))}function bo(t){return"function"!=typeof t.constructor||Io(t)?{}:Wn(Ht(t))}function vo(t){return Hs(t)||Ks(t)||!!(Yt&&t&&t[Yt])}function wo(t,e){var n=typeof t;return!!(e=null==e?p:e)&&("number"==n||"symbol"!=n&&wt.test(t))&&t>-1&&t%1==0&&t<e}function _o(t,e,n){if(!na(n))return!1;var r=typeof e;return!!("number"==r?$s(n)&&wo(e,n.length):"string"==r&&e in n)&&Ws(n[e],t)}function ko(t,e){if(Hs(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!la(t))||(nt.test(t)||!et.test(t)||null!=e&&t in At(e))}function So(t){var e=ao(t),n=Un[e];if("function"!=typeof n||!(e in Kn.prototype))return!1;if(t===n)return!0;var r=so(n);return!!r&&t===r[0]}(In&&go(new In(new ArrayBuffer(1)))!=j||An&&go(new An)!=I||En&&go(En.resolve())!=T||Tn&&go(new Tn)!=C||Pn&&go(new Pn)!=R)&&(go=function(t){var e=Ar(t),n=e==E?t.constructor:i,r=n?Fo(n):"";if(r)switch(r){case Rn:return j;case Bn:return I;case jn:return T;case Nn:return C;case Ln:return R}return e});var xo=Rt?Qs:bc;function Io(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ot)}function Ao(t){return t===t&&!na(t)}function Eo(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==i||t in At(n)))}}function To(t,e,r){return e=vn(e===i?t.length-1:e,0),function(){for(var i=arguments,o=-1,s=vn(i.length-e,0),a=n(s);++o<s;)a[o]=i[e+o];o=-1;for(var c=n(e+1);++o<e;)c[o]=i[o];return c[e]=r(a),Ie(t,this,c)}}function Po(t,e){return e.length<2?t:xr(t,ii(e,0,-1))}function Co(t,e){for(var n=t.length,r=wn(e.length,n),o=Ci(t);r--;){var s=e[r];t[r]=wo(s,n)?o[s]:i}return t}function Mo(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var Oo=No(ei),Ro=de||function(t,e){return fe.setTimeout(t,e)},Bo=No(ni);function jo(t,e,n){var r=e+"";return Bo(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(ct,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ee(y,(function(n){var r="_."+n[0];e&n[1]&&!Me(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(ut);return e?e[1].split(lt):[]}(r),n)))}function No(t){var e=0,n=0;return function(){var r=_n(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Lo(t,e){var n=-1,r=t.length,o=r-1;for(e=e===i?r:e;++n<e;){var s=Zr(n,o),a=t[s];t[s]=t[n],t[n]=a}return t.length=e,t}var Do=function(t){var e=Ns(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(rt,(function(t,n,r,i){e.push(r?i.replace(ft,"$1"):n||t)})),e}));function zo(t){if("string"==typeof t||la(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Fo(t){if(null!=t){try{return Bt.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Uo(t){if(t instanceof Kn)return t.clone();var e=new Vn(t.__wrapped__,t.__chain__);return e.__actions__=Ci(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Wo=Xr((function(t,e){return Zs(t)?dr(t,br(e,1,Zs,!0)):[]})),Go=Xr((function(t,e){var n=Jo(e);return Zs(n)&&(n=i),Zs(t)?dr(t,br(e,1,Zs,!0),uo(n,2)):[]})),Vo=Xr((function(t,e){var n=Jo(e);return Zs(n)&&(n=i),Zs(t)?dr(t,br(e,1,Zs,!0),i,n):[]}));function Ko(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:ga(n);return i<0&&(i=vn(r+i,0)),Fe(t,uo(e,3),i)}function Ho(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==i&&(o=ga(n),o=n<0?vn(r+o,0):wn(o,r-1)),Fe(t,uo(e,3),o,!0)}function qo(t){return(null==t?0:t.length)?br(t,1):[]}function $o(t){return t&&t.length?t[0]:i}var Zo=Xr((function(t){var e=Re(t,bi);return e.length&&e[0]===t[0]?Cr(e):[]})),Yo=Xr((function(t){var e=Jo(t),n=Re(t,bi);return e===Jo(n)?e=i:n.pop(),n.length&&n[0]===t[0]?Cr(n,uo(e,2)):[]})),Xo=Xr((function(t){var e=Jo(t),n=Re(t,bi);return(e="function"==typeof e?e:i)&&n.pop(),n.length&&n[0]===t[0]?Cr(n,i,e):[]}));function Jo(t){var e=null==t?0:t.length;return e?t[e-1]:i}var Qo=Xr(ts);function ts(t,e){return t&&t.length&&e&&e.length?qr(t,e):t}var es=ro((function(t,e){var n=null==t?0:t.length,r=ar(t,e);return $r(t,Re(e,(function(t){return wo(t,n)?+t:t})).sort(Ei)),r}));function ns(t){return null==t?t:xn.call(t)}var rs=Xr((function(t){return hi(br(t,1,Zs,!0))})),is=Xr((function(t){var e=Jo(t);return Zs(e)&&(e=i),hi(br(t,1,Zs,!0),uo(e,2))})),os=Xr((function(t){var e=Jo(t);return e="function"==typeof e?e:i,hi(br(t,1,Zs,!0),i,e)}));function ss(t){if(!t||!t.length)return[];var e=0;return t=Ce(t,(function(t){if(Zs(t))return e=vn(t.length,e),!0})),Ze(e,(function(e){return Re(t,Ke(e))}))}function as(t,e){if(!t||!t.length)return[];var n=ss(t);return null==e?n:Re(n,(function(t){return Ie(e,i,t)}))}var cs=Xr((function(t,e){return Zs(t)?dr(t,e):[]})),us=Xr((function(t){return gi(Ce(t,Zs))})),ls=Xr((function(t){var e=Jo(t);return Zs(e)&&(e=i),gi(Ce(t,Zs),uo(e,2))})),hs=Xr((function(t){var e=Jo(t);return e="function"==typeof e?e:i,gi(Ce(t,Zs),i,e)})),ds=Xr(ss);var fs=Xr((function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,as(t,n)}));function ps(t){var e=Un(t);return e.__chain__=!0,e}function ms(t,e){return e(t)}var gs=ro((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return ar(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Kn&&wo(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ms,args:[o],thisArg:i}),new Vn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(o)}));var ys=Oi((function(t,e,n){jt.call(t,n)?++t[n]:sr(t,n,1)}));var bs=zi(Ko),vs=zi(Ho);function ws(t,e){return(Hs(t)?Ee:fr)(t,uo(e,3))}function _s(t,e){return(Hs(t)?Te:pr)(t,uo(e,3))}var ks=Oi((function(t,e,n){jt.call(t,n)?t[n].push(e):sr(t,n,[e])}));var Ss=Xr((function(t,e,r){var i=-1,o="function"==typeof e,s=$s(t)?n(t.length):[];return fr(t,(function(t){s[++i]=o?Ie(e,t,r):Mr(t,e,r)})),s})),xs=Oi((function(t,e,n){sr(t,n,e)}));function Is(t,e){return(Hs(t)?Re:Fr)(t,uo(e,3))}var As=Oi((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var Es=Xr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&_o(t,e[0],e[1])?e=[]:n>2&&_o(e[0],e[1],e[2])&&(e=[e[0]]),Kr(t,br(e,1),[])})),Ts=he||function(){return fe.Date.now()};function Ps(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Ji(t,h,i,i,i,i,e)}function Cs(t,e){var n;if("function"!=typeof e)throw new Pt(o);return t=ga(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Ms=Xr((function(t,e,n){var r=1;if(n.length){var i=ln(n,co(Ms));r|=u}return Ji(t,r,e,n,i)})),Os=Xr((function(t,e,n){var r=3;if(n.length){var i=ln(n,co(Os));r|=u}return Ji(e,r,t,n,i)}));function Rs(t,e,n){var r,s,a,c,u,l,h=0,d=!1,f=!1,p=!0;if("function"!=typeof t)throw new Pt(o);function m(e){var n=r,o=s;return r=s=i,h=e,c=t.apply(o,n)}function g(t){return h=t,u=Ro(b,e),d?m(t):c}function y(t){var n=t-l;return l===i||n>=e||n<0||f&&t-h>=a}function b(){var t=Ts();if(y(t))return v(t);u=Ro(b,function(t){var n=e-(t-l);return f?wn(n,a-(t-h)):n}(t))}function v(t){return u=i,p&&r?m(t):(r=s=i,c)}function w(){var t=Ts(),n=y(t);if(r=arguments,s=this,l=t,n){if(u===i)return g(l);if(f)return Si(u),u=Ro(b,e),m(l)}return u===i&&(u=Ro(b,e)),c}return e=ba(e)||0,na(n)&&(d=!!n.leading,a=(f="maxWait"in n)?vn(ba(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),w.cancel=function(){u!==i&&Si(u),h=0,r=l=s=u=i},w.flush=function(){return u===i?c:v(Ts())},w}var Bs=Xr((function(t,e){return hr(t,1,e)})),js=Xr((function(t,e,n){return hr(t,ba(e)||0,n)}));function Ns(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Pt(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ns.Cache||$n),n}function Ls(t){if("function"!=typeof t)throw new Pt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ns.Cache=$n;var Ds=_i((function(t,e){var n=(e=1==e.length&&Hs(e[0])?Re(e[0],Xe(uo())):Re(br(e,1),Xe(uo()))).length;return Xr((function(r){for(var i=-1,o=wn(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return Ie(t,this,r)}))})),zs=Xr((function(t,e){var n=ln(e,co(zs));return Ji(t,u,i,e,n)})),Fs=Xr((function(t,e){var n=ln(e,co(Fs));return Ji(t,l,i,e,n)})),Us=ro((function(t,e){return Ji(t,d,i,i,i,e)}));function Ws(t,e){return t===e||t!==t&&e!==e}var Gs=qi(Er),Vs=qi((function(t,e){return t>=e})),Ks=Or(function(){return arguments}())?Or:function(t){return ra(t)&&jt.call(t,"callee")&&!$t.call(t,"callee")},Hs=n.isArray,qs=ve?Xe(ve):function(t){return ra(t)&&Ar(t)==B};function $s(t){return null!=t&&ea(t.length)&&!Qs(t)}function Zs(t){return ra(t)&&$s(t)}var Ys=be||bc,Xs=we?Xe(we):function(t){return ra(t)&&Ar(t)==_};function Js(t){if(!ra(t))return!1;var e=Ar(t);return e==k||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!sa(t)}function Qs(t){if(!na(t))return!1;var e=Ar(t);return e==S||e==x||"[object AsyncFunction]"==e||"[object Proxy]"==e}function ta(t){return"number"==typeof t&&t==ga(t)}function ea(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=p}function na(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ra(t){return null!=t&&"object"==typeof t}var ia=_e?Xe(_e):function(t){return ra(t)&&go(t)==I};function oa(t){return"number"==typeof t||ra(t)&&Ar(t)==A}function sa(t){if(!ra(t)||Ar(t)!=E)return!1;var e=Ht(t);if(null===e)return!0;var n=jt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Bt.call(n)==zt}var aa=ke?Xe(ke):function(t){return ra(t)&&Ar(t)==P};var ca=Se?Xe(Se):function(t){return ra(t)&&go(t)==C};function ua(t){return"string"==typeof t||!Hs(t)&&ra(t)&&Ar(t)==M}function la(t){return"symbol"==typeof t||ra(t)&&Ar(t)==O}var ha=xe?Xe(xe):function(t){return ra(t)&&ea(t.length)&&!!se[Ar(t)]};var da=qi(zr),fa=qi((function(t,e){return t<=e}));function pa(t){if(!t)return[];if($s(t))return ua(t)?pn(t):Ci(t);if(Xt&&t[Xt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Xt]());var e=go(t);return(e==I?cn:e==C?hn:Wa)(t)}function ma(t){return t?(t=ba(t))===f||t===-1/0?17976931348623157e292*(t<0?-1:1):t===t?t:0:0===t?t:0}function ga(t){var e=ma(t),n=e%1;return e===e?n?e-n:e:0}function ya(t){return t?cr(ga(t),0,g):0}function ba(t){if("number"==typeof t)return t;if(la(t))return m;if(na(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=na(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ye(t);var n=yt.test(t);return n||vt.test(t)?le(t.slice(2),n?2:8):gt.test(t)?m:+t}function va(t){return Mi(t,Ba(t))}function wa(t){return null==t?"":li(t)}var _a=Ri((function(t,e){if(Io(e)||$s(e))Mi(e,Ra(e),t);else for(var n in e)jt.call(e,n)&&nr(t,n,e[n])})),ka=Ri((function(t,e){Mi(e,Ba(e),t)})),Sa=Ri((function(t,e,n,r){Mi(e,Ba(e),t,r)})),xa=Ri((function(t,e,n,r){Mi(e,Ra(e),t,r)})),Ia=ro(ar);var Aa=Xr((function(t,e){t=At(t);var n=-1,r=e.length,o=r>2?e[2]:i;for(o&&_o(e[0],e[1],o)&&(r=1);++n<r;)for(var s=e[n],a=Ba(s),c=-1,u=a.length;++c<u;){var l=a[c],h=t[l];(h===i||Ws(h,Ot[l])&&!jt.call(t,l))&&(t[l]=s[l])}return t})),Ea=Xr((function(t){return t.push(i,to),Ie(Na,i,t)}));function Ta(t,e,n){var r=null==t?i:xr(t,e);return r===i?n:r}function Pa(t,e){return null!=t&&yo(t,e,Pr)}var Ca=Wi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),t[e]=n}),nc(oc)),Ma=Wi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),jt.call(t,e)?t[e].push(n):t[e]=[n]}),uo),Oa=Xr(Mr);function Ra(t){return $s(t)?Xn(t):Lr(t)}function Ba(t){return $s(t)?Xn(t,!0):Dr(t)}
vendor: 4,704 bytes, line 1
1var ja=Ri((function(t,e,n){Gr(t,e,n)})),Na=Ri((function(t,e,n,r){Gr(t,e,n,r)})),La=ro((function(t,e){var n={};if(null==t)return n;var r=!1;e=Re(e,(function(e){return e=wi(e,t),r||(r=e.length>1),e})),Mi(t,oo(t),n),r&&(n=ur(n,7,eo));for(var i=e.length;i--;)di(n,e[i]);return n}));var Da=ro((function(t,e){return null==t?{}:function(t,e){return Hr(t,e,(function(e,n){return Pa(t,n)}))}(t,e)}));function za(t,e){if(null==t)return{};var n=Re(oo(t),(function(t){return[t]}));return e=uo(e),Hr(t,n,(function(t,n){return e(t,n[0])}))}var Fa=Xi(Ra),Ua=Xi(Ba);function Wa(t){return null==t?[]:Je(t,Ra(t))}var Ga=Li((function(t,e,n){return e=e.toLowerCase(),t+(n?Va(e):e)}));function Va(t){return Ja(wa(t).toLowerCase())}function Ka(t){return(t=wa(t))&&t.replace(_t,rn).replace(Qt,"")}var Ha=Li((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),qa=Li((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),$a=Ni("toLowerCase");var Za=Li((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Ya=Li((function(t,e,n){return t+(n?" ":"")+Ja(e)}));var Xa=Li((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Ja=Ni("toUpperCase");function Qa(t,e,n){return t=wa(t),(e=n?i:e)===i?function(t){return re.test(t)}(t)?function(t){return t.match(ee)||[]}(t):function(t){return t.match(ht)||[]}(t):t.match(e)||[]}var tc=Xr((function(t,e){try{return Ie(t,i,e)}catch(n){return Js(n)?n:new at(n)}})),ec=ro((function(t,e){return Ee(e,(function(e){e=zo(e),sr(t,e,Ms(t[e],t))})),t}));function nc(t){return function(){return t}}var rc=Fi(),ic=Fi(!0);function oc(t){return t}function sc(t){return Nr("function"==typeof t?t:ur(t,1))}var ac=Xr((function(t,e){return function(n){return Mr(n,t,e)}})),cc=Xr((function(t,e){return function(n){return Mr(t,n,e)}}));function uc(t,e,n){var r=Ra(e),i=Sr(e,r);null!=n||na(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Sr(e,Ra(e)));var o=!(na(n)&&"chain"in n)||!!n.chain,s=Qs(t);return Ee(i,(function(n){var r=e[n];t[n]=r,s&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=Ci(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Be([this.value()],arguments))})})),t}function lc(){}var hc=Vi(Re),dc=Vi(Pe),fc=Vi(Le);function pc(t){return ko(t)?Ke(zo(t)):function(t){return function(e){return xr(e,t)}}(t)}var mc=Hi(),gc=Hi(!0);function yc(){return[]}function bc(){return!1}var vc=Gi((function(t,e){return t+e}),0),wc=Zi("ceil"),_c=Gi((function(t,e){return t/e}),1),kc=Zi("floor");var Sc=Gi((function(t,e){return t*e}),1),xc=Zi("round"),Ic=Gi((function(t,e){return t-e}),0);return Un.after=function(t,e){if("function"!=typeof e)throw new Pt(o);return t=ga(t),function(){if(--t<1)return e.apply(this,arguments)}},Un.ary=Ps,Un.assign=_a,Un.assignIn=ka,Un.assignInWith=Sa,Un.assignWith=xa,Un.at=Ia,Un.before=Cs,Un.bind=Ms,Un.bindAll=ec,Un.bindKey=Os,Un.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Hs(t)?t:[t]},Un.chain=ps,Un.chunk=function(t,e,r){e=(r?_o(t,e,r):e===i)?1:vn(ga(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var s=0,a=0,c=n(pe(o/e));s<o;)c[a++]=ii(t,s,s+=e);return c},Un.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},Un.concat=function(){var t=arguments.length;if(!t)return[];for(var e=n(t-1),r=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Be(Hs(r)?Ci(r):[r],br(e,1))},Un.cond=function(t){var e=null==t?0:t.length,n=uo();return t=e?Re(t,(function(t){if("function"!=typeof t[1])throw new Pt(o);return[n(t[0]),t[1]]})):[],Xr((function(n){for(var r=-1;++r<e;){var i=t[r];if(Ie(i[0],this,n))return Ie(i[1],this,n)}}))},Un.conforms=function(t){return function(t){var e=Ra(t);return function(n){return lr(n,t,e)}}(ur(t,1))},Un.constant=nc,Un.countBy=ys,Un.create=function(t,e){var n=Wn(t);return null==e?n:or(n,e)},Un.curry=function t(e,n,r){var o=Ji(e,8,i,i,i,i,i,n=r?i:n);return o.placeholder=t.placeholder,o},Un.curryRight=function t(e,n,r){var o=Ji(e,c,i,i,i,i,i,n=r?i:n);return o.placeholder=t.placeholder,o},Un.debounce=Rs,Un.defaults=Aa,Un.defaultsDeep=Ea,Un.defer=Bs,Un.delay=js,Un.difference=Wo,Un.differenceBy=Go,Un.differenceWith=Vo,Un.drop=function(t,e,n){var r=null==t?0:t.length;return r?ii(t,(e=n||e===i?1:ga(e))<0?0:e,r):[]},Un.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?ii(t,0,(e=r-(e=n||e===i?1:ga(e)))<0?0:e):[]},Un.dropRightWhile=function(t,e){return t&&t.length?pi(t,uo(e,3),!0,!0):[]},Un.dropWhile=function(t,e){return t&&t.length?pi(t,uo(e,3),!0):[]},Un.fill=function(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&_o(t,e,n)&&(n=0,r=o),function(t,e,n,r){var o=t.length;for((n=ga(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>
vendor: 12,046 bytes, line 1
1o?o:ga(r))<0&&(r+=o),r=n>r?0:ya(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Un.filter=function(t,e){return(Hs(t)?Ce:yr)(t,uo(e,3))},Un.flatMap=function(t,e){return br(Is(t,e),1)},Un.flatMapDeep=function(t,e){return br(Is(t,e),f)},Un.flatMapDepth=function(t,e,n){return n=n===i?1:ga(n),br(Is(t,e),n)},Un.flatten=qo,Un.flattenDeep=function(t){return(null==t?0:t.length)?br(t,f):[]},Un.flattenDepth=function(t,e){return(null==t?0:t.length)?br(t,e=e===i?1:ga(e)):[]},Un.flip=function(t){return Ji(t,512)},Un.flow=rc,Un.flowRight=ic,Un.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Un.functions=function(t){return null==t?[]:Sr(t,Ra(t))},Un.functionsIn=function(t){return null==t?[]:Sr(t,Ba(t))},Un.groupBy=ks,Un.initial=function(t){return(null==t?0:t.length)?ii(t,0,-1):[]},Un.intersection=Zo,Un.intersectionBy=Yo,Un.intersectionWith=Xo,Un.invert=Ca,Un.invertBy=Ma,Un.invokeMap=Ss,Un.iteratee=sc,Un.keyBy=xs,Un.keys=Ra,Un.keysIn=Ba,Un.map=Is,Un.mapKeys=function(t,e){var n={};return e=uo(e,3),_r(t,(function(t,r,i){sr(n,e(t,r,i),t)})),n},Un.mapValues=function(t,e){var n={};return e=uo(e,3),_r(t,(function(t,r,i){sr(n,r,e(t,r,i))})),n},Un.matches=function(t){return Ur(ur(t,1))},Un.matchesProperty=function(t,e){return Wr(t,ur(e,1))},Un.memoize=Ns,Un.merge=ja,Un.mergeWith=Na,Un.method=ac,Un.methodOf=cc,Un.mixin=uc,Un.negate=Ls,Un.nthArg=function(t){return t=ga(t),Xr((function(e){return Vr(e,t)}))},Un.omit=La,Un.omitBy=function(t,e){return za(t,Ls(uo(e)))},Un.once=function(t){return Cs(2,t)},Un.orderBy=function(t,e,n,r){return null==t?[]:(Hs(e)||(e=null==e?[]:[e]),Hs(n=r?i:n)||(n=null==n?[]:[n]),Kr(t,e,n))},Un.over=hc,Un.overArgs=Ds,Un.overEvery=dc,Un.overSome=fc,Un.partial=zs,Un.partialRight=Fs,Un.partition=As,Un.pick=Da,Un.pickBy=za,Un.property=pc,Un.propertyOf=function(t){return function(e){return null==t?i:xr(t,e)}},Un.pull=Qo,Un.pullAll=ts,Un.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?qr(t,e,uo(n,2)):t},Un.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?qr(t,e,i,n):t},Un.pullAt=es,Un.range=mc,Un.rangeRight=gc,Un.rearg=Us,Un.reject=function(t,e){return(Hs(t)?Ce:yr)(t,Ls(uo(e,3)))},Un.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=uo(e,3);++r<o;){var s=t[r];e(s,r,t)&&(n.push(s),i.push(r))}return $r(t,i),n},Un.rest=function(t,e){if("function"!=typeof t)throw new Pt(o);return Xr(t,e=e===i?e:ga(e))},Un.reverse=ns,Un.sampleSize=function(t,e,n){return e=(n?_o(t,e,n):e===i)?1:ga(e),(Hs(t)?Qn:Qr)(t,e)},Un.set=function(t,e,n){return null==t?t:ti(t,e,n)},Un.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:ti(t,e,n,r)},Un.shuffle=function(t){return(Hs(t)?tr:ri)(t)},Un.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&_o(t,e,n)?(e=0,n=r):(e=null==e?0:ga(e),n=n===i?r:ga(n)),ii(t,e,n)):[]},Un.sortBy=Es,Un.sortedUniq=function(t){return t&&t.length?ci(t):[]},Un.sortedUniqBy=function(t,e){return t&&t.length?ci(t,uo(e,2)):[]},Un.split=function(t,e,n){return n&&"number"!=typeof n&&_o(t,e,n)&&(e=n=i),(n=n===i?g:n>>>0)?(t=wa(t))&&("string"==typeof e||null!=e&&!aa(e))&&!(e=li(e))&&an(t)?ki(pn(t),0,n):t.split(e,n):[]},Un.spread=function(t,e){if("function"!=typeof t)throw new Pt(o);return e=null==e?0:vn(ga(e),0),Xr((function(n){var r=n[e],i=ki(n,0,e);return r&&Be(i,r),Ie(t,this,i)}))},Un.tail=function(t){var e=null==t?0:t.length;return e?ii(t,1,e):[]},Un.take=function(t,e,n){return t&&t.length?ii(t,0,(e=n||e===i?1:ga(e))<0?0:e):[]},Un.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?ii(t,(e=r-(e=n||e===i?1:ga(e)))<0?0:e,r):[]},Un.takeRightWhile=function(t,e){return t&&t.length?pi(t,uo(e,3),!1,!0):[]},Un.takeWhile=function(t,e){return t&&t.length?pi(t,uo(e,3)):[]},Un.tap=function(t,e){return e(t),t},Un.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Pt(o);return na(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Rs(t,e,{leading:r,maxWait:e,trailing:i})},Un.thru=ms,Un.toArray=pa,Un.toPairs=Fa,Un.toPairsIn=Ua,Un.toPath=function(t){return Hs(t)?Re(t,zo):la(t)?[t]:Ci(Do(wa(t)))},Un.toPlainObject=va,Un.transform=function(t,e,n){var r=Hs(t),i=r||Ys(t)||ha(t);if(e=uo(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:na(t)&&Qs(o)?Wn(Ht(t)):{}}return(i?Ee:_r)(t,(function(t,r,i){return e(n,t,r,i)})),n},Un.unary=function(t){return Ps(t,1)},Un.union=rs,Un.unionBy=is,Un.unionWith=os,Un.uniq=function(t){return t&&t.length?hi(t):[]},Un.uniqBy=function(t,e){return t&&t.length?hi(t,uo(e,2)):[]},Un.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?hi(t,i,e):[]},Un.unset=function(t,e){return null==t||di(t,e)},Un.unzip=ss,Un.unzipWith=as,Un.update=function(t,e,n){return null==t?t:fi(t,e,vi(n))},Un.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:fi(t,e,vi(n),r)},Un.values=Wa,Un.valuesIn=function(t){return null==t?[]:Je(t,Ba(t))},Un.without=cs,Un.words=Qa,Un.wrap=function(t,e){return zs(vi(e),t)},Un.xor=us,Un.xorBy=ls,Un.xorWith=hs,Un.zip=ds,Un.zipObject=function(t,e){return yi(t||[],e||[],nr)},Un.zipObjectDeep=function(t,e){return yi(t||[],e||[],ti)},Un.zipWith=fs,Un.entries=Fa,Un.entriesIn=Ua,Un.extend=ka,Un.extendWith=Sa,uc(Un,Un),Un.add=vc,Un.attempt=tc,Un.camelCase=Ga,Un.capitalize=Va,Un.ceil=wc,Un.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=ba(n))===n?n:0),e!==i&&(e=(e=ba(e))===e?e:0),cr(ba(t),e,n)},Un.clone=function(t){return ur(t,4)},Un.cloneDeep=function(t){return ur(t,5)},Un.cloneDeepWith=function(t,e){return ur(t,5,e="function"==typeof e?e:i)},Un.cloneWith=function(t,e){return ur(t,4,e="function"==typeof e?e:i)},Un.conformsTo=function(t,e){return null==e||lr(t,e,Ra(e))},Un.deburr=Ka,Un.defaultTo=function(t,e){return null==t||t!==t?e:t},Un.divide=_c,Un.endsWith=function(t,e,n){t=wa(t),e=li(e);var r=t.length,o=n=n===i?r:cr(ga(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},Un.eq=Ws,Un.escape=function(t){return(t=wa(t))&&X.test(t)?t.replace(Z,on):t},Un.escapeRegExp=function(t){return(t=wa(t))&&ot.test(t)?t.replace(it,"\\$&"):t},Un.every=function(t,e,n){var r=Hs(t)?Pe:mr;return n&&_o(t,e,n)&&(e=i),r(t,uo(e,3))},Un.find=bs,Un.findIndex=Ko,Un.findKey=function(t,e){return ze(t,uo(e,3),_r)},Un.findLast=vs,Un.findLastIndex=Ho,Un.findLastKey=function(t,e){return ze(t,uo(e,3),kr)},Un.floor=kc,Un.forEach=ws,Un.forEachRight=_s,Un.forIn=function(t,e){return null==t?t:vr(t,uo(e,3),Ba)},Un.forInRight=function(t,e){return null==t?t:wr(t,uo(e,3),Ba)},Un.forOwn=function(t,e){return t&&_r(t,uo(e,3))},Un.forOwnRight=function(t,e){return t&&kr(t,uo(e,3))},Un.get=Ta,Un.gt=Gs,Un.gte=Vs,Un.has=function(t,e){return null!=t&&yo(t,e,Tr)},Un.hasIn=Pa,Un.head=$o,Un.identity=oc,Un.includes=function(t,e,n,r){t=$s(t)?t:Wa(t),n=n&&!r?ga(n):0;var i=t.length;return n<0&&(n=vn(i+n,0)),ua(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Ue(t,e,n)>-1},Un.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:ga(n);return i<0&&(i=vn(r+i,0)),Ue(t,e,i)},Un.inRange=function(t,e,n){return e=ma(e),n===i?(n=e,e=0):n=ma(n),function(t,e,n){return t>=wn(e,n)&&t<vn(e,n)}(t=ba(t),e,n)},Un.invoke=Oa,Un.isArguments=Ks,Un.isArray=Hs,Un.isArrayBuffer=qs,Un.isArrayLike=$s,Un.isArrayLikeObject=Zs,Un.isBoolean=function(t){return!0===t||!1===t||ra(t)&&Ar(t)==w},Un.isBuffer=Ys,Un.isDate=Xs,Un.isElement=function(t){return ra(t)&&1===t.nodeType&&!sa(t)},Un.isEmpty=function(t){if(null==t)return!0;if($s(t)&&(Hs(t)||"string"==typeof t||"function"==typeof t.splice||Ys(t)||ha(t)||Ks(t)))return!t.length;var e=go(t);if(e==I||e==C)return!t.size;if(Io(t))return!Lr(t).length;for(var n in t)if(jt.call(t,n))return!1;return!0},Un.isEqual=function(t,e){return Rr(t,e)},Un.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?Rr(t,e,i,n):!!r},Un.isError=Js,Un.isFinite=function(t){return"number"==typeof t&&De(t)},Un.isFunction=Qs,Un.isInteger=ta,Un.isLength=ea,Un.isMap=ia,Un.isMatch=function(t,e){return t===e||Br(t,e,ho(e))},Un.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,Br(t,e,ho(e),n)},Un.isNaN=function(t){return oa(t)&&t!=+t},Un.isNative=function(t){if(xo(t))throw new at("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return jr(t)},Un.isNil=function(t){return null==t},Un.isNull=function(t){return null===t},Un.isNumber=oa,Un.isObject=na,Un.isObjectLike=ra,Un.isPlainObject=sa,Un.isRegExp=aa,Un.isSafeInteger=function(t){return ta(t)&&t>=-9007199254740991&&t<=p},Un.isSet=ca,Un.isString=ua,Un.isSymbol=la,Un.isTypedArray=ha,Un.isUndefined=function(t){return t===i},Un.isWeakMap=function(t){return ra(t)&&go(t)==R},Un.isWeakSet=function(t){return ra(t)&&"[object WeakSet]"==Ar(t)},Un.join=function(t,e){return null==t?"":He.call(t,e)},Un.kebabCase=Ha,Un.last=Jo,Un.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=ga(n))<0?vn(r+o,0):wn(o,r-1)),e===e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):Fe(t,Ge,o,!0)},Un.lowerCase=qa,Un.lowerFirst=$a,Un.lt=da,Un.lte=fa,Un.max=function(t){return t&&t.length?gr(t,oc,Er):i},Un.maxBy=function(t,e){return t&&t.length?gr(t,uo(e,2),Er):i},Un.mean=function(t){return Ve(t,oc)},Un.meanBy=function(t,e){return Ve(t,uo(e,2))},Un.min=function(t){return t&&t.length?gr(t,oc,zr):i},Un.minBy=function(t,e){return t&&t.length?gr(t,uo(e,2),zr):i},Un.stubArray=yc,Un.stubFalse=bc,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=Sc,Un.nth=function(t,e){return t&&t.length?Vr(t,ga(e)):i},Un.noConflict=function(){return fe._===this&&(fe._=Ft),this},Un.noop=lc,Un.now=Ts,Un.pad=function(t,e,n){t=wa(t);var r=(e=ga(e))?fn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Ki(me(i),n)+t+Ki(pe(i),n)},Un.padEnd=function(t,e,n){t=wa(t);var r=(e=ga(e))?fn(t):0;return e&&r<e?t+Ki(e-r,n):t},Un.padStart=function(t,e,n){t=wa(t);var r=(e=ga(e))?fn(t):0;return e&&r<e?Ki(e-r,n)+t:t},Un.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),kn(wa(t).replace(st,""),e||0)},Un.random=function(t,e,n){if(n&&"boolean"!=typeof n&&_o(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),t===i&&e===i?(t=0,e=1):(t=ma(t),e===i?(e=t,t=0):e=ma(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=Sn();return wn(t+o*(e-t+ue("1e-"+((o+"").length-1))),e)}return Zr(t,e)},Un.reduce=function(t,e,n){var r=Hs(t)?je:qe,i=arguments.length<3;return r(t,uo(e,4),n,i,fr)},Un.reduceRight=function(t,e,n){var r=Hs(t)?Ne:qe,i=arguments.length<3;return r(t,uo(e,4),n,i,pr)},Un.repeat=function(t,e,n){return e=(n?_o(t,e,n):e===i)?1:ga(e),Yr(wa(t),e)},Un.replace=function(){var t=arguments,e=wa(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Un.result=function(t,e,n){var r=-1,o=(e=wi(e,t)).length;for(o||(o=1,t=i);++r<o;){var s=null==t?i:t[zo(e[r])];s===i&&(r=o,s=n),t=Qs(s)?s.call(t):s}return t},Un.round=xc,Un.runInContext=t,Un.sample=function(t){return(Hs(t)?Jn:Jr)(t)},Un.size=function(t){if(null==t)return 0;if($s(t))return ua(t)?fn(t):t.length;var e=go(t);return e==I||e==C?t.size:Lr(t).length},Un.snakeCase=Za,Un.some=function(t,e,n){var r=Hs(t)?Le:oi;return n&&_o(t,e,n)&&(e=i),r(t,uo(e,3))},Un.sortedIndex=function(t,e){return si(t,e)},Un.sortedIndexBy=function(t,e,n){return ai(t,e,uo(n,2))},Un.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=si(t,e);if(r<n&&Ws(t[r],e))return r}return-1},Un.sortedLastIndex=function(t,e){return si(t,e,!0)},Un.sortedLastIndexBy=function(t,e,n){return ai(t,e,uo(n,2),!0)},Un.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=si(t,e,!0)-1;if(Ws(t[n],e))return n}return-1},Un.startCase=Ya,Un.startsWith=function(t,e,n){return t=wa(t),n=null==n?0:cr(ga(n),0,t.length),e=li(e),t.slice(n,n+e.length)==e},Un.subtract=Ic,Un.sum=function(t){return t&&t.length?$e(t,oc):0},Un.sumBy=function(t,e){return t&&t.length?$e(t,uo(e,2)):0},Un.template=function(t,e,n){var r=Un.templateSettings;n&&_o(t,e,n)&&(e=i),t=wa(t),e=Sa({},e,r,Qi);var o,s,a=Sa({},e.imports,r.imports,Qi),c=Ra(a),u=Je(a,c),l=0,h=e.interpolate||kt,d="__p += '",f=Et((e.escape||
vendor: 5,009 bytes, line 1
1kt).source+"|"+h.source+"|"+(h===tt?pt:kt).source+"|"+(e.evaluate||kt).source+"|$","g"),p="//# sourceURL="+(jt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++oe+"]")+"\n";t.replace(f,(function(e,n,r,i,a,c){return r||(r=i),d+=t.slice(l,c).replace(St,sn),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+e.length,e})),d+="';\n";var m=jt.call(e,"variable")&&e.variable;if(m){if(dt.test(m))throw new at("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(K,""):d).replace(H,"$1").replace(q,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=tc((function(){return xt(c,p+"return "+d).apply(i,u)}));if(g.source=d,Js(g))throw g;return g},Un.times=function(t,e){if((t=ga(t))<1||t>p)return[];var n=g,r=wn(t,g);e=uo(e),t-=g;for(var i=Ze(r,e);++n<t;)e(n);return i},Un.toFinite=ma,Un.toInteger=ga,Un.toLength=ya,Un.toLower=function(t){return wa(t).toLowerCase()},Un.toNumber=ba,Un.toSafeInteger=function(t){return t?cr(ga(t),-9007199254740991,p):0===t?t:0},Un.toString=wa,Un.toUpper=function(t){return wa(t).toUpperCase()},Un.trim=function(t,e,n){if((t=wa(t))&&(n||e===i))return Ye(t);if(!t||!(e=li(e)))return t;var r=pn(t),o=pn(e);return ki(r,tn(r,o),en(r,o)+1).join("")},Un.trimEnd=function(t,e,n){if((t=wa(t))&&(n||e===i))return t.slice(0,mn(t)+1);if(!t||!(e=li(e)))return t;var r=pn(t);return ki(r,0,en(r,pn(e))+1).join("")},Un.trimStart=function(t,e,n){if((t=wa(t))&&(n||e===i))return t.replace(st,"");if(!t||!(e=li(e)))return t;var r=pn(t);return ki(r,tn(r,pn(e))).join("")},Un.truncate=function(t,e){var n=30,r="...";if(na(e)){var o="separator"in e?e.separator:o;n="length"in e?ga(e.length):n,r="omission"in e?li(e.omission):r}var s=(t=wa(t)).length;if(an(t)){var a=pn(t);s=a.length}if(n>=s)return t;var c=n-fn(r);if(c<1)return r;var u=a?ki(a,0,c).join(""):t.slice(0,c);if(o===i)return u+r;if(a&&(c+=u.length-c),aa(o)){if(t.slice(c).search(o)){var l,h=u;for(o.global||(o=Et(o.source,wa(mt.exec(o))+"g")),o.lastIndex=0;l=o.exec(h);)var d=l.index;u=u.slice(0,d===i?c:d)}}else if(t.indexOf(li(o),c)!=c){var f=u.lastIndexOf(o);f>-1&&(u=u.slice(0,f))}return u+r},Un.unescape=function(t){return(t=wa(t))&&Y.test(t)?t.replace($,gn):t},Un.uniqueId=function(t){var e=++Nt;return wa(t)+e},Un.upperCase=Xa,Un.upperFirst=Ja,Un.each=ws,Un.eachRight=_s,Un.first=$o,uc(Un,function(){var t={};return _r(Un,(function(e,n){jt.call(Un.prototype,n)||(t[n]=e)})),t}(),{chain:!1}),Un.VERSION="4.17.21",Ee(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Un[t].placeholder=Un})),Ee(["drop","take"],(function(t,e){Kn.prototype[t]=function(n){n=n===i?1:vn(ga(n),0);var r=this.__filtered__&&!e?new Kn(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,g),type:t+(r.__dir__<0?"Right":"")}),r},Kn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ee(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Kn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:uo(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ee(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Kn.prototype[t]=function(){return this[n](1).value()[0]}})),Ee(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Kn.prototype[t]=function(){return this.__filtered__?new Kn(this):this[n](1)}})),Kn.prototype.compact=function(){return this.filter(oc)},Kn.prototype.find=function(t){return this.filter(t).head()},Kn.prototype.findLast=function(t){return this.reverse().find(t)},Kn.prototype.invokeMap=Xr((function(t,e){return"function"==typeof t?new Kn(this):this.map((function(n){return Mr(n,t,e)}))})),Kn.prototype.reject=function(t){return this.filter(Ls(uo(t)))},Kn.prototype.slice=function(t,e){t=ga(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Kn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=ga(e))<0?n.dropRight(-e):n.take(e-t)),n)},Kn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Kn.prototype.toArray=function(){return this.take(g)},_r(Kn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Un[r?"take"+("last"==e?"Right":""):e],s=r||/^find/.test(e);o&&(Un.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,c=e instanceof Kn,u=a[0],l=c||Hs(e),h=function(t){var e=o.apply(Un,Be([t],a));return r&&d?e[0]:e};l&&n&&"function"==typeof u&&1!=u.length&&(c=l=!1);var d=this.__chain__,f=!!this.__actions__.length,p=s&&!d,m=c&&!f;if(!s&&l){e=m?e:new Kn(this);var g=t.apply(e,a);return g.__actions__.push({func:ms,args:[h],thisArg:i}),new Vn(g,d)}return p&&m?t.apply(this,a):(g=this.thru(h),p?r?g.value()[0]:g.value():g)})}
vendor: 4,831 bytes, line 1
1)),Ee(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Ct[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Un.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Hs(i)?i:[],t)}return this[n]((function(n){return e.apply(Hs(n)?n:[],t)}))}})),_r(Kn.prototype,(function(t,e){var n=Un[e];if(n){var r=n.name+"";jt.call(On,r)||(On[r]=[]),On[r].push({name:e,func:n})}})),On[Ui(i,2).name]=[{name:"wrapper",func:i}],Kn.prototype.clone=function(){var t=new Kn(this.__wrapped__);return t.__actions__=Ci(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ci(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ci(this.__views__),t},Kn.prototype.reverse=function(){if(this.__filtered__){var t=new Kn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Kn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Hs(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=wn(e,t+s);break;case"takeRight":t=vn(t,e-s)}}return{start:t,end:e}}(0,i,this.__views__),s=o.start,a=o.end,c=a-s,u=r?a:s-1,l=this.__iteratees__,h=l.length,d=0,f=wn(c,this.__takeCount__);if(!n||!r&&i==c&&f==c)return mi(t,this.__actions__);var p=[];t:for(;c--&&d<f;){for(var m=-1,g=t[u+=e];++m<h;){var y=l[m],b=y.iteratee,v=y.type,w=b(g);if(2==v)g=w;else if(!w){if(1==v)continue t;break t}}p[d++]=g}return p},Un.prototype.at=gs,Un.prototype.chain=function(){return ps(this)},Un.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===i&&(this.__values__=pa(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},Un.prototype.plant=function(t){for(var e,n=this;n instanceof Gn;){var r=Uo(n);r.__index__=0,r.__values__=i,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},Un.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Kn){var e=t;return this.__actions__.length&&(e=new Kn(this)),(e=e.reverse()).__actions__.push({func:ms,args:[ns],thisArg:i}),new Vn(e,this.__chain__)}return this.thru(ns)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return mi(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,Xt&&(Un.prototype[Xt]=function(){return this}),Un}();fe._=yn,(r=function(){return yn}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},88306:function(t,e,n){var r=n(83369);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},50308:function(t){t.exports=function(){}},39601:function(t,e,n){var r=n(40371),i=n(79152),o=n(15403),s=n(40327);t.exports=function(t){return o(t)?r(s(t)):i(t)}},70479:function(t){t.exports=function(){return[]}},95062:function(t){t.exports=function(){return!1}},18601:function(t,e,n){var r=n(14841),i=1/0;t.exports=function(t){return t?(t=r(t))===i||t===-1/0?17976931348623157e292*(t<0?-1:1):t===t?t:0:0===t?t:0}},40554:function(t,e,n){var r=n(18601);t.exports=function(t){var e=r(t),n=e%1;return e===e?n?e-n:e:0}},14841:function(t,e,n){var r=n(27561),i=n(13218),o=n(33448),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=a.test(t);return n||c.test(t)?u(t.slice(2),n?2:8):s.test(t)?NaN:+t}},79833:function(t,e,n){var r=n(80531);t.exports=function(t){return null==t?"":r(t)}},45578:function(t,e,n){var r=n(67206),i=n(45652);t.exports=function(t,e){return t&&t.length?i(t,r(e,2)):[]}},40690:function(t,e,n){var r=n(34963),i=n(29932),o=n(40371),s=n(22545),a=n(29246),c=Math.max;t.exports=function(t){if(!t||!t.length)return[];var e=0;return t=r(t,(function(t){if(a(t))return e=c(t.length,e),!0})),s(e,(function(e){return i(t,o(e))}))}},4788:function(t,e,n){var r=n(5976)(n(40690));t.exports=r},69260:function(t,e,n){!function(t,e,n){"use strict";function r(t){return t&&"object"===typeof t&&"default"in t?t:{default:t}}var i=r(e),o=r(n);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function l(t,e){if(null==t)return{};var n,r,i=u(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function h(t,e){return d(t)||f(t,e)||p(t,e)||g()}function d(t){if(Array.isArray(t))return t}function f(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);s=!0);}catch(c){a=!0,i=c}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}function p(t,e){if(t){if("string"===typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var y=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],b=function(t,e){var r=t.animationData,s=t.loop,c=t.autoplay,u=t.initialSegment,d=t.onComplete,f=t.onLoopComplete,p=t.onEnterFrame,m=t.onSegmentStart,g=t.onConfigReady,b=t.onDataReady,v=t.onDataFailed,w=t.onLoadedImages,_=t.onDOMLoaded,k=t.onDestroy;t.lottieRef,t.renderer,t.name,t.assetsPath,t.rendererSettings;var S=l(t,y),x=h(n.useState(!1),2),I=x[0],A=x[1],E=n.useRef(),T=n.useRef(null),P=function(){var t;null===(t=E.current)||void 0===t||t.play()},C=function(){var t;null===(t=E.current)||void 0===t||t.stop()},M=function(){var t;null===(t=E.current)||void 0===t||t.pause()},O=function(t){var e;null===(e=E.current)||void 0===e||e.setSpeed(t)},R=function(t,e){var n;null===(n=E.current)||void 0===n||n.goToAndPlay(t,e)},B=function(t,e){var n;null===(n=E.current)||void 0===n||n.goToAndStop(t,e)},j=function(t){var e;null===(e=E.current)||void 0===e||e.setDirection(t)},N=function(t,e){var n;null===(n=E.current)||void 0===n||n.playSegments(t,e)},L=function(t){var e;null===(e=E.current)||void 0===e||e.setSubframe(t)},D=function(t){var e;return null===(e=E.current)||void 0===e?void 0:e.getDuration(t)},z=function(){var t;null===(t=E.current)||void 0===t||t.destroy(),E.current=void 0},F=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(T.current){null===(e=E.current)||void 0===e||e.destroy();var r=a(a(a({},t),n),{},{container:T.current});return E.current=i.default.loadAnimation(r),A(!!E.current),function(){var t;null===(t=E.current)||void 0===t||t.destroy(),E.current=void 0}}};return n.useEffect((function(){var t=F();return function(){return null===t||void 0===t?void 0:t()}}),[r,s]),n.useEffect((function(){E.current&&(E.current.autoplay=!!c)}),[c]),n.useEffect((function(){E.current&&(u?Array.isArray(u)&&u.length&&((E.current.currentRawFrame<u[0]||E.current.currentRawFrame>u[1])&&(E.current.currentRawFrame=u[0]),E.current.setSegment(u[0],u[1])):E.current.resetSegments(!0))}),[u]),n.useEffect((function(){var t=[{name:"complete",handler:d},{name:"loopComplete",handler:f},{name:"enterFrame",handler:p},{name:"segmentStart",handler:m},{name:"config_ready",handler:g},{name:"data_ready",handler:b},{name:"data_failed",handler:v},{name:"loaded_images",handler:w},{name:"DOMLoaded",handler:_},{name:"destroy",handler:k}].filter((function(t){return null!=t.handler}));if(t.length){var e=t.map((function(t){var e;return null===(e=E.current)||void 0===e||e.addEventListener(t.name,t.handler),function(){var e;null===(e=E.current)||void 0===e||e.removeEventListener(t.name,t.handler)}}));return function(){e.forEach((function(t){return t()}))}}}),[d,f,p,m,g,b,v,w,_,k]),{View:o.default.createElement("div",a({style:e,ref:T},S)),play:P,stop:C,pause:M,setSpeed:O,goToAndStop:B,goToAndPlay:R,setDirection:j,playSegments:N,setSubframe:L,getDuration:D,destroy:z,animationContainerRef:T,animationLoaded:I,animationItem:E.current}};function v(t){var e=t.getBoundingClientRect(),n=e.top,r=e.height;return(window.innerHeight-n)/(window.innerHeight+r)}function w(t,e,n){var r=t.getBoundingClientRect(),i=r.top;return{x:(e-r.left)/r.width,y:(n-i)/r.height}}var _=function(t){var e=t.wrapperRef,r=t.animationItem,i=t.mode,o=t.actions;n.useEffect((function(){var t=e.current;if(t&&r&&o.length){r.stop();var n=function(){var e=null,n=function(){var n=v(t),i=o.find((function(t){var e=t.visibility;return e&&n>=e[0]&&n<=e[1]}));if(i){if("seek"===i.type&&i.visibility&&2===i.frames.length){var s=i.frames[0]+Math.ceil((n-i.visibility[0])/(i.visibility[1]-i.visibility[0])*i.frames[1]);r.goToAndStop(s-r.firstFrame-1,!0)}"loop"===i.type&&(null===e||e!==i.frames||r.isPaused)&&(r.playSegments(i.frames,!0),e=i.frames),"play"===i.t
1ype&&r.isPaused&&(r.resetSegments(!0),r.play()),"stop"===i.type&&r.goToAndStop(i.frames[0]-r.firstFrame-1,!0)}};return document.addEventListener("scroll",n),function(){document.removeEventListener("scroll",n)}},s=function(){var e=function(e,n){var i=e,s=n;if(-1!==i&&-1!==s){var a=w(t,i,s);i=a.x,s=a.y}var c=o.find((function(t){var e=t.position;return e&&Array.isArray(e.x)&&Array.isArray(e.y)?i>=e.x[0]&&i<=e.x[1]&&s>=e.y[0]&&s<=e.y[1]:!(!e||Number.isNaN(e.x)||Number.isNaN(e.y))&&i===e.x&&s===e.y}));if(c){if("seek"===c.type&&c.position&&Array.isArray(c.position.x)&&Array.isArray(c.position.y)&&2===c.frames.length){var u=(i-c.position.x[0])/(c.position.x[1]-c.position.x[0]),l=(s-c.position.y[0])/(c.position.y[1]-c.position.y[0]);r.playSegments(c.frames,!0),r.goToAndStop(Math.ceil((u+l)/2*(c.frames[1]-c.frames[0])),!0)}"loop"===c.type&&r.playSegments(c.frames,!0),"play"===c.type&&(r.isPaused&&r.resetSegments(!1),r.playSegments(c.frames)),"stop"===c.type&&r.goToAndStop(c.frames[0],!0)}},n=function(t){e(t.clientX,t.clientY)},i=function(){e(-1,-1)};return t.addEventListener("mousemove",n),t.addEventListener("mouseout",i),function(){t.removeEventListener("mousemove",n),t.removeEventListener("mouseout",i)}};switch(i){case"scroll":return n();case"cursor":return s()}}}),[i,r])},k=function(t){var e=t.actions,n=t.mode,r=t.lottieObj,i=r.animationItem,o=r.Vie
vendor: 8,367 bytes, line 1
1w,s=r.animationContainerRef;return _({actions:e,animationItem:i,mode:n,wrapperRef:s}),o},S=["style","interactivity"],x=function(t){var e,r,i,o=t.style,s=t.interactivity,a=l(t,S),c=b(a,o),u=c.View,h=c.play,d=c.stop,f=c.pause,p=c.setSpeed,m=c.goToAndStop,g=c.goToAndPlay,y=c.setDirection,v=c.playSegments,w=c.setSubframe,_=c.getDuration,x=c.destroy,I=c.animationContainerRef,A=c.animationLoaded,E=c.animationItem;return n.useEffect((function(){t.lottieRef&&(t.lottieRef.current={play:h,stop:d,pause:f,setSpeed:p,goToAndPlay:g,goToAndStop:m,setDirection:y,playSegments:v,setSubframe:w,getDuration:_,destroy:x,animationContainerRef:I,animationLoaded:A,animationItem:E})}),[null===(e=t.lottieRef)||void 0===e?void 0:e.current]),k({lottieObj:{View:u,play:h,stop:d,pause:f,setSpeed:p,goToAndStop:m,goToAndPlay:g,setDirection:y,playSegments:v,setSubframe:w,getDuration:_,destroy:x,animationContainerRef:I,animationLoaded:A,animationItem:E},actions:null!==(r=null===s||void 0===s?void 0:s.actions)&&void 0!==r?r:[],mode:null!==(i=null===s||void 0===s?void 0:s.mode)&&void 0!==i?i:"scroll"})};Object.defineProperty(t,"LottiePlayer",{enumerable:!0,get:function(){return i.default}}),t.default=x,t.useLottie=b,t.useLottieInteractivity=k,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(11248),n(67294))},11248:function(module,exports,__webpack_require__){var factory;"undefined"!==typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var n,r,i=t.length;for(n=0;n<i;n+=1)for(var o in r=t[n].prototype)Object.prototype.hasOwnProperty.call(r,o)&&(e.prototype[o]=r[o])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,n=this.audios.length;for(e=0;e<n;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var n,r=0,i=[];switch(t){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<e;r+=1)i.push(n);return i}return"function"===typeof Uint8ClampedArray&&"function"===typeof Float32Array?function(e,n){return"float32"===e?new Float32Array(n):"int16"===e?new Int16Array(n):"uint8c"===e?new Uint8ClampedArray(n):t(e,n)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return _typeof$6="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n=e.length;for(t=0;t<n;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var e,n=createSizedArray(t.length),r=t.length;for(e=0;e<r;e+=1)n[e]=Math.abs(t[e]);return n}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,n,r){this.type=t,this.currentTime=e,this.totalTime=n,this.direction=r<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,n,r){this.type=t,this.currentLoop=n,this.totalLoops=e,this.direction=r<0?-1:1}function BMSegmentStartEvent(t,e,n){this.type=t,this.firstFrame=e,this.totalFrames=n}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=function(){var t=0;return function(){return idPrefix$1+"__lottie_element_"+(t+=1)}}();function HSVtoRGB(t,e,n){var r,i,o,s,a,c,u,l;switch(c=n*(1-e),u=n*(1-(a=6*t-(s=Math.floor(6*t)))*e),l=n*(1-(1-a)*e),s%6){case 0:r=n,i=l,o=c;break;case 1:r=u,i=n,o=c;break;case 2:r=c,i=n,o=l;break;case 3:r=c,i=u,o=n;break;case 4:r=l,i=c,o=n;break;case 5:r=n,i=c,o=u}return[r,i,o]}function RGBtoHSV(t,e,n){var r,i=Math.max(t,e,n),o=Math.min(t,e,n),s=i-o,a=0===i?0:s/i,c=i/255;switch(i){case o:r=0;break;case t:r=e-n+s*(e<n?6:0),r/=6*s;break;case e:r=n-t+2*s,r/=6*s;break;case n:r=t-e+4*s,r/=6*s}return[r,a,c]}function addSaturationToRGB(t,e){var n=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return n[1]+=e,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(t,e){var n=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return n[2]+=e,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(t,e){var n=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return n[0]+=e/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var t,e,n=[];for(t=0;t<256;t+=1)e=t.toString(16),n[t]=1===e.length?"0"+e:e;return function(t,e,r){return t<0&&(t=0),e<0&&(e=0),r<0&&(r=0),"#"+n[t]+n[e]+n[r]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return _typeof$5="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(t)}var dataManager=function(){var t,e,n=1,r=[],i={onmessage:function(){},postMessage:function(e){t({data:e})}},o={postMessage:function(t){i.onmessage({data:t})}};function s(){e||(e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var n=new Blob(["var _workerSelf = self;
1 self.onmessage = ",e.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return t=e,i}((function(t){if(o.dataManager||(o.dataManager=function(){function t(i,o){var s,a,c,u,h,d,f=i.length;for(a=0;a<f;a+=1)if("ks"in(s=i[a])&&!s.completed){if(s.completed=!0,s.hasMask){var p=s.masksProperties;for(u=p.length,c=0;c<u;c+=1)if(p[c].pt.k.i)r(p[c].pt.k);else for(d=p[c].pt.k.length,h=0;h<d;h+=1)p[c].pt.k[h].s&&r(p[c].pt.k[h].s[0]),p[c].pt.k[h].e&&r(p[c].pt.k[h].e[0])}0===s.ty?(s.layers=e(s.refId,o),t(s.layers,o)):4===s.ty?n(s.shapes):5===s.ty&&l(s)}}function e(t,e){var n=function(t,e){for(var n=0,r=e.length;n<r;){if(e[n].id===t)return e[n];n+=1}return null}(t,e);return n?n.layers.__used?JSON.parse(JSON.stringify(n.layers)):(n.layers.__used=!0,n.layers):null}function n(t){var e,i,o;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)r(t[e].ks.k);else for(o=t[e].ks.k.length,i=0;i<o;i+=1)t[e].ks.k[i].s&&r(t[e].ks.k[i].s[0]),t[e].ks.k[i].e&&r(t[e].ks.k[i].e[0]);else"gr"===t[e].ty&&n(t[e].it)}function r(t){var e,n=t.i.length;for(e=0;e<n;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function i(t,e){var n=e?e.split("."):[100,100,100];return t[0]>n[0]||!(n[0]>t[0])&&(t[1]>n[1]||!(n[1]>t[1])&&(t[2]>n[2]||!(n[2]>t[2])&&null))}var o=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function n(t){var n,r=t.length;for(n=0;n<r;n+=1)5===t[n].ty&&e(t[n])}return function(e){if(i(t,e.v)&&(n(e.layers),e.assets)){var r,o=e.assets.length;for(r=0;r<o;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}(),s=function(){var t=[4,7,99];return function(e){if(e.chars&&!i(t,e.v)){var r,o=e.chars.length;for(r=0;r<o;r+=1){var s=e.chars[r];s.data&&s.data.shapes&&(n(s.data.shapes),s.data.ip=0,s.data.op=99999,s.data.st=0,s.data.sr=1,s.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[r].t||(s.data.shapes.push({ty:"no"}),s.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),a=function(){var t=[5,7,15];function e(t){var e=t.t.p;"number"===typeof e.a&&(e.a={a:0,k:e.a}),"number"===typeof e.p&&(e.p={a:0,k:e.p}),"number"===typeof e.r&&(e.r={a:0,k:e.r})}function n(t){var n,r=t.length;for(n=0;n<r;n+=1)5===t[n].ty&&e(t[n])}return function(e){if(i(t,e.v)&&(n(e.layers),e.assets)){var r,o=e.assets.length;for(r=0;r<o;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}(),c=function(){var t=[4,1,9];function e(t){var n,r,i,o=t.length;for(n=0;n<o;n+=1)if("gr"===t[n].ty)e(t[n].it);else if("fl"===t[n].ty||"st"===t[n].ty)if(t[n].c.k&&t[n].c.k[0].i)for(i=t[n].c.k.length,r=0;r<i;r+=1)t[n].c.k[r].s&&(t[n].c.k[r].s[0]/=255,t[n].c.k[r].s[1]/=255,t[n].c.k[r].s[2]/=255,t[n].c.k[r].s[3]/=255),t[n].c.k[r].e&&(t[n].c.k[r].e[0]/=255,t[n].c.k[r].e[1]/=255,t[n].c.k[r].e[2]/=255,t[n].c.k[r].e[3]/=255);else t[n].c.k[0]/=255,t[n].c.k[1]/=255,t[n].c.k[2]/=255,t[n].c.k[3]/=255}function n(t){var n,r=t.length;for(n=0;n<r;n+=1)4===t[n].ty&&e(t[n].shapes)}return function(e){if(i(t,e.v)&&(n(e.layers),e.assets)){var r,o=e.assets.length;for(r=0;r<o;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}(),u=function(){var t=[4,4,18];function e(t){var n,r,i;for(n=t.length-1;n>=0;n-=1)if("sh"===t[n].ty)if(t[n].ks.k.i)t[n].ks.k.c=t[n].closed;else for(i=t[n].ks.k.length,r=0;r<i;r+=1)t[n].ks.k[r].s&&(t[n].ks.k[r].s[0].c=t[n].closed),t[n].ks.k[r].e&&(t[n].ks.k[r].e[0].c=t[n].closed);else"gr"===t[n].ty&&e(t[n].it)}function n(t){var n,r,i,o,s,a,c=t.length;for(r=0;r<c;r+=1){if((n=t[r]).hasMask){var u=n.masksProperties;for(o=u.length,i=0;i<o;i+=1)if(u[i].pt.k.i)u[i].pt.k.c=u[i].cl;else for(a=u[i].pt.k.length,s=0;s<a;s+=1)u[i].pt.k[s].s&&(u[i].pt.k[s].s[0].c=u[i].cl),u[i].pt.k[s].e&&(u[i].pt.k[s].e[0].c=u[i].cl)}4===n.ty&&e(n.shapes)}}return function(e){if(i(t,e.v)&&(n(e.layers),e.assets)){var r,o=e.assets.length;for(r=0;r<o;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}();function l(t){0===t.t.a.length&&t.t.p}var h={completeData:function(n){n.__complete||(c(n),o(n),s(n),a(n),u(n),t(n.layers,n.assets),function(n,r){if(n){var i=0,o=n.length;for(i=0;i<o;i+=1)1===n[i].t&&(n[i].data.layers=e(n[i].data.refId,r),t(n[i].data.layers,r))}}(n.chars,n.assets),n.__complete=!0)}};
vendor: 19,934 bytes, line 1
1return h.checkColors=c,h.checkChars=s,h.checkPathProperties=a,h.checkShapes=u,h.completeLayers=t,h}()),o.assetLoader||(o.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"===typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,n,r,i){var o,s=new XMLHttpRequest;try{s.responseType="json"}catch(a){}s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status)o=t(s),r(o);else try{o=t(s),r(o)}catch(a){i&&i(a)}};try{s.open(["G","E","T"].join(""),e,!0)}catch(c){s.open(["G","E","T"].join(""),n+"/"+e,!0)}s.send()}}}()),"loadAnimation"===t.data.type)o.assetLoader.load(t.data.path,t.data.fullPath,(function(e){o.dataManager.completeData(e),o.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){o.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var e=t.data.animation;o.dataManager.completeData(e),o.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&o.assetLoader.load(t.data.path,t.data.fullPath,(function(e){o.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){o.postMessage({id:t.data.id,status:"error"})}))})),e.onmessage=function(t){var e=t.data,n=e.id,i=r[n];r[n]=null,"success"===e.status?i.onComplete(e.payload):i.onError&&i.onError()})}function a(t,e){var i="processId_"+(n+=1);return r[i]={onComplete:t,onError:e},i}return{loadAnimation:function(t,n,r){s();var i=a(n,r);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(t,n,r){s();var i=a(n,r);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(t,n,r){s();var i=a(n,r);e.postMessage({type:"complete",animation:t,id:i})}}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(t,e,n){var r="";if(t.e)r=t.p;else if(e){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),r=e+i}else r=n,r+=t.u?t.u:"",r+=t.p;return r}function i(t){var e=0,n=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(n)),e+=1}.bind(this),50)}function o(t){var e={assetData:t},n=r(t,this.assetsPath,this.path);return dataManager.loadData(n,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function s(){this._imageLoaded=e.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return s.prototype={loadAssets:function(t,e){var n;this.imagesLoadedCb=e;var r=t.length;for(n=0;n<r;n+=1)t[n].layers||(t[n].t&&"seq"!==t[n].t?3===t[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[n]))):(this.totalImages+=1,this.images.push(this._createImageData(t[n]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,n=this.images.length;e<n;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var n=r(e,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),i.src=n;var o={img:i,assetData:e};return o},createImageData:function(e){var n=r(e,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var o={img:i,assetData:e};return o},imageLoaded:e,footageLoaded:n,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},s}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var n=this._cbs[t],r=0;r<n.length;r+=1)n[r](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var n=0,r=this._cbs[t].length;n<r;)this._cbs[t][n]===e&&(this._cbs[t].splice(n,1),n-=1,r-=1),n+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,n=t.split("\r\n"),r={},i=0,o=0;o<n.length;o+=1)2===(e=n[o].split(":")).length&&(r[e[0]]=e[1].trim(),i+=1);if(0===i)throw new Error;return r}return function(e){for(var n=[],r=0;r<e.length;r+=1){var i=e[r],o={time:i.tm,duration:i.dr};try{o.payload=JSON.parse(e[r].cm)}catch(s){try{o.payload=t(e[r].cm)}catch(a){o.payload={name:e[r].cm}}}n.push(o)}return n}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,n=this.compositions.length;e<n;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function _typeof$4(t){return _typeof$4="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var n=getRenderer(e);this.renderer=new n(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var n={wrapper:t,animationData:e},r=t.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:"canvas";var i=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===i?n.loop=!1:"true"===i?n.loop=!0:""!==i&&(n.loop=parseInt(i,10));var o=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;n.autoplay="false"!==o,n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),this.setParams(n)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,n,r=this.animationData.layers,i=r.length,o=t.layers,s=o.length;for(n=0;n<s;n+=1)for(e=0;e<i;){if(r[e].id===o[n].id){r[e]=o[n];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(i=t.assets.length,e=0;e<i;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var n="number"===typeof t?t:void 0,r="number"===typeof e?e:void 0;this.renderer.updateContainerSize(n,r)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,n=0;n<this.markers.length;n+=1)if((e=this.markers[n]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,n){if(!n||this.name===n){var r=Number(t);if(isNaN(r)){var i=this.getMarkerData(t);i&&this.goToAndStop(i.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,n){if(!n||this.name===n){var r=Number(t);if(isNaN(r)){var i=this.getMarkerData(t);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(r,e,n);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,n=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(n=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),n&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?n=t:this.currentRawFrame+this.firstFrame>e&&(n=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var n,r=t.length;for(n=0;n<r;n+=1)this.segments.push(t[n])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),e=this.assetsPath+n}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,n=this.assets.length;e<n;
vendor: 7,063 bytes, line 1
1){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,n){try{this.renderer.getElementByPath(t).updateDocumentData(e,n)}catch(r){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],n=0,r=0,i=0,o=!0,s=!1;function a(t){for(var n=0,i=t.target;n<r;)e[n].animation===i&&(e.splice(n,1),n-=1,r-=1,i.isPaused||l()),n+=1}function c(t,n){if(!t)return null;for(var i=0;i<r;){if(e[i].elem===t&&null!==e[i].elem)return e[i].animation;i+=1}var o=new AnimationItem;return h(o,t),o.setData(t,n),o}function u(){i+=1,p()}function l(){i-=1}function h(t,n){t.addEventListener("destroy",a),t.addEventListener("_active",u),t.addEventListener("_idle",l),e.push({elem:n,animation:t}),r+=1}function d(t){var a,c=t-n;for(a=0;a<r;a+=1)e[a].animation.advanceTime(c);n=t,i&&!s?window.requestAnimationFrame(d):o=!0}function f(t){n=t,window.requestAnimationFrame(d)}function p(){!s&&i&&o&&(window.requestAnimationFrame(f),o=!1)}return t.registerAnimation=c,t.loadAnimation=function(t){var e=new AnimationItem;return h(e,null),e.setParams(t),e},t.setSpeed=function(t,n){var i;for(i=0;i<r;i+=1)e[i].animation.setSpeed(t,n)},t.setDirection=function(t,n){var i;for(i=0;i<r;i+=1)e[i].animation.setDirection(t,n)},t.play=function(t){var n;for(n=0;n<r;n+=1)e[n].animation.play(t)},t.pause=function(t){var n;for(n=0;n<r;n+=1)e[n].animation.pause(t)},t.stop=function(t){var n;for(n=0;n<r;n+=1)e[n].animation.stop(t)},t.togglePause=function(t){var n;for(n=0;n<r;n+=1)e[n].animation.togglePause(t)},t.searchAnimations=function(t,e,n){var r,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=i.length;for(r=0;r<o;r+=1)n&&i[r].setAttribute("data-bm-type",n),c(i[r],t);if(e&&0===o){n||(n="svg");var s=document.getElementsByTagName("body")[0];s.innerText="";var a=createTag("div");a.style.width="100%",a.style.height="100%",a.setAttribute("data-bm-type",n),s.appendChild(a),c(a,t)}},t.resize=function(){var t;for(t=0;t<r;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,n,i){var o;for(o=0;o<r;o+=1)e[o].animation.goToAndStop(t,n,i)},t.destroy=function(t){var n;for(n=r-1;n>=0;n-=1)e[n].animation.destroy(t)},t.freeze=function(){s=!0},t.unfreeze=function(){s=!1,p()},t.setVolume=function(t,n){var i;for(i=0;i<r;i+=1)e[i].animation.setVolume(t,n)},t.mute=function(t){var n;for(n=0;n<r;n+=1)e[n].animation.mute(t)},t.unmute=function(t){var n;for(n=0;n<r;n+=1)e[n].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r.push(e[t].animation);return r},t}(),BezierFactory=function(){var t={getBezierEasing:function(t,n,r,i,o){var s=o||("bez_"+t+"_"+n+"_"+r+"_"+i).replace(/\./g,"p");if(e[s])return e[s];var a=new u([t,n,r,i]);return e[s]=a,a}},e={},n=.1,r="function"===typeof Float32Array;function i(t,e){return 1-3*e+3*t}function o(t,e){return 3*e-6*t}function s(t){return 3*t}function a(t,e,n){return((i(e,n)*t+o(e,n))*t+s(e))*t}function c(t,e,n){return 3*i(e,n)*t*t+2*o(e,n)*t+s(e)}function u(t){this._p=t,this._mSampleValues=r?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return u.prototype={get:function(t){var e=this._p[0],n=this._p[1],r=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),e===n&&r===i?t:0===t?0:1===t?1:a(this._getTForX(t),n,i)},_precompute:function(){var t=this._p[0],e=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,t===e&&n===r||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],r=0;r<11;++r)this._mSampleValues[r]=a(r*n,t,e)},_getTForX:function(t){for(var e=this._p[0],r=this._p[2],i=this._mSampleValues,o=0,s=1;10!==s&&i[s]<=t;++s)o+=n;var u=o+(t-i[--s])/(i[s+1]-i[s])*n,l=c(u,e,r);return l>=.001?function(t,e,n,r){for(var i=0;i<4;++i){var o=c(e,n,r);if(0===o)return e;e-=(a(e,n,r)-t)/o}return e}(t,u,e,r):0===l?u:function(t,e,n,r,i){var o,s,c=0;do{(o=a(s=e+(n-e)/2,r,i)-t)>0?n=s:e=s}while(Math.abs(o)>1e-7&&++c<10);return s}(t,o,o+n,e,r)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,n){var r=0,i=t,o=createSizedArray(i);return{newElement:function(){return r?o[r-=1]:e()},release:function(t){r===i&&(o=pooling.double(o),i*=2),n&&n(t),o[r]=t,r+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var e,n=t.lengths.length;for(e=0;e<n;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0}));function bezFunction(){var t=Math;function e(t,e,n,r,i,o){var s=t*r+e*i+n*o-i*r-o*t-n*e;return s>-.001&&s<.001}var n=function(t,e,n,r){var i,o,s,a,c,u,l=getDefaultCurveSegments(),h=0,d=[],f=[],p=bezierLengthPool.newElement();for(s=n.length,i=0;i<l;i+=1){for(c=i/(l-1),u=0,o=0;o<s;o+=1)a=bmPow(1-c,3)*t[o]+3*bmPow(1-c,2)*c*n[o]+3*(1-c)*bmPow(c,2)*r[o]+bmPow(c,3)*e[o],d[o]=a,null!==f[o
vendor: 4,431 bytes, line 1
1]&&(u+=bmPow(d[o]-f[o],2)),f[o]=d[o];u&&(h+=u=bmSqrt(u)),p.percents[i]=c,p.lengths[i]=h}return p.addedLength=h,p};function r(t){this.segmentLength=0,this.points=new Array(t)}function i(t,e){this.partialLength=t,this.point=e}var o=function(){var t={};return function(n,o,s,a){var c=(n[0]+"_"+n[1]+"_"+o[0]+"_"+o[1]+"_"+s[0]+"_"+s[1]+"_"+a[0]+"_"+a[1]).replace(/\./g,"p");if(!t[c]){var u,l,h,d,f,p,m,g=getDefaultCurveSegments(),y=0,b=null;2===n.length&&(n[0]!==o[0]||n[1]!==o[1])&&e(n[0],n[1],o[0],o[1],n[0]+s[0],n[1]+s[1])&&e(n[0],n[1],o[0],o[1],o[0]+a[0],o[1]+a[1])&&(g=2);var v=new r(g);for(h=s.length,u=0;u<g;u+=1){for(m=createSizedArray(h),f=u/(g-1),p=0,l=0;l<h;l+=1)d=bmPow(1-f,3)*n[l]+3*bmPow(1-f,2)*f*(n[l]+s[l])+3*(1-f)*bmPow(f,2)*(o[l]+a[l])+bmPow(f,3)*o[l],m[l]=d,null!==b&&(p+=bmPow(m[l]-b[l],2));y+=p=bmSqrt(p),v.points[u]=new i(p,m),b=m}v.segmentLength=y,t[c]=v}return t[c]}}();function s(t,e){var n=e.percents,r=e.lengths,i=n.length,o=bmFloor((i-1)*t),s=t*e.addedLength,a=0;if(o===i-1||0===o||s===r[o])return n[o];for(var c=r[o]>s?-1:1,u=!0;u;)if(r[o]<=s&&r[o+1]>s?(a=(s-r[o])/(r[o+1]-r[o]),u=!1):o+=c,o<0||o>=i-1){if(o===i-1)return n[o];u=!1}return n[o]+(n[o+1]-n[o])*a}var a=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,r=segmentsLengthPool.newElement(),i=t.c,o=t.v,s=t.o,a=t.i,c=t._length,u=r.lengths,l=0;for(e=0;e<c-1;e+=1)u[e]=n(o[e],o[e+1],s[e],a[e+1]),l+=u[e].addedLength;return i&&c&&(u[e]=n(o[e],o[0],s[e],a[0]),l+=u[e].addedLength),r.totalLength=l,r},getNewSegment:function(e,n,r,i,o,c,u){o<0?o=0:o>1&&(o=1);var l,h=s(o,u),d=s(c=c>1?1:c,u),f=e.length,p=1-h,m=1-d,g=p*p*p,y=h*p*p*3,b=h*h*p*3,v=h*h*h,w=p*p*m,_=h*p*m+p*h*m+p*p*d,k=h*h*m+p*h*d+h*p*d,S=h*h*d,x=p*m*m,I=h*m*m+p*d*m+p*m*d,A=h*d*m+p*d*d+h*m*d,E=h*d*d,T=m*m*m,P=d*m*m+m*d*m+m*m*d,C=d*d*m+m*d*d+d*m*d,M=d*d*d;for(l=0;l<f;l+=1)a[4*l]=t.round(1e3*(g*e[l]+y*r[l]+b*i[l]+v*n[l]))/1e3,a[4*l+1]=t.round(1e3*(w*e[l]+_*r[l]+k*i[l]+S*n[l]))/1e3,a[4*l+2]=t.round(1e3*(x*e[l]+I*r[l]+A*i[l]+E*n[l]))/1e3,a[4*l+3]=t.round(1e3*(T*e[l]+P*r[l]+C*i[l]+M*n[l]))/1e3;return a},getPointInSegment:function(e,n,r,i,o,a){var c=s(o,a),u=1-c;return[t.round(1e3*(u*u*u*e[0]+(c*u*u+u*c*u+u*u*c)*r[0]+(c*c*u+u*c*c+c*u*c)*i[0]+c*c*c*n[0]))/1e3,t.round(1e3*(u*u*u*e[1]+(c*u*u+u*c*u+u*u*c)*r[1]+(c*c*u+u*c*c+c*u*c)*i[1]+c*c*c*n[1]))/1e3]},buildBezierData:o,pointOnLine2D:e,pointOnLine3D:function(n,r,i,o,s,a,c,u,l){if(0===i&&0===a&&0===l)return e(n,r,o,s,c,u);var h,d=t.sqrt(t.pow(o-n,2)+t.pow(s-r,2)+t.pow(a-i,2)),f=t.sqrt(t.pow(c-n,2)+t.pow(u-r,2)+t.pow(l-i,2)),p=t.sqrt(t.pow(c-o,2)+t.pow(u-s,2)+t.pow(l-a,2));return(h=d>f?d>p?d-f-p:p-f-d:p>f?p-f-d:f-d-p)>-1e-4&&h<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var t=initialDefaultFrame,e=Math.abs;function n(t,e){var n,i=this.offsetTime;"multidimensional"===this.propType&&(n=createTypedArray("float32",this.pv.length));for(var o,s,a,c,u,l,h,d,f,p=e.lastIndex,m=p,g=this.keyframes.length-1,y=!0;y;){if(o=this.keyframes[m],s=this.keyframes[m+1],m===g-1&&t>=s.t-i){o.h&&(o=s),p=0;break}if(s.t-i>t){p=m;break}m<g-1?m+=1:(p=0,y=!1)}a=this.keyframesMetadata[m]||{};var b,v=s.t-i,w=o.t-i;if(o.to){a.bezierData||(a.bezierData=bez.buildBezierData(o.s,s.s||o.e,o.to,o.ti));var _=a.bezierData;if(t>=v||t<w){var k=t>=v?_.points.length-1:0;for(u=_.points[k].point.length,c=0;c<u;c+=1)n[c]=_.points[k].point[c]}else{a.__fnct?f=a.__fnct:(f=BezierFactory.getBezierEasing(o.o.x,o.o.y,o.i.x,o.i.y,o.n).get,a.__fnct=f),l=f((t-w)/(v-w));var S,x=_.segmentLength*l,I=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastAddedLength:0;for(d=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastPoint:0,y=!0,h=_.points.length;y;){if(I+=_.points[d].partialLength,0===x||0===l||d===_.points.length-1){for(u=_.points[d].point.length,c=0;c<u;c+=1)n[c]=_.points[d].point[c];break}if(x>=I&&x<I+_.points[d+1].partialLength){for(S=(x-I)/_.points[d+1].partialLength,u=_.points[d].point.length,c=0;c<u;c+=1)n[c]=_.points[d].point[c]+(_.points[d+1].point[c]-_.points[d].point[c])*S;break}d<h-1?d+=1:y=!1}e._lastPoint=d,e._lastAddedLength=I-_.points[d].partialLength,e._lastKeyframeIndex=m}}else{var A,E,T,P,C;if(g=o.s.length,b=s.s||o.e,this.sh&&1!==o.h)t>=v?(n[0]=b[0],n[1]=b[1],n[2]=b[2]):t<=w?(n[0]=o.s[0],n[1]=o.s[1],n[2]=o.s[2]):function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],s=Math.atan2(2*r*o-2*n*i,1-2*r*r-2*i*i),a=Math.asin(2*n*r+2*i*o),c=Math.atan2(2*n*o-2*r*i,1-2*n*n-2*i*i);t[0]=s/degToRads,t[1]=a/degToRads,t[2]=c/degToRads}
vendor: 18,252 bytes, line 1
1(n,function(t,e,n){var r,i,o,s,a,c=[],u=t[0],l=t[1],h=t[2],d=t[3],f=e[0],p=e[1],m=e[2],g=e[3];return(i=u*f+l*p+h*m+d*g)<0&&(i=-i,f=-f,p=-p,m=-m,g=-g),1-i>1e-6?(r=Math.acos(i),o=Math.sin(r),s=Math.sin((1-n)*r)/o,a=Math.sin(n*r)/o):(s=1-n,a=n),c[0]=s*u+a*f,c[1]=s*l+a*p,c[2]=s*h+a*m,c[3]=s*d+a*g,c}(r(o.s),r(b),(t-w)/(v-w)));else for(m=0;m<g;m+=1)1!==o.h&&(t>=v?l=1:t<w?l=0:(o.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[m]?f=a.__fnct[m]:(A=void 0===o.o.x[m]?o.o.x[0]:o.o.x[m],E=void 0===o.o.y[m]?o.o.y[0]:o.o.y[m],T=void 0===o.i.x[m]?o.i.x[0]:o.i.x[m],P=void 0===o.i.y[m]?o.i.y[0]:o.i.y[m],f=BezierFactory.getBezierEasing(A,E,T,P).get,a.__fnct[m]=f)):a.__fnct?f=a.__fnct:(A=o.o.x,E=o.o.y,T=o.i.x,P=o.i.y,f=BezierFactory.getBezierEasing(A,E,T,P).get,o.keyframeMetadata=f),l=f((t-w)/(v-w)))),b=s.s||o.e,C=1===o.h?o.s[m]:o.s[m]+(b[m]-o.s[m])*l,"multidimensional"===this.propType?n[m]=C:n=C}return e.lastIndex=p,n}function r(t){var e=t[0]*degToRads,n=t[1]*degToRads,r=t[2]*degToRads,i=Math.cos(e/2),o=Math.cos(n/2),s=Math.cos(r/2),a=Math.sin(e/2),c=Math.sin(n/2),u=Math.sin(r/2);return[a*c*s+i*o*u,a*o*s+i*c*u,i*c*s-a*o*u,i*o*s-a*c*u]}function i(){var e=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<n&&e<n))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function o(t){var n;if("unidimensional"===this.propType)n=t*this.mult,e(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)n=t[r]*this.mult,e(this.v[r]-n)>1e-5&&(this.v[r]=n,this._mdf=!0),r+=1}function s(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)n=this.effectsSequence[t](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function a(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function c(t,e,n,r){this.propType="unidimensional",this.mult=n||1,this.data=e,this.v=n?e.k*n:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=s,this.setVValue=o,this.addEffect=a}function u(t,e,n,r){var i;this.propType="multidimensional",this.mult=n||1,this.data=e,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var c=e.k.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),this.vel=createTypedArray("float32",c),i=0;i<c;i+=1)this.v[i]=e.k[i]*this.mult,this.pv[i]=e.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=s,this.setVValue=o,this.addEffect=a}function l(e,r,c,u){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=c||1,this.elem=e,this.container=u,this.comp=e.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=s,this.setVValue=o,this.interpolateValue=n,this.effectsSequence=[i.bind(this)],this.addEffect=a}function h(e,r,c,u){var l;this.propType="multidimensional";var h,d,f,p,m=r.k.length;for(l=0;l<m-1;l+=1)r.k[l].to&&r.k[l].s&&r.k[l+1]&&r.k[l+1].s&&(h=r.k[l].s,d=r.k[l+1].s,f=r.k[l].to,p=r.k[l].ti,(2===h.length&&(h[0]!==d[0]||h[1]!==d[1])&&bez.pointOnLine2D(h[0],h[1],d[0],d[1],h[0]+f[0],h[1]+f[1])&&bez.pointOnLine2D(h[0],h[1],d[0],d[1],d[0]+p[0],d[1]+p[1])||3===h.length&&(h[0]!==d[0]||h[1]!==d[1]||h[2]!==d[2])&&bez.pointOnLine3D(h[0],h[1],h[2],d[0],d[1],d[2],h[0]+f[0],h[1]+f[1],h[2]+f[2])&&bez.pointOnLine3D(h[0],h[1],h[2],d[0],d[1],d[2],d[0]+p[0],d[1]+p[1],d[2]+p[2]))&&(r.k[l].to=null,r.k[l].ti=null),h[0]===d[0]&&h[1]===d[1]&&0===f[0]&&0===f[1]&&0===p[0]&&0===p[1]&&(2===h.length||h[2]===d[2]&&0===f[2]&&0===p[2])&&(r.k[l].to=null,r.k[l].ti=null));this.effectsSequence=[i.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=c||1,this.elem=e,this.container=u,this.comp=e.comp,this.getValue=s,this.setVValue=o,this.interpolateValue=n,this.frameId=-1;var g=r.k[0].s.length;for(this.v=createTypedArray("float32",g),this.pv=createTypedArray("float32",g),l=0;l<g;l+=1)this.v[l]=t,this.pv[l]=t;this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",g)},this.addEffect=a}return{getProp:function(t,e,n,r,i){var o;if(e.k.length)if("number"===typeof e.k[0])o=new u(t,e,r,i);else switch(n){case 0:o=new l(t,e,r,i);break;case 1:o=new h(t,e,r,i)}else o=new c(t,e,r,i);return o.effectsSequence.length&&i.addDynamicProperty(o),o}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var n=0;n<e;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,n,r,i){var o;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}(!o[r]||o[r]&&!i)&&(o[r]=pointPool.newElement()),o[r][0]=t,o[r][1]=e},ShapePath.prototype.setTripleAt=function(t,e,n,r,i,o,s,a){this.setXYAt(t,e,"v",s,a),this.setXYAt(n,r,"o",s,a),this.setXYAt(i,o,"i",s,a)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,n=this.o,r=this.i,i=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),i=1);var o,s=this._length-1,a=this._length;for(o=i;o<a;o+=1)t.setTripleAt(e[s][0],e[s][1],r[s][0],r[s][1],n[s][0],n[s][1],o,!1),s-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){var t=poolFactory(4,(function(){return new ShapePath}),(function(t){var e,n=t._length;for(e=0;e<n;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}));return t.clone=function(e){var n,r=t.newElement(),i=void 0===e._length?e.v.length:e._length;for(r.setLength(i),r.c=e.c,n=0;n<i;n+=1)r.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],n);return r},t}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=function(){var t={newShapeCollection:function(){return e?r[e-=1]:new ShapeCollection},release:function(t){var i,o=t._length;for(i=0;i<o;i+=1)shapePool.release(t.shapes[i]);t._length=0,e===n&&(r=pooling.double(r),n*=2),r[e]=t,e+=1}},e=0,n=4,r=createSizedArray(n);return t}(),ShapePropertyFactory=function(){var t=-999999;function e(t,e,n){var r,i,o,s,a,c,u,l,h,d=n.lastIndex,f=this.keyframes;if(t<f[0].t-this.offsetTime)r=f[0].s[0],o=!0,d=0;else if(t>=f[f.length-1].t-this.offsetTime)r=f[f.length-1].s?f[f.length-1].s[0]:f[f.length-2].e[0],o=!0;else{for(var p,m,g,y=d,b=f.length-1,v=!0;v&&(p=f[y],!((m=f[y+1]).t-this.offsetTime>t));)y<b-1?y+=1:v=!1;if(g=this.keyframesMetadata[y]||{},d=y,!(o=1===p.h)){if(t>=m.t-this.offsetTime)l=1;else if(t<p.t-this.offsetTime)l=0;else{var w;g.__fnct?w=g.__fnct:(w=BezierFactory.getBezierEasing(p.o.x,p.o.y,p.i.x,p.i.y).get,g.__fnct=w),l=w((t-(p.t-this.offsetTime))/(m.t-this.offsetTime-(p.t-this.offsetTime)))}i=m.s?m.s[0]:p.e[0]}r=p.s[0]}for(c=e._length,u=r.i[0].length,n.lastIndex=d,s=0;s<c;s+=1)for(a=0;a<u;a+=1)h=o?r.i[s][a]:r.i[s][a]+(i.i[s][a]-r.i[s][a])*l,e.i[s][a]=h,h=o?r.o[s][a]:r.o[s][a]+(i.o[s][a]-r.o[s][a])*l,e.o[s][a]=h,h=o?r.v[s][a]:r.v[s][a]+(i.v[s][a]-r.v[s][a])*l,e.v[s][a]=h}function n(){var e=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==t&&(i<n&&e<n||i>r&&e>r)||(this._caching.lastIndex=i<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function r(){this.paths=this.localShapeCollection}function i(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var n,r=t._length;for(n=0;n<r;n+=1)if(t.v[n][0]!==e.v[n][0]||t.v[n][1]!==e.v[n][1]||t.o[n][0]!==e.o[n][0]||t.o[n][1]!==e.o[n][1]||t.i[n][0]!==e.i[n][0]||t.i[n][1]!==e.i[n][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(e=0;e<n;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(t,e,n){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===n?e.pt.k:e.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function a(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function c(e,i,o){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===o?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var s=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,s),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=r,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[n.bind(this)]}s.prototype.interpolateShape=e,s.prototype.getValue=o,s.prototype.setVValue=i,s.prototype.addEffect=a,c.prototype.getValue=o,c.prototype.interpolateShape=e,c.prototype.setVValue=i,c.prototype.addEffect=a;var u=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],n=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,o=3!==this.d,s=this.v;s.v[0][0]=e,s.v[0][1]=n-i,s.v[1][0]=o?e+r:e-r,s.v[1][1]=n,s.v[2][0]=e,s.v[2][1]=n+i,s.v[3][0]=o?e-r:e+r,s.v[3][1]=n,s.i[0][0]=o?e-r*t:e+r*t,s.i[0][1]=n-i,s.i[1][0]=o?e+r:e-r,s.i[1][1]=n-i*t,s.i[2][0]=o?e+r*t:e-r*t,s.i[2][1]=n+i,s.i[3][0]=o?e-r:e+r,s.i[3][1]=n+i*t,s.o[0][0]=o?e+r*t:e-r*t,s.o[0][1]=n-i,s.o[1][0]=o?e+r:e-r,s.o[1][1]=n+i*t,s.o[2][0]=o?e-r*t:e+r*t,s.o[2][1]=n+i,s.o[3][0]=o?e-r:e+r,s.o[3][1]=n-i*t}},extendPrototype([DynamicPropertyContainer],e),e}(),l=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,n,r,i=2*Math.floor(this.pt.v),o=2*Math.PI/i,s=!0,a=this.or.v,c=this.ir.v,u=this.os.v,l=this.is.v,h=2*Math.PI*a/(2*i),d=2*Math.PI*c/(2*i),f=-Math.PI/2;f+=this.r.v;var p=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<i;t+=1){n=s?u:l,r=s?h:d;var m=(e=s?a:c)*Math.cos(f),g=e*Math.sin(f),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),b=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-y*r*n*p,g-b*r*n*p,m+y*r*n*p,g+b*r*n*p,t,!0),s=!s,f+=o*p}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),n=2*Math.PI/e,r=this.or.v,i=this.os.v,o=2*Math.PI*r/(4*e),s=.5*-Math.PI,a=3===this.data.d?-1:1;for(s+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var c=r*Math.cos(s),u=r*Math.sin(s),l=0===c&&0===u?0:u/Math.sqrt(c*c+u*u),h=0===c&&0===u?0:-c/Math.sqrt(c*c+u*u);c+=+this.p.v[0],u+=+this.p.v[1],this.v.setTripleAt(c,u,c-l*o*i*a,u-h*o*i*a,c+l*o*i*a,u+h*o*i*a,t,!0),s+=n*a}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),h=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,i=bmMin(n,r,this.r.v),o=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+n,e-r+i,t+n,e-r+i,t+n,e-r+o,0,!0),this.v.setTripleAt(t+n,e+r-i,t+n,e+r-o,t+n,e+r-i,1,!0),0!==i?(this.v.setTripleAt(t+n-i,e+r,t+n-i,e+r,t+n-o,e+r,2,!0),this.v.setTripleAt(t-n+i,e+r,t-n+o,e+r,t-n+i,e+r,3,!0),this.v.setTripleAt(t-n,e+r-i,t-n,e+r-i,t-n,e+r-o,4,!0),this.v.setTripleAt(t-n,e-r+i,t-n,e-r+o,t-n,e-r+i,5,!0),this.v.setTripleAt(t-n+i,e-r,t-n+i,e-r,t-n+o,e-r,6,!0),this.v.setTripleAt(t+n-i,e-r,t+n-o,e-r,t+n-i,e-r,7,!0)):(this.v.setTripleAt(t-n,e+r,t-n+o,e+r,t-n,e+r,2),this.v.setTripleAt(t-n,e-r,t-n,e-r+o,t-n,e-r,3))):(this.v.setTripleAt(t+n,e-r+i,t+n,e-r+o,t+n,e-r+i,0,!0),0!==i?(this.v.setTripleAt(t+n-i,e-r,t+n-i,e-r,t+n-o,e-r,1,!0),this.v.setTripleAt(t-n+i,e-r,t-n+o,e-r,t-n+i,e-r,2,!0),this.v.setTripleAt(t-n,e-r+i,t-n,e-r+i,t-n,e-r+o,3,!0),this.v.setTripleAt(t-n,e+r-i,t-n,e+r-o,t-n,e+r-i,4,!0),this.v.setTripleAt(t-n+i,e+r,t-n+i,e+r,t-n+o,e+r,5,!0),this.v.setTripleAt(t+n-i,e+r,t+n-o,e+r,t+n-i,e+r,6,!0),this.v.setTripleAt(t+n,e+r-i,t+n,e+r-i,t+n,e+r-o,7,!0)):(this.v.setTripleAt(t-n,e-r,t-n+o,e-r,t-n,e-r,1,!0),this.v.setTripleAt(t-n,e+r,t-n,e+r-o,t-n,e+r,2,!0),this.v.setTripleAt(t+n,e+r,t+n-o,e+r,t+n,e+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],t),t}(),d={getShapeProp:function(t,e,n){var r;return 3===n||4===n?r=(3===n?e.pt:e.ks).k.length?new c(t,e,n):new s(t,e,n):5===n?r=new h(t,e):6===n?r=new u(t,e):7===n&&(r=new l(t,e)),r.k&&t.addDynamicProperty(r),r},getConstructorFunction:function(){return s},getKeyframedConstructorFunction:function(){return c}};return d}(),Matrix=function(){var t=Math.cos,e=Math.sin,n=Math.tan,r=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(n){if(0===n)return this;var r=t(n),i=e(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}
vendor: 9,610 bytes, line 1
1function s(n){if(0===n)return this;var r=t(n),i=e(n);return this._t(1,0,0,0,0,r,-i,0,0,i,r,0,0,0,0,1)}function a(n){if(0===n)return this;var r=t(n),i=e(n);return this._t(r,0,i,0,0,1,0,0,-i,0,r,0,0,0,0,1)}function c(n){if(0===n)return this;var r=t(n),i=e(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function u(t,e){return this._t(1,e,t,1,0,0)}function l(t,e){return this.shear(n(t),n(e))}function h(r,i){var o=t(i),s=e(i);return this._t(o,s,0,0,-s,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(o,-s,0,0,s,o,0,0,0,0,1,0,0,0,0,1)}function d(t,e,n){return n||0===n||(n=1),1===t&&1===e&&1===n?this:this._t(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1)}function f(t,e,n,r,i,o,s,a,c,u,l,h,d,f,p,m){return this.props[0]=t,this.props[1]=e,this.props[2]=n,this.props[3]=r,this.props[4]=i,this.props[5]=o,this.props[6]=s,this.props[7]=a,this.props[8]=c,this.props[9]=u,this.props[10]=l,this.props[11]=h,this.props[12]=d,this.props[13]=f,this.props[14]=p,this.props[15]=m,this}function p(t,e,n){return n=n||0,0!==t||0!==e||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,n,1):this}function m(t,e,n,r,i,o,s,a,c,u,l,h,d,f,p,m){var g=this.props;if(1===t&&0===e&&0===n&&0===r&&0===i&&1===o&&0===s&&0===a&&0===c&&0===u&&1===l&&0===h)return g[12]=g[12]*t+g[15]*d,g[13]=g[13]*o+g[15]*f,g[14]=g[14]*l+g[15]*p,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],b=g[1],v=g[2],w=g[3],_=g[4],k=g[5],S=g[6],x=g[7],I=g[8],A=g[9],E=g[10],T=g[11],P=g[12],C=g[13],M=g[14],O=g[15];return g[0]=y*t+b*i+v*c+w*d,g[1]=y*e+b*o+v*u+w*f,g[2]=y*n+b*s+v*l+w*p,g[3]=y*r+b*a+v*h+w*m,g[4]=_*t+k*i+S*c+x*d,g[5]=_*e+k*o+S*u+x*f,g[6]=_*n+k*s+S*l+x*p,g[7]=_*r+k*a+S*h+x*m,g[8]=I*t+A*i+E*c+T*d,g[9]=I*e+A*o+E*u+T*f,g[10]=I*n+A*s+E*l+T*p,g[11]=I*r+A*a+E*h+T*m,g[12]=P*t+C*i+M*c+O*d,g[13]=P*e+C*o+M*u+O*f,g[14]=P*n+C*s+M*l+O*p,g[15]=P*r+C*a+M*h+O*m,this._identityCalculated=!1,this}function g(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function y(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function b(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function v(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function w(t,e,n){return{x:t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}}function _(t,e,n){return t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12]}function k(t,e,n){return t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13]}function S(t,e,n){return t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}function x(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,n=-this.props[1]/t,r=-this.props[4]/t,i=this.props[0]/t,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,s=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,a=new Matrix;return a.props[0]=e,a.props[1]=n,a.props[4]=r,a.props[5]=i,a.props[12]=o,a.props[13]=s,a}function I(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function A(t){var e,n=t.length,r=[];for(e=0;e<n;e+=1)r[e]=I(t[e]);return r}function E(t,e,n){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=t[0],r[1]=t[1],r[2]=e[0],r[3]=e[1],r[4]=n[0],r[5]=n[1];else{var i=this.props[0],o=this.props[1],s=this.props[4],a=this.props[5],c=this.props[12],u=this.props[13];r[0]=t[0]*i+t[1]*s+c,r[1]=t[0]*o+t[1]*a+u,r[2]=e[0]*i+e[1]*s+c,r[3]=e[0]*o+e[1]*a+u,r[4]=n[0]*i+n[1]*s+c,r[5]=n[0]*o+n[1]*a+u}return r}function T(t,e,n){return this.isIdentity()?[t,e,n]:[t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]]}function P(t,e){if(this.isIdentity())return t+","+e;var n=this.props;return Math.round(100*(t*n[0]+e*n[4]+n[12]))/100+","+Math.round(100*(t*n[1]+e*n[5]+n[13]))/100}function C(){for(var t=0,e=this.props,n="matrix3d(";t<16;)n+=r(1e4*e[t])/1e4,n+=15===t?")":",",t+=1;return n}function M(t){return t<1e-6&&t>0||t>-1e-6&&t<0?r(1e4*t)/1e4:t}function O(){var t=this.props;return"matrix("+M(t[0])+","+M(t[1])+","+M(t[4])+","+M(t[5])+","+M(t[12])+","+M(t[13])+")"}return function(){this.reset=i,this.rotate=o,this.rotateX=s,this.rotateY=a,this.rotateZ=c,this.skew=l,this.skewFromAxis=h,this.shear=u,this.scale=d,this.setTransform=f,this.translate=p,this.transform=m,this.applyToPoint=w,this.applyToX=_,this.applyToY=k,this.applyToZ=S,this.applyToPointArray=T,this.applyToTriplePoints=E,this.applyToPointStringified=P,this.toCSS=C,this.to2dCSS=O,this.clone=b,this.cloneFromProps=v,this.equals=y,this.inversePoints=A,this.inversePoint=I,this.getInverseMatrix=x,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return _typeof$3="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"===typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!==typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),n=0;n<e.length;n+=1){var r=e[n].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.10.0";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(err){}var ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(t,n){e[t]||(e[t]=n)},t.getModifier=function(t,n,r){return new e[t](n,r)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=Pro
vendor: 3,396 bytes, line 1
1pertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,n,r,i){var o=[];e<=1?o.push({s:t,e:e}):t>=1?o.push({s:t-1,e:e-1}):(o.push({s:t,e:1}),o.push({s:0,e:e-1}));var s,a,c=[],u=o.length;for(s=0;s<u;s+=1){var l,h;(a=o[s]).e*i<r||a.s*i>r+n||(l=a.s*i<=r?0:(a.s*i-r)/n,h=a.e*i>=r+n?1:(a.e*i-r)/n,c.push([l,h]))}return c.length||c.push([0,0]),c},TrimModifier.prototype.releasePathsData=function(t){var e,n=t.length;for(e=0;e<n;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,n,r,i;if(this._mdf||t){var o=this.o.v%360/360;if(o<0&&(o+=1),(e=this.s.v>1?1+o:this.s.v<0?0+o:this.s.v+o)>(n=this.e.v>1?1+o:this.e.v<0?0+o:this.e.v+o)){var s=e;e=n,n=s}e=1e-4*Math.round(1e4*e),n=1e-4*Math.round(1e4*n),this.sValue=e,this.eValue=n}else e=this.sValue,n=this.eValue;var a,c,u,l,h,d=this.shapes.length,f=0;if(n===e)for(i=0;i<d;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===n&&0===e||0===n&&1===e){if(this._mdf)for(i=0;i<d;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var p,m,g=[];for(i=0;i<d;i+=1)if((p=this.shapes[i]).shape._mdf||this._mdf||t||2===this.m){if(c=(r=p.shape.paths)._length,h=0,!p.shape._mdf&&p.pathsData.length)h=p.totalShapeLength;else{for(u=this.releasePathsData(p.pathsData),a=0;a<c;a+=1)l=bez.getSegmentsLength(r.shapes[a]),u.push(l),h+=l.totalLength;p.totalShapeLength=h,p.pathsData=u}f+=h,p.shape._mdf=!0}else p.shape.paths=p.localShapeCollection;var y,b=e,v=n,w=0;for(i=d-1;i>=0;i-=1)if((p=this.shapes[i]).shape._mdf){for((m=p.localShapeCollection).releaseShapes(),2===this.m&&d>1?(y=this.calculateShapeEdges(e,n,p.totalShapeLength,w,f),w+=p.totalShapeLength):y=[[b,v]],c=y.length,a=0;a<c;a+=1){b=y[a][0],v=y[a][1],g.length=0,v<=1?g.push({s:p.totalShapeLength*b,e:p.totalShapeLength*v}):b>=1?g.push({s:p.totalShapeLength*(b-1),e:p.totalShapeLength*(v-1)}):(g.push({s:p.totalShapeLength*b,e:p.totalShapeLength}),g.push({s:0,e:p.totalShapeLength*(v-1)}));var _=this.addShapes(p,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(p.shape.paths.shapes[p.shape.paths._length-1].c){var k=_.pop();this.addPaths(_,m),_=this.addShapes(p,g[1],k)}else this.addPaths(_,m),_=this.addShapes(p,g[1]);this.addPaths(_,m)}}p.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var n,r=t.length;for(n=0;n<r;n+=1)e.addShape(t[n])},TrimModifier.prototype.addSegment=function(t,e,n,r,i,o,s){i.setXYAt(e[0],e[1],"o",o),i.setXYAt(n[0],n[1],"i",o+1),s&&i.setXYAt(t[0],t[1],"v",o),i.setXYAt(r[0],r[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,n,r){e.setXYAt(t[1],t[5],"o",n),e.setXYAt(t[2],t[6],"i",n+1),r&&e.setXYAt(t[0],t[4],"v",n),e.setXYAt(t[3],t[7],"v",n+1)},TrimModifier.prototype.addShapes=function(t,e,n){var r,i,o,s,a,c,u,l,h=t.pathsData,d=t.shape.paths.shapes,f=t.shape.paths._length,p=0,m=[],g=!0;for(n?(a=n._length,l=n._length):(n=shapePool.newElement(),a=0,l=0),m.push(n),r=0;r<f;
vendor: 28,039 bytes, line 1
1r+=1){for(c=h[r].lengths,n.c=d[r].c,o=d[r].c?c.length:c.length+1,i=1;i<o;i+=1)if(p+(s=c[i-1]).addedLength<e.s)p+=s.addedLength,n.c=!1;else{if(p>e.e){n.c=!1;break}e.s<=p&&e.e>=p+s.addedLength?(this.addSegment(d[r].v[i-1],d[r].o[i-1],d[r].i[i],d[r].v[i],n,a,g),g=!1):(u=bez.getNewSegment(d[r].v[i-1],d[r].v[i],d[r].o[i-1],d[r].i[i],(e.s-p)/s.addedLength,(e.e-p)/s.addedLength,c[i-1]),this.addSegmentFromArray(u,n,a,g),g=!1,n.c=!1),p+=s.addedLength,a+=1}if(d[r].c&&c.length){if(s=c[i-1],p<=e.e){var y=c[i-1].addedLength;e.s<=p&&e.e>=p+y?(this.addSegment(d[r].v[i-1],d[r].o[i-1],d[r].i[0],d[r].v[0],n,a,g),g=!1):(u=bez.getNewSegment(d[r].v[i-1],d[r].v[0],d[r].o[i-1],d[r].i[0],(e.s-p)/y,(e.e-p)/y,c[i-1]),this.addSegmentFromArray(u,n,a,g),g=!1,n.c=!1)}else n.c=!1;p+=s.addedLength,a+=1}if(n._length&&(n.setXYAt(n.v[l][0],n.v[l][1],"i",l),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),p>e.e)break;r<f-1&&(n=shapePool.newElement(),g=!0,m.push(n),a=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var n=e/100,r=[0,0],i=t._length,o=0;for(o=0;o<i;o+=1)r[0]+=t.v[o][0],r[1]+=t.v[o][1];r[0]/=i,r[1]/=i;var s,a,c,u,l,h,d=shapePool.newElement();for(d.c=t.c,o=0;o<i;o+=1)s=t.v[o][0]+(r[0]-t.v[o][0])*n,a=t.v[o][1]+(r[1]-t.v[o][1])*n,c=t.o[o][0]+(r[0]-t.o[o][0])*-n,u=t.o[o][1]+(r[1]-t.o[o][1])*-n,l=t.i[o][0]+(r[0]-t.i[o][0])*-n,h=t.i[o][1]+(r[1]-t.i[o][1])*-n,d.setTripleAt(s,a,c,u,l,h,o);return d},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,n,r,i,o,s,a=this.shapes.length,c=this.amount.v;if(0!==c)for(n=0;n<a;n+=1){if(s=(o=this.shapes[n]).localShapeCollection,o.shape._mdf||this._mdf||t)for(s.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)s.addShape(this.processPath(e[r],c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t,e,n){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var r,i=e.or.k.length;for(r=0;r<i;r+=1)e.or.k[r].to=null,e.or.k[r].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var r,i;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],i=[];var o=this.px,s=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(r[0]=o.getValueAtTime((o.keyframes[0].t+.01)/n,0),r[1]=s.getValueAtTime((s.keyframes[0].t+.01)/n,0),i[0]=o.getValueAtTime(o.keyframes[0].t/n,0),i[1]=s.getValueAtTime(s.keyframes[0].t/n,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(r[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/n,0),r[1]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/n,0),i[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/n,0),i[1]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/n,0)):(r=[o.pv,s.pv],i[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/n,o.offsetTime),i[1]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/n,s.offsetTime))}else r=i=t;this.v.rotate(-Math.atan2(r[1]-i[1],r[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,n,r){return new e(t,n,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,n){return t*(1-n)+e*n}function lerpPoint(t,e,n){return[lerp(t[0],e[0],n),lerp(t[1],e[1],n)]}function quadRoots(t,e,n){if(0===t)return[];var r=e*e-4*t*n;if(r<0)return[];var i=-e/(2*t);if(0===r)return[i];var o=Math.sqrt(r)/(2*t);return[i-o,i+o]}function polynomialCoefficients(t,e,n,r){return[3*e-t-3*n+r,3*t-6*e+3*n,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,n,r,i){i&&pointEqual(t,e)&&(e=lerpPoint(t,r,1/3)),i&&pointEqual(n,r)&&(n=lerpPoint(t,r,2/3));var o=polynomialCoefficients(t[0],e[0],n[0],r[0]),s=polynomialCoefficients(t[1],e[1],n[1],r[1]);this.a=[o[0],s[0]],this.b=[o[1],s[1]],this.c=[o[2],s[2]],this.d=[o[3],s[3]],this.points=[t,e,n,r]}function extrema(t,e){var n=t.points[0][e],r=t.points[t.points.length-1][e];if(n>r){var i=r;r=n,n=i}for(var o=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),s=0;s<o.length;s+=1)if(o[s]>0&&o[s]<1){var a=t.point(o[s])[e];a<n?n=a:a>r&&(r=a)}return{min:n,max:r}}function intersectData(t,e,n){var r=t.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:t,t:(e+n)/2,t1:e,t2:n}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,n,r,i,o){if(boxIntersect(t,e))if(n>=o||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r)i.push([t.t,e.t]);else{var s=splitData(t),a=splitData(e);intersectsImpl(s[0],a[0],n+1,r,i,o),intersectsImpl(s[0],a[1],n+1,r,i,o),intersectsImpl(s[1],a[0],n+1,r,i,o),intersectsImpl(s[1],a[1],n+1,r,i,o)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,n,r){var i=[t[0],t[1],1],o=[e[0],e[1],1],s=[n[0],n[1],1],a=[r[0],r[1],1],c=crossProduct(crossProduct(i,o),crossProduct(s,a));return floatZero(c[2])?null:[c[0]/c[2],c[1]/c[2]]}function polarOffset(t,e,n){return[t[0]+Math.cos(e)*n,t[1]-Math.sin(e)*n]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,n,r,i,o,s){var a=n-Math.PI/2,c=n+Math.PI/2,u=e[0]+Math.cos(n)*r*i,l=e[1]-Math.sin(n)*r*i;t.setTripleAt(u,l,u+Math.cos(a)*o,l-Math.sin(a)*o,u+Math.cos(c)*s,l-Math.sin(c)*s,t.length())}function getPerpendicularVector(t,e){var n=[e[0]-t[0],e[1]-t[1]],r=.5*-Math.PI;return[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]}function getProjectingAngle(t,e){var n=0===e?t.length()-1:e-1,r=(e+1)%t.length(),i=getPerpendicularVector(t.v[n],t.v[r]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(t,e,n,r,i,o,s){var a=getProjectingAngle(e,n),c=e.v[n%e._length],u=e.v[0===n?e._length-1:n-1],l=e.v[(n+1)%e._length],h=2===o?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0,d=2===o?Math.sqrt(Math.pow(c[0]-l[0],2)+Math.pow(c[1]-l[1],2)):0;setPoint(t,e.v[n%e._length],a,s,r,d/(2*(i+1)),h/(2*(i+1)),o)}function zigZagSegment(t,e,n,r,i,o){for(var s=0;s<r;s+=1){var a=(s+1)/(r+1),c=2===i?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,u=e.normalAngle(a);setPoint(t,e.point(a),u,o,n,c/(2*(r+1)),c/(2*(r+1)),i),o=-o}return o}function linearOffset(t,e,n){var r=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,r,n),polarOffset(e,r,n)]}function offsetSegment(t,e){var n,r,i,o,s,a,c;n=(c=linearOffset(t.points[0],t.points[1],e))[0],r=c[1],i=(c=linearOffset(t.points[1],t.points[2],e))[0],o=c[1],s=(c=linearOffset(t.points[2],t.points[3],e))[0],a=c[1];var u=lineIntersection(n,r,i,o);null===u&&(u=r);var l=lineIntersection(s,a,i,o);return null===l&&(l=s),new PolynomialBezier(n,u,l,a)}function joinLines(t,e,n,r,i){var o=e.points[3],s=n.points[0];if(3===r)return o;if(pointEqual(o,s))return o;if(2===r){var a=-e.tangentAngle(1),c=-n.tangentAngle(0)+Math.PI,u=lineIntersection(o,polarOffset(o,a+Math.PI/2,100),s,polarOffset(s,a+Math.PI/2,100)),l=u?pointDistance(u,o):pointDistance(o,s)/2,h=polarOffset(o,a,2*l*roundCorner);return t.setXYAt(h[0],h[1],"o",t.length()-1),h=polarOffset(s,c,2*l*roundCorner),t.setTripleAt(s[0],s[1],s[0],s[1],h[0],h[1],t.length()),s}var d=lineIntersection(pointEqual(o,e.points[2])?e.points[0]:e.points[2],o,s,pointEqual(s,n.points[1])?n.points[3]:n.points[1]);return d&&pointDistance(d,o)<i?(t.setTripleAt(d[0],d[1],d[0],d[1],d[0],d[1],t.length()),d):o}function getIntersection(t,e){var n=t.intersections(e);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(t,e){var n=t.slice(),r=e.slice(),i=getIntersection(t[t.length-1],e[0]);return i&&(n[t.length-1]=t[t.length-1].split(i[0])[0],r[0]=e[0].split(i[1])[1]),t.length>1&&e.length>1&&(i=getIntersection(t[0],e[e.length-1]))?[[t[0].split(i[0])[0]],[e[e.length-1].split(i[1])[1]]]:[n,r]}function pruneIntersections(t){for(var e,n=1;n<t.length;n+=1)e=pruneSegmentIntersection(t[n-1],t[n]),t[n-1]=e[0],t[n]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var n,r,i,o,s=t.inflectionPoints();if(0===s.length)return[offsetSegment(t,e)];if(1===s.length||floatEqual(s[1],1))return n=(i=t.split(s[0]))[0],r=i[1],[offsetSegment(n,e),offsetSegment(r,e)];n=(i=t.split(s[0]))[0];var a=(s[1]-s[0])/(1-s[0]);return o=(i=i[1].split(a))[0],r=i[1],[offsetSegment(n,e),offsetSegment(o,e),offsetSegment(r,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],n="normal",r="normal",i=e.length,o=0;o<i;o+=1)switch(e[o].toLowerCase()){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:r,weight:t.fWeight||n}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,n,r,i,o){var s=o?-1:1,a=r.s.v[0]+(1-r.s.v[0])*(1-i),c=r.s.v[1]+(1-r.s.v[1])*(1-i);t.translate(r.p.v[0]*s*i,r.p.v[1]*s*i,r.p.v[2]),e.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),e.rotate(-r.r.v*s*i),e.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(o?1/a:a,o?1/c:c),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(t,e,n,r){for(this.elem=t,this.arr=e,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[n]);n>0;)n-=1,this._elements.unshift(e[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var n,r=t.length;for(n=0;n<r;n+=1)t[n]._render=e,"gr"===t[n].ty&&this.changeGroupRender(t[n].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,n,r,i,o,s=!1;if(this._mdf||t){var a,c=Math.ceil(this.c.v);if(this._groups.length<c){for(;this._groups.length<c;){var u={it:this.cloneElements(this._elements),ty:"gr"};u.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,u),this._groups.splice(0,0,u),this._currentCopies+=1}this.elem.reloadShapes(),s=!0}for(o=0,r=0;r<=this._groups.length-1;r+=1){if(a=o<c,this._groups[r]._render=a,this.changeGroupRender(this._groups[r].it,a),!a){var l=this.elemsData[r].it,h=l[l.length-1];0!==h.transform.op.v?(h.transform.op._mdf=!0,h.transform.op.v=0):h.transform.op._mdf=!1}o+=1}this._currentCopies=c;var d=this.o.v,f=d%1,p=d>0?Math.floor(d):Math.ceil(d),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var b,v,w=0;if(d>0){for(;w<p;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,f,!1),w+=f)}else if(d<0){for(;w>p;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),w-=f)}for(r=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,o=this._currentCopies;o;){if(v=(n=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==w){for((0!==r&&1===i||r!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),b=0;b<v;b+=1)n[b]=this.matrix.props[b];this.matrix.reset()}else for(this.matrix.reset(),b=0;b<v;b+=1)n[b]=this.matrix.props[b];w+=1,o-=1,r+=i}}else for(o=this._currentCopies,r=0,i=1;o;)n=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,o-=1,r+=i;return s},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var n,r=shapePool.newElement();r.c=t.c;var i,o,s,a,c,u,l,h,d,f,p,m,g=t._length,y=0;for(n=0;n<g;n+=1)i=t.v[n],s=t.o[n],o=t.i[n],i[0]===s[0]&&i[1]===s[1]&&i[0]===o[0]&&i[1]===o[1]?0!==n&&n!==g-1||t.c?(a=0===n?t.v[g-1]:t.v[n-1],u=(c=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)))?Math.min(c/2,e)/c:0,l=p=i[0]+(a[0]-i[0])*u,h=m=i[1]-(i[1]-a[1])*u,d=l-(l-i[0])*roundCorner,f=h-(h-i[1])*roundCorner,r.setTripleAt(l,h,d,f,p,m,y),y+=1,a=n===g-1?t.v[0]:t.v[n+1],u=(c=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)))?Math.min(c/2,e)/c:0,l=d=i[0]+(a[0]-i[0])*u,h=f=i[1]+(a[1]-i[1])*u,p=l-(l-i[0])*roundCorner,m=h-(h-i[1])*roundCorner,r.setTripleAt(l,h,d,f,p,m,y),y+=1):(r.setTripleAt(i[0],i[1],s[0],s[1],o[0],o[1],y),y+=1):(r.setTripleAt(t.v[n][0],t.v[n][1],t.o[n][0],t.o[n][1],t.i[n][0],t.i[n][1],y),y+=1);return r},RoundCornersModifier.prototype.processShapes=function(t){var e,n,r,i,o,s,a=this.shapes.length,c=this.rd.v;if(0!==c)for(n=0;n<a;n+=1){if(s=(o=this.shapes[n]).localShapeCollection,o.shape._mdf||this._mdf||t)for(s.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)s.addShape(this.processPath(e[r],c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,n=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(n<0)return[];var r=Math.sqrt(n);return floatZero(r)?r>0&&r<1?[e]:[]:[e-r,e+r].filter((function(t){return t>0&&t<1}))},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),n=lerpPoint(this.points[1],this.points[2],t),r=lerpPoint(this.points[2],this.points[3],t),i=lerpPoint(e,n,t),o=lerpPoint(n,r,t),s=lerpPoint(i,o,t);return[new PolynomialBezier(this.points[0],e,i,s,!0),new PolynomialBezier(s,o,r,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,n){void 0===e&&(e=2),void 0===n&&(n=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,r,n),r},PolynomialBezier.shapeSegment=function(t,e){var n=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[n],t.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var n=(e+1)%t.length();return new PolynomialBezier(t.v[n],t.i[n],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,n,r){var i=t._length,o=shapePool.newElement();if(o.c=t.c,t.c||(i-=1),0===i)return o;var s=-1,a=PolynomialBezier.shapeSegment(t,0);zigZagCorner(o,t,0,e,n,r,s);for(var c=0;c<i;c+=1)s=zigZagSegment(o,a,e,n,r,-s),a=c!==i-1||t.c?PolynomialBezier.shapeSegment(t,(c+1)%i):null,zigZagCorner(o,t,c+1,e,n,r,s);return o},ZigZagModifier.prototype.processShapes=function(t){var e,n,r,i,o,s,a=this.shapes.length,c=this.amplitude.v,u=Math.max(0,Math.round(this.frequency.v)),l=this.pointsType.v;if(0!==c)for(n=0;n<a;n+=1){if(s=(o=this.shapes[n]).localShapeCollection,o.shape._mdf||this._mdf||t)for(s.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)s.addShape(this.processPath(e[r],c,u,l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,n,r){var i=shapePool.newElement();i.c=t.c;var o,s,a,c=t.length();t.c||(c-=1);var u=[];for(o=0;o<c;o+=1)a=PolynomialBezier.shapeSegment(t,o),u.push(offsetSegmentSplit(a,e));if(!t.c)for(o=c-1;o>=0;o-=1)a=PolynomialBezier.shapeSegmentInverted(t,o),u.push(offsetSegmentSplit(a,e));u=pruneIntersections(u);var l=null,h=null;for(o=0;o<u.length;o+=1){var d=u[o];for(h&&(l=joinLines(i,h,d[0],n,r)),h=d[d.length-1],s=0;s<d.length;s+=1)a=d[s],l&&pointEqual(a.points[0],l)?i.setXYAt(a.points[1][0],a.points[1][1],"o",i.length()-1):i.setTripleAt(a.points[0][0],a.points[0][1],a.points[1][0],a.points[1][1],a.points[0][0],a.points[0][1],i.length()),i.setTripleAt(a.points[3][0],a.points[3][1],a.points[3][0],a.points[3][1],a.points[2][0],a.points[2][1],i.length()),l=a.points[3]}return u.length&&joinLines(i,h,u[0][0],n,r),i},OffsetPathModifier.prototype.processShapes=function(t){var e,n,r,i,o,s,a=this.shapes.length,c=this.amount.v,u=this.miterLimit.v,l=this.lineJoin;if(0!==c)for(n=0;n<a;n+=1){if(s=(o=this.shapes[n]).localShapeCollection,o.shape._mdf||this._mdf||t)for(s.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)s.addShape(this.processPath(e[r],c,l,u));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],r=[65039,8205];function i(t,e){var n=createTag("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=e;var r=createTag("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var i=r.offsetWidth;return r.style.fontFamily=function(t){var e,n=t.split(","),r=n.length,i=[];for(e=0;e<r;e+=1)"sans-serif"!==n[e]&&"monospace"!==n[e]&&i.push(n[e]);return i.join(",")}(t)+", "+e,{node:r,w:i,parent:n}}function o(t,e){var n,r=document.body&&e?"svg":"canvas",i=getFontProperties(t);if("svg"===r){var o=createNS("text");o.style.fontSize="100px",o.setAttribute("font-family",t.fFamily),o.setAttribute("font-style",i.style),o.setAttribute("font-weight",i.weight),o.textContent="1",t.fClass?(o.style.fontFamily="inherit",o.setAttribute("class",t.fClass)):o.style.fontFamily=t.fFamily,e.appendChild(o),n=o}else{var s=new OffscreenCanvas(500,500).getContext("2d");s.font=i.style+" "+i.weight+" 100px "+t.fFamily,n=s}return{measureText:function(t){return"svg"===r?(n.textContent=t,n.getComputedTextLength()):n.measureText(t).width}}}var s=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};s.isModifier=function(t,e){var r=t.toString(16)+e.toString(16);return-1!==n.indexOf(r)},s.isZeroWidthJoiner=function(t,e){return e?t===r[0]&&e===r[1]:t===r[1]},s.isCombinedCharacter=function(t){return-1!==e.indexOf(t)};var a={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var n,r,i=t.length,o=this.chars.length;for(e=0;e<i;e+=1){for(n=0,r=!1;n<o;)this.chars[n].style===t[e].style&&this.chars[n].fFamily===t[e].fFamily&&this.chars[n].ch===t[e].ch&&(r=!0),n+=1;r||(this.chars.push(t[e]),o+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(t){t.helper=o(t),t.cache={}})),void(this.fonts=t.list);var n,r=t.list,s=r.length,a=s;for(n=0;n<s;n+=1){var c,u,l=!0;if(r[n].loaded=!1,r[n].monoCase=i(r[n].fFamily,"monospace"),r[n].sansCase=i(r[n].fFamily,"sans-serif"),r[n].fPath){if("p"===r[n].fOrigin||3===r[n].origin){if((c=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[n].fFamily+'"], style[f-origin="3"][f-family="'+r[n].fFamily+'"]')).length>0&&(l=!1),l){var h=createTag("style");h.setAttribute("f-forigin",r[n].fOrigin),h.setAttribute("f-origin",r[n].origin),h.setAttribute("f-family",r[n].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",e.appendChild(h)}}
vendor: 6,014 bytes, line 1
1else if("g"===r[n].fOrigin||1===r[n].origin){for(c=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),u=0;u<c.length;u+=1)-1!==c[u].href.indexOf(r[n].fPath)&&(l=!1);if(l){var d=createTag("link");d.setAttribute("f-forigin",r[n].fOrigin),d.setAttribute("f-origin",r[n].origin),d.type="text/css",d.rel="stylesheet",d.href=r[n].fPath,document.body.appendChild(d)}}else if("t"===r[n].fOrigin||2===r[n].origin){for(c=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),u=0;u<c.length;u+=1)r[n].fPath===c[u].src&&(l=!1);if(l){var f=createTag("link");f.setAttribute("f-forigin",r[n].fOrigin),f.setAttribute("f-origin",r[n].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",r[n].fPath),e.appendChild(f)}}}else r[n].loaded=!0,a-=1;r[n].helper=o(r[n],e),r[n].cache={},this.fonts.push(r[n])}0===a?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,n,r){for(var i=0,o=this.chars.length;i<o;){if(this.chars[i].ch===e&&this.chars[i].style===n&&this.chars[i].fFamily===r)return this.chars[i];i+=1}return("string"===typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,n,r)),t},getFontByName:function(t){for(var e=0,n=this.fonts.length;e<n;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,n){var r=this.getFontByName(e),i=t.charCodeAt(0);if(!r.cache[i+1]){var o=r.helper;if(" "===t){var s=o.measureText("|"+t+"|"),a=o.measureText("||");r.cache[i+1]=(s-a)/100}else r.cache[i+1]=o.measureText(t)/100}return r.cache[i+1]*n},checkLoadedFonts:function(){var t,e,n,r=this.fonts.length,i=r;for(t=0;t<r;t+=1)this.fonts[t].loaded?i-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,n=this.fonts[t].monoCase.w,e.offsetWidth!==n?(i-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,n=this.fonts[t].sansCase.w,e.offsetWidth!==n&&(i-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return s.prototype=a,s}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var t={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(e){return t[e]||""}}();function SliderEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function AngleEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function ColorEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,1,0,n)}function PointEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,1,0,n)}function LayerIndexEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function MaskIndexEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function CheckboxEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var n,r=t.ef||[];this.effectElements=[];var i,o=r.length;for(n=0;n<o;n+=1)i=new GroupEffect(r[n],e),this.effectElements.push(i)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,n){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,n)}function AudioElement(t,e,n){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(t,e,n){this.data=t,this.element=e,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,i,o=this.globalData.defs,s=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(s),this.solidPath="";
vendor: 7,499 bytes, line 1
1var a,c,u,l,h,d,f=this.masksProperties,p=0,m=[],g=createElementID(),y="clipPath",b="clip-path";for(r=0;r<s;r+=1)if(("a"!==f[r].mode&&"n"!==f[r].mode||f[r].inv||100!==f[r].o.k||f[r].o.x)&&(y="mask",b="mask"),"s"!==f[r].mode&&"i"!==f[r].mode||0!==p?u=null:((u=createNS("rect")).setAttribute("fill","#ffffff"),u.setAttribute("width",this.element.comp.data.w||0),u.setAttribute("height",this.element.comp.data.h||0),m.push(u)),i=createNS("path"),"n"===f[r].mode)this.viewData[r]={op:PropertyFactory.getProp(this.element,f[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[r],3),elem:i,lastPath:""},o.appendChild(i);else{var v;if(p+=1,i.setAttribute("fill","s"===f[r].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==f[r].x.k?(y="mask",b="mask",d=PropertyFactory.getProp(this.element,f[r].x,0,null,this.element),v=createElementID(),(l=createNS("filter")).setAttribute("id",v),(h=createNS("feMorphology")).setAttribute("operator","erode"),h.setAttribute("in","SourceGraphic"),h.setAttribute("radius","0"),l.appendChild(h),o.appendChild(l),i.setAttribute("stroke","s"===f[r].mode?"#000000":"#ffffff")):(h=null,d=null),this.storedData[r]={elem:i,x:d,expan:h,lastPath:"",lastOperator:"",filterId:v,lastRadius:0},"i"===f[r].mode){c=m.length;var w=createNS("g");for(a=0;a<c;a+=1)w.appendChild(m[a]);var _=createNS("mask");_.setAttribute("mask-type","alpha"),_.setAttribute("id",g+"_"+p),_.appendChild(i),o.appendChild(_),w.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+p+")"),m.length=0,m.push(w)}else m.push(i);f[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,f[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[r],3),invRect:u},this.viewData[r].prop.k||this.drawPath(f[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(y),s=m.length,r=0;r<s;r+=1)this.maskElement.appendChild(m[r]);p>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(b,"url("+getLocationHref()+"#"+g+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var n;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var r,i=this.data.ef.length,o=this.data.ef;for(n=0;n<i;n+=1){switch(r=null,o[n].ty){case 0:r=new SliderEffect(o[n],e,this);break;case 1:r=new AngleEffect(o[n],e,this);break;case 2:r=new ColorEffect(o[n],e,this);break;case 3:r=new PointEffect(o[n],e,this);break;case 4:case 7:r=new CheckboxEffect(o[n],e,this);break;case 10:r=new LayerIndexEffect(o[n],e,this);break;case 11:r=new MaskIndexEffect(o[n],e,this);break;case 5:r=new EffectsManager(o[n],e,this);break;default:r=new NoValueEffect(o[n],e,this)}r&&this.effectElements.push(r)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),n=t("effects"),r=t("shape"),i=t("text"),o=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var s=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(s),0===this.data.ty||this.data.xt?this.compInterface=o(this):4===this.data.ty?(this.layerInterface.shapeInterface=r(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=i(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,n){this.globalData=e,this.comp=n,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)(e||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,n,r=this.layers.length;for(this.completeLayers=!0,e=r-1;e>=0;e-=1)this.elements[e]||(n=this.layers[e]).ip-n.st<=t-this.layers[e].st&&n.op-n.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}
vendor: 5,479 bytes, line 1
1},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var n,r=t.length,i=this.layers.length;for(e=0;e<r;e+=1)for(n=0;n<i;){if(this.layers[n].id===t[e].id){this.layers[n]=t[e];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,n){for(var r=this.elements,i=this.layers,o=0,s=i.length;o<s;)i[o].ind==e&&(r[o]&&!0!==r[o]?(n.push(r[o]),r[o].setAsParent(),void 0!==i[o].parent?this.buildElementParenting(t,i[o].parent,n):t.setHierarchy(n)):(this.buildItem(o),this.addPendingElement(t))),o+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,n=t.length;for(e=0;e<n;e+=1)if(t[e].xt){var r=this.createComp(t[e]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementByPath=function(t){var e,n=t.shift();if("number"===typeof n)e=this.elements[n];else{var r,i=this.elements.length;for(r=0;r<i;r+=1)if(this.elements[r].data.nm===n){e=this.elements[r];break}}return 0===t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<r;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),n=0;n<r;n+=1)t=this.hierarchy[n].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var n,r=!0,i=this.comp;r;)i.finalTransform?(i.data.hasMask&&e.splice(0,0,i.finalTransform),i=i.comp):r=!1;var o,s=e.length;for(n=0;n<s;n+=1)o=e[n].mat.applyToPointArray(0,0,0),t=[t[0]-o[0],t[1]-o[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,n=this.element.finalTransform.mat,r=this.masksProperties.length;for(e=0;e<r;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var i=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),i.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,n){var r,i,o=" M"+e.v[0][0]+","+e.v[0][1];for(i=e._length,r=1;r<i;r+=1)o+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[r][0]+","+e.i[r][1]+" "+e.v[r][0]+","+e.v[r][1];if(e.c&&i>1&&(o+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),n.lastPath!==o){var s="";n.elem&&(e.c&&(s=t.inv?this.solidPath+o:o),n.elem.setAttribute("d",
vendor: 5,379 bytes, line 1
1s)),n.lastPath=o}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={createFilter:function(t,e){var n=createNS("filter");return n.setAttribute("id",t),!0!==e&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}};return t}(),featureSupport=function(){var t={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,n,r="SourceGraphic",i=t.data.ef?t.data.ef.length:0,o=createElementID(),s=filtersFactory.createFilter(o,!0),a=0;for(this.filters=[],e=0;e<i;e+=1){n=null;var c=t.data.ef[e].ty;registeredEffects[c]&&(n=new(0,registeredEffects[c].effect)(s,t.effectsManager.effectElements[e],t,idPrefix+a,r),r=idPrefix+a,registeredEffects[c].countsAsEffect&&(a+=1)),n&&this.filters.push(n)}a&&(t.globalData.defs.appendChild(s),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+o+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e,n){registeredEffects[t]={effect:e,countsAsEffect:n}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,n){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,n=this.filters.length;for(e=0;e<n;e+=1)this.filters[e].renderFrame(t)},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=createNS("symbol");e.setAttribute("id",this.layerId);var n=createNS("g");n.appendChild(this.layerElement),e.appendChild(n),t=n,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var r=createNS("clipPath"),i=createNS("path");i.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var o=createElementID();if(r.setAttribute("id",o),r.appendChild(i),this.globalData.defs.appendChild(r),this.checkMasks()){var s=createNS("g");s.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),s.appendChild(this.layerElement),this.transformedElement=s,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},getMatte:function(t){if(!this.matteMasks[t]){var e,n,r,i,o=this.layerId+"_"+t;if(1===t||3===t){var s=createNS("mask");s.setAttribute("id",o),s.setAttribute("mask-type",3===t?"luminance":"alpha"),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),s.appendChild(r),this.globalData.defs.appendChild(s),featureSupport.maskType||1!==t||(s.setAttribute("mask-type","luminance"),e=createElementID(),n=filtersFactory.createFilter(e),this.globalData.defs.appendChild(n),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(i=createNS("g")).appendChild(r),s.appendChild(i),i.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var a=createNS("mask");a.setAttribute("id",o),a.setAttribute("mask-type","alpha");var c=createNS("g");a.appendChild(c),e=createElementID(),n=filtersFactory.createFilter(e);var u=createNS("feComponentTransfer");u.setAttribute("in","SourceGraphic"),n.appendChild(u);var l=createNS("feFuncA");l.setAttribute("type","table"),l.setAttribute("tableValues","1.0 0.0"),u.appendChild(l),this.globalData.defs.appendChild(n);var h=createNS("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("op
1acity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),c.appendChild(h),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(r),featureSupport.maskType||(a.setAttribute("mask-type","luminance"),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),c.appendChild(h),i.appendChild(this.layerElement),c.appendChild(i)),this.globalData.defs.appendChild(a)}this.matteMasks[t]=o}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initTransform(t,e,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,n=this.shapeModifiers.length;for(e=0;e<n;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,n=0,r=e.length;n<r;){if(e[n].elem===t)return e[n].pos;n+=1}return 0},addProcessedElement:function(t,e){for(var n=this.processedElements,r=n.length;r;)if(n[r-=1].elem===t)return void(n[r].pos=e);n.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,n){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=n,this.lvl=e,this._isAnimated=!!n.k;for(var r=0,i=t.length;r<i;){if(t[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,n,r){var i;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var o,s=e.length||0;for(i=0;i<s;i+=1)o=PropertyFactory.getProp(t,e[i].v,0,0,this),this.k=o.k||this.k,this.dataProps[i]={n:e[i].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=n}function SVGNoStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=n}function GradientProperty(t,e,n){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var r=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,n)}function SVGGradientStrokeStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,n),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,n){this.transform={mProps:t,op:e,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<n;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var n=0,r=this.o.length/2;n<r;){if(Math.abs(t[4*n]-t[4*e+2*n])>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,n,r,i=4*this.data.p;for(e=0;e<i;e+=1)n=e%4===0?100:255,r=Math.round(this.prop.v[e]*n),this.c[e]!==r&&(this.c[e]=r,this._cmdf=!t);if(this.o.length)for(i=this.prop.v.length,e=4*this.data.p;e<i;e+=1)n=e%2===0?100:1,r=e%2===0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==r&&(this.o[e-4*this.data.p]=r,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,n){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=Pro
vendor: 4,971 bytes, line 1
1pertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,e),this.setGradientOpacity(e,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var n=createElementID(),r=createNS(1===e.t?"linearGradient":"radialGradient");r.setAttribute("id",n),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var i,o,s,a=[];for(s=4*e.g.p,o=0;o<s;o+=4)i=createNS("stop"),r.appendChild(i),a.push(i);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=r,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,i,o=createNS("mask"),s=createNS("path");o.appendChild(s);var a=createElementID(),c=createElementID();o.setAttribute("id",c);var u=createNS(1===t.t?"linearGradient":"radialGradient");u.setAttribute("id",a),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),i=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var l=this.stops;for(r=4*t.g.p;r<i;r+=2)(n=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(n),l.push(n);s.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+a+")"),"gs"===t.ty&&(s.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&s.setAttribute("stroke-miterlimit",t.ml)),this.of=u,this.ms=o,this.ost=l,this.maskId=c,e.msElem=s}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,n,r){if(0===e)return"";var i,o=t.o,s=t.i,a=t.v,c=" M"+r.applyToPointStringified(a[0][0],a[0][1]);for(i=1;i<e;i+=1)c+=" C"+r.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+r.applyToPointStringified(s[i][0],s[i][1])+" "+r.applyToPointStringified(a[i][0],a[i][1]);return n&&e&&(c+=" C"+r.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+r.applyToPointStringified(s[0][0],s[0][1])+" "+r.applyToPointStringified(a[0][0],a[0][1]),c+="z"),c},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function n(t,e,n){(n||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(n||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function r(){}function i(n,r,i){var o,s,a,c,u,l,h,d,f,p,m,g=r.styles.length,y=r.lvl;for(l=0;l<g;l+=1){if(c=r.sh._mdf||i,r.styles[l].lvl<y){for(d=e.reset(),p=y-r.styles[l].lvl,m=r.transformers.length-1;!c&&p>0;)c=r.transformers[m].mProps._mdf||c,p-=1,m-=1;if(c)for(p=y-r.styles[l].lvl,m=r.transformers.length-1;p>0;)f=r.transformers[m].mProps.v.props,d.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),p-=1,m-=1}else d=t;if(s=(h=r.sh.paths)._length,c){for(a="",o=0;o<s;o+=1)(u=h.shapes[o])&&u._length&&(a+=buildShapeString(u,u._length,u.c,d));r.caches[l]=a}else a=r.caches[l];r.styles[l].d+=!0===n.hd?"":a,r.styles[l]._mdf=c||r.styles[l]._mdf}}function o(t,e,n){var r=e.style;(e.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",e.o.v)}function s(t,e,n){a(t,e,n),c(0,e,n)}function a(t,e,n){var r,i,o,s,a,c=e.gf,u=e.g._hasOpacity,l=e.s.v,h=e.e.v;if(e.o._mdf||n){var d="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(d,e.o.v)}if(e.s._mdf||n){var f=1===t.t?"x1":"cx",p="x1"===f?"y1":"cy";c.setAttribute(f,l[0]),c.setAttribute(p,l[1]),u&&!e.g._collapsable&&(e.of.setAttribute(f,l[0]),e.of.setAttribute(p,l[1]))}if(e.g._cmdf||n){r=e.cst;var m=e.g.c;for(o=r.length,i=0;i<o;i+=1)(s=r[i]).setAttribute("offset",m[4*i]+"%"),s.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(u&&(e.g._omdf||n)){var g=e.g.o;for(o=(r=e.g._collapsable?e.cst:e.ost).length,i=0;i<o;i+=1)s=r[i],e.g._collapsable||s.setAttribute("offset",g[2*i]+"%"),s.setAttribute("stop-opacity",g[2*i+1])}if(1===t.t)(e.e._mdf||n)&&(c.setAttribute("x2",h[0]),c.setAttribute("y2",h[1]),u&&!e.g._collapsable&&(e.of.setAttribute("x2",h[0]),e.of.setAttribute("y2",h[1])));else if((e.s._mdf||e.e._mdf||n)&&(a=Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)),c.setAttribute("r",a),u&&!e.g._collapsable&&e.of.setAttribute("r",a)),e.e._mdf||e.h._mdf||e.a._mdf||n){a||(a=Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)));var y=Math.atan2(h[1]-l[1],h[0]-l[0]),b=e.h.v;b>=1?b=.99:b<=-1&&(b=-.99);var v=a*b,w=Math.cos(y+e.a.v)*v+l[0],_=Math.sin(y+e.a.v)*v+l[1];c.setAttribute("fx",w),c.setAttribute("fy",_),u&&!e.g._collapsable&&(e.of.setAttribute("fx",w),e.of.setAttribute("fy",_))}}function c(t,e,n){var r=e.style,i=e.d;
vendor: 11,160 bytes, line 1
1i&&(i._mdf||n)&&i.dashStr&&(r.pElem.setAttribute("stroke-dasharray",i.dashStr),r.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),e.c&&(e.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",e.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return o;case"gf":return a;case"gs":return s;case"st":return c;case"sh":case"el":case"rc":case"sr":return i;case"tr":return n;case"no":return r;default:return null}}}}();function SVGShapeElement(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,n),this.prevViewData=[]}function LetterProps(t,e,n,r,i,o){this.o=t,this.sw=e,this.sc=n,this.fc=r,this.m=i,this.p=o,this._mdf={o:!0,sw:!!e,sc:!!n,fc:!!r,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,n,r,i=this.shapes.length,o=this.stylesList.length,s=[],a=!1;for(n=0;n<o;n+=1){for(r=this.stylesList[n],a=!1,s.length=0,t=0;t<i;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(r)&&(s.push(e),a=e._isAnimated||a);s.length>1&&a&&this.setShapesAsAnimated(s)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var n,r=new SVGStyleData(t,e),i=r.pElem;return"st"===t.ty?n=new SVGStrokeStyleData(this,t,r):"fl"===t.ty?n=new SVGFillStyleData(this,t,r):"gf"===t.ty||"gs"===t.ty?(n=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),i.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))):"no"===t.ty&&(n=new SVGNoStyleData(this,t,r)),"st"!==t.ty&&"gs"!==t.ty||(i.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),i.setAttribute("fill-opacity","0"),1===t.lj&&i.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&i.setAttribute("fill-rule","evenodd"),t.ln&&i.setAttribute("id",t.ln),t.cl&&i.setAttribute("class",t.cl),t.bm&&(i.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(r),this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var n=TransformPropertyFactory.getTransformProperty(this,t,this),r=new SVGTransformData(n,n.o,e);return this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createShapeElement=function(t,e,n){var r=4;"rc"===t.ty?r=5:"el"===t.ty?r=6:"sr"===t.ty&&(r=7);var i=new SVGShapeData(e,n,ShapePropertyFactory.getShapeProp(this,t,r,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===e)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,n=t.styles,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||n.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,n,r,i,o,s){var a,c,u,l,h,d,f=[].concat(o),p=t.length-1,m=[],g=[];for(a=p;a>=0;a-=1){if((d=this.searchProcessedElement(t[a]))?e[a]=n[d-1]:t[a]._render=s,"fl"===t[a].ty||"st"===t[a].ty||"gf"===t[a].ty||"gs"===t[a].ty||"no"===t[a].ty)d?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],i),t[a]._render&&e[a].style.pElem.parentNode!==r&&r.appendChild(e[a].style.pElem),m.push(e[a].style);else if("gr"===t[a].ty){if(d)for(u=e[a].it.length,c=0;c<u;c+=1)e[a].prevViewData[c]=e[a].it[c];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,e[a].gr,i+1,f,s),t[a]._render&&e[a].gr.parentNode!==r&&r.appendChild(e[a].gr)}else"tr"===t[a].ty?(d||(e[a]=this.createTransformElement(t[a],r)),l=e[a].transform,f.push(l)):"sh"===t[a].ty||"rc"===t[a].ty||"el"===t[a].ty||"sr"===t[a].ty?(d||(e[a]=this.createShapeElement(t[a],f,i)),this.setElementStyles(e[a])):"tm"===t[a].ty||"rd"===t[a].ty||"ms"===t[a].ty||"pb"===t[a].ty||"zz"===t[a].ty||"op"===t[a].ty?(d?(h=e[a]).closed=!1:((h=ShapeModifiers.getModifier(t[a].ty)).init(this,t[a]),e[a]=h,this.shapeModifiers.push(h)),g.push(h)):"rp"===t[a].ty&&(d?(h=e[a]).closed=!0:(h=ShapeModifiers.getModifier(t[a].ty),e[a]=h,h.init(this,t,a,e),this.shapeModifiers.push(h),s=!1),g.push(h));this.addProcessedElement(t[a],a+1)}for(p=m.length,a=0;a<p;a+=1)m[a].closed=!0;for(p=g.length,a=0;a<p;a+=1)g[a].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,n=this.animatedContents.length;for(t=0;t<n;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,n,r,i,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var s=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,s=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,s=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,s=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,s=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,s=!0),!o.length||this.p[0]===o[0]&&this.p[1]===o[1]&&this.p[4]===o[4]&&this.p[5]===o[5]&&this.p[12]===o[12]&&this.p[13]===o[13]||(this.p=o,this._mdf.p=!0,s=!0),s},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,o=t||this.data.d.k[this.keysIndex].s;for(r=0;r<i;r+=1)o=n!==this.keysIndex?this.effectsSequence[r](o,o.t):this.effectsSequence[r](this.currentData,o.t);e!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,n=0,r=t.length;n<=r-1&&!(n===r-1||t[n+1].t>e);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,n,r=[],i=0,o=t.length,s=!1;i<o;)e=t.charCodeAt(i),FontManager.isCombinedCharacter(e)?r[r.length-1]+=t.charAt(i):e>=55296&&e<=56319?(n=t.charCodeAt(i+1))>=56320&&n<=57343?(s||FontManager.isModifier(e,n)?(r[r.length-1]+=t.substr(i,2),s=!1):r.push(t.substr(i,2)),i+=1):r.push(t.charAt(i)):e>56319?(n=t.charCodeAt(i+1),FontManager.isZeroWidthJoiner(e,n)?(s=!0,r[r.length-1]+=t.substr(i,2),i+=1):r.push(t.charAt(i))):FontManager.isZeroWidthJoiner(e)?(r[r.length-1]+=t.charAt(i),s=!0):r.push(t.charAt(i)),i+=1;return r},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,n,r,i,o,s,a,c=this.elem.globalData.fontManager,u=this.data,l=[],h=0,d=u.m.g,f=0,p=0,m=0,g=[],y=0,b=0,v=c.getFontByName(t.f),w=0,_=getFontProperties(v);t.fWeight=_.weight,t.fStyle=_.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),n=t.finalText.length,t.finalLineHeight=t.lh;var k,S=t.tr/1e3*t.finalSize;if(t.sz)for(var x,I,A=!0,E=t.sz[0],T=t.sz[1];A;){x=0,y=0,n=(I=this.buildFinalText(t.t)).length,S=t.tr/1e3*t.finalSize;var P=-1;for(e=0;e<n;e+=1)k=I[e].charCodeAt(0),r=!1," "===I[e]?P=e:13!==k&&3!==k||(y=0,r=!0,x+=t.finalLineHeight||1.2*t.finalSize),c.chars?(a=c.getCharData(I[e],v.fStyle,v.fFamily),w=r?0:a.w*t.finalSize/100):w=c.measureText(I[e],t.f,t.finalSize),y+w>E&&" "!==I[e]?(-1===P?n+=1:e=P,x+=t.finalLineHeight||1.2*t.finalSize,I.splice(e,P===e?1:0,"\r"),P=-1,y=0):(y+=w,y+=S);x+=v.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&T<x?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=I,n=t.finalText.length,A=!1)}y=-S,w=0;var C,M=0;for(e=0;e<n;
vendor: 13,799 bytes, line 1
1e+=1)if(r=!1,13===(k=(C=t.finalText[e]).charCodeAt(0))||3===k?(M=0,g.push(y),b=y>b?y:b,y=-2*S,i="",r=!0,m+=1):i=C,c.chars?(a=c.getCharData(C,v.fStyle,c.getFontByName(t.f).fFamily),w=r?0:a.w*t.finalSize/100):w=c.measureText(i,t.f,t.finalSize)," "===C?M+=w+S:(y+=w+S+M,M=0),l.push({l:w,an:w,add:f,n:r,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==d){if(f+=w,""===i||" "===i||e===n-1){for(""!==i&&" "!==i||(f-=w);p<=e;)l[p].an=f,l[p].ind=h,l[p].extra=w,p+=1;h+=1,f=0}}else if(3==d){if(f+=w,""===i||e===n-1){for(""===i&&(f-=w);p<=e;)l[p].an=f,l[p].ind=h,l[p].extra=w,p+=1;f=0,h+=1}}else l[h].ind=h,l[h].extra=0,h+=1;if(t.l=l,b=y>b?y:b,g.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=b,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var O,R,B,j,N=u.a;s=N.length;var L=[];for(o=0;o<s;o+=1){for((O=N[o]).a.sc&&(t.strokeColorAnim=!0),O.a.sw&&(t.strokeWidthAnim=!0),(O.a.fc||O.a.fh||O.a.fs||O.a.fb)&&(t.fillColorAnim=!0),j=0,B=O.s.b,e=0;e<n;e+=1)(R=l[e]).anIndexes[o]=j,(1==B&&""!==R.val||2==B&&""!==R.val&&" "!==R.val||3==B&&(R.n||" "==R.val||e==n-1)||4==B&&(R.n||e==n-1))&&(1===O.s.rn&&L.push(j),j+=1);u.a[o].s.totalChars=j;var D,z=-1;if(1===O.s.rn)for(e=0;e<n;e+=1)z!=(R=l[e]).anIndexes[o]&&(z=R.anIndexes[o],D=L.splice(Math.floor(Math.random()*L.length),1)[0]),R.anIndexes[o]=D}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=v.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var n=this.copyData({},this.data.d.k[e].s);n=this.copyData(n,t),this.data.d.k[e].s=n,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,n=Math.floor;function r(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,o=0,s=1,a=1;this.ne.v>0?i=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?s=1-this.xe.v/100:a=1+this.xe.v/100;var c=BezierFactory.getBezierEasing(i,o,s,a).get,u=0,l=this.finalS,h=this.finalE,d=this.data.sh;if(2===d)u=c(u=h===l?r>=h?1:0:t(0,e(.5/(h-l)+(r-l)/(h-l),1)));else if(3===d)u=c(u=h===l?r>=h?0:1:1-t(0,e(.5/(h-l)+(r-l)/(h-l),1)));else if(4===d)h===l?u=0:(u=t(0,e(.5/(h-l)+(r-l)/(h-l),1)))<.5?u*=2:u=1-2*(u-.5),u=c(u);else if(5===d){if(h===l)u=0;else{var f=h-l,p=-f/2+(r=e(t(0,r+.5-l),h-l)),m=f/2;u=Math.sqrt(1-p*p/(m*m))}u=c(u)}else 6===d?(h===l?u=0:(r=e(t(0,r+.5-l),h-l),u=(1+Math.cos(Math.PI+2*Math.PI*r/(h-l)))/2),u=c(u)):(r>=n(l)&&(u=t(0,e(r-l<0?e(h,1)-(l-r):h-r,1))),u=c(u));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;u<y?u=0:(u=(u-y)/g)>1&&(u=1)}return u*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/e,r=this.s.v/e+n,i=this.e.v/e+n;if(r>i){var o=r;r=i,i=o}this.finalS=r,this.finalE=i}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(t,e,n){return new r(t,e,n)}}}();function TextAnimatorDataProperty(t,e,n){var r={propType:!1},i=PropertyFactory.getProp,o=e.a;this.a={r:o.r?i(t,o.r,0,degToRads,n):r,rx:o.rx?i(t,o.rx,0,degToRads,n):r,ry:o.ry?i(t,o.ry,0,degToRads,n):r,sk:o.sk?i(t,o.sk,0,degToRads,n):r,sa:o.sa?i(t,o.sa,0,degToRads,n):r,s:o.s?i(t,o.s,1,.01,n):r,a:o.a?i(t,o.a,1,0,n):r,o:o.o?i(t,o.o,0,.01,n):r,p:o.p?i(t,o.p,1,0,n):r,sw:o.sw?i(t,o.sw,0,0,n):r,sc:o.sc?i(t,o.sc,1,0,n):r,fc:o.fc?i(t,o.fc,1,0,n):r,fh:o.fh?i(t,o.fh,0,0,n):r,fs:o.fs?i(t,o.fs,0,.01,n):r,fb:o.fb?i(t,o.fb,0,.01,n):r,t:o.t?i(t,o.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,n),this.s.t=e.s.t}function TextAnimatorProperty(t,e,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,n=this._textData.a.length,r=PropertyFactory.getProp;for(t=0;t<n;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,r,i,o,s,a,c,u,l,h,d,f,p,m,g,y,b,v,w,_=this._moreOptions.alignment.v,k=this._animatorsData,S=this._textData,x=this.mHelper,I=this._renderType,A=this.renderedLetters.length,E=t.l;if(this._hasMaskedPath){if(w=this._pathData.m,!this._pathData.n||this._pathData._mdf){var T,P=w.v;for(this._pathData.r.v&&(P=P.reverse()),s={tLength:0,segments:[]},o=P._length-1,y=0,i=0;i<o;i+=1)T=bez.buildBezierData(P.v[i],P.v[i+1],[P.o[i][0]-P.v[i][0],P.o[i][1]-P.v[i][1]],[P.i[i+1][0]-P.v[i+1][0],P.i[i+1][1]-P.v[i+1][1]]),s.tLength+=T.segmentLength,s.segments.push(T),y+=T.segmentLength;i=o,w.v.c&&(T=bez.buildBezierData(P.v[i],P.v[0],[P.o[i][0]-P.v[i][0],P.o[i][1]-P.v[i][1]],[P.i[0][0]-P.v[0][0],P.i[0][1]-P.v[0][1]]),s.tLength+=T.segmentLength,s.segments.push(T),y+=T.segmentLength),this._pathData.pi=s}if(s=this._pathData.pi,a=this._pathData.f.v,d=0,h=1,u=0,l=!0,m=s.segments,a<0&&w.v.c)for(s.tLength<Math.abs(a)&&(a=-Math.abs(a)%s.tLength),h=(p=m[d=m.length-1].points).length-1;a<0;)a+=p[h].partialLength,(h-=1)<0&&(h=(p=m[d-=1].points).length-1);f=(p=m[d].points)[h-1],g=(c=p[h]).partialLength}o=E.length,n=0,r=0;var C,M,O,R,B,j=1.2*t.finalSize*.714,N=!0;O=k.length;var L,D,z,F,U,W,G,V,K,H,q,$,Z=-1,Y=a,X=d,J=h,Q=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var nt=0,rt=0,it=2===t.j?-.5:-1,ot=0,st=!0;for(i=0;i<o;i+=1)if(E[i].n){for(nt&&(nt+=rt);ot<i;)E[ot].animatorJustifyOffset=nt,ot+=1;nt=0,st=!0}else{for(M=0;M<O;M+=1)(C=k[M].a).t.propType&&(st&&2===t.j&&(rt+=C.t.v*it),(B=k[M].s.getMult(E[i].anIndexes[M],S.a[M].s.totalChars)).length?nt+=C.t.v*B[0]*it:nt+=C.t.v*B*it);st=!1}for(nt&&(nt+=rt);ot<i;)E[ot].animatorJustifyOffset=nt,ot+=1}for(i=0;i<o;i+=1){if(x.reset(),F=1,E[i].n)n=0,r+=t.yOffset,r+=N?1:0,a=Y,N=!1,this._hasMaskedPath&&(h=J,f=(p=m[d=X].points)[h-1],g=(c=p[h]).partialLength,u=0),tt="",q="",K="",$="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==E[i].line){switch(t.j){case 1:a+=y-t.lineWidths[E[i].line];break;case 2:a+=(y-t.lineWidths[E[i].line])/2}Q=E[i].line}Z!==E[i].ind&&(E[Z]&&(a+=E[Z].extra),a+=E[i].an/2,Z=E[i].ind),a+=_[0]*E[i].an*.005;var at=0;for(M=0;M<O;M+=1)(C=k[M].a).p.propType&&((B=k[M].s.getMult(E[i].anIndexes[M],S.a[M].s.totalChars)).length?at+=C.p.v[0]*B[0]:at+=C.p.v[0]*B),C.a.propType&&((B=k[M].s.getMult(E[i].anIndexes[M],S.a[M].s.totalChars)).length?at+=C.a.v[0]*B[0]:at+=C.a.v[0]*B);for(l=!0,this._pathData.a.v&&(a=.5*E[0].an+(y-this._pathData.f.v-.5*E[0].an-.5*E[E.length-1].an)*Z/(o-1),a+=this._pathData.f.v);l;)u+g>=a+at||!p?(b=(a+at-u)/c.partialLength,D=f.point[0]+(c.point[0]-f.point[0])*b,z=f.point[1]+(c.point[1]-f.point[1])*b,x.translate(-_[0]*E[i].an*.005,-_[1]*j*.01),l=!1):p&&(u+=c.partialLength,(h+=1)>=p.length&&(h=0,m[d+=1]?p=m[d].points:w.v.c?(h=0,p=m[d=0].points):(u-=c.partialLength,p=null)),p&&(f=c,g=(c=p[h]).partialLength));L=E[i].an/2-E[i].add,x.translate(-L,0,0)}else L=E[i].an/2-E[i].add,x.translate(-L,0,0),x.translate(-_[0]*E[i].an*.005,-_[1]*j*.01,0);for(M=0;M<O;M+=1)(C=k[M].a).t.propType&&(B=k[M].s.getMult(E[i].anIndexes[M],S.a[M].s.totalChars),0===n&&0===t.j||(this._hasMaskedPath?B.length?a+=C.t.v*B[0]:a+=C.t.v*B:B.length?n+=C.t.v*B[0]:n+=C.t.v*B));for(t.strokeWidthAnim&&(W=t.sw||0),t.strokeColorAnim&&(U=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(G=[t.fc[0],t.fc[1],t.fc[2]]),M=0;M<O;M+=1)(C=k[M].a).a.propType&&((B=k[M].s.getMult(E[i].anIndexes[M],S.a[M].s.totalChars)).length?x.translate(-C.a.v[0]*B[0],-C.a.v[1]*B[1],C.a.v[2]*B[2]):x.translate(-C.a.v[0]*B,-C.a.v[1]*B,C.a.v[2]*B));for(M=0;M<O;M+=1)(C=k[M].a).s.propType&&((B=k[M].s.getMult(E[i].anIndexes[M],S.a[M].s.totalChars)).length?x.scale(1+(C.s.v[0]-1)*B[0],1+(C.s.v[1]-1)*B[1],1):x.scale(1+(C.s.v[0]-1)*B,1+(C.s.v[1]-1)*B,1));for(M=0;M<O;M+=1){if(C=k[M].a,B=k[M].s.getMult(E[i].anIndexes[M],S.a[M].s.totalChars),C.sk.propType&&(B.length?x.skewFromAxis(-C.sk.v*B[0],C.sa.v*B[1]):x.skewFromAxis(-C.sk.v*B,C.sa.v*B)),C.r.propType&&(B.length?x.rotateZ(-C.r.v*B[2]):x.rotateZ(-C.r.v*B)),C.ry.propType&&(B.length?x.rotateY(C.ry.v*B[1]):x.rotateY(C.ry.v*B)),C.rx.propType&&(B.length?x.rotateX(C.rx.v*B[0]):x.rotateX(C.rx.v*B)),C.o.propType&&(B.length?F+=(C.o.v*B[0]-F)*B[0]:F+=(C.o.v*B-F)*B),t.strokeWidthAnim&&C.sw.propType&&(B.length?W+=C.sw.v*B[0]:W+=C.sw.v*B),t.strokeColorAnim&&C.sc.propType)for(V=0;V<3;V+=1)B.length?U[V]+=(C.sc.v[V]-U[V])*B[0]:U[V]+=(C.sc.v[V]-U[V])*B;if(t.fillColorAnim&&t.fc){if(C.fc.propType)for(V=0;V<3;V+=1)B.length?G[V]+=(C.fc.v[V]-G[V])*B[0]:G[V]+=(C.fc.v[V]-G[V])*B;C.fh.propType&&(G=B.length?addHueToRGB(G,C.fh.v*B[0]):addHueToRGB(G,C.fh.v*B)),C.fs.propType&&(G=B.length?addSaturationToRGB(G,C.fs.v*B[0]):addSaturationToRGB(G,C.fs.v*B)),C.fb.propType&&(G=B.length?addBrightnessToRGB(G,C.fb.v*B[0]):addBrightnessToRGB(G,C.fb.v*B))}}for(M=0;M<O;M+=1)(C=k[M].a).p.propType&&(B=k[M].s.getMult(E[i].anIndexes[M],S.a[M].s.totalChars),this._hasMaskedPath?B.length?x.translate(0,C.p.v[1]*B[0],-C.p.v[2]*B[1]):x.translate(0,C.p.v[1]*B,-C.p.v[2]*B):B.length?x.translate(C.p.v[0]*B[0],C.p.v[1]*B[1],-C.p.v[2]*B[2]):x.translate(C.p.v[0]*B,C.p.v[1]*B,-C.p.v[2]*B));if(t.strokeWidthAnim&&(K=W<0?0:W),t.strokeColorAnim&&(H="rgb("+Math.round(255*U[0])+","+Math.round(255*U[1])+","+Math.round(255*U[2])+")"),t.fillColorAnim&&t.fc&&(q="rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"),this._hasMaskedPath){if(x.translate(0,-t.ls),x.translate(0,_[1]*j*.01+r,0),this._pathData.p.v){v=(c.point[1]-f.point[1])/(c.point[0]-f.point[0]);var ct=180*Math.atan(v)/Math.PI;c.point[0]<f.point[0]&&(ct+=180),x.rotate(-ct*Math.PI/180)}x.translate(D,z,0),a-=_[0]*E[i].an*.005,E[i+1]&&Z!==E[i+1].ind&&(a+=E[i].an/2,a+=.001*t.tr*t.finalSize)}else{switch(x.translate(n,r,0),t.ps&&x.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:x.translate(E[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[i].line]),0,0);break;case 2:x.translate(E[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[i].line])/2,0,0)}x.translate(0,-t.ls),x.translate(L,0,0),x.translate(_[0]*E[i].an*.005,_[1]*j*.01,0),n+=E[i].l+.001*t.tr*t.finalSize}"html"===I?tt=x.toCSS():"svg"===I?tt=x.to2dCSS():et=[x.props[0],x.props[1],x.props[2],x.props[3],x.props[4],x.props[5],x.props[6],x.props[7],x.props[8],x.props[9],x.props[10],x.props[11],x.props[12],x.props[13],x.props[14],x.props[15]],$=F}A<=i?(R=new LetterProps($,K,H,q,tt,et),this.renderedLetters.push(R),A+=1,this.lettersChangedFlag=!0):(R=this.renderedLetters[i],this.lettersChangedFlag=R.update($,K,H,q,tt,et)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,n),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){var n,r,i=e.length,o="";for(n=0;n<i;
vendor: 5,730 bytes, line 1
1n+=1)"sh"===e[n].ty&&(r=e[n].ks.k,o+=buildShapeString(r,r.i.length,!0,t));return o},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,n,r,i){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n])/2,0,0)}e.translate(r,i,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,n){this.textSpans=[],this.renderType="svg",this.initElement(t,e,n)}function ISolidElement(t,e,n){this.initElement(t,e,n)}function NullElement(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initFrame(),this.initTransform(t,e,n),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,n){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,n),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(e&&e.title){var r=createNS("title"),i=createElementID();r.setAttribute("id",i),r.textContent=e.title,this.svgElement.appendChild(r),n+=i}if(e&&e.description){var o=createNS("desc"),s=createElementID();o.setAttribute("id",s),o.textContent=e.description,this.svgElement.appendChild(o),n+=" "+s}n&&this.svgElement.setAttribute("aria-labelledby",n);var a=createNS("defs");this.svgElement.appendChild(a);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:a,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var t;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),t=0;t<15;t+=1)this.saved[t]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(t,e){var n;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r=this.masksProperties.length,i=!1;for(n=0;n<r;n+=1)"n"!==this.masksProperties[n].mode&&(i=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(t,e,n,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,o=4;"rc"===e.ty?o=5:"el"===e.ty?o=6:"sr"===e.ty&&(o=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,o,t);var s,a=n.length;for(i=0;i<a;i+=1)n[i].closed||(s={transforms:r.addTransformSequence(n[i].transforms),trNodes:[]},this.styledShapes.push(s),n[i].elements.push(s))}function CVShapeElement(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,n)}function CVTextElement(t,e,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,n)}function CVImageElement(t,e,n){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,n)}function CVSolidElement(t,e,n){this.initElement(t,e,n)}function CanvasRendererBase(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=ne
vendor: 1,135 bytes, line 1
1w Matrix,this.completeLayers=!1,this.rendererType="canvas"}function CVCompElement(t,e,n){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,n),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=ne
vendor: 4,395 bytes, line 1
1w Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HBaseElement(){}function HSolidElement(t,e,n){this.initElement(t,e,n)}function HShapeElement(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,n)}function HCameraElement(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,t.pe,0,0,this),t.ks.p.s?(this.px=r(this,t.ks.p.x,1,0,this),this.py=r(this,t.ks.p.y,1,0,this),this.pz=r(this,t.ks.p.z,1,0,this)):this.p=r(this,t.ks.p,1,0,this),t.ks.a&&(this.a=r(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var i,o=t.ks.or.k.length;for(i=0;i<o;i+=1)t.ks.or.k[i].to=null,t.ks.or.k[i].ti=null}this.or=r(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,t.ks.rx,0,degToRads,this),this.ry=r(this,t.ks.ry,0,degToRads,this),this.rz=r(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,n){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,n)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(t,e,n){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,n),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,n=t.length,r=[],i="";e<n;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(r.push(i),i=""):i+=t[e],e+=1;return r.push(i),r},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var n=t.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=e,r.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var r=this.globalData.fontManager.getFontByName(n.f);
vendor: 5,721 bytes, line 1
1if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var i=n.fWeight,o=n.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",n.t);var s,a=n.l||[],c=!!this.globalData.fontManager.chars;e=a.length;var u=this.mHelper,l=this.data.singleShape,h=0,d=0,f=!0,p=.001*n.tr*n.finalSize;if(!l||c||n.sz){var m,g=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!c||!l||0===t){if(s=g>t?this.textSpans[t].span:createNS(c?"g":"text"),g<=t){if(s.setAttribute("stroke-linecap","butt"),s.setAttribute("stroke-linejoin","round"),s.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=s,c){var y=createNS("g");s.appendChild(y),this.textSpans[t].childSpan=y}this.textSpans[t].span=s,this.layerElement.appendChild(s)}s.style.display="inherit"}if(u.reset(),l&&(a[t].n&&(h=-p,d+=n.yOffset,d+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(n,u,a[t].line,h,d),h+=a[t].l||0,h+=p),c){var b;if(1===(m=this.globalData.fontManager.getCharData(n.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)b=new SVGCompElement(m.data,this.globalData,this);else{var v=emptyShapeData;m.data&&m.data.shapes&&(v=this.buildShapeData(m.data,n.finalSize)),b=new SVGShapeElement(v,this.globalData,this)}if(this.textSpans[t].glyph){var w=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(w.layerElement),w.destroy()}this.textSpans[t].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[t].childSpan.appendChild(b.layerElement),1===m.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else l&&s.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),s.textContent=a[t].val,s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}l&&s&&s.setAttribute("d","")}else{var _=this.textContainer,k="start";switch(n.j){case 1:k="end";break;case 2:k="middle";break;default:k="start"}_.setAttribute("text-anchor",k),_.setAttribute("letter-spacing",p);var S=this.buildTextContents(n.finalText);for(e=S.length,d=n.ps?n.ps[1]+n.ascent:0,t=0;t<e;t+=1)(s=this.textSpans[t].span||createNS("tspan")).textContent=S[t],s.setAttribute("x",0),s.setAttribute("y",d),s.style.display="inherit",_.appendChild(s),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=s,d+=n.finalLineHeight;this.layerElement.appendChild(_)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<n;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var n,r,i,o=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;for(e=s.length,t=0;t<e;t+=1)s[t].n||(n=o[t],r=this.textSpans[t].span,(i=this.textSpans[t].glyph)&&i.renderFrame(),n._mdf.m&&r.setAttribute("transform",n.m),n._mdf.o&&r.setAttribute("opacity",n.o),n._mdf.sw&&r.setAttribute("stroke-width",n.sw),n._mdf.sc&&r.setAttribute("stroke",n.sc),n._mdf.fc&&r.setAttribute("fill",n.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,
10,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var n=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",t.w),r.setAttribute("height",t.h),r.setAttribute("x",0),r.setAttribute("y",0);var i=createElementID();n.setAttribute("id",i),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),e.appendChild(n),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,n=this.layers.length;for(e=0;e<n;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var n=this.createItem(this.layers[t]);if(e[t]=n,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,t),this.layers[t].tt){var r="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var i=e[r].getMatte(this.layers[t].tt);n.setMatte(i)}else this.buildItem(r),this.addPendingElement(n)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,n=this.elements.length;e<n;){if(this.elements[e]===t){var r="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,i=this.elements[r].getMatte(this.layers[e].tt);t.setMatte(i);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=n-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<n;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var n=t.getBaseElement();if(n){for(var r,i=0;i<e;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(n,r):this.layerElement.appendChild(n)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initTransform(t,e,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=this.savedOp;this.savedOp=createTypedArray("float32",t),this.savedOp.set(e);var n=0;for(n=this._length;n<t;n+=1)this.saved[n]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,n=t.length,r="_";for(e=0;e<n;e+=1)r+=t[e].transform.key+"_";var i=this.sequences[r];
vendor: 4,498 bytes, line 1
1return i||(i={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=i,this.sequenceList.push(i)),i},processSequence:function(t,e){for(var n,r=0,i=t.transforms.length,o=e;r<i&&!e;){if(t.transforms[r].transform.mProps._mdf){o=!0;break}r+=1}if(o)for(t.finalTransform.reset(),r=i-1;r>=0;r-=1)n=t.transforms[r].transform.mProps.v.props,t.finalTransform.transform(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15]);t._mdf=o},processSequences:function(t){var e,n=this.sequenceList.length;for(e=0;e<n;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,n,r,i=this.element.finalTransform.mat,o=this.element.canvasContext,s=this.masksProperties.length;for(o.beginPath(),t=0;t<s;t+=1)if("n"!==this.masksProperties[t].mode){var a;this.masksProperties[t].inv&&(o.moveTo(0,0),o.lineTo(this.element.globalData.compSize.w,0),o.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),o.lineTo(0,this.element.globalData.compSize.h),o.lineTo(0,0)),r=this.viewData[t].v,e=i.applyToPointArray(r.v[0][0],r.v[0][1],0),o.moveTo(e[0],e[1]);var c=r._length;for(a=1;a<c;a+=1)n=i.applyToTriplePoints(r.o[a-1],r.i[a],r.v[a]),o.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=i.applyToTriplePoints(r.o[a-1],r.i[0],r.v[0]),o.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),o.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var t=0===this.data.ty;this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(t),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var n={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},r={};if("fl"===t.ty||"st"===t.ty?(r.c=PropertyFactory.getProp(this,t.c,1,255,this),r.c.k||(n.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(r.s=PropertyFactory.getProp(this,t.s,1,null,this),r.e=PropertyFactory.getProp(this,t.e,1,null,this),r.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,t.g,this)),r.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty){if(n.lc=lineCapEnum[t.lc||2],n.lj=lineJoinEnum[t.lj||2],
vendor: 10,660 bytes, line 1
11==t.lj&&(n.ml=t.ml),r.w=PropertyFactory.getProp(this,t.w,0,null,this),r.w.k||(n.wi=r.w.v),t.d){var i=new DashProperty(this,t.d,"canvas",this);r.d=i,r.d.k||(n.da=r.d.dashArray,n.do=r.d.dashoffset[0])}}else n.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(n),r.style=n,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,n=this.stylesList.length;for(e=0;e<n;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,n,r,i){var o,s,a,c,u,l,h=t.length-1,d=[],f=[],p=[].concat(i);for(o=h;o>=0;o-=1){if((c=this.searchProcessedElement(t[o]))?e[o]=n[c-1]:t[o]._shouldRender=r,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty)c?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],p),d.push(e[o].style);else if("gr"===t[o].ty){if(c)for(a=e[o].it.length,s=0;s<a;s+=1)e[o].prevViewData[s]=e[o].it[s];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,r,p)}else"tr"===t[o].ty?(c||(l=this.createTransformElement(t[o]),e[o]=l),p.push(e[o]),this.addTransformToStyleList(e[o])):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?c||(e[o]=this.createShapeElement(t[o])):"tm"===t[o].ty||"rd"===t[o].ty||"pb"===t[o].ty||"zz"===t[o].ty||"op"===t[o].ty?(c?(u=e[o]).closed=!1:((u=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=u,this.shapeModifiers.push(u)),f.push(u)):"rp"===t[o].ty&&(c?(u=e[o]).closed=!0:(u=ShapeModifiers.getModifier(t[o].ty),e[o]=u,u.init(this,t,o,e),this.shapeModifiers.push(u),r=!1),f.push(u));this.addProcessedElement(t[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(d),h=f.length,o=0;o<h;o+=1)f[o].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,n,r,i,o,s,a,c,u=this.stylesList.length,l=this.globalData.renderer,h=this.globalData.canvasContext;for(t=0;t<u;t+=1)if(("st"!==(a=(c=this.stylesList[t]).type)&&"gs"!==a||0!==c.wi)&&c.data._shouldRender&&0!==c.coOp&&0!==this.globalData.currentGlobalAlpha){for(l.save(),o=c.elements,"st"===a||"gs"===a?(h.strokeStyle="st"===a?c.co:c.grd,h.lineWidth=c.wi,h.lineCap=c.lc,h.lineJoin=c.lj,h.miterLimit=c.ml||0):h.fillStyle="fl"===a?c.co:c.grd,l.ctxOpacity(c.coOp),"st"!==a&&"gs"!==a&&h.beginPath(),l.ctxTransform(c.preTransforms.finalTransform.props),n=o.length,e=0;e<n;e+=1){for("st"!==a&&"gs"!==a||(h.beginPath(),c.da&&(h.setLineDash(c.da),h.lineDashOffset=c.do)),i=(s=o[e].trNodes).length,r=0;r<i;r+=1)"m"===s[r].t?h.moveTo(s[r].p[0],s[r].p[1]):"c"===s[r].t?h.bezierCurveTo(s[r].pts[0],s[r].pts[1],s[r].pts[2],s[r].pts[3],s[r].pts[4],s[r].pts[5]):h.closePath();"st"!==a&&"gs"!==a||(h.stroke(),c.da&&h.setLineDash(this.dashResetter))}"st"!==a&&"gs"!==a&&h.fill(c.r),l.restore()}},CVShapeElement.prototype.renderShape=function(t,e,n,r){var i,o;for(o=t,i=e.length-1;i>=0;i-=1)"tr"===e[i].ty?(o=n[i].transform,this.renderShapeTransform(t,o)):"sh"===e[i].ty||"el"===e[i].ty||"rc"===e[i].ty||"sr"===e[i].ty?this.renderPath(e[i],n[i]):"fl"===e[i].ty?this.renderFill(e[i],n[i],o):"st"===e[i].ty?this.renderStroke(e[i],n[i],o):"gf"===e[i].ty||"gs"===e[i].ty?this.renderGradientFill(e[i],n[i],o):"gr"===e[i].ty?this.renderShape(o,e[i].it,n[i].it):e[i].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var n,r,i,o=t.trNodes,s=e.paths,a=s._length;o.length=0;var c=t.transforms.finalTransform;for(i=0;i<a;i+=1){var u=s.shapes[i];if(u&&u.v){for(r=u._length,n=1;n<r;n+=1)1===n&&o.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),o.push({t:"c",pts:c.applyToTriplePoints(u.o[n-1],u.i[n],u.v[n])});1===r&&o.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&r&&(o.push({t:"c",pts:c.applyToTriplePoints(u.o[n-1],u.i[0],u.v[0])}),o.push({t:"z"}))}}t.trNodes=o}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var n,r=e.styledShapes.length;for(n=0;n<r;n+=1)this.renderStyledShape(e.styledShapes[n],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,n){var r=e.style;(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,n){var r,i=e.style;if(!i.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var o,s=this.globalData.canvasContext,a=e.s.v,c=e.e.v;if(1===t.t)r=s.createLinearGradient(a[0],a[1],c[0],c[1]);else{var u=Math.sqrt(Math.pow(a[0]-c[0],2)+Math.pow(a[1]-c[1],2)),l=Math.atan2(c[1]-a[1],c[0]-a[0]),h=e.h.v;h>=1?h=.99:h<=-1&&(h=-.99);var d=u*h,f=Math.cos(l+e.a.v)*d+a[0],p=Math.sin(l+e.a.v)*d+a[1];r=s.createRadialGradient(f,p,0,a[0],a[1],u)}var m=t.g.p,g=e.g.c,y=1;for(o=0;o<m;o+=1)e.g._hasOpacity&&e.g._collapsable&&(y=e.g.o[2*o+1]),r.addColorStop(g[4*o]/100,"rgba("+g[4*o+1]+","+g[4*o+2]+","+g[4*o+3]+","+y+")");i.grd=r}i.coOp=e.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(t,e,n){var r=e.style,i=e.d;i&&(i._mdf||this._isFirstFrame)&&(r.da=i.dashArray,r.do=i.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*n.opacity),(e.w._mdf||this._isFirstFrame)&&(r.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var n=!1;t.sc&&(n=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var r,i,o,s,a,c,u,l,h,d,f,p,m=this.globalData.fontManager.getFontByName(t.f),g=t.l,y=this.mHelper;this.stroke=n,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,i=t.finalText.length;var b=this.data.singleShape,v=.001*t.tr*t.finalSize,w=0,_=0,k=!0,S=0;for(r=0;r<i;r+=1){s=(o=this.globalData.fontManager.getCharData(t.finalText[r],m.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&o.data||{},y.reset(),b&&g[r].n&&(w=-v,_+=t.yOffset,_+=k?1:0,k=!1),h=(u=s.shapes?s.shapes[0].it:[]).length,y.scale(t.finalSize/100,t.finalSize/100),b&&this.applyTextPropertiesToMatrix(t,y,g[r].line,w,_),f=createSizedArray(h-1);var x=0;for(l=0;l<h;l+=1)if("sh"===u[l].ty){for(c=u[l].ks.k.i.length,d=u[l].ks.k,p=[],a=1;a<c;a+=1)1===a&&p.push(y.applyToX(d.v[0][0],d.v[0][1],0),y.applyToY(d.v[0][0],d.v[0][1],0)),p.push(y.applyToX(d.o[a-1][0],d.o[a-1][1],0),y.applyToY(d.o[a-1][0],d.o[a-1][1],0),y.applyToX(d.i[a][0],d.i[a][1],0),y.applyToY(d.i[a][0],d.i[a][1],0),y.applyToX(d.v[a][0],d.v[a][1],0),y.applyToY(d.v[a][0],d.v[a][1],0));p.push(y.applyToX(d.o[a-1][0],d.o[a-1][1],0),y.applyToY(d.o[a-1][0],d.o[a-1][1],0),y.applyToX(d.i[0][0],d.i[0][1],0),y.applyToY(d.i[0][0],d.i[0][1],0),y.applyToX(d.v[0][0],d.v[0][1],0),y.applyToY(d.v[0][0],d.v[0][1],0)),f[x]=p,x+=1}b&&(w+=g[r].l,w+=v),this.textSpans[S]?this.textSpans[S].elem=f:this.textSpans[S]={elem:f},S+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,n,r,i,o,s=this.canvasContext;s.font=this.values.fValue,s.lineCap="butt",s.lineJoin="miter",s.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var a,c=this.textAnimator.renderedLetters,u=this.textProperty.currentData.l;e=u.length;var l,h,d=null,f=null,p=null;for(t=0;t<e;t+=1)if(!u[t].n){if((a=c[t])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(a.p),this.globalData.renderer.ctxOpacity(a.o)),this.fill){for(a&&a.fc?d!==a.fc&&(d=a.fc,s.fillStyle=a.fc):d!==this.values.fill&&(d=this.values.fill,s.fillStyle=this.values.fill),r=(l=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(o=(h=l[n]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(h[i],h[i+1],h[i+2],h[i+3],h[i+4],h[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(a&&a.sw?p!==a.sw&&(p=a.sw,s.lineWidth=a.sw):p!==this.values.sWidth&&(p=this.values.sWidth,s.lineWidth=this.values.sWidth),a&&a.sc?f!==a.sc&&(f=a.sc,s.strokeStyle=a.sc):f!==this.values.stroke&&(f=this.values.stroke,s.strokeStyle=this.values.stroke),r=(l=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(o=(h=l[n]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(h[i],h[i+1],h[i+2],h[i+3],h[i+4],h[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}
1a&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,n,r=t.getContext("2d"),i=this.img.width,o=this.img.height,s=i/o,a=this.assetData.w/this.assetData.h,c=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>a&&"xMidYMid slice"===c||s<a&&"xMidYMid slice"!==c?e=(n=o)*a:n=(e=i)/a,r.drawImage(this.img,(i-e)/2,(o-n)/2,e,n,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){if(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(t);var e=this.contextData.cTr.props;this.transformMat.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var n=this.contextData.cTr.props;this.canvasContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])}else this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=t<0?0:t,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(t){if(this.renderConfig.clearCanvas){t&&this.canvasContext.save();var e,n=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var r=this.contextData.saved[this.contextData.cArrPos];for(e=0;e<16;e+=1)r[e]=n[e];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var e,n=this.contextData.saved[this.contextData.cArrPos],r=this.contextData.cTr.props;for(e=0;e<16;e+=1)r[e]=n[e];this.canvasContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),n=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=n,this.globalData.currentGlobalAlpha!==n&&(this.canvasContext.globalAlpha=n,this.globalData.currentGlobalAlpha=n)}
vendor: 4,845 bytes, line 1
1else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var n="0px 0px 0px";e.transformOrigin=n,e.mozTransformOrigin=n,e.webkitTransformOrigin=n,e["-webkit-transform"]=n,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){var n,r,i,o;if(this.reset(),t?(n=t,r=e,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=r*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var s=this.renderConfig.preserveAspectRatio.split(" "),a=s[1]||"meet",c=s[0]||"xMidYMid",u=c.substr(0,4),l=c.substr(4);i=n/r,(o=this.transformCanvas.w/this.transformCanvas.h)>i&&"meet"===a||o<i&&"slice"===a?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===u&&(o<i&&"meet"===a||o>i&&"slice"===a)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===u&&(o<i&&"meet"===a||o>i&&"slice"===a)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===l&&(o>i&&"meet"===a||o<i&&"slice"===a)?(r-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===l&&(o>i&&"meet"===a||o<i&&"slice"===a)?(r-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var n;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),n=0;n<r;n+=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(t-this.layers[n].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();
vendor: 51,840 bytes, line 1
1!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var n=this.createItem(this.layers[t],this,this.globalData);e[t]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var n,r=t.length;for(n=0;n<r;n+=1)e=t[n].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var n,r,i,o,s,a=t.sh.v,c=t.transformers,u=a._length;if(!(u<=1)){for(n=0;n<u-1;n+=1)r=this.getTransformedPoint(c,a.v[n]),i=this.getTransformedPoint(c,a.o[n]),o=this.getTransformedPoint(c,a.i[n+1]),s=this.getTransformedPoint(c,a.v[n+1]),this.checkBounds(r,i,o,s,e);a.c&&(r=this.getTransformedPoint(c,a.v[n]),i=this.getTransformedPoint(c,a.o[n]),o=this.getTransformedPoint(c,a.i[0]),s=this.getTransformedPoint(c,a.v[0]),this.checkBounds(r,i,o,s,e))}},HShapeElement.prototype.checkBounds=function(t,e,n,r,i){this.getBoundsOfCurve(t,e,n,r);var o=this.shapeBoundingBox;i.x=bmMin(o.left,i.x),i.xMax=bmMax(o.right,i.xMax),i.y=bmMin(o.top,i.y),i.yMax=bmMax(o.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,n,r){for(var i,o,s,a,c,u,l,h=[[t[0],r[0]],[t[1],r[1]]],d=0;d<2;++d)o=6*t[d]-12*e[d]+6*n[d],i=-3*t[d]+9*e[d]-9*n[d]+3*r[d],s=3*e[d]-3*t[d],o|=0,s|=0,0===(i|=0)&&0===o||(0===i?(a=-s/o)>0&&a<1&&h[d].push(this.calculateF(a,t,e,n,r,d)):(c=o*o-4*s*i)>=0&&((u=(-o+bmSqrt(c))/(2*i))>0&&u<1&&h[d].push(this.calculateF(u,t,e,n,r,d)),(l=(-o-bmSqrt(c))/(2*i))>0&&l<1&&h[d].push(this.calculateF(l,t,e,n,r,d))));this.shapeBoundingBox.left=bmMin.apply(null,h[0]),this.shapeBoundingBox.top=bmMin.apply(null,h[1]),this.shapeBoundingBox.right=bmMax.apply(null,h[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,h[1])},HShapeElement.prototype.calculateF=function(t,e,n,r,i,o){return bmPow(1-t,3)*e[o]+3*bmPow(1-t,2)*t*n[o]+3*(1-t)*bmPow(t,2)*r[o]+bmPow(t,3)*i[o]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var n,r=t.length;for(n=0;n<r;n+=1)t[n]&&t[n].sh?this.calculateShapeBoundingBox(t[n],e):t[n]&&t[n].it?this.calculateBoundingBox(t[n].it,e):t[n]&&t[n].style&&t[n].w&&this.expandStrokeBoundingBox(t[n].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var n=0;if(t.keyframes){for(var r=0;r<t.keyframes.length;r+=1){var i=t.keyframes[r].s;i>n&&(n=i)}n*=t.mult}else n=t.v*t.mult;e.x-=n,e.xMax+=n,e.y-=n,e.yMax+=n},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var n=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),n=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),n=!0),n||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=i,r.webkitTransform=i}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,n=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=n,e.color=n,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var r,i,o=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",o.fClass)this.innerElem.className=o.fClass;else{e.fontFamily=o.fFamily;var s=t.fWeight,a=t.fStyle;e.fontStyle=a,e.fontWeight=s}var c,u,l,h=t.l;i=h.length;var d,f=this.mHelper,p="",m=0;for(r=0;r<i;r+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?c=this.textPaths[m]:((c=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),c.setAttribute("stroke-linejoin",lineJoinEnum[2]),c.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?l=(u=this.textSpans[m]).children[0]:((u=createTag("div")).style.lineHeight=0,(l=createNS("svg")).appendChild(c),styleDiv(u)))):this.isMasked?c=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(u=this.textSpans[m],c=this.textPaths[m]):(styleDiv(u=createTag("span")),styleDiv(c=createTag("span")),u.appendChild(c)),this.globalData.fontManager.chars){var g,y=this.globalData.fontManager.getCharData(t.finalText[r],o.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(g=y?y.data:null,f.reset(),g&&g.shapes&&g.shapes.length&&(d=g.shapes[0].it,f.scale(t.finalSize/100,t.finalSize/100),p=this.createPathShape(f,d),c.setAttribute("d",p)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(u),g&&g.shapes){document.body.appendChild(l);var b=l.getBBox();l.setAttribute("width",b.width+2),l.setAttribute("height",b.height+2),l.setAttribute("viewBox",b.x-1+" "+(b.y-1)+" "+(b.width+2)+" "+(b.height+2));var v=l.style,w="translate("+(b.x-1)+"px,"+(b.y-1)+"px)";v.transform=w,v.webkitTransform=w,h[r].yOffset=b.y-1}else l.setAttribute("width",1),l.setAttribute("height",1);u.appendChild(l)}}else if(c.textContent=h[r].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(u);var _=c.style,k="translate3d(0,"+-t.finalSize/1.2+"px,0)";_.transform=k,_.webkitTransform=k}this.isMasked?this.textSpans[m]=c:this.textSpans[m]=u,this.textSpans[m].style.display="block",this.textPaths[m]=c,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var n,r,i,o,s,a=0,c=this.textAnimator.renderedLetters,u=this.textProperty.currentData.l;for(r=u.length,n=0;n<r;n+=1)u[n].n?a+=1:(o=this.textSpans[n],s=this.textPaths[n],i=c[a],a+=1,i._mdf.m&&(this.isMasked?o.setAttribute("transform",i.m):(o.style.webkitTransform=i.m,o.style.transform=i.m)),o.style.opacity=i.o,i.sw&&i._mdf.sw&&s.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&s.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(s.setAttribute("fill",i.fc),s.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var l=this.innerElem.getBBox();if(this.currentBBox.w!==l.width&&(this.currentBBox.w=l.width,this.svgElement.setAttribute("width",l.width)),this.currentBBox.h!==l.height&&(this.currentBBox.h=l.height,this.svgElement.setAttribute("height",l.height)),this.currentBBox.w!==l.width+2||this.currentBBox.h!==l.height+2||this.currentBBox.x!==l.x-1||this.currentBBox.y!==l.y-1){this.currentBBox.w=l.width+2,this.currentBBox.h=l.height+2,this.currentBBox.x=l.x-1,this.currentBBox.y=l.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=h,t.webkitTransform=h}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,n,r,i=this.comp.threeDElements.length;for(t=0;t<i;t+=1)if("3d"===(e=this.comp.threeDElements[t]).type){n=e.perspectiveElem.style,r=e.container.style;var o=this.pe.v+"px",s="0px 0px 0px",a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=o,n.webkitPerspective=o,r.transformOrigin=s,r.mozTransformOrigin=s,r.webkitTransformOrigin=s,n.transform=a,n.webkitTransform=a}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,n=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)n=this.hierarchy[t].finalTransform.mProp._mdf||n;if(n||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(t=e=this.hierarchy.length-1;t>=0;t-=1){var r=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),s=[i[0]/o,i[1]/o,i[2]/o],a=Math.sqrt(s[2]*s[2]+s[0]*s[0]),c=Math.atan2(s[1],a),u=Math.atan2(s[0],-s[2]);this.mat.rotateY(u).rotateX(-c)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var l=!this._prevMat.equals(this.mat);if((l||this.pe._mdf)&&this.comp.threeDElements){var h,d,f;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if("3d"===(h=this.comp.threeDElements[t]).type){if(l){var p=this.mat.toCSS();(f=h.container.style).transform=p,f.webkitTransform=p}this.pe._mdf&&((d=h.perspectiveElem.style).perspective=this.pe.v+"px",d.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){var n=t.getBaseElement();if(n){var r=this.layers[e];if(r.ddd&&this.supports3d)this.addTo3dContainer(n,e);else if(this.threeDElements)this.addTo3dContainer(n,e);else{for(var i,o,s=0;s<e;)this.elements[s]&&!0!==this.elements[s]&&this.elements[s].getBaseElement&&(o=this.elements[s],i=(this.layers[s].ddd?this.getThreeDContainerByPos(s):o.getBaseElement())||i),s+=1;i?r.ddd&&this.supports3d||this.layerElement.insertBefore(n,i):r.ddd&&this.supports3d||this.layerElement.appendChild(n)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,n=this.threeDElements.length;e<n;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var n,r,i=createTag("div");styleDiv(i);var o=createTag("div");if(styleDiv(o),"3d"===e){(n=i.style).width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var s="50% 50%";n.webkitTransformOrigin=s,n.mozTransformOrigin=s,n.transformOrigin=s;var a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=o.style).transform=a,r.webkitTransform=a}i.appendChild(o);var c={container:o,perspectiveElem:i,startPos:t,endPos:t,type:e};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var t,e,n=this.layers.length,r="";for(t=0;t<n;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?("3d"!==r&&(r="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):("2d"!==r&&(r="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(n=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var n=0,r=this.threeDElements.length;n<r;){if(e<=this.threeDElements[n].endPos){for(var i,o=this.threeDElements[n].startPos;o<e;)this.elements[o]&&this.elements[o].getBaseElement&&(i=this.elements[o].getBaseElement()),o+=1;i?this.threeDElements[n].container.insertBefore(t,i):this.threeDElements[n].container.appendChild(t);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),n=this.animationItem.wrapper,r=e.style;r.width=t.w+"px",r.height=t.h+"px",this.resizerElem=e,styleDiv(e),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),n.appendChild(e),r.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var o=createNS("defs");i.appendChild(o),this.data=t,this.setupGlobalData(t,i),this.globalData.defs=o,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,n,r,i=this.animationItem.wrapper.offsetWidth,o=this.animationItem.wrapper.offsetHeight,s=i/o;this.globalData.compSize.w/this.globalData.compSize.h>s?(t=i/this.globalData.compSize.w,e=i/this.globalData.compSize.w,n=0,r=(o-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(t=o/this.globalData.compSize.h,e=o/this.globalData.compSize.h,n=(i-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,r=0);var a=this.resizerElem.style;a.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+n+","+r+",0,1)",a.transform=a.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,n=this.globalData.compSize.h,r=this.threeDElements.length;for(t=0;t<r;t+=1){var i=this.threeDElements[t].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(n,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,n=t.length,r=createTag("div");for(e=0;e<n;e+=1)if(t[e].xt){var i=this.createComp(t[e],r,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var n,r=0;r<e;)this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(t,n):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(t){function e(e){for(var n=0,r=t.layers.length;n<r;){if(t.layers[n].nm===e||t.layers[n].ind===e)return t.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e},Expressions=function(){var t={initExpressions:function(t){var e=0,n=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0===(e-=1)&&function(){var t,e=n.length;for(t=0;t<e;t+=1)n[t].release();n.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===n.indexOf(t)&&n.push(t)}}};return t}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var n,r=createSizedArray(e.viewData.length),i=e.viewData.length;for(n=0;n<i;n+=1)r[n]=new t(e.viewData[n],e.masksProperties[n]);return function(t){for(n=0;n<i;){if(e.masksProperties[n].nm===t)return r[n];n+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function n(t,e,n){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(r){if(!t.numKeys)return 0;var i="";i="s"in e.keyframes[r-1]?e.keyframes[r-1].s:"e"in e.keyframes[r-2]?e.keyframes[r-2].e:e.keyframes[r-2].s;var o="unidimensional"===n?new Number(i):Object.assign({},i);return o.time=e.keyframes[r-1].t/e.elem.comp.globalData.frameRate,o.value="unidimensional"===n?i[0]:i,o},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function r(){return t}return function(i){return i?"unidimensional"===i.propType?function(e){e&&"pv"in e||(e=t);var r=1/e.mult,i=e.pv*r,o=new Number(i);return o.value=i,n(o,e,"unidimensional"),function(){return e.k&&e.getValue(),i=e.v*r,o.value!==i&&((o=new Number(i)).value=i,n(o,e,"unidimensional")),o}}(i):function(t){t&&"pv"in t||(t=e);var r=1/t.mult,i=t.data&&t.data.l||t.pv.length,o=createTypedArray("float32",i),s=createTypedArray("float32",i);return o.value=s,n(o,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<i;e+=1)s[e]=t.v[e]*r,o[e]=s[e];return o}}(i):r}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var n,r,i,o;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?o=ExpressionPropertyInterface(t.p):(n=ExpressionPropertyInterface(t.px),r=ExpressionPropertyInterface(t.py),t.pz&&(i=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?o():[n(),r(),i?i():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var n=this.getMatrix(e);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.applyPoint(n,t)}function n(t,e){var n=this.getMatrix(e);return this.applyPoint(n,t)}function r(t,e){var n=this.getMatrix(e);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.invertPoint(n,t)}function i(t,e){var n=this.getMatrix(e);return this.invertPoint(n,t)}function o(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function s(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function a(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function c(){return[1,1,1,1]}return function(u){var l;function h(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return h.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return l;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return h.effect;case"ADBE Text Properties":return h.textInterface;default:return null}}h.getMatrix=t,h.invertPoint=s,h.applyPoint=o,h.toWorld=n,h.toWorldVec=e,h.fromWorld=i,h.fromWorldVec=r,h.toComp=n,h.fromComp=a,h.sampleImage=c,h.sourceRectAtTime=u.sourceRectAtTime.bind(u),h._elem=u;var d=getDescriptor(l=TransformExpressionInterface(u.finalTransform.mProp),"anchorPoint");return Object.defineProperties(h,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(l,"rotation"),scale:getDescriptor(l,"scale"),position:getDescriptor(l,"position"),opacity:getDescriptor(l,"opacity"),anchorPoint:d,anchor_point:d,transform:{get:function(){return l}},active:{get:function(){return u.isInRange}}}),h.startTime=u.data.st,h.index=u.data.ind,h.source=u.data.refId,h.height=0===u.data.ty?u.data.h:100,h.width=0===u.data.ty?u.data.w:100,h.inPoint=u.data.ip/u.comp.globalData.frameRate,h.outPoint=u.data.op/u.comp.globalData.frameRate,h._name=u.data.nm,h.registerMaskInterface=function(t){h.mask=new MaskManagerInterface(t,u)},h.registerEffectsInterface=function(t){h.effect=t},h}}(),propertyGroupFactory=function(t,e){return function(n){return(n=void 0===n?1:n)<=0?t:e(n-1)}},PropertyInterface=function(t,e){var n={_name:t};return function(t){return(t=void 0===t?1:t)<=0?n:e(t-1)}},EffectsExpressionInterface=function(){function t(n,r,i,o){function s(t){for(var e=n.ef,r=0,i=e.length;r<i;){if(t===e[r].nm||t===e[r].mn||t===e[r].ix)return 5===e[r].ty?u[r]:u[r]();r+=1}throw new Error}var a,c=propertyGroupFactory(s,i),u=[],l=n.ef.length;for(a=0;a<l;a+=1)5===n.ef[a].ty?u.push(t(n.ef[a],r.effectElements[a],r.effectElements[a].propertyGroup,o)):u.push(e(r.effectElements[a],n.ef[a].ty,o,c));return"ADBE Color Control"===n.mn&&Object.defineProperty(s,"color",{get:function(){return u[0]()}}),Object.defineProperties(s,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:c}}),s.enabled=0!==n.en,s.active=s.enabled,s}function e(t,e,n,r){var i=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===e?n.comp.compInterface(t.p.v):i()}}return{createEffectsInterface:function(e,n){if(e.effectsManager){var r,i=[],o=e.data.ef,s=e.effectsManager.effectElements.length;for(r=0;r<s;r+=1)i.push(t(o[r],e.effectsManager.effectElements[r],n,e));var a=e.data.ef||[],c=function(t){for(r=0,s=a.length;r<s;){if(t===a[r].nm||t===a[r].mn||t===a[r].ix)return i[r];r+=1}return null};return Object.defineProperty(c,"numProperties",{get:function(){return a.length}}),c}return null}}}(),ShapePathInterface=function(t,e,n){var r=e.sh;function i(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?i.path:null}var o=propertyGroupFactory(i,n);return r.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(i,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:n}}),i},ShapeExpressionInterface=function(){function t(t,s,d){var f,p=[],m=t?t.length:0;for(f=0;f<m;f+=1)"gr"===t[f].ty?p.push(e(t[f],s[f],d)):"fl"===t[f].ty?p.push(n(t[f],s[f],d)):"st"===t[f].ty?p.push(i(t[f],s[f],d)):"tm"===t[f].ty?p.push(o(t[f],s[f],d)):"tr"===t[f].ty||("el"===t[f].ty?p.push(a(t[f],s[f],d)):"sr"===t[f].ty?p.push(c(t[f],s[f],d)):"sh"===t[f].ty?p.push(ShapePathInterface(t[f],s[f],d)):"rc"===t[f].ty?p.push(u(t[f],s[f],d)):"rd"===t[f].ty?p.push(l(t[f],s[f],d)):"rp"===t[f].ty?p.push(h(t[f],s[f],d)):"gf"===t[f].ty?p.push(r(t[f],s[f],d)):p.push((t[f],s[f],function(){return null})));return p}function e(e,n,r){var i=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,r);var o=function(e,n,r){var i,o=function(t){for(var e=0,n=i.length;e<n;){if(i[e]._name===t||i[e].mn===t||i[e].propertyIndex===t||i[e].ix===t||i[e].ind===t)return i[e];e+=1}return"number"===typeof t?i[t-1]:null};o.propertyGroup=propertyGroupFactory(o,r),i=t(e.it,n.it,o.propertyGroup),o.numProperties=i.length;var a=s(e.it[e.it.length-1],n.it[n.it.length-1],o.propertyGroup);return o.transform=a,o.propertyIndex=e.cix,o._name=e.nm,o}(e,n,i.propertyGroup),a=s(e.it[e.it.length-1],n.it[n.it.length-1],i.propertyGroup);return i.content=o,i.transform=a,Object.defineProperty(i,"_name",{get:function(){return e.nm}}),i.numProperties=e.np,i.propertyIndex=e.ix,i.nm=e.nm,i.mn=e.mn,i}function n(t,e,n){function r(t){return"Color"===t||"color"===t?r.color:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",n)),e.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function r(t,e,n){function r(t){return"Start Point"===t||"start point"===t?r.startPoint:"End Point"===t||"end point"===t?r.endPoint:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",n)),e.e.setGroupProperty(PropertyInterface("End Point",n)),e.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function i(t,e,n){var r,i=propertyGroupFactory(u,n),o=propertyGroupFactory(c,i);function s(n){Object.defineProperty(c,t.d[n].nm,{get:ExpressionPropertyInterface(e.d.dataProps[n].p)})}var a=t.d?t.d.length:0,c={};for(r=0;r<a;r+=1)s(r),e.d.dataProps[r].p.setGroupProperty(o);function u(t){return"Color"===t||"color"===t?u.color:"Opacity"===t||"opacity"===t?u.opacity:"Stroke Width"===t||"stroke width"===t?u.strokeWidth:null}return Object.defineProperties(u,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return c}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),e.w.setGroupProperty(PropertyInterface("Stroke Width",i)),u}function o(t,e,n){function r(e){return e===t.e.ix||"End"===e||"end"===e?r.end:e===t.s.ix?r.start:e===t.o.ix?r.offset:null}var i=propertyGroupFactory(r,n);return r.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",i)),e.e.setGroupProperty(PropertyInterface("End",i)),e.o.setGroupProperty(PropertyInterface("Offset",i)),r.propertyIndex=t.ix,r.propertyGroup=n,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),r.mn=t.mn,r}function s(t,e,n){function r(e){return t.a.ix===e||"Anchor Point"===e?r.anchorPoint:t.o.ix===e||"Opacity"===e?r.opacity:t.p.ix===e||"Position"===e?r.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?r.rotation:t.s.ix===e||"Scale"===e?r.scale:t.sk&&t.sk.ix===e||"Skew"===e?r.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?r.skewAxis:null}var i=propertyGroupFactory(r,n);return e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),e.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),r.ty="tr",r.mn=t.mn,r.propertyGroup=n,r}function a(t,e,n){function r(e){return t.p.ix===e?r.position:t.s.ix===e?r.size:null}var i=propertyGroupFactory(r,n);r.propertyIndex=t.ix;var o="tm"===e.sh.ty?e.sh.prop:e.sh;return o.s.setGroupProperty(PropertyInterface("Size",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(o.s)},position:{get:ExpressionPropertyInterface(o.p)},_name:{value:t.nm}}),r.mn=t.mn,r}function c(t,e,n){function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.rotation:t.pt.ix===e?r.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?r.outerRadius:t.os.ix===e?r.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?r.innerRoundness:null:r.innerRadius}var i=propertyGroupFactory(r,n),o="tm"===e.sh.ty?e.sh.prop:e.sh;return r.propertyIndex=t.ix,o.or.setGroupProperty(PropertyInterface("Outer Radius",i)),o.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),o.pt.setGroupProperty(PropertyInterface("Points",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),t.ir&&(o.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),o.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(o.p)},rotation:{get:ExpressionPropertyInterface(o.r)},points:{get:ExpressionPropertyInterface(o.pt)},outerRadius:{get:ExpressionPropertyInterface(o.or)},outerRoundness:{get:ExpressionPropertyInterface(o.os)},innerRadius:{get:ExpressionPropertyInterface(o.ir)},innerRoundness:{get:ExpressionPropertyInterface(o.is)},_name:{value:t.nm}}),r.mn=t.mn,r}function u(t,e,n){function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?r.size:null}var i=propertyGroupFactory(r,n),o="tm"===e.sh.ty?e.sh.prop:e.sh;return r.propertyIndex=t.ix,o.p.setGroupProperty(PropertyInterface("Position",i)),o.s.setGroupProperty(PropertyInterface("Size",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(o.p)},roundness:{get:ExpressionPropertyInterface(o.r)},size:{get:ExpressionPropertyInterface(o.s)},_name:{value:t.nm}}),r.mn=t.mn,r}function l(t,e,n){function r(e){return t.r.ix===e||"Round Corners 1"===e?r.radius:null}var i=propertyGroupFactory(r,n),o=e;return r.propertyIndex=t.ix,o.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(o.rd)},_name:{value:t.nm}}),r.mn=t.mn,r}function h(t,e,n){function r(e){return t.c.ix===e||"Copies"===e?r.copies:t.o.ix===e||"Offset"===e?r.offset:null}var i=propertyGroupFactory(r,n),o=e;return r.propertyIndex=t.ix,o.c.setGroupProperty(PropertyInterface("Copies",i)),o.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(o.c)},offset:{get:ExpressionPropertyInterface(o.o)},_name:{value:t.nm}}),r.mn=t.mn,r}return function(e,n,r){var i;function o(t){if("number"===typeof t)return 0===(t=void 0===t?1:t)?r:i[t-1];for(var e=0,n=i.length;e<n;){if(i[e]._name===t)return i[e];e+=1}return null}return o.propertyGroup=propertyGroupFactory(o,(function(){return r})),i=t(e,n,o.propertyGroup),o.numProperties=i.length,o._name="Contents",o}}(),TextExpressionInterface=function(t){var e,n;function r(t){return"ADBE Text Document"===t?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){t.textProperty.getValue();var r=t.textProperty.currentData.t;return r!==e&&(t.textProperty.currentData.t=e,(n=new String(r)).value=r||new String(r)),n}}),r};function _typeof$2(t){return _typeof$2="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(t)}var FootageInterface=function(){var t=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",n=t.getFootageData();function r(t){if(n[t])return e=t,"object"===_typeof$2(n=n[t])?r:n;var i=t.indexOf(e);if(-1!==i){var o=parseInt(t.substr(i+e.length),10);return"object"===_typeof$2(n=n[o])?r:n}return""}return function(){return e="",n=t.getFootageData(),r}}(t),e};return function(e){function n(t){return"Data"===t?n.dataInterface:null}return n._name="Data",n.dataInterface=t(e),n}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}function _typeof$1(t){return _typeof$1="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(t)}function seedRandom(t,e){var n=this,r=256,i=e.pow(r,6),o=e.pow(2,52),s=2*o,a=255;function c(t){var e,n=t.length,i=this,o=0,s=i.i=i.j=0,c=i.S=[];for(n||(t=[n++]);o<r;)c[o]=o++;for(o=0;o<r;o++)c[o]=c[s=a&s+t[o%n]+(e=c[o])],c[s]=e;i.g=function(t){for(var e,n=0,o=i.i,s=i.j,c=i.S;t--;)e=c[o=a&o+1],n=n*r+c[a&(c[o]=c[s=a&s+e])+(c[s]=e)];return i.i=o,i.j=s,n}}function u(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function l(t,e){var n,r=[],i=_typeof$1(t);if(e&&"object"==i)for(n in t)try{r.push(l(t[n],e-1))}catch(o){}return r.length?r:"string"==i?t:t+"\0"}function h(t,e){for(var n,r=t+"",i=0;i<r.length;)e[a&i]=a&(n^=19*e[a&i])+r.charCodeAt(i++);return d(e)}function d(t){return String.fromCharCode.apply(0,t)}e.seedrandom=function(a,f,p){var m=[],g=h(l((f=!0===f?{entropy:!0}:f||{}).entropy?[a,d(t)]:null===a?function(){try{var e=new Uint8Array(r);return(n.crypto||n.msCrypto).getRandomValues(e),d(e)}catch(s){var i=n.navigator,o=i&&i.plugins;return[+new Date,n,o,n.screen,d(t)]}}():a,3),m),y=new c(m),b=function(){for(var t=y.g(6),e=i,n=0;t<o;)t=(t+n)*r,e*=r,n=y.g(1);for(;t>=s;)t/=2,e/=2,n>>>=1;return(t+n)/e};return b.int32=function(){return 0|y.g(4)},b.quick=function(){return y.g(4)/4294967296},b.double=b,h(d(y.S),t),(f.pass||p||function(t,n,r,i){return i&&(i.S&&u(i,y),t.state=function(){return u(y,{})}),r?(e.random=t,n):t})(b,g,"global"in f?f.global:this==e,f.state)},h(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof(t){return _typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||"boolean"===t||"string"===t||e instanceof Number}function $bm_neg(t){var e=_typeof(t);if("number"===e||"boolean"===e||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){var n,r=t.length,i=[];for(n=0;n<r;n+=1)i[n]=-t[n];return i}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var n=_typeof(t),r=_typeof(e);if("string"===n||"string"===r)return t+e;if(isNumerable(n,t)&&isNumerable(r,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(n,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var i=0,o=t.length,s=e.length,a=[];i<o||i<s;)("number"===typeof t[i]||t[i]instanceof Number)&&("number"===typeof e[i]||e[i]instanceof Number)?a[i]=t[i]+e[i]:a[i]=void 0===e[i]?t[i]:t[i]||e[i],i+=1;return a}return 0}var add=sum;function sub(t,e){var n=_typeof(t),r=_typeof(e);if(isNumerable(n,t)&&isNumerable(r,e))return"string"===n&&(t=parseInt(t,10)),"string"===r&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(n,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var i=0,o=t.length,s=e.length,a=[];i<o||i<s;)("number"===typeof t[i]||t[i]instanceof Number)&&("number"===typeof e[i]||e[i]instanceof Number)?a[i]=t[i]-e[i]:a[i]=void 0===e[i]?t[i]:t[i]||e[i],i+=1;return a}return 0}function mul(t,e){var n,r,i,o=_typeof(t),s=_typeof(e);if(isNumerable(o,t)&&isNumerable(s,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(s,e)){for(i=t.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=t[r]*e;return n}if(isNumerable(o,t)&&$bm_isInstanceOfArray(e)){for(i=e.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=t*e[r];return n}return 0}function div(t,e){var n,r,i,o=_typeof(t),s=_typeof(e);if(isNumerable(o,t)&&isNumerable(s,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(s,e)){for(i=t.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=t[r]/e;return n}if(isNumerable(o,t)&&$bm_isInstanceOfArray(e)){for(i=e.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=t/e[r];return n}return 0}function mod(t,e){return"string"===typeof t&&(t=parseInt(t,10)),"string"===typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,n){if(e>n){var r=n;n=e,e=r}return Math.min(Math.max(t,e),n)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"===typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var n;e||(e=helperLengthArray);var r=Math.min(t.length,e.length),i=0;for(n=0;n<r;n+=1)i+=Math.pow(e[n]-t[n],2);return Math.sqrt(i)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,n,r=t[0],i=t[1],o=t[2],s=Math.max(r,i,o),a=Math.min(r,i,o),c=(s+a)/2;if(s===a)e=0,n=0;else{var u=s-a;switch(n=c>.5?u/(2-s-a):u/(s+a),s){case r:e=(i-o)/u+(i<o?6:0);break;case i:e=(o-r)/u+2;break;case o:e=(r-i)/u+4}e/=6}return[e,n,c,t[3]]}function hue2rgb(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function hslToRgb(t){var e,n,r,i=t[0],o=t[1],s=t[2];if(0===o)e=s,r=s,n=s;else{var a=s<.5?s*(1+o):s+o-s*o,c=2*s-a;e=hue2rgb(c,a,i+1/3),n=hue2rgb(c,a,i),r=hue2rgb(c,a,i-1/3)}return[e,n,r,t[3]]}function linear(t,e,n,r,i){if(void 0!==r&&void 0!==i||(r=e,i=n,e=0,n=1),n<e){var o=n;n=e,e=o}if(t<=e)return r;if(t>=n)return i;var s,a=n===e?0:(t-e)/(n-e);if(!r.length)return r+(i-r)*a;var c=r.length,u=createTypedArray("float32",c);for(s=0;s<c;s+=1)u[s]=r[s]+(i[s]-r[s])*a;return u}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var n,r=e.length;t||(t=createTypedArray("float32",r));var i=createTypedArray("float32",r),o=BMMath.random();for(n=0;n<r;n+=1)i[n]=t[n]+o*(e[n]-t[n]);return i}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,n,r){var i,o=t.length,s=shapePool.newElement();s.setPathData(!!r,o);var a,c,u=[0,0];for(i=0;i<o;i+=1)a=e&&e[i]?e[i]:u,c=n&&n[i]?n[i]:u,s.setTripleAt(t[i][0],t[i][1],c[0]+t[i][0],c[1]+t[i][1],a[0]+t[i][0],a[1]+t[i][1],i,!0);return s}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){var n,r,i=this.pv.length?this.pv.length:1,o=createTypedArray("float32",i),s=Math.floor(5*time);for(n=0,r=0;n<s;){for(r=0;r<i;r+=1)o[r]+=-e+2*e*BMMath.random();n+=1}var a=5*time,c=a-Math.floor(a),u=createTypedArray("float32",i);if(i>1){for(r=0;r<i;r+=1)u[r]=this.pv[r]+o[r]+(-e+2*e*BMMath.random())*c;return u}return this.pv+o[0]+(-e+2*e*BMMath.random())*c}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));
vendor: 16,581 bytes, line 1
1var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var n=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],r=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads;return[-Math.atan2(n[1],n[2])/degToRads,r,0]}function easeOut(t,e,n,r,i){return applyEase(easeOutBez,t,e,n,r,i)}function easeIn(t,e,n,r,i){return applyEase(easeInBez,t,e,n,r,i)}function ease(t,e,n,r,i){return applyEase(easeInOutBez,t,e,n,r,i)}function applyEase(t,e,n,r,i,o){void 0===i?(i=n,o=r):e=(e-n)/(r-n),e>1?e=1:e<0&&(e=0);var s=t(e);if($bm_isInstanceOfArray(i)){var a,c=i.length,u=createTypedArray("float32",c);for(a=0;a<c;a+=1)u[a]=(o[a]-i[a])*s+i[a];return u}return(o-i)*s+i}function nearestKey(t){var e,n,r,i=data.k.length;if(data.k.length&&"number"!==typeof data.k[0])if(n=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)n=1,r=data.k[0].t;else{for(e=0;e<i-1;e+=1){if(t===data.k[e].t){n=e+1,r=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(n=e+2,r=data.k[e+1].t):(n=e+1,r=data.k[e].t);break}}-1===n&&(n=e+1,r=data.k[e].t)}else n=0,r=0;var o={};return o.index=n,o.time=r/elem.comp.globalData.frameRate,o}function key(t){var e,n,r;if(!data.k.length||"number"===typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(r=i.length,n=0;n<r;n+=1)e[n]=i[n],e.value[n]=i[n];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"===typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"===typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),expressionHelpers={searchExpressions:function(t,e,n){e.x&&(n.k=!0,n.x=!0,n.initiateExpression=ExpressionManager.initiateExpression,n.effectsSequence.push(n.initiateExpression(t,e,n).bind(n)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),n=this.getValueAtTime(t+-.01),r=0;if(e.length){var i;for(i=0;i<e.length;i+=1)r+=Math.pow(n[i]-e[i],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,n,r=-.001,i=this.getValueAtTime(t),o=this.getValueAtTime(t+r);if(i.length)for(e=createTypedArray("float32",i.length),n=0;n<i.length;n+=1)e[n]=(o[n]-i[n])/r;else e=(o-i)/r;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(t,e,n){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var r,i,o,s,a,c=this.comp.renderedFrame,u=this.keyframes,l=u[u.length-1].t;if(c<=l)return this.pv;if(n?i=l-(r=e?Math.abs(l-this.elem.comp.globalData.frameRate*e):Math.max(0,l-this.elem.data.ip)):((!e||e>u.length-1)&&(e=u.length-1),r=l-(i=u[u.length-1-e].t)),"pingpong"===t){if(Math.floor((c-i)/r)%2!==0)return this.getValueAtTime((r-(c-i)%r+i)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var h=this.getValueAtTime(i/this.comp.globalData.frameRate,0),d=this.getValueAtTime(l/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((c-i)%r+i)/this.comp.globalData.frameRate,0),p=Math.floor((c-i)/r);if(this.pv.length){for(s=(a=new Array(h.length)).length,o=0;o<s;o+=1)a[o]=(d[o]-h[o])*p+f[o];return a}return(d-h)*p+f}if("continue"===t){var m=this.getValueAtTime(l/this.comp.globalData.frameRate,0),g=this.getValueAtTime((l-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(s=(a=new Array(m.length)).length,o=0;o<s;o+=1)a[o]=m[o]+(m[o]-g[o])*((c-l)/this.comp.globalData.frameRate)/5e-4;return a}return m+(c-l)/.001*(m-g)}}return this.getValueAtTime(((c-i)%r+i)/this.comp.globalData.frameRate,0)}function e(t,e,n){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var r,i,o,s,a,c=this.comp.renderedFrame,u=this.keyframes,l=u[0].t;if(c>=l)return this.pv;if(n?i=l+(r=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-l)):((!e||e>u.length-1)&&(e=u.length-1),r=(i=u[e].t)-l),"pingpong"===t){if(Math.floor((l-c)/r)%2===0)return this.getValueAtTime(((l-c)%r+l)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var h=this.getValueAtTime(l/this.comp.globalData.frameRate,0),d=this.getValueAtTime(i/this.comp.globalData.frameRate,0),f=this.getValueAtTime((r-(l-c)%r+l)/this.comp.globalData.frameRate,0),p=Math.floor((l-c)/r)+1;if(this.pv.length){for(s=(a=new Array(h.length)).length,o=0;o<s;o+=1)a[o]=f[o]-(d[o]-h[o])*p;return a}return f-(d-h)*p}if("continue"===t){var m=this.getValueAtTime(l/this.comp.globalData.frameRate,0),g=this.getValueAtTime((l+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(s=(a=new Array(m.length)).length,o=0;o<s;o+=1)a[o]=m[o]+(m[o]-g[o])*(l-c)/.001;return a}return m+(m-g)*(l-c)/.001}}return this.getValueAtTime((r-((l-c)%r+l))/this.comp.globalData.frameRate,0)}function n(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var n,r,i=this.comp.renderedFrame/this.comp.globalData.frameRate,o=i-t,s=e>1?(i+t-o)/(e-1):1,a=0,c=0;for(n=this.pv.length?createTypedArray("float32",this.pv.length):0;a<e;){if(r=this.getValueAtTime(o+a*s),this.pv.length)for(c=0;c<this.pv.length;c+=1)n[c]+=r[c];else n+=r;a+=1}if(this.pv.length)for(c=0;c<this.pv.length;c+=1)n[c]/=e;else n/=e;return n}function r(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var n=this.a.getValueAtTime(t);e.translate(-n[0]*this.a.mult,-n[1]*this.a.mult,n[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(t);e.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(t),o=this.sa.getValueAtTime(t);e.skewFromAxis(-i*this.sk.mult,o*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var s=this.r.getValueAtTime(t);e.rotate(-s*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var a=this.rz.getValueAtTime(t),c=this.ry.getValueAtTime(t),u=this.rx.getValueAtTime(t),l=this.or.getValueAtTime(t);e.rotateZ(-a*this.rz.mult).rotateY(c*this.ry.mult).rotateX(u*this.rx.mult).rotateZ(-l[2]*this.or.mult).rotateY(l[1]*this.or.mult).rotateX(l[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var h=this.px.getValueAtTime(t),d=this.py.getValueAtTime(t);if(this.data.p.z){var f=this.pz.getValueAtTime(t);e.translate(h*this.px.mult,d*this.py.mult,-f*this.pz.mult)}else e.translate(h*this.px.mult,d*this.py.mult,0)}else{var p=this.p.getValueAtTime(t);e.translate(p[0]*this.p.mult,p[1]*this.p.mult,-p[2]*this.p.mult)}return e}function i(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,n){var s=o(t,e,n);return s.dynamicProperties.length?s.getValueAtTime=r.bind(s):s.getValueAtTime=i.bind(s),s.setGroupProperty=expressionHelpers.setGroupProperty,s};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(r,i,o,a,c){var u=s(r,i,o,a,c);u.kf?u.getValueAtTime=expressionHelpers.getValueAtTime.bind(u):u.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(u),u.setGroupProperty=expressionHelpers.setGroupProperty,u.loopOut=t,u.loopIn=e,u.smooth=n,u.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(u),u.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(u),u.numKeys=1===i.a?i.k.length:0,u.propertyIndex=i.ix;var l=0;return 0!==o&&(l=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),u._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:l},expressionHelpers.searchExpressions(r,i,u),u.k&&c.addDynamicProperty(u),u};var a=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function u(){}u.prototype={vertices:function(t,e){this.k&&this.getValue();var n,r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0));var i=r._length,o=r[t],s=r.v,a=createSizedArray(i);for(n=0;n<i;n+=1)a[n]="i"===t||"o"===t?[o[n][0]-s[n][0],o[n][1]-s[n][1]]:[o[n][0],o[n][1]];return a},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var n=this.v;void 0!==e&&(n=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(n));for(var r,i=this._segmentsLength,o=i.lengths,s=i.totalLength*t,a=0,c=o.length,u=0;a<c;){if(u+o[a].addedLength>s){var l=a,h=n.c&&a===c-1?0:a+1,d=(s-u)/o[a].addedLength;r=bez.getPointInSegment(n.v[l],n.v[h],n.o[l],n.i[h],d,o[a]);break}u+=o[a].addedLength,a+=1}return r||(r=n.c?[n.v[0][0],n.v[0][1]]:[n.v[n._length-1][0],n.v[n._length-1][1]]),r},vectorOnPath:function(t,e,n){1==t?t=this.v.c:0==t&&(t=.999);var r=this.pointOnPath(t,e),i=this.pointOnPath(t+.001,e),o=i[0]-r[0],s=i[1]-r[1],a=Math.sqrt(Math.pow(o,2)+Math.pow(s,2));return 0===a?[0,0]:"tangent"===n?[o/a,s/a]:[-s/a,o/a]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([u],a),extendPrototype([u],c),c.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},c.prototype.initiateExpression=ExpressionManager.initiateExpression;var l=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,n,r,i){var o=l(t,e,n,r,i);return o.propertyIndex=e.ix,o.lock=!1,3===n?expressionHelpers.searchExpressions(t,e.pt,o):4===n&&expressionHelpers.searchExpressions(t,e.ks,o),o.k&&t.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var n=this.calculateExpression(e);if(t.t!==n){var r={};return this.copyData(r,t),r.t=n.toString(),r.__complete=!1,r}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}function SVGTintFilter(t,e,n,r,i){this.filterManager=e;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),o.setAttribute("result",r+"_tint_1"),t.appendChild(o),(o=createNS("feColorMatrix")).setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",r+"_tint_2"),t.appendChild(o),this.matrixFilter=o;var s=this.createMergeNode(r,[i,r+"_tint_1",r+"_tint_2"]);t.appendChild(s)}function SVGFillFilter(t,e,n,r){this.filterManager=e;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",r),t.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(t,e,n){this.initialized=!1,this.filterManager=e,this.elem=n,this.paths=[]}function SVGTritoneFilter(t,e,n,r){this.filterManager=e;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(i);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",r),this.matrixFilter=o;var s=createNS("feFuncR");s.setAttribute("type","table"),o.appendChild(s),this.feFuncR=s;var a=createNS("feFuncG");a.setAttribute("type","table"),o.appendChild(a),this.feFuncG=a;var c=createNS("feFuncB");c.setAttribute("type","table"),o.appendChild(c),this.feFuncB=c,t.appendChild(o)}function SVGProLevelsFilter(t,e,n,r){this.filterManager=e;var i=this.filterManager.effectElements,o=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",o)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",o)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",o)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(o)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5
vendor: 4,501 bytes, line 1
1].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((o=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",r),t.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}function SVGDropShadowEffect(t,e,n,r,i){var o=e.container.globalData.renderConfig.filterSize,s=e.data.fs||o;t.setAttribute("x",s.x||o.x),t.setAttribute("y",s.y||o.y),t.setAttribute("width",s.width||o.width),t.setAttribute("height",s.height||o.height),this.filterManager=e;var a=createNS("feGaussianBlur");a.setAttribute("in","SourceAlpha"),a.setAttribute("result",r+"_drop_shadow_1"),a.setAttribute("stdDeviation","0"),this.feGaussianBlur=a,t.appendChild(a);var c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",r+"_drop_shadow_1"),c.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=c,t.appendChild(c);var u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=u,t.appendChild(u);var l=createNS("feComposite");l.setAttribute("in",r+"_drop_shadow_3"),l.setAttribute("in2",r+"_drop_shadow_2"),l.setAttribute("operator","in"),l.setAttribute("result",r+"_drop_shadow_4"),t.appendChild(l);var h=this.createMergeNode(r,[r+"_drop_shadow_4",i]);t.appendChild(h)}SVGComposableEffect.prototype={createMergeNode:function(t,e){var n,r,i=createNS("feMerge");for(i.setAttribute("result",t),r=0;r<e.length;r+=1)(n=createNS("feMergeNode")).setAttribute("in",e[r]),i.appendChild(n),i.appendChild(n);return i}},extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",n[0]-e[0]+" 0 0 0 "+e[0]+" "+(n[1]-e[1])+" 0 0 0 "+e[1]+" "+(n[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+n+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,n,r,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,n=0):r=1+(n=this.filterManager.effectElements[0].p.v-1),(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);n<r;n+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:n});if(3===this.filterManager.effectElements[10].p.v){var o=createNS("mask"),s=createElementID();o.setAttribute("id",s),o.setAttribute("mask-type","alpha"),o.appendChild(e),this.elem.globalData.defs.appendChild(o);var a=createNS("g");for(a.setAttribute("mask","url("+getLocationHref()+"#"+s+")");i[0];)a.appendChild(i[0]);this.elem.layerElement.appendChild(a),this.masker=o,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var n,r,i=this.paths.length;for(e=0;e<i;e+=1)if(-1!==this.paths[e].m&&(n=this.elem.maskManager.viewData[this.paths[e].m],r=this.paths[e].p,(t||this.filterManager._mdf||n.prop._mdf)&&r.setAttribute("d",n.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var o;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var s=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),a=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),
vendor: 7,748 bytes, line 1
1c=r.getTotalLength();o="0 0 0 "+c*s+" ";var u,l=c*(a-s),h=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,d=Math.floor(l/h);for(u=0;u<d;u+=1)o+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+10*c+" 0 0"}else o="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute("stroke-dasharray",o)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var f=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*f[0])+","+bmFloor(255*f[1])+","+bmFloor(255*f[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,i=r[0]+" "+n[0]+" "+e[0],o=r[1]+" "+n[1]+" "+e[1],s=r[2]+" "+n[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",s)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var n=createNS(t);return n.setAttribute("type","table"),e.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(t,e,n,r,i){for(var o,s,a=0,c=Math.min(t,e),u=Math.max(t,e),l=Array.call(null,{length:256}),h=0,d=i-r,f=e-t;a<=256;)s=(o=a/256)<=c?f<0?i:r:o>=u?f<0?r:i:r+d*Math.pow((o-t)/f,1/n),l[h]=s,h+=1,a+=256/255;return l.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,n=this.filterManager.effectElements;this.feFuncRComposed&&(t||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(e=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(e=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(e=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(e=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(e=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=n*Math.cos(r),o=n*Math.sin(r);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,n){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(t,e,n,r){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var i=createNS("feGaussianBlur");i.setAttribute("result",r),t.appendChild(i),this.feGaussianBlur=i}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,n=_svgMatteSymbols.length;e<n;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var n=t.layerElement.parentNode;if(n){for(var r,i=n.children,o=0,s=i.length;o<s&&i[o]!==t.layerElement;)o+=1;o<=s-2&&(r=i[o+1]);var a=createNS("use");a.setAttribute("href","#"+e),r?n.insertBefore(a,r):n.appendChild(a)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var n=createElementID(),r=createNS("mask");r.setAttribute("id",e.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var i=t.globalData.defs;i.appendChild(r);var o=createNS("symbol");o.setAttribute("id",n),this.replaceInParent(e,n),o.appendChild(e.layerElement),i.appendChild(o);var s=createNS("use");s.setAttribute("href","#"+n),r.appendChild(s),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,n=0,r=e.length;n<r;)e[n]&&e[n].data.ind===t&&this.setElementAsMask(this.elem,e[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=3==n?0:e,i=2==n?0:e;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+i);var o=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}},registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie},module.exports=factory())},79732:function(t,e,n){function r(t){if(t&&t.t)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,e}var i=r(n(67294));function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var s=["children","options"],a=["allowFullScreen","allowTransparency","autoComplete","autoF
vendor: 12,574 bytes, line 1
1ocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((function(t,e){return t[e.toLowerCase()]=e,t}),{for:"htmlFor"}),c={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xa0",quot:"\u201c"},u=["style","script"],l=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,h=/mailto:/i,d=/\n{2,}$/,f=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,p=/^ *> ?/gm,m=/^ {2,}\n/,g=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,y=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,b=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,v=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,w=/^(?:\n *)*\n/,_=/\r\n?/g,k=/^\[\^([^\]]+)](:.*)\n/,S=/^\[\^([^\]]+)]/,x=/\f/g,I=/^\s*?\[(x|\s)\]/,A=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,E=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,T=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,P=/&([a-z]+);/g,C=/^<!--[\s\S]*?(?:-->)/,M=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,O=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,R=/^\{.*\}$/,B=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,j=/^<([^ >]+@[^ >]+)>/,N=/^<([^ >]+:\/[^ >]+)>/,L=/ *\n+$/,D=/(?:^|\n)( *)$/,z=/-([a-z])?/gi,F=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,U=/^\[([^\]]*)\]:\s*(\S+)\s*("([^"]*)")?/,W=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,G=/^\[([^\]]*)\] ?\[([^\]]*)\]/,V=/(\[|\])/g,K=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,H=/\t/g,q=/^ *\| */,$=/(^ *\||\| *$)/g,Z=/ *$/,Y=/^ *:-+: *$/,X=/^ *:-+ *$/,J=/^ *-+: *$/,Q=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,tt=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,et=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,nt=/^\\([^0-9A-Za-z\s])/,rt=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,it=/^\n+/,ot=/^([ \t]*)/,st=/\\([^0-9A-Z\s])/gi,at=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +"),ct=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +[^\\n]*(?:\\n(?!\\1(?:[*+-]|\\d+\\.) )[^\\n]*)*(\\n|$)","gm"),ut=new RegExp("^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)"),lt="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",ht=new RegExp("^\\[("+lt+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),dt=new RegExp("^!\\[("+lt+")\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),ft=[f,b,y,A,E,C,ct,ut,F],pt=[].concat(ft,[/^[^\n]+(?: \n|\n{2,})/,T,O]);function mt(t){return t.replace(/[\xc0\xc1\xc2\xc3\xc4\xc5\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xc6]/g,"a").replace(/[\xe7\xc7]/g,"c").replace(/[\xf0\xd0]/g,"d").replace(/[\xc8\xc9\xca\xcb\xe9\xe8\xea\xeb]/g,"e").replace(/[\xcf\xef\xce\xee\xcd\xed\xcc\xec]/g,"i").replace(/[\xd1\xf1]/g,"n").replace(/[\xf8\xd8\u0153\u0152\xd5\xf5\xd4\xf4\xd3\xf3\xd2\xf2]/g,"o").replace(/[\xdc\xfc\xdb\xfb\xda\xfa\xd9\xf9]/g,"u").replace(/[\u0178\xff\xdd\xfd]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function gt(t){return J.test(t)?"right":Y.test(t)?"center":X.test(t)?"left":null}function yt(t,e,n){var r=n.u;n.u=!0;var i=e(t.trim(),n);n.u=r;var o=[[]];return i.forEach((function(t,e){"tableSeparator"===t.type?0!==e&&e!==i.length-1&&o.push([]):("text"!==t.type||null!=i[e+1]&&"tableSeparator"!==i[e+1].type||(t.content=t.content.replace(Z,"")),o[o.length-1].push(t))})),o}function bt(t,e,n){n.o=!0;var r=yt(t[1],e,n),i=t[2].replace($,"").split("|").map(gt),o=function(t,e,n){return t.trim().split("\n").map((function(t){return yt(t,e,n)}))}(t[3],e,n);return n.o=!1,{align:i,cells:o,header:r,type:"table"}}function vt(t,e){return null==t.align[e]?{}:{textAlign:t.align[e]}}function wt(t){return function(e,n){return n.o?t.exec(e):null}}function _t(t){return function(e,n){return n.o||n.i?t.exec(e):null}}function kt(t){return function(e,n){return n.o||n.i?null:t.exec(e)}}function St(t){return function(e){return t.exec(e)}}function xt(t,e,n){if(e.o||e.i)return null;if(n&&!n.endsWith("\n"))return null;var r="";t.split("\n").every((function(t){return!ft.some((function(e){return e.test(t)}))&&(r+=t+"\n",t.trim())}));var i=r.trimEnd();return""==i?null:[r,i]}function It(t){try{if(decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(t){return null}return t}function At(t){return t.replace(st,"$1")}function Et(t,e,n){var r=n.o||!1,i=n.i||!1;n.o=!0,n.i=!0;var o=t(e,n);return n.o=r,n.i=i,o}function Tt(t,e,n){var r=n.o||!1,i=n.i||!1;n.o=!1,n.i=!0;var o=t(e,n);return n.o=r,n.i=i,o}function Pt(t,e,n){return n.o=!1,t(e+"\n\n",n)}var Ct,Mt=function(t,e,n){return{content:Et(e,t[1],n)}};function Ot(){return{}}function Rt(){return null}function Bt(){return[].slice.call(arguments).filter(Boolean).join(" ")}function jt(t,e,n){for(var r=t,i=e.split(".");i.length&&void 0!==(r=r[i[0]]);)i.shift();return r||n}function Nt(t,e){var n=jt(e,t);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:jt(e,t+".component",t):t}function Lt(t,e){void 0===e&&(e={}),e.overrides=e.overrides||{},e.slugify=e.slugify||mt,e.namedCodesToUnicode=e.namedCodesToUnicode?o({},c,e.namedCodesToUnicode):c;var n=e.createElement||i.createElement;function r(t,r){var i=jt(e.overrides,t+".props",{});return n.apply(void 0,[Nt(t,e.overrides),o({},r,i,{className:Bt(null==r?void 0:r.className,i.className)||void 0})].concat([].slice.call(arguments,2)))}function s(t){var n=!1;e.forceInline?n=!0:e.forceBlock||(n=!1===K.test(t));for(var o=lt(st(n?t:t.trimEnd().replace(it,"")+"\n\n",{o:n}));"string"==typeof o[o.length-1]&&!o[o.length-1].trim();)o.pop();if(null===e.wrapper)return o;var s,a=e.wrapper||(n?"span":"div");if(o.length>1||e.forceWrapper)s=o;else{if(1===o.length)return"string"==typeof(s=o[0])?r("span",{key:"outer"},s):s;s=null}return i.createElement(a,{key:"outer"},s)}function $(t){var e=t.match(l);return e?e.reduce((function(t,e,n){var r=e.indexOf("=");if(-1!==r){var o=function(t){return-1!==t.indexOf("-")&&null===t.match(M)&&(t=t.replace(z,(function(t,e){return e.toUpperCase()}))),t}(e.slice(0,r)).trim(),c=function(t){var e=t[0];return('"'===e||"'"===e)&&t.length>=2&&t[t.length-1]===e?t.slice(1,-1):t}(e.slice(r+1).trim()),u=a[o]||o,l=t[u]=function(t,e){return"style"===t?e.split(/;\s?/).reduce((function(t,e){var n=e.slice(0,e.indexOf(":"));return t[n.replace(/(-[a-z])/g,(function(t){return t[1].toUpperCase()}))]=e.slice(n.length+1).trim(),t}),{}):"href"===t?It(e):(e.match(R)&&(e=e.slice(1,e.length-1)),"true"===e||"false"!==e&&e)}(o,c);"string"==typeof l&&(T.test(l)||O.test(l))&&(t[u]=i.cloneElement(s(l.trim()),{key:n}))}else"style"!==e&&(t[a[e]||e]=!0);return t}),{}):void 0}var Z=[],Y={},X={blockQuote:{l:kt(f),_:Ct.HIGH,p:function(t,e,n){return{content:e(t[0].replace(p,""),n)}},g:function(t,e,n){return r("blockquote",{key:n.m},e(t.content,n))}},breakLine:{l:St(m),_:Ct.HIGH,p:Ot,g:function(t,e,n){return r("br",{key:n.m})}},breakThematic:{l:kt(g),_:Ct.HIGH,p:Ot,g:function(t,e,n){return r("hr",{key:n.m})}},codeBlock:{l:kt(b),_:Ct.MAX,p:function(t){return{content:t[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},g:function(t,e,n){return r("pre",{key:n.m},r("code",{className:t.lang?"lang-"+t.lang:""},t.content))}},codeFenced:{l:kt(y),_:Ct.MAX,p:function(t){return{content:t[3],lang:t[2]||void 0,type:"codeBlock"}}},codeInline:{l:_t(v),_:Ct.LOW,p:function(t){return{content:t[2]}},g:function(t,e,n){return r("code",{key:n.m},t.content)}},footnote:{l:kt(k),_:Ct.MAX,p:function(t){return Z.push({footnote:t[2],identifier:t[1]}),{}},g:Rt},footnoteReference:{l:wt(S),_:Ct.HIGH,p:function(t){return{content:t[1],target:"#"+e.slugify(t[1])}},g:function(t,e,n){return r("a",{key:n.m,href:It(t.target)},r("sup",{key:n.m},t.content))}},gfmTask:{l:wt(I),_:Ct.HIGH,p:function(t){return{completed:"x"===t[1].toLowerCase()}},g:function(t,e,n){return r("input",{checked:t.completed,key:n.m,readOnly:!0,type:"checkbox"})}},heading:{l:kt(A),_:Ct.HIGH,p:function(t,n,r){return{content:Et(n,t[2],r),id:e.slugify(t[2]),level:t[1].length}},g:function(t,e,n){return t.tag="h"+t.level,r(t.tag,{id:t.id,key:n.m},e(t.content,n))}},headingSetext:{l:kt(E),_:Ct.MAX,p:function(t,e,n){return{content:Et(e,t[1],n),level:"="===t[2]?1:2,type:"heading"}}},htmlComment:{l:St(C),_:Ct.HIGH,p:function(){return{}},g:Rt},image:{l:_t(dt),_:Ct.HIGH,p:function(t){return{alt:t[1],target:At(t[2]),title:t[3]}},g:function(t,e,n){return r("img",{key:n.m,alt:t.alt||void 0,title:t.title||void 0,src:It(t.target)})}},link:{l:wt(ht),_:Ct.LOW,p:function(t,e,n){return{content:Tt(e,t[1],n),target:At(t[2]),title:t[3]}},g:function(t,e,n){return r("a",{key:n.m,href:It(t.target),title:t.title},e(t.content,n))}},linkAngleBraceStyleDetector:{l:wt(N),_:Ct.MAX,p:function(t){return{content:[{content:t[1],type:"text"}],target:t[1],type:"link"}}},linkBareUrlDetector:{l:function(t,e){return e.v?null:wt(B)(t,e)},_:Ct.MAX,p:function(t){return{content:[{content:t[1],type:"text"}],target:t[1],title:void 0,type:"link"}}},linkMailtoDetector:{l:wt(j),_:Ct.MAX,p:function(t){var e=t[1],n=t[1];return h.test(n)||(n="mailto:"+n),{content:[{content:e.replace("mailto:",""),type:"text"}],target:n,type:"link"}}},list:{l:function(t,e,n){var r=D.exec(n);return!r||!e.h&&e.o?null:ut.exec(t=r[1]+t)},_:Ct.HIGH,p:function(t,e,n){var r=t[2],i=r.length>1,o=i?+r:void 0,s=t[0].replace(d,"\n").match(ct),a=!1;return{items:s.map((function(t,r){var i=at.exec(t)[0].length,o=new RegExp("^ {1,"+i+"}","gm"),c=t.replace(o,"").replace(at,""),u=r===s.length-1,l=-1!==c.indexOf("\n\n")||u&&a;a=l;var h,d=n.o,f=n.h;n.h=!0,l?(n.o=!1,h=c.replace(L,"\n\n")):(n.o=!0,h=c.replace(L,""));var p=e(h,n);return n.o=d,n.h=f,p})),ordered:i,start:o}},g:function(t,e,n){return r(t.ordered?"ol":"ul",{key:n.m,start:t.start},t.items.map((function(t,i){return r("li",{key:i},e(t,n))})))}},newlineCoalescer:{l:kt(w),_:Ct.LOW,p:Ot,g:function(){return"\n"}},paragraph:{l:xt,_:Ct.LOW,p:Mt,g:function(t,e,n){return r("p",{key:n.m},e(t.content,n))}},ref:{l:wt(U),_:Ct.MAX,p:function(t){return Y[t[1]]={target:t[2],title:t[4]},{}},g:Rt},refImage:{l:_t(W),_:Ct.MAX,p:function(t){return{alt:t[1]||void 0,ref:t[2]}},g:function(t,e,n){return r("img",{key:n.m,alt:t.alt,src:It(Y[t.ref].target),title:Y[t.ref].title})}},refLink:{l:wt(G),_:Ct.MAX,p:function(t,e,n){return{content:e(t[1],n),fallbackContent:e(t[0].replace(V,"\\$1"),n),ref:t[2]}},g:function(t,e,n){return Y[t.ref]?r("a",{key:n.m,href:It(Y[t.ref].target),title:Y[t.ref].title},e(t.content,n)):r("span",{key:n.m},e(t.fallbackContent,n))}},table:{l:kt(F),_:Ct.HIGH,p:bt,g:function(t,e,n){return r("table",{key:n.m},r("thead",null,r("tr",null,t.header.map((function(i,o){return r("th",{key:o,style:vt(t,o)},e(i,n))})))),r("tbody",null,t.cells.map((function(i,o){return r("tr",{key:o},i.map((function(i,o){return r("td",{key:o,style:vt(t,o)},e(i,n))})))}))))}},tableSeparator:{l:function(t,e){return e.u?q.exec(t):null},_:Ct.HIGH,p:function(){return{type:"tableSeparator"}},g:function(){return" | "}},text:{l:St(rt),_:Ct.MIN,p:function(t){return{content:t[0].replace(P,(function(t,n){return e.namedCodesToUnicode[n]?e.namedCodesToUnicode[n]:t}))}},g:function(t){return t.content}},textBolded:{l:_t(Q),_:Ct.MED,p:function(t,e,n){return{content:e(t[2],n)}},g:function(t,e,n){return r("strong",{key:n.m},e(t.content,n))}},textEmphasized:{l:_t(tt),_:Ct.LOW,p:function(t,e,n){return{content:e(t[2],n)}},g:function(t,e,n){return r("em",{key:n.m},e(t.content,n))}},textEscaped:{l:_t(nt),_:Ct.HIGH,p:function(t){return{content:t[1],type:"text"}}},textStrikethroughed:{l:_t(et),_:Ct.LOW,p:Mt,g:function(t,e,n){return r("del",{key:n.m},e(t.content,n))}}};!0!==e.disableParsingRawHTML&&(X.htmlBlock={l:St(T),_:Ct.HIGH,p:function(t,e,n){var r,i=t[3].match(ot),o=new RegExp("^"+i[1],"gm"),s=t[3].replace(o,""),a=(r=s,pt.some((function(t){return t.test(r)}))?Pt:Et),c=t[1].toLowerCase(),l=-1!==u.indexOf(c);n.v=n.v||"a"===c;var h=l?t[3]:a(e,s,n);return n.v=!1,{attrs:$(t[2]),content:h,noInnerParse:l,tag:l?c:t[1]}},g:function(t,e,n){return r(t.tag,o({key:n.m},t.attrs),t.noInnerParse?t.content:e(t.content,n))}},X.htmlSelfClosing={l:St(O),_:Ct.HIGH,p:function(t){return{attrs:$(t[2]||""),tag:t[1]}},g:function(t,e,n){return r(t.tag,o({},t.attrs,{key:n.m}))}});
1var J,st=function(t){var e=Object.keys(t);function n(r,i){for(var o=[],s="";r;)for(var a=0;a<e.length;){var c=e[a],u=t[c],l=u.l(r,i,s);if(l){var h=l[0];r=r.substring(h.length);var d=u.p(l,n,i);null==d.type&&(d.type=c),o.push(d),s=h;break}a++}return o}return e.sort((function(e,n){var r=t[e]._,i=t[n]._;return r!==i?r-i:e<n?-1:1})),function(t,e){return n(function(t){return t.replace(_,"\n").replace(x,"").replace(H," ")}(t),e)}}(X),lt=(J=function(t){return function(e,n,r){return t[e.type].g(e,n,r)}}(X),function t(e,n){if(void 0===n&&(n={}),Array.isArray(e)){for(var r=n.m,i=[],o=!1,s=0;s<e.length;s++){n.m=s;var a=t(e[s],n),c="string"==typeof a;c&&o?i[i.length-1]+=a:null!==a&&i.push(a),o=c}return n.m=r,i}return J(e,t,n)}),ft=s(t);return Z.length?r("div",null,ft,r("footer",{key:"footer"},Z.map((function(t){return r("div",{id:e.slugify(t.identifier),key:t.identifier},t.identifier,lt(st(t.footnote,{o:!0})))})))):ft}!function(t){t[t.MAX=0]="MAX",t[t.HIGH=1]="HIGH",t[t.MED=2]="MED",t[t.LOW=3]="LOW",t[t.MIN=4]="MIN"}(Ct||(Ct={}));var Dt=function(t){var e=t.children,n=t.options,r=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)e.indexOf(n=o[r])>=0||(i[n]=t[n]);return i}(t,s);return i.cloneElement(Lt(e,n),r)};Object.assign(Dt,{compiler:Lt}),t.exports=Dt},79746:function(t){function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},34504:function(t,e){"use strict";var n=e;function r(t){return 1===t.length?"0"+t:t}function i(t){for(var e="",n=0;n<t.length;n++)e+=r(t[n].toString(16));return e}n.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"!==typeof t){for(var r=0;r<t.length;r++)n[r]=0|t[r];return n}if("hex"===e){(t=t.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(t="0"+t);for(r=0;r<t.length;r+=2)n.push(parseInt(t[r]+t[r+1],16))}else for(r=0;r<t.length;r++){var i=t.charCodeAt(r),o=i>
1>8,s=255&i;o?n.push(o,s):n.push(s)}return n},n.zero2=r,n.toHex=i,n.encode=function(t,e){return"hex"===e?i(t):t}},57824:function(t){var e=1e3,n=60*e,r=60*n,i=24*r,o=7*i,s=365.25*i;function a(t,e,n,r){var i=e>=1.5*n;return Math.round(t/n)+" "+r+(i?"s":"")}t.exports=function(t,c){c=c||{};var u=typeof t;if("string"===u&&t.length>0)return function(t){if((t=String(t)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(t);if("number"===u&&isFinite(t))return c.long?function(t){var o=Math.abs(t);if(o>=i)return a(t,o,i,"day");if(o>=r)return a(t,o,r,"hour");if(o>=n)return a(t,o,n,"minute");if(o>=e)return a(t,o,e,"second");return t+" ms"}(t):function(t){var o=Math.abs(t);if(o>=i)return Math.round(t/i)+"d";if(o>=r)return Math.round(t/r)+"h";if(o>=n)return Math.round(t/n)+"m";if(o>=e)return Math.round(t/e)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},2962:function(t,e,n){"use strict";n.d(e,{PB:function(){return d},lX:function(){return h}});var r=n(9008),i=n.n(r),o=n(67294);function s(){return s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(this,arguments)}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var c={templateTitle:"",noindex:!1,nofollow:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},u=function(t,e,n){void 0===e&&(e=[]);var r=void 0===n?{}:n,i=r.defaultWidth,s=r.defaultHeight;return e.reduce((function(e,n,r){return e.push(o.createElement("meta",{key:"og:"+t+":0"+r,property:"og:"+t,content:n.url})),n.alt&&e.push(o.createElement("meta",{key:"og:"+t+":alt0"+r,property:"og:"+t+":alt",content:n.alt})),n.secureUrl&&e.push(o.createElement("meta",{key:"og:"+t+":secure_url0"+r,property:"og:"+t+":secure_url",content:n.secureUrl.toString()})),n.type&&e.push(o.createElement("meta",{key:"og:"+t+":type0"+r,property:"og:"+t+":type",content:n.type.toString()})),n.width?e.push(o.createElement("meta",{key:"og:"+t+":width0"+r,property:"og:"+t+":width",content:n.width.toString()})):i&&e.push(o.createElement("meta",{key:"og:"+t+":width0"+r,property:"og:"+t+":width",content:i.toString()})),n.height?e.push(o.createElement("meta",{key:"og:"+t+":height"+r,property:"og:"+t+":height",content:n.height.toString()})):s&&e.push(o.createElement("meta",{key:"og:"+t+":height"+r,property:"og:"+t+":height",content:s.toString()})),e}),[])},l=function(t){var e,n,r,i=[];t.titleTemplate&&(c.templateTitle=t.titleTemplate);var a="";t.title?(a=t.title,c.templateTitle&&(a=c.templateTitle.replace(/%s/g,(function(){return a})))):t.defaultTitle&&(a=t.defaultTitle),a&&i.push(o.createElement("title",{key:"title"},a));var l,h,d=t.noindex||c.noindex||t.dangerouslySetAllPagesToNoIndex,f=t.nofollow||c.nofollow||t.dangerouslySetAllPagesToNoFollow,p="";if(t.robotsProps){var m=t.robotsProps,g=m.nosnippet,y=m.maxSnippet,b=m.maxImagePreview,v=m.maxVideoPreview,w=m.noarchive,_=m.noimageindex,k=m.notranslate,S=m.unavailableAfter;p=(g?",nosnippet":"")+(y?",max-snippet:"+y:"")+(b?",max-image-preview:"+b:"")+(w?",noarchive":"")+(S?",unavailable_after:"+S:"")+(_?",noimageindex":"")+(v?",max-video-preview:"+v:"")+(k?",notranslate":"")}(d||f?(t.dangerouslySetAllPagesToNoIndex&&(c.noindex=!0),t.dangerouslySetAllPagesToNoFollow&&(c.nofollow=!0),i.push(o.createElement("meta",{key:"robots",name:"robots",content:(d?"noindex":"index")+","+(f?"nofollow":"follow")+p}))):i.push(o.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+p})),t.description&&i.push(o.createElement("meta",{key:"description",name:"description",content:t.description})),t.mobileAlternate&&i.push(o.createElement("link",{rel:"alternate",key:"mobileAlternate",media:t.mobileAlternate.media,href:t.mobileAlternate.href})),t.languageAlternates&&t.languageAlternates.length>
10&&t.languageAlternates.forEach((function(t){i.push(o.createElement("link",{rel:"alternate",key:"languageAlternate-"+t.hrefLang,hrefLang:t.hrefLang,href:t.href}))})),t.twitter&&(t.twitter.cardType&&i.push(o.createElement("meta",{key:"twitter:card",name:"twitter:card",content:t.twitter.cardType})),t.twitter.site&&i.push(o.createElement("meta",{key:"twitter:site",name:"twitter:site",content:t.twitter.site})),t.twitter.handle&&i.push(o.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:t.twitter.handle}))),t.facebook&&t.facebook.appId&&i.push(o.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:t.facebook.appId})),null!=(e=t.openGraph)&&e.title||a)&&i.push(o.createElement("meta",{key:"og:title",property:"og:title",content:(null==(l=t.openGraph)?void 0:l.title)||a}));(null!=(n=t.openGraph)&&n.description||t.description)&&i.push(o.createElement("meta",{key:"og:description",property:"og:description",content:(null==(h=t.openGraph)?void 0:h.description)||t.description}));if(t.openGraph){if((t.openGraph.url||t.canonical)&&i.push(o.createElement("meta",{key:"og:url",property:"og:url",content:t.openGraph.url||t.canonical})),t.openGraph.type){var x=t.openGraph.type.toLowerCase();i.push(o.createElement("meta",{key:"og:type",property:"og:type",content:x})),"profile"===x&&t.openGraph.profile?(t.openGraph.profile.firstName&&i.push(o.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:t.openGraph.profile.firstName})),t.openGraph.profile.lastName&&i.push(o.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:t.openGraph.profile.lastName})),t.openGraph.profile.username&&i.push(o.createElement("meta",{key:"profile:username",property:"profile:username",content:t.openGraph.profile.username})),t.openGraph.profile.gender&&i.push(o.createElement("meta",{key:"profile:gender",property:"profile:gender",content:t.openGraph.profile.gender}))):"book"===x&&t.openGraph.book?(t.openGraph.book.authors&&t.openGraph.book.authors.length&&t.openGraph.book.authors.forEach((function(t,e){i.push(o.createElement("meta",{key:"book:author:0"+e,property:"book:author",content:t}))})),t.openGraph.book.isbn&&i.push(o.createElement("meta",{key:"book:isbn",property:"book:isbn",content:t.openGraph.book.isbn})),t.openGraph.book.releaseDate&&i.push(o.createElement("meta",{key:"book:release_date",property:"book:release_date",content:t.openGraph.book.releaseDate})),t.openGraph.book.tags&&t.openGraph.book.tags.length&&t.openGraph.book.tags.forEac
1h((function(t,e){i.push(o.createElement("meta",{key:"book:tag:0"+e,property:"book:tag",content:t}))}))):"article"===x&&t.openGraph.article?(t.openGraph.article.publishedTime&&i.push(o.createElement("meta",{key:"article:published_time",property:"article:published_time",content:t.openGraph.article.publishedTime})),t.openGraph.article.modifiedTime&&i.push(o.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:t.openGraph.article.modifiedTime})),t.openGraph.article.expirationTime&&i.push(o.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:t.openGraph.article.expirationTime})),t.openGraph.article.authors&&t.openGraph.article.authors.length&&t.openGraph.article.authors.forEach((function(t,e){i.push(o.createElement("meta",{key:"article:author:0"+e,property:"article:author",content:t}))})),t.openGraph.article.section&&i.push(o.createElement("meta",{key:"article:section",property:"article:section",content:t.openGraph.article.section})),t.openGraph.article.tags&&t.openGraph.article.tags.length&&t.openGraph.article.tags.forEach((function(t,e){i.push(o.createElement("meta",{key:"article:tag:0"+e,property:"article:tag",content:t}))}))):"video.movie"!==x&&"video.episode"!==x&&"video.tv_show"!==x&&"video.other"!==x||!t.openGraph.video||(t.openGraph.video.actors&&t.openGraph.video.actors.length&&t.openGraph.video.actors.forEach((function(t,e){t.profile&&i.push(o.createElement("meta",{key:"video:actor:0"+e,property:"video:actor",content:t.profile})),t.role&&i.push(o.createElement("meta",{key:"video:actor:role:0"+e,property:"video:actor:role",content:t.role}))})),t.openGraph.video.directors&&t.openGraph.video.directors.length&&t.openGraph.video.directors.forEach((function(t,e){i.push(o.createElement("meta",{key:"video:director:0"+e,property:"video:director",content:t}))})),t.openGraph.video.writers&&t.openGraph.video.writers.length&&t.openGraph.video.writers.forEach((function(t,e){i.push(o.createElement("meta",{key:"video:writer:0"+e,property:"video:writer",content:t}))})),t.openGraph.video.duration&&i.push(o.createElement("meta",{key:"video:duration",property:"video:duration",content:t.openGraph.video.duration.toString()})),t.openGraph.video.releaseDate&&i.push(o.createElement("meta",{key:"video:release_date",property:"video:release_date",content:t.openGraph.video.releaseDate})),t.openGraph.video.tags&&t.openGraph.video.tags.length&&t.openGraph.video.tags.forEac
1h((function(t,e){i.push(o.createElement("meta",{key:"video:tag:0"+e,property:"video:tag",content:t}))})),t.openGraph.video.series&&i.push(o.createElement("meta",{key:"video:series",property:"video:series",content:t.openGraph.video.series})))}t.defaultOpenGraphImageWidth&&(c.defaultOpenGraphImageWidth=t.defaultOpenGraphImageWidth),t.defaultOpenGraphImageHeight&&(c.defaultOpenGraphImageHeight=t.defaultOpenGraphImageHeight),t.openGraph.images&&t.openGraph.images.length&&i.push.apply(i,u("image",t.openGraph.images,{defaultWidth:c.defaultOpenGraphImageWidth,defaultHeight:c.defaultOpenGraphImageHeight})),t.defaultOpenGraphVideoWidth&&(c.defaultOpenGraphVideoWidth=t.defaultOpenGraphVideoWidth),t.defaultOpenGraphVideoHeight&&(c.defaultOpenGraphVideoHeight=t.defaultOpenGraphVideoHeight),t.openGraph.videos&&t.openGraph.videos.length&&i.push.apply(i,u("video",t.openGraph.videos,{defaultWidth:c.defaultOpenGraphVideoWidth,defaultHeight:c.defaultOpenGraphVideoHeight})),t.openGraph.locale&&i.push(o.createElement("meta",{key:"og:locale",property:"og:locale",content:t.openGraph.locale})),t.openGraph.site_name&&i.push(o.createElement("meta",{key:"og:site_name",property:"og:site_name",content:t.openGraph.site_name}))}return t.canonical&&i.push(o.createElement("link",{rel:"canonical",href:t.canonical,key:"canonical"})),t.additionalMetaTags&&t.additionalMetaTags.length>0&&t.additionalMetaTags.forEach((function(t){var e,n,r;i.push(o.createElement("meta",s({key:"meta:"+(null!=(e=null!=(n=null!=(r=t.keyOverride)?r:t.name)?n:t.property)?e:t.httpEquiv)},t)))})),null!=(r=t.additionalLinkTags)&&r.length&&t.additionalLinkTags.forEach((function(t){var e;i.push(o.createElement("link",s({key:"link"+(null!=(e=t.keyOverride)?e:t.href)+t.rel},t)))})),i},h=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e.prototype.render=function(){var t=this.props,e=t.title,n=t.titleTemplate,r=t.defaultTitle,s=t.dangerouslySetAllPagesToNoIndex,a=void 0!==s&&s,c=t.dangerouslySetAllPagesToNoFollow,u=void 0!==c&&c,h=t.description,d=t.canonical,f=t.facebook,p=t.openGraph,m=t.additionalMetaTags,g=t.twitter,y=t.defaultOpenGraphImageWidth,b=t.defaultOpenGraphImageHeight,v=t.defaultOpenGraphVideoWidth,w=t.defaultOpenGraphVideoHeight,_=t.mobileAlternate,k=t.languageAlternates,S=t.additionalLinkTags,x=t.robotsProps;return o.createElement(i(),null,l({title:e,titleTemplate:n,defaultTitle:r,dangerouslySetAllPagesToNoIndex:a,dangerouslySetAllPagesToNoFollow:u,description:h,canonical:d,facebook:f,openGraph:p,additionalMetaTags:m,twitter:g,defaultOpenGraphImageWidth:y,defaultOpenGraphImageHeight:b,defaultOpenGraphVideoWidth:v,defaultOpenGraphVideoHeight:w,mobileAlternate:_,languageAlternates:k,additionalLinkTags:S,robotsProps:x}))},e}(o.Component),d=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e.prototype.render=function(){var t=this.props,e=t.title,n=t.noindex,r=void 0!==n&&n,s=t.nofollow,a=t.robotsProps,c=t.description,u=t.canonical,h=t.openGraph,d=t.facebook,f=t.twitter,p=t.additionalMetaTags,m=t.titleTemplate,g=t.defaultTitle,y=t.mobileAlternate,b=t.languageAlternates,v=t.additionalLinkTags;return o.createElement(i(),null,l({title:e,noindex:r,nofollow:s,robotsProps:a,description:c,canonical:u,facebook:d,openGraph:h,additionalMetaTags:p,twitter:f,titleTemplate:m,defaultTitle:g,mobileAlternate:y,languageAlternates:b,additionalLinkTags:v}))},e}(o.Component),f=Object.freeze({"&":"&","<":"<",">":">",'"':""","'":"'"});new RegExp("["+Object.keys(f).join("")+"]","g")},96086:function(t){"use strict";var e=Object.assign.bind(Object);t.exports=e,t.exports.default=t.exports},6840:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(43906)}])},90638:function(t,e,n){"use strict";var r=n(96856).Z,i=n(50337).Z;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=o.default,s={loading:function(t){t.error,t.isLoading;return t.pastDelay,null}};r(t,Promise)?s.loader=function(){return t}:"function"===typeof t?s.loader=t:"object"===typeof t&&(s=i({},s,t));!1;(s=i({},s,e)).loadableGenerated&&delete(s=i({},s,s.loadableGenerated)).loadableGenerated;if("boolean"===typeof s.ssr&&!s.suspense){if(!s.ssr)return delete s.ssr,a(n,s);delete s.ssr}return n(s)},e.noSSR=a;s(n(67294));var o=s(n(14302));function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){return delete e.webpack,delete e.modules,t(e)}("function"===typeof e.default||"object"===typeof e.default&&null!==e.default)&&"undefined"===typeof e.default.__esModule&&(Object.defineProperty(e.default,"__esMo
1dule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},16319:function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.LoadableContext=void 0;var i=((r=n(67294))&&r.__esModule?r:{default:r}).default.createContext(null);e.LoadableContext=i},14302:function(t,e,n){"use strict";var r=n(79658).Z,i=n(7222).Z,o=n(50337).Z,s=n(49961).Z;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a,c=(a=n(67294))&&a.__esModule?a:{default:a},u=n(16319);var l=n(67294).useSyncExternalStore,h=[],d=[],f=!1;function p(t){var e=t(),n={loading:!0,loaded:null,error:null};return n.promise=e.then((function(t){return n.loading=!1,n.loaded=t,t})).catch((function(t){throw n.loading=!1,n.error=t,t})),n}var m=function(){function t(e,n){r(this,t),this._loadFn=e,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return i(t,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var t=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var e=this._res,n=this._opts;if(e.loading){if("number"===typeof n.delay)if(0===n.delay)this._state.pastDelay=!0;else{var r=this;this._delay=setTimeout((function(){r._update({pastDelay:!0})}),n.delay)}if("number"===typeof n.timeout){var i=this;this._timeout=setTimeout((function(){i._update({timedOut:!0})}),n.timeout)}}this._res.promise.then((function(){t._update({}),t._clearTimeouts()})).catch((function(e){t._update({}),t._clearTimeouts()})),this._update({})}},{key:"_update",value:function(t){this._state=o(s(o({},this._state),{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading}),t),this._callbacks.forEach((function(t){return t()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(t){var e=this;return this._callbacks.add(t),function(){e._callbacks.delete(t)}}}]),t}();function g(t){return function(t,e){var n=function(){if(!a){var e=new m(t,i);a={getCurrentValue:e.getCurrentValue.bind(e),subscribe:e.subscribe.bind(e),retry:e.retry.bind(e),promise:e.promise.bind(e)}}return a.promise()},r=function(){n();var t=c.default.useContext(u.LoadableContext);t&&Array.isArray(i.modules)&&i.modules.forEach((function(e){t(e)}))},i=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,suspense:!1},e);i.suspense&&(i.lazy=c.default.lazy(i.loader));var a=null;if(!f){var h=i.webpack?i.webpack():i.modules;h&&d.push((function(t){var e=!0,r=!1,i=void 0;try{for(var o,s=h[Symbol.iterator]();!(e=(o=s.next()).done);e=!0){var a=o.value;if(-1!==t.indexOf(a))return n()}}catch(c){r=!0,i=c}finally{try{e||null==s.return||s.return()}finally{if(r)throw i}}}))}var p=i.suspense?function(t,e){return r(),c.default.createElement(i.lazy,s(o({},t),{ref:e}))}:function(t,e){r();var n=l(a.subscribe,a.getCurrentValue,a.getCurrentValue);return c.default.useImperativeHandle(e,(function(){return{retry:a.retry}}),[]),c.default.useMemo((function(){return n.loading||n.error?c.default.createElement(i.loading,{isLoading:n.loading,pastDelay:n.pastDelay,timedOut:n.timedOut,error:n.error,retry:a.retry}):n.loaded?c.default.createElement(function(t){return t&&t.__esModule?t.default:t}(n.loaded),t):null}),[t,n])};return p.preload=function(){return n()},p.displayName="LoadableComponent",c.default.forwardRef(p)}(p,t)}function y(t,e){for(var n=[];t.length;){var r=t.pop();n.push(r(e))}return Promise.all(n).then((function(){if(t.length)return y(t,e)}))}g.preloadAll=function(){return new Promise((function(t,e){y(h).then(t,e)}))},g.preloadReady=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(e){var n=function(){return f=!0,e()};y(d,t).then(n,n)}))},window.__NEXT_PRELOADREADY=g.preloadReady;var b=g;e.default=b},43906:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return Me}});var r=n(47568),i=n(26042),o=n(34051),s=n.n(o),a=n(85893);n(70594),n(59235);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}
1var u=n(15671),l=n(43144);function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}function p(t,e){if(e&&("object"===c(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return h(t)}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}var g=n(4942),y=n(83878);var b=n(81563),v=n(25267);function w(t){return(0,y.Z)(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,b.Z)(t)||(0,v.Z)()}function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach((function(e){(0,g.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var S={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},x=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,u.Z)(this,t),this.init(e,n)}return(0,l.Z)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||S,this.options=e,this.debug=e.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,e,n,r){return r&&!this.debug?null:("string"===typeof t[0]&&(t[0]="".concat(n).concat(this.prefix," ").concat(t[0])),this.logger[e](t))}},{key:"create",value:function(e){return new t(this.logger,k(k({},{prefix:"".concat(this.prefix,":").concat(e,":")}),this.options))}}]),t}(),I=new x,A=function(){function t(){(0,u.Z)(this,t),this.observers={}}return(0,l.Z)(t,[{key:"on",value:function(t,e){var n=this;return t.split(" ").forEach((function(t){n.observers[t]=n.observers[t]||[],n.observers[t].push(e)})),this}},{key:"off",value:function(t,e){this.observers[t]&&(e?this.observers[t]=this.observers[t].filter((function(t){return t!==e})):delete this.observers[t])}},{key:"emit",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(this.observers[t]){var i=[].concat(this.observers[t]);i.forEach((function(t){t.apply(void 0,n)}))}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach((function(e){e.apply(e,[t].concat(n))}))}}}]),t}();function E(){var t,e,n=new Promise((function(n,r){t=n,e=r}));return n.resolve=t,n.reject=e,n}function T(t){return null==t?"":""+t}function P(t,e,n){t.forEach((function(t){e[t]&&(n[t]=e[t])}))}function C(t,e,n){function r(t){return t&&t.indexOf("###")>-1?t.replace(/###/g,"."):t}function i(){return!t||"string"===typeof t}for(var o="string"!==typeof e?[].concat(e):e.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!t[s]&&n&&(t[s]=new n),t=Object.prototype.hasOwnProperty.call(t,s)?t[s]:{}}return i()?{}:{obj:t,k:r(o.shift())}}function M(t,e,n){var r=C(t,e,Object);r.obj[r.k]=n}function O(t,e){var n=C(t,e),r=n.obj,i=n.k;if(r)return r[i]}function R(t,e,n){var r=O(t,n);return void 0!==r?r:O(e,n)}function B(t,e,n){for(var r in e)"__proto__"!==r&&"constructor"!==r&&(r in t?"string"===typeof t[r]||t[r]instanceof String||"string"===typeof e[r]||e[r]instanceof String?n&&(t[r]=e[r]):B(t[r],e[r],n):t[r]=e[r]);return t}function j(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var N={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function L(t){return"string"===typeof t?t.replace(/[&<>
1"'\/]/g,(function(t){return N[t]})):t}var D="undefined"!==typeof window&&window.navigator&&"undefined"===typeof window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,z=[" ",",","?","!",";"];function F(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?F(Object(n),!0).forEach((function(e){(0,g.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function W(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m(t);if(e){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function G(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),i=t,o=0;o<r.length;++o){if(!i)return;if("string"===typeof i[r[o]]&&o+1<r.length)return;if(void 0===i[r[o]]){for(var s=2,a=r.slice(o,o+s).join(n),c=i[a];void 0===c&&r.length>o+s;)s++,c=i[a=r.slice(o,o+s).join(n)];if(void 0===c)return;if(null===c)return null;if(e.endsWith(a)){if("string"===typeof c)return c;if(a&&"string"===typeof c[a])return c[a]}var u=r.slice(o+s).join(n);return u?G(c,u,n):void 0}i=i[r[o]]}return i}}var V=function(t){f(n,t);var e=W(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,u.Z)(this,n),r=e.call(this),D&&A.call(h(r)),r.data=t||{},r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return(0,l.Z)(n,[{key:"addNamespaces",value:function(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function(t){var e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}},{key:"getResource",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[t,e];n&&"string"!==typeof n&&(s=s.concat(n)),n&&"string"===typeof n&&(s=s.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(s=t.split("."));var a=O(this.data,s);return a||!o||"string"!==typeof n?a:G(this.data&&this.data[t]&&this.data[t][e],n,i)}},{key:"addResource",value:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var s=[t,e];n&&(s=s.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(r=e,e=(s=t.split("."))[1]),this.addNamespaces(e),M(this.data,s,r),i.silent||this.emit("added",t,e,n,r)}},{key:"addResources",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!==typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(t,e,i,n[i],{silent:!0});r.silent||this.emit("added",t,e,n)}},{key:"addResourceBundle",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[t,e];t.indexOf(".")>-1&&(r=n,n=e,e=(s=t.split("."))[1]),this.addNamespaces(e);var a=O(this.data,s)||{};r?B(a,n,i):a=U(U({},a),n),M(this.data,s,a),o.silent||this.emit("added",t,e,n)}},{key:"removeResourceBundle",value:function(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}},{key:"hasResourceBundle",value:function(t,e){return void 0!==this.getResource(t,e)}},{key:"getResourceBundle",value:function(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?U(U({},{}),this.getResource(t,e)):this.getResource(t,e)}},{key:"getDataByLanguage",value:function(t){return this.data[t]}},{key:"hasLanguageSomeTranslations",value:function(t){var e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find((function(t){return e[t]&&Object.keys(e[t]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(A),K={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,i){var o=this;return t.forEach((function(t){o.processors[t]&&(e=o.processors[t].process(e,n,r,i))})),e}};function H(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function q(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?H(Object(n),!0).forEach((function(e){(0,g.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m(t);if(e){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}var Z={},Y=function(t){f(n,t);var e=$(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,u.Z)(this,n),r=e.call(this),D&&A.call(h(r)),P(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,h(r)),r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=I.create("translator"),r}return(0,l.Z)(n,[{key:"changeLanguage",value:function(t){t&&(this.language=t)}},{key:"exists",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(void 0===t||null===t)return!1;var n=this.resolve(t,e);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(t,e){var n=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");
1var r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,i=e.ns||this.options.defaultNS||[],o=n&&t.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!e.keySeparator&&!this.options.userDefinedNsSeparator&&!e.nsSeparator&&!function(t,e,n){e=e||"",n=n||"";var r=z.filter((function(t){return e.indexOf(t)<0&&n.indexOf(t)<0}));if(0===r.length)return!0;var i=new RegExp("(".concat(r.map((function(t){return"?"===t?"\\?":t})).join("|"),")")),o=!i.test(t);if(!o){var s=t.indexOf(n);s>0&&!i.test(t.substring(0,s))&&(o=!0)}return o}(t,n,r);if(o&&!s){var a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:i};var c=t.split(n);(n!==r||n===r&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(r)}return"string"===typeof i&&(i=[i]),{key:t,namespaces:i}}},{key:"translate",value:function(t,e,r){var i=this;if("object"!==c(e)&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),e||(e={}),void 0===t||null===t)return"";Array.isArray(t)||(t=[String(t)]);var o=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,s=void 0!==e.ke
vendor: 10,697 bytes, line 1
1ySeparator?e.keySeparator:this.options.keySeparator,a=this.extractFromKey(t[t.length-1],e),u=a.key,l=a.namespaces,h=l[l.length-1],d=e.lng||this.language,f=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(f){var p=e.nsSeparator||this.options.nsSeparator;return o?(m.res="".concat(h).concat(p).concat(u),m):"".concat(h).concat(p).concat(u)}return o?(m.res=u,m):u}var m=this.resolve(t,e),g=m&&m.res,y=m&&m.usedKey||u,b=m&&m.exactUsedKey||u,v=Object.prototype.toString.apply(g),w=["[object Number]","[object Function]","[object RegExp]"],_=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,S="string"!==typeof g&&"boolean"!==typeof g&&"number"!==typeof g;if(k&&g&&S&&w.indexOf(v)<0&&("string"!==typeof _||"[object Array]"!==v)){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var x=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,g,q(q({},e),{},{ns:l})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");return o?(m.res=x,m):x}if(s){var I="[object Array]"===v,A=I?[]:{},E=I?b:y;for(var T in g)if(Object.prototype.hasOwnProperty.call(g,T)){var P="".concat(E).concat(s).concat(T);A[T]=this.translate(P,q(q({},e),{joinArrays:!1,ns:l})),A[T]===P&&(A[T]=g[T])}g=A}}else if(k&&"string"===typeof _&&"[object Array]"===v)(g=g.join(_))&&(g=this.extendTranslation(g,t,e,r));else{var C=!1,M=!1,O=void 0!==e.count&&"string"!==typeof e.count,R=n.hasDefaultValue(e),B=O?this.pluralResolver.getSuffix(d,e.count,e):"",j=e["defaultValue".concat(B)]||e.defaultValue;!this.isValidLookup(g)&&R&&(C=!0,g=j),this.isValidLookup(g)||(M=!0,g=u);var N=e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,L=N&&M?void 0:g,D=R&&j!==g&&this.options.updateMissing;if(M||C||D){if(this.logger.log(D?"updateKey":"missingKey",d,h,u,D?j:g),s){var z=this.resolve(u,q(q({},e),{},{keySeparator:!1}));z&&z.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var F=[],U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&U&&U[0])for(var W=0;W<U.length;W++)F.push(U[W]);else"all"===this.options.saveMissingTo?F=this.languageUtils.toResolveHierarchy(e.lng||this.language):F.push(e.lng||this.language);var G=function(t,n,r){var o=R&&r!==g?r:L;i.options.missingKeyHandler?i.options.missingKeyHandler(t,h,n,o,D,e):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(t,h,n,o,D,e),i.emit("missingKey",t,h,n,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?F.forEach((function(t){i.pluralResolver.getSuffixes(t,e).forEach((function(n){G([t],u+n,e["defaultValue".concat(n)]||j)}))})):G(F,u,j))}g=this.extendTranslation(g,t,e,m,r),M&&g===u&&this.options.appendNamespaceToMissingKey&&(g="".concat(h,":").concat(u)),(M||C)&&this.options.parseMissingKeyHandler&&(g="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(h,":").concat(u):u,C?g:void 0):this.options.parseMissingKeyHandler(g))}return o?(m.res=g,m):g}},{key:"extendTranslation",value:function(t,e,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,q(q({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(q(q({},n),{interpolation:q(q({},this.options.interpolation),n.interpolation)}));var s,a="string"===typeof t&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){var c=t.match(this.interpolator.nestingRegexp);s=c&&c.length}var u=n.replace&&"string"!==typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=q(q({},this.options.interpolation.defaultVariables),u)),t=this.interpolator.interpolate(t,u,n.lng||this.language,n),a){var l=t.match(this.interpolator.nestingRegexp);s<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return i&&i[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(e[0])),null):o.translate.apply(o,r.concat([e]))}),n)),n.interpolation&&this.interpolator.reset()}var h=n.postProcess||this.options.postProcess,d="string"===typeof h?[h]:h;return void 0!==t&&null!==t&&d&&d.length&&!1!==n.applyPostProcessor&&(t=K.handle(d,t,e,this.options&&this.options.postProcessPassResolved?q({i18nResolved:r},n):n,this)),t}},{key:"resolve",value:function(t){var e,n,r,i,o,s=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof t&&(t=[t]),t.forEach((function(t){if(!s.isValidLookup(e)){var c=s.extractFromKey(t,a),u=c.key;n=u;var l=c.namespaces;s.options.fallbackNS&&(l=l.concat(s.options.fallbackNS));var h=void 0!==a.count&&"string"!==typeof a.count,d=h&&!a.ordinal&&0===a.count&&s.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&("string"===typeof a.context||"number"===typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:s.languageUtils.toResolveHierarchy(a.lng||s.language,a.fallbackLng);l.forEach((function(t){s.isValidLookup(e)||(o=t,!Z["".concat(p[0],"-").concat(t)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(o)&&(Z["".concat(p[0],"-").concat(t)]=!0,s.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!s.isValidLookup(e)){i=n;var o,c=[u];if(s.i18nFormat&&s.i18nFormat.addLookupKeys)s.i18nFormat.addLookupKeys(c,u,n,t,a);else{var l;h&&(l=s.pluralResolver.getSuffix(n,a.count,a));var p="".concat(s.options.pluralSeparator,"zero");if(h&&(c.push(u+l),d&&c.push(u+p)),f){var m="".concat(u).concat(s.options.contextSeparator).concat(a.context);c.push(m),h&&(c.push(m+l),d&&c.push(m+p))}}for(;o=c.pop();)s.isValidLookup(e)||(r=o,e=s.getResource(n,t,o,a))}})))}))}})),{res:e,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(t){return void 0!==t&&!(!this.options.returnNull&&null===t)&&!(!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,r):this.resourceStore.getResource(t,e,n,r)}}],[{key:"hasDefaultValue",value:function(t){var e="defaultValue";for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e===n.substring(0,e.length)&&void 0!==t[n])return!0;return!1}}]),n}(A);function X(t){return t.charAt(0).toUpperCase()+t.slice(1)}var J=function(){function t(e){(0,u.Z)(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=I.create("languageUtils")}return(0,l.Z)(t,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var e=t.split("-");return this.formatLanguageCode(e[0])}},{key:"formatLanguageCode",value:function(t){if("string"===typeof t&&t.indexOf("-")>-1){var e=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map((function(t){return t.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=X(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=X(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=X(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isSupportedCode",value:function(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var e,n=this;return t?(t.forEach((function(t){if(!e){var r=n.formatLanguageCode(t);n.options.supportedLngs&&!n.isSupportedCode(r)||(e=r)}})),!e&&this.options.supportedLngs&&t.forEach((function(t){if(!e){var r=n.getLanguagePartFromCode(t);if(n.isSupportedCode(r))return e=r;e=n.options.supportedLngs.find((function(t){if(0===t.indexOf(r))return t}))}})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e):null}},{key:"getFallbackCodes",value:function(t,e){if(!t)return[];if("function"===typeof t&&(t=t(e)),"string"===typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];var n=t[e];return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function(t,e){var n=this,r=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],o=function(t){t&&(n.isSupportedCode(t)?i.push(t):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"===typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(t))):"string"===typeof t&&o(this.formatLanguageCode(t)),r.forEach((function(t){i.indexOf(t)<0&&o(n.formatLanguageCode(t))})),i}}]),t}(),Q=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","
1sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],tt={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}},et=["v1","v2","v3"],nt={zero:0,one:1,two:2,few:3,many:4,other:5};function rt(){var t={};return Q.forEach((function(e){e.lngs.forEach((function(n){t[n]={numbers:e.nr,plurals:tt[e.fc]}}))})),t}var it=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,u.Z)(this,t),this.languageUtils=e,this.options=n,this.logger=I.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!==typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=rt()}return(0,l.Z)(t,[{key:"addRule",value:function(t,e){this.rules[t]=e}},{key:"getRule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(t,{type:e.ordinal?"ordinal":"cardinal"})}catch(n){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(t,e);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,n).map((function(t){return"".concat(e).concat(t)}))}},{key:"getSuffixes",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(t,e){return nt[t]-nt[e]})).map((function(t){return"".concat(e.options.prepend).concat(t)})):r.numbers.map((function(r){return e.getSuffix(t,r,n)})):[]}},{key:"getSuffix",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(t,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(e)):this.getSuffixRetroCompatible(r,e):(this.logger.warn("no plural rule found for: ".concat(t)),"")}},{key:"getSuffixRetroCompatible",value:function(t,e){var n=this,r=t.noAbs?t.plurals(e):t.plurals(Math.abs(e)),i=t.numbers[r];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[
vendor: 4,360 bytes, line 1
10]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"===typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!et.includes(this.options.compatibilityJSON)}}]),t}();function ot(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function st(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ot(Object(n),!0).forEach((function(e){(0,g.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var at=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,u.Z)(this,t),this.logger=I.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(t){return t},this.init(e)}return(0,l.Z)(t,[{key:"init",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var e=t.interpolation;this.escape=void 0!==e.escape?e.escape:L,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?j(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?j(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?j(e.nestingPrefix):e.nestingPrefixEscaped||j("$t("),this.nestingSuffix=e.nestingSuffix?j(e.nestingSuffix):e.nestingSuffixEscaped||j(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var e="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(e,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(t,e,n,r){var i,o,s,a=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(t){return t.replace(/\$/g,"$$$$")}var l=function(t){if(t.indexOf(a.formatSeparator)<0){var i=R(e,c,t);return a.alwaysFormat?a.format(i,void 0,n,st(st(st({},r),e),{},{interpolationkey:t})):i}var o=t.split(a.formatSeparator),s=o.shift().trim(),u=o.join(a.formatSeparator).trim();return a.format(R(e,c,s),u,n,st(st(st({},r),e),{},{interpolationkey:s}))};this.resetRegExp();var h=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(t){return u(t)}},{regex:this.regexp,safeValue:function(t){return a.escapeValue?u(a.escape(t)):u(t)}}].forEach((function(e){for(s=0;i=e.regex.exec(t);){var n=i[1].trim();if(void 0===(o=l(n)))if("function"===typeof h){var c=h(t,i,r);o="string"===typeof c?c:""}else if(r&&r.hasOwnProperty(n))o="";else{if(d){o=i[0];continue}a.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(t)),o=""}else"string"===typeof o||a.useRawValueToEscape||(o=T(o));var u=e.safeValue(o);if(t=t.replace(i[0],u),d?(e.regex.lastIndex+=o.length,e.regex.lastIndex-=i[0].length):e.regex.lastIndex=0,++s>=a.maxReplaces)break}})),t}}
1,{key:"nest",value:function(t,e){var n,r,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=st({},o);function a(t,e){var n=this.nestingOptionsSeparator;if(t.indexOf(n)<0)return t;var r=t.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);t=r[0],i=(i=this.interpolate(i,s)).replace(/'/g,'"');try{s=JSON.parse(i),e&&(s=st(st({},e),s))}catch(o){return this.logger.warn("failed parsing options string in nesting for key ".concat(t),o),"".concat(t).concat(n).concat(i)}return delete s.defaultValue,t}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(t);){var c=[],u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map((function(t){return t.trim()}));n[1]=l.shift(),c=l,u=!0}if((r=e(a.call(this,n[1].trim(),s),s))&&n[0]===t&&"string"!==typeof r)return r;"string"!==typeof r&&(r=T(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(t)),r=""),u&&(r=c.reduce((function(t,e){return i.format(t,e,o.lng,st(st({},o),{},{interpolationkey:n[1].trim()}))}),r.trim())),t=t.replace(n[0],r),this.regexp.lastIndex=0}return t}}]),t}();function ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ct(Object(n),!0).forEach((function(e){(0,g.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var lt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,u.Z)(this,t),this.logger=I.create("formatter"),this.options=e,this.formats={number:function(t,e,n){return new Intl.NumberFormat(e,n).format(t)},currency:function(t,e,n){return new Intl.NumberFormat(e,ut(ut({},n),{},{style:"currency"})).format(t)},datetime:function(t,e,n){return new Intl.DateTimeFormat(e,ut({},n)).format(t)},relativetime:function(t,e,n){return new Intl.RelativeTimeFormat(e,ut({},n)).format(t,n.range||"day")},list:function(t,e,n){return new Intl.ListFormat(e,ut({},n)).format(t)}},this.init(e)}return(0,l.Z)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=e.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(t,e){this.formats[t.toLowerCase().trim()]=e}},{key:"format",value:function(t,e,n,r){var i=this,o=e.split(this.formatSeparator).reduce((function(t,e){var o=function(t){var e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){var r=t.split("(");e=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);"currency"===e&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===e&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((function(t){if(t){var e=w(t.split(":")),r=e[0],i=e.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[r.trim()]||(n[r.trim()]=i),"false"===i&&(n[r.trim()]=!1),"true"===i&&(n[r.trim()]=!0),isNaN(i)||(n[r.trim()]=parseInt(i,10))}}))}return{formatName:e,formatOptions:n}}(e),s=o.formatName,a=o.formatOptions;if(i.formats[s]){var c=t;try{var u=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=u.locale||u.lng||r.locale||r.lng||n;c=i.formats[s](t,l,ut(ut(ut({},a),r),u))}catch(h){i.logger.warn(h)}return c}return i.logger.warn("there was no format function for ".concat(s)),t}),t);return o}}]),t}();function ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function dt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ht(Object(n),!0).forEach((function(e){(0,g.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEac
vendor: 5,783 bytes, line 1
1h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ft(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m(t);if(e){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}var pt=function(t){f(n,t);var e=ft(n);function n(t,r,i){var o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,u.Z)(this,n),o=e.call(this),D&&A.call(h(o)),o.backend=t,o.store=r,o.services=i,o.languageUtils=i.languageUtils,o.options=s,o.logger=I.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=s.maxParallelReads||10,o.readingCalls=0,o.maxRetries=s.maxRetries>=0?s.maxRetries:5,o.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,s.backend,s),o}return(0,l.Z)(n,[{key:"queueLoad",value:function(t,e,n,r){var i=this,o={},s={},a={},c={};return t.forEach((function(t){var r=!0;e.forEach((function(e){var a="".concat(t,"|").concat(e);!n.reload&&i.store.hasResourceBundle(t,e)?i.state[a]=2:i.state[a]<0||(1===i.state[a]?void 0===s[a]&&(s[a]=!0):(i.state[a]=1,r=!1,void 0===s[a]&&(s[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===c[e]&&(c[e]=!0)))})),r||(a[t]=!0)})),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(c)}}},{key:"loaded",value:function(t,e,n){var r=t.split("|"),i=r[0],o=r[1];e&&this.emit("failedLoading",i,o,e),n&&this.store.addResourceBundle(i,o,n),this.state[t]=e?-1:2;var s={};this.queue.forEach((function(n){!function(t,e,n,r){var i=C(t,e,Object),o=i.obj,s=i.k;o[s]=o[s]||[],r&&(o[s]=o[s].concat(n)),r||o[s].push(n)}(n.loaded,[i],o),function(t,e){void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)}(n,t),e&&n.errors.push(e),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(t){s[t]||(s[t]={});var e=n.loaded[t];e.length&&e.forEach((function(e){void 0===s[t][e]&&(s[t][e]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((function(t){return!t.done}))}},{key:"read",value:function(t,e,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;return t.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:t,ns:e,fcName:n,tried:i,wait:o,callback:s}):(this.readingCalls++,this.backend[n](t,e,(function(a,c){if(r.readingCalls--,r.waitingReads.length>0){var u=r.waitingReads.shift();r.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}a&&c&&i<r.maxRetries?setTimeout((function(){r.read.call(r,t,e,n,i+1,2*o,s)}),o):s(a,c)}))):s(null,{})}},{key:"prepareLoading",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"===typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"===typeof e&&(e=[e]);var o=this.queueLoad(t,e,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(t){n.loadOne(t)}))}},{key:"load",value:function(t,e,n){this.prepareLoading(t,e,{},n)}},{key:"reload",value:function(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}},{key:"loadOne",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(function(r,s){r&&e.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&s&&e.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),s),e.loaded(t,r,s)}))}},{key:"saveMissing",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(e,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):void 0!==n&&null!==n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(t,e,n,r,null,dt(dt({},o),{},{isUpdate:i})),t&&t[0]&&this.store.addResource(t[0],e,n,r))}}]),n}(A);function mt(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if("object"===c(t[1])&&(e=t[1]),"string"===typeof t[1]&&(e.defaultValue=t[1]),"string"===typeof t[2]&&(e.tDescription=t[2]),"object"===c(t[2])||"object"===c(t[3])){var n=t[3]||t[2];
1Object.keys(n).forEach((function(t){e[t]=n[t]}))}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function gt(t){return"string"===typeof t.ns&&(t.ns=[t.ns]),"string"===typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"===typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function yt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function bt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yt(Object(n),!0).forEach((function(e){(0,g.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function vt(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m(t);if(e){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function wt(){}function _t(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach((function(e){"function"===typeof t[e]&&(t[e]=t[e].bind(t))}))}var kt=function(t){f(n,t);var e=vt(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if((0,u.Z)(this,n),t=e.call(this),D&&A.call(h(t)),t.options=gt(r),t.services={},t.logger=I,t.modules={external:[]},_t(h(t)),i&&!t.isInitialized&&!r.isClone){if(!t.options.initImmediate)return t.init(r,i),p(t,h(t));setTimeout((function(){t.init(r,i)}),0)}return t}return(0,l.Z)(n,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"===typeof e&&(n=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"===typeof e.ns?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));var r=mt();function i(t){return t?"function"===typeof t?new t:t:null}if(this.options=bt(bt(bt({},r),this.options),gt(e)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=bt(bt({}
vendor: 5,064 bytes, line 1
1,r.interpolation),this.options.interpolation)),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){var o;this.modules.logger?I.init(i(this.modules.logger),this.options):I.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!==typeof Intl&&(o=lt);var s=new J(this.options);this.store=new V(this.options.resources,this.options);var a=this.services;a.logger=I,a.resourceStore=this.store,a.languageUtils=s,a.pluralResolver=new it(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!o||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(a.formatter=i(o),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new at(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new pt(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.emit.apply(t,[e].concat(r))})),this.modules.languageDetector&&(a.languageDetector=i(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=i(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new Y(this.services,this.options),this.translator.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.emit.apply(t,[e].concat(r))})),this.modules.external.forEach((function(e){e.init&&e.init(t)}))}if(this.format=this.options.interpolation.format,n||(n=wt),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&"dev"!==c[0]&&(this.options.lng=c[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments),t}}));var h=E(),d=function(){var e=function(e,r){t.isInitialized&&!t.initializedStoreOnce&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),h.resolve(r),n(e,r)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return e(null,t.t.bind(t));t.changeLanguage(t.options.lng,e)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),h}},{key:"loadResources",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wt,r=n,i="string"===typeof t?t:this.language;if("function"===typeof t&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],s=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach((function(t){o.indexOf(t)<0&&o.push(t)}))};if(i)s(i);else{var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.forEach((function(t){return s(t)}))}this.options.preload&&this.options.preload.forEach((function(t){return s(t)})),this.services.backendConnector.load(o,this.options.ns,(function(t){t||e.resolvedLanguage||!e.language||e.setResolvedLanguage(e.language),r(t)}))}else r(null)}},{key:"reloadResources",value:function(t,e,n){var r=E();return t||(t=this.languages),e||(e=this.options.ns),n||(n=wt),this.services.backendConnector.reload(t,e,(function(t){r.resolve(),n(t)})),r}},{key:"use",value:function(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&K.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"setResolvedLanguage",value:function(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(var e=0;e<this.languages.length;e++){var n=this.languages[e];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(t,e){var n=this;this.isLanguageChangingTo=t;var r=E();
vendor: 2,082 bytes, line 1
1this.emit("languageChanging",t);var i=function(t){n.language=t,n.languages=n.services.languageUtils.toResolveHierarchy(t),n.resolvedLanguage=void 0,n.setResolvedLanguage(t)},o=function(o){t||o||!n.services.languageDetector||(o=[]);var s="string"===typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);s&&(n.language||i(s),n.translator.language||n.translator.changeLanguage(s),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(s)),n.loadResources(s,(function(t){!function(t,o){o?(i(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),e&&e(t,(function(){return n.t.apply(n,arguments)}))}(t,s)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(t):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(t,e,n){var r=this,i=function t(e,i){var o;if("object"!==c(i)){for(var s=arguments.length,a=new Array(s>2?s-2:0),u=2;u<s;u++)a[u-2]=arguments[u];o=r.options.overloadTranslationOptionHandler([e,i].concat(a))}else o=bt({},i);o.lng=o.lng||t.lng,o.lngs=o.lngs||t.lngs,o.ns=o.ns||t.ns,o.keyPrefix=o.keyPrefix||n||t.keyPrefix;var l=r.options.keySeparator||".",h=o.keyPrefix?"".concat(o.keyPrefix).concat(l).concat(e):e;return r.t(h,o)};return"string"===typeof t?i.lng=t:i.lngs=t,i.ns=e,i.keyPrefix=n,i}},{key:"t",value:function(){var t;return this.translator&&(t=this.translator).translate.apply(t,arguments)}},{key:"exists",value:function(){var t;return this.translator&&(t=this.translator).exists.apply(t,arguments)}},{key:"setDefaultNamespace",value:function(t){this.options.defaultNS=t}},{key:"hasLoadedNamespace",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
1if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var s=function(t,n){var r=e.services.backendConnector.state["".concat(t,"|").concat(n)];return-1===r||2===r};if(n.precheck){var a=n.precheck(this,s);if(void 0!==a)return a}return!!this.hasResourceBundle(r,t)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!s(r,t)||i&&!s(o,t)))}},{key:"loadNamespaces",value:function(t,e){var n=this,r=E();return this.options.ns?("string"===typeof t&&(t=[t]),t.forEach((function(t){n.options.ns.indexOf(t)<0&&n.options.ns.push(t)})),this.loadResources((function(t){r.resolve(),e&&e(t)})),r):(e&&e(),Promise.resolve())}},{key:"loadLanguages",value:function(t,e){var n=E();"string"===typeof t&&(t=[t]);var r=this.options.preload||[],i=t.filter((function(t){return r.indexOf(t)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(t){n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}},{key:"dir",value:function(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wt,i=bt(bt(bt({},this.options),e),{isClone:!0}),o=new n(i),s=["store","services","language"];return s.forEach((function(e){o[e]=t[e]})),o.services=bt({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new Y(o.services,o.options),o.translator.on("*",(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];o.emit.apply(o,[t].concat(n))})),o.init(i,r),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(A);(0,g.Z)(kt,"createInstance",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new kt(t,e)}));var St=kt.createInstance();St.createInstance=kt.createInstance;St.createInstance,St.init,St.loadResources,St.reloadResources,St.use,St.changeLanguage,St.getFixedT,St.t,St.exists,St.setDefaultNamespace,St.hasLoadedNamespace,St.loadNamespaces,St.loadLanguages;var xt=St,It=n(57715),At=[],Et=At.forEach,Tt=At.slice;function Pt(t){return Et.call(Tt.call(arguments,1),(function(e){if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n])})),t}var Ct=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Mt=function(t,e,n){var r=n||{};r.path=r.path||"/";var i=encodeURIComponent(e),o="".concat(t,"=").concat(i);if(r.maxAge>0){var s=r.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(s))}if(r.domain){if(!Ct.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(r.domain)}if(r.path){if(!Ct.test(r.path))throw new TypeError("option path is invalid");o+="; Path=".concat(r.path)}if(r.expires){if("function"!==typeof r.expires.toUTCString)throw new TypeError("option expires is invali
1d");o+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch("string"===typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o},Ot=function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*n*1e3)),r&&(i.domain=r),document.cookie=Mt(t,encodeURIComponent(e),i)},Rt=function(t){for(var e="".concat(t,"="),n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return null},Bt={name:"cookie",lookup:function(t){var e;if(t.lookupCookie&&"undefined"!==typeof document){var n=Rt(t.lookupCookie);n&&(e=n)}return e},cacheUserLanguage:function(t,e){e.lookupCookie&&"undefined"!==typeof document&&Ot(e.lookupCookie,t,e.cookieMinutes,e.cookieDomain,e.cookieOptions)}},jt={name:"querystring",lookup:function(t){var e;if("undefined"!==typeof window){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=n.substring(1).split("&"),i=0;i<r.length;i++){var o=r[i].indexOf("=");if(o>0)r[i].substring(0,o)===t.lookupQuerystring&&(e=r[i].substring(o+1))}}return e}},Nt=null,Lt=function(){if(null!==Nt)return Nt;try{Nt="undefined"!==window&&null!==window.localStorage;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch(e){Nt=!1}return Nt},Dt={name:"localStorage",lookup:function(t){var e;if(t.lookupLocalStorage&&Lt()){var n=window.localStorage.getItem(t.lookupLocalStorage);n&&(e=n)}return e},cacheUserLanguage:function(t,e){e.lookupLocalStorage&&Lt()&&window.localStorage.setItem(e.lookupLocalStorage,t)}},zt=null,Ft=function(){if(null!==zt)return zt;try{zt="undefined"!==window&&null!==window.sessionStorage;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch(e){zt=!1}return zt},Ut={name:"sessionStorage",lookup:function(t){var e;if(t.lookupSessionStorage&&Ft()){var n=window.sessionStorage.getItem(t.lookupSessionStorage);n&&(e=n)}return e},cacheUserLanguage:function(t,e){e.lookupSessionStorage&&Ft()&&window.sessionStorage.setItem(e.lookupSessionStorage,t)}},Wt={name:"navigator",lookup:function(t){var e=[];if("undefined"!==typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)e.push(navigator.languages[n]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return e.length>0?e:void 0}},Gt={name:"htmlTag",lookup:function(t){var e,n=t.htmlTag||("undefined"!==typeof document?document.documentElement:null);return n&&"function"===typeof n.getAttribute&&(e=n.getAttribute("lang")),e}},Vt={name:"path",lookup:function(t){var e;if("undefined"!==typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"===typeof t.lookupFromPathIndex){if("string"!==typeof n[t.lookupFromPathIndex])return;e=n[t.lookupFromPathIndex].replace("/","")}else e=n[0].replace("/","")}return e}},Kt={name:"subdomain",lookup:function(t){var e="number"===typeof t.lookupFromSubdomainIndex?t.lookupFromSubdomainIndex+1:1,n="undefined"!==typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[e]}};var Ht=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,u.Z)(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return(0,l.Z)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=Pt(e,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(Bt),this.addDetector(jt),this.addDetector(Dt),this.addDetector(Ut),this.addDetector(Wt),this.addDetector(Gt),this.addDetector(Vt),this.addDetector(Kt)}},{key:"addDetector",value:function(t){this.detectors[t.name]=t}},{key:"detect",value:function(t){var e=this;t||(t=this.options.order);var n=[];return t.forEach((function(t){if(e.detectors[t]){var r=e.detectors[t].lookup(e.options);r&&"string"===typeof r&&(r=[r]),r&&(n=n.concat(r))}})),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(t,e){var n=this;e||(e=this.options.caches),e&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||e.forEach((function(e){n.detectors[e]&&n.detectors[e].cacheUserLanguage(t,n.options)})))}}]),t}();Ht.type="languageDetector";var qt=JSON.parse('{"connect_wallet":"Connect wallet","explore_collections":"Explore collections","get_help":"Get help","sell_my_nfts":"Sell my NFTs","trending_collections":"Trending Collections","featured_collections":"Featured Collections","highest_volume_collections":"Highest Volume Collections","total_volume":"Total volume","volume":"Volume","items":"items","offers":"Offers","owned":"Owned","owned_nfts":"Owned NFTs","best_deals":"Best deals","messages":"Messages","all":"All","listed":"Listed","unlisted":"Unlisted","active_offers":"Active offers","favorites":"Favorites","activity":"Activity","global_offers":"Global offers","global_offer":"Global offer","best_global_offer":"Best global offer","search":"Search","rank":"Rank","price_range":"Price range","min":"min","max":"max","apply":"Apply","attributes":"Attributes","new":"New","price":"Price","offer":"offer","no_offer":"No offer","not_listed":"Not listed","suggestions":"Suggestions","suggested":"Suggested","estimated_items_value":"Est. items value","copy_attribute":"Copy attribute","copy_link":"Copy link","copy_address":"Copy address","token_address":"Token address","link_copied":"Link copied to clipboard","go_back":"Go back","details":"Details","marketplace_fees":"Marketplace fees","creator_fees":"Creator fees","royalties":"Royalties","list":"List","buy":"Buy","cancel":"Cancel","list_item":"List item","edit_profile":"Edit profile","edit_my_profile":"Edit my profle","public_profile":"Public profile","private_profile":"Private profile","enable_mail_notifications":"Enable mail notifications","update_profile":"Update profile","owner":"Owner","buy_now":"Buy now","list_now":"List now","make_offer":"Make an offer","accept_offer":"Accept offer","cancel_offer":"Cancel offer","aggregation":"Aggregation","aggregated":"Aggregated","view_more":"View more","refresh_metadata":"Refresh metadata","add_favorite":"Add favorite","remove_favorite":"Remove favorite","set_avatar":"Set as avatar","my_cart":"My cart","clear_cart":"Clear cart","you_pay":"You pay","proceed_to_checkout":"Proceed to checkout","amount_of_attributes":"Amount of attributes","refreshing":"Refreshing","floor":"Floor","floor_price":"Floor price","trending":"Trending","empty_cart":"Cart is empty","last_5_minutes":"Last 5 minutes","last_1_hour":"Last 1 hour","last_24_hours":"Last 24 hours","last_7_days":"Last 7 days","last_30_days":"Last 30 days","most_recent":"Most recent","oldest":"Oldest","no_results":"No results","collections":"Collections","nfts":"NFTs","users":"Users","families":"Families","important":"important","txs_per_second":"txs/s","highest_floor_price":"Highest floor price","lowest_floor_price":"Lowest floor price","highest_volume":"Highest volume","lowest_volume":"Lowest volume","price_low_to_high":"Price low to high","price_high_to_low":"Price high to low","howrare_common_to_rare":"HowRare: common to rare","howrare_rare_to_common":"HowRare: rare to common","moonrank_common_to_rare":"MoonRank: common to rare","moonrank_rare_to_common":"MoonRank: rare to common","recently_listed":"Recently listed","sweep":"Sweep","sales":"Sales","listings":"Listings","search_collection_placeholder":"Search a collection","search_item_placeholder":"Search item by name","search_all_placeholder":"Search collection, nft, user...","please_connect_wallet":"Please connect your wallet","sell_items":"Sell items","launchpad":"Launchpad","switch_theme":"Switch theme","logout":"Log out","verified_user":"Verified user","beta_disclaimer":"You\u2018re currently on Solanart V3 Beta version. If you have any issue you can ~~go back to the previous version~~.","status":"Status","live":"Live","click_to_unlock_fees":"Click to unlock royalties edition","will_pay_additional_fees":"You will pay an additional fee equivalent to {{percentage}} or {{price}}","will_save_fees":"You are saving {{percentage}} of fees or {{price}}","fees_disclaimer":"fees and royalties are critical for the development of Solanart marketplace and projects as a whole","compared_to_biggest_mps":"Compared to biggest marketplaces","edit_bulk_price":"Edit price for all at once","homepage":{"heading":"Trade NFTs at ~LOWEST~ cost","heading_subtext":"Buy or sell NFTs and save in fees. The lowest-fee marketplace on Solana.","read_whats_new":"Read now \u201cWhat\'s new on Solanart?\u201d"},"footer":{"description":"The first marketplace on Solana to buy, trade and sell non-fungible tokens (NFTs). Chat on chain with buyers/sellers, launch a project with our launchpad or just explore.","explore":"Explore","all_collections":"All collections","launchpad":"Launchpad","partners":"Partners","apply_listing":"Apply for listing","apply_launchpad":"Apply for launchpad","contact_us":"Contact us","terms_conditions":"Terms & Conditions","privacy_policy":"Privacy policy","cookie_policy":"Cookie policy","careers":"Careers","all_rights_reserved":"All rights reserved"},"english":"English","french":"Fran\xe7ais","spanish":"Espa\xf1ol","german":"Deutsch","italian":"Italiano","japanese":"\u65e5\u672c\u8a9e","chinese":"\u4e2d\u56fd\u4eba","korean":"\ud55c\uad6d\uc778","turkish":"T\xfcrk"}'),$t=JSON.parse('{"connect_wallet":"Connecter mon portefeuille","explore_collections":"Explorer les collections","get_help":"Obtenir de l\'aide","sell_my_nfts":"Vendre mes NFTs","trending_collections":"Collections en tendance","featured_collections":"Collections en avant","highest_volume_collections":"Collections avec le plus haut volume","total_volume":"Volume total","volume":"Volume","items":"\xe9l\xe9ments","offers":"Offres","owned":"Poss\xe9d\xe9","owned_nfts":"NFTs poss\xe9d\xe9s","messages":"Messages","all":"Tout","listed":"List\xe9s","unlisted":"Non list\xe9","active_offers":"Offres actives","favorites":"Favoris","activity":"Activit\xe9","global_offers":"Offres globales","global_offer":"Offre globale","best_global_offer":"Meilleure offre globale","search":"Rechercher","rank":"Rang","price_range":"Tranche de prix","min":"min","max":"max","apply":"Appliquer","attributes":"Attributs","price":"Prix","offer":"offre","no_offer":"Aucune offre","not_listed":"Non list\xe9","suggestions":"Suggestions","suggested":"Sugg\xe9r\xe9","estimated_items_value":"Valeur estim\xe9e","copy_attribute":"Copier l\'attribut","copy_link":"Copier le lien","copy_address":"Copier l\'adresse","token_address":"Adresse du jeton","link_copied":"Lien copi\xe9 dans le presse-papier","go_back":"Retour","details":"D\xe9tails","marketplace_fees":"Frais de plateforme","creator_fees":"Frais du cr\xe9ateur","royalties":"Royalties","list":"Mettre en vente","buy":"Acheter","cancel":"Annuler","list_item":"Nettre en vente","edit_profile":"\xc9diter le profil","edit_my_profile":"\xc9diter mon profil","public_profile":"Profil public","private_profile":"Profil priv\xe9","enable_mail_notifications":"Activer les notifications par e-mail","update_profile":"Mettre \xe0 j
1our le profil","owner":"Propri\xe9taire","buy_now":"Acheter","list_now":"Mettre en vente","make_offer":"Faire une offre","accept_offer":"Accepter l\'offre","cancel_offer":"Annuker l\'offre","aggregation":"Aggr\xe9gation","aggregated":"Agr\xe9g\xe9","view_more":"Voir plus","refresh_metadata":"Rafra\xeechir les metadatas","add_favorite":"Ajouter en favori","remove_favorite":"Retirer des favoris","set_avatar":"D\xe9finir comme avatar","my_cart":"Mon panier","clear_cart":"Vider le panier","you_pay":"Vous payez","proceed_to_checkout":"Passer au paiement","amount_of_attributes":"Nombre d\'attributs","refreshing":"Mise \xe0 jour","floor":"Floor","floor_price":"Floor","trending":"Tendance","empty_cart":"Le panier est vide","last_5_minutes":"Derni\xe8res 5 minutes","last_1_hour":"Derni\xe8re heure","last_24_hours":"Derni\xe8res 24 heures","last_7_days":"Derniers 7 jours","last_30_days":"Derniers 30 jours","most_recent":"Plus r\xe9cent","oldest":"Plus ancien","no_results":"Aucun r\xe9sultat","collections":"Collections","nfts":"NFTs","users":"Utilisateurs","families":"Familles","important":"important","txs_per_second":"txs/s","highest_floor_price":"Floor le plus \xe9lev\xe9","lowest_floor_price":"Floor le plus bas","highest_volume":"Volume le plus \xe9lev\xe9","lowest_volume":"Volue le plus bas","price_low_to_high":"Prix: plus bas au plus haut","price_high_to_low":"Prix: plus haut au plus bas","howrare_common_to_rare":"HowRare: commun \xe0 rare","howrare_rare_to_common":"HowRare: rare \xe0 commun","moonrank_common_to_rare":"MoonRank: commun \xe0 rare","moonrank_rare_to_common":"MoonRank: rare \xe0 commun","re
1cently_listed":"R\xe9cemment list\xe9","sweep":"Sweep","search_collection_placeholder":"Chercher une collection","search_item_placeholder":"Chercher un NFT par son nom","search_all_placeholder":"Chercher une collection, un nft, un utilisateur...","please_connect_wallet":"Veuillez connecter votre portefeuille","sell_items":"Vendre mes NFTs","launchpad":"Launchpad","switch_theme":"Changer le th\xe8me","logout":"Se d\xe9connecter","verified_user":"Utilisateur v\xe9rifi\xe9","beta_disclaimer":"Vous \xeates actuellement sur la version B\xeata de Solanart (V3). Si vous rencontrez un probl\xe8me vous pouvez ~~retourner sur la version pr\xe9c\xe9dente~~.","status":"Statut","click_to_unlock_fees":"Cochez pour d\xe9bloquer l\'\xe9dition des royalties","will_pay_additional_fees":"Vous allez payer des frais additionels \xe9quivalents \xe0 {{percentage}} soit {{price}}","will_save_fees":"Vous \xe9conomisez {{percentage}} en frais soit {{price}}","fees_disclaimer":"les frais de la plateforme et les royalties sont n\xe9cessaires au d\xe9velopement de la plateforme Solanart et aux collections elles-m\xeames","compared_to_biggest_mps":"Compar\xe9 aux plus grosses marketplaces","homepage":{"heading":"\xc9changez des NFTs avec les frais les plus bas","heading_subtext":"Achetez ou vendez des NFTs et \xe9conomisez des frais. La marketplace avec le moins de frais sur Solana.","read_whats_new":"Voir l\'article \u201cQuelles sont les nouveaut\xe9s sur Solanart?\u201d"},"footer":{"description":"La premi\xe8re marketplace sur Solana pour acheter, \xe9changer et vendre des jetons non fongibles (NFTs). Discutez via la blockchain avec les acheteurs/vendeurs, lancez votre projet gr\xe2ce \xe0 notre launchpad ou explorez simplement.","explore":"Explorer","all_collections":"Toutes les collections","launchpad":"Launchpad","partners":"Partenaires","apply_listing":"Demander l\'ajout d\'une collection","apply_launchpad":"Lancer un projet via le Launchpad","contact_us":"Nous contacter","terms_conditions":"Termes & Conditions","privacy_policy":"Politique de confidentialit\xe9","cookie_policy":"Politique relative aux cookies","careers":"Careers","all_rights_reserved":"Tous droits r\xe9serv\xe9s"}}'),Zt=JSON.parse('{"connect_wallet":"Conectar Billetera","explore_collections":"Explorar Colecciones","get_help":"Ayuda","sell_my_nfts":"Vender mis NFTs","trending_collections":"En tendencia","featured_collections":"Mejores Colecciones","highest_volume_collections":"Colecciones con Mayor Volumen","total_volume":"Volumen Total","volume":"Volumen","items":"Items","offers":"Ofertas","owned":"Propio","owned_nfts":"Mis NFTs","messages":"Mensajes","all":"Todos","listed":"Listados","unlisted":"Deslistados","active_offers":"Activar Ofertas","favorites":"Favoritos","activity":"Actividad","global_offers":"Ofertas Globales","global_offer":"Ofertas Globales","best_global_offer":"Mejor Oferta Global","search":"Buscar","rank":"Rango","price_range":"Rango de Precios","min":"min","max":"max","apply":"Aplicar","attributes":"Atributos","price":"Precio","offer":"Oferta","no_offer":"Sin Oferta","not_listed":"No listado","suggestions":"Sugerencias","suggested":"Sugerido","estimated_items_value":"Valor Estimado de Items","copy_attribute":"Copiar Atributo","copy_link":"Copiar Link","copy_address":"Copiar Direcci\xf3n","token_address":"Direcci\xf3n del Token","link_copied":"Link Copiado","go_back":"Regresar","details":"Detalles","marketplace_fees":"Tasas del Mercado","creator_fees":"Tasas del Creador","royalties":"Royalties","list":"Listar","buy":"Comprar","cancel":"Cancelar","list_item":"Listar item","edit_profile":"Editar Perfil","edit_my_profile":"Editar mi Perfil","public_profile":"Perfil Publico","private_profile":"Perfil Privado","enable_mail_notifications":"Activar Notificaciones de Mail","update_profile":"Actualizar Perfil","owner":"Due\xf1o","buy_now":"Comprar ahora","list_now":"Listar ahora","make_offer":"Make an offer","accept_offer":"Aceptar Oferta","cancel_offer":"Cancelar Oferta","aggregation":"Agregaci\xf3n","aggregated":"Agregado","view_more":"Ver mas","refresh_metadata":"Actualizar metadata","add_favorite":"A\xf1adir Favorito","remove_favorite":"Eliminar Favorito","set_avatar":"Seleccionar como Avatar","my_cart":"Mi Carrito","clear_cart":"
1Vaciar Carrito","you_pay":"Pagar","proceed_to_checkout":"Proceder con checkout","amount_of_attributes":"Cantidad ed Atributos","refreshing":"Actualizando","floor":"Suelo","floor_price":"Precio del Suelo","trending":"En Tendencia","empty_cart":"El Carrito esta vacio","last_5_minutes":"Ultimos 5 minutos","last_1_hour":"Ultima hora","last_24_hours":"Ultimas 24 horas","last_7_days":"Ultimos 7 dias","last_30_days":"Ultimos 30 dias","most_recent":"Mas reciente","oldest":"El mas antiguo","no_results":"Sin resultados","collections":"Colecciones","nfts":"NFTs","users":"Usuario","families":"Familias","important":"Importante","txs_per_second":"txs/s","highest_floor_price":"Precio del suelo mas alto","lowest_floor_price":"Precio del suelo mas bajo","highest_volume":"Mayor Volumen","lowest_volume":"Menor Volumen","price_low_to_high":"Precio de Bajo a Alto","price_high_to_low":"Precio de Alto a Bajo","howrare_common_to_rare":"HowRare: comun a raro","howrare_rare_to_common":"HowRare: raro a comun","moonrank_common_to_rare":"MoonRank: comun a raro","moonrank_rare_to_common":"MoonRank: raro a comun","recently_listed":"Listado recientemente","sweep":"Barrer","search_collection_placeholder":"Buscar una Coleccion","search_item_placeholder":"Buscar Item por nombre","search_all_placeholder":"Buscar colecci\xf3n, nft, usuario...","please_connect_wallet":"Por favor connecte la billetera","sell_items":"Vender items","launchpad":"Launchpad","switch_theme":"Cambiar tema de pantalla","logout":"Salir","verified_user":"Usuario verificado","beta_disclaimer":"Usted esta actuamente en Solanart V3 Beta version. Por favor si tiene algun problema ~~regrese a la anterior version~~.","status":"Status","click_to_unlock_fees":"Presione para activar edici\xf3n de tasas","will_pay_additional_fees":"Usted pagara una tasa adicional equivalente a {{percentage}} or {{price}}","will_save_fees":"Usted esta ahorrando {{percentage}} of fees or {{price}}","fees_disclaimer":"Las tasas y royalties son criticas para el desarrollo y funcionamiento de Solanart y los Proyectos NFTS como ecosistema","compared_to_biggest_mps":"Comparado con los mercados mas grandes","homepage":{"heading":"Compra y vende NFTs al costo m\xe1s bajo","heading_subtext":"Compra y vende NFTs al costo m\xe1s bajo en Solana."},"footer":{"description":"El primer mercardo en Solana para comprar, tradear y vender tokens no fungibles (NFTs). Chatea en linea con compradores/vendedores, lanza tu proyecto con nuestro launchpad or tan solo explora.","explore":"Explorar","all_collections":"Todas las Colecciones","launchpad":"Launchpad","partners":"Partners","apply_listing":"Aplicar para listar","apply_launchpad":"Aplicar para launchpad","contact_us":"Contactanos","terms_conditions":"Terminos","privacy_policy":"Politica de Privacidad","cookie_policy":"Politica de Cookies","careers":"Careers","all_rights_reserved":"Todos los Derechos Reservados"}}'),Yt=JSON.parse('{"connect_wallet":"\u30a6\u30a9\u30ec\u30c3\u30c8\u3092\u63a5\u7d9a","explore_collections":"\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u63a2\u7d22","get_help":"\u30d8\u30eb\u30d7\u3092\u53d6\u5f97","sell_my_nfts":"\u79c1\u306eNFT\u3092\u58f2\u308b","trending_collections":"\u30c8\u30ec\u30f3\u30c9\u30b3\u30ec\u30af\u30b7\u30e7\u30f3","featured_collections":"\u6ce8\u76ee\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3","highest_volume_collections":"\u6700\u9ad8\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3","total_volume":"\u5408\u8a08\u30dc\u30ea\u30e5\u30fc\u30e0","volume":"\u30dc\u30ea\u30e5\u30fc\u30e0","items":"\u30a2\u30a4\u30c6\u30e0","offers":"\u30aa\u30d5\u30a1\u30fc","owned":"\u6240\u6709","owned_nfts":"\u6240\u6709\u3055\u308c\u3066\u3044\u308bNFTs","messages":"\u30e1\u30c3\u30bb\u30fc\u30b8","all":"\u3059\u3079\u3066","listed":"\u30ea\u30b9\u30c8\u3055\u308c\u3066\u3044\u308b","unlisted":"\u975e\u4e0a\u5834","active_offers":"\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30aa\u30d5\u30a1\u30fc","favourite":"\u304a\u6c17\u306b\u5165\u308a","activity":"\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3","global_offers":"\u30b0\u30ed\u30fc\u30d0\u30eb\u30aa\u30d5\u30a1\u30fc","global_offer":"\u30b0\u30ed\u30fc\u30d0\u30eb\u30aa\u30d5\u30a1\u30fc","best_global_offer":"\u30d9\u30b9\u30c8\u30b0\u30ed\u30fc\u30d0\u30eb\u30aa\u30d5\u30a1\u30fc","search":"\u691c\u7d22","rank":"\u30e9\u30f3\u30af","price_range":"\u4fa1\u683c\u5e2f","min":"\u5206","max":"\u6700\u5927","apply":"\u7533\u3057\u8fbc\u307f","attributes":"\u5c5e\u6027","price":"\u4fa1\u683c","offer":"\u30aa\u30d5\u30a1\u30fc","no_offer":"\u30aa\u30d5\u30a1\u30fc\u306f\u3042\u308a\u307e\u305b\u3093","not_listed":"\u30ea\u30b9\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093","suggestions":"\u63d0\u6848","suggested":"\u63d0\u6848","estimated_items_value":"Est. \u30a2\u30a4\u30c6\u30e0\u5024","copy_attribute":"\u5c5e\u6027\u306e\u30b3\u30d4\u30fc","copy_link":"\u30ea\u30f3\u30af\u3092\u30b3\u30d4\u30fc","copy_address":"\u30a2\u30c9\u30ec\u30b9\u306e\u30b3\u30d4\u30fc","token_address":"\u30c8\u30fc\u30af\u30f3\u30a2\u30c9\u30ec\u30b9","go_back":"\u623b\u308b","details":"\u8a73\u7d30","marketplace_fees":"\u5e02\u5834\u624b\u6570\u6599","creator_fees":"\u30af\u30ea\u30a8\u30a4\u30bf\u30fc\u30d5\u30a3\u30fc","royalties":"\u30ed\u30a4\u30e4\u30ea\u30c6\u30a3","list":"\u30ea\u30b9\u30c8","buy":"\u8cb7\u3046","cancel":"\u30ad\u30e3\u30f3\u30bb\u30eb","list_item":"\u30ea\u30b9\u30c8\u9805\u76ee","edit_profile":"\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6","edit_my_profile":"\u81ea\u5206\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b","public_profile":"\u516c\u958b\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb","private_profile":"\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb","enable_mail_notifications":"\u30e1\u30fc\u30eb\u901a\u77e5\u3092\u6709\u52b9\u306b\u3059\u308b","update_profile":"\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u306e\u66f4\u65b0","owner":"\u30aa\u30fc\u30ca\u30fc","buy_n
1ow":"\u4eca\u3059\u3050\u8cfc\u5165","list_now":"\u4eca\u3059\u3050\u30ea\u30b9\u30c8","make_offer":"\u30aa\u30d5\u30a1\u30fc\u3092\u3059\u308b","accept_offer":"\u30aa\u30d5\u30a1\u30fc\u3092\u53d7\u3051\u5165\u308c\u308b","cancel_offer":"\u30aa\u30d5\u30a1\u30fc\u3092\u30ad\u30e3\u30f3\u30bb\u30eb","aggregation":"\u96c6\u8a08","aggregated":"\u96c6\u8a08","view_more":"\u3082\u3063\u3068\u898b\u308b","refresh_metadata":"\u30e1\u30bf\u30c7\u30fc\u30bf\u306e\u66f4\u65b0","add_favorite":"\u304a\u6c17\u306b\u5165\u308a\u3092\u8ffd\u52a0","set_avatar":"\u30a2\u30d0\u30bf\u30fc\u3068\u3057\u3066\u8a2d\u5b9a","my_cart":"\u30de\u30a4\u30ab\u30fc\u30c8","clear_cart":"\u30ab\u30fc\u30c8\u3092\u30af\u30ea\u30a2","you_pay":"\u3042\u306a\u305f\u304c\u652f\u6255\u3046","proceed_to_checkout":"\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u306b\u9032\u3080","amount_of_attributes":"\u5c5e\u6027\u306e\u91cf","refreshing":"\u3055\u308f\u3084\u304b","floor":"\u5e8a","floor_price":"\u5e8a\u306e\u4fa1\u683c","trending":"\u30c8\u30ec\u30f3\u30c9","empty_cart":"\u30ab\u30fc\u30c8\u306f\u7a7a\u3067\u3059","last_5_minutes":"\u6700\u5f8c\u306e5\u5206","last_1_hour":"\u6700\u5f8c\u306e1\u6642\u9593","last_24_hours":"\u904e\u53bb24\u6642\u9593","last_7_days":"\u904e\u53bb7\u65e5\u9593","last_30_days":"\u904e\u53bb30\u65e5\u9593","most_recent":"\u6700\u65b0\u306e","oldest":"\u6700\u3082\u53e4\u3044","no_results":"\u7d50\u679c\u306f\u3042\u308a\u307e\u305b\u3093","collections":"\u30b3\u30ec\u30af\u30b7\u30e7\u30f3","nfts":"NFTs","users":"\u30e6\u30fc\u30b6\u30fc","families":"\u5bb6\u65cf","important":"\u91cd\u8981","txs_per_second":"tx/s","highest_floor_price":"\u6700\u9ad8\u968e\u306e\u4fa1\u683c","lowest_floor_price":"\u6700\u4f4e\u4fa1\u683c","highest_volume":"\u6700\u9ad8\u30dc\u30ea\u30e5\u30fc\u30e0","lowest_volume":"\u6700\u4f4e\u30dc\u30ea\u30e5\u30fc\u30e0","price_low_to_high":"\u4f4e\u4fa1\u683c\u304b\u3089\u9ad8\u4fa1\u683c","price_high_to_low":"\u4fa1\u683c\u304c\u9ad8\u3044\u304b\u3089\u4f4e\u3044","howrare_common_to_rare":"\u30cf\u30a6\u30ec\u30a2:\u30ec\u30a2\u306b\u5171\u901a","howrare_rare_to_common":"\u30cf\u30a6\u30ec\u30a2:\u73cd\u3057\u3044\u3082\u306e\u304b\u3089\u4e00\u822c\u7684\u306a\u3082\u306e\u307e\u3067","moonrank_common_to_rare":"\u30e0\u30fc\u30f3\u30e9\u30f3\u30af:\u30ec\u30a2\u306b\u5171\u901a","moonrank_rare_to_common":"\u30e0\u30fc\u30f3\u30e9\u30f3\u30af:\u73cd\u3057\u3044\u3082\u306e\u304b\u3089\u4e00\u822c\u7684\u306a\u3082\u306e\u307e\u3067","recently_listed":"\u6700\u8fd1\u30ea\u30b9\u30c8\u3055\u308c\u305f","sweep":"\u6383\u304f","search_collection_placeholder":"\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u691c\u7d22\u3059\u308b","search_item_placeholder":"\u540d\u524d\u3067\u9805\u76ee\u3092\u691c\u7d22","search_all_placeholder":"\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3001nft\u3001\u30e6\u30fc\u30b6\u30fc\u3092\u691c\u7d22\u3057\u307e\u3059\u3002..","sell_items":"\u30a2\u30a4\u30c6\u30e0\u3092\u58f2\u308b","launchpad":"\u767a\u5c04\u53f0","switch_theme":"\u30c6\u30fc\u30de\u3092\u5207\u308a\u66ff\u3048\u308b","logout":"\u30ed\u30b0\u30a2\u30a6\u30c8","beta_disclaimer":"\u3042\u306a\u305f\u306f\u73fe\u5728\u30bd\u30e9\u30ca\u30fc\u30c8 V3\u30d9\u30fc\u30bf\u7248\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002 \u3042\u306a\u305f\u304c\u4f55\u304b\u554f\u984c\u304c\u3042\u308b\u5834\u5408\u306f\u3001~~\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3~~\u306b\u623b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002","status":"\u30b9\u30c6\u30fc\u30bf\u30b9","click_to_unlock_fees":"\u30af\u30ea\u30c3\u30af\u3057\u3066\u6599\u91d1\u30a8\u30c7\u30a3\u30b7\u30e7\u30f3\u306e\u30ed\u30c3\u30af\u3092\u89e3\u9664\u3057\u307e\u3059","will_pay_additional_fees":"{{price}}\u307e\u305f\u306f{{percentage}}\u306b\u76f8\u5f53\u3059\u308b\u8ffd\u52a0\u6599\u91d1\u3092\u652f\u6255\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059","will_save_fees":"\u624b\u6570\u6599\u307e\u305f\u306f{{price}}\u306e{{percentage}}\u3092\u7bc0\u7d04\u3057\u3066\u3044\u307e\u3059","fees_disclaimer":"\u624b\u6570\u6599\u3068\u30ed\u30a4\u30e4\u30ea\u30c6\u30a3\u306f\u3001\u30bd\u30e9\u30ca\u30fc\u30c8 \u30de\u30fc\u30b1\u30c3\u30c8\u30d7\u30ec\u30a4\u30b9\u3068\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5168\u4f53\u306e\u958b\u767a\u306b\u3068\u3063\u3066\u91cd\u8981\u3067\u3059","compared_to_biggest_mps":"\u6700\u5927\u306e\u5e02\u5834\u3068\u6bd4\u8f03\u3057\u3066","\u30db\u30fc\u30e0\u30da\u30fc\u30b8":{"heading":"\u30bc\u30ed\u30b3\u30b9\u30c8\u3067NFTs\u3092\u53d6\u5f15\u3059\u308b","heading_subtext":"NFTs\u3092\u8cfc\u5165\u307e\u305f\u306f\u58f2\u5374\u3057\u3001\u624b\u6570\u6599\u3092100\uff05\u7bc0\u7d04\u3057\u307e\u3059\u3002 \u30bd\u30e9\u30ca\u306e\u552f\u4e00\u306e\u30bc\u30ed\u6599\u91d1\u306e\u5e02\u5834\u3002"}
1,"\u30d5\u30c3\u30bf\u30fc":{"description":"\u30bd\u30e9\u30ca\u306e\u6700\u521d\u306e\u5e02\u5834\u3067\u3001\u4ee3\u66ff\u4e0d\u53ef\u80fd\u306a\u30c8\u30fc\u30af\u30f3\uff08NFTs\uff09\u3092\u8cfc\u5165\u3001\u53d6\u5f15\u3001\u8ca9\u58f2\u3057\u307e\u3059\u3002 \u30d0\u30a4\u30e4\u30fc/\u58f2\u308a\u624b\u3068\u30c1\u30a7\u30fc\u30f3\u4e0a\u306e\u30c1\u30e3\u30c3\u30c8\u3001\u79c1\u305f\u3061\u306e\u30e9\u30f3\u30c1\u30d1\u30c3\u30c9\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u8d77\u52d5\u3059\u308b\u304b\u3001\u5358\u306b\u63a2\u691c\u3002","explore":"\u63a2\u691c","all_collections":"\u3059\u3079\u3066\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3","launchpad":"\u767a\u5c04\u53f0","partners":"\u30d1\u30fc\u30c8\u30ca\u30fc","apply_listing":"\u30ea\u30b9\u30c8\u306b\u9069\u7528","apply_launchpad":"\u30e9\u30f3\u30c1\u30d1\u30c3\u30c9\u306b\u9069\u7528","contact_us":"\u304a\u554f\u3044\u5408\u308f\u305b","terms_conditions":"\u5229\u7528\u898f\u7d04","privacy_policy":"\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u30dd\u30ea\u30b7\u30fc","cookie_policy":"\u30af\u30c3\u30ad\u30fc\u30dd\u30ea\u30b7\u30fc","careers":"Careers"}}'),Xt=JSON.parse('{"connect_wallet":"Wallet verbinden","explore_collections":"Kollektionen erkunden","get_help":"Hilfe suchen","sell_my_nfts":"NFTs verkaufen","trending_collections":"Angesagte Kollektionen","featured_collections":"Ausgew\xe4hlte Kollektionen","highest_volume_collections":"Volumenst\xe4rkste Kollektionen","total_volume":"Gesamtvolumen","volume":"Volumen","items":"Artikels","offers":"Angeboten","owned":"Eigene","owned_nfts":"Eigene NFTs","messages":"Nachrichten","all":"Alle","listed":"Aufgelisted","unlisted":"Nicht aufgelisted","active_offers":"Aktive Angebote","favorites":"Favoriten","activity":"Aktivit\xe4t","global_offers":"Globale Angebote","global_offer":"Globales Angebot","best_global_offer":"Bestes globales Angebot","search":"Suchen","rank":"Rang","price_range":"Preislage","min":"min","max":"max","apply":"Anwenden","attributes":"Attribute","price":"Preis","offer":"Angebot","no_offer":"Kein Angebot","not_listed":"Nicht aufgelisted","suggestions":"Vorschl\xe4ge","suggested":"Vorgeschlagene","estimated_items_value":"Gesch\xe4tzter Wert des Artikels","copy_attribute":"Attribute kopieren","copy_link":"Link kopieren","copy_address":"Adresse kopieren","token_address":"Token kopieren","go_back":"Zur\xfcckgehen","details":"Details","marketplace_fees":"Marktplatz-Geb\xfchren","creator_fees":"Erstellergeb\xfchr","royalties":"Royalties","list":"Auflisten","buy":"Kaufen","cancel":"Abbrechen","list_item":"Artikel auflisten","edit_profile":"Profile bearbeiten","edit_my_profile":"Mein Profil bearbeiten","public_profile":"\xd6ffentliches Profil","private_profile":"Privatprofil","enable_mail_notifications":"Mail-Benachrichtigungen einschalten","update_profile":"Profil aktualisieren","owner":"Besitzer","buy_now":"Jetzt kaufen","list_now":"Jetzt auflisten","make_offer":"Angebot erstellen","accept_offer":"Angebot annehmen","cancel_offer":"Angebot stornieren","aggregation":"Aggregation","aggregated":"Aggregiert","view_more":"Mehr sehen","refresh_metadata":"Metadaten auffrischen","add_favorite":"Favorit hinzuf\xfcgen","set_avatar":"Als Avatar einstellen","my_cart":"Mein Einkaufswagen","clear_cart":"Einkaufswagen l\xf6schen","you_pay":"Sie bezahlen","proceed_to_checkout":"Zur Kasse gehen","amount_of_attributes":"Anzahl der Attribute","refreshing":"Aktualisieren","floor":"Floor","floor_price":"Floor preis","trending":"Trending","empty_cart":"Warenkorb ist leer","last_5_minutes":"Letzte 5 Minuten","last_1_hour":"Letzte 1 Stunde","last_24_hours":"Letzte 24 Stunden ","last_7_days":"Letzte 7 Tage","last_30_days":"Letzte 30 Tage","most_recent":"Neueste","oldest":"\xc4lteste","no_results":"Keine Ergebnisse","collections":"Kollektionen","nfts":"NFTs","users":"Benutzer","families":"Familien","important":"Wichtig","txs_per_second":"tx/s","highest_floor_price":"H\xf6chster floor Preis","lowest_floor_price":"Niedrigster floor Preis","highest_volume":"H\xf6chstes Volumen","lowest_volume":"Niedrigstes Volumen","price_low_to_high":"Preis niedrig bis hoch","price_high_to_low":"Preis hoch zu niedrig","howrare_common_to_rare":"HowRare: gew\xf6hnlich bis selten","howrare_rare_to_common":"HowRare: selten bis gew\xf6hnlich","moonrank_common_to_rare":"MoonRank: gew\xf6hnlich bis selten","moonrank_rare_to_common":"MoonRank: selten bis gew\xf6hnlich","recently_listed":"K\xfcrzlich aufgelistet","sweep":"Sweep","search_collection_placeholder":"Suche in einer Kollektion","search_item_placeholder":"Artikel nach Name suchen","search_all_placeholder":"Suche Kollektion, NFT, Benutzer...","sell_items":"Verkaufe Artikel","launchpad":"Launchpad","switch_theme":"Theme wechseln","logout":"Abmelden","beta_disclaimer":"Sie sind derzeit auf Solanart V3 Beta-Version. Wenn Sie ein Problem haben, k\xf6nnen Sie zur ~~vorherigen Version zur\xfcckkehren~~.","status":"Status","click_to_unlock_fees":"Zum Freischalten der kostenpflichtigen Ausgabe anklicken","will_pay_additional_fees":"Sie zahlen eine zus\xe4tzliche Geb\xfchr in H\xf6he von {{Prozentsatz}} oder {{Preis}}","will_save_fees":"Sie sparen {{Prozentsatz}} der Geb\xfchren oder {{Preis}}","fees_disclaimer":"Die Geb\xfchren und Royalties sind f\xfcr die Entwicklung des Solanart-Marktplatzes und der Projekte insgesamt entscheidend.","compared_to_biggest_mps":"Im Vergleich zu den gr\xf6\xdften Marktpl\xe4tzen","homepage":{"heading":"Handel mit NFTs zu ~NULL~ Kosten","heading_subtext":"Kaufen oder verkaufen Sie NFTs und sparen Sie 100% an Geb\xfchren. Der einzige geb\xfchrenfreie Marktplatz auf Solana."},"footer":{"description":"Der erste Marktplatz auf Solana f\xfcr den Kauf, Handel und Verkauf von non-fungible tokens (NFTs). Chatten Sie auf der Kette mit K\xe4ufern/Verk\xe4ufern, starten Sie ein Projekt mit unserem Launchpad oder erkunden Sie es einfach.","explore":"Erkunden","all_collections":"Alle Kollektionen","launchpad":"Launchpad","partners":"Partners","apply_listing":"Bewerbung f\xfcr Auflistung","apply_launchpad":"Bewerbung f\xfcr Launchpad","contact_us":"Kontakt","terms_conditions":"Terms & Conditions","privacy_policy":"Privacy policy","cookie_policy":"Cookie policy","careers":"Careers"}}'),Jt=JSON.parse('{"connect_wallet":"Connetti wallet","explore_collections":"Esplora le collezioni","get_help":"Chiedere aiuto","sell_my_nfts":"Vendere i miei NFT","trending_collections":"Collezioni di tendenza","featured_collections":"Collezioni in evidenza","highest_volume_collections":"Raccolta dei volumi pi\xf9 elevati","total_volume":"volumi totali","volume":"Volumi","items":"articoli","offers":"offerte","owned":"Posseduto","owned_nfts":"NFT di propriet\xe0","messages":"Messaggi","all":"Tutto","listed":"Listati","unlisted":"Delistati","active_offers":"Offerte attive","favorites":"Preferiti","activity":"Attivit\xe0","global_offers":"Offerte globali","global_offer":"Offerta globale","best_global_offer":"Miglior offerta globale","search":"Cerca","rank":"Rank","price_range":"Range di prezzo","min":"min","max":"max","apply":"Applicare","attributes":"Attributi","price":"Prezzo","offer":"offri","no_offer":"Nessuna offerta","not_listed":"Non listato","suggestions":"Suggerimenti","suggested":"Suggerito","estimated_items_value":"Valore stimato degli articoli","copy_attribute":"Copia l\'attributo","copy_link":"Copia link","copy_address":"Copia indirizzo","token_address":"Indirizzo del token","go_back":"Torna indietro","details":"dettagli","marketplace_fees":"Commissioni di mercato","creator_fees":"Tasse per i creatori","royalties":"Royalties","list":"Lista","buy":"Compra","cancel":"Annulla","list_item":"Lista strumento","edit_profile":"Modifica profilo","edit_my_profile":"Modica il mio profilo","public_profile":"Profilo pubblico","private_profile":"Profilo privato","enable_mail_notifications":"Abilita le notifiche di posta elettronica","update_profile":"Aggiorna profilo","owner":"Proprietario","buy_n
1ow":"Compra ora","list_now":"Lista ora","make_offer":"Fai offerta","accept_offer":"Accetta offerta","cancel_offer":"Annulla offerta","aggregation":"Aggregazione","aggregated":"Aggregato","view_more":"Vedi di pi\xf9","refresh_metadata":"Aggiorna i metadati","add_favorite":"Aggiungi i preferiti","set_avatar":"Imposta come avatar","my_cart":"Il mio carrello","clear_cart":"Svuota il carrello","you_pay":"Paghi","proceed_to_checkout":"Procedere all\'acquisto","amount_of_attributes":"Quantit\xe0 di attributi","refreshing":"Aggiornamento","floor":"Base","floor_price":"Prezzo di base","trending":"Tendenza","empty_cart":"Il carrello \xe8 vuoto","last_5_minutes":"Last 5 minutes","last_1_hour":"Ultima ora","last_24_hours":"Ultime 24 ore","last_7_days":"Ultimi 7 giorni","last_30_days":"Ultimi 30 giorni","most_recent":"Il pi\xf9 recente","oldest":"Il pi\xf9 vecchio","no_results":"Nessun risultato","collections":"Collezioni","nfts":"NFTs","users":"Utenti","families":"famiglie","important":"importante","txs_per_second":"tx/s","highest_floor_price":"Prezzo pi\xf9 alto","lowest_floor_price":"Prezzo pi\xf9 basso","highest_volume":"Volume massimo","lowest_volume":"Volume pi\xf9 basso","price_low_to_high":"Prezzo dal basso verso l\'alto","price_high_to_low":"Prezzo dal pi\xf9 alto al pi\xf9 basso","howrare_common_to_rare":"HowRare: da comune a raro","howrare_rare_to_common":"HowRare: da raro a comune","moonrank_common_to_rare":"MoonRank: da comune a raro","moonrank_rare_to_common":"MoonRank: da raro a comune","recently_listed":"Elenco recente","sweep":"Spazzare","search_collection_placeholder":"Ricerca di una collezione","search_item_placeholder":"Ricerca per nome","search_all_placeholder":"Ricerca collezione, nft, utente...","sell_items":"Vendere articoli","launchpad":"Launchpad","switch_theme":"Cambia tema","logout":"Log out","beta_disclaimer":"Siete attualmente sulla versione Beta di Solanart V3. In caso di problemi, \xe8 possibile tornare alla versione precedente. ~~.","status":"Stato","click_to_unlock_fees":"Fare clic per sbloccare l\'edizione a pagamento","will_pay_additional_fees":"L\'utente pagher\xe0 un costo aggiuntivo equivalente a {{percentage}} o {{price}}.","will_save_fees":"Si risparmia {{percentage}} di tasse o {{price}}.","fees_disclaimer":"le tariffe e le royalties sono fondamentali per lo sviluppo del mercato Solanart e dei progetti nel loro complesso","compared_to_biggest_mps":"Rispetto ai maggiori marketplace","homepage":{"heading":"Compra y vende NFTs al costo m\xe1s bajo","heading_subtext":"Acquistate o vendete NFT."},"footer":{"description":"Il primo mercato su Solana per comprare, scambiare e vendere token non fungibili (NFT). Chiacchierate sulla catena con acquirenti/venditori, lanciate un progetto con il nostro launchpad o semplicemente esplorate.","explore":"Esplora","all_collections":"Tutte le collezioni","launchpad":"Launchpad","partners":"Partner","apply_listing":"Richiedi l\'inserimento nell\'elenco","apply_launchpad":"Candidatura per launchpad","contact_us":"Contattateci","terms_conditions":"Termini e condizioni","privacy_policy":"Informativa sulla privacy","careers":"Careers","cookie_policy":"Informativa sui cookie"}}'),Qt=JSON.parse('{"connect_wallet":"C\xfczdana ba\u011flan","explore_collections":"Koleksiyonlara g\xf6z at","get_help":"Yard\u0131m al","sell_my_nfts":"NFT\'lerimi sat","trending_collections":"Y\xfckseli\u015fteki Koleksiyonlar","featured_collections":"\xd6zel Koleksiyonlar","highest_volume_collections":"Y\xfcksek Hacimli Koleksiyonlar","total_volume":"Toplam hacim","volume":"Hacim","items":"\xf6\u011feler","offers":"Teklifler","owned":"Sahip olduklar\u0131m","owned_nfts":"Sahip oldu\u011fum NFT\'ler","messages":"Mesajlar","all":"T\xfcm\xfc","listed":"Listelenmi\u015f","unlisted":"Listelenmemi\u015f","active_offers":"Aktif teklifler","favorites":"Favorilerim","activity":"Aktivite","global_offers":"Global teklifler","global_offer":"Global teklif","best_global_offer":"En iyi global teklif","search":"Ara","rank":"Rank","price_range":"Fiyat ranj\u0131","min":"min","max":"maks","apply":"Uygula","attributes":"\xd6zellikler","price":"Fiyat","offer":"teklif","no_offer":"Teklif yok","not_listed":"Listelenmemi\u015f","suggestions":"\xd6neriler","suggested":"\xd6nerilen","estimated_items_value":"Tahmini \xf6\u011fe de\u011feri","copy_attribute":"\xd6zelli\u011fi kopyala","copy_link":"Ba\u011flant\u0131y\u0131 kopyala","copy_address":"Adresi kopyala","token_address":"Token adresi","go_back":"Geri git","details":"Detaylar","marketplace_fees":"Piyasa \xfccretleri","creator_fees":"Olu\u015fturucu \xfccretleri","royalties":"\u0130\u015fletme paylar\u
10131","list":"Listele","buy":"Sat\u0131n Al","cancel":"\u0130ptal","list_item":"\xd6\u011feleri listele","edit_profile":"Profili d\xfczenle","edit_my_profile":"Profilimi d\xfczenle","public_profile":"A\xe7\u0131k profil","private_profile":"Gizli profil","enable_mail_notifications":"Mail bildirimlerini etkinle\u015ftir","update_profile":"Profili g\xfcncelle","owner":"Sahibi","buy_now":"Hemen sat\u0131n al","list_now":"Hemen listele","make_offer":"Teklif yap","accept_offer":"Teklifi kabul et","cancel_offer":"Teklifi iptal et","aggregation":"Toplama","aggregated":"Toplanan","view_more":"Daha fazlas\u0131n\u0131 g\xf6r\xfcnt\xfcle","refresh_metadata":"\xd6teveriyi yenile","add_favorite":"Favorilere ekle","set_avatar":"Avatar olarak belirle","my_cart":"Sepetim","clear_cart":"Sepeti temizle","you_pay":"\xd6denecek tutar","proceed_to_checkout":"\u0130\u015fleme devam et","amount_of_attributes":"\xd6zelliklerin miktarlar\u0131","refreshing":"Yenileniyor","floor":"Taban","floor_price":"Taban fiyat","trending":"Y\xfckseli\u015ftekiler","empty_cart":"Sepet bo\u015f","last_5_minutes":"Son 5 dakika","last_1_hour":"Son 1 saat","last_24_hours":"Son 24 saat","last_7_days":"Son 7 g\xfcn","last_30_days":"Son 30 g\xfcn","most_recent":"En son","oldest":"En eski","no_results":"Sonu\xe7 yok","collections":"Koleksiyonlar","nfts":"NFTler","users":"Kullan\u0131c\u0131lar","families":"Aileler","important":"\xf6nemli","txs_per_second":"tx/s","highest_floor_price":"En y\xfcksek taban fiyat","lowest_floor_price":"En d\xfc\u015f\xfck taban fiyat","highest_volume":"En y\xfcksek hacim","lowest_volume":"En d\xfc\u015f\xfck hacim","price_low_to_high":"D\xfc\u015f\xfckten y\xfckse\u011fe fiyat","price_high_to_low":"Y\xfcksekten d\xfc\u015f\xfc\u011fe fiyat","howrare_common_to_rare":"HowRare: yayg\u0131n olandan nadire","howrare_rare_to_common":"HowRare: nadir olandan yayg\u0131na","moonrank_common_to_rare":"MoonRank: yayg\u0131n olandan nadire","moonrank_rare_to_common":"MoonRank: nadir olandan yayg\u0131na","recently_listed":"Son zamanlarda listelenen","sweep":"Temizle","search_collection_placeholder":"Koleksiyon ara","search_item_placeholder":"Ada g\xf6re \xf6\u011fe ara","search_all_placeholder":"Koleksiyon, nft, kullan\u0131c\u0131 ara...","sell_items":"\xd6\u011feleri sat","launchpad":"Launchpad","switch_theme":"Tema de\u011fi\u015ftir","logout":"\xc7\u0131k\u0131\u015f","beta_disclaimer":"\u015eu anda Solanart V3 Beta s\xfcr\xfcm\xfcndesiniz. Herhangi bir sorun ya\u015fan\u0131rsa ~~\xf6nceki s\xfcr\xfcme d\xf6nebilirsiniz~~.","status":"Durum","click_to_unlock_fees":"\xdccretler s\xfcr\xfcm\xfcn\xfcn kilidini a\xe7mak i\xe7in t\u0131klay\u0131n","will_pay_additional_fees":"{{percentage}} veya {{price}} ile ayn\u0131 miktarda bir ek \xfccret \xf6deyeceksiniz.","will_save_fees":"\xdccret veya {{price}} \xfczerinden {{percentage}} tasarruf edeceksiniz.","fees_disclaimer":"\xfccretler ve i\u015fletme paylar\u
10131, bir b\xfct\xfcn olarak Solanart pazar\u0131n\u0131n ve projelerinin geli\u015fimi i\xe7in olduk\xe7a b\xfcy\xfck bir \xf6neme sahiptir.","compared_to_biggest_mps":"En b\xfcy\xfck pazaryerleri ile k\u0131yaslama","homepage":{"heading":"NFT\'leri maliyetle al sat","heading_subtext":"NFT al\u0131m sat\u0131m\u0131 yaparak \xfccretlerden %100 tasarruf edebilirsiniz. Solana\'daki tek \xfccretsiz pazaryeri.."},"footer":{"description":"Solana\'da, takas edilemeyen jetonlar\u0131 (NFT\'ler) sat\u0131n alan, takas eden ve satan ilk pazar yeri. Al\u0131c\u0131lar/sat\u0131c\u0131lar ile zincirde sohbet edebilir, launchpad ile proje ba\u015flatabilir veya sadece ke\u015ffe \xe7\u0131kabilirsiniz.","explore":"Ke\u015ffet","all_collections":"T\xfcm koleksiyonlar","launchpad":"Launchpad","partners":"Ortaklar","apply_listing":"Listeleme i\xe7in ba\u015fvur","apply_launchpad":"Launchpad i\xe7in ba\u015fvur","contact_us":"Bize ula\u015f\u0131n","terms_conditions":"H\xfck\xfcm & Ko\u015fullar","privacy_policy":"Gizlilik politikas\u0131","cookie_policy":"\xc7erez politikas\u0131","careers":"Careers"}}'),te=JSON.parse('{"connect_wallet":"\uc9c0\uac11 \uc5f0\uacb0","explore_collections":"\uceec\ub809\uc158 \ud0d0\uc0c9","get_help":"\ub3c4\uc6c0 \ubc1b\uae30","sell_my_nfts":"\ub0b4 NFT \ud314\uae30","trending_collections":"\ucd94\uc138 \uceec\ub809\uc158","featured_collections":"\ucd94\ucc9c \uceec\ub809\uc158","highest_volume_collections":"\ucd5c\ub300 \ubcfc\ub968 \uceec\ub809\uc158","total_volume":"\ucd1d \ubcfc\ub968","volume":"\ubcfc\ub968","items":"\uc544\uc774\ud15c","offers":"\uc81c\uc548","owned":"\uc18c\uc720","owned_nfts":"\uc18c\uc720\ud55c NFT","messages":"\uba54\uc2dc\uc9c0","all":"\uc804\ubd80","listed":"\uc0c1\uc7a5","unlisted":"\uc0c1\uc7a5\ub418\uc9c0 \uc54a\uc740","active_offers":"\uc9c4\ud589\uc911\uc778 \uc81c\uc548","favorites":"\uc990\uaca8\ucc3e\uae30","activity":"\uc9c4\ud589\uc911\uc778","global_offers":"\uae00\ub85c\ubc84 \uc81c\uc548","global_offer":"\uae00\ub85c\ubc84 \uc81c\uc548","best_global_offer":"\ucd5c\uc0c1\uc758 \uae00\ub85c\ubc84 \uc81c\uc548","search":"\uac80\uc0c9","rank":"\uc21c\uc704","price_range":"\uac00\uaca9 \ubc94\uc704","min":"\ucd5c\uc18c","max":"\ucd5c\ub300","apply":"\uc801\uc6a9","attributes":"\uc18d\uc131","price":"\uac00\uaca9","offer":"\uc81c\uc548","no_offer":"\uc81c\uc548 \uc5c6\uc74c","not_listed":"\uc0c1\uc7a5\ub418\uc9c0 \uc54a\uc74c","suggestions":"\uc81c\uc548","suggested":"\uc81c\uc548\ub41c","estimated_items_value":"\uc608\uc0c1 \uc544\uc774\ud15c \uac00\uce58","copy_attribute":"\uc18d\uc131 \ubcf5\uc0ac","copy_link":"\ub9c1\ud06c \ubcf5\uc0ac","copy_address":"\uc8fc\uc18c \ubcf5\uc0ac","token_address":"\ud1a0\ud070 \uc8fc\uc18c","go_back":"\ub4a4\ub85c \ub3cc\uc544\uac00\uae30","details":"\uc0c1\uc138\uc815\ubcf4","marketplace_fees":"\uc2dc\uc7a5 \uc218\uc218\ub8cc","creator_fees":"\ucc3d\uc791\uc790 \uc218\uc218\ub8cc","royalties":"\ub85c\uc5f4\ud2f0","list":"\ub9ac\uc2a4\ud2b8","buy":"\uad6c\uc785","cancel":"\ucde8\uc18c","list_item":"\uc0c1\uc7a5 \uc544\uc774\ud15c","edit_profile":"\ud504\ub85c\ud544 \ud3b8\uc9d1","edit_my_profile":"\ub0b4 \ud504\ub85c\ud544 \ud3b8\uc7bd","public_profile":"\uacf5\uac1c\uc801 \ud504\ub85c\ud544","private_profile":"\uac1c\uc778\uc801 \ud504\ub85c\ud544","enable_mail_notifications":"\uba54\uc77c \uc54c\ub9bc \ud65c\uc131\ud654","update_profile":"\ud504\ub85c\ud544 \uc5c5\ub370\uc774\ud2b8","owner":"\uc18c\uc720\uc790","buy_now":"\uc9c0\uae08 \uad6c\uc785\ud558\uae30","list_now":"\uc9c0\uae08 \uc0c1\uc7a5","make_offer":"\uc81c\uc548\ud558\uae30r","accept_offer":"\uc81c\uc548 \uc218\ub77d","cancel_offer":"\uc81c\uc548 \ucde8\uc18c","aggregation":"\uc9d1\uacc4","aggregated":"\uc9d1\uacc4\ub41c","view_more":"\ub354 \ubcf4\uae30","refresh_metadata":"\uba54\ud0c0\ub370\uc774\ud130 \uc0c8\ub85c \uace0\uce68","add_favorite":"\uc990\uaca8\ucc3e\uae30 \ucd94\uac00","set_avatar":"\uc544\ubc14\ud0c0\ub85c \uc124\uc815","my_cart":"\ub0b4 \uc7a5\ubc14\uad6c\ub2c8","clear_cart":"\uc7a5\ubc14\uad6c\ub2c8 \ube44\uc6b0\uae30 ","you_pay":"\ub0b4 \uc9c0\ubd88","proceed_to_checkout":"\uac78\uc81c \uc9c4\ud589","amount_of_attributes":"\uc18d\uc131 \uc218\ub7c9","refreshing":"\uc0c8\ub85c \uace0\uce68\ud558\uae30","floor":"\uc81c\ud55c \uac00\uaca9","floor_price":"\uc7ac\ud55c \uac00\uaca9","trending":"\ucd94\uc138","empty_cart":"\uce74\ud2b8\uac00 \ube44\uc5b4 \uc788\uc2b5\ub2c8\ub2e4","last_5_minutes":"\uc9c0\ub09c 5\ubd84\uac04","last_1_hour":"\uc9c0\ub09c 1\uc2dc\uac04","last_24_hours":"\uc9c0\ub09c 24\uc2dc\uac04","last_7_days":"\uc9c0\ub09c 7\uc77c\uac04","last_30_days":"\uc9c0\ub09c 30\uc77c\uac04","most_recent":"\ucd5c\uadfc","oldest":"\uac00\uc7a5 \uc624\ub798\ub41c","no_results":"\uacb0\uacfc \uc5c6\uc74c","collections":"\uceec\ub809\uc158","nfts":"NFT","users":"\uc0ac\uc6a9\uc790","families":"\uac00\uc871","important":"\uc911\uc694","txs_per_second":"tx/s","highest_floor_price":"\uc0c1\ud55c\uac00","lowest_floor_price":"\ud558\ud55c\uac00","highest_volume":"\ucd5c\ub300 \ubcfc\ub968","lowest_volume":"\ucd5c\uc800 \ubcfc\ub968","price_low_to_high":"\uac00\uaca9 \uc624\ub984 \uc21c\uc704","price_high_to_low":"\uac00\uaca9 \ub0b4\ub9bc \uc21c\uc704","howrare_common_to_rare":"\ubcf4\ud1b5\uc5d0\uc11c \ud76c\uadc0 \uc21c\uc704","howrare_rare_to_common":"\ud76c\uadc0\uc5d0\uc11c \ubcf4\ud1b5 \uc21c\uc704","moonrank_common_to_rare":"MoonRank: \ubcf4\ud1b5\uc5d0\uc11c \ud76c\uadc0\ub85c","moonrank_rare_to_common":"MoonRank: \ud76c\uadc0\uc5d0\uc11c \ubcf4\ud1b5\uc73c\ub85c","recently_listed":"\ucd5c\uadfc\uc5d0 \uc0c1\uc7a5\ub41c","sweep":"\ub2f4\uae30","search_collection_placeholder":"\uceec\ub809\uc158 \uac80\uc0c9","search_item_placeholder":"\uc774\ub984\uc73c\ub85c \uc544\uc774\ud15c \uac80\uc0c9\ud558\uae30","search_all_placeholder":"\uceec\ub809\uc158, nft, \uc0ac\uc6a9\uc790 \uac80\uc0c9...","sell_items":"\uc544\uc774\ud15c \ud310\ub9e4","launchpad":"\ub7f0\uce58\ud328\ub4dc","switch_theme":"\ud14c\ub9c8 \uc804\ud658","logout":"\ub85c\uadf8\uc544\uc6c3","beta_disclaimer":"\ud604\uc7ac Solanart V3 \ubca0\ud0c0 \ubc84\uc804\uc744 \uc0ac\uc6a9\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ubb38\uc81c\uac00 \uc788\uc73c\uba74 ~~\uc774\uc804 \ubc84\uc804\uc73c\ub85c \ub3cc\uc544\uac08 \uc218 \uc788\uc2b5\ub2c8\ub2e4~~.","status":"\uc0c1\ud0dc","click_to_unlock_fees":"\ud074\ub9ad\ud558\uc5ec \uc218\uc218\ub8cc \uc5d0\ub514\uc158\uc744 \uc7a0\uae08 \ud574\uc81c\ud558\uc138\uc694.","will_pay_additional_fees":"{{percentage}} \ub610\ub294 {{price}}\uc5d0 \ud574\ub2f9\ud558\ub294 \ucd94\uac00 \uc218\uc218\ub8cc\ub97c \uc9c0\ubd88\ud558\uac8c \ub429\ub2c8\ub2e4","will_save_fees":"{{percentage}} \ub610\ub294 {{price}}\uc758 \ube44\uc6a9\uc744 \uc808\uc57d\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4.","fees_disclaimer":"\uc218\uc218\ub8cc\uc640 \ub85c\uc5f4\ud2f0\ub294 Solanart \ub9c8\ucf13\ud50c\ub808\uc774\uc2a4 \ubc0f \ud504\ub85c\uc81d\ud2b8 \uc804\uccb4\uc758 \ubc1c\uc804\uc5d0 \uc788\uc5b4\uc11c \ub9e4\uc6b0 \uc911\uc694\ud55c \uac83\uc785\ub2c8\ub2e4.","compared_to_biggest_mps":"\uac00\uc7a5 \ud070 \uaddc\ubaa8\ub97c \uac00\uc9c4 \uc2dc\uc7a5\uacfc \ube44\uad50","homepage":{"heading":"\uc218\uc218\ub8cc\ub85c \uc5c6\uc774 \ud558\ub294 NFT \uac70\ub798","heading_subtext":"NFT\ub97c \ub9e4\ub9e4\uc5d0\uc11c \uc218\uc218\ub8cc\ub97c 100% \uc808\uc57d\ud558\uc2ed\uc2dc\uc624. Solana\uc5d0\uc11c\uc758 \uc720\uc77c\ud55c 0 \uc218\uc218\ub8cc \uc2dc\uc7a5\uc785\ub2c8\ub2e4"},"footer":{"description":"NFT(Non-Fungible Token)\ub97c \uad6c\ub9e4, \uac70\ub798 \ubc0f \ud310\ub9e4\ud560 \uc218 \uc788\ub294 Solana\uc5d0\uc11c\uc758 \uccab \ubc88\uc9f8 \ub9c8\ucf13\ud50c\ub808\uc774\uc2a4\uc785\ub2c8\ub2e4. \uccb4\uc778\uc5d0\uc11c \uad6c\ub9e4\uc790/\ud310\ub9e4\uc790\uc640 \ucc44\ud305\ud558\uac70\ub098 \ub7f0\uce58\ud328\ub4dc\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c \uc2dc\uc791\ud558\uac70\ub098 \ud0d0\uc0c9\ud574 \ubcf4\uc2ed\uc2dc\uc624","explore":"\ud0d0\uc0c9","all_collections":"\ubaa8\ub4e0 \uceec\ub809\uc158","launchpad":"\ub7f0\uce58\ud328\ub4dc","partners":"\ud30c\ud2b8\ub108","apply_listing":"\uc0c1\uc7a5 \uc2e0\uccad","apply_launchpad":"\ub7f0\uce58\ud328\ub4dc \uc2e0\uccad","contact_us":"\ubb38\uc758\ud558\uae30","terms_conditions":"\uc774\uc6a9\uc57d\uad00","privacy_policy":"\uac1c\uc778 \uc815\ubcf4 \ubcf4\ud638 \uc815\ucc45 ","cookie_policy":"Cookie \uc815\ucc45","careers":"Careers"}}
1'),ee=JSON.parse('{"connect_wallet":"\u8fde\u63a5\u94b1\u5305","explore_collections":"\u63a2\u7d22\u6536\u85cf","get_help":"\u5bfb\u6c42\u5e2e\u52a9","sell_my_nfts":"\u51fa\u552e\u6211\u7684NFTs","trending_collections":"\u8d8b\u52bf\u6536\u85cf","featured_collections":"\u7cbe\u9009\u6536\u85cf","highest_volume_collections":"\u6700\u9ad8\u89c4\u6a21\u6536\u85cf","total_volume":"\u5168\u90e8\u89c4\u6a21","volume":"\u89c4\u6a21","items":"\u9879\u76ee","offers":"\u4f18\u60e0","owned":"\u62e5\u6709","owned_nfts":"\u62e5\u6709\u7684NFT","messages":"\u4fe1\u606f","all":"\u5168\u90e8","listed":"\u4e0a\u5e02\u7684","unlisted":"\u672a\u4e0a\u5e02\u7684","active_offers":"\u6709\u6548\u4f18\u60e0","favorites":"\u6700\u53d7\u6b22\u8fce\u7684","activity":"\u6d3b\u52a8","global_offers":"\u5168\u7403\u4f18\u60e0","global_offer":"\u5168\u7403\u4f18\u60e0","best_global_offer":"\u6700\u4f73\u5168\u7403\u4f18\u60e0","search":"\u641c\u7d22","rank":"\u6392\u540d","price_range":"\u4ef7\u683c\u8303\u56f4","min":"\u6700\u5c0f","max":"\u6700\u5927","apply":"\u7533\u8bf7","attributes":"\u5c5e\u6027","price":"\u4ef7\u683c","offer":"\u62a5\u4ef7","no_offer":"\u6ca1\u6709\u62a5\u4ef7","not_listed":"\u672a\u4e0a\u5e02","suggestions":"\u5efa\u8bae","suggested":"\u5df2\u5efa\u8bae","estimated_items_value":"\u4f30\u8ba1\u9879\u76ee\u4f30\u503c","copy_attribute":"\u590d\u5236\u5c5e\u6027","copy_link":"\u590d\u5236\u94fe\u63a5\u5730\u5740","copy_address":"\u590d\u5236\u5730\u5740","token_address":"\u4ee3\u5e01\u5730\u5740","go_back":"\u8fd4\u56de","details":"\u660e\u7ec6","marketplace_fees":"\u5e02\u573a\u8d39\u7528","creator_fees":"\u521b\u4f5c\u8005\u8d39\u7528","royalties":"\u7248\u7a0e","list":"\u5217\u8868","buy":"\u8d2d\u4e70","cancel":"\u53d6\u6d88","list_item":"\u5217\u8868\u9879","edit_profile":"\u7f16\u8f91\u4e2a\u4eba\u8d44\u6599","edit_my_profile":"\u7f16\u8f91\u6211\u7684\u4e2a\u4eba\u8d44\u6599","public_profile":"\u516c\u5f00\u4e2a\u4eba\u8d44\u6599","private_profile":"\u79c1\u4eba\u8d44\u6599","enable_mail_notifications":"\u5f00\u542f\u90ae\u4ef6\u901a\u77e5","update_profile":"\u66f4\u65b0\u4e2a\u4eba\u8d44\u6599","owner":"\u6240\u6709\u8005","buy_now":"\u73b0\u5728\u8d2d\u4e70","list_now":"\u73b0\u5728\u5217\u51fa","make_offer":"\u53d1\u51fa\u62a5\u4ef7","accept_offer":"\u63a5\u53d7\u62a5\u4ef7","cancel_offer":"\u53d6\u6d88\u62a5\u4ef7","aggregation":"\u805a\u5408","aggregated":"\u5df2\u805a\u5408\u7684","view_more":"\u67e5\u770b\u66f4\u591a","refresh_metadata":"\u5237\u65b0\u5143\u6570\u636e","add_favorite":"\u6dfb\u52a0\u6536\u85cf","set_avatar":"\u8bbe\u7f6e\u4e3a\u5934\u50cf","my_cart":"\u6211\u7684\u8d2d\u7269\u8f66","clear_cart":"\u6e05\u7a7a\u8d2d\u7269\u8f66","you_pay":"\u60a8\u7684\u4ed8\u6b3e","proceed_to_checkout":"\u7ee7\u7eed\u7ed3\u8d26","amount_of_attributes":"\u5c5e\u6027\u6570\u91cf","refreshing":"\u5237\u65b0","floor":"\u5e95\u4ef7","floor_price":"\u5e95\u4ef7","trending":"\u8d8b\u52bf","empty_cart":"\u8d2d\u7269\u8f66\u662f\u7a7a\u7684","last_5_minutes":"\u8fc7\u53bb5\u5206\u949f","last_1_hour":"\u8fc7\u53bb1\u5c0f\u65f6","last_24_hours":"\u8fc7\u53bb24\u5c0f\u65f6","last_7_days":"\u8fc7\u53bb7\u5929","last_30_days":"\u8fc7\u53bb30\u5929","most_recent":"\u6700\u8fd1\u7684","oldest":"\u6700\u4e45\u7684","no_results":"\u6ca1\u6709\u7ed3\u679c","collections":"\u6536\u85cf","nfts":"NFT","users":"\u7528\u6237","families":"\u5bb6\u5ead","important":"\u91cd\u8981","txs_per_second":"tx/s","highest_floor_price":"\u6700\u9ad8\u5e95\u4ef7","lowest_floor_price":"\u6700\u4f4e\u5e95\u4ef7","highest_volume":"\u6700\u9ad8\u6210\u4ea4\u91cf","lowest_volume":"\u6700\u4f4e\u6210\u4ea4\u91cf","price_low_to_high":"\u4ef7\u683c\u4ece\u4f4e\u5230\u9ad8","price_high_to_low":"\u4ef7\u683c\u4ece\u9ad8\u5230\u4f4e","howrare_common_to_rare":"\u5e38\u89c1\u5230\u7f55\u89c1","howrare_rare_to_common":"\u7f55\u89c1\u5230\u5e38\u89c1","moonrank_common_to_rare":"\u666e\u901a\u5230\u7a00\u6709","moonrank_rare_to_common":"\u7a00\u6709\u5230\u666e\u901a","recently_listed":"\u8fd1\u671f\u4e0a\u5e02\u7684","sweep":"\u626b","search_collection_placeholder":"\u641c\u7d22\u6536\u85cf","search_item_placeholder":"\u901a\u8fc7\u540d\u79f0\u641c\u7d22\u9879\u76ee","search_all_placeholder":"\u641c\u7d22\u6536\u85cf\u3001nft\u3001\u7528\u6237...","sell_items":"\u51fa\u552e\u9879\u76ee","launchpad":"\u542f\u52a8\u
1677f","switch_theme":"\u5207\u6362\u4e3b\u9898","logout":"\u767b\u51fa","beta_disclaimer":"\u60a8\u76ee\u524d\u6b63\u5728\u4f7f\u7528 Solanart V3 Beta \u7248\u672c\u3002\u5982\u679c\u60a8\u6709\u4efb\u4f55\u95ee\u9898\u53ef\u4ee5~~\u56de\u5230\u4e4b\u524d\u7684\u7248\u672c~~","status":"\u72b6\u6001","click_to_unlock_fees":"\u70b9\u51fb\u89e3\u9501\u6536\u8d39\u7248\u672c","will_pay_additional_fees":"\u60a8\u5c06\u652f\u4ed8\u76f8\u5f53\u4e8e {{percentage}} \u6216 {{price}} \u7684\u989d\u5916\u8d39\u7528","will_save_fees":"\u60a8\u8282\u7701\u4e86 {{percentage}} \u7684\u8d39\u7528\u6216 {{price}}","fees_disclaimer":"\u8d39\u7528\u548c\u7248\u7a0e\u5bf9\u4e8e Solanart \u5e02\u573a\u548c\u6574\u4e2a\u9879\u76ee\u7684\u53d1\u5c55\u81f3\u5173\u91cd\u8981","compared_to_biggest_mps":"\u4e0e\u6700\u5927\u7684\u5e02\u573a\u76f8\u6bd4","homepage":{"heading":"\u96f6\u6210\u672c\u4ea4\u6613 NFT","heading_subtext":"\u8d2d\u4e70\u6216\u51fa\u552e NFT \u5e76\u8282\u7701 100% \u7684\u8d39\u7528\u3002Solana \u4e0a\u552f\u4e00\u7684\u96f6\u8d39\u7528\u5e02\u573a\u3002."},"footer":{"description":"Solana \u4e0a\u7b2c\u4e00\u4e2a\u53ef\u4ee5\u8d2d\u4e70\u3001\u4ea4\u6613\u548c\u51fa\u552e\u4e0d\u53ef\u66ff\u4ee3\u4ee3\u5e01 (NFT) \u7684\u5e02\u573a\u3002\u4e0e\u4e70\u5bb6/\u5356\u5bb6\u8fdb\u884c\u94fe\u4e0a\u804a\u5929\uff0c\u4f7f\u7528\u6211\u4eec\u7684\u542f\u52a8\u677f\u542f\u52a8\u9879\u76ee\u6216\u63a2\u7d22\u3002","explore":"\u63a2\u7d22","all_collections":"\u6240\u6709\u6536\u85cf","launchpad":"\u542f\u52a8\u677f","partners":"\u5408\u4f5c\u4f19\u4f34","apply_listing":"\u7533\u8bf7\u4e0a\u5e02","apply_launchpad":"\u7533\u8bf7\u542f\u52a8\u677f","contact_us":"\u8054\u7cfb\u6211\u4eec","terms_conditions":"\u4f7f\u7528\u6761\u6b3e\u548c\u6761\u4ef6","privacy_policy":"\u9690\u79c1\u653f\u7b56","cookie_policy":"Cookie\u653f\u7b56","careers":"Careers"}}');xt.use(Ht).use(It.Db).init({fallbackLng:"en",interpolation:{escapeValue:!1},resources:{en:{translation:qt},fr:{translation:$t},de:{translation:Xt},es:{translation:Zt},it:{translation:Jt},jp:{translation:Yt},cn:{translation:ee},kr:{translation:te},tr:{translation:Qt}}});n(43307),n(40906),n(80740);var ne=n(2962),re=n(67294);const ie=(0,re.createContext)(void 0),oe={setTheme:t=>{},themes:[]};var se=n(5152),ae=n.n(se),ce=n(9008),ue=n.n(ce),le=n(4298),he=n.n(le),de=n(83457),fe=n.n(de),pe=n(64712),me={title:"Solanart - Discover, collect and trade NFTs",description:"Solanart is the first fully-fledged NFT marketplace on Solana. Get quick and easy access to digital collectibles and explore, buy and sell NFTs...",canonical:"https://solanart.io/",openGraph:{url:"https://solanart.io/",type:"website",locale:"en",title:"Solanart - Discover, collect and trade NFTs",description:"Solanart is the first and largest fully-fledged NFT marketplace on Solana. Get quick and easy access to digital collectibles and explore, buy and sell NFTs...",images:[{url:"https://data.solanart.io/img/solanart-og.png"}],site_name:"Solanart - Discover, collect and trade NFTs"},twitter:{site:"@SolanartNFT",cardType:"summary_large_image"},additionalLinkTags:[{rel:"icon",href:"/solanart-logo.svg"}]},ge=n(69396);function ye(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var be=n(32156),ve=n(44718),we=n(11163),_e=(n(9669),n(85971)),ke=n(47069),Se=function(t){t.baseURL,t.forumURL,t.topicURL;var e=t.children,n=t.cluster,r=(ye(t,["baseURL","forumURL","topicURL","children","cluster"]),(0,ve.R)().connection),o=(0,re.useContext)(_e.ThemeContext).theme,s=(0,ke.yG)(),c=(0,we.useRouter)();(0,re.useEffect)((function(){var t=function(){c.reload()};return window.addEventListener("popstate",t),function(){window.removeEventListener("popstate",t)}}),[c]);var u={wallet:s,connection:r,buildForumPath:function(t){return"."},buildTopicPath:function(t,e){return"".concat(window.location.pathname.split("?")[0].replace("/forum",""),"/forum/").concat(e)},themeMode:o,children:e,cluster:n||"mainnet-beta"};return(0,a.jsx)(be.DispatchProvider,(0,ge.Z)((0,i.Z)({},u),{children:e}))},xe=ae()((function(){return n.e(164).then(n.bind(n,80164)).then((function(t){return t.UserProvider}))}),{loadableGenerated:{webpack:function(){return[80164]}},ssr:!0}),Ie=ae()((function(){return n.e(7766).then(n.bind(n,47766)).then((function(t){return t.CartProvider}))}),{loadableGenerated:{webpack:function(){return[47766]}},ssr:!0}),Ae=ae()((function(){return Promise.resolve().then(n.bind(n,85971)).then((function(t){return t.ThemeProvider}))}),{loadableGenerated:{webpack:function(){return[85971]}},ssr:!0}),Ee=ae()((function(){return Promise.all([n.e(312),n.e(6550),n.e(5616),n.e(8771)]).then(n.bind(n,18771)).then((function(t){return t.NftsProvider}))}),{loadableGenerated:{webpack:function(){return[18771]}},ssr:!0}),Te=ae()((function(){return Promise.all([n.e(4646),n.e(312),n.e(619),n.e(866),n.e(2509),n.e(6550),n.e(9861),n.e(4231),n.e(2320),n.e(7357),n.e(6626),n.e(5616),n.e(5675),n.e(1722),n.e(5519),n.e(6599),n.e(916),n.e(7898),n.e(676)]).then(n.bind(n,70676))}),{loadableGenerated:{webpack:function(){return[70676]}},ssr:!0}),Pe=ae()((function(){return Promise.all([n.e(3123),n.e(4594)]).then(n.bind(n,34594))}),{loadableGenerated:{webpack:function(){return[34594]}},ssr:!0}
1),Ce=ae()((function(){return Promise.all([n.e(9805),n.e(2198)]).then(n.bind(n,22198)).then((function(t){return t.WalletConnectionProvider}))}),{loadableGenerated:{webpack:function(){return[22198]}},ssr:!0});var Me=function(t){var e=t.Component,o=t.pageProps,c=(()=>{var t;return null!==(t=(0,re.useContext)(ie))&&void 0!==t?t:oe})().theme,u=void 0===c?"system":c;function l(){return(l=(0,r.Z)(s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(9089).then(n.bind(n,49089));case 2:t.sent.default.initialize("G-V2WXMZ0BH1");case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return(0,re.useEffect)((function(){(function(){l.apply(this,arguments)})()}),[]),(0,a.jsx)(Ae,{children:(0,a.jsx)(Ce,{children:(0,a.jsx)(Se,{baseURL:"/",forumURL:"/forum",topicURL:"/topic",children:(0,a.jsx)(Ie,{children:(0,a.jsx)(xe,{children:(0,a.jsxs)(Ee,{children:[(0,a.jsxs)(ue(),{children:[(0,a.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,a.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,a.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,a.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,a.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#5bbad5"}),(0,a.jsx)("meta",{name:"msapplication-TileColor",content:"#da532c"}),(0,a.jsx)("meta",{name:"theme-color",content:"#ffffff"})]}),(0,a.jsx)(he(),{id:"microsoft-clarity",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:'\n (function(c,l,a,r,i,t,y){\n c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};\n t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;\n y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);\n })(window, document, "clarity", "script", "cmozkz4xkd");\n '}}),(0,a.jsx)(he(),{id:"crisp-chatbox",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:'\n window.$crisp=[];window.CRISP_WEBSITE_ID="02b29fc0-2a82-47a9-abba-846259cff7b9";\n (function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";\n s.async=1;d.getElementsByTagName("head")[0].appendChild(s);\n })();\n '}}),(0,a.jsx)(he(),{id:"sitelink-searchbox",type:"application/ld+json",children:'{\n "@context": "https://schema.org",\n "@type": "WebSite",\n "url": "https://solanart.io/",\n "potentialAction": {\n "@type": "SearchAction",\n "target": {\n "@type": "EntryPoint",\n "urlTemplate": "https://solanart.io/collections?q={search_term_string}"\n },\n "query-input": "required name=search_term_string"\n }\n }'}),(0,a.jsx)(he(),{type:"module",src:"https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"}),(0,a.jsx)(he(),{src:"//embed.typeform.com/next/embed.js"}),(0,a.jsx)(ne.lX,(0,i.Z)({},me)),(0,a.jsx)(fe(),{color:"#17EF97",options:{showSpinner:!1}}),(0,a.jsx)(pe.x,{theme:u,className:"toaster group",position:"bottom-left",closeButton:!0,toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}}}),(0,a.jsx)(Te,{}),(0,a.jsx)(e,(0,i.Z)({},o)),(0,a.jsx)(Pe,{})]})})})})})})}},85971:function(t,e,n){"use strict";n.r(e),n.d(e,{ThemeContext:function(){return s},ThemeProvider:function(){return a}});var r=n(828),i=n(85893),o=n(67294),s=o.createContext({theme:"dark",rpc:"https://teriann-mdt82m-fast-mainnet.helius-rpc.com",setRpc:function(t){},setTheme:function(){}}),a=function(t){var e=t.initialTheme,n=t.children,a=(0,r.Z)(o.useState(function(){if(window.localStorage){var t=window.localStorage.getItem("color-theme");if("string"===typeof t)return t;if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark"}return"dark"}()),2),c=a[0],u=a[1],l=(0,r.Z)(o.useState("https://teriann-mdt82m-fast-mainnet.helius-rpc.com"),2),h=l[0],d=l[1],f=function(t){var e=window.document.documentElement,n="dark"===t;e.classList.remove(n?"light":"dark"),e.classList.add(t),localStorage.setItem("color-theme",t)};return e&&f(e),o.useEffect((function(){f(c)}),[c]),(0,i.jsx)(s.Provider,{value:{theme:c,rpc:h,setRpc:d,setTheme:u},children:n})}},70594:function(){},59235:function(){},43307:function(){},40906:function(){},80740:function(){},5152:function(t,e,n){t.exports=n(90638)},9008:function(t,e,n){t.exports=n(5443)},11163:function(t,e,n){t.exports=n(90387)},4298:function(t,e,n){t.exports=n(20699)},83457:function(t,e,n){var r=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=t=>
1i(t,"__esModule",{value:!0}),l=(t,e)=>i(t,"name",{value:e,configurable:!0}),h=(t,e,n,r)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let a of s(e))!c.call(t,a)&&(n||"default"!==a)&&i(t,a,{get:()=>e[a],enumerable:!(r=o(e,a))||r.enumerable});return t},d=(t,e)=>h(u(i(null!=t?r(a(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),f=(t=>(e,n)=>t&&t.get(e)||(n=h(u({}),e,1),t&&t.set(e,n),n))("undefined"!=typeof WeakMap?new WeakMap:0),p={};((t,e)=>{for(var n in e)i(t,n,{get:e[n],enumerable:!0})})(p,{default:()=>v});var m=d(n(11163)),g=d(n(74865)),y=d(n(45697)),b=d(n(67294));function v({color:t="#29D",startPosition:e=.3,stopDelayMs:n=200,height:r=3,showOnShallow:i=!0,options:o,nonce:s}){let a=null;b.useEffect((()=>(o&&g.configure(o),m.default.events.on("routeChangeStart",c),m.default.events.on("routeChangeComplete",u),m.default.events.on("routeChangeError",u),()=>{m.default.events.off("routeChangeStart",c),m.default.events.off("routeChangeComplete",u),m.default.events.off("routeChangeError",u)})),[]);let c=l(((t,{shallow:n})=>{(!n||i)&&(g.set(e),g.start())}),"routeChangeStart"),u=l(((t,{shallow:e})=>{(!e||i)&&(a&&clearTimeout(a),a=setTimeout((()=>{g.done(!0)}),n))}),"routeChangeEnd");return b.createElement("style",{nonce:s},`\n #nprogress {\n pointer-events: none;\n }\n #nprogress .bar {\n background: ${t};\n position: fixed;\n z-index: 9999;\n top: 0;\n left: 0;\n width: 100%;\n height: ${r}px;\n }\n #nprogress .peg {\n display: block;\n position: absolute;\n right: 0px;\n width: 100px;\n height: 100%;\n box-shadow: 0 0 10px ${t}, 0 0 5px ${t};\n opacity: 1;\n -webkit-transform: rotate(3deg) translate(0px, -4px);\n -ms-transform: rotate(3deg) translate(0px, -4px);\n transform: rotate(3deg) translate(0px, -4px);\n }\n #nprogress .spinner {\n display: block;\n position: fixed;\n z-index: 1031;\n top: 15px;\n right: 15px;\n }\n #nprogress .spinner-icon {\n width: 18px;\n height: 18px;\n box-sizing: border-box;\n border: solid 2px transparent;\n border-top-color: ${t};\n border-left-color: ${t};\n border-radius: 50%;\n -webkit-animation: nprogresss-spinner 400ms linear infinite;\n animation: nprogress-spinner 400ms linear infinite;\n }\n .nprogress-custom-parent {\n overflow: hidden;\n position: relative;\n }\n .nprogress-custom-parent #nprogress .spinner,\n .nprogress-custom-parent #nprogress .bar {\n position: absolute;\n }\n @-webkit-keyframes nprogress-spinner {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n @keyframes nprogress-spinner {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n `)}l(v,"NextNProgress"),v.propTypes={color:y.string,startPosition:y.number,stopDelayMs:y.number,height:y.number,showOnShallow:y.bool,options:y.object,nonce:y.string},t.exports=f(p)},74865:function(t,e,n){var r,i;r=function(){var t={version:"0.2.0"},e=t.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function n(t,e,n){return t<e?e:t>n?n:t}function r(t){return 100*(-1+t)}function i(t,n,i){var o;return(o="translate3d"===e.positionUsing?{transform:"translate3d("+r(t)+"%,0,0)"}:"translate"===e.positionUsing?{transform:"translate("+r(t)+"%,0)"}:{"margin-left":r(t)+"%"}).transition="all "+n+"ms "+i,o}t.configure=function(t){var n,r;for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&(e[n]=r);return this},t.status=null,t.set=function(r){var a=t.isStarted();r=n(r,e.minimum,1),t.status=1===r?null:r;var c=t.render(!a),u=c.querySelector(e.barSelector),l=e.speed,h=e.easing;return c.offsetWidth,o((function(n){""===e.positionUsing&&(e.positionUsing=t.getPositioningCSS()),s(u,i(r,l,h)),1===r?(s(c,{transition:"none",opacity:1}),c.offsetWidth,setTimeout((function(){s(c,{transition:"all "+l+"ms linear",opacity:0}
1),setTimeout((function(){t.remove(),n()}),l)}),l)):setTimeout(n,l)})),this},t.isStarted=function(){return"number"===typeof t.status},t.start=function(){t.status||t.set(0);var n=function(){setTimeout((function(){t.status&&(t.trickle(),n())}),e.trickleSpeed)};return e.trickle&&n(),this},t.done=function(e){return e||t.status?t.inc(.3+.5*Math.random()).set(1):this},t.inc=function(e){var r=t.status;return r?("number"!==typeof e&&(e=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+e,0,.994),t.set(r)):t.start()},t.trickle=function(){return t.inc(Math.random()*e.trickleRate)},function(){var e=0,n=0;t.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&t.start(),e++,n++,r.always((function(){0===--n?(e=0,t.done()):t.set((e-n)/e)})),this):this}}(),t.render=function(n){if(t.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var i=document.createElement("div");i.id="nprogress",i.innerHTML=e.template;var o,a=i.querySelector(e.barSelector),u=n?"-100":r(t.status||0),l=document.querySelector(e.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+u+"%,0,0)"}),e.showSpinner||(o=i.querySelector(e.spinnerSelector))&&h(o),l!=document.body&&c(l,"nprogress-custom-parent"),l.appendChild(i),i},t.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(e.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&h(t)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var o=function(){var t=[];function e(){var n=t.shift();n&&n(e)}return function(n){t.push(n),1==t.length&&e()}}(),s=function(){var t=["Webkit","O","Moz","ms"],e={};function n(t){return t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()}))}function r(e){var n=document.body.style;if(e in n)return e;for(var r,i=t.length,o=e.charAt(0).toUpperCase()+e.slice(1);i--;)if((r=t[i]+o)in n)return r;return e}function i(t){return t=n(t),e[t]||(e[t]=r(t))}function o(t,e,n){e=i(e),t.style[e]=n}return function(t,e){var n,r,i=arguments;if(2==i.length)for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&o(t,n,r);else o(t,i[1],i[2])}}();function a(t,e){return("string"==typeof t?t:l(t)).indexOf(" "+e+" ")>=0}function c(t,e){var n=l(t),r=n+e;a(n,e)||(t.className=r.substring(1))}function u(t,e){var n,r=l(t);a(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function l(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function h(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return t},void 0===(i="function"===typeof r?r.call(e,n,e,t):r)||(t.exports=i)},70631:function(t,e,n){var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,s=r&&Map.prototype.forEach,a="function"===typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=a&&c&&"function"===typeof c.get?c.get:null,l=a&&Set.prototype.forEach,h="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,_=String.prototype.toLowerCase,k=RegExp.prototype.test,S=Array.prototype.concat,x=Array.prototype.join,I=Array.prototype.slice,A=Math.floor,E="function"===typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,P="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,C="function"===typeof Symbol&&"object"===typeof Symbol.iterator,M="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===C||"symbol")?Symbol.toStringTag:null,O=Object.prototype.propertyIsEnumerable,R=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function B(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||k.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof t){var r=t<0?-A(-t):A(t);if(r!==t){var i=String(r),o=b.call(e,i.length+1);return v.call(i,n,"$&_")+"."+v.call(v.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(e,n,"$&_")}var j=n(24654),N=j.custom,L=W(N)?N:null;function D(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function z(t){return v.call(String(t),/"/g,""")}function F(t){return"[object Array]"===K(t)&&(!M||!("object"===typeof t&&M in t))}function U(t){return"[object RegExp]"===K(t)&&(!M||!("object"===typeof t&&M in t))}function W(t){if(C)return t&&"object"===typeof t&&t instanceof Symbol;if("symbol"===typeof t)return!0;
1if(!t||"object"!==typeof t||!P)return!1;try{return P.call(t),!0}catch(e){}return!1}t.exports=function t(e,n,r,i){var a=n||{};if(V(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(a,"maxStringLength")&&("number"===typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!V(a,"customInspect")||a.customInspect;if("boolean"!==typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(a,"numericSeparator")&&"boolean"!==typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=a.numericSeparator;if("undefined"===typeof e)return"undefined";if(null===e)return"null";if("boolean"===typeof e)return e?"true":"false";if("string"===typeof e)return q(e,a);if("number"===typeof e){if(0===e)return 1/0/e>0?"0":"-0";var w=String(e);return m?B(e,w):w}if("bigint"===typeof e){var k=String(e)+"n";return m?B(e,k):k}var A="undefined"===typeof a.depth?5:a.depth;if("undefined"===typeof r&&(r=0),r>=A&&A>0&&"object"===typeof e)return F(e)?"[Array]":"[Object]";var T=function(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"===typeof t.indent&&t.indent>0))return null;n=x.call(Array(t.indent+1)," ")}return{base:n,prev:x.call(Array(e+1),n)}}(a,r);if("undefined"===typeof i)i=[];else if(H(i,e)>=0)return"[Circular]";function N(e,n,o){if(n&&(i=I.call(i)).push(n),o){var s={depth:a.depth};return V(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),t(e,s,r+1,i)}return t(e,a,r+1,i)}if("function"===typeof e&&!U(e)){var G=function(t){if(t.name)return t.name;var e=y.call(g.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),$=Q(e,N);return"[Function"+(G?": "+G:" (anonymous)")+"]"+($.length>0?" { "+x.call($,", ")+" }":"")}if(W(e)){var tt=C?v.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(e);return"object"!==typeof e||C?tt:Z(tt)}if(function(t){if(!t||"object"!==typeof t)return!1;if("undefined"!==typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"===typeof t.nodeName&&"function"===typeof t.getAttribute}(e)){for(var et="<"+_.call(String(e.nodeName)),nt=e.attributes||[],rt=0;rt<nt.length;rt++)et+=" "+nt[rt].name+"="+D(z(nt[rt].value),"double",a);return et+=">",e.childNodes&&e.childNodes.length&&(et+="..."),et+="</"+_.call(String(e.nodeName))+">"}if(F(e)){if(0===e.length)return"[]";var it=Q(e,N);return T&&!function(t){for(var e=0;e<t.length;e++)if(H(t[e],"\n")>=0)return!1;return!0}(it)?"["+J(it,T)+"]":"[ "+x.call(it,", ")+" ]"}if(function(t){return"[object Error]"===K(t)&&(!M||!("object"===typeof t&&M in t))}(e)){var ot=Q(e,N);return"cause"in Error.prototype||!("cause"in e)||O.call(e,"cause")?0===ot.length?"["+String(e)+"]":"{ ["+String(e)+"] "+x.call(ot,", ")+" }":"{ ["+String(e)+"] "+x.call(S.call("[cause]: "+N(e.cause),ot),", ")+" }"}if("object"===typeof e&&c){if(L&&"function"===typeof e[L]&&j)return j(e,{depth:A-r});if("symbol"!==c&&"function"===typeof e.inspect)return e.inspect()}if(function(t){if(!o||!t||"object"!==typeof t)return!1;try{o.call(t);try{u.call(t)}catch(et){return!0}return t instanceof Map}catch(e){}return!1}(e)){var st=[];return s.call(e,(function(t,n){st.push(N(n,e,!0)+" => "+N(t,e))})),X("Map",o.call(e),st,T)}if(function(t){if(!u||!t||"object"!==typeof t)return!1;try{u.call(t);try{o.call(t)}catch(e){return!0}return t instanceof Set}catch(n){}return!1}(e)){var at=[];return l.call(e,(function(t){at.push(N(t,e))})),X("Set",u.call(e),at,T)}if(function(t){if(!h||!t||"object"!==typeof t)return!1;try{h.call(t,h);try{d.call(t,d)}catch(et){return!0}return t instanceof WeakMap}catch(e){}return!1}(e))return Y("WeakMap");if(function(t){if(!d||!t||"object"!==typeof t)return!1;try{d.call(t,d);try{h.call(t,h)}catch(et){return!0}return t instanceof WeakSet}catch(e){}return!1}(e))return Y("WeakSet");if(function(t){if(!f||!t||"object"!==typeof t)return!1;try{return f.call(t),!0}catch(e){}return!1}(e))return Y("WeakRef");if(function(t){return"[object Number]"===K(t)&&(!M||!("object"===typeof t&&M in t))}(e))return Z(N(Number(e)));if(function(t){if(!t||"object"!==typeof t||!E)return!1;try{return E.call(t),!0}catch(e){}return!1}(e))return Z(N(E.call(e)));if(function(t){return"[object Boolean]"===K(t)&&(!M||!("object"===typeof t&&M in t))}(e))return Z(p.call(e));if(function(t){return"[object String]"===K(t)&&(!M||!("object"===typeof t&&M in t))}(e))return Z(N(String(e)));if(!function(t){return"[object Date]"===K(t)&&(!M||!("object"===typeof t&&M in t))}(e)&&!U(e)){var ct=Q(e,N),ut=R?R(e)===Object.prototype:e instanceof Object||e.constructor===Object,lt=e instanceof Object?"":"null prototype",ht=!ut&&M&&Object(e)===e&&M in e?b.call(K(e),8,-1):lt?"Object":"",dt=(ut||"function"!==typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ht||lt?"["+x.c
vendor: 6,090 bytes, line 1
1all(S.call([],ht||[],lt||[]),": ")+"] ":"");return 0===ct.length?dt+"{}":T?dt+"{"+J(ct,T)+"}":dt+"{ "+x.call(ct,", ")+" }"}return String(e)};var G=Object.prototype.hasOwnProperty||function(t){return t in this};function V(t,e){return G.call(t,e)}function K(t){return m.call(t)}function H(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function q(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return q(b.call(t,0,e.maxStringLength),e)+r}return D(v.call(v.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,$),"single",e)}function $(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function Z(t){return"Object("+t+")"}function Y(t){return t+" { ? }"}function X(t,e,n,r){return t+" ("+e+") {"+(r?J(n,r):x.call(n,", "))+"}"}function J(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+x.call(t,","+n)+"\n"+e.prev}function Q(t,e){var n=F(t),r=[];if(n){r.length=t.length;for(var i=0;i<t.length;i++)r[i]=V(t,i)?e(t[i],t):""}var o,s="function"===typeof T?T(t):[];if(C){o={};for(var a=0;a<s.length;a++)o["$"+s[a]]=s[a]}for(var c in t)V(t,c)&&(n&&String(Number(c))===c&&c<t.length||C&&o["$"+c]instanceof Symbol||(k.call(/[^\w$]/,c)?r.push(e(c,t)+": "+e(t[c],t)):r.push(c+": "+e(t[c],t))));if("function"===typeof T)for(var u=0;u<s.length;u++)O.call(t,s[u])&&r.push("["+e(s[u])+"]: "+e(t[s[u]],t));return r}},24244:function(t){"use strict";var e=function(t){return t!==t};t.exports=function(t,n){return 0===t&&0===n?1/t===1/n:t===n||!(!e(t)||!e(n))}},20609:function(t,e,n){"use strict";var r=n(4289),i=n(55559),o=n(24244),s=n(75624),a=n(52281),c=i(s(),Object);r(c,{getPolyfill:s,implementation:o,shim:a}),t.exports=c},75624:function(t,e,n){"use strict";var r=n(24244);t.exports=function(){return"function"===typeof Object.is?Object.is:r}},52281:function(t,e,n){"use strict";var r=n(75624),i=n(4289);t.exports=function(){var t=r();return i(Object,{is:t},{is:function(){return Object.is!==t}}),t}},18987:function(t,e,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=n(21414),a=Object.prototype.propertyIsEnumerable,c=!a.call({toString:null},"toString"),u=a.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(t){var e=t.constructor;return e&&e.prototype===t},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"===typeof window)return!1;for(var t in window)try{if(!d["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"===typeof window[t])try{h(window[t])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(t){var e=null!==t&&"object"===typeof t,n="[object Function]"===o.call(t),r=s(t),a=e&&"[object String]"===o.call(t),d=[];if(!e&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var p=u&&n;if(a&&t.length>0&&!i.call(t,0))for(var m=0;m<t.length;++m)d.push(String(m));if(r&&t.length>0)for(var g=0;g<t.length;++g)d.push(String(g));else for(var y in t)p&&"prototype"===y||!i.call(t,y)||d.push(String(y));if(c)for(var b=function(t){if("undefined"===typeof window||!f)return h(t);try{return h(t)}catch(e){return!1}}(t),v=0;v<l.length;++v)b&&"constructor"===l[v]||!i.call(t,l[v])||d.push(l[v]);return d}}t.exports=r},82215:function(t,e,n){"use strict";var r=Array.prototype.slice,i=n(21414),o=Object.keys,s=o?function(t){return o(t)}:n(18987),a=Object.keys;s.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?a(r.call(t)):a(t)})}else Object.keys=s;return Object.keys||s},t.exports=s},21414:function(t){"use strict";var e=Object.prototype.toString;t.exports=function(t){var n=e.call(t),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==t&&"object"===typeof t&&"number"===typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),r}},34155:function(t){var e,n,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"===typeof setTimeout?setTimeout:i}catch(t){e=i}try{n="function"===typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var a,c=[],u=!1,l=-1;function h(){u&&a&&(u=!1,a.length?c=a.concat(c):l=-1,c.length&&d())}function d(){if(!u){var t=s(h);u=!0;for(var e=c.length;e;){for(a=c,c=[];++l<e;)a&&a[l].run();l=-1,e=c.length}a=null,u=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function p(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new f(t,e)),1!==c.length||u||s(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},92703:function(t,e,n){"use strict";
vendor: 6,186 bytes, line 1
1var r=n(50414);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},45697:function(t,e,n){t.exports=n(92703)()},50414:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},55798:function(t){"use strict";var e=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";t.exports={default:i,formatters:{RFC1738:function(t){return e.call(t,n,"+")},RFC3986:function(t){return String(t)}},RFC1738:r,RFC3986:i}},80129:function(t,e,n){"use strict";var r=n(58261),i=n(55235),o=n(55798);t.exports={formats:o,parse:i,stringify:r}},55235:function(t,e,n){"use strict";var r=n(12769),i=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"===typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,n,r){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(o),u=a?o.slice(0,a.index):o,l=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}for(var h=0;n.depth>0&&null!==(a=s.exec(o))&&h<n.depth;){if(h+=1,!n.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+o.slice(a.index)+"]"),function(t,e,n,r){for(var i=r?e:c(e,n),o=t.length-1;o>=0;--o){var s,a=t[o];if("[]"===a&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&a!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(s=[])[l]=i:"__proto__"!==u&&(s[u]=i):s={0:i}}i=s}return i}(l,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return s;if(null!==t.decoder&&void 0!==t.decoder&&"function"!==typeof t.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e="undefined"===typeof t.charset?s.charset:t.charset;return{allowDots:"undefined"===typeof t.allowDots?s.allowDots:!!t.allowDots,allowPrototypes:"boolean"===typeof t.allowPrototypes?t.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"===typeof t.allowSparse?t.allowSparse:s.allowSparse,arrayLimit:"number"===typeof t.arrayLimit?t.arrayLimit:s.arrayLimit,charset:e,charsetSentinel:"boolean"===typeof t.charsetSentinel?t.charsetSentinel:s.charsetSentinel,comma:"boolean"===typeof t.comma?t.comma:s.comma,decoder:"function"===typeof t.decoder?t.decoder:s.decoder,delimiter:"string"===typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:s.delimiter,depth:"number"===typeof t.depth||!1===t.depth?+t.depth:s.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof t.interpretNumericEntities?t.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"===typeof t.parameterLimit?t.parameterLimit:s.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"===typeof t.plainObjects?t.plainObjects:s.plainObjects,strictNullHandling:"boolean"===typeof t.strictNullHandling?t.strictNullHandling:s.strictNullHandling}}(e);if(""===t||null===t||"undefined"===typeof t)return n.plainObjects?Object.create(null):{};for(var l="string"===typeof t?function(t,e){var n,u={},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,h=e.parameterLimit===1/0?void 0:e.parameterLimit,d=l.split(e.delimiter,h),f=-1,p=e.charset;if(e.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?p="utf-8":"utf8=%26%2310003%3B"===d[n]&&(p="iso-8859-1"),f=n,n=d.length);for(n=0;n<d.length;++n)if(n!==f){var m,g,y=d[n],b=y.indexOf("]="),v=-1===b?y.indexOf("="):b+1;-1===v?(m=e.decoder(y,s.decoder,p,"key"),g=e.strictNullHandling?null:""):(m=e.decoder(y.slice(0,v),s.decoder,p,"key"),g=r.maybeMap(c(y.slice(v+1),e),(function(t){return e.decoder(t,s.decoder,p,"value")}))),g&&e.interpretNumericEntities&&"iso-8859-1"===p&&(g=a(g)),y.indexOf("[]=")>-1&&(g=o(g)?[g]:g),i.call(u,m)?u[m]=r.combine(u[m],g):u[m]=g}return u}(t,n):t,h=n.plainObjects?Object.create(null):{},d=Object.keys(l),f=0;f<d.length;++f){var p=d[f],m=u(p,l[p],n,"string"===typeof t);h=r.merge(h,m,n)}return!0===n.allowSparse?h:r.compact(h)}},58261:function(t,e,n){"use strict";var r=n(37478),i=n(12769),o=n(55798),s=Object.prototype.hasOwnProperty,a={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},c=Array.isArray,u=String.prototype.split,l=Array.prototype.push,h=function(t,e){l.apply(t,c(e)?e:[e])},d=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(t){return d.call(t)},skipNulls:!1,strictNullHandling:!1},m={},g=function t(e,n,o,s,a,l,d,f,g,y,b,v,w,_,k,S){for(var x,I=e,A=S,E=0,T=!1;void 0!==(A=A.get(m))&&!T;){var P=A.get(e);if(E+=1,"undefined"!==typeof P){if(P===E)throw new RangeError("Cyclic object value");T=!0}"undefined"===typeof A.get(m)&&(E=0)}if("function"===typeof f?I=f(n,I):I instanceof Date?I=b(I):"comma"===o&&c(I)&&(I=i.maybeMap(I,(function(t){return t instanceof Date?b(t):t}
1))),null===I){if(a)return d&&!_?d(n,p.encoder,k,"key",v):n;I=""}if("string"===typeof(x=I)||"number"===typeof x||"boolean"===typeof x||"symbol"===typeof x||"bigint"===typeof x||i.isBuffer(I)){if(d){var C=_?n:d(n,p.encoder,k,"key",v);if("comma"===o&&_){for(var M=u.call(String(I),","),O="",R=0;R<M.length;++R)O+=(0===R?"":",")+w(d(M[R],p.encoder,k,"value",v));return[w(C)+(s&&c(I)&&1===M.length?"[]":"")+"="+O]}return[w(C)+"="+w(d(I,p.encoder,k,"value",v))]}return[w(n)+"="+w(String(I))]}var B,j=[];if("undefined"===typeof I)return j;if("comma"===o&&c(I))B=[{value:I.length>0?I.join(",")||null:void 0}];else if(c(f))B=f;else{var N=Object.keys(I);B=g?N.sort(g):N}for(var L=s&&c(I)&&1===I.length?n+"[]":n,D=0;D<B.length;++D){var z=B[D],F="object"===typeof z&&"undefined"!==typeof z.value?z.value:I[z];if(!l||null!==F){var U=c(I)?"function"===typeof o?o(L,z):L:L+(y?"."+z:"["+z+"]");S.set(e,E);var W=r();W.set(m,S),h(j,t(F,U,o,s,a,l,d,f,g,y,b,v,w,_,k,W))}}return j};t.exports=function(t,e){var n,i=t,u=function(t){if(!t)return p;if(null!==t.encoder&&"undefined"!==typeof t.encoder&&"function"!==typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||p.charset;if("undefined"!==typeof t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if("undefined"!==typeof t.format){if(!s.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=o.formatters[n],i=p.filter;return("function"===typeof t.filter||c(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"===typeof t.addQueryPrefix?t.addQueryPrefix:p.addQueryPrefix,allowDots:"undefined"===typeof t.allowDots?p.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"===typeof t.charsetSentinel?t.charsetSentinel:p.charsetSentinel,delimiter:"undefined"===typeof t.delimiter?p.delimiter:t.delimiter,encode:"boolean"===typeof t.encode?t.encode:p.encode,encoder:"function"===typeof t.encoder?t.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof t.encodeValuesOnly?t.encodeValuesOnly:p.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"===typeof t.serializeDate?t.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof t.skipNulls?t.skipNulls:p.skipNulls,sort:"function"===typeof t.sort?t.sort:null,strictNullHandling:"boolean"===typeof t.strictNullHandling?t.strictNullHandling:p.strictNullHandling}}(e);"function"===typeof u.filter?i=(0,u.filter)("",i):c(u.filter)&&(n=u.filter);var l,d=[];if("object"!==typeof i||null===i)return"";l=e&&e.arrayFormat in a?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var f=a[l];if(e&&"commaRoundTrip"in e&&"boolean"!==typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var m="comma"===f&&e&&e.commaRoundTrip;n||(n=Object.keys(i)),u.sort&&n.sort(u.sort);for(var y=r(),b=0;b<n.length;++b){var v=n[b];u.skipNulls&&null===i[v]||h(d,g(i[v],v,f,m,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,y))}var w=d.join(u.delimiter),_=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),w.length>0?_+w:""}},12769:function(t,e,n){"use strict";var r=n(55798),i=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)"undefined"!==typeof t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:a,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var i=e[r],s=i.obj[i.prop],a=Object.keys(s),c=0;c<a.length;++c){var u=a[c],l=s[u];"object"===typeof l&&null!==l&&-1===n.indexOf(l)&&(e.push({obj:s,prop:u}),n.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");
1if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(t,e,n,i,o){if(0===t.length)return t;var a=t;if("symbol"===typeof t?a=Symbol.prototype.toString.call(t):"string"!==typeof t&&(a=String(t)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var c="",u=0;u<a.length;++u){var l=a.charCodeAt(u);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===r.RFC1738&&(40===l||41===l)?c+=a.charAt(u):l<128?c+=s[l]:l<2048?c+=s[192|l>>6]+s[128|63&l]:l<55296||l>=57344?c+=s[224|l>>12]+s[128|l>>6&63]+s[128|63&l]:(u+=1,l=65536+((1023&l)<<10|1023&a.charCodeAt(u)),c+=s[240|l>>18]+s[128|l>>12&63]+s[128|l>>6&63]+s[128|63&l])}return c},isBuffer:function(t){return!(!t||"object"!==typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,r){if(!n)return e;if("object"!==typeof n){if(o(e))e.push(n);else{if(!e||"object"!==typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!==typeof e)return[e].concat(n);var s=e;return o(e)&&!o(n)&&(s=a(e,r)),o(e)&&o(n)?(n.forEach((function(n,o){if(i.call(e,o)){var s=e[o];s&&"object"===typeof s&&n&&"object"===typeof n?e[o]=t(s,n,r):e.push(n)}else e[o]=n})),e):Object.keys(n).reduce((function(e,o){var s=n[o];return i.call(e,o)?e[o]=t(e[o],s,r):e[o]=s,e}),s)}}},69590:function(t){var e="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(t,s){if(t===s)return!0;if(t&&s&&"object"==typeof t&&"object"==typeof s){if(t.constructor!==s.constructor)return!1;var a,c,u,l;if(Array.isArray(t)){if((a=t.length)!=s.length)return!1;for(c=a;0!==c--;)if(!o(t[c],s[c]))return!1;return!0}if(n&&t instanceof Map&&s instanceof Map){if(t.size!==s.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!s.has(c.value[0]))return!1;for(l=t.entries();!(c=l.next()).done;)if(!o(c.value[1],s.get(c.value[0])))return!1;return!0}if(r&&t instanceof Set&&s instanceof Set){if(t.size!==s.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!s.has(c.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(s)){if((a=t.length)!=s.length)return!1;for(c=a;0!==c--;)if(t[c]!==s[c])return!1;return!0}if(t.constructor===RegExp)return t.source===s.source&&t.flags===s.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===s.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===s.toString();if((a=(u=Object.keys(t)).length)!==Object.keys(s).length)return!1;for(c=a;0!==c--;)if(!Object.prototype.hasOwnProperty.call(s,u[c]))return!1;if(e&&t instanceof Element)return!1;for(c=a;0!==c--;)if(("_owner"!==u[c]&&"__v"!==u[c]&&"__o"!==u[c]||!t.$$typeof)&&!o(t[u[c]],s[u[c]]))return!1;return!0}return t!==t&&s!==s}t.exports=function(t,e){try{return o(t,e)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},64593:function(t,e,n){"use strict";n.r(e),n.d(e,{Helmet:function(){return lt}});var r=n(45697),i=n.n(r),o=n(83524),s=n.n(o),a=n(69590),c=n.n(a),u=n(67294),l=n(96086),h=n.n(l),d="bodyAttributes",f="htmlAttributes",p="titleAttributes",m={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},g=(Object.keys(m).map((function(t){return m[t]})),"charset"),y="cssText",b="href",v="http-equiv",w="innerHTML",_="itemprop",k="name",S="property",x="rel",I="src",A="target",E={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},T="defaultTitle",P="defer",C="encodeSpecialCharacters",M="onChangeClientState",O="titleTemplate",R=Object.keys(E).reduce((function(t,e){return t[E[e]]=e,t}),{}),B=[m.NOSCRIPT,m.SCRIPT,m.STYLE],j="data-react-helmet",N="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},D=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),z=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},F=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},U=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e},W=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===e?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}
1,G=function(t){var e=$(t,m.TITLE),n=$(t,O);if(n&&e)return n.replace(/%s/g,(function(){return Array.isArray(e)?e.join(""):e}));var r=$(t,T);return e||r||void 0},V=function(t){return $(t,M)||function(){}},K=function(t,e){return e.filter((function(e){return"undefined"!==typeof e[t]})).map((function(e){return e[t]})).reduce((function(t,e){return z({},t,e)}),{})},H=function(t,e){return e.filter((function(t){return"undefined"!==typeof t[m.BASE]})).map((function(t){return t[m.BASE]})).reverse().reduce((function(e,n){if(!e.length)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i].toLowerCase();if(-1!==t.indexOf(o)&&n[o])return e.concat(n)}return e}),[])},q=function(t,e,n){var r={};return n.filter((function(e){return!!Array.isArray(e[t])||("undefined"!==typeof e[t]&&Q("Helmet: "+t+' should be of type "Array". Instead found type "'+N(e[t])+'"'),!1)})).map((function(e){return e[t]})).reverse().reduce((function(t,n){var i={};n.filter((function(t){for(var n=void 0,o=Object.keys(t),s=0;s<o.length;s++){var a=o[s],c=a.toLowerCase();-1===e.indexOf(c)||n===x&&"canonical"===t[n].toLowerCase()||c===x&&"stylesheet"===t[c].toLowerCase()||(n=c),-1===e.indexOf(a)||a!==w&&a!==y&&a!==_||(n=a)}if(!n||!t[n])return!1;var u=t[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][u]&&(i[n][u]=!0,!0)})).reverse().forEach((function(e){return t.push(e)}));for(var o=Object.keys(i),s=0;s<o.length;s++){var a=o[s],c=h()({},r[a],i[a]);r[a]=c}return t}),[]).reverse()},$=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.hasOwnProperty(e))return r[e]}return null},Z=function(){var t=Date.now();return function(e){var n=Date.now();n-t>16?(t=n,e(n)):setTimeout((function(){Z(e)}),0)}}(),Y=function(t){return clearTimeout(t)},X="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Z:n.g.requestAnimationFrame||Z,J="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Y:n.g.cancelAnimationFrame||Y,Q=function(t){return console&&"function"===typeof console.warn&&console.warn(t)},tt=null,et=function(t,e){var n=t.baseTag,r=t.bodyAttributes,i=t.htmlAttributes,o=t.linkTags,s=t.metaTags,a=t.noscriptTags,c=t.onChangeClientState,u=t.scriptTags,l=t.styleTags,h=t.title,d=t.titleAttributes;it(m.BODY,r),it(m.HTML,i),rt(h,d);var f={baseTag:ot(m.BASE,n),linkTags:ot(m.LINK,o),metaTags:ot(m.META,s),noscriptTags:ot(m.NOSCRIPT,a),scriptTags:ot(m.SCRIPT,u),styleTags:ot(m.STYLE,l)},p={},g={};Object.keys(f).forEach((function(t){var e=f[t],n=e.newTags,r=e.oldTags;n.length&&(p[t]=n),r.length&&(g[t]=f[t].oldTags)})),e&&e(),c(t,p,g)},nt=function(t){return Array.isArray(t)?t.join(""):t},rt=function(t,e){"undefined"!==typeof t&&document.title!==t&&(document.title=nt(t)),it(m.TITLE,e)},it=function(t,e){var n=document.getElementsByTagName(t)[0];if(n){for(var r=n.getAttribute(j),i=r?r.split(","):[],o=[].concat(i),s=Object.keys(e),a=0;a<s.length;a++){var c=s[a],u=e[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===i.indexOf(c)&&i.push(c);var l=o.indexOf(c);-1!==l&&o.splice(l,1)}for(var h=o.length-1;h>=0;h--)n.removeAttribute(o[h]);i.length===o.length?n.removeAttribute(j):n.getAttribute(j)!==s.join(",")&&n.setAttribute(j,s.join(","))}},ot=function(t,e){var n=document.head||document.querySelector(m.HEAD),r=n.querySelectorAll(t+"["+"data-react-helmet]"),i=Array.prototype.slice.call(r),o=[],s=void 0;return e&&e.length&&e.forEach((function(e){var n=document.createElement(t);for(var r in e)if(e.hasOwnProperty(r))if(r===w)n.innerHTML=e.innerHTML;else if(r===y)n.styleSheet?n.styleSheet.cssText=e.cssText:n.appendChild(document.createTextNode(e.cssText));else{var a="undefined"===typeof e[r]?"":e[r];n.setAttribute(r,a)}n.setAttribute(j,"true"),i.some((function(t,e){return s=e,n.isEqualNode(t)}))?i.splice(s,1):o.push(n)})),i.forEach((function(t){return t.parentNode.removeChild(t)})),o.forEach((function(t){return n.appendChild(t)})),{oldTags:i,newTags:o}},st=function(t){return Object.keys(t).reduce((function(e,n){var r="undefined"!==typeof t[n]?n+'="'+t[n]+'"':""+n;return e?e+" "+r:r}),"")},at=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[E[n]||n]=t[n],e}),e)},ct=function(t,e,n){switch(t){case m.TITLE:return{toComponent:function(){return function(t,e,n){var r,i=((r={key:e})[j]=!0,r),o=at(n,i);return[u.createElement(m.TITLE,o,e)]}(0,e.title,e.titleAttributes)},toString:function(){return function(t,e,n,r){var i=st(n),o=nt(e);return i?"<"+t+' data-react-helmet="true" '+i+">"+W(o,r)+"</"+t+">":"<"+t+' data-react-helmet="true">'+W(o,r)+"</"+t+">"}(t,e.title,e.titleAttributes,n)}};case d:case f:return{toComponent:function(){return at(e)},toString:function(){return st(e)}};default:return{toComponent:function(){return function(t,e){return e.map((function(e,n){var r,i=((r={key:n})[j]=!0,r);return Object.keys(e).forEach((function(t){var n=E[t]||t;if(n===w||n===y){var r=e.innerHTML||e.cssText;i.dangerouslySetInnerHTML={__html:r}}else i[n]=e[t]})),u.createElement(t,i)}))}(t,e)},toString:function(){return function(t,e,n){return e.reduce((function(e,r){var i=Object.keys(r).filter((function(t){return!(t===w||t===y)})).reduce((function(t,e){var i="undefined"===typeof r[e]?e:e+'="'+W(r[e],n)+'"';return t?t+" "+i:i}),""),o=r.innerHTML||r.cssText||"",s=-1===B.indexOf(t);return e+"<"+t+' data-react-helmet="true" '+i+(s?"/>":">"+o+"</"+t+">")}),"")}(t,e,n)}}}},ut=function(t){var e=t.baseTag,n=t.bodyAttributes,r=t.encode,i=t.htmlAttributes,o=t.linkTags,s=t.metaTags,a=t.noscriptTags,c=t.scriptTags,u=t.styleTags,l=t.title,h=void 0===l?"":l,p=t.titleAttributes;return{base:ct(m.BASE,e,r),bodyAttributes:ct(d,n,r),htmlAttributes:ct(f,i,r),link:ct(m.LINK,o,r),meta:ct(m.META,s,r),noscript:ct(m.NOSCRIPT,a,r),script:ct(m.SCRIPT,c,r),style:ct(m.STYLE,u,r),title:ct(m.TITLE,{title:h,titleAttributes:p},r)}},lt=function(t){var e,n;return n=e=function(e){function n(){return L(this,n),U(this,e.apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,e),n.prototype.shouldComponentUpdate=function(t){return!c()(this.props,t)},n.prototype.mapNestedChildrenToProps=function(t,e){if(!e)return null;switch(t.type){case m.SCRIPT:case m.NOSCRIPT:return{innerHTML:e};case m.STYLE:return{cssText:e}}throw new Error("<"+t.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(t){var e,n=t.child,r=t.arrayTypeChildren,i=t.newChildProps,o=t.nestedChildren;return z({},r,((e={})[n.type]=[].concat(r[n.type]||[],[z({},i,this.mapNestedChildrenToProps(n,o))]),e))},n.prototype.mapObjectTypeChildren=function(t){var e,n,r=t.child,i=t.newProps,o=t.newChildProps,s=t.nestedChildren;switch(r.type){case m.TITLE:return z({},i,((e={})[r.type]=s,e.titleAttributes=z({},o),e));case m.BODY:return z({},i,{bodyAttributes:z({},o)});case m.HTML:return z({},i,{htmlAttributes:z({},o)})}return z({},i,((n={})[r.type]=z({},o),n))},n.prototype.mapArrayTypeChildrenToProps=function(t,e){var n=z({},e);return Object.keys(t).forEach((function(e){var r;n=z({},n,((r={})[e]=t[e],r))})),n}
1,n.prototype.warnOnInvalidChildren=function(t,e){return!0},n.prototype.mapChildrenToProps=function(t,e){var n=this,r={};return u.Children.forEach(t,(function(t){if(t&&t.props){var i=t.props,o=i.children,s=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[R[n]||n]=t[n],e}),e)}(F(i,["children"]));switch(n.warnOnInvalidChildren(t,o),t.type){case m.LINK:case m.META:case m.NOSCRIPT:case m.SCRIPT:case m.STYLE:r=n.flattenArrayTypeChildren({child:t,arrayTypeChildren:r,newChildProps:s,nestedChildren:o});break;default:e=n.mapObjectTypeChildren({child:t,newProps:e,newChildProps:s,nestedChildren:o})}}})),e=this.mapArrayTypeChildrenToProps(r,e)},n.prototype.render=function(){var e=this.props,n=e.children,r=F(e,["children"]),i=z({},r);return n&&(i=this.mapChildrenToProps(n,i)),u.createElement(t,i)},D(n,null,[{key:"canUseDOM",set:function(e){t.canUseDOM=e}}]),n}(u.Component),e.propTypes={base:i().object,bodyAttributes:i().object,children:i().oneOfType([i().arrayOf(i().node),i().node]),defaultTitle:i().string,defer:i().bool,encodeSpecialCharacters:i().bool,htmlAttributes:i().object,link:i().arrayOf(i().object),meta:i().arrayOf(i().object),noscript:i().arrayOf(i().object),onChangeClientState:i().func,script:i().arrayOf(i().object),style:i().arrayOf(i().object),title:i().string,titleAttributes:i().object,titleTemplate:i().string},e.defaultProps={defer:!0,encodeSpecialCharacters:!0},e.peek=t.peek,e.rewind=function(){var e=t.rewind();return e||(e=ut({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},n}(s()((function(t){return{baseTag:H([b,A],t),bodyAttributes:K(d,t),defer:$(t,P),encode:$(t,C),htmlAttributes:K(f,t),linkTags:q(m.LINK,[x,b],t),metaTags:q(m.META,[k,g,v,S,_],t),noscriptTags:q(m.NOSCRIPT,[w],t),onChangeClientState:V(t),scriptTags:q(m.SCRIPT,[I,w],t),styleTags:q(m.STYLE,[y],t),title:G(t),titleAttributes:K(p,t)}}),(function(t){tt&&J(tt),t.defer?tt=X((function(){et(t,(function(){tt=null}))})):(et(t),tt=null)}),ut)((function(){return null})));lt.renderStatic=lt.rewind,e.default=lt},57715:function(t,e,n){"use strict";n.d(e,{OO:function(){return p},zv:function(){return g},JP:function(){return m},nI:function(){return y},Db:function(){return b}});var r=n(15671),i=n(43144),o=n(4942),s=n(67294),a=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230);/g,c={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"\u2026","…":"\u2026"},u=function(t){return c[t]};function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var d,f={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(t){return t.replace(a,u)}},p=(0,s.createContext)();function m(){return f}var g=function(){function t(){(0,r.Z)(this,t),this.usedNamespaces={}}return(0,i.Z)(t,[{key:"addUsedNamespaces",value:function(t){var e=this;t.forEach((function(t){e.usedNamespaces[t]||(e.usedNamespaces[t]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function y(){return d}var b={type:"3rdParty",init:function(t){!function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f=h(h({},f),t)}(t.options.react),function(t){d=t}(t)}}},69921:function(t,e){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,h=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(t){if("object"===typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case l:case h:case o:case a:case s:case f:return t;default:switch(t=t&&t.$$typeof){case u:case d:case g:case m:case c:return t;default:return e}}case i:return e}}}function k(t){return _(t)===h}e.AsyncMode=l,e.ConcurrentMode=h,e.ContextConsumer=u,e.ContextProvider=c,e.Element=r,e.ForwardRef=d,e.Fragment=o,e.Lazy=g,e.Memo=m,e.Portal=i,e.Profiler=a,e.StrictMode=s,e.Suspense=f,e.isAsyncMode=function(t){return k(t)||_(t)===l},e.isConcurrentMode=k,e.isContextConsumer=function(t){return _(t)===u},e.isContextProvider=function(t){return _(t)===c},e.isElement=function(t){return"object"===typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return _(t)===d},e.isFragment=function(t){return _(t)===o},e.isLazy=function(t){return _(t)===g},e.isMemo=function(t){return _(t)===m},e.isPortal=function(t){return _(t)===i},e.isProfiler=function(t){return _(t)===a},e.isStrictMode=function(t){return _(t)===s},e.isSuspense=function(t){return _(t)===f},e.isValidElementType=function(t){return"string"===typeof t||"function"===typeof t||t===o||t===h||t===a||t===s||t===f||t===p||"object"===typeof t&&null!==t&&(t.$$typeof===g||t.$$typeof===m||t.$$typeof===c||t.$$typeof===u||t.$$typeof===d||t.$$typeof===b||t.$$typeof===v||t.$$typeof===w||t.$$typeof===y)},e.typeOf=_},59864:function(t,e,n){"use strict";
1t.exports=n(69921)},40353:function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var n=c(e);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var a=o?Object.getOwnPropertyDescriptor(t,s):null;a&&(a.get||a.set)?Object.defineProperty(i,s,a):i[s]=t[s]}i.default=t,n&&n.set(t,i);return i}(n(67294)),o=a(n(45697)),s=a(n(21509));function a(t){return t&&t.__esModule?t:{default:t}}function c(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(c=function(t){return t?n:e})(t)}var u=function(t){var e=t.value,n=void 0===e?"test":e,r=t.size,o=void 0===r?"100%":r,a=(0,i.useRef)(null);return(0,i.useEffect)((function(){s.default.update(a.current,n)}),[n]),i.default.createElement("div",null,i.default.createElement("svg",{"data-jdenticon-value":n,height:o,ref:a,width:o}))};u.propTypes={size:o.default.string,value:o.default.string.isRequired};var l=u;e.default=l},83524:function(t,e,n){"use strict";var r,i=n(67294),o=(r=i)&&"object"===typeof r&&"default"in r?r.default:r;function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=!("undefined"===typeof window||!window.document||!window.document.createElement);t.exports=function(t,e,n){if("function"!==typeof t)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof e)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof n&&"function"!==typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!==typeof r)throw new Error("Expected WrappedComponent to be a React component.");var c,u=[];function l(){c=t(u.map((function(t){return t.props}))),h.canUseDOM?e(c):n&&(c=n(c))}var h=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i.peek=function(){return c},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var t=c;return c=void 0,u=[],t};var s=i.prototype;return s.UNSAFE_componentWillMount=function(){u.push(this),l()},s.componentDidUpdate=function(){l()},s.componentWillUnmount=function(){var t=u.indexOf(this);u.splice(t,1),l()},s.render=function(){return o.createElement(r,this.props)},i}(i.PureComponent);return s(h,"displayName","SideEffect("+function(t){return t.displayName||t.name||"Component"}(r)+")"),s(h,"canUseDOM",a),h}}},83937:function(t,e,n){"use strict";var r=n(64836);e.K=void 0;var i=r(n(89728)),o=r(n(56690)),s=r(n(61655)),a=r(n(94993)),c=r(n(73808)),u=r(n(89062));function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=(0,c.default)(t);if(e){var i=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,a.default)(this,n)}}var h=function(t){(0,s.default)(n,t);var e=l(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ws://localhost:8080",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.autoconnect,s=void 0===i||i,a=r.reconnect,c=void 0===a||a,l=r.reconnect_interval,h=void 0===l?1e3:l,d=r.max_reconnects,f=void 0===d?5:d,p=arguments.length>2?arguments[2]:void 0;return(0,o.default)(this,n),e.call(this,u.default,t,{autoconnect:s,reconnect:c,reconnect_interval:h,max_reconnects:f},p)}return(0,i.default)(n)}(r(n(66855)).default);e.K=h},66855:function(t,e,n){"use strict";var r=n(48764).Buffer,i=n(64836);
1Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n(64687)),s=i(n(17156)),a=i(n(18698)),c=i(n(56690)),u=i(n(89728)),l=i(n(61655)),h=i(n(94993)),d=i(n(73808)),f=n(26729);function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=(0,d.default)(t);if(e){var i=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,h.default)(this,n)}}var m=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},g=function(t){(0,l.default)(n,t);var e=p(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ws://localhost:8080",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;(0,c.default)(this,n);var a=o.autoconnect,u=void 0===a||a,l=o.reconnect,h=void 0===l||l,d=o.reconnect_interval,f=void 0===d?1e3:d,p=o.max_reconnects,g=void 0===p?5:p,y=m(o,["autoconnect","reconnect","reconnect_interval","max_reconnects"]);return(r=e.call(this)).webSocketFactory=t,r.queue={},r.rpc_id=0,r.address=i,r.autoconnect=u,r.ready=!1,r.reconnect=h,r.reconnect_interval=f,r.max_reconnects=g,r.rest_options=y,r.current_reconnects=0,r.generate_request_id=s||function(){return++r.rpc_id},r.autoconnect&&r._connect(r.address,Object.assign({autoconnect:r.autoconnect,reconnect:r.reconnect,reconnect_interval:r.reconnect_interval,max_reconnects:r.max_reconnects},r.rest_options)),r}return(0,u.default)(n,[{key:"connect",value:function(){this.socket||this._connect(this.address,Object.assign({autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects},this.rest_options))}},{key:"call",value:function(t,e,n,r){var i=this;return r||"object"!==(0,a.default)(n)||(r=n,n=null),new Promise((function(o,s){if(!i.ready)return s(new Error("socket not ready"));var a=i.generate_request_id(t,e),c={jsonrpc:"2.0",method:t,params:e||null,id:a};i.socket.send(JSON.stringify(c),r,(function(t){if(t)return s(t);i.queue[a]={promise:[o,s]},n&&(i.queue[a].timeout=setTimeout((function(){delete i.queue[a],s(new Error("reply timeout"))}),n))}))}))}},{key:"login",value:function(){var t=(0,s.default)(o.default.mark((function t(e){var n;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.call("rpc.login",e);case 2:if(n=t.sent){t.next=5;break}throw new Error("authentication failed");case 5:return t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"listMethods",value:function(){var t=(0,s.default)(o.default.mark((function t(){return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.call("__listMethods");case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"notify",value:function(t,e){var n=this;return new Promise((function(r,i){if(!n.ready)return i(new Error("socket not ready"));var o={jsonrpc:"2.0",method:t,params:e||null};n.socket.send(JSON.stringify(o),(function(t){if(t)return i(t);r()}))}))}},{key:"subscribe",value:function(){var t=(0,s.default)(o.default.mark((function t(e){var n;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"string"===typeof e&&(e=[e]),t.next=3,this.call("rpc.on",e);case 3:if(n=t.sent,"string"!==typeof e||"ok"===n[e]){t.next=6;break}throw new Error("Failed subscribing to an event '"+e+"' with: "+n[e]);case 6:return t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"unsubscribe",value:function(){var t=(0,s.default)(o.default.mark((function t(e){var n;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"string"===typeof e&&(e=[e]),t.next=3,this.call("rpc.off",e);case 3:if(n=t.sent,"string"!==typeof e||"ok"===n[e]){t.next=6;break}throw new Error("Failed unsubscribing from an event with: "+n);case 6:return t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"close",value:function(t,e){this.socket.close(t||1e3,e)}},{key:"_connect",value:function(t,e){var n=this;this.socket=this.webSocketFactory(t,e),this.socket.addEventListener("open",(function(){n.ready=!0,n.emit("open"),n.current_reconnects=0})),this.socket.addEventListener("message",(function(t){var e=t.data;e instanceof ArrayBuffer&&(e=r.from(e).toString());try{e=JSON.parse(e)}catch(s){return}if(e.notification&&n.listeners(e.notification).length){if(!Object.keys(e.params).length)return n.emit(e.notification);var i=[e.notification];if(e.params.constructor===Object)i.push(e.params);else for(var o=0;o<e.params.length;o++)i.push(e.params[o]);return Promise.resolve().then((function(){n.emit.apply(n,i)}))}if(!n.queue[e.id])return e.method&&e.params?Promise.resolve().then((function(){n.emit(e.method,e.params)})):void 0;"error"in e==="result"in e&&n.queue[e.id].promise[1](new Error('Server response malformed. Response must include either "result" or "error", but not both.')),n.queue[e.id].timeout&&clearTimeout(n.queue[e.id].timeout),e.error?n.queue[e.id].promise[1](e.error):n.queue[e.id].promise[0](e.result),delete n.queue[e.id]})),this.socket.addEventListener("error",(function(t){return n.emit("error",t)})),this.socket.addEventListener("close",(function(r){var i=r.code,o=r.reason;n.ready&&setTimeout((function(){return n.emit("close",i,o)}),0),n.ready=!1,n.socket=void 0,1e3!==i&&(n.current_reconnects++,n.reconnect&&(n.max_reconnects>n.current_reconnects||0===n.max_reconnects)&&setTimeout((function(){return n._connect(t,e)}),n.reconnect_interval))}))}}]),n}(f.EventEmitter);e.default=g},89062:function(t,e,n){"use strict";var r=n(64836);
1Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return new l(t,e)};var i=r(n(56690)),o=r(n(89728)),s=r(n(61655)),a=r(n(94993)),c=r(n(73808));function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=(0,c.default)(t);if(e){var i=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,a.default)(this,n)}}var l=function(t){(0,s.default)(n,t);var e=u(n);function n(t,r,o){var s;return(0,i.default)(this,n),(s=e.call(this)).socket=new window.WebSocket(t,o),s.socket.onopen=function(){return s.emit("open")},s.socket.onmessage=function(t){return s.emit("message",t.data)},s.socket.onerror=function(t){return s.emit("error",t)},s.socket.onclose=function(t){s.emit("close",t.code,t.reason)},s}return(0,o.default)(n,[{key:"send",value:function(t,e,n){var r=n||e;try{this.socket.send(t),r()}catch(i){r(i)}}},{key:"close",value:function(t,e){this.socket.close(t,e)}},{key:"addEventListener",value:function(t,e,n){this.socket.addEventListener(t,e,n)}}]),n}(n(26729).EventEmitter)},89509:function(t,e,n){var r=n(48764),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function s(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(t,e,n){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},s.alloc=function(t,e,n){if("number"!==typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"===typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},s.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},17221:function(t,e,n){t.exports=n(59119)(n(58573))},58573:function(t,e,n){const r=new(0,n(86266).ec)("secp256k1"),i=r.curve,o=i.n.constructor;function s(t){const e=t[0];switch(e){case 2:case 3:return 33!==t.length?null:function(t,e){let n=new o(e);if(n.cmp(i.p)>=0)return null;n=n.toRed(i.red);let s=n.redSqr().redIMul(n).redIAdd(i.b).redSqrt();return 3===t!==s.isOdd()&&(s=s.redNeg()),r.keyPair({pub:{x:n,y:s}})}(e,t.subarray(1,33));case 4:case 6:case 7:return 65!==t.length?null:function(t,e,n){let s=new o(e),a=new o(n);if(s.cmp(i.p)>=0||a.cmp(i.p)>=0)return null;if(s=s.toRed(i.red),a=a.toRed(i.red),(6===t||7===t)&&a.isOdd()!==(7===t))return null;const c=s.redSqr().redIMul(s);return a.redSqr().redISub(c.redIAdd(i.b)).isZero()?r.keyPair({pub:{x:s,y:a}}):null}(e,t.subarray(1,33),t.subarray(33,65));default:return null}}function a(t,e){const n=e.encode(null,33===t.length);for(let r=0;r<t.length;++r)t[r]=n[r]}t.exports={contextRandomize:()=>0,privateKeyVerify(t){const e=new o(t);return e.cmp(i.n)<0&&!e.isZero()?0:1},privateKeyNegate(t){const e=new o(t),n=i.n.sub(e).umod(i.n).toArrayLike(Uint8Array,"be",32);return t.set(n),0},privateKeyTweakAdd(t,e){const n=new o(e);if(n.cmp(i.n)>=0)return 1;if(n.iadd(new o(t)),n.cmp(i.n)>=0&&n.isub(i.n),n.isZero())return 1;const r=n.toArrayLike(Uint8Array,"be",32);return t.set(r),0},privateKeyTweakMul(t,e){let n=new o(e);if(n.cmp(i.n)>=0||n.isZero())return 1;n.imul(new o(t)),n.cmp(i.n)>=0&&(n=n.umod(i.n));const r=n.toArrayLike(Uint8Array,"be",32);return t.set(r),0},publicKeyVerify:t=>null===s(t)?1:0,publicKeyCreate(t,e){const n=new o(e);if(n.cmp(i.n)>=0||n.isZero())return 1;return a(t,r.keyFromPrivate(e).getPublic()),0},publicKeyConvert(t,e){const n=s(e);if(null===n)return 1;return a(t,n.getPublic()),0},publicKeyNegate(t,e){const n=s(e);if(null===n)return 1;const r=n.getPublic();return r.y=r.y.redNeg(),a(t,r),0},publicKeyCombine(t,e){const n=new Array(e.length);for(let i=0;i<e.length;++i)if(n[i]=s(e[i]),null===n[i])return 1;let r=n[0].getPublic();for(let i=1;i<n.length;++i)r=r.add(n[i].pub);return r.isInfinity()?2:(a(t,r),0)},publicKeyTweakAdd(t,e,n){const r=s(e);if(null===r)return 1;if((n=new o(n)).cmp(i.n)>=0)return 2;const c=r.getPublic().add(i.g.mul(n));return c.isInfinity()?2:(a(t,c),0)},publicKeyTweakMul(t,e,n){const r=s(e);if(null===r)return 1;if((n=new o(n)).cmp(i.n)>=0||n.isZero())return 2;return a(t,r.getPublic().mul(n)),0},signatureNormalize(t){const e=new o(t.subarray(0,32)),n=new o(t.subarray(32,64));return e.cmp(i.n)>=0||n.cmp(i.n)>=0?1:(1===n.cmp(r.nh)&&t.set(i.n.sub(n).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(t,e){const n=e.subarray(0,32),r=e.subarray(32,64);if(new o(n).cmp(i.n)>=0)return 1;if(new o(r).cmp(i.n)>=0)return 1;const{output:s}=t;let a=s.subarray(4,37);a[0]=0,a.set(n,1);let c=33,u=0;for(;c>1&&0===a[u]&&!(128&a[u+1]);--c,++u);if(a=a.subarray(u),128&a[0])return 1;if(c>
vendor: 3,123 bytes, line 1
11&&0===a[0]&&!(128&a[1]))return 1;let l=s.subarray(39,72);l[0]=0,l.set(r,1);let h=33,d=0;for(;h>1&&0===l[d]&&!(128&l[d+1]);--h,++d);return l=l.subarray(d),128&l[0]||h>1&&0===l[0]&&!(128&l[1])?1:(t.outputlen=6+c+h,s[0]=48,s[1]=t.outputlen-2,s[2]=2,s[3]=a.length,s.set(a,4),s[4+c]=2,s[5+c]=l.length,s.set(l,6+c),0)},signatureImport(t,e){if(e.length<8)return 1;if(e.length>72)return 1;if(48!==e[0])return 1;if(e[1]!==e.length-2)return 1;if(2!==e[2])return 1;const n=e[3];if(0===n)return 1;if(5+n>=e.length)return 1;if(2!==e[4+n])return 1;const r=e[5+n];if(0===r)return 1;if(6+n+r!==e.length)return 1;if(128&e[4])return 1;if(n>1&&0===e[4]&&!(128&e[5]))return 1;if(128&e[n+6])return 1;if(r>1&&0===e[n+6]&&!(128&e[n+7]))return 1;let s=e.subarray(4,4+n);if(33===s.length&&0===s[0]&&(s=s.subarray(1)),s.length>32)return 1;let a=e.subarray(6+n);if(33===a.length&&0===a[0]&&(a=a.slice(1)),a.length>32)throw new Error("S length is too long");let c=new o(s);c.cmp(i.n)>=0&&(c=new o(0));let u=new o(e.subarray(6+n));return u.cmp(i.n)>=0&&(u=new o(0)),t.set(c.toArrayLike(Uint8Array,"be",32),0),t.set(u.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(t,e,n,s,a){if(a){const t=a;a=r=>{const i=t(e,n,null,s,r);if(!(i instanceof Uint8Array&&32===i.length))throw new Error("This is the way");return new o(i)}}const c=new o(n);if(c.cmp(i.n)>=0||c.isZero())return 1;let u;try{u=r.sign(e,n,{canonical:!0,k:a,pers:s})}catch(l){return 1}return t.signature.set(u.r.toArrayLike(Uint8Array,"be",32),0),t.signature.set(u.s.toArrayLike(Uint8Array,"be",32),32),t.recid=u.recoveryParam,0},ecdsaVerify(t,e,n){const a={r:t.subarray(0,32),s:t.subarray(32,64)},c=new o(a.r),u=new o(a.s);if(c.cmp(i.n)>=0||u.cmp(i.n)>=0)return 1;if(1===u.cmp(r.nh)||c.isZero()||u.isZero())return 3;const l=s(n);if(null===l)return 2;const h=l.getPublic();return r.verify(e,a,h)?0:3},ecdsaRecover(t,e,n,s){const c={r:e.slice(0,32),s:e.slice(32,64)},u=new o(c.r),l=new o(c.s);if(u.cmp(i.n)>=0||l.cmp(i.n)>=0)return 1;if(u.isZero()||l.isZero())return 2;let h;try{h=r.recoverPubKey(s,c,n)}catch(d){return 2}return a(t,h),0},ecdh(t,e,n,a,c,u,l){const h=s(e);if(null===h)return 1;const d=new o(n);if(d.cmp(i.n)>=0||d.isZero())return 2;const f=h.getPublic().mul(d);if(void 0===c){const e=f.encode(null,!0),n=r.hash().update(e).digest();for(let r=0;r<32;++r)t[r]=n[r]}else{u||(u=new Uint8Array(32));const e=f.getX().toArray("be",32);for(let t=0;t<32;++t)u[t]=e[t];l||(l=new Uint8Array(32));const n=f.getY().toArray("be",32);for(let t=0;t<32;++t)l[t]=n[t];const r=c(u,l,a);if(!(r instanceof Uint8Array&&r.length===t.length))return 2;t.set(r)}return 0}}},59119:function(t){const e="Impossible case. Please create issue.",n="The tweak was out of range or the resulted private key is invalid",r="The tweak was out of range or equal to zero",i="Unknow error on context randomization",o="Private Key is invalid",s="Public Key could not be parsed",a="Public Key serialization error",c="The sum of the public keys is not valid",u="Signature could not be parsed",l="The nonce generation function failed, or the private key was invalid",h="Public key could not be recover",d="Scalar was invali
1d (zero or overflow)";function f(t,e){if(!t)throw new Error(e)}function p(t,e,n){if(f(e instanceof Uint8Array,`Expected ${t} to be an Uint8Array`),void 0!==n)if(Array.isArray(n)){const r=`Expected ${t} to be an Uint8Array with length [${n.join(", ")}]`;f(n.includes(e.length),r)}else{const r=`Expected ${t} to be an Uint8Array with length ${n}`;f(e.length===n,r)}}function m(t){f("Boolean"===y(t),"Expected compressed to be a Boolean")}function g(t=(t=>new Uint8Array(t)),e){return"function"===typeof t&&(t=t(e)),p("output",t,e),t}function y(t){return Object.prototype.toString.call(t).slice(8,-1)}t.exports=t=>({contextRandomize(e){if(f(null===e||e instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==e&&p("seed",e,32),1===t.contextRandomize(e))throw new Error(i)},privateKeyVerify:e=>(p("private key",e,32),0===t.privateKeyVerify(e)),privateKeyNegate(n){switch(p("private key",n,32),t.privateKeyNegate(n)){case 0:return n;case 1:throw new Error(e)}},privateKeyTweakAdd(e,r){switch(p("private key",e,32),p("tweak",r,32),t.privateKeyTweakAdd(e,r)){case 0:return e;case 1:throw new Error(n)}},privateKeyTweakMul(e,n){switch(p("private key",e,32),p("tweak",n,32),t.privateKeyTweakMul(e,n)){case 0:return e;case 1:throw new Error(r)}},publicKeyVerify:e=>(p("public key",e,[33,65]),0===t.publicKeyVerify(e)),publicKeyCreate(e,n=!0,r){switch(p("private key",e,32),m(n),r=g(r,n?33:65),t.publicKeyCreate(r,e)){case 0:return r;case 1:throw new Error(o);case 2:throw new Error(a)}},publicKeyConvert(e,n=!0,r){switch(p("public key",e,[33,65]),m(n),r=g(r,n?33:65),t.publicKeyConvert(r,e)){case 0:return r;case 1:throw new Error(s);case 2:throw new Error(a)}},publicKeyNegate(n,r=!0,i){switch(p("public key",n,[33,65]),m(r),i=g(i,r?33:65),t.publicKeyNegate(i,n)){case 0:return i;case 1:throw new Error(s);case 2:throw new Error(e);case 3:throw new Error(a)}},publicKeyCombine(e,n=!0,r){f(Array.isArray(e),"Expected public keys to be an Array"),f(e.length>0,"Expected public keys array will have more than zero items");for(const t of e)p("public key",t,[33,65]);switch(m(n),r=g(r,n?33:65),t.publicKeyCombine(r,e)){case 0:return r;case 1:throw new Error(s);case 2:throw new Error(c);case 3:throw new Error(a)}},publicKeyTweakAdd(e,r,i=!0,o){switch(p("public key",e,[33,65]),p("tweak",r,32),m(i),o=g(o,i?33:65),t.publicKeyTweakAdd(o,e,r)){case 0:return o;case 1:throw new Error(s);case 2:throw new Error(n)}},publicKeyTweakMul(e,n,i=!0,o){switch(p("public key",e,[33,65]),p("tweak",n,32),m(i),o=g(o,i?33:65),t.publicKeyTweakMul(o,e,n)){case 0:return o;case 1:throw new Error(s);case 2:throw new Error(r)}},signatureNormalize(e){switch(p("signature",e,64),t.signatureNormalize(e)){case 0:return e;case 1:throw new Error(u)}},signatureExport(n,r){p("signature",n,64);const i={output:r=g(r,72),outputlen:72};switch(t.signatureExport(i,n)){case 0:return r.slice(0,i.outputlen);case 1:throw new Error(u);case 2:throw new Error(e)}},signatureImport(n,r){switch(p("signature",n),r=g(r,64),t.signatureImport(r,n)){case 0:return r;case 1:throw new Error(u);case 2:throw new Error(e)}},ecdsaSign(n,r,i={},o){p("message",n,32),p("private key",r,32),f("Object"===y(i),"Expected options to be an Object"),void 0!==i.data&&p("options.data",i.data),void 0!==i.noncefn&&f("Function"===y(i.noncefn),"Expected options.noncefn to be a Function");const s={signature:o=g(o,64),recid:null};switch(t.ecdsaSign(s,n,r,i.data,i.noncefn)){case 0:return s;case 1:throw new Error(l);case 2:throw new Error(e)}},ecdsaVerify(e,n,r){switch(p("signature",e,64),p("message",n,32),p("public key",r,[33,65]),t.ecdsaVerify(e,n,r)){case 0:return!0;case 3:return!1;case 1:throw new Error(u);case 2:throw new Error(s)}},ecdsaRecover(n,r,i,o=!0,s){switch(p("signature",n,64),f("Number"===y(r)&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),p("message",i,32),m(o),s=g(s,o?33:65),t.ecdsaRecover(s,n,r,i)){case 0:return s;case 1:throw new Error(u);case 2:throw new Error(h);case 3:throw new Error(e)}},ecdh(e,n,r={},i){switch(p("public key",e,[33,65]),p("private key",n,32),f("Object"===y(r),"Expected options to be an Object"),void 0!==r.data&&p("options.data",r.data),void 0!==r.hashfn?(f("Function"===y(r.hashfn),"Expected options.hashfn to be a Function"),void 0!==r.xbuf&&p("options.xbuf",r.xbuf,32),void 0!==r.ybuf&&p("options.ybuf",r.ybuf,32),p("output",i)):i=g(i,32),t.ecdh(i,e,n,r.data,r.hashfn,r.xbuf,r.ybuf)){case 0:return i;case 1:throw new Error(s);case 2:throw new Error(d)}}})},37478:function(t,e,n){"use strict";
1var r=n(40210),i=n(21924),o=n(70631),s=r("%TypeError%"),a=r("%WeakMap%",!0),c=r("%Map%",!0),u=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),h=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),f=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),m=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new s("Side channel does not contain "+o(t))},get:function(r){if(a&&r&&("object"===typeof r||"function"===typeof r)){if(t)return u(t,r)}else if(c){if(e)return d(e,r)}else if(n)return function(t,e){var n=m(t,e);return n&&n.value}(n,r)},has:function(r){if(a&&r&&("object"===typeof r||"function"===typeof r)){if(t)return h(t,r)}else if(c){if(e)return p(e,r)}else if(n)return function(t,e){return!!m(t,e)}(n,r);return!1},set:function(r,i){a&&r&&("object"===typeof r||"function"===typeof r)?(t||(t=new a),l(t,r,i)):c?(e||(e=new c),f(e,r,i)):(n||(n={key:{},next:null}),function(t,e,n){var r=m(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}}(n,r,i))}};return r}},50780:function(t,e,n){!function(t){"use strict";var e=function(t){var e,n=new Float64Array(16);if(t)for(e=0;e<t.length;e++)n[e]=t[e];return n},r=function(){throw new Error("no PRNG")},i=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var s=e(),a=e([1]),c=e([56129,1]),u=e([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),l=e([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),h=e([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=e([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),f=e([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(t,e,n,r){t[e]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n,t[e+4]=r>>24&255,t[e+5]=r>>16&255,t[e+6]=r>>8&255,t[e+7]=255&r}function m(t,e,n,r,i){var o,s=0;for(o=0;o<i;o++)s|=t[e+o]^n[r+o];return(1&s-1>>>8)-1}function g(t,e,n,r){return m(t,e,n,r,16)}function y(t,e,n,r){return m(t,e,n,r,32)}function b(t,e,n,r){!function(t,e,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,u=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,l=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,h=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,d=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,f=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,v=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,_=o,k=s,S=a,x=c,I=u,A=l,E=h,T=d,P=f,C=p,M=m,O=g,R=y,B=b,j=v,N=w,L=0;L<20;L+=2)_^=(i=(R^=(i=(P^=(i=(I^=(i=_+R|0)<<7|i>>>25)+_|0)<<9|i>>>23)+I|0)<<13|i>>>19)+P|0)<<18|i>>>14,A^=(i=(k^=(i=(B^=(i=(C^=(i=A+k|0)<<7|i>>>25)+A|0)<<9|i>>>23)+C|0)<<13|i>>>19)+B|0)<<18|i>>>14,M^=(i=(E^=(i=(S^=(i=(j^=(i=M+E|0)<<7|i>>>25)+M|0)<<9|i>>>23)+j|0)<<13|i>>>19)+S|0)<<18|i>>>14,N^=(i=(O^=(i=(T^=(i=(x^=(i=N+O|0)<<7|i>>>25)+N|0)<<9|i>>>23)+x|0)<<13|i>>>19)+T|0)<<18|i>>>14,_^=(i=(x^=(i=(S^=(i=(k^=(i=_+x|0)<<7|i>>>25)+_|0)<<9|i>>>23)+k|0)<<13|i>>>19)+S|0)<<18|i>>>14,A^=(i=(I^=(i=(T^=(i=(E^=(i=A+I|0)<<7|i>>>25)+A|0)<<9|i>>>23)+E|0)<<13|i>>>19)+T|0)<<18|i>>>14,M^=(i=(C^=(i=(P^=(i=(O^=(i=M+C|0)<<7|i>>>25)+M|0)<<9|i>>>23)+O|0)<<13|i>>>19)+P|0)<<18|i>>>14,N^=(i=(j^=(i=(B^=(i=(R^=(i=N+j|0)<<7|i>>>25)+N|0)<<9|i>>>23)+R|0)<<13|i>>>19)+B|0)<<18|i>>>14;_=_+o|0,k=k+s|0,S=S+a|0,x=x+c|0,I=I+u|0,A=A+l|0,E=E+h|0,T=T+d|0,P=P+f|0,C=C+p|0,M=M+m|0,O=O+g|0,R=R+y|0,B=B+b|0,j=j+v|0,N=N+w|0,t[0]=_>>>0&255,t[1]=_>>>8&255,t[2]=_>>>16&255,t[3]=_>>>24&255,t[4]=k>>>0&255,t[5]=k>>>8&255,t[6]=k>>>16&255,t[7]=k>>>24&255,t[8]=S>>>0&255,t[9]=S>>>8&255,t[10]=S>>>16&255,t[11]=S>>>24&255,t[12]=x>>>0&255,t[13]=x>>>8&255,t[14]=x>>>16&255,t[15]=x>>>24&255,t[16]=I>>>0&255,t[17]=I>>>8&255,t[18]=I>>>16&255,t[19]=I>>>24&255,t[20]=A>>>0&255,t[21]=A>>>8&255,t[22]=A>>>16&255,t[23]=A>>>24&255,t[24]=E>
vendor: 14,259 bytes, line 1
1>>0&255,t[25]=E>>>8&255,t[26]=E>>>16&255,t[27]=E>>>24&255,t[28]=T>>>0&255,t[29]=T>>>8&255,t[30]=T>>>16&255,t[31]=T>>>24&255,t[32]=P>>>0&255,t[33]=P>>>8&255,t[34]=P>>>16&255,t[35]=P>>>24&255,t[36]=C>>>0&255,t[37]=C>>>8&255,t[38]=C>>>16&255,t[39]=C>>>24&255,t[40]=M>>>0&255,t[41]=M>>>8&255,t[42]=M>>>16&255,t[43]=M>>>24&255,t[44]=O>>>0&255,t[45]=O>>>8&255,t[46]=O>>>16&255,t[47]=O>>>24&255,t[48]=R>>>0&255,t[49]=R>>>8&255,t[50]=R>>>16&255,t[51]=R>>>24&255,t[52]=B>>>0&255,t[53]=B>>>8&255,t[54]=B>>>16&255,t[55]=B>>>24&255,t[56]=j>>>0&255,t[57]=j>>>8&255,t[58]=j>>>16&255,t[59]=j>>>24&255,t[60]=N>>>0&255,t[61]=N>>>8&255,t[62]=N>>>16&255,t[63]=N>>>24&255}(t,e,n,r)}function v(t,e,n,r){!function(t,e,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,u=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,l=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,h=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,d=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,f=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,v=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,_=0;_<20;_+=2)o^=(i=(y^=(i=(f^=(i=(u^=(i=o+y|0)<<7|i>>>25)+o|0)<<9|i>>>23)+u|0)<<13|i>>>19)+f|0)<<18|i>>>14,l^=(i=(s^=(i=(b^=(i=(p^=(i=l+s|0)<<7|i>>>25)+l|0)<<9|i>>>23)+p|0)<<13|i>>>19)+b|0)<<18|i>>>14,m^=(i=(h^=(i=(a^=(i=(v^=(i=m+h|0)<<7|i>>>25)+m|0)<<9|i>>>23)+v|0)<<13|i>>>19)+a|0)<<18|i>>>14,w^=(i=(g^=(i=(d^=(i=(c^=(i=w+g|0)<<7|i>>>25)+w|0)<<9|i>>>23)+c|0)<<13|i>>>19)+d|0)<<18|i>>>14,o^=(i=(c^=(i=(a^=(i=(s^=(i=o+c|0)<<7|i>>>25)+o|0)<<9|i>>>23)+s|0)<<13|i>>>19)+a|0)<<18|i>>>14,l^=(i=(u^=(i=(d^=(i=(h^=(i=l+u|0)<<7|i>>>25)+l|0)<<9|i>>>23)+h|0)<<13|i>>>19)+d|0)<<18|i>>>14,m^=(i=(p^=(i=(f^=(i=(g^=(i=m+p|0)<<7|i>>>25)+m|0)<<9|i>>>23)+g|0)<<13|i>>>19)+f|0)<<18|i>>>14,w^=(i=(v^=(i=(b^=(i=(y^=(i=w+v|0)<<7|i>>>25)+w|0)<<9|i>>>23)+y|0)<<13|i>>>19)+b|0)<<18|i>>>14;t[0]=o>>>0&255,t[1]=o>>>8&255,t[2]=o>>>16&255,t[3]=o>>>24&255,t[4]=l>>>0&255,t[5]=l>>>8&255,t[6]=l>>>16&255,t[7]=l>>>24&255,t[8]=m>>>0&255,t[9]=m>>>8&255,t[10]=m>>>16&255,t[11]=m>>>24&255,t[12]=w>>>0&255,t[13]=w>>>8&255,t[14]=w>>>16&255,t[15]=w>>>24&255,t[16]=h>>>0&255,t[17]=h>>>8&255,t[18]=h>>>16&255,t[19]=h>>>24&255,t[20]=d>>>0&255,t[21]=d>>>8&255,t[22]=d>>>16&255,t[23]=d>>>24&255,t[24]=f>>>0&255,t[25]=f>>>8&255,t[26]=f>>>16&255,t[27]=f>>>24&255,t[28]=p>>>0&255,t[29]=p>>>8&255,t[30]=p>>>16&255,t[31]=p>>>24&255}(t,e,n,r)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function _(t,e,n,r,i,o,s){var a,c,u=new Uint8Array(16),l=new Uint8Array(64);for(c=0;c<16;c++)u[c]=0;for(c=0;c<8;c++)u[c]=o[c];for(;i>=64;){for(b(l,u,s,w),c=0;c<64;c++)t[e+c]=n[r+c]^l[c];for(a=1,c=8;c<16;c++)a=a+(255&u[c])|0,u[c]=255&a,a>>>=8;i-=64,e+=64,r+=64}if(i>0)for(b(l,u,s,w),c=0;c<i;c++)t[e+c]=n[r+c]^l[c];return 0}function k(t,e,n,r,i){var o,s,a=new Uint8Array(16),c=new Uint8Array(64);for(s=0;s<16;s++)a[s]=0;for(s=0;s<8;s++)a[s]=r[s];for(;n>=64;){for(b(c,a,i,w),s=0;s<64;s++)t[e+s]=c[s];for(o=1,s=8;s<16;s++)o=o+(255&a[s])|0,a[s]=255&o,o>>>=8;n-=64,e+=64}if(n>0)for(b(c,a,i,w),s=0;s<n;s++)t[e+s]=c[s];return 0}function S(t,e,n,r,i){var o=new Uint8Array(32);v(o,r,i,w);for(var s=new Uint8Array(8),a=0;a<8;a++)s[a]=r[a+16];return k(t,e,n,s,o)}function x(t,e,n,r,i,o,s){var a=new Uint8Array(32);v(a,o,s,w);for(var c=new Uint8Array(8),u=0;u<8;u++)c[u]=o[u+16];return _(t,e,n,r,i,c,a)}var I=function(t){var e,n,r,i,o,s,a,c;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,e=255&t[0]|(255&t[1])<<8,this.r[0]=8191&e,n=255&t[2]|(255&t[3])<<8,this.r[1]=8191&(e>>>13|n<<3),r=255&t[4]|(255&t[5])<<8,this.r[2]=7939&(n>>>10|r<<6),i=255&t[6]|(255&t[7])<<8,this.r[3]=8191&(r>>>7|i<<9),o=255&t[8]|(255&t[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,s=255&t[10]|(255&t[11])<<8,this.r[6]=8191&(o>>>14|s<<2),a=255&t[12]|(255&t[13])<<8,this.r[7]=8065&(s>>>11|a<<5),c=255&t[14]|(255&t[15])<<8,this.r[8]=8191&(a>>>8|c<<8),this.r[9]=c>>>5&127,this.pad[0]=255&t[16]|(255&t[17])<<8,this.pad[1]=255&t[18]|(255&t[19])<<8,this.pad[2]=255&t[20]|(255&t[21])<<8,this.pad[3]=255&t[22]|(255&t[23])<<8,this.pad[4]=255&t[24]|(255&t[25])<<8,this.pad[5]=255&t[26]|(255&t[27])<<8,this.pad[6]=255&t[28]|(255&t[29])<<8,this.pad[7]=255&t[30]|(255&t[31])<<8};function A(t,e,n,r,i,o){var s=new I(o);return s.update(n,r,i),s.finish(t,e),0}function E(t,e,n,r,i,o){var s=new Uint8Array(16);return A(s,0,n,r,i,o),g(t,e,s,0)}function T(t,e,n,r,i){var o;if(n<32)return-1;for(x(t,0,e,0,n,r,i),A(t,16,t,32,n-32,t),o=0;o<16;o++)t[o]=0;return 0}function P(t,e,n,r,i){var o,s=new Uint8Array(32);if(n<32)return-1;if(S(s,0,32,r,i),0!==E(e,16,e,32,n-32,s))return-1;for(x(t,0,e,0,n,r,i),o=0;o<32;o++)t[o]=0;return 0}function C(t,e){var n;for(n=0;n<16;n++)t[n]=0|e[n]}function M(t){var e,n,r=1;for(e=0;e<16;e++)n=t[e]+r+65535,r=Math.floor(n/65536),t[e]=n-65536*r;t[0]+=r-1+37*(r-1)}function O(t,e,n){for(var r,i=~(n-1),o=0;o<16;o++)r=i&(t[o]^e[o]),t[o]^=r,e[o]^=r}function R(t,n){var r,i,o,s=e(),a=e();for(r=0;r<16;r++)a[r]=n[r];for(M(a),M(a),M(a),i=0;i<2;i++){for(s[0]=a[0]-65517,r=1;r<15;r++)s[r]=a[r]-65535-(s[r-1]>>16&1),s[r-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),o=s[15]>>16&1,s[14]&=65535,O(a,s,1-o)}for(r=0;r<16;r++)t[2*r]=255&a[r],t[2*r+1]=a[r]>>8}function B(t,e){var n=new Uint8Array(32),r=new Uint8Array(32);return R(n,t),R(r,e),y(n,0,r,0)}function j(t){var e=new Uint8Array(32);return R(e,t),1&e[0]}function N(t,e){var n;for(n=0;n<16;n++)t[n]=e[2*n]+(e[2*n+1]<<8);t[15]&=32767}function L(t,e,n){for(var r=0;r<16;r++)t[r]=e[r]+n[r]}function D(t,e,n){for(var r=0;r<16;r++)t[r]=e[r]-n[r]}function z(t,e,n){var r,i,o=0,s=0,a=0,c=0,u=0,l=0,h=0,d=0,f=0,p=0,m=0,g=0,y=0,b=0,v=0,w=0,_=0,k=0,S=0,x=0,I=0,A=0,E=0,T=0,P=0,C=0,M=0,O=0,R=0,B=0,j=0,N=n[0],L=n[1],D=n[2],z=n[3],F=n[4],U=n[5],W=n[6],G=n[7],V=n[8],K=n[9],H=n[10],q=n[11],$=n[12],Z=n[13],Y=n[14],X=n[15];o+=(r=e[0])*N,s+=r*L,a+=r*D,c+=r*z,u+=r*F,l+=r*U,h+=r*W,d+=r*G,f+=r*V,p+=r*K,m+=r*H,g+=r*q,y+=r*$,b+=r*Z,v+=r*Y,w+=r*X,s+=(r=e[1])*N,a+=r*L,c+=r*D,u+=r*z,l+=r*F,h+=r*U,d+=r*W,f+=r*G,p+=r*V,m+=r*K,g+=r*H,y+=r*q,b+=r*$,v+=r*Z,w+=r*Y,_+=r*X,a+=(r=e[2])*N,c+=r*L,u+=r*D,l+=r*z,h+=r*F,d+=r*U,f+=r*W,p+=r*G,m+=r*V,g+=r*K,y+=r*H,b+=r*q,v+=r*$,w+=r*Z,_+=r*Y,k+=r*X,c+=(r=e[3])*N,u+=r*L,l+=r*D,h+=r*z,d+=r*F,f+=r*U,p+=r*W,m+=r*G,g+=r*V,y+=r*K,b+=r*H,v+=r*q,w+=r*$,_+=r*Z,k+=r*Y,S+=r*X,u+=(r=e[4])*N,l+=r*L,h+=r*D,d+=r*z,f+=r*F,p+=r*U,m+=r*W,g+=r*G,y+=r*V,b+=r*K,v+=r*H,w+=r*q,_+=r*$,k+=r*Z,S+=r*Y,x+=r*X,l+=(r=e[5])*N,h+=r*L,d+=r*D,f+=r*z,p+=r*F,m+=r*U,g+=r*W,y+=r*G,b+=r*V,v+=r*K,w+=r*H,_+=r*q,k+=r*$,S+=r*Z,x+=r*Y,I+=r*X,h+=(r=e[6])*N,d+=r*L,f+=r*D,p+=r*z,m+=r*F,g+=r*U,y+=r*W,b+=r*G,v+=r*V,w+=r*K,_+=r*H,k+=r*q,S+=r*$,x+=r*Z,I+=r*Y,A+=r*X,d+=(r=e[7])*N,f+=r*L,p+=r*D,m+=r*z,g+=r*F,y+=r*U,b+=r*W,v+=r*G,w+=r*V,_+=r*K,k+=r*H,S+=r*q,x+=r*$,I+=r*Z,A+=r*Y,E+=r*X,f+=(r=e[8])*N,p+=r*L,m+=r*D,g+=r*z,y+=r*F,b+=r*U,v+=r*W,w+=r*G,_+=r*V,k+=r*K,S+=r*H,x+=r*q,I+=r*$,A+=r*Z,E+=r*Y,T+=r*X,p+=(r=e[9])*N,m+=r*L,g+=r*D,y+=r*z,b+=r*F,v+=r*U,w+=r*W,_+=r*G,k+=r*V,S+=r*K,x+=r*H,I+=r*q,A+=r*$,E+=r*Z,T+=r*Y,P+=r*X,m+=(r=e[10])*N,g+=r*L,y+=r*D,b+=r*z,v+=r*F,w+=r*U,_+=r*W,k+=r*G,S+=r*V,x+=r*K,I+=r*H,A+=r*q,E+=r*$,T+=r*Z,P+=r*Y,C+=r*X,g+=(r=e[11])*N,y+=r*L,b+=r*D,v+=r*z,w+=r*F,_+=r*U,k+=r*W,S+=r*G,x+=r*V,I+=r*K,A+=r*H,E+=r*q,T+=r*$,P+=r*Z,C+=r*Y,M+=r*X,y+=(r=e[12])*N,b+=r*L,v+=r*D,w+=r*z,_+=r*F,k+=r*U,S+=r*W,x+=r*G,I+=r*V,A+=r*K,E+=r*H,T+=r*q,P+=r*$,C+=r*Z,M+=r*Y,O+=r*X,b+=(r=e[13])*N,v+=r*L,w+=r*D,_+=r*z,k+=r*F,S+=r*U,x+=r*W,I+=r*G,A+=r*V,E+=r*K,T+=r*H,P+=r*q,C+=r*$,M+=r*Z,O+=r*Y,R+=r*X,v+=(r=e[14])*N,w+=r*L,_+=r*D,k+=r*z,S+=r*F,x+=r*U,I+=r*W,A+=r*G,E+=r*V,T+=r*K,P+=r*H,C+=r*q,M+=r*$,O+=r*Z,R+=r*Y,B+=r*X,w+=(r=e[15])*N,s+=38*(k+=r*D),a+=38*(S+=r*z),c+=38*(x+=r*F),u+=38*(I+=r*U),l+=38*(A+=r*W),h+=38*(E+=r*G),d+=38*(T+=r*V),f+=38*(P+=r*K),p+=38*(C+=r*H),m+=38*(M+=r*q),g+=38*(O+=r*$),y+=38*(R+=r*Z),b+=38*(B+=r*Y),v+=38*(j+=r*X),o=(r=(o+=38*(_+=r*L))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),w=(r=w+i+65535)-65536*(i=Math.floor(r/65536)),o=(r=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),w=(r=w+i+65535)-65536*(i=Math.floor(r/65536)),o+=i-1+37*(i-1),t[0]=o,t[1]=s,t[2]=a,t[3]=c,t[4]=u,t[5]=l,t[6]=h,t[7]=d,t[8]=f,t[9]=p,t[10]=m,t[11]=g,t[12]=y,t[13]=b,t[14]=v,t[15]=w}function F(t,e){z(t,e,e)}function U(t,n){var r,i=e();for(r=0;r<16;r++)i[r]=n[r];for(r=253;r>=0;r--)F(i,i),2!==r&&4!==r&&z(i,i,n);for(r=0;r<16;r++)t[r]=i[r]}function W(t,n){var r,i=e();for(r=0;r<16;r++)i[r]=n[r];for(r=250;r>=0;r--)F(i,i),1!==r&&z(i,i,n);for(r=0;r<16;r++)t[r]=i[r]}function G(t,n,r){var i,o,s=new Uint8Array(32),a=new Float64Array(80),u=e(),l=e(),h=e(),d=e(),f=e(),p=e();for(o=0;o<31;o++)s[o]=n[o];for(s[31]=127&n[31]|64,s[0]&=248,N(a,r),o=0;o<16;o++)l[o]=a[o],d[o]=u[o]=h[o]=0;for(u[0]=d[0]=1,o=254;o>=0;--o)O(u,l,i=s[o>>>3]>>>(7&o)&1),O(h,d,i),L(f,u,h),D(u,u,h),L(h,l,d),D(l,l,d),F(d,f),F(p,u),z(u,h,u),z(h,l,f),L(f,u,h),D(u,u,h),F(l,u),D(h,d,p),z(u,h,c),L(u,u,d),z(h,h,u),z(u,d,p),z(d,l,a),F(l,f),O(u,l,i),O(h,d,i);for(o=0;o<16;o++)a[o+16]=u[o],a[o+32]=h[o],a[o+48]=l[o],a[o+64]=d[o];var m=a.subarray(32),g=a.subarray(16);return U(m,m),z(g,g,m),R(t,g),0}function V(t,e){return G(t,e,o)}function K(t,e){return r(e,32),V(t,e)}function H(t,e,n){var r=new Uint8Array(32);return G(r,n,e),v(t,i,r,w)}I.prototype.blocks=function(t,e,n){for(var r,i,o,s,a,c,u,l,h,d,f,p,m,g,y,b,v,w,_,k=this.fin?0:2048,S=this.h[0],x=this.h[1],I=this.h[2],A=this.h[3],E=this.h[4],T=this.h[5],P=this.h[6],C=this.h[7],M=this.h[8],O=this.h[9],R=this.r[0],B=this.r[1],j=this.r[2],N=this.r[3],L=this.r[4],D=this.r[5],z=this.r[6],F=this.r[7],U=this.r[8],W=this.r[9];n>=16;)d=h=0,d+=(S+=8191&(r=255&t[e+0]|(255&t[e+1])<<8))*R,d+=(x+=8191&(r>>>13|(i=255&t[e+2]|(255&t[e+3])<<8)<<3))*(5*W),d+=(I+=8191&(i>>>10|(o=255&t[e+4]|(255&t[e+5])<<8)<<6))*(5*U),d+=(A+=8191&(o>>>7|(s=255&t[e+6]|(255&t[e+7])<<8)<<9))*(5*F),h=(d+=(E+=8191&(s>>>4|(a=255&t[e+8]|(255&t[e+9])<<8)<<12))*(5*z))>>>13,d&=8191,d+=(T+=a>>>1&8191)*(5*D),d+=(P+=8191&(a>>>14|(c=255&t[e+10]|(255&t[e+11])<<8)<<2))*(5*L),d+=(C+=8191&(c>>>11|(u=255&t[e+12]|(255&t[e+13])<<8)<<5))*(5*N),d+=(M+=8191&(u>>>8|(l=255&t[e+14]|(255&t[e+15])<<8)<<8))*(5*j),f=h+=(d+=(O+=l>>>5|k)*(5*B))>>>13,f+=S*B,f+=x*R,f+=I*(5*W),f+=A*(5*U),h=(f+=E*(5*F))>>>13,f&=8191,f+=T*(5*z),f+=P*(5*D),f+=C*(5*L),f+=M*(5*N),h+=(f+=O*(5*j))>>>13,f&=8191,p=h,p+=S*j,p+=x*B,p+=I*R,p+=A*(5*W),h=(p+=E*(5*U))>>>13,p&=8191,p+=T*(5*F),p+=P*(5*z),p+=C*(5*D),p+=M*(5*L),m=h+=(p+=O*(5*N))>>>13,m+=S*N,m+=x*j,m+=I*B,m+=A*R,h=(m+=E*(5*W))>>>13,m&=8191,m+=T*(5*U),m+=P*(5*F),m+=C*(5*z),m+=M*(5*D),g=h+=(m+=O*(5*L))>>>13,g+=S*L,g+=x*N,g+=I*j,g+=A*B,h=(g+=E*R)>>>13,g&=8191,g+=T*(5*W),g+=P*(5*U),g+=C*(5*F),g+=M*(5*z),y=h+=(g+=O*(5*D))>>>13,y+=S*D,y+=x*L,y+=I*N,y+=A*j,h=(y+=E*B)>>>13,y&=8191,y+=T*R,y+=P*(5*W),y+=C*(5*U),y+=M*(5*F),b=h+=(y+=O*(5*z))>>>13,b+=S*z,b+=x*D,b+=I*L,b+=A*N,h=(b+=E*j)>>>13,b&=8191,b+=T*B,b+=P*R,b+=C*(5*W),b+=M*(5*U),v=h+=(b+=O*(5*F))>>>13,v+=S*F,v+=x*z,v+=I*D,v+=A*L,h=(v+=E*N)>>>13,v&=8191,v+=T*j,v+=P*B,v+=C*R,v+=M*(5*W),w=h+=(v+=O*(5*U))>>>13,w+=S*U,w+=x*F,w+=I*z,w+=A*D,h=(w+=E*L)>>>13,w&=8191,w+=T*N,w+=P*j,w+=C*B,w+=M*R,_=h+=(w+=O*(5*W))>>>13,_+=S*W,_+=x*U,_+=I*F,_+=A*z,h=(_+=E*D)>>>13,_&=8191,_+=T*L,_+=P*N,_+=C*j,_+=M*B,S=d=8191&(h=(h=((h+=(_+=O*R)>>>13)<<2)+h|0)+(d&=8191)|0),x=f+=h>>>=13,I=p&=8191,A=m&=8191,E=g&=8191,T=y&=8191,P=b&=8191,C=v&=8191,M=w&=8191,O=_&=8191,e+=16,n-=16;this.h[0]=S,this.h[1]=x,this.h[2]=I,this.h[3]=A,this.h[4]=E,this.h[5]=T,this.h[6]=P,this.h[7]=C,this.h[8]=M,this.h[9]=O},I.prototype.finish=function(t,e){var n,r,i,o,s=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=n,n=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,s[0]=this.h[0]+5,n=s[0]>>>13,s[0]&=8191,o=1;o<10;o++)s[o]=this.h[o]+n,n=s[o]>>>13,s[o]&=8191;for(s[9]-=8192,r=(1^n)-1,o=0;o<10;o++)s[o]&=r;for(r=~r,o=0;o<10;o++)this.h[o]=this.h[o]&r|s[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>
vendor: 14,655 bytes, line 1
1>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;t[e+0]=this.h[0]>>>0&255,t[e+1]=this.h[0]>>>8&255,t[e+2]=this.h[1]>>>0&255,t[e+3]=this.h[1]>>>8&255,t[e+4]=this.h[2]>>>0&255,t[e+5]=this.h[2]>>>8&255,t[e+6]=this.h[3]>>>0&255,t[e+7]=this.h[3]>>>8&255,t[e+8]=this.h[4]>>>0&255,t[e+9]=this.h[4]>>>8&255,t[e+10]=this.h[5]>>>0&255,t[e+11]=this.h[5]>>>8&255,t[e+12]=this.h[6]>>>0&255,t[e+13]=this.h[6]>>>8&255,t[e+14]=this.h[7]>>>0&255,t[e+15]=this.h[7]>>>8&255},I.prototype.update=function(t,e,n){var r,i;if(this.leftover){for((i=16-this.leftover)>n&&(i=n),r=0;r<i;r++)this.buffer[this.leftover+r]=t[e+r];if(n-=i,e+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(i=n-n%16,this.blocks(t,e,i),e+=i,n-=i),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=t[e+r];this.leftover+=n}};var q=T,$=P;var Z=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Y(t,e,n,r){for(var i,o,s,a,c,u,l,h,d,f,p,m,g,y,b,v,w,_,k,S,x,I,A,E,T,P,C=new Int32Array(16),M=new Int32Array(16),O=t[0],R=t[1],B=t[2],j=t[3],N=t[4],L=t[5],D=t[6],z=t[7],F=e[0],U=e[1],W=e[2],G=e[3],V=e[4],K=e[5],H=e[6],q=e[7],$=0;r>=128;){for(k=0;k<16;k++)S=8*k+$,C[k]=n[S+0]<<24|n[S+1]<<16|n[S+2]<<8|n[S+3],M[k]=n[S+4]<<24|n[S+5]<<16|n[S+6]<<8|n[S+7];for(k=0;k<80;k++)if(i=O,o=R,s=B,a=j,c=N,u=L,l=D,z,d=F,f=U,p=W,m=G,g=V,y=K,b=H,q,A=65535&(I=q),E=I>>>16,T=65535&(x=z),P=x>>>16,A+=65535&(I=(V>>>14|N<<18)^(V>>>18|N<<14)^(N>>>9|V<<23)),E+=I>>>16,T+=65535&(x=(N>>>14|V<<18)^(N>>>18|V<<14)^(V>>>9|N<<23)),P+=x>>>16,A+=65535&(I=V&K^~V&H),E+=I>>>16,T+=65535&(x=N&L^~N&D),P+=x>>>16,A+=65535&(I=Z[2*k+1]),E+=I>>>16,T+=65535&(x=Z[2*k]),P+=x>>>16,x=C[k%16],E+=(I=M[k%16])>>>16,T+=65535&x,P+=x>>>16,T+=(E+=(A+=65535&I)>>>16)>>>16,A=65535&(I=_=65535&A|E<<16),E=I>>>16,T=65535&(x=w=65535&T|(P+=T>>>16)<<16),P=x>>>16,A+=65535&(I=(F>>>28|O<<4)^(O>>>2|F<<30)^(O>>>7|F<<25)),E+=I>>>16,T+=65535&(x=(O>>>28|F<<4)^(F>>>2|O<<30)^(F>>>7|O<<25)),P+=x>>>16,E+=(I=F&U^F&W^U&W)>>>16,T+=65535&(x=O&R^O&B^R&B),P+=x>>>16,h=65535&(T+=(E+=(A+=65535&I)>>>16)>>>16)|(P+=T>>>16)<<16,v=65535&A|E<<16,A=65535&(I=m),E=I>>>16,T=65535&(x=a),P=x>>>16,E+=(I=_)>>>16,T+=65535&(x=w),P+=x>>>16,R=i,B=o,j=s,N=a=65535&(T+=(E+=(A+=65535&I)>>>16)>>>16)|(P+=T>>>16)<<16,L=c,D=u,z=l,O=h,U=d,W=f,G=p,V=m=65535&A|E<<16,K=g,H=y,q=b,F=v,k%16===15)for(S=0;S<16;S++)x=C[S],A=65535&(I=M[S]),E=I>>>16,T=65535&x,P=x>>>16,x=C[(S+9)%16],A+=65535&(I=M[(S+9)%16]),E+=I>>>16,T+=65535&x,P+=x>>>16,w=C[(S+1)%16],A+=65535&(I=((_=M[(S+1)%16])>>>1|w<<31)^(_>>>8|w<<24)^(_>>>7|w<<25)),E+=I>>>16,T+=65535&(x=(w>>>1|_<<31)^(w>>>8|_<<24)^w>>>7),P+=x>>>16,w=C[(S+14)%16],E+=(I=((_=M[(S+14)%16])>>>19|w<<13)^(w>>>29|_<<3)^(_>>>6|w<<26))>>>16,T+=65535&(x=(w>>>19|_<<13)^(_>>>29|w<<3)^w>>>6),P+=x>>>16,P+=(T+=(E+=(A+=65535&I)>>>16)>>>16)>>>16,C[S]=65535&T|P<<16,M[S]=65535&A|E<<16;A=65535&(I=F),E=I>>>16,T=65535&(x=O),P=x>>>16,x=t[0],E+=(I=e[0])>>>16,T+=65535&x,P+=x>>>16,P+=(T+=(E+=(A+=65535&I)>>>16)>>>16)>>>16,t[0]=O=65535&T|P<<16,e[0]=F=65535&A|E<<16,A=65535&(I=U),E=I>>>16,T=65535&(x=R),P=x>>>16,x=t[1],E+=(I=e[1])>>>16,T+=65535&x,P+=x>>>16,P+=(T+=(E+=(A+=65535&I)>>>16)>>>16)>>>16,t[1]=R=65535&T|P<<16,e[1]=U=65535&A|E<<16,A=65535&(I=W),E=I>>>16,T=65535&(x=B),P=x>>>16,x=t[2],E+=(I=e[2])>>>16,T+=65535&x,P+=x>>>16,P+=(T+=(E+=(A+=65535&I)>>>16)>>>16)>>>16,t[2]=B=65535&T|P<<16,e[2]=W=65535&A|E<<16,A=65535&(I=G),E=I>>>16,T=65535&(x=j),P=x>>>16,x=t[3],E+=(I=e[3])>>>16,T+=65535&x,P+=x>>>16,P+=(T+=(E+=(A+=65535&I)>>>16)>>>16)>>>16,t[3]=j=65535&T|P<<16,e[3]=G=65535&A|E<<16,A=65535&(I=V),E=I>>>16,T=65535&(x=N),P=x>>>16,x=t[4],E+=(I=e[4])>>>16,T+=65535&x,P+=x>>>16,P+=(T+=(E+=(A+=65535&I)>>>16)>>>16)>>>16,t[4]=N=65535&T|P<<16,e[4]=V=65535&A|E<<16,A=65535&(I=K),E=I>>>16,T=65535&(x=L),P=x>>>16,x=t[5],E+=(I=e[5])>>>16,T+=65535&x,P+=x>>>16,P+=(T+=(E+=(A+=65535&I)>>>16)>>>16)>>>16,t[5]=L=65535&T|P<<16,e[5]=K=65535&A|E<<16,A=65535&(I=H),E=I>>>16,T=65535&(x=D),P=x>>>16,x=t[6],E+=(I=e[6])>>>16,T+=65535&x,P+=x>>>16,P+=(T+=(E+=(A+=65535&I)>>>16)>>>16)>>>16,t[6]=D=65535&T|P<<16,e[6]=H=65535&A|E<<16,A=65535&(I=q),E=I>>>16,T=65535&(x=z),P=x>>>16,x=t[7],E+=(I=e[7])>>>16,T+=65535&x,P+=x>>>16,P+=(T+=(E+=(A+=65535&I)>>>16)>>>16)>>>16,t[7]=z=65535&T|P<<16,e[7]=q=65535&A|E<<16,$+=128,r-=128}return r}function X(t,e,n){var r,i=new Int32Array(8),o=new Int32Array(8),s=new Uint8Array(256),a=n;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,Y(i,o,e,n),n%=128,r=0;r<n;r++)s[r]=e[a-n+r];for(s[n]=128,s[(n=256-128*(n<112?1:0))-9]=0,p(s,n-8,a/536870912|0,a<<3),Y(i,o,s,n),r=0;r<8;r++)p(t,8*r,i[r],o[r]);return 0}function J(t,n){var r=e(),i=e(),o=e(),s=e(),a=e(),c=e(),u=e(),h=e(),d=e();D(r,t[1],t[0]),D(d,n[1],n[0]),z(r,r,d),L(i,t[0],t[1]),L(d,n[0],n[1]),z(i,i,d),z(o,t[3],n[3]),z(o,o,l),z(s,t[2],n[2]),L(s,s,s),D(a,i,r),D(c,s,o),L(u,s,o),L(h,i,r),z(t[0],a,c),z(t[1],h,u),z(t[2],u,c),z(t[3],a,h)}function Q(t,e,n){var r;for(r=0;r<4;r++)O(t[r],e[r],n)}function tt(t,n){var r=e(),i=e(),o=e();U(o,n[2]),z(r,n[0],o),z(i,n[1],o),R(t,i),t[31]^=j(r)<<7}function et(t,e,n){var r,i;for(C(t[0],s),C(t[1],a),C(t[2],a),C(t[3],s),i=255;i>=0;--i)Q(t,e,r=n[i/8|0]>>(7&i)&1),J(e,t),J(t,t),Q(t,e,r)}function nt(t,n){var r=[e(),e(),e(),e()];C(r[0],h),C(r[1],d),C(r[2],a),z(r[3],h,d),et(t,r,n)}function rt(t,n,i){var o,s=new Uint8Array(64),a=[e(),e(),e(),e()];for(i||r(n,32),X(s,n,32),s[0]&=248,s[31]&=127,s[31]|=64,nt(a,s),tt(t,a),o=0;o<32;o++)n[o+32]=t[o];return 0}var it=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ot(t,e){var n,r,i,o;for(r=63;r>=32;--r){for(n=0,i=r-32,o=r-12;i<o;++i)e[i]+=n-16*e[r]*it[i-(r-32)],n=Math.floor((e[i]+128)/256),e[i]-=256*n;e[i]+=n,e[r]=0}for(n=0,i=0;i<32;i++)e[i]+=n-(e[31]>>4)*it[i],n=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=n*it[i];for(r=0;r<32;r++)e[r+1]+=e[r]>>8,t[r]=255&e[r]}function st(t){var e,n=new Float64Array(64);for(e=0;e<64;e++)n[e]=t[e];for(e=0;e<64;e++)t[e]=0;ot(t,n)}function at(t,n,r,i){var o,s,a=new Uint8Array(64),c=new Uint8Array(64),u=new Uint8Array(64),l=new Float64Array(64),h=[e(),e(),e(),e()];X(a,i,32),a[0]&=248,a[31]&=127,a[31]|=64;var d=r+64;for(o=0;o<r;o++)t[64+o]=n[o];for(o=0;o<32;o++)t[32+o]=a[32+o];for(X(u,t.subarray(32),r+32),st(u),nt(h,u),tt(t,h),o=32;o<64;o++)t[o]=i[o];for(X(c,t,r+64),st(c),o=0;o<64;o++)l[o]=0;for(o=0;o<32;o++)l[o]=u[o];for(o=0;o<32;o++)for(s=0;s<32;s++)l[o+s]+=c[o]*a[s];return ot(t.subarray(32),l),d}function ct(t,n,r,i){var o,c=new Uint8Array(32),l=new Uint8Array(64),h=[e(),e(),e(),e()],d=[e(),e(),e(),e()];if(r<64)return-1;if(function(t,n){var r=e(),i=e(),o=e(),c=e(),l=e(),h=e(),d=e();return C(t[2],a),N(t[1],n),F(o,t[1]),z(c,o,u),D(o,o,t[2]),L(c,t[2],c),F(l,c),F(h,l),z(d,h,l),z(r,d,o),z(r,r,c),W(r,r),z(r,r,o),z(r,r,c),z(r,r,c),z(t[0],r,c),F(i,t[0]),z(i,i,c),B(i,o)&&z(t[0],t[0],f),F(i,t[0]),z(i,i,c),B(i,o)?-1:(j(t[0])===n[31]>>7&&D(t[0],s,t[0]),z(t[3],t[0],t[1]),0)}(d,i))return-1;for(o=0;o<r;o++)t[o]=n[o];for(o=0;o<32;o++)t[o+32]=i[o];if(X(l,t,r),st(l),et(h,d,l),nt(d,n.subarray(32)),J(h,d),tt(c,h),r-=64,y(n,0,c,0)){for(o=0;o<r;o++)t[o]=0;return-1}for(o=0;o<r;o++)t[o]=n[o+64];return r}var ut=16,lt=64,ht=32,dt=64;function ft(t,e){if(32!==t.length)throw new Error("bad key size");if(24!==e.length)throw new Error("bad nonce size")}function pt(){for(var t=0;t<arguments.length;t++)if(!(arguments[t]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function mt(t){for(var e=0;e<t.length;e++)t[e]=0}t.lowlevel={crypto_core_hsalsa20:v,crypto_stream_xor:x,crypto_stream:S,crypto_stream_salsa20_xor:_,crypto_stream_salsa20:k,crypto_onetimeauth:A,crypto_onetimeauth_verify:E,crypto_verify_16:g,crypto_verify_32:y,crypto_secretbox:T,crypto_secretbox_open:P,crypto_scalarmult:G,crypto_scalarmult_base:V,crypto_box_beforenm:H,crypto_box_afternm:q,crypto_box:function(t,e,n,r,i,o){var s=new Uint8Array(32);return H(s,i,o),q(t,e,n,r,s)},crypto_box_open:function(t,e,n,r,i,o){var s=new Uint8Array(32);return H(s,i,o),$(t,e,n,r,s)},crypto_box_keypair:K,crypto_hash:X,crypto_sign:at,crypto_sign_keypair:rt,crypto_sign_open:ct,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ut,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:lt,crypto_sign_PUBLICKEYBYTES:ht,crypto_sign_SECRETKEYBYTES:dt,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:e,D:u,L:it,pack25519:R,unpack25519:N,M:z,A:L,S:F,Z:D,pow2523:W,add:J,set25519:C,modL:ot,scalarmult:et,scalarbase:nt},t.randomBytes=function(t){var e=new Uint8Array(t);return r(e,t),e},t.secretbox=function(t,e,n){pt(t,e,n),ft(n,e);for(var r=new Uint8Array(32+t.length),i=new Uint8Array(r.length),o=0;o<t.length;o++)r[o+32]=t[o];return T(i,r,r.length,e,n),i.subarray(ut)},t.secretbox.open=function(t,e,n){pt(t,e,n),ft(n,e);for(var r=new Uint8Array(ut+t.length),i=new Uint8Array(r.length),o=0;o<t.length;o++)r[o+ut]=t[o];return r.length<32||0!==P(i,r,r.length,e,n)?null:i.subarray(32)},t.secretbox.keyLength=32,t.secretbox.nonceLength=24,t.secretbox.overheadLength=ut,t.scalarMult=function(t,e){if(pt(t,e),32!==t.length)throw new Error("bad n size");if(32!==e.length)throw new Error("bad p size");var n=new Uint8Array(32);return G(n,t,e),n},t.scalarMult.base=function(t){if(pt(t),32!==t.length)throw new Error("bad n size");var e=new Uint8Array(32);return V(e,t),e},t.scalarMult.scalarLength=32,t.scalarMult.groupElementLength=32,t.box=function(e,n,r,i){var o=t.box.before(r,i);return t.secretbox(e,n,o)},t.box.before=function(t,e){pt(t,e),function(t,e){if(32!==t.length)throw new Error("bad public key size");if(32!==e.length)throw new Error("bad secret key size")}(t,e);var n=new Uint8Array(32);return H(n,t,e),n},t.box.after=t.secretbox,t.box.open=function(e,n,r,i){var o=t.box.before(r,i);return t.secretbox.open(e,n,o)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var t=new Uint8Array(32),e=new Uint8Array(32);return K(t,e),{publicKey:t,secretKey:e}},t.box.keyPair.fromSecretKey=function(t){if(pt(t),32!==t.length)throw new Error("bad secret key size");var e=new Uint8Array(32);return V(e,t),{publicKey:e,secretKey:new Uint8Array(t)}},t.box.publicKeyLength=32,t.box.secretKeyLength=32,t.box.sharedKeyLength=32,t.box.nonceLength=24,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(t,e){if(pt(t,e),e.length!==dt)throw new Error("bad secret key size");var n=new Uint8Array(lt+t.length);return at(n,t,t.length,e),n},t.sign.open=function(t,e){if(pt(t,e),e.length!==ht)throw new Error("bad public key size");var n=new Uint8Array(t.length),r=ct(n,t,t.length,e);if(r<0)return null;for(var i=new Uint8Array(r),o=0;o<i.length;o++)i[o]=n[o];return i},t.sign.detached=function(e,n){for(var r=t.sign(e,n),i=new Uint8Array(lt),o=0;o<i.length;o++)i[o]=r[o];return i},t.sign.detached.verify=function(t,e,n){if(pt(t,e,n),e.length!==lt)throw new Error("bad signature size");if(n.length!==ht)throw new Error("bad public key size");var r,i=new Uint8Array(lt+t.length),o=new Uint8Array(lt+t.length);for(r=0;r<lt;r++)i[r]=e[r];for(r=0;r<t.length;r++)i[r+lt]=t[r];return ct(o,i,i.length,n)>=0},t.sign.keyPair=function(){var t=new Uint8Array(ht),e=new Uint8Array(dt);return rt(t,e),{publicKey:t,secretKey:e}},t.sign.keyPair.fromSecretKey=function(t){if(pt(t),t.length!==dt)throw new Error("bad secret key size");for(var e=new Uint8Array(ht),n=0;n<e.length;n++)e[n]=t[32+n];return{publicKey:e,secretKey:new Uint8Array(t)}},t.sign.keyPair.fromSeed=function(t){if(pt(t),32!==t.length)throw new Error("bad seed size");for(var e=new Uint8Array(ht),n=new Uint8Array(dt),r=0;r<32;r++)n[r]=t[r];return rt(e,n,!0),{publicKey:e,secretKey:n}},t.sign.publicKeyLength=ht,t.sign.secretKeyLength=dt,t.sign.seedLength=32,t.sign.signatureLength=lt,t.hash=function(t){pt(t);var e=new Uint8Array(64);return X(e,t,t.length),e},t.hash.hashLength=64,t.verify=function(t,e){return pt(t,e),0!==t.length&&0!==e.length&&(t.length===e.length&&0===m(t,0,e,0,t.length))},t.setPRNG=function(t){r=t},function(){var e="undefined"!==typeof self?self.crypto||self.msCrypto:null;if(e&&e.getRandomValues){t.setPRNG((function(t,n){var r,i=new Uint8Array(n);for(r=0;r<n;r+=65536)e.getRandomValues(i.subarray(r,r+Math.min(n-r,65536)));for(r=0;r<n;r++)t[r]=i[r];mt(i)}))}else(e=n(55024))&&e.randomBytes&&t.setPRNG((function(t,n){var r,i=e.randomBytes(n);for(r=0;r<n;r++)t[r]=i[r];mt(i)}))}()}(t.exports?t.exports:self.nacl=self.nacl||{})},20384:function(t){t.exports=function(t){return t&&"object"===typeof t&&"function"===typeof t.copy&&"function"===typeof t.fill&&"function"===typeof t.readUInt8}},55955:function(t,e,n){"use strict";
vendor: 6,943 bytes, line 1
1var r=n(82584),i=n(48662),o=n(86430),s=n(85692);function a(t){return t.call.bind(t)}var c="undefined"!==typeof BigInt,u="undefined"!==typeof Symbol,l=a(Object.prototype.toString),h=a(Number.prototype.valueOf),d=a(String.prototype.valueOf),f=a(Boolean.prototype.valueOf);if(c)var p=a(BigInt.prototype.valueOf);if(u)var m=a(Symbol.prototype.valueOf);function g(t,e){if("object"!==typeof t)return!1;try{return e(t),!0}catch(n){return!1}}function y(t){return"[object Map]"===l(t)}function b(t){return"[object Set]"===l(t)}function v(t){return"[object WeakMap]"===l(t)}function w(t){return"[object WeakSet]"===l(t)}function _(t){return"[object ArrayBuffer]"===l(t)}function k(t){return"undefined"!==typeof ArrayBuffer&&(_.working?_(t):t instanceof ArrayBuffer)}function S(t){return"[object DataView]"===l(t)}function x(t){return"undefined"!==typeof DataView&&(S.working?S(t):t instanceof DataView)}e.isArgumentsObject=r,e.isGeneratorFunction=i,e.isTypedArray=s,e.isPromise=function(t){return"undefined"!==typeof Promise&&t instanceof Promise||null!==t&&"object"===typeof t&&"function"===typeof t.then&&"function"===typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):s(t)||x(t)},e.isUint8Array=function(t){return"Uint8Array"===o(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===o(t)},e.isUint16Array=function(t){return"Uint16Array"===o(t)},e.isUint32Array=function(t){return"Uint32Array"===o(t)},e.isInt8Array=function(t){return"Int8Array"===o(t)},e.isInt16Array=function(t){return"Int16Array"===o(t)},e.isInt32Array=function(t){return"Int32Array"===o(t)},e.isFloat32Array=function(t){return"Float32Array"===o(t)},e.isFloat64Array=function(t){return"Float64Array"===o(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===o(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===o(t)},y.working="undefined"!==typeof Map&&y(new Map),e.isMap=function(t){return"undefined"!==typeof Map&&(y.working?y(t):t instanceof Map)},b.working="undefined"!==typeof Set&&b(new Set),e.isSet=function(t){return"undefined"!==typeof Set&&(b.working?b(t):t instanceof Set)},v.working="undefined"!==typeof WeakMap&&v(new WeakMap),e.isWeakMap=function(t){return"undefined"!==typeof WeakMap&&(v.working?v(t):t instanceof WeakMap)},w.working="undefined"!==typeof WeakSet&&w(new WeakSet),e.isWeakSet=function(t){return w(t)},_.working="undefined"!==typeof ArrayBuffer&&_(new ArrayBuffer),e.isArrayBuffer=k,S.working="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=x;var I="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(t){return"[object SharedArrayBuffer]"===l(t)}function E(t){return"undefined"!==typeof I&&("undefined"===typeof A.working&&(A.working=A(new I)),A.working?A(t):t instanceof I)}function T(t){return g(t,h)}function P(t){return g(t,d)}function C(t){return g(t,f)}function M(t){return c&&g(t,p)}function O(t){return u&&g(t,m)}e.isSharedArrayBuffer=E,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===l(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===l(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===l(t)},e.isGeneratorObject=function(t){return"[object Generator]"===l(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===l(t)},e.isNumberObject=T,e.isStringObject=P,e.isBooleanObject=C,e.isBigIntObject=M,e.isSymbolObject=O,e.isBoxedPrimitive=function(t){return T(t)||P(t)||C(t)||M(t)||O(t)},e.isAnyArrayBuffer=function(t){return"undefined"!==typeof Uint8Array&&(k(t)||E(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},89539:function(t,e,n){var r=n(34155),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++)n[e[r]]=Object.getOwnPropertyDescriptor(t,e[r]);return n},o=/%[sdj%]/g;e.format=function(t){if(!v(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(u(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,i=r.length,s=String(t).replace(o,(function(t){if("%%"===t)return"%";if(n>=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return t}})),a=r[n];n<i;a=r[++n])y(a)||!k(a)?s+=" "+a:s+=" "+u(a);return s},e.deprecate=function(t,n){if("undefined"!==typeof r&&!0===r.noDeprecation)return t;if("undefined"===typeof r)return function(){return e.deprecate(t,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?console.trace(n):console.error(n),i=!0}return t.apply(this,arguments)}};var s={},a=/^$/;if(r.env.NODE_DEBUG){var c=r.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+c+"$","i")}function u(t,n){var r={seen:[],stylize:h};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),g(n)?r.showHidden=n:n&&e._extend(r,n),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),d(r,t,r.depth)}function l(t,e){var n=u.styles[e];return n?"\x1b["+u.colors[n][0]+"m"+t+"\x1b["+u.colors[n][1]+"m":t}function h(t,e){return t}function d(t,n,r){if(t.customInspect&&n&&I(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return v(i)||(i=d(t,i,r)),i}var o=function(t,e){if(w(e))return t.stylize("undefined","undefined");if(v(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(b(e))return t.stylize(""+e,"number");if(g(e))return t.stylize(""+e,"boolean");if(y(e))return t.stylize("null","null")}(t,n);if(o)return o;var s=Object.keys(n),a=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(n)),x(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(I(n)){var c=n.name?": "+n.name:"";return t.stylize("[Function"+c+"]","special")}if(_(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(S(n))return t.stylize(Date.prototype.toString.call(n),"date");if(x(n))return f(n)}var u,l="",h=!1,k=["{","}"];(m(n)&&(h=!0,k=["[","]"]),I(n))&&(l=" [Function"+(n.name?": "+n.name:"")+"]");return _(n)&&(l=" "+RegExp.prototype.toString.call(n)),S(n)&&(l=" "+Date.prototype.toUTCString.call(n)),x(n)&&(l=" "+f(n)),0!==s.length||h&&0!=n.length?r<0?_(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),u=h?function(t,e,n,r,i){for(var o=[],s=0,a=e.length;s<a;++s)C(e,String(s))?o.push(p(t,e,n,r,String(s),!0)):o.push("");
vendor: 4,181 bytes, line 1
1return i.forEach((function(i){i.match(/^\d+$/)||o.push(p(t,e,n,r,i,!0))})),o}(t,n,r,a,s):s.map((function(e){return p(t,n,r,a,e,h)})),t.seen.pop(),function(t,e,n){if(t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(u,l,k)):k[0]+l+k[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,n,r,i,o){var s,a,c;if((c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(a=t.stylize("[Setter]","special")),C(r,i)||(s="["+i+"]"),a||(t.seen.indexOf(c.value)<0?(a=y(n)?d(t,c.value,null):d(t,c.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),w(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function m(t){return Array.isArray(t)}function g(t){return"boolean"===typeof t}function y(t){return null===t}function b(t){return"number"===typeof t}function v(t){return"string"===typeof t}function w(t){return void 0===t}function _(t){return k(t)&&"[object RegExp]"===A(t)}function k(t){return"object"===typeof t&&null!==t}function S(t){return k(t)&&"[object Date]"===A(t)}function x(t){return k(t)&&("[object Error]"===A(t)||t instanceof Error)}function I(t){return"function"===typeof t}function A(t){return Object.prototype.toString.call(t)}function E(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!s[t])if(a.test(t)){var n=r.pid;s[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else s[t]=function(){};return s[t]},e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=n(55955),e.isArray=m,e.isBoolean=g,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=b,e.isString=v,e.isSymbol=function(t){return"symbol"===typeof t},e.isUndefined=w,e.isRegExp=_,e.types.isRegExp=_,e.isObject=k,e.isDate=S,e.types.isDate=S,e.isError=x,e.types.isNativeError=x,e.isFunction=I,e.isPrimitive=function(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t},e.isBuffer=n(20384);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var t=new Date,e=[E(t.getHours()),E(t.getMinutes()),E(t.getSeconds())].join(":");return[t.getDate(),T[t.getMonth()],e].join(" ")}function C(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",P(),e.format.apply(e,arguments))},e.inherits=n(35717),e._extend=function(t,e){if(!e||!k(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var M="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function O(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');if(M&&t[M]){var e;if("function"!==typeof(e=t[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,M,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(t,r){t?n(t):e(r)}));try{t.apply(this,i)}catch(s){n(s)}return r}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),M&&Object.defineProperty(e,M,{value:e,enumerable:!1,writable:!1,
1configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=M,e.callbackify=function(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],n=0;n<arguments.length;n++)e.push(arguments[n]);var i=e.pop();if("function"!==typeof i)throw new TypeError("The last argument must be of type Function");var o=this,s=function(){return i.apply(o,arguments)};t.apply(this,e).then((function(t){r.nextTick(s.bind(null,null,t))}),(function(t){r.nextTick(O.bind(null,t,s))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,i(t)),e}},97466:function(t,e,n){"use strict";var r;n.r(e),n.d(e,{NIL:function(){return O},parse:function(){return g},stringify:function(){return d},v1:function(){return m},v3:function(){return A},v4:function(){return E},v5:function(){return M},validate:function(){return a},version:function(){return R}});var i=new Uint8Array(16);function o(){if(!r&&!(r="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}var s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var a=function(t){return"string"===typeof t&&s.test(t)},c=[],u=0;u<256;++u)c.push((u+256).toString(16).substr(1));var l,h,d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[t[e+0]]+c[t[e+1]]+c[t[e+2]]+c[t[e+3]]+"-"+c[t[e+4]]+c[t[e+5]]+"-"+c[t[e+6]]+c[t[e+7]]+"-"+c[t[e+8]]+c[t[e+9]]+"-"+c[t[e+10]]+c[t[e+11]]+c[t[e+12]]+c[t[e+13]]+c[t[e+14]]+c[t[e+15]]).toLowerCase();if(!a(n))throw TypeError("Stringified UUID is invalid");return n},f=0,p=0;var m=function(t,e,n){var r=e&&n||0,i=e||new Array(16),s=(t=t||{}).node||l,a=void 0!==t.clockseq?t.clockseq:h;if(null==s||null==a){var c=t.random||(t.rng||o)();null==s&&(s=l=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==a&&(a=h=16383&(c[6]<<8|c[7]))}var u=void 0!==t.msecs?t.msecs:Date.now(),m=void 0!==t.nsecs?t.nsecs:p+1,g=u-f+(m-p)/1e4;if(g<0&&void 0===t.clockseq&&(a=a+1&16383),(g<0||u>f)&&void 0===t.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");f=u,p=m,h=a;var y=(1e4*(268435455&(u+=122192928e5))+m)%4294967296;i[r++]=y>>>24&255,i[r++]=y>>>16&255,i[r++]=y>>>8&255,i[r++]=255&y;var b=u/4294967296*1e4&268435455;i[r++]=b>>>8&255,i[r++]=255&b,i[r++]=b>>>24&15|16,i[r++]=b>>>16&255,i[r++]=a>>>8|128,i[r++]=255&a;for(var v=0;v<6;++v)i[r+v]=s[v];return e||d(i)};var g=function(t){if(!a(t))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n};function y(t,e,n){function r(t,r,i,o){if("string"===typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],n=0;n<t.length;++n)e.push(t.charCodeAt(n));return e}(t)),"string"===typeof r&&(r=g(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+t.length);if(s.set(r),s.set(t,r.length),(s=n(s))[6]=15&s[6]|e,s[8]=63&s[8]|128,i){o=o||0;for(var a=0;a<16;++a)i[o+a]=s[a];return i}return d(s)}try{r.name=t}catch(i){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function b(t){return 14+(t+64>>>9<<4)+1}function v(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function w(t,e,n,r,i,o){return v((s=v(v(e,t),v(r,o)))<<(a=i)|s>>>32-a,n);var s,a}function _(t,e,n,r,i,o,s){return w(e&n|~e&r,t,e,i,o,s)}function k(t,e,n,r,i,o,s){return w(e&r|n&~r,t,e,i,o,s)}function S(t,e,n,r,i,o,s){return w(e^n^r,t,e,i,o,s)}function x(t,e,n,r,i,o,s){return w(n^(e|~r),t,e,i,o,s)}var I=function(t){if("string"===typeof t){var e=unescape(encodeURIComponent(t));
vendor: 4,211 bytes, line 1
1t=new Uint8Array(e.length);for(var n=0;n<e.length;++n)t[n]=e.charCodeAt(n)}return function(t){for(var e=[],n=32*t.length,r="0123456789abcdef",i=0;i<n;i+=8){var o=t[i>>5]>>>i%32&255,s=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);e.push(s)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[b(e)-1]=e;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,s=0;s<t.length;s+=16){var a=n,c=r,u=i,l=o;n=_(n,r,i,o,t[s],7,-680876936),o=_(o,n,r,i,t[s+1],12,-389564586),i=_(i,o,n,r,t[s+2],17,606105819),r=_(r,i,o,n,t[s+3],22,-1044525330),n=_(n,r,i,o,t[s+4],7,-176418897),o=_(o,n,r,i,t[s+5],12,1200080426),i=_(i,o,n,r,t[s+6],17,-1473231341),r=_(r,i,o,n,t[s+7],22,-45705983),n=_(n,r,i,o,t[s+8],7,1770035416),o=_(o,n,r,i,t[s+9],12,-1958414417),i=_(i,o,n,r,t[s+10],17,-42063),r=_(r,i,o,n,t[s+11],22,-1990404162),n=_(n,r,i,o,t[s+12],7,1804603682),o=_(o,n,r,i,t[s+13],12,-40341101),i=_(i,o,n,r,t[s+14],17,-1502002290),n=k(n,r=_(r,i,o,n,t[s+15],22,1236535329),i,o,t[s+1],5,-165796510),o=k(o,n,r,i,t[s+6],9,-1069501632),i=k(i,o,n,r,t[s+11],14,643717713),r=k(r,i,o,n,t[s],20,-373897302),n=k(n,r,i,o,t[s+5],5,-701558691),o=k(o,n,r,i,t[s+10],9,38016083),i=k(i,o,n,r,t[s+15],14,-660478335),r=k(r,i,o,n,t[s+4],20,-405537848),n=k(n,r,i,o,t[s+9],5,568446438),o=k(o,n,r,i,t[s+14],9,-1019803690),i=k(i,o,n,r,t[s+3],14,-187363961),r=k(r,i,o,n,t[s+8],20,1163531501),n=k(n,r,i,o,t[s+13],5,-1444681467),o=k(o,n,r,i,t[s+2],9,-51403784),i=k(i,o,n,r,t[s+7],14,1735328473),n=S(n,r=k(r,i,o,n,t[s+12],20,-1926607734),i,o,t[s+5],4,-378558),o=S(o,n,r,i,t[s+8],11,-2022574463),i=S(i,o,n,r,t[s+11],16,1839030562),r=S(r,i,o,n,t[s+14],23,-35309556),n=S(n,r,i,o,t[s+1],4,-1530992060),o=S(o,n,r,i,t[s+4],11,1272893353),i=S(i,o,n,r,t[s+7],16,-155497632),r=S(r,i,o,n,t[s+10],23,-1094730640),n=S(n,r,i,o,t[s+13],4,681279174),o=S(o,n,r,i,t[s],11,-358537222),i=S(i,o,n,r,t[s+3],16,-722521979),r=S(r,i,o,n,t[s+6],23,76029189),n=S(n,r,i,o,t[s+9],4,-640364487),o=S(o,n,r,i,t[s+12],11,-421815835),i=S(i,o,n,r,t[s+15],16,530742520),n=x(n,r=S(r,i,o,n,t[s+2],23,-995338651),i,o,t[s],6,-198630844),o=x(o,n,r,i,t[s+7],10,1126891415),i=x(i,o,n,r,t[s+14],15,-1416354905),r=x(r,i,o,n,t[s+5],21,-57434055),n=x(n,r,i,o,t[s+12],6,1700485571),o=x(o,n,r,i,t[s+3],10,-1894986606),i=x(i,o,n,r,t[s+10],15,-1051523),r=x(r,i,o,n,t[s+1],21,-2054922799),n=x(n,r,i,o,t[s+8],6,1873313359),o=x(o,n,r,i,t[s+15],10,-30611744),i=x(i,o,n,r,t[s+6],15,-1560198380),r=x(r,i,o,n,t[s+13],21,1309151649),n=x(n,r,i,o,t[s+4],6,-145523070),o=x(o,n,r,i,t[s+11],10,-1120210379),i=x(i,o,n,r,t[s+2],15,718787259),r=x(r,i,o,n,t[s+9],21,-343485551),n=v(n,a),r=v(r,c),i=v(i,u),o=v(o,l)}return[n,r,i,o]}(function(t){if(0===t.length)return[];for(var e=8*t.length,n=new Uint32Array(b(e)),r=0;r<e;r+=8)n[r>>5]|=(255&t[r/8])<<r%32;return n}(t),8*t.length))},A=y("v3",48,I);var E=function(t,e,n){var r=(t=t||{}).random||(t.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return d(r)};function T(t,e,n,r){switch(t){case 0:return e&n^~e&r;case 1:case 3:return e^n^r;case 2:return e&n^e&r^n&r}}function P(t,e){return t<<e|t>>>32-e}var C=function(t){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"===typeof t){var r=unescape(encodeURIComponent(t));t=[];for(var i=0;i<r.length;++i)t.push(r.charCodeAt(i))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var o=t.length/4+2,s=Math.ceil(o/16),a=new Array(s),c=0;c<s;++c){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=t[64*c+4*l]<<24|t[64*c+4*l+1]<<16|t[64*c+4*l+2]<<8|t[64*c+4*l+3];a[c]=u}a[s-1][14]=8*(t.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(t.length-1)&4294967295;for(var h=0;h<s;++h){for(var d=new Uint32Array(80),f=0;f<16;++f)d[f]=a[h][f];for(var p=16;p<80;++p)d[p]=P(d[p-3]^d[p-8]^d[p-14]^d[p-16],1);for(var m=n[0],g=n[1],y=n[2],b=n[3],v=n[4],w=0;w<80;++w){var _=Math.floor(w/20),k=P(m,5)+T(_,g,y,b)+v+e[_]+d[w]>>>0;v=b,b=y,y=P(g,30)>>>0,g=m,m=k}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+y>>>0,n[3]=n[3]+b>>>0,n[4]=n[4]+v>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>
1>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]},M=y("v5",80,C),O="00000000-0000-0000-0000-000000000000";var R=function(t){if(!a(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}},45840:function(t,e,n){var r;if("object"===typeof globalThis)r=globalThis;else try{r=n(284)}catch(a){}finally{if(r||"undefined"===typeof window||(r=window),!r)throw new Error("Could not determine global this")}var i=r.WebSocket||r.MozWebSocket,o=n(79387);function s(t,e){return e?new i(t,e):new i(t)}i&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach((function(t){Object.defineProperty(s,t,{get:function(){return i[t]}})})),t.exports={w3cwebsocket:i?s:null,version:o}},79387:function(t,e,n){t.exports=n(19794).version},86430:function(t,e,n){"use strict";var r=n(94029),i=n(63083),o=n(21924),s=o("Object.prototype.toString"),a=n(96410)(),c="undefined"===typeof globalThis?n.g:globalThis,u=i(),l=o("String.prototype.slice"),h={},d=n(20882),f=Object.getPrototypeOf;a&&d&&f&&r(u,(function(t){if("function"===typeof c[t]){var e=new c[t];if(Symbol.toStringTag in e){var n=f(e),r=d(n,Symbol.toStringTag);if(!r){var i=f(n);r=d(i,Symbol.toStringTag)}h[t]=r.get}}}));var p=n(85692);t.exports=function(t){return!!p(t)&&(a&&Symbol.toStringTag in t?function(t){var e=!1;return r(h,(function(n,r){if(!e)try{var i=n.call(t);i===r&&(e=i)}catch(o){}})),e}(t):l(s(t),8,-1))}},7420:function(){},95856:function(){},46601:function(){},89214:function(){},42480:function(){},85568:function(){},24654:function(){},55024:function(){},66115:function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},17156:function(t){function e(t,e,n,r,i,o,s){try{var a=t[o](s),c=a.value}catch(u){return void n(u)}a.done?e(c):Promise.resolve(c).then(r,i)}t.exports=function(t){return function(){var n=this,r=arguments;return new Promise((function(i,o){var s=t.apply(n,r);function a(t){e(s,i,o,a,c,"next",t)}function c(t){e(s,i,o,a,c,"throw",t)}a(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},56690:function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},89728:function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},73808:function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},61655:function(t,e,n){var r=n(6015);t.exports=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},64836:function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},94993:function(t,e,n){var r=n(18698).default,i=n(66115);t.exports=function(t,e){if(e&&("object"===r(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.__esModule=!0,t.exports.default=t.exports},17061:function(t,e,n){var r=n(18698).default;function i(){"use strict";t.exports=i=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(P){l=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof p?e:p,o=Object.create(i.prototype),s=new A(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=S(s,n);if(a){if(a===f)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,s),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(P){return{type:"throw",arg:P}}}e.wrap=h;var f={};function p(){}function m(){}function g(){}var y={};l(y,a,(function(){return this}));var b=Object.getPrototypeOf,v=b&&b(b(E([])));v&&v!==n&&o.call(v,a)&&(y=v);var w=g.prototype=p.prototype=Object.create(y);function _(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,s,a,c){var u=d(t[i],t,s);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==r(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)}
vendor: 4,583 bytes, line 1
1)):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function S(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=d(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function E(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return m.prototype=g,l(w,"constructor",g),l(g,"constructor",m),m.displayName=l(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},_(k.prototype),l(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var s=new k(h(t,n,r,i),o);return e.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},_(w),l(w,u,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return s.type="throw",s.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(a&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=t,s.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:E(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}
1t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},6015:function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},18698:function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},64687:function(t,e,n){var r=n(17061)();t.exports=r;try{regeneratorRuntime=r}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},26578:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeDecode=void 0;e.encodeDecode=t=>({decode:t.decode.bind(t),encode:t.encode.bind(t)})},80802:function(t,e,n){"use strict";var r=n(59012).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.u256be=e.u256=e.u192be=e.u192=e.u128be=e.u128=e.u64be=e.u64=e.bigIntBE=e.bigInt=void 0;const i=n(39386),o=n(40475),s=n(26578);e.bigInt=t=>e=>{const n=(0,i.blob)(t,e),{encode:a,decode:c}=(0,s.encodeDecode)(n),u=n;return u.decode=(t,e)=>{const n=c(t,e);return(0,o.toBigIntLE)(r.from(n))},u.encode=(e,n,r)=>{const i=(0,o.toBufferLE)(e,t);return a(i,n,r)},u};e.bigIntBE=t=>e=>{const n=(0,i.blob)(t,e),{encode:a,decode:c}=(0,s.encodeDecode)(n),u=n;return u.decode=(t,e)=>{const n=c(t,e);return(0,o.toBigIntBE)(r.from(n))},u.encode=(e,n,r)=>{const i=(0,o.toBufferBE)(e,t);return a(i,n,r)},u},e.u64=(0,e.bigInt)(8),e.u64be=(0,e.bigIntBE)(8),e.u128=(0,e.bigInt)(16),e.u128be=(0,e.bigIntBE)(16),e.u192=(0,e.bigInt)(24),e.u192be=(0,e.bigIntBE)(24),e.u256=(0,e.bigInt)(32),e.u256be=(0,e.bigIntBE)(32)},54195:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.decimal=e.WAD=void 0;const i=r(n(44431)),o=n(26578),s=n(80802);e.WAD=new i.default("1e+18");e.decimal=t=>{const n=(0,s.u128)(t),{encode:r,decode:a}=(0,o.encodeDecode)(n),c=n;return c.decode=(t,n)=>{const r=a(t,n).toString();return new i.default(r).div(e.WAD)},c.encode=(t,n,i)=>{const o=BigInt(t.times(e.WAD).integerValue().toString());return r(o,n,i)},c}},27278:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(26578),e),i(n(80802),e),i(n(54195),e),i(n(48670),e),i(n(62885),e)},48670:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bool=void 0;const r=n(39386),i=n(26578);e.bool=t=>{const e=(0,r.u8)(t),{encode:n,decode:o}=(0,i.encodeDecode)(e),s=e;return s.decode=(t,e)=>!!o(t,e),s.encode=(t,e,r)=>{const i=Number(t);return n(i,e,r)},s}},62885:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.publicKey=void 0;const r=n(39386),i=n(98794),o=n(26578);e.publicKey=t=>{const e=(0,r.blob)(32,t),{encode:n,decode:s}=(0,o.encodeDecode)(e),a=e;return a.decode=(t,e)=>{const n=s(t,e);return new i.PublicKey(n)},a.encode=(t,e,r)=>{const i=t.toBuffer();return n(i,e,r)},a}},62921:function(t,e,n){"use strict";var r=n(48764).Buffer,i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.amountToUiAmount=void 0;const o=n(26087),s=n(44530),a=n(10540);e.amountToUiAmount=function(t,e,n,c,u=s.TOKEN_PROGRAM_ID){return i(this,void 0,void 0,(function*(){const i=(new o.Transaction).add((0,a.createAmou
1ntToUiAmountInstruction)(n,c,u)),{returnData:s,err:l}=(yield t.simulateTransaction(i,[e],!1)).value;return(null===s||void 0===s?void 0:s.data)?r.from(s.data[0],s.data[1]).toString("utf-8"):l}))}},91905:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.approve=void 0;const i=n(26087),o=n(44530),s=n(55431),a=n(51421);e.approve=function(t,e,n,c,u,l,h=[],d,f=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(u,h),p=(new i.Transaction).add((0,s.createApproveInstruction)(n,c,r,l,h,f));return yield(0,i.sendAndConfirmTransaction)(t,p,[e,...o],d)}))}},24370:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.approveChecked=void 0;const i=n(26087),o=n(44530),s=n(18228),a=n(51421);e.approveChecked=function(t,e,n,c,u,l,h,d,f=[],p,m=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(l,f),g=(new i.Transaction).add((0,s.createApproveCheckedInstruction)(c,n,u,r,h,d,f,m));return yield(0,i.sendAndConfirmTransaction)(t,g,[e,...o],p)}))}},95464:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.burn=void 0;const i=n(26087),o=n(44530),s=n(8339),a=n(51421);e.burn=function(t,e,n,c,u,l,h=[],d,f=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(u,h),p=(new i.Transaction).add((0,s.createBurnInstruction)(n,c,r,l,h,f));return yield(0,i.sendAndConfirmTransaction)(t,p,[e,...o],d)}))}},7667:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.burnChecked=void 0;const i=n(26087),o=n(44530),s=n(1853),a=n(51421);e.burnChecked=function(t,e,n,c,u,l,h,d=[],f,p=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(u,d),m=(new i.Transaction).add((0,s.createBurnCheckedInstruction)(n,c,r,l,h,d,p));return yield(0,i.sendAndConfirmTransaction)(t,m,[e,...o],f)}))}},75769:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.closeAccount=void 0;const i=n(26087),o=n(44530),s=n(36038),a=n(51421);e.closeAccount=function(t,e,n,c,u,l=[],h,d=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(u,l),f=(new i.Transaction).add((0,s.createCloseAccountInstruction)(n,c,r,l,d));return yield(0,i.sendAndConfirmTransaction)(t,f,[e,...o],h)}))}},50685:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};
1Object.defineProperty(e,"__esModule",{value:!0}),e.createAccount=void 0;const i=n(26087),o=n(44530),s=n(90758),a=n(58328),c=n(66446),u=n(68997);e.createAccount=function(t,e,n,l,h,d,f=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){if(!h)return yield(0,u.createAssociatedTokenAccount)(t,e,n,l,d,f);const r=yield(0,c.getMint)(t,n,null===d||void 0===d?void 0:d.commitment,f),o=(0,s.getAccountLenForMint)(r),p=yield t.getMinimumBalanceForRentExemption(o),m=(new i.Transaction).add(i.SystemProgram.createAccount({fromPubkey:e.publicKey,newAccountPubkey:h.publicKey,space:o,lamports:p,programId:f}),(0,a.createInitializeAccountInstruction)(h.publicKey,n,l,f));return yield(0,i.sendAndConfirmTransaction)(t,m,[e,h],d),h.publicKey}))}},68997:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.createAssociatedTokenAccount=void 0;const i=n(26087),o=n(44530),s=n(31183),a=n(66446);e.createAssociatedTokenAccount=function(t,e,n,c,u,l=o.TOKEN_PROGRAM_ID,h=o.ASSOCIATED_TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const r=yield(0,a.getAssociatedTokenAddress)(n,c,!1,l,h),o=(new i.Transaction).add((0,s.createAssociatedTokenAccountInstruction)(e.publicKey,r,c,n,l,h));return yield(0,i.sendAndConfirmTransaction)(t,o,[e],u),r}))}},92491:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.createAssociatedTokenAccountIdempotent=void 0;const i=n(26087),o=n(44530),s=n(31183),a=n(66446);e.createAssociatedTokenAccountIdempotent=function(t,e,n,c,u,l=o.TOKEN_PROGRAM_ID,h=o.ASSOCIATED_TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const r=yield(0,a.getAssociatedTokenAddress)(n,c,!1,l,h),o=(new i.Transaction).add((0,s.createAssociatedTokenAccountIdempotentInstruction)(e.publicKey,r,c,n,l,h));return yield(0,i.sendAndConfirmTransaction)(t,o,[e],u),r}))}},12435:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.createMint=void 0;const i=n(26087),o=n(44530),s=n(19066),a=n(66446);e.createMint=function(t,e,n,c,u,l=i.Keypair.generate(),h,d=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const r=yield(0,a.getMinimumBalanceForRentExemptMint)(t),o=(new i.Transaction).add(i.SystemProgram.createAccount({fromPubkey:e.publicKey,newAccountPubkey:l.publicKey,space:a.MINT_SIZE,lamports:r,programId:d}),(0,s.createInitializeMint2Instruction)(l.publicKey,u,n,c,d));return yield(0,i.sendAndConfirmTransaction)(t,o,[e,l],h),l.publicKey}))}},63312:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.createMultisig=void 0;const i=n(26087),o=n(44530),s=n(65061),a=n(22114);e.createMultisig=function(t,e,n,c,u=i.Keypair.generate(),l,h=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const r=yield(0,a.getMinimumBalanceForRentExemptMultisig)(t),o=(new i.Transaction).add(i.SystemProgram.createAccount({fromPubkey:e.publicKey,newAccountPubkey:u.publicKey,space:a.MULTISIG_SIZE,lamports:r,programId:h}),(0,s.createInitializeMultisigInstruction)(u.publicKey,n,c,h));return yield(0,i.sendAndConfirmTransaction)(t,o,[e,u],l),u.publicKey}))}},66969:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Prom
1ise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.createNativeMint=void 0;const i=n(26087),o=n(44530),s=n(42421);e.createNativeMint=function(t,e,n,a=o.NATIVE_MINT_2022,c=o.TOKEN_2022_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const r=(new i.Transaction).add((0,s.createCreateNativeMintInstruction)(e.publicKey,a,c));yield(0,i.sendAndConfirmTransaction)(t,r,[e],n)}))}},69821:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.createWrappedNativeAccount=void 0;const i=n(26087),o=n(44530),s=n(31183),a=n(58328),c=n(75836),u=n(48820),l=n(66446),h=n(50685);e.createWrappedNativeAccount=function(t,e,n,d,f,p,m=o.TOKEN_PROGRAM_ID,g=o.NATIVE_MINT){return r(this,void 0,void 0,(function*(){if(!d)return yield(0,h.createAccount)(t,e,g,n,f,p,m);if(!f){const r=yield(0,l.getAssociatedTokenAddress)(g,n,!1,m,o.ASSOCIATED_TOKEN_PROGRAM_ID),a=(new i.Transaction).add((0,s.createAssociatedTokenAccountInstruction)(e.publicKey,r,n,g,m,o.ASSOCIATED_TOKEN_PROGRAM_ID),i.SystemProgram.transfer({fromPubkey:e.publicKey,toPubkey:r,lamports:d}),(0,c.createSyncNativeInstruction)(r,m));return yield(0,i.sendAndConfirmTransaction)(t,a,[e],p),r}const r=yield(0,u.getMinimumBalanceForRentExemptAccount)(t),y=(new i.Transaction).add(i.SystemProgram.createAccount({fromPubkey:e.publicKey,newAccountPubkey:f.publicKey,space:u.ACCOUNT_SIZE,lamports:r,programId:m}),i.SystemProgram.transfer({fromPubkey:e.publicKey,toPubkey:f.publicKey,lamports:d}),(0,a.createInitializeAccountInstruction)(f.publicKey,g,n,m));return yield(0,i.sendAndConfirmTransaction)(t,y,[e,f],p),f.publicKey}))}},94166:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.freezeAccount=void 0;const i=n(26087),o=n(44530),s=n(56513),a=n(51421);e.freezeAccount=function(t,e,n,c,u,l=[],h,d=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(u,l),f=(new i.Transaction).add((0,s.createFreezeAccountInstruction)(n,c,r,l,d));return yield(0,i.sendAndConfirmTransaction)(t,f,[e,...o],h)}))}},62440:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getOrCreateAssociatedTokenAccount=void 0;const i=n(26087),o=n(44530),s=n(60913),a=n(31183),c=n(48820),u=n(66446);e.getOrCreateAssociatedTokenAccount=function(t,e,n,l,h=!1,d,f,p=o.TOKEN_PROGRAM_ID,m=o.ASSOCIATED_TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const r=yield(0,u.getAssociatedTokenAddress)(n,l,h,p,m);let o;try{o=yield(0,c.getAccount)(t,r,d,p)}catch(g){if(!(g instanceof s.TokenAccountNotFoundError||g instanceof s.TokenInvalidAccountOwnerError))throw g;try{const o=(new i.Transaction).add((0,a.createAssociatedTokenAccountInstruction)(e.publicKey,r,l,n,p,m));yield(0,i.sendAndConfirmTransaction)(t,o,[e],f)}catch(g){}o=yield(0,c.getAccount)(t,r,d,p)}if(!o.mint.equals(n))throw new s.TokenInvalidMintError;if(!o.owner.equals(l))throw new s.TokenInvalidOwnerError;return o}
1))}},32510:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(62921),e),i(n(91905),e),i(n(24370),e),i(n(95464),e),i(n(7667),e),i(n(75769),e),i(n(50685),e),i(n(68997),e),i(n(92491),e),i(n(12435),e),i(n(63312),e),i(n(66969),e),i(n(69821),e),i(n(94166),e),i(n(62440),e),i(n(57503),e),i(n(31507),e),i(n(13460),e),i(n(46111),e),i(n(87245),e),i(n(70765),e),i(n(99843),e),i(n(44868),e),i(n(93701),e)},51421:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSigners=void 0;const r=n(26087);e.getSigners=function(t,e){return t instanceof r.PublicKey?[t,e]:[t.publicKey,[t]]}},57503:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.mintTo=void 0;const i=n(26087),o=n(44530),s=n(74761),a=n(51421);e.mintTo=function(t,e,n,c,u,l,h=[],d,f=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(u,h),p=(new i.Transaction).add((0,s.createMintToInstruction)(n,c,r,l,h,f));return yield(0,i.sendAndConfirmTransaction)(t,p,[e,...o],d)}))}},31507:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.mintToChecked=void 0;const i=n(26087),o=n(44530),s=n(70698),a=n(51421);e.mintToChecked=function(t,e,n,c,u,l,h,d=[],f,p=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(u,d),m=(new i.Transaction).add((0,s.createMintToCheckedInstruction)(n,c,r,l,h,d,p));return yield(0,i.sendAndConfirmTransaction)(t,m,[e,...o],f)}))}},13460:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.revoke=void 0;const i=n(26087),o=n(44530),s=n(62216),a=n(51421);e.revoke=function(t,e,n,c,u=[],l,h=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(c,u),d=(new i.Transaction).add((0,s.createRevokeInstruction)(n,r,u,h));return yield(0,i.sendAndConfirmTransaction)(t,d,[e,...o],l)}))}},46111:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.setAuthority=void 0;const i=n(26087),o=n(44530),s=n(95816),a=n(51421);e.setAuthority=function(t,e,n,c,u,l,h=[],d,f=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(c,h),p=(new i.Transaction).add((0,s.createSetAuthorityInstruction)(n,r,u,l,h,f));return yield(0,i.sendAndConfirmTransaction)(t,p,[e,...o],d)}))}},87245:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Prom
1ise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.syncNative=void 0;const i=n(26087),o=n(44530),s=n(75836);e.syncNative=function(t,e,n,a,c=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const r=(new i.Transaction).add((0,s.createSyncNativeInstruction)(n,c));return yield(0,i.sendAndConfirmTransaction)(t,r,[e],a)}))}},70765:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.thawAccount=void 0;const i=n(26087),o=n(44530),s=n(19040),a=n(51421);e.thawAccount=function(t,e,n,c,u,l=[],h,d=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(u,l),f=(new i.Transaction).add((0,s.createThawAccountInstruction)(n,c,r,l,d));return yield(0,i.sendAndConfirmTransaction)(t,f,[e,...o],h)}))}},99843:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.transfer=void 0;const i=n(26087),o=n(44530),s=n(72874),a=n(51421);e.transfer=function(t,e,n,c,u,l,h=[],d,f=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(u,h),p=(new i.Transaction).add((0,s.createTransferInstruction)(n,c,r,l,h,f));return yield(0,i.sendAndConfirmTransaction)(t,p,[e,...o],d)}))}},44868:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.transferChecked=void 0;const i=n(26087),o=n(44530),s=n(35593),a=n(51421);e.transferChecked=function(t,e,n,c,u,l,h,d,f=[],p,m=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(l,f),g=(new i.Transaction).add((0,s.createTransferCheckedInstruction)(n,c,u,r,h,d,f,m));return yield(0,i.sendAndConfirmTransaction)(t,g,[e,...o],p)}))}},93701:function(t,e,n){"use strict";var r=n(48764).Buffer,i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.uiAmountToAmount=void 0;const o=n(27278),s=n(26087),a=n(44530),c=n(21470);e.uiAmountToAmount=function(t,e,n,u,l=a.TOKEN_PROGRAM_ID){return i(this,void 0,void 0,(function*(){const i=(new s.Transaction).add((0,c.createUiAmountToAmountInstruction)(n,u,l)),{returnData:a,err:h}=(yield t.simulateTransaction(i,[e],!1)).value;if(a){const t=r.from(a.data[0],a.data[1]);return(0,o.u64)().decode(t)}return h}))}},44530:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.programSupportsExtensions=e.NATIVE_MINT_2022=e.NATIVE_MINT=e.ASSOCIATED_TOKEN_PROGRAM_ID=e.TOKEN_2022_PROGRAM_ID=e.TOKEN_PROGRAM_ID=void 0;const r=n(26087);e.TOKEN_PROGRAM_ID=new r.PublicKey("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),e.TOKEN_2022_PROGRAM_ID=new r.PublicKey("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),e.ASSOCIATED_TOKEN_PROGRAM_ID=new r.PublicKey("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),e.NATIVE_MINT=new r.PublicKey("So11111111111111111111111111111111111111112"),e.NATIVE_MINT_2022=new r.PublicKey("9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP"),e.programSupportsExtensions=function(t){return t!==e.TOKEN_PROGRAM_ID}},60913:function(t,e){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.TokenUnsupportedInstructionError=e.TokenInvalidInstructionTypeError=e.TokenInvalidInstructionDataError=e.TokenInvalidInstructionKeysError=e.TokenInvalidInstructionProgramError=e.TokenOwnerOffCurveError=e.TokenInvalidOwnerError=e.TokenInvalidMintError=e.TokenInvalidAccountSizeError=e.TokenInvalidAccountOwnerError=e.TokenInvalidAccountError=e.TokenAccountNotFoundError=e.TokenError=void 0;class n extends Error{constructor(t){super(t)}}e.TokenError=n;e.TokenAccountNotFoundError=class extends n{constructor(){super(...arguments),this.name="TokenAccountNotFoundError"}};e.TokenInvalidAccountError=class extends n{constructor(){super(...arguments),this.name="TokenInvalidAccountError"}};e.TokenInvalidAccountOwnerError=class extends n{constructor(){super(...arguments),this.name="TokenInvalidAccountOwnerError"}};e.TokenInvalidAccountSizeError=class extends n{constructor(){super(...arguments),this.name="TokenInvalidAccountSizeError"}};e.TokenInvalidMintError=class extends n{constructor(){super(...arguments),this.name="TokenInvalidMintError"}};e.TokenInvalidOwnerError=class extends n{constructor(){super(...arguments),this.name="TokenInvalidOwnerError"}};e.TokenOwnerOffCurveError=class extends n{constructor(){super(...arguments),this.name="TokenOwnerOffCurveError"}};e.TokenInvalidInstructionProgramError=class extends n{constructor(){super(...arguments),this.name="TokenInvalidInstructionProgramError"}};e.TokenInvalidInstructionKeysError=class extends n{constructor(){super(...arguments),this.name="TokenInvalidInstructionKeysError"}};e.TokenInvalidInstructionDataError=class extends n{constructor(){super(...arguments),this.name="TokenInvalidInstructionDataError"}};e.TokenInvalidInstructionTypeError=class extends n{constructor(){super(...arguments),this.name="TokenInvalidInstructionTypeError"}};e.TokenUnsupportedInstructionError=class extends n{constructor(){super(...arguments),this.name="TokenUnsupportedInstructionError"}}},21026:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ACCOUNT_TYPE_SIZE=e.AccountType=void 0,function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Mint=1]="Mint",t[t.Account=2]="Account"}(e.AccountType||(e.AccountType={})),e.ACCOUNT_TYPE_SIZE=1},87793:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.updateDefaultAccountState=e.initializeDefaultAccountState=void 0;const i=n(26087),o=n(51421),s=n(44530),a=n(68298);e.initializeDefaultAccountState=function(t,e,n,o,c,u=s.TOKEN_2022_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const r=(new i.Transaction).add((0,a.createInitializeDefaultAccountStateInstruction)(n,o,u));return yield(0,i.sendAndConfirmTransaction)(t,r,[e],c)}))},e.updateDefaultAccountState=function(t,e,n,c,u,l=[],h,d=s.TOKEN_2022_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,s]=(0,o.getSigners)(u,l),f=(new i.Transaction).add((0,a.createUpdateDefaultAccountStateInstruction)(n,c,r,s,d));return yield(0,i.sendAndConfirmTransaction)(t,f,[e,...s],h)}))}},34347:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(87793),e),i(n(68298),e),i(n(20403),e)},68298:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.createUpdateDefaultAccountStateInstruction=e.createInitializeDefaultAccountStateInstruction=e.defaultAccountStateInstructionData=e.DefaultAccountStateInstruction=void 0;const i=n(39386),o=n(26087),s=n(44530),a=n(60913),c=n(47623);var u;!function(t){t[t.Initialize=0]="Initialize",t[t.Update=1]="Update"}(u=e.DefaultAccountStateInstruction||(e.DefaultAccountStateInstruction={})),e.defaultAccountStateInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,i.u8)("defaultAccountStateInstruction"),(0,i.u8)("accountState")]),e.createInitializeDefaultAccountStateInstruction=function(t,n,i=s.TOKEN_2022_PROGRAM_ID){if(!(0,s.programSupportsExtensions)(i))throw new a.TokenUnsupportedInstructionError;const l=[{pubkey:t,isSigner:!1,isWritable:!0}],h=r.alloc(e.defaultAccountStateInstructionData.span);return e.defaultAccountStateInstructionData.encode({instruction:c.TokenInstruction.DefaultAccountStateExtension,defaultAccountStateInstruction:u.Initialize,accountState:n},h),new o.TransactionInstruction({keys:l,programId:i,data:h})},e.createUpdateDefaultAccountStateInstruction=function(t,n,i,l=[],h=s.TOKEN_2022_PROGRAM_ID){if(!(0,s.programSupportsExtensions)(h))throw new a.TokenUnsupportedInstructionError;const d=[{pubkey:t,isSigner:!1,isWritable:!0}];d.push({pubkey:i,isSigner:!l.length,isWritable:!1});for(const e of l)d.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1});const f=r.alloc(e.defaultAccountStateInstructionData.span);return e.defaultAccountStateInstructionData.encode({instruction:c.TokenInstruction.DefaultAccountStateExtension,defaultAccountStateInstruction:u.Update,accountState:n},f),new o.TransactionInstruction({keys:d,programId:h,data:f})}},20403:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultAccountState=e.DEFAULT_ACCOUNT_STATE_SIZE=e.DefaultAccountStateLayout=void 0;const r=n(39386),i=n(90758);e.DefaultAccountStateLayout=(0,r.struct)([(0,r.u8)("state")]),e.DEFAULT_ACCOUNT_STATE_SIZE=e.DefaultAccountStateLayout.span,e.getDefaultAccountState=function(t){const n=(0,i.getExtensionData)(i.ExtensionType.DefaultAccountState,t.tlvData);return null!==n?e.DefaultAccountStateLayout.decode(n):null}},90758:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAccountLenForMint=e.getExtensionTypes=e.getExtensionData=e.getAccountLen=e.getMintLen=e.getAccountTypeOfMintType=e.getTypeLen=e.LENGTH_SIZE=e.TYPE_SIZE=e.ExtensionType=void 0;const r=n(48820),i=n(66446),o=n(22114),s=n(21026),a=n(34347),c=n(44416),u=n(4567),l=n(64304),h=n(59795),d=n(36882),f=n(28795);var p;function m(t){switch(t){case p.Uninitialized:return 0;case p.TransferFeeConfig:return f.TRANSFER_FEE_CONFIG_SIZE;case p.TransferFeeAmount:return f.TRANSFER_FEE_AMOUNT_SIZE;case p.MintCloseAuthority:return h.MINT_CLOSE_AUTHORITY_SIZE;case p.ConfidentialTransferMint:return 97;case p.ConfidentialTransferAccount:return 286;case p.DefaultAccountState:return a.DEFAULT_ACCOUNT_STATE_SIZE;case p.ImmutableOwner:return c.IMMUTABLE_OWNER_SIZE;case p.MemoTransfer:return l.MEMO_TRANSFER_SIZE;case p.NonTransferable:return d.NON_TRANSFERABLE_SIZE;case p.InterestBearingMint:return u.INTEREST_BEARING_MINT_CONFIG_STATE_SIZE;default:throw Error(`Unknown extension type: ${t}`)}}function g(t){switch(t){case p.TransferFeeConfig:return p.TransferFeeAmount;case p.ConfidentialTransferMint:return p.ConfidentialTransferAccount;case p.TransferFeeAmount:case p.ConfidentialTransferAccount:case p.DefaultAccountState:case p.ImmutableOwner:case p.MemoTransfer:case p.MintCloseAuthority:case p.NonTransferable:case p.Uninitialized:case p.InterestBearingMint:return p.Uninitialized}}function y(t,n){if(0===t.length)return n;{const n=r.ACCOUNT_SIZE+s.ACCOUNT_TYPE_SIZE+t.filter(((e,n)=>n===t.indexOf(e))).map((t=>m(t)+e.TYPE_SIZE+e.LENGTH_SIZE)).reduce(((t,e)=>t+e));return n===o.MULTISIG_SIZE?n+e.TYPE_SIZE:n}}function b(t){return y(t,r.ACCOUNT_SIZE)}function v(t){const n=[];let r=0;for(;r<t.length;){const i=t.readUInt16LE(r);n.push(i);const o=t.readUInt16LE(r+e.TYPE_SIZE);r+=e.TYPE_SIZE+e.LENGTH_SIZE+o}return n}!function(t){t[t.Uninitialized=0]="Uninitialized",t[t.TransferFeeConfig=1]="TransferFeeConfig",t[t.TransferFeeAmount=2]="TransferFeeAmount",t[t.MintCloseAuthority=3]="MintCloseAuthority",t[t.ConfidentialTransferMint=4]="ConfidentialTransferMint",t[t.ConfidentialTransferAccount=5]="ConfidentialTransferAccount",t[t.DefaultAccountState=6]="DefaultAccountState",t[t.ImmutableOwner=7]="ImmutableOwner",t[t.MemoTransfer=8]="MemoTransfer",t[t.NonTransferable=9]="NonTransferable",t[t.InterestBearingMint=10]="InterestBearingMint"}(p=e.ExtensionType||(e.ExtensionType={})),e.TYPE_SIZE=2,e.LENGTH_SIZE=2,e.getTypeLen=m,e.getAccountTypeOfMintType=g,e.getMintLen=function(t){return y(t,i.MINT_SIZE)},e.getAccountLen=b,e.getExtensionData=function(t,n){let r=0;for(;r<n.length;){const i=n.readUInt16LE(r),o=n.readUInt16LE(r+e.TYPE_SIZE),s=r+e.TYPE_SIZE+e.LENGTH_SIZE;if(i==t)return n.slice(s,s+o);r=s+o}return null},e.getExtensionTypes=v,e.getAccountLenForMint=function(t){return b(v(t.tlvData).map(g))}},44416:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getImmutableOwner=e.IMMUTABLE_OWNER_SIZE=e.ImmutableOwnerLayout=void 0;const r=n(39386),i=n(90758);e.ImmutableOwnerLayout=(0,r.struct)([]),e.IMMUTABLE_OWNER_SIZE=e.ImmutableOwnerLayout.span,e.getImmutableOwner=function(t){const n=(0,i.getExtensionData)(i.ExtensionType.ImmutableOwner,t.tlvData);return null!==n?e.ImmutableOwnerLayout.decode(n):null}},66832:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};
1Object.defineProperty(e,"__esModule",{value:!0}),i(n(21026),e),i(n(34347),e),i(n(90758),e),i(n(44416),e),i(n(33661),e),i(n(64304),e),i(n(59795),e),i(n(36882),e),i(n(28795),e)},10186:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.updateRateInterestBearingMint=e.createInterestBearingMint=void 0;const i=n(26087),o=n(51421),s=n(44530),a=n(74227),c=n(90758),u=n(50472);e.createInterestBearingMint=function(t,e,n,o,l,h,d,f=i.Keypair.generate(),p,m=s.TOKEN_2022_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const r=(0,c.getMintLen)([c.ExtensionType.InterestBearingMint]),s=yield t.getMinimumBalanceForRentExemption(r),g=(new i.Transaction).add(i.SystemProgram.createAccount({fromPubkey:e.publicKey,newAccountPubkey:f.publicKey,space:r,lamports:s,programId:m}),(0,u.createInitializeInterestBearingMintInstruction)(f.publicKey,l,h,m),(0,a.createInitializeMintInstruction)(f.publicKey,d,n,o,m));return yield(0,i.sendAndConfirmTransaction)(t,g,[e,f],p),f.publicKey}))},e.updateRateInterestBearingMint=function(t,e,n,a,c,l=[],h,d=s.TOKEN_2022_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,s]=(0,o.getSigners)(a,l),f=(new i.Transaction).add((0,u.createUpdateRateInterestBearingMintInstruction)(n,r,c,s,d));return yield(0,i.sendAndConfirmTransaction)(t,f,[e,a,...s],h)}))}},33661:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(10186),e),i(n(50472),e),i(n(4567),e)},50472:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.createUpdateRateInterestBearingMintInstruction=e.createInitializeInterestBearingMintInstruction=e.interestBearingMintUpdateRateInstructionData=e.interestBearingMintInitializeInstructionData=e.InterestBearingMintInstruction=void 0;const i=n(39386),o=n(27278),s=n(26087),a=n(44530),c=n(59546),u=n(47623);var l;!function(t){t[t.Initialize=0]="Initialize",t[t.UpdateRate=1]="UpdateRate"}(l=e.InterestBearingMintInstruction||(e.InterestBearingMintInstruction={})),e.interestBearingMintInitializeInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,i.u8)("interestBearingMintInstruction"),(0,o.publicKey)("rateAuthority"),(0,i.s16)("rate")]),e.interestBearingMintUpdateRateInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,i.u8)("interestBearingMintInstruction"),(0,i.s16)("rate")]),e.createInitializeInterestBearingMintInstruction=function(t,n,i,o=a.TOKEN_2022_PROGRAM_ID){const c=[{pubkey:t,isSigner:!1,isWritable:!0}],h=r.alloc(e.interestBearingMintInitializeInstructionData.span);return e.interestBearingMintInitializeInstructionData.encode({instruction:u.TokenInstruction.InterestBearingMintExtension,interestBearingMintInstruction:l.Initialize,rateAuthority:n,rate:i},h),new s.TransactionInstruction({keys:c,programId:o,data:h})},e.createUpdateRateInterestBearingMintInstruction=function(t,n,i,o=[],h=a.TOKEN_2022_PROGRAM_ID){const d=(0,c.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!o.length,isWritable:!1}],n,o),f=r.alloc(e.interestBearingMintUpdateRateInstructionData.span);return e.interestBearingMintUpdateRateInstructionData.encode({instruction:u.TokenInstruction.InterestBearingMintExtension,interestBearingMintInstruction:l.UpdateRate,rate:i},f),new s.TransactionInstruction({keys:d,programId:h,data:f})}},4567:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.getInterestBearingMintConfigState=e.INTEREST_BEARING_MINT_CONFIG_STATE_SIZE=e.InterestBearingMintConfigStateLayout=void 0;const r=n(39386),i=n(27278),o=n(90758);e.InterestBearingMintConfigStateLayout=(0,r.struct)([(0,i.publicKey)("rateAuthority"),(0,r.ns64)("initializationTimestamp"),(0,r.s16)("preUpdateAverageRate"),(0,r.ns64)("lastUpdateTimestamp"),(0,r.s16)("currentRate")]),e.INTEREST_BEARING_MINT_CONFIG_STATE_SIZE=e.InterestBearingMintConfigStateLayout.span,e.getInterestBearingMintConfigState=function(t){const n=(0,o.getExtensionData)(o.ExtensionType.InterestBearingMint,t.tlvData);return null!==n?e.InterestBearingMintConfigStateLayout.decode(n):null}},53868:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.disableRequiredMemoTransfers=e.enableRequiredMemoTransfers=void 0;const i=n(26087),o=n(51421),s=n(44530),a=n(40044);e.enableRequiredMemoTransfers=function(t,e,n,c,u=[],l,h=s.TOKEN_2022_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,s]=(0,o.getSigners)(c,u),d=(new i.Transaction).add((0,a.createEnableRequiredMemoTransfersInstruction)(n,r,s,h));return yield(0,i.sendAndConfirmTransaction)(t,d,[e,...s],l)}))},e.disableRequiredMemoTransfers=function(t,e,n,c,u=[],l,h=s.TOKEN_2022_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,s]=(0,o.getSigners)(c,u),d=(new i.Transaction).add((0,a.createDisableRequiredMemoTransfersInstruction)(n,r,s,h));return yield(0,i.sendAndConfirmTransaction)(t,d,[e,...s],l)}))}},64304:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(53868),e),i(n(40044),e),i(n(52700),e)},40044:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.createDisableRequiredMemoTransfersInstruction=e.createEnableRequiredMemoTransfersInstruction=e.memoTransferInstructionData=e.MemoTransferInstruction=void 0;const i=n(39386),o=n(26087),s=n(44530),a=n(60913),c=n(47623);var u;function l(t,n,i,l,h){if(!(0,s.programSupportsExtensions)(h))throw new a.TokenUnsupportedInstructionError;const d=[{pubkey:n,isSigner:!1,isWritable:!0}];d.push({pubkey:i,isSigner:!l.length,isWritable:!1});for(const e of l)d.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1});const f=r.alloc(e.memoTransferInstructionData.span);return e.memoTransferInstructionData.encode({instruction:c.TokenInstruction.MemoTransferExtension,memoTransferInstruction:t?u.Enable:u.Disable},f),new o.TransactionInstruction({keys:d,programId:h,data:f})}!function(t){t[t.Enable=0]="Enable",t[t.Disable=1]="Disable"}(u=e.MemoTransferInstruction||(e.MemoTransferInstruction={})),e.memoTransferInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,i.u8)("memoTransferInstruction")]),e.createEnableRequiredMemoTransfersInstruction=function(t,e,n=[],r=s.TOKEN_2022_PROGRAM_ID){return l(!0,t,e,n,r)},e.createDisableRequiredMemoTransfersInstruction=function(t,e,n=[],r=s.TOKEN_2022_PROGRAM_ID){return l(!1,t,e,n,r)}},52700:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMemoTransfer=e.MEMO_TRANSFER_SIZE=e.MemoTransferLayout=void 0;const r=n(39386),i=n(27278),o=n(90758);e.MemoTransferLayout=(0,r.struct)([(0,i.bool)("requireIncomingTransferMemos")]),e.MEMO_TRANSFER_SIZE=e.MemoTransferLayout.span,e.getMemoTransfer=function(t){const n=(0,o.getExtensionData)(o.ExtensionType.MemoTransfer,t.tlvData);return null!==n?e.MemoTransferLayout.decode(n):null}},59795:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.getMintCloseAuthority=e.MINT_CLOSE_AUTHORITY_SIZE=e.MintCloseAuthorityLayout=void 0;const r=n(39386),i=n(27278),o=n(90758);e.MintCloseAuthorityLayout=(0,r.struct)([(0,i.publicKey)("closeAuthority")]),e.MINT_CLOSE_AUTHORITY_SIZE=e.MintCloseAuthorityLayout.span,e.getMintCloseAuthority=function(t){const n=(0,o.getExtensionData)(o.ExtensionType.MintCloseAuthority,t.tlvData);return null!==n?e.MintCloseAuthorityLayout.decode(n):null}},36882:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNonTransferable=e.NON_TRANSFERABLE_SIZE=e.NonTransferableLayout=void 0;const r=n(39386),i=n(90758);e.NonTransferableLayout=(0,r.struct)([]),e.NON_TRANSFERABLE_SIZE=e.NonTransferableLayout.span,e.getNonTransferable=function(t){const n=(0,i.getExtensionData)(i.ExtensionType.NonTransferable,t.tlvData);return null!==n?e.NonTransferableLayout.decode(n):null}},25297:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.harvestWithheldTokensToMint=e.withdrawWithheldTokensFromAccounts=e.withdrawWithheldTokensFromMint=e.transferCheckedWithFee=void 0;const i=n(26087),o=n(51421),s=n(44530),a=n(29520);e.transferCheckedWithFee=function(t,e,n,c,u,l,h,d,f,p=[],m,g=s.TOKEN_2022_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,s]=(0,o.getSigners)(l,p),y=(new i.Transaction).add((0,a.createTransferCheckedWithFeeInstruction)(n,c,u,r,h,d,f,p,g));return yield(0,i.sendAndConfirmTransaction)(t,y,[e,...s],m)}))},e.withdrawWithheldTokensFromMint=function(t,e,n,c,u,l=[],h,d=s.TOKEN_2022_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,s]=(0,o.getSigners)(u,l),f=(new i.Transaction).add((0,a.createWithdrawWithheldTokensFromMintInstruction)(n,c,r,s,d));return yield(0,i.sendAndConfirmTransaction)(t,f,[e,...s],h)}))},e.withdrawWithheldTokensFromAccounts=function(t,e,n,c,u,l,h,d,f=s.TOKEN_2022_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,s]=(0,o.getSigners)(u,l),p=(new i.Transaction).add((0,a.createWithdrawWithheldTokensFromAccountsInstruction)(n,c,r,s,h,f));return yield(0,i.sendAndConfirmTransaction)(t,p,[e,...s],d)}))},e.harvestWithheldTokensToMint=function(t,e,n,o,c,u=s.TOKEN_2022_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const r=(new i.Transaction).add((0,a.createHarvestWithheldTokensToMintInstruction)(n,o,u));return yield(0,i.sendAndConfirmTransaction)(t,r,[e],c)}))}},28795:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(25297),e),i(n(29520),e),i(n(96663),e)},29520:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHarvestWithheldTokensToMintInstructionUnchecked=e.decodeHarvestWithheldTokensToMintInstruction=e.createHarvestWithheldTokensToMintInstruction=e.harvestWithheldTokensToMintInstructionData=e.decodeWithdrawWithheldTokensFromAccountsInstructionUnchecked=e.decodeWithdrawWithheldTokensFromAccountsInstruction=e.createWithdrawWithheldTokensFromAccountsInstruction=e.withdrawWithheldTokensFromAccountsInstructionData=e.decodeWithdrawWithheldTokensFromMintInstructionUnchecked=e.decodeWithdrawWithheldTokensFromMintInstruction=e.createWithdrawWithheldTokensFromMintInstruction=e.withdrawWithheldTokensFromMintInstructionData=e.decodeTransferCheckedWithFeeInstructionUnchecked=e.decodeTransferCheckedWithFeeInstruction=e.createTransferCheckedWithFeeInstruction=e.transferCheckedWithFeeInstructionData=e.decodeInitializeTransferFeeConfigInstructionUnchecked=e.decodeInitializeTransferFeeConfigInstruction=e.createInitializeTransferFeeConfigInstruction=e.initializeTransferFeeConfigInstructionData=e.TransferFeeInstruction=void 0;const i=n(39386),o=n(27278),s=n(26087),a=n(44530),c=n(60913),u=n(47623);var l;function h({programId:t,keys:[n],data:r}){const{instruction:i,transferFeeInstruction:o,transferFeeConfigAuthorityOption:s,transferFeeConfigAuthority:a,withdrawWithheldAuthorityOption:c,withdrawWithheldAuthority:u,transferFeeBasisPoints:l,maximumFee:h}=e.initializeTransferFeeConfigInstructionData.decode(r);return{programId:t,keys:{mint:n},data:{instruction:i,transferFeeInstruction:o,transferFeeConfigAuthority:s?a:null,withdrawWithheldAuthority:c?u:null,transferFeeBasisPoints:l,maximumFee:h}}}function d({programId:t,keys:[n,r,i,o,...s],data:a}){const{instruction:c,transferFeeInstruction:u,amount:l,decimals:h,fee:d}=e.transferCheckedWithFeeInstructionData.decode(a);
1return{programId:t,keys:{source:n,mint:r,destination:i,authority:o,signers:s},data:{instruction:c,transferFeeInstruction:u,amount:l,decimals:h,fee:d}}}function f({programId:t,keys:[n,r,i,...o],data:s}){const{instruction:a,transferFeeInstruction:c}=e.withdrawWithheldTokensFromMintInstructionData.decode(s);return{programId:t,keys:{mint:n,destination:r,authority:i,signers:o},data:{instruction:a,transferFeeInstruction:c}}}function p({programId:t,keys:n,data:r}){const{instruction:i,transferFeeInstruction:o,numTokenAccounts:s}=e.withdrawWithheldTokensFromAccountsInstructionData.decode(r),[a,c,u,l,h]=[n[0],n[1],n[2],n.slice(3,3+s),n.slice(-1*s)];return{programId:t,keys:{mint:a,destination:c,authority:u,signers:l,sources:h},data:{instruction:i,transferFeeInstruction:o,numTokenAccounts:s}}}function m({programId:t,keys:[n,...r],data:i}){const{instruction:o,transferFeeInstruction:s}=e.harvestWithheldTokensToMintInstructionData.decode(i);return{programId:t,keys:{mint:n,sources:r},data:{instruction:o,transferFeeInstruction:s}}}!function(t){t[t.InitializeTransferFeeConfig=0]="InitializeTransferFeeConfig",t[t.TransferCheckedWithFee=1]="TransferCheckedWithFee",t[t.WithdrawWithheldTokensFromMint=2]="WithdrawWithheldTokensFromMint",t[t.WithdrawWithheldTokensFromAccounts=3]="WithdrawWithheldTokensFromAccounts",t[t.HarvestWithheldTokensToMint=4]="HarvestWithheldTokensToMint",t[t.SetTransferFee=5]="SetTransferFee"}(l=e.TransferFeeInstruction||(e.TransferFeeInstruction={})),e.initializeTransferFeeConfigInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,i.u8)("transferFeeInstruction"),(0,i.u8)("transferFeeConfigAuthorityOption"),(0,o.publicKey)("transferFeeConfigAuthority"),(0,i.u8)("withdrawWithheldAuthorityOption"),(0,o.publicKey)("withdrawWithheldAuthority"),(0,i.u16)("transferFeeBasisPoints"),(0,o.u64)("maximumFee")]),e.createInitializeTransferFeeConfigInstruction=function(t,n,i,o,h,d=a.TOKEN_2022_PROGRAM_ID){if(!(0,a.programSupportsExtensions)(d))throw new c.TokenUnsupportedInstructionError;const f=[{pubkey:t,isSigner:!1,isWritable:!0}],p=r.alloc(e.initializeTransferFeeConfigInstructionData.span);return e.initializeTransferFeeConfigInstructionData.encode({instruction:u.TokenInstruction.TransferFeeExtension,transferFeeInstruction:l.InitializeTransferFeeConfig,transferFeeConfigAuthorityOption:n?1:0,transferFeeConfigAuthority:n||new s.PublicKey(0),withdrawWithheldAuthorityOption:i?1:0,withdrawWithheldAuthority:i||new s.PublicKey(0),transferFeeBasisPoints:o,maximumFee:h},p),new s.TransactionInstruction({keys:f,programId:d,data:p})},e.decodeInitializeTransferFeeConfigInstruction=function(t,n){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.initializeTransferFeeConfigInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{mint:r},data:i}=h(t);if(i.instruction!==u.TokenInstruction.TransferFeeExtension||i.transferFeeInstruction!==l.InitializeTransferFeeConfig)throw new c.TokenInvalidInstructionTypeError;if(!r)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{mint:r},data:i}},e.decodeInitializeTransferFeeConfigInstructionUnchecked=h,e.transferCheckedWithFeeInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,i.u8)("transferFeeInstruction"),(0,o.u64)("amount"),(0,i.u8)("decimals"),(0,o.u64)("fee")]),e.createTransferCheckedWithFeeInstruction=function(t,n,i,o,h,d,f,p=[],m=a.TOKEN_2022_PROGRAM_ID){if(!(0,a.programSupportsExtensions)(m))throw new c.TokenUnsupportedInstructionError;const g=r.alloc(e.transferCheckedWithFeeInstructionData.span);e.transferCheckedWithFeeInstructionData.encode({instruction:u.TokenInstruction.TransferFeeExtension,transferFeeInstruction:l.TransferCheckedWithFee,amount:h,decimals:d,fee:f},g);const y=[];y.push({pubkey:t,isSigner:!1,isWritable:!0}),y.push({pubkey:n,isSigner:!1,isWritable:!1}),y.push({pubkey:i,isSigner:!1,isWritable:!0}),y.push({pubkey:o,isSigner:!p.length,isWritable:!1});for(const e of p)y.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1});return new s.TransactionInstruction({keys:y,programId:m,data:g})},e.decodeTransferCheckedWithFeeInstruction=function(t,n){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.transferCheckedWithFeeInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{source:r,mint:i,destination:o,authority:s,signers:a},data:h}=d(t);if(h.instruction!==u.TokenInstruction.TransferFeeExtension||h.transferFeeInstruction!==l.TransferCheckedWithFee)throw new c.TokenInvalidInstructionTypeError;if(!i)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{source:r,mint:i,destination:o,authority:s,signers:a||null},data:h}},e.decodeTransferCheckedWithFeeInstructionUnchecked=d,e.withdrawWithheldTokensFromMintInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,i.u8)("transferFeeInstruction")]),e.createWithdrawWithheldTokensFromMintInstruction=function(t,n,i,o=[],h=a.TOKEN_2022_PROGRAM_ID){if(!(0,a.programSupportsExtensions)(h))throw new c.TokenUnsupportedInstructionError;const d=r.alloc(e.withdrawWithheldTokensFromMintInstructionData.span);e.withdrawWithheldTokensFromMintInstructionData.encode({instruction:u.TokenInstruction.TransferFeeExtension,transferFeeInstruction:l.WithdrawWithheldTokensFromMint},d);const f=[];f.push({pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!o.length,isWritable:!1});for(const e of o)f.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1});return new s.TransactionInstruction({keys:f,programId:h,data:d})},e.decodeWithdrawWithheldTokensFromMintInstruction=function(t,n){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.withdrawWithheldTokensFromMintInstructionData.span)throw new c.TokenInvalidInstructionDataError;
1const{keys:{mint:r,destination:i,authority:o,signers:s},data:a}=f(t);if(a.instruction!==u.TokenInstruction.TransferFeeExtension||a.transferFeeInstruction!==l.WithdrawWithheldTokensFromMint)throw new c.TokenInvalidInstructionTypeError;if(!r)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{mint:r,destination:i,authority:o,signers:s||null},data:a}},e.decodeWithdrawWithheldTokensFromMintInstructionUnchecked=f,e.withdrawWithheldTokensFromAccountsInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,i.u8)("transferFeeInstruction"),(0,i.u8)("numTokenAccounts")]),e.createWithdrawWithheldTokensFromAccountsInstruction=function(t,n,i,o,h,d=a.TOKEN_2022_PROGRAM_ID){if(!(0,a.programSupportsExtensions)(d))throw new c.TokenUnsupportedInstructionError;const f=r.alloc(e.withdrawWithheldTokensFromAccountsInstructionData.span);e.withdrawWithheldTokensFromAccountsInstructionData.encode({instruction:u.TokenInstruction.TransferFeeExtension,transferFeeInstruction:l.WithdrawWithheldTokensFromAccounts,numTokenAccounts:h.length},f);const p=[];p.push({pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!o.length,isWritable:!1});for(const e of o)p.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1});for(const e of h)p.push({pubkey:e,isSigner:!1,isWritable:!0});return new s.TransactionInstruction({keys:p,programId:d,data:f})},e.decodeWithdrawWithheldTokensFromAccountsInstruction=function(t,n){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.withdrawWithheldTokensFromAccountsInstructionData.span)throw new c.TokenInvalidInstructionDataError;
1const{keys:{mint:r,destination:i,authority:o,signers:s,sources:a},data:h}=p(t);if(h.instruction!==u.TokenInstruction.TransferFeeExtension||h.transferFeeInstruction!==l.WithdrawWithheldTokensFromAccounts)throw new c.TokenInvalidInstructionTypeError;if(!r)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{mint:r,destination:i,authority:o,signers:s||null,sources:a||null},data:h}},e.decodeWithdrawWithheldTokensFromAccountsInstructionUnchecked=p,e.harvestWithheldTokensToMintInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,i.u8)("transferFeeInstruction")]),e.createHarvestWithheldTokensToMintInstruction=function(t,n,i=a.TOKEN_2022_PROGRAM_ID){if(!(0,a.programSupportsExtensions)(i))throw new c.TokenUnsupportedInstructionError;const o=r.alloc(e.harvestWithheldTokensToMintInstructionData.span);e.harvestWithheldTokensToMintInstructionData.encode({instruction:u.TokenInstruction.TransferFeeExtension,transferFeeInstruction:l.HarvestWithheldTokensToMint},o);const h=[];h.push({pubkey:t,isSigner:!1,isWritable:!0});for(const e of n)h.push({pubkey:e,isSigner:!1,isWritable:!0});return new s.TransactionInstruction({keys:h,programId:i,data:o})},e.decodeHarvestWithheldTokensToMintInstruction=function(t,n){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.harvestWithheldTokensToMintInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{mint:r,sources:i},data:o}=m(t);if(o.instruction!==u.TokenInstruction.TransferFeeExtension||o.transferFeeInstruction!==l.HarvestWithheldTokensToMint)throw new c.TokenInvalidInstructionTypeError;if(!r)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{mint:r,sources:i},data:o}},e.decodeHarvestWithheldTokensToMintInstructionUnchecked=m},96663:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTransferFeeAmount=e.getTransferFeeConfig=e.TRANSFER_FEE_AMOUNT_SIZE=e.TransferFeeAmountLayout=e.TRANSFER_FEE_CONFIG_SIZE=e.TransferFeeConfigLayout=e.transferFeeLayout=e.ONE_IN_BASIS_POINTS=e.MAX_FEE_BASIS_POINTS=void 0;const r=n(39386),i=n(27278),o=n(90758);function s(t){return(0,r.struct)([(0,i.u64)("epoch"),(0,i.u64)("maximumFee"),(0,r.u16)("transferFeeBasisPoints")],t)}e.MAX_FEE_BASIS_POINTS=1e4,e.ONE_IN_BASIS_POINTS=e.MAX_FEE_BASIS_POINTS,e.transferFeeLayout=s,e.TransferFeeConfigLayout=(0,r.struct)([(0,i.publicKey)("transferFeeConfigAuthority"),(0,i.publicKey)("withdrawWithheldAuthority"),(0,i.u64)("withheldAmount"),s("olderTransferFee"),s("newerTransferFee")]),e.TRANSFER_FEE_CONFIG_SIZE=e.TransferFeeConfigLayout.span,e.TransferFeeAmountLayout=(0,r.struct)([(0,i.u64)("withheldAmount")]),e.TRANSFER_FEE_AMOUNT_SIZE=e.TransferFeeAmountLayout.span,e.getTransferFeeConfig=function(t){const n=(0,o.getExtensionData)(o.ExtensionType.TransferFeeConfig,t.tlvData);return null!==n?e.TransferFeeConfigLayout.decode(n):null},e.getTransferFeeAmount=function(t){const n=(0,o.getExtensionData)(o.ExtensionType.TransferFeeAmount,t.tlvData);return null!==n?e.TransferFeeAmountLayout.decode(n):null}},29955:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(32510),e),i(n(44530),e),i(n(60913),e),i(n(66832),e),i(n(32689),e),i(n(40982),e)},10540:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeAmountToUiAmountInstructionUnchecked=e.decodeAmountToUiAmountInstruction=e.createAmountToUiAmountInstruction=e.amountToUiAmountInstructionData=void 0;const i=n(39386),o=n(27278),s=n(26087),a=n(44530),c=n(60913),u=n(47623);function l({programId:t,keys:[n],data:r}){return{programId:t,keys:{mint:n},data:e.amountToUiAmountInstructionData.decode(r)}}e.amountToUiAmountInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,o.u64)("amount")]),e.createAmou
1ntToUiAmountInstruction=function(t,n,i=a.TOKEN_PROGRAM_ID){const o=[{pubkey:t,isSigner:!1,isWritable:!1}],c=r.alloc(e.amountToUiAmountInstructionData.span);return e.amountToUiAmountInstructionData.encode({instruction:u.TokenInstruction.AmountToUiAmount,amount:BigInt(n)},c),new s.TransactionInstruction({keys:o,programId:i,data:c})},e.decodeAmountToUiAmountInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.amountToUiAmountInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{mint:r},data:i}=l(t);if(i.instruction!==u.TokenInstruction.AmountToUiAmount)throw new c.TokenInvalidInstructionTypeError;if(!r)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{mint:r},data:i}},e.decodeAmountToUiAmountInstructionUnchecked=l},55431:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeApproveInstructionUnchecked=e.decodeApproveInstruction=e.createApproveInstruction=e.approveInstructionData=void 0;const i=n(39386),o=n(27278),s=n(26087),a=n(44530),c=n(60913),u=n(59546),l=n(47623);function h({programId:t,keys:[n,r,i,...o],data:s}){return{programId:t,keys:{account:n,delegate:r,owner:i,multiSigners:o},data:e.approveInstructionData.decode(s)}}e.approveInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,o.u64)("amount")]),e.createApproveInstruction=function(t,n,i,o,c=[],h=a.TOKEN_PROGRAM_ID){const d=(0,u.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1}],i,c),f=r.alloc(e.approveInstructionData.span);return e.approveInstructionData.encode({instruction:l.TokenInstruction.Approve,amount:BigInt(o)},f),new s.TransactionInstruction({keys:d,programId:h,data:f})},e.decodeApproveInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.approveInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{account:r,delegate:i,owner:o,multiSigners:s},data:u}=h(t);if(u.instruction!==l.TokenInstruction.Approve)throw new c.TokenInvalidInstructionTypeError;if(!r||!i||!o)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,delegate:i,owner:o,multiSigners:s},data:u}},e.decodeApproveInstructionUnchecked=h},18228:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeApproveCheckedInstructionUnchecked=e.decodeApproveCheckedInstruction=e.createApproveCheckedInstruction=e.approveCheckedInstructionData=void 0;const i=n(39386),o=n(27278),s=n(26087),a=n(44530),c=n(60913),u=n(59546),l=n(47623);function h({programId:t,keys:[n,r,i,o,...s],data:a}){return{programId:t,keys:{account:n,mint:r,delegate:i,owner:o,multiSigners:s},data:e.approveCheckedInstructionData.decode(a)}}e.approveCheckedInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,o.u64)("amount"),(0,i.u8)("decimals")]),e.createApproveCheckedInstruction=function(t,n,i,o,c,h,d=[],f=a.TOKEN_PROGRAM_ID){const p=(0,u.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!1,isWritable:!1}],o,d),m=r.alloc(e.approveCheckedInstructionData.span);return e.approveCheckedInstructionData.encode({instruction:l.TokenInstruction.ApproveChecked,amount:BigInt(c),decimals:h},m),new s.TransactionInstruction({keys:p,programId:f,data:m})},e.decodeApproveCheckedInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.approveCheckedInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{account:r,mint:i,delegate:o,owner:s,multiSigners:u},data:d}=h(t);if(d.instruction!==l.TokenInstruction.ApproveChecked)throw new c.TokenInvalidInstructionTypeError;if(!r||!i||!o||!s)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,mint:i,delegate:o,owner:s,multiSigners:u},data:d}},e.decodeApproveCheckedInstructionUnchecked=h},31183:function(t,e,n){"use strict";var r=n(48764).Buffer;
1Object.defineProperty(e,"__esModule",{value:!0}),e.createAssociatedTokenAccountIdempotentInstruction=e.createAssociatedTokenAccountInstruction=void 0;const i=n(26087),o=n(44530);function s(t,e,n,r,s,a=o.TOKEN_PROGRAM_ID,c=o.ASSOCIATED_TOKEN_PROGRAM_ID){const u=[{pubkey:t,isSigner:!0,isWritable:!0},{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:i.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:a,isSigner:!1,isWritable:!1}];return new i.TransactionInstruction({keys:u,programId:c,data:s})}e.createAssociatedTokenAccountInstruction=function(t,e,n,i,a=o.TOKEN_PROGRAM_ID,c=o.ASSOCIATED_TOKEN_PROGRAM_ID){return s(t,e,n,i,r.alloc(0),a,c)},e.createAssociatedTokenAccountIdempotentInstruction=function(t,e,n,i,a=o.TOKEN_PROGRAM_ID,c=o.ASSOCIATED_TOKEN_PROGRAM_ID){return s(t,e,n,i,r.from([1]),a,c)}},8339:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeBurnInstructionUnchecked=e.decodeBurnInstruction=e.createBurnInstruction=e.burnInstructionData=void 0;const i=n(39386),o=n(27278),s=n(26087),a=n(44530),c=n(60913),u=n(59546),l=n(47623);function h({programId:t,keys:[n,r,i,...o],data:s}){return{programId:t,keys:{account:n,mint:r,owner:i,multiSigners:o},data:e.burnInstructionData.decode(s)}}e.burnInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,o.u64)("amount")]),e.createBurnInstruction=function(t,n,i,o,c=[],h=a.TOKEN_PROGRAM_ID){const d=(0,u.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0}],i,c),f=r.alloc(e.burnInstructionData.span);return e.burnInstructionData.encode({instruction:l.TokenInstruction.Burn,amount:BigInt(o)},f),new s.TransactionInstruction({keys:d,programId:h,data:f})},e.decodeBurnInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.burnInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{account:r,mint:i,owner:o,multiSigners:s},data:u}=h(t);if(u.instruction!==l.TokenInstruction.Burn)throw new c.TokenInvalidInstructionTypeError;if(!r||!i||!o)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,mint:i,owner:o,multiSigners:s},data:u}},e.decodeBurnInstructionUnchecked=h},1853:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeBurnCheckedInstructionUnchecked=e.decodeBurnCheckedInstruction=e.createBurnCheckedInstruction=e.burnCheckedInstructionData=void 0;const i=n(39386),o=n(27278),s=n(26087),a=n(44530),c=n(60913),u=n(59546),l=n(47623);function h({programId:t,keys:[n,r,i,...o],data:s}){return{programId:t,keys:{account:n,mint:r,owner:i,multiSigners:o},data:e.burnCheckedInstructionData.decode(s)}}e.burnCheckedInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,o.u64)("amount"),(0,i.u8)("decimals")]),e.createBurnCheckedInstruction=function(t,n,i,o,c,h=[],d=a.TOKEN_PROGRAM_ID){const f=(0,u.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0}],i,h),p=r.alloc(e.burnCheckedInstructionData.span);return e.burnCheckedInstructionData.encode({instruction:l.TokenInstruction.BurnChecked,amount:BigInt(o),decimals:c},p),new s.TransactionInstruction({keys:f,programId:d,data:p})},e.decodeBurnCheckedInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.burnCheckedInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{account:r,mint:i,owner:o,multiSigners:s},data:u}=h(t);if(u.instruction!==l.TokenInstruction.BurnChecked)throw new c.TokenInvalidInstructionTypeError;if(!r||!i||!o)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,mint:i,owner:o,multiSigners:s},data:u}},e.decodeBurnCheckedInstructionUnchecked=h},36038:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeCloseAccountInstructionUnchecked=e.decodeCloseAccountInstruction=e.createCloseAccountInstruction=e.closeAccountInstructionData=void 0;const i=n(39386),o=n(26087),s=n(44530),a=n(60913),c=n(59546),u=n(47623);function l({programId:t,keys:[n,r,i,...o],data:s}){return{programId:t,keys:{account:n,destination:r,authority:i,multiSigners:o},data:e.closeAccountInstructionData.decode(s)}}e.closeAccountInstructionData=(0,i.struct)([(0,i.u8)("instruction")]),e.createCloseAccountInstruction=function(t,n,i,a=[],l=s.TOKEN_PROGRAM_ID){const h=(0,c.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0}],i,a),d=r.alloc(e.closeAccountInstructionData.span);return e.closeAccountInstructionData.encode({instruction:u.TokenInstruction.CloseAccount},d),new o.TransactionInstruction({keys:h,programId:l,data:d})},e.decodeCloseAccountInstruction=function(t,n=s.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new a.TokenInvalidInstructionProgramError;if(t.data.length!==e.closeAccountInstructionData.span)throw new a.TokenInvalidInstructionDataError;const{keys:{account:r,destination:i,authority:o,multiSigners:c},data:h}=l(t);if(h.instruction!==u.TokenInstruction.CloseAccount)throw new a.TokenInvalidInstructionTypeError;if(!r||!i||!o)throw new a.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,destination:i,authority:o,multiSigners:c},data:h}},e.decodeCloseAccountInstructionUnchecked=l},42421:function(t,e,n){"use strict";var r=n(48764).Buffer;
1Object.defineProperty(e,"__esModule",{value:!0}),e.createCreateNativeMintInstruction=e.createNativeMintInstructionData=void 0;const i=n(39386),o=n(26087),s=n(44530),a=n(60913),c=n(47623);e.createNativeMintInstructionData=(0,i.struct)([(0,i.u8)("instruction")]),e.createCreateNativeMintInstruction=function(t,n=s.NATIVE_MINT_2022,i=s.TOKEN_2022_PROGRAM_ID){if(!(0,s.programSupportsExtensions)(i))throw new a.TokenUnsupportedInstructionError;const u=[{pubkey:t,isSigner:!0,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:o.SystemProgram.programId,isSigner:!1,isWritable:!1}],l=r.alloc(e.createNativeMintInstructionData.span);return e.createNativeMintInstructionData.encode({instruction:c.TokenInstruction.CreateNativeMint},l),new o.TransactionInstruction({keys:u,programId:i,data:l})}},7561:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isUiamountToAmountInstruction=e.isAmountToUiAmountInstruction=e.isInitializeMint2Instruction=e.isInitializeAccount3Instruction=e.isSyncNativeInstruction=e.isInitializeAccount2Instruction=e.isBurnCheckedInstruction=e.isMintToCheckedInstruction=e.isApproveCheckedInstruction=e.isTransferCheckedInstruction=e.isThawAccountInstruction=e.isFreezeAccountInstruction=e.isCloseAccountInstruction=e.isBurnInstruction=e.isMintToInstruction=e.isSetAuthorityInstruction=e.isRevokeInstruction=e.isApproveInstruction=e.isTransferInstruction=e.isInitializeMultisigInstruction=e.isInitializeAccountInstruction=e.isInitializeMintInstruction=e.decodeInstruction=void 0;const r=n(39386),i=n(44530),o=n(60913),s=n(10540),a=n(55431),c=n(18228),u=n(8339),l=n(1853),h=n(36038),d=n(56513),f=n(58328),p=n(63642),m=n(25910),g=n(74227),y=n(19066),b=n(65061),v=n(74761),w=n(70698),_=n(62216),k=n(95816),S=n(75836),x=n(19040),I=n(72874),A=n(35593),E=n(47623),T=n(21470);e.decodeInstruction=function(t,e=i.TOKEN_PROGRAM_ID){if(!t.data.length)throw new o.TokenInvalidInstructionDataError;const n=(0,r.u8)().decode(t.data);if(n===E.TokenInstruction.InitializeMint)return(0,g.decodeInitializeMintInstruction)(t,e);if(n===E.TokenInstruction.InitializeAccount)return(0,f.decodeInitializeAccountInstruction)(t,e);if(n===E.TokenInstruction.InitializeMultisig)return(0,b.decodeInitializeMultisigInstruction)(t,e);if(n===E.TokenInstruction.Transfer)return(0,I.decodeTransferInstruction)(t,e);if(n===E.TokenInstruction.Approve)return(0,a.decodeApproveInstruction)(t,e);if(n===E.TokenInstruction.Revoke)return(0,_.decodeRevokeInstruction)(t,e);if(n===E.TokenInstruction.SetAuthority)return(0,k.decodeSetAuthorityInstruction)(t,e);if(n===E.TokenInstruction.MintTo)return(0,v.decodeMintToInstruction)(t,e);if(n===E.TokenInstruction.Burn)return(0,u.decodeBurnInstruction)(t,e);if(n===E.TokenInstruction.CloseAccount)return(0,h.decodeCloseAccountInstruction)(t,e);if(n===E.TokenInstruction.FreezeAccount)return(0,d.decodeFreezeAccountInstruction)(t,e);if(n===E.TokenInstruction.ThawAccount)return(0,x.decodeThawAccountInstruction)(t,e);if(n===E.TokenInstruction.TransferChecked)return(0,A.decodeTransferCheckedInstruction)(t,e);if(n===E.TokenInstruction.ApproveChecked)return(0,c.decodeApproveCheckedInstruction)(t,e);if(n===E.TokenInstruction.MintToChecked)return(0,w.decodeMintToCheckedInstruction)(t,e);if(n===E.TokenInstruction.BurnChecked)return(0,l.decodeBurnCheckedInstruction)(t,e);if(n===E.TokenInstruction.InitializeAccount2)return(0,p.decodeInitializeAccount2Instruction)(t,e);if(n===E.TokenInstruction.SyncNative)return(0,S.decodeSyncNativeInstruction)(t,e);if(n===E.TokenInstruction.InitializeAccount3)return(0,m.decodeInitializeAccount3Instruction)(t,e);if(n===E.TokenInstruction.InitializeMint2)return(0,y.decodeInitializeMint2Instruction)(t,e);if(n===E.TokenInstruction.AmountToUiAmount)return(0,s.decodeAmountToUiAmountInstruction)(t,e);if(n===E.TokenInstruction.UiAmountToAmount)return(0,T.decodeUiAmountToAmountInstruction)(t,e);if(n===E.TokenInstruction.InitializeMultisig2)throw new o.TokenInvalidInstructionTypeError;throw new o.TokenInvalidInstructionTypeError},e.isInitializeMintInstruction=function(t){return t.data.instruction===E.TokenInstruction.InitializeMint},e.isInitializeAccountInstruction=function(t){return t.data.instruction===E.TokenInstruction.InitializeAccount},e.isInitializeMultisigInstruction=function(t){return t.data.instruction===E.TokenInstruction.InitializeMultisig}
1,e.isTransferInstruction=function(t){return t.data.instruction===E.TokenInstruction.Transfer},e.isApproveInstruction=function(t){return t.data.instruction===E.TokenInstruction.Approve},e.isRevokeInstruction=function(t){return t.data.instruction===E.TokenInstruction.Revoke},e.isSetAuthorityInstruction=function(t){return t.data.instruction===E.TokenInstruction.SetAuthority},e.isMintToInstruction=function(t){return t.data.instruction===E.TokenInstruction.MintTo},e.isBurnInstruction=function(t){return t.data.instruction===E.TokenInstruction.Burn},e.isCloseAccountInstruction=function(t){return t.data.instruction===E.TokenInstruction.CloseAccount},e.isFreezeAccountInstruction=function(t){return t.data.instruction===E.TokenInstruction.FreezeAccount},e.isThawAccountInstruction=function(t){return t.data.instruction===E.TokenInstruction.ThawAccount},e.isTransferCheckedInstruction=function(t){return t.data.instruction===E.TokenInstruction.TransferChecked},e.isApproveCheckedInstruction=function(t){return t.data.instruction===E.TokenInstruction.ApproveChecked},e.isMintToCheckedInstruction=function(t){return t.data.instruction===E.TokenInstruction.MintToChecked},e.isBurnCheckedInstruction=function(t){return t.data.instruction===E.TokenInstruction.BurnChecked},e.isInitializeAccount2Instruction=function(t){return t.data.instruction===E.TokenInstruction.InitializeAccount2},e.isSyncNativeInstruction=function(t){return t.data.instruction===E.TokenInstruction.SyncNative},e.isInitializeAccount3Instruction=function(t){return t.data.instruction===E.TokenInstruction.InitializeAccount3},e.isInitializeMint2Instruction=function(t){return t.data.instruction===E.TokenInstruction.InitializeMint2},e.isAmountToUiAmountInstruction=function(t){return t.data.instruction===E.TokenInstruction.AmountToUiAmount},e.isUiamountToAmountInstruction=function(t){return t.data.instruction===E.TokenInstruction.UiAmountToAmount}},56513:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeFreezeAccountInstructionUnchecked=e.decodeFreezeAccountInstruction=e.createFreezeAccountInstruction=e.freezeAccountInstructionData=void 0;const i=n(39386),o=n(26087),s=n(44530),a=n(60913),c=n(59546),u=n(47623);function l({programId:t,keys:[n,r,i,...o],data:s}){return{programId:t,keys:{account:n,mint:r,authority:i,multiSigners:o},data:e.freezeAccountInstructionData.decode(s)}}e.freezeAccountInstructionData=(0,i.struct)([(0,i.u8)("instruction")]),e.createFreezeAccountInstruction=function(t,n,i,a=[],l=s.TOKEN_PROGRAM_ID){const h=(0,c.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1}],i,a),d=r.alloc(e.freezeAccountInstructionData.span);return e.freezeAccountInstructionData.encode({instruction:u.TokenInstruction.FreezeAccount},d),new o.TransactionInstruction({keys:h,programId:l,data:d})},e.decodeFreezeAccountInstruction=function(t,n=s.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new a.TokenInvalidInstructionProgramError;if(t.data.length!==e.freezeAccountInstructionData.span)throw new a.TokenInvalidInstructionDataError;const{keys:{account:r,mint:i,authority:o,multiSigners:c},data:h}=l(t);if(h.instruction!==u.TokenInstruction.FreezeAccount)throw new a.TokenInvalidInstructionTypeError;if(!r||!i||!o)throw new a.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,mint:i,authority:o,multiSigners:c},data:h}},e.decodeFreezeAccountInstructionUnchecked=l},32689:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(31183),e),i(n(7561),e),i(n(47623),e),i(n(74227),e),i(n(58328),e),i(n(65061),e),i(n(72874),e),i(n(55431),e),i(n(62216),e),i(n(95816),e),i(n(74761),e),i(n(8339),e),i(n(36038),e),i(n(56513),e),i(n(19040),e),i(n(35593),e),i(n(18228),e),i(n(70698),e),i(n(1853),e),i(n(63642),e),i(n(75836),e),i(n(25910),e),i(n(38817),e),i(n(19066),e),i(n(51327),e),i(n(10540),e),i(n(21470),e),i(n(36520),e),i(n(93537),e),i(n(42421),e),i(n(66780),e)},58328:function(t,e,n){"use strict";var r=n(48764).Buffer;
1Object.defineProperty(e,"__esModule",{value:!0}),e.decodeInitializeAccountInstructionUnchecked=e.decodeInitializeAccountInstruction=e.createInitializeAccountInstruction=e.initializeAccountInstructionData=void 0;const i=n(39386),o=n(26087),s=n(44530),a=n(60913),c=n(47623);function u({programId:t,keys:[n,r,i,o],data:s}){return{programId:t,keys:{account:n,mint:r,owner:i,rent:o},data:e.initializeAccountInstructionData.decode(s)}}e.initializeAccountInstructionData=(0,i.struct)([(0,i.u8)("instruction")]),e.createInitializeAccountInstruction=function(t,n,i,a=s.TOKEN_PROGRAM_ID){const u=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!1,isWritable:!1},{pubkey:o.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],l=r.alloc(e.initializeAccountInstructionData.span);return e.initializeAccountInstructionData.encode({instruction:c.TokenInstruction.InitializeAccount},l),new o.TransactionInstruction({keys:u,programId:a,data:l})},e.decodeInitializeAccountInstruction=function(t,n=s.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new a.TokenInvalidInstructionProgramError;if(t.data.length!==e.initializeAccountInstructionData.span)throw new a.TokenInvalidInstructionDataError;const{keys:{account:r,mint:i,owner:o,rent:l},data:h}=u(t);if(h.instruction!==c.TokenInstruction.InitializeAccount)throw new a.TokenInvalidInstructionTypeError;if(!r||!i||!o||!l)throw new a.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,mint:i,owner:o,rent:l},data:h}},e.decodeInitializeAccountInstructionUnchecked=u},63642:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeInitializeAccount2InstructionUnchecked=e.decodeInitializeAccount2Instruction=e.createInitializeAccount2Instruction=e.initializeAccount2InstructionData=void 0;const i=n(39386),o=n(27278),s=n(26087),a=n(44530),c=n(60913),u=n(47623);function l({programId:t,keys:[n,r,i],data:o}){return{programId:t,keys:{account:n,mint:r,rent:i},data:e.initializeAccount2InstructionData.decode(o)}}e.initializeAccount2InstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,o.publicKey)("owner")]),e.createInitializeAccount2Instruction=function(t,n,i,o=a.TOKEN_PROGRAM_ID){const c=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:s.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],l=r.alloc(e.initializeAccount2InstructionData.span);return e.initializeAccount2InstructionData.encode({instruction:u.TokenInstruction.InitializeAccount2,owner:i},l),new s.TransactionInstruction({keys:c,programId:o,data:l})},e.decodeInitializeAccount2Instruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.initializeAccount2InstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{account:r,mint:i,rent:o},data:s}=l(t);if(s.instruction!==u.TokenInstruction.InitializeAccount2)throw new c.TokenInvalidInstructionTypeError;if(!r||!i||!o)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,mint:i,rent:o},data:s}},e.decodeInitializeAccount2InstructionUnchecked=l},25910:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeInitializeAccount3InstructionUnchecked=e.decodeInitializeAccount3Instruction=e.createInitializeAccount3Instruction=e.initializeAccount3InstructionData=void 0;const i=n(39386),o=n(27278),s=n(26087),a=n(44530),c=n(60913),u=n(47623);function l({programId:t,keys:[n,r],data:i}){return{programId:t,keys:{account:n,mint:r},data:e.initializeAccount3InstructionData.decode(i)}}e.initializeAccount3InstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,o.publicKey)("owner")]),e.createInitializeAccount3Instruction=function(t,n,i,o=a.TOKEN_PROGRAM_ID){const c=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1}],l=r.alloc(e.initializeAccount3InstructionData.span);return e.initializeAccount3InstructionData.encode({instruction:u.TokenInstruction.InitializeAccount3,owner:i},l),new s.TransactionInstruction({keys:c,programId:o,data:l})},e.decodeInitializeAccount3Instruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.initializeAccount3InstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{account:r,mint:i},data:o}=l(t);if(o.instruction!==u.TokenInstruction.InitializeAccount3)throw new c.TokenInvalidInstructionTypeError;if(!r||!i)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,mint:i},data:o}},e.decodeInitializeAccount3InstructionUnchecked=l},51327:function(t,e,n){"use strict";var r=n(48764).Buffer;
1Object.defineProperty(e,"__esModule",{value:!0}),e.decodeInitializeImmutableOwnerInstructionUnchecked=e.decodeInitializeImmutableOwnerInstruction=e.createInitializeImmutableOwnerInstruction=e.initializeImmutableOwnerInstructionData=void 0;const i=n(39386),o=n(26087),s=n(60913),a=n(47623);function c({programId:t,keys:[n],data:r}){const{instruction:i}=e.initializeImmutableOwnerInstructionData.decode(r);return{programId:t,keys:{account:n},data:{instruction:i}}}e.initializeImmutableOwnerInstructionData=(0,i.struct)([(0,i.u8)("instruction")]),e.createInitializeImmutableOwnerInstruction=function(t,n){const i=[{pubkey:t,isSigner:!1,isWritable:!0}],s=r.alloc(e.initializeImmutableOwnerInstructionData.span);return e.initializeImmutableOwnerInstructionData.encode({instruction:a.TokenInstruction.InitializeImmutableOwner},s),new o.TransactionInstruction({keys:i,programId:n,data:s})},e.decodeInitializeImmutableOwnerInstruction=function(t,n){if(!t.programId.equals(n))throw new s.TokenInvalidInstructionProgramError;if(t.data.length!==e.initializeImmutableOwnerInstructionData.span)throw new s.TokenInvalidInstructionDataError;const{keys:{account:r},data:i}=c(t);if(i.instruction!==a.TokenInstruction.InitializeImmutableOwner)throw new s.TokenInvalidInstructionTypeError;if(!r)throw new s.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r},data:i}},e.decodeInitializeImmutableOwnerInstructionUnchecked=c},74227:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeInitializeMintInstructionUnchecked=e.decodeInitializeMintInstruction=e.createInitializeMintInstruction=e.initializeMintInstructionData=void 0;const i=n(39386),o=n(27278),s=n(26087),a=n(44530),c=n(60913),u=n(47623);function l({programId:t,keys:[n,r],data:i}){const{instruction:o,decimals:s,mintAuthority:a,freezeAuthorityOption:c,freezeAuthority:u}=e.initializeMintInstructionData.decode(i);return{programId:t,keys:{mint:n,rent:r},data:{instruction:o,decimals:s,mintAuthority:a,freezeAuthority:c?u:null}}}e.initializeMintInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,i.u8)("decimals"),(0,o.publicKey)("mintAuthority"),(0,i.u8)("freezeAuthorityOption"),(0,o.publicKey)("freezeAuthority")]),e.createInitializeMintInstruction=function(t,n,i,o,c=a.TOKEN_PROGRAM_ID){const l=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:s.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],h=r.alloc(e.initializeMintInstructionData.span);return e.initializeMintInstructionData.encode({instruction:u.TokenInstruction.InitializeMint,decimals:n,mintAuthority:i,freezeAuthorityOption:o?1:0,freezeAuthority:o||new s.PublicKey(0)},h),new s.TransactionInstruction({keys:l,programId:c,data:h})},e.decodeInitializeMintInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.initializeMintInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{mint:r,rent:i},data:o}=l(t);if(o.instruction!==u.TokenInstruction.InitializeMint)throw new c.TokenInvalidInstructionTypeError;if(!r||!i)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{mint:r,rent:i},data:o}},e.decodeInitializeMintInstructionUnchecked=l},19066:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeInitializeMint2InstructionUnchecked=e.decodeInitializeMint2Instruction=e.createInitializeMint2Instruction=e.initializeMint2InstructionData=void 0;const i=n(39386),o=n(27278),s=n(26087),a=n(44530),c=n(60913),u=n(47623);function l({programId:t,keys:[n],data:r}){const{instruction:i,decimals:o,mintAuthority:s,freezeAuthorityOption:a,freezeAuthority:c}=e.initializeMint2InstructionData.decode(r);return{programId:t,keys:{mint:n},data:{instruction:i,decimals:o,mintAuthority:s,freezeAuthority:a?c:null}}}e.initializeMint2InstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,i.u8)("decimals"),(0,o.publicKey)("mintAuthority"),(0,i.u8)("freezeAuthorityOption"),(0,o.publicKey)("freezeAuthority")]),e.createInitializeMint2Instruction=function(t,n,i,o,c=a.TOKEN_PROGRAM_ID){const l=[{pubkey:t,isSigner:!1,isWritable:!0}],h=r.alloc(e.initializeMint2InstructionData.span);return e.initializeMint2InstructionData.encode({instruction:u.TokenInstruction.InitializeMint2,decimals:n,mintAuthority:i,freezeAuthorityOption:o?1:0,freezeAuthority:o||new s.PublicKey(0)},h),new s.TransactionInstruction({keys:l,programId:c,data:h})},e.decodeInitializeMint2Instruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.initializeMint2InstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{mint:r},data:i}=l(t);if(i.instruction!==u.TokenInstruction.InitializeMint2)throw new c.TokenInvalidInstructionTypeError;if(!r)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{mint:r},data:i}},e.decodeInitializeMint2InstructionUnchecked=l},36520:function(t,e,n){"use strict";var r=n(48764).Buffer;
1Object.defineProperty(e,"__esModule",{value:!0}),e.decodeInitializeMintCloseAuthorityInstructionUnchecked=e.decodeInitializeMintCloseAuthorityInstruction=e.createInitializeMintCloseAuthorityInstruction=e.initializeMintCloseAuthorityInstructionData=void 0;const i=n(39386),o=n(27278),s=n(26087),a=n(44530),c=n(60913),u=n(47623);function l({programId:t,keys:[n],data:r}){const{instruction:i,closeAuthorityOption:o,closeAuthority:s}=e.initializeMintCloseAuthorityInstructionData.decode(r);return{programId:t,keys:{mint:n},data:{instruction:i,closeAuthority:o?s:null}}}e.initializeMintCloseAuthorityInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,i.u8)("closeAuthorityOption"),(0,o.publicKey)("closeAuthority")]),e.createInitializeMintCloseAuthorityInstruction=function(t,n,i){if(!(0,a.programSupportsExtensions)(i))throw new c.TokenUnsupportedInstructionError;const o=[{pubkey:t,isSigner:!1,isWritable:!0}],l=r.alloc(e.initializeMintCloseAuthorityInstructionData.span);return e.initializeMintCloseAuthorityInstructionData.encode({instruction:u.TokenInstruction.InitializeMintCloseAuthority,closeAuthorityOption:n?1:0,closeAuthority:n||new s.PublicKey(0)},l),new s.TransactionInstruction({keys:o,programId:i,data:l})},e.decodeInitializeMintCloseAuthorityInstruction=function(t,n){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.initializeMintCloseAuthorityInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{mint:r},data:i}=l(t);if(i.instruction!==u.TokenInstruction.InitializeMintCloseAuthority)throw new c.TokenInvalidInstructionTypeError;if(!r)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{mint:r},data:i}},e.decodeInitializeMintCloseAuthorityInstructionUnchecked=l},65061:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeInitializeMultisigInstructionUnchecked=e.decodeInitializeMultisigInstruction=e.createInitializeMultisigInstruction=e.initializeMultisigInstructionData=void 0;const i=n(39386),o=n(26087),s=n(44530),a=n(60913),c=n(47623);function u({programId:t,keys:[n,r,...i],data:o}){return{programId:t,keys:{account:n,rent:r,signers:i},data:e.initializeMultisigInstructionData.decode(o)}}e.initializeMultisigInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,i.u8)("m")]),e.createInitializeMultisigInstruction=function(t,n,i,a=s.TOKEN_PROGRAM_ID){const u=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:o.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];for(const e of n)u.push({pubkey:e,isSigner:!1,isWritable:!1});const l=r.alloc(e.initializeMultisigInstructionData.span);return e.initializeMultisigInstructionData.encode({instruction:c.TokenInstruction.InitializeMultisig,m:i},l),new o.TransactionInstruction({keys:u,programId:a,data:l})},e.decodeInitializeMultisigInstruction=function(t,n=s.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new a.TokenInvalidInstructionProgramError;if(t.data.length!==e.initializeMultisigInstructionData.span)throw new a.TokenInvalidInstructionDataError;const{keys:{account:r,rent:i,signers:o},data:l}=u(t);if(l.instruction!==c.TokenInstruction.InitializeMultisig)throw new a.TokenInvalidInstructionTypeError;if(!r||!i||!o.length)throw new a.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,rent:i,signers:o},data:l}},e.decodeInitializeMultisigInstructionUnchecked=u},38817:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},66780:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.createInitializeNonTransferableMintInstruction=e.initializeNonTransferableMintInstructionData=void 0;const i=n(39386),o=n(26087),s=n(44530),a=n(60913),c=n(47623);e.initializeNonTransferableMintInstructionData=(0,i.struct)([(0,i.u8)("instruction")]),e.createInitializeNonTransferableMintInstruction=function(t,n){if(!(0,s.programSupportsExtensions)(n))throw new a.TokenUnsupportedInstructionError;const i=[{pubkey:t,isSigner:!1,isWritable:!0}],u=r.alloc(e.initializeNonTransferableMintInstructionData.span);return e.initializeNonTransferableMintInstructionData.encode({instruction:c.TokenInstruction.InitializeNonTransferableMint},u),new o.TransactionInstruction({keys:i,programId:n,data:u})}},59546:function(t,e){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.addSigners=void 0,e.addSigners=function(t,e,n){if(n.length){t.push({pubkey:e,isSigner:!1,isWritable:!1});for(const e of n)t.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})}else t.push({pubkey:e,isSigner:!0,isWritable:!1});return t}},74761:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeMintToInstructionUnchecked=e.decodeMintToInstruction=e.createMintToInstruction=e.mintToInstructionData=void 0;const i=n(39386),o=n(27278),s=n(26087),a=n(44530),c=n(60913),u=n(59546),l=n(47623);function h({programId:t,keys:[n,r,i,...o],data:s}){return{programId:t,keys:{mint:n,destination:r,authority:i,multiSigners:o},data:e.mintToInstructionData.decode(s)}}e.mintToInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,o.u64)("amount")]),e.createMintToInstruction=function(t,n,i,o,c=[],h=a.TOKEN_PROGRAM_ID){const d=(0,u.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0}],i,c),f=r.alloc(e.mintToInstructionData.span);return e.mintToInstructionData.encode({instruction:l.TokenInstruction.MintTo,amount:BigInt(o)},f),new s.TransactionInstruction({keys:d,programId:h,data:f})},e.decodeMintToInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.mintToInstructionData.span)throw new c.TokenInvalidInstructionDataError;
1const{keys:{mint:r,destination:i,authority:o,multiSigners:s},data:u}=h(t);if(u.instruction!==l.TokenInstruction.MintTo)throw new c.TokenInvalidInstructionTypeError;if(!r||!i||!o)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{mint:r,destination:i,authority:o,multiSigners:s},data:u}},e.decodeMintToInstructionUnchecked=h},70698:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeMintToCheckedInstructionUnchecked=e.decodeMintToCheckedInstruction=e.createMintToCheckedInstruction=e.mintToCheckedInstructionData=void 0;const i=n(39386),o=n(27278),s=n(26087),a=n(44530),c=n(60913),u=n(59546),l=n(47623);function h({programId:t,keys:[n,r,i,...o],data:s}){return{programId:t,keys:{mint:n,destination:r,authority:i,multiSigners:o},data:e.mintToCheckedInstructionData.decode(s)}}e.mintToCheckedInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,o.u64)("amount"),(0,i.u8)("decimals")]),e.createMintToCheckedInstruction=function(t,n,i,o,c,h=[],d=a.TOKEN_PROGRAM_ID){const f=(0,u.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0}],i,h),p=r.alloc(e.mintToCheckedInstructionData.span);return e.mintToCheckedInstructionData.encode({instruction:l.TokenInstruction.MintToChecked,amount:BigInt(o),decimals:c},p),new s.TransactionInstruction({keys:f,programId:d,data:p})},e.decodeMintToCheckedInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.mintToCheckedInstructionData.span)throw new c.TokenInvalidInstructionDataError;
1const{keys:{mint:r,destination:i,authority:o,multiSigners:s},data:u}=h(t);if(u.instruction!==l.TokenInstruction.MintToChecked)throw new c.TokenInvalidInstructionTypeError;if(!r||!i||!o)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{mint:r,destination:i,authority:o,multiSigners:s},data:u}},e.decodeMintToCheckedInstructionUnchecked=h},93537:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.createReallocateInstruction=void 0;const i=n(39386),o=n(26087),s=n(44530),a=n(60913),c=n(59546),u=n(47623);e.createReallocateInstruction=function(t,e,n,l,h=[],d=s.TOKEN_2022_PROGRAM_ID){if(!(0,s.programSupportsExtensions)(d))throw new a.TokenUnsupportedInstructionError;const f=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:e,isSigner:!0,isWritable:!0},{pubkey:o.SystemProgram.programId,isSigner:!1,isWritable:!1}],p=(0,c.addSigners)(f,l,h),m=(0,i.struct)([(0,i.u8)("instruction"),(0,i.seq)((0,i.u16)(),n.length,"extensionTypes")]),g=r.alloc(m.span);return m.encode({instruction:u.TokenInstruction.Reallocate,extensionTypes:n},g),new o.TransactionInstruction({keys:p,programId:d,data:g})}},62216:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeRevokeInstructionUnchecked=e.decodeRevokeInstruction=e.createRevokeInstruction=e.revokeInstructionData=void 0;const i=n(39386),o=n(26087),s=n(44530),a=n(60913),c=n(59546),u=n(47623);function l({programId:t,keys:[n,r,...i],data:o}){return{programId:t,keys:{account:n,owner:r,multiSigners:i},data:e.revokeInstructionData.decode(o)}}e.revokeInstructionData=(0,i.struct)([(0,i.u8)("instruction")]),e.createRevokeInstruction=function(t,n,i=[],a=s.TOKEN_PROGRAM_ID){const l=(0,c.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0}],n,i),h=r.alloc(e.revokeInstructionData.span);return e.revokeInstructionData.encode({instruction:u.TokenInstruction.Revoke},h),new o.TransactionInstruction({keys:l,programId:a,data:h})},e.decodeRevokeInstruction=function(t,n=s.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new a.TokenInvalidInstructionProgramError;if(t.data.length!==e.revokeInstructionData.span)throw new a.TokenInvalidInstructionDataError;const{keys:{account:r,owner:i,multiSigners:o},data:c}=l(t);if(c.instruction!==u.TokenInstruction.Revoke)throw new a.TokenInvalidInstructionTypeError;if(!r||!i)throw new a.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,owner:i,multiSigners:o},data:c}},e.decodeRevokeInstructionUnchecked=l},95816:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeSetAuthorityInstructionUnchecked=e.decodeSetAuthorityInstruction=e.createSetAuthorityInstruction=e.setAuthorityInstructionData=e.AuthorityType=void 0;const i=n(39386),o=n(27278),s=n(26087),a=n(44530),c=n(60913),u=n(59546),l=n(47623);function h({programId:t,keys:[n,r,...i],data:o}){const{instruction:s,authorityType:a,newAuthorityOption:c,newAuthority:u}=e.setAuthorityInstructionData.decode(o);return{programId:t,keys:{account:n,currentAuthority:r,multiSigners:i},data:{instruction:s,authorityType:a,newAuthority:c?u:null}}}!function(t){t[t.MintTokens=0]="MintTokens",t[t.FreezeAccount=1]="FreezeAccount",t[t.AccountOwner=2]="AccountOwner",t[t.CloseAccount=3]="CloseAccount"}(e.AuthorityType||(e.AuthorityType={})),e.setAuthorityInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,i.u8)("authorityType"),(0,i.u8)("newAuthorityOption"),(0,o.publicKey)("newAuthority")]),e.createSetAuthorityInstruction=function(t,n,i,o,c=[],h=a.TOKEN_PROGRAM_ID){const d=(0,u.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0}],n,c),f=r.alloc(e.setAuthorityInstructionData.span);return e.setAuthorityInstructionData.encode({instruction:l.TokenInstruction.SetAuthority,authorityType:i,newAuthorityOption:o?1:0,newAuthority:o||new s.PublicKey(0)},f),new s.TransactionInstruction({keys:d,programId:h,data:f})},e.decodeSetAuthorityInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.setAuthorityInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{account:r,currentAuthority:i,multiSigners:o},data:s}=h(t);if(s.instruction!==l.TokenInstruction.SetAuthority)throw new c.TokenInvalidInstructionTypeError;if(!r||!i)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,currentAuthority:i,multiSigners:o},data:s}},e.decodeSetAuthorityInstructionUnchecked=h},75836:function(t,e,n){"use strict";var r=n(48764).Buffer;
1Object.defineProperty(e,"__esModule",{value:!0}),e.decodeSyncNativeInstructionUnchecked=e.decodeSyncNativeInstruction=e.createSyncNativeInstruction=e.syncNativeInstructionData=void 0;const i=n(39386),o=n(26087),s=n(44530),a=n(60913),c=n(47623);function u({programId:t,keys:[n],data:r}){return{programId:t,keys:{account:n},data:e.syncNativeInstructionData.decode(r)}}e.syncNativeInstructionData=(0,i.struct)([(0,i.u8)("instruction")]),e.createSyncNativeInstruction=function(t,n=s.TOKEN_PROGRAM_ID){const i=[{pubkey:t,isSigner:!1,isWritable:!0}],a=r.alloc(e.syncNativeInstructionData.span);return e.syncNativeInstructionData.encode({instruction:c.TokenInstruction.SyncNative},a),new o.TransactionInstruction({keys:i,programId:n,data:a})},e.decodeSyncNativeInstruction=function(t,n=s.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new a.TokenInvalidInstructionProgramError;if(t.data.length!==e.syncNativeInstructionData.span)throw new a.TokenInvalidInstructionDataError;const{keys:{account:r},data:i}=u(t);if(i.instruction!==c.TokenInstruction.SyncNative)throw new a.TokenInvalidInstructionTypeError;if(!r)throw new a.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r},data:i}},e.decodeSyncNativeInstructionUnchecked=u},19040:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeThawAccountInstructionUnchecked=e.decodeThawAccountInstruction=e.createThawAccountInstruction=e.thawAccountInstructionData=void 0;const i=n(39386),o=n(26087),s=n(44530),a=n(60913),c=n(59546),u=n(47623);function l({programId:t,keys:[n,r,i,...o],data:s}){return{programId:t,keys:{account:n,mint:r,authority:i,multiSigners:o},data:e.thawAccountInstructionData.decode(s)}}e.thawAccountInstructionData=(0,i.struct)([(0,i.u8)("instruction")]),e.createThawAccountInstruction=function(t,n,i,a=[],l=s.TOKEN_PROGRAM_ID){const h=(0,c.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1}],i,a),d=r.alloc(e.thawAccountInstructionData.span);return e.thawAccountInstructionData.encode({instruction:u.TokenInstruction.ThawAccount},d),new o.TransactionInstruction({keys:h,programId:l,data:d})},e.decodeThawAccountInstruction=function(t,n=s.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new a.TokenInvalidInstructionProgramError;if(t.data.length!==e.thawAccountInstructionData.span)throw new a.TokenInvalidInstructionDataError;const{keys:{account:r,mint:i,authority:o,multiSigners:c},data:h}=l(t);if(h.instruction!==u.TokenInstruction.ThawAccount)throw new a.TokenInvalidInstructionTypeError;if(!r||!i||!o)throw new a.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,mint:i,authority:o,multiSigners:c},data:h}},e.decodeThawAccountInstructionUnchecked=l},72874:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeTransferInstructionUnchecked=e.decodeTransferInstruction=e.createTransferInstruction=e.transferInstructionData=void 0;const i=n(39386),o=n(27278),s=n(26087),a=n(44530),c=n(60913),u=n(59546),l=n(47623);function h({programId:t,keys:[n,r,i,...o],data:s}){return{programId:t,keys:{source:n,destination:r,owner:i,multiSigners:o},data:e.transferInstructionData.decode(s)}}e.transferInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,o.u64)("amount")]),e.createTransferInstruction=function(t,n,i,o,c=[],h=a.TOKEN_PROGRAM_ID){const d=(0,u.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0}],i,c),f=r.alloc(e.transferInstructionData.span);return e.transferInstructionData.encode({instruction:l.TokenInstruction.Transfer,amount:BigInt(o)},f),new s.TransactionInstruction({keys:d,programId:h,data:f})},e.decodeTransferInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.transferInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{source:r,destination:i,owner:o,multiSigners:s},data:u}=h(t);if(u.instruction!==l.TokenInstruction.Transfer)throw new c.TokenInvalidInstructionTypeError;if(!r||!i||!o)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{source:r,destination:i,owner:o,multiSigners:s},data:u}}
1,e.decodeTransferInstructionUnchecked=h},35593:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeTransferCheckedInstructionUnchecked=e.decodeTransferCheckedInstruction=e.createTransferCheckedInstruction=e.transferCheckedInstructionData=void 0;const i=n(39386),o=n(27278),s=n(26087),a=n(44530),c=n(60913),u=n(59546),l=n(47623);function h({programId:t,keys:[n,r,i,o,...s],data:a}){return{programId:t,keys:{source:n,mint:r,destination:i,owner:o,multiSigners:s},data:e.transferCheckedInstructionData.decode(a)}}e.transferCheckedInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,o.u64)("amount"),(0,i.u8)("decimals")]),e.createTransferCheckedInstruction=function(t,n,i,o,c,h,d=[],f=a.TOKEN_PROGRAM_ID){const p=(0,u.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!1,isWritable:!0}],o,d),m=r.alloc(e.transferCheckedInstructionData.span);return e.transferCheckedInstructionData.encode({instruction:l.TokenInstruction.TransferChecked,amount:BigInt(c),decimals:h},m),new s.TransactionInstruction({keys:p,programId:f,data:m})},e.decodeTransferCheckedInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.transferCheckedInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{source:r,mint:i,destination:o,owner:s,multiSigners:u},data:d}=h(t);if(d.instruction!==l.TokenInstruction.TransferChecked)throw new c.TokenInvalidInstructionTypeError;if(!r||!i||!o||!s)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{source:r,mint:i,destination:o,owner:s,multiSigners:u},data:d}},e.decodeTransferCheckedInstructionUnchecked=h},47623:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenInstruction=void 0,function(t){t[t.InitializeMint=0]="InitializeMint",t[t.InitializeAccount=1]="InitializeAccount",t[t.InitializeMultisig=2]="InitializeMultisig",t[t.Transfer=3]="Transfer",t[t.Approve=4]="Approve",t[t.Revoke=5]="Revoke",t[t.SetAuthority=6]="SetAuthority",t[t.MintTo=7]="MintTo",t[t.Burn=8]="Burn",t[t.CloseAccount=9]="CloseAccount",t[t.FreezeAccount=10]="FreezeAccount",t[t.ThawAccount=11]="ThawAccount",t[t.TransferChecked=12]="TransferChecked",t[t.ApproveChecked=13]="ApproveChecked",t[t.MintToChecked=14]="MintToChecked",t[t.BurnChecked=15]="BurnChecked",t[t.InitializeAccount2=16]="InitializeAccount2",t[t.SyncNative=17]="SyncNative",t[t.InitializeAccount3=18]="InitializeAccount3",t[t.InitializeMultisig2=19]="InitializeMultisig2",t[t.InitializeMint2=20]="InitializeMint2",t[t.GetAccountDataSize=21]="GetAccountDataSize",t[t.InitializeImmutableOwner=22]="InitializeImmutableOwner",t[t.AmountToUiAmount=23]="AmountToUiAmount",t[t.UiAmountToAmount=24]="UiAmountToAmount",t[t.InitializeMintCloseAuthority=25]="InitializeMintCloseAuthority",t[t.TransferFeeExtension=26]="TransferFeeExtension",t[t.ConfidentialTransferExtension=27]="ConfidentialTransferExtension",t[t.DefaultAccountStateExtension=28]="DefaultAccountStateExtension",t[t.Reallocate=29]="Reallocate",t[t.MemoTransferExtension=30]="MemoTransferExtension",t[t.CreateNativeMint=31]="CreateNativeMint",t[t.InitializeNonTransferableMint=32]="InitializeNonTransferableMint",t[t.InterestBearingMintExtension=33]="InterestBearingMintExtension"}(e.TokenInstruction||(e.TokenInstruction={}))},21470:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeUiAmountToAmountInstructionUnchecked=e.decodeUiAmountToAmountInstruction=e.createUiAmountToAmountInstruction=void 0;const i=n(39386),o=n(26087),s=n(44530),a=n(60913),c=n(47623);function u({programId:t,keys:[e],data:n}){return{programId:t,keys:{mint:e},data:(0,i.struct)([(0,i.u8)("instruction"),(0,i.blob)(n.length-1,"amount")]).decode(n)}}e.createUiAmountToAmountInstruction=function(t,e,n=s.TOKEN_PROGRAM_ID){const a=[{pubkey:t,isSigner:!1,isWritable:!1}],u=r.from(e,"utf8"),l=(0,i.struct)([(0,i.u8)("instruction"),(0,i.blob)(u.length,"amount")]),h=r.alloc(l.span);return l.encode({instruction:c.TokenInstruction.UiAmountToAmount,amount:u},h),new o.TransactionInstruction({keys:a,programId:n,data:h})}
1,e.decodeUiAmountToAmountInstruction=function(t,e=s.TOKEN_PROGRAM_ID){if(!t.programId.equals(e))throw new a.TokenInvalidInstructionProgramError;const n=(0,i.struct)([(0,i.u8)("instruction"),(0,i.blob)(t.data.length-1,"amount")]);if(t.data.length!==n.span)throw new a.TokenInvalidInstructionDataError;const{keys:{mint:r},data:o}=u(t);if(o.instruction!==c.TokenInstruction.UiAmountToAmount)throw new a.TokenInvalidInstructionTypeError;if(!r)throw new a.TokenInvalidInstructionKeysError;return{programId:e,keys:{mint:r},data:o}},e.decodeUiAmountToAmountInstructionUnchecked=u},48820:function(t,e,n){"use strict";var r=n(48764).Buffer,i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.unpackAccount=e.getMinimumBalanceForRentExemptAccountWithExtensions=e.getMinimumBalanceForRentExemptAccount=e.getMultipleAccounts=e.getAccount=e.ACCOUNT_SIZE=e.AccountLayout=e.AccountState=void 0;const o=n(39386),s=n(27278),a=n(44530),c=n(60913),u=n(21026),l=n(90758),h=n(22114);var d;function f(t,e,n){return i(this,void 0,void 0,(function*(){const r=(0,l.getAccountLen)(e);return yield t.getMinimumBalanceForRentExemption(r,n)}))}function p(t,n,i=a.TOKEN_PROGRAM_ID){if(!n)throw new c.TokenAccountNotFoundError;if(!n.owner.equals(i))throw new c.TokenInvalidAccountOwnerError;if(n.data.length<e.ACCOUNT_SIZE)throw new c.TokenInvalidAccountSizeError;const o=e.AccountLayout.decode(n.data.slice(0,e.ACCOUNT_SIZE));let s=r.alloc(0);if(n.data.length>e.ACCOUNT_SIZE){if(n.data.length===h.MULTISIG_SIZE)throw new c.TokenInvalidAccountSizeError;if(n.data[e.ACCOUNT_SIZE]!=u.AccountType.Account)throw new c.TokenInvalidAccountError;s=n.data.slice(e.ACCOUNT_SIZE+u.ACCOUNT_TYPE_SIZE)}return{address:t,mint:o.mint,owner:o.owner,amount:o.amount,delegate:o.delegateOption?o.delegate:null,delegatedAmount:o.delegatedAmount,isInitialized:o.state!==d.Uninitialized,isFrozen:o.state===d.Frozen,isNative:!!o.isNativeOption,rentExemptReserve:o.isNativeOption?o.isNative:null,closeAuthority:o.closeAuthorityOption?o.closeAuthority:null,tlvData:s}}!function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initialized=1]="Initialized",t[t.Frozen=2]="Frozen"}(d=e.AccountState||(e.AccountState={})),e.AccountLayout=(0,o.struct)([(0,s.publicKey)("mint"),(0,s.publicKey)("owner"),(0,s.u64)("amount"),(0,o.u32)("delegateOption"),(0,s.publicKey)("delegate"),(0,o.u8)("state"),(0,o.u32)("isNativeOption"),(0,s.u64)("isNative"),(0,s.u64)("delegatedAmount"),(0,o.u32)("closeAuthorityOption"),(0,s.publicKey)("closeAuthority")]),e.ACCOUNT_SIZE=e.AccountLayout.span,e.getAccount=function(t,e,n,r=a.TOKEN_PROGRAM_ID){return i(this,void 0,void 0,(function*(){const i=yield t.getAccountInfo(e,n);return p(e,i,r)}))},e.getMultipleAccounts=function(t,e,n,r=a.TOKEN_PROGRAM_ID){return i(this,void 0,void 0,(function*(){const i=yield t.getMultipleAccountsInfo(e,n);return e.map(((t,e)=>p(t,i[e],r)))}))},e.getMinimumBalanceForRentExemptAccount=function(t,e){return i(this,void 0,void 0,(function*(){return yield f(t,[],e)}))},e.getMinimumBalanceForRentExemptAccountWithExtensions=f,e.unpackAccount=p},40982:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(48820),e),i(n(66446),e),i(n(22114),e)},66446:function(t,e,n){"use strict";var r=n(48764).Buffer,i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};
1Object.defineProperty(e,"__esModule",{value:!0}),e.getAssociatedTokenAddressSync=e.getAssociatedTokenAddress=e.getMinimumBalanceForRentExemptMintWithExtensions=e.getMinimumBalanceForRentExemptMint=e.unpackMint=e.getMint=e.MINT_SIZE=e.MintLayout=void 0;const o=n(39386),s=n(27278),a=n(26087),c=n(44530),u=n(60913),l=n(21026),h=n(90758),d=n(48820),f=n(22114);function p(t,n,i=c.TOKEN_PROGRAM_ID){if(!n)throw new u.TokenAccountNotFoundError;if(!n.owner.equals(i))throw new u.TokenInvalidAccountOwnerError;if(n.data.length<e.MINT_SIZE)throw new u.TokenInvalidAccountSizeError;const o=e.MintLayout.decode(n.data.slice(0,e.MINT_SIZE));let s=r.alloc(0);if(n.data.length>e.MINT_SIZE){if(n.data.length<=d.ACCOUNT_SIZE)throw new u.TokenInvalidAccountSizeError;if(n.data.length===f.MULTISIG_SIZE)throw new u.TokenInvalidAccountSizeError;if(n.data[d.ACCOUNT_SIZE]!=l.AccountType.Mint)throw new u.TokenInvalidMintError;s=n.data.slice(d.ACCOUNT_SIZE+l.ACCOUNT_TYPE_SIZE)}return{address:t,mintAuthority:o.mintAuthorityOption?o.mintAuthority:null,supply:o.supply,decimals:o.decimals,isInitialized:o.isInitialized,freezeAuthority:o.freezeAuthorityOption?o.freezeAuthority:null,tlvData:s}}function m(t,e,n){return i(this,void 0,void 0,(function*(){const r=(0,h.getMintLen)(e);return yield t.getMinimumBalanceForRentExemption(r,n)}))}e.MintLayout=(0,o.struct)([(0,o.u32)("mintAuthorityOption"),(0,s.publicKey)("mintAuthority"),(0,s.u64)("supply"),(0,o.u8)("decimals"),(0,s.bool)("isInitialized"),(0,o.u32)("freezeAuthorityOption"),(0,s.publicKey)("freezeAuthority")]),e.MINT_SIZE=e.MintLayout.span,e.getMint=function(t,e,n,r=c.TOKEN_PROGRAM_ID){return i(this,void 0,void 0,(function*(){const i=yield t.getAccountInfo(e,n);return p(e,i,r)}))},e.unpackMint=p,e.getMinimumBalanceForRentExemptMint=function(t,e){return i(this,void 0,void 0,(function*(){return yield m(t,[],e)}))},e.getMinimumBalanceForRentExemptMintWithExtensions=m,e.getAssociatedTokenAddress=function(t,e,n=!1,r=c.TOKEN_PROGRAM_ID,o=c.ASSOCIATED_TOKEN_PROGRAM_ID){return i(this,void 0,void 0,(function*(){if(!n&&!a.PublicKey.isOnCurve(e.toBuffer()))throw new u.TokenOwnerOffCurveError;const[i]=yield a.PublicKey.findProgramAddress([e.toBuffer(),r.toBuffer(),t.toBuffer()],o);return i}))},e.getAssociatedTokenAddressSync=function(t,e,n=!1,r=c.TOKEN_PROGRAM_ID,i=c.ASSOCIATED_TOKEN_PROGRAM_ID){if(!n&&!a.PublicKey.isOnCurve(e.toBuffer()))throw new u.TokenOwnerOffCurveError;const[o]=a.PublicKey.findProgramAddressSync([e.toBuffer(),r.toBuffer(),t.toBuffer()],i);return o}},22114:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getMinimumBalanceForRentExemptMultisig=e.unpackMultisig=e.getMultisig=e.MULTISIG_SIZE=e.MultisigLayout=void 0;const i=n(39386),o=n(27278),s=n(44530),a=n(60913);function c(t,n,r=s.TOKEN_PROGRAM_ID){if(!n)throw new a.TokenAccountNotFoundError;if(!n.owner.equals(r))throw new a.TokenInvalidAccountOwnerError;if(n.data.length!=e.MULTISIG_SIZE)throw new a.TokenInvalidAccountSizeError;const i=e.MultisigLayout.decode(n.data);return Object.assign({address:t},i)}e.MultisigLayout=(0,i.struct)([(0,i.u8)("m"),(0,i.u8)("n"),(0,o.bool)("isInitialized"),(0,o.publicKey)("signer1"),(0,o.publicKey)("signer2"),(0,o.publicKey)("signer3"),(0,o.publicKey)("signer4"),(0,o.publicKey)("signer5"),(0,o.publicKey)("signer6"),(0,o.publicKey)("signer7"),(0,o.publicKey)("signer8"),(0,o.publicKey)("signer9"),(0,o.publicKey)("signer10"),(0,o.publicKey)("signer11")]),e.MULTISIG_SIZE=e.MultisigLayout.span,e.getMultisig=function(t,e,n,i=s.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const r=yield t.getAccountInfo(e,n);return c(e,r,i)}))},e.unpackMultisig=c,e.getMinimumBalanceForRentExemptMultisig=function(t,n){return r(this,void 0,void 0,(function*(){return yield t.getMinimumBalanceForRentExemption(e.MULTISIG_SIZE,n)}))}},36481:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Prom
1ise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.approve=void 0;const i=n(68873),o=n(37185),s=n(67319),a=n(86560);e.approve=function(t,e,n,c,u,l,h=[],d,f=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(u,h),p=(new i.Transaction).add((0,s.createApproveInstruction)(n,c,r,l,h,f));return yield(0,i.sendAndConfirmTransaction)(t,p,[e,...o],d)}))}},29431:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.approveChecked=void 0;const i=n(68873),o=n(37185),s=n(67319),a=n(86560);e.approveChecked=function(t,e,n,c,u,l,h,d,f=[],p,m=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(l,f),g=(new i.Transaction).add((0,s.createApproveCheckedInstruction)(c,n,u,r,h,d,f,m));return yield(0,i.sendAndConfirmTransaction)(t,g,[e,...o],p)}))}},6826:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.burn=void 0;const i=n(68873),o=n(37185),s=n(67319),a=n(86560);e.burn=function(t,e,n,c,u,l,h=[],d,f=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(u,h),p=(new i.Transaction).add((0,s.createBurnInstruction)(n,c,r,l,h,f));return yield(0,i.sendAndConfirmTransaction)(t,p,[e,...o],d)}))}},42119:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.burnChecked=void 0;const i=n(68873),o=n(37185),s=n(67319),a=n(86560);e.burnChecked=function(t,e,n,c,u,l,h,d=[],f,p=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(u,d),m=(new i.Transaction).add((0,s.createBurnCheckedInstruction)(n,c,r,l,h,d,p));return yield(0,i.sendAndConfirmTransaction)(t,m,[e,...o],f)}))}},34832:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.closeAccount=void 0;const i=n(68873),o=n(37185),s=n(67319),a=n(86560);e.closeAccount=function(t,e,n,c,u,l=[],h,d=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(u,l),f=(new i.Transaction).add((0,s.createCloseAccountInstruction)(n,c,r,l,d));return yield(0,i.sendAndConfirmTransaction)(t,f,[e,...o],h)}))}},72600:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.createAccount=void 0;const i=n(68873),o=n(37185),s=n(67319),a=n(82777),c=n(47197);e.createAccount=function(t,e,n,u,l,h,d=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){if(!l)return yield(0,c.createAssociatedTokenAccount)(t,e,n,u,h,d);const r=yield(0,a.getMinimumBalanceForRentExemptAccount)(t),o=(new i.Transaction).add(i.SystemProgram.createAccount({fromPubkey:e.publicKey,newAccountPubkey:l.publicKey,space:a.ACCOUNT_SIZE,lamports:r,programId:d}),(0,s.createInitializeAccountInstruction)(l.publicKey,n,u,d));return yield(0,i.sendAndConfirmTransaction)(t,o,[e,l],h),l.publicKey}))}},47197:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Prom
1ise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.createAssociatedTokenAccount=void 0;const i=n(68873),o=n(37185),s=n(67319),a=n(82777);e.createAssociatedTokenAccount=function(t,e,n,c,u,l=o.TOKEN_PROGRAM_ID,h=o.ASSOCIATED_TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const r=yield(0,a.getAssociatedTokenAddress)(n,c,!1,l,h),o=(new i.Transaction).add((0,s.createAssociatedTokenAccountInstruction)(e.publicKey,r,c,n,l,h));return yield(0,i.sendAndConfirmTransaction)(t,o,[e],u),r}))}},35893:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.createMint=void 0;const i=n(68873),o=n(37185),s=n(67319),a=n(82777);e.createMint=function(t,e,n,c,u,l=i.Keypair.generate(),h,d=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const r=yield(0,a.getMinimumBalanceForRentExemptMint)(t),o=(new i.Transaction).add(i.SystemProgram.createAccount({fromPubkey:e.publicKey,newAccountPubkey:l.publicKey,space:a.MINT_SIZE,lamports:r,programId:d}),(0,s.createInitializeMintInstruction)(l.publicKey,u,n,c,d));return yield(0,i.sendAndConfirmTransaction)(t,o,[e,l],h),l.publicKey}))}},19089:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.createMultisig=void 0;const i=n(68873),o=n(37185),s=n(67319),a=n(82777);e.createMultisig=function(t,e,n,c,u=i.Keypair.generate(),l,h=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const r=yield(0,a.getMinimumBalanceForRentExemptMultisig)(t),o=(new i.Transaction).add(i.SystemProgram.createAccount({fromPubkey:e.publicKey,newAccountPubkey:u.publicKey,space:a.MULTISIG_SIZE,lamports:r,programId:h}),(0,s.createInitializeMultisigInstruction)(u.publicKey,n,c,h));return yield(0,i.sendAndConfirmTransaction)(t,o,[e,u],l),u.publicKey}))}},73700:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.createWrappedNativeAccount=void 0;const i=n(68873),o=n(37185),s=n(67319),a=n(82777),c=n(72600);e.createWrappedNativeAccount=function(t,e,n,u,l,h,d=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){if(!u)return yield(0,c.createAccount)(t,e,o.NATIVE_MINT,n,l,h,d);if(!l){const r=yield(0,a.getAssociatedTokenAddress)(o.NATIVE_MINT,n,!1,d,o.ASSOCIATED_TOKEN_PROGRAM_ID),c=(new i.Transaction).add((0,s.createAssociatedTokenAccountInstruction)(e.publicKey,r,n,o.NATIVE_MINT,d,o.ASSOCIATED_TOKEN_PROGRAM_ID),i.SystemProgram.transfer({fromPubkey:e.publicKey,toPubkey:r,lamports:u}),(0,s.createSyncNativeInstruction)(r,d));return yield(0,i.sendAndConfirmTransaction)(t,c,[e],h),r}const r=yield(0,a.getMinimumBalanceForRentExemptAccount)(t),f=(new i.Transaction).add(i.SystemProgram.createAccount({fromPubkey:e.publicKey,newAccountPubkey:l.publicKey,space:a.ACCOUNT_SIZE,lamports:r,programId:d}),i.SystemProgram.transfer({fromPubkey:e.publicKey,toPubkey:l.publicKey,lamports:u}),(0,s.createInitializeAccountInstruction)(l.publicKey,o.NATIVE_MINT,n,d));return yield(0,i.sendAndConfirmTransaction)(t,f,[e,l],h),l.publicKey}))}},77922:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Prom
1ise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.freezeAccount=void 0;const i=n(68873),o=n(37185),s=n(67319),a=n(86560);e.freezeAccount=function(t,e,n,c,u,l=[],h,d=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(u,l),f=(new i.Transaction).add((0,s.createFreezeAccountInstruction)(n,c,r,l,d));return yield(0,i.sendAndConfirmTransaction)(t,f,[e,...o],h)}))}},78290:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getOrCreateAssociatedTokenAccount=void 0;const i=n(68873),o=n(37185),s=n(43426),a=n(67319),c=n(82777);e.getOrCreateAssociatedTokenAccount=function(t,e,n,u,l=!1,h,d,f=o.TOKEN_PROGRAM_ID,p=o.ASSOCIATED_TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const r=yield(0,c.getAssociatedTokenAddress)(n,u,l,f,p);let o;try{o=yield(0,c.getAccount)(t,r,h,f)}catch(m){if(!(m instanceof s.TokenAccountNotFoundError||m instanceof s.TokenInvalidAccountOwnerError))throw m;try{const o=(new i.Transaction).add((0,a.createAssociatedTokenAccountInstruction)(e.publicKey,r,u,n,f,p));yield(0,i.sendAndConfirmTransaction)(t,o,[e],d)}catch(m){}o=yield(0,c.getAccount)(t,r,h,f)}if(!o.mint.equals(n))throw new s.TokenInvalidMintError;if(!o.owner.equals(u))throw new s.TokenInvalidOwnerError;return o}))}},31505:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(35893),e),i(n(72600),e),i(n(73700),e),i(n(19089),e),i(n(90865),e),i(n(36481),e),i(n(24954),e),i(n(44557),e),i(n(65230),e),i(n(6826),e),i(n(34832),e),i(n(77922),e),i(n(54314),e),i(n(96595),e),i(n(29431),e),i(n(35458),e),i(n(42119),e),i(n(31316),e),i(n(47197),e),i(n(78290),e)},86560:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSigners=void 0;const r=n(68873);e.getSigners=function(t,e){return t instanceof r.PublicKey?[t,e]:[t.publicKey,[t]]}},65230:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.mintTo=void 0;const i=n(68873),o=n(37185),s=n(67319),a=n(86560);e.mintTo=function(t,e,n,c,u,l,h=[],d,f=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(u,h),p=(new i.Transaction).add((0,s.createMintToInstruction)(n,c,r,l,h,f));return yield(0,i.sendAndConfirmTransaction)(t,p,[e,...o],d)}))}},35458:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.mintToChecked=void 0;const i=n(68873),o=n(37185),s=n(67319),a=n(86560);e.mintToChecked=function(t,e,n,c,u,l,h,d=[],f,p=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(u,d),m=(new i.Transaction).add((0,s.createMintToCheckedInstruction)(n,c,r,l,h,d,p));return yield(0,i.sendAndConfirmTransaction)(t,m,[e,...o],f)}))}},24954:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Prom
1ise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.revoke=void 0;const i=n(68873),o=n(37185),s=n(67319),a=n(86560);e.revoke=function(t,e,n,c,u=[],l,h=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(c,u),d=(new i.Transaction).add((0,s.createRevokeInstruction)(n,r,u,h));return yield(0,i.sendAndConfirmTransaction)(t,d,[e,...o],l)}))}},44557:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.setAuthority=void 0;const i=n(68873),o=n(37185),s=n(67319),a=n(86560);e.setAuthority=function(t,e,n,c,u,l,h=[],d,f=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(c,h),p=(new i.Transaction).add((0,s.createSetAuthorityInstruction)(n,r,u,l,h,f));return yield(0,i.sendAndConfirmTransaction)(t,p,[e,...o],d)}))}},31316:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.syncNative=void 0;const i=n(68873),o=n(37185),s=n(67319);e.syncNative=function(t,e,n,a,c=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const r=(new i.Transaction).add((0,s.createSyncNativeInstruction)(n,c));return yield(0,i.sendAndConfirmTransaction)(t,r,[e],a)}))}},54314:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.thawAccount=void 0;const i=n(68873),o=n(37185),s=n(67319),a=n(86560);e.thawAccount=function(t,e,n,c,u,l=[],h,d=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(u,l),f=(new i.Transaction).add((0,s.createThawAccountInstruction)(n,c,r,l,d));return yield(0,i.sendAndConfirmTransaction)(t,f,[e,...o],h)}))}},90865:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.transfer=void 0;const i=n(68873),o=n(37185),s=n(67319),a=n(86560);e.transfer=function(t,e,n,c,u,l,h=[],d,f=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(u,h),p=(new i.Transaction).add((0,s.createTransferInstruction)(n,c,r,l,h,f));return yield(0,i.sendAndConfirmTransaction)(t,p,[e,...o],d)}))}},96595:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.transferChecked=void 0;const i=n(68873),o=n(37185),s=n(67319),a=n(86560);e.transferChecked=function(t,e,n,c,u,l,h,d,f=[],p,m=o.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const[r,o]=(0,a.getSigners)(l,f),g=(new i.Transaction).add((0,s.createTransferCheckedInstruction)(n,c,u,r,h,d,f,m));return yield(0,i.sendAndConfirmTransaction)(t,g,[e,...o],p)}))}},37185:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.NATIVE_MINT=e.ASSOCIATED_TOKEN_PROGRAM_ID=e.TOKEN_PROGRAM_ID=void 0;const r=n(68873);e.TOKEN_PROGRAM_ID=new r.PublicKey("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),e.ASSOCIATED_TOKEN_PROGRAM_ID=new r.PublicKey("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),e.NATIVE_MINT=new r.PublicKey("So11111111111111111111111111111111111111112")},43426:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenInvalidInstructionTypeError=e.TokenInvalidInstructionDataError=e.TokenInvalidInstructionKeysError=e.TokenInvalidInstructionProgramError=e.TokenOwnerOffCurveError=e.TokenInvalidOwnerError=e.TokenInvalidMintError=e.TokenInvalidAccountSizeError=e.TokenInvalidAccountOwnerError=e.TokenAccountNotFoundError=e.TokenError=void 0;class n extends Error{constructor(t){super(t)}}e.TokenError=n;e.TokenAccountNotFoundError=class extends n{constructor(){super(...arguments),this.name="TokenAccountNotFoundError"}};e.TokenInvalidAccountOwnerError=class extends n{constructor(){super(...arguments),this.name="TokenInvalidAccountOwnerError"}};e.TokenInvalidAccountSizeError=class extends n{constructor(){super(...arguments),this.name="TokenInvalidAccountSizeError"}};e.TokenInvalidMintError=class extends n{constructor(){super(...arguments),this.name="TokenInvalidMintError"}};e.TokenInvalidOwnerError=class extends n{constructor(){super(...arguments),this.name="TokenInvalidOwnerError"}};e.TokenOwnerOffCurveError=class extends n{constructor(){super(...arguments),this.name="TokenOwnerOffCurveError"}};e.TokenInvalidInstructionProgramError=class extends n{constructor(){super(...arguments),this.name="TokenInvalidInstructionProgramError"}};e.TokenInvalidInstructionKeysError=class extends n{constructor(){super(...arguments),this.name="TokenInvalidInstructionKeysError"}};e.TokenInvalidInstructionDataError=class extends n{constructor(){super(...arguments),this.name="TokenInvalidInstructionDataError"}};e.TokenInvalidInstructionTypeError=class extends n{constructor(){super(...arguments),this.name="TokenInvalidInstructionTypeError"}}},36044:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(67319),e),i(n(82777),e),i(n(31505),e),i(n(37185),e),i(n(43426),e)},76786:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeApproveInstructionUnchecked=e.decodeApproveInstruction=e.createApproveInstruction=e.approveInstructionData=void 0;const i=n(39386),o=n(27278),s=n(68873),a=n(37185),c=n(43426),u=n(7916),l=n(12265);function h({programId:t,keys:[n,r,i,...o],data:s}){return{programId:t,keys:{account:n,delegate:r,owner:i,multiSigners:o},data:e.approveInstructionData.decode(s)}}e.approveInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,o.u64)("amount")]),e.createApproveInstruction=function(t,n,i,o,c=[],h=a.TOKEN_PROGRAM_ID){const d=(0,u.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1}],i,c),f=r.alloc(e.approveInstructionData.span);return e.approveInstructionData.encode({instruction:l.TokenInstruction.Approve,amount:BigInt(o)},f),new s.TransactionInstruction({keys:d,programId:h,data:f})},e.decodeApproveInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.approveInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{account:r,delegate:i,owner:o,multiSigners:s},data:u}=h(t);if(u.instruction!==l.TokenInstruction.Approve)throw new c.TokenInvalidInstructionTypeError;if(!r||!i||!o)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,delegate:i,owner:o,multiSigners:s},data:u}},e.decodeApproveInstructionUnchecked=h},35315:function(t,e,n){"use strict";var r=n(48764).Buffer;
1Object.defineProperty(e,"__esModule",{value:!0}),e.decodeApproveCheckedInstructionUnchecked=e.decodeApproveCheckedInstruction=e.createApproveCheckedInstruction=e.approveCheckedInstructionData=void 0;const i=n(39386),o=n(27278),s=n(68873),a=n(37185),c=n(43426),u=n(7916),l=n(12265);function h({programId:t,keys:[n,r,i,o,...s],data:a}){return{programId:t,keys:{account:n,mint:r,delegate:i,owner:o,multiSigners:s},data:e.approveCheckedInstructionData.decode(a)}}e.approveCheckedInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,o.u64)("amount"),(0,i.u8)("decimals")]),e.createApproveCheckedInstruction=function(t,n,i,o,c,h,d=[],f=a.TOKEN_PROGRAM_ID){const p=(0,u.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!1,isWritable:!1}],o,d),m=r.alloc(e.approveCheckedInstructionData.span);return e.approveCheckedInstructionData.encode({instruction:l.TokenInstruction.ApproveChecked,amount:BigInt(c),decimals:h},m),new s.TransactionInstruction({keys:p,programId:f,data:m})},e.decodeApproveCheckedInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.approveCheckedInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{account:r,mint:i,delegate:o,owner:s,multiSigners:u},data:d}=h(t);if(d.instruction!==l.TokenInstruction.ApproveChecked)throw new c.TokenInvalidInstructionTypeError;if(!r||!i||!o||!s)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,mint:i,delegate:o,owner:s,multiSigners:u},data:d}},e.decodeApproveCheckedInstructionUnchecked=h},99898:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.createAssociatedTokenAccountInstruction=void 0;const i=n(68873),o=n(37185);e.createAssociatedTokenAccountInstruction=function(t,e,n,s,a=o.TOKEN_PROGRAM_ID,c=o.ASSOCIATED_TOKEN_PROGRAM_ID){const u=[{pubkey:t,isSigner:!0,isWritable:!0},{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:s,isSigner:!1,isWritable:!1},{pubkey:i.SystemProgram.programId,isSigner:!1,isWritable:!1},{pubkey:a,isSigner:!1,isWritable:!1},{pubkey:i.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];return new i.TransactionInstruction({keys:u,programId:c,data:r.alloc(0)})}},5334:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeBurnInstructionUnchecked=e.decodeBurnInstruction=e.createBurnInstruction=e.burnInstructionData=void 0;const i=n(39386),o=n(27278),s=n(68873),a=n(37185),c=n(43426),u=n(7916),l=n(12265);function h({programId:t,keys:[n,r,i,...o],data:s}){return{programId:t,keys:{account:n,mint:r,owner:i,multiSigners:o},data:e.burnInstructionData.decode(s)}}e.burnInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,o.u64)("amount")]),e.createBurnInstruction=function(t,n,i,o,c=[],h=a.TOKEN_PROGRAM_ID){const d=(0,u.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0}],i,c),f=r.alloc(e.burnInstructionData.span);return e.burnInstructionData.encode({instruction:l.TokenInstruction.Burn,amount:BigInt(o)},f),new s.TransactionInstruction({keys:d,programId:h,data:f})},e.decodeBurnInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.burnInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{account:r,mint:i,owner:o,multiSigners:s},data:u}=h(t);if(u.instruction!==l.TokenInstruction.Burn)throw new c.TokenInvalidInstructionTypeError;if(!r||!i||!o)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,mint:i,owner:o,multiSigners:s},data:u}},e.decodeBurnInstructionUnchecked=h},63590:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeBurnCheckedInstructionUnchecked=e.decodeBurnCheckedInstruction=e.createBurnCheckedInstruction=e.burnCheckedInstructionData=void 0;const i=n(39386),o=n(27278),s=n(68873),a=n(37185),c=n(43426),u=n(7916),l=n(12265);function h({programId:t,keys:[n,r,i,...o],data:s}){return{programId:t,keys:{account:n,mint:r,owner:i,multiSigners:o},data:e.burnCheckedInstructionData.decode(s)}}e.burnCheckedInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,o.u64)("amount"),(0,i.u8)("decimals")]),e.createBurnCheckedInstruction=function(t,n,i,o,c,h=[],d=a.TOKEN_PROGRAM_ID){const f=(0,u.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0}],i,h),p=r.alloc(e.burnCheckedInstructionData.span);return e.burnCheckedInstructionData.encode({instruction:l.TokenInstruction.BurnChecked,amount:BigInt(o),decimals:c},p),new s.TransactionInstruction({keys:f,programId:d,data:p})},e.decodeBurnCheckedInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.burnCheckedInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{account:r,mint:i,owner:o,multiSigners:s},data:u}=h(t);if(u.instruction!==l.TokenInstruction.BurnChecked)throw new c.TokenInvalidInstructionTypeError;if(!r||!i||!o)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,mint:i,owner:o,multiSigners:s},data:u}},e.decodeBurnCheckedInstructionUnchecked=h},2229:function(t,e,n){"use strict";var r=n(48764).Buffer;
1Object.defineProperty(e,"__esModule",{value:!0}),e.decodeCloseAccountInstructionUnchecked=e.decodeCloseAccountInstruction=e.createCloseAccountInstruction=e.closeAccountInstructionData=void 0;const i=n(39386),o=n(68873),s=n(37185),a=n(43426),c=n(7916),u=n(12265);function l({programId:t,keys:[n,r,i,...o],data:s}){return{programId:t,keys:{account:n,destination:r,authority:i,multiSigners:o},data:e.closeAccountInstructionData.decode(s)}}e.closeAccountInstructionData=(0,i.struct)([(0,i.u8)("instruction")]),e.createCloseAccountInstruction=function(t,n,i,a=[],l=s.TOKEN_PROGRAM_ID){const h=(0,c.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0}],i,a),d=r.alloc(e.closeAccountInstructionData.span);return e.closeAccountInstructionData.encode({instruction:u.TokenInstruction.CloseAccount},d),new o.TransactionInstruction({keys:h,programId:l,data:d})},e.decodeCloseAccountInstruction=function(t,n=s.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new a.TokenInvalidInstructionProgramError;if(t.data.length!==e.closeAccountInstructionData.span)throw new a.TokenInvalidInstructionDataError;const{keys:{account:r,destination:i,authority:o,multiSigners:c},data:h}=l(t);if(h.instruction!==u.TokenInstruction.CloseAccount)throw new a.TokenInvalidInstructionTypeError;if(!r||!i||!o)throw new a.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,destination:i,authority:o,multiSigners:c},data:h}},e.decodeCloseAccountInstructionUnchecked=l},65387:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSyncNativeInstruction=e.isBurnCheckedInstruction=e.isMintToCheckedInstruction=e.isApproveCheckedInstruction=e.isTransferCheckedInstruction=e.isThawAccountInstruction=e.isFreezeAccountInstruction=e.isCloseAccountInstruction=e.isBurnInstruction=e.isMintToInstruction=e.isSetAuthorityInstruction=e.isRevokeInstruction=e.isApproveInstruction=e.isTransferInstruction=e.isInitializeMultisigInstruction=e.isInitializeAccountInstruction=e.isInitializeMintInstruction=e.decodeInstruction=void 0;const r=n(39386),i=n(37185),o=n(43426),s=n(76786),a=n(35315),c=n(5334),u=n(63590),l=n(2229),h=n(57977),d=n(28785),f=n(53221),p=n(51079),m=n(66110),g=n(31677),y=n(50905),b=n(55428),v=n(94339),w=n(11450),_=n(89981),k=n(36010),S=n(12265);e.decodeInstruction=function(t,e=i.TOKEN_PROGRAM_ID){if(!t.data.length)throw new o.TokenInvalidInstructionDataError;const n=(0,r.u8)().decode(t.data);if(n===S.TokenInstruction.InitializeMint)return(0,f.decodeInitializeMintInstruction)(t,e);if(n===S.TokenInstruction.InitializeAccount)return(0,d.decodeInitializeAccountInstruction)(t,e);if(n===S.TokenInstruction.InitializeMultisig)return(0,p.decodeInitializeMultisigInstruction)(t,e);if(n===S.TokenInstruction.Transfer)return(0,_.decodeTransferInstruction)(t,e);if(n===S.TokenInstruction.Approve)return(0,s.decodeApproveInstruction)(t,e);if(n===S.TokenInstruction.Revoke)return(0,y.decodeRevokeInstruction)(t,e);if(n===S.TokenInstruction.SetAuthority)return(0,b.decodeSetAuthorityInstruction)(t,e);if(n===S.TokenInstruction.MintTo)return(0,m.decodeMintToInstruction)(t,e);if(n===S.TokenInstruction.Burn)return(0,c.decodeBurnInstruction)(t,e);if(n===S.TokenInstruction.CloseAccount)return(0,l.decodeCloseAccountInstruction)(t,e);if(n===S.TokenInstruction.FreezeAccount)return(0,h.decodeFreezeAccountInstruction)(t,e);if(n===S.TokenInstruction.ThawAccount)return(0,w.decodeThawAccountInstruction)(t,e);if(n===S.TokenInstruction.TransferChecked)return(0,k.decodeTransferCheckedInstruction)(t,e);if(n===S.TokenInstruction.ApproveChecked)return(0,a.decodeApproveCheckedInstruction)(t,e);if(n===S.TokenInstruction.MintToChecked)return(0,g.decodeMintToCheckedInstruction)(t,e);if(n===S.TokenInstruction.BurnChecked)return(0,u.decodeBurnCheckedInstruction)(t,e);if(n===S.TokenInstruction.InitializeAccount2)throw new o.TokenInvalidInstructionTypeError;if(n===S.TokenInstruction.SyncNative)return(0,v.decodeSyncNativeInstruction)(t,e);if(n===S.TokenInstruction.InitializeAccount3)throw new o.TokenInvalidInstructionTypeError;if(n===S.TokenInstruction.InitializeMultisig2)throw new o.TokenInvalidInstructionTypeError;if(n===S.TokenInstruction.InitializeMint2)throw new o.TokenInvalidInstructionTypeError;throw new o.TokenInvalidInstructionTypeError},e.isInitializeMintInstruction=function(t){return t.data.instruction===S.TokenInstruction.InitializeMint},e.isInitializeAccountInstruction=function(t){return t.data.instruction===S.TokenInstruction.InitializeAccount},e.isInitializeMultisigInstruction=function(t){return t.data.instruction===S.TokenInstruction.InitializeMultisig}
1,e.isTransferInstruction=function(t){return t.data.instruction===S.TokenInstruction.Transfer},e.isApproveInstruction=function(t){return t.data.instruction===S.TokenInstruction.Approve},e.isRevokeInstruction=function(t){return t.data.instruction===S.TokenInstruction.Revoke},e.isSetAuthorityInstruction=function(t){return t.data.instruction===S.TokenInstruction.SetAuthority},e.isMintToInstruction=function(t){return t.data.instruction===S.TokenInstruction.MintTo},e.isBurnInstruction=function(t){return t.data.instruction===S.TokenInstruction.Burn},e.isCloseAccountInstruction=function(t){return t.data.instruction===S.TokenInstruction.CloseAccount},e.isFreezeAccountInstruction=function(t){return t.data.instruction===S.TokenInstruction.FreezeAccount},e.isThawAccountInstruction=function(t){return t.data.instruction===S.TokenInstruction.ThawAccount},e.isTransferCheckedInstruction=function(t){return t.data.instruction===S.TokenInstruction.TransferChecked},e.isApproveCheckedInstruction=function(t){return t.data.instruction===S.TokenInstruction.ApproveChecked},e.isMintToCheckedInstruction=function(t){return t.data.instruction===S.TokenInstruction.MintToChecked},e.isBurnCheckedInstruction=function(t){return t.data.instruction===S.TokenInstruction.BurnChecked},e.isSyncNativeInstruction=function(t){return t.data.instruction===S.TokenInstruction.SyncNative}},57977:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeFreezeAccountInstructionUnchecked=e.decodeFreezeAccountInstruction=e.createFreezeAccountInstruction=e.freezeAccountInstructionData=void 0;const i=n(39386),o=n(68873),s=n(37185),a=n(43426),c=n(7916),u=n(12265);function l({programId:t,keys:[n,r,i,...o],data:s}){return{programId:t,keys:{account:n,mint:r,authority:i,multiSigners:o},data:e.freezeAccountInstructionData.decode(s)}}e.freezeAccountInstructionData=(0,i.struct)([(0,i.u8)("instruction")]),e.createFreezeAccountInstruction=function(t,n,i,a=[],l=s.TOKEN_PROGRAM_ID){const h=(0,c.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1}],i,a),d=r.alloc(e.freezeAccountInstructionData.span);return e.freezeAccountInstructionData.encode({instruction:u.TokenInstruction.FreezeAccount},d),new o.TransactionInstruction({keys:h,programId:l,data:d})},e.decodeFreezeAccountInstruction=function(t,n=s.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new a.TokenInvalidInstructionProgramError;if(t.data.length!==e.freezeAccountInstructionData.span)throw new a.TokenInvalidInstructionDataError;const{keys:{account:r,mint:i,authority:o,multiSigners:c},data:h}=l(t);if(h.instruction!==u.TokenInstruction.FreezeAccount)throw new a.TokenInvalidInstructionTypeError;if(!r||!i||!o)throw new a.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,mint:i,authority:o,multiSigners:c},data:h}},e.decodeFreezeAccountInstructionUnchecked=l},67319:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(12265),e),i(n(53221),e),i(n(28785),e),i(n(51079),e),i(n(89981),e),i(n(76786),e),i(n(50905),e),i(n(55428),e),i(n(66110),e),i(n(5334),e),i(n(2229),e),i(n(57977),e),i(n(11450),e),i(n(36010),e),i(n(35315),e),i(n(31677),e),i(n(63590),e),i(n(14527),e),i(n(94339),e),i(n(58457),e),i(n(23355),e),i(n(92345),e),i(n(65387),e),i(n(99898),e)},28785:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeInitializeAccountInstructionUnchecked=e.decodeInitializeAccountInstruction=e.createInitializeAccountInstruction=e.initializeAccountInstructionData=void 0;const i=n(39386),o=n(68873),s=n(37185),a=n(43426),c=n(12265);function u({programId:t,keys:[n,r,i,o],data:s}){return{programId:t,keys:{account:n,mint:r,owner:i,rent:o},data:e.initializeAccountInstructionData.decode(s)}}e.initializeAccountInstructionData=(0,i.struct)([(0,i.u8)("instruction")]),e.createInitializeAccountInstruction=function(t,n,i,a=s.TOKEN_PROGRAM_ID){const u=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!1,isWritable:!1},{pubkey:o.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],l=r.alloc(e.initializeAccountInstructionData.span);return e.initializeAccountInstructionData.encode({instruction:c.TokenInstruction.InitializeAccount},l),new o.TransactionInstruction({keys:u,programId:a,data:l})},e.decodeInitializeAccountInstruction=function(t,n=s.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new a.TokenInvalidInstructionProgramError;if(t.data.length!==e.initializeAccountInstructionData.span)throw new a.TokenInvalidInstructionDataError;const{keys:{account:r,mint:i,owner:o,rent:l},data:h}=u(t);if(h.instruction!==c.TokenInstruction.InitializeAccount)throw new a.TokenInvalidInstructionTypeError;if(!r||!i||!o||!l)throw new a.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,mint:i,owner:o,rent:l},data:h}},e.decodeInitializeAccountInstructionUnchecked=u}
1,14527:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},58457:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},53221:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeInitializeMintInstructionUnchecked=e.decodeInitializeMintInstruction=e.createInitializeMintInstruction=e.initializeMintInstructionData=void 0;const i=n(39386),o=n(27278),s=n(68873),a=n(37185),c=n(43426),u=n(12265);function l({programId:t,keys:[n,r],data:i}){const{instruction:o,decimals:s,mintAuthority:a,freezeAuthorityOption:c,freezeAuthority:u}=e.initializeMintInstructionData.decode(i);return{programId:t,keys:{mint:n,rent:r},data:{instruction:o,decimals:s,mintAuthority:a,freezeAuthority:c?u:null}}}e.initializeMintInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,i.u8)("decimals"),(0,o.publicKey)("mintAuthority"),(0,i.u8)("freezeAuthorityOption"),(0,o.publicKey)("freezeAuthority")]),e.createInitializeMintInstruction=function(t,n,i,o,c=a.TOKEN_PROGRAM_ID){const l=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:s.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],h=r.alloc(e.initializeMintInstructionData.span);return e.initializeMintInstructionData.encode({instruction:u.TokenInstruction.InitializeMint,decimals:n,mintAuthority:i,freezeAuthorityOption:o?1:0,freezeAuthority:o||new s.PublicKey(0)},h),new s.TransactionInstruction({keys:l,programId:c,data:h})},e.decodeInitializeMintInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.initializeMintInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{mint:r,rent:i},data:o}=l(t);if(o.instruction!==u.TokenInstruction.InitializeMint)throw new c.TokenInvalidInstructionTypeError;if(!r||!i)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{mint:r,rent:i},data:o}},e.decodeInitializeMintInstructionUnchecked=l},92345:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},51079:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeInitializeMultisigInstructionUnchecked=e.decodeInitializeMultisigInstruction=e.createInitializeMultisigInstruction=e.initializeMultisigInstructionData=void 0;const i=n(39386),o=n(68873),s=n(37185),a=n(43426),c=n(12265);function u({programId:t,keys:[n,r,...i],data:o}){return{programId:t,keys:{account:n,rent:r,signers:i},data:e.initializeMultisigInstructionData.decode(o)}}e.initializeMultisigInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,i.u8)("m")]),e.createInitializeMultisigInstruction=function(t,n,i,a=s.TOKEN_PROGRAM_ID){const u=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:o.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}];for(const e of n)u.push({pubkey:e,isSigner:!1,isWritable:!1});const l=r.alloc(e.initializeMultisigInstructionData.span);return e.initializeMultisigInstructionData.encode({instruction:c.TokenInstruction.InitializeMultisig,m:i},l),new o.TransactionInstruction({keys:u,programId:a,data:l})},e.decodeInitializeMultisigInstruction=function(t,n=s.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new a.TokenInvalidInstructionProgramError;if(t.data.length!==e.initializeMultisigInstructionData.span)throw new a.TokenInvalidInstructionDataError;const{keys:{account:r,rent:i,signers:o},data:l}=u(t);if(l.instruction!==c.TokenInstruction.InitializeMultisig)throw new a.TokenInvalidInstructionTypeError;if(!r||!i||!o.length)throw new a.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,rent:i,signers:o},data:l}},e.decodeInitializeMultisigInstructionUnchecked=u},23355:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},7916:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addSigners=void 0,e.addSigners=function(t,e,n){if(n.length){t.push({pubkey:e,isSigner:!1,isWritable:!1});for(const e of n)t.push({pubkey:e.publicKey,isSigner:!0,isWritable:!1})}else t.push({pubkey:e,isSigner:!0,isWritable:!1});return t}},66110:function(t,e,n){"use strict";var r=n(48764).Buffer;
1Object.defineProperty(e,"__esModule",{value:!0}),e.decodeMintToInstructionUnchecked=e.decodeMintToInstruction=e.createMintToInstruction=e.mintToInstructionData=void 0;const i=n(39386),o=n(27278),s=n(68873),a=n(37185),c=n(43426),u=n(7916),l=n(12265);function h({programId:t,keys:[n,r,i,...o],data:s}){return{programId:t,keys:{mint:n,destination:r,authority:i,multiSigners:o},data:e.mintToInstructionData.decode(s)}}e.mintToInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,o.u64)("amount")]),e.createMintToInstruction=function(t,n,i,o,c=[],h=a.TOKEN_PROGRAM_ID){const d=(0,u.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0}],i,c),f=r.alloc(e.mintToInstructionData.span);return e.mintToInstructionData.encode({instruction:l.TokenInstruction.MintTo,amount:BigInt(o)},f),new s.TransactionInstruction({keys:d,programId:h,data:f})},e.decodeMintToInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.mintToInstructionData.span)throw new c.TokenInvalidInstructionDataError;
1const{keys:{mint:r,destination:i,authority:o,multiSigners:s},data:u}=h(t);if(u.instruction!==l.TokenInstruction.MintTo)throw new c.TokenInvalidInstructionTypeError;if(!r||!i||!o)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{mint:r,destination:i,authority:o,multiSigners:s},data:u}},e.decodeMintToInstructionUnchecked=h},31677:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeMintToCheckedInstructionUnchecked=e.decodeMintToCheckedInstruction=e.createMintToCheckedInstruction=e.mintToCheckedInstructionData=void 0;const i=n(39386),o=n(27278),s=n(68873),a=n(37185),c=n(43426),u=n(7916),l=n(12265);function h({programId:t,keys:[n,r,i,...o],data:s}){return{programId:t,keys:{mint:n,destination:r,authority:i,multiSigners:o},data:e.mintToCheckedInstructionData.decode(s)}}e.mintToCheckedInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,o.u64)("amount"),(0,i.u8)("decimals")]),e.createMintToCheckedInstruction=function(t,n,i,o,c,h=[],d=a.TOKEN_PROGRAM_ID){const f=(0,u.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0}],i,h),p=r.alloc(e.mintToCheckedInstructionData.span);return e.mintToCheckedInstructionData.encode({instruction:l.TokenInstruction.MintToChecked,amount:BigInt(o),decimals:c},p),new s.TransactionInstruction({keys:f,programId:d,data:p})},e.decodeMintToCheckedInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.mintToCheckedInstructionData.span)throw new c.TokenInvalidInstructionDataError;
1const{keys:{mint:r,destination:i,authority:o,multiSigners:s},data:u}=h(t);if(u.instruction!==l.TokenInstruction.MintToChecked)throw new c.TokenInvalidInstructionTypeError;if(!r||!i||!o)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{mint:r,destination:i,authority:o,multiSigners:s},data:u}},e.decodeMintToCheckedInstructionUnchecked=h},50905:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeRevokeInstructionUnchecked=e.decodeRevokeInstruction=e.createRevokeInstruction=e.revokeInstructionData=void 0;const i=n(39386),o=n(68873),s=n(37185),a=n(43426),c=n(7916),u=n(12265);function l({programId:t,keys:[n,r,...i],data:o}){return{programId:t,keys:{account:n,owner:r,multiSigners:i},data:e.revokeInstructionData.decode(o)}}e.revokeInstructionData=(0,i.struct)([(0,i.u8)("instruction")]),e.createRevokeInstruction=function(t,n,i=[],a=s.TOKEN_PROGRAM_ID){const l=(0,c.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0}],n,i),h=r.alloc(e.revokeInstructionData.span);return e.revokeInstructionData.encode({instruction:u.TokenInstruction.Revoke},h),new o.TransactionInstruction({keys:l,programId:a,data:h})},e.decodeRevokeInstruction=function(t,n=s.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new a.TokenInvalidInstructionProgramError;if(t.data.length!==e.revokeInstructionData.span)throw new a.TokenInvalidInstructionDataError;const{keys:{account:r,owner:i,multiSigners:o},data:c}=l(t);if(c.instruction!==u.TokenInstruction.Revoke)throw new a.TokenInvalidInstructionTypeError;if(!r||!i)throw new a.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,owner:i,multiSigners:o},data:c}},e.decodeRevokeInstructionUnchecked=l},55428:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeSetAuthorityInstructionUnchecked=e.decodeSetAuthorityInstruction=e.createSetAuthorityInstruction=e.setAuthorityInstructionData=e.AuthorityType=void 0;const i=n(39386),o=n(27278),s=n(68873),a=n(37185),c=n(43426),u=n(7916),l=n(12265);function h({programId:t,keys:[n,r,...i],data:o}){const{instruction:s,authorityType:a,newAuthorityOption:c,newAuthority:u}=e.setAuthorityInstructionData.decode(o);return{programId:t,keys:{account:n,currentAuthority:r,multiSigners:i},data:{instruction:s,authorityType:a,newAuthority:c?u:null}}}!function(t){t[t.MintTokens=0]="MintTokens",t[t.FreezeAccount=1]="FreezeAccount",t[t.AccountOwner=2]="AccountOwner",t[t.CloseAccount=3]="CloseAccount"}(e.AuthorityType||(e.AuthorityType={})),e.setAuthorityInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,i.u8)("authorityType"),(0,i.u8)("newAuthorityOption"),(0,o.publicKey)("newAuthority")]),e.createSetAuthorityInstruction=function(t,n,i,o,c=[],h=a.TOKEN_PROGRAM_ID){const d=(0,u.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0}],n,c),f=r.alloc(e.setAuthorityInstructionData.span);return e.setAuthorityInstructionData.encode({instruction:l.TokenInstruction.SetAuthority,authorityType:i,newAuthorityOption:o?1:0,newAuthority:o||new s.PublicKey(0)},f),new s.TransactionInstruction({keys:d,programId:h,data:f})},e.decodeSetAuthorityInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.setAuthorityInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{account:r,currentAuthority:i,multiSigners:o},data:s}=h(t);if(s.instruction!==l.TokenInstruction.SetAuthority)throw new c.TokenInvalidInstructionTypeError;if(!r||!i)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,currentAuthority:i,multiSigners:o},data:s}},e.decodeSetAuthorityInstructionUnchecked=h},94339:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeSyncNativeInstructionUnchecked=e.decodeSyncNativeInstruction=e.createSyncNativeInstruction=e.syncNativeInstructionData=void 0;const i=n(39386),o=n(68873),s=n(37185),a=n(43426),c=n(12265);function u({programId:t,keys:[n],data:r}){return{programId:t,keys:{account:n},data:e.syncNativeInstructionData.decode(r)}}e.syncNativeInstructionData=(0,i.struct)([(0,i.u8)("instruction")]),e.createSyncNativeInstruction=function(t,n=s.TOKEN_PROGRAM_ID){const i=[{pubkey:t,isSigner:!1,isWritable:!0}],a=r.alloc(e.syncNativeInstructionData.span);return e.syncNativeInstructionData.encode({instruction:c.TokenInstruction.SyncNative},a),new o.TransactionInstruction({keys:i,programId:n,data:a})},e.decodeSyncNativeInstruction=function(t,n=s.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new a.TokenInvalidInstructionProgramError;if(t.data.length!==e.syncNativeInstructionData.span)throw new a.TokenInvalidInstructionDataError;const{keys:{account:r},data:i}=u(t);if(i.instruction!==c.TokenInstruction.SyncNative)throw new a.TokenInvalidInstructionTypeError;if(!r)throw new a.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r},data:i}},e.decodeSyncNativeInstructionUnchecked=u}
1,11450:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeThawAccountInstructionUnchecked=e.decodeThawAccountInstruction=e.createThawAccountInstruction=e.thawAccountInstructionData=void 0;const i=n(39386),o=n(68873),s=n(37185),a=n(43426),c=n(7916),u=n(12265);function l({programId:t,keys:[n,r,i,...o],data:s}){return{programId:t,keys:{account:n,mint:r,authority:i,multiSigners:o},data:e.thawAccountInstructionData.decode(s)}}e.thawAccountInstructionData=(0,i.struct)([(0,i.u8)("instruction")]),e.createThawAccountInstruction=function(t,n,i,a=[],l=s.TOKEN_PROGRAM_ID){const h=(0,c.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1}],i,a),d=r.alloc(e.thawAccountInstructionData.span);return e.thawAccountInstructionData.encode({instruction:u.TokenInstruction.ThawAccount},d),new o.TransactionInstruction({keys:h,programId:l,data:d})},e.decodeThawAccountInstruction=function(t,n=s.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new a.TokenInvalidInstructionProgramError;if(t.data.length!==e.thawAccountInstructionData.span)throw new a.TokenInvalidInstructionDataError;const{keys:{account:r,mint:i,authority:o,multiSigners:c},data:h}=l(t);if(h.instruction!==u.TokenInstruction.ThawAccount)throw new a.TokenInvalidInstructionTypeError;if(!r||!i||!o)throw new a.TokenInvalidInstructionKeysError;return{programId:n,keys:{account:r,mint:i,authority:o,multiSigners:c},data:h}},e.decodeThawAccountInstructionUnchecked=l},89981:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeTransferInstructionUnchecked=e.decodeTransferInstruction=e.createTransferInstruction=e.transferInstructionData=void 0;const i=n(39386),o=n(27278),s=n(68873),a=n(37185),c=n(43426),u=n(7916),l=n(12265);function h({programId:t,keys:[n,r,i,...o],data:s}){return{programId:t,keys:{source:n,destination:r,owner:i,multiSigners:o},data:e.transferInstructionData.decode(s)}}e.transferInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,o.u64)("amount")]),e.createTransferInstruction=function(t,n,i,o,c=[],h=a.TOKEN_PROGRAM_ID){const d=(0,u.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0}],i,c),f=r.alloc(e.transferInstructionData.span);return e.transferInstructionData.encode({instruction:l.TokenInstruction.Transfer,amount:BigInt(o)},f),new s.TransactionInstruction({keys:d,programId:h,data:f})},e.decodeTransferInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.transferInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{source:r,destination:i,owner:o,multiSigners:s},data:u}=h(t);if(u.instruction!==l.TokenInstruction.Transfer)throw new c.TokenInvalidInstructionTypeError;if(!r||!i||!o)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{source:r,destination:i,owner:o,multiSigners:s},data:u}},e.decodeTransferInstructionUnchecked=h},36010:function(t,e,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decodeTransferCheckedInstructionUnchecked=e.decodeTransferCheckedInstruction=e.createTransferCheckedInstruction=e.transferCheckedInstructionData=void 0;const i=n(39386),o=n(27278),s=n(68873),a=n(37185),c=n(43426),u=n(7916),l=n(12265);function h({programId:t,keys:[n,r,i,o,...s],data:a}){return{programId:t,keys:{source:n,mint:r,destination:i,owner:o,multiSigners:s},data:e.transferCheckedInstructionData.decode(a)}}e.transferCheckedInstructionData=(0,i.struct)([(0,i.u8)("instruction"),(0,o.u64)("amount"),(0,i.u8)("decimals")]),e.createTransferCheckedInstruction=function(t,n,i,o,c,h,d=[],f=a.TOKEN_PROGRAM_ID){const p=(0,u.addSigners)([{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:i,isSigner:!1,isWritable:!0}],o,d),m=r.alloc(e.transferCheckedInstructionData.span);return e.transferCheckedInstructionData.encode({instruction:l.TokenInstruction.TransferChecked,amount:BigInt(c),decimals:h},m),new s.TransactionInstruction({keys:p,programId:f,data:m})},e.decodeTransferCheckedInstruction=function(t,n=a.TOKEN_PROGRAM_ID){if(!t.programId.equals(n))throw new c.TokenInvalidInstructionProgramError;if(t.data.length!==e.transferCheckedInstructionData.span)throw new c.TokenInvalidInstructionDataError;const{keys:{source:r,mint:i,destination:o,owner:s,multiSigners:u},data:d}=h(t);if(d.instruction!==l.TokenInstruction.TransferChecked)throw new c.TokenInvalidInstructionTypeError;if(!r||!i||!o||!s)throw new c.TokenInvalidInstructionKeysError;return{programId:n,keys:{source:r,mint:i,destination:o,owner:s,multiSigners:u},data:d}},e.decodeTransferCheckedInstructionUnchecked=h},12265:function(t,e){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.TokenInstruction=void 0,function(t){t[t.InitializeMint=0]="InitializeMint",t[t.InitializeAccount=1]="InitializeAccount",t[t.InitializeMultisig=2]="InitializeMultisig",t[t.Transfer=3]="Transfer",t[t.Approve=4]="Approve",t[t.Revoke=5]="Revoke",t[t.SetAuthority=6]="SetAuthority",t[t.MintTo=7]="MintTo",t[t.Burn=8]="Burn",t[t.CloseAccount=9]="CloseAccount",t[t.FreezeAccount=10]="FreezeAccount",t[t.ThawAccount=11]="ThawAccount",t[t.TransferChecked=12]="TransferChecked",t[t.ApproveChecked=13]="ApproveChecked",t[t.MintToChecked=14]="MintToChecked",t[t.BurnChecked=15]="BurnChecked",t[t.InitializeAccount2=16]="InitializeAccount2",t[t.SyncNative=17]="SyncNative",t[t.InitializeAccount3=18]="InitializeAccount3",t[t.InitializeMultisig2=19]="InitializeMultisig2",t[t.InitializeMint2=20]="InitializeMint2"}(e.TokenInstruction||(e.TokenInstruction={}))},48144:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getMinimumBalanceForRentExemptAccount=e.getAccount=e.ACCOUNT_SIZE=e.AccountLayout=e.AccountState=void 0;const i=n(39386),o=n(27278),s=n(37185),a=n(43426);var c;!function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initialized=1]="Initialized",t[t.Frozen=2]="Frozen"}(c=e.AccountState||(e.AccountState={})),e.AccountLayout=(0,i.struct)([(0,o.publicKey)("mint"),(0,o.publicKey)("owner"),(0,o.u64)("amount"),(0,i.u32)("delegateOption"),(0,o.publicKey)("delegate"),(0,i.u8)("state"),(0,i.u32)("isNativeOption"),(0,o.u64)("isNative"),(0,o.u64)("delegatedAmount"),(0,i.u32)("closeAuthorityOption"),(0,o.publicKey)("closeAuthority")]),e.ACCOUNT_SIZE=e.AccountLayout.span,e.getAccount=function(t,n,i,o=s.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const r=yield t.getAccountInfo(n,i);if(!r)throw new a.TokenAccountNotFoundError;if(!r.owner.equals(o))throw new a.TokenInvalidAccountOwnerError;if(r.data.length!=e.ACCOUNT_SIZE)throw new a.TokenInvalidAccountSizeError;const s=e.AccountLayout.decode(r.data);return{address:n,mint:s.mint,owner:s.owner,amount:s.amount,delegate:s.delegateOption?s.delegate:null,delegatedAmount:s.delegatedAmount,isInitialized:s.state!==c.Uninitialized,isFrozen:s.state===c.Frozen,isNative:!!s.isNativeOption,rentExemptReserve:s.isNativeOption?s.isNative:null,closeAuthority:s.closeAuthorityOption?s.closeAuthority:null}}))},e.getMinimumBalanceForRentExemptAccount=function(t,n){return r(this,void 0,void 0,(function*(){return yield t.getMinimumBalanceForRentExemption(e.ACCOUNT_SIZE,n)}))}},82777:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(48144),e),i(n(42407),e),i(n(55284),e)},42407:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getAssociatedTokenAddress=e.getMinimumBalanceForRentExemptMint=e.getMint=e.MINT_SIZE=e.MintLayout=void 0;const i=n(39386),o=n(27278),s=n(68873),a=n(37185),c=n(43426);e.MintLayout=(0,i.struct)([(0,i.u32)("mintAuthorityOption"),(0,o.publicKey)("mintAuthority"),(0,o.u64)("supply"),(0,i.u8)("decimals"),(0,o.bool)("isInitialized"),(0,i.u32)("freezeAuthorityOption"),(0,o.publicKey)("freezeAuthority")]),e.MINT_SIZE=e.MintLayout.span,e.getMint=function(t,n,i,o=a.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const r=yield t.getAccountInfo(n,i);if(!r)throw new c.TokenAccountNotFoundError;if(!r.owner.equals(o))throw new c.TokenInvalidAccountOwnerError;if(r.data.length!=e.MINT_SIZE)throw new c.TokenInvalidAccountSizeError;
1const s=e.MintLayout.decode(r.data);return{address:n,mintAuthority:s.mintAuthorityOption?s.mintAuthority:null,supply:s.supply,decimals:s.decimals,isInitialized:s.isInitialized,freezeAuthority:s.freezeAuthorityOption?s.freezeAuthority:null}}))},e.getMinimumBalanceForRentExemptMint=function(t,n){return r(this,void 0,void 0,(function*(){return yield t.getMinimumBalanceForRentExemption(e.MINT_SIZE,n)}))},e.getAssociatedTokenAddress=function(t,e,n=!1,i=a.TOKEN_PROGRAM_ID,o=a.ASSOCIATED_TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){if(!n&&!s.PublicKey.isOnCurve(e.toBuffer()))throw new c.TokenOwnerOffCurveError;const[r]=yield s.PublicKey.findProgramAddress([e.toBuffer(),i.toBuffer(),t.toBuffer()],o);return r}))}},55284:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getMinimumBalanceForRentExemptMultisig=e.getMultisig=e.MULTISIG_SIZE=e.MultisigLayout=void 0;const i=n(39386),o=n(27278),s=n(37185),a=n(43426);e.MultisigLayout=(0,i.struct)([(0,i.u8)("m"),(0,i.u8)("n"),(0,o.bool)("isInitialized"),(0,o.publicKey)("signer1"),(0,o.publicKey)("signer2"),(0,o.publicKey)("signer3"),(0,o.publicKey)("signer4"),(0,o.publicKey)("signer5"),(0,o.publicKey)("signer6"),(0,o.publicKey)("signer7"),(0,o.publicKey)("signer8"),(0,o.publicKey)("signer9"),(0,o.publicKey)("signer10"),(0,o.publicKey)("signer11")]),e.MULTISIG_SIZE=e.MultisigLayout.span,e.getMultisig=function(t,n,i,o=s.TOKEN_PROGRAM_ID){return r(this,void 0,void 0,(function*(){const r=yield t.getAccountInfo(n,i);if(!r)throw new a.TokenAccountNotFoundError;if(!r.owner.equals(o))throw new a.TokenInvalidAccountOwnerError;if(r.data.length!=e.MULTISIG_SIZE)throw new a.TokenInvalidAccountSizeError;return Object.assign({address:n},e.MultisigLayout.decode(r.data))}))},e.getMinimumBalanceForRentExemptMultisig=function(t,n){return r(this,void 0,void 0,(function*(){return yield t.getMinimumBalanceForRentExemption(e.MULTISIG_SIZE,n)}))}},63083:function(t,e,n){"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"===typeof globalThis?n.g:globalThis;t.exports=function(){for(var t=[],e=0;e<r.length;e++)"function"===typeof i[r[e]]&&(t[t.length]=r[e]);return t}},20882:function(t,e,n){"use strict";var r=n(40210)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(i){r=null}t.exports=r},42189:function(t,e){"use strict";function n(t,e,n,r){var i,o=!1,s=0;function a(){i&&clearTimeout(i)}function c(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var h=this,d=Date.now()-s;function f(){s=Date.now(),n.apply(h,u)}function p(){i=void 0}o||(r&&!i&&f(),a(),void 0===r&&d>t?f():!0!==e&&(i=setTimeout(r?p:f,void 0===r?t-d:t)))}return"boolean"!==typeof e&&(r=n,n=e,e=void 0),c.cancel=function(){a(),o=!0},c}Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=function(t,e,r){return void 0===r?n(t,e,!1):n(t,r,!1!==e)},e.throttle=n},83878:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,{Z:function(){return r}})},15671:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{Z:function(){return r}})},43144:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}n.d(e,{Z:function(){return i}})},4942:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:function(){return r}})},25267:function(t,e,n){"use strict";
1function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{Z:function(){return r}})},81563:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e){if(t){if("string"===typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}n.d(e,{Z:function(){return i}})},73749:function(t,e,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,{Z:function(){return r}})},47069:function(t,e,n){"use strict";n.d(e,{M4:function(){return Yo},yG:function(){return zi},pp:function(){return Di}});var r=n(98800),i=n(69607),o=n(35615),s=n(63753),a=n(67294),c=n.t(a,2);const u=[],l={autoConnect:!1,connecting:!1,connected:!1,disconnecting:!1,select(){h("call","select")},connect:()=>Promise.reject(h("call","connect")),disconnect:()=>Promise.reject(h("call","disconnect")),sendTransaction:()=>Promise.reject(h("call","sendTransaction")),signTransaction:()=>Promise.reject(h("call","signTransaction")),signAllTransactions:()=>Promise.reject(h("call","signAllTransactions")),signMessage:()=>Promise.reject(h("call","signMessage")),signIn:()=>Promise.reject(h("call","signIn"))};function h(t,e){const n=new Error(`You have tried to ${t} "${e}" on a WalletContext without providing one. Make sure to render a WalletProvider as an ancestor of the component that uses WalletContext.`);return console.error(n),n}Object.defineProperty(l,"wallets",{get:()=>(h("read","wallets"),u)}),Object.defineProperty(l,"wallet",{get:()=>(h("read","wallet"),null)}),Object.defineProperty(l,"publicKey",{get:()=>(h("read","publicKey"),null)});const d=(0,a.createContext)(l);function f(){return(0,a.useContext)(d)}function p(t,e){const n=(0,a.useState)((()=>{try{const e=localStorage.getItem(t);if(e)return JSON.parse(e)}catch(n){"undefined"!==typeof window&&console.error(n)}return e})),r=n[0],i=(0,a.useRef)(!0);return(0,a.useEffect)((()=>{if(i.current)i.current=!1;else try{null===r?localStorage.removeItem(t):localStorage.setItem(t,JSON.stringify(r))}catch(e){"undefined"!==typeof window&&console.error(e)}}),[r,t]),n}var m=n(26087);new RegExp("^(?<domain>[^\\n]+?) wants you to sign in with your Solana account:\\n(?<address>[^\\n]+)(?:\\n|$)(?:\\n(?<statement>[\\S\\s]*?)(?:\\n|$))??(?:\\nURI: (?<uri>[^\\n]+))?(?:\\nVersion: (?<version>[^\\n]+))?(?:\\nChain ID: (?<chainId>[^\\n]+))?(?:\\nNonce: (?<nonce>[^\\n]+))?(?:\\nIssued At: (?<issuedAt>[^\\n]+))?(?:\\nExpiration Time: (?<expirationTime>[^\\n]+))?(?:\\nNot Before: (?<notBefore>[^\\n]+))?(?:\\nRequest ID: (?<requestId>[^\\n]+))?(?:\\nResources:(?<resources>(?:\\n- [^\\n]+)*))?\\n*$");function g(t){let e=`${t.domain} wants you to sign in with your Solana account:\n`;e+=`${t.address}`,t.statement&&(e+=`\n\n${t.statement}`);const n=[];if(t.uri&&n.push(`URI: ${t.uri}`),t.version&&n.push(`Version: ${t.version}`),t.chainId&&n.push(`Chain ID: ${t.chainId}`),t.nonce&&n.push(`Nonce: ${t.nonce}`),t.issuedAt&&n.push(`Issued At: ${t.issuedAt}`),t.expirationTime&&n.push(`Expiration Time: ${t.expirationTime}`),t.notBefore&&n.push(`Not Before: ${t.notBefore}`),t.requestId&&n.push(`Request ID: ${t.requestId}`),t.resources){n.push("Resources:");for(const e of t.resources)n.push(`- ${e}`)}return n.length&&(e+=`\n\n${n.join("\n")}`),e}const y="ERROR_ASSOCIATION_PORT_OUT_OF_RANGE",b="ERROR_FORBIDDEN_WALLET_BASE_URL",v="ERROR_SECURE_CONTEXT_REQUIRED",w="ERROR_SESSION_CLOSED",_="ERROR_SESSION_TIMEOUT",k="ERROR_WALLET_NOT_FOUND",S="ERROR_INVALID_PROTOCOL_VERSION";class x extends Error{constructor(...t){const[e,n,r]=t;super(n),this.code=e,this.data=r,this.name="SolanaMobileWalletAdapterError"}}
1class I extends Error{constructor(...t){const[e,n,r,i]=t;super(r),this.code=n,this.data=i,this.jsonRpcMessageId=e,this.name="SolanaMobileWalletAdapterProtocolError"}}function A(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}function E(t){return e=function(t){return g(t)}(t),window.btoa(e);var e}const T="solana:signTransactions",P="solana:cloneAuthorization";function C(t,e){return new Proxy({},{get:(n,r)=>(null==n[r]&&(n[r]=function(n){return A(this,void 0,void 0,(function*(){const{method:i,params:o}=function(t,e,n){let r=e,i=t.toString().replace(/[A-Z]/g,(t=>`_${t.toLowerCase()}`)).toLowerCase();switch(t){case"authorize":{let{chain:t}=r;if("legacy"===n){switch(t){case"solana:testnet":t="testnet";break;case"solana:devnet":t="devnet";break;case"solana:mainnet":t="mainnet-beta";break;default:t=r.cluster}r.cluster=t}else{switch(t){case"testnet":case"devnet":t=`solana:${t}`;break;case"mainnet-beta":t="solana:mainnet"}r.chain=t}}case"reauthorize":{const{auth_token:t,identity:e}=r;if(t)if("legacy"===n)i="reauthorize",r={auth_token:t,identity:e};else i="authorize";break}}return{method:i,params:r}}(r,n,t),s=yield e(i,o);return"authorize"===i&&o.sign_in_payload&&!s.sign_in_result&&(s.sign_in_result=yield function(t,e,n){var r;return A(this,void 0,void 0,(function*(){const i=null!==(r=t.domain)&&void 0!==r?r:window.location.host,o=e.accounts[0].address,s=E(Object.assign(Object.assign({},t),{domain:i,address:o}));return{address:o,signed_message:s,signature:(yield n("sign_messages",{addresses:[o],payloads:[s]})).signed_payloads[0].slice(s.length)}}))}(o.sign_in_payload,s,e)),function(t,e,n){if("getCapabilities"===t){const t=e;switch(n){case"legacy":{const e=[T];return!0===t.supports_clone_authorization&&e.push(P),Object.assign(Object.assign({},t),{features:e})}case"v1":return Object.assign(Object.assign({},t),{supports_sign_and_send_transactions:!0,supports_clone_authorization:t.features.includes(P)})}}return e}(r,s,t)}))}),n[r]),defineProperty:()=>!1,deleteProperty:()=>!1})}function M(t,e,n){return A(this,void 0,void 0,(function*(){const r=function(t){if(t>=4294967296)throw new Error("Outbound sequence number overflow. The maximum sequence number is 32-bytes.");const e=new ArrayBuffer(4);return new DataView(e).setUint32(0,t,!1),new Uint8Array(e)}(e),i=new Uint8Array(12);crypto.getRandomValues(i);const o=yield crypto.subtle.encrypt(R(r,i),n,(new TextEncoder).encode(t)),s=new Uint8Array(r.byteLength+i.byteLength+o.byteLength);return s.set(new Uint8Array(r),0),s.set(new Uint8Array(i),r.byteLength),s.set(new Uint8Array(o),r.byteLength+i.byteLength),s}))}function O(t,e){return A(this,void 0,void 0,(function*(){const n=t.slice(0,4),r=t.slice(4,16),i=t.slice(16),o=yield crypto.subtle.decrypt(R(n,r),e,i);return function(){void 0===B&&(B=new TextDecoder("utf-8"));return B}().decode(o)}))}function R(t,e){return{additionalData:t,iv:e,name:"AES-GCM",tagLength:128}}let B;function j(t){if(t<49152||t>65535)throw new x(y,`Association port number must be between 49152 and 65535. ${t} given.`,{port:t});return t}function N(t){return t.replace(/(^\/+|\/+$)/g,"").split("/")}function L(t,e,n,r=["v1"]){return A(this,void 0,void 0,(function*(){const i=j(e),o=function(t){let e="";const n=new Uint8Array(t),r=n.byteLength;for(let i=0;i<r;i++)e+=String.fromCharCode(n[i]);return window.btoa(e)}(yield crypto.subtle.exportKey("raw",t)),s=function(t,e){let n=null;if(e){try{n=new URL(e)}catch(i){}if("https:"!==(null===n||void 0===n?void 0:n.protocol))throw new x(b,"Base URLs supplied by wallets must be valid `https` URLs")}n||(n=new URL("solana-wallet:/"));const r=t.startsWith("/")?t:[...N(n.pathname),...N(t)].join("/");return new URL(r,n)}("v1/associate/local",n);return s.searchParams.set("association",o.replace(/[/+=]/g,(t=>({"/":"_","+":"-","=":"."}[t])))),s.searchParams.set("port",`${i}`),r.forEach((t=>{s.searchParams.set("v",t)})),s}))}const D=0,z=1;let F=null;function U(t,e){return A(this,void 0,void 0,(function*(){const n=j(49152+Math.floor(16384*Math.random())),r=yield L(t,n,e);if("https:"===r.protocol)window.location.assign(r);else try{const t=-1!==navigator.userAgent.indexOf("Firefox/")?D:z;switch(t){case D:i=r,null==F&&(F=document.createElement("iframe"),F.style.display="none",document.body.appendChild(F)),F.contentWindow.location.href=i.toString();break;case z:{const t=new Promise(((t,e)=>{function n(){clearTimeout(i),window.removeEventListener("blur",r)}function r(){n(),t()}window.addEventListener("blur",r);const i=setTimeout((()=>{n(),e()}),2e3)}));window.location.assign(r),yield t;break}}}catch(o){throw new x(k,"Found no installed wallet that supports the mobile wallet protocol.")}var i;return n}))}const W={retryDelayScheduleMs:[150,150,200,500,500,750,750,1e3],timeoutMs:3e4};function G(t){return new DataView(t).getUint32(0,!1)}function V(t,e){return A(this,void 0,void 0,(function*(){!function(){if("undefined"===typeof window||!0!==window.isSecureContext)throw new x(v,"The mobile wallet adapter protocol must be used in a secure context (`https`).")}();const n=yield function(){return A(this,void 0,void 0,(function*(){return yield crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign"])}))}(),r=yield U(n.publicKey,null===e||void 0===e?void 0:e.baseUri),i=`ws://localhost:${r}/solana-wallet`;let o;const s=(()=>{const t=[...W.retryDelayScheduleMs];return()=>t.length>1?t.shift():t[0]})();let a=1,c=0,u={__type:"disconnected"};return new Promise(((e,l)=>{let h;const d={},f=()=>A(this,void 0,void 0,(function*(){if("connecting"!==u.__type)return void console.warn(`Expected adapter state to be \`connecting\` at the moment the websocket opens. Got \`${u.__type}\`.`);const{associationKeypair:t}=u;h.removeEventListener("open",f);const e=yield function(){return A(this,void 0,void 0,(function*(){return yield crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!1,["deriveKey","deriveBits"])}))}();h.send(yield function(t,e){return A(this,void 0,void 0,(function*(){const n=yield crypto.subtle.exportKey("raw",t),r=yield crypto.subtle.sign({hash:"SHA-256",
1name:"ECDSA"},e,n),i=new Uint8Array(n.byteLength+r.byteLength);return i.set(new Uint8Array(n),0),i.set(new Uint8Array(r),n.byteLength),i}))}(e.publicKey,t.privateKey)),u={__type:"hello_req_sent",associationPublicKey:t.publicKey,ecdhPrivateKey:e.privateKey}})),p=t=>{t.wasClean?u={__type:"disconnected"}:l(new x(w,`The wallet session dropped unexpectedly (${t.code}: ${t.reason}).`,{closeEvent:t})),y()},m=t=>A(this,void 0,void 0,(function*(){y(),Date.now()-o>=W.timeoutMs?l(new x(_,`Failed to connect to the wallet websocket on port ${r}.`)):(yield new Promise((t=>{const e=s();v=window.setTimeout(t,e)})),k())})),g=n=>A(this,void 0,void 0,(function*(){const r=yield n.data.arrayBuffer();switch(u.__type){case"connected":try{const t=G(r.slice(0,4));if(t!==c+1)throw new Error("Encrypted message has invalid sequence number");c=t;const e=yield function(t,e){return A(this,void 0,void 0,(function*(){const n=yield O(t,e),r=JSON.parse(n);if(Object.hasOwnProperty.call(r,"error"))throw new I(r.id,r.error.code,r.error.message);return r}))}(r,u.sharedSecret),n=d[e.id];delete d[e.id],n.resolve(e.result)}catch(i){if(!(i instanceof I))throw i;{const t=d[i.jsonRpcMessageId];delete d[i.jsonRpcMessageId],t.reject(i)}}break;case"hello_req_sent":{const n=yield function(t,e,n){return A(this,void 0,void 0,(function*(){const[r,i]=yield Promise.all([crypto.subtle.exportKey("raw",e),crypto.subtle.importKey("raw",t.slice(0,65),{name:"ECDH",namedCurve:"P-256"},!1,[])]),o=yield crypto.subtle.deriveBits({name:"ECDH",public:i},n,256),s=yield crypto.subtle.importKey("raw",o,"HKDF",!1,["deriveKey"]);return yield crypto.subtle.deriveKey({name:"HKDF",hash:"SHA-256",salt:new Uint8Array(r),info:new Uint8Array},s,{name:"AES-GCM",length:128},!1,["encrypt","decrypt"])}))}(r,u.associationPublicKey,u.ecdhPrivateKey),o=r.slice(65),s=0!==o.byteLength?yield(()=>A(this,void 0,void 0,(function*(){const t=G(o.slice(0,4));if(t!==c+1)throw new Error("Encrypted message has invalid sequence number");return c=t,function(t,e){return A(this,void 0,void 0,(function*(){const n=yield O(t,e),r=JSON.parse(n);let i="legacy";if(Object.hasOwnProperty.call(r,"v"))switch(r.v){case 1:case"1":case"v1":i="v1";break;case"legacy":i="legacy";break;default:throw new x(S,`Unknown/unsupported protocol version: ${r.v}`)}return{protocol_version:i}}))}(o,n)})))():{protocol_version:"legacy"};u={__type:"connected",sharedSecret:n,sessionProperties:s};const f=C(s.protocol_version,((t,e)=>A(this,void 0,void 0,(function*(){const r=a++;return h.send(yield function(t,e){return A(this,void 0,void 0,(function*(){return M(JSON.stringify(t),t.id,e)}))}({id:r,jsonrpc:"2.0",method:t,params:null!==e&&void 0!==e?e:{}},n)),new Promise(((e,n)=>{d[r]={resolve(r){switch(t){case"authorize":case"reauthorize":{const{wallet_uri_base:t}=r;if(null!=t)try{!function(t){let e;try{e=new URL(t)}catch(n){throw new x(b,"Invalid base URL supplied by wallet")}if("https:"!==e.protocol)throw new x(b,"Base URLs supplied by wallets must be valid `https` URLs")}(t)}catch(i){return void n(i)}break}}e(r)},reject:n}}))}))));try{e(yield t(f))}catch(i){l(i)}finally{y(),h.close()}break}}}));let y,v;const k=()=>{y&&y(),u={__type:"connecting",associationKeypair:n},void 0===o&&(o=Date.now()),h=new WebSocket(i,["com.solana.mobilewalletadapter.v1"]),h.addEventListener("open",f),h.addEventListener("close",p),h.addEventListener("error",m),h.addEventListener("message",g),y=()=>{window.clearTimeout(v),h.removeEventListener("open",f),h.removeEventListener("close",p),h.removeEventListener("error",m),h.removeEventListener("message",g)}};k()}))}))}var K=n(77191);function H(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function q(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}function $(t){return window.btoa(String.fromCharCode.call(null,...t))}function Z(t){return new Uint8Array(window.atob(t).split("").map((t=>t.charCodeAt(0))))}function Y(t){return $("version"in t?t.serialize():t.serialize({requireAllSignatures:!1,verifySignatures:!1}))}function X(t){const e=t[0]*m.SIGNATURE_LENGTH_IN_BYTES+1;return"legacy"===m.VersionedMessage.deserializeMessageVersion(t.slice(e,t.length))?m.Transaction.from(t):m.VersionedTransaction.deserialize(t)}
1function J(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}function Q(t){return new Uint8Array(window.atob(t).split("").map((t=>t.charCodeAt(0))))}const tt="Mobile Wallet Adapter";function et(t){return"version"in t}class nt extends r.qz{constructor(t){var e;super(),this.supportedTransactionVersions=new Set(["legacy",0]),this.name=tt,this.url="https://solanamobile.com/wallets",this.icon="data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjI4IiB3aWR0aD0iMjgiIHZpZXdCb3g9Ii0zIDAgMjggMjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI0RDQjhGRiI+PHBhdGggZD0iTTE3LjQgMTcuNEgxNXYyLjRoMi40di0yLjRabTEuMi05LjZoLTIuNHYyLjRoMi40VjcuOFoiLz48cGF0aCBkPSJNMjEuNiAzVjBoLTIuNHYzaC0zLjZWMGgtMi40djNoLTIuNHY2LjZINC41YTIuMSAyLjEgMCAxIDEgMC00LjJoMi43VjNINC41QTQuNSA0LjUgMCAwIDAgMCA3LjVWMjRoMjEuNnYtNi42aC0yLjR2NC4ySDIuNFYxMS41Yy41LjMgMS4yLjQgMS44LjVoNy41QTYuNiA2LjYgMCAwIDAgMjQgOVYzaC0yLjRabTAgNS43YTQuMiA0LjIgMCAxIDEtOC40IDBWNS40aDguNHYzLjNaIi8+PC9nPjwvc3ZnPg==",this._connecting=!1,this._connectionGeneration=0,this._readyState="undefined"!==typeof window&&window.isSecureContext&&"undefined"!==typeof document&&/android/i.test(navigator.userAgent)?i.i1.Loadable:i.i1.Unsupported,this._authorizationResultCache=t.authorizationResultCache,this._addressSelector=t.addressSelector,this._appIdentity=t.appIdentity,this._chain=null!==(e=t.chain)&&void 0!==e?e:t.cluster,this._onWalletNotFound=t.onWalletNotFound,this._readyState!==i.i1.Unsupported&&this._authorizationResultCache.get().then((t=>{t&&this.declareWalletAsInstalled()}))}get publicKey(){if(null==this._publicKey&&null!=this._selectedAddress)try{this._publicKey=function(t){const e=Q(t);return new m.PublicKey(e)}(this._selectedAddress)}catch(t){throw new o.Nx(t instanceof Error&&(null===t||void 0===t?void 0:t.message)||"Unknown error",t)}return this._publicKey?this._publicKey:null}get connected(){return!!this._authorizationResult}get connecting(){return this._connecting}get readyState(){return this._readyState}declareWalletAsInstalled(){this._readyState!==i.i1.Installed&&this.emit("readyStateChange",this._readyState=i.i1.Installed)}runWithGuard(t){return J(this,void 0,void 0,(function*(){try{return yield t()}catch(e){throw this.emit("error",e),e}}))}autoConnect_DO_NOT_USE_OR_YOU_WILL_BE_FIRED(){return J(this,void 0,void 0,(function*(){return yield this.autoConnect()}))}autoConnect(){return J(this,void 0,void 0,(function*(){if(!this.connecting&&!this.connected)return yield this.runWithGuard((()=>J(this,void 0,void 0,(function*(){if(this._readyState!==i.i1.Installed&&this._readyState!==i.i1.Loadable)throw new o.OZ;this._connecting=!0;try{const t=yield this._authorizationResultCache.get();t&&this.handleAuthorizationResult(t)}catch(t){throw new o.$w(t instanceof Error&&t.message||"Unknown error",t)}finally{this._connecting=!1}}))))}))}connect(){return J(this,void 0,void 0,(function*(){if(!this.connecting&&!this.connected)return yield this.runWithGuard((()=>J(this,void 0,void 0,(function*(){if(this._readyState!==i.i1.Installed&&this._readyState!==i.i1.Loadable)throw new o.OZ;this._connecting=!0;try{yield this.performAuthorization()}catch(t){throw new o.$w(t instanceof Error&&t.message||"Unknown error",t)}finally{this._connecting=!1}}))))}))}performAuthorization(t){return J(this,void 0,void 0,(function*(){try{const e=yield this._authorizationResultCache.get();return e?(this.handleAuthorizationResult(e),e):yield this.transact((e=>J(this,void 0,void 0,(function*(){const n=yield e.authorize({chain:this._chain,identity:this._appIdentity,sign_in_payload:t});return Promise.all([this._authorizationResultCache.set(n),this.handleAuthorizationResult(n)]),n}))))}catch(e){throw new o.$w(e instanceof Error&&e.message||"Unknown error",e)}}))}handleAuthorizationResult(t){var e;return J(this,void 0,void 0,(function*(){const n=null==this._authorizationResult||(null===(e=this._authorizationResult)||void 0===e?void 0:e.accounts.length)!==t.accounts.length||this._authorizationResult.accounts.some(((e,n)=>e.address!==t.accounts[n].address));if(this._authorizationResult=t,this.declareWalletAsInstalled(),n){const e=yield this._addressSelector.select(t.accounts.map((({address:t})=>t)));e!==this._selectedAddress&&(this._selectedAddress=e,delete this._publicKey,this.emit
1("connect",this.publicKey))}}))}performReauthorization(t,e){return J(this,void 0,void 0,(function*(){try{const n=yield t.authorize({auth_token:e,identity:this._appIdentity});Promise.all([this._authorizationResultCache.set(n),this.handleAuthorizationResult(n)])}catch(n){throw this.disconnect(),new o.at(n instanceof Error&&(null===n||void 0===n?void 0:n.message)||"Unknown error",n)}}))}disconnect(){return J(this,void 0,void 0,(function*(){this._authorizationResultCache.clear(),this._connecting=!1,this._connectionGeneration++,delete this._authorizationResult,delete this._publicKey,delete this._selectedAddress,this.emit("disconnect")}))}transact(t){var e;return J(this,void 0,void 0,(function*(){const n=null===(e=this._authorizationResult)||void 0===e?void 0:e.wallet_uri_base,r=n?{baseUri:n}:void 0,i=this._connectionGeneration;try{return yield function(t,e){return q(this,void 0,void 0,(function*(){return yield V((e=>{const n=new Proxy({},{get(t,n){if(null==t[n])switch(n){case"signAndSendTransactions":t[n]=function(t){var{minContextSlot:n,commitment:r,skipPreflight:i,maxRetries:o,waitForCommitmentToSendNextTransaction:s,transactions:a}=t,c=H(t,["minContextSlot","commitment","skipPreflight","maxRetries","waitForCommitmentToSendNextTransaction","transactions"]);return q(this,void 0,void 0,(function*(){const t=a.map(Y),u={min_context_slot:n,commitment:r,skip_preflight:i,max_retries:o,wait_for_commitment_to_send_next_transaction:s},{signatures:l}=yield e.signAndSendTransactions(Object.assign(Object.assign(Object.assign({},c),Object.values(u).some((t=>null!=t))?{options:u}:null),{payloads:t}));return l.map(Z).map(K.encode)}))};break;case"signMessages":t[n]=function(t){var{payloads:n}=t,r=H(t,["payloads"]);return q(this,void 0,void 0,(function*(){const t=n.map($),{signed_payloads:i}=yield e.signMessages(Object.assign(Object.assign({},r),{payloads:t}));return i.map(Z)}))};break;case"signTransactions":t[n]=function(t){var{transactions:n}=t,r=H(t,["transactions"]);return q(this,void 0,void 0,(function*(){const t=n.map(Y),{signed_payloads:i}=yield e.signTransactions(Object.assign(Object.assign({},r),{payloads:t}));return i.map(Z).map(X)}))};break;default:t[n]=e[n]}return t[n]},defineProperty:()=>!1,deleteProperty:()=>!1});return t(n)}),e)}))}(t,r)}catch(o){throw this._connectionGeneration!==i&&(yield new Promise((()=>{}))),o instanceof Error&&"SolanaMobileWalletAdapterError"===o.name&&"ERROR_WALLET_NOT_FOUND"===o.code&&(yield this._onWalletNotFound(this)),o}}))}assertIsAuthorized(){if(!this._authorizationResult||!this._selectedAddress)throw new o.oS;return{authToken:this._authorizationResult.auth_token,selectedAddress:this._selectedAddress}}performSignTransactions(t){return J(this,void 0,void 0,(function*(){const{authToken:e}=this.assertIsAuthorized();try{return yield this.transact((n=>J(this,void 0,void 0,(function*(){yield this.performReauthorization(n,e);return yield n.signTransactions({transactions:t})}))))}catch(n){throw new o.PY(null===n||void 0===n?void 0:n.message,n)}}))}sendTransaction(t,e,n){return J(this,void 0,void 0,(function*(){return yield this.runWithGuard((()=>J(this,void 0,void 0,(function*(){const{authToken:r}=this.assertIsAuthorized(),i=null===n||void 0===n?void 0:n.minContextSlot;try{return yield this.transact((o=>J(this,void 0,void 0,(function*(){function s(){let t,r;switch(e.commitment){case"confirmed":case"finalized":case"processed":t=e.commitment;break;default:t="finalized"}switch(null===n||void 0===n?void 0:n.preflightCommitment){case"confirmed":case"finalized":case"processed":r=n.preflightCommitment;break;case void 0:r=t;break;default:r="finalized"}return("finalized"===r?2:"confirmed"===r?1:0)<("finalized"===t?2:"confirmed"===t?1:0)?r:t}const[a,c,u]=yield Promise.all([o.getCapabilities(),this.performReauthorization(o,r),et(t)?null:(()=>J(this,void 0,void 0,(function*(){var n;if(t.feePayer||(t.feePayer=null!==(n=this.publicKey)&&void 0!==n?n:void 0),null==t.recentBlockhash){const{blockhash:n}=yield e.getLatestBlockhash({commitment:s()});t.recentBlockhash=n}})))()]);if(a.supports_sign_and_send_transactions){return(yield o.signAndSendTransactions({minContextSlot:i,transactions:[t]}))[0]}{const[r]=yield o.signTransactions({transactions:[t]});if(et(r))return yield e.sendTransaction(r);{const t=r.serialize();return yield e.sendRawTransaction(t,Object.assign(Object.assign({},n),{preflightCommitment:s()}))}}}))))}catch(s){throw new o.IW(null===s||void 0===s?void 0:s.message,s)}}))))}
1))}signTransaction(t){return J(this,void 0,void 0,(function*(){return yield this.runWithGuard((()=>J(this,void 0,void 0,(function*(){const[e]=yield this.performSignTransactions([t]);return e}))))}))}signAllTransactions(t){return J(this,void 0,void 0,(function*(){return yield this.runWithGuard((()=>J(this,void 0,void 0,(function*(){return yield this.performSignTransactions(t)}))))}))}signMessage(t){return J(this,void 0,void 0,(function*(){return yield this.runWithGuard((()=>J(this,void 0,void 0,(function*(){const{authToken:e,selectedAddress:n}=this.assertIsAuthorized();try{return yield this.transact((r=>J(this,void 0,void 0,(function*(){yield this.performReauthorization(r,e);const[i]=yield r.signMessages({addresses:[n],payloads:[t]});return i.slice(-64)}))))}catch(r){throw new o.fk(null===r||void 0===r?void 0:r.message,r)}}))))}))}signIn(t){return J(this,void 0,void 0,(function*(){return yield this.runWithGuard((()=>J(this,void 0,void 0,(function*(){var e,n;if(this._readyState!==i.i1.Installed&&this._readyState!==i.i1.Loadable)throw new o.OZ;this._connecting=!0;try{const r=yield this.performAuthorization(Object.assign(Object.assign({},t),{domain:null!==(e=null===t||void 0===t?void 0:t.domain)&&void 0!==e?e:window.location.host}));if(!r.sign_in_result)throw new Error("Sign in failed, no sign in result returned by wallet");const i=r.sign_in_result.address;return{account:Object.assign(Object.assign({},null!==(n=r.accounts.find((t=>t.address==i)))&&void 0!==n?n:{address:i}),{publicKey:Q(i)}),signedMessage:Q(r.sign_in_result.signed_message),signature:Q(r.sign_in_result.signature)}}catch(r){throw new o.$w(r instanceof Error&&r.message||"Unknown error",r)}finally{this._connecting=!1}}))))}))}}function rt(){return{select(t){return J(this,void 0,void 0,(function*(){return t[0]}))}}}const it="SolanaMobileWalletAdapterDefaultAuthorizationCache";function ot(){let t;try{t=window.localStorage}catch(e){}return{clear(){return J(this,void 0,void 0,(function*(){if(t)try{t.removeItem(it)}catch(e){}}))},get(){return J(this,void 0,void 0,(function*(){if(t)try{return JSON.parse(t.getItem(it))||void 0}catch(e){}}))},set(n){return J(this,void 0,void 0,(function*(){if(t)try{t.setItem(it,JSON.stringify(n))}catch(e){}}))}}}function st(t){return J(this,void 0,void 0,(function*(){"undefined"!==typeof window&&window.location.assign(t.url)}))}function at(){return st}var ct=n(83149),ut=n(38112),lt=n(97745),ht=n(50681);const dt=function(t){return lt.V in t.features&&ht.k in t.features&&(ct.G in t.features||ut.R in t.features)};var ft=n(61999);const pt="solana:signIn";var mt=n(53740);const gt="https://api.mainnet-beta.solana.com";function yt(t){switch(t){case"processed":case"confirmed":case"finalized":case void 0:return t;case"recent":return"processed";case"single":case"singleGossip":return"confirmed";case"max":case"root":return"finalized";default:return}}var bt=n(10535);function vt(t,e){if(t===e)return!0;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap;var wt,_t,kt,St,xt,It,At,Et,Tt,Pt,Ct,Mt,Ot,Rt,Bt,jt,Nt,Lt,Dt=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},zt=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Ft extends i.mI{constructor({wallet:t}){super(),wt.add(this),_t.set(this,void 0),kt.set(this,void 0),St.set(this,void 0),xt.set(this,void 0),It.set(this,void 0),At.set(this,void 0),Et.set(this,void 0),Tt.set(this,"undefined"===typeof window||"undefined"===typeof document?i.i1.Unsupported:i.i1.Installed),Rt.set(this,(t=>{if("accounts"in t){const t=zt(this,Et,"f").accounts[0];zt(this,_t,"f")&&!zt(this,xt,"f")&&t!==zt(this,_t,"f")&&(t?zt(this,wt,"m",Ct).call(this,t):(this.emit
1("error",new o.at),zt(this,wt,"m",Mt).call(this)))}"features"in t&&zt(this,wt,"m",Ot).call(this)})),Dt(this,Et,t,"f"),Dt(this,_t,null,"f"),Dt(this,kt,null,"f"),Dt(this,St,!1,"f"),Dt(this,xt,!1,"f"),Dt(this,It,zt(this,Et,"f").features[ht.k].on("change",zt(this,Rt,"f")),"f"),zt(this,wt,"m",Ot).call(this)}get name(){return zt(this,Et,"f").name}get url(){return"https://github.com/solana-labs/wallet-standard"}get icon(){return zt(this,Et,"f").icon}get readyState(){return zt(this,Tt,"f")}get publicKey(){return zt(this,kt,"f")}get connecting(){return zt(this,St,"f")}get supportedTransactionVersions(){return zt(this,At,"f")}get wallet(){return zt(this,Et,"f")}get standard(){return!0}destroy(){Dt(this,_t,null,"f"),Dt(this,kt,null,"f"),Dt(this,St,!1,"f"),Dt(this,xt,!1,"f");const t=zt(this,It,"f");t&&(Dt(this,It,null,"f"),t())}async autoConnect(){return zt(this,wt,"m",Pt).call(this,{silent:!0})}async connect(){return zt(this,wt,"m",Pt).call(this)}async disconnect(){if(bt.R in zt(this,Et,"f").features)try{Dt(this,xt,!0,"f"),await zt(this,Et,"f").features[bt.R].disconnect()}catch(t){this.emit("error",new o.UG(t?.message,t))}finally{Dt(this,xt,!1,"f")}zt(this,wt,"m",Mt).call(this)}async sendTransaction(t,e,n={}){try{const a=zt(this,_t,"f");if(!a)throw new o.oS;let c;if(ct.G in zt(this,Et,"f").features)if(a.features.includes(ct.G))c=ct.G;else{if(!(ut.R in zt(this,Et,"f").features)||!a.features.includes(ut.R))throw new o.cO;c=ut.R}else{if(!(ut.R in zt(this,Et,"f").features))throw new o.p6;if(!a.features.includes(ut.R))throw new o.cO;c=ut.R}const u=(r=e.rpcEndpoint).includes(gt)?mt.aI:/\bdevnet\b/i.test(r)?mt.BR:/\btestnet\b/i.test(r)?mt.gv:/\blocalhost\b/i.test(r)||/\b127\.0\.0\.1\b/.test(r)?mt.l1:mt.aI;if(!a.chains.includes(u))throw new o.IW;try{const{signers:r,...i}=n;let o;if((0,s.W)(t)?(r?.length&&t.sign(r),o=t.serialize()):(t=await this.prepareTransaction(t,e,i),r?.length&&t.partialSign(...r),o=new Uint8Array(t.serialize({requireAllSignatures:!1,verifySignatures:!1}))),c===ct.G){const[t]=await zt(this,Et,"f").features[ct.G].signAndSendTransaction({account:a,chain:u,transaction:o,options:{preflightCommitment:yt(i.preflightCommitment||e.commitment),skipPreflight:i.skipPreflight,maxRetries:i.maxRetries,minContextSlot:i.minContextSlot}});return K.encode(t.signature)}{const[t]=await zt(this,Et,"f").features[ut.R].signTransaction({account:a,chain:u,transaction:o,options:{preflightCommitment:yt(i.preflightCommitment||e.commitment),minContextSlot:i.minContextSlot}});return await e.sendRawTransaction(t.signedTransaction,{...i,preflightCommitment:yt(i.preflightCommitment||e.commitment)})}}catch(i){if(i instanceof o.lj)throw i;throw new o.IW(i?.message,i)}}catch(i){throw this.emit("error",i),i}var r}}_t=new WeakMap,kt=new WeakMap,St=new WeakMap,xt=new WeakMap,It=new WeakMap,At=new WeakMap,Et=new WeakMap,Tt=new WeakMap,Rt=new WeakMap,wt=new WeakSet,Pt=async function(t){try{if(this.connected||this.connecting)return;if(zt(this,Tt,"f")!==i.i1.Installed)throw new o.OZ;if(Dt(this,St,!0,"f"),!zt(this,Et,"f").accounts.length)try{await zt(this,Et,"f").features[lt.V].connect(t)}catch(e){throw new o.$w(e?.message,e)}const n=zt(this,Et,"f").accounts[0];if(!n)throw new o.cO;zt(this,wt,"m",Ct).call(this,n)}catch(e){throw this.emit("error",e),e}finally{Dt(this,St,!1,"f")}},Ct=function(t){let e;try{e=new m.PublicKey(t.address)}catch(n){throw new o.Nx(n?.message,n)}Dt(this,_t,t,"f"),Dt(this,kt,e,"f"),zt(this,wt,"m",Ot).call(this),this.emit("connect",e)},Mt=function(){Dt(this,_t,null,"f"),Dt(this,kt,null,"f"),zt(this,wt,"m",Ot).call(this),this.emit("disconnect")},Ot=function(){const t=ct.G in zt(this,Et,"f").features?zt(this,Et,"f").features[ct.G].supportedTransactionVersions:zt(this,Et,"f").features[ut.R].supportedTransactionVersions;Dt(this,At,vt(t,["legacy"])?null:new Set(t),"f"),ut.R in zt(this,Et,"f").features&&zt(this,_t,"f")?.features.includes(ut.R)?(this.signTransaction=zt(this,wt,"m",Bt),this.signAllTransactions=zt(this,wt,"m",jt)):(delete this.signTransaction,delete this.signAllTransactions),ft.g in zt(this,Et,"f").features&&zt(this,_t,"f")?.features.includes(ft.g)?this.signMessage=zt(this,wt,"m",Nt):delete this.signMessage,pt in zt(this,Et,"f").features?this.signIn=zt(this,wt,"m",Lt):delete this.signIn},Bt=async function(t){try{const n=zt(this,_t,"f");if(!n)throw new o.oS;if(!(ut.R in zt(this,Et,"f").features))throw new o.p6;if(!n.features.includes(ut.R))throw new o.cO;try{const e=(await zt(this,Et,"f").features[ut.R].signTransaction({account:n,transaction:(0,s.W)(t)?t.serialize():new Uint8Array(t.serialize({requireAllSignatures:!1,verifySignatures:!1}))}
1))[0].signedTransaction;return(0,s.W)(t)?m.VersionedTransaction.deserialize(e):m.Transaction.from(e)}catch(e){if(e instanceof o.lj)throw e;throw new o.PY(e?.message,e)}}catch(e){throw this.emit("error",e),e}},jt=async function(t){try{const n=zt(this,_t,"f");if(!n)throw new o.oS;if(!(ut.R in zt(this,Et,"f").features))throw new o.p6;if(!n.features.includes(ut.R))throw new o.cO;try{const e=await zt(this,Et,"f").features[ut.R].signTransaction(...t.map((t=>({account:n,transaction:(0,s.W)(t)?t.serialize():new Uint8Array(t.serialize({requireAllSignatures:!1,verifySignatures:!1}))}))));return t.map(((t,n)=>{const r=e[n].signedTransaction;return(0,s.W)(t)?m.VersionedTransaction.deserialize(r):m.Transaction.from(r)}))}catch(e){throw new o.PY(e?.message,e)}}catch(e){throw this.emit("error",e),e}},Nt=async function(t){try{const n=zt(this,_t,"f");if(!n)throw new o.oS;if(!(ft.g in zt(this,Et,"f").features))throw new o.p6;if(!n.features.includes(ft.g))throw new o.cO;try{return(await zt(this,Et,"f").features[ft.g].signMessage({account:n,message:t}))[0].signature}catch(e){throw new o.fk(e?.message,e)}}catch(e){throw this.emit("error",e),e}},Lt=async function(t={}){try{if(!(pt in zt(this,Et,"f").features))throw new o.p6;let n;try{[n]=await zt(this,Et,"f").features[pt].signIn(t)}catch(e){throw new o.bD(e?.message,e)}if(!n)throw new o.bD;return zt(this,wt,"m",Ct).call(this,n.account),n}catch(e){throw this.emit("error",e),e}};var Ut,Wt=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Gt=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};let Vt;const Kt=new Set,Ht={};function qt(){if(Vt)return Vt;if(Vt=Object.freeze({register:$t,get:Zt,on:Yt}),"undefined"===typeof window)return Vt;const t=Object.freeze({register:$t});try{window.addEventListener("wallet-standard:register-wallet",(({detail:e})=>e(t)))}catch(e){console.error("wallet-standard:register-wallet event listener could not be added\n",e)}try{window.dispatchEvent(new Jt(t))}catch(e){console.error("wallet-standard:app-ready event could not be dispatched\n",e)}return Vt}function $t(...t){return(t=t.filter((t=>!Kt.has(t)))).length?(t.forEach((t=>Kt.add(t))),Ht.register?.forEach((e=>Xt((()=>e(...t))))),function(){t.forEach((t=>Kt.delete(t))),Ht.unregister?.forEach((e=>Xt((()=>e(...t)))))}):()=>{}}function Zt(){return[...Kt]}function Yt(t,e){return Ht[t]?.push(e)||(Ht[t]=[e]),function(){Ht[t]=Ht[t]?.filter((t=>e!==t))}}function Xt(t){try{t()}catch(e){console.error(e)}}class Jt extends Event{constructor(t){super("wallet-standard:app-ready",{bubbles:!1,cancelable:!1,composed:!1}),Ut.set(this,void 0),Wt(this,Ut,t,"f")}get detail(){return Gt(this,Ut,"f")}get type(){return"wallet-standard:app-ready"}preventDefault(){throw new Error("preventDefault cannot be called")}stopImmediatePropagation(){throw new Error("stopImmediatePropagation cannot be called")}stopPropagation(){throw new Error("stopPropagation cannot be called")}}function Qt(t){const e=te((()=>new Set)),{get:n,on:r}=te((()=>function(){if(Vt)return Vt;if(Vt=qt(),"undefined"===typeof window)return Vt;const t=window.navigator.wallets||[];if(!Array.isArray(t))return console.error("window.navigator.wallets is not an array"),Vt;const{register:e}=Vt,n=(...t)=>t.forEach((t=>Xt((()=>t({register:e})))));try{Object.defineProperty(window.navigator,"wallets",{value:Object.freeze({push:n})})}catch(r){return console.error("window.navigator.wallets could not be set"),Vt}return n(...t),Vt}())),[i,o]=(0,a.useState)((()=>ee(n())));(0,a.useEffect)((()=>{const t=[r("register",((...t)=>o((e=>[...e,...ee(t)])))),r("unregister",((...t)=>o((e=>e.filter((e=>t.some((t=>t===e.wallet))))))))];return()=>t.forEach((t=>t()))}),[r]);const s=function(t){const e=(0,a.useRef)();return(0,a.useEffect)((()=>{e.current=t})),e.current}(i);return(0,a.useEffect)((()=>
1{if(!s)return;const t=new Set(i);new Set(s.filter((e=>!t.has(e)))).forEach((t=>t.destroy()))}),[s,i]),(0,a.useEffect)((()=>()=>i.forEach((t=>t.destroy()))),[]),(0,a.useMemo)((()=>[...i,...t.filter((({name:t})=>!i.some((e=>e.name===t))||(e.has(t)||(e.add(t),console.warn(`${t} was registered as a Standard Wallet. The Wallet Adapter for ${t} can be removed from your app.`)),!1)))]),[i,t,e])}function te(t){const e=(0,a.useRef)();return e.current||(e.current={value:t()}),e.current.value}function ee(t){return t.filter(dt).map((t=>new Ft({wallet:t})))}var ne;Ut=new WeakMap,function(t){t[t.DESKTOP_WEB=0]="DESKTOP_WEB",t[t.MOBILE_WEB=1]="MOBILE_WEB"}(ne||(ne={}));var re=n(44718);class ie extends o.lj{constructor(){super(...arguments),this.name="WalletNotSelectedError"}}function oe({children:t,wallets:e,adapter:n,isUnloadingRef:r,onAutoConnectRequest:s,onConnectError:c,onError:u,onSelectWallet:l}){const h=(0,a.useRef)(!1),[f,p]=(0,a.useState)(!1),m=(0,a.useRef)(!1),[g,y]=(0,a.useState)(!1),[b,v]=(0,a.useState)((()=>n?.publicKey??null)),[w,_]=(0,a.useState)((()=>n?.connected??!1)),k=(0,a.useRef)(u);(0,a.useEffect)((()=>(k.current=u,()=>{k.current=void 0})),[u]);const S=(0,a.useRef)(((t,e)=>(r.current||(k.current?k.current(t,e):(console.error(t,e),t instanceof o.OZ&&"undefined"!==typeof window&&e&&window.open(e.url,"_blank"))),t))),[x,I]=(0,a.useState)((()=>e.map((t=>({adapter:t,readyState:t.readyState}))).filter((({readyState:t})=>t!==i.i1.Unsupported))));(0,a.useEffect)((()=>{function t(t){I((e=>{const n=e.findIndex((({adapter:t})=>t===this));if(-1===n)return e;const{adapter:r}=e[n];return[...e.slice(0,n),{adapter:r,readyState:t},...e.slice(n+1)].filter((({readyState:t})=>t!==i.i1.Unsupported))}))}return I((t=>e.map(((e,n)=>{const r=t[n];return r&&r.adapter===e&&r.readyState===e.readyState?r:{adapter:e,readyState:e.readyState}})).filter((({readyState:t})=>t!==i.i1.Unsupported)))),e.forEach((e=>e.on("readyStateChange",t,e))),()=>{e.forEach((e=>e.off("readyStateChange",t,e)))}}),[n,e]);const A=(0,a.useMemo)((()=>x.find((t=>t.adapter===n))??null),[n,x]);(0,a.useEffect)((()=>{if(!n)return;const t=t=>{v(t),h.current=!1,p(!1),_(!0),m.current=!1,y(!1)},e=()=>{r.current||(v(null),h.current=!1,p(!1),_(!1),m.current=!1,y(!1))},i=t=>{S.current(t,n)};return n.on("connect",t),n.on("disconnect",e),n.on("error",i),()=>{n.off("connect",t),n.off("disconnect",e),n.off("error",i),e()}}),[n,r]);const E=(0,a.useRef)(!1);(0,a.useEffect)((()=>()=>{E.current=!1}),[n]),(0,a.useEffect)((()=>{E.current||h.current||w||!s||A?.readyState!==i.i1.Installed&&A?.readyState!==i.i1.Loadable||(h.current=!0,p(!0),E.current=!0,async function(){try{await s()}catch{c()}finally{p(!1),h.current=!1}}())}),[w,s,c,A]);const T=(0,a.useCallback)((async(t,e,r)=>{if(!n)throw S.current(new ie);if(!w)throw S.current(new o.oS,n);return await n.sendTransaction(t,e,r)}),[n,w]),P=(0,a.useMemo)((()=>n&&"signTransaction"in n?async t=>{if(!w)throw S.current(new o.oS,n);return await n.signTransaction(t)}:void 0),[n,w]),C=(0,a.useMemo)((()=>n&&"signAllTransactions"in n?async t=>{if(!w)throw S.current(new o.oS,n);return await n.signAllTransactions(t)}:void 0),[n,w]),M=(0,a.useMemo)((()=>n&&"signMessage"in n?async t=>{if(!w)throw S.current(new o.oS,n);return await n.signMessage(t)}:void 0),[n,w]),O=(0,a.useMemo)((()=>n&&"signIn"in n?async t=>await n.signIn(t):void 0),[n]),R=(0,a.useCallback)((async()=>{if(h.current||m.current||A?.adapter.connected)return;if(!A)throw S.current(new ie);const{adapter:t,readyState:e}=A;if(e!==i.i1.Installed&&e!==i.i1.Loadable)throw S.current(new o.OZ,t);h.current=!0,p(!0);try{await t.connect()}catch(n){throw c(),n}finally{p(!1),h.current=!1}}),[c,A]),B=(0,a.useCallback)((async()=>{if(!m.current&&n){m.current=!0,y(!0);try{await n.disconnect()}finally{y(!1),m.current=!1}}}),[n]);return a.createElement(d.Provider,{value:{autoConnect:!!s,wallets:x,wallet:A,publicKey:b,connected:w,connecting:f,disconnecting:g,select:l,connect:R,disconnect:B,sendTransaction:T,signTransaction:P,signAllTransactions:C,signMessage:M,signIn:O}},t)}let se;function ae(t){return function({adapters:t,userAgentString:e}){return t.some((t=>t.name!==tt&&t.readyState===i.i1.Installed))?ne.DESKTOP_WEB:e&&/android/i.test(e)&&!function(t){return/(WebView|Version\/.+(Chrome)\/(\d+)\.(\d+)\.(\d+)\.(\d+)|; wv\).+(Chrome)\/(\d+)\.(\d+)\.(\d+)\.(\d+))/i.test(t)}(e)?ne.MOBILE_WEB:ne.DESKTOP_WEB}({adapters:t,userAgentString:(void 0===se&&(se=globalThis.navigator?.userAgent??null),se)})===ne.MOBILE_WEB}function ce(){const t=globalThis.location;if(t)return`${t.protocol}//${t.host}`}function ue({children:t,wallets:e,autoConnect:n,localStorageKey:r="walletName",onError:i}){const{connection:o}=(0,re.R)(),s=Qt(e),c=(0,a.useMemo)((()=>
1{if(!ae(s))return null;const t=s.find((t=>t.name===tt));return t||new nt({addressSelector:rt(),appIdentity:{uri:ce()},authorizationResultCache:ot(),cluster:(e=o?.rpcEndpoint,e?/devnet/i.test(e)?"devnet":/testnet/i.test(e)?"testnet":"mainnet-beta":"mainnet-beta"),onWalletNotFound:at()});var e}),[s,o?.rpcEndpoint]),u=(0,a.useMemo)((()=>null==c||-1!==s.indexOf(c)?s:[c,...s]),[s,c]),[l,h]=p(r,ae(s)?tt:null),d=(0,a.useMemo)((()=>u.find((t=>t.name===l))??null),[u,l]),f=(0,a.useCallback)((t=>{l!==t&&(d&&d.name!==tt&&d.disconnect(),h(t))}),[d,h,l]);(0,a.useEffect)((()=>{if(d)return d.on("disconnect",t),()=>{d.off("disconnect",t)};function t(){y.current||l===tt&&ae(s)||h(null)}}),[d,s,h,l]);const m=(0,a.useRef)(!1),g=(0,a.useMemo)((()=>{if(n&&d)return async()=>{(!0===n||await n(d))&&(m.current?await d.connect():await d.autoConnect())}}),[n,d]),y=(0,a.useRef)(!1);(0,a.useEffect)((()=>{if(l!==tt||!ae(s))return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)};function t(){y.current=!0}y.current=!1}),[s,l]);const b=(0,a.useCallback)((()=>{d&&d.name!==tt&&f(null)}),[d,f]),v=(0,a.useCallback)((t=>{m.current=!0,f(t)}),[f]);return a.createElement(oe,{wallets:u,adapter:d,isUnloadingRef:y,onAutoConnectRequest:g,onConnectError:b,onError:i,onSelectWallet:v},t)}var le=function(){function t(t){var e=this;this._insertTag=function(t){var n;n=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,n),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(e);try{n.insertRule(t,n.cssRules.length)}catch(r){0}}else e.appendChild(document.createTextNode(t));this.ctr++}
vendor: 5,301 bytes, line 1
1,e.flush=function(){this.tags.forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),this.tags=[],this.ctr=0},t}(),he=Math.abs,de=String.fromCharCode,fe=Object.assign;function pe(t){return t.trim()}function me(t,e,n){return t.replace(e,n)}function ge(t,e){return t.indexOf(e)}function ye(t,e){return 0|t.charCodeAt(e)}function be(t,e,n){return t.slice(e,n)}function ve(t){return t.length}function we(t){return t.length}function _e(t,e){return e.push(t),t}var ke=1,Se=1,xe=0,Ie=0,Ae=0,Ee="";function Te(t,e,n,r,i,o,s){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:ke,column:Se,length:s,return:""}}function Pe(t,e){return fe(Te("",null,null,"",null,null,0),t,{length:-t.length},e)}function Ce(){return Ae=Ie>0?ye(Ee,--Ie):0,Se--,10===Ae&&(Se=1,ke--),Ae}function Me(){return Ae=Ie<xe?ye(Ee,Ie++):0,Se++,10===Ae&&(Se=1,ke++),Ae}function Oe(){return ye(Ee,Ie)}function Re(){return Ie}function Be(t,e){return be(Ee,t,e)}function je(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ne(t){return ke=Se=1,xe=ve(Ee=t),Ie=0,[]}function Le(t){return Ee="",t}function De(t){return pe(Be(Ie-1,Ue(91===t?t+2:40===t?t+1:t)))}function ze(t){for(;(Ae=Oe())&&Ae<33;)Me();return je(t)>2||je(Ae)>3?"":" "}function Fe(t,e){for(;--e&&Me()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return Be(t,Re()+(e<6&&32==Oe()&&32==Me()))}function Ue(t){for(;Me();)switch(Ae){case t:return Ie;case 34:case 39:34!==t&&39!==t&&Ue(Ae);break;case 40:41===t&&Ue(t);break;case 92:Me()}return Ie}function We(t,e){for(;Me()&&t+Ae!==57&&(t+Ae!==84||47!==Oe()););return"/*"+Be(e,Ie-1)+"*"+de(47===t?t:Me())}function Ge(t){for(;!je(Oe());)Me();return Be(t,Ie)}var Ve="-ms-",Ke="-moz-",He="-webkit-",qe="comm",$e="rule",Ze="decl",Ye="@keyframes";function Xe(t,e){for(var n="",r=we(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function Je(t,e,n,r){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case Ze:return t.return=t.return||t.value;case qe:return"";case Ye:return t.return=t.value+"{"+Xe(t.children,r)+"}";case $e:t.value=t.props.join(",")}return ve(n=Xe(t.children,r))?t.return=t.value+"{"+n+"}":""}function Qe(t){return Le(tn("",null,null,null,[""],t=Ne(t),0,[0],t))}function tn(t,e,n,r,i,o,s,a,c){for(var u=0,l=0,h=s,d=0,f=0,p=0,m=1,g=1,y=1,b=0,v="",w=i,_=o,k=r,S=v;g;)switch(p=b,b=Me()){case 40:if(108!=p&&58==ye(S,h-1)){-1!=ge(S+=me(De(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=De(b);break;case 9:case 10:case 13:case 32:S+=ze(p);break;case 92:S+=Fe(Re()-1,7);continue;case 47:switch(Oe()){case 42:case 47:_e(nn(We(Me(),Re()),e,n),c);break;default:S+="/"}break;case 123*m:a[u++]=ve(S)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+l:-1==y&&(S=me(S,/\f/g,"")),f>0&&ve(S)-h&&_e(f>32?rn(S+";",r,n,h-1):rn(me(S," ","")+";",r,n,h-2),c);break;case 59:S+=";";default:if(_e(k=en(S,e,n,u,l,i,a,v,w=[],_=[],h),o),123===b)if(0===l)tn(S,e,k,k,w,o,h,a,_);else switch(99===d&&110===ye(S,3)?100:d){case 100:case 108:case 109:case 115:tn(t,k,k,r&&_e(en(t,k,k,0,0,i,a,v,i,w=[],h),_),i,_,h,a,r?w:_);break;default:tn(S,k,k,k,[""],_,0,a,_)}}u=l=f=0,m=y=1,v=S="",h=s;break;case 58:h=1+ve(S),f=p;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Ce())continue;switch(S+=de(b),b*m){case 38:y=l>0?1:(S+="\f",-1);break;case 44:a[u++]=(ve(S)-1)*y,y=1;break;case 64:45===Oe()&&(S+=De(Me())),d=Oe(),l=h=ve(v=S+=Ge(Re())),b++;break;case 45:45===p&&2==ve(S)&&(m=0)}}return o}function en(t,e,n,r,i,o,s,a,c,u,l){for(var h=i-1,d=0===i?o:[""],f=we(d),p=0,m=0,g=0;p<r;++p)for(var y=0,b=be(t,h+1,h=he(m=s[p])),v=t;y<f;++y)(v=pe(m>0?d[y]+" "+b:me(b,/&\f/g,d[y])))&&(c[g++]=v);return Te(t,e,n,0===i?$e:a,c,u,l)}function nn(t,e,n){return Te(t,e,n,qe,de(Ae),be(t,2,-2),0)}function rn(t,e,n,r){return Te(t,e,n,Ze,be(t,0,r),be(t,r+1,-1),r)}var on=function(t,e,n){for(var r=0,i=0;r=i,i=Oe(),38===r&&12===i&&(e[n]=1),!je(i);)Me();return Be(t,Ie)},sn=function(t,e){return Le(function(t,e){var n=-1,r=44;do{switch(je(r)){case 0:38===r&&12===Oe()&&(e[n]=1),t[n]+=on(Ie-1,e,n);break;case 2:t[n]+=De(r);break;case 4:if(44===r){t[++n]=58===Oe()?"&\f":"",e[n]=t[n].length;break}default:t[n]+=de(r)}}while(r=Me());return t}(Ne(t),e))},an=new WeakMap,cn=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,n=t.parent,r=t.column===n.column&&t.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||an.get(n))&&!r){an.set(t,!0);for(var i=[],o=sn(e,i),s=n.props,a=0,c=0;a<o.length;a++)for(var u=0;u<s.length;u++,c++)t.props[c]=i[a]?o[a].replace(/&\f/g,s[u]):s[u]+" "+o[a]}}},un=function(t){if("decl"===t.type){var e=t.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(t.return="",t.value="")}};function ln(t,e){switch(function(t,e){return 45^ye(t,0)?(((e<<2^ye(t,0))<<2^ye(t,1))<<2^ye(t,2))<<2^ye(t,3):0}(t,e)){case 5103:return"-webkit-print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return He+t+t;
vendor: 1,718 bytes, line 1
1case 5349:case 4246:case 4810:case 6968:case 2756:return He+t+Ke+t+Ve+t+t;case 6828:case 4268:return He+t+Ve+t+t;case 6165:return He+t+Ve+"flex-"+t+t;case 5187:return He+t+me(t,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+t;case 5443:return He+t+Ve+"flex-item-"+me(t,/flex-|-self/,"")+t;case 4675:return He+t+Ve+"flex-line-pack"+me(t,/align-content|flex-|-self/,"")+t;case 5548:return He+t+Ve+me(t,"shrink","negative")+t;case 5292:return He+t+Ve+me(t,"basis","preferred-size")+t;case 6060:return"-webkit-box-"+me(t,"-grow","")+He+t+Ve+me(t,"grow","positive")+t;case 4554:return He+me(t,/([^-])(transform)/g,"$1-webkit-$2")+t;case 6187:return me(me(me(t,/(zoom-|grab)/,"-webkit-$1"),/(image-set)/,"-webkit-$1"),t,"")+t;case 5495:case 3959:return me(t,/(image-set\([^]*)/,"-webkit-$1$`$1");case 4968:return me(me(t,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+He+t+t;case 4095:case 3583:case 4068:case 2532:return me(t,/(.+)-inline(.+)/,"-webkit-$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ve(t)-1-e>6)switch(ye(t,e+1)){case 109:if(45!==ye(t,e+4))break;case 102:return me(t,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==ye(t,e+3)?"$3":"$2-$3"))+t;case 115:return~ge(t,"stretch")?ln(me(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==ye(t,e+1))break;case 6444:switch(ye(t,ve(t)-3-(~ge(t,"!important")&&10))){case 107:return me(t,":",":-webkit-")+t;case 101:return me(t,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===ye(t,14)?"inline-":"")+"box$3$1"+"-webkit-$2$3$1"+"-ms-$2box$3")+t}break;case 5936:switch(ye(t,e+11)){case 114:return He+t+Ve+me(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
vendor: 4,489 bytes, line 1
1case 108:return He+t+Ve+me(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return He+t+Ve+me(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return He+t+Ve+t+t}return t}var hn=[function(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case Ze:t.return=ln(t.value,t.length);break;case Ye:return Xe([Pe(t,{value:me(t.value,"@","@-webkit-")})],r);case $e:if(t.length)return function(t,e){return t.map(e).join("")}(t.props,(function(e){switch(function(t,e){return(t=e.exec(t))?t[0]:t}(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xe([Pe(t,{props:[me(e,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Xe([Pe(t,{props:[me(e,/:(plac\w+)/,":-webkit-input-$1")]}),Pe(t,{props:[me(e,/:(plac\w+)/,":-moz-$1")]}),Pe(t,{props:[me(e,/:(plac\w+)/,"-ms-input-$1")]})],r)}return""}))}}],dn=function(t){var e=t.key;if("css"===e){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t),t.setAttribute("data-s",""))}))}var r=t.stylisPlugins||hn;var i,o,s={},a=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),(function(t){for(var e=t.getAttribute("data-emotion").split(" "),n=1;n<e.length;n++)s[e[n]]=!0;a.push(t)}));var c,u,l=[Je,(u=function(t){c.insert(t)},function(t){t.root||(t=t.return)&&u(t)})],h=function(t){var e=we(t);return function(n,r,i,o){for(var s="",a=0;a<e;a++)s+=t[a](n,r,i,o)||"";return s}}([cn,un].concat(r,l));o=function(t,e,n,r){c=n,function(t){Xe(Qe(t),h)}(t?t+"{"+e.styles+"}":e.styles),r&&(d.inserted[e.name]=!0)};var d={key:e,sheet:new le({key:e,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:o};return d.sheet.hydrate(a),d};var fn=function(t,e,n){var r=t.key+"-"+e.name;!1===n&&void 0===t.registered[r]&&(t.registered[r]=e.styles)};var pn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function mn(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var gn=/[A-Z]|^ms/g,yn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bn=function(t){return 45===t.charCodeAt(1)},vn=function(t){return null!=t&&"boolean"!==typeof t},wn=mn((function(t){return bn(t)?t:t.replace(gn,"-$&").toLowerCase()})),_n=function(t,e){switch(t){case"animation":case"animationName":if("string"===typeof e)return e.replace(yn,(function(t,e,n){return Sn={name:e,styles:n,next:Sn},e}))}return 1===pn[t]||bn(t)||"number"!==typeof e||0===e?e:e+"px"};function kn(t,e,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Sn={name:n.name,styles:n.styles,next:Sn},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Sn={name:r.name,styles:r.styles,next:Sn},r=r.next;return n.styles+";"}return function(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=kn(t,e,n[i])+";";else for(var o in n){var s=n[o];if("object"!==typeof s)null!=e&&void 0!==e[s]?r+=o+"{"+e[s]+"}":vn(s)&&(r+=wn(o)+":"+_n(o,s)+";");else if(!Array.isArray(s)||"string"!==typeof s[0]||null!=e&&void 0!==e[s[0]]){var a=kn(t,e,s);switch(o){case"animation":case"animationName":r+=wn(o)+":"+a+";";break;default:r+=o+"{"+a+"}"}}else for(var c=0;c<s.length;c++)vn(s[c])&&(r+=wn(o)+":"+_n(o,s[c])+";")}return r}(t,e,n);case"function":if(void 0!==t){var i=Sn,o=n(t);return Sn=i,kn(t,e,o)}}if(null==e)return n;var s=e[n];return void 0!==s?s:n}var Sn,xn=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var In=!!c.useInsertionEffect&&c.useInsertionEffect,An=In||function(t){return t()},En=(In||a.useLayoutEffect,{}.hasOwnProperty),Tn=a.createContext("undefined"!==typeof HTMLElement?dn({key:"css"}):null);Tn.Provider;var Pn=function(t){return(0,a.forwardRef)((function(e,n){var r=(0,a.useContext)(Tn);return t(e,r,n)}))};
vendor: 4,125 bytes, line 1
1var Cn=a.createContext({});var Mn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",On=function(t,e){var n={};for(var r in e)En.call(e,r)&&(n[r]=e[r]);return n[Mn]=t,n},Rn=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;return fn(e,n,r),An((function(){return function(t,e,n){fn(t,e,n);var r=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var i=e;do{t.insert(e===i?"."+r:"",i,t.sheet,!0),i=i.next}while(void 0!==i)}}(e,n,r)})),null},Bn=Pn((function(t,e,n){var r=t.css;"string"===typeof r&&void 0!==e.registered[r]&&(r=e.registered[r]);var i=t[Mn],o=[r],s="";"string"===typeof t.className?s=function(t,e,n){var r="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]+";"):r+=n+" "})),r}(e.registered,o,t.className):null!=t.className&&(s=t.className+" ");var c=function(t,e,n){if(1===t.length&&"object"===typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var r=!0,i="";Sn=void 0;var o=t[0];null==o||void 0===o.raw?(r=!1,i+=kn(n,e,o)):i+=o[0];for(var s=1;s<t.length;s++)i+=kn(n,e,t[s]),r&&(i+=o[s]);xn.lastIndex=0;for(var a,c="";null!==(a=xn.exec(i));)c+="-"+a[1];var u=function(t){for(var e,n=0,r=0,i=t.length;i>=4;++r,i-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+c;return{name:u,styles:i,next:Sn}}(o,void 0,a.useContext(Cn));s+=e.key+"-"+c.name;var u={};for(var l in t)En.call(t,l)&&"css"!==l&&l!==Mn&&(u[l]=t[l]);return u.ref=n,u.className=s,a.createElement(a.Fragment,null,a.createElement(Rn,{cache:e,serialized:c,isStringTag:"string"===typeof i}),a.createElement(i,u))}));var jn=Bn,Nn=(n(8679),function(t,e){var n=arguments;if(null==e||!En.call(e,"css"))return a.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=jn,i[1]=On(t,e);for(var o=2;o<r;o++)i[o]=n[o];return a.createElement.apply(null,i)});var Ln,Dn,zn=9e15,Fn=1e9,Un="0123456789abcdef",Wn="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Gn="3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196442881097566593344612847564823378678316527120190914564856692346034861045432664821339360726024914127372458700660631558817488152092096282925409171536436789259036001133053054882046652138414695194151160943305727036575959195309218611738193261179310511854807446237996274956735188575272489122793818301194912983367336244065664308602139494639522473719070217986094370277053921717629317675238467481846766940513200056812714526356082778577134275778960917363717872146844090122495343014654958537105079227968925892354201995611212902196086403441815981362977477130996051870721134999999837297804995105973173281609631859502445945534690830264252230825334468503526193
111881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Vn={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-zn,maxE:zn,crypto:!1},Kn=!0,Hn="[DecimalError] ",qn=Hn+"Invalid argument: ",$n=Hn+"Precision limit exceeded",Zn=Hn+"crypto unavailable",Yn="[object Decimal]",Xn=Math.floor,Jn=Math.pow,Qn=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,tr=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,er=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,nr=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,rr=1e7,ir=Wn.length-1,or=Gn.length-1,sr={toStringTag:Yn};function ar(t){var e,n,r,i=t.length-1,o="",s=t[0];if(i>0){for(o+=s,e=1;e<i;e++)(n=7-(r=t[e]+"").length)&&(o+=br(n)),o+=r;(n=7-(r=(s=t[e])+"").length)&&(o+=br(n))}else if(0===s)return"0";for(;s%10===0;)s/=10;return o+s}function cr(t,e,n){if(t!==~~t||t<e||t>n)throw Error(qn+t)}function ur(t,e,n,r){var i,o,s,a;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=7,i=0):(i=Math.ceil((e+1)/7),e%=7),o=Jn(10,7-e),a=t[i]%o|0,null==r?e<3?(0==e?a=a/100|0:1==e&&(a=a/10|0),s=n<4&&99999==a||n>3&&49999==a||5e4==a||0==a):s=(n<4&&a+1==o||n>3&&a+1==o/2)&&(t[i+1]/o/100|0)==Jn(10,e-2)-1||(a==o/2||0==a)&&0==(t[i+1]/o/100|0):e<4?(0==e?a=a/1e3|0:1==e?a=a/100|0:2==e&&(a=a/10|0),s=(r||n<4)&&9999==a||!r&&n>3&&4999==a):s=((r||n<4)&&a+1==o||!r&&n>3&&a+1==o/2)&&(t[i+1]/o/1e3|0)==Jn(10,e-3)-1,s}function lr(t,e,n){for(var r,i,o=[0],s=0,a=t.length;s<a;){for(i=o.length;i--;)o[i]*=e;for(o[0]+=Un.indexOf(t.charAt(s++)),r=0;r<o.length;r++)o[r]>n-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}sr.absoluteValue=sr.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),dr(t)},sr.ceil=function(){return dr(new this.constructor(this),this.e+1,2)},sr.clampedTo=sr.clamp=function(t,e){var n=this,r=n.constructor;if(t=new r(t),e=new r(e),!t.s||!e.s)return new r(NaN);if(t.gt(e))throw Error(qn+e);return n.cmp(t)<0?t:n.cmp(e)>0?e:new r(n)},sr.comparedTo=sr.cmp=function(t){var e,n,r,i,o=this,s=o.d,a=(t=new o.constructor(t)).d,c=o.s,u=t.s;if(!s||!a)return c&&u?c!==u?c:s===a?0:!s^c<0?1:-1:NaN;if(!s[0]||!a[0])return s[0]?c:a[0]?-u:0;if(c!==u)return c;if(o.e!==t.e)return o.e>t.e^c<0?1:-1;for(e=0,n=(r=s.length)<(i=a.length)?r:i;e<n;++e)if(s[e]!==a[e])return s[e]>a[e]^c<0?1:-1;return r===i?0:r>i^c<0?1:-1},sr.cosine=sr.cos=function(){var t,e,n=this,r=n.constructor;return n.d?n.d[0]?(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(t,e){var n,r,i;if(e.isZero())return e;(r=e.d.length)<32?i=(1/Tr(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10");t.precision+=n,e=Er(t,1,e.times(i),new t(1));for(var o=n;o--;){var s=e.times(e);e=s.times(s).minus(s).times(8).plus(1)}return t.precision-=n,e}(r,Pr(r,n)),r.precision=t,r.rounding=e,dr(2==Dn||3==Dn?n.neg():n,t,e,!0)):new r(1):new r(NaN)},sr.cubeRoot=sr.cbrt=function(){var t,e,n,r,i,o,s,a,c,u,l=this,h=l.constructor;if(!l.isFinite()||l.isZero())return new h(l);for(Kn=!1,(o=l.s*Jn(l.s*l,1/3))&&Math.abs(o)!=1/0?r=new h(o.toString()):(n=ar(l.d),(o=((t=l.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=Jn(n,1/3),t=Xn((t+1)/3)-(t%3==(t<0?-1:2)),(r=new h(n=o==1/0?"5e"+t:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+t)).s=l.s),s=(t=h.precision)+3;;)if(u=(c=(a=r).times(a).times(a)).plus(l),r=hr(u.plus(l).times(a),u.plus(c),s+2,1),ar(a.d).slice(0,s)===(n=ar(r.d)).slice(0,s)){if("9999"!=(n=n.slice(s-3,s+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(dr(r,t+1,1),e=!r.times(r).times(r).eq(l));break}
vendor: 9,241 bytes, line 1
1if(!i&&(dr(a,t+1,0),a.times(a).times(a).eq(l))){r=a;break}s+=4,i=1}return Kn=!0,dr(r,t,h.rounding,e)},sr.decimalPlaces=sr.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=7*((t=e.length-1)-Xn(this.e/7)),t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},sr.dividedBy=sr.div=function(t){return hr(this,new this.constructor(t))},sr.dividedToIntegerBy=sr.divToInt=function(t){var e=this.constructor;return dr(hr(this,new e(t),0,1,1),e.precision,e.rounding)},sr.equals=sr.eq=function(t){return 0===this.cmp(t)},sr.floor=function(){return dr(new this.constructor(this),this.e+1,3)},sr.greaterThan=sr.gt=function(t){return this.cmp(t)>0},sr.greaterThanOrEqualTo=sr.gte=function(t){var e=this.cmp(t);return 1==e||0===e},sr.hyperbolicCosine=sr.cosh=function(){var t,e,n,r,i,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;n=s.precision,r=s.rounding,s.precision=n+Math.max(o.e,o.sd())+4,s.rounding=1,(i=o.d.length)<32?e=(1/Tr(4,t=Math.ceil(i/3))).toString():(t=16,e="2.3283064365386962890625e-10"),o=Er(s,1,o.times(e),new s(1),!0);for(var c,u=t,l=new s(8);u--;)c=o.times(o),o=a.minus(c.times(l.minus(c.times(l))));return dr(o,s.precision=n,s.rounding=r,!0)},sr.hyperbolicSine=sr.sinh=function(){var t,e,n,r,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,n=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,(r=i.d.length)<3)i=Er(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(r))>16?16:0|t,i=Er(o,2,i=i.times(1/Tr(5,t)),i,!0);for(var s,a=new o(5),c=new o(16),u=new o(20);t--;)s=i.times(i),i=i.times(a.plus(s.times(c.times(s).plus(u))))}return o.precision=e,o.rounding=n,dr(i,e,n,!0)},sr.hyperbolicTangent=sr.tanh=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+7,r.rounding=1,hr(n.sinh(),n.cosh(),r.precision=t,r.rounding=e)):new r(n.s)},sr.inverseCosine=sr.acos=function(){var t,e=this,n=e.constructor,r=e.abs().cmp(1),i=n.precision,o=n.rounding;return-1!==r?0===r?e.isNeg()?gr(n,i,o):new n(0):new n(NaN):e.isZero()?gr(n,i+4,o).times(.5):(n.precision=i+6,n.rounding=1,e=e.asin(),t=gr(n,i+4,o).times(.5),n.precision=i,n.rounding=o,t.minus(e))},sr.inverseHyperbolicCosine=sr.acosh=function(){var t,e,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(t=r.precision,e=r.rounding,r.precision=t+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,Kn=!1,n=n.times(n).minus(1).sqrt().plus(n),Kn=!0,r.precision=t,r.rounding=e,n.ln()):new r(n)},sr.inverseHyperbolicSine=sr.asinh=function(){var t,e,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,Kn=!1,n=n.times(n).plus(1).sqrt().plus(n),Kn=!0,r.precision=t,r.rounding=e,n.ln())},sr.inverseHyperbolicTangent=sr.atanh=function(){var t,e,n,r,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=o.precision,e=o.rounding,r=i.sd(),Math.max(r,t)<2*-i.e-1?dr(new o(i),t,e,!0):(o.precision=n=r-i.e,i=hr(i.plus(1),new o(1).minus(i),n+t,1),o.precision=t+4,o.rounding=1,i=i.ln(),o.precision=t,o.rounding=e,i.times(.5))):new o(NaN)},sr.inverseSine=sr.asin=function(){var t,e,n,r,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),n=o.precision,r=o.rounding,-1!==e?0===e?((t=gr(o,n+4,r).times(.5)).s=i.s,t):new o(NaN):(o.precision=n+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=r,i.times(2)))},sr.inverseTangent=sr.atan=function(){var t,e,n,r,i,o,s,a,c,u=this,l=u.constructor,h=l.precision,d=l.rounding;if(u.isFinite()){if(u.isZero())return new l(u);if(u.abs().eq(1)&&h+4<=or)return(s=gr(l,h+4,d).times(.25)).s=u.s,s}else{if(!u.s)return new l(NaN);if(h+4<=or)return(s=gr(l,h+4,d).times(.5)).s=u.s,s}for(l.precision=a=h+10,l.rounding=1,t=n=Math.min(28,a/7+2|0);t;--t)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(Kn=!1,e=Math.ceil(a/7),r=1,c=u.times(u),s=new l(u),i=u;-1!==t;)if(i=i.times(c),o=s.minus(i.div(r+=2)),i=i.times(c),void 0!==(s=o.plus(i.div(r+=2))).d[e])for(t=e;s.d[t]===o.d[t]&&t--;);return n&&(s=s.times(2<<n-1)),Kn=!0,dr(s,l.precision=h,l.rounding=d,!0)},sr.isFinite=function(){return!!this.d},sr.isInteger=sr.isInt=function(){return!!this.d&&Xn(this.e/7)>this.d.length-2},sr.isNaN=function(){return!this.s},sr.isNegative=sr.isNeg=function(){return this.s<0},sr.isPositive=sr.isPos=function(){return this.s>0},sr.isZero=function(){return!!this.d&&0===this.d[0]},sr.lessThan=sr.lt=function(t){return this.cmp(t)<0},sr.lessThanOrEqualTo=sr.lte=function(t){return this.cmp(t)<1},sr.logarithm=sr.log=function(t){var e,n,r,i,o,s,a,c,u=this,l=u.constructor,h=l.precision,d=l.rounding;if(null==t)t=new l(10),e=!0;else{if(n=(t=new l(t)).d,t.s<0||!n||!n[0]||t.eq(1))return new l(NaN);e=t.eq(10)}if(n=u.d,u.s<0||!n||!n[0]||u.eq(1))return new l(n&&!n[0]?-1/0:1!=u.s?NaN:n?0:1/0);if(e)if(n.length>1)o=!0;else{for(i=n[0];i%10===0;)i/=10;o=1!==i}if(Kn=!1,s=Sr(u,a=h+5),r=e?mr(l,a+10):Sr(t,a),ur((c=hr(s,r,a,1)).d,i=h,d))do{if(s=Sr(u,a+=10),r=e?mr(l,a+10):Sr(t,a),c=hr(s,r,a,1),!o){+ar(c.d).slice(i+1,i+15)+1==1e14&&(c=dr(c,h+1,0));break}}while(ur(c.d,i+=10,d));return Kn=!0,dr(c,h,d)},sr.minus=sr.sub=function(t){var e,n,r,i,o,s,a,c,u,l,h,d,f=this,p=f.constructor;if(t=new p(t),!f.d||!t.d)return f.s&&t.s?f.d?t.s=-t.s:t=new p(t.d||f.s!==t.s?f:NaN):t=new p(NaN),t;if(f.s!=t.s)return t.s=-t.s,f.plus(t);if(u=f.d,d=t.d,a=p.precision,c=p.rounding,!u[0]||!d[0]){if(d[0])t.s=-t.s;else{if(!u[0])return new p(3===c?-0:0);t=new p(f)}return Kn?dr(t,a,c):t}if(n=Xn(t.e/7),l=Xn(f.e/7),u=u.slice(),o=l-n){for((h=o<0)?(e=u,o=-o,s=d.length):(e=d,n=l,s=u.length),o>(r=Math.max(Math.ceil(a/7),s)+2)&&(o=r,e.length=1),e.reverse(),r=o;r--;)e.push(0);e.reverse()}else{for((h=(r=u.length)<(s=d.length))&&(s=r),r=0;r<s;r++)if(u[r]!=d[r]){h=u[r]<d[r];break}o=0}for(h&&(e=u,u=d,d=e,t.s=-t.s),s=u.length,r=d.length-s;r>0;--r)u[s++]=0;for(r=d.length;r>o;){if(u[--r]<d[r]){for(i=r;i&&0===u[--i];)u[i]=rr-1;--u[i],u[r]+=rr}u[r]-=d[r]}for(;0===u[--s];)u.pop();for(;0===u[0];u.shift())--n;return u[0]?(t.d=u,t.e=pr(u,n),Kn?dr(t,a,c):t):new p(3===c?-0:0)},sr.modulo=sr.mod=function(t){var e,n=this,r=n.constructor;return t=new r(t),!n.d||!t.s||t.d&&!t.d[0]?new r(NaN):!t.d||n.d&&!n.d[0]?dr(new r(n),r.precision,r.rounding):(Kn=!1,9==r.modulo?(e=hr(n,t.abs(),0,3,1)).s*=t.s:e=hr(n,t,0,r.modulo,1),e=e.times(t),Kn=!0,n.minus(e))},sr.naturalExponential=sr.exp=function(){return kr(this)},sr.naturalLogarithm=sr.ln=function(){return Sr(this)},sr.negated=sr.neg=function(){var t=new this.constructor(this);return t.s=-t.s,dr(t)},sr.plus=sr.add=function(t){var e,n,r,i,o,s,a,c,u,l,h=this,d=h.constructor;if(t=new d(t),!h.d||!t.d)return h.s&&t.s?h.d||(t=new d(t.d||h.s===t.s?h:NaN)):t=new d(NaN),t;if(h.s!=t.s)return t.s=-t.s,h.minus(t);if(u=h.d,l=t.d,a=d.precision,c=d.rounding,!u[0]||!l[0])return l[0]||(t=new d(h)),Kn?dr(t,a,c):t;if(o=Xn(h.e/7),r=Xn(t.e/7),u=u.slice(),i=o-r){for(i<0?(n=u,i=-i,s=l.length):(n=l,r=o,s=u.length),i>(s=(o=Math.ceil(a/7))>s?o+1:s+1)&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((s=u.length)-(i=l.length)<0&&(i=s,n=l,l=u,u=n),e=0;i;)e=(u[--i]=u[i]+l[i]+e)/rr|0,u[i]%=rr;for(e&&(u.unshift(e),++r),s=u.length;0==u[--s];)u.pop();return t.d=u,t.e=pr(u,r),Kn?dr(t,a,c):t},sr.precision=sr.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(qn+t);return n.d?(e=yr(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},sr.round=function(){var t=this,e=t.constructor;return dr(new e(t),t.e+1,e.rounding)},sr.sine=sr.sin=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(t,e){var n,r=e.d.length;if(r<3)return e.isZero()?e:Er(t,2,e,e);n=(n=1.4*Math.sqrt(r))>16?16:0|n,e=e.times(1/Tr(5,n)),e=Er(t,2,e,e);for(var i,o=new t(5),s=new t(16),a=new t(20);n--;)i=e.times(e),e=e.times(o.plus(i.times(s.times(i).minus(a))));return e}(r,Pr(r,n)),r.precision=t,r.rounding=e,dr(Dn>2?n.neg():n,t,e,!0)):new r(NaN)},sr.squareRoot=sr.sqrt=function(){var t,e,n,r,i,o,s=this,a=s.d,c=s.e,u=s.s,l=s.constructor;if(1!==u||!a||!a[0])return new l(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);for(Kn=!1,0==(u=Math.sqrt(+s))||u==1/0?(((e=ar(a)).length+c)%2==0&&(e+="0"),u=Math.sqrt(e),c=Xn((c+1)/2)-(c<0||c%2),r=new l(e=u==1/0?"5e"+c:(e=u.toExponential()).slice(0,e.indexOf("e")+1)+c)):r=new l(u.toString()),n=(c=l.precision)+3;;)if(r=(o=r).plus(hr(s,o,n+2,1)).times(.5),ar(o.d).slice(0,n)===(e=ar(r.d)).slice(0,n)){if("9999"!=(e=e.slice(n-3,n+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(dr(r,c+1,1),t=!r.times(r).eq(s));break}if(!i&&(dr(o,c+1,0),o.times(o).eq(s))){r=o;break}n+=4,i=1}return Kn=!0,dr(r,c,l.rounding,t)},sr.tangent=sr.tan=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+10,r.rounding=1,(n=n.sin()).s=1,n=hr(n,new r(1).minus(n.times(n)).sqrt(),t+10,0),r.precision=t,r.rounding=e,dr(2==Dn||4==Dn?n.neg():n,t,e,!0)):new r(NaN)},sr.times=sr.mul=function(t){var e,n,r,i,o,s,a,c,u,l=this,h=l.constructor,d=l.d,f=(t=new h(t)).d;if(t.s*=l.s,!d||!d[0]||!f||!f[0])return new h(!t.s||d&&!d[0]&&!f||f&&!f[0]&&!d?NaN:d&&f?0*t.s:t.s/0);
vendor: 5,366 bytes, line 1
1for(n=Xn(l.e/7)+Xn(t.e/7),(c=d.length)<(u=f.length)&&(o=d,d=f,f=o,s=c,c=u,u=s),o=[],r=s=c+u;r--;)o.push(0);for(r=u;--r>=0;){for(e=0,i=c+r;i>r;)a=o[i]+f[r]*d[i-r-1]+e,o[i--]=a%rr|0,e=a/rr|0;o[i]=(o[i]+e)%rr|0}for(;!o[--s];)o.pop();return e?++n:o.shift(),t.d=o,t.e=pr(o,n),Kn?dr(t,h.precision,h.rounding):t},sr.toBinary=function(t,e){return Cr(this,2,t,e)},sr.toDecimalPlaces=sr.toDP=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(cr(t,0,Fn),void 0===e?e=r.rounding:cr(e,0,8),dr(n,t+n.e+1,e))},sr.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=fr(r,!0):(cr(t,0,Fn),void 0===e?e=i.rounding:cr(e,0,8),n=fr(r=dr(new i(r),t+1,e),!0,t+1)),r.isNeg()&&!r.isZero()?"-"+n:n},sr.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?n=fr(i):(cr(t,0,Fn),void 0===e?e=o.rounding:cr(e,0,8),n=fr(r=dr(new o(i),t+i.e+1,e),!1,t+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},sr.toFraction=function(t){var e,n,r,i,o,s,a,c,u,l,h,d,f=this,p=f.d,m=f.constructor;if(!p)return new m(f);if(u=n=new m(1),r=c=new m(0),s=(o=(e=new m(r)).e=yr(p)-f.e-1)%7,e.d[0]=Jn(10,s<0?7+s:s),null==t)t=o>0?e:u;else{if(!(a=new m(t)).isInt()||a.lt(u))throw Error(qn+a);t=a.gt(e)?o>0?e:u:a}for(Kn=!1,a=new m(ar(p)),l=m.precision,m.precision=o=7*p.length*2;h=hr(a,e,0,1,1),1!=(i=n.plus(h.times(r))).cmp(t);)n=r,r=i,i=u,u=c.plus(h.times(i)),c=i,i=e,e=a.minus(h.times(i)),a=i;return i=hr(t.minus(n),r,0,1,1),c=c.plus(i.times(u)),n=n.plus(i.times(r)),c.s=u.s=f.s,d=hr(u,r,o,1).minus(f).abs().cmp(hr(c,n,o,1).minus(f).abs())<1?[u,r]:[c,n],m.precision=l,Kn=!0,d},sr.toHexadecimal=sr.toHex=function(t,e){return Cr(this,16,t,e)},sr.toNearest=function(t,e){var n=this,r=n.constructor;if(n=new r(n),null==t){if(!n.d)return n;t=new r(1),e=r.rounding}else{if(t=new r(t),void 0===e?e=r.rounding:cr(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(Kn=!1,n=hr(n,t,0,e,1).times(t),Kn=!0,dr(n)):(t.s=n.s,n=t),n},sr.toNumber=function(){return+this},sr.toOctal=function(t,e){return Cr(this,8,t,e)},sr.toPower=sr.pow=function(t){var e,n,r,i,o,s,a=this,c=a.constructor,u=+(t=new c(t));if(!a.d||!t.d||!a.d[0]||!t.d[0])return new c(Jn(+a,u));if((a=new c(a)).eq(1))return a;if(r=c.precision,o=c.rounding,t.eq(1))return dr(a,r,o);if((e=Xn(t.e/7))>=t.d.length-1&&(n=u<0?-u:u)<=9007199254740991)return i=vr(c,a,n,r),t.s<0?new c(1).div(i):dr(i,r,o);if((s=a.s)<0){if(e<t.d.length-1)return new c(NaN);if(0==(1&t.d[e])&&(s=1),0==a.e&&1==a.d[0]&&1==a.d.length)return a.s=s,a}return(e=0!=(n=Jn(+a,u))&&isFinite(n)?new c(n+"").e:Xn(u*(Math.log("0."+ar(a.d))/Math.LN10+a.e+1)))>c.maxE+1||e<c.minE-1?new c(e>0?s/0:0):(Kn=!1,c.rounding=a.s=1,n=Math.min(12,(e+"").length),(i=kr(t.times(Sr(a,r+n)),r)).d&&ur((i=dr(i,r+5,1)).d,r,o)&&(e=r+10,+ar((i=dr(kr(t.times(Sr(a,e+n)),e),e+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=dr(i,r+1,0))),i.s=s,Kn=!0,c.rounding=o,dr(i,r,o))},sr.toPrecision=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=fr(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(cr(t,1,Fn),void 0===e?e=i.rounding:cr(e,0,8),n=fr(r=dr(new i(r),t,e),t<=r.e||r.e<=i.toExpNeg,t)),r.isNeg()&&!r.isZero()?"-"+n:n},sr.toSignificantDigits=sr.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(cr(t,1,Fn),void 0===e?e=n.rounding:cr(e,0,8)),dr(new n(this),t,e)},sr.toString=function(){var t=this,e=t.constructor,n=fr(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},sr.truncated=sr.trunc=function(){return dr(new this.constructor(this),this.e+1,1)},sr.valueOf=sr.toJSON=function(){var t=this,e=t.constructor,n=fr(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};var hr=function(){function t(t,e,n){var r,i=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+i,t[o]=r%n|0,i=r/n|0;return i&&t.unshift(i),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]<e[n]?1:0,t[n]=i*r+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(r,i,o,s,a,c){var u,l,h,d,f,p,m,g,y,b,v,w,_,k,S,x,I,A,E,T,P=r.constructor,C=r.s==i.s?1:-1,M=r.d,O=i.d;if(!M||!M[0]||!O||!O[0])return new P(r.s&&i.s&&(M?!O||M[0]!=O[0]:O)?M&&0==M[0]||!O?0*C:C/0:NaN);for(c?(f=1,l=r.e-i.e):(c=rr,f=7,l=Xn(r.e/f)-Xn(i.e/f)),E=O.length,I=M.length,b=(y=new P(C)).d=[],h=0;O[h]==(M[h]||0);h++);if(O[h]>(M[h]||0)&&l--,null==o?(k=o=P.precision,s=P.rounding):k=a?o+(r.e-i.e)+1:o,k<0)b.push(1),p=!0;else{if(k=k/f+2|0,h=0,1==E){for(d=0,O=O[0],k++;(h<I||d)&&k--;h++)S=d*c+(M[h]||0),b[h]=S/O|0,d=S%O|0;p=d||h<I}else{for((d=c/(O[0]+1)|0)>1&&(O=t(O,d,c),M=t(M,d,c),E=O.length,I=M.length),x=E,w=(v=M.slice(0,E)).length;w<E;)v[w++]=0;(T=O.slice()).unshift(0),A=O[0],O[1]>=c/2&&++A;do{d=0,(u=e(O,v,E,w))<0?(_=v[0],E!=w&&(_=_*c+(v[1]||0)),(d=_/A|0)>1?(d>=c&&(d=c-1),1==(u=e(m=t(O,d,c),v,g=m.length,w=v.length))&&(d--,n(m,E<g?T:O,g,c))):(0==d&&(u=d=1),m=O.slice()),(g=m.length)<w&&m.unshift(0),n(v,m,w,c),-1==u&&(u=e(O,v,E,w=v.length))<1&&(d++,n(v,E<w?T:O,w,c)),w=v.length):0===u&&(d++,v=[0]),b[h++]=d,u&&v[0]?v[w++]=M[x]||0:(v=[M[x]],w=1)}while((x++<I||void 0!==v[0])&&k--);p=void 0!==v[0]}b[0]||b.shift()}if(1==f)y.e=l,Ln=p;else{for(h=1,d=b[0];d>=10;d/=10)h++;y.e=h+l*f-1,dr(y,a?o+y.e+1:o,s,p)}return y}}();function dr(t,e,n,r){var i,o,s,a,c,u,l,h,d,f=t.constructor;t:if(null!=e){if(!(h=t.d))return t;for(i=1,a=h[0];a>=10;a/=10)i++;
vendor: 4,923 bytes, line 1
1if((o=e-i)<0)o+=7,s=e,c=(l=h[d=0])/Jn(10,i-s-1)%10|0;else if((d=Math.ceil((o+1)/7))>=(a=h.length)){if(!r)break t;for(;a++<=d;)h.push(0);l=c=0,i=1,s=(o%=7)-7+1}else{for(l=a=h[d],i=1;a>=10;a/=10)i++;c=(s=(o%=7)-7+i)<0?0:l/Jn(10,i-s-1)%10|0}if(r=r||e<0||void 0!==h[d+1]||(s<0?l:l%Jn(10,i-s-1)),u=n<4?(c||r)&&(0==n||n==(t.s<0?3:2)):c>5||5==c&&(4==n||r||6==n&&(o>0?s>0?l/Jn(10,i-s):0:h[d-1])%10&1||n==(t.s<0?8:7)),e<1||!h[0])return h.length=0,u?(e-=t.e+1,h[0]=Jn(10,(7-e%7)%7),t.e=-e||0):h[0]=t.e=0,t;if(0==o?(h.length=d,a=1,d--):(h.length=d+1,a=Jn(10,7-o),h[d]=s>0?(l/Jn(10,i-s)%Jn(10,s)|0)*a:0),u)for(;;){if(0==d){for(o=1,s=h[0];s>=10;s/=10)o++;for(s=h[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(t.e++,h[0]==rr&&(h[0]=1));break}if(h[d]+=a,h[d]!=rr)break;h[d--]=0,a=1}for(o=h.length;0===h[--o];)h.pop()}return Kn&&(t.e>f.maxE?(t.d=null,t.e=NaN):t.e<f.minE&&(t.e=0,t.d=[0])),t}function fr(t,e,n){if(!t.isFinite())return xr(t);var r,i=t.e,o=ar(t.d),s=o.length;return e?(n&&(r=n-s)>0?o=o.charAt(0)+"."+o.slice(1)+br(r):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):i<0?(o="0."+br(-i-1)+o,n&&(r=n-s)>0&&(o+=br(r))):i>=s?(o+=br(i+1-s),n&&(r=n-i-1)>0&&(o=o+"."+br(r))):((r=i+1)<s&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(o+="."),o+=br(r))),o}function pr(t,e){var n=t[0];for(e*=7;n>=10;n/=10)e++;return e}function mr(t,e,n){if(e>ir)throw Kn=!0,n&&(t.precision=n),Error($n);return dr(new t(Wn),e,1,!0)}function gr(t,e,n){if(e>or)throw Error($n);return dr(new t(Gn),e,n,!0)}function yr(t){var e=t.length-1,n=7*e+1;if(e=t[e]){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function br(t){for(var e="";t--;)e+="0";return e}function vr(t,e,n,r){var i,o=new t(1),s=Math.ceil(r/7+4);for(Kn=!1;;){if(n%2&&Mr((o=o.times(e)).d,s)&&(i=!0),0===(n=Xn(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}Mr((e=e.times(e)).d,s)}return Kn=!0,o}function wr(t){return 1&t.d[t.d.length-1]}function _r(t,e,n){for(var r,i=new t(e[0]),o=0;++o<e.length;){if(!(r=new t(e[o])).s){i=r;break}i[n](r)&&(i=r)}return i}function kr(t,e){var n,r,i,o,s,a,c,u=0,l=0,h=0,d=t.constructor,f=d.rounding,p=d.precision;if(!t.d||!t.d[0]||t.e>17)return new d(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(Kn=!1,c=p):c=e,a=new d(.03125);t.e>-2;)t=t.times(a),h+=5;for(c+=r=Math.log(Jn(2,h))/Math.LN10*2+5|0,n=o=s=new d(1),d.precision=c;;){if(o=dr(o.times(t),c,1),n=n.times(++l),ar((a=s.plus(hr(o,n,c,1))).d).slice(0,c)===ar(s.d).slice(0,c)){for(i=h;i--;)s=dr(s.times(s),c,1);if(null!=e)return d.precision=p,s;if(!(u<3&&ur(s.d,c-r,f,u)))return dr(s,d.precision=p,f,Kn=!0);d.precision=c+=10,n=o=a=new d(1),l=0,u++}s=a}}function Sr(t,e){var n,r,i,o,s,a,c,u,l,h,d,f=1,p=t,m=p.d,g=p.constructor,y=g.rounding,b=g.precision;if(p.s<0||!m||!m[0]||!p.e&&1==m[0]&&1==m.length)return new g(m&&!m[0]?-1/0:1!=p.s?NaN:m?0:p);if(null==e?(Kn=!1,l=b):l=e,g.precision=l+=10,r=(n=ar(m)).charAt(0),!(Math.abs(o=p.e)<15e14))return u=mr(g,l+2,b).times(o+""),p=Sr(new g(r+"."+n.slice(1)),l-10).plus(u),g.precision=b,null==e?dr(p,b,y,Kn=!0):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=ar((p=p.times(t)).d)).charAt(0),f++;for(o=p.e,r>1?(p=new g("0."+n),o++):p=new g(r+"."+n.slice(1)),h=p,c=s=p=hr(p.minus(1),p.plus(1),l,1),d=dr(p.times(p),l,1),i=3;;){if(s=dr(s.times(d),l,1),ar((u=c.plus(hr(s,new g(i),l,1))).d).slice(0,l)===ar(c.d).slice(0,l)){if(c=c.times(2),0!==o&&(c=c.plus(mr(g,l+2,b).times(o+""))),c=hr(c,new g(f),l,1),null!=e)return g.precision=b,c;if(!ur(c.d,l-10,y,a))return dr(c,g.precision=b,y,Kn=!0);g.precision=l+=10,u=s=p=hr(h.minus(1),h.plus(1),l,1),d=dr(p.times(p),l,1),i=a=1}c=u,i+=2}}function xr(t){return String(t.s*t.s/0)}function Ir(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);r++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(r,i)){if(i-=r,t.e=n=n-r-1,t.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=7;r<i;)t.d.push(+e.slice(r,r+=7));r=7-(e=e.slice(r)).length}else r-=i;for(;r--;)e+="0";t.d.push(+e),Kn&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function Ar(t,e){var n,r,i,o,s,a,c,u,l;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),nr.test(e))return Ir(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(tr.test(e))n=16,e=e.toLowerCase();else if(Qn.test(e))n=2;else{if(!er.test(e))throw Error(qn+e);n=8}for((o=e.search(/p/i))>0?(c=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),s=(o=e.indexOf("."))>=0,r=t.constructor,s&&(o=(a=(e=e.replace(".","")).length)-o,i=vr(r,new r(n),o,2*o)),o=l=(u=lr(e,n,rr)).length-1;0===u[o];--o)u.pop();return o<0?new r(0*t.s):(t.e=pr(u,l),t.d=u,Kn=!1,s&&(t=hr(t,i,4*a)),c&&(t=t.times(Math.abs(c)<54?Jn(2,c):bi.pow(2,c))),Kn=!0,t)}function Er(t,e,n,r,i){var o,s,a,c,u=t.precision,l=Math.ceil(u/7);for(Kn=!1,c=n.times(n),a=new t(r);;
vendor: 4,780 bytes, line 1
1){if(s=hr(a.times(c),new t(e++*e++),u,1),a=i?r.plus(s):r.minus(s),r=hr(s.times(c),new t(e++*e++),u,1),void 0!==(s=a.plus(r)).d[l]){for(o=l;s.d[o]===a.d[o]&&o--;);if(-1==o)break}o=a,a=r,r=s,s=o}return Kn=!0,s.d.length=l+1,s}function Tr(t,e){for(var n=t;--e;)n*=t;return n}function Pr(t,e){var n,r=e.s<0,i=gr(t,t.precision,1),o=i.times(.5);if((e=e.abs()).lte(o))return Dn=r?4:1,e;if((n=e.divToInt(i)).isZero())Dn=r?3:2;else{if((e=e.minus(n.times(i))).lte(o))return Dn=wr(n)?r?2:3:r?4:1,e;Dn=wr(n)?r?1:4:r?3:2}return e.minus(i).abs()}function Cr(t,e,n,r){var i,o,s,a,c,u,l,h,d,f=t.constructor,p=void 0!==n;if(p?(cr(n,1,Fn),void 0===r?r=f.rounding:cr(r,0,8)):(n=f.precision,r=f.rounding),t.isFinite()){for(p?(i=2,16==e?n=4*n-3:8==e&&(n=3*n-2)):i=e,(s=(l=fr(t)).indexOf("."))>=0&&(l=l.replace(".",""),(d=new f(1)).e=l.length-s,d.d=lr(fr(d),10,i),d.e=d.d.length),o=c=(h=lr(l,10,i)).length;0==h[--c];)h.pop();if(h[0]){if(s<0?o--:((t=new f(t)).d=h,t.e=o,h=(t=hr(t,d,n,r,0,i)).d,o=t.e,u=Ln),s=h[n],a=i/2,u=u||void 0!==h[n+1],u=r<4?(void 0!==s||u)&&(0===r||r===(t.s<0?3:2)):s>a||s===a&&(4===r||u||6===r&&1&h[n-1]||r===(t.s<0?8:7)),h.length=n,u)for(;++h[--n]>i-1;)h[n]=0,n||(++o,h.unshift(1));for(c=h.length;!h[c-1];--c);for(s=0,l="";s<c;s++)l+=Un.charAt(h[s]);if(p){if(c>1)if(16==e||8==e){for(s=16==e?4:3,--c;c%s;c++)l+="0";for(c=(h=lr(l,i,e)).length;!h[c-1];--c);for(s=1,l="1.";s<c;s++)l+=Un.charAt(h[s])}else l=l.charAt(0)+"."+l.slice(1);l=l+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)l="0"+l;l="0."+l}else if(++o>c)for(o-=c;o--;)l+="0";else o<c&&(l=l.slice(0,o)+"."+l.slice(o))}else l=p?"0p+0":"0";l=(16==e?"0x":2==e?"0b":8==e?"0o":"")+l}else l=xr(t);return t.s<0?"-"+l:l}function Mr(t,e){if(t.length>e)return t.length=e,!0}function Or(t){return new this(t).abs()}function Rr(t){return new this(t).acos()}function Br(t){return new this(t).acosh()}function jr(t,e){return new this(t).plus(e)}function Nr(t){return new this(t).asin()}function Lr(t){return new this(t).asinh()}function Dr(t){return new this(t).atan()}function zr(t){return new this(t).atanh()}function Fr(t,e){t=new this(t),e=new this(e);var n,r=this.precision,i=this.rounding,o=r+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(n=e.s<0?gr(this,r,i):new this(0)).s=t.s:!t.d||e.isZero()?(n=gr(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,n=this.atan(hr(t,e,o,1)),e=gr(this,o,1),this.precision=r,this.rounding=i,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(hr(t,e,o,1)):(n=gr(this,o,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function Ur(t){return new this(t).cbrt()}function Wr(t){return dr(t=new this(t),t.e+1,2)}function Gr(t,e,n){return new this(t).clamp(e,n)}function Vr(t){if(!t||"object"!==typeof t)throw Error(Hn+"Object expected");var e,n,r,i=!0===t.defaults,o=["precision",1,Fn,"rounding",0,8,"toExpNeg",-zn,0,"toExpPos",0,zn,"maxE",0,zn,"minE",-zn,0,"modulo",0,9];for(e=0;e<o.length;e+=3)if(n=o[e],i&&(this[n]=Vn[n]),void 0!==(r=t[n])){if(!(Xn(r)===r&&r>=o[e+1]&&r<=o[e+2]))throw Error(qn+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=Vn[n]),void 0!==(r=t[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(qn+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(Zn);this[n]=!0}else this[n]=!1}return this}function Kr(t){return new this(t).cos()}function Hr(t){return new this(t).cosh()}function qr(t,e){return new this(t).div(e)}function $r(t){return new this(t).exp()}function Zr(t){return dr(t=new this(t),t.e+1,3)}function Yr(){var t,e,n=new this(0);for(Kn=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)n.d&&(n=n.plus(e.times(e)));else{if(e.s)return Kn=!0,new this(1/0);n=e}return Kn=!0,n.sqrt()}function Xr(t){return t instanceof bi||t&&t.toStringTag===Yn||!1}function Jr(t){return new this(t).ln()}function Qr(t,e){return new this(t).log(e)}function ti(t){return new this(t).log(2)}function ei(t){return new this(t).log(10)}function ni(){return _r(this,arguments,"lt")}function ri(){return _r(this,arguments,"gt")}function ii(t,e){return new this(t).mod(e)}function oi(t,e){return new this(t).mul(e)}function si(t,e){return new this(t).pow(e)}function ai(t){var e,n,r,i,o=0,s=new this(1),a=[];if(void 0===t?t=this.precision:cr(t,1,Fn),r=Math.ceil(t/7),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(r));o<r;)(i=e[o])>=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(Zn);for(e=crypto.randomBytes(r*=4);o<r;)(i=e[o]+(e[o+1]<<8)+(e[o+2]<<16)+((127&e[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,o):(a.push(i%1e7),o+=4);o=r/4}else for(;o<r;)a[o++]=1e7*Math.random()|0;for(t%=7,(r=a[--o])&&t&&(i=Jn(10,7-t),a[o]=(r/i|0)*i);0===a[o];o--)a.pop();if(o<0)n=0,a=[0];else{for(n=-1;0===a[0];n-=7)a.shift();for(r=1,i=a[0];i>=10;
1i/=10)r++;r<7&&(n-=7-r)}return s.e=n,s.d=a,s}function ci(t){return dr(t=new this(t),t.e+1,this.rounding)}function ui(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function li(t){return new this(t).sin()}function hi(t){return new this(t).sinh()}function di(t){return new this(t).sqrt()}function fi(t,e){return new this(t).sub(e)}function pi(){var t=0,e=arguments,n=new this(e[t]);for(Kn=!1;n.s&&++t<e.length;)n=n.plus(e[t]);return Kn=!0,dr(n,this.precision,this.rounding)}function mi(t){return new this(t).tan()}function gi(t){return new this(t).tanh()}function yi(t){return dr(t=new this(t),t.e+1,1)}sr[Symbol.for("nodejs.util.inspect.custom")]=sr.toString,sr[Symbol.toStringTag]="Decimal";var bi=sr.constructor=function t(e){var n,r,i;function o(t){var e,n,r,i=this;if(!(i instanceof o))return new o(t);if(i.constructor=o,Xr(t))return i.s=t.s,void(Kn?!t.d||t.e>o.maxE?(i.e=NaN,i.d=null):t.e<o.minE?(i.e=0,i.d=[0]):(i.e=t.e,i.d=t.d.slice()):(i.e=t.e,i.d=t.d?t.d.slice():t.d));if("number"===(r=typeof t)){if(0===t)return i.s=1/t<0?-1:1,i.e=0,void(i.d=[0]);if(t<0?(t=-t,i.s=-1):i.s=1,t===~~t&&t<1e7){for(e=0,n=t;n>=10;n/=10)e++;return void(Kn?e>o.maxE?(i.e=NaN,i.d=null):e<o.minE?(i.e=0,i.d=[0]):(i.e=e,i.d=[t]):(i.e=e,i.d=[t]))}return 0*t!==0?(t||(i.s=NaN),i.e=NaN,void(i.d=null)):Ir(i,t.toString())}if("string"!==r)throw Error(qn+t);return 45===(n=t.charCodeAt(0))?(t=t.slice(1),i.s=-1):(43===n&&(t=t.slice(1)),i.s=1),nr.test(t)?Ir(i,t):Ar(i,t)}if(o.prototype=sr,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=Vr,o.clone=t,o.isDecimal=Xr,o.abs=Or,o.acos=Rr,o.acosh=Br,o.add=jr,o.asin=Nr,o.asinh=Lr,o.atan=Dr,o.atanh=zr,o.atan2=Fr,o.cbrt=Ur,o.ceil=Wr,o.clamp=Gr,o.cos=Kr,o.cosh=Hr,o.div=qr,o.exp=$r,o.floor=Zr,o.hypot=Yr,o.ln=Jr,o.log=Qr,o.log10=ei,o.log2=ti,o.max=ni,o.min=ri,o.mod=ii,o.mul=oi,o.pow=si,o.random=ai,o.round=ci,o.sign=ui,o.sin=li,o.sinh=hi,o.sqrt=di,o.sub=fi,o.sum=pi,o.tan=mi,o.tanh=gi,o.trunc=yi,void 0===e&&(e={}),e&&!0!==e.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<i.length;)e.hasOwnProperty(r=i[n++])||(e[r]=this[r]);return o.config(e),o}(Vn);Wn=new bi(Wn),Gn=new bi(Gn);const vi=a.createContext([]),wi=({children:t})=>{const{wallet:e,connected:n}=f(),[r,i]=p("open-wallet-previously-connected",[]);return(0,a.useEffect)((()=>{if(n&&e){const t=new Set([e.adapter.name,...r]);i([...t])}}),[e,n]),Nn(vi.Provider,{value:r},t)};class _i extends r.sz{name="";url="";icon="";supportedTransactionVersions=new Set(["legacy",0]);_keypair=null;constructor({name:t,url:e,icon:n}){super(),this.name=t,this.url=e,this.icon=n}get connecting(){return!1}get publicKey(){return this._keypair&&this._keypair.publicKey}get readyState(){return i.i1.NotDetected}async connect(){throw new o.oS}async disconnect(){this._keypair=null,this.emit("disconnect")}async signTransaction(t){if(!this._keypair)throw new o.oS;return(0,s.W)(t)?t.sign([this._keypair]):t.partialSign(this._keypair),t}}const ki=(t,e)=>{console.log({error:t,adapter:e})};var Si=({wallets:t,config:e,children:n})=>{const r=(0,a.useMemo)((()=>[new nt({addressSelector:rt(),appIdentity:{uri:e.metadata.url,icon:"",name:e.metadata.name},authorizationResultCache:ot(),cluster:e.env,onWalletNotFound:at()}),...t,...(e.hardcodedWallets||[]).map((t=>new _i(t)))]),[]);return Nn(ue,{wallets:r,autoConnect:e.autoConnect,onError:ki},Nn(wi,null,n))},xi="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},Ii=function(t,e){return"boolean"===typeof e?e:!t},Ai=function(t){return(0,a.useReducer)(Ii,t)};function Ei(t){var e=(0,a.useRef)();return(0,a.useEffect)((function(){e.current=t})),e.current}const Ti="undefined"!==typeof window?navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language:"en-US",Pi=new Intl.NumberFormat(Ti,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:9});function Ci(t,e=4){return`${t.slice(0,e)}...${t.slice(-e)}`}const Mi=()=>"undefined"!==typeof window&&screen&&screen.width<=480;((t,e)=>t||0===t?void 0!==e?t.toFixed(e):Pi.format(t):"--")(1.1).substring(1,2);var Oi=({open:t,onClose:e,children:n})=>{const r=(0,a.useRef)(null),[i,o]=(0,a.useState)(!1);(0,a.useEffect)((()=>{i||o(t),i&&setTimeout((()=>{o(t)}),150)}),[t]);const s=(0,a.useCallback)((()=>{r.current?.close(),e()}),[e,r]);return(0,a.useEffect)((()=>
1{if(r.current&&(i?r.current.open||r.current.showModal():r.current.close()),i){const t=r.current;return t?.addEventListener("close",s),()=>{t?.removeEventListener("close",s)}}}),[s,i]),i?Nn("dialog",{role:"dialog","aria-modal":"true",css:["left:0px;top:0px;z-index:50;display:flex;height:100%;width:100%;@keyframes fade-in{0%{opacity:0.2;}100%{opacity:1;}}animation:fade-in 0.15s ease-in-out;cursor:auto;align-items:center;justify-content:center;background-color:rgb(0 0 0 / 0.25);--tw-backdrop-blur:blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);",i&&!t&&{"@keyframes fade-out":{"0%":{opacity:"1"},"100%":{opacity:"0"}},animation:"fade-out 0.15s ease-out",opacity:"0"},"","","",""],ref:r},n):null};var Ri=({width:t=24,height:e=24})=>Nn("svg",{width:t,height:e,viewBox:"0 0 24 24",fill:"inherit",xmlns:"http://www.w3.org/2000/svg"},Nn("path",{d:"M12 0C18.6271 0 24 5.37288 24 12C24 18.6271 18.6269 24 12 24C5.37312 24 0 18.6286 0 12C0 5.37144 5.37216 0 12 0Z",fill:"#23C1AA"}),Nn("path",{d:"M10.79 14.55H12.89V14.355C12.89 13.925 13.01 13.55 13.25 13.23C13.49 12.91 13.765 12.605 14.075 12.315C14.315 12.085 14.545 11.85 14.765 11.61C14.985 11.36 15.165 11.09 15.305 10.8C15.455 10.5 15.53 10.16 15.53 9.78C15.53 9.25 15.395 8.75 15.125 8.28C14.855 7.8 14.45 7.41 13.91 7.11C13.38 6.8 12.725 6.645 11.945 6.645C11.305 6.645 10.725 6.765 10.205 7.005C9.69504 7.245 9.27504 7.575 8.94504 7.995C8.62504 8.415 8.42004 8.905 8.33004 9.465L10.415 9.99C10.475 9.61 10.64 9.31 10.91 9.09C11.19 8.86 11.515 8.745 11.885 8.745C12.315 8.745 12.64 8.85 12.86 9.06C13.09 9.26 13.205 9.52 13.205 9.84C13.205 10.15 13.09 10.425 12.86 10.665C12.63 10.895 12.37 11.155 12.08 11.445C11.77 11.765 11.475 12.14 11.195 12.57C10.925 13 10.79 13.545 10.79 14.205V14.55ZM10.73 18H12.98V15.75H10.73V18Z",fill:"white"}));const Bi=(0,a.createContext)({walletPrecedence:[],handleConnectClick:async(t,e)=>{},showModal:!1,setShowModal:t=>{},walletlistExplanation:void 0,theme:"light",walletAttachments:void 0});function ji(t,e){return`You have tried to ${t} "${e}" on a WalletContext without providing one. Make sure to render a WalletProvider as an ancestor of the component that uses WalletContext`}const Ni={autoConnect:!1,connecting:!1,connected:!1,disconnecting:!1,select(t){console.error(ji("get","select"))},connect:()=>Promise.reject(console.error(ji("get","connect"))),disconnect:()=>Promise.reject(console.error(ji("get","disconnect"))),sendTransaction:(t,e,n)=>Promise.reject(console.error(ji("get","sendTransaction"))),signTransaction:t=>Promise.reject(console.error(ji("get","signTransaction"))),signAllTransactions:t=>Promise.reject(console.error(ji("get","signAllTransactions"))),signMessage:t=>Promise.reject(console.error(ji("get","signMessage")))},Li=(0,a.createContext)(Ni),Di=()=>(0,a.useContext)(Bi),zi=()=>
1(0,a.useContext)(Li),Fi={"Connecting...":{zh:"\u8fde\u63a5\u4e2d...",vi:"\u0110ang k\u1ebft n\u1ed1i...",fr:"Connexion...",ja:"\u63a5\u7d9a\u4e2d...",id:"Sedang menghubungkan...",ru:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435..."},"Connect Wallet":{zh:"\u8fde\u63a5\u94b1\u5305",vi:"K\u1ebft n\u1ed1i v\xed",fr:"Connecter le portefeuille",ja:"\u30a6\u30a9\u30ec\u30c3\u30c8\u306b\u63a5\u7d9a\u3059\u308b",id:"Hubungkan dompet",ru:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u0435\u043a"},Connect:{zh:"\u8fde\u63a5",vi:"K\u1ebft n\u1ed1i",fr:"Connecter",ja:"\u63a5\u7d9a",id:"Hubungkan",ru:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c"},"You need to connect a Solana wallet.":{zh:"\u60a8\u9700\u8981\u8fde\u63a5\u4e00\u4e2a Solana \u94b1\u5305\u3002",vi:"B\u1ea1n c\u1ea7n k\u1ebft n\u1ed1i v\xed Solana.",fr:"Vous devez connecter un portefeuille Solana.",ja:"Solana\u30a6\u30a9\u30ec\u30c3\u30c8\u3092\u63a5\u7d9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002",id:"Anda perlu menghubungkan dompet Solana.",ru:"\u0412\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u0435\u043a Solana."},"New here?":{zh:"\u65b0\u6765\u7684\uff1f",vi:"M\u1edbi \u0111\u1ebfn?",fr:"Nouveau ici?",ja:"\u521d\u3081\u3066\u3067\u3059\u304b\uff1f",id:"Baru disini?",ru:"\u041d\u043e\u0432\u0438\u0447\u043e\u043a?"}
1,"Welcome to DeFi! Create a crypto wallet to get started!":{zh:"\u6b22\u8fce\u6765\u5230 DeFi\uff01\u521b\u5efa\u4e00\u4e2a\u52a0\u5bc6\u94b1\u5305\u5427\uff01",vi:"Ch\xe0o m\u1eebng \u0111\u1ebfn v\u1edbi DeFi! T\u1ea1o v\xed crypto \u0111\u1ec3 b\u1eaft \u0111\u1ea7u!",fr:"Bienvenue dans DeFi! Cr\xe9ez un portefeuille crypto pour commencer!",ja:"DeFi\u3078\u3088\u3046\u3053\u305d\uff01\u6697\u53f7\u30a6\u30a9\u30ec\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u59cb\u3081\u307e\u3057\u3087\u3046\uff01",id:"Selamat datang di DeFi! Buat dompet crypto untuk memulai!",ru:"\u0414\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u0432 DeFi! \u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043a\u0440\u0438\u043f\u0442\u043e\u043a\u043e\u0448\u0435\u043b\u0435\u043a, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0447\u0430\u0442\u044c!"},"Get Started":{zh:"\u5f00\u59cb",vi:"B\u1eaft \u0111\u1ea7u",fr:"Commencer",ja:"\u59cb\u3081\u308b",id:"Mulai",ru:"\u041d\u0430\u0447\u0430\u0442\u044c"},"Popular wallets to get started":{zh:"\u70ed\u95e8\u94b1\u5305",vi:"V\xed ph\u1ed5 bi\u1ebfn \u0111\u1ec3 b\u1eaft \u0111\u1ea7u",fr:"Portefeuilles populaires pour commencer",ja:"\u59cb\u3081\u308b\u4eba\u6c17\u306e\u30a6\u30a9\u30ec\u30c3\u30c8",id:"Dompet populer untuk memulai",ru:"\u041f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0438 \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430"},"More wallets":{zh:"\u66f4\u591a\u94b1\u5305",vi:"Th\xeam v\xed",fr:"Plus de portefeuilles",ja:"\u305d\u306e\u4ed6\u306e\u30a6\u30a9\u30ec\u30c3\u30c8",id:"Dompet lainnya",ru:"\u0414\u0440\u0443\u0433\u0438\u0435 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0438"}
1,"Once installed, refresh this page":{zh:"\u5b89\u88c5\u540e\uff0c\u8bf7\u5237\u65b0\u6b64\u9875\u9762",vi:"Sau khi c\xe0i \u0111\u1eb7t, l\xe0m m\u1edbi trang n\xe0y",fr:"Une fois install\xe9, rafra\xeechissez cette page",ja:"\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3001\u3053\u306e\u30da\u30fc\u30b8\u3092\u66f4\u65b0\u3057\u3066\u304f\u3060\u3055\u3044",id:"Setelah diinstal, segarkan halaman ini",ru:"\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u044d\u0442\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443"},"Go back":{zh:"\u8fd4\u56de",vi:"Quay l\u1ea1i",fr:"Retourner",ja:"\u623b\u308b",id:"Kembali",ru:"\u041d\u0430\u0437\u0430\u0434"},"Recently used":{zh:"\u6700\u8fd1\u4f7f\u7528",vi:"\u0110\xe3 s\u1eed d\u1ee5ng g\u1ea7n \u0111\xe2y",fr:"Utilis\xe9 r\xe9cemment",ja:"\u6700\u8fd1\u4f7f\u7528\u3057\u305f",id:"Baru saja digunakan",ru:"\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435"},"Installed wallets":{zh:"\u5df2\u5b89\u88c5\u94b1\u5305",vi:"C\xe1c v\xed \u0111\xe3 c\xe0i \u0111\u1eb7t",fr:"Portefeuilles install\xe9s",ja:"\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306e\u30a6\u30a9\u30ec\u30c3\u30c8",id:"Dompet yang diinstal",ru:"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0438"},"Popular wallets":{zh:"\u70ed\u95e8\u94b1\u5305",vi:"V\xed ph\u1ed5 bi\u1ebfn",fr:"Portefeuilles populaires",ja:"\u4eba\u6c17\u306e\u30a6\u30a9\u30ec\u30c3\u30c8",id:"Dompet populer",ru:"\u041f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0438"},"Can't find your wallet?":{zh:"\u627e\u4e0d\u5230\u60a8\u7684\u94b1\u5305\uff1f",vi:"Kh\xf4ng t\xecm th\u1ea5y v\xed c\u1ee7a b\u1ea1n?",fr:"Vous ne trouvez pas votre portefeuille?",ja:"\u30a6\u30a9\u30ec\u30c3\u30c8\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u304b\uff1f",id:"Tidak dapat menemukan dompet Anda?",ru:"\u041d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0439\u0442\u0438 \u0441\u0432\u043e\u0439 \u043a\u043e\u0448\u0435\u043b\u0435\u043a?"},"I don't have a wallet":{zh:"\u6211\u6ca1\u6709\u94b1\u5305",vi:"T\xf4i kh\xf4ng c\xf3 v\xed",fr:"Je n'ai pas de portefeuille",ja:"\u79c1\u306f\u30a6\u30a9\u30ec\u30c3\u30c8\u3092\u6301\u3063\u3066\u3044\u307e\u305b\u3093",id:"Saya tidak punya dompet",ru:"\u0423 \u043c\u0435\u043d\u044f \u043d\u0435\u0442 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0430"},"Have you installed":{zh:"\u60a8\u662f\u5426\u5df2\u5b89\u88c5",vi:"B\u1ea1n \u0111\xe3 c\xe0i \u0111\u1eb7t",fr:"Avez-vous install\xe9",ja:"\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u304b",id:"Apakah Anda sudah menginstal",ru:"\u0412\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438"},Install:{zh:"\u5b89\u88c5",vi:"C\xe0i \u0111\u1eb7t",fr:"Installer",ja:"\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb",id:"Memasang",ru:"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c"},"On mobile:":{zh:"\u5728\u624b\u673a\u4e0a\uff1a",vi:"Tr\xean \u0111i\u1ec7n tho\u1ea1i:",fr:"Sur mobile:",ja:"\u30e2\u30d0\u30a4\u30eb\uff1a",id:"Di ponsel:",ru:"\u041d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c:"},"You should open the app instead":{zh:"\u60a8\u5e94\u8be5\u6253\u5f00\u5e94\u7528\u7a0b\u5e8f",vi:"B\u1ea1n n\xean m\u1edf \u1ee9ng d\u1ee5ng thay v\xec",fr:"Vous devriez ouvrir l'application \xe0 la place",ja:"\u4ee3\u308f\u308a\u306b\u30a2\u30d7\u30ea\u3092\u958b\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059",id:"Anda harus membuka aplikasi bukannya",ru:"\u0412\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435"},"On desktop:":{zh:"\u5728\u684c\u9762\u4e0a\uff1a",vi:"Tr\xean m\xe1y t\xednh \u0111\u1ec3 b\xe0n:",fr:"Sur ordinateur:",ja:"\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\uff1a",id:"Di de
1sktop:",ru:"\u041d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435:"},"Install and refresh the page":{zh:"\u5b89\u88c5\u5e76\u5237\u65b0\u9875\u9762",vi:"C\xe0i \u0111\u1eb7t v\xe0 l\xe0m m\u1edbi trang",fr:"Installez et actualisez la page",ja:"\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30da\u30fc\u30b8\u3092\u66f4\u65b0\u3059\u308b",id:"Pasang dan segarkan halaman",ru:"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443"}},Ui=(0,a.createContext)({lang:"en",setLang:()=>{},t:t=>t}),Wi=({lang:t,children:e})=>{const[n,r]=(0,a.useState)("en");(0,a.useEffect)((()=>{t&&r(t)}),[t]);const i=(0,a.useCallback)((t=>{if("en"===n)return t;const e=Fi[t]&&Fi[t][n];return e||"not found"}),[n]);return Nn(Ui.Provider,{value:{lang:n,setLang:r,t:i}},e)},Gi=()=>(0,a.useContext)(Ui);const Vi={container:{light:[{"--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))",":hover":{borderColor:"rgb(0 0 0 / 0.1)","--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-sha
1dow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}}],dark:[{":hover":{backgroundColor:"rgb(255 255 255 / 0.1)","--tw-shadow":"0 25px 50px -12px rgb(0 0 0 / 0.25)","--tw-shadow-colored":"0 25px 50px -12px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}}],jupiter:[{":hover":{backgroundColor:"rgb(255 255 255 / 0.1)","--tw-shadow":"0 25px 50px -12px rgb(0 0 0 / 0.25)","--tw-shadow-colored":"0 25px 50px -12px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}}]}};var Ki={name:"k19fg7",styles:"object-fit:contain"};const Hi=({wallet:t,width:e=24,height:n=24})=>{const[r,i]=a.useState(!1),o=(0,a.useCallback)((()=>i(!0)),[]);return t&&t.icon&&!r?Nn("div",{style:{minWidth:e,minHeight:n}},Nn("img",{width:e,height:n,src:t.icon,alt:`${t.name} icon`,css:Ki,onError:o})):Nn("div",{style:{minWidth:e,minHeight:n}},Nn(Ri,{width:e,height:n}))};var qi={name:"18g8lgp",styles:"overflow:hidden;text-overflow:ellipsis;font-size:0.75rem;line-height:1rem;font-weight:600"};const $i=({handleClick:t,wallet:e})=>{const{theme:n}=Di(),{t:r}=Gi(),i=(0,a.useMemo)((()=>e?e.name===tt?r("Mobile"):e.name:""),[e?.name]);return Nn("li",{onClick:t,css:["display:flex;cursor:pointer;align-items:center;> :not([hidden]) ~ :not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)));}border-radius:0.5rem;border-width:1px;border-color:rgb(255 255 255 / 0.1);padding-left:1.25rem;padding-right:1.25rem;padding-top:1rem;padding-bottom:1rem;transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;:hover{background-color:rgb(255 255 255 / 0.1);--tw-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);
1--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-backdrop-blur:blur(24px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);}",Vi.container[n],"","","",""]},Mi()?Nn(Hi,{wallet:e,width:24,height:24}):Nn(Hi,{wallet:e,width:30,height:30}),Nn("span",{css:qi},i))};var Zi=({children:t,className:e="",height:n,maxHeight:r,expanded:i})=>{const[o,s]=(0,a.useState)(n);(0,a.useEffect)((()=>{s(i?r:n)}),[n,r,i]);return Nn("div",{css:["overflow:hidden;transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:200ms;",i?{"@keyframes fade-in":{"0%":{opacity:"0.2"},"100%":{opacity:"1"}},animation:"fade-in 0.15s ease-in-out"}:{"@keyframes fade-out":{"0%":{opacity:"1"},"100%":{opacity:"0"}},animation:"fade-out 0.15s ease-out"},"","","",""],style:{height:o,maxHeight:r}},t)};var Yi=({className:t=""})=>Nn("svg",{className:t,width:"10",height:"6",viewBox:"0 0 10 6",fill:"inherit",xmlns:"http://www.w3.org/2000/svg"},Nn("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.292893 0.292893C0.683416 -0.097631 1.31658 -0.097631 1.7071 0.292893L4.99999 3.58579L8.29288 0.292893C8.6834 -0.0976311 9.31657 -0.0976311 9.70709 0.292893C10.0976 0.683417 10.0976 1.31658 9.70709 1.70711L5.7071 5.70711C5.31657 6.09763 4.68341 6.09763 4.29289 5.70711L0.292893 1.70711C-0.0976309 1.31658 -0.0976309 0.683417 0.292893 0.292893Z",fill:"currentColor"}));var Xi=({className:t=""})=>Nn("svg",{className:t,width:"10",height:"6",viewBox:"0 0 10 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nn("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.292893 5.70711C0.683416 6.09763 1.31658 6.09763 1.7071 5.70711L4.99999 2.41421L8.29288 5.70711C8.6834 6.09763 9.31657 6.09763 9.70709 5.70711C10.0976 5.31658 10.0976 4.68342 9.70709 4.29289L5.7071 0.292893C5.31657 -0.097631 4.68341 -0.097631 4.29289 0.292893L0.292893 4.29289C-0.0976309 4.68342 -0.0976309 5.31658 0.292893 5.70711Z",fill:"currentColor"}));var Ji=({width:t=20,height:e=20})=>Nn("svg",{width:t,height:e,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nn("path",{d:"M2.0336 16.2126L8.2336 10.0126L2.0336 3.81263C1.7961 3.57903 1.66172 3.25951 1.66016 2.92669C1.65938 2.59309 1.79141 2.27357 2.02734 2.03763C2.26328 1.80247 2.5828 1.67045 2.9164 1.67201C3.25 1.67357 3.56874 1.80795 3.80234 2.04623L9.99994 8.24623L16.1999 2.04623C16.4335 1.80795 16.7523 1.67357 17.0859 1.67201C17.4187 1.67045 17.739 1.80248 17.9749 2.03763C18.2109 2.27357 18.3429 2.59309 18.3413 2.92669C18.3406 3.25951 18.2062 3.57903 17.9687 3.81263L11.7663 10.0126L17.9663 16.2126C18.2038 16.4462 18.3382 16.7658 18.3397 17.0986C18.3405 17.4322 18.2085 17.7517 17.9725 17.9876C17.7366 18.2228 17.4171 18.3548 17.0835 18.3533C16.7499 18.3517 16.4311 18.2173 16.1975 17.979L9.99994 11.779L3.79994 17.979C3.31088 18.4611 2.52494 18.4579 2.039 17.9736C1.55384 17.4884 1.54994 16.7025 2.03119 16.2126L2.0336 16.2126Z",fill:"currentColor"}));var Qi=({width:t=10,height:e=10})=>Nn("svg",{width:t,height:e,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nn("path",{d:"M4 2V3H1.5V8.5H7V6H8V9C8 9.13261 7.94732 9.25979 7.85355 9.35355C7.75979 9.44732 7.63261 9.5 7.5 9.5H1C0.867392 9.5 0.740215 9.44732 0.646447 9.35355C0.552678 9.25979 0.5 9.13261 0.5 9V2.5C0.5 2.36739 0.552678 2.24021 0.646447 2.14645C0.740215 2.05268 0.867392 2 1 2H4ZM9.5 0.5V4.5H8.5V2.2065L4.6035 6.1035L3.8965 5.39
165L7.7925 1.5H5.5V0.5H9.5Z",fill:"currentColor"}));const to={subtitle:{light:[{color:"rgb(0 0 0 / 0.7)"}],dark:[{color:"rgb(255 255 255 / 0.5)"}],jupiter:[{color:"rgb(255 255 255 / 0.5)"}]},button:{light:[{"--tw-bg-opacity":"1",backgroundColor:"rgb(49 51 59 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(0 0 0 / var(--tw-bg-opacity))"}}],dark:[{"--tw-bg-opacity":"1",backgroundColor:"rgb(49 51 59 / var(--tw-bg-opacity))",":hover":{backgroundColor:"rgb(0 0 0 / 0.3)"}}],jupiter:[{"--tw-bg-opacity":"1",backgroundColor:"rgb(0 0 0 / var(--tw-bg-opacity))",":hover":{backgroundColor:"rgb(0 0 0 / 0.5)"}}]}};var eo={name:"1e4wqln",styles:"@keyframes fade-in{0%{opacity:0.2;}100%{opacity:1;}}animation:fade-in 0.15s ease-in-out;overflow-y:scroll;transition-duration:500ms"},no={name:"17wdgc0",styles:"display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.25rem"},ro={name:"z2rh5z",styles:"display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center"},io={name:"709dbi",styles:"font-size:1rem;line-height:1.5rem;font-weight:600"},oo={name:"1umxcl3",styles:"margin-top:0.75rem;margin-bottom:0.75rem;display:flex;align-items:center;> :not([hidden]) ~ :not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.5rem * var(--tw-space-x-reverse));margin-left:calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));}font-size:0.75rem;line-height:1rem;text-decoration-line:underline"},so={name:"exiwz9",styles:"margin-top:1.25rem;display:flex;width:100%;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding-left:2.5rem;padding-right:2.5rem;text-align:start"},ao={name:"1ide98v",styles:"font-size:0.75rem;line-height:1rem;font-weight:600"},co={name:"1x0nakv",styles:"margin-top:0.5rem;list-style-type:disc;padding-left:2rem;font-size:0.75rem;line-height:1rem"},uo={name:"exiwz9",styles:"margin-top:1.25rem;display:flex;width:100%;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding-left:2.5rem;padding-right:2.5rem;text-align:start"},lo={name:"1ide98v",styles:"font-size:0.75rem;line-height:1rem;font-weight:600"},ho={name:"1x0nakv",styles:"margin-top:0.5rem;list-style-type:disc;padding-left:2rem;font-size:0.75rem;line-height:1rem"},fo={name:"1htl0ft",styles:"margin-top:1.25rem;width:100%;border-top-width:1px;border-top-color:rgb(255 255 255 / 0.1)"},po={name:"ibosxi",styles:"display:flex;width:100%;justify-content:space-between;> :not([hidden]) ~ :not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.5rem * var(--tw-space-x-reverse));margin-left:calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));}padding:1.25rem"};var mo=({adapter:t,onClose:e,onGoOnboarding:n})=>{const{theme:r}=Di(),{t:i}=Gi();return Nn("div",{css:eo,className:"hideScrollbar"},Nn("div",{css:no},Nn("img",{src:t.icon,width:100,height:100})),Nn("div",{css:ro},Nn("span",{css:io},i("Have you installed")+` ${t.name}?`),Nn("a",{href:t.url,rel:"noopener noreferrer",target:"_blank",css:oo},Nn("span",null,i("Install")," ",t.name),Nn(Qi,null)),Nn("div",{css:so},Nn("p",{css:ao},i("On mobile:")),Nn("ul",{css:co},Nn("li",null,i("You should open the app instead")))),Nn("div",{css:uo},Nn("p",{css:lo},i("On desktop:")),Nn("ul",{css:ho},Nn("li",null,i("Install and refresh the page")))),Nn("div",{css:fo}),Nn("div",{css:po},Nn("button",{type:"button",css:["width:100%;border-radius:0.5rem;border-width:1px;border-color:rgb(255 255 255 / 0.1);padding-left:0.5rem;padding-right:0.5rem;padding-top:1rem;padding-bottom:1rem;font-size:0.75rem;line-height:1;font-weight:600;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity));",to.button[r],"","","",""],onClick:n},i("I don't have a wallet")),Nn("button",{type:"button",css:["width:100%;border-radius:0.5rem;border-width:1px;border-color:rgb(255 255 255 / 0.1);padding-left:0.5rem;padding-right:0.5rem;padding-top:1rem;padding-bottom:1rem;font-size:0.75rem;line-height:1;font-weight:600;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity));",to.button[r],"","","",""],onClick:e},"\u2190 "+i("Go back")))))};new m.PublicKey("So11111111111111111111111111111111111111112");const go=[{id:"Phantom",name:"Phantom",url:"https://phantom.app/",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDgiIGhlaWdodD0iMTA4IiB2aWV3Qm94PSIwIDAgMTA4IDEwOCIgZmlsbD0ibm9uZSI+CjxyZWN0IHdpZHRoPSIxMDgiIGhlaWdodD0iMTA4IiByeD0iMjYiIGZpbGw9IiNBQjlGRjIiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00Ni41MjY3IDY5LjkyMjlDNDIuMDA1NCA3Ni44NTA5IDM0LjQyOTIgODUuNjE4MiAyNC4zNDggODUuNjE4MkMxOS41ODI0IDg1LjYxODIgMTUgODMuNjU2MyAxNSA3NS4xMzQyQzE1IDUzLjQzMDUgNDQuNjMyNiAxOS44MzI3IDcyLjEyNjggMTkuODMyN0M4Ny43NjggMTkuODMyNyA5NCAzMC42ODQ2IDk0IDQzLjAwNzlDOTQgNTguODI1OCA4My43MzU1IDc2LjkxMjIgNzMuNTMyMSA3Ni45MTIyQzcwLjI5MzkgNzYuOTEyMiA2OC43MDUzIDc1LjEzNDIgNjguNzA1MyA3Mi4zMTRDNjguNzA1MyA3MS41NzgzIDY4LjgyNzUgNzAuNzgxMiA2OS4wNzE5IDY5LjkyMjlDNjUuNTg5MyA3NS44Njk5IDU4Ljg2ODUgODEuMzg3OCA1Mi41NzU0IDgxLjM4NzhDNDcuOTkzIDgxLjM4NzggNDUuNjcxMyA3OC41MDYzIDQ1LjY3MTMgNzQuNDU5OEM0NS42NzEzIDcyLjk4ODQgNDUuOTc2OCA3MS40NTU2IDQ2LjUyNjcgNjkuOTIyOVpNODMuNjc2MSA0Mi41Nzk0QzgzLjY3NjEgNDYuMTcwNCA4MS41NTc1IDQ3Ljk2NTggNzkuMTg3NSA0Ny45NjU4Qzc2Ljc4MTYgNDcuOTY1OCA3NC42OTg5IDQ2LjE3MDQgNzQuNjk4OSA0Mi41Nzk0Qzc0LjY5ODkgMzguOTg4NSA3Ni43ODE2IDM3LjE5MzEgNzkuMTg3NSAzNy4xOTMxQzgxLjU1NzUgMzcuMTkzMSA4My42NzYxIDM4Ljk4ODUgODMuNjc2MSA0Mi41Nzk0Wk03MC4yMTAzIDQyLjU3OTVDNzAuMjEwMyA0Ni4xNzA0IDY4LjA5MTYgNDcuOTY1OCA2NS43MjE2IDQ3Ljk2NThDNjMuMzE1NyA0Ny45NjU4IDYxLjIzMyA0Ni4xNzA0IDYxLjIzMyA0Mi41Nzk1QzYxLjIzMyAzOC45ODg1IDYzLjMxNTcgMzcuMTkzMSA2NS43MjE2IDM3LjE5MzFDNjguMDkxNiAzNy4xOTMxIDcwLjIxMDMgMzguOTg4NSA3MC4yMTAzIDQyLjU3OTVaIiBmaWxsPSIjRkZGREY4Ii8+Cjwvc3ZnPg=="},{id:"Solflare",name:"Solflare",url:"https://solflare.com/",icon:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjUwIiB2aWV3Qm94PSIwIDAgNTAgNTAiIHdpZHRoPSI1MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGxpbmVhckdyYWRpZW50IGlkPSJhIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmZmMxMGIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmYjNmMmUiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSI2LjQ3ODM1IiB4Mj0iMzQuOTEwNyIgeGxpbms6aHJlZj0iI2EiIHkxPSI3LjkyIiB5Mj0iMzMuNjU5MyIvPjxyYWRpYWxHcmFkaWVudCBpZD0iYyIgY3g9IjAiIGN5PSIwIiBncmFkaWVudFRyYW5zZm9ybT0ibWF0cml4KDQuOTkyMTg4MzIgMTIuMDYzODc5NjMgLTEyLjE4MTEzNjU1IDUuMDQwNzEwNzQgMjIuNTIwMiAyMC42MTgzKSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHI9IjEiIHhsaW5rOmhyZWY9IiNhIi8+PHBhdGggZD0ibTI1LjE3MDggNDcuOTEwNGMuNTI1IDAgLjk1MDcuNDIxLjk1MDcuOTQwM3MtLjQyNTcuOTQwMi0uOTUwNy45NDAyLS45NTA3LS40MjA5LS45NTA3LS45NDAyLjQyNTctLjk0MDMuOTUwNy0uOTQwM3ptLTEuMDMyOC00NC45MTU2NWMuNDY0Ni4wMzgzNi44Mzk4LjM5MDQuOTAyNy44NDY4MWwxLjEzMDcgOC4yMTU3NGMuMzc5OCAyLjcxNDMgMy42NTM1IDMuODkwNCA1LjY3NDMgMi4wNDU5bDExLjMyOTEtMTAuMzExNThjLjI3MzMtLjI0ODczLjY5ODktLjIzMTQ5Ljk1MDcuMDM4NTEuMjMwOS4yNDc3Mi4yMzc5LjYyNjk3LjAxNjEuODgyNzdsLTkuODc5MSAxMS4zOTU4Yy0xLjgxODcgMi4wOTQyLS40NzY4IDUuMzY0MyAyLjI5NTYgNS41OTc4bDguNzE2OC44NDAzYy40MzQxLjA0MTguNzUxNy40MjM0LjcwOTMuODUyNC0uMDM0OS4zNTM3
1LS4zMDc0LjYzOTUtLjY2MjguNjk0OWwtOS4xNTk0IDEuNDMwMmMtMi42NTkzLjM2MjUtMy44NjM2IDMuNTExNy0yLjEzMzkgNS41NTc2bDMuMjIgMy43OTYxYy4yNTk0LjMwNTguMjE4OC43NjE1LS4wOTA4IDEuMDE3OC0uMjYyMi4yMTcyLS42NDE5LjIyNTYtLjkxMzguMDIwM2wtMy45Njk0LTIuOTk3OGMtMi4xNDIxLTEuNjEwOS01LjIyOTctLjI0MTctNS40NTYxIDIuNDI0M2wtLjg3NDcgMTAuMzk3NmMtLjAzNjIuNDI5NS0uNDE3OC43NDg3LS44NTI1LjcxMy0uMzY5LS4wMzAzLS42NjcxLS4zMDk3LS43MTcxLS42NzIxbC0xLjM4NzEtMTAuMDQzN2MtLjM3MTctMi43MTQ0LTMuNjQ1NC0zLjg5MDQtNS42NzQzLTIuMDQ1OWwtMTIuMDUxOTUgMTAuOTc0Yy0uMjQ5NDcuMjI3MS0uNjM4MDkuMjExNC0uODY4LS4wMzUtLjIxMDk0LS4yMjYyLS4yMTczNS0uNTcyNC0uMDE0OTMtLjgwNmwxMC41MTgxOC0xMi4xMzg1YzEuODE4Ny0yLjA5NDIuNDg0OS01LjM2NDQtMi4yODc2LTUuNTk3OGwtOC43MTg3Mi0uODQwNWMtLjQzNDEzLS4wNDE4LS43NTE3Mi0uNDIzNS0uNzA5MzYtLjg1MjQuMDM0OTMtLjM1MzcuMzA3MzktLjYzOTQuNjYyNy0uNjk1bDkuMTUzMzgtMS40Mjk5YzIuNjU5NC0uMzYyNSAzLjg3MTgtMy41MTE3IDIuMTQyMS01LjU1NzZsLTIuMTkyLTIuNTg0MWMtLjMyMTctLjM3OTItLjI3MTMtLjk0NDMuMTEyNi0xLjI2MjEuMzI1My0uMjY5NC43OTYzLS4yNzk3IDEuMTMzNC0uMDI0OWwyLjY5MTggMi4wMzQ3YzIuMTQyMSAxLjYxMDkgNS4yMjk3LjI0MTcgNS40NTYxLTIuNDI0M2wuNzI0MS04LjU1OTk4Yy4wNDU3LS41NDA4LjUyNjUtLjk0MjU3IDEuMDczOS0uODk3Mzd6bS0yMy4xODczMyAyMC40Mzk2NWMuNTI1MDQgMCAuOTUwNjcuNDIxLjk1MDY3Ljk0MDNzLS40MjU2My45NDAzLS45NTA2Ny45NDAzYy0uNTI1MDQxIDAtLjk1MDY3LS40MjEtLjk1MDY3LS45NDAzcy40MjU2MjktLjk0MDMuOTUwNjctLjk0MDN6bTQ3LjY3OTczLS45NTQ3Yy41MjUgMCAuOTUwNy40MjEuOTUwNy45NDAzcy0uNDI1Ny45NDAyLS45NTA3Ljk0MDItLjk1MDctLjQyMDktLjk1MDctLjk0MDIuNDI1Ny0uOTQwMy45NTA3LS45NDAzem0tMjQuNjI5Ni0yMi40Nzk3Yy41MjUgMCAuOTUwNi40MjA5NzMuOTUwNi45NDAyNyAwIC41MTkzLS40MjU2Ljk0MDI3LS45NTA2Ljk0MDI3LS41MjUxIDAtLjk1MDctLjQyMDk3LS45NTA3LS45NDAyNyAwLS41MTkyOTcuNDI1Ni0uOTQwMjcuOTUwNy0uOTQwMjd6IiBmaWxsPSJ1cmwoI2IpIi8+PHBhdGggZD0ibTI0LjU3MSAzMi43NzkyYzQuOTU5NiAwIDguOTgwMi0zLjk3NjUgOC45ODAyLTguODgxOSAwLTQuOTA1My00LjAyMDYtOC44ODE5LTguOTgwMi04Ljg4MTlzLTguOTgwMiAzLjk3NjYtOC45ODAyIDguODgxOWMwIDQuOTA1NCA0LjAyMDYgOC44ODE5IDguOTgwMiA4Ljg4MTl6IiBmaWxsPSJ1cmwoI2MpIi8+PC9zdmc+"},{id:"Backpack",name:"Backpack",url:"https://www.backpack.app/",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAbvSURBVHgB7Z1dUtxGEMf/LZH3fU0V4PUJQg4QVj5BnBOAT2BzAsMJAicwPoHJCRDrAxifgLVxVV73ObDqdEtsjKn4C8+0NDv9e7AxprRC85uvnp4RYYW5qKpxCVTcYKsgfiDfGjMwIsZIvh7d/lkmzAiYy5fzhultyZhdlagf1vU5VhjCiiGFXq01zYSJdqWgx/hB5AHN5I/6iuilyFBjxVgZAdqCZ34ORoVIqAzSOhxsvq6PsSIkL4A281LwL2IW/F1UhLKgRz/X9QyJUyBhuuae31gWviLjiPF1wxeX29vPkTjJtgAftrd3GHSMnmHw4eZ0uodESVKAoRT+kpQlSE6Ats/XZv/ONK5vZHC49+B1fYjESG4MUDKfYmCFr0ic4fmHqtpCYiQlgA66QsztIzFi5j+RGMl0AXebfgn0aOTuvGG8owIarZsXOj3ronlRuEYnn84CJLo4Lgi/QL/H/LHmy/RwI6GA0RoS4acFHi8kGieFXS/QhmijFfQXmH3uPy5lSkoLbIkYlfyzhuM4juM4juM4juMMj6TzATQ4JH9tlRqFk8BM2aV9RWHB9K5kzK/KLui0KqliSQmgBa4BIS54cpMD0OeawFye3jk19JdKkWq62OAFkEIfrTXNUxBV1okf38Ot3MGjlFqHwQrQZvQ22Cfw7xjg6t8XkZaBGzpKIXdwcAJojZeCP5SC30HipJBEOigBZLn3qdzSPlKr8V9hyEmkgxCgj8zefuD9jen0AAOidwE0i6ZhfjXgRI+gDK016DUjqE3ubPhNLoWvaDLJouHToaSP9SbA0DJ7LekyiviNPgP0TC9dQM6FfxeZ7eyuT6cv0RPmAmjTx11uXx/MiegEDd425cfcwWV+H4O3+uiO+pTAVIA2uMN8av6QiWr5TQ++JVlTc/tEiF3jOMScZGC43kME0VSA95PJhWXhM+Gt1Phn98nStZa1r9mB2SDQPqefjhayfnDfFG2J5882z84eynVM5u3thlONhRhj0gLc5PRfwAw62JjW+wjE5Xa1L0VkshO4kXt/EPDev4ZJCyBRvlcwggjHG4EfYHc9OoIBBWy3mEUX4H1V7Ur7ZvILaT8qy7FRduleF9jXc4RggOUWs/gtANs0nYquvMXaMaTXlQHlE1ggayLvf5OKY0DUMYDWfmpsBjZa+9enOmiLy+VkcmqxaNW2ZgX9GnsLXNQWoGj4KYzQ2g8LyG5WUDR4hshEE6CN+AFmg5lFiRMYcI0uKRQGyIAwegWKJkBjYO8tzq12C7efQ7CK2I00MomIxOsCiCcwQhaW3sEQ6W7sPi/yIDqKAHp8m2nIF7COoc9ghQw4NU8SkYgiQCmLKXCCUSziPc84XYBh83/DSiWR3qUo2tT4ONdGYDTub73cSzD/PNt0rojdQHAByoXxw0E7XfoFhsjnRduD+DnWIkkXXACJl1cwRoMmf3cbRaOjLRzDXnKZVj9GBIILUJBtbVzyj9HAU19AgR6I9VzDtwCgMXpAo2Yxp0v/Ybi49ennJtIFEPMY/TCKHTvv+aTSUQzBgwrQ92YHbQVi3UN3GAVZhrf/jzECE1SAq/7n4yOJ074KPSBcJoii598vxgwrqAByg70HZJZbr0JJ0G5XZz5Z1e1rYccA5TAicqEk0O5ECl/3LvYys7mLTLHHCEzS7wz6Esv3+nyYTF58rwha63XAl8PG1aCnhesWq6EdOcKM3WvmXRHh+Gvv/tNVTJlJPC4a3RVEK72+sCSZ4+J/FBVhTUS43J7gJqFjrnl33A3sxtCa3nAWhX6bbAT4hJugCsNZ2TGA8224AJnjAmSOC5A5LkDmuACZ4wJkjguQOS5A5rgAmeMCZI4LkDkuQOa4AJnjAmSOC5A5LkDmuACZ4wJkjguQOWEFYJvz85xwBBWgKM1P68oKKsI/36ACdC9nsDlWPTsIJ5t1Hfw01OBjgI1p/YwLegIibw0CwESz9gUYZ2d/wHEcx3Ecx3Ecx3Ecx3HuS5QjfdrXxTHv3JzEkd2xKwHR9xPNuKGjzdf1MSIQXAA9XUsuuw8nKPpK3PWzs+AvrgwqgP1LojOjoEf3fRv6Zy+JgBSLOGfaOx1NE/6o+rCrgeT9fWp4SljmuACZ4wJkjguQOS5A5rgAmeMCZI4LkDkuQOa4AJnjAmSOC5A5LkDmuACZ4wJkjguQOS5A5rgAmeMCZI4LkDkuQOa4AJnj5wRmTlABqHQBohKhgg
1UVYAEEP8fO+UiMgziDCvCwrnU3aw0nOATMQu8LVIIPAq+JdAerdwWBaQ/fjEBwAaQVmMnN7sEJCB3EqP3tlRGJy6qqmPkFMcZw7sucmfZiHQ6hRBNgSXdaCHbA7KeFfBvz9pxlxtl1gcN2XBWRfwHK959XFRG6AgAAAABJRU5ErkJggg=="},{id:"Coinbase Wallet",name:"Coinbase Wallet",url:"https://www.coinbase.com/wallet",icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8Y2lyY2xlIGN4PSI1MTIiIGN5PSI1MTIiIHI9IjUxMiIgZmlsbD0iIzAwNTJGRiIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE1MiA1MTJDMTUyIDcxMC44MjMgMzEzLjE3NyA4NzIgNTEyIDg3MkM3MTAuODIzIDg3MiA4NzIgNzEwLjgyMyA4NzIgNTEyQzg3MiAzMTMuMTc3IDcxMC44MjMgMTUyIDUxMiAxNTJDMzEzLjE3NyAxNTIgMTUyIDMxMy4xNzcgMTUyIDUxMlpNNDIwIDM5NkM0MDYuNzQ1IDM5NiAzOTYgNDA2Ljc0NSAzOTYgNDIwVjYwNEMzOTYgNjE3LjI1NSA0MDYuNzQ1IDYyOCA0MjAgNjI4SDYwNEM2MTcuMjU1IDYyOCA2MjggNjE3LjI1NSA2MjggNjA0VjQyMEM2MjggNDA2Ljc0NSA2MTcuMjU1IDM5NiA2MDQgMzk2SDQyMFoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo="},{id:"OKX Wallet",name:"OKX Wallet",url:"https://www.okx.com/web3",icon:"https://station.jup.ag/img/wallet/glow.png"}];const yo={subtitle:{light:[{color:"rgb(0 0 0 / 0.7)"}],dark:[{color:"rgb(255 255 255 / 0.5)"}],jupiter:[{color:"rgb(255 255 255 / 0.5)"}]},button:{light:[{"--tw-bg-opacity":"1",backgroundColor:"rgb(49 51 59 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(0 0 0 / var(--tw-bg-opacity))"}}],dark:[{"--tw-bg-opacity":"1",backgroundColor:"rgb(49 51 59 / var(--tw-bg-opacity))",":hover":{backgroundColor:"rgb(0 0 0 / 0.3)"}}],jupiter:[{"--tw-bg-opacity":"1",backgroundColor:"rgb(0 0 0 / var(--tw-bg-opacity))",":hover":{backgroundColor:"rgb(0 0 0 / 0.5)"}}]},walletButton:{light:[{"--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))",":hover":{backgroundColor:"rgb(0 0 0 / 0.05)"}}],dark:[{borderWidth:"1px",borderColor:"rgb(255 255 255 / 0.1)",backgroundColor:"rgb(255 255 255 / 0.1)","--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-sha
1dow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{backgroundColor:"rgb(255 255 255 / 0.2)"}}],jupiter:[{borderWidth:"1px",borderColor:"rgb(255 255 255 / 0.1)",backgroundColor:"rgb(255 255 255 / 0.05)","--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{backgroundColor:"rgb(255 255 255 / 0.2)"}}]},externalIcon:{light:[{color:"rgb(0 0 0 / 0.3)"}],dark:[{color:"rgb(255 255 255 / 0.3)"}],jupiter:[{color:"rgb(255 255 255 / 0.3)"}]}};var bo={name:"tfnfo2",styles:"display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2.5rem"},vo={name:"1u83koa",styles:"margin-top:1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center"},wo={name:"b3sgxl",styles:"font-size:1.125rem;line-height:1.75rem;font-weight:600"},_o={name:"1aejh3u",styles:"margin-top:1.5rem;width:100%"};const ko=({flow:t,setFlow:e,onClose:n,showBack:r})=>{const{theme:i}=Di(),{t:o}=Gi();return Nn("div",{css:bo},Nn("img",{src:"https://unified.jup.ag/new_user_onboarding.png",width:160,height:160}),Nn("div",{css:vo},Nn("span",{css:wo},o("New here?")),Nn("span",{css:["margin-top:0.75rem;font-size:0.875rem;line-height:1.25rem;",yo.subtitle[i],"","","",""]},o("Welcome to DeFi! Create a crypto wallet to get started!"))),Nn("div",{css:_o},Nn("button",{type:"button",css:["width:100%;border-radius:0.5rem;border-width:1px;border-color:rgb(255 255 255 / 0.1);padding-top:1.25rem;padding-bottom:1.25rem;font-size:1rem;line-height:1;font-weight:600;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity));",yo.button[i],"","","",""],onClick:()=>e("Get Wallet")},o("Get Started"))),r&&Nn("button",{type:"button",css:["margin-top:0.75rem;font-size:0.75rem;line-height:1rem;font-weight:600;color:rgb(255 255 255 / 0.5);",yo.subtitle[i],"","","",""],onClick:()=>n()},"\u2190 "+o("Go back")))};var So={name:"1hxjivg",styles:"display:flex;flex-direction:column;justify-content:center;padding-left:2.5rem;padding-right:2.5rem;padding-top:0.75rem;padding-bottom:0.75rem"},xo={name:"709dbi",styles:"font-size:1rem;line-height:1.5rem;font-weight:600"},Io={name:"vgb2l1",styles:"margin-top:1rem;width:100%;> :not([hidden]) ~ :not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem * var(--tw-space-y-reverse));}"};const Ao=({flow:t,setFlow:e})=>{const{theme:n}=Di(),{t:r}=Gi();return Nn("div",{css:So},Nn("span",{css:xo},r("Popular wallets to get started")),Nn("div",{css:Io},go.map(((t,e)=>Nn("a",{href:t.url,key:e,target:"_blank",css:["display:flex;width:100%;align-items:center;> :not([hidden]) ~ :not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)));}border-radius:0.5rem;padding-left:1.25rem;padding-right:1.25rem;padding-top:1rem;padding-bottom:1rem;font-size:0.875rem;line-height:1.25rem;font-weight:600;",yo.walletButton[n],"","","",""]},Nn("img",{src:t.icon,width:20,height:20,alt:t.name}),Nn("span",null,t.name)))),Nn("a",{href:"https://station.jup.ag/partners?category=Wallets",target:"_blank",css:["display:flex;width:100%;align-items:center;> :not([hidden]) ~ :not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)));}border-radius:0.5rem;padding-left:1.25rem;padding-right:1.25rem;padding-top:1rem;padding-bottom:1rem;font-size:0.875rem;line-height:1.25rem;font-weight:600;",yo.walletButton[n],"","","",""]},Nn("div",{css:["display:flex;height:1.25rem;width:1.25rem;align-items:center;fill:currentColor;padding:0.125rem;",yo.externalIcon[n],"","","",""]},Nn(Qi,{width:16,height:16})),Nn("span",null,r("More wallets")))),Nn("span",{css:["margin-top:0.75rem;text-align:center;font-size:0.75rem;line-height:1rem;",yo.subtitle[n],"","","",""]},r("Once installed, refresh this page")),Nn("button",{type:"button",css:["margin-top:0.75rem;font-size:0.75rem;line-height:1rem;font-weight:600;color:rgb(255 255 255 / 0.5);",yo.subtitle[n],"","","",""],onClick:()=>e("Onboarding")},"\u2190 "+r("Go back")))},Eo=({onClose:t,showBack:e})=>{const[n,r]=(0,a.useState)("Onboarding"),[i,o]=(0,a.useState)(!1),s=(0,a.useRef)(null),c=t=>{o(!0),setTimeout((()=>{s.current?.scrollTo(0,0),o(!1),r(t)}),200)};return Nn("div",{ref:s,css:["@keyframes fade-in{0%{opacity:0.2;}100%{opacity:1;}}animation:fade-in 0.15s ease-in-out;overflow-y:scroll;transition-duration:500ms;
1",i?{"@keyframes fade-out":{"0%":{opacity:"1"},"100%":{opacity:"0"}},animation:"fade-out 0.15s ease-out",opacity:"0"}:"","","","",""],className:"hideScrollbar"},"Onboarding"===n?Nn(ko,{showBack:e,flow:n,setFlow:c,onClose:t}):null,"Get Wallet"===n?Nn(Ao,{flow:n,setFlow:c}):null)};const To={container:{light:[{"--tw-bg-opacity":"1 !important",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity)) !important","--tw-text-opacity":"1",color:"rgb(0 0 0 / var(--tw-text-opacity))","--tw-shadow":"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}],dark:[{borderWidth:"1px",borderColor:"rgb(255 255 255 / 0.1)","--tw-bg-opacity":"1 !important",backgroundColor:"rgb(58 59 67 / var(--tw-bg-opacity)) !important","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}],jupiter:[{"--tw-bg-opacity":"1",backgroundColor:"rgb(49 62 76 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}]},shades:{light:[{pointerEvents:"none",backgroundImage:"linear-gradient(to top, var(--tw-gradient-stops))","--tw-gradient-from":"#ffffff var(--tw-gradient-from-position)","--tw-gradient-to":"transparent var(--tw-gradient-to-position)","--tw-gradient-stops":"var(--tw-gradient-from), var(--tw-gradient-to)"}],dark:[{pointerEvents:"none",backgroundImage:"linear-gradient(to top, var(--tw-gradient-stops))","--tw-gradient-from":"#3A3B43 var(--tw-gradient-from-position)","--tw-gradient-to":"transparent var(--tw-gradient-to-position)","--tw-gradient-stops":"var(--tw-gradient-from), var(--tw-gradient-to)"}],jupiter:[{pointerEvents:"none",backgroundImage:"linear-gradient(to top, var(--tw-gradient-stops))","--tw-gradient-from":"rgb(49, 62, 76) var(--tw-gradient-from-position)","--tw-gradient-to":"transparent var(--tw-gradient-to-position)","--tw-gradient-stops":"var(--tw-gradient-from), var(--tw-gradient-to)"}]},walletItem:{light:[{"--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))",":hover":{borderColor:"rgb(0 0 0 / 0.1)","--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-sha
1dow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}}],dark:[{":hover":{backgroundColor:"rgb(255 255 255 / 0.1)","--tw-shadow":"0 25px 50px -12px rgb(0 0 0 / 0.25)","--tw-shadow-colored":"0 25px 50px -12px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}}],jupiter:[{":hover":{backgroundColor:"rgb(255 255 255 / 0.1)","--tw-shadow":"0 25px 50px -12px rgb(0 0 0 / 0.25)","--tw-shadow-colored":"0 25px 50px -12px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"}}]},subtitle:{light:[{color:"rgb(0 0 0 / 0.5)"}],dark:[{color:"rgb(255 255 255 / 0.5)"}],jupiter:[{color:"rgb(255 255 255 / 0.5)"}]},header:{light:[{borderBottomWidth:"1px"}],dark:[],jupiter:[]}};var Po={name:"16ceglb",styles:"font-weight:600"},Co={name:"1o7lixs",styles:"position:absolute;right:1rem;top:1rem"};const Mo=({onClose:t})=>{const{theme:e}=Di(),{t:n}=Gi();return Nn("div",{css:["display:flex;justify-content:space-between;padding-left:1.25rem;padding-right:1.25rem;padding-top:1.5rem;padding-bottom:1.5rem;line-height:1;",To.header[e],"","","",""]},Nn("div",null,Nn("div",{css:Po},Nn("span",null,n("Connect Wallet"))),Nn("div",{css:["margin-top:0.25rem;font-size:0.75rem;line-height:1rem;",To.subtitle[e],"","","",""]},Nn("span",null,n("You need to connect a Solana wallet.")))),Nn("button",{css:Co,onClick:t},Nn(Ji,{width:12,height:12})))};var Oo={name:"1rigx3j",styles:"margin-top:1rem;display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:0.5rem;padding-bottom:1rem"},Ro={name:"eojnhe",styles:"margin-top:1.5rem;font-size:0.75rem;line-height:1rem;font-weight:600"},Bo={name:"18u6ey2",styles:"margin-top:1rem;display:flex;flex-direction:column;> :not([hidden]) ~ :not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem * var(--tw-space-y-reverse));}@media (min-width: 1024px){flex-direction:row;> :not([hidden]) ~ :not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.5rem * var(--tw-space-x-reverse));margin-left:calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));--tw-space-y-reverse:0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse));}}"},jo={name:"1l38ei2",styles:"margin-left:1rem;font-size:0.75rem;line-height:1rem;font-weight:600;@media (min-width: 1024px){margin-left:0px;margin-top:0.75rem;}"},No={name:"ms0594",styles:"margin-bottom:-0.5rem;margin-top:1rem;cursor:pointer;font-size:0.75rem;line-height:1rem;font-weight:600;color:rgb(255 255 255 / 0.8);text-decoration-line:underline"},Lo={name:"vambv7",styles:"margin-top:1.25rem;display:flex;cursor:pointer;justify-content:space-between"},Do={name:"1ide98v",styles:"font-size:0.75rem;line-height:1rem;font-weight:600"},zo={name:"s5xdrg",styles:"display:flex;align-items:center"},Fo={name:"f47xmg",styles:"height:6px;width:10px"},Uo={name:"ms0594",styles:"margin-bottom:-0.5rem;margin-top:1rem;cursor:pointer;font-size:0.75rem;line-height:1rem;font-weight:600;color:rgb(255 255 255 / 0.8);text-decoration-line:underline"};const Wo=({list:t,onToggle:e,isOpen:n})=>{const{handleConnectClick:r,walletlistExplanation:o,walletAttachments:s,theme:c}=Di(),{t:u}=Gi(),[l,h]=(0,a.useState)(!1),[d,f]=(0,a.useState)(!1),p=a.useCallback(((t,e)=>{e.readyState!==i.i1.NotDetected?r(t,e):f(e)}),[]),m=(0,a.useMemo)((()=>Nn("div",null,Nn("div",{css:Oo,translate:"no"},t.others.map(((t,e)=>Nn("ul",{key:e},Nn($i,{handleClick:e=>p(e,t),wallet:t}))))),"Onboarding"!==t.highlightedBy&&o?Nn("div",{css:["font-size:0.75rem;line-height:1rem;font-weight:600;text-decoration-line:underline;",t.others.length>6?{marginBottom:"2rem"}:"","","","",""]},Nn("a",{href:o.href,target:"_blank",rel:"noopener noreferrer"},Nn("span",null,u("Can't find your wallet?")))):null)),[r,t.others]),g=(0,a.useMemo)((()=>0===t.highlight.length&&0===t.others.length),[t]);return(0,a.useEffect)((()=>{g&&h(!0)}),[g]),l?Nn(Eo,{showBack:!g,onClose:()=>h(!1)}):d?Nn(mo,{adapter:d,onClose:()=>f(!1),onGoOnboarding:()=>{h(!0),f(!1)}}):Nn(a.Fragment,null,Nn("div",{className:"hideScrollbar",css:["position:relative;height:100%;overflow-y:auto;padding-left:1.25rem;padding-right:1.25rem;padding-bottom:2rem;padding-top:0.75rem;",n&&{marginBottom:"1.75rem"},"","","",""]},Nn("span",{css:Ro},"PreviouslyConnected"===t.highlightedBy?u("Recently used"):null,"Installed"===t.highlightedBy?u("Installed wallets"):null,"TopWallet"===t.highlightedBy?u("Popular wallets"):null),Nn("div",{css:Bo},t.highlight.map(((t,e)=>{const n=t.name===tt?u("Mobile"):t.name,r=s?s[t.name]?.attachment:null;return Nn("div",{key:e,onClick:e=>p(e,t),css:["display:flex;flex:1 1 0%;cursor:pointer;align-items:center;border-radius:0.5rem;border-width:1px;border-color:rgb(255 255 255 / 0.1);padding-left:1rem;padding-right:1rem;padding-top:1rem;padding-bottom:1rem;@media (min-width: 1024px){max-width:33%;flex-direction:column;justify-content:center;padding-left:0.5rem;padding-right:0.5rem;}transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;:hover{--tw-backdrop-blur:blur(24px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);}",To.walletItem[c],"","","",""]},Mi()?Nn(Hi,{wallet:t,width:24,height:24}):Nn(Hi,{wallet:t,width:30,height:30}),Nn("span",{css:jo},n),r?Nn("div",null,r):null)}))),o&&0===t.others.length?Nn("div",{css:No},Nn("a",{href:o.href,target:"_blank",rel:"noopener noreferrer"}
1,Nn("span",null,u("Can't find your wallet?")))):null,t.others.length>0?Nn(a.Fragment,null,Nn("div",{css:Lo,onClick:e},Nn("span",{css:Do},Nn("span",null,u("More wallets"))),Nn("div",{css:zo},Nn("span",{css:Fo},Nn(n?Xi:Yi,null)))),Nn(Zi,{height:0,maxHeight:"auto",expanded:n},m)):null,Nn("div",{css:Uo},Nn("button",{type:"button",onClick:()=>h(!0)},Nn("span",null,u("I don't have a wallet"))))),n&&t.others.length>6?Nn(a.Fragment,null,Nn("div",{css:["position:absolute;bottom:1.75rem;left:0px;z-index:50;display:block;height:5rem;width:100%;",To.shades[c],"","","",""]})):null)},Go={[i.i1.Installed]:1,[i.i1.Loadable]:2,[i.i1.NotDetected]:3,[i.i1.Unsupported]:3},Vo=["Phantom","Solflare","Backpack"],Ko=t=>(e,n)=>{if(!t)return 0;const r=t.indexOf(e.name),i=t.indexOf(n.name);return-1===r&&-1===i?0:r>=0?-1===i?-1:r-i:i>=0?-1===r?1:i-r:0};var Ho={name:"1ng0ss1",styles:"border-top-width:1px;border-color:rgb(255 255 255 / 0.1)"};var qo=({onClose:t})=>{const{wallets:e}=zi(),{walletPrecedence:n,theme:r}=Di(),[o,s]=Ai(!1),c=(0,a.useContext)(vi),u=(0,a.useMemo)((()=>{const t=e.reduce(((t,e)=>{const n=e.adapter.name,r=c.indexOf(n);if(r>=0)return t.previouslyConnected[r]=e.adapter,t;if(e.readyState===i.i1.Installed)return t.installed.push(e.adapter),t;const o=Vo.indexOf(n);return o>=0?(t.top3[o]=e.adapter,t):e.readyState===i.i1.Loadable||e.readyState===i.i1.NotDetected?(t.loadable.push(e.adapter),t):t}),{previouslyConnected:[],installed:[],top3:[],loadable:[],notDetected:[]});if(t.previouslyConnected.length>0){const{previouslyConnected:e,...r}=t,i=t.previouslyConnected.slice(0,3);let o=Object.values(r).flat().sort(((t,e)=>Go[t.readyState]-Go[e.readyState])).sort(Ko(n||[]));return o.unshift(...t.previouslyConnected.slice(3,t.previouslyConnected.length)),o=o.filter(Boolean),{highlightedBy:"PreviouslyConnected",highlight:i,others:o}}if(t.installed.length>0){const{installed:e,...r}=t,i=t.installed.slice(0,3),o=Object.values(r).flat().sort(((t,e)=>Go[t.readyState]-Go[e.readyState])).sort(Ko(n||[]));return o.unshift(...t.installed.slice(3,t.installed.length)),{highlightedBy:"Installed",highlight:i,others:o}}if(0===t.loadable.length)return{highlightedBy:"Onboarding",highlight:[],others:[]};const{top3:r,...o}=t;return{highlightedBy:"TopWallet",highlight:r,others:Object.values(o).flat().sort(((t,e)=>Go[t.readyState]-Go[e.readyState])).sort(Ko(n||[]))}}),[e,c]),l=(0,a.useRef)(null);var h,d;return h=l,d=t,(0,a.useEffect)((()=>{const t=t=>{h.current&&!h.current.contains(t.target)&&d(t)};return document.addEventListener("mouseup",t),()=>{document.removeEventListener("mouseup",t)}}),[h,d]),Nn("div",{ref:l,css:["position:relative;display:flex;max-height:90vh;width:100%;max-width:28rem;flex-direction:column;overflow:hidden;border-radius:0.75rem;transition-property:height;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:500ms;@media (min-width: 1024px){max-height:576px;}",To.container[r],"","","",""]},Nn(Mo,{onClose:t}),Nn("div",{css:Ho}),Nn(Wo,{list:u,onToggle:s,isOpen:o}))};const $o=({children:t})=>{const e=f(),n=(0,a.useMemo)((()=>({...e,connect:async()=>{try{return await e.connect()}catch(t){}}})),[e]);return Nn(Li.Provider,{value:n},t)},Zo=({config:t,children:e})=>{const{publicKey:n,wallet:r,select:o,connect:s}=zi(),c=Ei(n),u=Ei(r),[l,h]=(0,a.useState)(!1);(0,a.useEffect)((()=>{if(l&&!t.autoConnect&&r?.adapter.name){try{s()}catch(e){}h(!1)}}),[l,r?.adapter.name]);const[d,f]=(0,a.useState)(!1),p=(0,a.useCallback)((async(e,n)=>{e.preventDefault();try{if(f(!1),t.notificationCallback?.onConnecting({publicKey:"",shortAddress:"",walletName:n.name,metadata:{name:n.name,url:n.url,icon:n.icon,supportedTransactionVersions:n.supportedTransactionVersions}}),o(n.name),t.autoConnect||h(!0),n.readyState===i.i1.NotDetected)throw i.i1.NotDetected}catch(r){console.log(r),t.notificationCallback?.onNotInstalled({publicKey:"",shortAddress:"",walletName:n.name,metadata:{name:n.name,url:n.url,icon:n.icon,supportedTransactionVersions:n.supportedTransactionVersions}})}}),[o,s,r?.adapter.name]);return(0,a.useEffect)((()=>{!u||r?n&&r&&t.notificationCallback?.onConnect({publicKey:n.toString(),shortAddress:Ci(n.toString()),walletName:r.adapter.name,metadata:{name:r.adapter.name,url:r.adapter.url,icon:r.adapter.icon,supportedTransactionVersions:r.adapter.supportedTransactionVersions}}):t.notificationCallback?.onDisconnect({publicKey:c?.toString()||"",shortAddress:Ci(c?.toString()||""),walletName:u?.adapter.name||"",metadata:{name:u?.adapter.name,url:u?.adapter.url,icon:u?.adapter.icon,supportedTransactionVersions:u?.adapter.supportedTransactionVersions}})}),[r,n,u]),Nn(Bi.Provider,{value:{walletPrecedence:t.walletPrecedence||[],handleConnectClick:p,showModal:d,setShowModal:f,walletlistExplanation:t.walletlistExplanation,theme:t.theme||"light",walletAttachments:t.walletAttachments||{}}},Nn(Oi,{open:d,onClose:()=>f(!1)},Nn(qo,{onClose:()=>f(!1)})),e)},Yo=({wallets:t,config:e,children:n})=>Nn(Wi,{lang:e.lang},Nn(Si,{wallets:t,config:e},Nn($o,null,Nn(Zo,{config:e},n))));var Xo={exports:{}};(function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function i(t,e,n){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var o;
vendor: 4,499 bytes, line 1
1"object"===typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:require("buffer").Buffer}catch(A){}function s(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function a(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function c(t,e,r,i){for(var o=0,s=0,a=Math.min(t.length,r),c=e;c<a;c++){var u=t.charCodeAt(c)-48;o*=i,s=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&s<i,"Invalid character"),o+=s}return o}function u(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(i.isBN=function(t){return t instanceof i||null!==t&&"object"===typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},i.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},i.prototype._initArray=function(t,e,r){if(n("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,s=0;if("be"===n)for(r=t.length-1;r>=e;r-=2)i=a(t,e,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(r=(t.length-e)%2===0?e+1:e;r<t.length;r+=2)i=a(t,e,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,s=o%r,a=Math.min(o,o-s)+n,u=0,l=n;l<a;l+=r)u=c(t,l,l+r,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var h=1;for(u=c(t,l,t.length,e),l=0;l<s;l++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype._move=function(t){u(t,this)},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(A){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 5,028 bytes, line 1
1777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,c=s/67108864|0;n.words[0]=a;for(var u=1;u<r;u++){for(var l=c>>>26,h=67108863&c,d=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=d;f++){var p=u-f|0;l+=(s=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&s}n.words[u]=0|h,c=0|l}return 0!==c?n.words[u]=0|c:n.length--,n._strip()}i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],c=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),r=0!==o||s!==this.length-1?h[6-c.length]+c+r:c+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=d[t],l=f[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(l).toString(t);r=(p=p.idivn(l)).isZero()?m+r:h[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var s=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](s,i),s},i.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|r;t[n++]=255&s,n<t.length&&(t[n++]=s>>8&255),n<t.length&&(t[n++]=s>>16&255),6===o?(n<t.length&&(t[n++]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n<t.length)for(t[n++]=r;n<t.length;)t[n++]=0},i.prototype._toArrayLikeBE=function(t,e){for(var n=t.length-1,r=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|r;t[n--]=255&s,n>=0&&(t[n--]=s>>8&255),n>=0&&(t[n--]=s>>16&255),6===o?(n>=0&&(t[n--]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},i.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this._strip()},i.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this._strip()},i.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)}
vendor: 7,405 bytes, line 1
1,i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},i.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},i.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,s=0;s<r.length;s++)o=(e=(0|n.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<n.length;s++)o=(e=(0|n.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<n.length&&n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this.length=Math.max(this.length,s),n!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,n){var r,i,o,s=t.words,a=e.words,c=n.words,u=0,l=0|s[0],h=8191&l,d=l>>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,b=g>>>13,v=0|s[3],w=8191&v,_=v>>>13,k=0|s[4],S=8191&k,x=k>>>13,I=0|s[5],A=8191&I,E=I>>>13,T=0|s[6],P=8191&T,C=T>>>13,M=0|s[7],O=8191&M,R=M>>>13,B=0|s[8],j=8191&B,N=B>>>13,L=0|s[9],D=8191&L,z=L>>>13,F=0|a[0],U=8191&F,W=F>>>13,G=0|a[1],V=8191&G,K=G>>>13,H=0|a[2],q=8191&H,$=H>>>13,Z=0|a[3],Y=8191&Z,X=Z>>>13,J=0|a[4],Q=8191&J,tt=J>>>13,et=0|a[5],nt=8191&et,rt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ct=8191&at,ut=at>>>13,lt=0|a[8],ht=8191<,dt=lt>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(u+(r=Math.imul(h,U))|0)+((8191&(i=(i=Math.imul(h,W))+Math.imul(d,U)|0))<<13)|0;u=((o=Math.imul(d,W))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,U),i=(i=Math.imul(p,W))+Math.imul(m,U)|0,o=Math.imul(m,W);var yt=(u+(r=r+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,V)|0))<<13)|0;u=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,U),i=(i=Math.imul(y,W))+Math.imul(b,U)|0,o=Math.imul(b,W),r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,K)|0;var bt=(u+(r=r+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,$)|0)+Math.imul(d,q)|0))<<13)|0;u=((o=o+Math.imul(d,$)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,U),i=(i=Math.imul(w,W))+Math.imul(_,U)|0,o=Math.imul(_,W),r=r+Math.imul(y,V)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,K)|0,r=r+Math.imul(p,q)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,$)|0;var vt=(u+(r=r+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,Y)|0))<<13)|0;u=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(S,U),i=(i=Math.imul(S,W))+Math.imul(x,U)|0,o=Math.imul(x,W),r=r+Math.imul(w,V)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,K)|0,r=r+Math.imul(y,q)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,$)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,X)|0;var wt=(u+(r=r+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(A,U),i=(i=Math.imul(A,W))+Math.imul(E,U)|0,o=Math.imul(E,W),r=r+Math.imul(S,V)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(x,V)|0,o=o+Math.imul(x,K)|0,r=r+Math.imul(w,q)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,$)|0,r=r+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,X)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,X)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var _t=(u+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(d,nt)|0))<<13)|0;u=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(P,U),i=(i=Math.imul(P,W))+Math.imul(C,U)|0,o=Math.imul(C,W),r=r+Math.imul(A,V)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(E,V)|0,o=o+Math.imul(E,K)|0,r=r+Math.imul(S,q)|0,i=(i=i+Math.imul(S,$)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,$)|0,r=r+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,X)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var kt=(u+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,st)|0)+Math.imul(d,ot)|0))<<13)|0;u=((o=o+Math.imul(d,st)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(O,U),i=(i=Math.imul(O,W))+Math.imul(R,U)|0,o=Math.imul(R,W),r=r+Math.imul(P,V)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,K)|0,r=r+Math.imul(A,q)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,$)|0,r=r+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,X)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(y,nt)|0,i=(i=i+Math.imul(y,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,st)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0;var St=(u+(r=r+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,ut)|0)+Math.imul(d,ct)|0))<<13)|0;u=((o=o+Math.imul(d,ut)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(j,U),i=(i=Math.imul(j,W))+Math.imul(N,U)|0,o=Math.imul(N,W),r=r+Math.imul(O,V)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,K)|0,r=r+Math.imul(P,q)|0,i=(i=i+Math.imul(P,$)|0)+Math.imul(C,q)|0,o=o+Math.imul(C,$)|0,r=r+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,X)|0,r=r+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,st)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,r=r+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,ut)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,ut)|0;var xt=(u+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;u=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(D,U),i=(i=Math.imul(D,W))+Math.imul(z,U
vendor: 5,879 bytes, line 1
1)|0,o=Math.imul(z,W),r=r+Math.imul(j,V)|0,i=(i=i+Math.imul(j,K)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,K)|0,r=r+Math.imul(O,q)|0,i=(i=i+Math.imul(O,$)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,$)|0,r=r+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,X)|0,r=r+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,r=r+Math.imul(S,nt)|0,i=(i=i+Math.imul(S,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,st)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,st)|0,r=r+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,ut)|0)+Math.imul(b,ct)|0,o=o+Math.imul(b,ut)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,dt)|0;var It=(u+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,pt)|0))<<13)|0;u=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(D,V),i=(i=Math.imul(D,K))+Math.imul(z,V)|0,o=Math.imul(z,K),r=r+Math.imul(j,q)|0,i=(i=i+Math.imul(j,$)|0)+Math.imul(N,q)|0,o=o+Math.imul(N,$)|0,r=r+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,X)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,rt)|0)+Math.imul(E,nt)|0,o=o+Math.imul(E,rt)|0,r=r+Math.imul(S,ot)|0,i=(i=i+Math.imul(S,st)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,st)|0,r=r+Math.imul(w,ct)|0,i=(i=i+Math.imul(w,ut)|0)+Math.imul(_,ct)|0,o=o+Math.imul(_,ut)|0,r=r+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(b,ht)|0,o=o+Math.imul(b,dt)|0;var At=(u+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;u=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(D,q),i=(i=Math.imul(D,$))+Math.imul(z,q)|0,o=Math.imul(z,$),r=r+Math.imul(j,Y)|0,i=(i=i+Math.imul(j,X)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,st)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,st)|0,r=r+Math.imul(S,ct)|0,i=(i=i+Math.imul(S,ut)|0)+Math.imul(x,ct)|0,o=o+Math.imul(x,ut)|0,r=r+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,dt)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,dt)|0;var Et=(u+(r=r+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(b,pt)|0))<<13)|0;u=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(D,Y),i=(i=Math.imul(D,X))+Math.imul(z,Y)|0,o=Math.imul(z,X),r=r+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(O,nt)|0,i=(i=i+Math.imul(O,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,st)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,r=r+Math.imul(A,ct)|0,i=(i=i+Math.imul(A,ut)|0)+Math.imul(E,ct)|0,o=o+Math.imul(E,ut)|0,r=r+Math.imul(S,ht)|0,i=(i=i+Math.imul(S,dt)|0)+Math.imul(x,ht)|0,o=o+Math.imul(x,dt)|0;var Tt=(u+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;u=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(D,Q),i=(i=Math.imul(D,tt))+Math.imul(z,Q)|0,o=Math.imul(z,tt),r=r+Math.imul(j,nt)|0,i=(i=i+Math.imul(j,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(O,ot)|0,i=(i=i+Math.imul(O,st)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,st)|0,r=r+Math.imul(P,ct)|0,i=(i=i+Math.imul(P,ut)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,ut)|0,r=r+Math.imul(A,ht)|0,i=(i=i+Math.imul(A,dt)|0)+Math.imul(E,ht)|0,o=o+Math.imul(E,dt)|0;var Pt=(u+(r=r+Math.imul(S,pt)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(x,pt)|0))<<13)|0;u=((o=o+Math.imul(x,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(D,nt),i=(i=Math.imul(D,rt))+Math.imul(z,nt)|0,o=Math.imul(z,rt),r=r+Math.imul(j,ot)|0,i=(i=i+Math.imul(j,st)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,st)|0,r=r+Math.imul(O,ct)|0,i=(i=i+Math.imul(O,ut)|0)+Math.imul(R,ct)|0,o=o+Math.imul(R,ut)|0,r=r+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,dt)|0)+Math.imul(C,ht)|0,o=o+Math.imul(C,dt)|0;var Ct=(u+(r=r+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(E,pt)|0))<<13)|0;u=((o=o+Math.imul(E,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(D,ot),i=(i=Math.imul(D,st))+Math.imul(z,ot)|0,o=Math.imul(z,st),r=r+Math.imul(j,ct)|0,i=(i=i+Math.imul(j,ut)|0)+Math.imul(N,ct)|0,o=o+Math.imul(N,ut)|0,r=r+Math.imul(O,ht)|0,i=(i=i+Math.imul(O,dt)|0)+Math.imul(R,ht)|0,o=o+Math.imul(R,dt)|0;var Mt=(u+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(C,pt)|0))<<13)|0;u=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(D,ct),i=(i=Math.imul(D,ut))+Math.imul(z,ct)|0,o=Math.imul(z,ut),r=r+Math.imul(j,ht)|0,i=(i=i+Math.imul(j,dt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,dt)|0;var Ot=(u+(r=r+Math.imul(O,pt)|0)|0)+((8191&(i=(i=i+Math.imul(O,mt)|0)+Math.imul(R,pt)|0))<<13)|0;u=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(D,ht),i=(i=Math.imul(D,dt))+Math.imul(z,ht)|0,o=Math.imul(z,dt);var Rt=(u+(r=r+Math.imul(j,pt)|0)|0)+((8191&(i=(i=i+Math.imul(j,mt)|0)+Math.imul(N,pt)|0))<<13)|0;u=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var Bt=(u+(r=Math.imul(D,pt))|0)+((8191&(i=(i=Math.imul(D,mt))+Math.imul(z,pt)|0))<<13)|0;return u=((o=Math.imul(z,mt))+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,c[0]=gt,c[1]=yt,c[2]=bt,c[3]=vt,c[4]=wt,c[5]=_t,c[6]=kt,c[7]=St,c[8]=xt,c[9]=It,c[10]=At,c[11]=Et,c[12]=Tt,c[13]=Pt,c[14]=Ct,c[15]=Mt,c[16]=Ot,c[17]=Rt,c[18]=Bt,0!==u&&(c[19]=u,n.length++),n};function g(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var s=i;i=0;for(var a=67108863&r,c=Math.min(o,e.length-1),u=Math.max(0,o-t.length+1);u<=c;u++){var l=o-u,h=(0|t.words[l])*(0|e.words[u]),d=67108863&h;a=67108863&(d=d+a|0),i+=(s=(s=s+(h/67108864|0)|0)+(d>>>
vendor: 5,215 bytes, line 1
126)|0)>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function y(t,e,n){return g(t,e,n)}Math.imul||(m=p),i.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?g(this,t,e):y(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),y(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"===typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,s=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=s>>>26,this.words[i]=67108863&s}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=t.words[r]>>>i&1}return e}(t);if(0===e.length)return new i(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var o=n.sqr();r<e.length;r++,o=o.sqr())0!==e[r]&&(n=n.mul(o));return n},i.prototype.iushln=function(t){n("number"===typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,c=(0|this.words[e])-a<<r;this.words[e]=c|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},i.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,r){var i;n("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,c=r;if(i-=s,i=Math.max(0,i),c){for(var u=0;u<s;u++)c.words[u]=this.words[u];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=i);u--){var h=0|this.words[u];this.words[u]=l<<26-o|h>>>o,l=h&a}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},i.prototype.imaskn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return n("number"===typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var c=(0|t.words[i])*e;a=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),o=t,s=0|o.words[o.length-1];0!==(n=26-this._countBits(s))&&(o=o.ushln(n),r.iushln(n),s=0|o.words[o.length-1]);var a,c=r.length-o.length;if("mod"!==e){(a=new i(null)).length=c+1,a.words=new Array(a.length);for(var u=0;u<a.length;u++)a.words[u]=0}
vendor: 12,682 bytes, line 1
1var l=r.clone()._ishlnsubmul(o,1,c);0===l.negative&&(r=l,a&&(a.words[c]=1));for(var h=c-1;h>=0;h--){var d=67108864*(0|r.words[o.length+h])+(0|r.words[o.length+h-1]);for(d=Math.min(d/s|0,67108863),r._ishlnsubmul(o,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,h),r.isZero()||(r.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(o=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:o,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(o=a.div.neg()),{div:o,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,s,a},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),s=new i(0),a=new i(0),c=new i(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0===(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(l),s.isub(h)),o.iushrn(1),s.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(l),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(a),s.isub(c)):(r.isub(e),a.isub(o),c.isub(s))}return{a:a,b:c,gcd:r.iushln(u)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,s=new i(1),a=new i(0),c=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0===(e.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(e.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var h=0,d=1;0===(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return(o=0===e.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0===(1&this.words[0])},i.prototype.isOdd=function(){return 1===(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new x(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function I(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},r(w,v),w.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&n)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(_,v),r(k,v),r(S,v),S.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new _;else if("p192"===t)e=new k;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return b[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);n(!o.isZero());var a=new i(1).toRed(this),c=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var h=this.pow(l,o),d=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var y=this.pow(h,new i(1).iushln(p-g-1));d=d.redMul(y),h=y.redSqr(),f=f.redMul(h),p=g}return d},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new i(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var o=n[0],s=0,a=0,c=e.bitLength()%26;for(0===c&&(c=26),r=e.length-1;r>=0;r--){for(var u=e.words[r],l=c-1;l>=0;l--){var h=u>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===r&&0===l)&&(o=this.mul(o,n[s]),a=0,s=0)):a=0}
1c=26}return o},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new I(t)},r(I,x),I.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},I.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},I.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},I.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},I.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})(Xo,xi)},15866:function(t,e,n){"use strict";var r;n.d(e,{E9:function(){return k},P6:function(){return tt},Z_:function(){return J}});var i=n(7420);const o=BigInt(0),s=BigInt(1),a=BigInt(2),c=BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),u=Object.freeze({a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),P:BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),l:c,n:c,h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")}),l=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),h=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),d=(BigInt("6853475219497561581579357271197624642482790079785650197046958215289687604742"),BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235")),f=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),p=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),m=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952");class g{constructor(t,e,n,r){this.x=t,this.y=e,this.z=n,this.t=r}static fromAffine(t){if(!(t instanceof k))throw new TypeError("ExtendedPoint#fromAffine: expected Point");return t.equals(k.ZERO)?g.ZERO:new g(t.x,t.y,s,B(t.x*t.y))}static toAffineBatch(t){const e=function(t,e=u.P){const n=new Array(t.length),r=j(t.reduce(((t,r,i)=>r===o?t:(n[i]=t,B(t*r,e))),s),e);return t.reduceRight(((t,r,i)=>r===o?t:(n[i]=B(t*n[i],e),B(t*r,e))),r),n}(t.map((t=>t.z)));return t.map(((t,n)=>t.toAffine(e[n])))}static normalizeZ(t){return this.toAffineBatch(t).map(this.fromAffine)}equals(t){y(t);const{x:e,y:n,z:r}=this,{x:i,y:o,z:s}=t,a=B(e*s),c=B(i*r),u=B(n*s),l=B(o*r);return a===c&&u===l}negate(){return new g(B(-this.x),this.y,this.z,B(-this.t))}double(){const{x:t,y:e,z:n}=this,{a:r}=u,i=B(t*t),o=B(e*e),s=B(a*B(n*n)),c=B(r*i),l=t+e,h=B(B(l*l)-i-o),d=c+o,f=d-s,p=c-o,m=B(h*f),y=B(d*p),b=B(h*p),v=B(f*d);return new g(m,y,v,b)}add(t){y(t);const{x:e,y:n,z:r,t:i}=this,{x:s,y:c,z:u,t:l}=t,h=B((n-e)*(c+s)),d=B((n+e)*(c-s)),f=B(d-h);if(f===o)return this.double();const p=B(r*a*l),m=B(i*a*u),b=m+p,v=d+h,w=m-p,_=B(b*f),k=B(v*w),S=B(b*w),x=B(f*v);return new g(_,k,x,S)}subtract(t){return this.add(t.negate())}precomputeWindow(t){const e=1+256/t,n=[];let r=this,i=r;for(let o=0;o<e;o++){i=r,n.push(i);for(let e=1;e<2**(t-1);e++)i=i.add(r),n.push(i);r=i.double()}return n}wNAF(t,e){!e&&this.equals(g.BASE)&&(e=k.BASE);const n=e&&e._WINDOW_SIZE||1;if(256%n)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let r=e&&_.get(e);r||(r=this.precomputeWindow(n),e&&1!==n&&(r=g.normalizeZ(r),_.set(e,r)));let i=g.ZERO,o=g.ZERO;const a=1+256/n,c=2**(n-1),u=BigInt(2**n-1),l=2**n,h=BigInt(n);for(let d=0;d<a;d++){const e=d*c;let n=Number(t&u);if(t>>=h,n>c&&(n-=l,t+=s),0===n){let t=r[e];d%2&&(t=t.negate()),o=o.add(t)}else{let t=r[e+Math.abs(n)-1];n<0&&(t=t.negate()),i=i.add(t)}}return g.normalizeZ([i,o])[0]}multiply(t,e){return this.wNAF(W(t,u.l),e)}multiplyUnsafe(t){let e=W(t,u.l,!1);const n=g.BASE,r=g.ZERO;if(e===o)return r;if(this.equals(r)||e===s)return this;if(this.equals(n))return this.wNAF(e);let i=r,a=this;for(;e>o;)e&s&&(i=i.add(a)),a=a.double(),e>>=s;return i}isSmallOrder(){return this.multiplyUnsafe(u.h).equals(g.ZERO)}isTorsionFree(){return this.multiplyUnsafe(u.l).equals(g.ZERO)}toAffine(t=j(this.z)){const{x:e,y:n,z:r}=this,i=B(e*t),o=B(n*t);
1if(B(r*t)!==s)throw new Error("invZ was invalid");return new k(i,o)}fromRistrettoBytes(){v()}toRistrettoBytes(){v()}fromRistrettoHash(){v()}}function y(t){if(!(t instanceof g))throw new TypeError("ExtendedPoint expected")}function b(t){if(!(t instanceof w))throw new TypeError("RistrettoPoint expected")}function v(){throw new Error("Legacy method: switch to RistrettoPoint")}g.BASE=new g(u.Gx,u.Gy,s,B(u.Gx*u.Gy)),g.ZERO=new g(o,s,s,o);class w{constructor(t){this.ep=t}static calcElligatorRistrettoMap(t){const{d:e}=u,n=B(h*t*t),r=B((n+s)*p);let i=BigInt(-1);const o=B((i-e*n)*B(n+e));let{isValid:a,value:c}=D(r,o),l=B(c*t);C(l)||(l=B(-l)),a||(c=l),a||(i=n);const f=B(i*(n-s)*m-o),y=c*c,b=B((c+c)*o),v=B(f*d),w=B(s-y),_=B(s+y);return new g(B(b*_),B(w*v),B(v*_),B(b*w))}static hashToCurve(t){const e=R((t=U(t,64)).slice(0,32)),n=this.calcElligatorRistrettoMap(e),r=R(t.slice(32,64)),i=this.calcElligatorRistrettoMap(r);return new w(n.add(i))}static fromHex(t){t=U(t,32);const{a:e,d:n}=u,r="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",i=R(t);if(!function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}(P(i),t)||C(i))throw new Error(r);const a=B(i*i),c=B(s+e*a),l=B(s-e*a),h=B(c*c),d=B(l*l),f=B(e*n*h-d),{isValid:p,value:m}=z(B(f*d)),y=B(m*l),b=B(m*y*f);let v=B((i+i)*y);C(v)&&(v=B(-v));const _=B(c*b),k=B(v*_);if(!p||C(k)||_===o)throw new Error(r);return new w(new g(v,_,s,k))}toRawBytes(){let{x:t,y:e,z:n,t:r}=this.ep;const i=B(B(n+e)*B(n-e)),o=B(t*e),s=B(o*o),{value:a}=z(B(i*s)),c=B(a*i),u=B(a*o),l=B(c*u*r);let d;if(C(r*l)){let n=B(e*h),r=B(t*h);t=n,e=r,d=B(c*f)}else d=u;C(t*l)&&(e=B(-e));let p=B((n-e)*d);return C(p)&&(p=B(-p)),P(p)}toHex(){return A(this.toRawBytes())}toString(){return this.toHex()}equals(t){b(t);const e=this.ep,n=t.ep,r=B(e.x*n.y)===B(e.y*n.x),i=B(e.y*n.y)===B(e.x*n.x);return r||i}add(t){return b(t),new w(this.ep.add(t.ep))}subtract(t){return b(t),new w(this.ep.subtract(t.ep))}multiply(t){return new w(this.ep.multiply(t))}multiplyUnsafe(t){return new w(this.ep.multiplyUnsafe(t))}}w.BASE=new w(g.BASE),w.ZERO=new w(g.ZERO);const _=new WeakMap;class k{constructor(t,e){this.x=t,this.y=e}_setWindowSize(t){this._WINDOW_SIZE=t,_.delete(this)}static fromHex(t,e=!0){const{d:n,P:r}=u,i=(t=U(t,32)).slice();i[31]=-129&t[31];const o=M(i);if(e&&o>=r)throw new Error("Expected 0 < hex < P");if(!e&&o>=l)throw new Error("Expected 0 < hex < 2**256");const a=B(o*o),c=B(a-s),h=B(n*a+s);let{isValid:d,value:f}=D(c,h);if(!d)throw new Error("Point.fromHex: invalid y coordinate");const p=(f&s)===s;return 0!==(128&t[31])!==p&&(f=B(-f)),new k(f,o)}static async fromPrivateKey(t){return(await $(t)).point}toRawBytes(){const t=P(this.y);return t[31]|=this.x&s?128:0,t}toHex(){return A(this.toRawBytes())}toX25519(){const{y:t}=this;return P(B((s+t)*j(s-t)))}isTorsionFree(){return g.fromAffine(this).isTorsionFree()}equals(t){return this.x===t.x&&this.y===t.y}negate(){return new k(B(-this.x),this.y)}add(t){return g.fromAffine(this).add(g.fromAffine(t)).toAffine()}subtract(t){return this.add(t.negate())}multiply(t){return g.fromAffine(this).multiply(t,this).toAffine()}}k.BASE=new k(u.Gx,u.Gy),k.ZERO=new k(o,s);class S{constructor(t,e){this.r=t,this.s=e,this.assertValidity()}static fromHex(t){const e=U(t,64),n=k.fromHex(e.slice(0,32),!1),r=M(e.slice(32,64));return new S(n,r)}assertValidity(){const{r:t,s:e}=this;if(!(t instanceof k))throw new Error("Expected Point instance");return W(e,u.l,!1),this}toRawBytes(){const t=new Uint8Array(64);return t.set(this.r.toRawBytes()),t.set(P(this.s),32),t}toHex(){return A(this.toRawBytes())}}function x(...t){if(!t.every((t=>t instanceof Uint8Array)))throw new Error("Expected Uint8Array list");if(1===t.length)return t[0];const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);for(let r=0,i=0;r<t.length;r++){const e=t[r];n.set(e,i),i+=e.length}return n}const I=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function A(t){if(!(t instanceof Uint8Array))throw new Error("Uint8Array expected");let e="";for(let n=0;n<t.length;n++)e+=I[t[n]];return e}function E(t){if("string"!==typeof t)throw new TypeError("hexToBytes: expected string, got "+typeof t);
1if(t.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const e=new Uint8Array(t.length/2);for(let n=0;n<e.length;n++){const r=2*n,i=t.slice(r,r+2),o=Number.parseInt(i,16);if(Number.isNaN(o)||o<0)throw new Error("Invalid byte sequence");e[n]=o}return e}function T(t){return E(t.toString(16).padStart(64,"0"))}function P(t){return T(t).reverse()}function C(t){return(B(t)&s)===s}function M(t){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");return BigInt("0x"+A(Uint8Array.from(t).reverse()))}const O=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function R(t){return B(M(t)&O)}function B(t,e=u.P){const n=t%e;return n>=o?n:e+n}function j(t,e=u.P){if(t===o||e<=o)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let n=B(t,e),r=e,i=o,a=s,c=s,l=o;for(;n!==o;){const t=r/n,e=r%n,o=i-c*t,s=a-l*t;r=n,n=e,i=c,a=l,c=o,l=s}if(r!==s)throw new Error("invert: does not exist");return B(i,e)}function N(t,e){const{P:n}=u;let r=t;for(;e-- >o;)r*=r,r%=n;return r}function L(t){const{P:e}=u,n=BigInt(5),r=BigInt(10),i=BigInt(20),o=BigInt(40),c=BigInt(80),l=t*t%e*t%e,h=N(l,a)*l%e,d=N(h,s)*t%e,f=N(d,n)*d%e,p=N(f,r)*f%e,m=N(p,i)*p%e,g=N(m,o)*m%e,y=N(g,c)*g%e,b=N(y,c)*g%e,v=N(b,r)*f%e;return{pow_p_5_8:N(v,a)*t%e,b2:l}}function D(t,e){const n=B(e*e*e),r=B(n*n*e);let i=B(t*n*L(t*r).pow_p_5_8);const o=B(e*i*i),s=i,a=B(i*h),c=o===t,u=o===B(-t),l=o===B(-t*h);return c&&(i=s),(u||l)&&(i=a),C(i)&&(i=B(-i)),{isValid:c||u,value:i}}function z(t){return D(s,t)}function F(t){return B(M(t),u.l)}function U(t,e){const n=t instanceof Uint8Array?Uint8Array.from(t):E(t);if("number"===typeof e&&n.length!==e)throw new Error(`Expected ${e} bytes`);return n}function W(t,e,n=!0){if(!e)throw new TypeError("Specify max value");if("number"===typeof t&&Number.isSafeInteger(t)&&(t=BigInt(t)),"bigint"===typeof t&&t<e)if(n){if(o<t)return t}else if(o<=t)return t;throw new TypeError("Expected valid scalar: 0 < scalar < max")}function G(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}function V(t){if(32!==(t="bigint"===typeof t||"number"===typeof t?T(W(t,l)):U(t)).length)throw new Error("Expected 32 bytes");return t}function K(t){const e=G(t.slice(0,32)),n=t.slice(32,64),r=F(e),i=k.BASE.multiply(r),o=i.toRawBytes();return{head:e,prefix:n,scalar:r,point:i,pointBytes:o}}let H;function q(...t){if("function"!==typeof H)throw new Error("utils.sha512Sync must be set to use sync methods");return H(...t)}async function $(t){return K(await tt.sha512(V(t)))}function Z(t){return K(q(V(t)))}function Y(t,e,n){e=U(e),n instanceof k||(n=k.fromHex(n,!1));const{r:r,s:i}=t instanceof S?t.assertValidity():S.fromHex(t);return{r:r,s:i,SB:g.BASE.multiplyUnsafe(i),pub:n,msg:e}}function X(t,e,n,r){const i=F(r),o=g.fromAffine(t).multiplyUnsafe(i);return g.fromAffine(e).add(o).subtract(n).multiplyUnsafe(u.h).equals(g.ZERO)}const J={getExtendedPublicKey:Z,getPublicKey:function(t){return Z(t).pointBytes},sign:function(t,e){t=U(t);const{prefix:n,scalar:r,pointBytes:i}=Z(e),o=F(q(n,t)),s=k.BASE.multiply(o),a=B(o+F(q(s.toRawBytes(),i,t))*r,u.l);return new S(s,a).toRawBytes()},verify:function(t,e,n){const{r:r,SB:i,msg:o,pub:s}=Y(t,e,n),a=q(r.toRawBytes(),s.toRawBytes(),o);return X(s,r,i,a)}};k.BASE._setWindowSize(8);const Q={node:r||(r=n.t(i,2)),web:"object"===typeof self&&"crypto"in self?self.crypto:void 0},tt={bytesToHex:A,hexToBytes:E,concatBytes:x,getExtendedPublicKey:$,mod:B,invert:j,TORSION_SUBGROUP:["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"],hashToPrivateScalar:t=>{if((t=U(t)).length<40||t.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");return B(M(t),u.l-s)+s},randomBytes:(t=32)=>{if(Q.web)return Q.web.getRandomValues(new Uint8Array(t));if(Q.node){const{randomBytes:e}=Q.node;return new Uint8Array(e(t).buffer)}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>tt.randomBytes(32),sha512:async(...t)=>{const e=x(...t);if(Q.web){const t=await Q.web.subtle.digest("SHA-512",e.buffer);return new Uint8Array(t)}if(Q.node)return Uint8Array.from(Q.node.createHash("sha512").update(e).digest());throw new Error("The environment doesn't have sha512 function")},precompute(t=8,e=k.BASE){const n=e.equals(k.BASE)?e:new k(e.x,e.y);return n._setWindowSize(t),n.multiply(a),n},sha512Sync:void 0};Object.defineProperties(tt,{sha512Sync:{configurable:!1,get:()=>H,set(t){H||(H=t)}}})},27760:function(t,e,n){"use strict";var r;n.d(e,{$3:function(){return q},P6:function(){return nt},kS:function(){return Q}});var i=n(95856);const o=BigInt(0),s=BigInt(1),a=BigInt(2),c=BigInt(3),u=BigInt(8),l=Object.freeze({a:o,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:s,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")});function h(t){const{a:e,b:n}=l,r=O(t*t),i=O(r*t);return O(i+e*t+n)}const d=l.a===o;
1class f extends Error{constructor(t){super(t)}}class p{constructor(t,e,n){this.x=t,this.y=e,this.z=n}static fromAffine(t){if(!(t instanceof g))throw new TypeError("JacobianPoint#fromAffine: expected Point");return new p(t.x,t.y,s)}static toAffineBatch(t){const e=function(t,e=l.P){const n=new Array(t.length),r=B(t.reduce(((t,r,i)=>r===o?t:(n[i]=t,O(t*r,e))),s),e);return t.reduceRight(((t,r,i)=>r===o?t:(n[i]=O(t*n[i],e),O(t*r,e))),r),n}(t.map((t=>t.z)));return t.map(((t,n)=>t.toAffine(e[n])))}static normalizeZ(t){return p.toAffineBatch(t).map(p.fromAffine)}equals(t){if(!(t instanceof p))throw new TypeError("JacobianPoint expected");const{x:e,y:n,z:r}=this,{x:i,y:o,z:s}=t,a=O(r*r),c=O(s*s),u=O(e*c),l=O(i*a),h=O(O(n*s)*c),d=O(O(o*r)*a);return u===l&&h===d}negate(){return new p(this.x,O(-this.y),this.z)}double(){const{x:t,y:e,z:n}=this,r=O(t*t),i=O(e*e),o=O(i*i),s=t+i,l=O(a*(O(s*s)-r-o)),h=O(c*r),d=O(h*h),f=O(d-a*l),m=O(h*(l-f)-u*o),g=O(a*e*n);return new p(f,m,g)}add(t){if(!(t instanceof p))throw new TypeError("JacobianPoint expected");const{x:e,y:n,z:r}=this,{x:i,y:s,z:c}=t;if(i===o||s===o)return this;if(e===o||n===o)return t;const u=O(r*r),l=O(c*c),h=O(e*l),d=O(i*u),f=O(O(n*c)*l),m=O(O(s*r)*u),g=O(d-h),y=O(m-f);if(g===o)return y===o?this.double():p.ZERO;const b=O(g*g),v=O(g*b),w=O(h*b),_=O(y*y-v-a*w),k=O(y*(w-_)-f*v),S=O(r*c*g);return new p(_,k,S)}subtract(t){return this.add(t.negate())}multiplyUnsafe(t){const e=p.ZERO;if("bigint"===typeof t&&t===o)return e;let n=M(t);if(n===s)return this;if(!d){let t=e,r=this;for(;n>o;)n&s&&(t=t.add(r)),r=r.double(),n>>=s;return t}let{k1neg:r,k1:i,k2neg:a,k2:c}=L(n),u=e,h=e,f=this;for(;i>o||c>o;)i&s&&(u=u.add(f)),c&s&&(h=h.add(f)),f=f.double(),i>>=s,c>>=s;return r&&(u=u.negate()),a&&(h=h.negate()),h=new p(O(h.x*l.beta),h.y,h.z),u.add(h)}precomputeWindow(t){const e=d?128/t+1:256/t+1,n=[];let r=this,i=r;for(let o=0;o<e;o++){i=r,n.push(i);for(let e=1;e<2**(t-1);e++)i=i.add(r),n.push(i);r=i.double()}return n}wNAF(t,e){!e&&this.equals(p.BASE)&&(e=g.BASE);const n=e&&e._WINDOW_SIZE||1;if(256%n)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let r=e&&m.get(e);r||(r=this.precomputeWindow(n),e&&1!==n&&(r=p.normalizeZ(r),m.set(e,r)));let i=p.ZERO,o=p.ZERO;const a=1+(d?128/n:256/n),c=2**(n-1),u=BigInt(2**n-1),l=2**n,h=BigInt(n);for(let d=0;d<a;d++){const e=d*c;let n=Number(t&u);if(t>>=h,n>c&&(n-=l,t+=s),0===n){let t=r[e];d%2&&(t=t.negate()),o=o.add(t)}else{let t=r[e+Math.abs(n)-1];n<0&&(t=t.negate()),i=i.add(t)}}return{p:i,f:o}}multiply(t,e){let n,r,i=M(t);if(d){const{k1neg:t,k1:o,k2neg:s,k2:a}=L(i);let{p:c,f:u}=this.wNAF(o,e),{p:h,f:d}=this.wNAF(a,e);t&&(c=c.negate()),s&&(h=h.negate()),h=new p(O(h.x*l.beta),h.y,h.z),n=c.add(h),r=u.add(d)}else{const{p:t,f:o}=this.wNAF(i,e);n=t,r=o}return p.normalizeZ([n,r])[0]}toAffine(t=B(this.z)){const{x:e,y:n,z:r}=this,i=t,o=O(i*i),a=O(o*i),c=O(e*o),u=O(n*a);if(O(r*i)!==s)throw new Error("invZ was invalid");return new g(c,u)}}p.BASE=new p(l.Gx,l.Gy,s),p.ZERO=new p(o,s,o);const m=new WeakMap;class g{constructor(t,e){this.x=t,this.y=e}_setWindowSize(t){this._WINDOW_SIZE=t,m.delete(this)}hasEvenY(){return this.y%a===o}static fromCompressedHex(t){const e=32===t.length,n=P(e?t:t.subarray(1));if(!G(n))throw new Error("Point is not on curve");let r=function(t){const{P:e}=l,n=BigInt(6),r=BigInt(11),i=BigInt(22),o=BigInt(23),s=BigInt(44),u=BigInt(88),h=t*t*t%e,d=h*h*t%e,f=R(d,c)*d%e,p=R(f,c)*d%e,m=R(p,a)*h%e,g=R(m,r)*m%e,y=R(g,i)*g%e,b=R(y,s)*y%e,v=R(b,u)*b%e,w=R(v,s)*y%e,_=R(w,c)*d%e,k=R(_,o)*g%e,S=R(k,n)*h%e;return R(S,a)}(h(n));const i=(r&s)===s;if(e)i&&(r=O(-r));else{1===(1&t[0])!==i&&(r=O(-r))}const o=new g(n,r);return o.assertValidity(),o}static fromUncompressedHex(t){const e=P(t.subarray(1,33)),n=P(t.subarray(33,65)),r=new g(e,n);return r.assertValidity(),r}static fromHex(t){const e=C(t),n=e.length,r=e[0];if(32===n||33===n&&(2===r||3===r))return this.fromCompressedHex(e);if(65===n&&4===r)return this.fromUncompressedHex(e);throw new Error(`Point.fromHex: received invalid point. Expected 32-33 compressed bytes or 65 uncompressed bytes, not ${n}`)}static fromPrivateKey(t){return g.BASE.multiply(K(t))}static fromSignature(t,e,n){const r=D(t=C(t)),{r:i,s:o}=H(e);if(0!==n&&1!==n)throw new Error("Cannot recover signature: invalid recovery bit");const s=1&n?"03":"02",a=g.fromHex(s+x(i)),{n:c}=l,u=B(i,c),h=O(-r*u,c),d=O(o*u,c),f=g.BASE.multiplyAndAddUnsafe(a,h,d);if(!f)throw new Error("Cannot recover signature: point at infinify");return f.assertValidity(),f}toRawBytes(t=!1){return T(this.toHex(t))}toHex(t=!1){const e=x(this.x);if(t){return`${this.hasEvenY()?"02":"03"}${e}`}return`04${e}${x(this.y)}`}toHexX(){return this.toHex(!0).slice(2)}toRawX(){return this.toRawBytes(!0).slice(1)}assertValidity(){const t="Point is not on elliptic curve",{x:e,y:n}=this;if(!G(e)||!G(n))throw new Error(t);const r=O(n*n);if(O(r-h(e))!==o)throw new Error(t)}equals(t){return this.x===t.x&&this.y===t.y}negate(){return new g(this.x,O(-this.y))}double(){return p.fromAffine(this).double().toAffine()}add(t){return p.fromAffine(this).add(p.fromAffine(t)).toAffine()}subtract(t){return this.add(t.negate())}multiply(t){return p.fromAffine(this).multiply(t,this).toAffine()}multiplyAndAddUnsafe(t,e,n){const r=p.fromAffine(this),i=e===o||e===s||this!==g.BASE?r.multiplyUnsafe(e):r.multiply(e),a=p.fromAffine(t).multiplyUnsafe(n),c=i.add(a);return c.equals(p.ZERO)?void 0:c.toAffine()}}function y(t){return Number.parseInt(t[0],16)>=8?"00"+t:t}function b(t){if(t.length<2||2!==t[0])throw new Error(`Invalid signature integer tag: ${k(t)}`);const e=t[1],n=t.subarray(2,e+2);if(!e||n.length!==e)throw new Error("Invalid signature integer: wrong length");if(0===n[0]&&n[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:P(n),left:t.subarray(e+2)}}g.BASE=new g(l.Gx,l.Gy),g.ZERO=new g(o,o);class v{constructor(t,e){this.r=t,this.s=e,this.assertValidity()}static fromCompact(t){const e=t instanceof Uint8Array,n="Signature.fromCompact";if("string"!==typeof t&&!e)throw new TypeError(`${n}: Expected string or Uint8Array`);const r=e?k(t):t;if(128!==r.length)throw new Error(`${n}: Expected 64-byte hex`);return new v(E(r.slice(0,64)),E(r.slice(64,128)))}static fromDER(t){const e=t instanceof Uint8Array;
1if("string"!==typeof t&&!e)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r:n,s:r}=function(t){if(t.length<2||48!=t[0])throw new Error(`Invalid signature tag: ${k(t)}`);if(t[1]!==t.length-2)throw new Error("Invalid signature: incorrect length");const{data:e,left:n}=b(t.subarray(2)),{data:r,left:i}=b(n);if(i.length)throw new Error(`Invalid signature: left bytes after parsing: ${k(i)}`);return{r:e,s:r}}(e?t:T(t));return new v(n,r)}static fromHex(t){return this.fromDER(t)}assertValidity(){const{r:t,s:e}=this;if(!W(t))throw new Error("Invalid Signature: r must be 0 < r < n");if(!W(e))throw new Error("Invalid Signature: s must be 0 < s < n")}hasHighS(){const t=l.n>>s;return this.s>t}normalizeS(){return this.hasHighS()?new v(this.r,l.n-this.s):this}toDERRawBytes(t=!1){return T(this.toDERHex(t))}toDERHex(t=!1){const e=y(A(this.s));if(t)return e;const n=y(A(this.r)),r=A(n.length/2),i=A(e.length/2);return`30${A(n.length/2+e.length/2+4)}02${r}${n}02${i}${e}`}toRawBytes(){return this.toDERRawBytes()}toHex(){return this.toDERHex()}toCompactRawBytes(){return T(this.toCompactHex())}toCompactHex(){return x(this.r)+x(this.s)}}function w(...t){if(!t.every((t=>t instanceof Uint8Array)))throw new Error("Uint8Array list expected");if(1===t.length)return t[0];const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);for(let r=0,i=0;r<t.length;r++){const e=t[r];n.set(e,i),i+=e.length}return n}const _=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function k(t){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");let e="";for(let n=0;n<t.length;n++)e+=_[t[n]];return e}const S=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000");function x(t){if("bigint"!==typeof t)throw new Error("Expected bigint");if(!(o<=t&&t<S))throw new Error("Expected number < 2^256");return t.toString(16).padStart(64,"0")}function I(t){const e=T(x(t));if(32!==e.length)throw new Error("Error: expected 32 bytes");return e}function A(t){const e=t.toString(16);return 1&e.length?`0${e}`:e}function E(t){if("string"!==typeof t)throw new TypeError("hexToNumber: expected string, got "+typeof t);return BigInt(`0x${t}`)}function T(t){if("string"!==typeof t)throw new TypeError("hexToBytes: expected string, got "+typeof t);if(t.length%2)throw new Error("hexToBytes: received invalid unpadded hex"+t.length);const e=new Uint8Array(t.length/2);for(let n=0;n<e.length;n++){const r=2*n,i=t.slice(r,r+2),o=Number.parseInt(i,16);if(Number.isNaN(o)||o<0)throw new Error("Invalid byte sequence");e[n]=o}return e}function P(t){return E(k(t))}function C(t){return t instanceof Uint8Array?Uint8Array.from(t):T(t)}function M(t){if("number"===typeof t&&Number.isSafeInteger(t)&&t>0)return BigInt(t);if("bigint"===typeof t&&W(t))return t;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function O(t,e=l.P){const n=t%e;return n>=o?n:e+n}function R(t,e){const{P:n}=l;let r=t;for(;e-- >o;)r*=r,r%=n;return r}function B(t,e=l.P){if(t===o||e<=o)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let n=O(t,e),r=e,i=o,a=s,c=s,u=o;for(;n!==o;){const t=r/n,e=r%n,o=i-c*t,s=a-u*t;r=n,n=e,i=c,a=u,c=o,u=s}if(r!==s)throw new Error("invert: does not exist");return O(i,e)}const j=(t,e)=>(t+e/a)/e,N={a1:BigInt("0x3086d221a7d46bcde86c90e49284eb15"),b1:-s*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a2:BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),b2:BigInt("0x3086d221a7d46bcde86c90e49284eb15"),POW_2_128:BigInt("0x100000000000000000000000000000000")};function L(t){const{n:e}=l,{a1:n,b1:r,a2:i,b2:o,POW_2_128:s}=N,a=j(o*t,e),c=j(-r*t,e);let u=O(t-a*n-c*i,e),h=O(-a*r-c*o,e);const d=u>s,f=h>s;if(d&&(u=e-u),f&&(h=e-h),u>s||h>s)throw new Error("splitScalarEndo: Endomorphism failed, k="+t);return{k1neg:d,k1:u,k2neg:f,k2:h}}function D(t){const{n:e}=l,n=8*t.length-256;let r=P(t);return n>0&&(r>>=BigInt(n)),r>=e&&(r-=e),r}let z,F;class U{constructor(){this.v=new Uint8Array(32).fill(1),this.k=new Uint8Array(32).fill(0),this.counter=0}hmac(...t){return nt.hmacSha256(this.k,...t)}hmacSync(...t){return F(this.k,...t)}checkSync(){if("function"!==typeof F)throw new f("hmacSha256Sync needs to be set")}incr(){if(this.counter>=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}async reseed(t=new Uint8Array){this.k=await this.hmac(this.v,Uint8Array.from([0]),t),this.v=await this.hmac(this.v),0!==t.length&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),t),this.v=await this.hmac(this.v))}reseedSync(t=new Uint8Array){this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),t),this.v=this.hmacSync(this.v),0!==t.length&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),t),this.v=this.hmacSync(this.v))}async generate(){return this.incr(),this.v=await this.hmac(this.v),this.v}generateSync(){return this.checkSync(),this.incr(),this.v=this.hmacSync(this.v),this.v}}function W(t){return o<t&&t<l.n}function G(t){return o<t&&t<l.P}function V(t,e,n){const r=P(t);if(!W(r))return;const{n:i}=l,a=g.BASE.multiply(r),c=O(a.x,i);if(c===o)return;const u=O(B(r,i)*O(e+n*c,i),i);if(u===o)return;const h=new v(c,u);
1return{sig:h,recovery:(a.x===h.r?0:2)|Number(a.y&s)}}function K(t){let e;if("bigint"===typeof t)e=t;else if("number"===typeof t&&Number.isSafeInteger(t)&&t>0)e=BigInt(t);else if("string"===typeof t){if(64!==t.length)throw new Error("Expected 32 bytes of private key");e=E(t)}else{if(!(t instanceof Uint8Array))throw new TypeError("Expected valid private key");if(32!==t.length)throw new Error("Expected 32 bytes of private key");e=P(t)}if(!W(e))throw new Error("Expected private key: 0 < key < n");return e}function H(t){if(t instanceof v)return t.assertValidity(),t;try{return v.fromDER(t)}catch(e){return v.fromCompact(t)}}function q(t,e=!1){return g.fromPrivateKey(t).toRawBytes(e)}function $(t){return P(t.length>32?t.slice(0,32):t)}function Z(t){const e=$(t),n=O(e,l.n);return Y(n<o?e:n)}function Y(t){return I(t)}function X(t,e,n){if(null==t)throw new Error(`sign: expected valid message hash, not "${t}"`);const r=C(t),i=K(e),o=[Y(i),Z(r)];if(null!=n){!0===n&&(n=nt.randomBytes(32));const t=C(n);if(32!==t.length)throw new Error("sign: Expected 32 bytes of extra data");o.push(t)}return{seed:w(...o),m:$(r),d:i}}function J(t,e){let{sig:n,recovery:r}=t;const{canonical:i,der:o,recovered:s}=Object.assign({canonical:!0,der:!0},e);i&&n.hasHighS()&&(n=n.normalizeS(),r^=1);const a=o?n.toDERRawBytes():n.toCompactRawBytes();return s?[a,r]:a}function Q(t,e,n={}){const{seed:r,m:i,d:o}=X(t,e,n.extraEntropy);let s;const a=new U;for(a.reseedSync(r);!(s=V(a.generateSync(),i,o));)a.reseedSync();return J(s,n)}g.BASE._setWindowSize(8);const tt={node:r||(r=n.t(i,2)),web:"object"===typeof self&&"crypto"in self?self.crypto:void 0},et={},nt={bytesToHex:k,hexToBytes:T,concatBytes:w,mod:O,invert:B,isValidPrivateKey(t){try{return K(t),!0}catch(e){return!1}},_bigintTo32Bytes:I,_normalizePrivateKey:K,hashToPrivateKey:t=>{if((t=C(t)).length<40||t.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");return I(O(P(t),l.n-s)+s)},randomBytes:(t=32)=>{if(tt.web)return tt.web.getRandomValues(new Uint8Array(t));if(tt.node){const{randomBytes:e}=tt.node;return Uint8Array.from(e(t))}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>nt.hashToPrivateKey(nt.randomBytes(40)),sha256:async(...t)=>{if(tt.web){const e=await tt.web.subtle.digest("SHA-256",w(...t));return new Uint8Array(e)}if(tt.node){const{createHash:e}=tt.node,n=e("sha256");return t.forEach((t=>n.update(t))),Uint8Array.from(n.digest())}throw new Error("The environment doesn't have sha256 function")},hmacSha256:async(t,...e)=>{if(tt.web){const n=await tt.web.subtle.importKey("raw",t,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),r=w(...e),i=await tt.web.subtle.sign("HMAC",n,r);return new Uint8Array(i)}if(tt.node){const{createHmac:n}=tt.node,r=n("sha256",t);return e.forEach((t=>r.update(t))),Uint8Array.from(r.digest())}throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async(t,...e)=>{let n=et[t];if(void 0===n){const e=await nt.sha256(Uint8Array.from(t,(t=>t.charCodeAt(0))));n=w(e,e),et[t]=n}return nt.sha256(n,...e)},taggedHashSync:(t,...e)=>{if("function"!==typeof z)throw new f("sha256Sync is undefined, you need to set it");let n=et[t];if(void 0===n){const e=z(Uint8Array.from(t,(t=>t.charCodeAt(0))));n=w(e,e),et[t]=n}return z(n,...e)},precompute(t=8,e=g.BASE){const n=e===g.BASE?e:new g(e.x,e.y);return n._setWindowSize(t),n.multiply(c),n}};Object.defineProperties(nt,{sha256Sync:{configurable:!1,get:()=>z,set(t){z||(z=t)}},hmacSha256Sync:{configurable:!1,get:()=>F,set(t){F||(F=t)}}})},69607:function(t,e,n){"use strict";n.d(e,{H:function(){return c},i1:function(){return r},mI:function(){return s},su:function(){return a}});var r,i=n(26729),o=n(35615);!function(t){t.Installed="Installed",t.NotDetected="NotDetected",t.Loadable="Loadable",t.Unsupported="Unsupported"}(r||(r={}));class s extends i{get connected(){return!!this.publicKey}async autoConnect(){await this.connect()}async prepareTransaction(t,e,n={}){const r=this.publicKey;if(!r)throw new o.oS;return t.feePayer=t.feePayer||r,t.recentBlockhash=t.recentBlockhash||(await e.getLatestBlockhash({commitment:n.preflightCommitment,minContextSlot:n.minContextSlot})).blockhash,t}}function a(t){if("undefined"===typeof window||"undefined"===typeof document)return;const e=[];function n(){if(t())for(const t of e)t()}const r=setInterval(n,1e3);e.push((()=>clearInterval(r))),"loading"===document.readyState&&(document.addEventListener("DOMContentLoaded",n,{once:!0}),e.push((()=>document.removeEventListener("DOMContentLoaded",n)))),"complete"!==document.readyState&&(window.addEventListener("load",n,{once:!0}),e.push((()=>window.removeEventListener("load",n)))),n()}function c(){if(!navigator)return!1;const t=navigator.userAgent.toLowerCase(),e=t.includes("iphone")||t.includes("ipad"),n=t.includes("safari");return e&&n}},35615:function(t,e,n){"use strict";n.d(e,{$w:function(){return a},IW:function(){return f},Nx:function(){return h},OZ:function(){return i},PY:function(){return p},UG:function(){return u},W8:function(){return o},at:function(){return c},bD:function(){return g},cO:function(){return l},fk:function(){return m},hd:function(){return y},lj:function(){return r},oS:function(){return d},p6:function(){return s}});
1class r extends Error{constructor(t,e){super(t),this.error=e}}class i extends r{constructor(){super(...arguments),this.name="WalletNotReadyError"}}class o extends r{constructor(){super(...arguments),this.name="WalletLoadError"}}class s extends r{constructor(){super(...arguments),this.name="WalletConfigError"}}class a extends r{constructor(){super(...arguments),this.name="WalletConnectionError"}}class c extends r{constructor(){super(...arguments),this.name="WalletDisconnectedError"}}class u extends r{constructor(){super(...arguments),this.name="WalletDisconnectionError"}}class l extends r{constructor(){super(...arguments),this.name="WalletAccountError"}}class h extends r{constructor(){super(...arguments),this.name="WalletPublicKeyError"}}class d extends r{constructor(){super(...arguments),this.name="WalletNotConnectedError"}}class f extends r{constructor(){super(...arguments),this.name="WalletSendTransactionError"}}class p extends r{constructor(){super(...arguments),this.name="WalletSignTransactionError"}}class m extends r{constructor(){super(...arguments),this.name="WalletSignMessageError"}}class g extends r{constructor(){super(...arguments),this.name="WalletSignInError"}}class y extends r{constructor(){super(...arguments),this.name="WalletWindowClosedError"}}},98800:function(t,e,n){"use strict";n.d(e,{eC:function(){return a},qz:function(){return c},sz:function(){return s}});var r=n(69607),i=n(35615),o=n(63753);class s extends r.mI{async sendTransaction(t,e,n={}){let r=!0;try{if((0,o.W)(t)){if(!this.supportedTransactionVersions)throw new i.IW("Sending versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(t.version))throw new i.IW(`Sending transaction version ${t.version} isn't supported by this wallet`);try{const r=(t=await this.signTransaction(t)).serialize();return await e.sendRawTransaction(r,n)}catch(s){if(s instanceof i.PY)throw r=!1,s;throw new i.IW(s?.message,s)}}else try{const{signers:r,...i}=n;t=await this.prepareTransaction(t,e,i),r?.length&&t.partialSign(...r);const o=(t=await this.signTransaction(t)).serialize();return await e.sendRawTransaction(o,i)}catch(s){if(s instanceof i.PY)throw r=!1,s;throw new i.IW(s?.message,s)}}catch(s){throw r&&this.emit("error",s),s}}async signAllTransactions(t){for(const n of t)if((0,o.W)(n)){if(!this.supportedTransactionVersions)throw new i.PY("Signing versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(n.version))throw new i.PY(`Signing transaction version ${n.version} isn't supported by this wallet`)}const e=[];for(const n of t)e.push(await this.signTransaction(n));return e}}class a extends s{}class c extends a{}},63753:function(t,e,n){"use strict";function r(t){return"version"in t}n.d(e,{W:function(){return r}})},44718:function(t,e,n){"use strict";n.d(e,{R:function(){return o},h:function(){return i}});var r=n(67294);const i=(0,r.createContext)({});function o(){return(0,r.useContext)(i)}},53740:function(t,e,n){"use strict";n.d(e,{BR:function(){return i},aI:function(){return r},gv:function(){return o},l1:function(){return s}});const r="solana:mainnet",i="solana:devnet",o="solana:testnet",s="solana:localnet"},83149:function(t,e,n){"use strict";n.d(e,{G:function(){return r}});const r="solana:signAndSendTransaction"},61999:function(t,e,n){"use strict";n.d(e,{g:function(){return r}});const r="solana:signMessage"},38112:function(t,e,n){"use strict";n.d(e,{R:function(){return r}});const r="solana:signTransaction"},20943:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,{Z:function(){return r}})},47568:function(t,e,n){"use strict";function r(t,e,n,r,i,o,s){try{var a=t[o](s),c=a.value}catch(u){return void n(u)}a.done?e(c):Promise.resolve(c).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var s=t.apply(e,n);function a(t){r(s,i,o,a,c,"next",t)}function c(t){r(s,i,o,a,c,"throw",t)}a(void 0)}))}}n.d(e,{Z:function(){return i}})},14924:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:function(){return r}})},13375:function(t,e,n){"use strict";function r(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}n.d(e,{Z:function(){return r}})},26042:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(14924);function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}
vendor: 9,283 bytes, line 1
1)))),i.forEach((function(e){(0,r.Z)(t,e,n[e])}))}return t}},69396:function(t,e,n){"use strict";function r(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}n.d(e,{Z:function(){return r}})},828:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(13375);var i=n(91566);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||(0,r.Z)(t,e)||(0,i.Z)(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},91566:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(20943);function i(t,e){if(t){if("string"===typeof t)return(0,r.Z)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(t,e):void 0}}},97745:function(t,e,n){"use strict";n.d(e,{V:function(){return r}});const r="standard:connect"},10535:function(t,e,n){"use strict";n.d(e,{R:function(){return r}});const r="standard:disconnect"},50681:function(t,e,n){"use strict";n.d(e,{k:function(){return r}});const r="standard:events"},27885:function(t,e,n){"use strict";n.d(e,{rr:function(){return cn}});function r(t){let e=t.length;for(;--e>=0;)t[e]=0}const i=256,o=286,s=30,a=15,c=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),u=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),l=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),h=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),d=new Array(576);r(d);const f=new Array(60);r(f);const p=new Array(512);r(p);const m=new Array(256);r(m);const g=new Array(29);r(g);const y=new Array(s);function b(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}let v,w,_;function k(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}r(y);const S=t=>t<256?p[t]:p[256+(t>>>7)],x=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},I=(t,e,n)=>{t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,x(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)},A=(t,e,n)=>{I(t,n[2*e],n[2*e+1])},E=(t,e)=>{let n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1},T=(t,e,n)=>{const r=new Array(16);let i,o,s=0;for(i=1;i<=a;i++)r[i]=s=s+n[i-1]<<1;for(o=0;o<=e;o++){let e=t[2*o+1];0!==e&&(t[2*o]=E(r[e]++,e))}},P=t=>{let e;for(e=0;e<o;e++)t.dyn_ltree[2*e]=0;for(e=0;e<s;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},C=t=>{t.bi_valid>8?x(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},M=(t,e,n,r)=>{const i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]},O=(t,e,n)=>{const r=t.heap[n];let i=n<<1;for(;i<=t.heap_len&&(i<t.heap_len&&M(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!M(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r},R=(t,e,n)=>{let r,o,s,a,l=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*l]<<8|t.pending_buf[t.d_buf+2*l+1],o=t.pending_buf[t.l_buf+l],l++,0===r?A(t,o,e):(s=m[o],A(t,s+i+1,e),a=c[s],0!==a&&(o-=g[s],I(t,o,a)),r--,s=S(r),A(t,s,n),a=u[s],0!==a&&(r-=y[s],I(t,r,a)))}while(l<t.last_lit);A(t,256,e)},B=(t,e)=>{const n=e.dyn_tree,r=e.stat_desc.static_tree,i=e.stat_desc.has_stree,o=e.stat_desc.elems;let s,c,u,l=-1;for(t.heap_len=0,t.heap_max=573,s=0;s<o;s++)0!==n[2*s]?(t.heap[++t.heap_len]=l=s,t.depth[s]=0):n[2*s+1]=0;for(;t.heap_len<2;)u=t.heap[++t.heap_len]=l<2?++l:0,n[2*u]=1,t.depth[u]=0,t.opt_len--,i&&(t.static_len-=r[2*u+1]);for(e.max_code=l,s=t.heap_len>>1;s>=1;s--)O(t,n,s);u=o;do{s=t.heap[1],t.heap[1]=t.heap[t.heap_len--],O(t,n,1),c=t.heap[1],t.heap[--t.heap_max]=s,t.heap[--t.heap_max]=c,n[2*u]=n[2*s]+n[2*c],t.depth[u]=(t.depth[s]>=t.depth[c]?t.depth[s]:t.depth[c])+1,n[2*s+1]=n[2*c+1]=u,t.heap[1]=u++,O(t,n,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const n=e.dyn_tree,r=e.max_code,i=e.stat_desc.static_tree,o=e.stat_desc.has_stree,s=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,u=e.stat_desc.max_length;let l,h,d,f,p,m,g=0;for(f=0;f<=a;f++)t.bl_count[f]=0;for(n[2*t.heap[t.heap_max]+1]=0,l=t.heap_max+1;l<573;l++)h=t.heap[l],f=n[2*n[2*h+1]+1]+1,f>u&&(f=u,g++),n[2*h+1]=f,h>r||(t.bl_count[f]++,p=0,h>=c&&(p=s[h-c]),m=n[2*h],t.opt_len+=m*(f+p),o&&(t.static_len+=m*(i[2*h+1]+p)));if(0!==g){do{for(f=u-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[u]--,g-=2}while(g>0);for(f=u;0!==f;f--)for(h=t.bl_count[f];0!==h;)d=t.heap[--l],d>r||(n[2*d+1]!==f&&(t.opt_len+=(f-n[2*d+1])*n[2*d],n[2*d+1]=f),h--)}})(t,e),T(n,l,t.bl_count)},j=(t,e,n)=>{let r,i,o=-1,s=e[1],a=0,c=7,u=4;for(0===s&&(c=138,u=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=s,s=e[2*(r+1)+1],++a<c&&i===s||(a<u?t.bl_tree[2*i]+=a:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):a<=10?t.bl_tree[34]++:t.bl_tree[36]++,a=0,o=i,0===s?(c=138,u=3):i===s?(c=6,u=3):(c=7,u=4))},N=(t,e,n)=>{let r,i,o=-1,s=e[1],a=0,c=7,u=4;for(0===s&&(c=138,u=3),r=0;r<=n;r++)if(i=s,s=e[2*(r+1)+1],!(++a<c&&i===s)){if(a<u)do{A(t,i,t.bl_tree)}while(0!==--a);else 0!==i?(i!==o&&(A(t,i,t.bl_tree),a--),A(t,16,t.bl_tree),I(t,a-3,2)):a<=10?(A(t,17,t.bl_tree),I(t,a-3,3)):(A(t,18,t.bl_tree),I(t,a-11,7));a=0,o=i,0===s?(c=138,u=3):i===s?(c=6,u=3):(c=7,u=4)}};let L=!1;const D=(t,e,n,r)=>{I(t,0+(r?1:0),3),((t,e,n,r)=>{C(t),r&&(x(t,n),x(t,~n)),t.pending_buf.set(t.window.subarray(e,e+n),t.pending),t.pending+=n})(t,e,n,!0)};var z=(t,e,n,r)=>{let o,s,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<i;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),B(t,t.l_desc),B(t,t.d_desc),a=(t=>{let e;for(j(t,t.dyn_ltree,t.l_desc.max_code),j(t,t.dyn_dtree,t.d_desc.max_code),B(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*h[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,s=t.static_len+3+7>>>3,s<=o&&(o=s)):o=s=n+5,n+4<=o&&-1!==e?D(t,e,n,r):4===t.strategy||s===o?(I(t,2+(r?1:0),3),R(t,d,f)):(I(t,4+(r?1:0),3),((t,e,n,r)=>{let i;for(I(t,e-257,5),I(t,n-1,5),I(t,r-4,4),i=0;i<r;i++)I(t,t.bl_tree[2*h[i]+1],3);N(t,t.dyn_ltree,e-1),N(t,t.dyn_dtree,n-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),R(t,t.dyn_ltree,t.dyn_dtree)),P(t),r&&C(t)},F={_tr_init:t=>{L||((()=>{let t,e,n,r,i;const h=new Array(16);for(n=0,r=0;r<28;r++)for(g[r]=n,t=0;t<1<<c[r];t++)m[n++]=r;for(m[n-1]=r,i=0,r=0;r<16;r++)for(y[r]=i,t=0;t<1<<u[r];t++)p[i++]=r;for(i>>=7;r<s;r++)for(y[r]=i<<7,t=0;t<1<<u[r]-7;t++)p[256+i++]=r;for(e=0;e<=a;e++)h[e]=0;for(t=0;t<=143;)d[2*t+1]=8,t++,h[8]++;for(;t<=255;)d[2*t+1]=9,t++,h[9]++;for(;t<=279;)d[2*t+1]=7,t++,h[7]++;for(;t<=287;)d[2*t+1]=8,t++,h[8]++;for(T(d,287,h),t=0;t<s;t++)f[2*t+1]=5,f[2*t]=E(t,5);v=new b(d,c,257,o,a),w=new b(f,u,0,s,a),_=new b(new Array(0),l,0,19,7)})(),L=!0),t.l_desc=new k(t.dyn_ltree,v),t.d_desc=new k(t.dyn_dtree,w),t.bl_desc=new k(t.bl_tree,_),t.bi_buf=0,t.bi_valid=0,P(t)},_tr_stored_block:D,_tr_flush_block:z,_tr_tally:(t,e,n)=>(t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(m[n]+i+1)]++,t.dyn_dtree[2*S(e)]++),t.last_lit===t.lit_bufsize-1),_tr_align:t=>{I(t,2,3),A(t,256,d),(t=>{16===t.bi_valid?(x(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var U=(t,e,n,r)=>{let i=65535&t|0,o=t>>>16&65535|0,s=0;for(;0!==n;){s=n>2e3?2e3:n,n-=s;do{i=i+e[r++]|0,o=o+i|0}while(--s);i%=65521,o%=65521}return i|o<<16|0};const W=new Uint32Array((()=>{let t,e=[];for(var n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e})());var G=(t,e,n,r)=>{const i=W,o=r+n;t^=-1;for(let s=r;s<o;s++)t=t>>>8^i[255&(t^e[s])];return-1^t},V={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:H,_tr_stored_block:q,_tr_flush_block:$,_tr_tally:Z,_tr_align:Y}=F,{Z_NO_FLUSH:X,Z_PARTIAL_FLUSH:J,Z_FULL_FLUSH:Q,Z_FINISH:tt,Z_BLOCK:et,Z_OK:nt,Z_STREAM_END:rt,Z_STREAM_ERROR:it,Z_DATA_ERROR:ot,Z_BUF_ER
vendor: 14,145 bytes, line 1
1ROR:st,Z_DEFAULT_COMPRESSION:at,Z_FILTERED:ct,Z_HUFFMAN_ONLY:ut,Z_RLE:lt,Z_FIXED:ht,Z_DEFAULT_STRATEGY:dt,Z_UNKNOWN:ft,Z_DEFLATED:pt}=K,mt=258,gt=262,yt=103,bt=113,vt=666,wt=(t,e)=>(t.msg=V[e],e),_t=t=>(t<<1)-(t>4?9:0),kt=t=>{let e=t.length;for(;--e>=0;)t[e]=0};let St=(t,e,n)=>(e<<t.hash_shift^n)&t.hash_mask;const xt=t=>{const e=t.state;let n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+n),t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))},It=(t,e)=>{$(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,xt(t.strm)},At=(t,e)=>{t.pending_buf[t.pending++]=e},Et=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Tt=(t,e,n,r)=>{let i=t.avail_in;return i>r&&(i=r),0===i?0:(t.avail_in-=i,e.set(t.input.subarray(t.next_in,t.next_in+i),n),1===t.state.wrap?t.adler=U(t.adler,e,i,n):2===t.state.wrap&&(t.adler=G(t.adler,e,i,n)),t.next_in+=i,t.total_in+=i,i)},Pt=(t,e)=>{let n,r,i=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match;const c=t.strstart>t.w_size-gt?t.strstart-(t.w_size-gt):0,u=t.window,l=t.w_mask,h=t.prev,d=t.strstart+mt;let f=u[o+s-1],p=u[o+s];t.prev_length>=t.good_match&&(i>>=2),a>t.lookahead&&(a=t.lookahead);do{if(n=e,u[n+s]===p&&u[n+s-1]===f&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<d);if(r=mt-(d-o),o=d-mt,r>s){if(t.match_start=e,s=r,r>=a)break;f=u[o+s-1],p=u[o+s]}}}while((e=h[e&l])>c&&0!==--i);return s<=t.lookahead?s:t.lookahead},Ct=t=>{const e=t.w_size;let n,r,i,o,s;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-gt)){t.window.set(t.window.subarray(e,e+e),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,r=t.hash_size,n=r;do{i=t.head[--n],t.head[n]=i>=e?i-e:0}while(--r);r=e,n=r;do{i=t.prev[--n],t.prev[n]=i>=e?i-e:0}while(--r);o+=e}if(0===t.strm.avail_in)break;if(r=Tt(t.strm,t.window,t.strstart+t.lookahead,o),t.lookahead+=r,t.lookahead+t.insert>=3)for(s=t.strstart-t.insert,t.ins_h=t.window[s],t.ins_h=St(t,t.ins_h,t.window[s+1]);t.insert&&(t.ins_h=St(t,t.ins_h,t.window[s+3-1]),t.prev[s&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=s,s++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<gt&&0!==t.strm.avail_in)},Mt=(t,e)=>{let n,r;for(;;){if(t.lookahead<gt){if(Ct(t),t.lookahead<gt&&e===X)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=St(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-gt&&(t.match_length=Pt(t,n)),t.match_length>=3)if(r=Z(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=St(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=St(t,t.ins_h,t.window[t.strstart+1]);else r=Z(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(It(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===tt?(It(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(It(t,!1),0===t.strm.avail_out)?1:2},Ot=(t,e)=>{let n,r,i;for(;;){if(t.lookahead<gt){if(Ct(t),t.lookahead<gt&&e===X)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=St(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-gt&&(t.match_length=Pt(t,n),t.match_length<=5&&(t.strategy===ct||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,r=Z(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=St(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(It(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(r=Z(t,0,t.window[t.strstart-1]),r&&It(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=Z(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===tt?(It(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(It(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}const Bt=[new Rt(0,0,0,0,((t,e)=>{let n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Ct(t),0===t.lookahead&&e===X)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;const r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,It(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-gt&&(It(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(It(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(It(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Mt),new Rt(4,5,16,8,Mt),new Rt(4,6,32,32,Mt),new Rt(4,4,16,16,Ot),new Rt(8,16,32,32,Ot),new Rt(8,16,128,128,Ot),new Rt(8,32,128,256,Ot),new Rt(32,128,258,1024,Ot),new Rt(32,258,258,4096,Ot)];function jt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=pt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),kt(this.dyn_ltree),kt(this.dyn_dtree),kt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),kt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),kt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Nt=t=>{if(!t||!t.state)return wt(t,it);t.total_in=t.total_out=0,t.data_type=ft;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:bt,t.adler=2===e.wrap?0:1,e.last_flush=X,H(e),nt},Lt=t=>{const e=Nt(t);return e===nt&&(t=>{t.window_size=2*t.w_size,kt(t.head),t.max_lazy_match=Bt[t.level].max_lazy,t.good_match=Bt[t.level].good_length,t.nice_match=Bt[t.level].nice_length,t.max_chain_length=Bt[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0})(t.state),e},Dt=(t,e,n,r,i,o)=>{if(!t)return it;let s=1;if(e===at&&(e=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),i<1||i>9||n!==pt||r<8||r>15||e<0||e>9||o<0||o>ht)return wt(t,it);8===r&&(r=9);const a=new jt;return t.state=a,a.strm=t,a.wrap=s,a.gzhead=null,a.w_bits=r,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=i+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+3-1)/3),a.window=new Uint8Array(2*a.w_size),a.head=new Uint16Array(a.hash_size),a.prev=new Uint16Array(a.w_size),a.lit_bufsize=1<<i+6,a.pending_buf_size=4*a.lit_bufsize,a.pending_buf=new Uint8Array(a.pending_buf_size),a.d_buf=1*a.lit_bufsize,a.l_buf=3*a.lit_bufsize,a.level=e,a.strategy=o,a.method=n,Lt(t)};var zt={deflateInit:(t,e)=>Dt(t,e,pt,15,8,dt),deflateInit2:Dt,deflateReset:Lt,deflateResetKeep:Nt,deflateSetHeader:(t,e)=>t&&t.state?2!==t.state.wrap?it:(t.state.gzhead=e,nt):it,deflate:(t,e)=>{let n,r;if(!t||!t.state||e>et||e<0)return t?wt(t,it):it;const i=t.state;if(!t.output||!t.input&&0!==t.avail_in||i.status===vt&&e!==tt)return wt(t,0===t.avail_out?st:it);i.strm=t;const o=i.last_flush;if(i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,At(i,31),At(i,139),At(i,8),i.gzhead?(At(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),At(i,255&i.gzhead.time),At(i,i.gzhead.time>>8&255),At(i,i.gzhead.time>>16&255),At(i,i.gzhead.time>>24&255),At(i,9===i.level?2:i.strategy>=ut||i.level<2?4:0),At(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(At(i,255&i.gzhead.extra.length),At(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=G(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(At(i,0),At(i,0),At(i,0),At(i,0),At(i,0),At(i,9===i.level?2:i.strategy>=ut||i.level<2?4:0),At(i,3),i.status=bt);else{let e=pt+(i.w_bits-8<<4)<<8,n=-1;n=i.strategy>=ut||i.level<2?0:i.level<6?1:6===i.level?2:3,e|=n<<6,0!==i.strstart&&(e|=32),e+=31-e%31,i.status=bt,Et(i,e),0!==i.strstart&&(Et(i,t.adler>>>16),Et(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>n&&(t.adler=G(t.adler,i.pending_buf,i.pending-n,n)),xt(t),n=i.pending,i.pending!==i.pending_buf_size));)At(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(t.adler=G(t.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(t.adler=G(t.adler,i.pending_buf,i.pending-n,n)),xt(t),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}r=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,At(i,r)}while(0!==r);i.gzhead.hcrc&&i.pending>n&&(t.adler=G(t.adler,i.pending_buf,i.pending-n,n)),0===r&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(t.adler=G(t.adler,i.pending_buf,i.pending-n,n)),xt(t),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}r=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,At(i,r)}while(0!==r);i.gzhead.hcrc&&i.pending>n&&(t.adler=G(t.adler,i.pending_buf,i.pending-n,n)),0===r&&(i.status=yt)}else i.status=yt;if(i.status===yt&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&xt(t),i.pending+2<=i.pending_buf_size&&(At(i,255&t.adler),At(i,t.adler>>8&255),t.adler=0,i.status=bt)):i.status=bt),0!==i.pending){if(xt(t),0===t.avail_out)return i.last_flush=-1,nt}else if(0===t.avail_in&&_t(e)<=_t(o)&&e!==tt)return wt(t,st);if(i.status===vt&&0!==t.avail_in)return wt(t,st);if(0!==t.avail_in||0!==i.lookahead||e!==X&&i.status!==vt){let n=i.strategy===ut?((t,e)=>{let n;for(;;){if(0===t.lookahead&&(Ct(t),0===t.lookahead)){if(e===X)return 1;break}if(t.match_length=0,n=Z(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(It(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(It(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(It(t,!1),0===t.strm.avail_out)?1:2})(i,e):i.strategy===lt?((t,e)=>{let n,r,i,o;const s=t.window;for(;;){if(t.lookahead<=mt){if(Ct(t),t.lookahead<=mt&&e===X)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(i=t.strstart-1,r=s[i],r===s[++i]&&r===s[++i]&&r===s[++i])){o=t.strstart+mt;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);t.match_length=mt-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=Z(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=Z(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(It(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(It(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(It(t,!1),0===t.strm.avail_out)?1:2})(i,e):Bt[i.level].func(i,e);if(3!==n&&4!==n||(i.status=vt),1===n||3===n)return 0===t.avail_out&&(i.last_flush=-1),nt;if(2===n&&(e===J?Y(i):e!==et&&(q(i,0,0,!1),e===Q&&(kt(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),xt(t),0===t.avail_out))return i.last_flush=-1,nt}return e!==tt?nt:i.wrap<=0?rt:(2===i.wrap?(At(i,255&t.adler),At(i,t.adler>>8&255),At(i,t.adler>>16&255),At(i,t.adler>>24&255),At(i,255&t.total_in),At(i,t.total_in>>8&255),At(i,t.total_in>>16&255),At(i,t.total_in>>24&255)):(Et(i,t.adler>>>16),Et(i,65535&t.adler)),xt(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?nt:rt)},deflateEnd:t=>{if(!t||!t.state)return it;const e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==yt&&e!==bt&&e!==vt?wt(t,it):(t.state=null,e===bt?wt(t,ot):nt)},deflateSetDictionary:(t,e)=>{let n=e.length;if(!t||!t.state)return it;const r=t.state,i=r.wrap;if(2===i||1===i&&42!==r.status||r.lookahead)return it;if(1===i&&(t.adler=U(t.adler,e,n,0)),r.wrap=0,n>=r.w_size){0===i&&(kt(r.head),r.strstart=0,r.block_start=0,r.insert=0);let t=new Uint8Array(r.w_size);t.set(e.subarray(n-r.w_size,n),0),e=t,n=r.w_size}const o=t.avail_in,s=t.next_in,a=t.input;for(t.avail_in=n,t.next_in=0,t.input=e,Ct(r);r.lookahead>=3;){let t=r.strstart,e=r.lookahead-2;do{r.ins_h=St(r,r.ins_h,r.window[t+3-1]),r.prev[t&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=t,t++}while(--e);r.strstart=t,r.lookahead=2,Ct(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=s,t.input=a,t.avail_in=o,r.wrap=i,nt},deflateInfo:"pako deflate (from Nodeca project)"};const Ft=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Ut=function(t){const e=Array.prototype.slice.call(arguments,1
vendor: 6,210 bytes, line 1
1);for(;e.length;){const n=e.shift();if(n){if("object"!==typeof n)throw new TypeError(n+"must be non-object");for(const e in n)Ft(n,e)&&(t[e]=n[e])}}return t},Wt=t=>{let e=0;for(let r=0,i=t.length;r<i;r++)e+=t[r].length;const n=new Uint8Array(e);for(let r=0,i=0,o=t.length;r<o;r++){let e=t[r];n.set(e,i),i+=e.length}return n};let Gt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(un){Gt=!1}const Vt=new Uint8Array(256);for(let ln=0;ln<256;ln++)Vt[ln]=ln>=252?6:ln>=248?5:ln>=240?4:ln>=224?3:ln>=192?2:1;Vt[254]=Vt[254]=1;var Kt=t=>{if("function"===typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,n,r,i,o,s=t.length,a=0;for(i=0;i<s;i++)n=t.charCodeAt(i),55296===(64512&n)&&i+1<s&&(r=t.charCodeAt(i+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),a+=n<128?1:n<2048?2:n<65536?3:4;for(e=new Uint8Array(a),o=0,i=0;o<a;i++)n=t.charCodeAt(i),55296===(64512&n)&&i+1<s&&(r=t.charCodeAt(i+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?e[o++]=n:n<2048?(e[o++]=192|n>>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e},Ht=(t,e)=>{const n=e||t.length;if("function"===typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let r,i;const o=new Array(2*n);for(i=0,r=0;r<n;){let e=t[r++];if(e<128){o[i++]=e;continue}let s=Vt[e];if(s>4)o[i++]=65533,r+=s-1;else{for(e&=2===s?31:3===s?15:7;s>1&&r<n;)e=e<<6|63&t[r++],s--;s>1?o[i++]=65533:e<65536?o[i++]=e:(e-=65536,o[i++]=55296|e>>10&1023,o[i++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Gt)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let n="";for(let r=0;r<e;r++)n+=String.fromCharCode(t[r]);return n})(o,i)},qt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let n=e-1;for(;n>=0&&128===(192&t[n]);)n--;return n<0||0===n?e:n+Vt[t[n]]>e?n:e};var $t=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Zt=Object.prototype.toString,{Z_NO_FLUSH:Yt,Z_SYNC_FLUSH:Xt,Z_FULL_FLUSH:Jt,Z_FINISH:Qt,Z_OK:te,Z_STREAM_END:ee,Z_DEFAULT_COMPRESSION:ne,Z_DEFAULT_STRATEGY:re,Z_DEFLATED:ie}=K;function oe(t){this.options=Ut({level:ne,method:ie,chunkSize:16384,windowBits:15,memLevel:8,strategy:re},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $t,this.strm.avail_out=0;let n=zt.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==te)throw new Error(V[n]);if(e.header&&zt.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"===typeof e.dictionary?Kt(e.dictionary):"[object ArrayBuffer]"===Zt.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,n=zt.deflateSetDictionary(this.strm,t),n!==te)throw new Error(V[n]);this._dict_set=!0}}function se(t,e){const n=new oe(e);if(n.push(t,!0),n.err)throw n.msg||V[n.err];return n.result}oe.prototype.push=function(t,e){const n=this.strm,r=this.options.chunkSize;let i,o;if(this.ended)return!1;for(o=e===~~e?e:!0===e?Qt:Yt,"string"===typeof t?n.input=Kt(t):"[object ArrayBuffer]"===Zt.call(t)?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(o===Xt||o===Jt)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(i=zt.deflate(n,o),i===ee)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=zt.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===te;if(0!==n.avail_out){if(o>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},oe.prototype.onData=function(t){this.chunks.push(t)},oe.prototype.onEnd=function(t){t===te&&(this.result=Wt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ae={Deflate:oe,deflate:se,deflateRaw:function(t,e){return(e=e||{}).raw=!0,se(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,se(t,e)},constants:K};var ce=function(t,e){let n,r,i,o,s,a,c,u,l,h,d,f,p,m,g,y,b,v,w,_,k,S,x,I;const A=t.state;n=t.next_in,x=t.input,r=n+(t.avail_in-5),i=t.next_out,I=t.output,o=i-(e-t.avail_out),s=i+(t.avail_out-257),a=A.dmax,c=A.wsize,u=A.whave,l=A.wnext,h=A.window,d=A.hold,f=A.bits,p=A.lencode,m=A.distcode,g=(1<<A.lenbits)-1,y=(1<<A.distbits)-1;t:do{f<15&&(d+=x[n++]<<f,f+=8,d+=x[n++]<<f,f+=8),b=p[d&g];e:for(;;){if(v=b>>>24,d>>>=v,f-=v,v=b>>>16&255,0===v)I[i++]=65535&b;else{if(!(16&v)){if(0===(64&v)){b=p[(65535&b)+(d&(1<<v)-1)];continue e}if(32&v){A.mode=12;break t}t.msg="invalid literal/length code",A.mode=30;break t}w=65535&b,v&=15,v&&(f<v&&(d+=x[n++]<<f,f+=8),w+=d&(1<<v)-1,d>>>=v,f-=v),f<15&&(d+=x[n++]<<f,f+=8,d+=x[n++]<<f,f+=8),b=m[d&y];n:for(;;){if(v=b>>>24,d>>>=v,f-=v,v=b>>>16&255,!(16&v)){if(0===(64&v)){b=m[(65535&b)+(d&(1<<v)-1)];continue n}t.msg="invalid distance code",A.mode=30;break t}if(_=65535&b,v&=15,f<v&&(d+=x[n++]<<f,f+=8,f<v&&(d+=x[n++]<<f,f+=8)),_+=d&(1<<v)-1,_>a){t.msg="invalid distance too far back",A.mode=30;break t}if(d>>>=v,f-=v,v=i-o,_>v){if(v=_-v,v>u&&A.sane){t.msg="invalid distance too far back",A.mode=30;break t}if(k=0,S=h,0===l){if(k+=c-v,v<w){w-=v;do{I[i++]=h[k++]}while(--v);k=i-_,S=I}}else if(l<v){if(k+=c+l-v,v-=l,v<w){w-=v;do{I[i++]=h[k++]}while(--v);if(k=0,l<w){v=l,w-=v;do{I[i++]=h[k++]}while(--v);k=i-_,S=I}}}else if(k+=l-v,v<w){w-=v;do{I[i++]=h[k++]}while(--v);k=i-_,S=I}for(;w>2;)I[i++]=S[k++],I[i++]=S[k++],I[i++]=S[k++],w-=3;w&&(I[i++]=S[k++],w>1&&(I[i++]=S[k++]))}else{k=i-_;do{I[i++]=I[k++],I[i++]=I[k++],I[i++]=I[k++],w-=3}while(w>2);w&&(I[i++]=I[k++],w>1&&(I[i++]=I[k++]))}break}}break}}while(n<r&&i<s);w=f>>3,n-=w,f-=w<<3,d&=(1<<f)-1,t.next_in=n,t.next_out=i,t.avail_in=n<r?r-n+5:5-(n-r),t.avail_out=i<s?s-i+257:257-(i-s),A.hold=d,A.bits=f};const ue=15,le=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),he=new
vendor: 9,895 bytes, line 1
1Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),de=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),fe=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var pe=(t,e,n,r,i,o,s,a)=>{const c=a.bits;let u,l,h,d,f,p,m=0,g=0,y=0,b=0,v=0,w=0,_=0,k=0,S=0,x=0,I=null,A=0;const E=new Uint16Array(16),T=new Uint16Array(16);let P,C,M,O=null,R=0;for(m=0;m<=ue;m++)E[m]=0;for(g=0;g<r;g++)E[e[n+g]]++;for(v=c,b=ue;b>=1&&0===E[b];b--);if(v>b&&(v=b),0===b)return i[o++]=20971520,i[o++]=20971520,a.bits=1,0;for(y=1;y<b&&0===E[y];y++);for(v<y&&(v=y),k=1,m=1;m<=ue;m++)if(k<<=1,k-=E[m],k<0)return-1;if(k>0&&(0===t||1!==b))return-1;for(T[1]=0,m=1;m<ue;m++)T[m+1]=T[m]+E[m];for(g=0;g<r;g++)0!==e[n+g]&&(s[T[e[n+g]]++]=g);if(0===t?(I=O=s,p=19):1===t?(I=le,A-=257,O=he,R-=257,p=256):(I=de,O=fe,p=-1),x=0,g=0,m=y,f=o,w=v,_=0,h=-1,S=1<<v,d=S-1,1===t&&S>852||2===t&&S>592)return 1;for(;;){P=m-_,s[g]<p?(C=0,M=s[g]):s[g]>p?(C=O[R+s[g]],M=I[A+s[g]]):(C=96,M=0),u=1<<m-_,l=1<<w,y=l;do{l-=u,i[f+(x>>_)+l]=P<<24|C<<16|M|0}while(0!==l);for(u=1<<m-1;x&u;)u>>=1;if(0!==u?(x&=u-1,x+=u):x=0,g++,0===--E[m]){if(m===b)break;m=e[n+s[g]]}if(m>v&&(x&d)!==h){for(0===_&&(_=v),f+=y,w=m-_,k=1<<w;w+_<b&&(k-=E[w+_],!(k<=0));)w++,k<<=1;if(S+=1<<w,1===t&&S>852||2===t&&S>592)return 1;h=x&d,i[h]=v<<24|w<<16|f-o|0}}return 0!==x&&(i[f+x]=m-_<<24|64<<16|0),a.bits=v,0};const{Z_FINISH:me,Z_BLOCK:ge,Z_TREES:ye,Z_OK:be,Z_STREAM_END:ve,Z_NEED_DICT:we,Z_STREAM_ERROR:_e,Z_DATA_ERROR:ke,Z_MEM_ERROR:Se,Z_BUF_ERROR:xe,Z_DEFLATED:Ie}=K,Ae=12,Ee=30,Te=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function Pe(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ce=t=>{if(!t||!t.state)return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,be},Me=t=>{if(!t||!t.state)return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,Ce(t)},Oe=(t,e)=>{let n;if(!t||!t.state)return _e;const r=t.state;return e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,Me(t))},Re=(t,e)=>{if(!t)return _e;const n=new Pe;t.state=n,n.window=null;const r=Oe(t,e);return r!==be&&(t.state=null),r};let Be,je,Ne=!0;const Le=t=>{if(Ne){Be=new Int32Array(512),je=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(pe(1,t.lens,0,288,Be,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;pe(2,t.lens,0,32,je,0,t.work,{bits:5}),Ne=!1}t.lencode=Be,t.lenbits=9,t.distcode=je,t.distbits=5},De=(t,e,n,r)=>{let i;const o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),r>=o.wsize?(o.window.set(e.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>r&&(i=r),o.window.set(e.subarray(n-r,n-r+i),o.wnext),(r-=i)?(o.window.set(e.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0};var ze={inflateReset:Me,inflateReset2:Oe,inflateResetKeep:Ce,inflateInit:t=>Re(t,15),inflateInit2:Re,inflate:(t,e)=>{let n,r,i,o,s,a,c,u,l,h,d,f,p,m,g,y,b,v,w,_,k,S,x=0;const I=new Uint8Array(4);let A,E;const T=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return _e;n=t.state,n.mode===Ae&&(n.mode=13),s=t.next_out,i=t.output,c=t.avail_out,o=t.next_in,r=t.input,a=t.avail_in,u=n.hold,l=n.bits,h=a,d=c,S=be;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;l<16;){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}if(2&n.wrap&&35615===u){n.check=0,I[0]=255&u,I[1]=u>>>8&255,n.check=G(n.check,I,2,0),u=0,l=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){t.msg="incorrect header check",n.mode=Ee;break}if((15&u)!==Ie){t.msg="unknown compression method",n.mode=Ee;break}if(u>>>=4,l-=4,k=8+(15&u),0===n.wbits)n.wbits=k;else if(k>n.wbits){t.msg="invalid window size",n.mode=Ee;break}n.dmax=1<<n.wbits,t.adler=n.check=1,n.mode=512&u?10:Ae,u=0,l=0;break;case 2:for(;l<16;){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}if(n.flags=u,(255&n.flags)!==Ie){t.msg="unknown compression method",n.mode=Ee;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=Ee;break}n.head&&(n.head.text=u>>8&1),512&n.flags&&(I[0]=255&u,I[1]=u>>>8&255,n.check=G(n.check,I,2,0)),u=0,l=0,n.mode=3;case 3:for(;l<32;){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}n.head&&(n.head.time=u),512&n.flags&&(I[0]=255&u,I[1]=u>>>8&255,I[2]=u>>>16&255,I[3]=u>>>24&255,n.check=G(n.check,I,4,0)),u=0,l=0,n.mode=4;case 4:for(;l<16;){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}n.head&&(n.head.xflags=255&u,n.head.os=u>>8),512&n.flags&&(I[0]=255&u,I[1]=u>>>8&255,n.check=G(n.check,I,2,0)),u=0,l=0,n.mode=5;case 5:if(1024&n.flags){for(;l<16;){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}n.length=u,n.head&&(n.head.extra_len=u),512&n.flags&&(I[0]=255&u,I[1]=u>>>8&255,n.check=G(n.check,I,2,0)),u=0,l=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(f=n.length,f>a&&(f=a),f&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+f),k)),512&n.flags&&(n.check=G(n.check,r,f,o)),a-=f,o+=f,n.length-=f),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===a)break t;f=0;do{k=r[o+f++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k))}while(k&&f<a);if(512&n.flags&&(n.check=G(n.check,r,f,o)),a-=f,o+=f,k)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===a)break t;f=0;do{k=r[o+f++],n.head&&k&&n.length<65536&&(n.head.comment+=String.fromCharCode(k))}while(k&&f<a);if(512&n.flags&&(n.check=G(n.check,r,f,o)),a-=f,o+=f,k)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;l<16;){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}if(u!==(65535&n.check)){t.msg="header crc mismatch",n.mode=Ee;break}u=0,l=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=Ae;break;case 10:for(;l<32;){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}t.adler=n.check=Te(u),u=0,l=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=s,t.avail_out=c,t.next_in=o,t.avail_in=a,n.hold=u,n.bits=l,we;t.adler=n.check=1,n.mode=Ae;case Ae:if(e===ge||e===ye)break t;case 13:if(n.last){u>>>=7&l,l-=7&l,n.mode=27;break}for(;l<3;){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}switch(n.last=1&u,u>>>=1,l-=1,3&u){case 0:n.mode=14;break;case 1:if(Le(n),n.mode=20,e===ye){u>>>=2,l-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=Ee}u>>>=2,l-=2;break;case 14:for(u>>>=7&l,l-=7&l;l<32;){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}if((65535&u)!==(u>>>16^65535)){t.msg="invalid stored block lengths",n.mode=Ee;break}if(n.length=65535&u,u=0,l=0,n.mode=15,e===ye)break t;case 15:n.mode=16;case 16:if(f=n.length,f){if(f>a&&(f=a),f>c&&(f=c),0===f)break t;i.set(r.subarray(o,o+f),s),a-=f,o+=f,c-=f,s+=f,n.length-=f;break}n.mode=Ae;break;case 17:for(;l<14;){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}if(n.nlen=257+(31&u),u>>>=5,l-=5,n.ndist=1+(31&u),u>>>=5,l-=5,n.ncode=4+(15&u),u>>>=4,l-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=Ee;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;l<3;){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}n.lens[T[n.have++]]=7&u,u>>>=3,l-=3}for(;n.have<19;)n.lens[T[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,A={bits:n.lenbits},S=pe(0,n.lens,0,19,n.lencode,0,n.work,A),n.lenbits=A.bits,S){t.msg="invalid code lengths set",n.mode=Ee;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;x=n.lencode[u&(1<<n.lenbits)-1],g=x>>>24,y=x>>>16&255,b=65535&x,!(g<=l);){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}if(b<16)u>>>=g,l-=g,n.lens[n.have++]=b;else{if(16===b){for(E=g+2;l<E;){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}if(u>>>=g,l-=g,0===n.have){t.msg="invalid bit length repeat",n.mode=Ee;break}k=n.lens[n.have-1],f=3+(3&u),u>>>=2,l-=2}else if(17===b){for(E=g+3;l<E;){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}u>>>=g,l-=g,k=0,f=3+(7&u),u>>>=3,l-=3}else{for(E=g+7;l<E;){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}u>>>=g,l-=g,k=0,f=11+(127&u),u>>>=7,l-=7}if(n.have+f>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=Ee;break}for(;f--;)n.lens[n.have++]=k}}if(n.mode===Ee)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=Ee;break}if(n.lenbits=9,A={bits:n.lenbits},S=pe(1,n.lens,0,n.nlen,n.lencode,0,n.work,A),n.lenbits=A.bits,S){t.msg="invalid literal/lengths set",n.mode=Ee;break}if(n.distbits=6,n.distcode=n.distdyn,A={bits:n.distbits},S=pe(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,A),n.distbits=A.bits,S){t.msg="invalid distances set",n.mode=Ee;break}if(n.mode=20,e===ye)break t;case 20:n.mode=21;case 21:if(a>=6&&c>=258){t.next_out=s,t.avail_out=c,t.next_in=o,t.avail_in=a,n.hold=u,n.bits=l,ce(t,d),s=t.next_out,i=t.output,c=t.avail_out,o=t.next_in,r=t.input,a=t.avail_in,u=n.hold,l=n.bits,n.mode===Ae&&(n.back=-1);break}for(n.back=0;x=n.lencode[u&(1<<n.lenbits)-1],g=x>>>24,y=x>>>16&255,b=65535&x,!(g<=l);){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}
vendor: 1,530 bytes, line 1
1if(y&&0===(240&y)){for(v=g,w=y,_=b;x=n.lencode[_+((u&(1<<v+w)-1)>>v)],g=x>>>24,y=x>>>16&255,b=65535&x,!(v+g<=l);){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}u>>>=v,l-=v,n.back+=v}if(u>>>=g,l-=g,n.back+=g,n.length=b,0===y){n.mode=26;break}if(32&y){n.back=-1,n.mode=Ae;break}if(64&y){t.msg="invalid literal/length code",n.mode=Ee;break}n.extra=15&y,n.mode=22;case 22:if(n.extra){for(E=n.extra;l<E;){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,l-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;x=n.distcode[u&(1<<n.distbits)-1],g=x>>>24,y=x>>>16&255,b=65535&x,!(g<=l);){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}if(0===(240&y)){for(v=g,w=y,_=b;x=n.distcode[_+((u&(1<<v+w)-1)>>v)],g=x>>>24,y=x>>>16&255,b=65535&x,!(v+g<=l);){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}u>>>=v,l-=v,n.back+=v}if(u>>>=g,l-=g,n.back+=g,64&y){t.msg="invalid distance code",n.mode=Ee;break}n.offset=b,n.extra=15&y,n.mode=24;case 24:if(n.extra){for(E=n.extra;l<E;){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,l-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=Ee;break}n.mode=25;case 25:if(0===c)break t;if(f=d-c,n.offset>f){if(f=n.offset-f,f>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=Ee;break}f>n.wnext?(f-=n.wnext,p=n.wsize-f):p=n.wnext-f,f>n.length&&(f=n.length),m=n.window}else m=i,p=s-n.offset,f=n.length;f>c&&(f=c),c-=f,n.length-=f;do{i[s++]=m[p++]}while(--f);0===n.length&&(n.mode=21);break;case 26:if(0===c)break t;
vendor: 9,127 bytes, line 1
1i[s++]=n.length,c--,n.mode=21;break;case 27:if(n.wrap){for(;l<32;){if(0===a)break t;a--,u|=r[o++]<<l,l+=8}if(d-=c,t.total_out+=d,n.total+=d,d&&(t.adler=n.check=n.flags?G(n.check,i,d,s-d):U(n.check,i,d,s-d)),d=c,(n.flags?u:Te(u))!==n.check){t.msg="incorrect data check",n.mode=Ee;break}u=0,l=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;l<32;){if(0===a)break t;a--,u+=r[o++]<<l,l+=8}if(u!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=Ee;break}u=0,l=0}n.mode=29;case 29:S=ve;break t;case Ee:S=ke;break t;case 31:return Se;default:return _e}return t.next_out=s,t.avail_out=c,t.next_in=o,t.avail_in=a,n.hold=u,n.bits=l,(n.wsize||d!==t.avail_out&&n.mode<Ee&&(n.mode<27||e!==me))&&De(t,t.output,t.next_out,d-t.avail_out),h-=t.avail_in,d-=t.avail_out,t.total_in+=h,t.total_out+=d,n.total+=d,n.wrap&&d&&(t.adler=n.check=n.flags?G(n.check,i,d,t.next_out-d):U(n.check,i,d,t.next_out-d)),t.data_type=n.bits+(n.last?64:0)+(n.mode===Ae?128:0)+(20===n.mode||15===n.mode?256:0),(0===h&&0===d||e===me)&&S===be&&(S=xe),S},inflateEnd:t=>{if(!t||!t.state)return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,be},inflateGetHeader:(t,e)=>{if(!t||!t.state)return _e;const n=t.state;return 0===(2&n.wrap)?_e:(n.head=e,e.done=!1,be)},inflateSetDictionary:(t,e)=>{const n=e.length;let r,i,o;return t&&t.state?(r=t.state,0!==r.wrap&&11!==r.mode?_e:11===r.mode&&(i=1,i=U(i,e,n,0),i!==r.check)?ke:(o=De(t,e,n,n),o?(r.mode=31,Se):(r.havedict=1,be))):_e},inflateInfo:"pako inflate (from Nodeca project)"};var Fe=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const Ue=Object.prototype.toString,{Z_NO_FLUSH:We,Z_FINISH:Ge,Z_OK:Ve,Z_STREAM_END:Ke,Z_NEED_DICT:He,Z_STREAM_ERROR:qe,Z_DATA_ERROR:$e,Z_MEM_ERROR:Ze}=K;function Ye(t){this.options=Ut({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0===(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $t,this.strm.avail_out=0;let n=ze.inflateInit2(this.strm,e.windowBits);if(n!==Ve)throw new Error(V[n]);if(this.header=new Fe,ze.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"===typeof e.dictionary?e.dictionary=Kt(e.dictionary):"[object ArrayBuffer]"===Ue.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=ze.inflateSetDictionary(this.strm,e.dictionary),n!==Ve)))throw new Error(V[n])}function Xe(t,e){const n=new Ye(e);if(n.push(t),n.err)throw n.msg||V[n.err];return n.result}Ye.prototype.push=function(t,e){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let o,s,a;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Ge:We,"[object ArrayBuffer]"===Ue.call(t)?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=ze.inflate(n,s),o===He&&i&&(o=ze.inflateSetDictionary(n,i),o===Ve?o=ze.inflate(n,s):o===$e&&(o=He));n.avail_in>0&&o===Ke&&n.state.wrap>0&&0!==t[n.next_in];)ze.inflateReset(n),o=ze.inflate(n,s);switch(o){case qe:case $e:case He:case Ze:return this.onEnd(o),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(0===n.avail_out||o===Ke))if("string"===this.options.to){let t=qt(n.output,n.next_out),e=n.next_out-t,i=Ht(n.output,t);n.next_out=e,n.avail_out=r-e,e&&n.output.set(n.output.subarray(t,t+e),0),this.onData(i)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(o!==Ve||0!==a){if(o===Ke)return o=ze.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},Ye.prototype.onData=function(t){this.chunks.push(t)},Ye.prototype.onEnd=function(t){t===Ve&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Wt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Je={Inflate:Ye,inflate:Xe,inflateRaw:function(t,e){return(e=e||{}).raw=!0,Xe(t,e)},ungzip:Xe,constants:K};const{Deflate:Qe,deflate:tn,deflateRaw:en,gzip:nn}=ae,{Inflate:rn,inflate:on,inflateRaw:sn,ungzip:an}=Je;var cn=on},64712:function(t,e,n){"use strict";n.d(e,{A:function(){return p},x:function(){return w}});var r=n(67294),i=n(73935);!function(t,{insertAt:e}={}){if(!t||"undefined"==typeof document)return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===e&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}('html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}html[dir=rtl],[data-sonner-toaster][dir=rtl]{--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;will-change:transform,opacity,height;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px #0006}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toast][data-theme=dark] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;
1left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:"";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y: translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}
1[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y: translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n');var o=Array(12).fill(0),s=({visible:t})=>r.createElement("div",{className:"sonner-loading-wrapper","data-visible":t},r.createElement("div",{className:"sonner-spinner"},o.map(((t,e)=>r.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${e}`}))))),a=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),c=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
1currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),u=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),l=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),h=1,d=new class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach((e=>e(t)))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:n,...r}=t,i="number"==typeof(null==t?void 0:t.id)||(null==(e=t.id)?void 0:e.length)>0?t.id:h++,o=this.toasts.find((t=>t.id===i)),s=void 0===t.dismissible||t.dismissible;return o?this.toasts=this.toasts.map((e=>e.id===i?(this.publish({...e,...t,id:i,title:n}),{...e,...t,id:i,dismissible:s,title:n}):e)):this.addToast({title:n,...r,dismissible:s,id:i}),i},this.dismiss=t=>(t||this.toasts.forEach((t=>{this.subscribers.forEach((e=>e({id:t.id,dismiss:!0})))})),this.subscribers.forEach((e=>e({id:t,dismiss:!0}))),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let n;void 0!==e.loading&&(n=this.create({...e,promise:t,type:"loading",message:e.loading,description:"function"!=typeof e.description?e.description:void 0}));let r=t instanceof Promise?t:t(),i=void 0!==n;return r.then((t=>{if(t&&"boolean"==typeof t.ok&&!t.ok){i=!1;let r="function"==typeof e.error?e.error(`HTTP error! status: ${t.status}`):e.error,o="function"==typeof e.description?e.description(`HTTP error! status: ${t.status}`):e.description;this.create({id:n,type:"error",message:r,description:o})}else if(void 0!==e.success){i=!1;let r="function"==typeof e.success?e.success(t):e.success,o="function"==typeof e.description?e.description(t):e.description;this.create({id:n,type:"success",message:r,description:o})}})).catch((t=>{if(void 0!==e.error){i=!1;let r="function"==typeof e.error?e.error(t):e.error,o="function"==typeof e.description?e.description(t):e.description;this.create({id:n,type:"error",message:r,description:o})}})).finally((()=>{var t;i&&(this.dismiss(n),n=void 0),null==(t=e.finally)||t.call(e)})),n},this.custom=(t,e)=>{let n=(null==e?void 0:e.id)||h++;return this.create({jsx:t(n),id:n,...e}),n},this.subscribers=[],this.toasts=[]}},f=(t,e)=>{let n=(null==e?void 0:e.id)||h++;return d.addToast({title:t,...e,id:n}),n},p=Object.assign(f,{success:d.success,info:d.info,warning:d.warning,error:d.error,custom:d.custom,message:d.message,promise:d.promise,dismiss:d.dismiss,loading:d.loading}),m=3,g=14;function y(...t){return t.filter(Boolean).join(" ")}var b=t=>{var e,n,i,o,h,d,f;let{invert:p,toast:m,unstyled:b,interacting:v,setHeights:w,visibleToasts:_,heights:k,index:S,toasts:x,expanded:I,removeToast:A,closeButton:E,style:T,cancelButtonStyle:P,actionButtonStyle:C,className:M="",descriptionClassName:O="",duration:R,position:B,gap:j=g,loadingIcon:N,expandByDefault:L,classNames:D,closeButtonAriaLabel:z="Close toast",pauseWhenPageIsHidden:F}=t,[U,W]=r.useState(!1),[G,V]=r.useState(!1),[K,H]=r.useState(!1),[q,$]=r.useState(!1),[Z,Y]=r.useState(0),[X,J]=r.useState(0),Q=r.useRef(null),tt=r.useRef(null),et=0===S,nt=S+1<=_,rt=m.type,it=!1!==m.dismissible,ot=m.className||"",st=m.descriptionClassName||"",at=r.useMemo((()=>k.findIndex((t=>t.toastId===m.id))||0),[k,m.id]),ct=r.useMemo((()=>{var t;return null!=(t=m.closeButton)?t:E}),[m.closeButton,E]),ut=r.useMemo((()=>m.duration||R||4e3),[m.duration,R]),lt=r.useRef(0),ht=r.useRef(0),dt=r.useRef(0),ft=r.useRef(null),[pt,mt]=B.split("-"),gt=r.useMemo((()=>k.reduce(((t,e,n)=>n>=at?t:t+e.height),0)),[k,at]),yt=(()=>{let[t,e]=r.useState(!1);return r.useEffect((()=>{let t=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",t),()=>window.removeEventListener("visibilitychange",t)}),[]),t})(),bt=m.invert||p,vt="loading"===rt;ht.current=r.useMemo((()=>at*j+gt),[at,gt]),r.useEffect((()=>{W(!0)}),[]),r.useLayoutEffect((()=>
1{if(!U)return;let t=tt.current,e=t.style.height;t.style.height="auto";let n=t.getBoundingClientRect().height;t.style.height=e,J(n),w((t=>t.find((t=>t.toastId===m.id))?t.map((t=>t.toastId===m.id?{...t,height:n}:t)):[{toastId:m.id,height:n,position:m.position},...t]))}),[U,m.title,m.description,w,m.id]);let wt=r.useCallback((()=>{V(!0),Y(ht.current),w((t=>t.filter((t=>t.toastId!==m.id)))),setTimeout((()=>{A(m)}),200)}),[m,A,w,ht]);return r.useEffect((()=>{if(m.promise&&"loading"===rt||m.duration===1/0||"loading"===m.type)return;let t,e=ut;return I||v||F&&yt?(()=>{if(dt.current<lt.current){let t=(new Date).getTime()-lt.current;e-=t}dt.current=(new Date).getTime()})():(lt.current=(new Date).getTime(),t=setTimeout((()=>{var t;null==(t=m.onAutoClose)||t.call(m,m),wt()}),e)),()=>clearTimeout(t)}),[I,v,L,m,ut,wt,m.promise,rt,F,yt]),r.useEffect((()=>{let t=tt.current;if(t){let e=t.getBoundingClientRect().height;return J(e),w((t=>[{toastId:m.id,height:e,position:m.position},...t])),()=>w((t=>t.filter((t=>t.toastId!==m.id))))}}),[w,m.id]),r.useEffect((()=>{m.delete&&wt()}),[wt,m.delete]),r.createElement("li",{"aria-live":m.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:tt,className:y(M,ot,null==D?void 0:D.toast,null==(e=null==m?void 0:m.classNames)?void 0:e.toast,null==D?void 0:D[rt],null==(n=null==m?void 0:m.classNames)?void 0:n[rt]),"data-sonner-toast":"","data-styled":!(m.jsx||m.unstyled||b),"data-mounted":U,"data-promise":!!m.promise,"data-removed":G,"data-visible":nt,"data-y-position":pt,"data-x-position":mt,"data-index":S,"data-front":et,"data-swiping":K,"data-dismissible":it,"data-type":rt,"data-invert":bt,"data-swipe-out":q,"data-expanded":!!(I||L&&U),style:{"--index":S,"--toasts-before":S,"--z-index":x.length-S,"--offset":`${G?Z:ht.current}px`,"--initial-height":L?"auto":`${X}px`,...T,...m.style},onPointerDown:t=>{vt||!it||(Q.current=new Date,Y(ht.current),t.target.setPointerCapture(t.pointerId),"BUTTON"!==t.target.tagName&&(H(!0),ft.current={x:t.clientX,y:t.clientY}))},onPointerUp:()=>{var t,e,n,r;if(q||!it)return;ft.current=null;let i=Number((null==(t=tt.current)?void 0:t.style.getPropertyValue("--swipe-amount").replace("px",""))||0),o=(new Date).getTime()-(null==(e=Q.current)?void 0:e.getTime()),s=Math.abs(i)/o;if(Math.abs(i)>=20||s>.11)return Y(ht.current),null==(n=m.onDismiss)||n.call(m,m),wt(),void $(!0);null==(r=tt.current)||r.style.setProperty("--swipe-amount","0px"),H(!1)},onPointerMove:t=>{var e;if(!ft.current||!it)return;let n=t.clientY-ft.current.y,r=t.clientX-ft.current.x,i=("top"===pt?Math.min:Math.max)(0,n),o="touch"===t.pointerType?10:2;Math.abs(i)>o?null==(e=tt.current)||e.style.setProperty("--swipe-amount",`${n}px`):Math.abs(r)>o&&(ft.current=null)}},ct&&!m.jsx?r.createElement("button",{"aria-label":z,"data-disabled":vt,"data-close-button":!0,onClick:vt||!it?()=>{}:()=>{var t;wt(),null==(t=m.onDismiss)||t.call(m,m)},className:y(null==D?void 0:D.closeButton,null==(i=null==m?void 0:m.classNames)?void 0:i.closeButton)},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},r.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,m.jsx||r.isValidElement(m.title)?m.jsx||m.title:r.createElement(r.Fragment,null,rt||m.icon||m.promise?r.createElement("div",{"data-icon":""},!m.promise&&"loading"!==m.type||m.icon?null:N?r.createElement("div",{className:"sonner-loader","data-visible":"loading"===rt},N):r.createElement(s,{visible:"loading"===rt}),m.icon||(t=>{switch(t){case"success":return a;case"info":return u;case"warning":return c;case"error":return l;default:return null}})(rt)):null,r.createElement("div",{"data-content":""},r.createElement("div",{"data-title":"",className:y(null==D?void 0:D.title,null==(o=null==m?void 0:m.classNames)?void 0:o.title)},m.title),m.description?r.createElement("div",{"data-description":"",className:y(O,st,null==D?void 0:D.description,null==(h=null==m?void 0:m.classNames)?void 0:h.description)},m.description):null),m.cancel?r.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||P,onClick:t=>{var e;it&&(wt(),null!=(e=m.cancel)&&e.onClick&&m.cancel.onClick(t))},className:y(null==D?void 0:D.cancelButton,null==(d=null==m?void 0:m.classNames)?void 0:d.cancelButton)},m.cancel.label):null,m.action?r.createElement("button",{"data-button":"",style:m.actionButtonStyle||C,onClick:t=>{var e;null==(e=m.action)||e.onClick(t),!t.defaultPrevented&&wt()},className:y(null==D?void 0:D.actionButton,null==(f=null==m?void 0:m.classNames)?void 0:f.actionButton)},m.action.label):null))};function v(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let t=document.documentElement.getAttribute("dir");return"auto"!==t&&t?t:window.getComputedStyle(document.documentElement).direction}var w=t=>{let{invert:e,position:n="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:a,className:c,offset:u,theme:l="light",richColors:h,duration:f,style:p,visibleToasts:y=m,toastOptions:w,dir:_=v(),gap:k,loadingIcon:S,containerAriaLabel:x="Notifications",pauseWhenPageIsHidden:I}=t,[A,E]=r.useState([]),T=r.useMemo((()=>Array.from(new Set([n].concat(A.filter((t=>t.position)).map((t=>t.position)))))),[A,n]),[P,C]=r.useState([]),[M,O]=r.useState(!1),[R,B]=r.useState(!1),[j,N]=r.useState("system"!==l?l:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
1k":"light"),L=r.useRef(null),D=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),z=r.useRef(null),F=r.useRef(!1),U=r.useCallback((t=>E((e=>e.filter((({id:e})=>e!==t.id))))),[]);return r.useEffect((()=>d.subscribe((t=>{t.dismiss?E((e=>e.map((e=>e.id===t.id?{...e,delete:!0}:e)))):setTimeout((()=>{i.flushSync((()=>{E((e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n?[...e.slice(0,n),{...e[n],...t},...e.slice(n+1)]:[t,...e]}))}))}))}))),[]),r.useEffect((()=>{"system"===l?("system"===l&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?N("dark"):N("light")),"undefined"!=typeof window&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(({matches:t})=>{N(t?"dark":"light")}))):N(l)}),[l]),r.useEffect((()=>{A.length<=1&&O(!1)}),[A]),r.useEffect((()=>{let t=t=>{var e,n;o.every((e=>t[e]||t.code===e))&&(O(!0),null==(e=L.current)||e.focus()),"Escape"===t.code&&(document.activeElement===L.current||null!=(n=L.current)&&n.contains(document.activeElement))&&O(!1)};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)}),[o]),r.useEffect((()=>{if(L.current)return()=>{z.current&&(z.current.focus({preventScroll:!0}),z.current=null,F.current=!1)}}),[L.current]),A.length?r.createElement("section",{"aria-label":`${x} ${D}`,tabIndex:-1},T.map(((t,n)=>{var i;let[o,l]=t.split("-");return r.createElement("ol",{key:t,dir:"auto"===_?v():_,tabIndex:-1,ref:L,className:c,"data-sonner-toaster":!0,"data-theme":j,"data-rich-colors":h,"data-y-position":o,"data-x-position":l,style:{"--front-toast-height":`${null==(i=P[0])?void 0:i.height}px`,"--offset":"number"==typeof u?`${u}px`:u||"32px","--width":"356px","--gap":`${g}px`,...p},onBlur:t=>{F.current&&!t.currentTarget.contains(t.relatedTarget)&&(F.current=!1,z.current&&(z.current.focus({preventScroll:!0}),z.current=null))},onFocus:t=>{t.target instanceof HTMLElement&&"false"===t.target.dataset.dismissible||F.current||(F.current=!0,z.current=t.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{R||O(!1)},onPointerDown:t=>{t.target instanceof HTMLElement&&"false"===t.target.dataset.dismissible||B(!0)},onPointerUp:()=>B(!1)},A.filter((e=>!e.position&&0===n||e.position===t)).map(((n,i)=>{var o,c;return r.createElement(b,{key:n.id,index:i,toast:n,duration:null!=(o=null==w?void 0:w.duration)?o:f,className:null==w?void 0:w.className,descriptionClassName:null==w?void 0:w.descriptionClassName,invert:e,visibleToasts:y,closeButton:null!=(c=null==w?void 0:w.closeButton)?c:a,interacting:R,position:t,style:null==w?void 0:w.style,unstyled:null==w?void 0:w.unstyled,classNames:null==w?void 0:w.classNames,cancelButtonStyle:null==w?void 0:w.cancelButtonStyle,actionButtonStyle:null==w?void 0:w.actionButtonStyle,removeToast:U,toasts:A.filter((t=>t.position==n.position)),heights:P.filter((t=>t.position==n.position)),setHeights:C,expandByDefault:s,gap:k,loadingIcon:S,expanded:M,pauseWhenPageIsHidden:I})})))}))):null}},53471:function(t,e,n){"use strict";n.d(e,{AG:function(){return _},G0:function(){return T},IM:function(){return x},IX:function(){return g},O7:function(){return y},Rx:function(){return k},Ue:function(){return h},Yj:function(){return m},Z_:function(){return I},_4:function(){return P},bc:function(){return A},dt:function(){return E},eE:function(){return b},hu:function(){return l},i0:function(){return v},jt:function(){return S},oQ:function(){return C}});class r extends TypeError{constructor(t,e){let n;const{message:r,...i}=t,{path:o}=t;super(0===o.length?r:"At path: "+o.join(".")+" -- "+r),Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>{var r;return null!=(r=n)?r:n=[t,...e()]}}}function i(t){return"object"===typeof t&&null!=t}function o(t){return"string"===typeof t?JSON.stringify(t):""+t}function s(t,e,n,r){if(!0===t)return;!1===t?t={}:"string"===typeof t&&(t={message:t});const{path:i,branch:s}=e,{type:a}=n,{refinement:c,message:u="Expected a value of type `"+a+"`"+(c?" with refinement `"+c+"`":"")+", but received: `"+o(r)+"`"}=t;return{value:r,type:a,refinement:c,key:i[i.length-1],path:i,branch:s,...t,message:u}}function*a(t,e,n,r){var o;i(o=t)&&"function"===typeof o[Symbol.iterator]||(t=[t]);for(const i of t){const t=s(i,e,n,r);t&&(yield t)}}function*c(t,e,n={}){const{path:r=[],branch:o=[t],coerce:s=!1,mask:a=!1}=n,u={path:r,branch:o};if(s&&(t=e.coercer(t,u),a&&"type"!==e.type&&i(e.schema)&&i(t)&&!Array.isArray(t)))for(const i in t)void 0===e.schema[i]&&delete t[i];let l=!0;for(const i of e.validator(t,u))l=!1,yield[i,void 0];for(let[h,d,f]of e.entries(t,u)){const e=c(d,f,{path:void 0===h?r:[...r,h],branch:void 0===h?o:[...o,d],coerce:s,mask:a});for(const n of e)n[0]?(l=!1,yield[n[0],void 0]):s&&(d=n[1],void 0===h?t=d:t instanceof Map?t.set(h,d):t instanceof Set?t.add(d):i(t)&&(t[h]=d))}if(l)for(const i of e.refiner(t,u))l=!1,yield[i,void 0];l&&(yield[void 0,t])}class u{constructor(t){const{type:e,schema:n,validator:r,refiner:i,coercer:o=(t=>t),entries:s=function*(){}}=t;this.type=e,this.schema=n,this.entries=s,this.coercer=o,this.validator=r?(t,e)=>a(r(t,e),e,this,t):()=>[],this.refiner=i?(t,e)=>a(i(t,e),e,this,t):()=>[]}assert(t){return l(t,this)}create(t){return h(t,this)}is(t){return d(t,this)}mask(t){return function(t,e){const n=f(t,e,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}(t,this)}validate(t,e={}){return f(t,this,e)}}function l(t,e){const n=f(t,e);if(n[0])throw n[0]}function h(t,e){const n=f(t,e,{coerce:!0});if(n[0])throw n[0];return n[1]}function d(t,e){return!f(t,e)[0]}function f(t,e,n={}){const i=c(t,e,n),o=function(t){const{done:e,value:n}=t.next();return e?void 0:n}(i);if(o[0]){return[new r(o[0],(function*(){for(const t of i)t[0]&&(yield t[0])})),void 0]}return[void 0,o[1]]}function p(t,e){return new u({type:t,schema:null,validator:e})}function m(){return p("any",(()=>!0))}function g(t){return new u({type:"array",schema:t,*entries(e){if(t&&Array.isArray(e))for(const[n,r]of e.entries())yield[n,r,t]},coercer:t=>Array.isArray(t)?t.slice():t,validator:t=>Array.isArray(t)||"Expected an array value, but received: "+o(t)})}function y(){return p("boolean",(t=>"boolean"===typeof t))}function b(t){return p("instance",(e=>
1e instanceof t||"Expected a `"+t.name+"` instance, but received: "+o(e)))}function v(t){const e=o(t),n=typeof t;return new u({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?t:null,validator:n=>n===t||"Expected the literal `"+e+"`, but received: "+o(n)})}function w(){return p("never",(()=>!1))}function _(t){return new u({...t,validator:(e,n)=>null===e||t.validator(e,n),refiner:(e,n)=>null===e||t.refiner(e,n)})}function k(){return p("number",(t=>"number"===typeof t&&!isNaN(t)||"Expected a number, but received: "+o(t)))}function S(t){return new u({...t,validator:(e,n)=>void 0===e||t.validator(e,n),refiner:(e,n)=>void 0===e||t.refiner(e,n)})}function x(t,e){return new u({type:"record",schema:null,*entries(n){if(i(n))for(const r in n){const i=n[r];yield[r,r,t],yield[r,i,e]}},validator:t=>i(t)||"Expected an object, but received: "+o(t)})}function I(){return p("string",(t=>"string"===typeof t||"Expected a string, but received: "+o(t)))}function A(t){const e=w();return new u({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){const r=Math.max(t.length,n.length);for(let i=0;i<r;i++)yield[i,n[i],t[i]||e]}},validator:t=>Array.isArray(t)||"Expected an array, but received: "+o(t)})}function E(t){const e=Object.keys(t);return new u({type:"type",schema:t,*entries(n){if(i(n))for(const r of e)yield[r,n[r],t[r]]},validator:t=>i(t)||"Expected an object, but received: "+o(t)})}function T(t){const e=t.map((t=>t.type)).join(" | ");return new u({type:"union",schema:null,validator(n,r){const i=[];for(const e of t){const[...t]=c(n,e,r),[o]=t;if(!o[0])return[];for(const[e]of t)e&&i.push(e)}return["Expected the value to satisfy a union of `"+e+"`, but received: "+o(n),...i]}})}function P(){return p("unknown",(()=>!0))}function C(t,e,n){return new u({...t,coercer:(r,i)=>d(r,e)?t.coercer(n(r,i),i):t.coercer(r,i)})}},21127:function(t,e,n){"use strict";function r(t,e,n){return e<=t&&t<=n}function i(t){if(void 0===t)return{};if(t===Object(t))return t;throw TypeError("Could not convert argument to dictionary")}n.r(e),n.d(e,{TextDecoder:function(){return u},TextEncoder:function(){return l}});function o(t){this.tokens=[].slice.call(t)}o.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():-1},prepend:function(t){if(Array.isArray(t))for(var e=t;e.length;)this.tokens.unshift(e.pop());else this.tokens.unshift(t)},push:function(t){if(Array.isArray(t))for(var e=t;e.length;)this.tokens.push(e.shift());else this.tokens.push(t)}};var s=-1;function a(t,e){if(t)throw TypeError("Decoder error");return e||65533}var c="utf-8";function u(t,e){if(!(this instanceof u))return new u(t,e);if((t=void 0!==t?String(t).toLowerCase():c)!==c)throw new Error("Encoding not supported. Only utf-8 is supported");e=i(e),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(e.fatal),this._ignoreBOM=Boolean(e.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function l(t,e){if(!(this instanceof l))return new l(t,e);if((t=void 0!==t?String(t).toLowerCase():c)!==c)throw new Error("Encoding not supported. Only utf-8 is supported");e=i(e),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(e.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function h(t){var e=t.fatal,n=0,i=0,o=0,c=128,u=191;this.handler=function(t,l){if(-1===l&&0!==o)return o=0,a(e);if(-1===l)return s;if(0===o){if(r(l,0,127))return l;if(r(l,194,223))o=1,n=l-192;else if(r(l,224,239))224===l&&(c=160),237===l&&(u=159),o=2,n=l-224;else{if(!r(l,240,244))return a(e);240===l&&(c=144),244===l&&(u=143),o=3,n=l-240}return n<<=6*o,null}if(!r(l,c,u))return n=o=i=0,c=128,u=191,t.prepend(l),a(e);if(c=128,u=191,n+=l-128<<6*(o-(i+=1)),i!==o)return null;var h=n;return n=o=i=0,h}}function d(t){t.fatal;this.handler=function(t,e){if(-1===e)return s;if(r(e,0,127))return e;var n,i;r(e,128,2047)?(n=1,i=192):r(e,2048,65535)?(n=2,i=224):r(e,65536,1114111)&&(n=3,i=240);for(var o=[(e>>6*n)+i];n>0;){var a=e>>6*(n-1);o.push(128|63&a),n-=1}return o}}u.prototype={decode:function(t,e){var n;n="object"===typeof t&&t instanceof ArrayBuffer?new Uint8Array(t):"object"===typeof t&&"buffer"in t&&t.buffer instanceof ArrayBuffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(0),e=i(e),this._streaming||(this._decoder=new h({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(e.stream);for(var r,a=new o(n),c=[];!a.endOfStream()&&(r=this._decoder.handler(a,a.read()))!==s;)null!==r&&(Array.isArray(r)?c.push.apply(c,r):c.push(r));if(!this._streaming){do{if((r=this._decoder.handler(a,a.read()))===s)break;null!==r&&(Array.isArray(r)?c.push.apply(c,r):c.push(r))}while(!a.endOfStream());this._decoder=null}return c.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===c[0]?(this._BOMseen=!0,c.shift()):this._BOMseen=!0)),function(t){for(var e="",n=0;n<t.length;++n){var r=t[n];r<=65535?e+=String.fromCharCode(r):(r-=65536,e+=String.fromCharCode(55296+(r>>10),56320+(1023&r)))}return e}(c)}},l.prototype={encode:function(t,e){t=t?String(t):"",e=i(e),this._streaming||(this._encoder=new d(this._options)),this._streaming=Boolean(e.stream);for(var n,r=[],a=new o(function(t){for(var e=String(t),n=e.length,r=0,i=[];r<n;){var o=e.charCodeAt(r);if(o<55296||o>57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(r===n-1)i.push(65533);else{var s=t.charCodeAt(r+1);if(56320<=s&&s<=57343){var a=1023&o,c=1023&s;i.push(65536+(a<<10)+c),r+=1}else i.push(65533)}r+=1}return i}(t));!a.endOfStream()&&(n=this._encoder.handler(a,a.read()))!==s;)Array.isArray(n)?r.push.apply(r,n):r.push(n);if(!this._streaming){for(;(n=this._encoder.handler(a,a.read()))!==s;)Array.isArray(n)?r.push.apply(r,n):r.push(n);this._encoder=null}return new Uint8Array(r)}}},28821:function(t){"use strict";
1t.exports={i8:"4.6.0"}},30673:function(t){"use strict";t.exports={i8:"6.4.0"}},18597:function(t){"use strict";t.exports={i8:"6.5.4"}},19794:function(t){"use strict";t.exports={version:"1.0.34"}}},function(t){var e=function(e){return t(t.s=e)};t.O(0,[9774,179],(function(){return e(6840),e(90387)}));var n=t.O();_N_E=n}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.