|
1
|
|
-(()=>{var e={69:(e,t)=>{"use strict";Object.prototype.toString},338:(e,t,n)=>{"use strict";var r=n(795);t.H=r.createRoot,r.hydrateRoot},647:()=>{!function(e){"use strict";var t=Object.defineProperty,n=Object.defineProperties,r=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,i=(e,n,r)=>n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,s=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&i(e,n,t[n]);if(a)for(var n of a(t))o.call(t,n)&&i(e,n,t[n]);return e},c=(e,t,n)=>i(e,"symbol"!=typeof t?t+"":t,n);const u={Log(...e){console&&console.log&&console.log(...e)},Error(...e){console&&console.error&&console.error(...e)},Warn(...e){console&&console.warn&&console.warn(...e)},Debug(...e){console&&console.debug&&console.debug(...e)}};function m(e,t){const n=e.contentWindow,r=e.src,a={};if(!n||!r)return null;const l=function(e){if(!(e&&e.origin&&e.origin.indexOf("js.stripe.com")>0||e.origin.indexOf("www.paypal.com")>0)&&e.origin===t&&e&&e.data&&"string"==typeof e.data&&"{"===e.data.charAt(0))try{const t=JSON.parse(e.data);"object"==typeof t&&t.type&&a[t.type]&&a[t.type].forEach((e=>{e(t.data)}))}catch(e){u.Error(e)}};return window.addEventListener("message",l),{on(e,t){a[e]||(a[e]=[]),a[e].push(t)},one(e,t,n=!1){n&&delete a[e],!a[e]&&this.on(e,t)},destroy(){window.removeEventListener("message",l)},post(e,t){n.postMessage(JSON.stringify({type:e,data:t}),r.replace(/([^:]+:\/\/[^/]+).*/,"$1"))}}}const d=2147483647;function h(e){return void 0===e||"function"==typeof e||"object"==typeof e&&null!==e}function p(){return"undefined"==typeof window}function f(e,t){if(null==e)throw new Error(t)}class v{constructor(e){c(this,"styleElement"),c(this,"bodyScrollDisableClassName"),c(this,"isFlashingBrowser"),c(this,"overflow",{x:0,y:0}),c(this,"metaColorSchemeValue",null),c(this,"metaColorSchemeElement",null),this.guid=e,this.bodyScrollDisableClassName=`is-fs-checkout-open-${this.guid}`,this.styleElement=document.createElement("style"),this.styleElement.textContent+=this.getBasicStyle(),this.isFlashingBrowser=function(){let e=!1;try{const t=navigator.userAgent.toLowerCase();/edge\/|trident\/|msie /.test(t)?e=!0:-1!==t.indexOf("safari")&&(t.indexOf("chrome")>-1||(e=!0))}catch(e){}return e}()||!p()&&!!document.querySelector("#___gatsby"),this.metaColorSchemeElement=document.head.querySelector('meta[name="color-scheme"]')}addStyle(e){this.styleElement.textContent+=e}attach(){return document.head.appendChild(this.styleElement),this}remove(){return document.head.removeChild(this.styleElement),this}disableBodyScroll(){this.backupScrollPosition(),document.body.classList.add(this.bodyScrollDisableClassName)}enableBodyScroll(){document.body.classList.remove(this.bodyScrollDisableClassName),this.restoreScrollPosition()}disableMetaColorScheme(){this.metaColorSchemeElement&&(this.metaColorSchemeValue=this.metaColorSchemeElement.getAttribute("content"),this.metaColorSchemeElement.setAttribute("content","light"))}enableMetaColorScheme(){this.metaColorSchemeElement&&this.metaColorSchemeValue&&(this.metaColorSchemeElement.setAttribute("content",this.metaColorSchemeValue),this.metaColorSchemeValue=null)}getBasicStyle(){return`body.${this.bodyScrollDisableClassName} { overflow: hidden !important; }`}backupScrollPosition(){this.overflow={x:document.documentElement.scrollTop,y:document.documentElement.scrollLeft}}restoreScrollPosition(){document.documentElement.scrollTop=this.overflow.x,document.documentElement.scrollLeft=this.overflow.y}}class g{constructor(e,t,n="Loading Freemius Checkout"){c(this,"loaderElement"),c(this,"isOpen",!1),c(this,"loaderElementId"),this.style=e,this.loaderElementId=`fs-loader-${this.style.guid}`,this.loaderElement=document.createElement("div"),this.loaderElement.id=this.loaderElementId,this.loaderElement.innerHTML=`<img src="${t}" alt="${n}" />`,this.style.addStyle(this.getStyle())}show(){return this.isOpen||(this.loaderElement.classList.add("show"),document.body.appendChild(this.loaderElement),this.isOpen=!0),this}hide(){return this.isOpen?(this.loaderElement.classList.remove("show"),document.body.removeChild(this.loaderElement),this.isOpen=!1,this):this}getStyle(){return`#${this.loaderElementId} { display: none; position: fixed; z-index: ${d-1}; width: 100%; height: 100%; top: 0; left: 0; right: 0; bottom: 0; text-align: left; background: rgba(0, 0, 0, 0.6); transition: opacity 200ms ease-out; will-change: opacity; opacity: 0; } #${this.loaderElementId}.show { opacity: 1; display: block; } #${this.loaderElementId} img { position: absolute; top: 40%; left: 50%; width: auto; height: auto; margin-left: -25px; background: #fff; padding: 10px; border-radius: 50%; box-shadow: 2px 2px 2px rgba(0,0,0,0.1); }`}}class y{constructor(e,t,n,r,a){c(this,"postman",null),c(this,"iFrame"),c(this,"loadedEventListeners",new Set),c(this,"closedEventListeners",new Set),this.baseUrl=e,this.visibleClass=r,this.checkoutEvents=a,this.iFrame=this.attachIFrame(e,t,n),this.addEventListeners()}close(){var e;null==(e=this.postman)||e.post("close",null)}onClosed(e){this.closedEventListeners.add(e)}onLoaded(e){this.loadedEventListeners.add(e)}addToExitIntent(e){e.addListener((()=>{var e,t,n;null==(e=this.postman)||e.post("exit_intent",null),null==(n=(t=this.checkoutEvents).onExitIntent)||n.call(t)}))}attachIFrame(e,t,n){const r=`${e}/?${function(e){const t=[];return Object.keys(e).forEach((n=>{const r=function(e){return h(e)?null:null===e?"null":!0===e?"1":!1===e?"0":encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")}(e[n]);null!==r&&t.push(`${n}=${r}`)})),t.join("&")}(t)}#${encodeURIComponent(document.location.href)}`,a=document.createElement("iframe");return a.id=n,a.src=r,a.setAttribute("allowTransparency","true"),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("style","background: rgba(0,0,0,0.003); border: 0 none transparent;"),a.setAttribute("frameborder","0"),a.setAttribute("data-testid",a.id),document.body.appendChild(a),a}addEventListeners(){var e,t,n,r,a;const{success:l,purchaseCompleted:o,cancel:i,track:s,afterOpen:c,afterClose:d}=this.checkoutEvents;this.postman=m(this.iFrame,this.baseUrl),null==(e=this.postman)||e.one("upgraded",(e=>{try{null==l||l(e)}catch(e){u.Error(e)}this.dispatchOnClosed(),this.removeIFrameAndPostman(),null==d||d()}),!0),null==(t=this.postman)||t.one("purchaseCompleted",(e=>{try{null==o||o(e)}catch(e){u.Error(e)}}),!0),null==(n=this.postman)||n.one("canceled",(()=>{try{null==i||i()}catch(e){u.Error(e)}this.dispatchOnClosed(),this.removeIFrameAndPostman(),null==d||d()}),!0),null==(r=this.postman)||r.on("track",(e=>{try{null==s||s(e.event,e)}catch(e){u.Error(e)}})),null==(a=this.postman)||a.one("loaded",(()=>{var e;this.dispatchOnLoaded(),null==(e=this.iFrame)||e.classList.add(this.visibleClass);try{null==c||c()}catch(e){u.Error(e)}}),!0)}removeIFrameAndPostman(){var e;null==(e=this.postman)||e.destroy(),this.postman=null,this.iFrame.remove(),this.closedEventListeners.clear(),this.loadedEventListeners.clear()}dispatchOnLoaded(){this.loadedEventListeners.forEach((e=>e()))}dispatchOnClosed(){this.closedEventListeners.forEach((e=>e()))}}const E=class e{constructor(e,t,n){c(this,"iFrameID"),this.style=e,this.options=t,this.baseUrl=n,this.iFrameID=`fs-checkout-page-${this.style.guid}`}create(t){const n=s(s({},this.options),t);return new y(this.baseUrl,this.getQueryParams(n),this.iFrameID,e.VISIBLE_CLASS,n)}addStyle(){this.style.addStyle(this.getStyle())}getQueryParams(e){const t={mode:"dialog",guid:this.style.guid,_fs_checkout:!0};Object.entries(e).forEach((([e,n])=>{h(n)||(t[e]=n)}));const{sandbox:n}=e;return n&&n.ctx&&n.token&&(t.s_ctx_ts=n.ctx,t.sandbox=n.token),t}getStyle(){return`#${this.iFrameID} { z-index: ${d-1}; background: rgba(0,0,0,0.003); border: 0 none transparent; visibility: ${this.style.isFlashingBrowser?"hidden":"visible"}; margin: 0; padding: 0; position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; -webkit-tap-highlight-color: transparent; overflow: hidden; } #${this.iFrameID}.${e.VISIBLE_CLASS} { visibility: visible; }`}};c(E,"VISIBLE_CLASS","show");let w=E;class b{constructor(e,t,n,r,a){c(this,"checkoutIFrameBuilder"),c(this,"checkoutIFrame",null),this.style=e,this.exitIntent=t,this.loader=n,this.checkoutIFrameBuilder=new w(this.style,a,r),this.checkoutIFrameBuilder.addStyle()}isOpen(){return null!==this.checkoutIFrame}open(e){return this.isOpen()||(this.style.disableBodyScroll(),this.style.disableMetaColorScheme(),this.loader.show(),this.exitIntent.attach(),this.checkoutIFrame=this.checkoutIFrameBuilder.create(e),this.checkoutIFrame.onLoaded(this.onLoaded.bind(this)),this.checkoutIFrame.onClosed(this.onClosed.bind(this)),this.checkoutIFrame.addToExitIntent(this.exitIntent)),this}close(){var e;return null==(e=this.checkoutIFrame)||e.close(),this}onLoaded(){this.loader.hide()}onClosed(){this.checkoutIFrame=null,this.loader.hide(),this.style.enableBodyScroll(),this.style.enableMetaColorScheme(),this.exitIntent.detach()}}class C{constructor(e){c(this,"exitIntentId"),c(this,"exitIntentDiv",null),c(this,"clearExitIntentListener",null),c(this,"listeners",[]),this.style=e,this.exitIntentId=`fs-exit-intent-${this.style.guid}`,this.style.addStyle(this.getStyle())}isAttached(){return null!==this.exitIntentDiv}addListener(...e){this.listeners.push(...e)}attach(...e){if(e&&this.addListener(...e),this.isAttached())return this;this.exitIntentDiv=document.createElement("div"),this.exitIntentDiv.id=this.exitIntentId,document.body.appendChild(this.exitIntentDiv);const t=document.documentElement;let n=null;const r=e=>{e.pageY<=20&&(n=window.setTimeout((()=>{try{this.fireListeners()}catch(e){u.Error(e)}}),300))},a=()=>{n&&(clearTimeout(n),n=null)};return t.addEventListener("mouseleave",r),t.addEventListener("mouseenter",a),this.clearExitIntentListener=()=>{n&&(clearTimeout(n),n=null),t.removeEventListener("mouseleave",r),t.removeEventListener("mouseenter",a)},this}detach(){var e,t;return this.isAttached()?(null==(e=this.exitIntentDiv)||e.remove(),this.exitIntentDiv=null,null==(t=this.clearExitIntentListener)||t.call(this),this):this}fireListeners(){this.listeners.forEach((e=>{e()}))}getStyle(){return`#${this.exitIntentId} { z-index: ${d}; border: 0; background: transparent; position: fixed; padding: 0; margin: 0; height: 10px; left: 0; right: 0; width: 100%; top: 0; }`}}const x=class e{constructor(e){c(this,"queryParams",null),this.url=e,this.queryParams=this.parseQueryStringForCart()}hasCart(){return null!==this.queryParams}getPluginID(){return f(this.queryParams,e.NO_CART_FOUND_MESSAGE),this.queryParams.__fs_plugin_id}getPluginPublicKey(){return f(this.queryParams,e.NO_CART_FOUND_MESSAGE),this.queryParams.__fs_plugin_public_key}matchesPluginID(e){const t=Number.parseInt(this.getPluginID(),10),n=Number.parseInt(e.toString(),10);return Number.isFinite(t)&&Number.isFinite(n)&&t===n}getCheckoutOptions(){f(this.queryParams,e.NO_CART_FOUND_MESSAGE);const t={plugin_id:"",public_key:""};return Object.entries(this.queryParams).forEach((([e,n])=>{"__fs_plugin_id"===e?t.plugin_id=n:"__fs_plugin_public_key"===e?t.public_key=n:t[e]=n})),t}parseQueryStringForCart(){const e=new URLSearchParams(this.url.search);if(!e.has("__fs_authorization"))return null;const t={};return e.forEach(((e,n)=>{n.startsWith("__fs_")&&(t[n]=e)})),t}};c(x,"NO_CART_FOUND_MESSAGE","No cart was found");let L=x;class S{constructor(e,t=!0,i="https://checkout.freemius.com"){var u;c(this,"options",{plugin_id:0,public_key:""}),c(this,"guid"),c(this,"style"),c(this,"loader"),c(this,"checkoutPopup"),c(this,"exitIntent"),c(this,"cart"),this.baseUrl=i;const m=e,{plugin_id:d,product_id:h,public_key:f}=m,y=((e,t)=>{var n={};for(var r in e)l.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&a)for(var r of a(e))t.indexOf(r)<0&&o.call(e,r)&&(n[r]=e[r]);return n})(m,["plugin_id","product_id","public_key"]);if(!d&&!h)throw new Error("Must provide a product_id to options.");if(!f)throw new Error("Must provide the public_key to options.");this.options=((e,t)=>n(e,r(t)))(s({},y),{public_key:f,plugin_id:null!=h?h:d}),this.guid=function(){const e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}(),!p()&&(this.style=new v(this.guid),this.loader=new g(this.style,null!=(u=e.loadingImageUrl)?u:`${this.baseUrl}/assets/img/spinner.svg`,e.loadingImageAlt),this.exitIntent=new C(this.style),this.checkoutPopup=new b(this.style,this.exitIntent,this.loader,this.baseUrl,this.options),this.style.attach(),this.cart=new L(new URL(window.location.href)),t&&this.recoverCart())}open(e){var t,n;if(!p()){if(null!=(t=this.checkoutPopup)&&t.isOpen())return void u.Warn("Checkout popup already open. Please close it first before opening it again.");null==(n=this.checkoutPopup)||n.open(e)}}close(){var e;p()||null==(e=this.checkoutPopup)||e.close()}destroy(){var e;p()||(this.close(),null==(e=this.style)||e.remove())}getGuid(){return this.guid}recoverCart(){var e,t;if(null!=(e=this.cart)&&e.hasCart()&&null!=(t=this.cart)&&t.matchesPluginID(this.options.plugin_id)){const e=this.cart.getCheckoutOptions();this.open(e)}}}window.FS=window.FS||{},window.FS.Checkout=S,window.FS.postman=m,window.FS.Logger=u,e.Checkout=S,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}({})},795:e=>{"use strict";e.exports=window.ReactDOM}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var l=t[r]={exports:{}};return e[r](l,l.exports,n),l.exports}(()=>{"use strict";const e=window.React;var t=n(338),r=(n(69),"popstate");function a(e={}){return function(e,t,n,a={}){let{window:o=document.defaultView,v5Compat:u=!1}=a,m=o.history,d="POP",h=null,p=f();function f(){return(m.state||{idx:null}).idx}function v(){d="POP";let e=f(),t=null==e?null:e-p;p=e,h&&h({action:d,location:y.location,delta:t})}function g(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:c(e);return n=n.replace(/ $/,"%20"),l(t,`No window.location.(origin|href) available to create URL for href: ${n}`),new URL(n,t)}null==p&&(p=0,m.replaceState({...m.state,idx:p},""));let y={get action(){return d},get location(){return e(o,m)},listen(e){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(r,v),h=e,()=>{o.removeEventListener(r,v),h=null}},createHref:e=>t(o,e),createURL:g,encodeLocation(e){let t=g(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){d="PUSH";let r=s(y.location,e,t);n&&n(r,e),p=f()+1;let a=i(r,p),l=y.createHref(r);try{m.pushState(a,"",l)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(l)}u&&h&&h({action:d,location:y.location,delta:1})},replace:function(e,t){d="REPLACE";let r=s(y.location,e,t);n&&n(r,e),p=f();let a=i(r,p),l=y.createHref(r);m.replaceState(a,"",l),u&&h&&h({action:d,location:y.location,delta:0})},go:e=>m.go(e)};return y}((function(e,t){let{pathname:n="/",search:r="",hash:a=""}=u(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),s("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:c(t))}),(function(e,t){o("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function l(e,t){if(!1===e||null==e)throw new Error(t)}function o(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function i(e,t){return{usr:e.state,key:e.key,idx:t}}function s(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?u(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function c({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function u(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function m(e,t,n="/"){return function(e,t,n,r){let a=S(("string"==typeof t?u(t):t).pathname||"/",n);if(null==a)return null;let l=d(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(l);let o=null;for(let e=0;null==o&&e<l.length;++e){let t=L(a);o=C(l[e],t,r)}return o}(e,t,n,!1)}function d(e,t=[],n=[],r=""){let a=(e,a,o)=>{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(l(i.relativePath.startsWith(r),`Absolute route path "${i.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),i.relativePath=i.relativePath.slice(r.length));let s=M([r,i.relativePath]),c=n.concat(i);e.children&&e.children.length>0&&(l(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${s}".`),d(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:b(s,e.index),routesMeta:c})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of h(e.path))a(e,t,n);else a(e,t)})),t}function h(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(0===r.length)return a?[l,""]:[l];let o=h(r.join("/")),i=[];return i.push(...o.map((e=>""===e?l:[l,e].join("/")))),a&&i.push(...o),i.map((t=>e.startsWith("/")&&""===t?"/":t))}var p=/^:[\w-]+$/,f=3,v=2,g=1,y=10,E=-2,w=e=>"*"===e;function b(e,t){let n=e.split("/"),r=n.length;return n.some(w)&&(r+=E),t&&(r+=v),n.filter((e=>!w(e))).reduce(((e,t)=>e+(p.test(t)?f:""===t?g:y)),r)}function C(e,t,n=!1){let{routesMeta:r}=e,a={},l="/",o=[];for(let e=0;e<r.length;++e){let i=r[e],s=e===r.length-1,c="/"===l?t:t.slice(l.length)||"/",u=x({path:i.relativePath,caseSensitive:i.caseSensitive,end:s},c),m=i.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=x({path:i.relativePath,caseSensitive:i.caseSensitive,end:!1},c)),!u)return null;Object.assign(a,u.params),o.push({params:a,pathname:M([l,u.pathname]),pathnameBase:R(M([l,u.pathnameBase])),route:m}),"/"!==u.pathnameBase&&(l=M([l,u.pathnameBase]))}return o}function x(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){o("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let l=a[0],i=l.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";i=l.slice(0,l.length-e.length).replace(/(.)\/+$/,"$1")}const a=s[r];return e[t]=n&&!a?void 0:(a||"").replace(/%2F/g,"/"),e}),{}),pathname:l,pathnameBase:i,pattern:e}}function L(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return o(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function S(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function k(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function N(e){let t=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function P(e,t,n,r=!1){let a;"string"==typeof e?a=u(e):(a={...e},l(!a.pathname||!a.pathname.includes("?"),k("?","pathname","search",a)),l(!a.pathname||!a.pathname.includes("#"),k("#","pathname","hash",a)),l(!a.search||!a.search.includes("#"),k("#","search","hash",a)));let o,i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let c=function(e,t="/"){let{pathname:n,search:r="",hash:a=""}="string"==typeof e?u(e):e,l=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:l,search:$(r),hash:I(a)}}(a,o),m=s&&"/"!==s&&s.endsWith("/"),d=(i||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!m&&!d||(c.pathname+="/"),c}var M=e=>e.join("/").replace(/\/\/+/g,"/"),R=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",I=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function F(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var D=["POST","PUT","PATCH","DELETE"],_=(new Set(D),["GET",...D]);new Set(_),Symbol("ResetLoaderData");var A=e.createContext(null);A.displayName="DataRouter";var z=e.createContext(null);z.displayName="DataRouterState";var B=e.createContext({isTransitioning:!1});B.displayName="ViewTransition",e.createContext(new Map).displayName="Fetchers",e.createContext(null).displayName="Await";var T=e.createContext(null);T.displayName="Navigation";var O=e.createContext(null);O.displayName="Location";var H=e.createContext({outlet:null,matches:[],isDataRoute:!1});H.displayName="Route";var V=e.createContext(null);function U(){return null!=e.useContext(O)}function j(){return l(U(),"useLocation() may be used only in the context of a <Router> component."),e.useContext(O).location}V.displayName="RouteError";var q="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function W(t){e.useContext(T).static||e.useLayoutEffect(t)}function Y(){let{isDataRoute:t}=e.useContext(H);return t?function(){let{router:t}=function(t){let n=e.useContext(A);return l(n,te(t)),n}("useNavigate"),n=ne("useNavigate"),r=e.useRef(!1);return W((()=>{r.current=!0})),e.useCallback((async(e,a={})=>{o(r.current,q),r.current&&("number"==typeof e?t.navigate(e):await t.navigate(e,{fromRouteId:n,...a}))}),[t,n])}():function(){l(U(),"useNavigate() may be used only in the context of a <Router> component.");let t=e.useContext(A),{basename:n,navigator:r}=e.useContext(T),{matches:a}=e.useContext(H),{pathname:i}=j(),s=JSON.stringify(N(a)),c=e.useRef(!1);return W((()=>{c.current=!0})),e.useCallback(((e,a={})=>{if(o(c.current,q),!c.current)return;if("number"==typeof e)return void r.go(e);let l=P(e,JSON.parse(s),i,"path"===a.relative);null==t&&"/"!==n&&(l.pathname="/"===l.pathname?n:M([n,l.pathname])),(a.replace?r.replace:r.push)(l,a.state,a)}),[n,r,s,i,t])}()}var J=e.createContext(null);function K(t,{relative:n}={}){let{matches:r}=e.useContext(H),{pathname:a}=j(),l=JSON.stringify(N(r));return e.useMemo((()=>P(t,JSON.parse(l),a,"path"===n)),[t,l,a,n])}function G(t,n,r,a){l(U(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i,static:s}=e.useContext(T),{matches:c}=e.useContext(H),d=c[c.length-1],h=d?d.params:{},p=d?d.pathname:"/",f=d?d.pathnameBase:"/",v=d&&d.route;{let e=v&&v.path||"";ae(p,!v||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let g,y=j();if(n){let e="string"==typeof n?u(n):n;l("/"===f||e.pathname?.startsWith(f),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${e.pathname}" was given in the \`location\` prop.`),g=e}else g=y;let E=g.pathname||"/",w=E;if("/"!==f){let e=f.replace(/^\//,"").split("/");w="/"+E.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=!s&&r&&r.matches&&r.matches.length>0?r.matches:m(t,{pathname:w});o(v||null!=b,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),o(null==b||void 0!==b[b.length-1].route.element||void 0!==b[b.length-1].route.Component||void 0!==b[b.length-1].route.lazy,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=function(t,n=[],r=null){if(null==t){if(!r)return null;if(r.errors)t=r.matches;else{if(0!==n.length||r.initialized||!(r.matches.length>0))return null;t=r.matches}}let a=t,o=r?.errors;if(null!=o){let e=a.findIndex((e=>e.route.id&&void 0!==o?.[e.route.id]));l(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let i=!1,s=-1;if(r)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:n}=r,l=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!n||void 0===n[t.route.id]);if(t.route.lazy||l){i=!0,a=s>=0?a.slice(0,s+1):[a[0]];break}}}return a.reduceRight(((t,l,c)=>{let u,m=!1,d=null,h=null;r&&(u=o&&l.route.id?o[l.route.id]:void 0,d=l.route.errorElement||X,i&&(s<0&&0===c?(ae("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,h=null):s===c&&(m=!0,h=l.route.hydrateFallbackElement||null)));let p=n.concat(a.slice(0,c+1)),f=()=>{let n;return n=u?d:m?h:l.route.Component?e.createElement(l.route.Component,null):l.route.element?l.route.element:t,e.createElement(ee,{match:l,routeContext:{outlet:t,matches:p,isDataRoute:null!=r},children:n})};return r&&(l.route.ErrorBoundary||l.route.errorElement||0===c)?e.createElement(Z,{location:r.location,revalidation:r.revalidation,component:d,error:u,children:f(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):f()}),null)}(b&&b.map((e=>Object.assign({},e,{params:Object.assign({},h,e.params),pathname:M([f,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:M([f,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),c,r,a);return n&&C?e.createElement(O.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},C):C}function Q(){let t=function(){let t=e.useContext(V),n=function(t){let n=e.useContext(z);return l(n,te(t)),n}("useRouteError"),r=ne("useRouteError");return void 0!==t?t:n.errors?.[r]}(),n=F(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,a="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:a},i={padding:"2px 4px",backgroundColor:a},s=null;return console.error("Error handled by React Router default ErrorBoundary:",t),s=e.createElement(e.Fragment,null,e.createElement("p",null,"💿 Hey developer 👋"),e.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",e.createElement("code",{style:i},"ErrorBoundary")," or"," ",e.createElement("code",{style:i},"errorElement")," prop on your route.")),e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},n),r?e.createElement("pre",{style:o},r):null,s)}var X=e.createElement(Q,null),Z=class extends e.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?e.createElement(H.Provider,{value:this.props.routeContext},e.createElement(V.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ee({routeContext:t,match:n,children:r}){let a=e.useContext(A);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),e.createElement(H.Provider,{value:t},r)}function te(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ne(t){let n=function(t){let n=e.useContext(H);return l(n,te(t)),n}(t),r=n.matches[n.matches.length-1];return l(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}var re={};function ae(e,t,n){t||re[e]||(re[e]=!0,o(!1,n))}function le(t){return function(t){let n=e.useContext(H).outlet;return n?e.createElement(J.Provider,{value:t},n):n}(t.context)}function oe(e){l(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function ie({basename:t="/",children:n=null,location:r,navigationType:a="POP",navigator:i,static:s=!1}){l(!U(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=t.replace(/^\/*/,"/"),m=e.useMemo((()=>({basename:c,navigator:i,static:s,future:{}})),[c,i,s]);"string"==typeof r&&(r=u(r));let{pathname:d="/",search:h="",hash:p="",state:f=null,key:v="default"}=r,g=e.useMemo((()=>{let e=S(d,c);return null==e?null:{location:{pathname:e,search:h,hash:p,state:f,key:v},navigationType:a}}),[c,d,h,p,f,v,a]);return o(null!=g,`<Router basename="${c}"> is not able to match the URL "${d}${h}${p}" because it does not start with the basename, so the <Router> won't render anything.`),null==g?null:e.createElement(T.Provider,{value:m},e.createElement(O.Provider,{children:n,value:g}))}function se({children:e,location:t}){return G(ce(e),t)}function ce(t,n=[]){let r=[];return e.Children.forEach(t,((t,a)=>{if(!e.isValidElement(t))return;let o=[...n,a];if(t.type===e.Fragment)return void r.push.apply(r,ce(t.props.children,o));l(t.type===oe,`[${"string"==typeof t.type?t.type:t.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),l(!t.props.index||!t.props.children,"An index route cannot have child routes.");let i={id:t.props.id||o.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,hydrateFallbackElement:t.props.hydrateFallbackElement,HydrateFallback:t.props.HydrateFallback,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:!0===t.props.hasErrorBoundary||null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(i.children=ce(t.props.children,o)),r.push(i)})),r}e.memo((function({routes:e,future:t,state:n}){return G(e,void 0,n,t)})),e.Component;var ue="get",me="application/x-www-form-urlencoded";function de(e){return null!=e&&"string"==typeof e.tagName}var he=null,pe=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function fe(e){return null==e||pe.has(e)?e:(o(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${me}"`),null)}function ve(e,t){if(!1===e||null==e)throw new Error(t)}function ge(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function ye(e,t,n,r,a,l){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,i=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===l?t.filter(((e,t)=>o(e,t)||i(e,t))):"data"===l?t.filter(((t,l)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(o(t,l)||i(t,l))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function Ee(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a})).flat(1),[...new Set(r)];var r}function we(){let t=e.useContext(A);return ve(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function be(){let t=e.useContext(z);return ve(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}Symbol("SingleFetchRedirect"),e.Component;var Ce=e.createContext(void 0);function xe(){let t=e.useContext(Ce);return ve(t,"You must render this element inside a <HydratedRouter> element"),t}function Le(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Se({page:t,...n}){let{router:r}=we(),a=e.useMemo((()=>m(r.routes,t,r.basename)),[r.routes,t,r.basename]);return a?e.createElement(Ne,{page:t,matches:a,...n}):null}function ke(t){let{manifest:n,routeModules:r}=xe(),[a,l]=e.useState([]);return e.useEffect((()=>{let e=!1;return async function(e,t,n){return function(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,a)=>{if(t&&(null==(l=a)||"string"!=typeof l.page)&&"script"===a.as&&a.href&&r.has(a.href))return e;var l;let o=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(a));return n.has(o)||(n.add(o),e.push({key:o,link:a})),e}),[])}((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(ge).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(t,n,r).then((t=>{e||l(t)})),()=>{e=!0}}),[t,n,r]),a}function Ne({page:t,matches:n,...r}){let a=j(),{manifest:l,routeModules:o}=xe(),{loaderData:i,matches:s}=be(),c=e.useMemo((()=>ye(t,n,s,l,a,"data")),[t,n,s,l,a]),u=e.useMemo((()=>ye(t,n,s,l,a,"assets")),[t,n,s,l,a]),m=e.useMemo((()=>{if(t===a.pathname+a.search+a.hash)return[];let e=new Set,r=!1;if(n.forEach((t=>{let n=l.routes[t.route.id];n&&n.hasLoader&&(!c.some((e=>e.route.id===t.route.id))&&t.route.id in i&&o[t.route.id]?.shouldRevalidate||n.hasClientLoader?r=!0:e.add(t.route.id))})),0===e.size)return[];let s=function(e){let t="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===t.pathname?t.pathname="_root.data":t.pathname=`${t.pathname.replace(/\/$/,"")}.data`,t}(t);return r&&e.size>0&&s.searchParams.set("_routes",n.filter((t=>e.has(t.route.id))).map((e=>e.route.id)).join(",")),[s.pathname+s.search]}),[i,a,l,c,n,t,o]),d=e.useMemo((()=>Ee(u,l)),[u,l]),h=ke(u);return e.createElement(e.Fragment,null,m.map((t=>e.createElement("link",{key:t,rel:"prefetch",as:"fetch",href:t,...r}))),d.map((t=>e.createElement("link",{key:t,rel:"modulepreload",href:t,...r}))),h.map((({key:t,link:n})=>e.createElement("link",{key:t,...n}))))}Ce.displayName="FrameworkContext";function Pe(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}var Me="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Me&&(window.__reactRouterVersion="7.2.0")}catch(e){}function Re({basename:t,children:n,window:r}){let l=e.useRef();null==l.current&&(l.current=a({window:r,v5Compat:!0}));let o=l.current,[i,s]=e.useState({action:o.action,location:o.location}),c=e.useCallback((t=>{e.startTransition((()=>s(t)))}),[s]);return e.useLayoutEffect((()=>o.listen(c)),[o,c]),e.createElement(ie,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:o})}var $e=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ie=e.forwardRef((function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:s,state:u,target:m,to:d,preventScrollReset:h,viewTransition:p,...f},v){let g,{basename:y}=e.useContext(T),E="string"==typeof d&&$e.test(d),w=!1;if("string"==typeof d&&E&&(g=d,Me))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=S(t.pathname,y);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:w=!0}catch(e){o(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let b=function(t,{relative:n}={}){l(U(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=e.useContext(T),{hash:o,pathname:i,search:s}=K(t,{relative:n}),c=i;return"/"!==r&&(c="/"===i?r:M([r,i])),a.createHref({pathname:c,search:s,hash:o})}(d,{relative:a}),[C,x,L]=function(t,n){let r=e.useContext(Ce),[a,l]=e.useState(!1),[o,i]=e.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:u,onMouseLeave:m,onTouchStart:d}=n,h=e.useRef(null);e.useEffect((()=>{if("render"===t&&i(!0),"viewport"===t){let e=new IntersectionObserver((e=>{e.forEach((e=>{i(e.isIntersecting)}))}),{threshold:.5});return h.current&&e.observe(h.current),()=>{e.disconnect()}}}),[t]),e.useEffect((()=>{if(a){let e=setTimeout((()=>{i(!0)}),100);return()=>{clearTimeout(e)}}}),[a]);let p=()=>{l(!0)},f=()=>{l(!1),i(!1)};return r?"intent"!==t?[o,h,{}]:[o,h,{onFocus:Le(s,p),onBlur:Le(c,f),onMouseEnter:Le(u,p),onMouseLeave:Le(m,f),onTouchStart:Le(d,p)}]:[!1,h,{}]}(r,f),k=function(t,{target:n,replace:r,state:a,preventScrollReset:l,relative:o,viewTransition:i}={}){let s=Y(),u=j(),m=K(t,{relative:o});return e.useCallback((e=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(e,n)){e.preventDefault();let n=void 0!==r?r:c(u)===c(m);s(t,{replace:n,state:a,preventScrollReset:l,relative:o,viewTransition:i})}}),[u,s,m,r,a,n,t,l,o,i])}(d,{replace:s,state:u,target:m,preventScrollReset:h,relative:a,viewTransition:p}),N=e.createElement("a",{...f,...L,href:g||b,onClick:w||i?t:function(e){t&&t(e),e.defaultPrevented||k(e)},ref:Pe(v,x),target:m,"data-discover":E||"render"!==n?void 0:"true"});return C&&!E?e.createElement(e.Fragment,null,N,e.createElement(Se,{page:b})):N}));function Fe(t){let n=e.useContext(A);return l(n,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(t)),n}Ie.displayName="Link",e.forwardRef((function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:o,to:i,viewTransition:s,children:c,...u},m){let d=K(i,{relative:u.relative}),h=j(),p=e.useContext(z),{navigator:f,basename:v}=e.useContext(T),g=null!=p&&function(t,n={}){let r=e.useContext(B);l(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=Fe("useViewTransitionState"),o=K(t,{relative:n.relative});if(!r.isTransitioning)return!1;let i=S(r.currentLocation.pathname,a)||r.currentLocation.pathname,s=S(r.nextLocation.pathname,a)||r.nextLocation.pathname;return null!=x(o.pathname,s)||null!=x(o.pathname,i)}(d)&&!0===s,y=f.encodeLocation?f.encodeLocation(d).pathname:d.pathname,E=h.pathname,w=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(E=E.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&v&&(w=S(w,v)||w);const b="/"!==y&&y.endsWith("/")?y.length-1:y.length;let C,L=E===y||!a&&E.startsWith(y)&&"/"===E.charAt(b),k=null!=w&&(w===y||!a&&w.startsWith(y)&&"/"===w.charAt(y.length)),N={isActive:L,isPending:k,isTransitioning:g},P=L?t:void 0;C="function"==typeof r?r(N):[r,L?"active":null,k?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let M="function"==typeof o?o(N):o;return e.createElement(Ie,{...u,"aria-current":P,className:C,ref:m,style:M,to:i,viewTransition:s},"function"==typeof c?c(N):c)})).displayName="NavLink",e.forwardRef((({discover:t="render",fetcherKey:n,navigate:r,reloadDocument:a,replace:o,state:i,method:s=ue,action:u,onSubmit:m,relative:d,preventScrollReset:h,viewTransition:p,...f},v)=>{let g=function(){let{router:t}=Fe("useSubmit"),{basename:n}=e.useContext(T),r=ne("useRouteId");return e.useCallback((async(e,a={})=>{let{action:l,method:o,encType:i,formData:s,body:c}=function(e,t){let n,r,a,l,o;if(de(i=e)&&"form"===i.tagName.toLowerCase()){let o=e.getAttribute("action");r=o?S(o,t):null,n=e.getAttribute("method")||ue,a=fe(e.getAttribute("enctype"))||me,l=new FormData(e)}else if(function(e){return de(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return de(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let o=e.form;if(null==o)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let i=e.getAttribute("formaction")||o.getAttribute("action");if(r=i?S(i,t):null,n=e.getAttribute("formmethod")||o.getAttribute("method")||ue,a=fe(e.getAttribute("formenctype"))||fe(o.getAttribute("enctype"))||me,l=new FormData(o,e),!function(){if(null===he)try{new FormData(document.createElement("form"),0),he=!1}catch(e){he=!0}return he}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";l.append(`${e}x`,"0"),l.append(`${e}y`,"0")}else t&&l.append(t,r)}}else{if(de(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ue,r=null,a=me,o=e}var i;return l&&"text/plain"===a&&(o=l,l=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:l,body:o}}(e,n);if(!1===a.navigate){let e=a.fetcherKey||_e();await t.fetch(e,r,a.action||l,{preventScrollReset:a.preventScrollReset,formData:s,body:c,formMethod:a.method||o,formEncType:a.encType||i,flushSync:a.flushSync})}else await t.navigate(a.action||l,{preventScrollReset:a.preventScrollReset,formData:s,body:c,formMethod:a.method||o,formEncType:a.encType||i,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})}),[t,n,r])}(),y=function(t,{relative:n}={}){let{basename:r}=e.useContext(T),a=e.useContext(H);l(a,"useFormAction must be used inside a RouteContext");let[o]=a.matches.slice(-1),i={...K(t||".",{relative:n})},s=j();if(null==t){i.search=s.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();i.search=n?`?${n}`:""}}return t&&"."!==t||!o.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==r&&(i.pathname="/"===i.pathname?r:M([r,i.pathname])),c(i)}(u,{relative:d}),E="get"===s.toLowerCase()?"get":"post",w="string"==typeof u&&$e.test(u);return e.createElement("form",{ref:v,method:E,action:y,onSubmit:a?m:e=>{if(m&&m(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=t?.getAttribute("formmethod")||s;g(t||e.currentTarget,{fetcherKey:n,method:a,navigate:r,replace:o,state:i,relative:d,preventScrollReset:h,viewTransition:p})},...f,"data-discover":w||"render"!==t?void 0:"true"})})).displayName="Form";var De=0,_e=()=>`__${String(++De)}__`;new TextEncoder;const Ae=({href:t="",target:n="",onClick:r=null,className:a,variant:l="primary",size:o="",children:i,...s})=>{const c=`bPlButton ${l?`variant-${l}`:""} ${o?`size-${o}`:""} ${a||""}`;return"function"==typeof r?(0,e.createElement)("button",{className:c,...s,onClick:r},i):(0,e.createElement)("a",{href:t,target:n,className:c,...s},i)},ze=({className:t="",text:n="Loading...",orientation:r="horizontal",iconSize:a="2rem",iconThickness:l="4px",textSize:o="18px"})=>(0,e.createElement)("div",{className:`bPlLoading ${t}`},(0,e.createElement)("div",{className:`loadingContent ${r}`},(0,e.createElement)("div",{className:"loadingSpinner",style:{width:a,height:a,borderWidth:l}}),n&&(0,e.createElement)("p",{className:"loadingText",style:{fontSize:o}},n))),Be=t=>{const{demoInfo:n,children:r}=t,{title:a,description:l,allInOneLabel:o,allInOneLink:i,demos:s}=n,[c,u]=(0,e.useState)(s[0]),[m,d]=(0,e.useState)(0),[h,p]=(0,e.useState)(!1),f=(0,e.useRef)(null),v=(0,e.useRef)(null);return(0,e.useEffect)((()=>{const e=f.current,t=v.current,n=e?.clientHeight,r=t?.scrollHeight;function a(){t.style.transform=`translateY(-${Number(r)-parseInt(n)}px)`}function l(){t.style.transform="translateY(0px)"}return e&&t&&Number(r)>parseInt(n)&&(e.addEventListener("mouseover",a),e.addEventListener("mouseout",l)),()=>{e&&t&&(e.removeEventListener("mouseover",a),e.removeEventListener("mouseout",l))}}),[c,m,h]),(0,e.createElement)("div",{className:"bPlDashboardListDemos"},(0,e.createElement)("div",{className:"sidebar"},(0,e.createElement)("div",{className:"sidebarHeader"},(0,e.createElement)("div",null,a&&(0,e.createElement)("h2",{className:"wp-block-heading",dangerouslySetInnerHTML:{__html:a}}),l&&(0,e.createElement)("p",{dangerouslySetInnerHTML:{__html:l}})),(0,e.createElement)("div",{className:"bPlDashboardButtons"},r,o&&(0,e.createElement)(Ae,{href:i,target:"_blank",variant:"secondary"},o))),(0,e.createElement)("div",{className:"sidebarList"},s.map(((t,n)=>{const{icon:r,title:a,description:l,category:o}=t,i=m===n;return(0,e.createElement)("button",{key:n,className:i?"active":"",onClick:()=>(e=>{p(!0),u(s[e]),d(e)})(n)},r&&(0,e.createElement)("div",{className:"iconBox",dangerouslySetInnerHTML:{__html:r}}),(0,e.createElement)("div",{className:"texts"},a&&(0,e.createElement)("h4",null,a),l&&(0,e.createElement)("p",null,l),o&&(0,e.createElement)("span",{className:"category"},o)))})))),(0,e.createElement)("div",{className:"main"},(0,e.createElement)("div",{className:"mainHeader"},(0,e.createElement)("div",{className:"headerInfo"},c.title&&(0,e.createElement)("h3",null,c.title),c.description&&(0,e.createElement)("p",null,c.description)),(0,e.createElement)("div",{className:"bPlDashboardButtons"},r,o&&(0,e.createElement)(Ae,{href:i,target:"_blank",variant:"secondary"},o))),(0,e.createElement)("div",{className:"canvas"},h&&(0,e.createElement)(ze,{text:"Demo Loading...",orientation:"vertical"}),"iframe"===c.type?(0,e.createElement)("iframe",{src:c.url,title:`${c.title} Demo`,loading:h,onLoad:()=>p(!1),sandbox:"allow-scripts allow-same-origin allow-popups allow-forms"}):(0,e.createElement)("div",{className:"canvasImg",ref:f},(0,e.createElement)("img",{src:c.url,alt:`${c.title} Demo`,onLoad:()=>p(!1),ref:v}))),(0,e.createElement)("div",{className:"mainFooter"},(0,e.createElement)("span",null,"Preview of ",(0,e.createElement)("strong",null,c.title)))))};n(647);const Te=t=>{const{pricingInfo:n,children:r}=t,{cycles:a,plans:l}=n,[o,i]=(0,e.useState)(a?.find((e=>e.isDefault))?.cycle||a[0]?.cycle);return(0,e.createElement)("div",{className:"bPlDashboardPricing bPlDashboardBox"},r,a?.length>1&&(0,e.createElement)("div",{className:"cycles"},a.map((t=>(0,e.createElement)("button",{key:t.cycle,className:t.cycle===o?"active":"",onClick:()=>i(t.cycle)},t.label," ","annual"===t.cycle&&(0,e.createElement)("span",null,`upto ${(()=>{const e=l.map((e=>{const t=12*parseFloat(e.prices.monthly);return(t-parseFloat(e.prices.annual))/t*100}));return Math.max(...e).toFixed(0)})()}% off`))))),(0,e.createElement)("div",{className:"plans"},l.map(((n,r)=>(0,e.createElement)(Oe,{key:r,...t,plan:n,cycle:o})))))},Oe=t=>{const{pricingInfo:n,options:r,logo:a,freemius:l,plan:o,cycle:i}=t,{features:s,button:c,featured:u}=n,{name:m,quantity:d=1,prices:h,pricePrefix:p,priceSuffix:f,isFeatured:v,note:g}=o,y=h[i],[E,w]=y?.split(".")||[];return(0,e.createElement)("div",{className:"plan "+(v?"bestValue":""),"data-best-text":u?.text},m&&(0,e.createElement)("h3",{className:"planName wp-block-heading"},m),(0,e.createElement)("div",{className:"priceWrap"},p&&(0,e.createElement)("p",{className:"prefix"},p),(0,e.createElement)("p",{className:"price"},"$",E,w&&(0,e.createElement)("small",null,".",w)),f&&(0,e.createElement)("p",{className:"suffix"},f)),g&&(0,e.createElement)("p",{className:"note"},g),(0,e.createElement)(Ae,{className:"outline "+(v?"white":""),onClick:e=>{e.preventDefault(),new FS.Checkout({...l,image:a}).open({title:m,licenses:"null"===d?null:parseInt(d),billing_cycle:i,...r})}},c.label),(0,e.createElement)("ul",{className:"wp-block-list features checkList "+(v?"whiteCheck":"themeCheck")},s.map(((t,n)=>(0,e.createElement)("li",{key:n},t)))))},He="#146EF5",Ve=((0,e.createElement)("svg",{xmlns:"https://www.w3.org/2000/svg",width:15,height:15,viewBox:"0 0 548.172 548.172"},(0,e.createElement)("path",{fill:He,d:"M534.75 49.965c-8.945-8.945-19.694-13.422-32.261-13.422H45.681c-12.562 0-23.313 4.477-32.264 13.422C4.471 58.913 0 69.663 0 82.226v310.633c0 12.566 4.471 23.315 13.417 32.265 8.951 8.945 19.702 13.414 32.264 13.414h155.318c0 7.231-1.524 14.661-4.57 22.269-3.044 7.614-6.09 14.273-9.136 19.981-3.042 5.715-4.565 9.897-4.565 12.56 0 4.948 1.807 9.24 5.424 12.847 3.615 3.621 7.898 5.435 12.847 5.435h146.179c4.949 0 9.233-1.813 12.848-5.435 3.62-3.606 5.427-7.898 5.427-12.847 0-2.468-1.526-6.611-4.571-12.415-3.046-5.801-6.092-12.566-9.134-20.267-3.046-7.71-4.569-15.085-4.569-22.128h155.318c12.56 0 23.309-4.469 32.254-13.414 8.949-8.949 13.422-19.698 13.422-32.265V82.226c.003-12.563-4.474-23.313-13.423-32.261zm-23.123 269.803c0 2.475-.903 4.613-2.711 6.424-1.81 1.804-3.952 2.707-6.427 2.707H45.681c-2.473 0-4.615-.903-6.423-2.707-1.807-1.817-2.712-3.949-2.712-6.424V82.226c0-2.475.902-4.615 2.712-6.423 1.809-1.805 3.951-2.712 6.423-2.712h456.815c2.471 0 4.617.904 6.42 2.712 1.808 1.809 2.711 3.949 2.711 6.423v237.542z"})),(0,e.createElement)("svg",{xmlns:"https://www.w3.org/2000/svg",width:15,height:15,viewBox:"0 0 512 512"},(0,e.createElement)("path",{fill:He,d:"M394.667 0H117.333C87.936 0 64 23.936 64 53.333v405.333C64 488.064 87.936 512 117.333 512h277.333C424.064 512 448 488.064 448 458.667V53.333C448 23.936 424.064 0 394.667 0zM256 480c-11.755 0-21.333-9.579-21.333-21.333s9.579-21.333 21.333-21.333 21.333 9.579 21.333 21.333S267.755 480 256 480zm149.333-64c0 5.888-4.779 10.667-10.667 10.667H117.333c-5.888 0-10.667-4.779-10.667-10.667V53.333c0-5.888 4.779-10.667 10.667-10.667h277.333c5.888 0 10.667 4.779 10.667 10.667V416z"})),(0,e.createElement)("svg",{xmlns:"https://www.w3.org/2000/svg",width:15,height:15,viewBox:"0 0 503.604 503.604"},(0,e.createElement)("path",{fill:He,d:"M337.324 0H167.192c-28.924 0-53.5 23.584-53.5 52.5v398.664c0 28.916 24.056 52.44 52.98 52.44l170.412-.184c28.92 0 52.58-23.528 52.58-52.448l.248-398.5C389.908 23.452 366.364 0 337.324 0zM227.68 31.476h49.36c4.336 0 7.868 3.52 7.868 7.868 0 4.348-3.532 7.868-7.868 7.868h-49.36a7.865 7.865 0 01-7.868-7.868 7.865 7.865 0 017.868-7.868zm-29.66 2.504c2.916-2.912 8.224-2.952 11.136 0a7.973 7.973 0 012.324 5.588c0 2.048-.864 4.088-2.324 5.548-1.452 1.46-3.504 2.32-5.548 2.32-2.084 0-4.088-.86-5.588-2.32-1.452-1.456-2.28-3.5-2.28-5.548-.004-2.088.828-4.132 2.28-5.588zm52.752 454.028c-12.984 0-23.544-10.568-23.544-23.548 0-12.984 10.56-23.548 23.544-23.548s23.544 10.564 23.544 23.548c0 12.98-10.564 23.548-23.544 23.548zm114.716-63.1H141.232V74.756h224.256v350.152z"})),(0,e.createElement)("svg",{xmlns:"https://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 330 330"},(0,e.createElement)("path",{d:"M100.606 229.393c-5.857-5.857-15.355-5.857-21.213 0-5.858 5.857-5.858 15.355 0 21.213l75 75A14.954 14.954 0 00165 330a14.95 14.95 0 0010.606-4.394l75-75c5.858-5.857 5.858-15.355 0-21.213-5.857-5.857-15.355-5.857-21.213 0L180 278.787V51.212l49.394 49.394A14.95 14.95 0 00240 105a14.95 14.95 0 0010.606-4.394c5.858-5.857 5.858-15.355 0-21.213l-75-75c-5.857-5.858-15.355-5.858-21.213 0l-75 75c-5.858 5.857-5.858 15.355 0 21.213 5.857 5.857 15.355 5.857 21.213 0L150 51.212v227.574l-49.394-49.393z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 430.848 430.848"},(0,e.createElement)("path",{d:"M286.244,249.537l10.992-45.639c0.035-0.143,0.071-0.285,0.109-0.428c2.909-10.867,11.469-19.426,22.339-22.338 l33.347-8.936c-5.472-6.525-13.678-10.682-22.839-10.682h-9.837c-2.511-7.895-5.7-15.59-9.515-22.957l6.96-6.959 c11.622-11.623,11.622-30.535,0-42.156L296.76,68.4c-5.631-5.629-13.117-8.73-21.079-8.73c-7.961,0-15.447,3.102-21.078,8.732 l-6.96,6.959c-7.369-3.814-15.064-7.004-22.956-9.516V56.01c0-16.436-13.372-29.807-29.808-29.807h-29.758 c-16.436,0-29.808,13.371-29.808,29.807v9.836c-7.893,2.512-15.588,5.701-22.957,9.516l-6.96-6.961 c-5.631-5.629-13.117-8.73-21.078-8.73c-7.961,0-15.447,3.102-21.079,8.732L42.2,89.443c-11.622,11.621-11.622,30.533,0,42.156 l6.959,6.959c-3.815,7.367-7.004,15.063-9.515,22.957h-9.837C13.372,161.516,0,174.887,0,191.324v29.758 c0,16.436,13.372,29.807,29.808,29.807h9.837c2.511,7.895,5.7,15.588,9.515,22.957l-6.96,6.959 c-11.623,11.623-11.623,30.533,0,42.158l21.041,21.039c5.632,5.631,13.118,8.732,21.079,8.732s15.447-3.102,21.077-8.732 l6.96-6.959c7.366,3.815,15.061,7.002,22.957,9.514v9.838c0,16.436,13.372,29.809,29.808,29.809h25.809 c-2.388-5.691-3.644-11.852-3.645-18.209c-0.002-12.572,4.892-24.391,13.781-33.279L286.244,249.537z M180,286.201 c-44.112,0-80-35.887-80-79.998c0-44.113,35.888-80.002,80-80.002s80,35.889,80,80.002C260,250.314,224.112,286.201,180,286.201z"}),(0,e.createElement)("path",{d:"M425.267,218.734l-0.319-0.32c-0.939-0.941-2.189-1.428-3.541-1.469c-1.326,0-2.598,0.525-3.536,1.465l-21.596,21.596 c-3.304,3.305-7.699,5.125-12.375,5.125c-4.676,0-9.072-1.82-12.379-5.129c-3.307-3.305-5.128-7.701-5.128-12.377 c0.001-4.676,1.821-9.072,5.126-12.377l21.596-21.596c0.939-0.939,1.465-2.213,1.464-3.539c-0.001-1.328-0.53-2.6-1.47-3.537 l-0.314-0.313c-3.605-3.605-8.399-5.592-13.499-5.592c-1.665,0-3.325,0.219-4.936,0.65l-44.348,11.885 c-6.568,1.76-11.741,6.932-13.498,13.496c-0.011,0.041-0.021,0.08-0.031,0.121l-11.817,49.063l-87.667,87.666 c-6.528,6.527-10.122,15.207-10.121,24.44c0.002,9.232,3.598,17.91,10.126,24.439l2.088,2.088 c6.528,6.529,15.209,10.125,24.443,10.125h0c9.231,0,17.909-3.594,24.437-10.121l87.667-87.666l49.061-11.816 c0.041-0.01,0.082-0.022,0.122-0.031c6.563-1.758,11.735-6.928,13.497-13.496l11.883-44.352 C431.959,230.598,430.066,223.535,425.267,218.734z M257.26,368.406c-1.888,1.889-4.399,2.93-7.071,2.93 c-2.671,0-5.183-1.041-7.072-2.932c-1.887-1.885-2.928-4.397-2.928-7.068c-0.001-2.672,1.041-5.185,2.931-7.072 c1.886-1.887,4.398-2.928,7.069-2.928c2.672,0,5.184,1.041,7.072,2.93c1.887,1.885,2.928,4.396,2.928,7.068 C260.189,364.006,259.148,366.518,257.26,368.406z M316.194,305.935L274.82,347.31c-1.416,1.416-3.3,2.197-5.303,2.197 c-2.003,0-3.887-0.781-5.303-2.197c-1.417-1.416-2.197-3.299-2.197-5.303s0.78-3.887,2.197-5.303l41.374-41.375 c1.417-1.418,3.3-2.197,5.303-2.197s3.887,0.779,5.303,2.197c1.417,1.416,2.197,3.299,2.197,5.303S317.611,304.519,316.194,305.935 z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"0 0 448 512"},(0,e.createElement)("path",{d:"M96 0C43 0 0 43 0 96V416c0 53 43 96 96 96H384h32c17.7 0 32-14.3 32-32s-14.3-32-32-32V384c17.7 0 32-14.3 32-32V32c0-17.7-14.3-32-32-32H384 96zm0 384H352v64H96c-17.7 0-32-14.3-32-32s14.3-32 32-32zm32-240c0-8.8 7.2-16 16-16H336c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16zm16 48H336c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16s7.2-16 16-16z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"0 0 512 512"},(0,e.createElement)("path",{d:"M256 48C141.1 48 48 141.1 48 256v40c0 13.3-10.7 24-24 24s-24-10.7-24-24V256C0 114.6 114.6 0 256 0S512 114.6 512 256V400.1c0 48.6-39.4 88-88.1 88L313.6 488c-8.3 14.3-23.8 24-41.6 24H240c-26.5 0-48-21.5-48-48s21.5-48 48-48h32c17.8 0 33.3 9.7 41.6 24l110.4 .1c22.1 0 40-17.9 40-40V256c0-114.9-93.1-208-208-208zM144 208h16c17.7 0 32 14.3 32 32V352c0 17.7-14.3 32-32 32H144c-35.3 0-64-28.7-64-64V272c0-35.3 28.7-64 64-64zm224 0c35.3 0 64 28.7 64 64v48c0 35.3-28.7 64-64 64H352c-17.7 0-32-14.3-32-32V240c0-17.7 14.3-32 32-32h16z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"0 0 576 512"},(0,e.createElement)("path",{d:"M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"0 0 448 512"},(0,e.createElement)("path",{d:"M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 448 512"},(0,e.createElement)("path",{d:"M384 336H192c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16l140.1 0L400 115.9V320c0 8.8-7.2 16-16 16zM192 384H384c35.3 0 64-28.7 64-64V115.9c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1H192c-35.3 0-64 28.7-64 64V320c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H256c35.3 0 64-28.7 64-64V416H272v32c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V192c0-8.8 7.2-16 16-16H96V128H64z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960"},(0,e.createElement)("path",{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"}))),Ue=((0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 320 512",width:16,height:16},(0,e.createElement)("path",{d:"M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z"})),(0,e.createElement)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,e.createElement)("path",{d:"M96 320C96 302.3 110.3 288 128 288L512 288C529.7 288 544 302.3 544 320C544 337.7 529.7 352 512 352L128 352C110.3 352 96 337.7 96 320z"}))),je=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,e.createElement)("path",{d:"M352 128C352 110.3 337.7 96 320 96C302.3 96 288 110.3 288 128L288 288L128 288C110.3 288 96 302.3 96 320C96 337.7 110.3 352 128 352L288 352L288 512C288 529.7 302.3 544 320 544C337.7 544 352 529.7 352 512L352 352L512 352C529.7 352 544 337.7 544 320C544 302.3 529.7 288 512 288L352 288L352 128z"})),qe=((0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},(0,e.createElement)("path",{d:"M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},(0,e.createElement)("path",{d:"M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"})),(0,e.createElement)("svg",{className:"check",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960"},(0,e.createElement)("path",{d:"m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z"}))),We=((0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18px",height:"18px"},(0,e.createElement)("path",{d:"M10 2a8 8 0 105.29 13.71l5 5a1 1 0 001.42-1.42l-5-5A8 8 0 0010 2zm0 2a6 6 0 110 12 6 6 0 010-12z",fill:"#146ef5"})),(0,e.createElement)("svg",{width:25,height:25,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M4.66667 12.25H11.9C11.9928 12.25 12.0818 12.2131 12.1475 12.1475C12.2131 12.0818 12.25 11.9928 12.25 11.9V2.1C12.25 2.00717 12.2131 1.91815 12.1475 1.85251C12.0818 1.78687 11.9928 1.75 11.9 1.75H2.1C2.00717 1.75 1.91815 1.78687 1.85251 1.85251C1.78687 1.91815 1.75 2.00717 1.75 2.1V9.33333M5.83333 3.5H10.5M3.5 3.5H4.08333M2.04167 11.9583L7 7M7 7V9.33333M7 7H4.66667",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("svg",{width:25,height:25,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M11.6667 6.99999V3.35357C11.6667 3.30753 11.6577 3.26193 11.6401 3.21939C11.6225 3.17684 11.5966 3.1382 11.564 3.10566L9.72771 1.26932C9.66213 1.20367 9.57317 1.16674 9.48037 1.16666H2.68337C2.59055 1.16666 2.50152 1.20353 2.43589 1.26917C2.37025 1.33481 2.33337 1.42383 2.33337 1.51666V12.4833C2.33337 12.5761 2.37025 12.6652 2.43589 12.7308C2.50152 12.7964 2.59055 12.8333 2.68337 12.8333H6.41671M4.66671 5.83332H9.33337M4.66671 3.49999H7.00004M4.66671 8.16666H6.41671",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M9.33337 3.14999V1.37315C9.33345 1.33237 9.3456 1.29251 9.36829 1.25862C9.39099 1.22473 9.42321 1.19832 9.4609 1.18272C9.49859 1.16712 9.54005 1.16303 9.58006 1.17097C9.62007 1.17891 9.65683 1.19852 9.68571 1.22732L11.606 3.14765C11.6351 3.17642 11.655 3.21321 11.6631 3.25331C11.6712 3.29341 11.6672 3.33502 11.6515 3.37283C11.6359 3.41063 11.6093 3.44291 11.5752 3.46556C11.5412 3.48821 11.5011 3.5002 11.4602 3.49999H9.68337C9.59055 3.49999 9.50152 3.46311 9.43589 3.39748C9.37025 3.33184 9.33337 3.24281 9.33337 3.14999V3.14999Z",fill:"#6A72A5",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M10.4731 9.88165L11.0565 9.29832C11.1172 9.23754 11.1893 9.18932 11.2687 9.15643C11.3481 9.12353 11.4331 9.1066 11.5191 9.1066C11.605 9.1066 11.6901 9.12353 11.7694 9.15643C11.8488 9.18932 11.9209 9.23754 11.9816 9.29832C12.1042 9.42095 12.1731 9.58723 12.1731 9.76061C12.1731 9.93399 12.1042 10.1003 11.9816 10.2229L11.3983 10.8062M10.4731 9.88107L8.7284 11.6258C8.64116 11.7133 8.58397 11.8263 8.56506 11.9484L8.42273 12.8567L9.33098 12.7149C9.45309 12.696 9.56605 12.6388 9.65356 12.5516L11.3977 10.8062M10.4731 9.88107L11.3983 10.8062",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"})),t=>{const{featureCompareInfo:n}=t,{title:r,plans:a,features:l}=n;return(0,e.createElement)("div",{className:"bPlDashboardFeatureCompare bPlDashboardBox"},(0,e.createElement)("table",null,(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,r&&(0,e.createElement)("th",{dangerouslySetInnerHTML:{__html:r}}),a?.map((t=>{const{id:n,name:r,color:a}=t;return(0,e.createElement)("th",{key:n,style:{color:a},dangerouslySetInnerHTML:{__html:r}})})))),(0,e.createElement)("tbody",null,l?.map(((t,n)=>{const{label:r,plans:l}=t;return(0,e.createElement)("tr",{key:n},(0,e.createElement)("td",{dangerouslySetInnerHTML:{__html:r}}),a?.map((t=>{const{id:n}=t;return(0,e.createElement)("td",{key:n,className:"icon "+(l?.includes(n)?"check":"cross")},l?.includes(n)?qe:Ve)})))})))))}),Ye=t=>{const{name:n,logo:r,version:a,children:l}=t;return(0,e.createElement)("div",{className:"bPlDashboardHeader"},(0,e.createElement)("div",{className:"bPlDashboardContainer"},(0,e.createElement)("div",{className:"pluginInfo",wrap:!0},(0,e.createElement)("div",null,r&&(0,e.createElement)("img",{className:"pluginLogo",src:r,alt:n||"Plugin from bPlugins"}),n&&(0,e.createElement)("h1",{className:"pluginName"},n)),a&&(0,e.createElement)("div",{className:"pluginVersion"},"v",a)),(0,e.createElement)("div",{className:"navLinks"},l)))},Je=[{name:"Welcome",href:"/welcome"},{name:"Demos",href:"/demos"},{name:"Pricing",href:"/pricing"}],Ke=t=>{const{isPremium:n}=t,r=j();return(0,e.createElement)("div",{className:"bPlDashboard"},(0,e.createElement)(Ye,{...t},(0,e.createElement)("nav",{className:"bPlDashboardNav"},Je?.filter((e=>!n||!["/purchase","/pricing","/demos"].includes(e.href)))?.map(((t,n)=>(0,e.createElement)(Ie,{key:n,to:t.href,className:"navLink "+(r.pathname===t.href?"active":"")},t.name))))),(0,e.createElement)("main",{className:"bPlDashboardMain"},(0,e.createElement)("div",{className:"bPlDashboardContainer"},(0,e.createElement)(le,null))))},Ge="streamcast",Qe=e=>{const{version:t,isPremium:n,hasPro:r,adminUrl:a}=e,l=n?" Pro":"";return{name:`StreamCast${l}`,displayName:`StreamCast${l} - Live Radio Streaming Player`,description:"A simple, accessible, user-friendly and fully customizable radio player for WordPress. You can play iceCast, Shoutcast, Radionomy, Radiojar, RadioCo Live stream in WordPress website using shortcode.",slug:Ge,logo:`https://ps.w.org/${Ge}/assets/icon-128x128.png`,banner:`https://ps.w.org/${Ge}/assets/banner-772x250.png`,video:"https://www.youtube.com/embed/ad_LKLe_YQg",isYoutube:!0,version:t,isPremium:n,adminUrl:a,hasPro:r,pages:{org:`https://wordpress.org/plugins/${Ge}/`,landing:`https://bplugins.com/products/${Ge}/`,docs:`https://bplugins.com/docs/${Ge}/`,pricing:`https://bplugins.com/products/${Ge}/pricing`},freemius:{product_id:"6433",plan_id:"10492",public_key:"pk_a19d159db561c020210345da466f1"}}},Xe=[{version:"2.3.4 - 17 September 2025",list:["Added Modern Dashboard."]},{version:"2.3.1 - 17 May, 2025",list:["Added a new radio skin."]},{version:"2.3.0 - 19 Feb, 2025",list:["Added gutenberg block and re-customize whole plugin."]},{version:"2.2.4 - 30 July, 2024",list:["Fixed: Cross Site Scripting"]},{version:"2.2.3 - 4 July, 2024",list:["Update: WordPress SDK"]},{version:"2.2.2 - 1 Jan, 2024",list:["Fixed: Unexpected number"]},{version:"2.2.0 - 26 Aug, 2023",list:["Added new skin name ‘B Circle’ (Premium)"]},{version:"2.1.11 - 26 Aug, 2023",list:["Fix Uncaught Error in 335 line"]},{version:"2.1.9 - 1 May, 2023",list:["Freemius SDK updated"]},{version:"2.1.8 - 1 May, 2023",list:["Fixed: Ops issue"]},{version:"2.1.6 - 1 May, 2023",list:["support normal stream on ultimate player"]},{version:"2.1.6 - 22 Oct, 2022",list:[]},{version:"2.1.4",list:["Freemius SDK updated"]},{version:"2.0.0",list:["Added player theme.","Added Ultimate radio Player type","Added custom color in player settings.","Added modern skins."]},{version:"1.0",list:["Initial Release"]}],Ze={title:"Live Overview",description:"Click on any section to view it live",layout:"list",allInOneLabel:"See All Demos",allInOneLink:"https://bblockswp.com/demo/timeline-block-all-demos/",demos:[{icon:"",title:"Minimal Player (Default)",description:"",category:"",type:"iframe",url:"https://wpradioplayer.com/demo/demo-6-minimal-default/"},{icon:"",title:"Standard Player Skins (80+ Skins)",description:"",category:"",type:"image",url:"https://i.ibb.co.com/nsgPvyzT/bg.png"},{icon:"",title:"Ultimate Player (Customized)",description:"",category:"",type:"iframe",url:"https://wpradioplayer.com/demo/demo-1-ultimate-default/"},{icon:"",title:"Ultimate Bittersweet Theme",description:"",category:"",type:"iframe",url:"https://wpradioplayer.com/demo/demo-2-ultimate-bittersweet-theme/"},{icon:"",title:"Ultimate Lightsea Green Theme",description:"",category:"",type:"iframe",url:"https://wpradioplayer.com/demo/demo-3-ultimate-lightsea-green-theme/"},{icon:"",title:"Ultimate Custom Color",description:"",category:"",type:"iframe",url:"https://wpradioplayer.com/demo/demo-4-ultimate-custom-color/"},{icon:"",title:"Ultimate Icecast Station",description:"",category:"",type:"iframe",url:"https://wpradioplayer.com/demo/demo-5-ultimate-icecast-station/"},{icon:"",title:"Advanced Default",description:"",category:"",type:"iframe",url:"https://wpradioplayer.com/demo/demo-7-advanced-default/"},{icon:"",title:"Advanced Custom Color & Align Right",description:"",category:"",type:"iframe",url:"https://wpradioplayer.com/demo/demo-8-advanced-custom-color-and-align-right/"},{icon:"",title:"EchoPlayer",description:"",category:"",type:"iframe",url:"https://wpradioplayer.com/demo/demo-13/"},{icon:"",title:"AuroraPlay",description:"",category:"",type:"iframe",url:"https://wpradioplayer.com/demo/demo-14-aurora-play/"},{icon:"",title:"Wooden Player",description:"",category:"",type:"iframe",url:"https://wpradioplayer.com/demo/demo-15-wooden-player/"}]},et={cycles:[{cycle:"monthly",label:"Monthly",isDefault:!1},{cycle:"annual",label:"Yearly",isDefault:!0},{cycle:"lifetime",label:"Lifetime",isDefault:!1}],plans:[{name:"Single Site",quantity:1,prices:{monthly:"4.99",annual:"49.99",lifetime:"99.99"},pricePrefix:"",priceSuffix:"",isFeatured:!1,note:""},{name:"3 Sites",quantity:3,prices:{monthly:"8.99",annual:"83.88",lifetime:"259.99"},pricePrefix:"",priceSuffix:"",isFeatured:!0,note:""},{name:"Unlimited Sites",quantity:"null",prices:{monthly:"33.99",annual:"323.88",lifetime:"979.99"},pricePrefix:"",priceSuffix:"",isFeatured:!1,note:""}],features:["Added Graphical User Interface","Advanced, Standard and Minimal categories","Custom CSS","85+ New Radio Player skins","Gutenberg Blocks","Sidebar Widgets"],button:{label:"Buy Now ➜"},featured:{text:"Popular"}},tt={title:"Features",plans:[{id:"ztbk4ex2fyi",name:"Free Plan",color:"#485781"},{id:"lhmjqhkeyi",name:"<span style='color: #485781;'>Pro Start from </span><span style='font-size: 1.3em;'>29.99/Lifetime</span>",color:"#146EF5"}],features:[{label:"Embed Code",plans:["ztbk4ex2fyi","lhmjqhkeyi"]},{label:"Edit Font Size",plans:["ztbk4ex2fyi","lhmjqhkeyi"]},{label:"Display Code Snippets to Frontend",plans:["lhmjqhkeyi"]},{label:"Set Editor Height and Width",plans:["lhmjqhkeyi"]},{label:"Edit Tab Size",plans:["lhmjqhkeyi"]},{label:"Change Editor Theme",plans:["lhmjqhkeyi"]},{label:"Different Language For Syntax",plans:["lhmjqhkeyi"]},{label:"Display Heading",plans:["lhmjqhkeyi"]},{label:"Display Copy Button",plans:["lhmjqhkeyi"]},{label:"Line numbers",plans:["lhmjqhkeyi"]},{label:"Highlight Active Line",plans:["lhmjqhkeyi"]},{label:"Fold Gutter(Collapse Code)",plans:["lhmjqhkeyi"]},{label:"Enable Autocompletion",plans:["lhmjqhkeyi"]},{label:"Wrap Your Code",plans:["lhmjqhkeyi"]}]},nt=t=>{const{changelogs:n}=t,[r,a]=(0,e.useState)(!1),l=(0,e.useRef)(),o=(0,e.useRef)();return(0,e.useEffect)((()=>{const e=l.current,t=o.current;e&&t&&(e.style.height=r?`${t.scrollHeight}px`:"0px")}),[r,n]),n?.length&&(0,e.createElement)("div",{className:"bPlDashboardChangelog bPlDashboardBox"},(0,e.createElement)("div",{className:"toggleArea"},(0,e.createElement)("h2",{className:"headerArea",onClick:()=>a(!r)},"Release Notes(Changelog)...",r?Ue:je),(0,e.createElement)("div",{className:"changelogsWrap",ref:l,style:{height:0}},(0,e.createElement)("div",{className:"changelogs",ref:o},n.map(((t,n)=>{const{version:r,list:a}=t;return(0,e.createElement)("div",{key:n,className:"item"},(0,e.createElement)("h4",null,r),(0,e.createElement)("ul",{className:"list"},a?.map(((t,n)=>(0,e.createElement)("li",{key:n},t)))))}))))))},rt=({src:t,width:n="100%",height:r="auto",autoPlay:a=!1,muted:l=!1,loop:o=!1,poster:i=null,isYoutube:s=!1})=>{const c=(0,e.useRef)(null),u=(0,e.useRef)(null),m=(0,e.useRef)(null),d=(0,e.useRef)(null),h=(0,e.useRef)(null),[p,f]=(0,e.useState)(!1),[v,g]=(0,e.useState)(!0),[y,E]=(0,e.useState)(0),[w,b]=(0,e.useState)(0),[C,x]=(0,e.useState)(1),[L,S]=(0,e.useState)(l),[k,N]=(0,e.useState)(!1),[P,M]=(0,e.useState)(!0);(0,e.useEffect)((()=>{const e=c.current;if(!e)return;const n=()=>g(!0),r=()=>g(!1),a=()=>{b(e.duration),u.current&&(u.current.src=t,u.current.muted=!0)},l=()=>{k||E(e.currentTime)},o=()=>{f(!1)};return e.addEventListener("loadstart",n),e.addEventListener("canplay",r),e.addEventListener("loadedmetadata",a),e.addEventListener("timeupdate",l),e.addEventListener("ended",o),()=>{e.removeEventListener("loadstart",n),e.removeEventListener("canplay",r),e.removeEventListener("loadedmetadata",a),e.removeEventListener("timeupdate",l),e.removeEventListener("ended",o)}}),[k,t]),(0,e.useEffect)((()=>{const e=e=>{switch(e.key){case" ":e.preventDefault(),R();break;case"f":case"F":D();break;case"m":case"M":F()}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]);const R=()=>{const e=c.current;e&&(e.paused?(e.play(),f(!0)):(e.pause(),f(!1)))},$=e=>{const t=m.current.getBoundingClientRect(),n=(e.clientX-t.left)/t.width*w;c.current.currentTime=Math.max(0,Math.min(n,w)),E(n)},I=e=>{const t=d.current.getBoundingClientRect(),n=Math.max(0,Math.min(1,(e.clientX-t.left)/t.width));x(n),c.current.volume=n,n>0&&(S(!1),c.current.muted=!1)},F=()=>{const e=c.current;e&&(e.muted=!e.muted,S(e.muted))},D=()=>{const e=h.current;e&&(document.fullscreenElement?document.exitFullscreen():e.requestFullscreen())},_=e=>`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,"0")}`,A=w?y/w*100:0,z=100*C;return(0,e.useEffect)((()=>{const e=e=>{k&&(e.target.closest(".progress-bar")?$(e):e.target.closest(".volume-bar")&&I(e))},t=()=>{N(!1)};return k&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}}),[k]),(0,e.createElement)("div",{ref:h,className:"bPlVideoPlayer",style:{width:n,height:r},onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!p)},s?(0,e.createElement)("div",{className:"bPlVideoPlayerYoutube"},(0,e.createElement)("iframe",{src:function(e){const t=/youtu.be\/([^#\\&\\?]+)/;let n="";const r=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\\&v=)([^#\\&\\?]*).*/);if(r&&11===r[2].length)n=r[2];else{const r=e.match(t);if(!r||11!==r[1].length)return null;n=r[1]}return`https://www.youtube.com/embed/${n}`}(t),frameBorder:"0",allowFullScreen:!0,style:{width:n,height:r},title:"YouTube Video"})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("video",{ref:c,className:"video-element",src:t,poster:i,autoPlay:a,muted:l,loop:o,onClick:R,preload:"metadata"},"Your browser does not support the video tag."),(0,e.createElement)("video",{ref:u,className:"preview-video",muted:!0,preload:"metadata",style:{display:"none"}}),!p&&(0,e.createElement)("div",{className:"center-play-btn",onClick:R},(0,e.createElement)("div",{className:"play-icon"},(0,e.createElement)("svg",{viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M8 5v14l11-7z"})))),p&&(0,e.createElement)("div",{className:"center-play-btn pause",onClick:R},(0,e.createElement)("div",{className:"play-icon"},(0,e.createElement)("svg",{className:"video-player-pause-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},(0,e.createElement)("path",{d:"M48 64C21.5 64 0 85.5 0 112L0 400c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48L48 64zm192 0c-26.5 0-48 21.5-48 48l0 288c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48l-32 0z"})))),v&&(0,e.createElement)("div",{className:"loading-spinner"},(0,e.createElement)("div",{className:"spinner"})),(0,e.createElement)("div",{className:"video-controls "+(P?"visible":"")},(0,e.createElement)("button",{className:"control-btn play-pause-btn",onClick:R},p?(0,e.createElement)("svg",{viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"})):(0,e.createElement)("svg",{viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M8 5v14l11-7z"}))),(0,e.createElement)("div",{className:"time-display"},(0,e.createElement)("span",{className:"current-time"},_(y)),(0,e.createElement)("span",{className:"separator"},"/"),(0,e.createElement)("span",{className:"duration"},_(w))),(0,e.createElement)("div",{className:"progress-container"},(0,e.createElement)("div",{ref:m,className:"progress-bar",onClick:$,onMouseDown:e=>{N(!0),$(e)}},(0,e.createElement)("div",{className:"progress-filled",style:{width:`${A}%`}}),(0,e.createElement)("div",{className:"progress-handle",style:{left:`${A}%`}}))),(0,e.createElement)("div",{className:"volume-container"},(0,e.createElement)("button",{className:"control-btn volume-btn",onClick:F},L||0===C?(0,e.createElement)("svg",{viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"})):(0,e.createElement)("svg",{viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"}))),(0,e.createElement)("div",{className:"volume-slider"},(0,e.createElement)("div",{ref:d,className:"volume-bar",onClick:I,onMouseDown:e=>{N(!0),I(e)}},(0,e.createElement)("div",{className:"volume-filled",style:{width:`${z}%`}}),(0,e.createElement)("div",{className:"volume-handle",style:{left:`${z}%`}})))),(0,e.createElement)("button",{className:"control-btn fullscreen-btn",onClick:D},(0,e.createElement)("svg",{viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}))))))},at=t=>{const{name:n,displayName:r,description:a,slug:l,logo:o,banner:i,video:s,isYoutube:c,pages:u,children:m}=t,d=[{title:"Need any Assistance?",description:"Our Expert Support Team is always ready to help you out promptly.",link:"https://bplugins.com/support",linkText:"Contact Support"},{title:"Looking for Documentation?",description:"We have detailed documentation on every aspects of the plugin.",link:u?.docs,linkText:"Documentation"},{title:"Liked This Plugin?",description:"Glad to know that, you can support us by leaving a 5 ⭐ rating.",link:`https://wordpress.org/support/plugin/${l}/reviews#new-post`,linkText:"Rate the Plugin"}];return(0,e.createElement)("div",{className:"bPlDashboardOverview bPlDashboardBox"},(0,e.createElement)("div",{className:"overviewLeft"},(0,e.createElement)("div",{className:"overviewLeftTop"},n&&(0,e.createElement)("h2",{className:"overviewTitle"},"Welcome to ",n),a&&(0,e.createElement)("p",{className:"overviewDescription"},a),(0,e.createElement)("div",{className:"overviewBanner"},s?(0,e.createElement)(rt,{src:s,width:"100%",height:"100%",isYoutube:c}):i?(0,e.createElement)("img",{src:i,alt:`${n} Banner`}):null),(0,e.createElement)("div",{className:"overviewPluginInfo"},o&&(0,e.createElement)("img",{src:o,alt:n}),(0,e.createElement)("div",null,r&&(0,e.createElement)("h3",null,r),(0,e.createElement)("span",null,"by"),(0,e.createElement)("a",{href:"https://bplugins.com",target:"_blank",rel:"noopener noreferrer"},"bPlugins")))),(m||u?.landing)&&(0,e.createElement)("div",{className:"overviewLeftBottom bPlDashboardButtons"},m,u?.landing&&(0,e.createElement)(Ae,{href:u.landing,target:"_blank",rel:"noopener noreferrer",variant:"primary"},"Learn More"))),(0,e.createElement)("div",{className:"overviewRight"},d?.map(((t,n)=>{const{title:r,description:a,link:l,linkText:o}=t;return l&&(0,e.createElement)("div",{key:n,className:"helpInfoItem"},(0,e.createElement)("h4",null,r),(0,e.createElement)("p",null,a),(0,e.createElement)(Ae,{href:l,target:"_blank",rel:"noopener noreferrer",size:"medium"},o))}))))},lt=t=>{const{isPremium:n,adminUrl:r}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(at,{...t},!n&&(0,e.createElement)(Ae,{href:`${r}edit.php?post_type=streamcast&page=streamcast#/pricing`,variant:"secondary"},"Buy Now")),(0,e.createElement)(nt,{changelogs:Xe,...t}))},ot=t=>{const{name:n,isPremium:r,adminUrl:a}=t;return(0,e.createElement)(Re,null,(0,e.createElement)(se,null,(0,e.createElement)(oe,{path:"/",element:(0,e.createElement)(Ke,{...t})},(0,e.createElement)(oe,{index:!0,element:(0,e.createElement)(lt,{...t})}),(0,e.createElement)(oe,{path:"welcome",element:(0,e.createElement)(lt,{...t})}),!r&&(0,e.createElement)(oe,{path:"demos",element:(0,e.createElement)(Be,{demoInfo:Ze,...t},!r&&(0,e.createElement)(Ae,{href:`${a}edit.php?post_type=streamcast&page=streamcast#/pricing`,variant:"secondary"},"Buy Now"))}),!r&&(0,e.createElement)(oe,{path:"pricing",element:(0,e.createElement)(Te,{pricingInfo:et,options:{title:`${n} Pro`},...t})}),!r&&(0,e.createElement)(oe,{path:"feature-comparison",element:(0,e.createElement)(We,{featureCompareInfo:tt,...t})}),(0,e.createElement)(oe,{path:"*",element:(0,e.createElement)(lt,{...t})}))))};document.addEventListener("DOMContentLoaded",(()=>{const n=document.getElementById("stpAdminDashboardWrapper"),r=JSON.parse(n.dataset.info);(0,t.H)(n).render((0,e.createElement)(ot,{...Qe(r)}))}))})()})(); |
|
1
|
+(()=>{var e={69:(e,t)=>{"use strict";Object.prototype.toString},338:(e,t,n)=>{"use strict";var a=n(795);t.H=a.createRoot,a.hydrateRoot},647:()=>{!function(e){"use strict";var t=Object.defineProperty,n=Object.defineProperties,a=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,i=(e,n,a)=>n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a,s=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&i(e,n,t[n]);if(r)for(var n of r(t))o.call(t,n)&&i(e,n,t[n]);return e},c=(e,t,n)=>i(e,"symbol"!=typeof t?t+"":t,n);const u={Log(...e){console&&console.log&&console.log(...e)},Error(...e){console&&console.error&&console.error(...e)},Warn(...e){console&&console.warn&&console.warn(...e)},Debug(...e){console&&console.debug&&console.debug(...e)}};function m(e,t){const n=e.contentWindow,a=e.src,r={};if(!n||!a)return null;const l=function(e){if(!(e&&e.origin&&e.origin.indexOf("js.stripe.com")>0||e.origin.indexOf("www.paypal.com")>0)&&e.origin===t&&e&&e.data&&"string"==typeof e.data&&"{"===e.data.charAt(0))try{const t=JSON.parse(e.data);"object"==typeof t&&t.type&&r[t.type]&&r[t.type].forEach((e=>{e(t.data)}))}catch(e){u.Error(e)}};return window.addEventListener("message",l),{on(e,t){r[e]||(r[e]=[]),r[e].push(t)},one(e,t,n=!1){n&&delete r[e],!r[e]&&this.on(e,t)},destroy(){window.removeEventListener("message",l)},post(e,t){n.postMessage(JSON.stringify({type:e,data:t}),a.replace(/([^:]+:\/\/[^/]+).*/,"$1"))}}}const d=2147483647;function h(e){return void 0===e||"function"==typeof e||"object"==typeof e&&null!==e}function p(){return"undefined"==typeof window}function v(e,t){if(null==e)throw new Error(t)}class g{constructor(e){c(this,"styleElement"),c(this,"bodyScrollDisableClassName"),c(this,"isFlashingBrowser"),c(this,"overflow",{x:0,y:0}),c(this,"metaColorSchemeValue",null),c(this,"metaColorSchemeElement",null),this.guid=e,this.bodyScrollDisableClassName=`is-fs-checkout-open-${this.guid}`,this.styleElement=document.createElement("style"),this.styleElement.textContent+=this.getBasicStyle(),this.isFlashingBrowser=function(){let e=!1;try{const t=navigator.userAgent.toLowerCase();/edge\/|trident\/|msie /.test(t)?e=!0:-1!==t.indexOf("safari")&&(t.indexOf("chrome")>-1||(e=!0))}catch(e){}return e}()||!p()&&!!document.querySelector("#___gatsby"),this.metaColorSchemeElement=document.head.querySelector('meta[name="color-scheme"]')}addStyle(e){this.styleElement.textContent+=e}attach(){return document.head.appendChild(this.styleElement),this}remove(){return document.head.removeChild(this.styleElement),this}disableBodyScroll(){this.backupScrollPosition(),document.body.classList.add(this.bodyScrollDisableClassName)}enableBodyScroll(){document.body.classList.remove(this.bodyScrollDisableClassName),this.restoreScrollPosition()}disableMetaColorScheme(){this.metaColorSchemeElement&&(this.metaColorSchemeValue=this.metaColorSchemeElement.getAttribute("content"),this.metaColorSchemeElement.setAttribute("content","light"))}enableMetaColorScheme(){this.metaColorSchemeElement&&this.metaColorSchemeValue&&(this.metaColorSchemeElement.setAttribute("content",this.metaColorSchemeValue),this.metaColorSchemeValue=null)}getBasicStyle(){return`body.${this.bodyScrollDisableClassName} { overflow: hidden !important; }`}backupScrollPosition(){this.overflow={x:document.documentElement.scrollTop,y:document.documentElement.scrollLeft}}restoreScrollPosition(){document.documentElement.scrollTop=this.overflow.x,document.documentElement.scrollLeft=this.overflow.y}}class f{constructor(e,t,n="Loading Freemius Checkout"){c(this,"loaderElement"),c(this,"isOpen",!1),c(this,"loaderElementId"),this.style=e,this.loaderElementId=`fs-loader-${this.style.guid}`,this.loaderElement=document.createElement("div"),this.loaderElement.id=this.loaderElementId,this.loaderElement.innerHTML=`<img src="${t}" alt="${n}" />`,this.style.addStyle(this.getStyle())}show(){return this.isOpen||(this.loaderElement.classList.add("show"),document.body.appendChild(this.loaderElement),this.isOpen=!0),this}hide(){return this.isOpen?(this.loaderElement.classList.remove("show"),document.body.removeChild(this.loaderElement),this.isOpen=!1,this):this}getStyle(){return`#${this.loaderElementId} { display: none; position: fixed; z-index: ${d-1}; width: 100%; height: 100%; top: 0; left: 0; right: 0; bottom: 0; text-align: left; background: rgba(0, 0, 0, 0.6); transition: opacity 200ms ease-out; will-change: opacity; opacity: 0; } #${this.loaderElementId}.show { opacity: 1; display: block; } #${this.loaderElementId} img { position: absolute; top: 40%; left: 50%; width: auto; height: auto; margin-left: -25px; background: #fff; padding: 10px; border-radius: 50%; box-shadow: 2px 2px 2px rgba(0,0,0,0.1); }`}}class y{constructor(e,t,n,a,r){c(this,"postman",null),c(this,"iFrame"),c(this,"loadedEventListeners",new Set),c(this,"closedEventListeners",new Set),this.baseUrl=e,this.visibleClass=a,this.checkoutEvents=r,this.iFrame=this.attachIFrame(e,t,n),this.addEventListeners()}close(){var e;null==(e=this.postman)||e.post("close",null)}onClosed(e){this.closedEventListeners.add(e)}onLoaded(e){this.loadedEventListeners.add(e)}addToExitIntent(e){e.addListener((()=>{var e,t,n;null==(e=this.postman)||e.post("exit_intent",null),null==(n=(t=this.checkoutEvents).onExitIntent)||n.call(t)}))}attachIFrame(e,t,n){const a=`${e}/?${function(e){const t=[];return Object.keys(e).forEach((n=>{const a=function(e){return h(e)?null:null===e?"null":!0===e?"1":!1===e?"0":encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")}(e[n]);null!==a&&t.push(`${n}=${a}`)})),t.join("&")}(t)}#${encodeURIComponent(document.location.href)}`,r=document.createElement("iframe");return r.id=n,r.src=a,r.setAttribute("allowTransparency","true"),r.setAttribute("width","100%"),r.setAttribute("height","100%"),r.setAttribute("style","background: rgba(0,0,0,0.003); border: 0 none transparent;"),r.setAttribute("frameborder","0"),r.setAttribute("data-testid",r.id),document.body.appendChild(r),r}addEventListeners(){var e,t,n,a,r;const{success:l,purchaseCompleted:o,cancel:i,track:s,afterOpen:c,afterClose:d}=this.checkoutEvents;this.postman=m(this.iFrame,this.baseUrl),null==(e=this.postman)||e.one("upgraded",(e=>{try{null==l||l(e)}catch(e){u.Error(e)}this.dispatchOnClosed(),this.removeIFrameAndPostman(),null==d||d()}),!0),null==(t=this.postman)||t.one("purchaseCompleted",(e=>{try{null==o||o(e)}catch(e){u.Error(e)}}),!0),null==(n=this.postman)||n.one("canceled",(()=>{try{null==i||i()}catch(e){u.Error(e)}this.dispatchOnClosed(),this.removeIFrameAndPostman(),null==d||d()}),!0),null==(a=this.postman)||a.on("track",(e=>{try{null==s||s(e.event,e)}catch(e){u.Error(e)}})),null==(r=this.postman)||r.one("loaded",(()=>{var e;this.dispatchOnLoaded(),null==(e=this.iFrame)||e.classList.add(this.visibleClass);try{null==c||c()}catch(e){u.Error(e)}}),!0)}removeIFrameAndPostman(){var e;null==(e=this.postman)||e.destroy(),this.postman=null,this.iFrame.remove(),this.closedEventListeners.clear(),this.loadedEventListeners.clear()}dispatchOnLoaded(){this.loadedEventListeners.forEach((e=>e()))}dispatchOnClosed(){this.closedEventListeners.forEach((e=>e()))}}const E=class e{constructor(e,t,n){c(this,"iFrameID"),this.style=e,this.options=t,this.baseUrl=n,this.iFrameID=`fs-checkout-page-${this.style.guid}`}create(t){const n=s(s({},this.options),t);return new y(this.baseUrl,this.getQueryParams(n),this.iFrameID,e.VISIBLE_CLASS,n)}addStyle(){this.style.addStyle(this.getStyle())}getQueryParams(e){const t={mode:"dialog",guid:this.style.guid,_fs_checkout:!0};Object.entries(e).forEach((([e,n])=>{h(n)||(t[e]=n)}));const{sandbox:n}=e;return n&&n.ctx&&n.token&&(t.s_ctx_ts=n.ctx,t.sandbox=n.token),t}getStyle(){return`#${this.iFrameID} { z-index: ${d-1}; background: rgba(0,0,0,0.003); border: 0 none transparent; visibility: ${this.style.isFlashingBrowser?"hidden":"visible"}; margin: 0; padding: 0; position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; -webkit-tap-highlight-color: transparent; overflow: hidden; } #${this.iFrameID}.${e.VISIBLE_CLASS} { visibility: visible; }`}};c(E,"VISIBLE_CLASS","show");let w=E;class b{constructor(e,t,n,a,r){c(this,"checkoutIFrameBuilder"),c(this,"checkoutIFrame",null),this.style=e,this.exitIntent=t,this.loader=n,this.checkoutIFrameBuilder=new w(this.style,r,a),this.checkoutIFrameBuilder.addStyle()}isOpen(){return null!==this.checkoutIFrame}open(e){return this.isOpen()||(this.style.disableBodyScroll(),this.style.disableMetaColorScheme(),this.loader.show(),this.exitIntent.attach(),this.checkoutIFrame=this.checkoutIFrameBuilder.create(e),this.checkoutIFrame.onLoaded(this.onLoaded.bind(this)),this.checkoutIFrame.onClosed(this.onClosed.bind(this)),this.checkoutIFrame.addToExitIntent(this.exitIntent)),this}close(){var e;return null==(e=this.checkoutIFrame)||e.close(),this}onLoaded(){this.loader.hide()}onClosed(){this.checkoutIFrame=null,this.loader.hide(),this.style.enableBodyScroll(),this.style.enableMetaColorScheme(),this.exitIntent.detach()}}class C{constructor(e){c(this,"exitIntentId"),c(this,"exitIntentDiv",null),c(this,"clearExitIntentListener",null),c(this,"listeners",[]),this.style=e,this.exitIntentId=`fs-exit-intent-${this.style.guid}`,this.style.addStyle(this.getStyle())}isAttached(){return null!==this.exitIntentDiv}addListener(...e){this.listeners.push(...e)}attach(...e){if(e&&this.addListener(...e),this.isAttached())return this;this.exitIntentDiv=document.createElement("div"),this.exitIntentDiv.id=this.exitIntentId,document.body.appendChild(this.exitIntentDiv);const t=document.documentElement;let n=null;const a=e=>{e.pageY<=20&&(n=window.setTimeout((()=>{try{this.fireListeners()}catch(e){u.Error(e)}}),300))},r=()=>{n&&(clearTimeout(n),n=null)};return t.addEventListener("mouseleave",a),t.addEventListener("mouseenter",r),this.clearExitIntentListener=()=>{n&&(clearTimeout(n),n=null),t.removeEventListener("mouseleave",a),t.removeEventListener("mouseenter",r)},this}detach(){var e,t;return this.isAttached()?(null==(e=this.exitIntentDiv)||e.remove(),this.exitIntentDiv=null,null==(t=this.clearExitIntentListener)||t.call(this),this):this}fireListeners(){this.listeners.forEach((e=>{e()}))}getStyle(){return`#${this.exitIntentId} { z-index: ${d}; border: 0; background: transparent; position: fixed; padding: 0; margin: 0; height: 10px; left: 0; right: 0; width: 100%; top: 0; }`}}const L=class e{constructor(e){c(this,"queryParams",null),this.url=e,this.queryParams=this.parseQueryStringForCart()}hasCart(){return null!==this.queryParams}getPluginID(){return v(this.queryParams,e.NO_CART_FOUND_MESSAGE),this.queryParams.__fs_plugin_id}getPluginPublicKey(){return v(this.queryParams,e.NO_CART_FOUND_MESSAGE),this.queryParams.__fs_plugin_public_key}matchesPluginID(e){const t=Number.parseInt(this.getPluginID(),10),n=Number.parseInt(e.toString(),10);return Number.isFinite(t)&&Number.isFinite(n)&&t===n}getCheckoutOptions(){v(this.queryParams,e.NO_CART_FOUND_MESSAGE);const t={plugin_id:"",public_key:""};return Object.entries(this.queryParams).forEach((([e,n])=>{"__fs_plugin_id"===e?t.plugin_id=n:"__fs_plugin_public_key"===e?t.public_key=n:t[e]=n})),t}parseQueryStringForCart(){const e=new URLSearchParams(this.url.search);if(!e.has("__fs_authorization"))return null;const t={};return e.forEach(((e,n)=>{n.startsWith("__fs_")&&(t[n]=e)})),t}};c(L,"NO_CART_FOUND_MESSAGE","No cart was found");let x=L;class S{constructor(e,t=!0,i="https://checkout.freemius.com"){var u;c(this,"options",{plugin_id:0,public_key:""}),c(this,"guid"),c(this,"style"),c(this,"loader"),c(this,"checkoutPopup"),c(this,"exitIntent"),c(this,"cart"),this.baseUrl=i;const m=e,{plugin_id:d,product_id:h,public_key:v}=m,y=((e,t)=>{var n={};for(var a in e)l.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&r)for(var a of r(e))t.indexOf(a)<0&&o.call(e,a)&&(n[a]=e[a]);return n})(m,["plugin_id","product_id","public_key"]);if(!d&&!h)throw new Error("Must provide a product_id to options.");if(!v)throw new Error("Must provide the public_key to options.");this.options=((e,t)=>n(e,a(t)))(s({},y),{public_key:v,plugin_id:null!=h?h:d}),this.guid=function(){const e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}(),!p()&&(this.style=new g(this.guid),this.loader=new f(this.style,null!=(u=e.loadingImageUrl)?u:`${this.baseUrl}/assets/img/spinner.svg`,e.loadingImageAlt),this.exitIntent=new C(this.style),this.checkoutPopup=new b(this.style,this.exitIntent,this.loader,this.baseUrl,this.options),this.style.attach(),this.cart=new x(new URL(window.location.href)),t&&this.recoverCart())}open(e){var t,n;if(!p()){if(null!=(t=this.checkoutPopup)&&t.isOpen())return void u.Warn("Checkout popup already open. Please close it first before opening it again.");null==(n=this.checkoutPopup)||n.open(e)}}close(){var e;p()||null==(e=this.checkoutPopup)||e.close()}destroy(){var e;p()||(this.close(),null==(e=this.style)||e.remove())}getGuid(){return this.guid}recoverCart(){var e,t;if(null!=(e=this.cart)&&e.hasCart()&&null!=(t=this.cart)&&t.matchesPluginID(this.options.plugin_id)){const e=this.cart.getCheckoutOptions();this.open(e)}}}window.FS=window.FS||{},window.FS.Checkout=S,window.FS.postman=m,window.FS.Logger=u,e.Checkout=S,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}({})},795:e=>{"use strict";e.exports=window.ReactDOM}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var l=t[a]={exports:{}};return e[a](l,l.exports,n),l.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.React;var t=n(338),a=(n(69),"popstate");function r(e={}){return function(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:u=!1}=r,m=o.history,d="POP",h=null,p=v();function v(){return(m.state||{idx:null}).idx}function g(){d="POP";let e=v(),t=null==e?null:e-p;p=e,h&&h({action:d,location:y.location,delta:t})}function f(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:c(e);return n=n.replace(/ $/,"%20"),l(t,`No window.location.(origin|href) available to create URL for href: ${n}`),new URL(n,t)}null==p&&(p=0,m.replaceState({...m.state,idx:p},""));let y={get action(){return d},get location(){return e(o,m)},listen(e){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(a,g),h=e,()=>{o.removeEventListener(a,g),h=null}},createHref:e=>t(o,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){d="PUSH";let a=s(y.location,e,t);n&&n(a,e),p=v()+1;let r=i(a,p),l=y.createHref(a);try{m.pushState(r,"",l)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(l)}u&&h&&h({action:d,location:y.location,delta:1})},replace:function(e,t){d="REPLACE";let a=s(y.location,e,t);n&&n(a,e),p=v();let r=i(a,p),l=y.createHref(a);m.replaceState(r,"",l),u&&h&&h({action:d,location:y.location,delta:0})},go:e=>m.go(e)};return y}((function(e,t){let{pathname:n="/",search:a="",hash:r=""}=u(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),s("",{pathname:n,search:a,hash:r},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),a="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");a=-1===n?t:t.slice(0,n)}return a+"#"+("string"==typeof t?t:c(t))}),(function(e,t){o("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function l(e,t){if(!1===e||null==e)throw new Error(t)}function o(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function i(e,t){return{usr:e.state,key:e.key,idx:t}}function s(e,t,n=null,a){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?u(t):t,state:n,key:t&&t.key||a||Math.random().toString(36).substring(2,10)}}function c({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function u(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function m(e,t,n="/"){return function(e,t,n,a){let r=S(("string"==typeof t?u(t):t).pathname||"/",n);if(null==r)return null;let l=d(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(l);let o=null;for(let e=0;null==o&&e<l.length;++e){let t=x(r);o=C(l[e],t,a)}return o}(e,t,n,!1)}function d(e,t=[],n=[],a=""){let r=(e,r,o)=>{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};i.relativePath.startsWith("/")&&(l(i.relativePath.startsWith(a),`Absolute route path "${i.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),i.relativePath=i.relativePath.slice(a.length));let s=M([a,i.relativePath]),c=n.concat(i);e.children&&e.children.length>0&&(l(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${s}".`),d(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:b(s,e.index),routesMeta:c})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of h(e.path))r(e,t,n);else r(e,t)})),t}function h(e){let t=e.split("/");if(0===t.length)return[];let[n,...a]=t,r=n.endsWith("?"),l=n.replace(/\?$/,"");if(0===a.length)return r?[l,""]:[l];let o=h(a.join("/")),i=[];return i.push(...o.map((e=>""===e?l:[l,e].join("/")))),r&&i.push(...o),i.map((t=>e.startsWith("/")&&""===t?"/":t))}var p=/^:[\w-]+$/,v=3,g=2,f=1,y=10,E=-2,w=e=>"*"===e;function b(e,t){let n=e.split("/"),a=n.length;return n.some(w)&&(a+=E),t&&(a+=g),n.filter((e=>!w(e))).reduce(((e,t)=>e+(p.test(t)?v:""===t?f:y)),a)}function C(e,t,n=!1){let{routesMeta:a}=e,r={},l="/",o=[];for(let e=0;e<a.length;++e){let i=a[e],s=e===a.length-1,c="/"===l?t:t.slice(l.length)||"/",u=L({path:i.relativePath,caseSensitive:i.caseSensitive,end:s},c),m=i.route;if(!u&&s&&n&&!a[a.length-1].route.index&&(u=L({path:i.relativePath,caseSensitive:i.caseSensitive,end:!1},c)),!u)return null;Object.assign(r,u.params),o.push({params:r,pathname:M([l,u.pathname]),pathnameBase:$(M([l,u.pathnameBase])),route:m}),"/"!==u.pathnameBase&&(l=M([l,u.pathnameBase]))}return o}function L(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=function(e,t=!1,n=!0){o("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(a.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(a.push({paramName:"*"}),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),a]}(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let l=r[0],i=l.replace(/(.)\/+$/,"$1"),s=r.slice(1);return{params:a.reduce(((e,{paramName:t,isOptional:n},a)=>{if("*"===t){let e=s[a]||"";i=l.slice(0,l.length-e.length).replace(/(.)\/+$/,"$1")}const r=s[a];return e[t]=n&&!r?void 0:(r||"").replace(/%2F/g,"/"),e}),{}),pathname:l,pathnameBase:i,pattern:e}}function x(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return o(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function S(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&"/"!==a?null:e.slice(n)||"/"}function k(e,t,n,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function N(e){let t=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function P(e,t,n,a=!1){let r;"string"==typeof e?r=u(e):(r={...e},l(!r.pathname||!r.pathname.includes("?"),k("?","pathname","search",r)),l(!r.pathname||!r.pathname.includes("#"),k("#","pathname","hash",r)),l(!r.search||!r.search.includes("#"),k("#","search","hash",r)));let o,i=""===e||""===r.pathname,s=i?"/":r.pathname;if(null==s)o=n;else{let e=t.length-1;if(!a&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}o=e>=0?t[e]:"/"}let c=function(e,t="/"){let{pathname:n,search:a="",hash:r=""}="string"==typeof e?u(e):e,l=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:l,search:_(a),hash:I(r)}}(r,o),m=s&&"/"!==s&&s.endsWith("/"),d=(i||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!m&&!d||(c.pathname+="/"),c}var M=e=>e.join("/").replace(/\/\/+/g,"/"),$=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",I=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function A(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var R=["POST","PUT","PATCH","DELETE"],D=(new Set(R),["GET",...R]);new Set(D),Symbol("ResetLoaderData");var B=e.createContext(null);B.displayName="DataRouter";var F=e.createContext(null);F.displayName="DataRouterState";var z=e.createContext({isTransitioning:!1});z.displayName="ViewTransition",e.createContext(new Map).displayName="Fetchers",e.createContext(null).displayName="Await";var O=e.createContext(null);O.displayName="Navigation";var T=e.createContext(null);T.displayName="Location";var H=e.createContext({outlet:null,matches:[],isDataRoute:!1});H.displayName="Route";var V=e.createContext(null);function U(){return null!=e.useContext(T)}function j(){return l(U(),"useLocation() may be used only in the context of a <Router> component."),e.useContext(T).location}V.displayName="RouteError";var W="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function q(t){e.useContext(O).static||e.useLayoutEffect(t)}function Y(){let{isDataRoute:t}=e.useContext(H);return t?function(){let{router:t}=function(t){let n=e.useContext(B);return l(n,te(t)),n}("useNavigate"),n=ne("useNavigate"),a=e.useRef(!1);return q((()=>{a.current=!0})),e.useCallback((async(e,r={})=>{o(a.current,W),a.current&&("number"==typeof e?t.navigate(e):await t.navigate(e,{fromRouteId:n,...r}))}),[t,n])}():function(){l(U(),"useNavigate() may be used only in the context of a <Router> component.");let t=e.useContext(B),{basename:n,navigator:a}=e.useContext(O),{matches:r}=e.useContext(H),{pathname:i}=j(),s=JSON.stringify(N(r)),c=e.useRef(!1);return q((()=>{c.current=!0})),e.useCallback(((e,r={})=>{if(o(c.current,W),!c.current)return;if("number"==typeof e)return void a.go(e);let l=P(e,JSON.parse(s),i,"path"===r.relative);null==t&&"/"!==n&&(l.pathname="/"===l.pathname?n:M([n,l.pathname])),(r.replace?a.replace:a.push)(l,r.state,r)}),[n,a,s,i,t])}()}var J=e.createContext(null);function G(t,{relative:n}={}){let{matches:a}=e.useContext(H),{pathname:r}=j(),l=JSON.stringify(N(a));return e.useMemo((()=>P(t,JSON.parse(l),r,"path"===n)),[t,l,r,n])}function K(t,n,a,r){l(U(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i,static:s}=e.useContext(O),{matches:c}=e.useContext(H),d=c[c.length-1],h=d?d.params:{},p=d?d.pathname:"/",v=d?d.pathnameBase:"/",g=d&&d.route;{let e=g&&g.path||"";re(p,!g||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let f,y=j();if(n){let e="string"==typeof n?u(n):n;l("/"===v||e.pathname?.startsWith(v),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${e.pathname}" was given in the \`location\` prop.`),f=e}else f=y;let E=f.pathname||"/",w=E;if("/"!==v){let e=v.replace(/^\//,"").split("/");w="/"+E.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=!s&&a&&a.matches&&a.matches.length>0?a.matches:m(t,{pathname:w});o(g||null!=b,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),o(null==b||void 0!==b[b.length-1].route.element||void 0!==b[b.length-1].route.Component||void 0!==b[b.length-1].route.lazy,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=function(t,n=[],a=null){if(null==t){if(!a)return null;if(a.errors)t=a.matches;else{if(0!==n.length||a.initialized||!(a.matches.length>0))return null;t=a.matches}}let r=t,o=a?.errors;if(null!=o){let e=r.findIndex((e=>e.route.id&&void 0!==o?.[e.route.id]));l(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),r=r.slice(0,Math.min(r.length,e+1))}let i=!1,s=-1;if(a)for(let e=0;e<r.length;e++){let t=r[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:n}=a,l=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!n||void 0===n[t.route.id]);if(t.route.lazy||l){i=!0,r=s>=0?r.slice(0,s+1):[r[0]];break}}}return r.reduceRight(((t,l,c)=>{let u,m=!1,d=null,h=null;a&&(u=o&&l.route.id?o[l.route.id]:void 0,d=l.route.errorElement||Q,i&&(s<0&&0===c?(re("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,h=null):s===c&&(m=!0,h=l.route.hydrateFallbackElement||null)));let p=n.concat(r.slice(0,c+1)),v=()=>{let n;return n=u?d:m?h:l.route.Component?e.createElement(l.route.Component,null):l.route.element?l.route.element:t,e.createElement(ee,{match:l,routeContext:{outlet:t,matches:p,isDataRoute:null!=a},children:n})};return a&&(l.route.ErrorBoundary||l.route.errorElement||0===c)?e.createElement(X,{location:a.location,revalidation:a.revalidation,component:d,error:u,children:v(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):v()}),null)}(b&&b.map((e=>Object.assign({},e,{params:Object.assign({},h,e.params),pathname:M([v,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?v:M([v,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),c,a,r);return n&&C?e.createElement(T.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...f},navigationType:"POP"}},C):C}function Z(){let t=function(){let t=e.useContext(V),n=function(t){let n=e.useContext(F);return l(n,te(t)),n}("useRouteError"),a=ne("useRouteError");return void 0!==t?t:n.errors?.[a]}(),n=A(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),a=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",t),s=e.createElement(e.Fragment,null,e.createElement("p",null,"💿 Hey developer 👋"),e.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",e.createElement("code",{style:i},"ErrorBoundary")," or"," ",e.createElement("code",{style:i},"errorElement")," prop on your route.")),e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},n),a?e.createElement("pre",{style:o},a):null,s)}var Q=e.createElement(Z,null),X=class extends e.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?e.createElement(H.Provider,{value:this.props.routeContext},e.createElement(V.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ee({routeContext:t,match:n,children:a}){let r=e.useContext(B);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),e.createElement(H.Provider,{value:t},a)}function te(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ne(t){let n=function(t){let n=e.useContext(H);return l(n,te(t)),n}(t),a=n.matches[n.matches.length-1];return l(a.route.id,`${t} can only be used on routes that contain a unique "id"`),a.route.id}var ae={};function re(e,t,n){t||ae[e]||(ae[e]=!0,o(!1,n))}function le({to:t,replace:n,state:a,relative:r}){l(U(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=e.useContext(O);o(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=e.useContext(H),{pathname:c}=j(),u=Y(),m=P(t,N(s),c,"path"===r),d=JSON.stringify(m);return e.useEffect((()=>{u(JSON.parse(d),{replace:n,state:a,relative:r})}),[u,d,r,n,a]),null}function oe(t){return function(t){let n=e.useContext(H).outlet;return n?e.createElement(J.Provider,{value:t},n):n}(t.context)}function ie(e){l(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function se({basename:t="/",children:n=null,location:a,navigationType:r="POP",navigator:i,static:s=!1}){l(!U(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=t.replace(/^\/*/,"/"),m=e.useMemo((()=>({basename:c,navigator:i,static:s,future:{}})),[c,i,s]);"string"==typeof a&&(a=u(a));let{pathname:d="/",search:h="",hash:p="",state:v=null,key:g="default"}=a,f=e.useMemo((()=>{let e=S(d,c);return null==e?null:{location:{pathname:e,search:h,hash:p,state:v,key:g},navigationType:r}}),[c,d,h,p,v,g,r]);return o(null!=f,`<Router basename="${c}"> is not able to match the URL "${d}${h}${p}" because it does not start with the basename, so the <Router> won't render anything.`),null==f?null:e.createElement(O.Provider,{value:m},e.createElement(T.Provider,{children:n,value:f}))}function ce({children:e,location:t}){return K(ue(e),t)}function ue(t,n=[]){let a=[];return e.Children.forEach(t,((t,r)=>{if(!e.isValidElement(t))return;let o=[...n,r];if(t.type===e.Fragment)return void a.push.apply(a,ue(t.props.children,o));l(t.type===ie,`[${"string"==typeof t.type?t.type:t.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),l(!t.props.index||!t.props.children,"An index route cannot have child routes.");let i={id:t.props.id||o.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,hydrateFallbackElement:t.props.hydrateFallbackElement,HydrateFallback:t.props.HydrateFallback,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:!0===t.props.hasErrorBoundary||null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(i.children=ue(t.props.children,o)),a.push(i)})),a}e.memo((function({routes:e,future:t,state:n}){return K(e,void 0,n,t)})),e.Component;var me="get",de="application/x-www-form-urlencoded";function he(e){return null!=e&&"string"==typeof e.tagName}var pe=null,ve=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ge(e){return null==e||ve.has(e)?e:(o(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${de}"`),null)}function fe(e,t){if(!1===e||null==e)throw new Error(t)}function ye(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Ee(e,t,n,a,r,l){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,i=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===l?t.filter(((e,t)=>o(e,t)||i(e,t))):"data"===l?t.filter(((t,l)=>{let s=a.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(o(t,l)||i(t,l))return!0;if(t.route.shouldRevalidate){let a=t.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof a)return a}return!0})):[]}function we(e,t,{includeHydrateFallback:n}={}){return a=e.map((e=>{let a=t.routes[e.route.id];if(!a)return[];let r=[a.module];return a.clientActionModule&&(r=r.concat(a.clientActionModule)),a.clientLoaderModule&&(r=r.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(r=r.concat(a.hydrateFallbackModule)),a.imports&&(r=r.concat(a.imports)),r})).flat(1),[...new Set(a)];var a}function be(){let t=e.useContext(B);return fe(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Ce(){let t=e.useContext(F);return fe(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}Symbol("SingleFetchRedirect"),e.Component;var Le=e.createContext(void 0);function xe(){let t=e.useContext(Le);return fe(t,"You must render this element inside a <HydratedRouter> element"),t}function Se(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function ke({page:t,...n}){let{router:a}=be(),r=e.useMemo((()=>m(a.routes,t,a.basename)),[a.routes,t,a.basename]);return r?e.createElement(Pe,{page:t,matches:r,...n}):null}function Ne(t){let{manifest:n,routeModules:a}=xe(),[r,l]=e.useState([]);return e.useEffect((()=>{let e=!1;return async function(e,t,n){return function(e,t){let n=new Set,a=new Set(t);return e.reduce(((e,r)=>{if(t&&(null==(l=r)||"string"!=typeof l.page)&&"script"===r.as&&r.href&&a.has(r.href))return e;var l;let o=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}(r));return n.has(o)||(n.add(o),e.push({key:o,link:r})),e}),[])}((await Promise.all(e.map((async e=>{let a=t.routes[e.route.id];if(a){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}(a,n);return e.links?e.links():[]}return[]})))).flat(1).filter(ye).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(t,n,a).then((t=>{e||l(t)})),()=>{e=!0}}),[t,n,a]),r}function Pe({page:t,matches:n,...a}){let r=j(),{manifest:l,routeModules:o}=xe(),{loaderData:i,matches:s}=Ce(),c=e.useMemo((()=>Ee(t,n,s,l,r,"data")),[t,n,s,l,r]),u=e.useMemo((()=>Ee(t,n,s,l,r,"assets")),[t,n,s,l,r]),m=e.useMemo((()=>{if(t===r.pathname+r.search+r.hash)return[];let e=new Set,a=!1;if(n.forEach((t=>{let n=l.routes[t.route.id];n&&n.hasLoader&&(!c.some((e=>e.route.id===t.route.id))&&t.route.id in i&&o[t.route.id]?.shouldRevalidate||n.hasClientLoader?a=!0:e.add(t.route.id))})),0===e.size)return[];let s=function(e){let t="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===t.pathname?t.pathname="_root.data":t.pathname=`${t.pathname.replace(/\/$/,"")}.data`,t}(t);return a&&e.size>0&&s.searchParams.set("_routes",n.filter((t=>e.has(t.route.id))).map((e=>e.route.id)).join(",")),[s.pathname+s.search]}),[i,r,l,c,n,t,o]),d=e.useMemo((()=>we(u,l)),[u,l]),h=Ne(u);return e.createElement(e.Fragment,null,m.map((t=>e.createElement("link",{key:t,rel:"prefetch",as:"fetch",href:t,...a}))),d.map((t=>e.createElement("link",{key:t,rel:"modulepreload",href:t,...a}))),h.map((({key:t,link:n})=>e.createElement("link",{key:t,...n}))))}Le.displayName="FrameworkContext";function Me(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}var $e="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{$e&&(window.__reactRouterVersion="7.2.0")}catch(e){}function _e({basename:t,children:n,window:a}){let l=e.useRef();null==l.current&&(l.current=r({window:a,v5Compat:!0}));let o=l.current,[i,s]=e.useState({action:o.action,location:o.location}),c=e.useCallback((t=>{e.startTransition((()=>s(t)))}),[s]);return e.useLayoutEffect((()=>o.listen(c)),[o,c]),e.createElement(se,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:o})}var Ie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ae=e.forwardRef((function({onClick:t,discover:n="render",prefetch:a="none",relative:r,reloadDocument:i,replace:s,state:u,target:m,to:d,preventScrollReset:h,viewTransition:p,...v},g){let f,{basename:y}=e.useContext(O),E="string"==typeof d&&Ie.test(d),w=!1;if("string"==typeof d&&E&&(f=d,$e))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=S(t.pathname,y);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:w=!0}catch(e){o(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let b=function(t,{relative:n}={}){l(U(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:r}=e.useContext(O),{hash:o,pathname:i,search:s}=G(t,{relative:n}),c=i;return"/"!==a&&(c="/"===i?a:M([a,i])),r.createHref({pathname:c,search:s,hash:o})}(d,{relative:r}),[C,L,x]=function(t,n){let a=e.useContext(Le),[r,l]=e.useState(!1),[o,i]=e.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:u,onMouseLeave:m,onTouchStart:d}=n,h=e.useRef(null);e.useEffect((()=>{if("render"===t&&i(!0),"viewport"===t){let e=new IntersectionObserver((e=>{e.forEach((e=>{i(e.isIntersecting)}))}),{threshold:.5});return h.current&&e.observe(h.current),()=>{e.disconnect()}}}),[t]),e.useEffect((()=>{if(r){let e=setTimeout((()=>{i(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let p=()=>{l(!0)},v=()=>{l(!1),i(!1)};return a?"intent"!==t?[o,h,{}]:[o,h,{onFocus:Se(s,p),onBlur:Se(c,v),onMouseEnter:Se(u,p),onMouseLeave:Se(m,v),onTouchStart:Se(d,p)}]:[!1,h,{}]}(a,v),k=function(t,{target:n,replace:a,state:r,preventScrollReset:l,relative:o,viewTransition:i}={}){let s=Y(),u=j(),m=G(t,{relative:o});return e.useCallback((e=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(e,n)){e.preventDefault();let n=void 0!==a?a:c(u)===c(m);s(t,{replace:n,state:r,preventScrollReset:l,relative:o,viewTransition:i})}}),[u,s,m,a,r,n,t,l,o,i])}(d,{replace:s,state:u,target:m,preventScrollReset:h,relative:r,viewTransition:p}),N=e.createElement("a",{...v,...x,href:f||b,onClick:w||i?t:function(e){t&&t(e),e.defaultPrevented||k(e)},ref:Me(g,L),target:m,"data-discover":E||"render"!==n?void 0:"true"});return C&&!E?e.createElement(e.Fragment,null,N,e.createElement(ke,{page:b})):N}));function Re(t){let n=e.useContext(B);return l(n,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(t)),n}Ae.displayName="Link",e.forwardRef((function({"aria-current":t="page",caseSensitive:n=!1,className:a="",end:r=!1,style:o,to:i,viewTransition:s,children:c,...u},m){let d=G(i,{relative:u.relative}),h=j(),p=e.useContext(F),{navigator:v,basename:g}=e.useContext(O),f=null!=p&&function(t,n={}){let a=e.useContext(z);l(null!=a,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Re("useViewTransitionState"),o=G(t,{relative:n.relative});if(!a.isTransitioning)return!1;let i=S(a.currentLocation.pathname,r)||a.currentLocation.pathname,s=S(a.nextLocation.pathname,r)||a.nextLocation.pathname;return null!=L(o.pathname,s)||null!=L(o.pathname,i)}(d)&&!0===s,y=v.encodeLocation?v.encodeLocation(d).pathname:d.pathname,E=h.pathname,w=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(E=E.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=S(w,g)||w);const b="/"!==y&&y.endsWith("/")?y.length-1:y.length;let C,x=E===y||!r&&E.startsWith(y)&&"/"===E.charAt(b),k=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),N={isActive:x,isPending:k,isTransitioning:f},P=x?t:void 0;C="function"==typeof a?a(N):[a,x?"active":null,k?"pending":null,f?"transitioning":null].filter(Boolean).join(" ");let M="function"==typeof o?o(N):o;return e.createElement(Ae,{...u,"aria-current":P,className:C,ref:m,style:M,to:i,viewTransition:s},"function"==typeof c?c(N):c)})).displayName="NavLink",e.forwardRef((({discover:t="render",fetcherKey:n,navigate:a,reloadDocument:r,replace:o,state:i,method:s=me,action:u,onSubmit:m,relative:d,preventScrollReset:h,viewTransition:p,...v},g)=>{let f=function(){let{router:t}=Re("useSubmit"),{basename:n}=e.useContext(O),a=ne("useRouteId");return e.useCallback((async(e,r={})=>{let{action:l,method:o,encType:i,formData:s,body:c}=function(e,t){let n,a,r,l,o;if(he(i=e)&&"form"===i.tagName.toLowerCase()){let o=e.getAttribute("action");a=o?S(o,t):null,n=e.getAttribute("method")||me,r=ge(e.getAttribute("enctype"))||de,l=new FormData(e)}else if(function(e){return he(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return he(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let o=e.form;if(null==o)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let i=e.getAttribute("formaction")||o.getAttribute("action");if(a=i?S(i,t):null,n=e.getAttribute("formmethod")||o.getAttribute("method")||me,r=ge(e.getAttribute("formenctype"))||ge(o.getAttribute("enctype"))||de,l=new FormData(o,e),!function(){if(null===pe)try{new FormData(document.createElement("form"),0),pe=!1}catch(e){pe=!0}return pe}()){let{name:t,type:n,value:a}=e;if("image"===n){let e=t?`${t}.`:"";l.append(`${e}x`,"0"),l.append(`${e}y`,"0")}else t&&l.append(t,a)}}else{if(he(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=me,a=null,r=de,o=e}var i;return l&&"text/plain"===r&&(o=l,l=void 0),{action:a,method:n.toLowerCase(),encType:r,formData:l,body:o}}(e,n);if(!1===r.navigate){let e=r.fetcherKey||Be();await t.fetch(e,a,r.action||l,{preventScrollReset:r.preventScrollReset,formData:s,body:c,formMethod:r.method||o,formEncType:r.encType||i,flushSync:r.flushSync})}else await t.navigate(r.action||l,{preventScrollReset:r.preventScrollReset,formData:s,body:c,formMethod:r.method||o,formEncType:r.encType||i,replace:r.replace,state:r.state,fromRouteId:a,flushSync:r.flushSync,viewTransition:r.viewTransition})}),[t,n,a])}(),y=function(t,{relative:n}={}){let{basename:a}=e.useContext(O),r=e.useContext(H);l(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...G(t||".",{relative:n})},s=j();if(null==t){i.search=s.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();i.search=n?`?${n}`:""}}return t&&"."!==t||!o.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==a&&(i.pathname="/"===i.pathname?a:M([a,i.pathname])),c(i)}(u,{relative:d}),E="get"===s.toLowerCase()?"get":"post",w="string"==typeof u&&Ie.test(u);return e.createElement("form",{ref:g,method:E,action:y,onSubmit:r?m:e=>{if(m&&m(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,r=t?.getAttribute("formmethod")||s;f(t||e.currentTarget,{fetcherKey:n,method:r,navigate:a,replace:o,state:i,relative:d,preventScrollReset:h,viewTransition:p})},...v,"data-discover":w||"render"!==t?void 0:"true"})})).displayName="Form";var De=0,Be=()=>`__${String(++De)}__`;new TextEncoder;const Fe=({type:t="button",href:n="",target:a="",onClick:r=null,className:l,variant:o="primary",size:i="",children:s,disabled:c=!1,...u})=>{const m=`bPlButton ${o?`variant-${o}`:""} ${i?`size-${i}`:""} ${l||""} ${c?"bPlButton-disabled":""}`;return"function"!=typeof r&&n?(0,e.createElement)("a",{href:n,target:a,className:m,...u},s):(0,e.createElement)("button",{type:t,className:m,...u,onClick:r},s)},ze=({className:t="",text:n="Loading...",orientation:a="horizontal",iconSize:r="2rem",iconThickness:l="4px",textSize:o="18px"})=>(0,e.createElement)("div",{className:`bPlLoading ${t}`},(0,e.createElement)("div",{className:`loadingContent ${a}`},(0,e.createElement)("div",{className:"loadingSpinner",style:{width:r,height:r,borderWidth:l}}),n&&(0,e.createElement)("p",{className:"loadingText",style:{fontSize:o}},n)));const Oe=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,e.createElement)("path",{d:"M480 272C480 317.9 465.1 360.3 440 394.7L566.6 521.4C579.1 533.9 579.1 554.2 566.6 566.7C554.1 579.2 533.8 579.2 521.3 566.7L394.7 440C360.3 465.1 317.9 480 272 480C157.1 480 64 386.9 64 272C64 157.1 157.1 64 272 64C386.9 64 480 157.1 480 272zM272 416C351.5 416 416 351.5 416 272C416 192.5 351.5 128 272 128C192.5 128 128 192.5 128 272C128 351.5 192.5 416 272 416z"})),Te=(0,e.createElement)("svg",{className:"angelDown",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,e.createElement)("path",{d:"M297.4 470.6C309.9 483.1 330.2 483.1 342.7 470.6L534.7 278.6C547.2 266.1 547.2 245.8 534.7 233.3C522.2 220.8 501.9 220.8 489.4 233.3L320 402.7L150.6 233.4C138.1 220.9 117.8 220.9 105.3 233.4C92.8 245.9 92.8 266.2 105.3 278.7L297.3 470.7z"})),He=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,e.createElement)("path",{d:"M320 576C178.6 576 64 461.4 64 320C64 178.6 178.6 64 320 64C461.4 64 576 178.6 576 320C576 461.4 461.4 576 320 576zM320 384C302.3 384 288 398.3 288 416C288 433.7 302.3 448 320 448C337.7 448 352 433.7 352 416C352 398.3 337.7 384 320 384zM320 192C301.8 192 287.3 207.5 288.6 225.7L296 329.7C296.9 342.3 307.4 352 319.9 352C332.5 352 342.9 342.3 343.8 329.7L351.2 225.7C352.5 207.5 338.1 192 319.8 192z"})),Ve=t=>{const{isPremium:n,demoInfo:a}=t,{allInOneLabel:r,allInOneLink:l,demos:o}=a,[i,s]=(0,e.useState)(o[0]),[c,u]=(0,e.useState)(0),[m,d]=(0,e.useState)(!0),[h,p]=(0,e.useState)(a.demos[0].children?.[0]||a.demos[0]),[v,g]=(0,e.useState)(a.demos[0].title),[f,y]=(0,e.useState)(""),E=e=>{d(!0),e.url&&"#"!==e.url&&p(e)},w=(0,e.useMemo)((()=>{if(!f.trim())return a.demos;const e=f.toLowerCase();return a.demos.filter((t=>{const n=t.title.toLowerCase().includes(e),a=t.children?.some((t=>t.title.toLowerCase().includes(e)));return a&&!n&&g(t.title),n||a})).map((t=>t.children?{...t,children:t.children.filter((n=>n.title.toLowerCase().includes(e)||t.title.toLowerCase().includes(e)))}:t))}),[f]),b=(0,e.useRef)(null),C=(0,e.useRef)(null);return(0,e.useEffect)((()=>{const e=b.current,t=C.current,n=e?.clientHeight,a=t?.scrollHeight;function r(){t.style.transform=`translateY(-${Number(a)-parseInt(n)}px)`}function l(){t.style.transform="translateY(0px)"}return e&&t&&Number(a)>parseInt(n)&&(e.addEventListener("mouseover",r),e.addEventListener("mouseout",l)),()=>{e&&t&&(e.removeEventListener("mouseover",r),e.removeEventListener("mouseout",l))}}),[i,c,m]),(0,e.createElement)("div",{className:"bPlDashboardDemos bPlDashboardCard"},(0,e.createElement)("div",{className:"sidebar"},(0,e.createElement)("div",{className:"sidebarHeader"},(0,e.createElement)("p",null,"Search"),(0,e.createElement)("div",{className:"search"},Oe,(0,e.createElement)("input",{type:"text",placeholder:"Search demo...",value:f,onChange:e=>y(e.target.value)})),(0,e.createElement)("div",{className:"bPlDashboardButtons"},!n&&(0,e.createElement)(Fe,{href:"#pricing"},"Buy Now"),r&&(0,e.createElement)(Fe,{href:l,target:"_blank",variant:"secondary"},r))),(0,e.createElement)("div",{className:"sidebarList"},w.length>0?w.map(((t,n)=>{const{icon:a,title:r,url:l,children:i}=t,c=i&&i.length>0,m=v===r;return(0,e.createElement)("div",{key:n,className:"demoItem"},c?(0,e.createElement)("div",{className:"accordion "+(m?"expanded":"")},(0,e.createElement)("button",{onClick:()=>(e=>{d(!0),s(o[e]),u(e),g(o[e].title),p(o[e]?.children?.[0])})(n),className:"parentDemo "+(m?"active":"")},"string"==typeof a?(0,e.createElement)("span",{className:"icon",dangerouslySetInnerHTML:{__html:a}}):a||null,(0,e.createElement)("span",{className:"text-sm font-semibold"},r),Te),(0,e.createElement)("ul",{className:m?"expanded":"",ref:e=>{e&&(m?"block"!==e.style.display&&function(e,t=300){e.style.removeProperty("display");let n=window.getComputedStyle(e).display;"none"===n&&(n="block"),e.style.display=n;let a=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.offsetHeight,e.style.transition=`height ${t}ms ease`,e.style.height=a+"px",window.setTimeout((()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition")}),t)}(e):function(e,t=300){e.style.height=e.offsetHeight+"px",e.style.overflow="hidden",e.offsetHeight,e.style.transition=`height ${t}ms ease`,e.style.height=0,window.setTimeout((()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition")}),t)}(e))}},i.map(((t,n)=>(0,e.createElement)("li",{key:n,className:h.url===t.url?"active":"",onClick:e=>{e.preventDefault(),e.stopPropagation(),E(t)}},t.title))))):(0,e.createElement)("button",{className:"parentDemo "+(h.url===l?"active":""),onClick:e=>{e.preventDefault(),e.stopPropagation(),E(t),g(null)}},"string"==typeof a?(0,e.createElement)("span",{className:"icon",dangerouslySetInnerHTML:{__html:a}}):a||null,(0,e.createElement)("span",null,r)))})):(0,e.createElement)("div",{className:"notFound"},He,(0,e.createElement)("p",{className:"text-sm text-gray-500"},"No matching results")))),(0,e.createElement)("div",{className:"main"},(0,e.createElement)("div",{className:"mainHeader"},(0,e.createElement)("div",{className:"headerInfo"},(0,e.createElement)("h3",null,v?`${i?.title||""} - `:"",h?.title||"")),(0,e.createElement)("div",{className:"bPlDashboardButtons"},!n&&(0,e.createElement)(Fe,{href:"#pricing"},"Buy Now"),r&&(0,e.createElement)(Fe,{href:l,target:"_blank",variant:"secondary"},r))),(0,e.createElement)("div",{className:"canvas"},m&&(0,e.createElement)(ze,{text:"Demo Loading...",orientation:"vertical"}),"iframe"===h.type?(0,e.createElement)("iframe",{src:h.url,title:`${h.title} Demo`,onLoad:()=>d(!1),sandbox:"allow-scripts allow-same-origin allow-popups allow-forms"}):(0,e.createElement)("div",{className:"canvasImg",ref:b},(0,e.createElement)("img",{src:h.url,alt:`${h.title} Demo`,onLoad:()=>d(!1),ref:C})))))};n(647);const Ue=({pricingInfo:t,options:n})=>{const{pluginId:a,planId:r,licenses:l}=t,[o,i]=(0,e.useState)({}),[s,c]=(0,e.useState)(!1);(0,e.useEffect)((()=>{if(a){let e=!0;const t=`https://api.bplugins.com/wp-json/bpl/v1/products/${a}`;return c(!0),fetch(t).then((e=>{if(!e.ok)throw new Error(`${e.status} ${e.statusText}`);return e.json()})).then((t=>{e&&i(t)})).catch((t=>{e&&(console.error(t.message||"Fetch error"),i({}))})).finally((()=>{e&&c(!1)})),()=>{e=!1}}}),[a]);const[u,m]=(0,e.useState)([]),[d,h]=(0,e.useState)(u?.find((e=>e.isDefault))?.name||u[0]?.name);if((0,e.useEffect)((()=>{if(o?.id&&r){const{plans:e}=o||{},t=e?.find((e=>parseInt(e.id)===parseInt(r)))||e?.[0]||{},n=t?.pricing?.[0];if(n&&"object"==typeof n){let e=[];n.hasOwnProperty("monthly")&&e.push({name:"monthly",label:"Billed Monthly"}),n.hasOwnProperty("annual")&&e.push({name:"annual",label:"Billed Yearly",isDefault:!0}),n.hasOwnProperty("lifetime")&&e.push({name:"lifetime",label:"Lifetime"}),m(e),h(e?.find((e=>e.isDefault))?.name||e[0]?.name)}else m([]),h("")}}),[o,s,r]),s)return(0,e.createElement)("div",{className:"bPlDashboardPricing bPlDashboardBox"},(0,e.createElement)("h2",null,"Loading..."));if(!o||!o?.id)return null;const{plans:p}=o||{},v=p?.find((e=>parseInt(e.id)===parseInt(r)))||p?.[0]||{},{pricing:g=[]}=v||{};return(0,e.createElement)("div",{className:"bPlDashboardPricing bPlDashboardCard"},u?.length>1&&(0,e.createElement)("div",{className:"cycles"},u.map((t=>(0,e.createElement)("button",{key:t.name,className:t.name===d?"active":"",onClick:()=>h(t.name)},t.label)))),1===u?.length&&"lifetime"===u[0]?.name&&(0,e.createElement)("h2",{className:"pricingTitle"},"One-time payment, lifetime access"),(0,e.createElement)("div",{className:"plans"},g?.length?g?.map(((a,r)=>l.includes(a?.licenses)&&(0,e.createElement)(je,{key:r,pricingInfo:t,product:o,price:a,cycle:d,options:n}))):(0,e.createElement)("h3",{style:{gridColumn:"1 / -1",textAlign:"center"}},"Select a plan")))},je=({pricingInfo:t,product:n,price:a,cycle:r,options:l})=>{const{logo:o,planId:i,button:s,featured:c}=t,{title:u,id:m,public_key:d,icon:h}=n||{},{licenses:p}=a||{},v=a?.[r]+"",g=p?1===p?"Single Site":`${p} Sites`:"Unlimited Sites",f=c?.selected===(p||"null");return(0,e.createElement)("div",{className:"plan "+(f?"bestValue":""),"data-best-text":c?.text},(0,e.createElement)("h3",{className:"planName wp-block-heading"},g),(0,e.createElement)("div",{className:"price"},"$",v),(0,e.createElement)("p",{className:"note"},p?1===p?"1 site":`${p} sites`:"Unlimited site"," license for ","monthly"===r?"1 month":"annual"===r?"1 year":r),(0,e.createElement)("ul",{className:"wp-block-list features checkList "+(f?"whiteCheck":"themeCheck")},((e,t)=>{const n=e.find((e=>"free"===e.name))?.features?.map((e=>e.title)),a=e.find((e=>"pro"===e.name))?.features?.filter((e=>!n.includes(e.title))).map((e=>e.title)),r={free:n,pro:a},l=e.find((e=>parseInt(e.id)===parseInt(t)))?.name;return r[l]||e.find((e=>parseInt(e.id)===parseInt(t)))?.features?.map((e=>e.title))||[]})(n.plans,i).map(((t,n)=>(0,e.createElement)("li",{key:n,dangerouslySetInnerHTML:{__html:t}})))),(0,e.createElement)(Fe,{className:f?"white":"",onClick:e=>{e.preventDefault(),new FS.Checkout({plugin_id:m,plan_id:i,public_key:d}).open({image:o||h,title:u,licenses:p,billing_cycle:r,...l})}},s.label))},We="#146EF5",qe=((0,e.createElement)("svg",{xmlns:"https://www.w3.org/2000/svg",width:15,height:15,viewBox:"0 0 548.172 548.172"},(0,e.createElement)("path",{fill:We,d:"M534.75 49.965c-8.945-8.945-19.694-13.422-32.261-13.422H45.681c-12.562 0-23.313 4.477-32.264 13.422C4.471 58.913 0 69.663 0 82.226v310.633c0 12.566 4.471 23.315 13.417 32.265 8.951 8.945 19.702 13.414 32.264 13.414h155.318c0 7.231-1.524 14.661-4.57 22.269-3.044 7.614-6.09 14.273-9.136 19.981-3.042 5.715-4.565 9.897-4.565 12.56 0 4.948 1.807 9.24 5.424 12.847 3.615 3.621 7.898 5.435 12.847 5.435h146.179c4.949 0 9.233-1.813 12.848-5.435 3.62-3.606 5.427-7.898 5.427-12.847 0-2.468-1.526-6.611-4.571-12.415-3.046-5.801-6.092-12.566-9.134-20.267-3.046-7.71-4.569-15.085-4.569-22.128h155.318c12.56 0 23.309-4.469 32.254-13.414 8.949-8.949 13.422-19.698 13.422-32.265V82.226c.003-12.563-4.474-23.313-13.423-32.261zm-23.123 269.803c0 2.475-.903 4.613-2.711 6.424-1.81 1.804-3.952 2.707-6.427 2.707H45.681c-2.473 0-4.615-.903-6.423-2.707-1.807-1.817-2.712-3.949-2.712-6.424V82.226c0-2.475.902-4.615 2.712-6.423 1.809-1.805 3.951-2.712 6.423-2.712h456.815c2.471 0 4.617.904 6.42 2.712 1.808 1.809 2.711 3.949 2.711 6.423v237.542z"})),(0,e.createElement)("svg",{xmlns:"https://www.w3.org/2000/svg",width:15,height:15,viewBox:"0 0 512 512"},(0,e.createElement)("path",{fill:We,d:"M394.667 0H117.333C87.936 0 64 23.936 64 53.333v405.333C64 488.064 87.936 512 117.333 512h277.333C424.064 512 448 488.064 448 458.667V53.333C448 23.936 424.064 0 394.667 0zM256 480c-11.755 0-21.333-9.579-21.333-21.333s9.579-21.333 21.333-21.333 21.333 9.579 21.333 21.333S267.755 480 256 480zm149.333-64c0 5.888-4.779 10.667-10.667 10.667H117.333c-5.888 0-10.667-4.779-10.667-10.667V53.333c0-5.888 4.779-10.667 10.667-10.667h277.333c5.888 0 10.667 4.779 10.667 10.667V416z"})),(0,e.createElement)("svg",{xmlns:"https://www.w3.org/2000/svg",width:15,height:15,viewBox:"0 0 503.604 503.604"},(0,e.createElement)("path",{fill:We,d:"M337.324 0H167.192c-28.924 0-53.5 23.584-53.5 52.5v398.664c0 28.916 24.056 52.44 52.98 52.44l170.412-.184c28.92 0 52.58-23.528 52.58-52.448l.248-398.5C389.908 23.452 366.364 0 337.324 0zM227.68 31.476h49.36c4.336 0 7.868 3.52 7.868 7.868 0 4.348-3.532 7.868-7.868 7.868h-49.36a7.865 7.865 0 01-7.868-7.868 7.865 7.865 0 017.868-7.868zm-29.66 2.504c2.916-2.912 8.224-2.952 11.136 0a7.973 7.973 0 012.324 5.588c0 2.048-.864 4.088-2.324 5.548-1.452 1.46-3.504 2.32-5.548 2.32-2.084 0-4.088-.86-5.588-2.32-1.452-1.456-2.28-3.5-2.28-5.548-.004-2.088.828-4.132 2.28-5.588zm52.752 454.028c-12.984 0-23.544-10.568-23.544-23.548 0-12.984 10.56-23.548 23.544-23.548s23.544 10.564 23.544 23.548c0 12.98-10.564 23.548-23.544 23.548zm114.716-63.1H141.232V74.756h224.256v350.152z"})),(0,e.createElement)("svg",{xmlns:"https://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 330 330"},(0,e.createElement)("path",{d:"M100.606 229.393c-5.857-5.857-15.355-5.857-21.213 0-5.858 5.857-5.858 15.355 0 21.213l75 75A14.954 14.954 0 00165 330a14.95 14.95 0 0010.606-4.394l75-75c5.858-5.857 5.858-15.355 0-21.213-5.857-5.857-15.355-5.857-21.213 0L180 278.787V51.212l49.394 49.394A14.95 14.95 0 00240 105a14.95 14.95 0 0010.606-4.394c5.858-5.857 5.858-15.355 0-21.213l-75-75c-5.857-5.858-15.355-5.858-21.213 0l-75 75c-5.858 5.857-5.858 15.355 0 21.213 5.857 5.857 15.355 5.857 21.213 0L150 51.212v227.574l-49.394-49.393z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 430.848 430.848"},(0,e.createElement)("path",{d:"M286.244,249.537l10.992-45.639c0.035-0.143,0.071-0.285,0.109-0.428c2.909-10.867,11.469-19.426,22.339-22.338 l33.347-8.936c-5.472-6.525-13.678-10.682-22.839-10.682h-9.837c-2.511-7.895-5.7-15.59-9.515-22.957l6.96-6.959 c11.622-11.623,11.622-30.535,0-42.156L296.76,68.4c-5.631-5.629-13.117-8.73-21.079-8.73c-7.961,0-15.447,3.102-21.078,8.732 l-6.96,6.959c-7.369-3.814-15.064-7.004-22.956-9.516V56.01c0-16.436-13.372-29.807-29.808-29.807h-29.758 c-16.436,0-29.808,13.371-29.808,29.807v9.836c-7.893,2.512-15.588,5.701-22.957,9.516l-6.96-6.961 c-5.631-5.629-13.117-8.73-21.078-8.73c-7.961,0-15.447,3.102-21.079,8.732L42.2,89.443c-11.622,11.621-11.622,30.533,0,42.156 l6.959,6.959c-3.815,7.367-7.004,15.063-9.515,22.957h-9.837C13.372,161.516,0,174.887,0,191.324v29.758 c0,16.436,13.372,29.807,29.808,29.807h9.837c2.511,7.895,5.7,15.588,9.515,22.957l-6.96,6.959 c-11.623,11.623-11.623,30.533,0,42.158l21.041,21.039c5.632,5.631,13.118,8.732,21.079,8.732s15.447-3.102,21.077-8.732 l6.96-6.959c7.366,3.815,15.061,7.002,22.957,9.514v9.838c0,16.436,13.372,29.809,29.808,29.809h25.809 c-2.388-5.691-3.644-11.852-3.645-18.209c-0.002-12.572,4.892-24.391,13.781-33.279L286.244,249.537z M180,286.201 c-44.112,0-80-35.887-80-79.998c0-44.113,35.888-80.002,80-80.002s80,35.889,80,80.002C260,250.314,224.112,286.201,180,286.201z"}),(0,e.createElement)("path",{d:"M425.267,218.734l-0.319-0.32c-0.939-0.941-2.189-1.428-3.541-1.469c-1.326,0-2.598,0.525-3.536,1.465l-21.596,21.596 c-3.304,3.305-7.699,5.125-12.375,5.125c-4.676,0-9.072-1.82-12.379-5.129c-3.307-3.305-5.128-7.701-5.128-12.377 c0.001-4.676,1.821-9.072,5.126-12.377l21.596-21.596c0.939-0.939,1.465-2.213,1.464-3.539c-0.001-1.328-0.53-2.6-1.47-3.537 l-0.314-0.313c-3.605-3.605-8.399-5.592-13.499-5.592c-1.665,0-3.325,0.219-4.936,0.65l-44.348,11.885 c-6.568,1.76-11.741,6.932-13.498,13.496c-0.011,0.041-0.021,0.08-0.031,0.121l-11.817,49.063l-87.667,87.666 c-6.528,6.527-10.122,15.207-10.121,24.44c0.002,9.232,3.598,17.91,10.126,24.439l2.088,2.088 c6.528,6.529,15.209,10.125,24.443,10.125h0c9.231,0,17.909-3.594,24.437-10.121l87.667-87.666l49.061-11.816 c0.041-0.01,0.082-0.022,0.122-0.031c6.563-1.758,11.735-6.928,13.497-13.496l11.883-44.352 C431.959,230.598,430.066,223.535,425.267,218.734z M257.26,368.406c-1.888,1.889-4.399,2.93-7.071,2.93 c-2.671,0-5.183-1.041-7.072-2.932c-1.887-1.885-2.928-4.397-2.928-7.068c-0.001-2.672,1.041-5.185,2.931-7.072 c1.886-1.887,4.398-2.928,7.069-2.928c2.672,0,5.184,1.041,7.072,2.93c1.887,1.885,2.928,4.396,2.928,7.068 C260.189,364.006,259.148,366.518,257.26,368.406z M316.194,305.935L274.82,347.31c-1.416,1.416-3.3,2.197-5.303,2.197 c-2.003,0-3.887-0.781-5.303-2.197c-1.417-1.416-2.197-3.299-2.197-5.303s0.78-3.887,2.197-5.303l41.374-41.375 c1.417-1.418,3.3-2.197,5.303-2.197s3.887,0.779,5.303,2.197c1.417,1.416,2.197,3.299,2.197,5.303S317.611,304.519,316.194,305.935 z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"0 0 448 512"},(0,e.createElement)("path",{d:"M96 0C43 0 0 43 0 96V416c0 53 43 96 96 96H384h32c17.7 0 32-14.3 32-32s-14.3-32-32-32V384c17.7 0 32-14.3 32-32V32c0-17.7-14.3-32-32-32H384 96zm0 384H352v64H96c-17.7 0-32-14.3-32-32s14.3-32 32-32zm32-240c0-8.8 7.2-16 16-16H336c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16zm16 48H336c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16s7.2-16 16-16z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"0 0 512 512"},(0,e.createElement)("path",{d:"M256 48C141.1 48 48 141.1 48 256v40c0 13.3-10.7 24-24 24s-24-10.7-24-24V256C0 114.6 114.6 0 256 0S512 114.6 512 256V400.1c0 48.6-39.4 88-88.1 88L313.6 488c-8.3 14.3-23.8 24-41.6 24H240c-26.5 0-48-21.5-48-48s21.5-48 48-48h32c17.8 0 33.3 9.7 41.6 24l110.4 .1c22.1 0 40-17.9 40-40V256c0-114.9-93.1-208-208-208zM144 208h16c17.7 0 32 14.3 32 32V352c0 17.7-14.3 32-32 32H144c-35.3 0-64-28.7-64-64V272c0-35.3 28.7-64 64-64zm224 0c35.3 0 64 28.7 64 64v48c0 35.3-28.7 64-64 64H352c-17.7 0-32-14.3-32-32V240c0-17.7 14.3-32 32-32h16z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"0 0 576 512"},(0,e.createElement)("path",{d:"M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"0 0 448 512"},(0,e.createElement)("path",{d:"M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 448 512"},(0,e.createElement)("path",{d:"M384 336H192c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16l140.1 0L400 115.9V320c0 8.8-7.2 16-16 16zM192 384H384c35.3 0 64-28.7 64-64V115.9c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1H192c-35.3 0-64 28.7-64 64V320c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H256c35.3 0 64-28.7 64-64V416H272v32c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V192c0-8.8 7.2-16 16-16H96V128H64z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960"},(0,e.createElement)("path",{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"}))),Ye=((0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 320 512",width:16,height:16},(0,e.createElement)("path",{d:"M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z"})),(0,e.createElement)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,e.createElement)("path",{d:"M96 320C96 302.3 110.3 288 128 288L512 288C529.7 288 544 302.3 544 320C544 337.7 529.7 352 512 352L128 352C110.3 352 96 337.7 96 320z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,e.createElement)("path",{d:"M352 128C352 110.3 337.7 96 320 96C302.3 96 288 110.3 288 128L288 288L128 288C110.3 288 96 302.3 96 320C96 337.7 110.3 352 128 352L288 352L288 512C288 529.7 302.3 544 320 544C337.7 544 352 529.7 352 512L352 352L512 352C529.7 352 544 337.7 544 320C544 302.3 529.7 288 512 288L352 288L352 128z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},(0,e.createElement)("path",{d:"M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},(0,e.createElement)("path",{d:"M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"})),(0,e.createElement)("svg",{className:"check",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960"},(0,e.createElement)("path",{d:"m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z"}))),Je=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,e.createElement)("path",{d:"M320 576C178.6 576 64 461.4 64 320C64 178.6 178.6 64 320 64C461.4 64 576 178.6 576 320C576 461.4 461.4 576 320 576zM438 209.7C427.3 201.9 412.3 204.3 404.5 215L285.1 379.2L233 327.1C223.6 317.7 208.4 317.7 199.1 327.1C189.8 336.5 189.7 351.7 199.1 361L271.1 433C276.1 438 282.9 440.5 289.9 440C296.9 439.5 303.3 435.9 307.4 430.2L443.3 243.2C451.1 232.5 448.7 217.5 438 209.7z"})),Ge=((0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18px",height:"18px"},(0,e.createElement)("path",{d:"M10 2a8 8 0 105.29 13.71l5 5a1 1 0 001.42-1.42l-5-5A8 8 0 0010 2zm0 2a6 6 0 110 12 6 6 0 010-12z"})),(0,e.createElement)("svg",{width:25,height:25,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M4.66667 12.25H11.9C11.9928 12.25 12.0818 12.2131 12.1475 12.1475C12.2131 12.0818 12.25 11.9928 12.25 11.9V2.1C12.25 2.00717 12.2131 1.91815 12.1475 1.85251C12.0818 1.78687 11.9928 1.75 11.9 1.75H2.1C2.00717 1.75 1.91815 1.78687 1.85251 1.85251C1.78687 1.91815 1.75 2.00717 1.75 2.1V9.33333M5.83333 3.5H10.5M3.5 3.5H4.08333M2.04167 11.9583L7 7M7 7V9.33333M7 7H4.66667",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("svg",{width:25,height:25,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M11.6667 6.99999V3.35357C11.6667 3.30753 11.6577 3.26193 11.6401 3.21939C11.6225 3.17684 11.5966 3.1382 11.564 3.10566L9.72771 1.26932C9.66213 1.20367 9.57317 1.16674 9.48037 1.16666H2.68337C2.59055 1.16666 2.50152 1.20353 2.43589 1.26917C2.37025 1.33481 2.33337 1.42383 2.33337 1.51666V12.4833C2.33337 12.5761 2.37025 12.6652 2.43589 12.7308C2.50152 12.7964 2.59055 12.8333 2.68337 12.8333H6.41671M4.66671 5.83332H9.33337M4.66671 3.49999H7.00004M4.66671 8.16666H6.41671",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M9.33337 3.14999V1.37315C9.33345 1.33237 9.3456 1.29251 9.36829 1.25862C9.39099 1.22473 9.42321 1.19832 9.4609 1.18272C9.49859 1.16712 9.54005 1.16303 9.58006 1.17097C9.62007 1.17891 9.65683 1.19852 9.68571 1.22732L11.606 3.14765C11.6351 3.17642 11.655 3.21321 11.6631 3.25331C11.6712 3.29341 11.6672 3.33502 11.6515 3.37283C11.6359 3.41063 11.6093 3.44291 11.5752 3.46556C11.5412 3.48821 11.5011 3.5002 11.4602 3.49999H9.68337C9.59055 3.49999 9.50152 3.46311 9.43589 3.39748C9.37025 3.33184 9.33337 3.24281 9.33337 3.14999V3.14999Z",fill:"#6A72A5",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M10.4731 9.88165L11.0565 9.29832C11.1172 9.23754 11.1893 9.18932 11.2687 9.15643C11.3481 9.12353 11.4331 9.1066 11.5191 9.1066C11.605 9.1066 11.6901 9.12353 11.7694 9.15643C11.8488 9.18932 11.9209 9.23754 11.9816 9.29832C12.1042 9.42095 12.1731 9.58723 12.1731 9.76061C12.1731 9.93399 12.1042 10.1003 11.9816 10.2229L11.3983 10.8062M10.4731 9.88107L8.7284 11.6258C8.64116 11.7133 8.58397 11.8263 8.56506 11.9484L8.42273 12.8567L9.33098 12.7149C9.45309 12.696 9.56605 12.6388 9.65356 12.5516L11.3977 10.8062M10.4731 9.88107L11.3983 10.8062",stroke:"#6A72A5",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,e.createElement)("path",{d:"M187.2 100.9C174.8 94.1 159.8 94.4 147.6 101.6C135.4 108.8 128 121.9 128 136L128 504C128 518.1 135.5 531.2 147.6 538.4C159.7 545.6 174.8 545.9 187.2 539.1L523.2 355.1C536 348.1 544 334.6 544 320C544 305.4 536 291.9 523.2 284.9L187.2 100.9z"}))),Ke=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,e.createElement)("path",{d:"M320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM320 240C302.3 240 288 254.3 288 272C288 285.3 277.3 296 264 296C250.7 296 240 285.3 240 272C240 227.8 275.8 192 320 192C364.2 192 400 227.8 400 272C400 319.2 364 339.2 344 346.5L344 350.3C344 363.6 333.3 374.3 320 374.3C306.7 374.3 296 363.6 296 350.3L296 342.2C296 321.7 310.8 307 326.1 302C332.5 299.9 339.3 296.5 344.3 291.7C348.6 287.5 352 281.7 352 272.1C352 254.4 337.7 240.1 320 240.1zM288 432C288 414.3 302.3 400 320 400C337.7 400 352 414.3 352 432C352 449.7 337.7 464 320 464C302.3 464 288 449.7 288 432z"})),Ze=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,e.createElement)("path",{d:"M224 32C241.7 32 256 46.3 256 64L256 160L384 160L384 64C384 46.3 398.3 32 416 32C433.7 32 448 46.3 448 64L448 160L512 160C529.7 160 544 174.3 544 192C544 209.7 529.7 224 512 224L512 288C512 383.1 442.8 462.1 352 477.3L352 544C352 561.7 337.7 576 320 576C302.3 576 288 561.7 288 544L288 477.3C197.2 462.1 128 383.1 128 288L128 224C110.3 224 96 209.7 96 192C96 174.3 110.3 160 128 160L192 160L192 64C192 46.3 206.3 32 224 32z"})),Qe=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,e.createElement)("path",{d:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z"})),Xe=((0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 544 432"},(0,e.createElement)("path",{d:"m297 71.2c9.2-7.3 15-18.6 15-31.2 0-22.1-17.9-40-40-40-22.1 0-40 17.9-40 40 0 12.6 5.9 23.9 15 31.2l-68.4 107.6c-10 15.7-31.3 19.6-46.2 8.4l-59.5-44.5c4.5-6.4 7.1-14.3 7.1-22.7 0-22.1-17.9-40-40-40-22.1 0-40 17.9-40 40 0 21.8 17.5 39.6 39.2 40l32.6 217.5c4.7 31.3 31.6 54.5 63.3 54.5h273.8c31.7 0 58.6-23.2 63.3-54.5l32.6-217.5c21.7-0.4 39.2-18.2 39.2-40 0-22.1-17.9-40-40-40-22.1 0-40 17.9-40 40 0 8.4 2.6 16.3 7.1 22.7l-59.4 44.6c-14.9 11.2-36.2 7.3-46.2-8.4z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,e.createElement)("path",{d:"m290.4 19.8c5-12 16.7-19.8 29.6-19.8h160c17.7 0 32 14.3 32 32v160c0 12.9-7.8 24.6-19.8 29.6-12 5-25.7 2.2-34.9-6.9l-57.3-57.4-153.4 153.3c-12.5 12.5-32.8 12.5-45.3 0-12.5-12.5-12.5-32.8 0-45.3l153.4-153.3-57.3-57.4c-9.2-9.2-11.9-22.9-6.9-34.9zm-290.4 156.2c0-44.2 35.8-80 80-80h80c17.7 0 32 14.3 32 32 0 17.7-14.3 32-32 32h-80c-8.8 0-16 7.2-16 16v256c0 8.8 7.2 16 16 16h256c8.8 0 16-7.2 16-16v-80c0-17.7 14.3-32 32-32 17.7 0 32 14.3 32 32v80c0 44.2-35.8 80-80 80h-256c-44.2 0-80-35.8-80-80z"})),({plans:t=["free","pro"],freemius:n})=>{const{product_id:a,public_key:r}=n||{},[l,o]=(0,e.useState)({}),[i,s]=(0,e.useState)(!1);(0,e.useEffect)((()=>{if(a){let e=!0;const t=`https://api.bplugins.com/wp-json/bpl/v1/products/${a}`;return s(!0),fetch(t).then((e=>{if(!e.ok)throw new Error(`${e.status} ${e.statusText}`);return e.json()})).then((t=>{e&&o(t)})).catch((t=>{e&&(console.error(t.message||"Fetch error"),o({}))})).finally((()=>{e&&s(!1)})),()=>{e=!1}}}),[a]);const[c,u]=(0,e.useState)([]),[m,d]=(0,e.useState)(c?.find((e=>e.isDefault))?.name||c[0]?.name);if((0,e.useEffect)((()=>{if(l?.id){const e=l?.plans?.filter((e=>t.includes(e.name)))||[],n=e?.find((e=>"free"!==e.name))||e?.[0]||{},a=n?.pricing?.[0];if(a&&"object"==typeof a){let e=[];a.hasOwnProperty("monthly")&&e.push({name:"monthly",label:"Billed Monthly"}),a.hasOwnProperty("annual")&&e.push({name:"annual",label:"Billed Yearly",isDefault:!0}),a.hasOwnProperty("lifetime")&&e.push({name:"lifetime",label:"Lifetime"}),u(e),d(e?.find((e=>e.isDefault))?.name||e[0]?.name)}else u([]),d("")}}),[l,i]),i)return(0,e.createElement)("div",{className:"bPlDashboardBox",style:{display:"flex",alignItems:"center",justifyContent:"center"}},(0,e.createElement)("h2",null,"Loading..."));const h=l?.plans?.filter((e=>t.includes(e.name)))||[],p=(h?.[h.length-1]?.features||[]).map((e=>{const{title:t}=e,n=h.map((e=>e.features.some((e=>e.title===t))?e.id:null)).filter(Boolean);return{...e,plans:n}}));return h.forEach((e=>{e.features.forEach((t=>{p.some((e=>e.title===t.title))||p.push({...t,plans:[e.id]})}))})),(0,e.createElement)("div",{className:"bPlDashboardFeatureCompare bPlDashboardCard"},(0,e.createElement)("div",{className:"featureComparePricing"},(0,e.createElement)("div",{className:"cyclesSelector"},(0,e.createElement)("h2",null,"Billing Cycle"),c?.length>1?(0,e.createElement)("div",{className:"cycles"},c.map((t=>(0,e.createElement)("button",{key:t.name,className:t.name===m?"active":"",onClick:()=>d(t.name)},t.label)))):"lifetime"===c[0]?.name&&(0,e.createElement)("h2",{className:"pricingTitle"},"Lifetime Access")),h?.map((({id:t,name:n,title:l,pricing:o})=>{const i=Array.isArray(o)?o?.find((e=>1===parseInt(e?.licenses)))?.[m]:"0.00";return(0,e.createElement)("div",{key:t,className:"plan "+("free"===n?"free":"premium")},(0,e.createElement)("div",{className:"price"},(0,e.createElement)("h3",null,l)," $",i),(0,e.createElement)("p",{className:"note"},"free"===n?"Free forever":`1 site license for ${"monthly"===m?"1 month":"annual"===m?"1 year":m}`),"free"===n?(0,e.createElement)(Fe,{href:"#pricing"},"It's Free, See Pricing"):(0,e.createElement)(Fe,{onClick:e=>{e.preventDefault(),new FS.Checkout({plugin_id:a,plan_id:t,public_key:r}).open({licenses:1,billing_cycle:m})}},"Get Started"))}))),(0,e.createElement)("table",null,(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,"Features"),h.map((t=>(0,e.createElement)("th",{key:t.id}))))),(0,e.createElement)("tbody",null,p?.map(((t,n)=>{const{title:a,plans:r}=t;return(0,e.createElement)("tr",{key:n},(0,e.createElement)("td",{dangerouslySetInnerHTML:{__html:a}}),h.map((t=>{const{id:n}=t;return(0,e.createElement)("td",{key:n},(0,e.createElement)("span",{className:"icon "+(r?.includes(n)?"check":"cross")},r?.includes(n)?Ye:qe))})))})))))}),et=window.wp.components,tt=({product_id:t,licenseActiveNonce:n})=>{const[a,r]=(0,e.useState)(!1),[l,o]=(0,e.useState)(""),{data:i,isLoading:s,refetch:c,error:u}=((t,n={},a=!0)=>{const[r,l]=(0,e.useState)(!1),[o,i]=(0,e.useState)(!1),[s,c]=(0,e.useState)(null),[u,m]=(0,e.useState)(null);if(!wp.ajax)return void console.error("Please use wp-util as a dependency");const d=(e={})=>{l(!0),i(!1),c(null),wp.ajax.post(t,{...n,...e}).done((e=>{l(!1),m(e)})).fail((e=>{l(!1),i(!0),c(e)}))},h=(e={})=>{d(e)};return(0,e.useEffect)((()=>{a&&d(n)}),[]),{data:u,saveData:h,refetch:h,isLoading:r,isError:o,error:s}})(`bpl_${t}_get_license_status`,{nonce:n});return(0,e.useEffect)((()=>{i&&(r(i.is_activated||!1),i.license_key&&o(i.license_key))}),[i]),{isActivated:a,activatedLicense:l,isLoading:s,error:u,refetch:c,setIsActivated:r,setActivatedLicense:o}},nt=(t={})=>{const{isActivated:n,activatedLicense:a,isLoading:r,error:l,refetch:o,setIsActivated:i,setActivatedLicense:s}=tt(t),{activateLicense:c,isLoading:u,error:m}=(({product_id:t,public_key:n,licenseActiveNonce:a}={})=>{const[r,l]=(0,e.useState)(!1),[o,i]=(0,e.useState)(null);return{activateLicense:e=>e.trim()?(l(!0),i(null),new Promise(((r,o)=>{wp.ajax.post(`bpl_${t}_activate_license`,{license_key:e,product_id:t||"",public_key:n||"",nonce:a}).done((e=>{l(!1),r(e)})).fail((e=>{l(!1),i(e?.message||"Activation failed"),o(e)}))}))):Promise.reject(new Error("Please enter a license key")),isLoading:r,error:o}})(t),{deactivateLicense:d,isLoading:h,error:p}=(({product_id:t,licenseActiveNonce:n})=>{const[a,r]=(0,e.useState)(!1),[l,o]=(0,e.useState)(null);return{deactivateLicense:()=>(r(!0),o(null),new Promise(((e,a)=>{wp.ajax.post(`bpl_${t}_deactivate_license`,{nonce:n}).done((t=>{r(!1),e(t)})).fail((e=>{r(!1),o(e?.message||"Deactivation failed"),a(e)}))}))),isLoading:a,error:l}})(t),[v,g]=(0,e.useState)(!0),[f,y]=(0,e.useState)("");return(0,e.useEffect)((()=>{g(r||u||h)}),[r,u,h]),(0,e.useEffect)((()=>{const e=l||m||p;y(e?e?.message||("string"==typeof e?e:"An error occurred"):"")}),[l,m,p]),{isActivated:n,isLoading:v,error:f,activatedLicense:a,activateLicense:async e=>{try{return await c(e),i(!0),s(e),!0}catch(e){return!1}},deactivateLicense:async()=>{try{return await d(),i(!1),s(""),!0}catch(e){return!1}},setError:y,refetch:o}},at=t=>{const{name:n,slug:a,version:r,media:l,freemius:o,licenseActiveNonce:i}=t,{product_id:s,public_key:c}=o||{},{logo:u}=l||{},{isActivated:m,isLoading:d,error:h,activatedLicense:p,activateLicense:v,deactivateLicense:g}=nt({product_id:s,public_key:c,licenseActiveNonce:i}),[f,y]=(0,e.useState)(""),[E,w]=(0,e.useState)(!1),[b,C]=(0,e.useState)(!1),L=b&&m;return(0,e.createElement)("div",{className:"bPlDashboardActivation bPlDashboardCard"},(0,e.createElement)("div",{className:"activationHeader"},(0,e.createElement)("div",{className:"pluginInfo"},u&&(0,e.createElement)("img",{src:u,alt:n||"Plugin"}),(0,e.createElement)("div",{className:"pluginDetails"},(0,e.createElement)("h1",null,n||"Plugin"),r&&(0,e.createElement)("p",{className:"version"},"Current Version: ",r))),(0,e.createElement)("div",{className:"statusBadge "+(m?"active":"inactive")},m?"Actived":"Not Active")),(0,e.createElement)("div",{className:"activationContent"},d?(0,e.createElement)("div",{className:"activationLoading"},(0,e.createElement)(et.Spinner,null),(0,e.createElement)("p",null,"Loading...")):p&&!b?(0,e.createElement)("div",{className:"activationSuccess"},(0,e.createElement)("div",{className:"successIcon"},Je),(0,e.createElement)("h2",null,"License Activated"),(0,e.createElement)("p",{className:"successMessage"},"Your license has been activated and is ready to use."),(0,e.createElement)("div",{className:"licenseDisplay"},(0,e.createElement)("input",{type:"text",value:(e=>{if(!e)return"";if(E)return e;const t=e.substring(0,4),n=e.substring(e.length-4);return`${t}${"x".repeat(Math.max(0,e.length-8))}${n}`})(p),readOnly:!0,className:"licenseInput"}),(0,e.createElement)("button",{className:"toggleVisibility",onClick:()=>w((e=>!e)),"aria-label":E?"Hide license":"Show license"},(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},E?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("path",{d:"M3 3L21 21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),(0,e.createElement)("path",{d:"M10.5 10.677a2 2 0 002.823 2.823",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),(0,e.createElement)("path",{d:"M7.362 7.561C5.68 8.74 4.279 10.42 3 12c1.889 2.991 5.282 6 9 6 1.55 0 3.043-.523 4.395-1.35M12 6c4.008 0 6.701 3.158 9 6a15.66 15.66 0 01-1.078 1.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("path",{d:"M12 5C7.52 5 3.73 7.61 1 12c2.73 4.39 6.52 7 11 7s8.27-2.61 11-7c-2.73-4.39-6.52-7-11-7z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor",strokeWidth:"2"}))))),(0,e.createElement)("div",{className:"licenseActions"},(0,e.createElement)("button",{className:"linkButton",onClick:()=>C(!0)},"Change License"),(0,e.createElement)("button",{className:"linkButton danger",onClick:async()=>{window.confirm("Are you sure you want to deactivate this license?")&&await g()&&(C(!0),y(""),window.location.reload())}},"Deactivate License"))):(0,e.createElement)("div",{className:"activationForm"},(0,e.createElement)("h2",null,L?"Change License":"Activate License"),(0,e.createElement)("p",{className:"formDescription"},"Enter Your license key below. ",!L&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("a",{href:`https://dashboard.freemius.com/license-recovery/${s}/${a}/`,target:"_blank",rel:"noopener noreferrer"},"Can't find license key?")," or ",(0,e.createElement)("a",{href:"https://freemius.com/help/documentation/wordpress-sdk/license-activation-issues/",target:"_blank",rel:"noopener noreferrer"},"License issues?"))),(0,e.createElement)("div",{className:"formGroup"},(0,e.createElement)("input",{type:"text",className:"licenseInput",placeholder:"Enter your purchase code here.",value:f,onChange:e=>y(e.target.value),disabled:d})),h&&(0,e.createElement)("div",{className:"errorMessage"},h),(0,e.createElement)(Fe,{variant:"primary",onClick:async()=>{await v(f)&&(y(""),C(!1),window.location.reload())},disabled:d,className:"activateButton"},d?"Activating...":"Activate your License"),!L&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("p",{className:"formDescription"},"For delivery of security & feature updates, and license management, ",(0,e.createElement)("strong",null,n)," needs to ↓"),(0,e.createElement)("ul",{className:"formPermissions"},(0,e.createElement)("li",null,Qe,(0,e.createElement)("div",null,(0,e.createElement)("h4",null,"View License Essentials ",(0,e.createElement)(et.Tooltip,{text:"To let you manage & control where the license is activated and ensure plugin security & feature updates are only delivered to websites you authorize.",placement:"top",delay:300},Ke)),(0,e.createElement)("p",null,"Homepage URL, Plugin version, SDK version"))),(0,e.createElement)("li",null,Ze,(0,e.createElement)("div",null,(0,e.createElement)("h4",null,"View Plugin State ",(0,e.createElement)(et.Tooltip,{text:"So you can reuse the license when the plugin is no longer active.",placement:"top",delay:300},Ke)),(0,e.createElement)("p",null,"Is active, deactivated, or uninstalled")))),(0,e.createElement)("div",{className:"links"},(0,e.createElement)("a",{href:"https://freemius.com/product/license-activation/14262/advanced-post-block/",target:"_blank",rel:"noopener noreferrer"},"Powered by Freemius"),(0,e.createElement)("a",{href:"https://freemius.com/privacy/",target:"_blank",rel:"noopener noreferrer"},"Privacy Policy"),(0,e.createElement)("a",{href:"https://freemius.com/product/14262/advanced-post-block/legal/eula/",target:"_blank",rel:"noopener noreferrer"},"License Agreement"))),L&&(0,e.createElement)(Fe,{variant:"secondary",onClick:()=>C(!1),className:"cancelButton"},"Cancel"))))},rt=window.wp.data,lt=window.wp.apiFetch;var ot=n.n(lt);const it=e=>e?e.replace(/–/g,"–").replace(/—/g,"—").replace(/–/g,"–").replace(/—/g,"—").replace(/-/g,"-").split(/\s*[–\-—]\s*/)[0].trim():"",st=(0,rt.withSelect)((e=>{const{getPlugins:t}=e("core");return{installedPlugins:t?.({per_page:-1})}}))((({slug:t,slugs:n=["3d-viewer","html5-video-player","html5-audio-player","pdf-poster","document-emberdder","advanced-post-block","advance-custom-html","b-carousel-block","b-blocks","html5-video-player","embed-lottie-player","b-slider"],installedPlugins:a}={})=>{const[r,l]=(0,e.useState)([]),[o,i]=(0,e.useState)(!1),s=n?.filter((e=>e!==t));return(0,e.useEffect)((()=>{s&&s.length>0&&(async()=>{try{i(!0);const e=await fetch("https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&request[author]=bplugins&request[per_page]=100&request[fields]=title,name,slug,icons,short_description,version,active_installs,rating,ratings,downloaded",{credentials:"omit",mode:"cors"}),t=await e.json();l(t?.plugins?.filter((e=>s.includes(e.slug)))||[]),i(!1)}catch(e){console.error("Error fetching plugins:",e),l([]),i(!1)}})()}),[JSON.stringify(s)]),o?(0,e.createElement)("div",{className:"bPlDashboardBox",style:{display:"flex",alignItems:"center",justifyContent:"center"}},(0,e.createElement)("h2",null,"Loading...")):(0,e.createElement)("div",{className:"bPlDashboardOurPlugins"},r?.length>0?(0,e.createElement)("div",{className:"pluginsList"},r.sort(((e,t)=>t.active_installs-e.active_installs)).map((t=>{var n;const{slug:r}=t,l=null!==(n=a?.find((e=>e?.plugin?.includes(r))))&&void 0!==n&&n,o=!!l&&"active"===l?.status;return(0,e.createElement)(ct,{key:r,plugin:t,path:l?.plugin,initStatus:o?"activated":l?"installed":"notfound"})}))):(0,e.createElement)("p",null,"No plugins found"))})),ct=({plugin:t,path:n,initStatus:a})=>{const{name:r,slug:l,icons:o,short_description:i,downloaded:s}=t,[c,u]=(0,e.useState)(a);return(0,e.createElement)("div",{className:"pluginCard"},(0,e.createElement)("div",{className:"cardHeader"},(0,e.createElement)("img",{src:o?.["1x"]||o?.["2x"],alt:r}),(0,e.createElement)("h3",{dangerouslySetInnerHTML:{__html:it(r)}})),(0,e.createElement)("p",{className:"description",dangerouslySetInnerHTML:{__html:i}}),(0,e.createElement)("div",{className:"cardFooter"},(0,e.createElement)("div",{className:"downloads"},"Download: ",(e=>{if(null==e)return"0";const t=Math.abs(e);return t>=1e9?(e/1e9).toFixed(1).replace(/\.0$/,"")+"B":t>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":t>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"k":e.toString()})(s)),(0,e.createElement)("div",{className:"rating"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,e.createElement)("path",{d:"M305 151.1L320 171.8L335 151.1C360 116.5 400.2 96 442.9 96C516.4 96 576 155.6 576 229.1L576 231.7C576 343.9 436.1 474.2 363.1 529.9C350.7 539.3 335.5 544 320 544C304.5 544 289.2 539.4 276.9 529.9C203.9 474.2 64 343.9 64 231.7L64 229.1C64 155.6 123.6 96 197.1 96C239.8 96 280 116.5 305 151.1z"})),(0,e.createElement)("span",{className:"value"},(t?.rating/20).toFixed(1)," Rating"))),(0,e.createElement)(Fe,{disabled:["activated","success","installing"].includes(c),onClick:()=>{["activated","success","installing"].includes(c)||(async(e,t,n,a)=>{a("installed"===n?"activating":"installing");try{if("installed"===n&&t)return await ot()({path:`/wp/v2/plugins/${t}`,method:"POST",data:{status:"active"}}),a("success"),console.log(`Successfully activated: ${e}`),void setTimeout((()=>{a("activated")}),1e3);const r=await ot()({path:"/wp/v2/plugins",method:"POST",data:{slug:e,status:"active"}});a("success"),console.log(`Successfully installed: ${r.name}`),setTimeout((()=>{a("activated")}),1e3)}catch(e){a("error"),console.error("Installation failed:",e.message),setTimeout((()=>{a("installed"===n?"installed":"notfound")}),1e3)}})(l,n,c,u)},className:c},(()=>{switch(c){case"activated":case"success":return"Activated";case"installed":return"Activate";case"activating":return"Activating...";case"installing":return"Installing...";case"error":return"Failed to Install";default:return"Install & Activate"}})()))},ut=t=>{const{name:n,media:a,version:r,isPremium:l,displayOurPlugins:o,children:i}=t,{logo:s}=a||{};return(0,e.createElement)("div",{className:"bPlDashboardHeader"},(0,e.createElement)("div",{className:"pluginInfo",wrap:!0},s&&(0,e.createElement)("img",{src:s,alt:n||"Plugin from bPlugins"}),n&&(0,e.createElement)("h1",null,n),r&&(0,e.createElement)("div",{className:"pluginVersion"},"v",r)),i,(0,e.createElement)("div",{className:"navButtons"},o&&(l?(0,e.createElement)(Fe,{href:"#our-plugins"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},(0,e.createElement)("path",{d:"M224 32C241.7 32 256 46.3 256 64L256 160L384 160L384 64C384 46.3 398.3 32 416 32C433.7 32 448 46.3 448 64L448 160L512 160C529.7 160 544 174.3 544 192C544 209.7 529.7 224 512 224L512 288C512 383.1 442.8 462.1 352 477.3L352 544C352 561.7 337.7 576 320 576C302.3 576 288 561.7 288 544L288 477.3C197.2 462.1 128 383.1 128 288L128 224C110.3 224 96 209.7 96 192C96 174.3 110.3 160 128 160L192 160L192 64C192 46.3 206.3 32 224 32z"})),"Our Plugins"):(0,e.createElement)("a",{className:"linkButton",href:"#our-plugins"},"Our Plugins")),!l&&(0,e.createElement)(Fe,{className:"upgrade",href:"#pricing"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 11 13",fill:"none"},(0,e.createElement)("path",{d:"M2.5 5.16931V3.16931C2.49936 2.5198 2.73579 1.89239 3.16492 1.40483C3.59404 0.917267 4.18636 0.603088 4.8307 0.521257C5.47503 0.439426 6.12708 0.595571 6.66446 0.960383C7.20184 1.3252 7.5876 1.87359 7.74933 2.50264M5.16667 8.50264C5.34348 8.50264 5.51305 8.43241 5.63807 8.30738C5.76309 8.18236 5.83333 8.01279 5.83333 7.83598C5.83333 7.65917 5.76309 7.4896 5.63807 7.36457C5.51305 7.23955 5.34348 7.16931 5.16667 7.16931C4.98986 7.16931 4.82029 7.23955 4.69526 7.36457C4.57024 7.4896 4.5 7.65917 4.5 7.83598C4.5 8.01279 4.57024 8.18236 4.69526 8.30738C4.82029 8.43241 4.98986 8.50264 5.16667 8.50264ZM5.16667 8.50264V10.5026M1.56667 5.16931H8.76667C9.35333 5.16931 9.83333 5.64931 9.83333 6.23598V10.9026C9.83333 11.7826 9.11333 12.5026 8.23333 12.5026H2.1C1.22 12.5026 0.5 11.7826 0.5 10.9026V6.23598C0.5 5.64931 0.98 5.16931 1.56667 5.16931Z",stroke:"currentColor",strokeLinecap:"round"})),"Upgrade Pro")))},mt=[{name:"Welcome",href:"/welcome"},{name:"Demos",href:"/demos"},{name:"Pricing",href:"/pricing"},{name:"Feature Comparison",href:"/feature-comparison"},{name:"License Activation",href:"/activation"}],dt=t=>{const{isPremium:n,hasPro:a}=t,r=j();return(0,e.createElement)("div",{className:"bPlDashboard"},(0,e.createElement)(ut,{...t},(0,e.createElement)("nav",{className:"bPlDashboardNav"},mt?.filter((e=>"/activation"!==e.href||a))?.filter((e=>!n||!["/purchase","/pricing","/feature-comparison"].includes(e.href)))?.map(((t,n)=>(0,e.createElement)(Ae,{key:n,to:t.href,className:"navLink "+(r.pathname===t.href?"active":"")},t.name))))),(0,e.createElement)("main",{className:"bPlDashboardMain"},(0,e.createElement)(oe,null)))},ht=({src:t,width:n="100%",height:a="auto",autoPlay:r=!1,muted:l=!1,loop:o=!1,poster:i=null,isYoutube:s=!1})=>{const c=(0,e.useRef)(null),u=(0,e.useRef)(null),m=(0,e.useRef)(null),d=(0,e.useRef)(null),h=(0,e.useRef)(null),[p,v]=(0,e.useState)(!1),[g,f]=(0,e.useState)(!0),[y,E]=(0,e.useState)(0),[w,b]=(0,e.useState)(0),[C,L]=(0,e.useState)(1),[x,S]=(0,e.useState)(l),[k,N]=(0,e.useState)(!1),[P,M]=(0,e.useState)(!0);(0,e.useEffect)((()=>{const e=c.current;if(!e)return;const n=()=>f(!0),a=()=>f(!1),r=()=>{b(e.duration),u.current&&(u.current.src=t,u.current.muted=!0)},l=()=>{k||E(e.currentTime)},o=()=>{v(!1)};return e.addEventListener("loadstart",n),e.addEventListener("canplay",a),e.addEventListener("loadedmetadata",r),e.addEventListener("timeupdate",l),e.addEventListener("ended",o),()=>{e.removeEventListener("loadstart",n),e.removeEventListener("canplay",a),e.removeEventListener("loadedmetadata",r),e.removeEventListener("timeupdate",l),e.removeEventListener("ended",o)}}),[k,t]),(0,e.useEffect)((()=>{const e=e=>{switch(e.key){case" ":e.preventDefault(),$();break;case"f":case"F":R();break;case"m":case"M":A()}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]);const $=()=>{const e=c.current;e&&(e.paused?(e.play(),v(!0)):(e.pause(),v(!1)))},_=e=>{const t=m.current.getBoundingClientRect(),n=(e.clientX-t.left)/t.width*w;c.current.currentTime=Math.max(0,Math.min(n,w)),E(n)},I=e=>{const t=d.current.getBoundingClientRect(),n=Math.max(0,Math.min(1,(e.clientX-t.left)/t.width));L(n),c.current.volume=n,n>0&&(S(!1),c.current.muted=!1)},A=()=>{const e=c.current;e&&(e.muted=!e.muted,S(e.muted))},R=()=>{const e=h.current;e&&(document.fullscreenElement?document.exitFullscreen():e.requestFullscreen())},D=e=>`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,"0")}`,B=w?y/w*100:0,F=100*C;return(0,e.useEffect)((()=>{const e=e=>{k&&(e.target.closest(".progress-bar")?_(e):e.target.closest(".volume-bar")&&I(e))},t=()=>{N(!1)};return k&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}}),[k]),(0,e.createElement)("div",{ref:h,className:"bPlVideoPlayer",style:{width:n,height:a},onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!p)},s?(0,e.createElement)("div",{className:"bPlVideoPlayerYoutube"},(0,e.createElement)("iframe",{src:function(e){const t=/youtu.be\/([^#\\&\\?]+)/;let n="";const a=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\\&v=)([^#\\&\\?]*).*/);if(a&&11===a[2].length)n=a[2];else{const a=e.match(t);if(!a||11!==a[1].length)return null;n=a[1]}return`https://www.youtube.com/embed/${n}`}(t),frameBorder:"0",allowFullScreen:!0,style:{width:n,height:a},title:"YouTube Video"})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("video",{ref:c,className:"video-element",src:t,poster:i,autoPlay:r,muted:l,loop:o,onClick:$,preload:"metadata"},"Your browser does not support the video tag."),(0,e.createElement)("video",{ref:u,className:"preview-video",muted:!0,preload:"metadata",style:{display:"none"}}),!p&&(0,e.createElement)("div",{className:"center-play-btn",onClick:$},(0,e.createElement)("div",{className:"play-icon"},(0,e.createElement)("svg",{viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M8 5v14l11-7z"})))),p&&(0,e.createElement)("div",{className:"center-play-btn pause",onClick:$},(0,e.createElement)("div",{className:"play-icon"},(0,e.createElement)("svg",{className:"video-player-pause-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},(0,e.createElement)("path",{d:"M48 64C21.5 64 0 85.5 0 112L0 400c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48L48 64zm192 0c-26.5 0-48 21.5-48 48l0 288c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48l-32 0z"})))),g&&(0,e.createElement)("div",{className:"loading-spinner"},(0,e.createElement)("div",{className:"spinner"})),(0,e.createElement)("div",{className:"video-controls "+(P?"visible":"")},(0,e.createElement)("button",{className:"control-btn play-pause-btn",onClick:$},p?(0,e.createElement)("svg",{viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"})):(0,e.createElement)("svg",{viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M8 5v14l11-7z"}))),(0,e.createElement)("div",{className:"time-display"},(0,e.createElement)("span",{className:"current-time"},D(y)),(0,e.createElement)("span",{className:"separator"},"/"),(0,e.createElement)("span",{className:"duration"},D(w))),(0,e.createElement)("div",{className:"progress-container"},(0,e.createElement)("div",{ref:m,className:"progress-bar",onClick:_,onMouseDown:e=>{N(!0),_(e)}},(0,e.createElement)("div",{className:"progress-filled",style:{width:`${B}%`}}),(0,e.createElement)("div",{className:"progress-handle",style:{left:`${B}%`}}))),(0,e.createElement)("div",{className:"volume-container"},(0,e.createElement)("button",{className:"control-btn volume-btn",onClick:A},x||0===C?(0,e.createElement)("svg",{viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"})):(0,e.createElement)("svg",{viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"}))),(0,e.createElement)("div",{className:"volume-slider"},(0,e.createElement)("div",{ref:d,className:"volume-bar",onClick:I,onMouseDown:e=>{N(!0),I(e)}},(0,e.createElement)("div",{className:"volume-filled",style:{width:`${F}%`}}),(0,e.createElement)("div",{className:"volume-handle",style:{left:`${F}%`}})))),(0,e.createElement)("button",{className:"control-btn fullscreen-btn",onClick:R},(0,e.createElement)("svg",{viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}))))))},pt=(0,rt.withSelect)((e=>{const{getSite:t}=e("core");return{site:t?.()}}))((t=>{const{name:n,description:a,slug:r,media:l,isPremium:o,pages:i,startButton:s,site:c,children:u}=t,{thumbnail:m,video:d,isYoutube:h}=l||{},[p,v]=(0,e.useState)(!1),g=[{title:"Looking for Documentation?",description:"We have detailed documentation on every aspects of the plugin.",link:i?.docs,linkText:"Documentation"},{title:"Liked This Plugin?",description:"Glad to know that, you can support us by leaving a feedback.",link:`https://wordpress.org/support/plugin/${r}/reviews#new-post`,linkText:"Rate the Plugin"},{image:"https://bplugins.com/wp-content/themes/b-technologies/assets/images/resource/support.png",title:"Need any Assistance?",description:"Our Expert Support Team is always ready to help you out promptly.",link:"https://bplugins.com/support",linkText:"Contact Support"}];return(0,e.createElement)("div",{className:"bPlDashboardOverview"},(0,e.createElement)("div",{className:"overviewLeft"},(0,e.createElement)("div",{className:"overviewLeftTop bPlDashboardCard"},(0,e.createElement)("div",null,n&&(0,e.createElement)("h2",null,"Welcome to ",n),a&&(0,e.createElement)("p",null,a),(0,e.createElement)("div",{className:"buttons"},!o&&(0,e.createElement)(Fe,{href:"#pricing"},"Buy Now"),s?.url&&s?.label&&(0,e.createElement)(Fe,{href:`${c?.url}/${s.url}`,target:"_blank",rel:"noopener noreferrer"},s.label),i?.landing&&(0,e.createElement)(Fe,{href:i.landing,target:"_blank",rel:"noopener noreferrer"},"Learn More"))),m&&(0,e.createElement)("div",{className:"overviewBanner"},(0,e.createElement)("img",{src:m,alt:n}),d&&(0,e.createElement)("button",{className:"playButton",onClick:()=>v(!0)},Ge))),u),p&&d&&(0,e.createElement)("div",{className:"bPlVideoModal"},(0,e.createElement)("div",{className:"bPlVideoModalContent"},(0,e.createElement)("button",{className:"closeModal",onClick:()=>v(!1)},qe),(0,e.createElement)(ht,{src:d,isYoutube:h,autoPlay:!0})),(0,e.createElement)("div",{className:"bPlVideoModalOverlay",onClick:()=>v(!1)})),(0,e.createElement)("div",{className:"overviewRight"},g?.map(((t,n)=>{const{image:a,title:r,description:l,link:o,linkText:i}=t;return o&&(0,e.createElement)("div",{key:n,className:"helpInfoItem bPlDashboardCard"},a&&(0,e.createElement)("figure",null,(0,e.createElement)("img",{src:a,alt:"Support Thumb"})),(0,e.createElement)("h4",null,r),(0,e.createElement)("p",null,l),(0,e.createElement)(Fe,{href:o,target:"_blank",rel:"noopener noreferrer"},i))}))))})),vt=t=>{const{changelogs:n}=t;return n?.length&&(0,e.createElement)("div",{className:"bPlDashboardChangelog bPlDashboardCard"},(0,e.createElement)("h3",null,"Release Notes(Changelog)..."),n?.slice(0,5)?.map(((t,n)=>{const{type:a,version:r,list:l}=t;return(0,e.createElement)("div",{key:n,className:`changelog ${a}`},(0,e.createElement)("ul",{className:"list"},l?.map(((t,n)=>(0,e.createElement)("li",{key:n},t)))),(0,e.createElement)("p",{className:"time"},r))})))},gt=t=>{const{name:n,media:a,proFeatures:r}=t,{proThumbnail:l}=a;return(0,e.createElement)("div",{className:"bPlDashboardProAds bPlDashboardCard"},(0,e.createElement)("div",{className:""},(0,e.createElement)("h3",null,"Go ",n," Pro & Unlock More!"),r?.length&&(0,e.createElement)("ul",null,r?.map(((t,n)=>(0,e.createElement)("li",{key:n},(0,e.createElement)("span",null,Ye),t)))),(0,e.createElement)(Fe,{href:"#pricing"},"View Pricing Plan")),l&&(0,e.createElement)("figure",null,(0,e.createElement)("img",{src:l,alt:`${n} Pro features`})))},ft=t=>{const{isPremium:n}=t;return(0,e.createElement)(pt,{...t},(0,e.createElement)("div",{style:{display:"grid",gridTemplateColumns:n?"1fr":"repeat(auto-fill, minmax(min(480px, 100%), 1fr))",gap:"32px"}},(0,e.createElement)(vt,{...t}),!n&&(0,e.createElement)(gt,{...t})))},yt="streamcast",Et=e=>{const{version:t,isPremium:n,hasPro:a,licenseActiveNonce:r}=e,l=n?" Pro":"";return{name:`StreamCast${l}`,displayName:`StreamCast${l} - Live Radio Streaming Player`,description:"A simple, accessible, user-friendly and fully customizable radio player for WordPress. You can play iceCast, Shoutcast, Radionomy, Radiojar, RadioCo Live stream in WordPress website using shortcode.",slug:yt,version:t,isPremium:n,hasPro:a,displayOurPlugins:!0,media:{logo:`https://ps.w.org/${yt}/assets/icon-128x128.png`,banner:`https://ps.w.org/${yt}/assets/banner-772x250.png`,thumbnail:`https://bplugins.com/wp-content/themes/b-technologies/assets/images/products/${yt}.png`},pages:{org:`https://wordpress.org/plugins/${yt}/`,landing:`https://bplugins.com/products/${yt}/`,docs:`https://bplugins.com/docs/${yt}/`,pricing:`https://bplugins.com/products/${yt}/pricing`},freemius:{product_id:"6433",plan_id:"10492",public_key:"pk_a19d159db561c020210345da466f1"},licenseActiveNonce:r,changelogs:[{version:"2.4.0 - 2 May 2026",type:"update",list:["Compliance: Removed all trialware/ feature - gating logic to ensure full functionality for all users.","Compliance: Localized third - party assets(WebFontLoader, FontAwesome, Plyr, Muses) to eliminate remote CDN dependencies.","Privacy: Removed unconditional Google Analytics tracking from the player script.","Compliance: Standardized internationalization(i18n) by migrating all text domains to 'streamcast'.","Security: Enhanced output escaping and data sanitization in shortcodes and Gutenberg blocks.","Enhancement: Added explicit '===External Services===' and '=== Source Code===' documentation in readme.txt.","Fix: Updated shortcode attributes to correctly honor user - provided stream URLs and background colors.","Maintenance: Updated compatibility tags and improved code adherence to WordPress.org standards."]},{version:"2.3.9 - 23 February 2026",type:"update",list:["Redesigned the dashboard with a modern and improved user interface, replacing the previous outdated layout."]},{version:"2.3.7 - 22 November 2025",type:"update",list:["Updated readme.txt and fixed issues"]},{version:"2.3.6 - 2 September 2025",type:"update",list:["Updated Advanced Radio Player"]},{version:"2.3.5 - 23 September 2025",type:"update",list:["Accessibility: Add screen reader support across all audio players."]},{version:"2.3.4 - 17 September 2025",type:"update",list:["Added Modern Dashboard."]},{version:"2.3.1 - 17 May, 2025",type:"update",list:["Added a new radio skin."]},{version:"2.3.0 - 19 Feb, 2025",type:"update",list:["Added gutenberg block and re-customize whole plugin."]},{version:"2.2.4 - 30 July, 2024",type:"update",list:["Fixed: Cross Site Scripting"]},{version:"2.2.3 - 4 July, 2024",type:"update",list:["Update: WordPress SDK"]},{version:"2.2.2 - 1 Jan, 2024",type:"update",list:["Fixed: Unexpected number"]},{version:"2.2.0 - 26 Aug, 2023",type:"update",list:["Added new skin name ‘B Circle’ (Premium)"]}],proFeatures:["Customize You Player with some awesome options","Enhance your player using 85+ radio player skins.","Works great with Shoutcast, Icecast, and other compatible streaming servers.","This plugin creates ShortCode for Each radio. So that you can play radio anywhere without coding.","Collect Stream Name or Title or Artist Name from you streaming name.","Alignment your player like left, center, right.","Set image for player background, player poster or art image."],startButton:{label:"Start Now",url:"wp-admin/post-new.php?post_type=streamcast"}}},wt={allInOneLabel:"See All Demos",allInOneLink:"https://wpradioplayer.com/demo/all-radio-player/",demos:[{icon:"",title:"Minimal Player (Default)",type:"iframe",url:"https://wpradioplayer.com/demo/demo-6-minimal-default/"},{icon:"",title:"Standard Player Skins (80+ Skins)",type:"image",url:"https://i.ibb.co.com/nsgPvyzT/bg.png"},{icon:"",title:"Ultimate Player (Customized)",type:"iframe",url:"https://wpradioplayer.com/demo/demo-1-ultimate-default/"},{icon:"",title:"Ultimate Bittersweet Theme",type:"iframe",url:"https://wpradioplayer.com/demo/demo-2-ultimate-bittersweet-theme/"},{icon:"",title:"Ultimate Lightsea Green Theme",type:"iframe",url:"https://wpradioplayer.com/demo/demo-3-ultimate-lightsea-green-theme/"},{icon:"",title:"Ultimate Custom Color",type:"iframe",url:"https://wpradioplayer.com/demo/demo-4-ultimate-custom-color/"},{icon:"",title:"Ultimate Icecast Station",type:"iframe",url:"https://wpradioplayer.com/demo/demo-5-ultimate-icecast-station/"},{icon:"",title:"Advanced Default",type:"iframe",url:"https://wpradioplayer.com/demo/demo-7-advanced-default/"},{icon:"",title:"Advanced Custom Color & Align Right",type:"iframe",url:"https://wpradioplayer.com/demo/demo-8-advanced-custom-color-and-align-right/"},{icon:"",title:"EchoPlayer",description:"",type:"iframe",url:"https://wpradioplayer.com/demo/demo-13/"},{icon:"",title:"AuroraPlay",type:"iframe",url:"https://wpradioplayer.com/demo/demo-14-aurora-play/"},{icon:"",title:"Wooden Player",type:"iframe",url:"https://wpradioplayer.com/demo/demo-15-wooden-player/"}]},bt={logo:`https://ps.w.org/${yt}/assets/icon-128x128.png`,pluginId:6433,planId:10492,licenses:[1,3,null],button:{label:"Buy Now ➜"},featured:{selected:3}},Ct=t=>{const{isPremium:n,hasPro:a}=t;return(0,e.createElement)(_e,null,(0,e.createElement)(ce,null,(0,e.createElement)(ie,{path:"/",element:(0,e.createElement)(dt,{...t})},(0,e.createElement)(ie,{index:!0,element:(0,e.createElement)(ft,{...t})}),(0,e.createElement)(ie,{path:"welcome",element:(0,e.createElement)(ft,{...t})}),(0,e.createElement)(ie,{path:"demos",element:(0,e.createElement)(Ve,{demoInfo:wt,...t})}),!n&&(0,e.createElement)(ie,{path:"pricing",element:(0,e.createElement)(Ue,{pricingInfo:bt,options:{},...t})}),!n&&(0,e.createElement)(ie,{path:"feature-comparison",element:(0,e.createElement)(Xe,{plans:["free","pro"],...t})}),a&&(0,e.createElement)(ie,{path:"activation",element:(0,e.createElement)(at,{...t})}),(0,e.createElement)(ie,{path:"our-plugins",element:(0,e.createElement)(st,{...t})}),(0,e.createElement)(ie,{path:"*",element:(0,e.createElement)(le,{to:"/welcome",replace:!0})}))))};document.addEventListener("DOMContentLoaded",(()=>{const n=document.getElementById("stpAdminDashboardWrapper"),a=JSON.parse(n.dataset.info);(0,t.H)(n).render((0,e.createElement)(Ct,{...Et(a)})),n.removeAttribute("data-info")}))})()})(); |