/*! For license information please see memberstack.js.LICENSE.txt */ (()=>{var __webpack_modules__={800:(e,t,n)=>{"use strict";n.d(t,{default:()=>k});class o{constructor(e){this.options=e}log(...e){this.options.consoleLogs&&console.log(...e)}warn(...e){this.options.consoleLogs&&console.warn(...e)}error(...e){this.options.consoleLogs&&console.error(...e)}}const r=JSON.parse('{"HV":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"string","name":"transaction_hash","type":"string"}],"name":"Confirmed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"string","name":"payload","type":"string"}],"name":"Sent","type":"event"},{"inputs":[{"internalType":"string","name":"payload","type":"string"}],"name":"send","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"transaction_hash","type":"string"}],"name":"confirm","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]}');class s{constructor(e){this.options=e,this.apiKey=this.options.apiKey,this.channel=this.options.channelId,this.blockchainTestMode=this.options.blockchainTestMode,this.blockchainGasFee=this.options.blockchainGasFee,this.blockchainTestMode?this.contractAddress="0x2321c321828946153a845e69ee168f413e85c90d":this.contractAddress="0x2a840CA40E082DbF24610B62a978900BfCaB23D3"}async init(){const e=new Web3(window.ethereum),t=await ethereum.request({method:"eth_requestAccounts"});this.account=t[0],this.contract=new e.eth.Contract(r.HV,this.contractAddress)}checkWeb3(){return"undefined"==typeof Web3?(console.log("Web3.js is not installed!"),!1):void 0!==window.ethereum||(console.log("MetaMask is not installed!"),!1)}async confirm(e){return new Promise((async(t,n)=>{if(this.checkWeb3()){this.contract||await this.init();const o=this.contract.methods.confirm(e).send({from:this.account,gas:this.blockchainGasFee});o.on("transactionHash",t),o.on("error",(e=>{n(e)}))}}))}async send(e){return new Promise((async(t,n)=>{if(this.checkWeb3()){this.contract||await this.init();const o=await this.getTransactionHash(e),r=this.contract.methods.send(o.payload).send({from:this.account,gas:this.blockchainGasFee});r.on("transactionHash",(e=>{t({hash:e,id:o.transaction_id})})),r.on("error",(e=>{n(e)}))}else"undefined"==typeof Web3?n("Please install Web3.js"):n("Please install MetaMask")}))}async getTransactionHash(e){return new Promise(((t,n)=>{const o=new FormData;o.append("apiKey",this.apiKey),o.append("channel",this.channel),o.append("message",JSON.stringify(e)),o.append("contract",this.contractAddress);const r=new XMLHttpRequest;r.addEventListener("readystatechange",(function(){if(4===this.readyState)try{const e=JSON.parse(this.responseText);e.errors&&(console.error(`PieSocket Error: ${JSON.stringify(e.errors)}`),n()),e.success?t(e.success):n("Unknown error")}catch(e){console.error("Could not connect to Blockchain Messaging API, try later"),n()}})),r.addEventListener("error",(()=>{console.error("Blockchain Messaging API seems unreachable at the moment, try later"),n()})),r.open("POST","https://www.piesocket.com/api/blockchain/payloadHash"),r.setRequestHeader("Accept","application/json"),r.send(o)}))}}const i=WebSocket;class a{constructor(e,t,n=!0){this.events={},this.listeners={},this.members=[],this.portal=null,this.uuid=null,this.onSocketConnected=()=>{},this.onSocketError=()=>{},n&&this.init(e,t)}init(e,t){this.endpoint=e,this.identity=t,this.connection=this.connect(),this.shouldReconnect=!1,this.logger=new o(t)}getMemberByUUID(e){let t=null;for(let n=0;n{null!=t.candidate&&this.channel.publish("system:portal_candidate",{from:this.channel.uuid,to:e.from,ice:t.candidate})},n.ontrack=t=>{"video"==t.track.kind&&(this.participants[e.from].streams=t.streams,"function"==typeof this.identity.onParticipantJoined&&this.identity.onParticipantJoined(e.from,t.streams[0]))},n.onsignalingstatechange=t=>{this.isNegotiating[e.from]="stable"!=n.signalingState},this.localStream&&this.localStream.getTracks().forEach((e=>{n.addTrack(e,this.localStream)})),this.isNegotiating[e.from]=!1,n.onnegotiationneeded=async()=>{await this.sendVideoOffer(e,n,t)},this.participants[e.from]={rtc:n}}async sendVideoOffer(e,t,n){if(!n)return;if(this.isNegotiating[e.from])return void console.log("SKIP nested negotiations");this.isNegotiating[e.from]=!0;const o=await t.createOffer();await t.setLocalDescription(o),console.log("Making offer"),this.channel.publish("system:video_offer",{from:this.channel.uuid,to:e.from,sdp:t.localDescription})}removeParticipant(e){delete this.participants[e],"function"==typeof this.identity.onParticipantLeft&&this.identity.onParticipantLeft(e)}addIceCandidate(e){this.participants[e.from].rtc.addIceCandidate(new l(e.ice))}createAnswer(e){return new Promise((async(t,n)=>{if(this.participants[e.from]&&this.participants[e.from].rtc||(console.log("Starting call in createAnswer"),this.shareVideo(e,!1)),await this.participants[e.from].rtc.setRemoteDescription(new d(e.sdp)),"offer"==e.sdp.type){this.logger.log("Got an offer from "+e.from,e);const n=await this.participants[e.from].rtc.createAnswer();await this.participants[e.from].rtc.setLocalDescription(n),this.channel.publish("system:video_answer",{from:this.channel.uuid,to:e.from,sdp:this.participants[e.from].rtc.localDescription}),t()}else this.logger.log("Got an asnwer from "+e.from),t()}))}handleAnswer(e){this.participants[e.from].rtc.setRemoteDescription(new d(e.sdp))}getUserMediaSuccess(e){this.localStream=e,"function"==typeof this.identity.onLocalVideo&&this.identity.onLocalVideo(e,this),this.requestPeerVideo()}requestPeerVideo(){var e="system:portal_broadcaster";this.identity.shouldBroadcast||(e="system:portal_watcher"),this.channel.publish(e,{from:this.channel.uuid,isBroadcasting:this.identity.shouldBroadcast})}requestOfferFromPeer(){this.channel.publish("system:video_request",{from:this.channel.uuid,isBroadcasting:this.identity.shouldBroadcast})}errorHandler(e){this.logger.error("Portal error",e)}}class p{constructor(e=null,t="InvalidAuthException"){this.message=e||"Auth endpoint did not return a valid JWT Token, please see: https://www.piesocket.com/docs/3.0/authentication",this.name=t}}const h={version:3,clusterId:"demo",clusterDomain:null,apiKey:"oCdCMcMPQpbvNjUIzqtvF1d2X2okWpDQj4AwARJuAgtjhzKxVEjQU6IdCjwm",consoleLogs:!1,notifySelf:0,jwt:null,presence:0,authEndpoint:"/broadcasting/auth",authHeaders:{},forceAuth:!1,userId:null,blockchainTestMode:!1,blockchainGasFee:41e3};var f,g=new Uint8Array(16);function b(){if(!f&&!(f="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 f(g)}const v=/^(?:[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 w=[],y=0;y<256;++y)w.push((y+256).toString(16).substr(1));const _=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(w[e[t+0]]+w[e[t+1]]+w[e[t+2]]+w[e[t+3]]+"-"+w[e[t+4]]+w[e[t+5]]+"-"+w[e[t+6]]+w[e[t+7]]+"-"+w[e[t+8]]+w[e[t+9]]+"-"+w[e[t+10]]+w[e[t+11]]+w[e[t+12]]+w[e[t+13]]+w[e[t+14]]+w[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&v.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},$=function(e,t,n){var o=(e=e||{}).random||(e.rng||b)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=o[r];return t}return _(o)};class k{constructor(e){e=e||{},this.options={...h,...e},this.connections={},this.logger=new o(this.options)}async subscribe(e,t={}){return new Promise((async(n,o)=>{(t.video||t.audio||t.portal)&&(this.options.notifySelf=!0);const r=$(),s=await this.getEndpoint(e,r);if(this.connections[e])this.logger.log("Returning existing channel",e),n(this.connections[e]);else{this.logger.log("Creating new channel",e);const i=new a(s,{channelId:e,onSocketConnected:()=>{i.uuid=r,(t.video||t.audio||t.portal)&&(i.portal=new m(i,{...this.options,...t})),this.connections[e]=i,n(i)},onSocketError:()=>{o("Failed to make websocket connection")},...this.options});"undefined"==typeof WebSocket&&(i.uuid=r,this.connections[e]=i,n(i))}}))}unsubscribe(e){return!!this.connections[e]&&(this.connections[e].shouldReconnect=!1,this.connections[e].connection.close(),delete this.connections[e],!0)}getConnections(){return this.connections}async getAuthToken(e){return new Promise(((t,n)=>{const o=new FormData;o.append("channel_name",e);const r=new XMLHttpRequest;r.withCredentials=!0,r.addEventListener("readystatechange",(function(){if(4===this.readyState)try{const e=JSON.parse(this.responseText);t(e)}catch(e){n(new p("Could not fetch auth token","AuthEndpointResponseError"))}})),r.addEventListener("error",(()=>{n(new p("Could not fetch auth token","AuthEndpointError"))})),r.open("POST",this.options.authEndpoint),Object.keys(this.options.authHeaders).forEach((e=>{r.setRequestHeader(e,this.options.authHeaders[e])})),r.send(o)}))}isGuarded(e){return!!this.options.forceAuth||(""+e).startsWith("private-")}async getEndpoint(e,t){let n=`wss://${null==this.options.clusterDomain?`${this.options.clusterId}.piesocket.com`:this.options.clusterDomain}/v${this.options.version}/${e}?api_key=${this.options.apiKey}¬ify_self=${this.options.notifySelf}&source=jssdk&v=4.2.3&presence=${this.options.presence}`;if(this.options.jwt)n=n+"&jwt="+this.options.jwt;else if(this.isGuarded(e)){const t=await this.getAuthToken(e);t.auth&&(n=n+"&jwt="+t.auth)}return this.options.userId&&(n=n+"&user="+this.options.userId),n=n+"&uuid="+t,n}}},250:(e,t,n)=>{e.exports=n(800).default},467:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cancel:()=>v,format:()=>m,register:()=>i,render:()=>w});var o=["second","minute","hour","day","week","month","year"],r=["秒","分钟","小时","天","周","个月","年"],s={},i=function(e,t){s[e]=t},a=function(e){return s[e]||s.en_US},l=[60,60,24,7,365/7/12,12];function c(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}function d(e,t){for(var n=e<0?1:0,o=e=Math.abs(e),r=0;e>=l[r]&&r(0==(r*=2)?9:1)&&(r+=1),t(e,r,o)[n].replace("%s",e.toString())}function u(e,t){return(+(t?c(t):new Date)-+c(e))/1e3}var m=function(e,t,n){return d(u(e,n&&n.relativeDate),a(t))},p="timeago-id";function h(e){return parseInt(e.getAttribute(p))}var f={},g=function(e){clearTimeout(e),delete f[e]};function b(e,t,n,o){g(h(e));var r=o.relativeDate,s=o.minInterval,i=u(t,r);e.innerText=d(i,n);var a=setTimeout((function(){b(e,t,n,o)}),Math.min(1e3*Math.max(function(e){for(var t=1,n=0,o=Math.abs(e);e>=l[n]&&n1&&(n+="s"),[e+" "+n+" ago","in "+e+" "+n]})),i("zh_CN",(function(e,t){if(0===t)return["刚刚","片刻后"];var n=r[~~(t/2)];return[e+" "+n+"前",e+" "+n+"后"]}))},593:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]4e6)return[2,l.default.methods._showMessage("Image must be less than 2MB.",!0)];s.label=1;case 1:return s.trys.push([1,3,,4]),(0,d.showLoader)(),[4,(0,l.default.methods.updateMemberProfileImage)({profileImage:t})];case 2:return o=s.sent(),r=o.data,i=o._internalUseOnly.message,c.default.mergeMember({profileImage:r.profileImage}),a=c.default.getCachedMember(),(0,d.personalizeText)(a),i&&l.default.methods._showMessage(i,!1),[3,4];case 3:return u=s.sent(),console.log(u),u.message&&l.default.methods._showMessage(u.message,!0),[3,4];case 4:return(0,d.hideLoader)(),[2]}}))}))}))}))},t.resendVerificationEmail=function(){var e=Array.from(document.querySelectorAll(a.buttons.sendVerificationEmail));c.default.getCachedMember()&&e.map((function(e){e.addEventListener("click",(function(e){return r(void 0,void 0,void 0,(function(){var t,n;return s(this,(function(o){switch(o.label){case 0:e.preventDefault(),e.stopPropagation(),(0,d.showLoader)(),o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,(0,l.default.methods.sendMemberVerificationEmail)()];case 2:return t=o.sent()._internalUseOnly.message,l.default.methods._showMessage(t,!1),[3,5];case 3:return n=o.sent(),console.log(n),[3,5];case 4:return(0,d.hideLoader)(),[7];case 5:return[2]}}))}))}))}))},t.initReturnToCheckoutButtons=function(){Array.from(document.querySelectorAll(a.buttons.returnToCheckout)).map((function(e){e.addEventListener("click",(function(e){return r(void 0,void 0,void 0,(function(){var t,n;return s(this,(function(o){switch(o.label){case 0:e.preventDefault(),e.stopPropagation(),t=l.default.selectedPrice,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,d.launchCheckout)({priceId:t})];case 2:return o.sent(),[3,4];case 3:return n=o.sent(),l.default.methods._hideLoader(),l.default.methods._showMessage(n,!0),[3,4];case 4:return[2]}}))}))}))}))},t.initLoginRedirectButtons=function(){return r(void 0,void 0,void 0,(function(){function e(){var e=this,t=Array.from(document.querySelectorAll(a.buttons.loginRedirect));c.default.getCachedMember()&&t.map((function(t){t.addEventListener("click",(function(t){return r(e,void 0,void 0,(function(){var e;return s(this,(function(n){return t.preventDefault(),t.stopPropagation(),e=c.default.getCachedMember().loginRedirect,window.location.href=e,[2]}))}))}))}))}return s(this,(function(t){switch(t.label){case 0:return c.default.getCachedMember()&&e(),[4,c.default.initialRefetch()];case 1:return t.sent(),e(),[2]}}))}))},t.initOpenCustomerPortalButtons=function(){Array.from(document.querySelectorAll(a.buttons.customerPortal)).map((function(e){e.addEventListener("click",(function(e){return r(void 0,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return e.preventDefault(),e.stopPropagation(),(0,d.showLoader)(),t=window._memberstackPortalConfig,[4,l.default.methods.launchStripeCustomerPortal({configuration:t||void 0})];case 1:return n.sent(),[2]}}))}))}))}))},t.initLoginModalButtons=function(){var e=Array.from(document.querySelectorAll(a.buttons.login)),t=!1;e.map((function(e){e.addEventListener("click",(function(n){return r(void 0,void 0,void 0,(function(){var o,r,i,a,u,m;return s(this,(function(s){switch(s.label){case 0:if(n.preventDefault(),n.stopPropagation(),t)return[2];t=!0,o=Boolean(e.hasAttribute("data-ms-social-auth-allow-signup")),s.label=1;case 1:return s.trys.push([1,10,11,12]),[4,l.default.getApp()];case 2:return r=s.sent(),[4,l.default.methods.openModal("LOGIN",{app:r,login:{allowSignup:o}})];case 3:if("LOGIN"!==(i=s.sent()).type&&"SIGNUP"!==i.type)return[3,9];if(c.default.setMember(i.data.member),l.default.mergeApp({contentGroups:i.data.contentGroups}),a=l.default.selectedPrice,"SIGNUP"!==i.type||!a)return[3,8];s.label=4;case 4:return s.trys.push([4,6,,7]),[4,(0,d.launchCheckout)({priceId:a})];case 5:return s.sent(),[3,7];case 6:return u=s.sent(),l.default.methods._hideLoader(),l.default.methods._showMessage(u,!0),[3,7];case 7:return[2];case 8:(0,d.handleRedirect)(i.data.redirect||i.data.member.loginRedirect,null),l.default.methods.hideModal(),s.label=9;case 9:return[3,12];case 10:return m=s.sent(),console.log(m),[3,12];case 11:return t=!1,[7];case 12:return[2]}}))}))}))}))},t.initSignupModalButtons=function(){var e=Array.from(document.querySelectorAll(a.buttons.signup)),t=!1;e.map((function(e){e.addEventListener("click",(function(){return r(void 0,void 0,void 0,(function(){var n,r,i,a,u,m;return s(this,(function(s){switch(s.label){case 0:if(t)return[2];t=!0,s.label=1;case 1:return s.trys.push([1,13,14,15]),c.default.getCachedMember()&&l.default.selectedPrice?[4,(0,d.launchCheckout)({priceId:l.default.selectedPrice})]:[3,3];case 2:return[2,s.sent()];case 3:return n=l.default.selectedPlan||e.getAttribute("data-ms-plan:add"),[4,l.default.getApp()];case 4:return r=s.sent(),[4,l.default.methods.openModal("SIGNUP",o({app:r},n&&{signup:{plans:[n]}}))];case 5:return"LOGIN"!==(i=s.sent()).type&&"SIGNUP"!==i.type||(c.default.setMember(i.data.member),l.default.mergeApp({contentGroups:i.data.contentGroups})),"LOGIN"!==i.type?[3,6]:((0,d.handleRedirect)(i.data.redirect,null),[3,12]);case 6:if("SIGNUP"!==i.type)return[3,12];if(!(a=l.default.selectedPrice))return[3,11];s.label=7;case 7:return s.trys.push([7,9,,10]),[4,(0,d.launchCheckout)({priceId:a})];case 8:return s.sent(),[3,10];case 9:return u=s.sent(),l.default.methods._hideLoader(),l.default.methods._showMessage(u,!0),[3,10];case 10:return[3,12];case 11:(0,d.handleRedirect)(i.data.redirect,null),s.label=12;case 12:return l.default.methods.hideModal(),[3,15];case 13:return m=s.sent(),console.log(m),[3,15];case 14:return t=!1,[7];case 15:return[2]}}))}))}))}))},t.initProfileModalButtons=function(){var e=Array.from(document.querySelectorAll(a.buttons.profile)),t=!1;e.map((function(e){e.addEventListener("click",(function(n){return r(void 0,void 0,void 0,(function(){var r,i,a,d;return s(this,(function(s){switch(s.label){case 0:if(n.preventDefault(),n.stopPropagation(),t)return[2];t=!0,r=e.getAttribute("data-ms-modal-tab"),s.label=1;case 1:return s.trys.push([1,4,5,6]),[4,l.default.getApp()];case 2:return i=s.sent(),[4,l.default.methods.openModal("PROFILE",o({app:i},r&&{profile:{tab:r}}))];case 3:if("LOGOUT"===(a=s.sent()).type){if(c.default.purgeCache(),a.data.redirect&&window.location.pathname!==a.data.redirect)return[2,window.location.href=a.data.redirect];setTimeout((function(){window.location.reload()}),2e3)}return[3,6];case 4:return d=s.sent(),console.log(d),[3,6];case 5:return t=!1,[7];case 6:return[2]}}))}))}))}))},t.initForgotPasswordModalButtons=function(){var e=Array.from(document.querySelectorAll(a.buttons.forgotPassword)),t=!1;e.map((function(e){e.addEventListener("click",(function(){return r(void 0,void 0,void 0,(function(){var e,n;return s(this,(function(o){switch(o.label){case 0:if(t)return[2];t=!0,o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,l.default.getApp()];case 2:return e=o.sent(),l.default.methods.openModal("FORGOT_PASSWORD",{app:e}),[3,5];case 3:return n=o.sent(),console.log(n),[3,5];case 4:return t=!1,[7];case 5:return[2]}}))}))}))}))},t.initUpdatePlanButtons=function(){Array.from(document.querySelectorAll("[data-ms-price\\:update]")).map((function(e){"FORM"!==e.tagName&&e.addEventListener("click",(function(t){return r(void 0,void 0,void 0,(function(){var n,o,r,i,a;return s(this,(function(s){switch(s.label){case 0:return n=e.getAttribute("data-ms-price:update").split(",").filter(Boolean),o=n[0],r=e.getAttribute("data-ms-coupon"),l.default.setCouponViaBtn(r),(i=c.default.getCachedMember())?(t.preventDefault(),t.stopPropagation(),i.planConnections.some((function(e){return"SUBSCRIPTION"===e.type&&"CANCELED"!==e.status}))?[3,2]:[4,(0,d.launchCheckout)({priceId:o})]):((0,d.trackPricingButtonClick)(o),[2,l.default.setPrice(o)]);case 1:return[2,s.sent()];case 2:return s.trys.push([2,4,,5]),[4,l.default.methods.launchStripeCustomerPortal({priceIds:n})];case 3:return s.sent(),[3,5];case 4:return a=s.sent(),(0,d.hideLoader)(),l.default.methods._showMessage(a.message,!0),[3,5];case 5:return[2]}}))}))}))}))},t.initPlanRemoveButtons=function(){Array.from(document.querySelectorAll("[data-ms-plan\\:remove]")).map((function(e){e.addEventListener("click",(function(t){return r(void 0,void 0,void 0,(function(){var n,o,r;return s(this,(function(s){switch(s.label){case 0:t.preventDefault(),t.stopPropagation(),(0,d.showLoader)(),n=e.getAttribute("data-ms-plan:remove"),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,(0,l.default.methods.removePlan)({planId:n})];case 2:return o=s.sent()._internalUseOnly.message,(0,d.hideLoader)(),l.default.methods._showMessage(o,!1),setTimeout((function(){window.location.reload()}),2e3),[3,4];case 3:return r=s.sent(),(0,d.hideLoader)(),l.default.methods._showMessage(r.message,!0),[3,4];case 4:return[2]}}))}))}))}))},t.initRemoveSelectedPriceButtons=function(){return r(void 0,void 0,void 0,(function(){return s(this,(function(e){return Array.from(document.querySelectorAll("[data-ms-price\\:remove='all']")).map((function(e){e.addEventListener("click",(function(e){l.default.clearPrice()}))})),[2]}))}))},t.initLaunchCheckoutButtons=function(){Array.from(document.querySelectorAll("[data-ms-price\\:add]")).map((function(e){"FORM"!==e.tagName&&e.addEventListener("click",(function(t){return r(void 0,void 0,void 0,(function(){var n,o;return s(this,(function(r){switch(r.label){case 0:return n=e.getAttribute("data-ms-price:add"),o=e.getAttribute("data-ms-coupon"),l.default.setCouponViaBtn(o),c.default.getCachedMember()?(t.preventDefault(),t.stopPropagation(),[4,(0,d.launchCheckout)({priceId:n})]):((0,d.trackPricingButtonClick)(n),[2,l.default.setPrice(n)]);case 1:return r.sent(),[2]}}))}))}))}))},t.initSignupButtons=function(){Array.from(document.querySelectorAll("[data-ms-plan\\:add]")).map((function(e){"FORM"!==e.tagName&&e.addEventListener("click",(function(t){return r(void 0,void 0,void 0,(function(){var n,r,i,a,u,m;return s(this,(function(s){switch(s.label){case 0:if(n=e.getAttribute("data-ms-plan:add"),r=e.getAttribute("data-ms-success-message"),!c.default.getCachedMember())return[2,l.default.setPlan(n)];t.preventDefault(),t.stopPropagation(),(0,d.showLoader)(),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,(0,l.default.methods.addPlan)({planId:n})];case 2:return i=s.sent(),a=i.data,u=i._internalUseOnly.message,l.default.mergeApp(o({},a.app)),c.default.mergeMember(o({},a.member)),(0,d.hideLoader)(),a.redirect&&window.location.pathname!==a.redirect?[2,window.location.href=a.redirect]:(l.default.methods._showMessage(r||u,!1),setTimeout((function(){window.location.reload()}),2e3),[3,4]);case 3:return m=s.sent(),(0,d.hideLoader)(),l.default.methods._showMessage(m.message,!0),[3,4];case 4:return[2]}}))}))}))}))},t.initLogoutButtons=function(){document.querySelectorAll(a.buttons.logout).forEach((function(e){e.addEventListener("click",(function(e){return r(void 0,void 0,void 0,(function(){var t,n,o;return s(this,(function(r){switch(r.label){case 0:return e.preventDefault(),e.stopPropagation(),(0,d.showLoader)(),[4,(0,l.default.methods.logout)()];case 1:return t=r.sent(),n=t.data,o=t._internalUseOnly.message,c.default.purgeCache(),[4,l.default.refetchAppMember()];case 2:return r.sent(),(0,d.hideLoader)(),n.redirect&&window.location.pathname!==n.redirect?[2,window.location.href=n.redirect]:(l.default.methods._showMessage(o,!1),setTimeout((function(){window.location.reload()}),2e3),[2])}}))}))}))}))},t.redirectOverrideButtons=function(){document.querySelectorAll("[data-ms-redirect]").forEach((function(e){e.addEventListener("click",(function(t){return r(void 0,void 0,void 0,(function(){var t;return s(this,(function(n){return"current-url"===(t=e.getAttribute("data-ms-redirect"))&&(t=window.location.pathname),sessionStorage.setItem("ms-redirect-override",t),[2]}))}))}))}))},t.deleteMemberButtons=function(){document.querySelectorAll(a.buttons.deleteMember).forEach((function(e){e.addEventListener("click",(function(e){return r(void 0,void 0,void 0,(function(){var t,n;return s(this,(function(o){switch(o.label){case 0:e.preventDefault(),e.stopPropagation(),(0,d.showLoader)(),t=l.default.methods.deleteMember,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,t()];case 2:return o.sent(),c.default.purgeCache(),(0,d.hideLoader)(),window.location.href="/",setTimeout((function(){window.location.reload()}),2e3),[3,4];case 3:return n=o.sent(),(0,d.hideLoader)(),l.default.methods._showMessage(n.message,!0),[3,4];case 4:return[2]}}))}))}))}))}},321:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]255?"255+":e.toString();t.innerHTML=o}},this.channelElement=e,this.toggleDisplay("[data-ms-channel-content='has-posts']","none"),this.toggleDisplay("[data-ms-channel-content='!has-posts']","none"),this.channelKey=e.getAttribute("data-ms-channel")||window.location.pathname,this.sortOrder=e.getAttribute("data-ms-channel-sort")||"oldest",this.postContainer=e.querySelector("[data-ms-post='container']"),this.notifyButton=e.querySelector("[data-ms-channel-notify]"),this.notifyDropdown=e.querySelector("[data-ms-channel-notifications]"),!e.querySelector("[data-ms-post='loadMoreAbove']")){var o=null===(t=e.querySelector("[data-ms-post='loadMore']"))||void 0===t?void 0:t.cloneNode(!0);o&&(this.postContainer.parentNode.insertBefore(o,this.postContainer),o.setAttribute("data-ms-post","loadMoreAbove"),o.style.display="none")}this.toggleDisplay("[data-ms-post='loadMoreAbove']","none"),this.toggleDisplay("[data-ms-post='loadMore']","none"),this.uiTemplate=this.postContainer.querySelector("[data-ms-post='item']"),this.uiTemplate.remove(),this.postLoader=this.channelElement.querySelector("[data-ms-post='loading']"),this.postLoader&&(this.postLoader.style.display="none"),this.channelLoader=this.channelElement.querySelector("[data-ms-channel-content='loading']"),this.channelLoader&&(this.channelLoader.style.display="none"),this.isTypingSection=this.channelElement.querySelector("[data-ms-post-content='is-typing-section']"),this.isTypingSection&&(this.isTypingSection.style.display="none"),this.presenceCount=document.querySelector("[data-ms-channel-presence='count']"),this.member=l.default.getCachedMember(),this.member&&(this.activeMemberId=this.member.id);var r=new URLSearchParams(window.location.search);this.specificPostId=r.get("postId"),this.specificPostId&&(this.specificThreadId=r.get("threadId")),this.initializePosts(),this.initListeners(),this.getChannelInfo()}return e.prototype.turnOnNotifyButton=function(){this.notifyButton&&(this.notifyButton.checked=!0)},e.prototype.setNotificationType=function(e){this.notifyDropdown&&(this.notifyDropdown.value=e)},e.prototype.updateTypingDisplay=function(){if(this.isTypingSection)if(this.typingUsers.length>0){this.isTypingSection.style.display="block";var e=this.isTypingSection.querySelector("[data-ms-post='is-typing']");e&&(e.innerHTML=this.getTypingMessage())}else this.isTypingSection.style.display="none"},e.prototype.getTypingMessage=function(){return"A user is typing..."},e.prototype.getChannelInfo=function(){var e;return r(this,void 0,void 0,(function(){var t,n;return s(this,(function(o){switch(o.label){case 0:return[4,a.default.methods.getChannelInfo({channelKey:this.channelKey})];case 1:return(t=o.sent().data)?(n=t.internalOrder,this.realtimeKey="chl-".concat(n),this.activeMemberId&&(this.realtime=new d.Realtime(this)),(null===(e=t.activeMember)||void 0===e?void 0:e.notificationType)&&this.setNotificationType(t.activeMember.notificationType),[2]):[2]}}))}))},e.prototype.handlePostLoaderVisibility=function(e){this.postLoader&&(this.postLoader.style.display=e?"block":"none")},e.prototype.handleChannelLoaderVisibility=function(e){this.channelLoader&&(this.channelLoader.style.display=e?"block":"none")},e.prototype.initializePosts=function(){return r(this,void 0,void 0,(function(){var e,t;return s(this,(function(n){switch(n.label){case 0:return e=this.specificPostId?"newest"===this.sortOrder?String(Number(this.specificPostId)+1):String(Number(this.specificPostId)-1):void 0,[4,this.fetchPosts(e)];case 1:return t=n.sent().data,this.displayPosts(t),this.handleHasPostsVisibility(),this.setTotalPostCount(),e&&this.toggleDisplay("[data-ms-post='loadMoreAbove']","block"),[2]}}))}))},e.prototype.handleHasPostsVisibility=function(){this.posts.length?(this.toggleDisplay("[data-ms-channel-content='!has-posts']","none"),this.toggleDisplay("[data-ms-channel-content='has-posts']","block")):(this.toggleDisplay("[data-ms-channel-content='!has-posts']","block"),this.toggleDisplay("[data-ms-channel-content='has-posts']","none"))},e.prototype.toggleDisplay=function(e,t){var n=this.channelElement.querySelector(e);n&&(n.style.display=t)},e.prototype.handleLoadMoreVisibility=function(e){!e&&this.totalPostCount>this.totalPostsLoaded?this.toggleDisplay("[data-ms-post='loadMore']","block"):this.toggleDisplay("[data-ms-post='loadMore']","none")},e.prototype.initListeners=function(){var e,t,n,o;return r(this,void 0,void 0,(function(){var i,l,c=this;return s(this,(function(d){return null===(e=this.channelElement.querySelector("[data-ms-post='loadMore']"))||void 0===e||e.addEventListener("click",(function(){return r(c,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this.loadMorePosts()];case 1:return e.sent(),[2]}}))}))})),null===(t=this.channelElement.querySelector("[data-ms-post='loadMoreAbove']"))||void 0===t||t.addEventListener("click",(function(){return r(c,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this.loadMorePostsAbove()];case 1:return e.sent(),[2]}}))}))})),null===(n=this.channelElement.querySelector("[data-ms-form='post']"))||void 0===n||n.addEventListener("submit",(function(e){return r(c,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return e.preventDefault(),e.stopPropagation(),[4,this.createAndDisplayPost(e.target)];case 1:return t.sent(),[2]}}))}))})),null===(o=this.notifyDropdown)||void 0===o||o.addEventListener("change",(function(e){return r(c,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return t=e.target.value,console.log(t),[4,a.default.methods.subscribeToChannel({channelKey:this.channelKey,action:t})];case 1:return n.sent(),[2]}}))}))})),i=this.channelElement.querySelector("[data-ms-form='post']"),null==(l=null==i?void 0:i.querySelector("[data-ms-post='content']"))||l.addEventListener("keydown",(function(e){return r(c,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return"Enter"!==(t=e).key||t.shiftKey?[3,2]:(e.preventDefault(),e.stopPropagation(),[4,this.createAndDisplayPost(i)]);case 1:return n.sent(),[3,3];case 2:this.handleIsTypingEvent(),n.label=3;case 3:return[2]}}))}))})),[2]}))}))},e.prototype.handleIsTypingEvent=function(){var e=this;this.activeMemberId&&this.canPublishIsTypingEvent&&this.realtimeKey&&(a.default.methods.postIsTyping({channelKey:this.realtimeKey}),this.canPublishIsTypingEvent=!1,setTimeout((function(){e.canPublishIsTypingEvent=!0}),3e3))},e.prototype.loadMorePosts=function(){return r(this,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return[4,this.fetchPosts()];case 1:return e=t.sent().data,this.displayPosts(e),[2]}}))}))},e.prototype.loadMorePostsAbove=function(){return r(this,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return[4,this.fetchPostsAbove()];case 1:return e=t.sent().data,this.displayPostsAbove(e),[2]}}))}))},e.prototype.addPost=function(e){var t=new c.PostItem(this,e);this.posts.push(t);var n=t.postElement;this.totalPostCount+=1,this.setTotalPostCount(),this.handleHasPostsVisibility(),"newest"===this.sortOrder?this.postContainer.insertBefore(n,this.postContainer.firstChild):this.postContainer.appendChild(n),u.default.notify({event:"new-post"})},e.prototype.createAndDisplayPost=function(e){return r(this,void 0,void 0,(function(){var t,n,o,r;return s(this,(function(s){switch(s.label){case 0:if(!(t=e.querySelector("[data-ms-post='content']")))return[3,5];if(n=t.value,t.value="",!n)return[2];this.handlePostLoaderVisibility(!0),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,a.default.methods.createPost({channelKey:this.channelKey,content:n})];case 2:return o=s.sent().data,this.addPost(o),[3,4];case 3:return r=s.sent(),console.log(r),a.default.methods._showMessage(r.message,!0),[3,4];case 4:this.handlePostLoaderVisibility(!1),s.label=5;case 5:return[2]}}))}))},e.prototype.fetchPosts=function(e){var t,n;return r(this,void 0,void 0,(function(){var r,i,l;return s(this,(function(s){switch(s.label){case 0:return this.handleChannelLoaderVisibility(!0),r=this.postContainer.getAttribute("data-ms-post-load")||50,[4,a.default.methods.getPosts(o(o({channelKey:this.channelKey,order:this.sortOrder,limit:Number(r)},this.lastPostId&&{after:this.lastPostId}),e&&{after:e}))];case 1:return i=s.sent().data,this.handleChannelLoaderVisibility(!1),this.lastPostId=null===(t=i.posts[i.posts.length-1])||void 0===t?void 0:t.internalOrder,e&&(this.firstPostId=null===(n=i.posts[0])||void 0===n?void 0:n.internalOrder),this.totalPostCount=i.totalCount,this.totalPostsLoaded+=i.posts.length,l=0===i.posts.length,this.handleLoadMoreVisibility(l),[2,{data:i}]}}))}))},e.prototype.fetchPostsAbove=function(){var e;return r(this,void 0,void 0,(function(){var t,n;return s(this,(function(r){switch(r.label){case 0:return this.handleChannelLoaderVisibility(!0),t=this.postContainer.getAttribute("data-ms-post-load")||50,[4,a.default.methods.getPosts(o({channelKey:this.channelKey,order:"newest"===this.sortOrder?"oldest":"newest",limit:Number(t)},this.firstPostId&&{after:this.firstPostId}))];case 1:return n=r.sent().data,this.handleChannelLoaderVisibility(!1),this.firstPostId=null===(e=n.posts[n.posts.length-1])||void 0===e?void 0:e.internalOrder,0===n.posts.length&&this.toggleDisplay("[data-ms-post='loadMoreAbove']","none"),[2,{data:n}]}}))}))},e.prototype.displayPosts=function(e){var t=this;e.posts.forEach((function(e){var n=e.internalOrder===Number(t.specificPostId)&&t.specificThreadId?t.specificThreadId:void 0,o=new c.PostItem(t,e,n);t.posts.push(o);var r=o.postElement;t.postContainer.appendChild(r)})),u.default.notify({event:"posts-loaded"})},e.prototype.displayPostsAbove=function(e){var t=this;e.posts.forEach((function(e){var n=new c.PostItem(t,e);t.posts.unshift(n);var o=n.postElement;t.postContainer.insertBefore(o,t.postContainer.firstChild)})),u.default.notify({event:"posts-loaded"})},e.prototype.setTotalPostCount=function(){var e=this.channelElement.querySelector("[data-ms-post='count']");e&&(e.innerHTML=this.totalPostCount.toString())},e}();t.ChannelSection=m},238:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(r,s){function i(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}l((o=o.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,o,r,s,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0?t.style.display="block":t.style.display="none"})),n.forEach((function(t){e.replyCount>0?t.style.display="none":t.style.display="block"}))},e.prototype.memberHasPermissionToEditPost=function(){var e,t,n=Boolean(null===(t=null===(e=this.Channel.member)||void 0===e?void 0:e._comments)||void 0===t?void 0:t.isModerator);return this.post.member.id===this.Channel.activeMemberId||n},e.prototype.incrementReplyCount=function(){this.replyCount+=1,this.updateReplyCount(),this.handleHasThreadsVisibility()},e.prototype.updateReplyCount=function(){this.postElement.querySelector("[data-ms-post='threadCount']")&&(0,a.setInnerHTML)(this.postElement,"[data-ms-post='threadCount']",this.replyCount.toString())},e}();t.PostItem=u;var m=function(e,t){var n=t.member,o=t.content,r=t._count,s=t.createdAt;(0,a.setInnerHTML)(e,"[data-ms-post='content']",o),(0,a.setInnerHTML)(e,"[data-ms-post='likeCount']",r.likedBy),(0,a.setInnerHTML)(e,"[data-ms-post='dislikeCount']",r.dislikedBy),(0,a.setInnerHTML)(e,"[data-ms-post='threadCount']",r.Threads),(0,a.setInnerHTML)(e,"[data-ms-post='date']",(0,l.format)(s,"en_US")),e.setAttribute("data-ms-post-id",t.id);var i=n.customFields||{};e.querySelectorAll("[data-ms-post-creator]").forEach((function(e){var t=e.getAttribute("data-ms-post-creator");i[t]&&(e.innerHTML=i[t])})),n.profileImage&&e.querySelector("[data-ms-post='ownerProfileImage']").setAttribute("src",n.profileImage),e.removeAttribute("data-ms-post")}},331:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(r,s){function i(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}l((o=o.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,o,r,s,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]-1&&(this.postOrThread[e].splice(n,1),this.postOrThread._count[e]=this.postOrThread[e].length)},e.prototype.handleVote=function(e,t){switch(e){case"UP":this.handleUpVote(t);break;case"DOWN":this.handleDownVote(t);break;case"NONE":this.handleNeutralVote(t)}this.updatePostReactionCounts()},e.prototype.handleUpVote=function(e){this.addReactionToPost("likedBy",e),this.removeReactionFromPost("dislikedBy",e)},e.prototype.handleDownVote=function(e){this.addReactionToPost("dislikedBy",e),this.removeReactionFromPost("likedBy",e)},e.prototype.handleNeutralVote=function(e){this.removeReactionFromPost("likedBy",e),this.removeReactionFromPost("dislikedBy",e)},e.prototype.updatePostReactionCounts=function(){(0,a.setInnerHTML)(this.postElement,"[data-ms-".concat(this.type,"='likeCount']"),this.postOrThread._count.likedBy.toString()),(0,a.setInnerHTML)(this.postElement,"[data-ms-".concat(this.type,"='dislikeCount']"),this.postOrThread._count.dislikedBy.toString())},e.prototype.sendVote=function(e){return o(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return"thread"!==this.type?[3,2]:[4,i.default.methods.threadVote({threadId:this.postOrThread.id,vote:e})];case 1:case 3:return t.sent(),[2];case 2:return[4,i.default.methods.postVote({postId:this.postOrThread.id,vote:e})]}}))}))},e.prototype.handleReactionVisibility=function(){var e=this.postElement.querySelector("[data-ms-".concat(this.type,"='like']"));this.memberLikedPost()?null==e||e.classList.add("is-active"):null==e||e.classList.remove("is-active");var t=this.postElement.querySelector("[data-ms-".concat(this.type,"='dislike']"));this.memberDislikedPost()?null==t||t.classList.add("is-active"):null==t||t.classList.remove("is-active")},e.prototype.memberLikedPost=function(){return this.postOrThread.likedBy.includes(this.Channel.activeMemberId)},e.prototype.memberDislikedPost=function(){return this.postOrThread.dislikedBy.includes(this.Channel.activeMemberId)},e}();t.ReactionItem=l},528:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(r,s){function i(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}l((o=o.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,o,r,s,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]this.totalThreadsLoaded?this.toggleDisplay("[data-ms-thread='loadMore']","block"):this.toggleDisplay("[data-ms-thread='loadMore']","none")},e.prototype.initEventListeners=function(){var e,t,n,o,i=this;null===(e=this.loadMoreButton)||void 0===e||e.addEventListener("click",(function(){return r(i,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this.loadMoreThreads()];case 1:return[2,e.sent()]}}))}))})),null===(t=this.loadMoreAboveButton)||void 0===t||t.addEventListener("click",(function(){return r(i,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this.loadMoreThreadsAbove()];case 1:return e.sent(),[2]}}))}))})),this.section&&(null===(n=this.section.querySelector("[data-ms-form='thread']"))||void 0===n||n.addEventListener("submit",(function(e){return r(i,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return e.preventDefault(),e.stopPropagation(),[4,this.createAndDisplayThread(e.target)];case 1:return t.sent(),[2]}}))}))})));var a=null===(o=this.section)||void 0===o?void 0:o.querySelector("[data-ms-form='thread']"),l=null==a?void 0:a.querySelector("[data-ms-thread='content']");null==l||l.addEventListener("keydown",(function(e){return r(i,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return"Enter"!==(t=e).key||t.shiftKey?[3,2]:(e.preventDefault(),e.stopPropagation(),[4,this.createAndDisplayThread(a)]);case 1:n.sent(),n.label=2;case 2:return[2]}}))}))}))},e.prototype.loadMoreThreads=function(){return r(this,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return[4,this.fetchThreads()];case 1:return e=t.sent(),this.displayThreads(e),[2]}}))}))},e.prototype.loadMoreThreadsAbove=function(){return r(this,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return[4,this.fetchThreadsAbove()];case 1:return e=t.sent(),this.displayThreadsAbove(e),[2]}}))}))},e.prototype.fetchThreads=function(){var e,t;return r(this,void 0,void 0,(function(){var n,r,i,l;return s(this,(function(s){switch(s.label){case 0:return this.Post.Channel.handlePostLoaderVisibility(!0),n=this.threadContainer.getAttribute("data-ms-thread-load")||20,r=this.specificThreadId?"newest"===this.threadSortOrder?String(Number(this.specificThreadId)+1):String(Number(this.specificThreadId)-1):void 0,[4,a.default.methods.getThreads(o(o({postId:this.postId,order:this.threadSortOrder,limit:Number(n)},this.lastThreadId&&{after:this.lastThreadId}),r&&{after:r}))];case 1:return i=s.sent().data,this.specificThreadId&&(this.toggleDisplay("[data-ms-thread='loadMoreAbove']","block"),this.firstThreadId=null===(e=i.threads[0])||void 0===e?void 0:e.internalOrder),this.specificThreadId=void 0,this.Post.Channel.handlePostLoaderVisibility(!1),this.totalThreadsLoaded+=i.threads.length,l=0===i.threads.length,this.handleLoadMoreVisibility(l),this.lastThreadId=null===(t=i.threads[i.threads.length-1])||void 0===t?void 0:t.internalOrder,[2,i.threads]}}))}))},e.prototype.fetchThreadsAbove=function(){var e;return r(this,void 0,void 0,(function(){var t,n;return s(this,(function(r){switch(r.label){case 0:return this.Post.Channel.handlePostLoaderVisibility(!0),t=this.threadContainer.getAttribute("data-ms-thread-load")||20,[4,a.default.methods.getThreads(o({postId:this.postId,order:"newest"===this.threadSortOrder?"oldest":"newest",limit:Number(t)},this.firstThreadId&&{after:this.firstThreadId}))];case 1:return n=r.sent().data,this.Post.Channel.handlePostLoaderVisibility(!1),0===n.threads.length&&this.toggleDisplay("[data-ms-thread='loadMoreAbove']","none"),this.firstThreadId=null===(e=n.threads[n.threads.length-1])||void 0===e?void 0:e.internalOrder,[2,n.threads]}}))}))},e.prototype.toggleDisplay=function(e,t){var n=this.section.querySelector(e);n&&(n.style.display=t)},e.prototype.displayThreads=function(e){var t=this;e.forEach((function(e){var n=new l.ThreadItem(t,e);t.threads.push(n);var o=n.threadElement;t.threadContainer.appendChild(o)})),c.default.notify({event:"threads-loaded"})},e.prototype.displayThreadsAbove=function(e){var t=this;e.forEach((function(e){var n=new l.ThreadItem(t,e);t.threads.unshift(n);var o=n.threadElement;t.threadContainer.insertBefore(o,t.threadContainer.firstChild)})),c.default.notify({event:"threads-loaded"})},e.prototype.addThread=function(e){var t=new l.ThreadItem(this,e);this.threads.push(t);var n=t.threadElement;this.totalThreadsLoaded+=1,this.Post.incrementReplyCount(),"newest"===this.threadSortOrder?this.threadContainer.insertBefore(n,this.threadContainer.firstChild):this.threadContainer.appendChild(n),c.default.notify({event:"new-thread"})},e.prototype.createAndDisplayThread=function(e){return r(this,void 0,void 0,(function(){var t,n,o,r;return s(this,(function(s){switch(s.label){case 0:if(!(t=e.querySelector("[data-ms-thread='content']")))return[3,5];if(n=t.value,t.value="",!n)return[2];this.Post.Channel.handlePostLoaderVisibility(!0),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,a.default.methods.createThread({postId:this.postId,content:n})];case 2:return o=s.sent().data,this.addThread(o),[3,4];case 3:return r=s.sent(),console.log(r),a.default.methods._showMessage(r.message,!0),[3,4];case 4:this.Post.Channel.handlePostLoaderVisibility(!1),s.label=5;case 5:return[2]}}))}))},e.prototype.hide=function(){this.section.style.display="none",this.isOpen=!1},e.prototype.show=function(){return r(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return this.section.style.display="block",this.isOpen=!0,0!==this.totalThreadsLoaded?[3,2]:[4,this.loadMoreThreads()];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e}();t.ThreadSection=d},582:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initChannels=void 0;var o=n(321);t.initChannels=function(){document.querySelectorAll("[data-ms-channel]").forEach((function(e){return new o.ChannelSection(e)}))}},146:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(r,s){function i(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}l((o=o.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,o,r,s,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setInnerHTML=void 0,t.setInnerHTML=function(e,t,n){var o=e.querySelector(t);o&&(o.innerHTML=n)}},299:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(588),r=new(function(){function e(){var e=this;this.observer=new Map,window.$msChannelEvents=function(t){return e.channelUpdate(t)}}return e.prototype.subscribe=function(e){if("function"==typeof e){var t=Symbol();return this.observer.set(t,e),t}},e.prototype.unsubscribe=function(e){return this.observer.delete(e)},e.prototype.notify=function(e){this.observer.forEach((function(t){return t(e)})),(0,o.removeContent)()},e.prototype.channelUpdate=function(e){var t=this,n=this.subscribe(e);return{unsubscribe:function(){return t.unsubscribe(n)}}},e}());t.default=r},41:function(e,t){"use strict";var n=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=s.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return i},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,s=t.length;r0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0)&&!(o=s.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return i},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,s=t.length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loggerEnabled=t.logger=void 0,t.logger=function(e,t){window.localStorage.getItem("ms_debug")&&(t?console.log(e,t):console.log(e))},t.loggerEnabled=function(){return!!window.localStorage.getItem("ms_debug")}},230:function(e,t,n){"use strict";var o,r,s,i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0)&&!(o=s.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return i},__spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,s=t.length;r0&&e.querySelectorAll("[type=checkbox][data-ms-value]").length>0)Array.from(e.querySelectorAll("[type=checkbox][data-ms-value]")).map((function(e){var t,n=e.getAttribute("data-ms-value"),o=(null==r?void 0:r.split(","))||[];e.checked=!!o.includes(n);var s=(null===(t=e.previousElementSibling)||void 0===t?void 0:t.classList.contains("w-checkbox-input--inputType-custom"))?e.previousElementSibling:null;s&&(o.includes(n)?s.classList.add("w--redirected-checked"):s.classList.remove("w--redirected-checked"))}));else{if("IMG"===e.tagName){if(!r)return;var s=e;return s.src=r,void(s.srcset=r)}if("SELECT"!==e.tagName)if("INPUT"!==e.tagName||"checkbox"!==e.type&&"radio"!==e.type){var i="email"===o?data.auth.email:data.customFields[o];i&&(e.innerHTML=i,e.value=i,e.src=i)}else{var a=e;switch(a.type){case"checkbox":var l=!0===r||"true"===r;a.checked=!!l;var c=(null===(t=a.previousElementSibling)||void 0===t?void 0:t.classList.contains("w-checkbox-input--inputType-custom"))?a.previousElementSibling:null;c&&(l?c.classList.add("w--redirected-checked"):c.classList.remove("w--redirected-checked"));break;case"radio":if(r&&r===a.value){a.checked=!0;var d=(null===(n=a.previousElementSibling)||void 0===n?void 0:n.classList.contains("w-form-formradioinput--inputType-custom"))?a.previousElementSibling:null;d&&(a.checked?d.classList.add("w--redirected-checked"):d.classList.remove("w--redirected-checked"))}}}else e.value=r}}));var signupDateText=Array.from(document.querySelectorAll("[data-ms-member^='signup-date']"));signupDateText.map((function(el){var dateSelector=el.getAttribute("data-ms-member"),dateFunction=dateSelector.split(".")[1],date=dateFunction?eval("new Date(data.createdAt).".concat(dateFunction)):new Date(data.createdAt).toDateString();el.innerHTML=date}))};exports.personalizeText=personalizeText;var initMemberText=function(){return __awaiter(void 0,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:return[4,member_1.default.getMember()];case 1:return(e=n.sent())&&(0,exports.personalizeText)(e),[4,member_1.default.initialRefetch()];case 2:return(t=n.sent())?((0,exports.personalizeText)(t),[2]):[2]}}))}))};exports.initMemberText=initMemberText;var removeElement=function(e){var t;try{null==e||e.remove()}catch(n){null===(t=e.parentNode)||void 0===t||t.removeChild(e)}};exports.removeElement=removeElement;var getElements=function(e){return Array.from(document.querySelectorAll(e))};exports.getElements=getElements;var getDynamicContent=function(e){var t,n=[];return e&&(e.planConnections.some((function(e){return"FREE"===e.type}))?n.push("[data-ms-content='!free-plans']"):n.push("[data-ms-content='free-plans']"),e.planConnections.some((function(e){return"FREE"!==e.type&&"CANCELED"!==e.status}))?n.push("[data-ms-content='!paid-plans']"):n.push("[data-ms-content='paid-plans']"),e.planConnections.filter((function(e){return"CANCELED"!==e.status})).length>0?n.push("[data-ms-content='no-plans']"):n.push("[data-ms-content='!no-plans']"),e.planConnections.some((function(e){return"TRIALING"===e.status}))?n.push("[data-ms-content='!is-trialing']"):n.push("[data-ms-content='is-trialing']"),e.planConnections.some((function(e){return"REQUIRES_PAYMENT"===e.status||"REQUIRES_AUTHENTICATION"===e.status}))?n.push("[data-ms-content='!has-failed-payment']"):n.push("[data-ms-content='has-failed-payment']"),e.verified?n.push("[data-ms-content='!verified']","[data-ms-action='resend-verification-email']"):n.push("[data-ms-content='verified']"),(null===(t=e.auth)||void 0===t?void 0:t.hasPassword)?n.push("[data-ms-content='!has-password']"):n.push("[data-ms-content='has-password']"),e.stripeCustomerId||n.push("[data-ms-action='customer-portal']"),memberstack_1.default.selectedPrice||n.push(constants_1.buttons.returnToCheckout),n.push.apply(n,__spreadArray([],__read((0,exports.getRemovePlansToHide)()),!1))),n};exports.getDynamicContent=getDynamicContent;var getRemovePlansToHide=function(){var e=Array.from(document.querySelectorAll("[data-ms-plan\\:remove]"));if(e)return e.map((function(e){var t,n=e.getAttribute("data-ms-plan:remove");return(null===(t=member_1.default.getCachedMember())||void 0===t?void 0:t.planConnections.some((function(e){return e.planId===n&&"CANCELED"!==e.status})))?void 0:"[data-ms-plan\\:remove=".concat(n,"]")}))};exports.getRemovePlansToHide=getRemovePlansToHide;var handleRedirect=function(e,t){var n=sessionStorage.getItem("ms-redirect-override");return"/"===window.location.pathname&&"/"===e?window.location.reload():t?window.location.href=t:n?(sessionStorage.removeItem("ms-redirect-override"),window.location.href="/"===n[0]?n:"/".concat(n)):e&&window.location.pathname!==e?window.location.href=e:void 0};exports.handleRedirect=handleRedirect;var getFormCustomFields=function(e){var t={},n=Array.from(e.querySelectorAll("[data-ms-member]")).filter((function(e){var t=e.getAttribute("data-ms-member");return"email"!==t&&"password"!==t&&"new-password"!==t&&"current-password"!==t})),o=n.filter((function(e){return("INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName)&&"checkbox"!==e.type&&"radio"!==e.type})),r=n.filter((function(e){return"INPUT"===e.tagName&&"checkbox"===e.type})),s=n.filter((function(e){return"INPUT"===e.tagName&&"radio"===e.type})),i=n.filter((function(e){return"DIV"===e.tagName}));o.map((function(e){var n=e.getAttribute("data-ms-member");t[n]=e.value})),r.map((function(e){var n=e.getAttribute("data-ms-member");t[n]=e.checked.toString()}));var a=s.reduce((function(e,t){return(e[t.getAttribute("data-ms-member")]=e[t.getAttribute("data-ms-member")]||[]).push(t),e}),{});return Object.keys(a).map((function(e){var n=(a[e]||[]).find((function(e){return!0===e.checked}));n&&(t[e]=n.value)})),i.map((function(e){var n=e.getAttribute("data-ms-member"),o=Array.from(e.querySelectorAll("[data-ms-value]")).filter((function(e){return!0===e.checked})).map((function(e){return e.getAttribute("data-ms-value")}));t[n]=o.join(",")})),t};exports.getFormCustomFields=getFormCustomFields;var getSignupFormPlans=function(e){var t=[],n=e.getAttribute("data-ms-plan")||e.getAttribute("data-ms-plan:add")||e.getAttribute("data-ms-plan:update");return n?"no-plan"!==n&&(t=null==n?void 0:n.split(",").map((function(e){return{planId:e}}))):memberstack_1.default.selectedPlan&&(t=[{planId:memberstack_1.default.selectedPlan}]),t};exports.getSignupFormPlans=getSignupFormPlans;var hideAuthDisconnectButtons=function(e){var t=Array.from(e.querySelectorAll("[data-ms-auth-disconnect]")).map((function(e){e.style.display="none"}));return Boolean(t.length>0)};exports.hideAuthDisconnectButtons=hideAuthDisconnectButtons;var showAuthDisconnectButtons=function(e){Array.from(e.querySelectorAll("[data-ms-auth-disconnect]")).map((function(e){e.style.removeProperty("display")}))};exports.showAuthDisconnectButtons=showAuthDisconnectButtons;var createFileInputElement=function(){var e=document.createElement("input");return e.setAttribute("required",""),e.setAttribute("type","file"),e.setAttribute("accept","image/*"),e.setAttribute("profile-image","true"),e.setAttribute("name","profile-image"),e.setAttribute("data-name","File"),e.setAttribute("hidden",""),e.setAttribute("tabindex","-1"),e};exports.createFileInputElement=createFileInputElement;var emitMemberstackReadyEvent=function(){window.$memberstackReady=!0;var e,t="memberstack.ready";"function"==typeof Event?e=new Event(t):(e=document.createEvent("Event")).initEvent(t,!0,!0),document.dispatchEvent(e)};exports.emitMemberstackReadyEvent=emitMemberstackReadyEvent;var inspectorToolInit=function(){return __awaiter(void 0,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,memberstack_1.default.initialAppMemberRefetch()];case 1:return t.sent(),"sandbox"===memberstack_1.default.mode&&memberstack_1.default.methods.openModal("inspector"),[3,3];case 2:return e=t.sent(),console.error(e),[3,3];case 3:return[2]}}))}))};exports.inspectorToolInit=inspectorToolInit},354:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>yp});var o={};function r(e){for(var t=1;tse,hasStandardBrowserEnv:()=>ie,hasStandardBrowserWebWorkerEnv:()=>le});var s=function e(t,n){function o(e,o,s){if("undefined"!=typeof document){"number"==typeof(s=r({},n,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in s)s[a]&&(i+="; "+a,!0!==s[a]&&(i+="="+s[a].split(";")[0]));return document.cookie=e+"="+t.write(o,e)+i}}return Object.create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],o={},r=0;r{const t=a.call(e);return d[t]||(d[t]=t.slice(8,-1).toLowerCase())});var d;const u=e=>(e=e.toLowerCase(),t=>c(t)===e),m=e=>t=>typeof t===e,{isArray:p}=Array,h=m("undefined"),f=u("ArrayBuffer"),g=m("string"),b=m("function"),v=m("number"),w=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==c(e))return!1;const t=l(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},_=u("Date"),$=u("File"),k=u("Blob"),x=u("FileList"),T=u("URLSearchParams");function P(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,r;if("object"!=typeof e&&(e=[e]),p(e))for(o=0,r=e.length;o0;)if(o=n[r],t===o.toLowerCase())return o;return null}const C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,M=e=>!h(e)&&e!==C,L=(I="undefined"!=typeof Uint8Array&&l(Uint8Array),e=>I&&e instanceof I);var I;const A=u("HTMLFormElement"),E=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),q=u("RegExp"),D=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};P(n,((n,r)=>{let s;!1!==(s=t(n,r,e))&&(o[r]=s||n)})),Object.defineProperties(e,o)},R="abcdefghijklmnopqrstuvwxyz",O="0123456789",F={DIGIT:O,ALPHA:R,ALPHA_DIGIT:R+R.toUpperCase()+O},B=u("AsyncFunction"),z={isArray:p,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&b(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||b(e.append)&&("formdata"===(t=c(e))||"object"===t&&b(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer),t},isString:g,isNumber:v,isBoolean:e=>!0===e||!1===e,isObject:w,isPlainObject:y,isUndefined:h,isDate:_,isFile:$,isBlob:k,isRegExp:q,isFunction:b,isStream:e=>w(e)&&b(e.pipe),isURLSearchParams:T,isTypedArray:L,isFileList:x,forEach:P,merge:function e(){const{caseless:t}=M(this)&&this||{},n={},o=(o,r)=>{const s=t&&S(n,r)||r;y(n[s])&&y(o)?n[s]=e(n[s],o):y(o)?n[s]=e({},o):p(o)?n[s]=o.slice():n[s]=o};for(let e=0,t=arguments.length;e(P(t,((t,o)=>{n&&b(t)?e[o]=i(t,n):e[o]=t}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let r,s,i;const a={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)i=r[s],o&&!o(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==n&&l(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:u,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!v(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:A,hasOwnProperty:E,hasOwnProp:E,reduceDescriptors:D,freezeMethods:e=>{D(e,((t,n)=>{if(b(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const o=e[n];b(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},o=e=>{e.forEach((e=>{n[e]=!0}))};return p(e)?o(e):o(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:S,global:C,isContextDefined:M,ALPHABET:F,generateString:(e=16,t=F.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n},isSpecCompliantForm:function(e){return!!(e&&b(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,o)=>{if(w(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[o]=e;const r=p(e)?[]:{};return P(e,((e,t)=>{const s=n(e,o+1);!h(s)&&(r[t]=s)})),t[o]=void 0,r}}return e};return n(e,0)},isAsyncFn:B,isThenable:e=>e&&(w(e)||b(e))&&b(e.then)&&b(e.catch)};function N(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r)}z.inherits(N,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:z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const j=N.prototype,V={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{V[e]={value:e}})),Object.defineProperties(N,V),Object.defineProperty(j,"isAxiosError",{value:!0}),N.from=(e,t,n,o,r,s)=>{const i=Object.create(j);return z.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),N.call(i,e.message,t,n,o,r),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const H=N;function U(e){return z.isPlainObject(e)||z.isArray(e)}function W(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function G(e,t,n){return e?e.concat(t).map((function(e,t){return e=W(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Y=z.toFlatObject(z,{},null,(function(e){return/^is[A-Z]/.test(e)})),Z=function(e,t,n){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!z.isUndefined(t[e])}))).metaTokens,r=n.visitor||c,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(r))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(z.isDate(e))return e.toISOString();if(!a&&z.isBlob(e))throw new H("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(e)||z.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){let a=e;if(e&&!r&&"object"==typeof e)if(z.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(z.isArray(e)&&function(e){return z.isArray(e)&&!e.some(U)}(e)||(z.isFileList(e)||z.endsWith(n,"[]"))&&(a=z.toArray(e)))return n=W(n),a.forEach((function(e,o){!z.isUndefined(e)&&null!==e&&t.append(!0===i?G([n],o,s):null===i?n:n+"[]",l(e))})),!1;return!!U(e)||(t.append(G(r,n,s),l(e)),!1)}const d=[],u=Object.assign(Y,{defaultVisitor:c,convertValue:l,isVisitable:U});if(!z.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!z.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+o.join("."));d.push(n),z.forEach(n,(function(n,s){!0===(!(z.isUndefined(n)||null===n)&&r.call(t,n,z.isString(s)?s.trim():s,o,u))&&e(n,o?o.concat(s):[s])})),d.pop()}}(e),t};function J(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function K(e,t){this._pairs=[],e&&Z(e,this,t)}const X=K.prototype;X.append=function(e,t){this._pairs.push([e,t])},X.toString=function(e){const t=e?function(t){return e.call(this,t,J)}:J;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Q=K;function ee(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function te(e,t,n){if(!t)return e;const o=n&&n.encode||ee,r=n&&n.serialize;let s;if(s=r?r(t,n):z.isURLSearchParams(t)?t.toString():new Q(t,n).toString(o),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const ne=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){z.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},oe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},re={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Q,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},se="undefined"!=typeof window&&"undefined"!=typeof document,ie=(ae="undefined"!=typeof navigator&&navigator.product,se&&["ReactNative","NativeScript","NS"].indexOf(ae)<0);var ae;const le="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ce={...o,...re},de=function(e){function t(e,n,o,r){let s=e[r++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=r>=e.length;return s=!s&&z.isArray(o)?o.length:s,a?(z.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!i):(o[s]&&z.isObject(o[s])||(o[s]=[]),t(e,n,o[s],r)&&z.isArray(o[s])&&(o[s]=function(e){const t={},n=Object.keys(e);let o;const r=n.length;let s;for(o=0;o{t(function(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,n,0)})),n}return null},ue={transitional:oe,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,r=z.isObject(e);if(r&&z.isHTMLForm(e)&&(e=new FormData(e)),z.isFormData(e))return o?JSON.stringify(de(e)):e;if(z.isArrayBuffer(e)||z.isBuffer(e)||z.isStream(e)||z.isFile(e)||z.isBlob(e))return e;if(z.isArrayBufferView(e))return e.buffer;if(z.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Z(e,new ce.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,o){return ce.isNode&&z.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=z.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Z(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||o?(t.setContentType("application/json",!1),function(e,t,n){if(z.isString(e))try{return(0,JSON.parse)(e),z.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ue.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(e&&z.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw H.from(e,H.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ce.classes.FormData,Blob:ce.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],(e=>{ue.headers[e]={}}));const me=ue,pe=z.toObjectSet(["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"]),he=Symbol("internals");function fe(e){return e&&String(e).trim().toLowerCase()}function ge(e){return!1===e||null==e?e:z.isArray(e)?e.map(ge):String(e)}function be(e,t,n,o,r){return z.isFunction(o)?o.call(this,t,n):(r&&(t=n),z.isString(t)?z.isString(o)?-1!==t.indexOf(o):z.isRegExp(o)?o.test(t):void 0:void 0)}class ve{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=fe(t);if(!r)throw new Error("header name must be a non-empty string");const s=z.findKey(o,r);(!s||void 0===o[s]||!0===n||void 0===n&&!1!==o[s])&&(o[s||t]=ge(e))}const s=(e,t)=>z.forEach(e,((e,n)=>r(e,n,t)));return z.isPlainObject(e)||e instanceof this.constructor?s(e,t):z.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?s((e=>{const t={};let n,o,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim(),!n||t[n]&&pe[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)})),t})(e),t):null!=e&&r(t,e,n),this}get(e,t){if(e=fe(e)){const n=z.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(z.isFunction(t))return t.call(this,e,n);if(z.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=fe(e)){const n=z.findKey(this,e);return!(!n||void 0===this[n]||t&&!be(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function r(e){if(e=fe(e)){const r=z.findKey(n,e);!r||t&&!be(0,n[r],r,t)||(delete n[r],o=!0)}}return z.isArray(e)?e.forEach(r):r(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const r=t[n];e&&!be(0,this[r],r,e,!0)||(delete this[r],o=!0)}return o}normalize(e){const t=this,n={};return z.forEach(this,((o,r)=>{const s=z.findKey(n,r);if(s)return t[s]=ge(o),void delete t[r];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(r):String(r).trim();i!==r&&delete t[r],t[i]=ge(o),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return z.forEach(this,((n,o)=>{null!=n&&!1!==n&&(t[o]=e&&z.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[he]=this[he]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=fe(e);t[o]||(function(e,t){const n=z.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[o]=!0)}return z.isArray(e)?e.forEach(o):o(e),this}}ve.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),z.reduceDescriptors(ve.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),z.freezeMethods(ve);const we=ve;function ye(e,t){const n=this||me,o=t||n,r=we.from(o.headers);let s=o.data;return z.forEach(e,(function(e){s=e.call(n,s,r.normalize(),t?t.status:void 0)})),r.normalize(),s}function _e(e){return!(!e||!e.__CANCEL__)}function $e(e,t,n){H.call(this,null==e?"canceled":e,H.ERR_CANCELED,t,n),this.name="CanceledError"}z.inherits($e,H,{__CANCEL__:!0});const ke=$e,xe=ce.hasStandardBrowserEnv?{write(e,t,n,o,r,s){const i=[e+"="+encodeURIComponent(t)];z.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),z.isString(o)&&i.push("path="+o),z.isString(r)&&i.push("domain="+r),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Te(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Pe=ce.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function o(n){let o=n;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=o(window.location.href),function(e){const t=z.isString(e)?o(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Se(e,t){let n=0;const o=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=o[i];r||(r=l),n[s]=a,o[s]=l;let d=i,u=0;for(;d!==s;)u+=n[d++],d%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),l-r{const s=r.loaded,i=r.lengthComputable?r.total:void 0,a=s-n,l=o(a);n=s;const c={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&s<=i?(i-s)/l:void 0,event:r};c[t?"download":"upload"]=!0,e(c)}}const Ce={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let o=e.data;const r=we.from(e.headers).normalize();let s,i,{responseType:a,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}if(z.isFormData(o))if(ce.hasStandardBrowserEnv||ce.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if(!1!==(i=r.getContentType())){const[e,...t]=i?i.split(";").map((e=>e.trim())).filter(Boolean):[];r.setContentType([e||"multipart/form-data",...t].join("; "))}let d=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(t+":"+n))}const u=Te(e.baseURL,e.url);function m(){if(!d)return;const o=we.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders());!function(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new H("Request failed with status code "+n.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:a&&"text"!==a&&"json"!==a?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:o,config:e,request:d}),d=null}if(d.open(e.method.toUpperCase(),te(u,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,"onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))&&setTimeout(m)},d.onabort=function(){d&&(n(new H("Request aborted",H.ECONNABORTED,e,d)),d=null)},d.onerror=function(){n(new H("Network Error",H.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const o=e.transitional||oe;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new H(t,o.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,e,d)),d=null},ce.hasStandardBrowserEnv&&(l&&z.isFunction(l)&&(l=l(e)),l||!1!==l&&Pe(u))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&xe.read(e.xsrfCookieName);t&&r.set(e.xsrfHeaderName,t)}void 0===o&&r.setContentType(null),"setRequestHeader"in d&&z.forEach(r.toJSON(),(function(e,t){d.setRequestHeader(t,e)})),z.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),a&&"json"!==a&&(d.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",Se(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",Se(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=t=>{d&&(n(!t||t.type?new ke(null,e,d):t),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);p&&-1===ce.protocols.indexOf(p)?n(new H("Unsupported protocol "+p+":",H.ERR_BAD_REQUEST,e)):d.send(o||null)}))}};z.forEach(Ce,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Me=e=>`- ${e}`,Le=e=>z.isFunction(e)||null===e||!1===e,Ie=e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let n,o;const r={};for(let s=0;s`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(Me).join("\n"):" "+Me(e[0]):"as no adapter specified";throw new H("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return o};function Ae(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ke(null,e)}function Ee(e){return Ae(e),e.headers=we.from(e.headers),e.data=ye.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ie(e.adapter||me.adapter)(e).then((function(t){return Ae(e),t.data=ye.call(e,e.transformResponse,t),t.headers=we.from(t.headers),t}),(function(t){return _e(t)||(Ae(e),t&&t.response&&(t.response.data=ye.call(e,e.transformResponse,t.response),t.response.headers=we.from(t.response.headers))),Promise.reject(t)}))}const qe=e=>e instanceof we?{...e}:e;function De(e,t){t=t||{};const n={};function o(e,t,n){return z.isPlainObject(e)&&z.isPlainObject(t)?z.merge.call({caseless:n},e,t):z.isPlainObject(t)?z.merge({},t):z.isArray(t)?t.slice():t}function r(e,t,n){return z.isUndefined(t)?z.isUndefined(e)?void 0:o(void 0,e,n):o(e,t,n)}function s(e,t){if(!z.isUndefined(t))return o(void 0,t)}function i(e,t){return z.isUndefined(t)?z.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function a(n,r,s){return s in t?o(n,r):s in e?o(void 0,n):void 0}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>r(qe(e),qe(t),!0)};return z.forEach(Object.keys(Object.assign({},e,t)),(function(o){const s=l[o]||r,i=s(e[o],t[o],o);z.isUndefined(i)&&s!==a||(n[o]=i)})),n}const Re={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Re[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Oe={};Re.transitional=function(e,t,n){function o(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,s)=>{if(!1===e)throw new H(o(r," has been removed"+(t?" in "+t:"")),H.ERR_DEPRECATED);return t&&!Oe[r]&&(Oe[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}};const Fe={assertOptions:function(e,t,n){if("object"!=typeof e)throw new H("options must be an object",H.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const s=o[r],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new H("option "+s+" must be "+n,H.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new H("Unknown option "+s,H.ERR_BAD_OPTION)}},validators:Re},Be=Fe.validators;class ze{constructor(e){this.defaults=e,this.interceptors={request:new ne,response:new ne}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=De(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;void 0!==n&&Fe.assertOptions(n,{silentJSONParsing:Be.transitional(Be.boolean),forcedJSONParsing:Be.transitional(Be.boolean),clarifyTimeoutError:Be.transitional(Be.boolean)},!1),null!=o&&(z.isFunction(o)?t.paramsSerializer={serialize:o}:Fe.assertOptions(o,{encode:Be.function,serialize:Be.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=r&&z.merge(r.common,r[t.method]);r&&z.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=we.concat(s,r);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let d,u=0;if(!a){const e=[Ee.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,l),d=e.length,c=Promise.resolve(t);u{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const o=new Promise((e=>{n.subscribe(e),t=e})).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e((function(e,o,r){n.reason||(n.reason=new ke(e,o,r),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new je((function(t){e=t})),cancel:e}}}const Ve=je,He={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(He).forEach((([e,t])=>{He[t]=e}));const Ue=He,We=function e(t){const n=new Ne(t),o=i(Ne.prototype.request,n);return z.extend(o,Ne.prototype,n,{allOwnKeys:!0}),z.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(De(t,n))},o}(me);We.Axios=Ne,We.CanceledError=ke,We.CancelToken=Ve,We.isCancel=_e,We.VERSION="1.6.8",We.toFormData=Z,We.AxiosError=H,We.Cancel=We.CanceledError,We.all=function(e){return Promise.all(e)},We.spread=function(e){return function(t){return e.apply(null,t)}},We.isAxiosError=function(e){return z.isObject(e)&&!0===e.isAxiosError},We.mergeConfig=De,We.AxiosHeaders=we,We.formToJSON=e=>de(z.isHTMLForm(e)?new FormData(e):e),We.getAdapter=Ie,We.HttpStatusCode=Ue,We.default=We;const Ge=We;var Ye,Ze=Object.defineProperty,Je=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,tt=(e,t,n)=>t in e?Ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nt=(e,t)=>{for(var n in t||(t={}))Qe.call(t,n)&&tt(e,n,t[n]);if(Xe)for(var n of Xe(t))et.call(t,n)&&tt(e,n,t[n]);return e},ot=(e,t)=>Je(e,Ke(t)),rt=(e,t,n)=>new Promise(((o,r)=>{var s=e=>{try{a(n.next(e))}catch(e){r(e)}},i=e=>{try{a(n.throw(e))}catch(e){r(e)}},a=e=>e.done?o(e.value):Promise.resolve(e.value).then(s,i);a((n=n.apply(e,t)).next())}));function st(){}"undefined"!=typeof window&&((Ye=document.createElement("div")).setAttribute("id","ms-status-close"),Ye.setAttribute("data-ms-message-close",""),Ye.innerHTML='');var it,at=e=>e;function lt(e,t){for(const n in t)e[n]=t[n];return e}function ct(e){return e()}function dt(){return Object.create(null)}function ut(e){e.forEach(ct)}function mt(e){return"function"==typeof e}function pt(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function ht(e,t){return it||(it=document.createElement("a")),it.href=t,e===it.href}function ft(e,...t){if(null==e)return st;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function gt(e,t,n){e.$$.on_destroy.push(ft(t,n))}function bt(e,t,n,o){return e[1]&&o?lt(n.ctx.slice(),e[1](o(t))):n.ctx}function vt(e){const t={};for(const n in e)"$"!==n[0]&&(t[n]=e[n]);return t}function wt(e,t){const n={};t=new Set(t);for(const o in e)t.has(o)||"$"===o[0]||(n[o]=e[o]);return n}function yt(e){return null==e?"":e}var _t="undefined"!=typeof window,$t=_t?()=>window.performance.now():()=>Date.now(),kt=_t?e=>requestAnimationFrame(e):st,xt=new Set;function Tt(e){xt.forEach((t=>{t.c(e)||(xt.delete(t),t.f())})),0!==xt.size&&kt(Tt)}function Pt(e,t){e.appendChild(t)}function St(e,t,n){const o=Ct(e);if(!o.getElementById(t)){const e=qt("style");e.id=t,e.textContent=n,Lt(o,e)}}function Ct(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Mt(e){const t=qt("style");return Lt(Ct(e),t),t.sheet}function Lt(e,t){return Pt(e.head||e,t),t.sheet}function It(e,t,n){e.insertBefore(t,n||null)}function At(e){e.parentNode&&e.parentNode.removeChild(e)}function Et(e,t){for(let n=0;ne.removeEventListener(t,n,o)}function zt(e){return function(t){return t.preventDefault(),e.call(this,t)}}function Nt(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function jt(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Vt(e,t){t=""+t,e.data!==t&&(e.data=t)}function Ht(e,t){e.value=null==t?"":t}function Ut(e,t,n,o){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,o?"important":"")}function Wt(e,t,n){e.classList[n?"add":"remove"](t)}var Gt=class{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,n=null){this.e||(this.is_svg?this.e=Dt(t.nodeName):this.e=qt(11===t.nodeType?"TEMPLATE":t.nodeName),this.t="TEMPLATE"!==t.tagName?t:t.content,this.c(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(e){for(let t=0;t>>0}(d)}_${a}`,m=Ct(e),{stylesheet:p,rules:h}=Jt.get(m)||function(e,t){const n={stylesheet:Mt(t),rules:{}};return Jt.set(e,n),n}(m,e);h[u]||(h[u]=!0,p.insertRule(`@keyframes ${u} ${d}`,p.cssRules.length));const f=e.style.animation||"";return e.style.animation=`${f?`${f}, `:""}${u} ${o}ms linear ${r}ms 1 both`,Kt+=1,u}function Qt(e){Zt=e}function en(){if(!Zt)throw new Error("Function called outside component initialization");return Zt}function tn(e){en().$$.on_mount.push(e)}function nn(e){en().$$.on_destroy.push(e)}var on=[],rn=[],sn=[],an=[],ln=Promise.resolve(),cn=!1;function dn(e){sn.push(e)}function un(e){an.push(e)}var mn,pn=new Set,hn=0;function fn(){if(0!==hn)return;const e=Zt;do{try{for(;hn{wn.delete(e),o&&(n&&e.d(1),o())})),e.o(t)}else o&&o()}var xn={duration:0};function Tn(e,t,n,o){const r={direction:"both"};let s=t(e,n,r),i=o?0:1,a=null,l=null,c=null;function d(){c&&function(e,t){const n=(e.style.animation||"").split(", "),o=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),r=n.length-o.length;r&&(e.style.animation=o.join(", "),(Kt-=r)||kt((()=>{Kt||(Jt.forEach((e=>{const{ownerNode:t}=e.stylesheet;t&&At(t)})),Jt.clear())})))}(e,c)}function u(e,t){const n=e.b-i;return t*=Math.abs(n),{a:i,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function m(t){const{delay:n=0,duration:o=300,easing:r=at,tick:m=st,css:p}=s||xn,h={start:$t()+n,b:t};t||(h.group=vn,vn.r+=1),a||l?l=h:(p&&(d(),c=Xt(e,i,t,o,n,r,p)),t&&m(0,1),a=u(h,o),dn((()=>bn(e,t,"start"))),function(e){let t;0===xt.size&&kt(Tt),new Promise((n=>{xt.add(t={c:e,f:n})}))}((t=>{if(l&&t>l.start&&(a=u(l,o),l=null,bn(e,a.b,"start"),p&&(d(),c=Xt(e,i,a.b,a.duration,0,r,s.css))),a)if(t>=a.end)m(i=a.b,1-i),bn(e,a.b,"end"),l||(a.b?d():--a.group.r||ut(a.group.c)),a=null;else if(t>=a.start){const e=t-a.start;i=a.a+a.d*r(e/a.duration),m(i,1-i)}return!(!a&&!l)})))}return{run(e){mt(s)?(mn||(mn=Promise.resolve()).then((()=>{mn=null})),mn).then((()=>{s=s(r),m(e)})):m(e)},end(){d(),a=l=null}}}function Pn(e,t){const n=t.token={};function o(e,o,r,s){if(t.token!==n)return;t.resolved=s;let i=t.ctx;void 0!==r&&(i=i.slice(),i[r]=s);const a=e&&(t.current=e)(i);let l=!1;t.block&&(t.blocks?t.blocks.forEach(((e,n)=>{n!==o&&e&&(yn(),kn(e,1,1,(()=>{t.blocks[n]===e&&(t.blocks[n]=null)})),_n())})):t.block.d(1),a.c(),$n(a,1),a.m(t.mount(),t.anchor),l=!0),t.block=a,t.blocks&&(t.blocks[o]=a),l&&fn()}if(!(r=e)||"object"!=typeof r&&"function"!=typeof r||"function"!=typeof r.then){if(t.current!==t.then)return o(t.then,1,t.value,e),!0;t.resolved=e}else{const n=en();if(e.then((e=>{Qt(n),o(t.then,1,t.value,e),Qt(null)}),(e=>{if(Qt(n),o(t.catch,2,t.error,e),Qt(null),!t.hasCatch)throw e})),t.current!==t.pending)return o(t.pending,0),!0}var r}function Sn(e,t,n){const o=t.slice(),{resolved:r}=e;e.current===e.then&&(o[e.value]=r),e.current===e.catch&&(o[e.error]=r),e.block.p(o,n)}function Cn(e,t){e.d(1),t.delete(e.key)}function Mn(e,t){kn(e,1,1,(()=>{t.delete(e.key)}))}function Ln(e,t,n,o,r,s,i,a,l,c,d,u){let m=e.length,p=s.length,h=m;const f={};for(;h--;)f[e[h].key]=h;const g=[],b=new Map,v=new Map,w=[];for(h=p;h--;){const e=u(r,s,h),a=n(e);let l=i.get(a);l?o&&w.push((()=>l.p(e,t))):(l=c(a,e),l.c()),b.set(a,g[h]=l),a in f&&v.set(a,Math.abs(h-f[a]))}const y=new Set,_=new Set;function $(e){$n(e,1),e.m(a,d),i.set(e.key,e),d=e.first,p--}for(;m&&p;){const t=g[p-1],n=e[m-1],o=t.key,r=n.key;t===n?(d=t.first,m--,p--):b.has(r)?!i.has(o)||y.has(o)?$(t):_.has(r)?m--:v.get(o)>v.get(r)?(_.add(o),$(t)):(y.add(r),m--):(l(n,i),m--)}for(;m--;){const t=e[m];b.has(t.key)||l(t,i)}for(;p;)$(g[p-1]);return ut(w),g}function In(e,t,n){const o=e.$$.props[t];void 0!==o&&(e.$$.bound[o]=n,n(e.$$.ctx[o]))}function An(e){e&&e.c()}function En(e,t,n,o){const{fragment:r,after_update:s}=e.$$;r&&r.m(t,n),o||dn((()=>{const t=e.$$.on_mount.map(ct).filter(mt);e.$$.on_destroy?e.$$.on_destroy.push(...t):ut(t),e.$$.on_mount=[]})),s.forEach(dn)}function qn(e,t){const n=e.$$;null!==n.fragment&&(function(e){const t=[],n=[];sn.forEach((o=>-1===e.indexOf(o)?t.push(o):n.push(o))),n.forEach((e=>e())),sn=t}(n.after_update),ut(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Dn(e,t,n,o,r,s,i,a=[-1]){const l=Zt;Qt(e);const c=e.$$={fragment:null,ctx:[],props:s,update:st,not_equal:r,bound:dt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:dt(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};i&&i(c.root);let d=!1;if(c.ctx=n?n(e,t.props||{},((t,n,...o)=>{const s=o.length?o[0]:n;return c.ctx&&r(c.ctx[t],c.ctx[t]=s)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](s),d&&function(e,t){-1===e.$$.dirty[0]&&(on.push(e),cn||(cn=!0,ln.then(fn)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}},On=[];function Fn(e,t=st){let n;const o=new Set;function r(t){if(pt(e,t)&&(e=t,n)){const t=!On.length;for(const t of o)t[1](),On.push(t,e);if(t){for(let e=0;e{o.delete(a),0===o.size&&n&&(n(),n=null)}}}}var Bn=Fn({initialValue:!0,customFields:[],isPaid:!1,branding:{logo:"",colors:{lightMode:{}}},authProviders:[],additionalAuthMethods:{passwordless:{enabled:!1,isDefault:!1}}}),zn=Fn({text:{}}),Nn=e=>({matches:1&e}),jn=e=>({matches:e[0]});function Vn(e){let t;const n=e[4].default,o=function(e,t,n,o){if(e){const r=bt(e,t,n,o);return e[0](r)}}(n,e,e[3],jn);return{c(){o&&o.c()},m(e,n){o&&o.m(e,n),t=!0},p(e,[r]){o&&o.p&&(!t||9&r)&&function(e,t,n,o,r,s){if(r){const i=bt(t,n,o,s);e.p(i,r)}}(o,n,e,e[3],t?function(e,t,n,o){if(e[2]&&o){const r=e[2](o(n));if(void 0===t.dirty)return r;if("object"==typeof r){const e=[],n=Math.max(t.dirty.length,r.length);for(let o=0;o32){const t=[],n=e.ctx.length/32;for(let e=0;e(n(2,l=!0),()=>{d()}))),e.$$set=e=>{"query"in e&&n(1,a=e.query),"$$scope"in e&&n(3,i=e.$$scope)},e.$$.update=()=>{var t;6&e.$$.dirty&&l&&(d(),t=a,o=window.matchMedia(t),r=e=>n(0,c=e.matches),o.addListener(r),n(0,c=o.matches))},[c,a,l,i,s]}var Un=class extends Rn{constructor(e){super(),Dn(this,e,Hn,Vn,pt,{query:1})}};function Wn(e){let t,n,o;return{c(){t=Dt("svg"),n=Dt("path"),o=Dt("animateTransform"),jt(o,"attributeName","transform"),jt(o,"attributeType","xml"),jt(o,"dur","0.6s"),jt(o,"from","0 25 25"),jt(o,"repeatCount","indefinite"),jt(o,"to","360 25 25"),jt(o,"type","rotate"),jt(n,"fill","currentColor"),jt(n,"d","m43.935 25.145c0-10.318-8.364-18.683-18.683-18.683-10.318 0-18.683 8.365-18.683 18.683h4.068c0-8.071 6.543-14.615 14.615-14.615s14.615 6.543 14.615 14.615h4.068z"),jt(t,"width","40px"),jt(t,"height","40px"),jt(t,"enable-background","new 0 0 50 50"),Ut(t,"z-index","1000000"),jt(t,"version","1.1"),jt(t,"viewBox","0 0 50 50"),jt(t,"xml:space","preserve"),jt(t,"xmlns","http://www.w3.org/2000/svg")},m(e,r){It(e,t,r),Pt(t,n),Pt(n,o)},p:st,i:st,o:st,d(e){e&&At(t)}}}var Gn=class extends Rn{constructor(e){super(),Dn(this,e,null,Wn,pt,{})}};function Yn(e){let t,n,o;return n=new Gn({}),{c(){t=qt("div"),An(n.$$.fragment),jt(t,"class","ms__loader")},m(e,r){It(e,t,r),En(n,t,null),o=!0},p:st,i(e){o||($n(n.$$.fragment,e),o=!0)},o(e){kn(n.$$.fragment,e),o=!1},d(e){e&&At(t),qn(n)}}}var Zn=class extends Rn{constructor(e){super(),Dn(this,e,null,Yn,pt,{})}};function Jn(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"shape-rendering","geometricPrecision"),jt(n,"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"),jt(t,"fill","none"),Ut(t,"width","100%"),jt(t,"viewBox","0 0 14 14"),jt(t,"xmlns","http://www.w3.org/2000/svg")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var Kn=class extends Rn{constructor(e){super(),Dn(this,e,null,Jn,pt,{})}};function Xn(e){let t,n,o,r,s,i;return o=new Kn({}),{c(){t=qt("div"),n=qt("button"),An(o.$$.fragment),jt(t,"class","ms-modal__close")},m(a,l){It(a,t,l),Pt(t,n),En(o,n,null),r=!0,s||(i=Bt(n,"click",(function(){mt(e[0])&&e[0].apply(this,arguments)})),s=!0)},p(t,[n]){e=t},i(e){r||($n(o.$$.fragment,e),r=!0)},o(e){kn(o.$$.fragment,e),r=!1},d(e){e&&At(t),qn(o),s=!1,i()}}}function Qn(e,t,n){let{closeModal:o}=t;return e.$$set=e=>{"closeModal"in e&&n(0,o=e.closeModal)},[o]}var eo=class extends Rn{constructor(e){super(),Dn(this,e,Qn,Xn,pt,{closeModal:0})}};function to(e){let t,n,o,r,s,i,a;return{c(){t=Dt("svg"),n=Dt("path"),o=Dt("path"),r=Dt("path"),s=Dt("path"),i=Dt("path"),a=Dt("path"),jt(n,"d","m259.078 190.582 16.797-39.611c7.315-20.421 26.982-34.665 49.897-34.665 13.187 0 25.344 4.817 34.6 12.818l32.818 73.118c9.656 21.709-.097 47.144-21.786 56.809-21.688 9.666-47.097-.098-56.753-21.807l-38.573-86.723-17 40.088v-.027Z"),jt(n,"fill","#2AA8FF"),jt(o,"d","m111.31 169.64 8.002-18.679c-7.22-20.585-26.82-35.345-49.866-35.345-12.678 0-24.901 4.865-34.007 12.314 6.6063-2.796 14.34-3.575 21.988-3.575 26.999 0 49.435 19.445 53.884 45.285z"),jt(r,"d","m111.31 169.64-28.66 68.126c-9.2762 21.875-34.511 32.081-56.365 22.795-21.853-9.285-32.049-34.545-22.773-56.42l31.925-76.211c6.7448-2.988 14.142-3.575 21.988-3.575 27.086 0 49.537 19.321 53.884 45.285z"),jt(r,"fill","#393939"),jt(s,"d","m197.57 115.46-39.756-89.506c-7.148-16.07-22.929-25.595-39.443-25.537-16.786-0.058576-32.766 9.7896-39.736 26.227l-43.199 101.28c9.1064-7.45 21.329-12.314 34.008-12.314 23.046 0 42.646 14.76 49.866 35.345l0.093 0.337c5.784 1.658 11.893 2.546 18.21 2.546 26.578 0 49.487-15.722 59.958-38.382z"),jt(s,"fill","#017ACE"),jt(i,"d","m197.57 115.46c-10.071 21.796-31.651 37.172-56.934 38.314-1.052 0.05-2.11 0.075-3.175 0.075-6.316 0-12.425-0.888-18.21-2.546l38.425 86.387c3.996 8.986 10.692 15.926 18.706 20.288 1.908 1.196 3.935 2.257 6.073 3.165 21.853 9.286 47.088-0.92 56.364-22.795l37.055-87.381c7.315-20.421 26.982-34.665 49.896-34.665 13.188 0 25.345 4.817 34.601 12.818l-45.994-103.17c-7.148-16.07-22.929-25.595-39.442-25.537-16.786-0.058576-32.767 9.7896-39.737 26.227l-37.628 88.816z"),jt(i,"fill","#AEDEFF"),jt(a,"d","m325.77 116.31c-22.915 0-42.379 13.795-49.694 34.216l8.919 20.052c5.873-25.763 28.931-44.989 56.481-44.989 6.67 0 12.931 1.465 18.894 3.539-9.256-8-21.413-12.818-34.6-12.818z"),jt(a,"fill","#2D91D7"),Ut(t,"width","100%"),jt(t,"viewBox","0 0 397 265"),jt(t,"xmlns","http://www.w3.org/2000/svg")},m(e,l){It(e,t,l),Pt(t,n),Pt(t,o),Pt(t,r),Pt(t,s),Pt(t,i),Pt(t,a)},p:st,i:st,o:st,d(e){e&&At(t)}}}var no=class extends Rn{constructor(e){super(),Dn(this,e,null,to,pt,{})}};function oo(e){let t,n;return t=new no({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},p:st,i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function ro(e){let t,n,o;return{c(){t=qt("img"),ht(t.src,n=e[0].branding.logo)||jt(t,"src",n),jt(t,"alt",o=e[0].name),jt(t,"data-cy","logo")},m(e,n){It(e,t,n)},p(e,r){1&r&&!ht(t.src,n=e[0].branding.logo)&&jt(t,"src",n),1&r&&o!==(o=e[0].name)&&jt(t,"alt",o)},i:st,o:st,d(e){e&&At(t)}}}function so(e){let t,n,o,r;const s=[ro,oo],i=[];function a(e,t){return e[0].branding.logo?0:1}return n=a(e),o=i[n]=s[n](e),{c(){t=qt("figure"),o.c(),jt(t,"class","ms-modal__figure")},m(e,o){It(e,t,o),i[n].m(t,null),r=!0},p(e,[r]){let l=n;n=a(e),n===l?i[n].p(e,r):(yn(),kn(i[l],1,1,(()=>{i[l]=null})),_n(),o=i[n],o?o.p(e,r):(o=i[n]=s[n](e),o.c()),$n(o,1),o.m(t,null))},i(e){r||($n(o),r=!0)},o(e){kn(o),r=!1},d(e){e&&At(t),i[n].d()}}}function io(e,t,n){let o={};return Bn.subscribe((e=>{n(0,o=e)})),[o]}var ao=class extends Rn{constructor(e){super(),Dn(this,e,io,so,pt,{})}};function lo(e){let t,n,o;return n=new Gn({}),{c(){t=qt("button"),An(n.$$.fragment),jt(t,"class","ms-form__button"),jt(t,"type","button"),Ut(t,"background-color",e[2]),t.disabled=!0},m(e,r){It(e,t,r),En(n,t,null),o=!0},p(e,n){(!o||4&n)&&Ut(t,"background-color",e[2])},i(e){o||($n(n.$$.fragment,e),o=!0)},o(e){kn(n.$$.fragment,e),o=!1},d(e){e&&At(t),qn(n)}}}function co(e){let t,n;return{c(){t=qt("button"),n=Rt(e[0]),jt(t,"class","ms-form__button"),jt(t,"type","submit"),Ut(t,"background-color",e[2])},m(e,o){It(e,t,o),Pt(t,n)},p(e,o){1&o&&Vt(n,e[0]),4&o&&Ut(t,"background-color",e[2])},i:st,o:st,d(e){e&&At(t)}}}function uo(e){let t,n,o,r;const s=[co,lo],i=[];function a(e,t){return e[1]?1:0}return n=a(e),o=i[n]=s[n](e),{c(){t=qt("div"),o.c()},m(e,o){It(e,t,o),i[n].m(t,null),r=!0},p(e,[r]){let l=n;n=a(e),n===l?i[n].p(e,r):(yn(),kn(i[l],1,1,(()=>{i[l]=null})),_n(),o=i[n],o?o.p(e,r):(o=i[n]=s[n](e),o.c()),$n(o,1),o.m(t,null))},i(e){r||($n(o),r=!0)},o(e){kn(o),r=!1},d(e){e&&At(t),i[n].d()}}}function mo(e,t,n){let o;gt(e,Bn,(e=>n(3,o=e)));let{buttonText:r="Submit"}=t,{isLoading:s=!1}=t,i="rgb(41, 98, 255)";return o.branding.colors.lightMode.primaryButton&&(i=o.branding.colors.lightMode.primaryButton),e.$$set=e=>{"buttonText"in e&&n(0,r=e.buttonText),"isLoading"in e&&n(1,s=e.isLoading)},[r,s,i]}var po=class extends Rn{constructor(e){super(),Dn(this,e,mo,uo,pt,{buttonText:0,isLoading:1})}};function ho(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","m10 0c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10zm1 15h-2v-2h2v2zm0-4h-2v-6h2v6z"),jt(t,"fill","none"),jt(t,"viewBox","0 0 20 20"),jt(t,"xmlns","http://www.w3.org/2000/svg")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var fo=class extends Rn{constructor(e){super(),Dn(this,e,null,ho,pt,{})}};function go(e){let t,n,o,r,s;return n=new fo({}),{c(){t=qt("div"),An(n.$$.fragment),o=Ot(),r=Rt(e[4]),jt(t,"class","ms-form__error")},m(e,i){It(e,t,i),En(n,t,null),Pt(t,o),Pt(t,r),s=!0},p:st,i(e){s||($n(n.$$.fragment,e),s=!0)},o(e){kn(n.$$.fragment,e),s=!1},d(e){e&&At(t),qn(n)}}}function bo(e){let t,n,o,r,s,i,a,l,c,d=e[2]&&go(e);return{c(){t=qt("div"),n=qt("label"),o=Rt(e[3]),r=Ot(),s=qt("input"),i=Ot(),d&&d.c(),jt(n,"class","ms-form__label"),jt(n,"for","eml-"+e[5]),jt(s,"class","ms-form__input"),jt(s,"id","eml-"+e[5]),jt(s,"type","email"),jt(s,"placeholder",e[1]),jt(s,"name","eml"),s.required=!0,jt(t,"class","ms-form__group")},m(u,m){It(u,t,m),Pt(t,n),Pt(n,o),Pt(t,r),Pt(t,s),Ht(s,e[0]),Pt(t,i),d&&d.m(t,null),a=!0,l||(c=[Bt(s,"input",e[6]),Bt(s,"input",e[8])],l=!0)},p(e,[n]){(!a||2&n)&&jt(s,"placeholder",e[1]),1&n&&s.value!==e[0]&&Ht(s,e[0]),e[2]?d?(d.p(e,n),4&n&&$n(d,1)):(d=go(e),d.c(),$n(d,1),d.m(t,null)):d&&(yn(),kn(d,1,1,(()=>{d=null})),_n())},i(e){a||($n(d),a=!0)},o(e){kn(d),a=!1},d(e){e&&At(t),d&&d.d(),l=!1,ut(c)}}}function vo(e,t,n){let o;gt(e,zn,(e=>n(9,o=e)));let{emailInputValid:r=!1}=t,{emailValue:s}=t,{placeholder:i="example@domain.com"}=t,a=o.text,l=a.email_address||"Email Address",c=!1,d=a.email_error_message||"Please enter a valid email address";const u=Math.random().toString(36).substring(2,10);return e.$$set=e=>{"emailInputValid"in e&&n(7,r=e.emailInputValid),"emailValue"in e&&n(0,s=e.emailValue),"placeholder"in e&&n(1,i=e.placeholder)},[s,i,c,l,d,u,e=>{!e.target.value.match(/.+@.+\..{2,}/)&&e.target.value.length>0?(n(7,r=!1),n(2,c=!0)):(n(7,r=!0),n(2,c=!1))},r,function(){s=this.value,n(0,s)}]}var wo=class extends Rn{constructor(e){super(),Dn(this,e,vo,bo,pt,{emailInputValid:7,emailValue:0,placeholder:1})}};function yo(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","m11 0.5c-5 0-9.27 3.11-11 7.5 1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"),jt(t,"class","ms-form__eye"),jt(t,"fill","none"),jt(t,"viewBox","0 0 22 16"),jt(t,"xmlns","http://www.w3.org/2000/svg")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var _o=class extends Rn{constructor(e){super(),Dn(this,e,null,yo,pt,{})}};function $o(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","m11 4c2.76 0 5 2.24 5 5 0 0.65-0.13 1.26-0.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74 0.25-3.98 0.7l2.16 2.16c0.57-0.23 1.18-0.36 1.83-0.36zm-10-2.73 2.74 2.74c-1.66 1.29-2.96 3.01-3.74 4.99 1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-0.3 4.38-0.84l0.42 0.42 2.93 2.92 1.27-1.27-17.73-17.73-1.27 1.27zm5.53 5.53 1.55 1.55c-0.05 0.21-0.08 0.43-0.08 0.65 0 1.66 1.34 3 3 3 0.22 0 0.44-0.03 0.65-0.08l1.55 1.55c-0.67 0.33-1.41 0.53-2.2 0.53-2.76 0-5-2.24-5-5 0-0.79 0.2-1.53 0.53-2.2zm4.31-0.78 3.15 3.15 0.02-0.16c0-1.66-1.34-3-3-3l-0.17 0.01z"),jt(t,"class","ms-form__eye-slash"),jt(t,"fill","none"),jt(t,"viewBox","0 0 22 19"),jt(t,"xmlns","http://www.w3.org/2000/svg")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var ko=class extends Rn{constructor(e){super(),Dn(this,e,null,$o,pt,{})}};function xo(e){let t,n,o,r;return{c(){t=qt("div"),n=qt("button"),n.textContent=`${e[8].forgot_password||"Forgot Password?"}`,jt(n,"data-cy","forgot-password-btn"),jt(n,"class","ms-form__button ms-form__button--text"),jt(n,"tabindex","-1"),jt(n,"type","button"),jt(t,"class","ms-form__label ms-form__label--right")},m(s,i){It(s,t,i),Pt(t,n),o||(r=Bt(n,"click",e[14]),o=!0)},p:st,d(e){e&&At(t),o=!1,r()}}}function To(e){let t,n;return t=new ko({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Po(e){let t,n;return t=new _o({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function So(e){let t,n,o,r,s;return n=new fo({}),{c(){t=qt("div"),An(n.$$.fragment),o=Ot(),r=Rt(e[9]),jt(t,"class","ms-form__error")},m(e,i){It(e,t,i),En(n,t,null),Pt(t,o),Pt(t,r),s=!0},p:st,i(e){s||($n(n.$$.fragment,e),s=!0)},o(e){kn(n.$$.fragment,e),s=!1},d(e){e&&At(t),qn(n)}}}function Co(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b,v=e[2]&&xo(e);const w=[Po,To],y=[];function _(e,t){return e[5]?1:0}m=_(e),p=y[m]=w[m](e);let $=e[6]&&So(e);return{c(){t=qt("div"),n=qt("div"),o=qt("label"),r=Rt(e[3]),s=Ot(),v&&v.c(),i=Ot(),a=qt("div"),l=qt("input"),d=Ot(),u=qt("div"),p.c(),h=Ot(),$&&$.c(),jt(o,"class","ms-form__label"),jt(o,"for","psw-"+e[10]),jt(n,"class","ms-form__flex"),jt(l,"data-ms-internal-password",""),jt(l,"class","ms-form__input ms-form__input--password"),jt(l,"id","psw-"+e[10]),jt(l,"type",e[7]),jt(l,"placeholder",e[4]),l.value=c=e[0]||"",jt(l,"name","psw"),l.required=!0,jt(u,"class","ms-form__show-toggle"),jt(u,"id","togglePassword"),jt(a,"class","ms-form__password-container"),jt(t,"class","ms-form__group")},m(c,p){It(c,t,p),Pt(t,n),Pt(n,o),Pt(o,r),Pt(n,s),v&&v.m(n,null),Pt(t,i),Pt(t,a),Pt(a,l),Pt(a,d),Pt(a,u),y[m].m(u,null),Pt(t,h),$&&$.m(t,null),f=!0,g||(b=[Bt(l,"input",e[12]),Bt(u,"click",e[11])],g=!0)},p(e,[o]){(!f||8&o)&&Vt(r,e[3]),e[2]?v?v.p(e,o):(v=xo(e),v.c(),v.m(n,null)):v&&(v.d(1),v=null),(!f||128&o)&&jt(l,"type",e[7]),(!f||16&o)&&jt(l,"placeholder",e[4]),(!f||1&o&&c!==(c=e[0]||"")&&l.value!==c)&&(l.value=c);let s=m;m=_(e),m!==s&&(yn(),kn(y[s],1,1,(()=>{y[s]=null})),_n(),p=y[m],p||(p=y[m]=w[m](e),p.c()),$n(p,1),p.m(u,null)),e[6]?$?($.p(e,o),64&o&&$n($,1)):($=So(e),$.c(),$n($,1),$.m(t,null)):$&&(yn(),kn($,1,1,(()=>{$=null})),_n())},i(e){f||($n(p),$n($),f=!0)},o(e){kn(p),kn($),f=!1},d(e){e&&At(t),v&&v.d(),y[m].d(),$&&$.d(),g=!1,ut(b)}}}function Mo(e,t,n){let o,r;gt(e,zn,(e=>n(15,r=e)));let s=r.text,{showForgotPasswordLabel:i=!1}=t,{passwordInputValid:a=!1}=t,{passwordLabel:l=s.password||"Password"}=t,{passwordPlaceholder:c="Enter Password"}=t,{passwordValue:d}=t,{display:u}=t,m=!1,p=s.password_error_message||"Minimum 8 characters required",h=!1;const f=Math.random().toString(36).substring(2,10);return e.$$set=e=>{"showForgotPasswordLabel"in e&&n(2,i=e.showForgotPasswordLabel),"passwordInputValid"in e&&n(13,a=e.passwordInputValid),"passwordLabel"in e&&n(3,l=e.passwordLabel),"passwordPlaceholder"in e&&n(4,c=e.passwordPlaceholder),"passwordValue"in e&&n(0,d=e.passwordValue),"display"in e&&n(1,u=e.display)},e.$$.update=()=>{32&e.$$.dirty&&n(7,o=h?"text":"password")},[d,u,i,l,c,h,m,o,s,p,f,function(){n(5,h=!h)},function(e){n(0,d=e.target.value),(e=>{e.target.value.length>=8?(n(13,a=!0),n(6,m=!1)):(n(13,a=!1),n(6,m=!0))})(e)},a,()=>n(1,u="forgot_password")]}var Lo=class extends Rn{constructor(e){super(),Dn(this,e,Mo,Co,pt,{showForgotPasswordLabel:2,passwordInputValid:13,passwordLabel:3,passwordPlaceholder:4,passwordValue:0,display:1})}};function Io(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"shape-rendering","geometricPrecision"),jt(n,"d","m9 0-9 4v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12v-6l-9-4zm-2 16-4-4 1.41-1.41 2.59 2.58 6.59-6.59 1.41 1.42-8 8z"),jt(t,"fill","none"),jt(t,"viewBox","0 0 18 22"),jt(t,"xmlns","http://www.w3.org/2000/svg")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var Ao=class extends Rn{constructor(e){super(),Dn(this,e,null,Io,pt,{})}};function Eo(e){let t,n,o,r,s;return o=new Ao({}),{c(){t=qt("div"),n=qt("a"),An(o.$$.fragment),r=Rt(" Secured by Memberstack"),jt(n,"href","https://www.memberstack.com"),jt(n,"target","_blank"),jt(t,"class","ms-modal__footer")},m(e,i){It(e,t,i),Pt(t,n),En(o,n,null),Pt(n,r),s=!0},i(e){s||($n(o.$$.fragment,e),s=!0)},o(e){kn(o.$$.fragment,e),s=!1},d(e){e&&At(t),qn(o)}}}function qo(e){let t,n,o=!e[0].isPaid&&Eo();return{c(){o&&o.c(),t=Ft()},m(e,r){o&&o.m(e,r),It(e,t,r),n=!0},p(e,[n]){e[0].isPaid?o&&(yn(),kn(o,1,1,(()=>{o=null})),_n()):o?1&n&&$n(o,1):(o=Eo(),o.c(),$n(o,1),o.m(t.parentNode,t))},i(e){n||($n(o),n=!0)},o(e){kn(o),n=!1},d(e){o&&o.d(e),e&&At(t)}}}function Do(e,t,n){let o;return gt(e,Bn,(e=>n(0,o=e))),[o]}var Ro=class extends Rn{constructor(e){super(),Dn(this,e,Do,qo,pt,{})}};function Oo(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"d","M19,4H5A3,3,0,0,0,2,7V17a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V7A3,3,0,0,0,19,4ZM5,6H19a1,1,0,0,1,1,1l-8,4.88L4,7A1,1,0,0,1,5,6ZM20,17a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V9.28l7.48,4.57a1,1,0,0,0,1,0L20,9.28Z"),jt(t,"class","ms-email"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"viewBox","0 0 24 24"),jt(t,"fill","currentColor")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var Fo=class extends Rn{constructor(e){super(),Dn(this,e,null,Oo,pt,{})}},Bo=Fn({passwordlessModalType:"",passwordlessEmail:"",passwordlessMode:!1,passwordlessCustomFields:[],passwordlessPlans:[]}),zo=e=>{Bo.update((t=>(t.passwordlessModalType=e,t)))},No=e=>{Bo.update((t=>(t.passwordlessEmail=e,t)))},jo=e=>{Bo.update((t=>(t.passwordlessMode=e,t)))};function Vo(e,t,n){const o=e.slice();return o[22]=t[n],o}function Ho(e){let t,n;return t=new eo({props:{closeModal:e[1]}}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},p(e,n){const o={};2&n&&(o.closeModal=e[1]),t.$set(o)},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Uo(e){let t,n;return t=new po({props:{buttonText:e[8].login_with_email||"Continue with Email",isLoading:e[3]}}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},p(e,n){const o={};8&n&&(o.isLoading=e[3]),t.$set(o)},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Wo(e){let t,n,o,r,s,i;function a(t){e[14](t)}function l(t){e[15](t)}let c={passwordPlaceholder:e[8].login_password_placeholder,"||":!0,showForgotPasswordLabel:!0};return void 0!==e[5]&&(c.passwordInputValid=e[5]),void 0!==e[0]&&(c.display=e[0]),t=new Lo({props:c}),rn.push((()=>In(t,"passwordInputValid",a))),rn.push((()=>In(t,"display",l))),s=new po({props:{buttonText:e[8].login||"Log in",isLoading:e[3],"data-cy":"submit-button"}}),{c(){An(t.$$.fragment),r=Ot(),An(s.$$.fragment)},m(e,n){En(t,e,n),It(e,r,n),En(s,e,n),i=!0},p(e,r){const i={};!n&&32&r&&(n=!0,i.passwordInputValid=e[5],un((()=>n=!1))),!o&&1&r&&(o=!0,i.display=e[0],un((()=>o=!1))),t.$set(i);const a={};8&r&&(a.isLoading=e[3]),s.$set(a)},i(e){i||($n(t.$$.fragment,e),$n(s.$$.fragment,e),i=!0)},o(e){kn(t.$$.fragment,e),kn(s.$$.fragment,e),i=!1},d(e){qn(t,e),e&&At(r),qn(s,e)}}}function Go(e){let t,n,o,r;return{c(){t=qt("div"),n=qt("button"),n.textContent=`${e[8].dont_have_an_account||"Don't have an account?"}`,jt(n,"class","ms-form__button ms-form__button--text"),jt(n,"type","button"),jt(t,"class","ms-form__flex ms-form__flex--centered")},m(s,i){It(s,t,i),Pt(t,n),o||(r=Bt(n,"click",e[17]),o=!0)},p:st,d(e){e&&At(t),o=!1,r()}}}function Yo(e){let t,n,o,r;return{c(){t=qt("div"),n=qt("button"),n.textContent=`${e[8].dont_have_an_account||"Don't have an account?"}`,jt(n,"class","ms-form__button ms-form__button--text"),jt(n,"type","button"),jt(t,"class","ms-form__flex ms-form__flex--centered")},m(s,i){It(s,t,i),Pt(t,n),o||(r=Bt(n,"click",e[16]),o=!0)},p:st,d(e){e&&At(t),o=!1,r()}}}function Zo(e){let t,n,o,r,s,i,a,l,c,d,u=!0===e[7].additionalAuthMethods.passwordless.enabled&&Jo(e),m=e[7].authProviders,p=[];for(let t=0;t{u=null})),_n()),2432&n){let o;for(m=e[7].authProviders,o=0;o{i[l]=null})),_n(),o=i[n],o?o.p(e,r):(o=i[n]=s[n](e),o.c()),$n(o,1),o.m(t,null))},i(e){r||($n(o),r=!0)},o(e){kn(o),r=!1},d(e){e&&At(t),i[n].d()}}}function Ko(e){let t,n,o,r;return{c(){t=qt("button"),n=qt("span"),n.textContent=`${e[8].login_with_password||"Log in with Password"}`,jt(t,"class","ms-modal__social-button"),jt(t,"data-cy","continue-with-password"),jt(t,"type","button")},m(s,i){It(s,t,i),Pt(t,n),o||(r=Bt(t,"click",e[19]),o=!0)},p:st,i:st,o:st,d(e){e&&At(t),o=!1,r()}}}function Xo(e){let t,n,o,r,s,i,a;return n=new Fo({}),{c(){t=qt("button"),An(n.$$.fragment),o=Ot(),r=qt("span"),r.textContent=`${e[8].login_with_email||"Continue with Email"}`,jt(t,"class","ms-modal__social-button"),jt(t,"data-cy","continue-with-email"),jt(t,"type","button")},m(l,c){It(l,t,c),En(n,t,null),Pt(t,o),Pt(t,r),s=!0,i||(a=Bt(t,"click",e[18]),i=!0)},p:st,i(e){s||($n(n.$$.fragment,e),s=!0)},o(e){kn(n.$$.fragment,e),s=!1},d(e){e&&At(t),qn(n),i=!1,a()}}}function Qo(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h=(e[8].continue_with||"Continue with")+"",f=e[22].name+"";function g(){return e[20](e[22])}return{c(){t=qt("div"),n=qt("button"),o=qt("img"),i=Ot(),a=qt("span"),l=Rt(h),c=Ot(),d=Rt(f),u=Ot(),ht(o.src,r=e[22].icon)||jt(o,"src",r),jt(o,"alt",s=e[22].name),jt(n,"class","ms-modal__social-button"),jt(n,"type","button"),jt(t,"class","ms-modal__social-buttons")},m(e,r){It(e,t,r),Pt(t,n),Pt(n,o),Pt(n,i),Pt(n,a),Pt(a,l),Pt(a,c),Pt(a,d),Pt(t,u),m||(p=Bt(n,"click",g),m=!0)},p(t,n){e=t,128&n&&!ht(o.src,r=e[22].icon)&&jt(o,"src",r),128&n&&s!==(s=e[22].name)&&jt(o,"alt",s),128&n&&f!==(f=e[22].name+"")&&Vt(d,f)},d(e){e&&At(t),m=!1,p()}}}function er(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b,v,w,y,_=(!e[2]||!e[2].hideCloseButton)&&Ho(e);function $(t){e[13](t)}r=new ao({});let k={placeholder:e[8].login_email_placeholder};void 0!==e[4]&&(k.emailInputValid=e[4]),c=new wo({props:k}),rn.push((()=>In(c,"emailInputValid",$)));const x=[Wo,Uo],T=[];function P(e,t){return e[6].passwordlessMode?1:0}function S(e,t){return e[2]&&e[2].signup&&e[2].signup.plans?Yo:e[9]?Go:void 0}m=P(e),p=T[m]=x[m](e);let C=S(e),M=C&&C(e),L=(e[7].authProviders.length>0||!0===e[7].additionalAuthMethods.passwordless.enabled)&&Zo(e);return b=new Ro({}),{c(){t=qt("div"),_&&_.c(),n=Ot(),o=qt("div"),An(r.$$.fragment),s=Ot(),i=qt("h2"),i.textContent=`${e[8].login_to_your_account||"Log in to your account"}`,a=Ot(),l=qt("form"),An(c.$$.fragment),u=Ot(),p.c(),h=Ot(),M&&M.c(),f=Ot(),L&&L.c(),g=Ot(),An(b.$$.fragment),jt(i,"class","ms-modal__title"),jt(l,"class","ms-form"),jt(l,"action",""),jt(l,"method","post"),jt(o,"class","ms-modal__content"),jt(t,"class","ms-modal"),jt(t,"id","LoginModal")},m(d,p){It(d,t,p),_&&_.m(t,null),Pt(t,n),Pt(t,o),En(r,o,null),Pt(o,s),Pt(o,i),Pt(o,a),Pt(o,l),En(c,l,null),Pt(l,u),T[m].m(l,null),Pt(l,h),M&&M.m(l,null),Pt(o,f),L&&L.m(o,null),Pt(t,g),En(b,t,null),v=!0,w||(y=Bt(l,"submit",Nt(zt(e[10]))),w=!0)},p(e,[r]){e[2]&&e[2].hideCloseButton?_&&(yn(),kn(_,1,1,(()=>{_=null})),_n()):_?(_.p(e,r),4&r&&$n(_,1)):(_=Ho(e),_.c(),$n(_,1),_.m(t,n));const s={};!d&&16&r&&(d=!0,s.emailInputValid=e[4],un((()=>d=!1))),c.$set(s);let i=m;m=P(e),m===i?T[m].p(e,r):(yn(),kn(T[i],1,1,(()=>{T[i]=null})),_n(),p=T[m],p?p.p(e,r):(p=T[m]=x[m](e),p.c()),$n(p,1),p.m(l,h)),C===(C=S(e))&&M?M.p(e,r):(M&&M.d(1),M=C&&C(e),M&&(M.c(),M.m(l,null))),e[7].authProviders.length>0||!0===e[7].additionalAuthMethods.passwordless.enabled?L?(L.p(e,r),128&r&&$n(L,1)):(L=Zo(e),L.c(),$n(L,1),L.m(o,null)):L&&(yn(),kn(L,1,1,(()=>{L=null})),_n())},i(e){v||($n(_),$n(r.$$.fragment,e),$n(c.$$.fragment,e),$n(p),$n(L),$n(b.$$.fragment,e),v=!0)},o(e){kn(_),kn(r.$$.fragment,e),kn(c.$$.fragment,e),kn(p),kn(L),kn(b.$$.fragment,e),v=!1},d(e){e&&At(t),_&&_.d(),qn(r),qn(c),T[m].d(),M&&M.d(),L&&L.d(),qn(b),w=!1,y()}}}function tr(e,t,n){let o,r,s;gt(e,Bo,(e=>n(6,o=e))),gt(e,Bn,(e=>n(7,r=e))),gt(e,zn,(e=>n(21,s=e)));let{closeModal:i}=t,{display:a}=t,{onSuccessLogin:l}=t,{params:c}=t,d=s.text,u=!1,m=!1,p=!1;!0===r.additionalAuthMethods.passwordless.isDefault&&jo(!0);let h=Boolean(window.ssoUI)&&r.ssoSignupButtonURL;function f(e){return rt(this,null,(function*(){try{const{data:t}=yield window.$memberstackDom.loginWithProvider({provider:e,allowSignup:c&&c.login&&c.login.allowSignup});l({type:"LOGIN",data:t})}catch(e){n(3,u=!1),window.$memberstackDom._showMessage(e.message,!0)}}))}return e.$$set=e=>{"closeModal"in e&&n(1,i=e.closeModal),"display"in e&&n(0,a=e.display),"onSuccessLogin"in e&&n(12,l=e.onSuccessLogin),"params"in e&&n(2,c=e.params)},[a,i,c,u,m,p,o,r,d,h,function(e){return rt(this,null,(function*(){const t=e.target.querySelector("[name=eml]"),r=e.target.querySelector("[name=psw]");if(!0!==o.passwordlessMode){if(!m||!p)return;n(3,u=!0);try{const{data:e}=yield window.$memberstackDom.loginMemberEmailPassword({email:t.value,password:r.value},{includeContentGroups:!0});l({type:"LOGIN",data:e}),n(3,u=!1)}catch(e){if("no-password-set"===e.code&&(yield window.$memberstackDom.sendMemberResetPasswordEmail({email:t.value}),n(0,a="reset_password")),"use-social-login"===e.code){const{data:t}=yield window.$memberstackDom.loginWithProvider({provider:e.providerKey});l({type:"LOGIN",data:t})}n(3,u=!1),window.$memberstackDom._showMessage(e.message,!0)}}else{if(!m)return;n(3,u=!0);try{yield window.$memberstackDom.sendMemberLoginPasswordlessEmail({email:t.value}),zo("login"),No(t.value),n(0,a="passwordless_token"),n(3,u=!1)}catch(e){n(3,u=!1),window.$memberstackDom._showMessage(e.message,!0)}}}))},f,l,function(e){m=e,n(4,m)},function(e){p=e,n(5,p)},function(e){a=e,n(0,a)},()=>n(0,a="signup"),()=>window.location.href=h,()=>jo(!0),()=>jo(!1),e=>f(e.provider)]}var nr=class extends Rn{constructor(e){super(),Dn(this,e,tr,er,pt,{closeModal:1,display:0,onSuccessLogin:12,params:2})}};function or(e){St(e,"svelte-1w8lbd8",".rey-was-here.svelte-1w8lbd8{display:none !important}")}function rr(e,t,n){const o=e.slice();return o[25]=t[n],o}function sr(e,t,n){const o=e.slice();return o[28]=t[n],o[30]=n,o}function ir(e){let t,n;return t=new eo({props:{closeModal:e[1]}}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},p(e,n){const o={};2&n&&(o.closeModal=e[1]),t.$set(o)},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function ar(e){let t,n,o,r,s,i,a,l,c,d=e[28].label+"";return{c(){t=qt("div"),n=qt("div"),o=qt("label"),r=Rt(d),i=Ot(),a=qt("input"),jt(o,"class","ms-form__label"),jt(o,"for",s=e[28].key),jt(a,"class","ms-form__input"),jt(a,"data-ms-custom-field",""),jt(a,"type","text"),jt(a,"placeholder",l=e[28].label),jt(a,"name",c=e[28].key),jt(n,"class","ms-form__group"),jt(t,"class","ms-modal__custom-field-container")},m(e,s){It(e,t,s),Pt(t,n),Pt(n,o),Pt(o,r),Pt(n,i),Pt(n,a)},p(e,t){128&t&&d!==(d=e[28].label+"")&&Vt(r,d),128&t&&s!==(s=e[28].key)&&jt(o,"for",s),128&t&&l!==(l=e[28].label)&&jt(a,"placeholder",l),128&t&&c!==(c=e[28].key)&&jt(a,"name",c)},d(e){e&&At(t)}}}function lr(e){let t,n=!0!==e[28].hidden&&ar(e);return{c(){n&&n.c(),t=Ft()},m(e,o){n&&n.m(e,o),It(e,t,o)},p(e,o){!0!==e[28].hidden?n?n.p(e,o):(n=ar(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&At(t)}}}function cr(e){let t,n,o;function r(t){e[13](t)}let s={};return void 0!==e[5]&&(s.passwordInputValid=e[5]),t=new Lo({props:s}),rn.push((()=>In(t,"passwordInputValid",r))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),o=!0},p(e,o){const r={};!n&&32&o&&(n=!0,r.passwordInputValid=e[5],un((()=>n=!1))),t.$set(r)},i(e){o||($n(t.$$.fragment,e),o=!0)},o(e){kn(t.$$.fragment,e),o=!1},d(e){qn(t,e)}}}function dr(e){let t,n;return t=new po({props:{buttonText:"Continue with Email",isLoading:e[3]}}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},p(e,n){const o={};8&n&&(o.isLoading=e[3]),t.$set(o)},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function ur(e){let t,n;return t=new po({props:{buttonText:"Sign up",isLoading:e[3]}}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},p(e,n){const o={};8&n&&(o.isLoading=e[3]),t.$set(o)},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function mr(e){let t,n,o,r,s,i=!0===e[7].additionalAuthMethods.passwordless.enabled&&pr(e),a=e[7].authProviders,l=[];for(let t=0;t \n
or
\n
',o=Ot(),i&&i.c(),r=Ot();for(let e=0;e{i=null})),_n()),1152&n){let o;for(a=e[7].authProviders,o=0;o{i[l]=null})),_n(),o=i[n],o?o.p(e,r):(o=i[n]=s[n](e),o.c()),$n(o,1),o.m(t,null))},i(e){r||($n(o),r=!0)},o(e){kn(o),r=!1},d(e){e&&At(t),i[n].d()}}}function hr(e){let t,n,o,r;return{c(){t=qt("button"),n=qt("span"),n.textContent=`${e[8].signup_with_password||"Signup with Password"}`,jt(t,"class","ms-modal__social-button"),jt(t,"data-cy","continue-with-password"),jt(t,"type","button")},m(s,i){It(s,t,i),Pt(t,n),o||(r=Bt(t,"click",e[16]),o=!0)},p:st,i:st,o:st,d(e){e&&At(t),o=!1,r()}}}function fr(e){let t,n,o,r,s,i,a;return n=new Fo({}),{c(){t=qt("button"),An(n.$$.fragment),o=Ot(),r=qt("span"),r.textContent=`${e[8].continue_with_email||"Continue with Email"}`,jt(t,"class","ms-modal__social-button"),jt(t,"data-cy","continue-with-email"),jt(t,"type","button")},m(l,c){It(l,t,c),En(n,t,null),Pt(t,o),Pt(t,r),s=!0,i||(a=Bt(t,"click",e[15]),i=!0)},p:st,i(e){s||($n(n.$$.fragment,e),s=!0)},o(e){kn(n.$$.fragment,e),s=!1},d(e){e&&At(t),qn(n),i=!1,a()}}}function gr(e){let t,n,o,r,s,i,a,l,c,d,u,m,p=e[25].name+"";function h(){return e[17](e[25])}return{c(){t=qt("div"),n=qt("button"),o=qt("img"),i=Ot(),a=qt("span"),l=Rt("Continue with "),c=Rt(p),d=Ot(),ht(o.src,r=e[25].icon)||jt(o,"src",r),jt(o,"alt",s=e[25].name),jt(n,"class","ms-modal__social-button"),jt(n,"type","button"),jt(t,"class","ms-modal__social-buttons")},m(e,r){It(e,t,r),Pt(t,n),Pt(n,o),Pt(n,i),Pt(n,a),Pt(a,l),Pt(a,c),Pt(t,d),u||(m=Bt(n,"click",h),u=!0)},p(t,n){e=t,128&n&&!ht(o.src,r=e[25].icon)&&jt(o,"src",r),128&n&&s!==(s=e[25].name)&&jt(o,"alt",s),128&n&&p!==(p=e[25].name+"")&&Vt(c,p)},d(e){e&&At(t),u=!1,m()}}}function br(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b,v,w,y,_,$,k,x,T,P,S,C,M=(!e[2]||!e[2].hideCloseButton)&&ir(e);r=new ao({});let L=e[7].customFields,I=[];for(let t=0;tIn(d,"emailInputValid",A)));let q=!1===e[6].passwordlessMode&&cr(e);const D=[ur,dr],R=[];function O(e,t){return!1===e[6].passwordlessMode?0:1}v=O(e),w=R[v]=D[v](e);let F=(e[7].authProviders.length>0||!0===e[7].additionalAuthMethods.passwordless.enabled)&&mr(e);return T=new Ro({}),{c(){t=qt("div"),M&&M.c(),n=Ot(),o=qt("div"),An(r.$$.fragment),s=Ot(),i=qt("h2"),i.textContent="Create an account",a=Ot(),l=qt("form");for(let e=0;eRey was here \n ',h=Ot(),q&&q.c(),f=Ot(),g=qt("div"),b=Ot(),w.c(),y=Ot(),_=qt("div"),$=qt("button"),$.textContent="Already have an account?",k=Ot(),F&&F.c(),x=Ot(),An(T.$$.fragment),jt(i,"class","ms-modal__title"),jt(p,"class","ms-form__group rey-was-here svelte-1w8lbd8"),jt(g,"id","hcaptcha"),jt(g,"class","h-captcha"),jt($,"class","ms-form__button ms-form__button--text ms-form__button--top-spacing"),jt(_,"class","ms-form__flex ms-form__flex--centered"),jt(l,"class","ms-form"),jt(l,"action",""),jt(l,"method","post"),jt(o,"class","ms-modal__content"),jt(t,"class","ms-modal"),jt(t,"id","SignupModal")},m(u,w){It(u,t,w),M&&M.m(t,null),Pt(t,n),Pt(t,o),En(r,o,null),Pt(o,s),Pt(o,i),Pt(o,a),Pt(o,l);for(let e=0;e{M=null})),_n()):M?(M.p(e,r),4&r&&$n(M,1)):(M=ir(e),M.c(),$n(M,1),M.m(t,n)),128&r){let t;for(L=e[7].customFields,t=0;tu=!1))),d.$set(s),!1===e[6].passwordlessMode?q?(q.p(e,r),64&r&&$n(q,1)):(q=cr(e),q.c(),$n(q,1),q.m(l,f)):q&&(yn(),kn(q,1,1,(()=>{q=null})),_n());let i=v;v=O(e),v===i?R[v].p(e,r):(yn(),kn(R[i],1,1,(()=>{R[i]=null})),_n(),w=R[v],w?w.p(e,r):(w=R[v]=D[v](e),w.c()),$n(w,1),w.m(l,y)),e[7].authProviders.length>0||!0===e[7].additionalAuthMethods.passwordless.enabled?F?(F.p(e,r),128&r&&$n(F,1)):(F=mr(e),F.c(),$n(F,1),F.m(o,null)):F&&(yn(),kn(F,1,1,(()=>{F=null})),_n())},i(e){P||($n(M),$n(r.$$.fragment,e),$n(d.$$.fragment,e),$n(q),$n(w),$n(F),$n(T.$$.fragment,e),P=!0)},o(e){kn(M),kn(r.$$.fragment,e),kn(d.$$.fragment,e),kn(q),kn(w),kn(F),kn(T.$$.fragment,e),P=!1},d(e){e&&At(t),M&&M.d(),qn(r),Et(I,e),qn(d),q&&q.d(),R[v].d(),F&&F.d(),qn(T),S=!1,ut(C)}}}function vr(e,t,n){var o;let r,s,i;gt(e,Bo,(e=>n(6,r=e))),gt(e,Bn,(e=>n(7,s=e))),gt(e,zn,(e=>n(19,i=e)));let{closeModal:a}=t,{display:l}=t,{onSuccessSignup:c}=t,{params:d}=t;!0===s.additionalAuthMethods.passwordless.isDefault&&jo(!0);let u,m=i.text,p=!1,h=!1,f=!1,g=s.captchaRequired;const b=((null==(o=null==d?void 0:d.signup)?void 0:o.plans)||[]).map((e=>({planId:e})));function v(){g&&window.hcaptcha&&window.hcaptcha.reset(u)}function w(e){return rt(this,null,(function*(){try{const{data:t}=yield window.$memberstackDom.signupWithProvider({provider:e,plans:b});c({type:"SIGNUP",data:t})}catch(e){n(3,p=!1),window.$memberstackDom._showMessage(e.message,!0)}}))}return function(){rt(this,null,(function*(){g&&(yield window.$memberstackDom._captchaReady,u=window.hcaptcha.render("hcaptcha",{sitekey:"838711f9-0e30-48e9-89e6-8f1ec4b79705",theme:"light"}))}))}(),e.$$set=e=>{"closeModal"in e&&n(1,a=e.closeModal),"display"in e&&n(0,l=e.display),"onSuccessSignup"in e&&n(11,c=e.onSuccessSignup),"params"in e&&n(2,d=e.params)},[l,a,d,p,h,f,r,s,m,function(e){return rt(this,null,(function*(){var t;const o=e.target.querySelector("[type=email]"),s=e.target.querySelector("[data-ms-internal-password]"),i={};if(Array.from(e.target.querySelectorAll("[data-ms-custom-field]")).map((e=>{i[e.getAttribute("name")]=e.value})).length,!0!==r.passwordlessMode){if(!h||!f)return}else if(!h)return;if(n(3,p=!0),e.target.querySelector("[name=Rey]").value)return e.target.reset(),void n(3,p=!1);let a;if(g&&(yield window.$memberstackDom._captchaReady,a=window.hcaptcha.getResponse(u),!a))try{a=yield function(){return rt(this,null,(function*(){const{response:e}=yield window.hcaptcha.execute({async:!0});return e}))}()}catch(e){return void n(3,p=!1)}if(!0!==r.passwordlessMode)try{const{data:e}=yield window.$memberstackDom.signupMemberEmailPassword({email:o.value,password:s.value,plans:b,customFields:i,captchaToken:a},{includeContentGroups:!0});c({type:"SIGNUP",data:e}),n(3,p=!1)}catch(e){n(3,p=!1),window.$memberstackDom._showMessage(e.message,!0),v()}else try{yield window.$memberstackDom.sendMemberSignupPasswordlessEmail({email:o.value}),zo("signup"),No(o.value),(e=>{Bo.update((t=>(t.passwordlessPlans=e,t)))})((null==(t=null==d?void 0:d.signup)?void 0:t.plans)||[]),(e=>{Bo.update((t=>(t.passwordlessCustomFields=e,t)))})(i),n(0,l="passwordless_token"),n(3,p=!1)}catch(e){n(3,p=!1),window.$memberstackDom._showMessage(e.message,!0),v()}}))},w,c,function(e){h=e,n(4,h)},function(e){f=e,n(5,f)},()=>n(0,l="login"),()=>jo(!0),()=>jo(!1),e=>w(e.provider)]}var wr=class extends Rn{constructor(e){super(),Dn(this,e,vr,br,pt,{closeModal:1,display:0,onSuccessSignup:11,params:2},or)}};function yr(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","M7.41 1.41L6 0L0 6L6 12L7.41 10.59L2.83 6L7.41 1.41Z"),jt(t,"fill","none"),jt(t,"viewBox","0 0 8 12"),jt(t,"xmlns","http://www.w3.org/2000/svg")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var _r=class extends Rn{constructor(e){super(),Dn(this,e,null,yr,pt,{})}};function $r(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b,v,w,y,_,$,k,x,T;function P(t){e[7](t)}r=new _r({}),a=new ao({});let S={placeholder:e[3].reset_email_placeholder};return void 0!==e[1]&&(S.emailInputValid=e[1]),h=new wo({props:S}),rn.push((()=>In(h,"emailInputValid",P))),b=new po({props:{buttonText:e[3].reset||"Send Link",isLoading:e[2]}}),$=new Ro({}),{c(){t=qt("div"),n=qt("div"),o=qt("button"),An(r.$$.fragment),s=Ot(),i=qt("div"),An(a.$$.fragment),l=Ot(),c=qt("h2"),c.textContent=`${e[3].reset_your_password||"Reset your password"}`,d=Ot(),u=qt("p"),u.textContent=`${e[3].reset_instructions||"We’ll email you a 6 digit code to reset your password."}`,m=Ot(),p=qt("form"),An(h.$$.fragment),g=Ot(),An(b.$$.fragment),v=Ot(),w=qt("div"),y=qt("div"),y.textContent=`${e[3].reset_already_have_code||"I already have a code"}`,_=Ot(),An($.$$.fragment),jt(n,"data-cy","back-btn"),jt(n,"class","ms-modal__back"),jt(c,"class","ms-modal__title ms-modal__title--sub-text"),jt(u,"class","ms-modal__text"),jt(y,"class","ms-form__link"),jt(w,"class","ms-form__flex ms-form__flex--centered"),jt(p,"class","ms-form"),jt(p,"action",""),jt(p,"method","post"),jt(p,"autocomplete","off"),jt(i,"class","ms-modal__content"),jt(t,"class","ms-modal"),jt(t,"id","PasswordResetModal")},m(f,P){It(f,t,P),Pt(t,n),Pt(n,o),En(r,o,null),Pt(t,s),Pt(t,i),En(a,i,null),Pt(i,l),Pt(i,c),Pt(i,d),Pt(i,u),Pt(i,m),Pt(i,p),En(h,p,null),Pt(p,g),En(b,p,null),Pt(p,v),Pt(p,w),Pt(w,y),Pt(t,_),En($,t,null),k=!0,x||(T=[Bt(o,"click",e[6]),Bt(y,"click",e[8]),Bt(p,"submit",Nt(zt(e[4])))],x=!0)},p(e,[t]){const n={};!f&&2&t&&(f=!0,n.emailInputValid=e[1],un((()=>f=!1))),h.$set(n);const o={};4&t&&(o.isLoading=e[2]),b.$set(o)},i(e){k||($n(r.$$.fragment,e),$n(a.$$.fragment,e),$n(h.$$.fragment,e),$n(b.$$.fragment,e),$n($.$$.fragment,e),k=!0)},o(e){kn(r.$$.fragment,e),kn(a.$$.fragment,e),kn(h.$$.fragment,e),kn(b.$$.fragment,e),kn($.$$.fragment,e),k=!1},d(e){e&&At(t),qn(r),qn(a),qn(h),qn(b),qn($),x=!1,ut(T)}}}function kr(e,t,n){let o;gt(e,zn,(e=>n(9,o=e)));let r=o.text,{closeModal:s}=t,{display:i}=t,a=!1,l=!1;return e.$$set=e=>{"closeModal"in e&&n(5,s=e.closeModal),"display"in e&&n(0,i=e.display)},[i,a,l,r,function(e){return rt(this,null,(function*(){const t=e.target[0];if(a){n(2,l=!0);try{yield window.$memberstackDom.sendMemberResetPasswordEmail({email:t.value}),n(0,i="reset_password")}catch(e){console.log(e),n(2,l=!1),e.message&&window.$memberstackDom._showMessage(e.message,!1)}}}))},s,()=>n(0,i="login"),function(e){a=e,n(1,a)},()=>n(0,i="reset_password")]}var xr=class extends Rn{constructor(e){super(),Dn(this,e,kr,$r,pt,{closeModal:5,display:0})}};function Tr(e){let t,n,o,r;return n=new fo({}),{c(){t=qt("div"),An(n.$$.fragment),o=Rt(" Please enter a valid code"),jt(t,"class","ms-form__error")},m(e,s){It(e,t,s),En(n,t,null),Pt(t,o),r=!0},i(e){r||($n(n.$$.fragment,e),r=!0)},o(e){kn(n.$$.fragment,e),r=!1},d(e){e&&At(t),qn(n)}}}function Pr(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b,v,w,y,_,$,k,x,T,P,S,C;r=new _r({}),i=new eo({props:{closeModal:e[1]}}),c=new ao({});let M=!e[3]&&Tr();function L(t){e[9](t)}let I={passwordPlaceholder:e[5].reset_password_placeholder||"New password",passwordLabel:e[5].password||"Enter a new password"};return void 0!==e[4]&&(I.passwordInputValid=e[4]),y=new Lo({props:I}),rn.push((()=>In(y,"passwordInputValid",L))),k=new po({props:{buttonText:e[5].reset_confirm_reset||"Confirm & Reset",isLoading:e[2]}}),T=new Ro({}),{c(){t=qt("div"),n=qt("div"),o=qt("button"),An(r.$$.fragment),s=Ot(),An(i.$$.fragment),a=Ot(),l=qt("div"),An(c.$$.fragment),d=Ot(),u=qt("h2"),u.textContent=`${e[5].reset_your_password||"Reset your password"}`,m=Ot(),p=qt("form"),h=qt("div"),f=qt("label"),f.textContent=`${e[5].reset_enter_code||"Enter your 6-digit code"}`,g=Ot(),b=qt("fieldset"),b.innerHTML=' \n \n \n \n \n ',v=Ot(),M&&M.c(),w=Ot(),An(y.$$.fragment),$=Ot(),An(k.$$.fragment),x=Ot(),An(T.$$.fragment),jt(n,"class","ms-modal__back"),jt(u,"class","ms-modal__title"),jt(f,"class","ms-form__label"),jt(f,"for","token-fieldset"),jt(b,"class","ms-form__fieldset"),jt(b,"name","token-fieldset"),jt(h,"class","ms-form__group"),jt(p,"class","ms-form"),jt(p,"action",""),jt(p,"method","post"),jt(p,"autocomplete","off"),jt(l,"class","ms-modal__content"),jt(t,"class","ms-modal"),jt(t,"id","PasswordTokenModal")},m(_,L){It(_,t,L),Pt(t,n),Pt(n,o),En(r,o,null),Pt(t,s),En(i,t,null),Pt(t,a),Pt(t,l),En(c,l,null),Pt(l,d),Pt(l,u),Pt(l,m),Pt(l,p),Pt(p,h),Pt(h,f),Pt(h,g),Pt(h,b),Pt(h,v),M&&M.m(h,null),Pt(p,w),En(y,p,null),Pt(p,$),En(k,p,null),Pt(t,x),En(T,t,null),P=!0,S||(C=[Bt(o,"click",e[8]),Bt(p,"submit",Nt(zt(e[6])))],S=!0)},p(e,[t]){const n={};2&t&&(n.closeModal=e[1]),i.$set(n),e[3]?M&&(yn(),kn(M,1,1,(()=>{M=null})),_n()):M?8&t&&$n(M,1):(M=Tr(),M.c(),$n(M,1),M.m(h,null));const o={};!_&&16&t&&(_=!0,o.passwordInputValid=e[4],un((()=>_=!1))),y.$set(o);const r={};4&t&&(r.isLoading=e[2]),k.$set(r)},i(e){P||($n(r.$$.fragment,e),$n(i.$$.fragment,e),$n(c.$$.fragment,e),$n(M),$n(y.$$.fragment,e),$n(k.$$.fragment,e),$n(T.$$.fragment,e),P=!0)},o(e){kn(r.$$.fragment,e),kn(i.$$.fragment,e),kn(c.$$.fragment,e),kn(M),kn(y.$$.fragment,e),kn(k.$$.fragment,e),kn(T.$$.fragment,e),P=!1},d(e){e&&At(t),qn(r),qn(i),qn(c),M&&M.d(),qn(y),qn(k),qn(T),S=!1,ut(C)}}}function Sr(e,t,n){let o;gt(e,zn,(e=>n(10,o=e)));let r=o.text,{closeModal:s}=t,{display:i}=t,{onSuccessPasswordReset:a}=t,l=!1,c=!0,d=!0;return tn((()=>{const e=[...document.querySelectorAll("input.ms-form__input--token")];e.forEach(((t,n)=>{t.addEventListener("keydown",(t=>{8===t.keyCode&&""===t.target.value&&e[Math.max(0,n-1)].focus()})),t.addEventListener("input",(t=>{const[o,...r]=t.target.value;t.target.value=null!=o?o:"";const s=n===e.length-1;void 0!==o&&!s&&(e[n+1].focus(),e[n+1].value=r.join(""),e[n+1].dispatchEvent(new Event("input")))}))}))})),e.$$set=e=>{"closeModal"in e&&n(1,s=e.closeModal),"display"in e&&n(0,i=e.display),"onSuccessPasswordReset"in e&&n(7,a=e.onSuccessPasswordReset)},[i,s,l,c,d,r,function(e){return rt(this,null,(function*(){const t=e.target[7];if(!(e=>{const t=[...document.querySelectorAll("input.ms-form__input--token")].some((e=>!e.value));return n(3,c=!t),!t})())return;const o=[...document.getElementsByName("token")].filter((({name:e})=>e)).map((({value:e})=>e)).join("");try{n(2,l=!0);const{_internalUseOnly:{message:e}}=yield window.$memberstackDom.resetMemberPassword({token:o,newPassword:t.value});window.$memberstackDom._showMessage("Your password has been reset. Please login.",!1),n(2,l=!1),n(0,i="login")}catch(e){n(2,l=!1),console.log(e),e.message&&window.$memberstackDom._showMessage(e.message,!0)}}))},a,()=>n(0,i="forgot_password"),function(e){d=e,n(4,d)}]}var Cr=class extends Rn{constructor(e){super(),Dn(this,e,Sr,Pr,pt,{closeModal:1,display:0,onSuccessPasswordReset:7})}};function Mr(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h;return r=new eo({props:{closeModal:e[0]}}),a=new ao({}),p=new Ro({}),{c(){t=qt("div"),n=qt("div"),o=Ot(),An(r.$$.fragment),s=Ot(),i=qt("div"),An(a.$$.fragment),l=Ot(),c=qt("h2"),c.textContent="Success!",d=Ot(),u=qt("p"),u.innerHTML="Your password has been reset.
\n Please login with your new credentials.",m=Ot(),An(p.$$.fragment),jt(n,"data-cy","back-btn"),jt(n,"class","ms-modal__back"),jt(c,"class","ms-modal__title ms-modal__title--sub-text"),jt(u,"class","ms-modal__text"),jt(i,"class","ms-modal__content"),jt(t,"class","ms-modal"),jt(t,"id","PasswordSuccessModal")},m(e,f){It(e,t,f),Pt(t,n),Pt(t,o),En(r,t,null),Pt(t,s),Pt(t,i),En(a,i,null),Pt(i,l),Pt(i,c),Pt(i,d),Pt(i,u),Pt(t,m),En(p,t,null),h=!0},p(e,[t]){const n={};1&t&&(n.closeModal=e[0]),r.$set(n)},i(e){h||($n(r.$$.fragment,e),$n(a.$$.fragment,e),$n(p.$$.fragment,e),h=!0)},o(e){kn(r.$$.fragment,e),kn(a.$$.fragment,e),kn(p.$$.fragment,e),h=!1},d(e){e&&At(t),qn(r),qn(a),qn(p)}}}function Lr(e,t,n){let{closeModal:o}=t;return e.$$set=e=>{"closeModal"in e&&n(0,o=e.closeModal)},[o]}var Ir=class extends Rn{constructor(e){super(),Dn(this,e,Lr,Mr,pt,{closeModal:0})}};function Ar(e){let t,n,o,r,s;return n=new _r({}),{c(){t=qt("button"),An(n.$$.fragment)},m(i,a){It(i,t,a),En(n,t,null),o=!0,r||(s=Bt(t,"click",e[10]),r=!0)},p:st,i(e){o||($n(n.$$.fragment,e),o=!0)},o(e){kn(n.$$.fragment,e),o=!1},d(e){e&&At(t),qn(n),r=!1,s()}}}function Er(e){let t,n,o,r,s;return n=new _r({}),{c(){t=qt("button"),An(n.$$.fragment)},m(i,a){It(i,t,a),En(n,t,null),o=!0,r||(s=Bt(t,"click",e[9]),r=!0)},p:st,i(e){o||($n(n.$$.fragment,e),o=!0)},o(e){kn(n.$$.fragment,e),o=!1},d(e){e&&At(t),qn(n),r=!1,s()}}}function qr(e){let t;return{c(){t=qt("h2"),t.textContent=`${e[5].passwordless_token_heading||"Create an account"}`,jt(t,"class","ms-modal__title ms-modal__title--sub-text")},m(e,n){It(e,t,n)},p:st,d(e){e&&At(t)}}}function Dr(e){let t;return{c(){t=qt("h2"),t.textContent=`${e[5].login_to_your_account||"Log in to your account"}`,jt(t,"class","ms-modal__title ms-modal__title--sub-text")},m(e,n){It(e,t,n)},p:st,d(e){e&&At(t)}}}function Rr(e){let t,n,o,r;return n=new fo({}),{c(){t=qt("div"),An(n.$$.fragment),o=Rt(" Please enter a valid code"),jt(t,"class","ms-form__error")},m(e,s){It(e,t,s),En(n,t,null),Pt(t,o),r=!0},i(e){r||($n(n.$$.fragment,e),r=!0)},o(e){kn(n.$$.fragment,e),r=!1},d(e){e&&At(t),qn(n)}}}function Or(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b,v,w,y,_,$,k,x,T,P;const S=[Er,Ar],C=[];function M(e,t){return"login"===e[4].passwordlessModalType?0:1}function L(e,t){return"login"===e[4].passwordlessModalType?Dr:qr}o=M(e),r=C[o]=S[o](e),i=new eo({props:{closeModal:e[1]}}),c=new ao({});let I=L(e),A=I(e),E=!e[3]&&Rr();return _=new po({props:{buttonText:e[5].login_verify_email||"Verify Email",isLoading:e[2]}}),k=new Ro({}),{c(){t=qt("div"),n=qt("div"),r.c(),s=Ot(),An(i.$$.fragment),a=Ot(),l=qt("div"),An(c.$$.fragment),d=Ot(),A.c(),u=Ot(),m=qt("p"),m.textContent=`${e[5].login_passwordless_instructions||"Enter the verification code sent to your email address"}`,p=Ot(),h=qt("form"),f=qt("div"),g=qt("label"),g.textContent=`${e[5].login_verification_code||"Verification Code"}`,b=Ot(),v=qt("fieldset"),v.innerHTML=' \n \n \n \n \n ',w=Ot(),E&&E.c(),y=Ot(),An(_.$$.fragment),$=Ot(),An(k.$$.fragment),jt(n,"class","ms-modal__back"),jt(m,"class","ms-modal__text"),jt(g,"class","ms-form__label"),jt(g,"for","token-fieldset"),jt(v,"class","ms-form__fieldset"),jt(v,"name","token-fieldset"),jt(f,"class","ms-form__group"),jt(h,"class","ms-form"),jt(h,"action",""),jt(h,"method","post"),jt(h,"autocomplete","off"),jt(l,"class","ms-modal__content"),jt(t,"class","ms-modal"),jt(t,"id","PasswordlessTokenModal")},m(r,S){It(r,t,S),Pt(t,n),C[o].m(n,null),Pt(t,s),En(i,t,null),Pt(t,a),Pt(t,l),En(c,l,null),Pt(l,d),A.m(l,null),Pt(l,u),Pt(l,m),Pt(l,p),Pt(l,h),Pt(h,f),Pt(f,g),Pt(f,b),Pt(f,v),Pt(f,w),E&&E.m(f,null),Pt(h,y),En(_,h,null),Pt(t,$),En(k,t,null),x=!0,T||(P=Bt(h,"submit",Nt(zt(e[6]))),T=!0)},p(e,[t]){let s=o;o=M(e),o===s?C[o].p(e,t):(yn(),kn(C[s],1,1,(()=>{C[s]=null})),_n(),r=C[o],r?r.p(e,t):(r=C[o]=S[o](e),r.c()),$n(r,1),r.m(n,null));const a={};2&t&&(a.closeModal=e[1]),i.$set(a),I===(I=L(e))&&A?A.p(e,t):(A.d(1),A=I(e),A&&(A.c(),A.m(l,u))),e[3]?E&&(yn(),kn(E,1,1,(()=>{E=null})),_n()):E?8&t&&$n(E,1):(E=Rr(),E.c(),$n(E,1),E.m(f,null));const c={};4&t&&(c.isLoading=e[2]),_.$set(c)},i(e){x||($n(r),$n(i.$$.fragment,e),$n(c.$$.fragment,e),$n(E),$n(_.$$.fragment,e),$n(k.$$.fragment,e),x=!0)},o(e){kn(r),kn(i.$$.fragment,e),kn(c.$$.fragment,e),kn(E),kn(_.$$.fragment,e),kn(k.$$.fragment,e),x=!1},d(e){e&&At(t),C[o].d(),qn(i),qn(c),A.d(),E&&E.d(),qn(_),qn(k),T=!1,P()}}}function Fr(e,t,n){let o,r;gt(e,Bo,(e=>n(4,o=e))),gt(e,zn,(e=>n(11,r=e)));let s=r.text,{closeModal:i}=t,{display:a}=t,{onSuccessPasswordlessToken:l}=t,{onSuccess:c}=t,d=!1,u=!0;return tn((()=>{const e=[...document.querySelectorAll("input.ms-form__input--token")];e.forEach(((t,n)=>{t.addEventListener("keydown",(t=>{8===t.keyCode&&""===t.target.value&&e[Math.max(0,n-1)].focus()})),t.addEventListener("input",(t=>{const[o,...r]=t.target.value;t.target.value=null!=o?o:"";const s=n===e.length-1;void 0!==o&&!s&&(e[n+1].focus(),e[n+1].value=r.join(""),e[n+1].dispatchEvent(new Event("input")))}))}))})),e.$$set=e=>{"closeModal"in e&&n(1,i=e.closeModal),"display"in e&&n(0,a=e.display),"onSuccessPasswordlessToken"in e&&n(7,l=e.onSuccessPasswordlessToken),"onSuccess"in e&&n(8,c=e.onSuccess)},[a,i,d,u,o,s,function(e){return rt(this,null,(function*(){if(e.target[7],!(e=>{const t=[...document.querySelectorAll("input.ms-form__input--token")].some((e=>!e.value));return n(3,u=!t),!t})())return;const t=[...document.getElementsByName("token")].filter((({name:e})=>e)).map((({value:e})=>e)).join("");try{if(n(2,d=!0),"login"===o.passwordlessModalType){const{data:e}=yield window.$memberstackDom.loginMemberPasswordless({passwordlessToken:t,email:o.passwordlessEmail},{includeContentGroups:!0});c({type:"LOGIN",data:e}),n(2,d=!1)}else{const e=(o.passwordlessPlans||[]).map((e=>({planId:e}))),{data:r}=yield window.$memberstackDom.signupMemberPasswordless({passwordlessToken:t,email:o.passwordlessEmail,plans:e,customFields:o.passwordlessCustomFields},{includeContentGroups:!0});c({type:"SIGNUP",data:r}),n(2,d=!1)}}catch(e){n(2,d=!1),console.log(e),e.message&&window.$memberstackDom._showMessage(e.message,!0)}}))},l,c,()=>n(0,a="login"),()=>n(0,a="signup")]}var Br=class extends Rn{constructor(e){super(),Dn(this,e,Fr,Or,pt,{closeModal:1,display:0,onSuccessPasswordlessToken:7,onSuccess:8})}};function zr(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"d","m8 8c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"),jt(n,"fill","currentColor"),jt(t,"fill","none"),jt(t,"viewBox","0 0 16 16"),jt(t,"xmlns","http://www.w3.org/2000/svg")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var Nr=class extends Rn{constructor(e){super(),Dn(this,e,null,zr,pt,{})}};function jr(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"d","m9 0-9 4v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12v-6l-9-4zm0 10.99h7c-0.53 4.12-3.28 7.79-7 8.94v-8.93h-7v-5.7l7-3.11v8.8z"),jt(n,"fill","currentColor"),jt(t,"fill","none"),jt(t,"viewBox","0 0 18 22"),jt(t,"xmlns","http://www.w3.org/2000/svg")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var Vr=class extends Rn{constructor(e){super(),Dn(this,e,null,jr,pt,{})}};function Hr(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","M16 16H2V2H9V0H2C0.89 0 0 0.9 0 2V16C0 17.1 0.89 18 2 18H16C17.1 18 18 17.1 18 16V9H16V16ZM11 0V2H14.59L4.76 11.83L6.17 13.24L16 3.41V7H18V0H11Z"),jt(t,"fill","none"),jt(t,"viewBox","0 0 18 18"),jt(t,"xmlns","http://www.w3.org/2000/svg")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var Ur=class extends Rn{constructor(e){super(),Dn(this,e,null,Hr,pt,{})}};function Wr(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"d","M16 7H3.83L9.42 1.41L8 0L0 8L8 16L9.41 14.59L3.83 9H16V7Z"),jt(n,"fill","currentColor"),jt(t,"width","16"),jt(t,"height","16"),jt(t,"viewBox","0 0 16 16"),jt(t,"fill","none"),jt(t,"xmlns","http://www.w3.org/2000/svg")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var Gr=class extends Rn{constructor(e){super(),Dn(this,e,null,Wr,pt,{})}};function Yr(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","M12 2l-5.5 9h11L12 2zm0 3.84L13.93 9h-3.87L12 5.84zM17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zM3 21.5h8v-8H3v8zm2-6h4v4H5v-4z"),jt(t,"fill","none"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"viewBox","3 2 19 20")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var Zr=class extends Rn{constructor(e){super(),Dn(this,e,null,Yr,pt,{})}};function Jr(e){let t,n,o,r,s,i;return n=new Gr({}),{c(){t=qt("button"),An(n.$$.fragment),o=Rt(" Logout"),jt(t,"data-cy","logout-btn"),jt(t,"class","ms-modal__profile-option")},m(a,l){It(a,t,l),En(n,t,null),Pt(t,o),r=!0,s||(i=Bt(t,"click",e[2]),s=!0)},p:st,i(e){r||($n(n.$$.fragment,e),r=!0)},o(e){kn(n.$$.fragment,e),r=!1},d(e){e&&At(t),qn(n),s=!1,i()}}}function Kr(e){let t,n,o,r,s,i,a=e[5](),l=e[6](),c=e[3](),d=e[4](),u=a&&function(e){let t,n,o,r,s,i;return n=new Nr({}),{c(){t=qt("button"),An(n.$$.fragment),o=Rt(" Profile"),jt(t,"data-cy","profile-btn"),jt(t,"class","ms-modal__profile-option"),Wt(t,"ms-modal__profile-option--active","profile"===e[0])},m(a,l){It(a,t,l),En(n,t,null),Pt(t,o),r=!0,s||(i=Bt(t,"click",e[11]),s=!0)},p(e,n){(!r||1&n)&&Wt(t,"ms-modal__profile-option--active","profile"===e[0])},i(e){r||($n(n.$$.fragment,e),r=!0)},o(e){kn(n.$$.fragment,e),r=!1},d(e){e&&At(t),qn(n),s=!1,i()}}}(e),m=l&&function(e){let t,n,o,r,s,i;return n=new Vr({}),{c(){t=qt("button"),An(n.$$.fragment),o=Rt(" Security"),jt(t,"data-cy","security-btn"),jt(t,"class","ms-modal__profile-option"),Wt(t,"ms-modal__profile-option--active","security"===e[0]||"changePassword"===e[0])},m(a,l){It(a,t,l),En(n,t,null),Pt(t,o),r=!0,s||(i=Bt(t,"click",e[12]),s=!0)},p(e,n){(!r||1&n)&&Wt(t,"ms-modal__profile-option--active","security"===e[0]||"changePassword"===e[0])},i(e){r||($n(n.$$.fragment,e),r=!0)},o(e){kn(n.$$.fragment,e),r=!1},d(e){e&&At(t),qn(n),s=!1,i()}}}(e),p=c&&function(e){let t,n,o,r,s,i;return n=new Zr({}),{c(){t=qt("button"),An(n.$$.fragment),o=Rt(" Plans"),jt(t,"data-cy","plans-btn"),jt(t,"class","ms-modal__profile-option"),Wt(t,"ms-modal__profile-option--active","plans"===e[0])},m(a,l){It(a,t,l),En(n,t,null),Pt(t,o),r=!0,s||(i=Bt(t,"click",e[13]),s=!0)},p(e,n){(!r||1&n)&&Wt(t,"ms-modal__profile-option--active","plans"===e[0])},i(e){r||($n(n.$$.fragment,e),r=!0)},o(e){kn(n.$$.fragment,e),r=!1},d(e){e&&At(t),qn(n),s=!1,i()}}}(e),h=d&&function(e){let t,n,o,r,s,i;return n=new Zr({}),{c(){t=qt("button"),An(n.$$.fragment),o=Rt(" Team"),jt(t,"data-cy","plans-btn"),jt(t,"class","ms-modal__profile-option"),Wt(t,"ms-modal__profile-option--active","team"===e[0])},m(a,l){It(a,t,l),En(n,t,null),Pt(t,o),r=!0,s||(i=Bt(t,"click",e[14]),s=!0)},p(e,n){(!r||1&n)&&Wt(t,"ms-modal__profile-option--active","team"===e[0])},i(e){r||($n(n.$$.fragment,e),r=!0)},o(e){kn(n.$$.fragment,e),r=!1},d(e){e&&At(t),qn(n),s=!1,i()}}}(e),f=!e[1]&&Jr(e);return{c(){u&&u.c(),t=Ot(),m&&m.c(),n=Ot(),p&&p.c(),o=Ot(),h&&h.c(),r=Ot(),f&&f.c(),s=Ft()},m(e,a){u&&u.m(e,a),It(e,t,a),m&&m.m(e,a),It(e,n,a),p&&p.m(e,a),It(e,o,a),h&&h.m(e,a),It(e,r,a),f&&f.m(e,a),It(e,s,a),i=!0},p(e,[t]){a&&u.p(e,t),l&&m.p(e,t),c&&p.p(e,t),d&&h.p(e,t),e[1]?f&&(yn(),kn(f,1,1,(()=>{f=null})),_n()):f?(f.p(e,t),2&t&&$n(f,1)):(f=Jr(e),f.c(),$n(f,1),f.m(s.parentNode,s))},i(e){i||($n(u),$n(m),$n(p),$n(h),$n(f),i=!0)},o(e){kn(u),kn(m),kn(p),kn(h),kn(f),i=!1},d(e){u&&u.d(e),e&&At(t),m&&m.d(e),e&&At(n),p&&p.d(e),e&&At(o),h&&h.d(e),e&&At(r),f&&f.d(e),e&&At(s)}}}function Xr(e,t,n){let{member:o}=t,{onSuccessLogout:r}=t,{displayProfile:s}=t,{profileLoader:i}=t,{hideProfileSection:a}=t,{requestedTab:l}=t;const c=Bn.subscribe((e=>{if(!e.initialValue){const t=document.getElementById("msOverlay"),n=document.createElement("style"),o=e.branding.colors.lightMode.primaryButton,r=`.ms-modal__profile-option:hover { color: ${o};} .ms-modal__profile-option--active { color: ${o};} .ms-modal__save-button { background: ${o};} .ms-modal__save-button:disabled { background: ${o};}`;n.appendChild(document.createTextNode(r)),t.appendChild(n)}}));return nn((()=>{c()})),e.$$set=e=>{"member"in e&&n(7,o=e.member),"onSuccessLogout"in e&&n(8,r=e.onSuccessLogout),"displayProfile"in e&&n(0,s=e.displayProfile),"profileLoader"in e&&n(9,i=e.profileLoader),"hideProfileSection"in e&&n(10,a=e.hideProfileSection),"requestedTab"in e&&n(1,l=e.requestedTab)},[s,l,function(e){return rt(this,null,(function*(){try{const{data:e,_internalUseOnly:{message:t}}=yield window.$memberstackDom.logout();window.$memberstackDom._showMessage(t,!1),r({type:"LOGOUT",data:e})}catch(e){window.$memberstackDom._showMessage(e.message,!0)}}))},function(){return(!l||"plans"===l)&&(o.stripeCustomerId||o.planConnections.some((e=>"FREE"===e.type))||o.teams.joinedTeams.length>0)},function(){var e;return(!l||"team"===l)&&(null==(e=o.teams)?void 0:e.ownedTeams.length)>0},function(){return!(l&&"profile"!==l||a)},function(){return!l||"security"===l||"changePassword"===l},o,r,i,a,()=>n(0,s="profile"),()=>n(0,s="security"),()=>n(0,s="plans"),()=>n(0,s="team")]}var Qr=class extends Rn{constructor(e){super(),Dn(this,e,Xr,Kr,pt,{member:7,onSuccessLogout:8,displayProfile:0,profileLoader:9,hideProfileSection:10,requestedTab:1})}};function es(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","white"),jt(n,"d","M21 21C24.315 21 27 18.315 27 15C27 11.685 24.315 9 21 9C17.685 9 15 11.685 15 15C15 18.315 17.685 21 21 21ZM21 24C16.995 24 9 26.01 9 30V31.5C9 32.325 9.675 33 10.5 33H31.5C32.325 33 33 32.325 33 31.5V30C33 26.01 25.005 24 21 24Z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"width","42"),jt(t,"height","42"),jt(t,"viewBox","0 0 42 42"),jt(t,"fill","none")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var ts=class extends Rn{constructor(e){super(),Dn(this,e,null,es,pt,{})}};function ns(e){let t,n,o,r,s,i;return{c(){t=Dt("svg"),n=Dt("g"),o=Dt("path"),r=Dt("defs"),s=Dt("clipPath"),i=Dt("path"),jt(o,"fill","#494949"),jt(o,"d","M6.667 10.667h2.666c.367 0 .667-.3.667-.667V6.667h1.06c.593 0 .893-.72.473-1.14l-3.06-3.06a.664.664 0 0 0-.94 0l-3.06 3.06c-.42.42-.126 1.14.467 1.14H6V10c0 .367.3.667.667.667zM4 12h8c.367 0 .667.3.667.667 0 .367-.3.667-.667.667H4a.669.669 0 0 1-.667-.667c0-.367.3-.667.667-.667z"),jt(n,"clip-path","url(#a)"),jt(i,"fill","#fff"),jt(i,"d","M0 0h16v16H0z"),jt(s,"id","a"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"fill","none"),jt(t,"viewBox","0 0 16 16")},m(e,a){It(e,t,a),Pt(t,n),Pt(n,o),Pt(t,r),Pt(r,s),Pt(s,i)},p:st,i:st,o:st,d(e){e&&At(t)}}}var os=class extends Rn{constructor(e){super(),Dn(this,e,null,ns,pt,{})}};function rs(e,t,n){const o=e.slice();return o[10]=t[n],o[11]=t,o[12]=n,o}function ss(e){let t,n;return t=new ts({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},p:st,i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function is(e){let t,n;return{c(){t=qt("img"),ht(t.src,n=e[0].profileImage)||jt(t,"src",n),jt(t,"alt","profile image")},m(e,n){It(e,t,n)},p(e,o){1&o&&!ht(t.src,n=e[0].profileImage)&&jt(t,"src",n)},i:st,o:st,d(e){e&&At(t)}}}function as(e){let t;return{c(){t=Rt("Replace Image")},m(e,n){It(e,t,n)},d(e){e&&At(t)}}}function ls(e){let t;return{c(){t=Rt("Upload Profile Image")},m(e,n){It(e,t,n)},d(e){e&&At(t)}}}function cs(e){let t,n,o,r,s,i,a,l,c,d,u,m,p=e[10].label+"";function h(){e[6].call(a,e[10])}return{c(){t=qt("div"),n=qt("div"),o=qt("label"),r=Rt(p),i=Ot(),a=qt("input"),d=Ot(),jt(o,"class","ms-form__label"),jt(o,"for",s=e[10].key),jt(a,"class","ms-form__input"),jt(a,"type","text"),jt(a,"placeholder",l=e[10].label),jt(a,"name",c=e[10].key),jt(n,"class","ms-form__group"),jt(t,"class","ms-modal__custom-field-container")},m(s,l){It(s,t,l),Pt(t,n),Pt(n,o),Pt(o,r),Pt(n,i),Pt(n,a),Ht(a,e[0].customFields[e[10].key]),Pt(t,d),u||(m=[Bt(a,"input",h),Bt(a,"keyup",e[4]),Bt(a,"paste",e[4])],u=!0)},p(t,n){e=t,2&n&&p!==(p=e[10].label+"")&&Vt(r,p),2&n&&s!==(s=e[10].key)&&jt(o,"for",s),2&n&&l!==(l=e[10].label)&&jt(a,"placeholder",l),2&n&&c!==(c=e[10].key)&&jt(a,"name",c),3&n&&a.value!==e[0].customFields[e[10].key]&&Ht(a,e[0].customFields[e[10].key])},d(e){e&&At(t),u=!1,ut(m)}}}function ds(e){let t,n=!0!==e[10].hidden&&cs(e);return{c(){n&&n.c(),t=Ft()},m(e,o){n&&n.m(e,o),It(e,t,o)},p(e,o){!0!==e[10].hidden?n?n.p(e,o):(n=cs(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&At(t)}}}function us(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b,v,w,y;const _=[is,ss],$=[];function k(e,t){return e[0].profileImage?0:1}function x(e,t){return e[0].profileImage?as:ls}d=k(e),u=$[d]=_[d](e),f=new os({});let T=x(e),P=T(e),S=e[1],C=[];for(let t=0;t{$[n]=null})),_n(),u=$[d],u?u.p(e,t):(u=$[d]=_[d](e),u.c()),$n(u,1),u.m(c,null)),T!==(T=x(e))&&(P.d(1),P=T(e),P&&(P.c(),P.m(h,null))),19&t){let n;for(S=e[1],n=0;n{const t=(()=>{const e=document.createElement("input");return e.setAttribute("required",""),e.setAttribute("type","file"),e.setAttribute("accept","image/*"),e.setAttribute("profile-image","true"),e.setAttribute("name","profile-image"),e.setAttribute("DATA-name","File"),e.setAttribute("hidden",""),e.setAttribute("tabindex","-1"),e})();e.parentNode.insertBefore(t,e.nextSibling),e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),t.click()})),t.addEventListener("change",(e=>rt(this,null,(function*(){e.preventDefault(),e.stopPropagation();const t=e.target.files[0],{size:o,type:i}=t;if(!1===i.includes("image"))return window.$memberstackDom._showMessage("File is not an image.",!0);if(o>4e6)return window.$memberstackDom._showMessage("Image must be less than 2MB.",!0);try{n(5,s=!0);const e=window.$memberstackDom.updateMemberProfileImage,{data:o,_internalUseOnly:{message:i}}=yield e({profileImage:t});n(0,r.profileImage=o.profileImage,r),i&&window.$memberstackDom._showMessage(i,!1)}catch(e){console.log(e),e.message&&window.$memberstackDom._showMessage(e.message,!0)}n(5,s=!1)}))))};tn((()=>{const e=document.querySelector("[data-image-btn]");i(e)}));let a=JSON.parse(JSON.stringify(r.customFields)),l=!0;return e.$$set=e=>{"customFields"in e&&n(1,o=e.customFields),"member"in e&&n(0,r=e.member),"profileLoader"in e&&n(5,s=e.profileLoader)},[r,o,l,function(e){return rt(this,null,(function*(){n(5,s=!0);try{const{_internalUseOnly:{message:e}}=yield window.$memberstackDom.updateMember({customFields:r.customFields});n(5,s=!1),n(2,l=!0),a=JSON.parse(JSON.stringify(r.customFields)),window.$memberstackDom._showMessage(e,!1)}catch(e){n(5,s=!1),window.$memberstackDom._showMessage(e.message,!0)}}))},function(e){e.target.value===a[e.target.name]?n(2,l=!0):n(2,l=!1)},s,function(e){r.customFields[e.key]=this.value,n(0,r)}]}var ps=class extends Rn{constructor(e){super(),Dn(this,e,ms,us,pt,{customFields:1,member:0,profileLoader:5})}};function hs(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","m14 7h-1v-2c0-2.76-2.24-5-5-5s-5 2.24-5 5v2h-1c-1.1 0-2 0.9-2 2v10c0 1.1 0.9 2 2 2h12c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2zm-9-2c0-1.66 1.34-3 3-3s3 1.34 3 3v2h-6v-2zm9 14h-12v-10h12v10zm-6-3c1.1 0 2-0.9 2-2s-0.9-2-2-2-2 0.9-2 2 0.9 2 2 2z"),jt(t,"fill","none"),jt(t,"viewBox","0 0 16 21"),jt(t,"xmlns","http://www.w3.org/2000/svg")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var fs=class extends Rn{constructor(e){super(),Dn(this,e,null,hs,pt,{})}};function gs(e,t,n){const o=e.slice();return o[20]=t[n],o}function bs(e){let t;return{c(){t=Rt("Change Password")},m(e,n){It(e,t,n)},d(e){e&&At(t)}}}function vs(e){let t;return{c(){t=Rt("Set Password")},m(e,n){It(e,t,n)},d(e){e&&At(t)}}}function ws(e){let t,n,o,r,s=[],i=new Map,a=e[5].authProviders;const l=e=>e[20].provider;for(let t=0;tYou will be logged out and your account will be deleted.",o=Ot(),r=qt("div"),s=qt("button"),s.textContent="Cancel",i=Ot(),a=qt("button"),a.textContent="Yes, Delete Account",jt(n,"class","ms-modal__confirm-text"),jt(s,"class","ms-modal__outline-button"),jt(s,"type","button"),jt(a,"class","ms-modal__outline-button delete-account--confirm"),jt(a,"type","button"),jt(r,"class","ms-modal__confirm-buttons"),jt(t,"class","ms-modal__confirm-delete")},m(d,u){It(d,t,u),Pt(t,n),Pt(t,o),Pt(t,r),Pt(r,s),Pt(r,i),Pt(r,a),l||(c=[Bt(s,"click",e[18]),Bt(a,"click",e[9])],l=!0)},p:st,d(e){e&&At(t),l=!1,ut(c)}}}function Ts(e){let t,n,o;return{c(){t=qt("button"),t.textContent="Delete Account",jt(t,"class","ms-modal__outline-button delete-account"),jt(t,"type","button")},m(r,s){It(r,t,s),n||(o=Bt(t,"click",e[17]),n=!0)},p:st,d(e){e&&At(t),n=!1,o()}}}function Ps(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b,v,w,y,_,$,k,x,T;function P(t){e[12](t)}function S(t){e[13](t)}let C={};function M(e,t){return e[1].auth.hasPassword?bs:vs}void 0!==e[4]&&(C.emailInputValid=e[4]),void 0!==e[2]&&(C.emailValue=e[2]),d=new wo({props:C}),rn.push((()=>In(d,"emailInputValid",P))),rn.push((()=>In(d,"emailValue",S))),v=new fs({});let L=M(e),I=L(e),A=e[5].authProviders.length>0&&ws(e),E=!0===e[5].allowMemberSelfDelete&&ks(e);return{c(){t=qt("div"),n=qt("h2"),n.textContent="Security",o=Ot(),r=qt("div"),s=qt("button"),i=Rt("Save"),l=Ot(),c=qt("form"),An(d.$$.fragment),p=Ot(),h=qt("div"),f=qt("label"),f.textContent="Password",g=Ot(),b=qt("button"),An(v.$$.fragment),w=Ot(),I.c(),y=Ot(),A&&A.c(),_=Ot(),E&&E.c(),$=Ft(),jt(n,"class","ms-modal__title ms-modal__title--profile"),jt(s,"class","ms-modal__save-button"),s.disabled=a=!e[4],jt(r,"class","ms-modal__action-container"),jt(t,"class","ms-modal__title-container"),jt(c,"class","ms-form"),jt(c,"action",""),jt(c,"method","post"),jt(c,"autocomplete","off"),jt(f,"class","ms-form__label"),jt(f,"for","setPassword"),jt(b,"data-cy","change-password-btn"),jt(b,"class","ms-modal__outline-button"),jt(b,"name","setPassword"),jt(h,"class","ms-form__group")},m(a,u){It(a,t,u),Pt(t,n),Pt(t,o),Pt(t,r),Pt(r,s),Pt(s,i),It(a,l,u),It(a,c,u),En(d,c,null),It(a,p,u),It(a,h,u),Pt(h,f),Pt(h,g),Pt(h,b),En(v,b,null),Pt(b,w),I.m(b,null),It(a,y,u),A&&A.m(a,u),It(a,_,u),E&&E.m(a,u),It(a,$,u),k=!0,x||(T=[Bt(s,"click",e[6]),Bt(c,"submit",Nt(zt(e[6]))),Bt(b,"click",e[14])],x=!0)},p(e,[t]){(!k||16&t&&a!==(a=!e[4]))&&(s.disabled=a);const n={};!u&&16&t&&(u=!0,n.emailInputValid=e[4],un((()=>u=!1))),!m&&4&t&&(m=!0,n.emailValue=e[2],un((()=>m=!1))),d.$set(n),L!==(L=M(e))&&(I.d(1),I=L(e),I&&(I.c(),I.m(b,null))),e[5].authProviders.length>0?A?A.p(e,t):(A=ws(e),A.c(),A.m(_.parentNode,_)):A&&(A.d(1),A=null),!0===e[5].allowMemberSelfDelete?E?E.p(e,t):(E=ks(e),E.c(),E.m($.parentNode,$)):E&&(E.d(1),E=null)},i(e){k||($n(d.$$.fragment,e),$n(v.$$.fragment,e),k=!0)},o(e){kn(d.$$.fragment,e),kn(v.$$.fragment,e),k=!1},d(e){e&&At(t),e&&At(l),e&&At(c),qn(d),e&&At(p),e&&At(h),qn(v),I.d(),e&&At(y),A&&A.d(e),e&&At(_),E&&E.d(e),e&&At($),x=!1,ut(T)}}}function Ss(e,t,n){let o;gt(e,Bn,(e=>n(5,o=e)));let{displayProfile:r}=t,{member:s}=t,{emailValue:i}=t,{profileLoader:a}=t,l=!1;o.authProviders.sort(((e,t)=>m(e)===m(t)?e.order-t.order:m(e)?-1:1));let c=!1;function d(e){return rt(this,null,(function*(){n(10,a=!0);try{const{data:t,_internalUseOnly:{message:o}}=yield window.$memberstackDom.disconnectProvider({provider:e});n(1,s=ot(nt({},s),{auth:ot(nt({},s.auth),{providers:t.providers})})),window.$memberstackDom._showMessage(o,!1),n(10,a=!1)}catch(e){window.$memberstackDom._showMessage(e.message,!0),n(10,a=!1)}}))}function u(e){return rt(this,null,(function*(){console.log("connect",e);try{const{data:t}=yield window.$memberstackDom.connectProvider({provider:e});n(1,s=ot(nt({},s),{auth:ot(nt({},s.auth),{providers:t.providers})})),window.$memberstackDom._showMessage(t.message,!1)}catch(e){window.$memberstackDom._showMessage(e.message,!0)}}))}function m(e){return s.auth.providers.some((t=>t.provider===e.provider))}return e.$$set=e=>{"displayProfile"in e&&n(0,r=e.displayProfile),"member"in e&&n(1,s=e.member),"emailValue"in e&&n(2,i=e.emailValue),"profileLoader"in e&&n(10,a=e.profileLoader)},[r,s,i,l,c,o,function(e){return rt(this,null,(function*(){if(c&&i){n(10,a=!0);try{const{_internalUseOnly:{message:e}}=yield window.$memberstackDom.updateMemberAuth({email:i});window.$memberstackDom._showMessage(e,!1),n(10,a=!1)}catch(e){window.$memberstackDom._showMessage(e.message,!0),n(10,a=!1)}}}))},d,u,function(){return rt(this,null,(function*(){n(10,a=!0),yield window.$memberstackDom.deleteMember(),n(10,a=!1),window.location.href="/"}))},a,(e,t)=>t.provider===e.provider,function(e){c=e,n(4,c)},function(e){i=e,n(2,i)},()=>n(0,r="changePassword"),e=>d(e.provider),e=>u(e.provider),()=>n(3,l=!0),()=>n(3,l=!1)]}var Cs=class extends Rn{constructor(e){super(),Dn(this,e,Ss,Ps,pt,{displayProfile:0,member:1,emailValue:2,profileLoader:10})}};function Ms(e){let t,n,o,r,s;return n=new _r({}),{c(){t=qt("button"),An(n.$$.fragment)},m(i,a){It(i,t,a),En(n,t,null),o=!0,r||(s=Bt(t,"click",e[11]),r=!0)},p:st,i(e){o||($n(n.$$.fragment,e),o=!0)},o(e){kn(n.$$.fragment,e),o=!1},d(e){e&&At(t),qn(n),r=!1,s()}}}function Ls(e){let t;return{c(){t=Rt("Change Password")},m(e,n){It(e,t,n)},d(e){e&&At(t)}}}function Is(e){let t;return{c(){t=Rt("Set Password")},m(e,n){It(e,t,n)},d(e){e&&At(t)}}}function As(e){let t,n,o,r;function s(t){e[12](t)}function i(t){e[13](t)}let a={passwordLabel:"Current Password",passwordPlaceholder:"Enter current password"};return void 0!==e[3]&&(a.passwordValue=e[3]),void 0!==e[6]&&(a.passwordInputValid=e[6]),t=new Lo({props:a}),rn.push((()=>In(t,"passwordValue",s))),rn.push((()=>In(t,"passwordInputValid",i))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),r=!0},p(e,r){const s={};!n&&8&r&&(n=!0,s.passwordValue=e[3],un((()=>n=!1))),!o&&64&r&&(o=!0,s.passwordInputValid=e[6],un((()=>o=!1))),t.$set(s)},i(e){r||($n(t.$$.fragment,e),r=!0)},o(e){kn(t.$$.fragment,e),r=!1},d(e){qn(t,e)}}}function Es(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b,v,w,y,_,$,k,x="changePassword"!==e[2]&&Ms(e);function T(e,t){return e[1].auth.hasPassword?Ls:Is}let P=T(e),S=P(e),C=e[1].auth.hasPassword&&As(e);function M(t){e[14](t)}function L(t){e[15](t)}let I={passwordLabel:"New Password",passwordPlaceholder:"Enter a strong password"};function A(t){e[16](t)}function E(t){e[17](t)}void 0!==e[4]&&(I.passwordValue=e[4]),void 0!==e[7]&&(I.passwordInputValid=e[7]),h=new Lo({props:I}),rn.push((()=>In(h,"passwordValue",M))),rn.push((()=>In(h,"passwordInputValid",L)));let q={passwordLabel:"Confirm New Password",passwordPlaceholder:"Enter a strong password"};return void 0!==e[5]&&(q.passwordValue=e[5]),void 0!==e[8]&&(q.passwordInputValid=e[8]),v=new Lo({props:q}),rn.push((()=>In(v,"passwordValue",A))),rn.push((()=>In(v,"passwordInputValid",E))),{c(){t=qt("div"),n=qt("div"),o=qt("div"),x&&x.c(),r=Ot(),s=qt("h2"),S.c(),i=Ot(),a=qt("div"),l=qt("button"),c=Rt("Save"),u=Ot(),m=qt("form"),C&&C.c(),p=Ot(),An(h.$$.fragment),b=Ot(),An(v.$$.fragment),jt(o,"class","ms-modal__profile-back"),jt(s,"class","ms-modal__title ms-modal__title--profile"),jt(n,"class","ms-modal__title-group"),jt(l,"class","ms-modal__save-button"),l.disabled=d=e[1].auth.hasPassword&&!e[6]||!e[7]||!e[8],jt(a,"class","ms-modal__action-container"),jt(t,"class","ms-modal__title-container"),jt(m,"class","ms-form"),jt(m,"action",""),jt(m,"method","post"),jt(m,"autocomplete","off")},m(d,f){It(d,t,f),Pt(t,n),Pt(n,o),x&&x.m(o,null),Pt(n,r),Pt(n,s),S.m(s,null),Pt(t,i),Pt(t,a),Pt(a,l),Pt(l,c),It(d,u,f),It(d,m,f),C&&C.m(m,null),Pt(m,p),En(h,m,null),Pt(m,b),En(v,m,null),_=!0,$||(k=[Bt(l,"click",e[9]),Bt(m,"submit",Nt(zt(e[9])))],$=!0)},p(e,[t]){"changePassword"!==e[2]?x?(x.p(e,t),4&t&&$n(x,1)):(x=Ms(e),x.c(),$n(x,1),x.m(o,null)):x&&(yn(),kn(x,1,1,(()=>{x=null})),_n()),P!==(P=T(e))&&(S.d(1),S=P(e),S&&(S.c(),S.m(s,null))),(!_||450&t&&d!==(d=e[1].auth.hasPassword&&!e[6]||!e[7]||!e[8]))&&(l.disabled=d),e[1].auth.hasPassword?C?(C.p(e,t),2&t&&$n(C,1)):(C=As(e),C.c(),$n(C,1),C.m(m,p)):C&&(yn(),kn(C,1,1,(()=>{C=null})),_n());const n={};!f&&16&t&&(f=!0,n.passwordValue=e[4],un((()=>f=!1))),!g&&128&t&&(g=!0,n.passwordInputValid=e[7],un((()=>g=!1))),h.$set(n);const r={};!w&&32&t&&(w=!0,r.passwordValue=e[5],un((()=>w=!1))),!y&&256&t&&(y=!0,r.passwordInputValid=e[8],un((()=>y=!1))),v.$set(r)},i(e){_||($n(x),$n(C),$n(h.$$.fragment,e),$n(v.$$.fragment,e),_=!0)},o(e){kn(x),kn(C),kn(h.$$.fragment,e),kn(v.$$.fragment,e),_=!1},d(e){e&&At(t),x&&x.d(),S.d(),e&&At(u),e&&At(m),C&&C.d(),qn(h),qn(v),$=!1,ut(k)}}}function qs(e,t,n){let{requestedTab:o}=t,{displayProfile:r}=t,{profileLoader:s}=t,{member:i}=t,a="",l="",c="",d=!1,u=!1,m=!1;return e.$$set=e=>{"requestedTab"in e&&n(2,o=e.requestedTab),"displayProfile"in e&&n(0,r=e.displayProfile),"profileLoader"in e&&n(10,s=e.profileLoader),"member"in e&&n(1,i=e.member)},[r,i,o,a,l,c,d,u,m,function(e){return rt(this,null,(function*(){if((!i.auth.hasPassword||d||u||m)&&(i.auth.hasPassword||u||m)){n(10,s=!0);try{let e;if(i.auth.hasPassword){const{_internalUseOnly:{message:t}}=yield window.$memberstackDom.updateMemberAuth({oldPassword:a,newPassword:l});e=t}else{const{_internalUseOnly:{message:t}}=yield window.$memberstackDom.setPassword({password:l});n(1,i.auth.hasPassword=!0,i),e=t}window.$memberstackDom._showMessage(e,!1),n(3,a=""),n(4,l=""),n(5,c=""),n(10,s=!1)}catch(e){window.$memberstackDom._showMessage(e.message,!0),n(10,s=!1)}}}))},s,()=>n(0,r="security"),function(e){a=e,n(3,a)},function(e){d=e,n(6,d)},function(e){l=e,n(4,l)},function(e){u=e,n(7,u)},function(e){c=e,n(5,c)},function(e){m=e,n(8,m)}]}var Ds=class extends Rn{constructor(e){super(),Dn(this,e,qs,Es,pt,{requestedTab:2,displayProfile:0,profileLoader:10,member:1})}};function Rs(e){const t=e-1;return t*t*t+1}function Os(e,{delay:t=0,duration:n=400,easing:o=at}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:o,css:e=>"opacity: "+e*r}}function Fs(e,{delay:t=0,duration:n=400,easing:o=Rs,axis:r="y"}={}){const s=getComputedStyle(e),i=+s.opacity,a="y"===r?"height":"width",l=parseFloat(s[a]),c="y"===r?["top","bottom"]:["left","right"],d=c.map((e=>`${e[0].toUpperCase()}${e.slice(1)}`)),u=parseFloat(s[`padding${d[0]}`]),m=parseFloat(s[`padding${d[1]}`]),p=parseFloat(s[`margin${d[0]}`]),h=parseFloat(s[`margin${d[1]}`]),f=parseFloat(s[`border${d[0]}Width`]),g=parseFloat(s[`border${d[1]}Width`]);return{delay:t,duration:n,easing:o,css:e=>`overflow: hidden;opacity: ${Math.min(20*e,1)*i};${a}: ${e*l}px;padding-${c[0]}: ${e*u}px;padding-${c[1]}: ${e*m}px;margin-${c[0]}: ${e*p}px;margin-${c[1]}: ${e*h}px;border-${c[0]}-width: ${e*f}px;border-${c[1]}-width: ${e*g}px;`}}function Bs(e){let t,n,o,r;return n=new Gn({}),{c(){t=qt("div"),An(n.$$.fragment),jt(t,"class","ms__profile__loader")},m(e,o){It(e,t,o),En(n,t,null),r=!0},p:st,i(e){r||($n(n.$$.fragment,e),dn((()=>{r&&(o||(o=Tn(t,Os,{},!0)),o.run(1))})),r=!0)},o(e){kn(n.$$.fragment,e),o||(o=Tn(t,Os,{},!1)),o.run(0),r=!1},d(e){e&&At(t),qn(n),e&&o&&o.end()}}}var zs=class extends Rn{constructor(e){super(),Dn(this,e,null,Bs,pt,{})}};function Ns(e){let t,n,o,r,s,i,a,l,c,d;var u=e[2];u&&(n=Yt(u,{}));var m=e[1];return m&&(i=Yt(m,{})),{c(){t=qt("button"),n&&An(n.$$.fragment),o=Ot(),r=Rt(e[0]),s=Ot(),i&&An(i.$$.fragment),jt(t,"class",a="ms-modal__regular-button "+(e[5].class||"")),Ut(t,"background",e[4])},m(a,u){It(a,t,u),n&&En(n,t,null),Pt(t,o),Pt(t,r),Pt(t,s),i&&En(i,t,null),l=!0,c||(d=Bt(t,"click",(function(){mt(e[3])&&e[3].apply(this,arguments)})),c=!0)},p(s,[c]){if(e=s,4&c&&u!==(u=e[2])){if(n){yn();const e=n;kn(e.$$.fragment,1,0,(()=>{qn(e,1)})),_n()}u?(n=Yt(u,{}),An(n.$$.fragment),$n(n.$$.fragment,1),En(n,t,o)):n=null}if((!l||1&c)&&Vt(r,e[0]),2&c&&m!==(m=e[1])){if(i){yn();const e=i;kn(e.$$.fragment,1,0,(()=>{qn(e,1)})),_n()}m?(i=Yt(m,{}),An(i.$$.fragment),$n(i.$$.fragment,1),En(i,t,null)):i=null}(!l||32&c&&a!==(a="ms-modal__regular-button "+(e[5].class||"")))&&jt(t,"class",a),(!l||16&c)&&Ut(t,"background",e[4])},i(e){l||(n&&$n(n.$$.fragment,e),i&&$n(i.$$.fragment,e),l=!0)},o(e){n&&kn(n.$$.fragment,e),i&&kn(i.$$.fragment,e),l=!1},d(e){e&&At(t),n&&qn(n),i&&qn(i),c=!1,d()}}}function js(e,t,n){const o=["buttonText","buttonRightIcon","buttonLeftIcon","onClick"];let r,s=wt(t,o);gt(e,Bn,(e=>n(6,r=e)));let{buttonText:i="Submit"}=t,{buttonRightIcon:a=null}=t,{buttonLeftIcon:l=null}=t,{onClick:c=(()=>{})}=t,d="rgb(41, 98, 255)";return r.branding.colors.lightMode.primaryButton&&(d=r.branding.colors.lightMode.primaryButton),e.$$set=e=>{t=lt(lt({},t),vt(e)),n(5,s=wt(t,o)),"buttonText"in e&&n(0,i=e.buttonText),"buttonRightIcon"in e&&n(1,a=e.buttonRightIcon),"buttonLeftIcon"in e&&n(2,l=e.buttonLeftIcon),"onClick"in e&&n(3,c=e.onClick)},[i,a,l,c,d,s]}var Vs=class extends Rn{constructor(e){super(),Dn(this,e,js,Ns,pt,{buttonText:0,buttonRightIcon:1,buttonLeftIcon:2,onClick:3})}};function Hs(e){let t,n,o,r,s;return{c(){t=qt("button"),n=Rt(e[0]),jt(t,"class",o="ms-modal__text-button "+e[3].class),Ut(t,"color",e[2])},m(o,i){It(o,t,i),Pt(t,n),r||(s=Bt(t,"click",(function(){mt(e[1])&&e[1].apply(this,arguments)})),r=!0)},p(r,[s]){e=r,1&s&&Vt(n,e[0]),8&s&&o!==(o="ms-modal__text-button "+e[3].class)&&jt(t,"class",o),4&s&&Ut(t,"color",e[2])},i:st,o:st,d(e){e&&At(t),r=!1,s()}}}function Us(e,t,n){const o=["buttonText","onClick"];let r,s=wt(t,o);gt(e,Bn,(e=>n(4,r=e)));let{buttonText:i="Submit"}=t,{onClick:a=(()=>{})}=t,l="rgb(41, 98, 255)";return r.branding.colors.lightMode.primaryButton&&(l=r.branding.colors.lightMode.primaryButton),e.$$set=e=>{t=lt(lt({},t),vt(e)),n(3,s=wt(t,o)),"buttonText"in e&&n(0,i=e.buttonText),"onClick"in e&&n(1,a=e.onClick)},[i,a,l,s]}var Ws=class extends Rn{constructor(e){super(),Dn(this,e,Us,Hs,pt,{buttonText:0,onClick:1})}};function Gs(e,t,n){const o=e.slice();return o[11]=t[n],o[13]=n,o}function Ys(e,t,n){const o=e.slice();return o[14]=t[n],o}function Zs(e){let t,n,o;return n=new Vs({props:{onClick:e[4],class:"ms-modal__regular-button--margin-right ms-modal__regular-button--left-icon",buttonText:"Manage Subscriptions",buttonLeftIcon:Ur}}),{c(){t=qt("div"),An(n.$$.fragment),Ut(t,"display","flex"),Ut(t,"flex-wrap","wrap")},m(e,r){It(e,t,r),En(n,t,null),o=!0},p:st,i(e){o||($n(n.$$.fragment,e),o=!0)},o(e){kn(n.$$.fragment,e),o=!1},d(e){e&&At(t),qn(n)}}}function Js(e){let t,n,o,r,s=e[1],i=[];for(let t=0;tkn(i[e],1,1,(()=>{i[e]=null}));return{c(){t=qt("h3"),t.textContent="Team Plans",n=Ot();for(let e=0;ekn(i[e],1,1,(()=>{i[e]=null}));return{c(){t=qt("h3"),t.textContent="Free Plans",n=Ot();for(let e=0;e0&&Js(e),d=e[2].length>0&&Xs(e),u=!e[0].stripeCustomerId&&0===e[2].length&&ei();return{c(){t=qt("div"),t.innerHTML='

Plans

',n=Ot(),l&&l.c(),o=Ot(),c&&c.c(),r=Ot(),d&&d.c(),s=Ot(),u&&u.c(),i=Ft(),jt(t,"class","ms-modal__title-container")},m(e,m){It(e,t,m),It(e,n,m),l&&l.m(e,m),It(e,o,m),c&&c.m(e,m),It(e,r,m),d&&d.m(e,m),It(e,s,m),u&&u.m(e,m),It(e,i,m),a=!0},p(e,[t]){e[0].stripeCustomerId?l?(l.p(e,t),1&t&&$n(l,1)):(l=Zs(e),l.c(),$n(l,1),l.m(o.parentNode,o)):l&&(yn(),kn(l,1,1,(()=>{l=null})),_n()),e[1].length>0?c?(c.p(e,t),2&t&&$n(c,1)):(c=Js(e),c.c(),$n(c,1),c.m(r.parentNode,r)):c&&(yn(),kn(c,1,1,(()=>{c=null})),_n()),e[2].length>0?d?(d.p(e,t),4&t&&$n(d,1)):(d=Xs(e),d.c(),$n(d,1),d.m(s.parentNode,s)):d&&(yn(),kn(d,1,1,(()=>{d=null})),_n()),e[0].stripeCustomerId||0!==e[2].length?u&&(u.d(1),u=null):u||(u=ei(),u.c(),u.m(i.parentNode,i))},i(e){a||($n(l),$n(c),$n(d),a=!0)},o(e){kn(l),kn(c),kn(d),a=!1},d(e){e&&At(t),e&&At(n),l&&l.d(e),e&&At(o),c&&c.d(e),e&&At(r),d&&d.d(e),e&&At(s),u&&u.d(e),e&&At(i)}}}function ni(e,t,n){let o,r,s;gt(e,Bn,(e=>n(3,s=e)));let{profileLoader:i}=t,{member:a}=t;function l(e){return rt(this,null,(function*(){n(7,i=!0);try{yield window.$memberstackDom.removePlan({planId:e}),n(0,a.planConnections=a.planConnections.filter((t=>t.planId!==e)),a)}catch(e){console.log(e),window.$memberstackDom._showMessage(e.message,!0)}finally{n(7,i=!1)}}))}function c(e,t){return rt(this,null,(function*(){try{yield window.$memberstackDom.removeMemberFromTeam({teamId:e,memberId:t}),n(0,a.teams.joinedTeams=a.teams.joinedTeams.filter((t=>t.teamId!==e)),a)}catch(e){window.$memberstackDom._showMessage(e.message,!0)}}))}return e.$$set=e=>{"profileLoader"in e&&n(7,i=e.profileLoader),"member"in e&&n(0,a=e.member)},e.$$.update=()=>{var t;1&e.$$.dirty&&n(2,o=a.planConnections.filter((e=>"FREE"===e.type))),1&e.$$.dirty&&n(1,r=null==(t=a.teams)?void 0:t.joinedTeams)},[a,r,o,s,function(e){return rt(this,null,(function*(){n(7,i=!0),yield window.$memberstackDom.launchStripeCustomerPortal({priceIds:[],autoRedirect:!0})}))},l,c,i,e=>c(e.teamId,a.id),(e,t)=>t.id===e.planId,e=>l(e.planId)]}var oi=class extends Rn{constructor(e){super(),Dn(this,e,ni,ti,pt,{profileLoader:7,member:0})}};function ri(e){St(e,"svelte-c6ihgv","svg.svelte-c6ihgv{fill:currentColor}")}function si(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"d","M226.783-133.782q-38.363 0-65.682-27.319-27.319-27.319-27.319-65.682v-506.434q0-38.363 27.319-65.682 27.319-27.319 65.682-27.319h151.521q10.391-32.696 37.688-53.261 27.296-20.566 64.008-20.566 34.326 0 62.283 20.566 27.957 20.565 38.913 53.261h152.021q38.363 0 65.682 27.319 27.319 27.319 27.319 65.682v506.434q0 38.363-27.319 65.682-27.319 27.319-65.682 27.319H226.783Zm0-93.001h506.434v-506.434h-63.043v75.043q0 18.887-13.807 32.694-13.807 13.807-32.694 13.807H336.327q-18.887 0-32.694-13.807-13.807-13.807-13.807-32.694v-75.043h-63.043v506.434Zm253.006-518.913q13.711 0 23.711-9.789 10-9.79 10-23.5 0-13.711-9.789-23.711-9.79-10-23.5-10-13.711 0-23.711 9.79-10 9.789-10 23.5 0 13.71 9.789 23.71 9.79 10 23.5 10Z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"height","20"),jt(t,"viewBox","0 -960 960 960"),jt(t,"width","20"),jt(t,"class","svelte-c6ihgv")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var ii=class extends Rn{constructor(e){super(),Dn(this,e,null,si,pt,{},ri)}};function ai(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","M109-120q-11 0-20-5.5T75-140q-5-9-5.5-19.5T75-180l370-640q6-10 15.5-15t19.5-5q10 0 19.5 5t15.5 15l370 640q6 10 5.5 20.5T885-140q-5 9-14 14.5t-20 5.5H109Zm371-120q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm0-120q17 0 28.5-11.5T520-400v-120q0-17-11.5-28.5T480-560q-17 0-28.5 11.5T440-520v120q0 17 11.5 28.5T480-360Z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"height","24"),jt(t,"viewBox","0 -960 960 960"),jt(t,"width","24")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var li=class extends Rn{constructor(e){super(),Dn(this,e,null,ai,pt,{})}};function ci(e){St(e,"svelte-1i8s3px",".ms-modal__title-container--teams.svelte-1i8s3px{display:flex;justify-content:flex-start;align-items:baseline;margin-bottom:24px;gap:12px}.ms-modal__title--teams.svelte-1i8s3px{margin-bottom:0px}.ms-modal__title--seats.svelte-1i8s3px{font-size:14px;line-height:1;font-weight:500;color:#5c5c5c}.ms-modal__text-upgrade-button.svelte-1i8s3px{font-size:12px;font-weight:600;line-height:1;color:#2962ff;background-color:transparent;border:none;outline:none;padding:4px 0;margin-left:auto}.ms-modal__invite-group.svelte-1i8s3px{margin-bottom:24px}.ms-modal__invite-input-group.svelte-1i8s3px{display:flex;gap:12px;border:1px solid #ddd;border-radius:6px;justify-content:space-between;align-items:center;padding:6px}.ms-modal__invite-input.svelte-1i8s3px{border:none;background:none;outline:none;width:100%;font-size:12px;padding:8px 0;text-overflow:ellipsis}.ms-modal__invite-copy-btn.svelte-1i8s3px{font-size:14px;font-weight:700;line-height:1;color:#fff;background-color:#2962ff;border-radius:4px;display:flex;align-items:center;padding:8px 12px;gap:6px}.ms-modal__invite-copy-btn svg{margin-right:4px;width:16px}.ms-modal__invite-regenerate-btn.svelte-1i8s3px{font-size:12px;font-weight:600;line-height:1;color:#2962ff;background-color:transparent;border:none;outline:none;padding:4px 0}.ms-modal__upgrade-warning.svelte-1i8s3px{display:flex;align-items:center;gap:12px;padding:12px;border-radius:8px;font-size:14px;font-weight:500;line-height:1;color:#e28c0a;background-color:#faf3e1;width:100%;text-align:left}.ms-modal__upgrade-warning-text.svelte-1i8s3px{width:100%}.ms-modal__team-member.svelte-1i8s3px{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #ebebeb}.ms-modal__team-member.svelte-1i8s3px:last-child{border-bottom:none}.ms-modal__team-member-info.svelte-1i8s3px{display:flex;align-items:center}.ms-modal__team-member-image.svelte-1i8s3px{width:32px;height:32px;border-radius:50%;margin-right:10px}.ms-modal__team-member-image--initial.svelte-1i8s3px{width:32px;height:32px;border-radius:50%;border:1.33px solid #2962ff;margin-right:12px;display:flex;justify-content:center;align-items:center;background-color:#e7f1ff;color:#2962ff;font-size:18px;font-weight:500;line-height:1}.ms-modal__team-member-email.svelte-1i8s3px{font-size:14px;font-weight:500;line-height:1;color:#5c5c5c}.ms-modal__team-member-actions.svelte-1i8s3px{display:flex;align-items:center}.ms-modal__team-member-role.svelte-1i8s3px{font-size:12px;font-weight:500;line-height:1;color:#5c5c5c}.ms-modal__team-member-remove-btn.svelte-1i8s3px{font-size:12px;font-weight:600;line-height:1;color:#c8020d;background-color:transparent;border:none;outline:none;padding:4px 0;display:flex;align-items:center;margin-left:8px}.ms-modal__team-member-remove-text.svelte-1i8s3px{margin-right:8px}.ms-modal__team-member-remove-btn svg{width:10px !important}")}function di(e,t,n){const o=e.slice();return o[19]=t[n],o}function ui(e){var t,n;let o,r,s,i,a,l=(null==(t=e[0])?void 0:t.members.length)+"",c=(null==(n=e[0])?void 0:n.maxTeamMembers)+"";return{c(){o=qt("div"),r=Rt(l),s=Rt("/"),i=Rt(c),a=Rt(" Seats"),jt(o,"class","ms-modal__title--seats svelte-1i8s3px")},m(e,t){It(e,o,t),Pt(o,r),Pt(o,s),Pt(o,i),Pt(o,a)},p(e,t){var n,o;1&t&&l!==(l=(null==(n=e[0])?void 0:n.members.length)+"")&&Vt(r,l),1&t&&c!==(c=(null==(o=e[0])?void 0:o.maxTeamMembers)+"")&&Vt(i,c)},d(e){e&&At(o)}}}function mi(e){let t,n,o;return{c(){t=qt("button"),t.textContent="Upgrade",jt(t,"class","ms-modal__text-upgrade-button svelte-1i8s3px")},m(r,s){It(r,t,s),n||(o=Bt(t,"click",e[12]),n=!0)},p:st,d(e){e&&At(t),n=!1,o()}}}function pi(e){return{c:st,m:st,p:st,i:st,o:st,d:st}}function hi(e){let t,n,o,r,s;const i=[bi,gi,fi],a=[];function l(e,t){var n,o;return(null==(n=e[0])?void 0:n.members.length)<(null==(o=e[0])?void 0:o.maxTeamMembers)?0:e[3]?2:1}t=l(e),n=a[t]=i[t](e);let c=e[0]&&e[0].members.length>0&&vi(e);return{c(){n.c(),o=Ot(),c&&c.c(),r=Ft()},m(e,n){a[t].m(e,n),It(e,o,n),c&&c.m(e,n),It(e,r,n),s=!0},p(e,s){let d=t;t=l(e),t===d?a[t].p(e,s):(yn(),kn(a[d],1,1,(()=>{a[d]=null})),_n(),n=a[t],n?n.p(e,s):(n=a[t]=i[t](e),n.c()),$n(n,1),n.m(o.parentNode,o)),e[0]&&e[0].members.length>0?c?(c.p(e,s),1&s&&$n(c,1)):(c=vi(e),c.c(),$n(c,1),c.m(r.parentNode,r)):c&&(yn(),kn(c,1,1,(()=>{c=null})),_n())},i(e){s||($n(n),$n(c),s=!0)},o(e){kn(n),kn(c),s=!1},d(e){a[t].d(e),e&&At(o),c&&c.d(e),e&&At(r)}}}function fi(e){let t,n,o,r,s,i,a,l,c;return n=new li({}),{c(){t=qt("button"),An(n.$$.fragment),o=Ot(),r=qt("span"),r.textContent="You've used all your seats.",s=Ot(),i=qt("span"),i.innerHTML="Upgrade",jt(r,"class","ms-modal__upgrade-warning-text svelte-1i8s3px"),jt(t,"class","ms-modal__upgrade-warning svelte-1i8s3px")},m(d,u){It(d,t,u),En(n,t,null),Pt(t,o),Pt(t,r),Pt(t,s),Pt(t,i),a=!0,l||(c=Bt(t,"click",e[15]),l=!0)},p:st,i(e){a||($n(n.$$.fragment,e),a=!0)},o(e){kn(n.$$.fragment,e),a=!1},d(e){e&&At(t),qn(n),l=!1,c()}}}function gi(e){let t,n,o,r,s;return n=new li({}),{c(){t=qt("div"),An(n.$$.fragment),o=Ot(),r=qt("span"),r.textContent="You've used all your seats.",jt(r,"class","ms-modal__upgrade-warning-text svelte-1i8s3px"),jt(t,"class","ms-modal__upgrade-warning svelte-1i8s3px")},m(e,i){It(e,t,i),En(n,t,null),Pt(t,o),Pt(t,r),s=!0},p:st,i(e){s||($n(n.$$.fragment,e),s=!0)},o(e){kn(n.$$.fragment,e),s=!1},d(e){e&&At(t),qn(n)}}}function bi(e){let t,n,o,r,s,i,a,l,c,d,u,m,p;return i=new ii({}),{c(){t=qt("div"),n=qt("div"),o=qt("input"),r=Ot(),s=qt("button"),An(i.$$.fragment),a=Ot(),l=Rt(e[2]),c=Ot(),d=qt("button"),d.textContent="Regenerate Invite Link",jt(o,"type","text"),jt(o,"class","ms-modal__invite-input svelte-1i8s3px"),o.value=e[4],o.readOnly=!0,jt(s,"class","ms-modal__invite-copy-btn svelte-1i8s3px"),jt(n,"class","ms-modal__invite-input-group svelte-1i8s3px"),jt(d,"class","ms-modal__invite-regenerate-btn svelte-1i8s3px"),jt(t,"class","ms-modal__invite-group svelte-1i8s3px")},m(h,f){It(h,t,f),Pt(t,n),Pt(n,o),Pt(n,r),Pt(n,s),En(i,s,null),Pt(s,a),Pt(s,l),Pt(t,c),Pt(t,d),u=!0,m||(p=[Bt(s,"click",e[13]),Bt(d,"click",e[14])],m=!0)},p(e,t){(!u||16&t&&o.value!==e[4])&&(o.value=e[4]),(!u||4&t)&&Vt(l,e[2])},i(e){u||($n(i.$$.fragment,e),u=!0)},o(e){kn(i.$$.fragment,e),u=!1},d(e){e&&At(t),qn(i),m=!1,ut(p)}}}function vi(e){let t,n,o=[],r=new Map,s=e[0].members;const i=e=>e[19].member.id;for(let t=0;t{i[l]=null})),_n(),n=i[t],n?n.p(e,r):(n=i[t]=s[t](e),n.c()),$n(n,1),n.m(o.parentNode,o))},i(e){r||($n(n),r=!0)},o(e){kn(n),r=!1},d(e){i[t].d(e),e&&At(o)}}}function $i(e){let t,n,o,r,s,i,a;function l(){return e[17](e[19])}return r=new Kn({}),{c(){t=qt("button"),n=qt("span"),n.textContent="Are you sure?",o=Ot(),An(r.$$.fragment),jt(n,"class","ms-modal__team-member-remove-text svelte-1i8s3px"),jt(t,"class","ms-modal__team-member-remove-btn svelte-1i8s3px")},m(e,c){It(e,t,c),Pt(t,n),Pt(t,o),En(r,t,null),s=!0,i||(a=Bt(t,"click",l),i=!0)},p(t,n){e=t},i(e){s||($n(r.$$.fragment,e),s=!0)},o(e){kn(r.$$.fragment,e),s=!1},d(e){e&&At(t),qn(r),i=!1,a()}}}function ki(e){let t,n,o,r,s;function i(){return e[16](e[19])}return n=new Kn({}),{c(){t=qt("button"),An(n.$$.fragment),jt(t,"class","ms-modal__team-member-remove-btn svelte-1i8s3px")},m(e,a){It(e,t,a),En(n,t,null),o=!0,r||(s=Bt(t,"click",i),r=!0)},p(t,n){e=t},i(e){o||($n(n.$$.fragment,e),o=!0)},o(e){kn(n.$$.fragment,e),o=!1},d(e){e&&At(t),qn(n),r=!1,s()}}}function xi(e,t){let n,o,r,s,i,a,l,c,d,u,m,p,h=t[19].member.auth.email+"",f=t[19].role+"";function g(e,t){return null===e[19].member.profileImage?yi:wi}let b=g(t),v=b(t),w="OWNER"!==t[19].role&&_i(t);return{key:e,first:null,c(){n=qt("div"),o=qt("div"),v.c(),r=Ot(),s=qt("div"),i=Rt(h),a=Ot(),l=qt("div"),c=qt("div"),d=Rt(f),u=Ot(),w&&w.c(),m=Ot(),jt(s,"class","ms-modal__team-member-email svelte-1i8s3px"),jt(o,"class","ms-modal__team-member-info svelte-1i8s3px"),jt(c,"class","ms-modal__team-member-role svelte-1i8s3px"),jt(l,"class","ms-modal__team-member-actions svelte-1i8s3px"),jt(n,"class","ms-modal__team-member svelte-1i8s3px"),this.first=n},m(e,t){It(e,n,t),Pt(n,o),v.m(o,null),Pt(o,r),Pt(o,s),Pt(s,i),Pt(n,a),Pt(n,l),Pt(l,c),Pt(c,d),Pt(l,u),w&&w.m(l,null),Pt(n,m),p=!0},p(e,n){b===(b=g(t=e))&&v?v.p(t,n):(v.d(1),v=b(t),v&&(v.c(),v.m(o,r))),(!p||1&n)&&h!==(h=t[19].member.auth.email+"")&&Vt(i,h),(!p||1&n)&&f!==(f=t[19].role+"")&&Vt(d,f),"OWNER"!==t[19].role?w?(w.p(t,n),1&n&&$n(w,1)):(w=_i(t),w.c(),$n(w,1),w.m(l,null)):w&&(yn(),kn(w,1,1,(()=>{w=null})),_n())},i(e){p||($n(w),p=!0)},o(e){kn(w),p=!1},d(e){e&&At(n),v.d(),w&&w.d()}}}function Ti(e){let t;return{c(){t=qt("p"),t.textContent="Loading..."},m(e,n){It(e,t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}function Pi(e){var t,n,o;let r,s,i,a,l,c,d,u,m=(null==(t=e[0])?void 0:t.members.length)>0&&ui(e),p=e[3]&&(null==(n=e[0])?void 0:n.members.length)<(null==(o=e[0])?void 0:o.maxTeamMembers)&&mi(e),h={ctx:e,current:null,token:null,hasCatch:!1,pending:Ti,then:hi,catch:pi,blocks:[,,,]};return Pn(d=e[1],h),{c(){r=qt("div"),s=qt("h2"),s.textContent="Team",i=Ot(),m&&m.c(),a=Ot(),p&&p.c(),l=Ot(),c=Ft(),h.block.c(),jt(s,"class","ms-modal__title ms-modal__title--teams svelte-1i8s3px"),jt(r,"class","ms-modal__title-container ms-modal__title-container--teams svelte-1i8s3px")},m(e,t){It(e,r,t),Pt(r,s),Pt(r,i),m&&m.m(r,null),Pt(r,a),p&&p.m(r,null),It(e,l,t),It(e,c,t),h.block.m(e,h.anchor=t),h.mount=()=>c.parentNode,h.anchor=c,u=!0},p(t,[n]){var o,s,i;(null==(o=(e=t)[0])?void 0:o.members.length)>0?m?m.p(e,n):(m=ui(e),m.c(),m.m(r,a)):m&&(m.d(1),m=null),e[3]&&(null==(s=e[0])?void 0:s.members.length)<(null==(i=e[0])?void 0:i.maxTeamMembers)?p?p.p(e,n):(p=mi(e),p.c(),p.m(r,null)):p&&(p.d(1),p=null),h.ctx=e,2&n&&d!==(d=e[1])&&Pn(d,h)||Sn(h,e,n)},i(e){u||($n(h.block),u=!0)},o(e){for(let e=0;e<3;e+=1)kn(h.blocks[e]);u=!1},d(e){e&&At(r),m&&m.d(),p&&p.d(),e&&At(l),e&&At(c),h.block.d(e),h.token=null,h=null}}}function Si(e,t,n){var o,r,s;let i,a,l,c,{profileLoader:d}=t,{member:u}=t,m="Copy";function p(e){e.showRemoveButton=!0,n(0,c.members=[...c.members.filter((t=>t.member.id!==e.member.id)),e],c),setTimeout((()=>{e.showRemoveButton=!1}),3e3)}function h(){navigator.clipboard.writeText(i),n(2,m="Copied!"),setTimeout((()=>{n(2,m="Copy")}),2e3)}function f(){window.location.href=a}function g(e){return rt(this,null,(function*(){try{n(10,d=!0),yield window.$memberstackDom.removeMemberFromTeam({teamId:c.id,memberId:e}),n(0,c.members=c.members.filter((t=>t.member.id!==e)),c),window.$memberstackDom._showMessage("Member has been removed from team.",!1)}catch(e){window.$memberstackDom._showMessage(e.message,!0)}finally{n(10,d=!1)}}))}function b(){return rt(this,null,(function*(){try{n(10,d=!0);const{data:e}=yield window.$memberstackDom.generateInviteToken({teamId:c.id});n(0,c.inviteToken=e.inviteToken,c),window.$memberstackDom._showMessage("Invite Link Regenerated",!1)}catch(e){window.$memberstackDom._showMessage(e.message,!0)}finally{n(10,d=!1)}}))}return l=(null==(r=null==(o=null==u?void 0:u.teams)?void 0:o.ownedTeams)?void 0:r.length)>0?function(e){return rt(this,null,(function*(){const{data:t}=yield window.$memberstackDom.getTeam({teamId:e});return n(0,c=t),t}))}(null==(s=u.teams)?void 0:s.ownedTeams[0].teamId):Promise.resolve(null),e.$$set=e=>{"profileLoader"in e&&n(10,d=e.profileLoader),"member"in e&&n(11,u=e.member)},e.$$.update=()=>{var t,o,r;1&e.$$.dirty&&n(4,i=`${window.location.origin}${null==(t=null==c?void 0:c.plan)?void 0:t.teamAccountInviteSignupLink}?inviteToken=${null==c?void 0:c.inviteToken}`),1&e.$$.dirty&&n(3,a=null==(r=null==(o=null==c?void 0:c.ownersPlanConnection)?void 0:o.plan)?void 0:r.teamAccountUpgradeLink)},[c,l,m,a,i,p,h,f,g,b,d,u,()=>f(),()=>h(),()=>b(),()=>f(),e=>p(e),e=>g(e.member.id)]}var Ci=class extends Rn{constructor(e){super(),Dn(this,e,Si,Pi,pt,{profileLoader:10,member:11},ci)}};function Mi(e){let t,n;return t=new zs({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Li(e){let t,n,o,r;function s(t){e[21](t)}function i(t){e[22](t)}let a={};return void 0!==e[1]&&(a.member=e[1]),void 0!==e[4]&&(a.profileLoader=e[4]),t=new Ci({props:a}),rn.push((()=>In(t,"member",s))),rn.push((()=>In(t,"profileLoader",i))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),r=!0},p(e,r){const s={};!n&&2&r&&(n=!0,s.member=e[1],un((()=>n=!1))),!o&&16&r&&(o=!0,s.profileLoader=e[4],un((()=>o=!1))),t.$set(s)},i(e){r||($n(t.$$.fragment,e),r=!0)},o(e){kn(t.$$.fragment,e),r=!1},d(e){qn(t,e)}}}function Ii(e){let t,n,o,r;function s(t){e[19](t)}function i(t){e[20](t)}let a={};return void 0!==e[1]&&(a.member=e[1]),void 0!==e[4]&&(a.profileLoader=e[4]),t=new oi({props:a}),rn.push((()=>In(t,"member",s))),rn.push((()=>In(t,"profileLoader",i))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),r=!0},p(e,r){const s={};!n&&2&r&&(n=!0,s.member=e[1],un((()=>n=!1))),!o&&16&r&&(o=!0,s.profileLoader=e[4],un((()=>o=!1))),t.$set(s)},i(e){r||($n(t.$$.fragment,e),r=!0)},o(e){kn(t.$$.fragment,e),r=!1},d(e){qn(t,e)}}}function Ai(e){let t,n,o,r,s;function i(t){e[16](t)}function a(t){e[17](t)}function l(t){e[18](t)}let c={requestedTab:e[5]};return void 0!==e[0]&&(c.displayProfile=e[0]),void 0!==e[4]&&(c.profileLoader=e[4]),void 0!==e[1]&&(c.member=e[1]),t=new Ds({props:c}),rn.push((()=>In(t,"displayProfile",i))),rn.push((()=>In(t,"profileLoader",a))),rn.push((()=>In(t,"member",l))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),s=!0},p(e,s){const i={};32&s&&(i.requestedTab=e[5]),!n&&1&s&&(n=!0,i.displayProfile=e[0],un((()=>n=!1))),!o&&16&s&&(o=!0,i.profileLoader=e[4],un((()=>o=!1))),!r&&2&s&&(r=!0,i.member=e[1],un((()=>r=!1))),t.$set(i)},i(e){s||($n(t.$$.fragment,e),s=!0)},o(e){kn(t.$$.fragment,e),s=!1},d(e){qn(t,e)}}}function Ei(e){let t,n,o,r,s;function i(t){e[13](t)}function a(t){e[14](t)}function l(t){e[15](t)}let c={};return void 0!==e[0]&&(c.displayProfile=e[0]),void 0!==e[4]&&(c.profileLoader=e[4]),void 0!==e[1]&&(c.member=e[1]),t=new Cs({props:c}),rn.push((()=>In(t,"displayProfile",i))),rn.push((()=>In(t,"profileLoader",a))),rn.push((()=>In(t,"member",l))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),s=!0},p(e,s){const i={};!n&&1&s&&(n=!0,i.displayProfile=e[0],un((()=>n=!1))),!o&&16&s&&(o=!0,i.profileLoader=e[4],un((()=>o=!1))),!r&&2&s&&(r=!0,i.member=e[1],un((()=>r=!1))),t.$set(i)},i(e){s||($n(t.$$.fragment,e),s=!0)},o(e){kn(t.$$.fragment,e),s=!1},d(e){qn(t,e)}}}function qi(e){let t,n,o,r;function s(t){e[11](t)}function i(t){e[12](t)}let a={customFields:e[6].customFields};return void 0!==e[1]&&(a.member=e[1]),void 0!==e[4]&&(a.profileLoader=e[4]),t=new ps({props:a}),rn.push((()=>In(t,"member",s))),rn.push((()=>In(t,"profileLoader",i))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),r=!0},p(e,r){const s={};64&r&&(s.customFields=e[6].customFields),!n&&2&r&&(n=!0,s.member=e[1],un((()=>n=!1))),!o&&16&r&&(o=!0,s.profileLoader=e[4],un((()=>o=!1))),t.$set(s)},i(e){r||($n(t.$$.fragment,e),r=!0)},o(e){kn(t.$$.fragment,e),r=!1},d(e){qn(t,e)}}}function Di(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b,v,w,y,_,$=e[1].auth.email+"";function k(t){e[8](t)}function x(t){e[9](t)}function T(t){e[10](t)}i=new eo({props:{closeModal:e[3]}});let P={onSuccessLogout:e[2],hideProfileSection:Ri,requestedTab:e[5]};void 0!==e[1]&&(P.member=e[1]),void 0!==e[0]&&(P.displayProfile=e[0]),void 0!==e[4]&&(P.profileLoader=e[4]),d=new Qr({props:P}),rn.push((()=>In(d,"member",k))),rn.push((()=>In(d,"displayProfile",x))),rn.push((()=>In(d,"profileLoader",T)));let S=e[4]&&Mi();const C=[qi,Ei,Ai,Ii,Li],M=[];function L(e,t){return"profile"===e[0]?0:"security"===e[0]?1:"changePassword"===e[0]?2:"plans"===e[0]?3:"team"===e[0]?4:-1}return~(b=L(e))&&(v=M[b]=C[b](e)),y=new Ro({}),{c(){t=qt("div"),n=qt("div"),o=qt("div"),r=Rt($),s=Ot(),An(i.$$.fragment),a=Ot(),l=qt("div"),c=qt("div"),An(d.$$.fragment),h=Ot(),f=qt("div"),S&&S.c(),g=Ot(),v&&v.c(),w=Ot(),An(y.$$.fragment),jt(n,"class","ms-modal__header"),jt(c,"class","ms-modal__content-left"),jt(f,"class","ms-modal__content-right"),jt(l,"class","ms-modal__content ms-modal__content--profile"),jt(t,"class","ms-modal ms-modal--profile"),jt(t,"id","ProfileModal")},m(e,u){It(e,t,u),Pt(t,n),Pt(n,o),Pt(o,r),Pt(n,s),En(i,n,null),Pt(t,a),Pt(t,l),Pt(l,c),En(d,c,null),Pt(l,h),Pt(l,f),S&&S.m(f,null),Pt(f,g),~b&&M[b].m(f,null),Pt(t,w),En(y,t,null),_=!0},p(e,[t]){(!_||2&t)&&$!==($=e[1].auth.email+"")&&Vt(r,$);const n={};8&t&&(n.closeModal=e[3]),i.$set(n);const o={};4&t&&(o.onSuccessLogout=e[2]),32&t&&(o.requestedTab=e[5]),!u&&2&t&&(u=!0,o.member=e[1],un((()=>u=!1))),!m&&1&t&&(m=!0,o.displayProfile=e[0],un((()=>m=!1))),!p&&16&t&&(p=!0,o.profileLoader=e[4],un((()=>p=!1))),d.$set(o),e[4]?S?16&t&&$n(S,1):(S=Mi(),S.c(),$n(S,1),S.m(f,g)):S&&(yn(),kn(S,1,1,(()=>{S=null})),_n());let s=b;b=L(e),b===s?~b&&M[b].p(e,t):(v&&(yn(),kn(M[s],1,1,(()=>{M[s]=null})),_n()),~b?(v=M[b],v?v.p(e,t):(v=M[b]=C[b](e),v.c()),$n(v,1),v.m(f,null)):v=null)},i(e){_||($n(i.$$.fragment,e),$n(d.$$.fragment,e),$n(S),$n(v),$n(y.$$.fragment,e),_=!0)},o(e){kn(i.$$.fragment,e),kn(d.$$.fragment,e),kn(S),kn(v),kn(y.$$.fragment,e),_=!1},d(e){e&&At(t),qn(i),qn(d),S&&S.d(),~b&&M[b].d(),qn(y)}}}var Ri=!1;function Oi(e,t,n){let o,r;gt(e,Bn,(e=>n(6,r=e)));let{params:s}=t,{onSuccessLogout:i}=t,{closeModal:a}=t,{displayProfile:l="profile"}=t,{member:c}=t,d=!1;return e.$$set=e=>{"params"in e&&n(7,s=e.params),"onSuccessLogout"in e&&n(2,i=e.onSuccessLogout),"closeModal"in e&&n(3,a=e.closeModal),"displayProfile"in e&&n(0,l=e.displayProfile),"member"in e&&n(1,c=e.member)},e.$$.update=()=>{var t,r;128&e.$$.dirty&&(null==(t=null==s?void 0:s.profile)?void 0:t.tab)&&n(0,l=s.profile.tab),128&e.$$.dirty&&n(5,o=(null==(r=null==s?void 0:s.profile)?void 0:r.tab)||null)},[l,c,i,a,d,o,r,s,function(e){c=e,n(1,c)},function(e){l=e,n(0,l),n(7,s)},function(e){d=e,n(4,d)},function(e){c=e,n(1,c)},function(e){d=e,n(4,d)},function(e){l=e,n(0,l),n(7,s)},function(e){d=e,n(4,d)},function(e){c=e,n(1,c)},function(e){l=e,n(0,l),n(7,s)},function(e){d=e,n(4,d)},function(e){c=e,n(1,c)},function(e){c=e,n(1,c)},function(e){d=e,n(4,d)},function(e){c=e,n(1,c)},function(e){d=e,n(4,d)}]}var Fi=class extends Rn{constructor(e){super(),Dn(this,e,Oi,Di,pt,{params:7,onSuccessLogout:2,closeModal:3,displayProfile:0,member:1})}};function Bi(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","M7.41 1.41L6 0L0 6L6 12L7.41 10.59L2.83 6L7.41 1.41Z"),jt(t,"fill","none"),jt(t,"transform","rotate(180)"),jt(t,"viewBox","0 0 8 12"),jt(t,"xmlns","http://www.w3.org/2000/svg")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var zi=class extends Rn{constructor(e){super(),Dn(this,e,null,Bi,pt,{})}};function Ni(e){let t,n,o,r,s,i,a,l,c;return o=new Nr({}),i=new zi({}),{c(){t=qt("button"),n=qt("div"),An(o.$$.fragment),r=Rt(" Profile"),s=Ot(),An(i.$$.fragment),jt(t,"class","ms-modal__profile-option"),Wt(t,"ms-modal__profile-option--active","profile"===e[0])},m(d,u){It(d,t,u),Pt(t,n),En(o,n,null),Pt(n,r),Pt(t,s),En(i,t,null),a=!0,l||(c=Bt(t,"click",e[8]),l=!0)},p(e,n){(!a||1&n)&&Wt(t,"ms-modal__profile-option--active","profile"===e[0])},i(e){a||($n(o.$$.fragment,e),$n(i.$$.fragment,e),a=!0)},o(e){kn(o.$$.fragment,e),kn(i.$$.fragment,e),a=!1},d(e){e&&At(t),qn(o),qn(i),l=!1,c()}}}function ji(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b,v,w,y,_=e[2](),$=e[3](),k=!e[1]&&Ni(e);s=new Vr({}),l=new zi({});let x=_&&function(e){let t,n,o,r,s,i,a,l,c;return o=new Zr({}),i=new zi({}),{c(){t=qt("button"),n=qt("div"),An(o.$$.fragment),r=Rt(" Plans"),s=Ot(),An(i.$$.fragment),jt(t,"class","ms-modal__profile-option"),Wt(t,"ms-modal__profile-option--active","plans"===e[0])},m(d,u){It(d,t,u),Pt(t,n),En(o,n,null),Pt(n,r),Pt(t,s),En(i,t,null),a=!0,l||(c=Bt(t,"click",e[10]),l=!0)},p(e,n){(!a||1&n)&&Wt(t,"ms-modal__profile-option--active","plans"===e[0])},i(e){a||($n(o.$$.fragment,e),$n(i.$$.fragment,e),a=!0)},o(e){kn(o.$$.fragment,e),kn(i.$$.fragment,e),a=!1},d(e){e&&At(t),qn(o),qn(i),l=!1,c()}}}(e),T=$&&function(e){let t,n,o,r,s,i,a,l,c;return o=new Zr({}),i=new zi({}),{c(){t=qt("button"),n=qt("div"),An(o.$$.fragment),r=Rt(" Team"),s=Ot(),An(i.$$.fragment),jt(t,"class","ms-modal__profile-option"),Wt(t,"ms-modal__profile-option--active","team"===e[0])},m(d,u){It(d,t,u),Pt(t,n),En(o,n,null),Pt(n,r),Pt(t,s),En(i,t,null),a=!0,l||(c=Bt(t,"click",e[11]),l=!0)},p(e,n){(!a||1&n)&&Wt(t,"ms-modal__profile-option--active","team"===e[0])},i(e){a||($n(o.$$.fragment,e),$n(i.$$.fragment,e),a=!0)},o(e){kn(o.$$.fragment,e),kn(i.$$.fragment,e),a=!1},d(e){e&&At(t),qn(o),qn(i),l=!1,c()}}}(e);return h=new Gr({}),b=new zi({}),{c(){t=qt("div"),k&&k.c(),n=Ot(),o=qt("button"),r=qt("div"),An(s.$$.fragment),i=Rt(" Security"),a=Ot(),An(l.$$.fragment),c=Ot(),x&&x.c(),d=Ot(),T&&T.c(),u=Ot(),m=qt("button"),p=qt("div"),An(h.$$.fragment),f=Rt(" Logout"),g=Ot(),An(b.$$.fragment),jt(o,"class","ms-modal__profile-option"),Wt(o,"ms-modal__profile-option--active","security"===e[0]||"changePassword"===e[0]),jt(m,"class","ms-modal__profile-option"),jt(t,"class","ms-modal__mobile-profile-nav")},m(_,$){It(_,t,$),k&&k.m(t,null),Pt(t,n),Pt(t,o),Pt(o,r),En(s,r,null),Pt(r,i),Pt(o,a),En(l,o,null),Pt(t,c),x&&x.m(t,null),Pt(t,d),T&&T.m(t,null),Pt(t,u),Pt(t,m),Pt(m,p),En(h,p,null),Pt(p,f),Pt(m,g),En(b,m,null),v=!0,w||(y=[Bt(o,"click",e[9]),Bt(m,"click",e[4])],w=!0)},p(e,[r]){e[1]?k&&(yn(),kn(k,1,1,(()=>{k=null})),_n()):k?(k.p(e,r),2&r&&$n(k,1)):(k=Ni(e),k.c(),$n(k,1),k.m(t,n)),(!v||1&r)&&Wt(o,"ms-modal__profile-option--active","security"===e[0]||"changePassword"===e[0]),_&&x.p(e,r),$&&T.p(e,r)},i(e){v||($n(k),$n(s.$$.fragment,e),$n(l.$$.fragment,e),$n(x),$n(T),$n(h.$$.fragment,e),$n(b.$$.fragment,e),v=!0)},o(e){kn(k),kn(s.$$.fragment,e),kn(l.$$.fragment,e),kn(x),kn(T),kn(h.$$.fragment,e),kn(b.$$.fragment,e),v=!1},d(e){e&&At(t),k&&k.d(),qn(s),qn(l),x&&x.d(),T&&T.d(),qn(h),qn(b),w=!1,ut(y)}}}function Vi(e,t,n){let{member:o}=t,{onSuccessLogout:r}=t,{displayProfile:s}=t,{profileLoader:i}=t,{hideProfileSection:a}=t;const l=Bn.subscribe((e=>{if(!e.initialValue){const t=document.getElementById("msOverlay"),n=document.createElement("style"),o=e.branding.colors.lightMode.primaryButton,r=`.ms-modal__profile-option:hover { color: ${o};} .ms-modal__profile-option--active { color: ${o};} .ms-modal__save-button { background: ${o};} .ms-modal__save-button:disabled { background: ${o};}`;n.appendChild(document.createTextNode(r)),t.appendChild(n)}}));return nn((()=>{l()})),e.$$set=e=>{"member"in e&&n(6,o=e.member),"onSuccessLogout"in e&&n(7,r=e.onSuccessLogout),"displayProfile"in e&&n(0,s=e.displayProfile),"profileLoader"in e&&n(5,i=e.profileLoader),"hideProfileSection"in e&&n(1,a=e.hideProfileSection)},[s,a,function(){return o.stripeCustomerId||o.planConnections.some((e=>"FREE"===e.type))||o.teams.joinedTeams.length>0},function(){var e;return(null==(e=o.teams)?void 0:e.ownedTeams.length)>0},function(e){return rt(this,null,(function*(){try{const{data:e,_internalUseOnly:{message:t}}=yield window.$memberstackDom.logout();window.$memberstackDom._showMessage(t,!1),r({type:"LOGOUT",data:e})}catch(e){window.$memberstackDom._showMessage(e.message,!0)}}))},i,o,r,()=>n(0,s="profile"),()=>n(0,s="security"),()=>n(0,s="plans"),()=>n(0,s="team")]}var Hi=class extends Rn{constructor(e){super(),Dn(this,e,Vi,ji,pt,{member:6,onSuccessLogout:7,displayProfile:0,profileLoader:5,hideProfileSection:1})}};function Ui(e,t,n){const o=e.slice();return o[5]=t[n],o[6]=t,o[7]=n,o}function Wi(e){let t,n,o,r,s,i,a,l,c,d,u,m,p=e[5].label+"";function h(){e[4].call(a,e[5])}return{c(){t=qt("div"),n=qt("div"),o=qt("label"),r=Rt(p),i=Ot(),a=qt("input"),d=Ot(),jt(o,"class","ms-form__label"),jt(o,"for",s=e[5].key),jt(a,"class","ms-form__input"),jt(a,"type","text"),jt(a,"placeholder",l=e[5].label),jt(a,"name",c=e[5].key),jt(n,"class","ms-form__group"),jt(t,"class","ms-modal__custom-field-container")},m(s,l){It(s,t,l),Pt(t,n),Pt(n,o),Pt(o,r),Pt(n,i),Pt(n,a),Ht(a,e[0].customFields[e[5].key]),Pt(t,d),u||(m=Bt(a,"input",h),u=!0)},p(t,n){e=t,2&n&&p!==(p=e[5].label+"")&&Vt(r,p),2&n&&s!==(s=e[5].key)&&jt(o,"for",s),2&n&&l!==(l=e[5].label)&&jt(a,"placeholder",l),2&n&&c!==(c=e[5].key)&&jt(a,"name",c),3&n&&a.value!==e[0].customFields[e[5].key]&&Ht(a,e[0].customFields[e[5].key])},d(e){e&&At(t),u=!1,m()}}}function Gi(e){let t,n=!0!==e[5].hidden&&Wi(e);return{c(){n&&n.c(),t=Ft()},m(e,o){n&&n.m(e,o),It(e,t,o)},p(e,o){!0!==e[5].hidden?n?n.p(e,o):(n=Wi(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&At(t)}}}function Yi(e){let t,n,o,r,s,i,a=e[1],l=[];for(let t=0;t{"customFields"in e&&n(1,o=e.customFields),"member"in e&&n(0,r=e.member),"profileLoader"in e&&n(3,s=e.profileLoader)},[r,o,function(e){return rt(this,null,(function*(){n(3,s=!0),yield window.$memberstackDom.updateMember({customFields:r.customFields}),n(3,s=!1)}))},s,function(e){r.customFields[e.key]=this.value,n(0,r)}]}var Ji=class extends Rn{constructor(e){super(),Dn(this,e,Zi,Yi,pt,{customFields:1,member:0,profileLoader:3})}};function Ki(e,t,n){const o=e.slice();return o[20]=t[n],o}function Xi(e){let t;return{c(){t=Rt("Change Password")},m(e,n){It(e,t,n)},d(e){e&&At(t)}}}function Qi(e){let t;return{c(){t=Rt("Set Password")},m(e,n){It(e,t,n)},d(e){e&&At(t)}}}function ea(e){let t,n,o,r=[],s=new Map,i=e[5].authProviders;const a=e=>e[20].provider;for(let t=0;tYou will be logged out and your account will be deleted.",o=Ot(),r=qt("div"),s=qt("button"),s.textContent="Cancel",i=Ot(),a=qt("button"),a.textContent="Yes, Delete Account",jt(n,"class","ms-modal__confirm-text"),jt(s,"class","ms-modal__outline-button"),jt(s,"type","button"),jt(a,"class","ms-modal__outline-button delete-account--confirm"),jt(a,"type","button"),jt(r,"class","ms-modal__confirm-buttons"),jt(t,"class","ms-modal__confirm-delete")},m(d,u){It(d,t,u),Pt(t,n),Pt(t,o),Pt(t,r),Pt(r,s),Pt(r,i),Pt(r,a),l||(c=[Bt(s,"click",e[18]),Bt(a,"click",e[9])],l=!0)},p:st,d(e){e&&At(t),l=!1,ut(c)}}}function ia(e){let t,n,o;return{c(){t=qt("button"),t.textContent="Delete Account",jt(t,"class","ms-modal__outline-button delete-account"),jt(t,"type","button")},m(r,s){It(r,t,s),n||(o=Bt(t,"click",e[17]),n=!0)},p:st,d(e){e&&At(t),n=!1,o()}}}function aa(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b,v,w,y,_;function $(t){e[12](t)}function k(t){e[13](t)}let x={};function T(e,t){return e[1].auth.hasPassword?Xi:Qi}void 0!==e[4]&&(x.emailInputValid=e[4]),void 0!==e[2]&&(x.emailValue=e[2]),n=new wo({props:x}),rn.push((()=>In(n,"emailInputValid",$))),rn.push((()=>In(n,"emailValue",k))),d=new fs({});let P=T(e),S=P(e),C=e[5].authProviders.length>0&&ea(e),M=!0===e[5].allowMemberSelfDelete&&ra(e);return{c(){t=qt("form"),An(n.$$.fragment),s=Ot(),i=qt("div"),a=qt("label"),a.textContent="Password",l=Ot(),c=qt("button"),An(d.$$.fragment),u=Ot(),S.c(),m=Ot(),C&&C.c(),p=Ot(),M&&M.c(),h=Ot(),f=qt("div"),g=qt("button"),b=Rt("Save"),jt(t,"class","ms-form"),jt(t,"action",""),jt(t,"method","post"),jt(t,"autocomplete","off"),jt(a,"class","ms-form__label"),jt(a,"for","setPassword"),jt(c,"class","ms-modal__outline-button ms-modal__outline-button--mobile"),jt(c,"name","setPassword"),jt(i,"class","ms-form__group"),jt(g,"class","ms-modal__save-button ms-modal__save-button--large"),g.disabled=v=!e[4],jt(f,"class","ms-modal__action-container")},m(o,r){It(o,t,r),En(n,t,null),It(o,s,r),It(o,i,r),Pt(i,a),Pt(i,l),Pt(i,c),En(d,c,null),Pt(c,u),S.m(c,null),It(o,m,r),C&&C.m(o,r),It(o,p,r),M&&M.m(o,r),It(o,h,r),It(o,f,r),Pt(f,g),Pt(g,b),w=!0,y||(_=[Bt(t,"submit",Nt(zt(e[6]))),Bt(c,"click",e[14]),Bt(g,"click",e[6])],y=!0)},p(e,[t]){const s={};!o&&16&t&&(o=!0,s.emailInputValid=e[4],un((()=>o=!1))),!r&&4&t&&(r=!0,s.emailValue=e[2],un((()=>r=!1))),n.$set(s),P!==(P=T(e))&&(S.d(1),S=P(e),S&&(S.c(),S.m(c,null))),e[5].authProviders.length>0?C?C.p(e,t):(C=ea(e),C.c(),C.m(p.parentNode,p)):C&&(C.d(1),C=null),!0===e[5].allowMemberSelfDelete?M?M.p(e,t):(M=ra(e),M.c(),M.m(h.parentNode,h)):M&&(M.d(1),M=null),(!w||16&t&&v!==(v=!e[4]))&&(g.disabled=v)},i(e){w||($n(n.$$.fragment,e),$n(d.$$.fragment,e),w=!0)},o(e){kn(n.$$.fragment,e),kn(d.$$.fragment,e),w=!1},d(e){e&&At(t),qn(n),e&&At(s),e&&At(i),qn(d),S.d(),e&&At(m),C&&C.d(e),e&&At(p),M&&M.d(e),e&&At(h),e&&At(f),y=!1,ut(_)}}}function la(e,t,n){let o;gt(e,Bn,(e=>n(5,o=e)));let{displayProfile:r}=t,{member:s}=t,{emailValue:i}=t,{profileLoader:a}=t,l=!1;o.authProviders.sort(((e,t)=>m(e)===m(t)?e.order-t.order:m(e)?-1:1));let c=!1;function d(e){return rt(this,null,(function*(){n(10,a=!0);try{const{data:t,_internalUseOnly:{message:o}}=yield window.$memberstackDom.disconnectProvider({provider:e});n(1,s=ot(nt({},s),{auth:ot(nt({},s.auth),{providers:t.providers})})),window.$memberstackDom._showMessage(o,!1),n(10,a=!1)}catch(e){window.$memberstackDom._showMessage(e.message,!0),n(10,a=!1)}}))}function u(e){return rt(this,null,(function*(){console.log("connect",e);try{const{data:t}=yield window.$memberstackDom.connectProvider({provider:e});n(1,s=ot(nt({},s),{auth:ot(nt({},s.auth),{providers:t.providers})})),window.$memberstackDom._showMessage(t.message,!1)}catch(e){window.$memberstackDom._showMessage(e.message,!0)}}))}function m(e){return s.auth.providers.some((t=>t.provider===e.provider))}return e.$$set=e=>{"displayProfile"in e&&n(0,r=e.displayProfile),"member"in e&&n(1,s=e.member),"emailValue"in e&&n(2,i=e.emailValue),"profileLoader"in e&&n(10,a=e.profileLoader)},[r,s,i,l,c,o,function(e){return rt(this,null,(function*(){if(c&&i){n(10,a=!0);try{const{_internalUseOnly:{message:e}}=yield window.$memberstackDom.updateMemberAuth({email:i});window.$memberstackDom._showMessage(e,!1),n(10,a=!1)}catch(e){window.$memberstackDom._showMessage(e.message,!0),n(10,a=!1)}}}))},d,u,function(){return rt(this,null,(function*(){n(10,a=!0),yield window.$memberstackDom.deleteMember(),n(10,a=!1),window.location.href="/"}))},a,(e,t)=>t.provider===e.provider,function(e){c=e,n(4,c)},function(e){i=e,n(2,i)},()=>n(0,r="changePassword"),e=>d(e.provider),e=>u(e.provider),()=>n(3,l=!0),()=>n(3,l=!1)]}var ca=class extends Rn{constructor(e){super(),Dn(this,e,la,aa,pt,{displayProfile:0,member:1,emailValue:2,profileLoader:10})}};function da(e){let t,n,o,r;function s(t){e[9](t)}function i(t){e[10](t)}let a={passwordLabel:"Current Password",passwordPlaceholder:"Enter a strong password"};return void 0!==e[1]&&(a.passwordValue=e[1]),void 0!==e[4]&&(a.passwordInputValid=e[4]),t=new Lo({props:a}),rn.push((()=>In(t,"passwordValue",s))),rn.push((()=>In(t,"passwordInputValid",i))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),r=!0},p(e,r){const s={};!n&&2&r&&(n=!0,s.passwordValue=e[1],un((()=>n=!1))),!o&&16&r&&(o=!0,s.passwordInputValid=e[4],un((()=>o=!1))),t.$set(s)},i(e){r||($n(t.$$.fragment,e),r=!0)},o(e){kn(t.$$.fragment,e),r=!1},d(e){qn(t,e)}}}function ua(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b,v=e[0].auth.hasPassword&&da(e);function w(t){e[11](t)}function y(t){e[12](t)}let _={passwordLabel:"New Password",passwordPlaceholder:"Enter a strong password"};function $(t){e[13](t)}function k(t){e[14](t)}void 0!==e[2]&&(_.passwordValue=e[2]),void 0!==e[5]&&(_.passwordInputValid=e[5]),o=new Lo({props:_}),rn.push((()=>In(o,"passwordValue",w))),rn.push((()=>In(o,"passwordInputValid",y)));let x={passwordLabel:"Confirm New Password",passwordPlaceholder:"Enter a strong password"};return void 0!==e[3]&&(x.passwordValue=e[3]),void 0!==e[6]&&(x.passwordInputValid=e[6]),a=new Lo({props:x}),rn.push((()=>In(a,"passwordValue",$))),rn.push((()=>In(a,"passwordInputValid",k))),{c(){t=qt("form"),v&&v.c(),n=Ot(),An(o.$$.fragment),i=Ot(),An(a.$$.fragment),d=Ot(),u=qt("div"),m=qt("button"),p=Rt("Save"),jt(t,"class","ms-form"),jt(t,"action",""),jt(t,"method","post"),jt(t,"autocomplete","off"),jt(m,"class","ms-modal__save-button ms-modal__save-button--large"),m.disabled=h=e[0].auth.hasPassword&&!e[4]||!e[5]||!e[6],jt(u,"class","ms-modal__action-container")},m(r,s){It(r,t,s),v&&v.m(t,null),Pt(t,n),En(o,t,null),Pt(t,i),En(a,t,null),It(r,d,s),It(r,u,s),Pt(u,m),Pt(m,p),f=!0,g||(b=[Bt(t,"submit",Nt(zt(e[7]))),Bt(m,"click",e[7])],g=!0)},p(e,[i]){e[0].auth.hasPassword?v?(v.p(e,i),1&i&&$n(v,1)):(v=da(e),v.c(),$n(v,1),v.m(t,n)):v&&(yn(),kn(v,1,1,(()=>{v=null})),_n());const d={};!r&&4&i&&(r=!0,d.passwordValue=e[2],un((()=>r=!1))),!s&&32&i&&(s=!0,d.passwordInputValid=e[5],un((()=>s=!1))),o.$set(d);const u={};!l&&8&i&&(l=!0,u.passwordValue=e[3],un((()=>l=!1))),!c&&64&i&&(c=!0,u.passwordInputValid=e[6],un((()=>c=!1))),a.$set(u),(!f||113&i&&h!==(h=e[0].auth.hasPassword&&!e[4]||!e[5]||!e[6]))&&(m.disabled=h)},i(e){f||($n(v),$n(o.$$.fragment,e),$n(a.$$.fragment,e),f=!0)},o(e){kn(v),kn(o.$$.fragment,e),kn(a.$$.fragment,e),f=!1},d(e){e&&At(t),v&&v.d(),qn(o),qn(a),e&&At(d),e&&At(u),g=!1,ut(b)}}}function ma(e,t,n){let{profileLoader:o}=t,{member:r}=t,s="",i="",a="",l=!1,c=!1,d=!1;return e.$$set=e=>{"profileLoader"in e&&n(8,o=e.profileLoader),"member"in e&&n(0,r=e.member)},[r,s,i,a,l,c,d,function(e){return rt(this,null,(function*(){if((!r.auth.hasPassword||l||c||d)&&(r.auth.hasPassword||c||d)){n(8,o=!0);try{let e;if(r.auth.hasPassword){const{_internalUseOnly:{message:t}}=yield window.$memberstackDom.updateMemberAuth({oldPassword:s,newPassword:i});e=t}else{const{_internalUseOnly:{message:t}}=yield window.$memberstackDom.setPassword({password:i});n(0,r.auth.hasPassword=!0,r),e=t}window.$memberstackDom._showMessage(e,!1),n(1,s=""),n(2,i=""),n(3,a=""),n(8,o=!1)}catch(e){window.$memberstackDom._showMessage(e.message,!0),n(8,o=!1)}}}))},o,function(e){s=e,n(1,s)},function(e){l=e,n(4,l)},function(e){i=e,n(2,i)},function(e){c=e,n(5,c)},function(e){a=e,n(3,a)},function(e){d=e,n(6,d)}]}var pa=class extends Rn{constructor(e){super(),Dn(this,e,ma,ua,pt,{profileLoader:8,member:0})}};function ha(e,t,n){const o=e.slice();return o[11]=t[n],o[13]=n,o}function fa(e,t,n){const o=e.slice();return o[14]=t[n],o}function ga(e){let t,n,o,r,s;return r=new Vs({props:{onClick:e[4],class:"ms-modal__regular-button--margin-right ms-modal__regular-button--left-icon",buttonText:"Manage Subscriptions",buttonLeftIcon:Ur}}),{c(){t=qt("h3"),t.textContent="Paid Plans",n=Ot(),o=qt("div"),An(r.$$.fragment),Ut(o,"display","flex"),Ut(o,"flex-wrap","wrap")},m(e,i){It(e,t,i),It(e,n,i),It(e,o,i),En(r,o,null),s=!0},p:st,i(e){s||($n(r.$$.fragment,e),s=!0)},o(e){kn(r.$$.fragment,e),s=!1},d(e){e&&At(t),e&&At(n),e&&At(o),qn(r)}}}function ba(e){let t,n,o,r,s=e[1],i=[];for(let t=0;tkn(i[e],1,1,(()=>{i[e]=null}));return{c(){t=qt("h3"),t.textContent="Team Plans",n=Ot();for(let e=0;ekn(i[e],1,1,(()=>{i[e]=null}));return{c(){t=qt("h3"),t.textContent="Free Plans",n=Ot();for(let e=0;e0&&ba(e),l=e[2].length>0&&wa(e),c=!e[0].stripeCustomerId&&0===e[2].length&&_a();return{c(){i&&i.c(),t=Ot(),a&&a.c(),n=Ot(),l&&l.c(),o=Ot(),c&&c.c(),r=Ft()},m(e,d){i&&i.m(e,d),It(e,t,d),a&&a.m(e,d),It(e,n,d),l&&l.m(e,d),It(e,o,d),c&&c.m(e,d),It(e,r,d),s=!0},p(e,[s]){e[0].stripeCustomerId?i?(i.p(e,s),1&s&&$n(i,1)):(i=ga(e),i.c(),$n(i,1),i.m(t.parentNode,t)):i&&(yn(),kn(i,1,1,(()=>{i=null})),_n()),e[1].length>0?a?(a.p(e,s),2&s&&$n(a,1)):(a=ba(e),a.c(),$n(a,1),a.m(n.parentNode,n)):a&&(yn(),kn(a,1,1,(()=>{a=null})),_n()),e[2].length>0?l?(l.p(e,s),4&s&&$n(l,1)):(l=wa(e),l.c(),$n(l,1),l.m(o.parentNode,o)):l&&(yn(),kn(l,1,1,(()=>{l=null})),_n()),e[0].stripeCustomerId||0!==e[2].length?c&&(c.d(1),c=null):c||(c=_a(),c.c(),c.m(r.parentNode,r))},i(e){s||($n(i),$n(a),$n(l),s=!0)},o(e){kn(i),kn(a),kn(l),s=!1},d(e){i&&i.d(e),e&&At(t),a&&a.d(e),e&&At(n),l&&l.d(e),e&&At(o),c&&c.d(e),e&&At(r)}}}function ka(e,t,n){let o,r,s;gt(e,Bn,(e=>n(3,s=e)));let{profileLoader:i}=t,{member:a}=t;function l(e){return rt(this,null,(function*(){n(7,i=!0);try{yield window.$memberstackDom.removePlan({planId:e}),n(0,a.planConnections=a.planConnections.filter((t=>t.planId!==e)),a)}catch(e){console.log(e),window.$memberstackDom._showMessage(e.message,!0)}finally{n(7,i=!1)}}))}function c(e,t){return rt(this,null,(function*(){try{yield window.$memberstackDom.removeMemberFromTeam({teamId:e,memberId:t}),n(0,a.teams.joinedTeams=a.teams.joinedTeams.filter((t=>t.teamId!==e)),a)}catch(e){window.$memberstackDom._showMessage(e.message,!0)}}))}return e.$$set=e=>{"profileLoader"in e&&n(7,i=e.profileLoader),"member"in e&&n(0,a=e.member)},e.$$.update=()=>{var t;1&e.$$.dirty&&n(2,o=a.planConnections.filter((e=>"FREE"===e.type))),1&e.$$.dirty&&n(1,r=null==(t=a.teams)?void 0:t.joinedTeams)},[a,r,o,s,function(e){return rt(this,null,(function*(){n(7,i=!0),yield window.$memberstackDom.launchStripeCustomerPortal({priceIds:[],autoRedirect:!0})}))},l,c,i,e=>c(e.teamId,a.id),(e,t)=>t.id===e.planId,e=>l(e.planId)]}var xa=class extends Rn{constructor(e){super(),Dn(this,e,ka,$a,pt,{profileLoader:7,member:0})}};function Ta(e){St(e,"svelte-q2cgm9",".ms-modal__title-container--teams.svelte-q2cgm9{display:flex;justify-content:flex-start;align-items:baseline;margin-bottom:24px;gap:12px}.ms-modal__text-upgrade-button.svelte-q2cgm9{font-size:12px;font-weight:600;line-height:1;color:#2962ff;background-color:transparent;border:none;outline:none;padding:4px 0;margin-left:auto}.ms-modal__title--seats.svelte-q2cgm9{font-size:14px;line-height:1;font-weight:500;color:#5c5c5c}.ms-modal__invite-group.svelte-q2cgm9{margin-bottom:24px}.ms-modal__invite-input-group.svelte-q2cgm9{display:flex;gap:12px;border:1px solid #ddd;border-radius:6px;justify-content:space-between;align-items:center;padding:6px}.ms-modal__invite-input.svelte-q2cgm9{border:none;background:none;outline:none;width:100%;font-size:12px;padding:8px 0;text-overflow:ellipsis}.ms-modal__invite-copy-btn.svelte-q2cgm9{font-size:14px;font-weight:700;line-height:1;color:#fff;background-color:#2962ff;border-radius:4px;display:flex;align-items:center;padding:8px 12px;gap:6px}.ms-modal__invite-copy-btn svg{margin-right:4px;width:16px}.ms-modal__invite-regenerate-btn.svelte-q2cgm9{font-size:12px;font-weight:600;line-height:1;color:#2962ff;background-color:transparent;border:none;outline:none;padding:4px 0}.ms-modal__upgrade-warning.svelte-q2cgm9{display:flex;align-items:center;gap:12px;padding:12px;border-radius:8px;font-size:14px;font-weight:500;line-height:1;color:#e28c0a;background-color:#faf3e1;width:100%;text-align:left}.ms-modal__upgrade-warning-text.svelte-q2cgm9{width:100%}.ms-modal__team-member.svelte-q2cgm9{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #ebebeb}.ms-modal__team-member.svelte-q2cgm9:last-child{border-bottom:none}.ms-modal__team-member-info.svelte-q2cgm9{display:flex;align-items:center}.ms-modal__team-member-image.svelte-q2cgm9{width:32px;height:32px;border-radius:50%;margin-right:10px}.ms-modal__team-member-image--initial.svelte-q2cgm9{width:32px;height:32px;border-radius:50%;border:1.33px solid #2962ff;margin-right:12px;display:flex;justify-content:center;align-items:center;background-color:#e7f1ff;color:#2962ff;font-size:18px;font-weight:500;line-height:1}.ms-modal__team-member-email.svelte-q2cgm9{font-size:14px;font-weight:500;line-height:1;color:#5c5c5c}.ms-modal__team-member-actions.svelte-q2cgm9{display:flex;align-items:center}.ms-modal__team-member-role.svelte-q2cgm9{font-size:12px;font-weight:500;line-height:1;color:#5c5c5c}.ms-modal__team-member-remove-btn.svelte-q2cgm9{font-size:12px;font-weight:600;line-height:1;color:#c8020d;background-color:transparent;border:none;outline:none;padding:4px 0;display:flex;align-items:center;margin-left:8px}.ms-modal__team-member-remove-text.svelte-q2cgm9{margin-right:8px}.ms-modal__team-member-remove-btn svg{width:10px !important}")}function Pa(e,t,n){const o=e.slice();return o[19]=t[n],o}function Sa(e){var t,n;let o,r,s,i,a,l=(null==(t=e[0])?void 0:t.members.length)+"",c=(null==(n=e[0])?void 0:n.maxTeamMembers)+"";return{c(){o=qt("div"),r=Rt(l),s=Rt("/"),i=Rt(c),a=Rt(" Seats"),jt(o,"class","ms-modal__title--seats svelte-q2cgm9")},m(e,t){It(e,o,t),Pt(o,r),Pt(o,s),Pt(o,i),Pt(o,a)},p(e,t){var n,o;1&t&&l!==(l=(null==(n=e[0])?void 0:n.members.length)+"")&&Vt(r,l),1&t&&c!==(c=(null==(o=e[0])?void 0:o.maxTeamMembers)+"")&&Vt(i,c)},d(e){e&&At(o)}}}function Ca(e){let t,n,o;return{c(){t=qt("button"),t.textContent="Upgrade",jt(t,"class","ms-modal__text-upgrade-button svelte-q2cgm9")},m(r,s){It(r,t,s),n||(o=Bt(t,"click",e[12]),n=!0)},p:st,d(e){e&&At(t),n=!1,o()}}}function Ma(e){return{c:st,m:st,p:st,i:st,o:st,d:st}}function La(e){let t,n,o,r,s;const i=[Ea,Aa,Ia],a=[];function l(e,t){var n,o;return(null==(n=e[0])?void 0:n.members.length)<(null==(o=e[0])?void 0:o.maxTeamMembers)?0:e[3]?2:1}t=l(e),n=a[t]=i[t](e);let c=e[0]&&e[0].members.length>0&&qa(e);return{c(){n.c(),o=Ot(),c&&c.c(),r=Ft()},m(e,n){a[t].m(e,n),It(e,o,n),c&&c.m(e,n),It(e,r,n),s=!0},p(e,s){let d=t;t=l(e),t===d?a[t].p(e,s):(yn(),kn(a[d],1,1,(()=>{a[d]=null})),_n(),n=a[t],n?n.p(e,s):(n=a[t]=i[t](e),n.c()),$n(n,1),n.m(o.parentNode,o)),e[0]&&e[0].members.length>0?c?(c.p(e,s),1&s&&$n(c,1)):(c=qa(e),c.c(),$n(c,1),c.m(r.parentNode,r)):c&&(yn(),kn(c,1,1,(()=>{c=null})),_n())},i(e){s||($n(n),$n(c),s=!0)},o(e){kn(n),kn(c),s=!1},d(e){a[t].d(e),e&&At(o),c&&c.d(e),e&&At(r)}}}function Ia(e){let t,n,o,r,s,i,a,l,c;return n=new li({}),{c(){t=qt("button"),An(n.$$.fragment),o=Ot(),r=qt("span"),r.textContent="You've used all your seats.",s=Ot(),i=qt("span"),i.innerHTML="Upgrade",jt(r,"class","ms-modal__upgrade-warning-text svelte-q2cgm9"),jt(t,"class","ms-modal__upgrade-warning svelte-q2cgm9")},m(d,u){It(d,t,u),En(n,t,null),Pt(t,o),Pt(t,r),Pt(t,s),Pt(t,i),a=!0,l||(c=Bt(t,"click",e[15]),l=!0)},p:st,i(e){a||($n(n.$$.fragment,e),a=!0)},o(e){kn(n.$$.fragment,e),a=!1},d(e){e&&At(t),qn(n),l=!1,c()}}}function Aa(e){let t,n,o,r,s;return n=new li({}),{c(){t=qt("div"),An(n.$$.fragment),o=Ot(),r=qt("span"),r.textContent="You've used all your seats.",jt(r,"class","ms-modal__upgrade-warning-text svelte-q2cgm9"),jt(t,"class","ms-modal__upgrade-warning svelte-q2cgm9")},m(e,i){It(e,t,i),En(n,t,null),Pt(t,o),Pt(t,r),s=!0},p:st,i(e){s||($n(n.$$.fragment,e),s=!0)},o(e){kn(n.$$.fragment,e),s=!1},d(e){e&&At(t),qn(n)}}}function Ea(e){let t,n,o,r,s,i,a,l,c,d,u,m,p;return i=new ii({}),{c(){t=qt("div"),n=qt("div"),o=qt("input"),r=Ot(),s=qt("button"),An(i.$$.fragment),a=Ot(),l=Rt(e[2]),c=Ot(),d=qt("button"),d.textContent="Regenerate Invite Link",jt(o,"type","text"),jt(o,"class","ms-modal__invite-input svelte-q2cgm9"),o.value=e[4],o.readOnly=!0,jt(s,"class","ms-modal__invite-copy-btn svelte-q2cgm9"),jt(n,"class","ms-modal__invite-input-group svelte-q2cgm9"),jt(d,"class","ms-modal__invite-regenerate-btn svelte-q2cgm9"),jt(t,"class","ms-modal__invite-group svelte-q2cgm9")},m(h,f){It(h,t,f),Pt(t,n),Pt(n,o),Pt(n,r),Pt(n,s),En(i,s,null),Pt(s,a),Pt(s,l),Pt(t,c),Pt(t,d),u=!0,m||(p=[Bt(s,"click",e[13]),Bt(d,"click",e[14])],m=!0)},p(e,t){(!u||16&t&&o.value!==e[4])&&(o.value=e[4]),(!u||4&t)&&Vt(l,e[2])},i(e){u||($n(i.$$.fragment,e),u=!0)},o(e){kn(i.$$.fragment,e),u=!1},d(e){e&&At(t),qn(i),m=!1,ut(p)}}}function qa(e){let t,n,o=[],r=new Map,s=e[0].members;const i=e=>e[19].member.id;for(let t=0;t{i[l]=null})),_n(),n=i[t],n?n.p(e,r):(n=i[t]=s[t](e),n.c()),$n(n,1),n.m(o.parentNode,o))},i(e){r||($n(n),r=!0)},o(e){kn(n),r=!1},d(e){i[t].d(e),e&&At(o)}}}function Fa(e){let t,n,o,r,s,i,a;function l(){return e[17](e[19])}return r=new Kn({}),{c(){t=qt("button"),n=qt("span"),n.textContent="Are you sure?",o=Ot(),An(r.$$.fragment),jt(n,"class","ms-modal__team-member-remove-text svelte-q2cgm9"),jt(t,"class","ms-modal__team-member-remove-btn svelte-q2cgm9")},m(e,c){It(e,t,c),Pt(t,n),Pt(t,o),En(r,t,null),s=!0,i||(a=Bt(t,"click",l),i=!0)},p(t,n){e=t},i(e){s||($n(r.$$.fragment,e),s=!0)},o(e){kn(r.$$.fragment,e),s=!1},d(e){e&&At(t),qn(r),i=!1,a()}}}function Ba(e){let t,n,o,r,s;function i(){return e[16](e[19])}return n=new Kn({}),{c(){t=qt("button"),An(n.$$.fragment),jt(t,"class","ms-modal__team-member-remove-btn svelte-q2cgm9")},m(e,a){It(e,t,a),En(n,t,null),o=!0,r||(s=Bt(t,"click",i),r=!0)},p(t,n){e=t},i(e){o||($n(n.$$.fragment,e),o=!0)},o(e){kn(n.$$.fragment,e),o=!1},d(e){e&&At(t),qn(n),r=!1,s()}}}function za(e,t){let n,o,r,s,i,a,l,c,d,u,m,p,h=t[19].member.auth.email+"",f=t[19].role+"";function g(e,t){return null===e[19].member.profileImage?Ra:Da}let b=g(t),v=b(t),w="OWNER"!==t[19].role&&Oa(t);return{key:e,first:null,c(){n=qt("div"),o=qt("div"),v.c(),r=Ot(),s=qt("div"),i=Rt(h),a=Ot(),l=qt("div"),c=qt("div"),d=Rt(f),u=Ot(),w&&w.c(),m=Ot(),jt(s,"class","ms-modal__team-member-email svelte-q2cgm9"),jt(o,"class","ms-modal__team-member-info svelte-q2cgm9"),jt(c,"class","ms-modal__team-member-role svelte-q2cgm9"),jt(l,"class","ms-modal__team-member-actions svelte-q2cgm9"),jt(n,"class","ms-modal__team-member svelte-q2cgm9"),this.first=n},m(e,t){It(e,n,t),Pt(n,o),v.m(o,null),Pt(o,r),Pt(o,s),Pt(s,i),Pt(n,a),Pt(n,l),Pt(l,c),Pt(c,d),Pt(l,u),w&&w.m(l,null),Pt(n,m),p=!0},p(e,n){b===(b=g(t=e))&&v?v.p(t,n):(v.d(1),v=b(t),v&&(v.c(),v.m(o,r))),(!p||1&n)&&h!==(h=t[19].member.auth.email+"")&&Vt(i,h),(!p||1&n)&&f!==(f=t[19].role+"")&&Vt(d,f),"OWNER"!==t[19].role?w?(w.p(t,n),1&n&&$n(w,1)):(w=Oa(t),w.c(),$n(w,1),w.m(l,null)):w&&(yn(),kn(w,1,1,(()=>{w=null})),_n())},i(e){p||($n(w),p=!0)},o(e){kn(w),p=!1},d(e){e&&At(n),v.d(),w&&w.d()}}}function Na(e){let t;return{c(){t=qt("p"),t.textContent="Loading..."},m(e,n){It(e,t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}function ja(e){var t,n,o;let r,s,i,a,l,c,d,u,m=(null==(t=e[0])?void 0:t.members.length)>0&&Sa(e),p=e[3]&&(null==(n=e[0])?void 0:n.members.length)<(null==(o=e[0])?void 0:o.maxTeamMembers)&&Ca(e),h={ctx:e,current:null,token:null,hasCatch:!1,pending:Na,then:La,catch:Ma,blocks:[,,,]};return Pn(d=e[1],h),{c(){r=qt("div"),s=qt("h3"),s.textContent="Team",i=Ot(),m&&m.c(),a=Ot(),p&&p.c(),l=Ot(),c=Ft(),h.block.c(),jt(r,"class","ms-modal__title-container ms-modal__title-container--teams svelte-q2cgm9")},m(e,t){It(e,r,t),Pt(r,s),Pt(r,i),m&&m.m(r,null),Pt(r,a),p&&p.m(r,null),It(e,l,t),It(e,c,t),h.block.m(e,h.anchor=t),h.mount=()=>c.parentNode,h.anchor=c,u=!0},p(t,[n]){var o,s,i;(null==(o=(e=t)[0])?void 0:o.members.length)>0?m?m.p(e,n):(m=Sa(e),m.c(),m.m(r,a)):m&&(m.d(1),m=null),e[3]&&(null==(s=e[0])?void 0:s.members.length)<(null==(i=e[0])?void 0:i.maxTeamMembers)?p?p.p(e,n):(p=Ca(e),p.c(),p.m(r,null)):p&&(p.d(1),p=null),h.ctx=e,2&n&&d!==(d=e[1])&&Pn(d,h)||Sn(h,e,n)},i(e){u||($n(h.block),u=!0)},o(e){for(let e=0;e<3;e+=1)kn(h.blocks[e]);u=!1},d(e){e&&At(r),m&&m.d(),p&&p.d(),e&&At(l),e&&At(c),h.block.d(e),h.token=null,h=null}}}function Va(e,t,n){var o,r,s;let i,a,l,c,{profileLoader:d}=t,{member:u}=t,m="Copy";function p(e){e.showRemoveButton=!0,n(0,c.members=[...c.members.filter((t=>t.member.id!==e.member.id)),e],c),setTimeout((()=>{e.showRemoveButton=!1}),3e3)}function h(){navigator.clipboard.writeText(i),n(2,m="Copied!"),setTimeout((()=>{n(2,m="Copy")}),2e3)}function f(){window.location.href=a}function g(e){return rt(this,null,(function*(){try{n(10,d=!0),yield window.$memberstackDom.removeMemberFromTeam({teamId:c.id,memberId:e}),n(0,c.members=c.members.filter((t=>t.member.id!==e)),c),window.$memberstackDom._showMessage("Member has been removed from team.",!1)}catch(e){window.$memberstackDom._showMessage(e.message,!0)}finally{n(10,d=!1)}}))}function b(){return rt(this,null,(function*(){try{n(10,d=!0);const{data:e}=yield window.$memberstackDom.generateInviteToken({teamId:c.id});n(0,c.inviteToken=e.inviteToken,c),window.$memberstackDom._showMessage("Invite Link Regenerated",!1)}catch(e){window.$memberstackDom._showMessage(e.message,!0)}finally{n(10,d=!1)}}))}return l=(null==(r=null==(o=null==u?void 0:u.teams)?void 0:o.ownedTeams)?void 0:r.length)>0?function(e){return rt(this,null,(function*(){const{data:t}=yield window.$memberstackDom.getTeam({teamId:e});return n(0,c=t),t}))}(null==(s=u.teams)?void 0:s.ownedTeams[0].teamId):Promise.resolve(null),e.$$set=e=>{"profileLoader"in e&&n(10,d=e.profileLoader),"member"in e&&n(11,u=e.member)},e.$$.update=()=>{var t,o,r;1&e.$$.dirty&&n(4,i=`${window.location.origin}${null==(t=null==c?void 0:c.plan)?void 0:t.teamAccountInviteSignupLink}?inviteToken=${null==c?void 0:c.inviteToken}`),1&e.$$.dirty&&n(3,a=null==(r=null==(o=null==c?void 0:c.ownersPlanConnection)?void 0:o.plan)?void 0:r.teamAccountUpgradeLink)},[c,l,m,a,i,p,h,f,g,b,d,u,()=>f(),()=>h(),()=>b(),()=>f(),e=>p(e),e=>g(e.member.id)]}var Ha=class extends Rn{constructor(e){super(),Dn(this,e,Va,ja,pt,{profileLoader:10,member:11},Ta)}};function Ua(e){let t,n,o,r,s,i;return o=new _r({}),{c(){t=qt("div"),n=qt("button"),An(o.$$.fragment),jt(t,"class","ms-modal__profile-back--mobile")},m(a,l){It(a,t,l),Pt(t,n),En(o,n,null),r=!0,s||(i=Bt(n,"click",e[8]),s=!0)},p:st,i(e){r||($n(o.$$.fragment,e),r=!0)},o(e){kn(o.$$.fragment,e),r=!1},d(e){e&&At(t),qn(o),s=!1,i()}}}function Wa(e){let t,n;return t=new no({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},p:st,i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Ga(e){let t,n,o;return{c(){t=qt("img"),ht(t.src,n=e[7].branding.logo)||jt(t,"src",n),jt(t,"alt",o=e[7].name)},m(e,n){It(e,t,n)},p(e,r){128&r&&!ht(t.src,n=e[7].branding.logo)&&jt(t,"src",n),128&r&&o!==(o=e[7].name)&&jt(t,"alt",o)},i:st,o:st,d(e){e&&At(t)}}}function Ya(e){let t,n;return t=new zs({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Za(e){let t,n,o,r,s;function i(t){e[23](t)}function a(t){e[24](t)}function l(t){e[25](t)}let c={};return void 0!==e[0]&&(c.displayProfile=e[0]),void 0!==e[6]&&(c.profileLoader=e[6]),void 0!==e[1]&&(c.member=e[1]),t=new pa({props:c}),rn.push((()=>In(t,"displayProfile",i))),rn.push((()=>In(t,"profileLoader",a))),rn.push((()=>In(t,"member",l))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),s=!0},p(e,s){const i={};!n&&1&s&&(n=!0,i.displayProfile=e[0],un((()=>n=!1))),!o&&64&s&&(o=!0,i.profileLoader=e[6],un((()=>o=!1))),!r&&2&s&&(r=!0,i.member=e[1],un((()=>r=!1))),t.$set(i)},i(e){s||($n(t.$$.fragment,e),s=!0)},o(e){kn(t.$$.fragment,e),s=!1},d(e){qn(t,e)}}}function Ja(e){let t,n,o,r,s;function i(t){e[20](t)}function a(t){e[21](t)}function l(t){e[22](t)}let c={};return void 0!==e[0]&&(c.displayProfile=e[0]),void 0!==e[6]&&(c.profileLoader=e[6]),void 0!==e[1]&&(c.member=e[1]),t=new Ha({props:c}),rn.push((()=>In(t,"displayProfile",i))),rn.push((()=>In(t,"profileLoader",a))),rn.push((()=>In(t,"member",l))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),s=!0},p(e,s){const i={};!n&&1&s&&(n=!0,i.displayProfile=e[0],un((()=>n=!1))),!o&&64&s&&(o=!0,i.profileLoader=e[6],un((()=>o=!1))),!r&&2&s&&(r=!0,i.member=e[1],un((()=>r=!1))),t.$set(i)},i(e){s||($n(t.$$.fragment,e),s=!0)},o(e){kn(t.$$.fragment,e),s=!1},d(e){qn(t,e)}}}function Ka(e){let t,n,o,r,s;function i(t){e[17](t)}function a(t){e[18](t)}function l(t){e[19](t)}let c={};return void 0!==e[0]&&(c.displayProfile=e[0]),void 0!==e[6]&&(c.profileLoader=e[6]),void 0!==e[1]&&(c.member=e[1]),t=new xa({props:c}),rn.push((()=>In(t,"displayProfile",i))),rn.push((()=>In(t,"profileLoader",a))),rn.push((()=>In(t,"member",l))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),s=!0},p(e,s){const i={};!n&&1&s&&(n=!0,i.displayProfile=e[0],un((()=>n=!1))),!o&&64&s&&(o=!0,i.profileLoader=e[6],un((()=>o=!1))),!r&&2&s&&(r=!0,i.member=e[1],un((()=>r=!1))),t.$set(i)},i(e){s||($n(t.$$.fragment,e),s=!0)},o(e){kn(t.$$.fragment,e),s=!1},d(e){qn(t,e)}}}function Xa(e){let t,n,o,r,s;function i(t){e[14](t)}function a(t){e[15](t)}function l(t){e[16](t)}let c={};return void 0!==e[0]&&(c.displayProfile=e[0]),void 0!==e[6]&&(c.profileLoader=e[6]),void 0!==e[1]&&(c.member=e[1]),t=new ca({props:c}),rn.push((()=>In(t,"displayProfile",i))),rn.push((()=>In(t,"profileLoader",a))),rn.push((()=>In(t,"member",l))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),s=!0},p(e,s){const i={};!n&&1&s&&(n=!0,i.displayProfile=e[0],un((()=>n=!1))),!o&&64&s&&(o=!0,i.profileLoader=e[6],un((()=>o=!1))),!r&&2&s&&(r=!0,i.member=e[1],un((()=>r=!1))),t.$set(i)},i(e){s||($n(t.$$.fragment,e),s=!0)},o(e){kn(t.$$.fragment,e),s=!1},d(e){qn(t,e)}}}function Qa(e){let t,n,o,r;function s(t){e[12](t)}function i(t){e[13](t)}let a={customFields:e[7].customFields};return void 0!==e[1]&&(a.member=e[1]),void 0!==e[6]&&(a.profileLoader=e[6]),t=new Ji({props:a}),rn.push((()=>In(t,"member",s))),rn.push((()=>In(t,"profileLoader",i))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),r=!0},p(e,r){const s={};128&r&&(s.customFields=e[7].customFields),!n&&2&r&&(n=!0,s.member=e[1],un((()=>n=!1))),!o&&64&r&&(o=!0,s.profileLoader=e[6],un((()=>o=!1))),t.$set(s)},i(e){r||($n(t.$$.fragment,e),r=!0)},o(e){kn(t.$$.fragment,e),r=!1},d(e){qn(t,e)}}}function el(e){let t,n,o,r,s;function i(t){e[9](t)}function a(t){e[10](t)}function l(t){e[11](t)}let c={onSuccessLogout:e[3],hideProfileSection:e[5]};return void 0!==e[1]&&(c.member=e[1]),void 0!==e[0]&&(c.displayProfile=e[0]),void 0!==e[6]&&(c.profileLoader=e[6]),t=new Hi({props:c}),rn.push((()=>In(t,"member",i))),rn.push((()=>In(t,"displayProfile",a))),rn.push((()=>In(t,"profileLoader",l))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),s=!0},p(e,s){const i={};8&s&&(i.onSuccessLogout=e[3]),32&s&&(i.hideProfileSection=e[5]),!n&&2&s&&(n=!0,i.member=e[1],un((()=>n=!1))),!o&&1&s&&(o=!0,i.displayProfile=e[0],un((()=>o=!1))),!r&&64&s&&(r=!0,i.profileLoader=e[6],un((()=>r=!1))),t.$set(i)},i(e){s||($n(t.$$.fragment,e),s=!0)},o(e){kn(t.$$.fragment,e),s=!1},d(e){qn(t,e)}}}function tl(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b,v,w,y,_,$,k=("profile"===e[0]||"changePassword"===e[0]||"security"===e[0]||"plans"===e[0]||"team"===e[0])&&Ua(e);const x=[Ga,Wa],T=[];function P(e,t){return e[7].branding.logo?0:1}i=P(e),a=T[i]=x[i](e),p=new eo({props:{closeModal:e[4]}});let S=e[6]&&Ya();const C=[el,Qa,Xa,Ka,Ja,Za],M=[];function L(e,t){return"profile-nav"===e[0]?0:"profile"===e[0]?1:"security"===e[0]?2:"plans"===e[0]?3:"team"===e[0]?4:"changePassword"===e[0]?5:-1}return~(v=L(e))&&(w=M[v]=C[v](e)),_=new Ro({}),{c(){t=qt("div"),n=qt("div"),k&&k.c(),o=Ot(),r=qt("div"),s=qt("figure"),a.c(),l=Ot(),c=qt("div"),d=qt("b"),u=Rt(e[2]),m=Ot(),An(p.$$.fragment),h=Ot(),f=qt("div"),g=qt("div"),S&&S.c(),b=Ot(),w&&w.c(),y=Ot(),An(_.$$.fragment),jt(s,"class","ms-modal__figure ms-modal__figure--mobile"),jt(r,"class","ms-modal__header--center"),jt(n,"class","ms-modal__header--mobile"),jt(g,"class","ms-modal__content--mobile"),jt(f,"class","ms-modal__content ms-modal__content--profile"),jt(t,"class","ms-modal ms-modal--profile"),jt(t,"id","MobileProfileModal")},m(e,a){It(e,t,a),Pt(t,n),k&&k.m(n,null),Pt(n,o),Pt(n,r),Pt(r,s),T[i].m(s,null),Pt(r,l),Pt(r,c),Pt(c,d),Pt(d,u),Pt(n,m),En(p,n,null),Pt(t,h),Pt(t,f),Pt(f,g),S&&S.m(g,null),Pt(g,b),~v&&M[v].m(g,null),Pt(t,y),En(_,t,null),$=!0},p(e,[t]){"profile"===e[0]||"changePassword"===e[0]||"security"===e[0]||"plans"===e[0]||"team"===e[0]?k?(k.p(e,t),1&t&&$n(k,1)):(k=Ua(e),k.c(),$n(k,1),k.m(n,o)):k&&(yn(),kn(k,1,1,(()=>{k=null})),_n());let r=i;i=P(e),i===r?T[i].p(e,t):(yn(),kn(T[r],1,1,(()=>{T[r]=null})),_n(),a=T[i],a?a.p(e,t):(a=T[i]=x[i](e),a.c()),$n(a,1),a.m(s,null)),(!$||4&t)&&Vt(u,e[2]);const l={};16&t&&(l.closeModal=e[4]),p.$set(l),e[6]?S?64&t&&$n(S,1):(S=Ya(),S.c(),$n(S,1),S.m(g,b)):S&&(yn(),kn(S,1,1,(()=>{S=null})),_n());let c=v;v=L(e),v===c?~v&&M[v].p(e,t):(w&&(yn(),kn(M[c],1,1,(()=>{M[c]=null})),_n()),~v?(w=M[v],w?w.p(e,t):(w=M[v]=C[v](e),w.c()),$n(w,1),w.m(g,null)):w=null)},i(e){$||($n(k),$n(a),$n(p.$$.fragment,e),$n(S),$n(w),$n(_.$$.fragment,e),$=!0)},o(e){kn(k),kn(a),kn(p.$$.fragment,e),kn(S),kn(w),kn(_.$$.fragment,e),$=!1},d(e){e&&At(t),k&&k.d(),T[i].d(),qn(p),S&&S.d(),~v&&M[v].d(),qn(_)}}}function nl(e,t,n){let o;gt(e,Bn,(e=>n(7,o=e)));let{onSuccessLogout:r}=t,{closeModal:s}=t,{displayProfile:i="profile-nav"}=t,{member:a}=t,{profileTitle:l=a.auth.email}=t,c=!1,d=!1;return o.customFields.filter((e=>!e.hidden)).length||(i="security",c=!0),e.$$set=e=>{"onSuccessLogout"in e&&n(3,r=e.onSuccessLogout),"closeModal"in e&&n(4,s=e.closeModal),"displayProfile"in e&&n(0,i=e.displayProfile),"member"in e&&n(1,a=e.member),"profileTitle"in e&&n(2,l=e.profileTitle)},e.$$.update=()=>{3&e.$$.dirty&&("profile-nav"===i?n(2,l=a.auth.email):"profile"===i?n(2,l="My Profile"):"security"===i?n(2,l="Security"):"plans"===i?n(2,l="Plans"):"team"===i?n(2,l="Team"):"changePassword"===i&&(a.auth.hasPassword?n(2,l="Change Password"):n(2,l="Set Password")))},[i,a,l,r,s,c,d,o,()=>n(0,i="profile-nav"),function(e){a=e,n(1,a)},function(e){i=e,n(0,i)},function(e){d=e,n(6,d)},function(e){a=e,n(1,a)},function(e){d=e,n(6,d)},function(e){i=e,n(0,i)},function(e){d=e,n(6,d)},function(e){a=e,n(1,a)},function(e){i=e,n(0,i)},function(e){d=e,n(6,d)},function(e){a=e,n(1,a)},function(e){i=e,n(0,i)},function(e){d=e,n(6,d)},function(e){a=e,n(1,a)},function(e){i=e,n(0,i)},function(e){d=e,n(6,d)},function(e){a=e,n(1,a)}]}var ol=class extends Rn{constructor(e){super(),Dn(this,e,nl,tl,pt,{onSuccessLogout:3,closeModal:4,displayProfile:0,member:1,profileTitle:2})}};function rl(e){St(e,"svelte-50knw2","svg.svelte-50knw2{fill:currentColor;width:9px;height:auto}")}function sl(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","M459-381 314-526q-3-3-4.5-6.5T308-540q0-8 5.5-14t14.5-6h304q9 0 14.5 6t5.5 14q0 2-6 14L501-381q-5 5-10 7t-11 2q-6 0-11-2t-10-7Z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"viewBox","308 -560 344 188"),jt(t,"class","svelte-50knw2")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var il=class extends Rn{constructor(e){super(),Dn(this,e,null,sl,pt,{},rl)}};function al(e){St(e,"svelte-w4kmg0","#TestCardModal .copied{background-color:#3eb862 !important;color:#fff !important}#TestCardModal .copied svg{opacity:1 !important}#TestCardModal.svelte-w4kmg0 .ms-modal__title.svelte-w4kmg0{text-align:left;margin-bottom:5px;font-size:20px;line-height:24px}#TestCardModal.svelte-w4kmg0 .ms-video.svelte-w4kmg0{width:100%;margin-top:20px;margin-bottom:20px;border-radius:10px;overflow:hidden}#TestCardModal.svelte-w4kmg0 p.svelte-w4kmg0{color:#443;font-size:11px;line-height:16.5px;margin-bottom:10px}#TestCardModal.svelte-w4kmg0 p.no-margin.svelte-w4kmg0{margin:0}#TestCardModal.svelte-w4kmg0 p a.svelte-w4kmg0{color:#443;font-weight:bold;text-decoration:underline}#TestCardModal.svelte-w4kmg0 .ms-split-button.svelte-w4kmg0{display:flex;position:relative;margin-bottom:10px;width:100%;color:#292929;font-size:13px;line-height:1}#TestCardModal.svelte-w4kmg0 .ms-split-button__main.svelte-w4kmg0{background-color:#f5f5f5;border:0.5px solid #dddfee;border-radius:6px 0 0 6px;padding:10px 15px;width:100%;display:flex;text-overflow:ellipsis;gap:6px;align-items:center;transition:background-color 0.2s}#TestCardModal.svelte-w4kmg0 .ms-split-button__main span.svelte-w4kmg0{font-weight:bold}#TestCardModal.svelte-w4kmg0 .ms-split-button__main.svelte-w4kmg0:hover{background:#dddfee}#TestCardModal.svelte-w4kmg0 .ms-split-button__secondary.svelte-w4kmg0{background-color:#f5f5f5;border:0.5px solid #dddfee;border-radius:0 6px 6px 0;padding:10px 15px;display:flex;align-items:center;justify-content:center;transition:background-color 0.2s}#TestCardModal.svelte-w4kmg0 .ms-split-button__secondary.svelte-w4kmg0:hover{background:#dddfee}#TestCardModal.svelte-w4kmg0 .ms-split-button__secondary.active.svelte-w4kmg0{background:#dddfee}#TestCardModal.svelte-w4kmg0 .ms-split-button__dropdown.svelte-w4kmg0{background-color:#f5f5f5;border:0.5px solid #dddfee;border-radius:6px;color:#443;display:none;font-size:12px;line-height:1;position:absolute;right:0;top:100%;z-index:2147483649 !important;width:auto}#TestCardModal.svelte-w4kmg0 .ms-split-button__dropdown.show.svelte-w4kmg0{display:block}#TestCardModal.svelte-w4kmg0 .ms-split-button__dropdown section.svelte-w4kmg0{display:flex;flex-direction:column}#TestCardModal.svelte-w4kmg0 .ms-split-button__dropdown-title.svelte-w4kmg0{background-color:#f5f5f5;color:#000;font-size:11px;font-weight:bold;line-height:1;padding:10px;border-bottom:0.5px solid #dddfee;text-align:right}#TestCardModal.svelte-w4kmg0 .ms-split-button__dropdown button.svelte-w4kmg0{background-color:#fff;color:#443;font-size:11px;line-height:1;padding:10px;width:100%;text-align:right;transition:background-color 0.2s;display:flex;justify-content:space-between;align-items:center}#TestCardModal.svelte-w4kmg0 .ms-split-button__dropdown button .ms-split-button__copy-icon.svelte-w4kmg0{position:relative;width:20px;height:5px;display:flex;justify-content:center;align-items:center}#TestCardModal.svelte-w4kmg0 .ms-split-button__dropdown button.svelte-w4kmg0:hover{background-color:#dddfee}\n #TestCardModal\n .ms-split-button__dropdown\n button\n .ms-split-button__copy-icon\n svg\n {position:absolute}\n #TestCardModal\n .ms-split-button__dropdown\n button:hover\n .ms-split-button__copy-icon\n svg\n {opacity:1}\n #TestCardModal\n .ms-split-button__dropdown\n button\n .ms-split-button__copy-icon\n svg\n {opacity:0}#TestCardModal.svelte-w4kmg0 .ms-split-button__dropdown button span.svelte-w4kmg0{font-weight:bold}#TestCardModal.svelte-w4kmg0 .ms-split-button__dropdown-footer.svelte-w4kmg0{background-color:#f5f5f5;color:#000;font-size:11px;line-height:1;font-weight:bold;padding:10px;text-align:center}#TestCardModal.svelte-w4kmg0 .ms-split-button__dropdown-footer a.svelte-w4kmg0{color:#2962ff;text-decoration:none}#TestCardModal.svelte-w4kmg0 .ms-submit-button.svelte-w4kmg0{background-color:#434de7;border-radius:6px;color:#fff;font-size:14px;font-weight:bold;line-height:1;padding:16px;width:100%}")}function ll(e){let t,n;return t=new eo({props:{closeModal:e[0]}}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},p(e,n){const o={};1&n&&(o.closeModal=e[0]),t.$set(o)},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function cl(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b,v,w,y,_,$,k,x,T,P,S,C,M,L,I,A,E,q,D,R,O,F,B,z,N,j,V,H,U,W,G,Y,Z,J,K,X,Q,ee,te,ne,oe,re,se,ie,ae,le,ce,de=(!e[2]||!e[2].hideCloseButton)&&ll(e);return g=new ii({}),$=new il({}),L=new ii({}),D=new ii({}),z=new ii({}),Y=new ii({}),Q=new ii({}),{c(){t=qt("div"),de&&de.c(),n=Ot(),o=qt("div"),r=qt("h2"),r.textContent="Copy Stripe Test Card",s=Ot(),i=qt("p"),i.textContent="Test mode only. Live members will never see this modal.",a=Ot(),l=qt("video"),c=qt("source"),u=qt("source"),p=Ot(),h=qt("div"),f=qt("button"),An(g.$$.fragment),b=Ot(),v=Rt(e[3]),w=qt("span"),w.textContent="...4242",y=Ot(),_=qt("button"),An($.$$.fragment),k=Ot(),x=qt("nav"),T=qt("section"),P=qt("div"),P.textContent="Test Successful Payments",S=Ot(),C=qt("button"),M=qt("span"),An(L.$$.fragment),I=qt("span"),I.innerHTML="Visa Debit ...5556",A=Ot(),E=qt("button"),q=qt("span"),An(D.$$.fragment),R=qt("span"),R.innerHTML="Mastercard ...4444",O=Ot(),F=qt("button"),B=qt("span"),An(z.$$.fragment),N=qt("span"),N.innerHTML="American Express ...10005",j=Ot(),V=qt("section"),H=qt("div"),H.textContent="Test Declined Payments",U=Ot(),W=qt("button"),G=qt("span"),An(Y.$$.fragment),Z=qt("span"),Z.innerHTML="Generic decline ...0002",J=Ot(),K=qt("button"),X=qt("span"),An(Q.$$.fragment),ee=qt("span"),ee.innerHTML="Insufficient funds ...9995",te=Ot(),ne=qt("div"),ne.innerHTML='Complete list of alternative test cards.',oe=Ot(),re=qt("p"),re.textContent="Paste the card number on the next screen, with any CVC,\n expiration date, and ZIP code.",se=Ot(),ie=qt("button"),ie.textContent="Continue to Test Checkout",jt(r,"class","ms-modal__title svelte-w4kmg0"),jt(r,"data-copy-btn",""),jt(i,"class","no-margin svelte-w4kmg0"),ht(c.src,d=ul)||jt(c,"src",d),jt(c,"type","video/mp4"),ht(u.src,m=ml)||jt(u,"src",m),jt(u,"type","video/webm"),l.autoplay=!0,l.loop=!0,l.muted=!0,l.playsInline=!0,jt(l,"class","ms-video svelte-w4kmg0"),jt(l,"poster",dl),jt(w,"class","svelte-w4kmg0"),jt(f,"class","ms-split-button__main svelte-w4kmg0"),jt(_,"class","ms-split-button__secondary svelte-w4kmg0"),Wt(_,"active",e[4]),jt(P,"class","ms-split-button__dropdown-title svelte-w4kmg0"),jt(M,"class","ms-split-button__copy-icon svelte-w4kmg0"),jt(I,"class","svelte-w4kmg0"),jt(C,"class","svelte-w4kmg0"),jt(q,"class","ms-split-button__copy-icon svelte-w4kmg0"),jt(R,"class","svelte-w4kmg0"),jt(E,"class","svelte-w4kmg0"),jt(B,"class","ms-split-button__copy-icon svelte-w4kmg0"),jt(N,"class","svelte-w4kmg0"),jt(F,"class","svelte-w4kmg0"),jt(T,"class","svelte-w4kmg0"),jt(H,"class","ms-split-button__dropdown-title svelte-w4kmg0"),jt(G,"class","ms-split-button__copy-icon svelte-w4kmg0"),jt(Z,"class","svelte-w4kmg0"),jt(W,"class","svelte-w4kmg0"),jt(X,"class","ms-split-button__copy-icon svelte-w4kmg0"),jt(ee,"class","svelte-w4kmg0"),jt(K,"class","svelte-w4kmg0"),jt(V,"class","svelte-w4kmg0"),jt(ne,"class","ms-split-button__dropdown-footer svelte-w4kmg0"),jt(x,"class","ms-split-button__dropdown svelte-w4kmg0"),Wt(x,"show",e[4]),jt(h,"class","ms-split-button svelte-w4kmg0"),jt(re,"class","svelte-w4kmg0"),jt(ie,"class","ms-submit-button svelte-w4kmg0"),jt(o,"class","ms-modal__content"),jt(t,"class","ms-modal svelte-w4kmg0"),jt(t,"id","TestCardModal")},m(d,m){It(d,t,m),de&&de.m(t,null),Pt(t,n),Pt(t,o),Pt(o,r),Pt(o,s),Pt(o,i),Pt(o,a),Pt(o,l),Pt(l,c),Pt(l,u),Pt(o,p),Pt(o,h),Pt(h,f),En(g,f,null),Pt(f,b),Pt(f,v),Pt(f,w),Pt(h,y),Pt(h,_),En($,_,null),Pt(h,k),Pt(h,x),Pt(x,T),Pt(T,P),Pt(T,S),Pt(T,C),Pt(C,M),En(L,M,null),Pt(C,I),Pt(T,A),Pt(T,E),Pt(E,q),En(D,q,null),Pt(E,R),Pt(T,O),Pt(T,F),Pt(F,B),En(z,B,null),Pt(F,N),Pt(x,j),Pt(x,V),Pt(V,H),Pt(V,U),Pt(V,W),Pt(W,G),En(Y,G,null),Pt(W,Z),Pt(V,J),Pt(V,K),Pt(K,X),En(Q,X,null),Pt(K,ee),Pt(x,te),Pt(x,ne),Pt(o,oe),Pt(o,re),Pt(o,se),Pt(o,ie),ae=!0,le||(ce=[Bt(f,"click",e[7]),Bt(_,"click",e[8]),Bt(C,"click",e[9]),Bt(E,"click",e[10]),Bt(F,"click",e[11]),Bt(W,"click",e[12]),Bt(K,"click",e[13]),Bt(ie,"click",e[14])],le=!0)},p(e,[o]){e[2]&&e[2].hideCloseButton?de&&(yn(),kn(de,1,1,(()=>{de=null})),_n()):de?(de.p(e,o),4&o&&$n(de,1)):(de=ll(e),de.c(),$n(de,1),de.m(t,n)),(!ae||8&o)&&Vt(v,e[3]),(!ae||16&o)&&Wt(_,"active",e[4]),(!ae||16&o)&&Wt(x,"show",e[4])},i(e){ae||($n(de),$n(g.$$.fragment,e),$n($.$$.fragment,e),$n(L.$$.fragment,e),$n(D.$$.fragment,e),$n(z.$$.fragment,e),$n(Y.$$.fragment,e),$n(Q.$$.fragment,e),ae=!0)},o(e){kn(de),kn(g.$$.fragment,e),kn($.$$.fragment,e),kn(L.$$.fragment,e),kn(D.$$.fragment,e),kn(z.$$.fragment,e),kn(Y.$$.fragment,e),kn(Q.$$.fragment,e),ae=!1},d(e){e&&At(t),de&&de.d(),qn(g),qn($),qn(L),qn(D),qn(z),qn(Y),qn(Q),le=!1,ut(ce)}}}var dl="https://assets-global.website-files.com/65a6d87f7ae30844cde0911b/65efa0d9dc3019b69fe6a9cb_4242%20full-poster-00001.jpg",ul="https://assets-global.website-files.com/65a6d87f7ae30844cde0911b/65efa0d9dc3019b69fe6a9cb_4242%20full-transcode.mp4",ml="https://assets-global.website-files.com/65a6d87f7ae30844cde0911b/65efa0d9dc3019b69fe6a9cb_4242%20full-transcode.webm";function pl(e,t,n){let{closeModal:o}=t,{display:r}=t,{onSuccessSubmit:s}=t,{params:i}=t,a="Copy Stripe Test Card",l=!1;function c(e,t,o){navigator.clipboard.writeText(t);const r=e.currentTarget;o&&n(3,a="Copied Stripe Test Card"),r.classList.add("copied"),setTimeout((()=>{r.classList.remove("copied"),n(3,a="Copy Stripe Test Card"),n(4,l=!1)}),1e3)}return e.$$set=e=>{"closeModal"in e&&n(0,o=e.closeModal),"display"in e&&n(6,r=e.display),"onSuccessSubmit"in e&&n(1,s=e.onSuccessSubmit),"params"in e&&n(2,i=e.params)},[o,s,i,a,l,c,r,e=>c(e,"4242 4242 4242 4242",!0),()=>n(4,l=!l),e=>c(e,"4000 0566 5566 5556"),e=>c(e,"5555 5555 5555 4444"),e=>c(e,"3782 822463 10005"),e=>c(e,"4000 0000 0000 0002"),e=>c(e,"4000 0000 0000 9995"),()=>{s()}]}var hl=class extends Rn{constructor(e){super(),Dn(this,e,pl,cl,pt,{closeModal:0,display:6,onSuccessSubmit:1,params:2},al)}};Bn.subscribe((e=>{e.initialValue||fl.update((t=>(t.appData=e,t)))}));var fl=Fn({showSidebar:!1,showSide:"right",showTab:"inspector",xRayMode:!localStorage.getItem("MSXRayMode")||JSON.parse(localStorage.getItem("MSXRayMode")),xRayErrorElements:[],xRayWarningElements:[],cartData:[],inspectorData:[],memberData:localStorage.getItem("_ms-mem")?JSON.parse(localStorage.getItem("_ms-mem")):{},appData:{}}),gl=e=>{fl.update((t=>(t.cartData=e,t)))},bl=e=>{fl.update((t=>(t.inspectorData.push(e),t)))},vl=e=>{fl.update((t=>(t.showSide=e,t)))},wl=e=>{fl.update((t=>(t.xRayErrorElements.push(e),t)))},yl=e=>{fl.update((t=>(t.xRayWarningElements.push(e),t)))};function _l(){fl.update((e=>(e.memberData=localStorage.getItem("_ms-mem")?JSON.parse(localStorage.getItem("_ms-mem")):{},e)))}"undefined"!=typeof window&&window.addEventListener("storage",(function(e){"_ms-mem"===e.key&&_l()}));var $l=[{id:"ready-for-checkout",type:"cart",title:"Ready for Checkout",description:"

You previously selected a paid plan attribute.

",helpItems:[{title:"Checkout with multiple plans.",description:'

It is not possible to purchase multiple plans/products at same time.

Please see our roadmap for updates.

'},{title:"Launch the checkout process.",description:"

This attribute will only launch the checkout process for logged-in members.

The checkout will launch automatically after you create an account or log in.

"}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7403200877211-Paid-Plans"},{id:"ready-for-signup",type:"cart",title:"Ready for Signup",description:"

You previously selected a free plan.

",helpItems:[{title:"Launch a signup modal.",description:'

You\'re almost there! You need to add the data-ms-modal="signup" attribute to your button.

'},{title:"Redirect to my signup page.",description:'

You need to manually set the link to your signup page (just like any other link on your site).

If you don\'t have a signup page yet, please create one and then add a sign up component.

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/12511667983899"},{id:"price-add",type:"found",dataAttribute:"data-ms-price:add",title:"Price Add",description:"

The data-ms-price:add data attribute will add a paid plan, and will not effect existing subscriptions or purchases.

",helpItems:[{title:"Launch a signup modal.",description:'

You\'re almost there! You need to add the data-ms-modal="signup" attribute to your button.

'},{title:"Redirect to my signup page.",description:'

You need to manually set the link to your signup page (just like any other link on your site).

If you don\'t have a signup page yet, please create one and then add a sign up component.

'},{title:"Launch the checkout process.",description:"

This attribute will only launch the checkout process for logged-in members.

The checkout will launch automatically after you create an account or log in.

"}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7403200877211-Paid-Plans"},{id:"price-update",type:"found",dataAttribute:"data-ms-price:update",title:"Price Update",description:"

The data-ms-price:update data attribute will add a paid plan for new members and replace paid plans for existing members.

",helpItems:[{title:"Launch the checkout process.",description:"

This attribute will only launch the checkout process for logged-in members.

The checkout will launch automatically after you create an account or log in.

"},{title:"Redirect to my signup page.",description:'

You need to manually set the link to your signup page (just like any other link on your site).

If you don\'t have a signup page yet, please create one and then add a sign up component.

'},{title:"Launch a signup modal.",description:'

You\'re almost there! You need to add the data-ms-modal="signup" attribute to your button.

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7403200877211-Paid-Plans"},{id:"price-remove-all",type:"found",dataAttribute:"data-ms-price:remove='all'",title:"Price Remove All",description:'

The data-ms-price:remove="all" is used to clear out the session storage. When a user goes back and forth looking at prices they get added to the browser\'s session storage.

This enables a very basic cart feature. Using this data attribute would “clear the cart”.

',helpItems:[{title:"Remove past free plans.",description:'

This attribute can only remove paid plans.

You\'ll need to use data-ms-plan:remove="plan-id" to remove individual free plans. And Plan Logic to remove multiple.

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7403200877211-Sites-with-Paid-Plans#h_01HBBXT8J8559GAW67SK72JAM1"},{id:"plan-add",type:"found",dataAttribute:"data-ms-plan:add",title:"Plan Add",description:"

The data-ms-plan:add data attribute will add a free plan.

",helpItems:[{title:"Launch a signup modal.",description:'

You\'re almost there! You need to add the data-ms-modal="signup" attribute to your button.

'},{title:"Redirect to my signup page.",description:'

You need to manually set the link to your signup page (just like any other link on your site).

If you don\'t have a signup page yet, please create one and then add a sign up component.

'},{title:"Remove past free plans.",description:'

This attribute can only remove paid plans.

You\'ll need to use data-ms-plan:remove="plan-id" to remove individual free plans. And Plan Logic to remove multiple.

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/12511667983899"},{id:"plan-update",type:"found",dataAttribute:"data-ms-plan:update",title:"Plan Update",description:"

The data-ms-plan:update data attribute will add a free plan for new members and replace free plans for existing members.

",helpItems:[{title:"Launch a signup modal.",description:'

You\'re almost there! You need to add the data-ms-modal="signup" attribute to your button.

'},{title:"Redirect to my signup page.",description:'

You need to manually set the link to your signup page (just like any other link on your site).

If you don\'t have a signup page yet, please create one and then add a sign up component.

'},{title:"Remove past free plans.",description:'

This attribute can only remove paid plans.

You\'ll need to use data-ms-plan:remove="plan-id" to remove individual free plans. And Plan Logic to remove multiple.

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/12511667983899"},{id:"plan-remove",type:"found",dataAttribute:"data-ms-plan:remove",title:"Plan Remove",description:"

The data-ms-plan:remove data attribute will remove a free plan.

",helpItems:[{title:"Remove paid plans.",description:'

This attribute can only remove free plans.

You\'ll need to use data-ms-price:remove="all" to remove previously selected paid plans.

You can automatically remove past one-time purchases using a feature called Plan Logic.

'},{title:"Remove multiple free plans.",description:'

This attribute can only remove one free plan at a time.

However, you can automatically remove multiple free plans using a feature called Plan Logic.

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/19394955714459-Managing-Member-Plans-with-Data-Attributes"},{id:"signup-form",type:"found",dataAttribute:"data-ms-form='signup'",title:"Signup Form",description:"

We found a signup form!

New visitors can use this form to create an account.  

",helpItems:[{title:"Change redirect.",description:'

You can set redirects in a few different ways.

We recommend setting your global Default Redirects first, and then setting your Plan Level Redirects after that.

You can also set the redirect directly on a form. However this is the least flexible option.

'},{title:"Social auth doesn't work.",description:'

You\'ll need to create your own developer account with each social auth provider.

Please see the help center for more.

'},{title:"Launch checkout after signup.",description:'

You can launch the checkout after signup by adding a price attribute to the signup <form>, to a button on this page, or  to a button on a previous page.

'},{title:"Form doesn't submit to Webflow.",description:'

Memberstack does not send member-info to Webflow.

However, you can create your own form notifications using the "New Member" event in  Make or Zapier.

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7424129003547-Create-a-Signup-Form-in-Webflow"},{id:"login-form",type:"found",dataAttribute:"data-ms-form='login'",title:"Login Form",description:"

We found a login form.

Returning members can use this form to log into access their account.

",helpItems:[{title:"Change redirect.",description:'

You can set redirects in a few different ways.

We recommend setting your global Default Redirects first, and then setting your Plan Level Redirects after that.

You can also set the redirect directly on a form. However this is the least flexible option.

'},{title:"Social auth doesn't work.",description:'

You\'ll need to create your own developer account with each social auth provider.

Please see the help center for more.

'},{title:"Member-specific redirects.",description:'

Please see this article to create member-specific pages and redirects.

https://docs.memberstack.com/hc/en-us/articles/7385311945499

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7785629397659-Create-a-Login-Form-in-Webflow"},{id:"passwordless-signup",type:"found",dataAttribute:"data-ms-form='passwordless-signup'",title:"Passwordless Signup ",description:'

We found a passwordless signup form!

This is different than a generic sign up form. Passwordless signup forms have two parts. Part 1 collects the email address. And part 2 asks for a unique code which was emailed to the member.

',helpItems:[{title:"Change redirect.",description:'

You can set redirects in a few different ways.

We recommend setting your global Default Redirects first, and then setting your Plan Level Redirects after that.

You can also set the redirect directly on a form. However this is the least flexible option.

'},{title:"Social auth doesn't work.",description:'

You\'ll need to create your own developer account with each social auth provider.

Please see the help center for more.

'},{title:"Customize/send emails.",description:'

You can brand, modify, and translate your emails in the dashboard.

https://app.memberstack.com/settings/emails

'}],documentationLink:"https://docs.memberstack.com/hc/en-us"},{id:"passwordless-login",type:"found",dataAttribute:"data-ms-form='passwordless-login'",title:"Passwordless Login ",description:'

We found a passwordless signup form!

This is different than a generic login form. Passwordless signup forms have two parts. Part 1 collects the email address. And part 2 asks for a unique code which was emailed to the member.

',helpItems:[{title:"Change redirect.",description:'

You can set redirects in a few different ways.

We recommend setting your global Default Redirects first, and then setting your Plan Level Redirects after that.

You can also set the redirect directly on a form. However this is the least flexible option.

'},{title:"Social auth doesn't work.",description:'

You\'ll need to create your own developer account with each social auth provider.

Please see the help center for more.

'},{title:"Customize/send emails.",description:'

You can brand, modify, and translate your emails in the dashboard.

https://app.memberstack.com/settings/emails

'}],documentationLink:"https://docs.memberstack.com/hc/en-us"},{id:"forgot-password-form",type:"found",dataAttribute:"data-ms-form='forgot-password'",title:"Forgot Password Form",description:"

We found a forgot password form!

This type of form is for logged out members to regain access to their account. It is the first of three forms.

",helpItems:[{title:"Change redirect",description:'

You\'ll need to manually set the redirect for each password form in Webflow.

Select the <form> element and add the URL or slug for the reset password page.

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7787009388315-Create-a-Forgot-Password-Form-for-logged-out-users-"},{id:"reset-password-form",type:"found",dataAttribute:"data-ms-form='reset-password'",title:"Reset Password Form",description:'

We found a reset password form!

This form comes after a forgot password form. It allows members with a confirmation code to change their password without logging in.

',helpItems:[{title:"Change redirect",description:'

You\'ll need to manually set the redirect for each password form in Webflow.

Select the <form> element and add the URL or slug for the reset password page.

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7787009388315-Create-a-Forgot-Password-Form-for-logged-out-users-"},{id:"profile-form",type:"found",dataAttribute:"data-ms-form='profile'",title:"Profile Form",description:"

We found a profile form!

Members can use this form to update their  custom fields, email, and password.

",helpItems:[{title:"Redirect on submission.",description:'

You can turn any profile form into an onboarding form by adding a redirect url/slug under form settings.

You can learn more in our help center article on onboarding forms.

'},{title:"Display plan info.",description:'

Memberstack relies on Stripe’s hosted Billing Portal to allow members to securely manage paid plans, subscriptions, purchases, payment information, etc.

Create a button and add the data-ms-action="customer-portal" attribute.

Learn more in the help center.

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7785751124379-Create-Profile-Forms-in-Webflow"},{id:"password-form",type:"found",dataAttribute:"data-ms-form='password'",title:"Password Form",description:'

We found a password form!

This is a dedicated "change password" UI for logged in members.

',helpItems:[],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7785751124379-Create-Profile-Forms-in-Webflow"},{id:"email-form",type:"found",dataAttribute:"data-ms-form='email'",title:"Email Form",description:'

We found an update email form!

This is a dedicated "change password" UI for logged in members.  

',helpItems:[],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7785751124379-Create-Profile-Forms-in-Webflow"},{id:"commenting-channel",type:"found",dataAttribute:"data-ms-channel",title:"Commenting Channel",description:"

We found a commenting channel!

A: This channel does not have an ID set, and is therefor using the page slug for a unique identifier.

B: This channel has an ID of Homepage.

",helpItems:[{title:"Comments from other pages.",description:'

Comments are displayed based on the channel ID. Extra comments could be present because you have a duplicate channel ID set.

You can remove the channel ID to associate comments with the current URL.

'},{title:"All comments are missing.",description:'

Comments are displayed based on the channel ID. Your comments could be missing because you have the wrong channel ID set.

If you recently changed from test mode to live mode, all of your test mode comments are only  visible in test mode. You\'ll need to recreate them in live mode if you need them.

'},{title:"Some comments are missing.",description:'

There are a few reasons why this could be happening.

If you recently changed from test mode to live mode, all of your test mode comments are only  visible in test mode. You\'ll need to recreate them in live mode if you need them.

It\'s also possible that your comments are being hidden for moderation. Learn more here.

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/18966275380123"},{id:"logout-link",type:"found",dataAttribute:"data-ms-action='logout'",title:"Logout Link",description:"

We found a logout link!

",helpItems:[{title:"How do I set a page redirect?",description:"

There are a few different ways to set  redirects in Memberstack.

Click the documentation button below for the full picture.

"}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7389990064283-Create-a-Logout-Link-or-Button-in-Webflow"},{id:"signup-modal",type:"found",dataAttribute:"data-ms-modal='signup'",title:"Signup Modal",description:"

We found an attribute to launch the pre-build signup modal.

",helpItems:[{title:"Redirect to my signup page.",description:'

You need to remove the data-ms-modal attribute manually set the link to your signup page (just like any other link on your site).

If you don\'t have a signup page yet, please create one and then add a sign up component.

'},{title:"How do I set a page redirect?",description:"

There are a few different ways to set  redirects in Memberstack.

Click the documentation button below for the full picture.

"},{title:"Change the logo and button color.",description:'

You can modify your app\'s logo and brand color in the dashboard under Design.

If you need more design control you can start  from one of our hundreds of free Webflow UI.

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/12971481752091"},{id:"login-modal",type:"found",dataAttribute:"data-ms-modal='login'",title:"Login Modal",description:"

We found an attribute to launch the pre-build login modal.

",helpItems:[{title:"Redirect to my login page.",description:'

You need to remove the data-ms-modal attribute manually set the link to your login page (just like any other link on your site).

If you don\'t have a login page yet, please create one and then add a sign up component.

'},{title:"Change the logo and button color.",description:'

You can modify your app\'s logo and brand color in the dashboard under Design.

If you need more design control you can start  from one of our hundreds of free Webflow UI.

'},{title:"How do I set a page redirect?",description:"

There are a few different ways to set  redirects in Memberstack.

Click the documentation button below for the full picture.

"}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/12971481752091"},{id:"profile-modal",type:"found",dataAttribute:"data-ms-modal='profile'",title:"Profile Modal",description:"

We found an attribute to launch the pre-build profile modal.

",helpItems:[{title:"Change the logo and button color.",description:'

You can modify your app\'s logo and brand color in the dashboard under Design.

If you need more design control you can start  from one of our hundreds of free Webflow UI.

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/12971481752091"},{id:"forgot-password-modal",type:"found",dataAttribute:"data-ms-modal='forgot-password'",title:"Forgot Password Modal",description:"

We found an attribute to launch the pre-build forgot password modal. This UI gives logged-out members an opportunity to reset their password via email.

",helpItems:[{title:"Change the logo and button color.",description:'

You can modify your app\'s logo and brand color in the dashboard under Design.

If you need more design control you can start  from one of our hundreds of free Webflow UI.

'},{title:"Customize/send emails.",description:'

You can brand, modify, and translate your emails in the dashboard.

https://app.memberstack.com/settings/emails

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/12971481752091"},{id:"stripe-customer-portal",type:"found",dataAttribute:"data-ms-action='customer-portal'",title:"Stripe Customer Portal",description:"

We found an attribute to launch the Stripe Customer Portal.

Memberstack relies on Stripe’s hosted Billing Portal to enable members to securely manage paid plans, subscriptions, purchases, payment information, etc.

",helpItems:[{title:"Change branding/design.",description:'

Stripe gives you an opportunity to add a splash of branding to its already beautiful UI.

Visit the help center  for next steps.

'},{title:"Show/hide a feature in Stripe.",description:'

Memberstack decides what features are enabled by default, but you can change this in your Stripe settings.

Visit the help center  for next steps.

'},{title:"White-label the  Stripe domain.",description:'

You can change this in your Stripe settings.

Visit Stripe\'s help center  for next steps.

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7782712032539-Stripe-Customer-Portal"},{id:"resend-verification-email",type:"found",dataAttribute:"data-ms-action='resend-verification-email'",title:"Resend Verification Email",description:"

We found an attribute to resend verification emails.

Memberstack automatically sends a verification message, but members can request a new email just incase.

",helpItems:[{title:"Customize/send emails.",description:'

You can brand, modify, and translate your emails in the dashboard.

https://app.memberstack.com/settings/emails

'},{title:'Change Email "From" Address.',description:'

Memberstack\'s password reset emails and email verification emails come from a generic no-reply@memberstack.io email address.

We can  change the "from" email for you. Learn more here.

'},{title:"Not getting emails.",description:'

Emails usually arrive in a few seconds. Slow delivery times could be caused by slow internet, increased demand, or the emails are going to spam.

Please contact support if emails are taking longer than 30 seconds to arrive.  

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/8437630733083-Email-Verification"},{id:"login-redirect",type:"found",dataAttribute:"data-ms-action='login-redirect'",title:"Login Redirect",description:'

We found a button that will dynamically redirect the user based on their login redirect.

The button is only visible if a member is logged in.

',helpItems:[],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/9780287236507-Login-Redirect-Buttons"},{id:"upload-profile-image",type:"found",dataAttribute:"data-ms-action='profile-image'",title:"Profile Image",description:'

We found an attribute for uploading profile images.

The image is saved automatically on upload. Use data-ms-member= "profile-image" to display image.

',helpItems:[{title:"My form is breaking.",description:"

Profile image update buttons are not allowed inside forms.  Please remove the attribute or place it outside of the form.

"},{title:"Images are not being displayed.",description:'

This feature only works with the <image> element. It does not support CSS background images.

Make sure your image element has the attribute of data-ms-member= "profile-image".

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/15973891080731-Profile-Images"},{id:"member-data",type:"found",dataAttribute:"data-ms-member",title:"Member Data",description:"

This element will display a member's data or fallback to the placeholder text.

This data is only visible to the member.

",helpItems:[{title:"Change placeholder value.",description:"

Memberstack will fallback to whatever value is set in Webflow.

"},{title:"Display data publically.",description:'

It is only possible to display a member\'s data publicly if it is...
A) Stored in a separate database like the Webflow CMS (view example).
B) Is associated with a comment created by that member (view example).

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7389966150939-Member-Data-Attributes-in-Webflow"},{id:"facebook-login",type:"found",dataAttribute:"data-ms-auth-provider='facebook'",title:"Facebook Login",description:"

Members can use this button to login with Facebook.

",helpItems:[{title:"Blank page / error message",description:"

You'll need to create your own developer account with each social auth provider.

Click the documentation link below.

"}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/9116286679195-Facebook-Authentication"},{id:"google-login",type:"found",dataAttribute:"data-ms-auth-provider='google'",title:"Google Login",description:"

Members can use this button to login with Google.

",helpItems:[{title:"Blank page / error message",description:"

You'll need to create your own developer account with each social auth provider.

Click the documentation link below.

"}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/8327236548379-Google-Authentication"},{id:"linkedin-login",type:"found",dataAttribute:"data-ms-auth-provider='linkedin'",title:"LinkedIn Login",description:"

Members can use this button to login with LinkedIn.

",helpItems:[{title:"Blank page / error message",description:"

You'll need to create your own developer account with each social auth provider.

Click the documentation link below.

"}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/9128407335835-LinkedIn-Authentication"},{id:"spotify-login",type:"found",dataAttribute:"data-ms-auth-provider='spotify'",title:"Spotify Login",description:"

Members can use this button to login with Spotify.

",helpItems:[{title:"Blank page / error message",description:"

You'll need to create your own developer account with each social auth provider.

Click the documentation link below.

"}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/9151679451803-Spotify-Authentication"},{id:"dribbble-login",type:"found",dataAttribute:"data-ms-auth-provider='dribbble'",title:"Dribbble Login",description:"

Members can use this button to login with Dribbble.

",helpItems:[{title:"Blank page / error message",description:"

You'll need to create your own developer account with each social auth provider.

Click the documentation link below.

"}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/9151726845339-Dribbble-Authentication"},{id:"github-login",type:"found",dataAttribute:"data-ms-auth-provider='github'",title:"Github Login",description:"

Members can use this button to login with Github.

",helpItems:[{title:"Blank page / error message",description:"

You'll need to create your own developer account with each social auth provider.

Click the documentation link below.

"}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/9151629563291-GitHub-Authentication"},{id:"gated-content",type:"found",dataAttribute:"data-ms-content",title:"Gated Content",description:"

These attributes will change the display state of  an element based on the users permissions.

Needs permission → Element is hidden and removed.

Has permission → the element is left as-is.  

",helpItems:[{title:"Hide element in Webflow.",description:'

First hide the element in Webflow.

Then, add  the attribute data-ms-bind:style="YOUR_VALUE" to change the styling of an element. Use the value display:block to set it to display block when visible.

Visit the help center  for more info.

'},{title:"Set to display:block to page load.",description:'

First hide the element in Webflow.

Then, add  the attribute data-ms-bind:style="YOUR_VALUE" to change the styling of an element. Use the value display:block to set it to display block when visible.

Visit the help center  for more info.

'},{title:"Extra security.",description:'

You can host HTML content and links inside of Memberstack for extra security.

Visit the help center  for more info.

'},{title:"Invert functionality.",description:'

You can invert the display state of an element by adding an exclamation mark.

For example data-ms-member="members" is content that is only accessible to members.  If we change it to data-ms-member="!members" now that content  is NOT available to members.

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7403036765339-Show-and-Hide-Individual-Elements-data-ms-content"},{id:"post-creator-data",type:"found",dataAttribute:"data-ms-post-creator",title:"Post Creator Data",description:"

This element will display the commenter's information.

This information will update automatically if the member updates their profile.

",helpItems:[{title:"Change placeholder value.",description:"

Memberstack will fallback to whatever value is set in Webflow.

"}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/18966275380123"},{id:"thread-creator-data",type:"found",dataAttribute:"data-ms-thread-creator",title:"Thread Creator Data",description:"

This element will display the commenter's information.

This information will update automatically if the member updates their profile.

",helpItems:[{title:"Change placeholder value.",description:"

Memberstack will fallback to whatever value is set in Webflow.

"}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/18966275380123"},{id:"broken-plan-suffix",type:"error",title:"Broken Plan Suffix",description:"

We found a data-ms-plan data attribute without a ':add', ':update' or ':remove' suffix

",helpItems:[],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7406222866459"},{id:"broken-price-suffix",type:"error",title:"Broken Price Suffix",description:"

We found a data-ms-price data attribute without a ':add', ':update' or ':remove' suffix

",helpItems:[],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7406222866459"},{id:"broken-plan-button",type:"error",title:"Broken Plan Button",description:"

We found a data-ms-plan data attribute without a free plan ID.

",helpItems:[{title:"Create a paid plan button.",description:"

You'll need to swap your data-ms-plan attribute with a data-ms-price attribute.

"},{title:"Create a free plan button.",description:'

You\'ll need to locate your plan id and add it to the data-ms-plan attribute.

Please refer to this doc for more info.

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/17265502821275"},{id:"broken-price-button",type:"error",title:"Broken Price Button",description:"

We found a data-ms-price data attribute that is not using the right value.

",helpItems:[{title:"Create a paid plan button.",description:'

You\'ll need to swap your Plan ID for a more specific Price ID.

Please refer to this doc for more info.

'},{title:"Create a free plan button.",description:'

You\'ll need to replace your data-ms-price attribute with a data-ms-plan attribute.

Please refer to this doc for more info.

'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/17265502821275"},{id:"missing-attribute-value",type:"error",title:"Missing Attribute Value",description:"

We found a data-ms-plan or data-ms-price data attribute without a value.

",helpItems:[],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7252466484635"},{id:"image-inside-profile-form",type:"error",title:"Image inside Profile Form",description:"

Despite the name, Profile Image upload buttons cannot go inside of a profile form.

They can go anywhere on the page, except inside of a profile form.

",helpItems:[],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/15973891080731-Profile-Images"},{id:"image-inside-signup-form",type:"error",title:"Image inside Signup Form",description:"

It is not possible to collect a profile image during sign up, but you can create an onboarding form that prompt the user to add a profile image after sign up.

",helpItems:[],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7789449570587-Create-a-Multi-step-Onboarding-Form-in-Webflow"},{id:"image-inside-comment-form",type:"error",title:"Image inside Comment Form",description:"

Profile image update buttons are not allowed inside forms.  Please remove the attribute or place it outside of the form.

",helpItems:[],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/15973891080731-Profile-Images"},{id:"extra-login-elements",type:"error",title:"Extra Login Elements",description:'

We found not-allowed custom field attributes inside your login form.

You probably have data-ms-form="login" attribute on your signup form.

',helpItems:[],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7785629397659-Create-a-Login-Form-in-Webflow"},{id:"orphan-commenting-ui",type:"error",title:"Orphan Commenting Attributes",description:"

We found a data-ms-thread or data-ms-post attribute outside of a data-ms-channel section.

Please make sure all commenting UI is placed inside of a parent data-ms-channel element.  

",helpItems:[],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/18966275380123"},{id:"post-in-thread",type:"error",title:"Post Attribute inside a Thread",description:"

We found a data-ms-post attribute inside of the thread section.

This usually happens if you start to duplicate elements in your design.

",helpItems:[],documentationLink:"https://www.loom.com/share/218c58a3babd4c4686184dc12bdbd875"},{id:"plan-on-social-auth",type:"error",title:"Plan attribute on a social button",description:"

We found a data-ms-plan or data-ms-price attribute on a data-ms-auth-provider button. These attributes do not work well together.  

",helpItems:[],documentationLink:"https://docs.memberstack.com/hc/en-us/sections/9188390078491-Social-Authentication-SSO"},{id:"private-custom-field",type:"error",title:"Private Custom Fields",description:'

We found a data-ms-post-creator or a data-ms-thread-creator attribute that is private.

You\'ll need to update the custom field settings to make this data public.
Learn how →

',helpItems:[],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/18966275380123-Webflow-Commenting#public-custom-fields"},{id:"misplaced-form-attribute",type:"error",title:"Misplaced Form Attribute",description:'

We found a data-ms-form data attribute but it is not on a <form> element. Please click "documentation" to see how to debug.

',helpItems:[],documentationLink:"https://www.loom.com/share/486e0b760845447290c4d7bfd5b100ea"},{id:"duplicate-install-code",type:"error",title:"Duplicate install code",description:'

We found two instances your install code. Please click "documentation" below see how to debug.

',helpItems:[],documentationLink:"https://www.loom.com/share/3f3e542458444296841ab9101064693c?sid=cbe21222-4e76-4648-b95d-1574b61c88c2"},{id:"missing-login-elements",type:"error",title:"Missing Login elements",description:'

Your login form is missing one of the following attributes:

',helpItems:[{title:"Add Social Authentication",description:'
You can leave out required data attributes if your form contains social login buttons.  

You can copy components here, and find additional documentation here.
'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7785629397659-Create-a-Login-Form-in-Webflow"},{id:"missing-signup-elements",type:"error",title:"Missing Signup elements",description:'

Your signup form is missing one of the following attributes:

',helpItems:[{title:"Add Social Authentication",description:'
You can leave out required data attributes if your form contains social login buttons.  

You can copy components here, and find additional documentation here.
'}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7424129003547-Create-a-Signup-Form-in-Webflow"},{id:"missing-redirect",type:"warning",title:"Missing Redirect",description:'

Your forgot password form does not have a redirect set.

',helpItems:[],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7787009388315-Create-a-Forgot-Password-Form-for-logged-out-users#h_01HQ9DESYG2B53882YJ20ZQJ6K"},{id:"misplaced-install-code",type:"warning",title:"Misplaced install code",description:'

The Memberstack Install script is outside of the  <header> code section.

We recommend moving this script to the very top of the <header> code section.

',helpItems:[],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/7253090768539-Installing-Memberstack-in-Webflow"},{id:"plan-without-action",type:"warning",title:"Plan Button without an Action",description:"

We found a data-ms-plan attribute without a page link or data-ms-modal.

You can disregard this warning if that was intentional.

",helpItems:[{title:"Redirect to my signup page.",description:"

You need to manually set the link to your signup page (just like any other link on your site).

If you don't have a signup page yet, please create one and then add a sign up component.

"},{title:"Launch a signup modal.",description:"

You're almost there! You need to add the data-ms-modal='signup' attribute to your button.

"}],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/19394955714459"},{id:"price-without-action",type:"warning",title:"Price Button without an Action",description:"

We found a data-ms-price attribute without a page link or data-ms-modal.

You can disregard this warning if that was intentional.

",helpItems:[{title:"launch the checkout process.",description:"

This attribute will only launch the checkout process for logged-in members.

The checkout will launch automatically after you create an account or log in.

"},{title:"Redirect to my signup page.",description:"

You need to manually set the link to your signup page (just like any other link on your site).

If you don't have a signup page yet, please create one and then add a sign up component.

"},{title:"Launch a signup modal.",description:"

You're almost there! You need to add the data-ms-modal='signup' attribute to your button.

"}]},{id:"incorrect-plan-id",type:"error",title:"Incorrect Plan ID",description:"

This page contains a data-ms-plan='PLAN_ID' that is incorrect or from another project. Replace it with an attribute from your plans page.

",helpItems:[],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/23346885800219"},{id:"incorrect-price-id",type:"error",title:"Incorrect Price ID",description:"

This page contains a data-ms-price='PRICE_ID' that is incorrect or from another project. Replace it with an attribute from your prices page.

",helpItems:[],documentationLink:"https://docs.memberstack.com/hc/en-us/articles/23346885800219"},{id:"price-update",type:"found",dataAttribute:"data-ms-price:update",title:"Price Update",description:"

You previously selected a paid plan attribute.

",helpItems:[],documentationLink:"#"}];function kl(e,t){const n=sessionStorage.getItem(e);n&&(console.log(`%c${e} cart found: ${n}`,"color: green"),gl(n),bl(t))}function xl(e,t){console.log(`%c${e}`,"color: red"),bl(t)}function Tl(e,t){console.log(`%c${e}`,"color: yellow"),bl(t)}function Pl(e,t){document.querySelectorAll(e).forEach((e=>t(e)))}function Sl(e,t,n){if(!e.getAttributeNames().find((n=>n.startsWith(t+":")&&(e.getAttribute(n).startsWith("pln_")||e.getAttribute(n).startsWith("prc_"))))){const o=`The ${t} attribute's suffix is incorrect (e.g. ${t}:add, ${t}:update, ${t}:remove).`;xl(o,n),Cl(e,o)}}function Cl(e,t){return rt(this,null,(function*(){wl({element:e,message:t})}))}function Ml(e){return rt(this,null,(function*(){document.querySelectorAll(`[data-ms-form='${e}']`).forEach((t=>{const n=t.querySelector("[data-ms-member='email']"),o=t.querySelector("[data-ms-member='password']"),r=t.querySelector("[data-ms-auth-provider]");n&&(o||r)||(xl(`Missing ${e.charAt(0).toUpperCase()+e.slice(1)} Elements`,`missing-${e}-elements`),Cl(t,`Missing ${e.charAt(0).toUpperCase()+e.slice(1)} Elements`))}))}))}var Ll=!1;function Il(){return rt(this,null,(function*(){let e;Bn.subscribe((t=>{t.initialValue||!1!==Ll||(e=t,Ll=!0,function(){rt(this,null,(function*(){Pl("[data-ms-plan], [data-ms-price]",(e=>{e.hasAttribute("data-ms-plan")&&Sl(e,"data-ms-plan","broken-plan-suffix"),e.hasAttribute("data-ms-price")&&Sl(e,"data-ms-price","broken-price-suffix")})),Pl("[data-ms-plan\\:update], [data-ms-plan\\:add], [data-ms-plan\\:remove]",(e=>{const t=e.getAttribute("data-ms-plan:update")||e.getAttribute("data-ms-plan:add")||e.getAttribute("data-ms-plan:remove");if(!t)return xl("Broken Plan Button Found","broken-plan-button"),void Cl(e,"Broken Plan Button Found");t.startsWith("pln_")||(xl("Broken Plan Button Found","broken-plan-button"),Cl(e,"Broken Plan Button Found"))})),Pl("[data-ms-price\\:update], [data-ms-price\\:add], [data-ms-price\\:remove]",(e=>{e.getAttributeNames().forEach((t=>{if(t.startsWith("data-ms-price"))if(t.includes(":")){const n=t.split(":")[1];"add"===n||"update"===n?e.getAttribute(t).startsWith("prc_")||(xl("Broken Price Button Found","broken-price-button"),Cl(e,"Broken Price Button Found")):"remove"===n&&"all"!==e.getAttribute(t)&&(xl("Broken Price Button Found","broken-price-button"),Cl(e,"Broken Price Button Found"))}else xl("Broken Price Button Found","broken-price-button"),Cl(e,"Broken Price Button Found")}))})),["profile","signup","comment"].forEach((e=>{Pl(`[data-ms-form='${e}']`,(t=>{const n=t.querySelector("[data-ms-action='profile-image']");n&&(xl(`Profile Image Upload Button Found Inside ${e} Form`,`image-inside-${e}-form`),Cl(n,`Profile Image Upload Button Found Inside ${e.charAt(0).toUpperCase()+e.slice(1)} Form`))}))})),Pl("[data-ms-form='login']",(e=>{const t=e.querySelectorAll("[data-ms-member]:not([data-ms-member='email']):not([data-ms-member='password'])");t.length>0&&(xl("Extra Login Elements Found Inside Login Form","extra-login-elements"),t.forEach((e=>Cl(e,"Extra Login Elements Found Inside Login Form"))))})),Pl("[data-ms-price], [data-ms-plan], [data-ms-plan\\:add], [data-ms-plan\\:update], [data-ms-plan\\:remove], [data-ms-price\\:add], [data-ms-price\\:update]",(t=>{const n=t.getAttribute("data-ms-price")||t.getAttribute("data-ms-plan")||t.getAttribute("data-ms-plan:add")||t.getAttribute("data-ms-plan:update")||t.getAttribute("data-ms-plan:remove")||t.getAttribute("data-ms-price:add")||t.getAttribute("data-ms-price:update");if(n){const o=e.plans.filter((e=>0===e.prices.length)),r=e.plans.filter((e=>e.prices.length>0)),s=o.map((e=>e.id)),i=r.map((e=>e.prices.map((e=>e.id)))).flat();n.startsWith("pln_")&&!s.includes(n)&&(xl("Incorrect Plan ID","incorrect-plan-id"),Cl(t,"Incorrect Plan ID")),n.startsWith("prc_")&&!i.includes(n)&&(xl("Incorrect Price ID","incorrect-price-id"),Cl(t,"Incorrect Price ID"))}})),["[data-ms-thread]","[data-ms-post]"].forEach((e=>{Pl(e,(e=>{e.closest("[data-ms-channel]")||(xl("Orphan Commenting UI Found","orphan-commenting-ui"),Cl(e,"Orphan Commenting UI Found"))}))})),Pl("[data-ms-thread] [data-ms-post]",(e=>{"showThreads"!==e.getAttribute("data-ms-post")&&(xl("Post Inside Thread Found","post-in-thread"),Cl(e,"Post Inside Thread Found"))})),Pl("[data-ms-auth-provider]",(e=>{(e.getAttribute("data-ms-plan\\:add")||e.getAttribute("data-ms-plan\\:update")||e.getAttribute("data-ms-plan\\:remove")||e.getAttribute("data-ms-price\\:add")||e.getAttribute("data-ms-price\\:update")||e.getAttribute("data-ms-price\\:remove"))&&(xl("Plan or Price Attribute Found on Social Button","plan-on-social-auth"),Cl(e,"Plan or Price Attribute Found on Social Button"))}));setTimeout((()=>{["[data-ms-post-creator]","[data-ms-thread-creator]"].forEach((t=>{Pl(t,(n=>{((t,n,o)=>{const r=t.getAttribute(n),s=e.customFields.find((e=>e.key===r));s&&"PRIVATE"===s.visibility&&(xl(`Private Custom Field Found on ${n}`,o),Cl(t,`Private Custom Field Found on ${n}`))})(n,t.substring(1,t.length-1),"private-custom-field")}))}))}),1e3),Pl("[data-ms-form]:not(form)",(e=>{xl("Misplaced Form Attribute Found","misplaced-form-attribute"),Cl(e,"Misplaced Form Attribute Found")})),document.querySelectorAll("script[src='https://api.memberstack.com/static/memberstack.js']").length>1&&xl("Duplicate Install Code Found","duplicate-install-code"),yield Ml("signup"),yield Ml("login")}))}())}))}))}function Al(e,t){return rt(this,null,(function*(){yl({element:e,message:t})}))}function El(e){St(e,"svelte-1d715s6","svg.svelte-1d715s6{width:34px;max-height:26px;height:100%}")}function ql(e){let t,n,o,r,s,i,a,l,c;return{c(){t=Dt("svg"),n=Dt("path"),o=Dt("path"),r=Dt("path"),s=Dt("path"),i=Dt("path"),a=Dt("path"),l=Dt("path"),c=Dt("path"),jt(n,"fill-rule","evenodd"),jt(n,"clip-rule","evenodd"),jt(n,"d","M256.999 409.66C277.268 409.66 295.976 402.974 311.037 391.688C335.832 408.578 368.54 412.623 397.96 399.524C443.145 379.406 463.467 326.468 443.349 281.283L391.207 164.171C371.09 118.986 318.151 98.6654 272.966 118.783C266.609 121.614 260.743 125.094 255.413 129.112C250.314 125.364 244.737 122.103 238.719 119.423C193.534 99.3055 140.596 119.627 120.478 164.812L68.337 281.923C48.2193 327.108 68.5404 380.047 113.725 400.164C143.801 413.555 177.312 409.03 202.292 391.181C217.467 402.774 236.429 409.66 256.999 409.66Z"),jt(n,"fill","black"),jt(o,"fill-rule","evenodd"),jt(o,"clip-rule","evenodd"),jt(o,"d","M255.027 156.049C261.668 148.019 270.217 141.36 280.383 136.834C315.574 121.166 356.804 136.993 372.472 172.184L425.017 290.201C440.685 325.393 424.859 366.623 389.667 382.291C361.5 394.832 329.464 387.196 309.763 365.603C296.799 380.639 277.611 390.158 256.199 390.158C234.402 390.158 214.909 380.293 201.941 364.785C182.36 387.408 149.582 395.627 120.834 382.827C85.6421 367.159 69.8154 325.929 85.4836 290.737L138.028 172.72C153.697 137.528 194.927 121.702 230.118 137.37C240.056 141.795 248.45 148.258 255.027 156.049Z"),jt(o,"fill","white"),jt(r,"d","M355.762 235.16L388.364 307.456C394.961 322.086 388.296 339.226 373.478 345.739C358.663 352.254 341.303 345.673 334.705 331.044L308.352 272.601L296.738 299.617V235.16H355.762Z"),jt(r,"fill","#2AA8FF"),jt(s,"d","M359.295 242.995L366.042 257.953C361.966 256.556 357.591 255.796 353.034 255.796C334.211 255.796 318.458 268.752 314.445 286.114L308.352 272.601L301.894 287.622V242.995H359.295Z"),jt(s,"fill","#393939"),jt(s,"fill-opacity","0.2"),jt(i,"d","M261.186 233.89V285.086H206.876L201.246 272.601L195.879 285.086H135.805V276.399L173.457 188.819C178.219 177.743 189.137 171.106 200.605 171.145C211.887 171.106 222.668 177.525 227.551 188.355L254.792 248.764L261.186 233.89Z"),jt(i,"fill","#017ACE"),jt(a,"d","M254.752 248.677L254.792 248.764L280.563 188.819C285.325 177.743 296.243 171.106 307.711 171.145C318.993 171.106 329.774 177.525 334.656 188.355L366.012 257.892C359.689 252.501 351.453 249.24 342.442 249.24C326.786 249.24 313.46 259.084 308.463 272.846L308.352 272.601L283.037 331.487C276.699 346.228 259.459 353.106 244.529 346.849C243.068 346.236 241.683 345.521 240.38 344.715C234.905 341.776 230.33 337.099 227.6 331.044L201.348 272.827C205.3 273.945 209.474 274.543 213.789 274.543C231.947 274.543 247.599 263.948 254.752 248.677Z"),jt(a,"fill","#AEDEFF"),jt(l,"d","M201.083 272.98L182.179 316.954C177.568 319.043 172.431 320.207 167.015 320.207C148.016 320.207 132.446 305.887 131.026 287.517L144 257.339C150.247 252.231 158.267 249.161 167.015 249.161C182.76 249.161 196.15 259.108 201.083 272.98Z"),jt(l,"fill","black"),jt(c,"d","M195.535 285.886L175.93 331.487C169.593 346.228 152.353 353.106 137.423 346.849C122.492 340.591 115.527 323.569 121.864 308.827L143.633 258.192C148.241 256.178 153.337 255.059 158.697 255.059C177.203 255.059 192.565 268.39 195.535 285.886Z"),jt(c,"fill","#393939"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"fill","none"),jt(t,"viewBox","60.57 111.02 390.54 298.64"),jt(t,"class","svelte-1d715s6")},m(e,d){It(e,t,d),Pt(t,n),Pt(t,o),Pt(t,r),Pt(t,s),Pt(t,i),Pt(t,a),Pt(t,l),Pt(t,c)},p:st,i:st,o:st,d(e){e&&At(t)}}}var Dl=class extends Rn{constructor(e){super(),Dn(this,e,null,ql,pt,{},El)}};function Rl(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"d","M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"height","24"),jt(t,"viewBox","0 -960 960 960"),jt(t,"width","24"),jt(t,"fill","currentColor")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var Ol=class extends Rn{constructor(e){super(),Dn(this,e,null,Rl,pt,{})}};function Fl(e){St(e,"svelte-ytzzgu","#ms-inspector-badge.svelte-ytzzgu{all:unset}.ms-inspector-badge.svelte-ytzzgu{position:fixed !important;bottom:10px !important;left:50% !important;transform:translateX(-50%) !important;z-index:2147483648 !important;background:#fff !important;padding:0 7px !important;margin:0 !important;box-shadow:0 0 10px rgba(0, 0, 0, 0.1) !important;cursor:pointer !important;display:flex !important;align-items:stretch !important;color:#000 !important;background-color:#faf3e1 !important;border:1px solid #d78e2c !important;border-radius:4px !important;font-size:12px !important;font-weight:700 !important;font-family:Plus Jakarta Sans, sans-serif !important;gap:7px !important;height:42px !important}.ms-inspector-badge--error.svelte-ytzzgu{background-color:#f6cfca;border-color:#e06657}.ms-inspector-badge__text-wrapper.svelte-ytzzgu{display:flex;justify-content:center;align-items:center;gap:7px}.ms-inspector-badge__logo.svelte-ytzzgu{display:flex;align-items:center;align-self:center}.ms-inspector-badge__text.svelte-ytzzgu{align-self:center}.ms-inspector-badge__divider.svelte-ytzzgu{border-left:1px solid #d88e2b}.ms-inspector-badge__count.svelte-ytzzgu{border:1px solid #c1c1c1;border-radius:4px;background-color:#fff;color:#000;padding:0 7px;margin:7px 0;display:flex;align-items:center;position:relative}.ms-inspector-badge__count--open.svelte-ytzzgu{background-color:#fff;color:#000;padding:0}.ms-inspector-badge__error-indicator.svelte-ytzzgu{width:10px;height:10px;background-color:#e06657;border-radius:50%;position:absolute;top:0;right:0;transform:translate(50%, -50%)}")}function Bl(e){let t;return{c(){t=qt("span"),t.textContent="Hide Inspector",jt(t,"class","ms-inspector-badge__text svelte-ytzzgu")},m(e,n){It(e,t,n)},d(e){e&&At(t)}}}function zl(e){let t;return{c(){t=qt("span"),t.textContent="Test Mode",jt(t,"class","ms-inspector-badge__text svelte-ytzzgu")},m(e,n){It(e,t,n)},d(e){e&&At(t)}}}function Nl(e){let t,n,o;return{c(){t=qt("span"),jt(t,"class","ms-inspector-badge__error-indicator svelte-ytzzgu")},m(e,n){It(e,t,n),o=!0},i(e){o||(dn((()=>{o&&(n||(n=Tn(t,Os,{duration:300},!0)),n.run(1))})),o=!0)},o(e){n||(n=Tn(t,Os,{duration:300},!1)),n.run(0),o=!1},d(e){e&&At(t),e&&n&&n.end()}}}function jl(e){let t,n;return t=new Ol({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},p:st,i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Vl(e){let t,n=(e[0].inspectorData.length||0)+"";return{c(){t=Rt(n)},m(e,n){It(e,t,n)},p(e,o){1&o&&n!==(n=(e[0].inspectorData.length||0)+"")&&Vt(t,n)},i:st,o:st,d(e){e&&At(t)}}}function Hl(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f;function g(e,t){return e[0].showSidebar?Bl:zl}r=new Dl({});let b=g(e),v=b(e),w=e[0].xRayErrorElements.length>0&&Nl();const y=[Vl,jl],_=[];function $(e,t){return e[0].showSidebar?1:0}return u=$(e),m=_[u]=y[u](e),{c(){t=qt("button"),n=qt("span"),o=qt("span"),An(r.$$.fragment),s=Ot(),v.c(),i=Ot(),a=qt("span"),l=Ot(),c=qt("span"),w&&w.c(),d=Ot(),m.c(),jt(o,"class","ms-inspector-badge__logo svelte-ytzzgu"),jt(n,"class","ms-inspector-badge__text-wrapper svelte-ytzzgu"),jt(a,"class","ms-inspector-badge__divider svelte-ytzzgu"),jt(c,"class","ms-inspector-badge__count svelte-ytzzgu"),Wt(c,"ms-inspector-badge__count--open",e[0].showSidebar),jt(t,"id","ms-inspector-badge"),jt(t,"class","ms-inspector-badge svelte-ytzzgu"),jt(t,"data-cy","inspector-button"),Wt(t,"ms-inspector-badge--error",e[0].xRayErrorElements.length>0),Ut(t,"z-index",e[0].showSidebar?2147483647:2147483648)},m(m,g){It(m,t,g),Pt(t,n),Pt(n,o),En(r,o,null),Pt(n,s),v.m(n,null),Pt(t,i),Pt(t,a),Pt(t,l),Pt(t,c),w&&w.m(c,null),Pt(c,d),_[u].m(c,null),p=!0,h||(f=Bt(t,"click",e[2]),h=!0)},p(e,[o]){b!==(b=g(e))&&(v.d(1),v=b(e),v&&(v.c(),v.m(n,null))),e[0].xRayErrorElements.length>0?w?1&o&&$n(w,1):(w=Nl(),w.c(),$n(w,1),w.m(c,d)):w&&(yn(),kn(w,1,1,(()=>{w=null})),_n());let r=u;u=$(e),u===r?_[u].p(e,o):(yn(),kn(_[r],1,1,(()=>{_[r]=null})),_n(),m=_[u],m?m.p(e,o):(m=_[u]=y[u](e),m.c()),$n(m,1),m.m(c,null)),(!p||1&o)&&Wt(c,"ms-inspector-badge__count--open",e[0].showSidebar),(!p||1&o)&&Wt(t,"ms-inspector-badge--error",e[0].xRayErrorElements.length>0),1&o&&Ut(t,"z-index",e[0].showSidebar?2147483647:2147483648)},i(e){p||($n(r.$$.fragment,e),$n(w),$n(m),p=!0)},o(e){kn(r.$$.fragment,e),kn(w),kn(m),p=!1},d(e){e&&At(t),qn(r),v.d(),w&&w.d(),_[u].d(),h=!1,f()}}}function Ul(e,t,n){let o;function r(){var e;e=!o.showSidebar,fl.update((t=>(t.showSidebar=e,t)))}return gt(e,fl,(e=>n(0,o=e))),[o,r,()=>r()]}var Wl=class extends Rn{constructor(e){super(),Dn(this,e,Ul,Hl,pt,{},Fl)}},Gl=[];function Yl(e,t){window.addEventListener(e,t),Gl.push({type:e,listener:t})}function Zl(e,t){let n=e;return(isNaN(n)||n<0)&&(n=50),n+="error"===t?3:"warning"===t?2:1,n}function Jl(){return rt(this,null,(function*(){document.querySelectorAll(".ms-xray-outline, .ms-xray-tooltip").forEach((e=>e.remove())),Gl.forEach((({type:e,listener:t})=>{window.removeEventListener(e,t)})),Gl.length=0}))}function Kl(e){return rt(this,null,(function*(){const t=function(e){let t;return ft(e,(e=>t=e))(),t}(fl);let n;switch(e){case"error":n=t.xRayErrorElements;break;case"warning":n=t.xRayWarningElements;break;case"found":n=$l.filter((e=>"found"===e.type));break;default:n=[]}const o="error"===e?"#e06657":"warning"===e?"#efd350":"#5c9d6f";n.forEach((t=>{let n;if("found"===e){const e=t.dataAttribute.replace(/([:])/g,"\\$1");n=document.querySelectorAll(`[${e}]`)}else n=[t.element];n.forEach((n=>{if(!n||null===n.offsetParent)return;const r=n.getBoundingClientRect(),s=window.getComputedStyle(n).zIndex,i=function(e,t,n,o){const r=document.createElement("div");return r.classList.add("ms-xray-outline"),Object.assign(r.style,{position:"absolute",top:e.top+window.scrollY-6+"px",left:e.left+window.scrollX-6+"px",width:`${e.width+12}px`,height:`${e.height+12}px`,border:"2px solid",borderColor:t,pointerEvents:"none",zIndex:Zl(n,o)}),document.body.appendChild(r),r}(r,o,s,e),a=function(e,t,n,o,r,s){const i=document.createElement("div");i.classList.add("ms-xray-tooltip");const a=function(e){return{found:'\n \n \n ',error:'\n \n ',warning:'\n \n '}[e]||""}(o);return i.innerHTML="found"===o&&void 0!==s&&"data-ms-member"===t?`${a} ${t}='${s}'`:`${a} ${t}`,Object.assign(i.style,{position:"absolute",top:`${e.top+window.scrollY}px`,left:e.left+window.scrollX-6+"px",backgroundColor:n,color:"#efd350"===n?"#000":"#fff",padding:"2px 3px",fontSize:"9px",lineHeight:"1",fontFamily:"Plus Jakarta Sans, sans-serif",zIndex:Zl(r,o),whiteSpace:"nowrap",borderRadius:"3px 3px 0 0",display:"flex",alignItems:"center",justifyContent:"center",gap:"3px",pointerEvents:"none"}),document.body.appendChild(i),i}(r,"found"===e?t.dataAttribute:t.message,o,e,s,n.getAttribute(t.dataAttribute)),l=()=>function(e,t,n){const o=e.getBoundingClientRect();t.style.top=o.top+window.scrollY-6+"px",t.style.left=o.left+window.scrollX-6+"px",n.style.top=o.top+window.scrollY-n.offsetHeight-6+"px",n.style.left=o.left+window.scrollX-6+"px"}(n,i,a);l(),Yl("scroll",l),Yl("resize",l)}))}))}))}function Xl(e){let t;return{c(){t=qt("span"),t.textContent="AI"},m(e,n){It(e,t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var Ql=class extends Rn{constructor(e){super(),Dn(this,e,null,Xl,pt,{})}};function ec(e){let t,n,o;return{c(){t=Dt("svg"),n=Dt("path"),o=Dt("path"),jt(n,"d","M0 0h24v24H0V0z"),jt(n,"fill","none"),jt(o,"d","M4 13h6c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1zm0 8h6c.55 0 1-.45 1-1v-4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1zm10 0h6c.55 0 1-.45 1-1v-8c0-.55-.45-1-1-1h-6c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1zM13 4v4c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1h-6c-.55 0-1 .45-1 1z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"height","24px"),jt(t,"viewBox","0 0 24 24"),jt(t,"width","24px"),jt(t,"fill","currentColor")},m(e,r){It(e,t,r),Pt(t,n),Pt(t,o)},p:st,i:st,o:st,d(e){e&&At(t)}}}var tc=class extends Rn{constructor(e){super(),Dn(this,e,null,ec,pt,{})}};function nc(e){let t,n,o;return{c(){t=Dt("svg"),n=Dt("path"),o=Dt("path"),jt(n,"d","M0 0h24v24H0V0z"),jt(n,"fill","none"),jt(o,"d","M20 6h-1v8c0 .55-.45 1-1 1H6v1c0 1.1.9 2 2 2h10l4 4V8c0-1.1-.9-2-2-2zm-3 5V4c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v13l4-4h9c1.1 0 2-.9 2-2z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"height","100%"),jt(t,"viewBox","0 0 24 24"),jt(t,"width","1000px"),jt(t,"fill","currentColor")},m(e,r){It(e,t,r),Pt(t,n),Pt(t,o)},p:st,i:st,o:st,d(e){e&&At(t)}}}var oc=class extends Rn{constructor(e){super(),Dn(this,e,null,nc,pt,{})}};function rc(e){let t,n,o,r,s,i;return{c(){t=Dt("svg"),n=Dt("g"),o=Dt("rect"),r=Dt("rect"),s=Dt("g"),i=Dt("path"),jt(o,"fill","none"),jt(o,"height","24"),jt(o,"width","24"),jt(r,"fill","none"),jt(r,"height","24"),jt(r,"width","24"),jt(i,"d","M12,2C6.48,2,2,6.48,2,12c0,5.52,4.48,10,10,10s10-4.48,10-10C22,6.48,17.52,2,12,2z M19.46,9.12l-2.78,1.15 c-0.51-1.36-1.58-2.44-2.95-2.94l1.15-2.78C16.98,5.35,18.65,7.02,19.46,9.12z M12,15c-1.66,0-3-1.34-3-3s1.34-3,3-3s3,1.34,3,3 S13.66,15,12,15z M9.13,4.54l1.17,2.78c-1.38,0.5-2.47,1.59-2.98,2.97L4.54,9.13C5.35,7.02,7.02,5.35,9.13,4.54z M4.54,14.87 l2.78-1.15c0.51,1.38,1.59,2.46,2.97,2.96l-1.17,2.78C7.02,18.65,5.35,16.98,4.54,14.87z M14.88,19.46l-1.15-2.78 c1.37-0.51,2.45-1.59,2.95-2.97l2.78,1.17C18.65,16.98,16.98,18.65,14.88,19.46z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"height","100%"),jt(t,"viewBox","0 0 24 24"),jt(t,"width","1000px"),jt(t,"fill","currentColor")},m(e,a){It(e,t,a),Pt(t,n),Pt(n,o),Pt(n,r),Pt(t,s),Pt(s,i)},p:st,i:st,o:st,d(e){e&&At(t)}}}var sc=class extends Rn{constructor(e){super(),Dn(this,e,null,rc,pt,{})}};function ic(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill-rule","evenodd"),jt(n,"clip-rule","evenodd"),jt(n,"d","M13 10C13 11.1046 13.8954 12 15 12C16.1046 12 17 11.1046 17 10V5C17 3.89543 16.1046 3 15 3C13.8954 3 13 3.89543 13 5V10ZM5 8C3.89543 8 3 8.89543 3 10C3 11.1046 3.89543 12 5 12H10C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8H5ZM15 13C13.8954 13 13 13.8954 13 15C13 16.1046 13.8954 17 15 17H20C21.1046 17 22 16.1046 22 15C22 13.8954 21.1046 13 20 13H15ZM10 22C8.89543 22 8 21.1046 8 20L8 15C8 13.8954 8.89543 13 10 13C11.1046 13 12 13.8954 12 15V20C12 21.1046 11.1046 22 10 22ZM8 5C8 3.89543 8.89543 3 10 3C11.1046 3 12 3.89543 12 5V7H10C8.89543 7 8 6.10457 8 5ZM3 15C3 16.1046 3.89543 17 5 17C6.10457 17 7 16.1046 7 15V13H5C3.89543 13 3 13.8954 3 15ZM17 20C17 21.1046 16.1046 22 15 22C13.8954 22 13 21.1046 13 20V18H15C16.1046 18 17 18.8954 17 20ZM22 10C22 8.89543 21.1046 8 20 8C18.8954 8 18 8.89543 18 10V12H20C21.1046 12 22 11.1046 22 10Z"),jt(n,"fill","currentColor"),jt(t,"width","24"),jt(t,"height","24"),jt(t,"viewBox","0 0 24 24"),jt(t,"fill","none"),jt(t,"xmlns","http://www.w3.org/2000/svg")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var ac=class extends Rn{constructor(e){super(),Dn(this,e,null,ic,pt,{})}};function lc(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","M280-80q-33 0-56.5-23.5T200-160q0-33 23.5-56.5T280-240q33 0 56.5 23.5T360-160q0 33-23.5 56.5T280-80Zm400 0q-33 0-56.5-23.5T600-160q0-33 23.5-56.5T680-240q33 0 56.5 23.5T760-160q0 33-23.5 56.5T680-80ZM208-800h590q23 0 35 20.5t1 41.5L692-482q-11 20-29.5 31T622-440H324l-44 80h440q17 0 28.5 11.5T760-320q0 17-11.5 28.5T720-280H280q-45 0-68-39.5t-2-78.5l54-98-144-304H80q-17 0-28.5-11.5T40-840q0-17 11.5-28.5T80-880h65q11 0 21 6t15 17l27 57Z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"height","24"),jt(t,"viewBox","0 -960 960 960"),jt(t,"width","24")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var cc=class extends Rn{constructor(e){super(),Dn(this,e,null,lc,pt,{})}};function dc(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","M120-200q-17 0-28.5-11.5T80-240q0-17 11.5-28.5T120-280h320q17 0 28.5 11.5T480-240q0 17-11.5 28.5T440-200H120Zm0-200q-17 0-28.5-11.5T80-440q0-17 11.5-28.5T120-480h120q17 0 28.5 11.5T280-440q0 17-11.5 28.5T240-400H120Zm0-200q-17 0-28.5-11.5T80-640q0-17 11.5-28.5T120-680h120q17 0 28.5 11.5T280-640q0 17-11.5 28.5T240-600H120Zm440 280q-83 0-141.5-58.5T360-520q0-83 58.5-141.5T560-720q83 0 141.5 58.5T760-520q0 29-8.5 57.5T726-410l126 126q11 11 11 28t-11 28q-11 11-28 11t-28-11L670-354q-24 17-52.5 25.5T560-320Zm0-80q50 0 85-35t35-85q0-50-35-85t-85-35q-50 0-85 35t-35 85q0 50 35 85t85 35Z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"height","24"),jt(t,"viewBox","0 -960 960 960"),jt(t,"width","24")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var uc=class extends Rn{constructor(e){super(),Dn(this,e,null,dc,pt,{})}};function mc(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","M606-105q-23 11-46 2.5T526-134L406-392l-93 130q-17 24-45 15t-28-38v-513q0-25 22.5-36t42.5 5l404 318q23 17 13.5 44T684-440H516l119 255q11 23 2.5 46T606-105Z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"height","24"),jt(t,"viewBox","0 -960 960 960"),jt(t,"width","24")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var pc=class extends Rn{constructor(e){super(),Dn(this,e,null,mc,pt,{})}};function hc(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","M792-56 624-222q-35 11-71 16.5t-73 5.5q-134 0-245-72T61-462q-5-9-7.5-18.5T51-500q0-10 2.5-19.5T61-538q22-39 47-76t58-66L56-792l56-56 736 736-56 56ZM480-320q11 0 21-1t20-4L305-541q-3 10-4 20t-1 21q0 75 52.5 127.5T480-320Zm292 18L645-428q7-17 11-35t4-37q0-75-52.5-127.5T480-680q-19 0-37 4t-35 12L306-766q42-17 85.5-25.5T480-800q134 0 245.5 72.5T900-537q5 8 7.5 17.5T910-500q0 10-2 19.5t-7 17.5q-24 47-55.5 88T772-302ZM587-486 467-606q26-5 50.5 4t41.5 28q17 18 24.5 41t3.5 47Z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"height","24"),jt(t,"viewBox","0 -960 960 960"),jt(t,"width","24")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var fc=class extends Rn{constructor(e){super(),Dn(this,e,null,hc,pt,{})}};function gc(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","m480-424 116 116q11 11 28 11t28-11q11-11 11-28t-11-28L536-480l116-116q11-11 11-28t-11-28q-11-11-28-11t-28 11L480-536 364-652q-11-11-28-11t-28 11q-11 11-11 28t11 28l116 116-116 116q-11 11-11 28t11 28q11 11 28 11t28-11l116-116Zm0 344q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"height","24"),jt(t,"viewBox","0 -960 960 960"),jt(t,"width","24")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var bc=class extends Rn{constructor(e){super(),Dn(this,e,null,gc,pt,{})}};function vc(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","M109-120q-11 0-20-5.5T75-140q-5-9-5.5-19.5T75-180l370-640q6-10 15.5-15t19.5-5q10 0 19.5 5t15.5 15l370 640q6 10 5.5 20.5T885-140q-5 9-14 14.5t-20 5.5H109Zm371-120q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm0-120q17 0 28.5-11.5T520-400v-120q0-17-11.5-28.5T480-560q-17 0-28.5 11.5T440-520v120q0 17 11.5 28.5T480-360Z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"height","24"),jt(t,"viewBox","0 -960 960 960"),jt(t,"width","24")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var wc=class extends Rn{constructor(e){super(),Dn(this,e,null,vc,pt,{})}};function yc(e){St(e,"svelte-1lrintl",".svg.svelte-1lrintl{width:1.5em;height:1.5em;justify-content:center;align-items:center;display:flex;margin:0}")}function _c(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","M280-280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h120q17 0 28.5 11.5T440-640q0 17-11.5 28.5T400-600H280q-50 0-85 35t-35 85q0 50 35 85t85 35h120q17 0 28.5 11.5T440-320q0 17-11.5 28.5T400-280H280Zm80-160q-17 0-28.5-11.5T320-480q0-17 11.5-28.5T360-520h240q17 0 28.5 11.5T640-480q0 17-11.5 28.5T600-440H360Zm200 160q-17 0-28.5-11.5T520-320q0-17 11.5-28.5T560-360h120q50 0 85-35t35-85q0-50-35-85t-85-35H560q-17 0-28.5-11.5T520-640q0-17 11.5-28.5T560-680h120q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H560Z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"height","24"),jt(t,"viewBox","0 -960 960 960"),jt(t,"width","24"),jt(t,"class","svg svelte-1lrintl")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var $c=class extends Rn{constructor(e){super(),Dn(this,e,null,_c,pt,{},yc)}};function kc(e){St(e,"svelte-e5yv66",".ms-inspector-item__content-item__help.svelte-e5yv66{margin-bottom:7px}.ms-inspector-item__content-item__help a{text-decoration:underline;color:#fff;word-break:break-word}.ms-inspector-item__content-item__help a:hover{color:#fff}.ms-inspector-item__content-item__help__title.svelte-e5yv66{width:100%;grid-column-gap:4px;grid-row-gap:4px;border:1px solid #373737;background-color:#535353;border-radius:4px;justify-content:space-between;align-items:center;margin-top:0.6em;margin-bottom:-3px;padding-left:1em;padding-right:1em;line-height:2.7em;display:flex;color:#fff}.ms-inspector-item__content-item__help__title.svelte-e5yv66:hover{border-color:#292929;background-color:#444}.ms-inspector-item__content-item__help__description.svelte-e5yv66{border:1px solid #373737;background-color:#535353;border-bottom-right-radius:4px;border-bottom-left-radius:4px;padding:8px 8px 10px}.ms-inspector-item__content-item__help__description p:last-child{margin-bottom:0}.ms-inspector-item__content-item__help__description img{margin-bottom:7px}")}function xc(e){let t,n,o,r=e[0].description+"";return{c(){t=qt("div"),jt(t,"class","ms-inspector-item__content-item__help__description svelte-e5yv66")},m(e,n){It(e,t,n),t.innerHTML=r,o=!0},p(e,n){(!o||1&n)&&r!==(r=e[0].description+"")&&(t.innerHTML=r)},i(e){o||(e&&dn((()=>{o&&(n||(n=Tn(t,Fs,{duration:300},!0)),n.run(1))})),o=!0)},o(e){e&&(n||(n=Tn(t,Fs,{duration:300},!1)),n.run(0)),o=!1},d(e){e&&At(t),e&&n&&n.end()}}}function Tc(e){let t,n,o,r,s,i,a=e[0].title+"",l=e[1]&&xc(e);return{c(){t=qt("div"),n=qt("button"),o=Rt(a),r=Ot(),l&&l.c(),jt(n,"class","ms-inspector-item__content-item__help__title svelte-e5yv66"),jt(t,"class","ms-inspector-item__content-item__help svelte-e5yv66")},m(a,c){It(a,t,c),Pt(t,n),Pt(n,o),Pt(t,r),l&&l.m(t,null),s||(i=Bt(n,"click",e[2]),s=!0)},p(e,[n]){1&n&&a!==(a=e[0].title+"")&&Vt(o,a),e[1]?l?(l.p(e,n),2&n&&$n(l,1)):(l=xc(e),l.c(),$n(l,1),l.m(t,null)):l&&(yn(),kn(l,1,1,(()=>{l=null})),_n())},i(e){$n(l)},o(e){kn(l)},d(e){e&&At(t),l&&l.d(),s=!1,i()}}}function Pc(e,t,n){let{helpItem:o}=t,r=!1;return e.$$set=e=>{"helpItem"in e&&n(0,o=e.helpItem)},[o,r,function(){n(1,r=!r)}]}var Sc=class extends Rn{constructor(e){super(),Dn(this,e,Pc,Tc,pt,{helpItem:0},kc)}};function Cc(e){St(e,"svelte-1pe9tmx","svg.svelte-1pe9tmx{width:8px;height:auto}")}function Mc(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","M459-381 314-526q-3-3-4.5-6.5T308-540q0-8 5.5-14t14.5-6h304q9 0 14.5 6t5.5 14q0 2-6 14L501-381q-5 5-10 7t-11 2q-6 0-11-2t-10-7Z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"viewBox","308 -560 344 188"),jt(t,"style",e[0]),jt(t,"class","svelte-1pe9tmx")},m(e,o){It(e,t,o),Pt(t,n)},p(e,[n]){1&n&&jt(t,"style",e[0])},i:st,o:st,d(e){e&&At(t)}}}function Lc(e,t,n){let{style:o=""}=t;return e.$$set=e=>{"style"in e&&n(0,o=e.style)},[o]}var Ic=class extends Rn{constructor(e){super(),Dn(this,e,Lc,Mc,pt,{style:0},Cc)}};function Ac(e,t,n){const o=e.slice();return o[5]=t[n],o}function Ec(e){let t,n;return t=new wc({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function qc(e){let t,n;return t=new bc({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Dc(e){let t,n;return t=new fc({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Rc(e){let t,n;return t=new pc({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Oc(e){let t,n;return t=new uc({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Fc(e){let t,n;return t=new cc({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Bc(e){let t,n,o,r,s,i,a,l,c,d,u,m,p=e[0].description+"",h="cart"===e[0].type&&e[2].cartData&&zc(e),f=e[0].helpItems,g=[];for(let t=0;tkn(g[e],1,1,(()=>{g[e]=null}));let v=e[0].documentationLink&&jc(e);return{c(){t=qt("div"),n=qt("div"),o=new Gt(!1),r=Ot(),h&&h.c(),s=Ot(),i=qt("div"),a=qt("div"),a.textContent="Need help?",l=Ot(),c=qt("div");for(let e=0;e{v=null})),_n())},i(e){if(!m){for(let e=0;e{m&&(u||(u=Tn(t,Fs,{duration:300},!0)),u.run(1))})),m=!0}},o(e){g=g.filter(Boolean);for(let e=0;e{_[o]=null})),_n()),~s?(i=_[s],i||(i=_[s]=y[s](e),i.c()),$n(i,1),i.m(r,null)):i=null),(!g||1&n)&&w!==(w=e[0].title+"")&&Vt(l,w);const a={};2&n&&(a.style="transform: rotate("+(e[1]?"180deg":"0deg")+")"),u.$set(a),e[1]?k?(k.p(e,n),2&n&&$n(k,1)):(k=Bc(e),k.c(),$n(k,1),k.m(p,null)):k&&(yn(),kn(k,1,1,(()=>{k=null})),_n()),(!g||1&n&&h!==(h="ms-inspector-item "+Hc(e[0].type)))&&jt(t,"class",h),(!g||1&n&&f!==(f=e[0].id))&&jt(t,"id",f)},i(e){g||($n(i),$n(u.$$.fragment,e),$n(k),g=!0)},o(e){kn(i),kn(u.$$.fragment,e),kn(k),g=!1},d(e){e&&At(t),~s&&_[s].d(),qn(u),k&&k.d(),b=!1,v()}}}function Hc(e){return`ms-inspector-item--${e}`}function Uc(e,t,n){let o;gt(e,fl,(e=>n(2,o=e)));let{inspectorItem:r}=t,s=!1;function i(){n(1,s=!s)}return nn((()=>{n(1,s=!1)})),e.$$set=e=>{"inspectorItem"in e&&n(0,r=e.inspectorItem)},[r,s,o,i,()=>i()]}var Wc=class extends Rn{constructor(e){super(),Dn(this,e,Uc,Vc,pt,{inspectorItem:0})}};function Gc(e){St(e,"svelte-zzw57g",'.ms-inspector-items__header.svelte-zzw57g.svelte-zzw57g{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px;font-size:11px;color:#fff;flex-shrink:0;flex-grow:1}.ms-inspector-items__title.svelte-zzw57g.svelte-zzw57g{font-weight:700}.ms-inspector-items__toggle.svelte-zzw57g.svelte-zzw57g{display:flex;align-items:center;gap:5px}.ms-inspector-items__switch.svelte-zzw57g.svelte-zzw57g{position:relative;display:inline-block;width:40px;height:20px;margin:0;padding:0}.ms-inspector-items__switch.svelte-zzw57g input.svelte-zzw57g{opacity:0;width:0;height:0}.ms-inspector-items__slider.svelte-zzw57g.svelte-zzw57g{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#444;border:1px solid #4b4b4b;-webkit-transition:0.4s;transition:0.4s;border-radius:100px}.ms-inspector-items__slider.svelte-zzw57g.svelte-zzw57g:before{position:absolute;content:"";height:16px;width:16px;left:1px;bottom:1px;background-color:#c1c1c1;-webkit-transition:0.4s;transition:0.4s;border-radius:50%}input.svelte-zzw57g:checked+.ms-inspector-items__slider.svelte-zzw57g{background-color:#2962ff;border-color:#2962ff}input.svelte-zzw57g:focus+.ms-inspector-items__slider.svelte-zzw57g{box-shadow:0 0 1px #2962ff}input.svelte-zzw57g:checked+.ms-inspector-items__slider.svelte-zzw57g:before{-webkit-transform:translateX(20px);-ms-transform:translateX(20px);transform:translateX(20px)}.ms-inspector-item{width:100%;background-color:#444;border:1px solid #5c5c5c;border-radius:4px;flex-wrap:wrap;margin-bottom:0.5em;display:flex;transition:height 0.2s ease-in-out;overflow:hidden}.ms-inspector-item__tabs{display:flex !important;align-items:stretch !important;justify-content:space-between !important;width:100% !important;color:#fff !important}.ms-inspector-item__tab{gap:6px !important;padding:4px !important;display:flex !important;align-items:center !important;background-color:transparent !important;transition:background-color 0.2s ease-in-out !important;width:100% !important;color:#fff !important;font-size:11px !important;border:none !important}.ms-inspector-item__tab:first-child{flex-grow:1}.ms-inspector-item__tab:hover{background-color:#535353}.ms-inspector-item--error{border-color:#e06657}.ms-inspector-item--warning{border-color:#e4d179}.ms-inspector-item__icon{width:22px;height:22px;display:flex;align-items:center;justify-content:center;background-color:#292929;border-radius:3px;color:#fff}.ms-inspector-item__icon svg{padding:2px}.ms-inspector-item--cart .ms-inspector-item__icon{background-color:#292929}.ms-inspector-item--found .ms-inspector-item__icon{background-color:#5b9c6f}\n .ms-inspector-item--plan-price-clicked .ms-inspector-item__icon\n {background-color:#2962ff}\n .ms-inspector-item--content-removed .ms-inspector-item__icon\n {background-color:#bb5bce}.ms-inspector-item--error .ms-inspector-item__icon{background-color:#e06657}.ms-inspector-item--warning .ms-inspector-item__icon{background-color:#535353;color:#efd350}.ms-inspector-item__content{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.ms-inspector-item__wrapper{width:100%}.ms-inspector-item__content-item{padding:7px;border-top:1px solid rgba(41, 41, 41, 0.5);width:100%}.ms-inspector-item__content-item > *{font-family:Plus Jakarta Sans, sans-serif !important;line-height:1.5em;font-size:11px !important;margin:0;padding:0}.ms-inspector-item__content-item p{line-height:1.5 !important;margin-bottom:7px;color:#c1c1c1;font-size:11px !important}.ms-inspector-item__content-item p:last-child{margin-bottom:0}.ms-inspector-item__content-item a{text-decoration:underline;color:#fff;word-wrap:break-all}.ms-inspector-item__content-item__title{font-weight:700;font-size:12px;margin-bottom:7px;color:#c1c1c1}.ms-inspector-item__content-item__help__title{width:100%;grid-column-gap:4px;grid-row-gap:4px;border:1px solid #373737;background-color:#535353;border-radius:4px;justify-content:space-between;align-items:center;margin-top:0.6em;margin-bottom:-3px;padding-left:1em;padding-right:1em;line-height:2.7em;display:flex;color:#fff;text-align:left !important;font-size:11px;cursor:pointer}.ms-inspector-item__content-item__help__title:hover{border-color:#292929;background-color:#444}.ms-inspector-item__content-item__help__title--link{text-decoration:none}.ms-inspector-item__content-item__help__description{overflow:hidden}.ms-inspector-item__count{border-radius:3px;background-color:#000;color:#e8e8e8;font-weight:700;font-size:9.9px;line-height:1;padding:3px;margin:0}.ms-inspector-item__arrow{margin-left:auto;margin-right:8px;width:8px;transition:transform 0.2s ease-in-out}')}function Yc(e,t,n){const o=e.slice();return o[6]=t[n],o}function Zc(e,t,n){const o=e.slice();return o[6]=t[n],o}function Jc(e,t,n){const o=e.slice();return o[6]=t[n],o}function Kc(e,t,n){const o=e.slice();return o[6]=t[n],o}function Xc(e,t){let n,o,r;return o=new Wc({props:{inspectorItem:t[6]}}),{key:e,first:null,c(){n=Ft(),An(o.$$.fragment),this.first=n},m(e,t){It(e,n,t),En(o,e,t),r=!0},p(e,n){t=e;const r={};2&n&&(r.inspectorItem=t[6]),o.$set(r)},i(e){r||($n(o.$$.fragment,e),r=!0)},o(e){kn(o.$$.fragment,e),r=!1},d(e){e&&At(n),qn(o,e)}}}function Qc(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b,v,w,y=e[1].filter(ad).length+"";s=new uc({}),h=new Ic({props:{style:"transform: rotate("+(e[2]?"180deg":"0deg")+")"}});let _=e[2]&&ed(e);return{c(){t=qt("div"),n=qt("div"),o=qt("button"),r=qt("span"),An(s.$$.fragment),i=Ot(),a=qt("span"),a.textContent="Attributes Found",l=Ot(),c=qt("span"),d=Rt("x"),u=Rt(y),m=Ot(),p=qt("span"),An(h.$$.fragment),f=Ot(),_&&_.c(),g=Ft(),jt(r,"class","ms-inspector-item__icon"),jt(a,"class","ms-inspector-item__text"),jt(c,"class","ms-inspector-item__count"),jt(p,"class","ms-inspector-item__arrow"),jt(o,"class","ms-inspector-item__tab"),jt(o,"data-cy","inspector-item--group-button"),jt(n,"class","ms-inspector-item__tabs"),jt(t,"class","ms-inspector-item ms-inspector-item--found")},m(y,$){It(y,t,$),Pt(t,n),Pt(n,o),Pt(o,r),En(s,r,null),Pt(o,i),Pt(o,a),Pt(o,l),Pt(o,c),Pt(c,d),Pt(c,u),Pt(o,m),Pt(o,p),En(h,p,null),It(y,f,$),_&&_.m(y,$),It(y,g,$),b=!0,v||(w=Bt(o,"click",e[3]),v=!0)},p(e,t){(!b||2&t)&&y!==(y=e[1].filter(ad).length+"")&&Vt(u,y);const n={};4&t&&(n.style="transform: rotate("+(e[2]?"180deg":"0deg")+")"),h.$set(n),e[2]?_?(_.p(e,t),4&t&&$n(_,1)):(_=ed(e),_.c(),$n(_,1),_.m(g.parentNode,g)):_&&(yn(),kn(_,1,1,(()=>{_=null})),_n())},i(e){b||($n(s.$$.fragment,e),$n(h.$$.fragment,e),$n(_),b=!0)},o(e){kn(s.$$.fragment,e),kn(h.$$.fragment,e),kn(_),b=!1},d(e){e&&At(t),qn(s),qn(h),e&&At(f),_&&_.d(e),e&&At(g),v=!1,w()}}}function ed(e){let t,n,o=[],r=new Map,s=e[1].filter(ld);const i=e=>e[6].id;for(let t=0;t0,_=[],$=new Map,k=[],x=new Map,T=e[1].filter(id);const P=e=>e[6].id;for(let t=0;te[6].id;for(let t=0;te[6].id;for(let t=0;t0),y?S?(S.p(e,t),2&t&&$n(S,1)):(S=Qc(e),S.c(),$n(S,1),S.m(m.parentNode,m)):S&&(yn(),kn(S,1,1,(()=>{S=null})),_n()),2&t&&(C=e[1].filter(cd),yn(),_=Ln(_,t,M,1,e,C,$,p.parentNode,Mn,nd,p,Zc),_n()),2&t&&(L=e[1].filter(dd),yn(),k=Ln(k,t,I,1,e,L,x,h.parentNode,Mn,od,h,Yc),_n())},i(e){if(!f){for(let e=0;e"found"===e.type,id=e=>"cart"===e.type,ad=e=>"found"===e.type,ld=e=>"found"===e.type,cd=e=>"error"===e.type,dd=e=>"warning"===e.type;function ud(e,t,n){let o;gt(e,fl,(e=>n(0,o=e)));let r=[],s=!1;return nn((()=>{n(2,s=!1)})),e.$$.update=()=>{1&e.$$.dirty&&o.inspectorData.length>0&&n(1,r=o.inspectorData.map((e=>$l.find((t=>t.id===e))))),1&e.$$.dirty&&(!0===o.xRayMode?(function(){rt(this,null,(function*(){Kl("found")}))}(),function(){rt(this,null,(function*(){Kl("error")}))}(),function(){rt(this,null,(function*(){Kl("warning")}))}()):Jl())},[o,r,s,function(){n(2,s=!s)},function(){fl.update((e=>(e.xRayMode=!e.xRayMode,localStorage.setItem("MSXRayMode",e.xRayMode),e)))},function(){o.xRayMode=this.checked,fl.set(o)}]}var md=class extends Rn{constructor(e){super(),Dn(this,e,ud,rd,pt,{},Gc)}};function pd(e){St(e,"svelte-1ave6sr","button.svelte-1ave6sr{background:none;border:none;cursor:pointer;padding:0;display:flex;align-items:center}")}function hd(e){let t,n,o,r,s,i;return{c(){t=qt("button"),n=Dt("svg"),o=Dt("path"),jt(o,"fill","currentColor"),jt(o,"d","M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-520q0-17 11.5-28.5T160-720q17 0 28.5 11.5T200-680v520h400q17 0 28.5 11.5T640-120q0 17-11.5 28.5T600-80H200Zm160-240v-480 480Z"),jt(n,"xmlns","http://www.w3.org/2000/svg"),jt(n,"viewBox","120 -880 680 800"),jt(t,"style",e[0]),jt(t,"class",r=yt(e[1])+" svelte-1ave6sr")},m(r,a){It(r,t,a),Pt(t,n),Pt(n,o),s||(i=Bt(t,"click",e[2]),s=!0)},p(e,[n]){1&n&&jt(t,"style",e[0]),2&n&&r!==(r=yt(e[1])+" svelte-1ave6sr")&&jt(t,"class",r)},i:st,o:st,d(e){e&&At(t),s=!1,i()}}}function fd(e,t,n){let{style:o=""}=t,{class:r}=t,{copyText:s}=t;return e.$$set=e=>{"style"in e&&n(0,o=e.style),"class"in e&&n(1,r=e.class),"copyText"in e&&n(3,s=e.copyText)},[o,r,function(){s&&navigator.clipboard.writeText(s)},s]}var gd=class extends Rn{constructor(e){super(),Dn(this,e,fd,hd,pt,{style:0,class:1,copyText:3},pd)}};function bd(e){St(e,"svelte-13v7mb1",".ms-member-tab__data-group.svelte-13v7mb1{display:flex;align-items:center;gap:3px;margin-bottom:6px}.ms-member-tab__data-group.svelte-13v7mb1:last-child{margin-bottom:0}.ms-member-tab__data-group.ms-member-tab__data-group--flex-top.svelte-13v7mb1{align-items:flex-start}.ms-member-tab__data-group__label.svelte-13v7mb1{width:150px;color:#e8e8e8;border:1px solid #4b4b4b;border-radius:4px;background:#444;font-size:9px;line-height:1;padding:6px;flex-shrink:0;width:auto}.ms-member-tab__data-group__copy-box.svelte-13v7mb1{flex-grow:0;position:relative;display:flex;align-items:center;overflow:hidden;gap:6px}.ms-member-tab__data-group__copy-box__button.svelte-13v7mb1{border:1px solid #4b4b4b;border-radius:4px;background:#000;color:#e8e8e8 !important;font-size:10px;font-weight:700;line-height:1;padding:6px;flex-grow:1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ms-member-tab__data-group__copy-box__icon{width:11px;height:auto;flex-shrink:0;color:#e8e8e8 !important;fill:#e8e8e8 !important;opacity:0;transition:opacity 0.2s ease-in-out}\n .ms-member-tab__data-group__copy-box__button:hover\n + .ms-member-tab__data-group__copy-box__icon\n {opacity:1}.ms-member-tab__data-group__copy-box__icon:hover{opacity:1;cursor:pointer}")}function vd(e){let t,n,o,r;return{c(){t=qt("button"),n=Rt(e[0]),jt(t,"class","ms-member-tab__data-group__copy-box__button svelte-13v7mb1")},m(s,i){It(s,t,i),Pt(t,n),o||(r=Bt(t,"click",e[3]),o=!0)},p(e,t){1&t&&Vt(n,e[0])},d(e){e&&At(t),o=!1,r()}}}function wd(e){let t;return{c(){t=qt("button"),jt(t,"class","ms-member-tab__data-group__copy-box__button ms-member-tab__data-group__copy-box__button--image svelte-13v7mb1"),Ut(t,"background-image","url("+e[0]+")"),Ut(t,"min-width","42px"),Ut(t,"min-height","42px"),Ut(t,"background-size","cover"),Ut(t,"background-position","center")},m(e,n){It(e,t,n)},p(e,n){1&n&&Ut(t,"background-image","url("+e[0]+")")},d(e){e&&At(t)}}}function yd(e){let t;return{c(){t=qt("button"),jt(t,"class","ms-member-tab__data-group__copy-box__button ms-member-tab__data-group__copy-box__button--color svelte-13v7mb1"),Ut(t,"background-color",e[0]),Ut(t,"min-width","42px"),Ut(t,"min-height","23px")},m(e,n){It(e,t,n)},p(e,n){1&n&&Ut(t,"background-color",e[0])},d(e){e&&At(t)}}}function _d(e){let t,n,o,r,s,i,a,l,c,d,u;function m(e,t){return 1&t&&(i=null),1&t&&(a=null),null==i&&(i=!(!e[0]||!(e[0].startsWith("#")||e[0]&&e[0].startsWith("rgb")))),i?yd:(null==a&&(a=!!(e[4](e[0],".png")||e[4](e[0],".jpg")||e[4](e[0],".jpeg")||e[4](e[0],".gif"))),a?wd:vd)}let p=m(e,-1),h=p(e);return c=new gd({props:{class:"ms-member-tab__data-group__copy-box__icon",copyText:e[0]}}),{c(){t=qt("div"),n=qt("div"),o=Rt(e[1]),r=Ot(),s=qt("div"),h.c(),l=Ot(),An(c.$$.fragment),jt(n,"class","ms-member-tab__data-group__label svelte-13v7mb1"),jt(s,"class","ms-member-tab__data-group__copy-box svelte-13v7mb1"),jt(t,"data-cy",e[2]),jt(t,"class",d="ms-member-tab__data-group "+(e[4](e[0],".png")||e[4](e[0],".jpg")||e[4](e[0],".jpeg")||e[4](e[0],".gif")?"ms-member-tab__data-group--flex-top":"")+" svelte-13v7mb1")},m(e,i){It(e,t,i),Pt(t,n),Pt(n,o),Pt(t,r),Pt(t,s),h.m(s,null),Pt(s,l),En(c,s,null),u=!0},p(e,[n]){(!u||2&n)&&Vt(o,e[1]),p===(p=m(e,n))&&h?h.p(e,n):(h.d(1),h=p(e),h&&(h.c(),h.m(s,l)));const r={};1&n&&(r.copyText=e[0]),c.$set(r),(!u||4&n)&&jt(t,"data-cy",e[2]),(!u||1&n&&d!==(d="ms-member-tab__data-group "+(e[4](e[0],".png")||e[4](e[0],".jpg")||e[4](e[0],".jpeg")||e[4](e[0],".gif")?"ms-member-tab__data-group--flex-top":"")+" svelte-13v7mb1"))&&jt(t,"class",d)},i(e){u||($n(c.$$.fragment,e),u=!0)},o(e){kn(c.$$.fragment,e),u=!1},d(e){e&&At(t),h.d(),qn(c)}}}function $d(e,t,n){let{labelText:o}=t,{buttonText:r}=t,{cypress:s}=t;return null!=r&&"string"!=typeof r&&(r=r.toString()),e.$$set=e=>{"labelText"in e&&n(1,o=e.labelText),"buttonText"in e&&n(0,r=e.buttonText),"cypress"in e&&n(2,s=e.cypress)},[r,o,s,function(){navigator.clipboard.writeText(r)},(e,t)=>"string"==typeof e&&e.endsWith(t)]}var kd=class extends Rn{constructor(e){super(),Dn(this,e,$d,_d,pt,{labelText:1,buttonText:0,cypress:2},bd)}};function xd(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h357l-80 80H200v560h560v-278l80-80v358q0 33-23.5 56.5T760-120H200Zm280-360Zm-120 80v-97q0-16 6-30.5t17-25.5l344-344q12-12 27-18t30-6q16 0 30.5 6t26.5 18l56 57q11 12 17 26.5t6 29.5q0 15-5.5 29.5T897-728L553-384q-11 11-25.5 17.5T497-360h-97q-17 0-28.5-11.5T360-400Zm481-384-56-56 56 56ZM440-440h56l232-232-28-28-29-28-231 231v57Zm260-260-29-28 29 28 28 28-28-28Z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"viewBox","120 -921 800 801"),jt(t,"class",e[0])},m(e,o){It(e,t,o),Pt(t,n)},p(e,[n]){1&n&&jt(t,"class",e[0])},i:st,o:st,d(e){e&&At(t)}}}function Td(e,t,n){let{class:o}=t;return e.$$set=e=>{"class"in e&&n(0,o=e.class)},[o]}var Pd=class extends Rn{constructor(e){super(),Dn(this,e,Td,xd,pt,{class:0})}};function Sd(e){St(e,"svelte-1l53fni",".ms-section-header.svelte-1l53fni{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;width:100%}.ms-section-header__title.svelte-1l53fni{font-size:11px;line-height:1;font-weight:700;color:#e8e8e8}.ms-section-header__link.svelte-1l53fni{text-decoration:none;display:flex;align-items:center;gap:4px;color:#c1c1c1;font-size:10px;font-weight:400;transition:all 0.2s ease-in-out;border:1px solid #535353;border-radius:4px;background:#444;padding:1px 3px}.ms-section-header__link.svelte-1l53fni:hover{color:#fff}.ms-section-header__link__svg{width:13px;height:auto;fill:#c1c1c1}")}function Cd(e){let t,n,o,r;return n=new Pd({props:{class:"ms-section-header__link__svg"}}),{c(){t=qt("a"),An(n.$$.fragment),o=qt("span"),o.textContent="Edit",jt(t,"class","ms-section-header__link svelte-1l53fni"),jt(t,"href",e[1]),jt(t,"target","_blank")},m(e,s){It(e,t,s),En(n,t,null),Pt(t,o),r=!0},p(e,n){(!r||2&n)&&jt(t,"href",e[1])},i(e){r||($n(n.$$.fragment,e),r=!0)},o(e){kn(n.$$.fragment,e),r=!1},d(e){e&&At(t),qn(n)}}}function Md(e){let t,n,o,r,s,i=e[1]&&Cd(e);return{c(){t=qt("div"),n=qt("div"),o=Rt(e[0]),r=Ot(),i&&i.c(),jt(n,"class","ms-section-header__title svelte-1l53fni"),jt(t,"class","ms-section-header svelte-1l53fni")},m(e,a){It(e,t,a),Pt(t,n),Pt(n,o),Pt(t,r),i&&i.m(t,null),s=!0},p(e,[n]){(!s||1&n)&&Vt(o,e[0]),e[1]?i?(i.p(e,n),2&n&&$n(i,1)):(i=Cd(e),i.c(),$n(i,1),i.m(t,null)):i&&(yn(),kn(i,1,1,(()=>{i=null})),_n())},i(e){s||($n(i),s=!0)},o(e){kn(i),s=!1},d(e){e&&At(t),i&&i.d()}}}function Ld(e,t,n){let{titleText:o}=t,{editURL:r}=t;return e.$$set=e=>{"titleText"in e&&n(0,o=e.titleText),"editURL"in e&&n(1,r=e.editURL)},[o,r]}var Id=class extends Rn{constructor(e){super(),Dn(this,e,Ld,Md,pt,{titleText:0,editURL:1},Sd)}};function Ad(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q48 0 93.5 11t87.5 32q15 8 19.5 24t-5.5 30q-10 14-26.5 18t-32.5-4q-32-15-66.5-23t-69.5-8q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133 0 226.5-93.5T800-480q0-8-.5-15.5T798-511q-2-17 6.5-32.5T830-564q16-5 30 3t16 24q2 14 3 28t1 29q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm-56-328 372-373q11-11 27.5-11.5T852-781q11 11 11 28t-11 28L452-324q-12 12-28 12t-28-12L282-438q-11-11-11-28t11-28q11-11 28-11t28 11l86 86Z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"height","100%"),jt(t,"viewBox","0 -960 960 960"),jt(t,"width","100%")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var Ed=class extends Rn{constructor(e){super(),Dn(this,e,null,Ad,pt,{})}};function qd(e){St(e,"svelte-lh6dn1",".ms-button-link.svelte-lh6dn1{display:flex;align-items:center;justify-content:space-between;gap:4px;color:#e8e8e8;font-size:11px;line-height:1;text-decoration:none;border:1px solid #373737;border-radius:4px;background:#535353;padding:5px 10px;transition:all 0.2s ease-in-out;margin-top:12px}.ms-app-tab__section__content--auth .ms-button-link{margin-top:0;margin-bottom:0.5em}.ms-button-link.svelte-lh6dn1:last-child{margin-bottom:0}.ms-button-link.svelte-lh6dn1:hover{color:#fff}.ms-button-link__svg{width:13px;height:auto;fill:#c1c1c1}.help-option__left-icon.svelte-lh6dn1{display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:3px;padding:2px;margin-left:-6px}.help-option__left-icon--enabled.svelte-lh6dn1{background:#5b9c6f\n }.help-option__left-icon--disabled.svelte-lh6dn1{background:#292929\n }.help-option__left-icon svg{width:100%;height:auto}.help-option__text.svelte-lh6dn1{flex:1}")}function Dd(e){let t,n,o,r,s;const i=[Od,Rd],a=[];function l(e,t){return!0===e[1]?0:1}return n=l(e),o=a[n]=i[n](e),{c(){t=qt("span"),o.c(),jt(t,"class",r=yt("help-option__left-icon help-option__left-icon--"+(e[1]?"enabled":"disabled"))+" svelte-lh6dn1")},m(e,o){It(e,t,o),a[n].m(t,null),s=!0},p(e,c){let d=n;n=l(e),n!==d&&(yn(),kn(a[d],1,1,(()=>{a[d]=null})),_n(),o=a[n],o||(o=a[n]=i[n](e),o.c()),$n(o,1),o.m(t,null)),(!s||2&c&&r!==(r=yt("help-option__left-icon help-option__left-icon--"+(e[1]?"enabled":"disabled"))+" svelte-lh6dn1"))&&jt(t,"class",r)},i(e){s||($n(o),s=!0)},o(e){kn(o),s=!1},d(e){e&&At(t),a[n].d()}}}function Rd(e){let t,n;return t=new bc({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Od(e){let t,n;return t=new Ed({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Fd(e){let t,n;return t=new $c({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Bd(e){let t,n,o,r,s,i,a=void 0!==e[1]&&Dd(e),l=e[3]&&Fd();return{c(){t=qt("a"),a&&a.c(),n=Ot(),o=qt("span"),r=Rt(e[2]),s=Ot(),l&&l.c(),jt(o,"class","help-option__text svelte-lh6dn1"),jt(t,"href",e[0]),jt(t,"target","_blank"),jt(t,"class","ms-button-link svelte-lh6dn1"),Wt(t,"ms-button-link--status",!0===e[1])},m(e,c){It(e,t,c),a&&a.m(t,null),Pt(t,n),Pt(t,o),Pt(o,r),Pt(t,s),l&&l.m(t,null),i=!0},p(e,[o]){void 0!==e[1]?a?(a.p(e,o),2&o&&$n(a,1)):(a=Dd(e),a.c(),$n(a,1),a.m(t,n)):a&&(yn(),kn(a,1,1,(()=>{a=null})),_n()),(!i||4&o)&&Vt(r,e[2]),e[3]?l?8&o&&$n(l,1):(l=Fd(),l.c(),$n(l,1),l.m(t,null)):l&&(yn(),kn(l,1,1,(()=>{l=null})),_n()),(!i||1&o)&&jt(t,"href",e[0]),(!i||2&o)&&Wt(t,"ms-button-link--status",!0===e[1])},i(e){i||($n(a),$n(l),i=!0)},o(e){kn(a),kn(l),i=!1},d(e){e&&At(t),a&&a.d(),l&&l.d()}}}function zd(e,t,n){let{link:o}=t,{status:r}=t,{text:s}=t,{showIcon:i=!0}=t;return e.$$set=e=>{"link"in e&&n(0,o=e.link),"status"in e&&n(1,r=e.status),"text"in e&&n(2,s=e.text),"showIcon"in e&&n(3,i=e.showIcon)},[o,r,s,i]}var Nd=class extends Rn{constructor(e){super(),Dn(this,e,zd,Bd,pt,{link:0,status:1,text:2,showIcon:3},qd)}};function jd(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","m440-380-237-30q-25-3-32.5-27t10.5-41l409-392q5-5 12-7.5t19-2.5q20 0 30.5 17t.5 35L520-580l237 30q25 3 32.5 27T779-482L370-90q-5 5-12 7.5T339-80q-20 0-30.5-17t-.5-35l132-248Z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"viewBox","168.29 -880 623.41 800")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var Vd=class extends Rn{constructor(e){super(),Dn(this,e,null,jd,pt,{})}};function Hd(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm-1-120q14 0 24.5-10.5T514-235v-15q50-9 86-39t36-89q0-42-24-77t-96-61q-60-20-83-35t-23-41q0-26 18.5-41t53.5-15q20 0 35 7t25 19q10 12 22.5 16.5t23.5-.5q15-6 20.5-20.5T606-653q-16-23-39.5-39T516-710v-15q0-14-10.5-24.5T481-760q-14 0-24.5 10.5T446-725v15q-50 11-78 44t-28 74q0 47 27.5 76t86.5 50q63 23 87.5 41t24.5 47q0 33-23.5 48.5T486-314q-26 0-47-12.5T404-364q-8-14-21-19t-26 0q-14 5-20.5 19t-.5 27q16 34 43 55.5t65 29.5v17q0 14 10.5 24.5T479-200Z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"height","24"),jt(t,"viewBox","0 -960 960 960"),jt(t,"width","24")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var Ud=class extends Rn{constructor(e){super(),Dn(this,e,null,Hd,pt,{})}};function Wd(e){St(e,"svelte-1dd5p02",".ms-member-plan-item.svelte-1dd5p02.svelte-1dd5p02{width:100%;background-color:#444;border:1px solid #5c5c5c;border-radius:4px;flex-wrap:wrap;margin-bottom:0.5em;display:flex;transition:height 0.2s ease-in-out;overflow:hidden}.ms-member-plan-item__tabs.svelte-1dd5p02.svelte-1dd5p02{display:flex;align-items:stretch;justify-content:space-between;width:100%}.ms-member-plan-item__tab.svelte-1dd5p02.svelte-1dd5p02{gap:6px;padding:4px;display:flex;align-items:center;background-color:transparent;transition:background-color 0.2s ease-in-out;width:100%}.ms-member-plan-item--free.svelte-1dd5p02 .ms-member-plan-item__icon.svelte-1dd5p02{background-color:#2962ff}.ms-member-plan-item--paid.svelte-1dd5p02 .ms-member-plan-item__icon.svelte-1dd5p02{background-color:#5b9c6f}.ms-member-plan-item__icon.svelte-1dd5p02.svelte-1dd5p02{width:22px;height:22px;display:flex;align-items:center;justify-content:center;background-color:#292929;border-radius:3px;color:#fff;padding:2px}.ms-member-plan-item__icon svg{width:100%;height:100%}.ms-member-plan-item__arrow.svelte-1dd5p02.svelte-1dd5p02{margin-left:auto;margin-right:8px;width:8px;transition:transform 0.2s ease-in-out}.ms-member-plan-item__content.svelte-1dd5p02.svelte-1dd5p02{width:100%}.ms-member-plan-item__wrapper.svelte-1dd5p02.svelte-1dd5p02{background-color:#292929;width:100%;padding:8px}.ms-member-plan-item__content-item.svelte-1dd5p02.svelte-1dd5p02{margin-bottom:10px}.ms-member-plan-item__content-item__title.svelte-1dd5p02.svelte-1dd5p02{font-weight:bold;margin-bottom:5px}.ms-member-plan-item__content-item__help.svelte-1dd5p02.svelte-1dd5p02{margin-top:10px}.ms-member-plan-item__content-item__help__title.svelte-1dd5p02.svelte-1dd5p02{display:flex;align-items:center;text-decoration:none;color:#007bff}.ms-member-plan-item__content-item__help__title--link.svelte-1dd5p02.svelte-1dd5p02{color:#28a745}")}function Gd(e){let t,n;return t=new Vd({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Yd(e){let t,n;return t=new Ud({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Zd(e){let t,n=e[0].planName+"";return{c(){t=Rt(n)},m(e,n){It(e,t,n)},p(e,o){1&o&&n!==(n=e[0].planName+"")&&Vt(t,n)},d(e){e&&At(t)}}}function Jd(e){let t,n=e[0].priceDetails.priceName+"";return{c(){t=Rt(n)},m(e,n){It(e,t,n)},p(e,o){1&o&&n!==(n=e[0].priceDetails.priceName+"")&&Vt(t,n)},d(e){e&&At(t)}}}function Kd(e){let t,n,o,r,s;const i=[Qd,Xd],a=[];function l(e,t){return e[0]&&e[0].priceDetails?0:1}return n=l(e),o=a[n]=i[n](e),{c(){t=qt("div"),o.c(),jt(t,"class","ms-member-plan-item__wrapper svelte-1dd5p02")},m(e,o){It(e,t,o),a[n].m(t,null),s=!0},p(e,r){let s=n;n=l(e),n===s?a[n].p(e,r):(yn(),kn(a[s],1,1,(()=>{a[s]=null})),_n(),o=a[n],o?o.p(e,r):(o=a[n]=i[n](e),o.c()),$n(o,1),o.m(t,null))},i(e){s||($n(o),e&&dn((()=>{s&&(r||(r=Tn(t,Fs,{duration:300},!0)),r.run(1))})),s=!0)},o(e){kn(o),e&&(r||(r=Tn(t,Fs,{duration:300},!1)),r.run(0)),s=!1},d(e){e&&At(t),a[n].d(),e&&r&&r.end()}}}function Xd(e){let t,n,o,r;return t=new kd({props:{labelText:"ID",buttonText:e[0].planId}}),o=new kd({props:{labelText:"Priority",buttonText:e[0].priority}}),{c(){An(t.$$.fragment),n=Ot(),An(o.$$.fragment)},m(e,s){En(t,e,s),It(e,n,s),En(o,e,s),r=!0},p(e,n){const r={};1&n&&(r.buttonText=e[0].planId),t.$set(r);const s={};1&n&&(s.buttonText=e[0].priority),o.$set(s)},i(e){r||($n(t.$$.fragment,e),$n(o.$$.fragment,e),r=!0)},o(e){kn(t.$$.fragment,e),kn(o.$$.fragment,e),r=!1},d(e){qn(t,e),e&&At(n),qn(o,e)}}}function Qd(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b,v;return t=new kd({props:{labelText:"ID",buttonText:e[0].planId}}),o=new kd({props:{labelText:"Priority",buttonText:e[0].priority}}),s=new kd({props:{labelText:"Price Name",buttonText:e[0].priceDetails.priceName}}),a=new kd({props:{labelText:"Amount",buttonText:e[0].priceDetails.amount}}),c=new kd({props:{labelText:"Interval",buttonText:e[0].priceDetails.interval.type}}),u=new kd({props:{labelText:"Inteval Count",buttonText:e[0].priceDetails.interval.count}}),p=new kd({props:{labelText:"Type",buttonText:e[0].priceDetails.type}}),f=new kd({props:{labelText:"Currency",buttonText:e[0].priceDetails.currency}}),b=new kd({props:{labelText:"Plan Name",buttonText:e[0].planName}}),{c(){An(t.$$.fragment),n=Ot(),An(o.$$.fragment),r=Ot(),An(s.$$.fragment),i=Ot(),An(a.$$.fragment),l=Ot(),An(c.$$.fragment),d=Ot(),An(u.$$.fragment),m=Ot(),An(p.$$.fragment),h=Ot(),An(f.$$.fragment),g=Ot(),An(b.$$.fragment)},m(e,w){En(t,e,w),It(e,n,w),En(o,e,w),It(e,r,w),En(s,e,w),It(e,i,w),En(a,e,w),It(e,l,w),En(c,e,w),It(e,d,w),En(u,e,w),It(e,m,w),En(p,e,w),It(e,h,w),En(f,e,w),It(e,g,w),En(b,e,w),v=!0},p(e,n){const r={};1&n&&(r.buttonText=e[0].planId),t.$set(r);const i={};1&n&&(i.buttonText=e[0].priority),o.$set(i);const l={};1&n&&(l.buttonText=e[0].priceDetails.priceName),s.$set(l);const d={};1&n&&(d.buttonText=e[0].priceDetails.amount),a.$set(d);const m={};1&n&&(m.buttonText=e[0].priceDetails.interval.type),c.$set(m);const h={};1&n&&(h.buttonText=e[0].priceDetails.interval.count),u.$set(h);const g={};1&n&&(g.buttonText=e[0].priceDetails.type),p.$set(g);const v={};1&n&&(v.buttonText=e[0].priceDetails.currency),f.$set(v);const w={};1&n&&(w.buttonText=e[0].planName),b.$set(w)},i(e){v||($n(t.$$.fragment,e),$n(o.$$.fragment,e),$n(s.$$.fragment,e),$n(a.$$.fragment,e),$n(c.$$.fragment,e),$n(u.$$.fragment,e),$n(p.$$.fragment,e),$n(f.$$.fragment,e),$n(b.$$.fragment,e),v=!0)},o(e){kn(t.$$.fragment,e),kn(o.$$.fragment,e),kn(s.$$.fragment,e),kn(a.$$.fragment,e),kn(c.$$.fragment,e),kn(u.$$.fragment,e),kn(p.$$.fragment,e),kn(f.$$.fragment,e),kn(b.$$.fragment,e),v=!1},d(e){qn(t,e),e&&At(n),qn(o,e),e&&At(r),qn(s,e),e&&At(i),qn(a,e),e&&At(l),qn(c,e),e&&At(d),qn(u,e),e&&At(m),qn(p,e),e&&At(h),qn(f,e),e&&At(g),qn(b,e)}}}function eu(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b;const v=[Yd,Gd],w=[];function y(e,t){return e[0]&&e[0].priceDetails?0:1}function _(e,t){return e[0]&&e[0].priceDetails?Jd:Zd}s=y(e),i=w[s]=v[s](e);let $=_(e),k=$(e);d=new Ic({props:{style:"transform: rotate("+(e[1]?"180deg":"0deg")+")"}});let x=e[1]&&Kd(e);return{c(){t=qt("div"),n=qt("div"),o=qt("button"),r=qt("span"),i.c(),a=Ot(),k.c(),l=Ot(),c=qt("span"),An(d.$$.fragment),u=Ot(),m=qt("div"),x&&x.c(),jt(r,"class","ms-member-plan-item__icon svelte-1dd5p02"),jt(c,"class","ms-member-plan-item__arrow svelte-1dd5p02"),jt(o,"class","ms-member-plan-item__tab svelte-1dd5p02"),jt(o,"data-cy","member-plan-item-button"),jt(n,"class","ms-member-plan-item__tabs svelte-1dd5p02"),jt(m,"class","ms-member-plan-item__content svelte-1dd5p02"),jt(t,"class",p="ms-member-plan-item "+tu(e[0])+" svelte-1dd5p02"),jt(t,"id",h=e[0].id)},m(i,p){It(i,t,p),Pt(t,n),Pt(n,o),Pt(o,r),w[s].m(r,null),Pt(o,a),k.m(o,null),Pt(o,l),Pt(o,c),En(d,c,null),Pt(t,u),Pt(t,m),x&&x.m(m,null),f=!0,g||(b=Bt(o,"click",e[3]),g=!0)},p(e,[n]){let a=s;s=y(e),s!==a&&(yn(),kn(w[a],1,1,(()=>{w[a]=null})),_n(),i=w[s],i||(i=w[s]=v[s](e),i.c()),$n(i,1),i.m(r,null)),$===($=_(e))&&k?k.p(e,n):(k.d(1),k=$(e),k&&(k.c(),k.m(o,l)));const c={};2&n&&(c.style="transform: rotate("+(e[1]?"180deg":"0deg")+")"),d.$set(c),e[1]?x?(x.p(e,n),2&n&&$n(x,1)):(x=Kd(e),x.c(),$n(x,1),x.m(m,null)):x&&(yn(),kn(x,1,1,(()=>{x=null})),_n()),(!f||1&n&&p!==(p="ms-member-plan-item "+tu(e[0])+" svelte-1dd5p02"))&&jt(t,"class",p),(!f||1&n&&h!==(h=e[0].id))&&jt(t,"id",h)},i(e){f||($n(i),$n(d.$$.fragment,e),$n(x),f=!0)},o(e){kn(i),kn(d.$$.fragment,e),kn(x),f=!1},d(e){e&&At(t),w[s].d(),k.d(),qn(d),x&&x.d(),g=!1,b()}}}function tu(e){return e&&e.priceDetails?"ms-member-plan-item--paid":"ms-member-plan-item--free"}function nu(e,t,n){let{memberPlanItem:o}=t,r=!1;function s(){n(1,r=!r)}return e.$$set=e=>{"memberPlanItem"in e&&n(0,o=e.memberPlanItem)},[o,r,s,()=>s()]}var ou=class extends Rn{constructor(e){super(),Dn(this,e,nu,eu,pt,{memberPlanItem:0},Wd)}};function ru(e){St(e,"svelte-15gyvir",".ms-member-tab__header.svelte-15gyvir.svelte-15gyvir{margin-bottom:12px}.ms-member-tab-status.svelte-15gyvir.svelte-15gyvir{display:flex;align-items:center;padding:6px 12px;border:1px solid #e06657;border-radius:4px}.ms-member-tab-status--active.svelte-15gyvir.svelte-15gyvir{border-color:#5c9d6f}.ms-member-tab-status__indicator.svelte-15gyvir.svelte-15gyvir{width:10px;height:10px;border-radius:50%;margin-right:10px;background-color:rgb(224, 102, 87)}.ms-member-tab-status__indicator--active.svelte-15gyvir.svelte-15gyvir{background-color:#5c9d6f}.ms-member-tab-status__button.svelte-15gyvir.svelte-15gyvir{font-size:11px;line-height:1;margin-left:auto;padding:4px;border:1px solid #5c5c5c;border-radius:4px;background-color:#444;color:#fff;cursor:pointer}.ms-member-tab__section.svelte-15gyvir.svelte-15gyvir{padding-bottom:6px;margin-bottom:12px;border-bottom:1px solid #535353}.ms-member-tab__section.svelte-15gyvir.svelte-15gyvir:last-child{border-bottom:none;margin-bottom:0}.ms-code-block.svelte-15gyvir.svelte-15gyvir{background-color:#000;color:#fff;padding:4px 8px;border-radius:4px;overflow:auto;border:1px solid #4b4b4b;font-size:10px;font-family:monospace}.ms-code-block.svelte-15gyvir code.svelte-15gyvir{white-space:pre-wrap;word-break:break-word;font-family:monospace}")}function su(e,t,n){const o=e.slice();return o[11]=t[n],o}function iu(e,t,n){const o=e.slice();return o[14]=t[n],o}function au(e,t,n){const o=e.slice();return o[11]=t[n],o}function lu(e){let t,n,o,r,s;return{c(){t=qt("div"),t.textContent="You are Logged Out",n=Ot(),o=qt("button"),o.textContent="Login",jt(t,"class","ms-member-tab-status__text"),jt(o,"class","ms-member-tab-status__button svelte-15gyvir"),jt(o,"data-cy","member-login-button")},m(i,a){It(i,t,a),It(i,n,a),It(i,o,a),r||(s=Bt(o,"click",e[7]),r=!0)},p:st,d(e){e&&At(t),e&&At(n),e&&At(o),r=!1,s()}}}function cu(e){let t,n,o,r,s;return{c(){t=qt("div"),t.textContent="You are Logged In",n=Ot(),o=qt("button"),o.textContent="Logout",jt(t,"class","ms-member-tab-status__text"),jt(o,"class","ms-member-tab-status__button svelte-15gyvir"),jt(o,"data-cy","member-logout-button")},m(i,a){It(i,t,a),It(i,n,a),It(i,o,a),r||(s=Bt(o,"click",e[6]),r=!0)},p:st,d(e){e&&At(t),e&&At(n),e&&At(o),r=!1,s()}}}function du(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b,v,w,y,_,$=e[0].memberData.customFields&&Object.keys(e[0].memberData.customFields).some(e[5]),k=e[0].memberData.metaData&&Object.keys(e[0].memberData.metaData).length>0,x=JSON.stringify(e[0].memberData,null,2)+"";n=new kd({props:{labelText:"Member ID",buttonText:e[0].memberData.id,cypress:"member-id"}}),r=new kd({props:{labelText:"Email",buttonText:e[0].memberData.auth.email,cypress:"member-email"}}),i=new kd({props:{labelText:"Created Date",buttonText:yu(e[0].memberData.createdAt),cypress:"member-created-date"}}),l=new kd({props:{labelText:"Verified",buttonText:e[0].memberData.verified,cypress:"member-verified"}});let T=$&&uu(e),P=e[2].length>0&&hu(e),S=k&&gu(e),C=e[1]&&e[1].data&&vu(e);return f=new Id({props:{titleText:"Member Data (raw)"}}),{c(){t=qt("div"),An(n.$$.fragment),o=Ot(),An(r.$$.fragment),s=Ot(),An(i.$$.fragment),a=Ot(),An(l.$$.fragment),c=Ot(),T&&T.c(),d=Ot(),P&&P.c(),u=Ot(),S&&S.c(),m=Ot(),C&&C.c(),p=Ot(),h=qt("div"),An(f.$$.fragment),g=Ot(),b=qt("div"),v=qt("pre"),w=qt("code"),y=Rt(x),jt(t,"class","ms-member-tab__section svelte-15gyvir"),jt(t,"data-cy","member-section-required"),jt(w,"class","svelte-15gyvir"),jt(v,"class","ms-code-block svelte-15gyvir"),jt(b,"class","ms-app-tab__section__content"),jt(b,"data-cy","app-section-all-data-content"),jt(h,"class","ms-app-tab__section"),jt(h,"data-cy","app-section-all-data")},m(e,$){It(e,t,$),En(n,t,null),Pt(t,o),En(r,t,null),Pt(t,s),En(i,t,null),Pt(t,a),En(l,t,null),It(e,c,$),T&&T.m(e,$),It(e,d,$),P&&P.m(e,$),It(e,u,$),S&&S.m(e,$),It(e,m,$),C&&C.m(e,$),It(e,p,$),It(e,h,$),En(f,h,null),Pt(h,g),Pt(h,b),Pt(b,v),Pt(v,w),Pt(w,y),_=!0},p(e,t){const o={};1&t&&(o.buttonText=e[0].memberData.id),n.$set(o);const s={};1&t&&(s.buttonText=e[0].memberData.auth.email),r.$set(s);const a={};1&t&&(a.buttonText=yu(e[0].memberData.createdAt)),i.$set(a);const c={};1&t&&(c.buttonText=e[0].memberData.verified),l.$set(c),1&t&&($=e[0].memberData.customFields&&Object.keys(e[0].memberData.customFields).some(e[5])),$?T?(T.p(e,t),1&t&&$n(T,1)):(T=uu(e),T.c(),$n(T,1),T.m(d.parentNode,d)):T&&(yn(),kn(T,1,1,(()=>{T=null})),_n()),e[2].length>0?P?(P.p(e,t),4&t&&$n(P,1)):(P=hu(e),P.c(),$n(P,1),P.m(u.parentNode,u)):P&&(yn(),kn(P,1,1,(()=>{P=null})),_n()),1&t&&(k=e[0].memberData.metaData&&Object.keys(e[0].memberData.metaData).length>0),k?S?(S.p(e,t),1&t&&$n(S,1)):(S=gu(e),S.c(),$n(S,1),S.m(m.parentNode,m)):S&&(yn(),kn(S,1,1,(()=>{S=null})),_n()),e[1]&&e[1].data?C?(C.p(e,t),2&t&&$n(C,1)):(C=vu(e),C.c(),$n(C,1),C.m(p.parentNode,p)):C&&(yn(),kn(C,1,1,(()=>{C=null})),_n()),(!_||1&t)&&x!==(x=JSON.stringify(e[0].memberData,null,2)+"")&&Vt(y,x)},i(e){_||($n(n.$$.fragment,e),$n(r.$$.fragment,e),$n(i.$$.fragment,e),$n(l.$$.fragment,e),$n(T),$n(P),$n(S),$n(C),$n(f.$$.fragment,e),_=!0)},o(e){kn(n.$$.fragment,e),kn(r.$$.fragment,e),kn(i.$$.fragment,e),kn(l.$$.fragment,e),kn(T),kn(P),kn(S),kn(C),kn(f.$$.fragment,e),_=!1},d(e){e&&At(t),qn(n),qn(r),qn(i),qn(l),e&&At(c),T&&T.d(e),e&&At(d),P&&P.d(e),e&&At(u),S&&S.d(e),e&&At(m),C&&C.d(e),e&&At(p),e&&At(h),qn(f)}}}function uu(e){let t,n,o,r,s,i;n=new Id({props:{titleText:"Custom Fields",editURL:`https://app.memberstack.com/apps/${e[0].appData.id}/members/${e[0].memberData.id}/profile`}});let a=Object.keys(e[0].memberData.customFields),l=[];for(let t=0;tkn(l[e],1,1,(()=>{l[e]=null}));return s=new Nd({props:{link:"https://docs.memberstack.com/hc/en-us/articles/7389502579355",text:"Documentation"}}),{c(){t=qt("div"),An(n.$$.fragment),o=Ot();for(let e=0;e{o=null})),_n())},i(e){n||($n(o),n=!0)},o(e){kn(o),n=!1},d(e){o&&o.d(e),e&&At(t)}}}function hu(e){let t,n,o,r,s,i;n=new Id({props:{titleText:"Plans",editURL:`https://app.memberstack.com/apps/${e[0].appData.id}/members/${e[0].memberData.id}/profile`}}),r=new kd({props:{labelText:"Stripe ID",buttonText:e[0].memberData.stripeCustomerId}});let a=e[2],l=[];for(let t=0;tkn(l[e],1,1,(()=>{l[e]=null}));return{c(){t=qt("div"),An(n.$$.fragment),o=Ot(),An(r.$$.fragment),s=Ot();for(let e=0;ekn(l[e],1,1,(()=>{l[e]=null}));return s=new Nd({props:{link:"https://docs.memberstack.com/hc/en-us/articles/7389627062299-Custom-Fields-vs-Metadata-vs-JSON",text:"Documentation"}}),{c(){t=qt("div"),An(n.$$.fragment),o=Ot();for(let e=0;e{u=null})),_n())},i(e){a||($n(u),a=!0)},o(e){kn(u),a=!1},d(e){e&&At(t),d.d(),e&&At(s),u&&u.d(e),e&&At(i)}}}function yu(e){return new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}function _u(e,t,n){let o,r,s;gt(e,fl,(e=>n(0,s=e)));let i=null;tn((()=>rt(this,null,(function*(){if(s.memberData&&o)try{n(1,i=yield window.$memberstackDom.getMemberJSON())}catch(e){console.error("Failed to fetch member JSON:",e)}}))));function a(){window.$memberstackDom.openModal("LOGIN").then((e=>{console.log("User logged in!",e),window.$memberstackDom.hideModal(),_l()}))}return e.$$.update=()=>{1&e.$$.dirty&&n(3,o=s.memberData&&s.memberData.id),1&e.$$.dirty&&n(2,r=((e,t)=>{const n=[];return e&&e.planConnections&&t?(e.planConnections.forEach((e=>{const t=(o=e.planId,s.appData.plans.find((e=>e.id===o)));var o;if(t){const o={planId:t.id,planName:t.name,priority:t.priority||0,priceDetails:null};if(e.payment&&e.payment.priceId){const n=((e,t)=>e.prices.find((e=>e.id===t)))(t,e.payment.priceId);n&&(o.priceDetails={priceId:n.id,priceName:n.name,type:n.type,amount:n.amount,currency:n.currency,interval:n.interval})}n.push(o)}})),n):n})(s.memberData,s.appData))},[s,i,r,o,a,e=>""!==s.memberData.customFields[e]&&null!==s.memberData.customFields[e],()=>function(){return rt(this,null,(function*(){yield window.$memberstackDom.logout(),location.reload()}))}(),()=>a()]}var $u=class extends Rn{constructor(e){super(),Dn(this,e,_u,wu,pt,{},ru)}};function ku(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","M240-80q-33 0-56.5-23.5T160-160v-400q0-33 23.5-56.5T240-640h40v-80q0-83 58.5-141.5T480-920q83 0 141.5 58.5T680-720v80h40q33 0 56.5 23.5T800-560v400q0 33-23.5 56.5T720-80H240Zm240-200q33 0 56.5-23.5T560-360q0-33-23.5-56.5T480-440q-33 0-56.5 23.5T400-360q0 33 23.5 56.5T480-280ZM360-640h240v-80q0-50-35-85t-85-35q-50 0-85 35t-35 85v80Z"),jt(t,"xmlns","http://www.w3.org/2000/svg"),jt(t,"viewBox","160 -920 640 840")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var xu=class extends Rn{constructor(e){super(),Dn(this,e,null,ku,pt,{})}};function Tu(e){St(e,"svelte-rd0m2l",".ms-app-gated-content-item.svelte-rd0m2l{width:100%;background-color:#444;border:1px solid #5c5c5c;border-radius:4px;flex-wrap:wrap;margin-bottom:0.5em;display:flex;transition:height 0.2s ease-in-out;overflow:hidden}.ms-app-gated-content-item__tabs.svelte-rd0m2l{display:flex;align-items:stretch;justify-content:space-between;width:100%}.ms-app-gated-content-item__tab.svelte-rd0m2l{gap:6px;padding:4px;display:flex;align-items:center;background-color:transparent;transition:background-color 0.2s ease-in-out;width:100%;line-height:1}.ms-app-gated-content-item__icon.svelte-rd0m2l{width:22px;height:22px;display:flex;align-items:center;justify-content:center;background-color:#be822e;border-radius:3px;color:#fff;padding:2px}.ms-app-gated-content-item__icon svg{width:100%;height:100%}.ms-app-gated-content-item__arrow.svelte-rd0m2l{margin-left:auto;margin-right:8px;width:8px;transition:transform 0.2s ease-in-out}.ms-app-gated-content-item__content.svelte-rd0m2l{width:100%}.ms-app-gated-content-item__wrapper.svelte-rd0m2l{background-color:#292929;width:100%;padding:8px}.ms-app-gated-content-item__group.svelte-rd0m2l{background:#373737;padding:4px;margin-bottom:6px;border-radius:4px}.ms-app-gated-content-item__group-title.svelte-rd0m2l{font-size:9px;line-height:1;background:#444;padding:6px;margin-bottom:6px;border:1px solid #4b4b4b;border-radius:4px;display:inline-block}")}function Pu(e,t,n){const o=e.slice();return o[4]=t[n],o}function Su(e,t,n){const o=e.slice();return o[7]=t[n],o}function Cu(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h;n=new kd({props:{labelText:"Key",buttonText:e[0].key}});let f=e[0].urls,g=[];for(let t=0;tkn(g[e],1,1,(()=>{g[e]=null}));c=new kd({props:{labelText:"Access Denied",buttonText:"/"+e[0].redirect}});const v=[Iu,Lu],w=[];function y(e,t){return e[0].plans&&e[0].plans.length>0?0:1}return u=y(e),m=w[u]=v[u](e),{c(){t=qt("div"),An(n.$$.fragment),o=Ot(),r=qt("div"),s=qt("div"),s.textContent="Gated Pages & Folders",i=Ot(),a=qt("div");for(let e=0;e{w[i]=null})),_n(),m=w[u],m?m.p(e,o):(m=w[u]=v[u](e),m.c()),$n(m,1),m.m(t,null))},i(e){if(!h){$n(n.$$.fragment,e);for(let e=0;e{h&&(p||(p=Tn(t,Fs,{duration:300},!0)),p.run(1))})),h=!0}},o(e){kn(n.$$.fragment,e),g=g.filter(Boolean);for(let e=0;ekn(a[e],1,1,(()=>{a[e]=null}));return{c(){t=qt("div"),n=qt("div"),n.textContent="Grant Access to...",o=Ot(),r=qt("div");for(let e=0;e{v=null})),_n()),(!h||1&n&&p!==(p=e[0].key))&&jt(t,"id",p)},i(e){h||($n(s.$$.fragment,e),$n(d.$$.fragment,e),$n(v),h=!0)},o(e){kn(s.$$.fragment,e),kn(d.$$.fragment,e),kn(v),h=!1},d(e){e&&At(t),qn(s),qn(d),v&&v.d(),f=!1,g()}}}function qu(e,t,n){let{appGatedContentItem:o}=t,r=!1;function s(){n(1,r=!r)}return e.$$set=e=>{"appGatedContentItem"in e&&n(0,o=e.appGatedContentItem)},[o,r,s,()=>s()]}var Du=class extends Rn{constructor(e){super(),Dn(this,e,qu,Eu,pt,{appGatedContentItem:0},Tu)}};function Ru(e){let t,n;return{c(){t=Dt("svg"),n=Dt("path"),jt(n,"fill","currentColor"),jt(n,"d","M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z"),jt(t,"aria-hidden","true"),jt(t,"viewBox","3 7 18 10")},m(e,o){It(e,t,o),Pt(t,n)},p:st,i:st,o:st,d(e){e&&At(t)}}}var Ou=class extends Rn{constructor(e){super(),Dn(this,e,null,Ru,pt,{})}};function Fu(e){St(e,"svelte-1lhszkk",".ms-app-custom-fields-item.svelte-1lhszkk{width:100%;background-color:#444;border:1px solid #5c5c5c;color:#fff;border-radius:4px;flex-wrap:wrap;margin-bottom:0.5em;display:flex;transition:height 0.2s ease-in-out;overflow:hidden}.ms-app-custom-fields-item__tabs.svelte-1lhszkk{display:flex;align-items:stretch;justify-content:space-between;width:100%}.ms-app-custom-fields-item__tab.svelte-1lhszkk{gap:6px;padding:4px;display:flex;align-items:center;background-color:transparent;transition:background-color 0.2s ease-in-out;width:100%;line-height:1;color:#fff}.ms-app-custom-fields-item__icon.svelte-1lhszkk{width:22px;height:22px;display:flex;align-items:center;justify-content:center;background-color:#292929;border-radius:3px;color:#fff;padding:2px}.ms-app-custom-fields-item__icon svg{width:100%;height:100%}.ms-app-custom-fields-item__arrow.svelte-1lhszkk{margin-left:auto;margin-right:8px;width:8px;transition:transform 0.2s ease-in-out}.ms-app-custom-fields-item__content.svelte-1lhszkk{width:100%}.ms-app-custom-fields-item__wrapper.svelte-1lhszkk{background-color:#292929;width:100%;padding:8px}")}function Bu(e){let t,n,o,r,s,i,a=e[0].key&&zu(e),l=(e[0].order||0===e[0].order)&&Nu(e),c=e[0].hidden&&ju(e),d=e[0].visibility&&Vu(e);return{c(){t=qt("div"),a&&a.c(),n=Ot(),l&&l.c(),o=Ot(),c&&c.c(),r=Ot(),d&&d.c(),jt(t,"class","ms-app-custom-fields-item__wrapper svelte-1lhszkk"),jt(t,"data-cy","app-custom-fields-item-content-wrapper")},m(e,s){It(e,t,s),a&&a.m(t,null),Pt(t,n),l&&l.m(t,null),Pt(t,o),c&&c.m(t,null),Pt(t,r),d&&d.m(t,null),i=!0},p(e,s){e[0].key?a?(a.p(e,s),1&s&&$n(a,1)):(a=zu(e),a.c(),$n(a,1),a.m(t,n)):a&&(yn(),kn(a,1,1,(()=>{a=null})),_n()),e[0].order||0===e[0].order?l?(l.p(e,s),1&s&&$n(l,1)):(l=Nu(e),l.c(),$n(l,1),l.m(t,o)):l&&(yn(),kn(l,1,1,(()=>{l=null})),_n()),e[0].hidden?c?(c.p(e,s),1&s&&$n(c,1)):(c=ju(e),c.c(),$n(c,1),c.m(t,r)):c&&(yn(),kn(c,1,1,(()=>{c=null})),_n()),e[0].visibility?d?(d.p(e,s),1&s&&$n(d,1)):(d=Vu(e),d.c(),$n(d,1),d.m(t,null)):d&&(yn(),kn(d,1,1,(()=>{d=null})),_n())},i(e){i||($n(a),$n(l),$n(c),$n(d),e&&dn((()=>{i&&(s||(s=Tn(t,Fs,{duration:300},!0)),s.run(1))})),i=!0)},o(e){kn(a),kn(l),kn(c),kn(d),e&&(s||(s=Tn(t,Fs,{duration:300},!1)),s.run(0)),i=!1},d(e){e&&At(t),a&&a.d(),l&&l.d(),c&&c.d(),d&&d.d(),e&&s&&s.end()}}}function zu(e){let t,n;return t=new kd({props:{labelText:"Key",buttonText:e[0].key.toString()}}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},p(e,n){const o={};1&n&&(o.buttonText=e[0].key.toString()),t.$set(o)},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Nu(e){let t,n;return t=new kd({props:{labelText:"Order",buttonText:e[0].order.toString()}}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},p(e,n){const o={};1&n&&(o.buttonText=e[0].order.toString()),t.$set(o)},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function ju(e){let t,n;return t=new kd({props:{labelText:"Hidden",buttonText:e[0].hidden.toString()}}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},p(e,n){const o={};1&n&&(o.buttonText=e[0].hidden.toString()),t.$set(o)},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Vu(e){let t,n;return t=new kd({props:{labelText:"Visibility",buttonText:e[0].visibility.toString()}}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},p(e,n){const o={};1&n&&(o.buttonText=e[0].visibility.toString()),t.$set(o)},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Hu(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g=e[0].label+"";s=new Ou({}),d=new Ic({props:{style:"transform: rotate("+(e[1]?"180deg":"0deg")+")"}});let b=e[1]&&Bu(e);return{c(){t=qt("div"),n=qt("div"),o=qt("button"),r=qt("span"),An(s.$$.fragment),i=Ot(),a=Rt(g),l=Ot(),c=qt("span"),An(d.$$.fragment),u=Ot(),m=qt("div"),b&&b.c(),jt(r,"class","ms-app-custom-fields-item__icon svelte-1lhszkk"),jt(c,"class","ms-app-custom-fields-item__arrow svelte-1lhszkk"),jt(o,"class","ms-app-custom-fields-item__tab svelte-1lhszkk"),jt(o,"data-cy","app-custom-fields-item-button"),jt(n,"class","ms-app-custom-fields-item__tabs svelte-1lhszkk"),jt(m,"class","ms-app-custom-fields-item__content svelte-1lhszkk"),jt(m,"data-cy","app-custom-fields-item-content"),jt(t,"class","ms-app-custom-fields-item svelte-1lhszkk")},m(g,v){It(g,t,v),Pt(t,n),Pt(n,o),Pt(o,r),En(s,r,null),Pt(o,i),Pt(o,a),Pt(o,l),Pt(o,c),En(d,c,null),Pt(t,u),Pt(t,m),b&&b.m(m,null),p=!0,h||(f=Bt(o,"click",e[3]),h=!0)},p(e,[t]){(!p||1&t)&&g!==(g=e[0].label+"")&&Vt(a,g);const n={};2&t&&(n.style="transform: rotate("+(e[1]?"180deg":"0deg")+")"),d.$set(n),e[1]?b?(b.p(e,t),2&t&&$n(b,1)):(b=Bu(e),b.c(),$n(b,1),b.m(m,null)):b&&(yn(),kn(b,1,1,(()=>{b=null})),_n())},i(e){p||($n(s.$$.fragment,e),$n(d.$$.fragment,e),$n(b),p=!0)},o(e){kn(s.$$.fragment,e),kn(d.$$.fragment,e),kn(b),p=!1},d(e){e&&At(t),qn(s),qn(d),b&&b.d(),h=!1,f()}}}function Uu(e,t,n){let{appCustomFieldItem:o}=t,r=!1;function s(){n(1,r=!r)}return e.$$set=e=>{"appCustomFieldItem"in e&&n(0,o=e.appCustomFieldItem)},[o,r,s,()=>s()]}var Wu=class extends Rn{constructor(e){super(),Dn(this,e,Uu,Hu,pt,{appCustomFieldItem:0},Fu)}};function Gu(e){St(e,"svelte-18ya69t",".ms-app-tab__header.svelte-18ya69t.svelte-18ya69t{margin-bottom:12px;display:flex}.ms-app-tab_header_link.svelte-18ya69t.svelte-18ya69t{display:flex;align-items:center;color:#bebebe;text-decoration:none}.ms-app-tab_header_link.svelte-18ya69t.svelte-18ya69t:hover{color:#fff}.ms-app-tab__header__indicator.svelte-18ya69t.svelte-18ya69t{width:4px;height:100%;border-radius:2px;margin-right:10px;background-color:#efd350}.ms-app-tab__header__text.svelte-18ya69t.svelte-18ya69t{font-size:10px;line-height:14px}.ms-app-tab__header__text.svelte-18ya69t span.svelte-18ya69t{text-decoration:underline;color:#fff}.ms-app-tab__section.svelte-18ya69t.svelte-18ya69t{padding-bottom:6px;margin-bottom:12px;border-bottom:1px solid #535353}.ms-app-tab__section.svelte-18ya69t.svelte-18ya69t:last-child{border-bottom:none;margin-bottom:0}.ms-code-block.svelte-18ya69t.svelte-18ya69t{background-color:#000;color:#fff;padding:4px 8px;border-radius:4px;overflow:auto;border:1px solid #4b4b4b;font-size:10px;max-height:420px;font-family:monospace}.ms-code-block.svelte-18ya69t code.svelte-18ya69t{white-space:pre-wrap;word-break:break-word;font-family:monospace}.ms-code-block--short.svelte-18ya69t.svelte-18ya69t{max-height:175px}")}function Yu(e,t,n){const o=e.slice();return o[1]=t[n],o}function Zu(e,t,n){const o=e.slice();return o[4]=t[n],o}function Ju(e){let t,n,o,r,s,i;n=new Id({props:{titleText:"Custom Fields",editURL:`https://app.memberstack.com/apps/${e[0].appData.id}/members`}});let a=e[0].appData.customFields,l=[];for(let t=0;tkn(l[e],1,1,(()=>{l[e]=null}));return s=new Nd({props:{link:"https://docs.memberstack.com/hc/en-us/articles/7389502579355",text:"Documentation"}}),{c(){t=qt("div"),An(n.$$.fragment),o=Ot();for(let e=0;ekn(l[e],1,1,(()=>{l[e]=null}));return s=new Nd({props:{link:"https://docs.memberstack.com/hc/en-us/articles/7402927868443-Gated-Content",text:"Documentation"}}),{c(){t=qt("div"),An(n.$$.fragment),o=Ot();for(let e=0;e0&&Ju(e),z=e[0].appData.contentGroups&&e[0].appData.contentGroups.length>0&&Xu(e);u=new Id({props:{titleText:"Authentication",editURL:`https://app.memberstack.com/apps/${e[0].appData.id}/plans`}}),h=new Nd({props:{link:"https://docs.memberstack.com/hc/en-us/articles/14052704355483",text:"Passwordless Login",status:e[0].appData.additionalAuthMethods.passwordless.enabled}}),g=new Nd({props:{link:"https://docs.memberstack.com/hc/en-us/articles/8327236548379-Google-Authentication",text:"Google",status:e[0].appData.authProviders.some(om)}}),v=new Nd({props:{link:"https://docs.memberstack.com/hc/en-us/articles/9116286679195-Facebook-Authentication",text:"Facebook",status:e[0].appData.authProviders.some(rm)}}),y=new Nd({props:{link:"https://docs.memberstack.com/hc/en-us/articles/9128407335835-LinkedIn-Authentication",text:"LinkedIn",status:e[0].appData.authProviders.some(sm)}}),$=new Nd({props:{link:"https://docs.memberstack.com/hc/en-us/articles/9151726845339-Dribbble-Authentication",text:"Dribble",status:e[0].appData.authProviders.some(im)}}),x=new Nd({props:{link:"https://docs.memberstack.com/hc/en-us/articles/9151679451803-Spotify-Authentication",text:"Spotify",status:e[0].appData.authProviders.some(am)}}),P=new Nd({props:{link:"https://docs.memberstack.com/hc/en-us/articles/9151629563291-GitHub-Authentication",text:"Github",status:e[0].appData.authProviders.some(lm)}});let N=e[0].appData.branding&&em(e),j=e[0].appData.plans.length>0&&tm(e);return I=new Id({props:{titleText:"App Data (raw)"}}),{c(){t=qt("div"),t.innerHTML='
\n\n
This domain is in Test Mode.
\n Click here when you're ready to
\n Go Live and sign up real members.
',n=Ot(),o=qt("div"),An(r.$$.fragment),s=Ot(),An(i.$$.fragment),a=Ot(),B&&B.c(),l=Ot(),z&&z.c(),c=Ot(),d=qt("div"),An(u.$$.fragment),m=Ot(),p=qt("div"),An(h.$$.fragment),f=Ot(),An(g.$$.fragment),b=Ot(),An(v.$$.fragment),w=Ot(),An(y.$$.fragment),_=Ot(),An($.$$.fragment),k=Ot(),An(x.$$.fragment),T=Ot(),An(P.$$.fragment),S=Ot(),N&&N.c(),C=Ot(),j&&j.c(),M=Ot(),L=qt("div"),An(I.$$.fragment),A=Ot(),E=qt("div"),q=qt("pre"),D=qt("code"),R=Rt(F),jt(t,"class","ms-app-tab__header svelte-18ya69t"),jt(o,"class","ms-app-tab__section svelte-18ya69t"),jt(o,"data-cy","app-section-required"),jt(p,"class","ms-app-tab__section__content ms-app-tab__section__content--auth"),jt(p,"data-cy","app-section-authentication-content"),jt(d,"class","ms-app-tab__section svelte-18ya69t"),jt(d,"data-cy","app-section-authentication"),jt(D,"class","svelte-18ya69t"),jt(q,"class","ms-code-block svelte-18ya69t"),jt(E,"class","ms-app-tab__section__content"),jt(E,"data-cy","app-section-all-data-content"),jt(L,"class","ms-app-tab__section svelte-18ya69t"),jt(L,"data-cy","app-section-all-data")},m(e,F){It(e,t,F),It(e,n,F),It(e,o,F),En(r,o,null),Pt(o,s),En(i,o,null),It(e,a,F),B&&B.m(e,F),It(e,l,F),z&&z.m(e,F),It(e,c,F),It(e,d,F),En(u,d,null),Pt(d,m),Pt(d,p),En(h,p,null),Pt(p,f),En(g,p,null),Pt(p,b),En(v,p,null),Pt(p,w),En(y,p,null),Pt(p,_),En($,p,null),Pt(p,k),En(x,p,null),Pt(p,T),En(P,p,null),It(e,S,F),N&&N.m(e,F),It(e,C,F),j&&j.m(e,F),It(e,M,F),It(e,L,F),En(I,L,null),Pt(L,A),Pt(L,E),Pt(E,q),Pt(q,D),Pt(D,R),O=!0},p(e,[t]){const n={};1&t&&(n.buttonText=e[0].appData.name),r.$set(n);const o={};1&t&&(o.buttonText=e[0].appData.id),i.$set(o),e[0].appData.customFields.length>0?B?(B.p(e,t),1&t&&$n(B,1)):(B=Ju(e),B.c(),$n(B,1),B.m(l.parentNode,l)):B&&(yn(),kn(B,1,1,(()=>{B=null})),_n()),e[0].appData.contentGroups&&e[0].appData.contentGroups.length>0?z?(z.p(e,t),1&t&&$n(z,1)):(z=Xu(e),z.c(),$n(z,1),z.m(c.parentNode,c)):z&&(yn(),kn(z,1,1,(()=>{z=null})),_n());const s={};1&t&&(s.editURL=`https://app.memberstack.com/apps/${e[0].appData.id}/plans`),u.$set(s);const a={};1&t&&(a.status=e[0].appData.additionalAuthMethods.passwordless.enabled),h.$set(a);const d={};1&t&&(d.status=e[0].appData.authProviders.some(om)),g.$set(d);const m={};1&t&&(m.status=e[0].appData.authProviders.some(rm)),v.$set(m);const p={};1&t&&(p.status=e[0].appData.authProviders.some(sm)),y.$set(p);const f={};1&t&&(f.status=e[0].appData.authProviders.some(im)),$.$set(f);const b={};1&t&&(b.status=e[0].appData.authProviders.some(am)),x.$set(b);const w={};1&t&&(w.status=e[0].appData.authProviders.some(lm)),P.$set(w),e[0].appData.branding?N?(N.p(e,t),1&t&&$n(N,1)):(N=em(e),N.c(),$n(N,1),N.m(C.parentNode,C)):N&&(yn(),kn(N,1,1,(()=>{N=null})),_n()),e[0].appData.plans.length>0?j?(j.p(e,t),1&t&&$n(j,1)):(j=tm(e),j.c(),$n(j,1),j.m(M.parentNode,M)):j&&(yn(),kn(j,1,1,(()=>{j=null})),_n()),(!O||1&t)&&F!==(F=JSON.stringify(e[0].appData,null,2)+"")&&Vt(R,F)},i(e){O||($n(r.$$.fragment,e),$n(i.$$.fragment,e),$n(B),$n(z),$n(u.$$.fragment,e),$n(h.$$.fragment,e),$n(g.$$.fragment,e),$n(v.$$.fragment,e),$n(y.$$.fragment,e),$n($.$$.fragment,e),$n(x.$$.fragment,e),$n(P.$$.fragment,e),$n(N),$n(j),$n(I.$$.fragment,e),O=!0)},o(e){kn(r.$$.fragment,e),kn(i.$$.fragment,e),kn(B),kn(z),kn(u.$$.fragment,e),kn(h.$$.fragment,e),kn(g.$$.fragment,e),kn(v.$$.fragment,e),kn(y.$$.fragment,e),kn($.$$.fragment,e),kn(x.$$.fragment,e),kn(P.$$.fragment,e),kn(N),kn(j),kn(I.$$.fragment,e),O=!1},d(e){e&&At(t),e&&At(n),e&&At(o),qn(r),qn(i),e&&At(a),B&&B.d(e),e&&At(l),z&&z.d(e),e&&At(c),e&&At(d),qn(u),qn(h),qn(g),qn(v),qn(y),qn($),qn(x),qn(P),e&&At(S),N&&N.d(e),e&&At(C),j&&j.d(e),e&&At(M),e&&At(L),qn(I)}}}var om=e=>"google"===e.provider,rm=e=>"facebook"===e.provider,sm=e=>"linkedin"===e.provider,im=e=>"dribbble"===e.provider,am=e=>"spotify"===e.provider,lm=e=>"github"===e.provider;function cm(e,t,n){let o;return gt(e,fl,(e=>n(0,o=e))),o.appData.customFields.sort(((e,t)=>null===e.order?1:null===t.order?-1:e.order-t.order)),[o]}var dm=class extends Rn{constructor(e){super(),Dn(this,e,cm,nm,pt,{},Gu)}};function um(e){St(e,"svelte-1eeg798","#ms-inspector-sidebar.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{all:unset}.ms-inspector-sidebar.svelte-1eeg798 .svelte-1eeg798.svelte-1eeg798{box-sizing:border-box !important;font-family:Plus Jakarta Sans, sans-serif !important;line-height:1.5em !important;font-size:11px !important}.ms-inspector-sidebar.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{position:fixed !important;top:0 !important;right:0 !important;bottom:0 !important;width:242px !important;color:#fff !important;font-family:Plus Jakarta Sans, sans-serif !important;line-height:1.5em !important;font-size:11px !important;background:#292929 !important;border-left:1px solid #000 !important;box-shadow:0 0 10px rgba(0, 0, 0, 0.1) !important;z-index:2147483648 !important}.ms-inspector-sidebar--left.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{left:0 !important;right:auto !important;border-right:1px solid #000 !important}.ms-inspector-sidebar__container.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{position:relative !important;height:100% !important;display:flex !important;flex-direction:column !important}.ms-inspector-sidebar__container * button{cursor:pointer !important;border:none;font-size:11px;color:#fff}.ms-inspector-sidebar__tabs.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{display:flex !important;gap:7px !important;padding:0 7px !important;border-bottom:1px solid #4f4f4f !important}.ms-inspector-sidebar__tab.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{display:flex !important;align-items:center !important;padding:17px 2px !important;height:30px !important;background-color:#292929 !important;color:#fff !important;border:none !important;cursor:pointer !important;border-bottom:2px solid transparent !important}.ms-inspector-sidebar__tab--active.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{border-bottom:2px solid #c1c1c1;font-weight:700}.ms-inspector-sidebar__count.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{display:inline-block;border-radius:4px;background-color:#444;text-align:center;border:0.5px solid #535353;margin-right:0.5em;padding:0 3px}.ms-inspector-sidebar__member-status.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{display:inline-block;width:10px;height:10px;border-radius:50%;background-color:rgb(224, 102, 87);margin-right:5px}.ms-inspector-sidebar__member-status--active.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{background-color:#5c9d6f}.ms-inspector-sidebar__content.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{padding:7px;overflow-y:auto;flex-grow:1}.ms-inspector-footer.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{display:flex;align-items:stretch;justify-content:space-between;border-top:1px solid #4f4f4f;color:#919191}.ms-inspector-footer__link.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{text-decoration:none;border-right:1px solid #4f4f4f;position:relative;display:flex;align-items:center;justify-content:center;width:100%;padding:7px;transition:all 0.2s ease-in-out}.ms-inspector-footer__link.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798:last-child{border-right:none}.ms-inspector-footer__link.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798:hover{color:#fff;background-color:#444}.ms-inspector-footer__link.svelte-1eeg798:hover .ms-inspector-footer__label.svelte-1eeg798.svelte-1eeg798{display:block}.ms-inspector-footer__link.svelte-1eeg798:hover .ms-inspector-footer__icon.svelte-1eeg798.svelte-1eeg798{color:#fff}.ms-inspector-footer__icon.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{width:2em;height:2em;display:flex;align-items:center;justify-content:center;color:#919191;font-size:15px;font-weight:700}.ms-inspector-footer__label.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{font-size:11px;font-weight:700;width:90px;text-align:center;display:none;position:absolute;top:-25px;left:50%;transform:translateX(-50%);color:#fff}.ms-inspector-footer__text.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:3px;padding-left:0.8em;padding-right:0.8em;background-color:#292929}.ms-inspector-sidebar__side-switcher.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{position:absolute;top:0;bottom:0;left:-30px;display:none;align-items:center}.ms-inspector-sidebar.svelte-1eeg798:hover .ms-inspector-sidebar__side-switcher.svelte-1eeg798.svelte-1eeg798{display:flex}.ms-inspector-sidebar--left.svelte-1eeg798 .ms-inspector-sidebar__side-switcher.svelte-1eeg798.svelte-1eeg798{left:auto;right:-30px}.ms-inspector-sidebar__side-switcher-button.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{display:flex;align-items:center;justify-content:center;width:30px;height:30px;background-color:#292929;border:none;cursor:pointer;border-radius:4px 0px 0px 4px}.ms-inspector-sidebar--left.svelte-1eeg798 .ms-inspector-sidebar__side-switcher-button.svelte-1eeg798.svelte-1eeg798{border-radius:0px 4px 4px 0px}.ms-inspector-sidebar__side-switcher-button-icon.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{width:13px;height:13px;display:flex;align-items:center;justify-content:center;color:#fff}.ms-inspector-sidebar__side-switcher-button-icon.svelte-1eeg798 svg.svelte-1eeg798.svelte-1eeg798{transform:rotate(90deg)}.ms-inspector-sidebar__label.svelte-1eeg798.svelte-1eeg798.svelte-1eeg798{position:absolute;top:50%;transform:translateY(-50%);left:-90px;display:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:3px;padding-left:0.8em;padding-right:0.8em;background-color:#292929}.ms-inspector-sidebar--left.svelte-1eeg798 .ms-inspector-sidebar__label.svelte-1eeg798.svelte-1eeg798{left:auto;right:-90px}.ms-inspector-sidebar.svelte-1eeg798:hover .ms-inspector-sidebar__side-switcher-button.svelte-1eeg798:hover+.ms-inspector-sidebar__label.svelte-1eeg798{display:inline-block}")}function mm(e,t,n){const o=e.slice();return o[8]=t[n],o}function pm(e){let t,n;return t=new dm({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function hm(e){let t,n;return t=new $u({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function fm(e){let t,n;return t=new md({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function gm(e){let t,n,o,r,s,i,a,l,c,d=e[8].label+"";var u=e[8].icon;return u&&(o=Yt(u,{})),{c(){t=qt("a"),n=qt("div"),o&&An(o.$$.fragment),r=Ot(),s=qt("div"),i=qt("span"),a=Rt(d),l=Ot(),jt(n,"class","ms-inspector-footer__icon svelte-1eeg798"),jt(i,"class","ms-inspector-footer__text svelte-1eeg798"),jt(s,"class","ms-inspector-footer__label svelte-1eeg798"),jt(t,"href",e[8].link),jt(t,"target","_blank"),jt(t,"class","ms-inspector-footer__link svelte-1eeg798")},m(e,d){It(e,t,d),Pt(t,n),o&&En(o,n,null),Pt(t,r),Pt(t,s),Pt(s,i),Pt(i,a),Pt(t,l),c=!0},p(e,t){if(u!==(u=e[8].icon)){if(o){yn();const e=o;kn(e.$$.fragment,1,0,(()=>{qn(e,1)})),_n()}u?(o=Yt(u,{}),An(o.$$.fragment),$n(o.$$.fragment,1),En(o,n,null)):o=null}},i(e){c||(o&&$n(o.$$.fragment,e),c=!0)},o(e){o&&kn(o.$$.fragment,e),c=!1},d(e){e&&At(t),o&&qn(o)}}}function bm(e){let t,n,o,r,s,i,a,l,c,d,u,m,p,h,f,g,b,v,w,y,_,$,k,x,T,P,S,C,M,L,I,A=(e[0].inspectorData.length||0)+"";const E=[fm,hm,pm],q=[];function D(e,t){return"inspector"===e[0].showTab?0:"member"===e[0].showTab?1:"app"===e[0].showTab?2:-1}~(v=D(e))&&(w=q[v]=E[v](e));let R=e[1],O=[];for(let t=0;tkn(O[e],1,1,(()=>{O[e]=null}));return{c(){t=qt("aside"),n=qt("div"),o=qt("div"),r=qt("button"),s=qt("span"),i=Rt(A),a=Ot(),l=qt("span"),l.textContent="Inspector",c=Ot(),d=qt("button"),u=qt("span"),m=Ot(),p=qt("span"),p.textContent="Member",h=Ot(),f=qt("button"),f.innerHTML='App',g=Ot(),b=qt("div"),w&&w.c(),y=Ot(),_=qt("div");for(let e=0;e',P=Ot(),S=qt("div"),S.innerHTML='Switch Sides',jt(s,"class","ms-inspector-sidebar__count svelte-1eeg798"),jt(l,"class","svelte-1eeg798"),jt(r,"class","ms-inspector-sidebar__tab svelte-1eeg798"),jt(r,"data-cy","inspector-sidebar-inspector-tab"),Wt(r,"ms-inspector-sidebar__tab--active","inspector"===e[0].showTab),jt(u,"class","ms-inspector-sidebar__member-status svelte-1eeg798"),Wt(u,"ms-inspector-sidebar__member-status--active",e[0].memberData&&e[0].memberData.id),jt(p,"class","svelte-1eeg798"),jt(d,"class","ms-inspector-sidebar__tab svelte-1eeg798"),jt(d,"data-cy","inspector-sidebar-member-tab"),Wt(d,"ms-inspector-sidebar__tab--active","member"===e[0].showTab),jt(f,"class","ms-inspector-sidebar__tab svelte-1eeg798"),jt(f,"data-cy","inspector-sidebar-app-tab"),Wt(f,"ms-inspector-sidebar__tab--active","app"===e[0].showTab),jt(o,"class","ms-inspector-sidebar__tabs svelte-1eeg798"),jt(b,"class","ms-inspector-sidebar__content svelte-1eeg798"),jt(_,"class","ms-inspector-footer svelte-1eeg798"),jt(n,"class","ms-inspector-sidebar__container svelte-1eeg798"),jt(T,"class","ms-inspector-sidebar__side-switcher-button svelte-1eeg798"),jt(T,"data-cy","inspector-sidebar-switch-side-button"),jt(S,"class","ms-inspector-sidebar__label svelte-1eeg798"),jt(x,"class","ms-inspector-sidebar__side-switcher svelte-1eeg798"),jt(t,"id","ms-inspector-sidebar"),jt(t,"class","ms-inspector-sidebar svelte-1eeg798"),jt(t,"data-cy","inspector-sidebar"),Wt(t,"ms-inspector-sidebar--left","left"===e[0].showSide)},m(w,$){It(w,t,$),Pt(t,n),Pt(n,o),Pt(o,r),Pt(r,s),Pt(s,i),Pt(r,a),Pt(r,l),Pt(o,c),Pt(o,d),Pt(d,u),Pt(d,m),Pt(d,p),Pt(o,h),Pt(o,f),Pt(n,g),Pt(n,b),~v&&q[v].m(b,null),Pt(n,y),Pt(n,_);for(let e=0;e{q[o]=null})),_n()),~v?(w=q[v],w||(w=q[v]=E[v](e),w.c()),$n(w,1),w.m(b,null)):w=null),2&n){let t;for(R=e[1],t=0;t{M&&($||($=Tn(n,Os,{duration:400},!0)),$.run(1))})),e&&dn((()=>{M&&(C||(C=Tn(t,Fs,{duration:150,axis:"x"},!0)),C.run(1))})),M=!0}},o(e){kn(w),O=O.filter(Boolean);for(let e=0;e{fl.update((t=>(t.showTab=e,t)))})(e)}function s(){"right"===o.showSide?vl("left"):vl("right")}return gt(e,fl,(e=>n(0,o=e))),nn((()=>{Jl()})),[o,[{label:"Help Center",link:"https://docs.memberstack.com/hc/en-us",icon:sc},{label:"AI Bot",link:"https://rey.memberstack.com/",icon:Ql},{label:"Components",link:"https://www.memberstack.com/webflow-components",icon:tc},{label:"Forums",link:"https://docs.memberstack.com/hc/en-us/community/posts",icon:oc},{label:"Slack",link:"https://www.memberstack.com/slack",icon:ac}],r,s,()=>r("inspector"),()=>r("member"),()=>r("app"),()=>s()]}var wm=class extends Rn{constructor(e){super(),Dn(this,e,vm,bm,pt,{},um)}};function ym(e){let t,n;return t=new wm({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function _m(e){let t,n,o,r;t=new Wl({});let s=e[0].showSidebar&&ym();return{c(){An(t.$$.fragment),n=Ot(),s&&s.c(),o=Ft()},m(e,i){En(t,e,i),It(e,n,i),s&&s.m(e,i),It(e,o,i),r=!0},p(e,[t]){e[0].showSidebar?s?1&t&&$n(s,1):(s=ym(),s.c(),$n(s,1),s.m(o.parentNode,o)):s&&(yn(),kn(s,1,1,(()=>{s=null})),_n())},i(e){r||($n(t.$$.fragment,e),$n(s),r=!0)},o(e){kn(t.$$.fragment,e),kn(s),r=!1},d(e){qn(t,e),e&&At(n),s&&s.d(e),e&&At(o)}}}function $m(e,t,n){let o;return gt(e,fl,(e=>n(0,o=e))),tn((()=>{kl("ms_plan","ready-for-signup"),kl("ms_price","ready-for-checkout"),function(){const e=$l.filter((e=>"found"===e.type)),t=new Set;for(const n of e){const e=n.dataAttribute.includes(":")?n.dataAttribute.replace(/:/g,"\\:"):n.dataAttribute;t.has(e)||(t.add(e),document.querySelector(`[${e}]`)&&(console.log(`%c${n.id} found`,"color: green"),bl(n.id)))}}(),Il(),function(){const e=document.querySelector("[data-ms-form='forgot-password']");e&&!e.getAttribute("redirect")&&(Tl("Forgot Password Form Missing Redirect","missing-redirect"),Al(e,"Forgot Password Form Missing Redirect"));const t=document.querySelector("script[src='https://api.memberstack.com/static/memberstack.js']");t&&"HEAD"!==t.parentElement.tagName&&Tl("Misplaced Install Code","misplaced-install-code");const n=document.querySelectorAll("[data-ms-plan\\:update], [data-ms-plan\\:add]");Array.from(n).filter((e=>"BUTTON"===e.tagName||"A"===e.tagName)).forEach((e=>{"#"!==e.getAttribute("href")&&e.getAttribute("href")&&(e.getAttribute("href")||e.getAttribute("data-ms-modal"))||(Tl("Plan Without Action","plan-without-action"),Al(e,"Plan Button Without Action"))})),document.querySelectorAll("[data-ms-price\\:add], [data-ms-price\\:update]").forEach((e=>{"#"!==e.getAttribute("href")&&e.getAttribute("href")&&(e.getAttribute("href")||e.getAttribute("data-ms-modal"))||(Tl("Price Without Action","price-without-action"),Al(e,"Price Button Without Action"))}))}()})),[o]}var km=class extends Rn{constructor(e){super(),Dn(this,e,$m,_m,pt,{})}};function xm(e){St(e,"svelte-ymr9ij",'@import url("https://fonts.bunny.net/css2?family=Plus+Jakarta+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap");.svelte-ymr9ij{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#msOverlay.svelte-ymr9ij{position:fixed;display:flex;justify-content:center;align-items:center;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.5);z-index:99999;overflow-y:auto;overflow-x:hidden;font-family:"Plus Jakarta Sans", sans-serif;padding:5vh 5vw}.--hide{display:none}.--flex-h-center{display:flex;align-items:center}.ms__loader{position:relative;z-index:10000000}#msLoader path{fill:#007ace}.ms__profile__loader{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background:rgb(255 255 255 / 75%)}.ms-modal{box-sizing:border-box;margin:auto;min-width:0;position:relative;outline:none;background:white;border-radius:16px;box-shadow:2px 2px 12px rgb(0 0 0 / 10%);width:360px;color:rgb(10, 10, 10)}.ms-modal--profile{width:700px}.ms-modal__close{box-sizing:border-box;margin:0;min-width:0;position:absolute;top:6px;right:6px;z-index:10;line-height:0}.ms-modal__close button{appearance:none;padding:0;outline:none;width:42px;padding:15px;border:0;background:transparent;cursor:pointer;color:#5c5c5c}.ms-modal__close button:hover{color:#0a0a0a}.ms-modal__back{box-sizing:border-box;margin:0;min-width:0;position:absolute;top:16px;left:16px;z-index:10;line-height:0}.ms-modal__back button{appearance:none;padding:0;outline:none;width:12px;border:0;background:transparent;cursor:pointer;color:#5c5c5c}\n .ms-modal__back button:hover,\n .ms-modal__profile-back button:hover\n {color:#0a0a0a}.ms-modal__back svg{height:12px}.ms-modal__profile-back button{appearance:none;padding:5px;margin-right:6px;outline:none;width:25px;height:25px;border:0;background:transparent;cursor:pointer;color:#5c5c5c;display:flex;align-items:stretch;justify-content:center}.ms-modal__profile-back--mobile{box-sizing:border-box;margin:0;min-width:0;position:absolute;top:16px;left:16px;z-index:10;line-height:0}.ms-modal__profile-back--mobile button{appearance:none;padding:0;outline:none;height:11px;width:7px;border:0;background:transparent;cursor:pointer;color:#5c5c5c}.ms-modal__profile-back--mobile button:hover{color:#0a0a0a}.ms-modal__header{display:flex;align-items:center;padding:12px}.ms-modal__header--mobile{display:flex;padding:42px 42px 16px 42px;flex-direction:column;flex-wrap:wrap;justify-content:center;align-items:center}.ms-modal__header--center{display:flex;flex-direction:column;flex-wrap:wrap;justify-content:center;align-items:center}.ms-modal__content{padding:28px 28px 20px;width:100%;box-sizing:border-box;margin:0 auto}.ms-modal__content--profile{padding:0;display:flex;flex-wrap:wrap;align-content:stretch;align-items:stretch;border-top:1px solid #dddddd}.ms-modal__content-left{display:flex;flex-direction:column;align-items:flex-start;padding:20px;border-right:1px solid #dddddd;min-width:160px}.ms-modal__content-right{padding:20px;flex-grow:1;height:55vh;min-height:300px;overflow-y:auto;position:relative;transition:height 0.3s ease-in-out}.ms-modal__content-right h3{margin-top:40px !important;margin-bottom:10px !important;font-size:18px !important;line-height:1em !important;font-weight:700 !important}.ms-modal__content--mobile h3{margin-top:12px !important;margin-bottom:10px !important;font-size:18px !important;line-height:1em !important;font-weight:700 !important}.ms-modal__content--mobile{padding:12px;flex-grow:1;height:42vh;min-height:300px;overflow-y:auto;position:relative;transition:height 0.3s ease-in-out}.ms-modal__mobile-profile-nav{display:flex;flex-direction:column;align-content:center;align-items:stretch;flex-wrap:nowrap;height:100%}.ms-modal__mobile-profile-nav button{display:flex;flex-direction:row;align-content:center;align-items:center;flex-wrap:nowrap;justify-content:space-between;padding:12px;width:100%;margin-bottom:10px}.ms-modal__figure{margin:8px auto;display:flex;position:relative;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;flex-shrink:0;line-height:1}.ms-modal__figure--profile{width:24px;height:24px;padding:0px;margin:0px 8px 0px 0px}.ms-modal__figure--mobile{margin:0px 0px 8px 0px}.ms-modal__figure img, .ms-modal__figure svg{width:auto;height:100%;max-height:42px;text-align:center;object-fit:cover;color:transparent}.ms-modal__title-container{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.ms-modal__title{margin-bottom:36px;margin-top:0;text-align:center;font-size:24px;line-height:32px;font-weight:700}.ms-modal__title--profile{margin-bottom:0px}.ms-modal__title-group{display:flex;align-items:center}.ms-modal__title--sub-text{margin-bottom:8px}.ms-modal__text{font-weight:500;font-size:16px;line-height:28px;text-align:center;margin:0 0 20px 0}.ms-modal__regular-button{color:#fff;padding:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer;display:flex;align-items:center}.ms-modal__regular-button svg{height:16px;margin-left:6px}.ms-modal__regular-button--left-icon svg{margin-right:6px;margin-left:0px}.ms-modal__regular-button--right-icon svg{margin-left:6px;margin-right:0px}.ms-modal__regular-button--margin-right{margin-right:12px}.ms-modal__text-button{color:#fff;background-color:transparent;padding:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer;display:flex;align-items:center}.ms-modal__card{box-shadow:0 0 #0000, 0 0 #0000, 0 0 #0000, 0 0 #0000,\n 0px 2px 2px rgba(0, 0, 0, 0.04);padding:12px;display:flex;flex-direction:row;margin-bottom:12px;border:1px solid rgb(221, 221, 221);border-radius:10px;box-sizing:border-box;width:100%;cursor:default;background:rgb(255, 255, 255);align-items:center;justify-content:space-between}.ms-form{width:100% !important;min-width:0 !important;padding:0 !important;display:block !important}.ms-form__group{margin-bottom:20px}.ms-form__flex{display:flex;justify-content:space-between;align-content:center}.ms-form__flex--centered{justify-content:center}.ms-form__label{margin-bottom:4px;margin-top:0px;font-size:14px;line-height:24px;font-weight:700;text-align:left}.ms-form__fieldset{display:flex;justify-content:space-between;padding:0;border:none}.ms-form__input{box-sizing:border-box !important;margin:0px !important;border:1px solid rgb(201, 201, 201) !important;border-radius:6px !important;font-size:16px !important;font-weight:400 !important;padding:15px !important;width:100% !important}.ms-form__password-container{display:flex;justify-content:space-between;align-content:center;box-sizing:border-box;margin:0px;border:1px solid rgb(201, 201, 201);border-radius:6px;width:100%}.ms-form__password-container:focus-within{border:1px solid rgb(0, 68, 252);outline:rgb(0, 68, 252) solid 1px}.ms-form__password-container:focus-within input{outline:none;border-color:rgb(201, 201, 201);box-shadow:none}.ms-form__input--password{border:none !important}.ms-form__input--token{font-weight:500;font-size:24.19px;line-height:32px;text-align:center;color:#000000;padding:9px;max-width:42px}.ms-form__show-toggle{cursor:pointer;background:transparent;border-radius:0px 6px 6px 0px;padding:0px 8px;display:flex;align-items:center}.ms-form__eye{display:block;width:22px}.ms-form__eye-slash{display:block;width:22px}.ms-form__error{font-weight:500;font-size:12px;line-height:16px;color:#e40023;margin-top:4px;display:flex;align-items:baseline}.ms-form__error svg{width:10px;height:10px;margin-right:5px}.ms-form__label--right a{color:rgb(10, 10, 10) !important;text-decoration:none;font-weight:400}.ms-form__button{border-radius:6px;font-weight:700;font-size:16px;padding-left:22px;padding-right:22px;height:52px;border:none;display:block;width:100%;background-color:rgb(41, 98, 255);color:#fff;transition:background-color 0.5s ease;cursor:pointer}.ms-form__button:hover{background-color:#0745ff}.ms-form__button:disabled{background-color:#96c0fe;color:#fff;pointer-events:none;display:flex;justify-content:center;align-items:center}.ms-form__button--text{background-color:transparent;padding:0px;height:auto;margin-bottom:0px;margin-top:0px;font-size:14px;line-height:28px;font-weight:500;color:#0a0a0a;opacity:0.8}.ms-form__button--text:hover{background-color:transparent}.ms-form__button--top-spacing{margin-top:10px}#msFormLoader path{fill:#fff}a.ms-form__link, div.ms-form__link{margin-top:8px;font-weight:500;font-size:14px;line-height:24px;color:rgb(10, 10, 10);text-decoration:none;opacity:0.8;cursor:pointer}.ms-modal__cancel-button{background:#f6f6f6;color:#828282;padding:8px;margin-right:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer}.ms-modal__save-button{background:#2962ff;color:#fff;padding:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer}.ms-modal__save-button:disabled{background:#80a1fc;color:#fff;cursor:default;opacity:0.4}.ms-modal__save-button--large{padding:12px;font-weight:700;font-size:14px;line-height:16px;width:100%}.ms-modal__outline-button{display:block !important;background:#fff;color:#0a0a0a;font-weight:700;font-size:14px;line-height:16px;padding:8px;margin-right:8px;border-radius:4px;border:1px solid #dddddd;cursor:pointer}.ms-modal__outline-button.delete-account{background:#e40023;color:#fff}.ms-modal__outline-button.delete-account--confirm{background:#e40023;color:#fff}.ms-modal__confirm-delete{background:#f6f6f6;padding:12px;border-radius:6px}.ms-modal__confirm-text{display:block;font-size:16px;line-height:28px;font-weight:700;color:#0a0a0a}.ms-modal__confirm-text span{display:block;font-size:16px;line-height:28px;font-weight:500;color:#0a0a0a}.ms-modal__confirm-buttons{display:flex;gap:8px;justify-content:flex-end}.ms-modal__outline-button svg{display:inline !important;height:15px;margin-right:6px}.ms-modal__outline-button--mobile{width:100%}.ms-modal__button-label{margin-bottom:4px;margin-top:0px;font-size:14px;line-height:28px;font-weight:500}.ms-modal__profile-option{cursor:pointer;margin-bottom:20px;font-weight:500;font-size:16px;line-height:28px;background:transparent;border:none;padding:0px}.ms-modal__profile-option svg{display:inline !important;height:14px;margin-right:8px}.ms-modal__profile-option:hover{color:#2962ff}.ms-modal__profile-option--active{color:#2962ff}.ms-modal__profile-option:last-child{margin-top:auto;margin-bottom:0px}.ms-modal__profile-image-container{display:flex;justify-content:flex-start;width:100%;margin-bottom:21px;align-items:center;flex-direction:row;gap:12px}.ms-modal__profile-image{width:42px;height:42px;border-radius:50%;object-fit:cover;overflow:hidden;background:#ddd;border:1px solid #c9c9c9;display:flex;justify-content:center;align-items:center}.ms-modal__profile-image img{width:100%;height:100%;object-fit:cover}.ms-modal__social-button{display:flex;align-items:center;justify-content:center;width:100%;height:52px;border-radius:6px;font-weight:700;font-size:16px;line-height:28px;color:#0a0a0a;background:none;border:1px solid #c9c9c9;cursor:pointer;margin-bottom:8px}\n .ms-modal__social-button img,\n .ms-modal__social-button svg\n {height:16px;margin-right:8px;width:auto}.ms-modal__social-button[disabled]{background:#f6f6f6}.ms-modal__social-divider{display:flex;align-items:center;margin:20px 0px}.ms-modal__divider-line{text-align:center;background:#dddddd;height:1px;width:100%}.ms-modal__divider-text{padding:0px 4px}.ms-modal__footer{text-align:center;width:100%;box-sizing:border-box;margin:0;min-width:0;background:#f6f6f6;padding-top:10px;padding-bottom:10px;border-bottom-left-radius:16px;border-bottom-right-radius:16px;border-top:1px solid;border-top-color:#dddddd;font-size:12px;line-height:16px;font-weight:500}.ms-modal__footer a{color:rgb(10, 10, 10);text-decoration:none;display:flex;justify-content:center;align-items:center}.ms-modal__footer svg{height:12px;width:12px;margin-right:5.5px}')}function Tm(e){let t,n;return t=new km({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},p:st,i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Pm(e){let t,n,o,r,s,i;const a=[Dm,qm,Em,Am,Im,Lm,Mm,Cm,Sm],l=[];function c(e,t){return e[4]?0:"login"===e[0]?1:"signup"===e[0]?2:"forgot_password"===e[0]?3:"reset_password"===e[0]?4:"reset_password_success"===e[0]?5:"passwordless_token"===e[0]?6:"profile"===e[0]?7:"test_card"===e[0]?8:-1}return~(n=c(e))&&(o=l[n]=a[n](e)),{c(){t=qt("main"),o&&o.c(),jt(t,"id","msOverlay"),jt(t,"class","svelte-ymr9ij")},m(o,a){It(o,t,a),~n&&l[n].m(t,null),r=!0,s||(i=Bt(t,"mousedown",e[6]),s=!0)},p(e,r){let s=n;n=c(e),n===s?~n&&l[n].p(e,r):(o&&(yn(),kn(l[s],1,1,(()=>{l[s]=null})),_n()),~n?(o=l[n],o?o.p(e,r):(o=l[n]=a[n](e),o.c()),$n(o,1),o.m(t,null)):o=null)},i(e){r||($n(o),r=!0)},o(e){kn(o),r=!1},d(e){e&&At(t),~n&&l[n].d(),s=!1,i()}}}function Sm(e){let t,n,o,r;function s(t){e[22](t)}function i(t){e[23](t)}let a={closeModal:e[5],onSuccessSubmit:e[2]};return void 0!==e[0]&&(a.display=e[0]),void 0!==e[1]&&(a.params=e[1]),t=new hl({props:a}),rn.push((()=>In(t,"display",s))),rn.push((()=>In(t,"params",i))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),r=!0},p(e,r){const s={};4&r&&(s.onSuccessSubmit=e[2]),!n&&1&r&&(n=!0,s.display=e[0],un((()=>n=!1))),!o&&2&r&&(o=!0,s.params=e[1],un((()=>o=!1))),t.$set(s)},i(e){r||($n(t.$$.fragment,e),r=!0)},o(e){kn(t.$$.fragment,e),r=!1},d(e){qn(t,e)}}}function Cm(e){let t,n;return t=new Un({props:{query:"(max-width: 520px)",$$slots:{default:[Fm,({matches:e})=>({28:e}),({matches:e})=>e?268435456:0]},$$scope:{ctx:e}}}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},p(e,n){const o={};805306383&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Mm(e){let t,n,o,r;function s(t){e[16](t)}function i(t){e[17](t)}let a={closeModal:e[5],onSuccess:e[2]};return void 0!==e[0]&&(a.display=e[0]),void 0!==e[1]&&(a.params=e[1]),t=new Br({props:a}),rn.push((()=>In(t,"display",s))),rn.push((()=>In(t,"params",i))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),r=!0},p(e,r){const s={};4&r&&(s.onSuccess=e[2]),!n&&1&r&&(n=!0,s.display=e[0],un((()=>n=!1))),!o&&2&r&&(o=!0,s.params=e[1],un((()=>o=!1))),t.$set(s)},i(e){r||($n(t.$$.fragment,e),r=!0)},o(e){kn(t.$$.fragment,e),r=!1},d(e){qn(t,e)}}}function Lm(e){let t,n,o;function r(t){e[15](t)}let s={closeModal:e[5]};return void 0!==e[0]&&(s.display=e[0]),t=new Ir({props:s}),rn.push((()=>In(t,"display",r))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),o=!0},p(e,o){const r={};!n&&1&o&&(n=!0,r.display=e[0],un((()=>n=!1))),t.$set(r)},i(e){o||($n(t.$$.fragment,e),o=!0)},o(e){kn(t.$$.fragment,e),o=!1},d(e){qn(t,e)}}}function Im(e){let t,n,o;function r(t){e[14](t)}let s={closeModal:e[5],onSuccessPasswordReset:e[2]};return void 0!==e[0]&&(s.display=e[0]),t=new Cr({props:s}),rn.push((()=>In(t,"display",r))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),o=!0},p(e,o){const r={};4&o&&(r.onSuccessPasswordReset=e[2]),!n&&1&o&&(n=!0,r.display=e[0],un((()=>n=!1))),t.$set(r)},i(e){o||($n(t.$$.fragment,e),o=!0)},o(e){kn(t.$$.fragment,e),o=!1},d(e){qn(t,e)}}}function Am(e){let t,n,o;function r(t){e[13](t)}let s={closeModal:e[5]};return void 0!==e[0]&&(s.display=e[0]),t=new xr({props:s}),rn.push((()=>In(t,"display",r))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),o=!0},p(e,o){const r={};!n&&1&o&&(n=!0,r.display=e[0],un((()=>n=!1))),t.$set(r)},i(e){o||($n(t.$$.fragment,e),o=!0)},o(e){kn(t.$$.fragment,e),o=!1},d(e){qn(t,e)}}}function Em(e){let t,n,o,r;function s(t){e[11](t)}function i(t){e[12](t)}let a={closeModal:e[5],onSuccessSignup:e[2]};return void 0!==e[0]&&(a.display=e[0]),void 0!==e[1]&&(a.params=e[1]),t=new wr({props:a}),rn.push((()=>In(t,"display",s))),rn.push((()=>In(t,"params",i))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),r=!0},p(e,r){const s={};4&r&&(s.onSuccessSignup=e[2]),!n&&1&r&&(n=!0,s.display=e[0],un((()=>n=!1))),!o&&2&r&&(o=!0,s.params=e[1],un((()=>o=!1))),t.$set(s)},i(e){r||($n(t.$$.fragment,e),r=!0)},o(e){kn(t.$$.fragment,e),r=!1},d(e){qn(t,e)}}}function qm(e){let t,n,o,r;function s(t){e[9](t)}function i(t){e[10](t)}let a={closeModal:e[5],onSuccessLogin:e[2]};return void 0!==e[0]&&(a.display=e[0]),void 0!==e[1]&&(a.params=e[1]),t=new nr({props:a}),rn.push((()=>In(t,"display",s))),rn.push((()=>In(t,"params",i))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),r=!0},p(e,r){const s={};4&r&&(s.onSuccessLogin=e[2]),!n&&1&r&&(n=!0,s.display=e[0],un((()=>n=!1))),!o&&2&r&&(o=!0,s.params=e[1],un((()=>o=!1))),t.$set(s)},i(e){r||($n(t.$$.fragment,e),r=!0)},o(e){kn(t.$$.fragment,e),r=!1},d(e){qn(t,e)}}}function Dm(e){let t,n;return t=new Zn({}),{c(){An(t.$$.fragment)},m(e,o){En(t,e,o),n=!0},p:st,i(e){n||($n(t.$$.fragment,e),n=!0)},o(e){kn(t.$$.fragment,e),n=!1},d(e){qn(t,e)}}}function Rm(e){let t,n,o,r;function s(t){e[20](t)}function i(t){e[21](t)}let a={closeModal:e[5],onSuccessLogout:e[2],member:e[3]};return void 0!==e[0]&&(a.display=e[0]),void 0!==e[1]&&(a.params=e[1]),t=new Fi({props:a}),rn.push((()=>In(t,"display",s))),rn.push((()=>In(t,"params",i))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),r=!0},p(e,r){const s={};4&r&&(s.onSuccessLogout=e[2]),8&r&&(s.member=e[3]),!n&&1&r&&(n=!0,s.display=e[0],un((()=>n=!1))),!o&&2&r&&(o=!0,s.params=e[1],un((()=>o=!1))),t.$set(s)},i(e){r||($n(t.$$.fragment,e),r=!0)},o(e){kn(t.$$.fragment,e),r=!1},d(e){qn(t,e)}}}function Om(e){let t,n,o,r;function s(t){e[18](t)}function i(t){e[19](t)}let a={closeModal:e[5],onSuccessLogout:e[2],member:e[3]};return void 0!==e[0]&&(a.display=e[0]),void 0!==e[1]&&(a.params=e[1]),t=new ol({props:a}),rn.push((()=>In(t,"display",s))),rn.push((()=>In(t,"params",i))),{c(){An(t.$$.fragment)},m(e,n){En(t,e,n),r=!0},p(e,r){const s={};4&r&&(s.onSuccessLogout=e[2]),8&r&&(s.member=e[3]),!n&&1&r&&(n=!0,s.display=e[0],un((()=>n=!1))),!o&&2&r&&(o=!0,s.params=e[1],un((()=>o=!1))),t.$set(s)},i(e){r||($n(t.$$.fragment,e),r=!0)},o(e){kn(t.$$.fragment,e),r=!1},d(e){qn(t,e)}}}function Fm(e){let t,n,o,r;const s=[Om,Rm],i=[];function a(e,t){return e[28]?0:1}return t=a(e),n=i[t]=s[t](e),{c(){n.c(),o=Ft()},m(e,n){i[t].m(e,n),It(e,o,n),r=!0},p(e,r){let l=t;t=a(e),t===l?i[t].p(e,r):(yn(),kn(i[l],1,1,(()=>{i[l]=null})),_n(),n=i[t],n?n.p(e,r):(n=i[t]=s[t](e),n.c()),$n(n,1),n.m(o.parentNode,o))},i(e){r||($n(n),r=!0)},o(e){kn(n),r=!1},d(e){i[t].d(e),e&&At(o)}}}function Bm(e){let t,n,o,r;const s=[Pm,Tm],i=[];function a(e,t){return"inspector"!==e[0]?0:"inspector"===e[0]?1:-1}return~(t=a(e))&&(n=i[t]=s[t](e)),{c(){n&&n.c(),o=Ft()},m(e,n){~t&&i[t].m(e,n),It(e,o,n),r=!0},p(e,[r]){let l=t;t=a(e),t===l?~t&&i[t].p(e,r):(n&&(yn(),kn(i[l],1,1,(()=>{i[l]=null})),_n()),~t?(n=i[t],n?n.p(e,r):(n=i[t]=s[t](e),n.c()),$n(n,1),n.m(o.parentNode,o)):n=null)},i(e){r||($n(n),r=!0)},o(e){kn(n),r=!1},d(e){~t&&i[t].d(e),e&&At(o)}}}function zm(e,t,n){let o,r,{display:s="login"}=t,{onSuccess:i}=t,{params:a}=t,l=!0,c="profile"===s;function d(e){Bn.update((()=>e)),zn.set({text:e.ssoText||{}})}function u(){n(7,l=!0),i({type:"CLOSED"});const e=document.querySelector("#msOverlay");e&&e.remove()}const m=()=>rt(this,null,(function*(){const{data:e}=yield window.$memberstackDom.getApp();d(e)})),p=()=>rt(this,null,(function*(){const{data:e}=yield window.$memberstackDom.getCurrentMember();if(n(8,c=!1),n(3,r=e),"profile"===s&&!e)throw u(),new Error("Member not logged in")}));return tn((()=>{!function(){rt(this,null,(function*(){a&&a.app?d(a.app):yield m(),n(7,l=!1),n(4,o=!1)}))}(),"profile"===s&&p()})),e.$$set=e=>{"display"in e&&n(0,s=e.display),"onSuccess"in e&&n(2,i=e.onSuccess),"params"in e&&n(1,a=e.params)},e.$$.update=()=>{384&e.$$.dirty&&n(4,o=l||c)},[s,a,i,r,o,u,function(e){"msOverlay"===e.target.id&&u()},l,c,function(e){s=e,n(0,s)},function(e){a=e,n(1,a)},function(e){s=e,n(0,s)},function(e){a=e,n(1,a)},function(e){s=e,n(0,s)},function(e){s=e,n(0,s)},function(e){s=e,n(0,s)},function(e){s=e,n(0,s)},function(e){a=e,n(1,a)},function(e){s=e,n(0,s)},function(e){a=e,n(1,a)},function(e){s=e,n(0,s)},function(e){a=e,n(1,a)},function(e){s=e,n(0,s)},function(e){a=e,n(1,a)}]}var Nm,jm,Vm=class extends Rn{constructor(e){super(),Dn(this,e,zm,Bm,pt,{display:0,onSuccess:2,params:1},xm)}},Hm="_ms-mid",Um=function(){try{return localStorage.setItem("test","test"),localStorage.removeItem("test"),!0}catch(e){return!1}}(),Wm=!1,Gm=!1,Ym=e=>{const t=e.split(".");return t.length>=3&&t[t.length-2].length<=3?t.slice(-3).join("."):t.slice(-2).join(".")},Zm=(e,t)=>{if(Um&&!1==(!!Wm&&(!Gm||Ym(jm)===Ym(window.location.hostname))))localStorage.setItem(Hm,e);else{const n=Ym(window.location.hostname);s.set(Hm,e,nt({expires:t&&Number(t)||14,sameSite:"strict"},Gm&&{domain:n}))}},Jm=()=>{Um&&localStorage.removeItem(Hm);const e=Ym(window.location.hostname);s.set(Hm,"",nt({expires:-1,sameSite:"strict"},Gm&&{domain:e})),s.set(Hm,"",{expires:-1,sameSite:"strict"})},Km=()=>{if(Um){const e=localStorage.getItem(Hm);if(e)return e}return s.get(Hm)},Xm=()=>{if("undefined"==typeof window)return null;const e=window.localStorage.getItem("ms_session_id");return!e||e.length>26?(window.localStorage.removeItem("ms_session_id"),null):e},Qm="https://client.memberstack.com",ep=(()=>{const e=new Map;return{subscribe:(t,n)=>{if("function"==typeof n)return e.set(t,n)},unsubscribe:t=>e.delete(t),notify:t=>[...e.values()].forEach((e=>e(t)))}})(),tp=e=>{if(e){const t=JSON.stringify(e);t&&(null==localStorage||localStorage.setItem("_ms-mem",t)),ep.notify(e)}},np=()=>{null==localStorage||localStorage.removeItem("_ms-mem"),Jm(),"undefined"!=typeof window?window.localStorage.removeItem("ms_session_id"):console.warn("removeSessionId: window is not defined"),ep.notify(null)};function op(e){const t=e-Date.now();return Math.ceil(t/864e5)}var rp,sp,ip,ap=e=>nt({},(null==e?void 0:e.token)&&{Authorization:`Bearer ${e.token}`}),lp=e=>{var t;const{data:n,origin:o}=e;if(ip===o){if(null==(t=null==n?void 0:n.data)?void 0:t.member){const e=op(n.data.tokens.expires);tp(n.data.member),Zm(n.data.tokens.accessToken,e)}(null==n?void 0:n.error)&&sp(n.error),rp(n)}},cp=null,dp=null,up=(e,t)=>rt(void 0,null,(function*(){window.removeEventListener("message",lp);const n=void 0!==window.screenLeft?window.screenLeft:window.screenX,o=void 0!==window.screenTop?window.screenTop:window.screenY,r=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width,s=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height,i=r/window.screen.availWidth,a=`toolbar=no, menubar=no, width=${600/i}, height=${700/i}, top=${(s-700)/2/i+o}, left=${(r-600)/2/i+n}`;return null===cp||cp.closed?cp=window.open(e,t,a):dp!==e?(cp=window.open(e,t,a)).focus():cp.focus(),window.addEventListener("message",(e=>lp(e)),!1),dp=e,window.addEventListener("beforeunload",(()=>{null==cp||cp.close()})),new Promise(((e,t)=>{rp=e,sp=t}))}));function mp(){const e=navigator.userAgent;return/Edg/i.test(e)?"EDGE":/Trident/i.test(e)||/MSIE/i.test(e)?"INTERNET_EXPLORER":/Safari/i.test(e)&&!/Chrome/i.test(e)?"SAFARI":/Firefox/i.test(e)?"FIREFOX":/Chrome/i.test(e)&&!/Edg/i.test(e)?"CHROME":/OPR/i.test(e)||/Opera/i.test(e)?"OPERA":"OTHER"}function pp(){const e=navigator.userAgent;return/Windows/i.test(e)?"WINDOWS":/Macintosh|Mac OS X/i.test(e)?"MACOS":/Android/i.test(e)?"ANDROID":/iPhone|iPad|iPod/i.test(e)?"IOS":/Linux/i.test(e)?"LINUX":"OTHER"}function hp(){const e=window.innerWidth;return e<=768?"PHONE":e<=1024?"TABLET":"DESKTOP"}function fp(){const e=new URLSearchParams(window.location.search),t={};return["utm_source","utm_medium","utm_campaign","utm_term","utm_content"].forEach((n=>{e.has(n)&&(t[n]=e.get(n))})),t}function gp(){return{browser:mp(),os:pp(),screenSize:hp(),sessionId:Xm(),utmParams:fp()}}var bp=({publicKey:e,appId:t,token:n,domain:o})=>{const{sendRequest:r,sendRequestWithFetch:s}=(({publicKey:e,appId:t,token:n,customEndpoint:o})=>({sendRequest:(n,r)=>rt(void 0,null,(function*(){var s,i,a,l,c,d,u,m;try{const{url:d}=n,u=Km(),m=Xm(),p=[null==(i=null==(s=n.headers)?void 0:s.Authorization)?void 0:i.replace("Bearer ",""),u,null==r?void 0:r.token].find((e=>e)),h=`${o||Qm}${d}`,f=yield Ge({method:n.method,data:n.data,url:h,headers:ot(nt(nt(ot(nt(nt(nt({},p&&{authorization:`Bearer ${p}`}),e&&{"X-API-Key":e}),t&&{"X-APP-ID":t}),{"X-User-Agent":"@memberstack/client@1.2.0"}),n.contentType&&{"Content-Type":n.contentType}),m&&{"X-Session-ID":m}),{"referring-path":window.location.pathname}),withCredentials:!0});if((null==(a=null==f?void 0:f.headers)?void 0:a["ms-mid"])&&f.headers["ms-mid"],null==(l=null==f?void 0:f.data)?void 0:l.error){if("JsonWebTokenError"===f.data.error.name)throw{code:"client/invalid-token",message:"An invalid token has been provided. Please make sure the token is valid."};throw null==(c=f.data)?void 0:c.error}return null==f?void 0:f.data}catch(e){if(!e.response)throw e;throw(null==(u=null==(d=e.response)?void 0:d.data)?void 0:u.error)||(null==(m=e.response)?void 0:m.data)}})),sendRequestWithFetch:(n,r)=>rt(void 0,null,(function*(){var s,i;try{const{url:a,method:l,data:c,headers:d,contentType:u}=n,m=Km(),p=[null==(s=null==d?void 0:d.Authorization)?void 0:s.replace("Bearer ",""),m,null==r?void 0:r.token].find((e=>e)),h=`${o||Qm}${a}`,f=ot(nt(nt(nt({},p&&{Authorization:`Bearer ${p}`}),e&&{"X-API-Key":e}),t&&{"X-APP-ID":t}),{"X-User-Agent":"@memberstack/client@1.2.0","Content-Type":"application/json",Referer:window.location.href}),g=yield fetch(h,{method:l,headers:f,body:c?JSON.stringify(c):void 0,credentials:"include",keepalive:!0}),b=g.headers.get("content-type");let v;if(v=(null==b?void 0:b.includes("application/json"))?yield g.json():(null==b?void 0:b.includes("text"))?yield g.text():204===g.status?null:yield g.text(),g.headers.get("ms-mid")&&g.headers.get("ms-mid"),!g.ok){if("JsonWebTokenError"===(null==(i=null==v?void 0:v.error)?void 0:i.name))throw{code:"client/invalid-token",message:"An invalid token has been provided. Please make sure the token is valid."};throw(null==v?void 0:v.error)||v}return v}catch(e){throw console.error("Error in sendRequestWithFetch:",e),e}}))}))({publicKey:e,token:n,customEndpoint:o,appId:t});return ip=o,{_Event(e){return rt(this,null,(function*(){const t=nt(nt({},e.data),gp());return s({method:"POST",url:"/event",data:t})}))},deleteMember(){return rt(this,null,(function*(){const e=yield r({method:"DELETE",url:"/member"});return np(),e}))},postIsTyping(e){return rt(this,null,(function*(){return r({method:"POST",url:"/comments/posts/typing",data:{channelKey:e.channelKey}})}))},getChannelInfo(e){return rt(this,null,(function*(){const t=new URLSearchParams({channelKey:e.channelKey});return r({method:"GET",url:`/comments/channels/info?${t}`})}))},subscribeToChannel(e){return rt(this,null,(function*(){return r({method:"POST",url:"/comments/channels/manage-subscription",data:{channelKey:e.channelKey,action:e.action}})}))},getPosts(e){return rt(this,null,(function*(){const t=new URLSearchParams(nt(nt(nt({channelKey:e.channelKey},e.after&&{after:e.after}),e.order&&{order:e.order}),e.limit&&{limit:e.limit.toString()}));return r({method:"GET",url:`/comments/posts?${t}`})}))},getThreads(e){return rt(this,null,(function*(){const t=new URLSearchParams(nt(nt(nt({postId:e.postId},e.after&&{after:e.after}),e.order&&{order:e.order}),e.limit&&{limit:e.limit.toString()}));return r({method:"GET",url:`/comments/threads?${t}`})}))},createPost(e){return rt(this,null,(function*(){return r({method:"POST",url:"/comments/posts",data:{channelKey:e.channelKey,content:e.content,_url:window.location.origin+window.location.pathname}})}))},updatePost(e){return rt(this,null,(function*(){return r({method:"PATCH",url:`/comments/posts/${e.postId}/update`,data:{content:e.content}})}))},postVote(e){return rt(this,null,(function*(){return r({method:"POST",url:`/comments/posts/${e.postId}/vote`,data:{vote:e.vote}})}))},deletePost(e){return rt(this,null,(function*(){return r({method:"DELETE",url:`/comments/posts/${e.postId}`})}))},createThread(e){return rt(this,null,(function*(){return r({method:"POST",url:"/comments/threads",data:{postId:e.postId,content:e.content}})}))},updateThread(e){return rt(this,null,(function*(){return r({method:"PATCH",url:`/comments/threads/${e.threadId}/update`,data:{content:e.content}})}))},threadVote(e){return rt(this,null,(function*(){return r({method:"POST",url:`/comments/threads/${e.threadId}/vote`,data:{vote:e.vote}})}))},deleteThread(e){return rt(this,null,(function*(){return r({method:"DELETE",url:`/comments/threads/${e.threadId}`})}))},getSecureContent(e){return rt(this,null,(function*(){return yield r({method:"POST",url:"/secure-content",data:{contentId:e.contentId}})}))},signupWithProvider(n){return rt(this,null,(function*(){const r=encodeURIComponent(n.customFields?JSON.stringify(n.customFields):"{}"),s=encodeURIComponent(n.plans?JSON.stringify(n.plans):"[]"),i=gp(),a=new URLSearchParams(ot(nt({provider:n.provider,customFields:r,plans:s,appId:t},e&&{publicKey:e}),{url:window.location.pathname,origin:window.location.hostname,sessionId:i.sessionId,browser:i.browser,os:i.os,screenSize:i.screenSize}));return up(`${o}/auth-provider/signup?${a}`,"signup")}))},loginWithProvider(n){return rt(this,null,(function*(){const r=encodeURIComponent(!0===n.allowSignup),s=new URLSearchParams(ot(nt({provider:n.provider,appId:t},e&&{publicKey:e}),{origin:window.location.hostname,allowSignup:r}));return up(`${o}/auth-provider/login?${s}`,"login")}))},connectProvider(n){return rt(this,null,(function*(){const r=new URLSearchParams(ot(nt({provider:n.provider,appId:t},e&&{publicKey:e}),{member:Km(),origin:window.location.hostname}));return up(`${o}/auth-provider/connect?${r}`,"connect")}))},disconnectProvider(e){return rt(this,null,(function*(){return r({method:"POST",url:"/member/disconnect-provider",data:{provider:e.provider}})}))},getAppAndMember(e){return rt(this,null,(function*(){var t,n;const o=yield r({method:"POST",url:"/app-member",data:{email:e.email,password:e.password,data:{includeSSOText:null==window?void 0:window.ssoUI,trackPageView:null==e?void 0:e.trackPageView,sessionData:nt({},gp())}}});try{const e=null==(n=null==(t=o.data)?void 0:t.sessionData)?void 0:n.sessionId;Xm()!==e&&(s=e,"undefined"!=typeof window?window.localStorage.setItem("ms_session_id",s):console.warn("setSessionId: window is not defined"))}catch(e){}var s;return o}))},getApp(){return rt(this,null,(function*(){const e=new URLSearchParams({includeSSOText:null==window?void 0:window.ssoUI});return r({method:"GET",url:`/app?${e}`})}))},loginMemberEmailPassword(e,t){return rt(this,null,(function*(){const n=yield r({method:"POST",url:"/auth/login",data:{email:e.email,password:e.password,options:t}}),o=op(n.data.tokens.expires);return tp(n.data.member),Zm(n.data.tokens.accessToken,o),n}))},sendMemberLoginPasswordlessEmail(e,t){return rt(this,null,(function*(){return yield r({method:"POST",url:"/auth/passwordless/login/send",data:{email:e.email}})}))},sendMemberSignupPasswordlessEmail(e,t){return rt(this,null,(function*(){return yield r({method:"POST",url:"/auth/passwordless/signup/send",data:{email:e.email}})}))},loginMemberPasswordless(e,t){return rt(this,null,(function*(){const n=yield r({method:"POST",url:"/auth/passwordless/login",data:{passwordlessToken:e.passwordlessToken,email:e.email,options:t}}),o=op(n.data.tokens.expires);return tp(n.data.member),Zm(n.data.tokens.accessToken,o),n}))},getPlan(e){return rt(this,null,(function*(){return r({method:"GET",url:`/app/plans/${e.planId}`})}))},getPlans(){return rt(this,null,(function*(){const{data:e}=yield r({method:"GET",url:"/app"});return{data:e.plans}}))},getRestrictedUrlGroups(){return rt(this,null,(function*(){const{data:e}=yield r({method:"GET",url:"/app"});return{data:e.contentGroups}}))},getCurrentMember(e){return rt(this,null,(function*(){if(!Km())return{data:null};const t=r({method:"GET",url:"/member",headers:ap(e)});return function(){rt(this,null,(function*(){(e=>{if(e){const t=JSON.stringify(e);t&&(null==localStorage||localStorage.setItem("_ms-mem",t))}else null==localStorage||localStorage.removeItem("_ms-mem"),Jm()})((yield t).data)}))}(),!0===(null==e?void 0:e.useCache)?{data:JSON.parse(null==localStorage?void 0:localStorage.getItem("_ms-mem"))}:t}))},getMemberJSON(e){return rt(this,null,(function*(){return r({method:"GET",url:"/member/json",headers:ap(e)})}))},updateMemberJSON(e,t){return rt(this,null,(function*(){return r({method:"POST",url:"/member/json",data:{json:e.json},headers:ap(t)})}))},addPlan(e,t){return rt(this,null,(function*(){return r({method:"POST",url:"/member/plans/add",data:{planId:e.planId},headers:ap(t)})}))},purchasePlansWithCheckout(e,t){return rt(this,null,(function*(){function n(e){let t=window.location.href;const n=e;return n&&(t=0===n.indexOf("http://")||0===n.indexOf("https://")?n:window.location.origin+n),t}const o=e.successUrl?n(e.successUrl):void 0,s=n(e.cancelUrl),i=yield r({method:"POST",url:"/member/plans/create-checkout-session",data:{priceId:e.priceId,couponId:e.couponId,metadataForCheckout:e.metadataForCheckout,success_url:o,cancel_url:s,origin_url:window.location.href,conversionData:nt({url:window.location.pathname},gp())},headers:ap(t)});if(!1===e.autoRedirect)return i;window.location.href=i.data.url}))},launchStripeCustomerPortal(e,t){return rt(this,null,(function*(){const n=(null==e?void 0:e.returnUrl)?function(e){let t=window.location.href;const n=e;return n&&(t=0===n.indexOf("http://")||0===n.indexOf("https://")?n:window.location.origin+n),t}(e.returnUrl):void 0,o=yield r({method:"POST",url:"/member/create-billing-portal-session",data:nt({return_url:n,origin_url:window.location.href},e&&{priceIds:e.priceIds,configuration:e.configuration}),headers:ap(t)});if(!1===(null==e?void 0:e.autoRedirect))return o;window.location.href=o.data.url}))},removePlan(e,t){return rt(this,null,(function*(){return r({method:"POST",url:"/member/plans/remove",data:{planId:e.planId},headers:ap(t)})}))},updateMember(e,t){return rt(this,null,(function*(){return r({method:"POST",url:"/member",data:nt({},e.customFields&&{customFields:e.customFields}),headers:ap(t)})}))},updateMemberAuth(e,t){return rt(this,null,(function*(){return r({method:"POST",url:"/member-auth",data:nt(nt(nt({},e.email&&{email:e.email}),e.oldPassword&&{oldPassword:e.oldPassword}),e.newPassword&&{newPassword:e.newPassword}),headers:ap(t)})}))},setPassword(e,t){return rt(this,null,(function*(){return r({method:"POST",url:"/member/set-password",data:{password:e.password},headers:ap(t)})}))},signupMemberPasswordless(e,t){return rt(this,null,(function*(){var n,o,s;const i=yield r({method:"POST",url:"/auth/signup?isPasswordless=true",data:nt(ot(nt({email:e.email,customFields:e.customFields,passwordlessToken:e.passwordlessToken,metaData:e.metaData},e.plans&&{plans:e.plans}),{origin_domain:window.location.origin,conversionData:nt(ot(nt({},null!=(n=null==e?void 0:e.conversionData)?n:{}),{url:window.location.pathname}),gp()),options:t}),(null==(o=window.Rewardful)?void 0:o.referral)&&{rewardfulData:{referral:window.Rewardful.referral,coupon:null==(s=window.Rewardful.coupon)?void 0:s.id}})}),a=op(i.data.tokens.expires);return tp(i.data.member),Zm(i.data.tokens.accessToken,a),i}))},signupMemberEmailPassword(e,t){return rt(this,null,(function*(){var n,o,s;const i=yield r({method:"POST",url:"/auth/signup",data:nt(ot(nt({email:e.email,password:e.password,customFields:e.customFields,metaData:e.metaData,captchaToken:e.captchaToken,inviteToken:e.inviteToken},e.plans&&{plans:e.plans}),{origin_domain:window.location.origin,conversionData:nt(ot(nt({},null!=(n=null==e?void 0:e.conversionData)?n:{}),{url:window.location.pathname}),gp()),options:t}),(null==(o=window.Rewardful)?void 0:o.referral)&&{rewardfulData:{referral:window.Rewardful.referral,coupon:null==(s=window.Rewardful.coupon)?void 0:s.id}})}),a=op(i.data.tokens.expires);return tp(i.data.member),Zm(i.data.tokens.accessToken,a),i}))},joinTeam(e,t){return rt(this,null,(function*(){return r({method:"POST",url:"/member/team/join",data:{inviteToken:e.inviteToken},headers:ap(t)})}))},getTeam(e,t){return rt(this,null,(function*(){return r({method:"GET",url:`/member/team/${e.teamId}`,headers:ap(t)})}))},removeMemberFromTeam(e,t){return rt(this,null,(function*(){return r({method:"POST",url:"/member/team/remove-member",data:{teamId:e.teamId,memberId:e.memberId},headers:ap(t)})}))},generateInviteToken(e,t){return rt(this,null,(function*(){return r({method:"POST",url:"/member/team/generate-invite-link",data:{teamId:e.teamId},headers:ap(t)})}))},updateMemberProfileImage(e){return rt(this,null,(function*(){if(e.profileImage){const t=new FormData;return t.append("profileImage",e.profileImage),r({method:"POST",url:"/member/profile-image",data:t,contentType:"multipart/form-data"})}}))},sendMemberVerificationEmail(){return rt(this,null,(function*(){return r({method:"POST",url:"/auth/send-email-verification",data:{origin_domain:window.location.origin}})}))},sendMemberResetPasswordEmail(e){return rt(this,null,(function*(){return r({method:"POST",url:"/auth/send-reset-password-email",data:{email:e.email}})}))},resetMemberPassword(e){return rt(this,null,(function*(){return r({method:"POST",url:"/auth/reset-password",data:{token:e.token,newPassword:e.newPassword}})}))},logout(e){return rt(this,null,(function*(){const t=yield r({method:"POST",url:"/member/logout",headers:ap(e)});return np(),t}))}}},vp=new Promise((e=>{"undefined"!=typeof window&&(window._hcaptchaReady=e)})),wp={openModal:(e,...t)=>rt(void 0,[e,...t],(function*(e,t={}){let n;const o=new Promise((e=>{n=e}));return Nm=new Vm({target:document.body,props:{display:e.toLowerCase(),params:t,onSuccess:n}}),o})),hideModal:()=>{try{null==Nm||Nm.$destroy()}catch(e){}},_hideLoader:e=>{var t;e?e.style.display="none":null==(t=document.querySelector("[data-ms-loader]"))||t.remove()},_showLoader:e=>{if(e)return void(e.style.display="block");const t=document.createElement("style");t.appendChild(document.createTextNode(".ms__loader { width: 100%; height: 100%; overflow: hidden; position: fixed; top: 0; left: 0; display: flex; justify-content: center; align-items: center; z-index: 10000000; } #msLoader path { fill: #007ace; }")),document.head.appendChild(t);const n=document.createElement("div");n.setAttribute("data-ms-loader","true"),n.innerHTML='
',"loading"!==document.readyState?document.body.appendChild(n):document.addEventListener("DOMContentLoaded",(function(e){document.body.appendChild(n)}))},_showMessage:(e,t)=>rt(void 0,null,(function*(){if(!e)return;let n;yield new Promise((e=>{"loading"!==document.readyState?e(!0):document.addEventListener("DOMContentLoaded",(function(t){e(!0)}))})),document.querySelector("[data-ms-message='success']")||((()=>{const e=document.createElement("style");e.setAttribute("data-ms-style",""),e.appendChild(document.createTextNode("\n\t\t@keyframes fadeIn {\n\t\t\t0% {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\t100% {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t\t.ms-error-message { \n\t\t\t\tposition: fixed;\n\t\t\t\tleft: 50%;\n\t\t\t\tbottom: 3%;\n\t\t\t\ttransform: translate(-50%, -50%);\n\t\t\t\tmargin: 0 auto;\n\t\t\t\tz-index: 10000000; \n\t\t\t\tdisplay: flex; \n\t\t\t\talign-items: center;\n\t\t\t\tpadding: 12px 16px;\n\t\t\t\tborder-radius: 8px; \n\t\t\t\tbackground-color: #0A0A0A; \n\t\t\t\tcolor: #fff; \n\t\t\t\tfont-size: 16.8px; \n\t\t\t\tline-height: 28px; \n\t\t\t\tfont-weight: 500; \n\t\t\t\ttransform-origin: center;\n\t\t\t\tanimation: fadeIn 0.2s ease-in;\n\t\t\t\t-webkit-animation: fadeIn 0.2s ease-in;\n\t\t\t\t-moz-animation: fadeIn 0.2s ease-in;\n\t\t\t\t-o-animation: fadeIn 0.2s ease-in;\n\t\t\t\t-ms-animation: fadeIn 0.2s ease-in;\n\t\t\t}\n\t\t\t@media screen and (max-width: 768px) {\n\t\t\t\t.ms-error-message {\n\t\t\t\t\tbottom: 12px;\n\t\t\t\t\twidth: calc(100% - 24px);\n\t\t\t\t\tmax-width: none;\n\t\t\t\t\tpadding: 10px 12px;\n\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t}\n\t\t\t}\n\t\t\t#ms-status-icon {\n\t\t\t\twidth: 20px;\n\t\t\t\theight: 20px;\n\t\t\t\tmargin-right: 12px;\n\t\t\t\t}\n\t\t\t\t#ms-status-close {\n\t\t\t\t\tmargin-left: 20px;\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t}\n\t\t\t\t\t#ms-status-close svg {\n\t\t\t\t\t\theight: 12px;\n\t\t\t\t\t}")),document.head.appendChild(e)})(),(()=>{const e=document.createElement("div");e.setAttribute("id","ms-status-icon"),e.innerHTML='';const t=`
\n\t\t${e.outerHTML}\n\t\t
\n\t\t${Ye.outerHTML}\n\t\t
`,n=document.createElement("div");n.setAttribute("data-ms-message","success"),n.innerHTML=t,n.style.display="none",document.body.appendChild(n)})(),(()=>{const e=document.createElement("div");e.setAttribute("id","ms-status-icon"),e.innerHTML='';const t=`
\n\t\t${e.outerHTML}\n\t\t
\n\t\t${Ye.outerHTML}\n\t\t
`,n=document.createElement("div");n.setAttribute("data-ms-message","error"),n.innerHTML=t,n.style.display="none",document.body.appendChild(n)})()),n=t?document.querySelector("[data-ms-message='error']"):document.querySelector("[data-ms-message='success']");const o=n.querySelector("[data-ms-message-text]");o&&(o.innerHTML=e),n.style.display="block";const r=n.querySelector("[data-ms-message-close]");null==r||r.addEventListener("click",(()=>{n.style.display="none"})),setTimeout((()=>{n.style.display="none"}),7e3)})),getMemberCookie:Km,onAuthChange:e=>{const t=Math.floor(1e3*Math.random());return ep.subscribe(t,e),{unsubscribe:()=>ep.unsubscribe(t)}},_captchaReady:vp};var yp={init:e=>function(e){const t=e.domain||Qm;var n;jm=t,e.useCookies&&(n=e.setCookieOnRootDomain,Wm=!0,n&&(Gm=!0)),(()=>{if("undefined"!=typeof window){const e=new URLSearchParams(window.location.search).get("memberToken");e&&Zm(e)}})();const o=bp({publicKey:e.publicKey,appId:e.appId,token:Km(),domain:t}),r=Object.assign(wp,o);return"undefined"!=typeof window&&(window.$memberstackDom=r),r}(e)}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{"use strict";__webpack_require__(230),__webpack_require__(966);var e=__webpack_require__(75),t=__webpack_require__(593),n=__webpack_require__(517),o=__webpack_require__(588),r=__webpack_require__(629),s=__webpack_require__(582);function i(){(0,r.secureContent)(),(0,o.removeContent)(),(0,s.initChannels)(),(0,n.initMemberText)(),(0,n.initLoader)(),(0,n.initMessageBoxes)(),(0,n.handleMessagesOnLoad)(),(0,e.initLoginForms)(),(0,e.initPasswordlessLoginForms)(),(0,e.initPasswordlessSingupForms)(),(0,e.initSignupForms)(),(0,e.initForgotPasswordForm)(),(0,e.initResetPasswordForm)(),(0,e.initProfileForms)(),(0,e.initUpdateEmailForms)(),(0,e.initChangePasswordForms)(),(0,e.initConnectAuthProviderForms)(),(0,t.initProfileImageButtons)(),(0,t.initOpenCustomerPortalButtons)(),(0,t.initLoginRedirectButtons)(),(0,t.initLoginModalButtons)(),(0,t.initSignupModalButtons)(),(0,t.initForgotPasswordModalButtons)(),(0,t.initProfileModalButtons)(),(0,t.initSignupButtons)(),(0,t.initLogoutButtons)(),(0,t.initLaunchCheckoutButtons)(),(0,t.initUpdatePlanButtons)(),(0,t.initPlanRemoveButtons)(),(0,t.initRemoveSelectedPriceButtons)(),(0,t.resendVerificationEmail)(),(0,t.initReturnToCheckoutButtons)(),(0,t.redirectOverrideButtons)(),(0,t.deleteMemberButtons)(),(0,n.inspectorToolInit)()}(0,o.protectPages)(),(0,o.initCSS)(),"loading"!==document.readyState?i():document.addEventListener("DOMContentLoaded",(function(e){i()})),(0,n.emitMemberstackReadyEvent)()})()})();