Extendify — Gutenberg Patterns and Templates - Version 0.9.4

Version Description

  • 2022-08-12 =
  • Fix server error issues
Download this release

Release Info

Developer extendify
Plugin Icon 128x128 Extendify — Gutenberg Patterns and Templates
Version 0.9.4
Comparing to
See all releases

Code changes from version 0.9.3 to 0.9.4

extendify.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
6
  * Author: Extendify
7
  * Author URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
8
- * Version: 0.9.3
9
  * License: GPL-2.0-or-later
10
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
  * Text Domain: extendify
5
  * Plugin URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
6
  * Author: Extendify
7
  * Author URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
8
+ * Version: 0.9.4
9
  * License: GPL-2.0-or-later
10
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
  * Text Domain: extendify
public/build/extendify-onboarding.js CHANGED
@@ -1,2 +1,2 @@
1
  /*! For license information please see extendify-onboarding.js.LICENSE.txt */
2
- (()=>{var e={7135:(e,t,n)=>{e.exports=n(6248)},355:(e,t,n)=>{"use strict";n.d(t,{Gd:()=>h,Xb:()=>f,cu:()=>d,pj:()=>p,vi:()=>v});var r=n(7451),i=n(4180),o=n(6922),a=n(6727),s=n(2615),u=n(36),c=n(3313),l=100;class f{__init(){this._stack=[{}]}constructor(e,t=new u.s,n=4){this._version=n,f.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){var e=u.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:(0,r.DM)(),i=new Error("Sentry syntheticException");return this._withClient(((r,o)=>{r.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},o)})),n}captureMessage(e,t,n){var i=this._lastEventId=n&&n.event_id?n.event_id:(0,r.DM)(),o=new Error(e);return this._withClient(((r,a)=>{r.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:i},a)})),i}captureEvent(e,t){var n=t&&t.event_id?t.event_id:(0,r.DM)();return"transaction"!==e.type&&(this._lastEventId=n),this._withClient(((r,i)=>{r.captureEvent(e,{...t,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=l}=r.getOptions&&r.getOptions()||{};if(!(s<=0)){var u={timestamp:(0,i.yW)(),...e},c=a?(0,o.Cf)((()=>a(u,t))):u;null!==c&&n.addBreadcrumb(c,s)}}setUser(e){var t=this.getScope();t&&t.setUser(e)}setTags(e){var t=this.getScope();t&&t.setTags(e)}setExtras(e){var t=this.getScope();t&&t.setExtras(e)}setTag(e,t){var n=this.getScope();n&&n.setTag(e,t)}setExtra(e,t){var n=this.getScope();n&&n.setExtra(e,t)}setContext(e,t){var n=this.getScope();n&&n.setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();t&&n&&e(t)}run(e){var t=p(this);try{e(this)}finally{p(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&(0,c.RJ)(n),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i}=n&&n.getOptions()||{};var o=(0,a.R)();const{userAgent:s}=o.navigator||{};var u=(0,c.Hv)({release:r,environment:i,...t&&{user:t.getUser()},...s&&{userAgent:s},...e});if(t){var l=t.getSession&&t.getSession();l&&"ok"===l.status&&(0,c.CT)(l,{status:"exited"}),this.endSession(),t.setSession(u)}return u}shouldSendDefaultPii(){var e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();if(e){var n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){var n=d().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function d(){var e=(0,a.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function p(e){var t=d(),n=v(t);return g(t,e),n}function h(){var e=d();return m(e)&&!v(e).isOlderThan(4)||g(e,new f),(0,s.KV)()?function(e){try{var t=d().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return v(e);if(!m(n)||v(n).isOlderThan(4)){var r=v(e).getStackTop();g(n,new f(r.client,u.s.clone(r.scope)))}return v(n)}catch(t){return v(e)}}(e):v(e)}function m(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function v(e){return(0,a.Y)("hub",(()=>new f),e)}function g(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},36:(e,t,n)=>{"use strict";n.d(t,{c:()=>f,s:()=>c});var r=n(6885),i=n(4180),o=n(8894),a=n(6922),s=n(6727),u=n(3313);class c{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){var t=new c;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments]),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&(0,u.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts={...this._contexts,[e]:t},this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){var t=e(this);return t instanceof c?t:this}return e instanceof c?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,r.PO)(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r={timestamp:(0,i.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags={transaction:n,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...l(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,i=0){return new o.cW(((o,s)=>{var u=e[i];if(null===t||"function"!=typeof u)o(t);else{var c=u({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.id&&null===c&&a.kg.log(`Event processor "${u.id}" dropped event`),(0,r.J8)(c)?c.then((t=>this._notifyEventProcessors(e,t,n,i+1).then(o))).then(null,s):this._notifyEventProcessors(e,c,n,i+1).then(o).then(null,s)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function l(){return(0,s.Y)("globalEventProcessors",(()=>[]))}function f(e){l().push(e)}},3313:(e,t,n)=>{"use strict";n.d(t,{CT:()=>s,Hv:()=>a,RJ:()=>u});var r=n(4180),i=n(7451),o=n(9109);function a(e){var t=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,o.Jr)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&s(n,e),n}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,r.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function u(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},4681:(e,t,n)=>{"use strict";n.d(t,{ro:()=>v,lb:()=>m});var r=n(355),i=n(6922),o=n(6885),a=n(2615),s=n(9338),u=n(5498);function c(){var e=(0,u.x1)();if(e){var t="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}var l=n(4061),f=n(6590);function d(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function p(e,t,n){if(!(0,u.zu)(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setMetadata({transactionSampling:{method:"explicitly_set"}}),e;let r;return"function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(r)}})):void 0!==n.parentSampled?(r=n.parentSampled,e.setMetadata({transactionSampling:{method:"inheritance"}})):(r=t.tracesSampleRate,e.setMetadata({transactionSampling:{method:"client_rate",rate:Number(r)}})),function(e){if((0,o.i2)(e)||"number"!=typeof e&&"boolean"!=typeof e)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1;if(e<0||e>1)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1;return!0}(r)?r?(e.sampled=Math.random()<r,e.sampled?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] starting ${e.op} transaction - ${e.name}`),e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function h(e,t){var n=this.getClient(),r=n&&n.getOptions()||{};let i=new f.Y(e,this);return i=p(i,r,{parentSampled:e.parentSampled,transactionContext:e,...t}),i.sampled&&i.initSpanRecorder(r._experiments&&r._experiments.maxSpans),i}function m(e,t,n,r,i,o){var a=e.getClient(),s=a&&a.getOptions()||{};let u=new l.io(t,e,n,r,i);return u=p(u,s,{parentSampled:t.parentSampled,transactionContext:t,...o}),u.sampled&&u.initSpanRecorder(s._experiments&&s._experiments.maxSpans),u}function v(){var t;(t=(0,r.cu)()).__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=h),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=d)),(0,a.KV)()&&function(){var t=(0,r.cu)();if(t.__SENTRY__){var n={mongodb:()=>new((0,a.l$)(e,"./integrations/node/mongo").Mongo),mongoose:()=>new((0,a.l$)(e,"./integrations/node/mongo").Mongo)({mongoose:!0}),mysql:()=>new((0,a.l$)(e,"./integrations/node/mysql").Mysql),pg:()=>new((0,a.l$)(e,"./integrations/node/postgres").Postgres)},i=Object.keys(n).filter((e=>!!(0,a.$y)(e))).map((e=>{try{return n[e]()}catch(e){return}})).filter((e=>e));i.length>0&&(t.__SENTRY__.integrations=[...t.__SENTRY__.integrations||[],...i])}}(),(0,s.o)("error",c),(0,s.o)("unhandledrejection",c)}e=n.hmd(e)},4061:(e,t,n)=>{"use strict";n.d(t,{io:()=>l,mg:()=>u,nT:()=>s});var r=n(4180),i=n(6922),o=n(92),a=n(6590),s=1e3,u=3e4;class c extends o.gB{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:(0,r._I)(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}}class l extends a.Y{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._beforeFinishCallbacks=[]}constructor(e,t,n=s,r=u,o=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._onScope=o,l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),l.prototype.__init4.call(this),o&&(f(t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),t.configureScope((e=>e.setSpan(this)))),this._startIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this.finish())}),this._finalTimeout)}finish(e=(0,r._I)()){if(this._finished=!0,this.activities={},this.spanRecorder){for(var t of(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op),this._beforeFinishCallbacks))t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));var n=t.startTimestamp<e;return n||("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(t,void 0,2)),n})),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] No active IdleTransaction");return this._onScope&&f(this._idleHub),super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){this.spanRecorder=new c((e=>{this._finished||this._pushActivity(e)}),(e=>{this._finished||this._popActivity(e)}),this.spanId,e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}_cancelIdleTimeout(){this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0)}_startIdleTimeout(e){this._cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||this.finish(e)}),this._idleTimeout)}_pushActivity(e){this._cancelIdleTimeout(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] popActivity ${e}`),delete this.activities[e],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var t=(0,r._I)()+this._idleTimeout/1e3;this._startIdleTimeout(t)}}_beat(){if(!this._finished){var e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.finish()):this._pingHeartbeat()}}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),5e3)}}function f(e){var t=e.getScope();t&&(t.getTransaction()&&t.setSpan(void 0))}},92:(e,t,n)=>{"use strict";n.d(t,{Dr:()=>c,gB:()=>u});var r=n(822),i=n(7451),o=n(4180),a=n(6922),s=n(9109);class u{__init(){this.spans=[]}constructor(e=1e3){u.prototype.__init.call(this),this._maxlen=e}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class c{__init2(){this.traceId=(0,i.DM)()}__init3(){this.spanId=(0,i.DM)().substring(16)}__init4(){this.startTimestamp=(0,o._I)()}__init5(){this.tags={}}__init6(){this.data={}}constructor(e){if(c.prototype.__init2.call(this),c.prototype.__init3.call(this),c.prototype.__init4.call(this),c.prototype.__init5.call(this),c.prototype.__init6.call(this),!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}startChild(e){var t=new c({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.transaction){var n=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${t.transaction.name||"< unknown name >"}' (${t.transaction.spanId}).`;t.transaction.metadata.spanMetadata[t.spanId]={logMessage:n},a.kg.log(n)}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e));var t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this}isSuccess(){return"ok"===this.status}finish(e){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:e}=this.transaction.metadata.spanMetadata[this.spanId];e&&a.kg.log(e.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof e?e:(0,o._I)()}toTraceparent(){let e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${e}`}toContext(){return(0,s.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=(0,r.h)(e.data,(()=>({}))),this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=(0,r.h)(e.spanId,(()=>this.spanId)),this.startTimestamp=(0,r.h)(e.startTimestamp,(()=>this.startTimestamp)),this.status=e.status,this.tags=(0,r.h)(e.tags,(()=>({}))),this.traceId=(0,r.h)(e.traceId,(()=>this.traceId)),this}getTraceContext(){return(0,s.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return(0,s.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}},6590:(e,t,n)=>{"use strict";n.d(t,{Y:()=>c});var r=n(822),i=n(355),o=n(6922),a=n(9109),s=n(2456),u=n(92);class c extends u.Dr{__init(){this._measurements={}}constructor(e,t){super(e),c.prototype.__init.call(this),this._hub=t||(0,i.Gd)(),this._name=e.name||"",this.metadata={...e.metadata,spanMetadata:{}},this._trimEnd=e.trimEnd,this.transaction=this}get name(){return this._name}set name(e){this._name=e,this.metadata.source="custom"}setName(e,t="custom"){this.name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new u.gB(e)),this.spanRecorder.add(this)}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){if(void 0===this.endTimestamp){if(this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(e),!0===this.sampled){var t=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&e.endTimestamp)):[];this._trimEnd&&t.length>0&&(this.endTimestamp=t.reduce(((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e)).endTimestamp);var n=this.metadata,r={contexts:{trace:this.getTraceContext()},spans:t,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...n,baggage:this.getBaggage()},...n.source&&{transaction_info:{source:n.source}}};return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),r.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(r)}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var i=this._hub.getClient();i&&i.recordDroppedEvent("sample_rate","transaction")}}toContext(){var e=super.toContext();return(0,a.Jr)({...e,name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=(0,r.h)(e.name,(()=>"")),this._trimEnd=e.trimEnd,this}getBaggage(){var e=this.metadata.baggage,t=!e||(0,s.Gp)(e)?this._populateBaggageWithSentryValues(e):e;return this.metadata.baggage=t,t}_populateBaggageWithSentryValues(e=(0,s.Hn)({})){var t=this._hub||(0,i.Gd)(),n=t&&t.getClient();if(!n)return e;const{environment:r,release:o}=n.getOptions()||{},{publicKey:u}=n.getDsn()||{};var c=this.metadata&&this.metadata.transactionSampling&&this.metadata.transactionSampling.rate&&this.metadata.transactionSampling.rate.toString(),l=t.getScope();const{segment:f}=l&&l.getUser()||{};var d=this.metadata.source,p=d&&"url"!==d?this.name:void 0;return(0,s.Hn)((0,a.Jr)({environment:r,release:o,transaction:p,user_segment:f,public_key:u,trace_id:this.traceId,sample_rate:c,...(0,s.Hk)(e)}),"",!1)}}},5498:(e,t,n)=>{"use strict";n.d(t,{XL:()=>a,x1:()=>o,zu:()=>i});var r=n(355);function i(e){var t=(0,r.Gd)().getClient(),n=e||t&&t.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function o(e){var t=(e||(0,r.Gd)()).getScope();return t&&t.getTransaction()}function a(e){return e/1e3}},2456:(e,t,n)=>{"use strict";n.d(t,{Gp:()=>c,Hk:()=>u,Hn:()=>s,J8:()=>f,bU:()=>o,rg:()=>d});var r=n(6885),i=n(6922),o="baggage",a=/^sentry-/;function s(e,t="",n=!0){return[{...e},t,n]}function u(e){return e[0]}function c(e){return e[2]}function l(e,t=!1){return!Array.isArray(e)&&!(0,r.HD)(e)||"number"==typeof e?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn("[parseBaggageHeader] Received input value of incompatible type: ",typeof e,e),s({},"")):((0,r.HD)(e)?e:e.join(",")).split(",").map((e=>e.trim())).filter((e=>""!==e&&(t||a.test(e)))).reduce((([e,t],n)=>{const[r,i]=n.split("=");if(a.test(r)){var o=decodeURIComponent(r.split("-")[1]);return[{...e,[o]:decodeURIComponent(i)},t,!0]}return[e,""===t?n:`${t},${n}`,!0]}),[{},"",!0])}function f(e,t){if(!e&&!t)return"";var n=t&&l(t,!0)||void 0,r=n&&n[1];return function(e){return Object.keys(e[0]).reduce(((t,n)=>{var r=e[0][n],o=`sentry-${encodeURIComponent(n)}=${encodeURIComponent(r)}`,a=""===t?o:`${t},${o}`;return a.length>8192?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn(`Not adding key: ${n} with val: ${r} to baggage due to exceeding baggage size limits.`),t):a}),e[1])}(s(e&&e[0]||{},r||""))}function d(e,t){var n=l(e||"");return(t||!function(e){return 0===Object.keys(e[0]).length}(n))&&function(e){e[2]=!1}(n),n}},1495:(e,t,n)=>{"use strict";n.d(t,{R:()=>o,l:()=>s});var r=n(6727),i=n(6885);function o(e,t){try{let i=e;var n=[];let o=0,s=0;var r=" > ".length;let u;for(;i&&o++<5&&(u=a(i,t),!("html"===u||o>1&&s+n.length*r+u.length>=80));)n.push(u),s+=u.length,i=i.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function a(e,t){var n=e,r=[];let o,a,s,u,c;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());var l=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(l&&l.length)l.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&(0,i.HD)(o))for(a=o.split(/\s+/),c=0;c<a.length;c++)r.push(`.${a[c]}`);var f=["type","name","title","alt"];for(c=0;c<f.length;c++)s=f[c],u=n.getAttribute(s),u&&r.push(`[${s}="${u}"]`);return r.join("")}function s(){var e=(0,r.R)();try{return e.document.location.href}catch(e){return""}}},822:(e,t,n)=>{"use strict";function r(e,t){return null!=e?e:t()}n.d(t,{h:()=>r})},6727:(e,t,n)=>{"use strict";n.d(t,{R:()=>o,Y:()=>a});var r=n(2615),i={};function o(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(e,t,n){var r=n||o(),i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},9338:(e,t,n)=>{"use strict";n.d(t,{o:()=>p});var r=n(6727),i=n(6885),o=n(6922),a=n(9109),s=n(5514),u=n(3589),c=(0,r.R)(),l={},f={};function d(e){if(!f[e])switch(f[e]=!0,e){case"console":!function(){if(!("console"in c))return;o.RU.forEach((function(e){e in c.console&&(0,a.hl)(c.console,e,(function(t){return function(...n){h("console",{args:n,level:e}),t&&t.apply(c.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in c))return;var e=h.bind(null,"dom"),t=b(e,!0);c.document.addEventListener("click",t,!1),c.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{var n=c[t]&&c[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,a.hl)(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this,a=o.__sentry_instrumentation_handlers__=o.__sentry_instrumentation_handlers__||{},s=a[n]=a[n]||{refCount:0};if(!s.handler){var u=b(e);s.handler=u,t.call(this,n,u,i)}s.refCount+=1}catch(e){}return t.call(this,n,r,i)}})),(0,a.hl)(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var i=this,o=i.__sentry_instrumentation_handlers__||{},a=o[t];a&&(a.refCount-=1,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete i.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in c))return;var e=XMLHttpRequest.prototype;(0,a.hl)(e,"open",(function(e){return function(...t){var n=this,r=t[1],o=n.__sentry_xhr__={method:(0,i.HD)(t[0])?t[0].toUpperCase():t[0],url:t[1]};(0,i.HD)(r)&&"POST"===o.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);var s=function(){if(4===n.readyState){try{o.status_code=n.status}catch(e){}h("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?(0,a.hl)(n,"onreadystatechange",(function(e){return function(...t){return s(),e.apply(n,t)}})):n.addEventListener("readystatechange",s),e.apply(n,t)}})),(0,a.hl)(e,"send",(function(e){return function(...t){return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),h("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!(0,u.t$)())return;(0,a.hl)(c,"fetch",(function(e){return function(...t){var n={args:t,fetchData:{method:m(t),url:v(t)},startTimestamp:Date.now()};return h("fetch",{...n}),e.apply(c,t).then((e=>(h("fetch",{...n,endTimestamp:Date.now(),response:e}),e)),(e=>{throw h("fetch",{...n,endTimestamp:Date.now(),error:e}),e}))}}))}();break;case"history":!function(){if(!(0,u.Bf)())return;var e=c.onpopstate;function t(e){return function(...t){var n=t.length>2?t[2]:void 0;if(n){var r=g,i=String(n);g=i,h("history",{from:r,to:i})}return e.apply(this,t)}}c.onpopstate=function(...t){var n=c.location.href,r=g;if(g=n,h("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},(0,a.hl)(c.history,"pushState",t),(0,a.hl)(c.history,"replaceState",t)}();break;case"error":x=c.onerror,c.onerror=function(e,t,n,r,i){return h("error",{column:r,error:i,line:n,msg:e,url:t}),!!x&&x.apply(this,arguments)};break;case"unhandledrejection":w=c.onunhandledrejection,c.onunhandledrejection=function(e){return h("unhandledrejection",e),!w||w.apply(this,arguments)};break;default:return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("unknown instrumentation type:",e))}}function p(e,t){l[e]=l[e]||[],l[e].push(t),d(e)}function h(e,t){if(e&&l[e])for(var n of l[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,s.$P)(n)}\nError:`,t)}}function m(e=[]){return"Request"in c&&(0,i.V9)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function v(e=[]){return"string"==typeof e[0]?e[0]:"Request"in c&&(0,i.V9)(e[0],Request)?e[0].url:String(e[0])}let g;let y,_;function b(e,t=!1){return n=>{if(n&&_!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===y||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(_,n))&&(e({event:n,name:r,global:t}),_=n),clearTimeout(y),y=c.setTimeout((()=>{y=void 0}),1e3)}}}let x=null;let w=null},6885:(e,t,n)=>{"use strict";n.d(t,{Cy:()=>v,HD:()=>c,J8:()=>m,Kj:()=>h,PO:()=>f,TX:()=>s,V9:()=>y,VW:()=>a,VZ:()=>i,cO:()=>d,fm:()=>u,i2:()=>g,kK:()=>p,pt:()=>l});var r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function o(e,t){return r.call(e)===`[object ${t}]`}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function u(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function l(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function f(e){return o(e,"Object")}function d(e){return"undefined"!=typeof Event&&y(e,Event)}function p(e){return"undefined"!=typeof Element&&y(e,Element)}function h(e){return o(e,"RegExp")}function m(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function v(e){return f(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function g(e){return"number"==typeof e&&e!=e}function y(e,t){try{return e instanceof t}catch(e){return!1}}},6922:(e,t,n)=>{"use strict";n.d(t,{Cf:()=>a,RU:()=>o,kg:()=>u});var r=n(6727),i=(0,r.R)(),o=["debug","info","warn","error","log","assert","trace"];function a(e){var t=(0,r.R)();if(!("console"in t))return e();var n=t.console,i={};o.forEach((e=>{var r=n[e]&&n[e].__sentry_original__;e in t.console&&r&&(i[e]=n[e],n[e]=r)}));try{return e()}finally{Object.keys(i).forEach((e=>{n[e]=i[e]}))}}function s(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?o.forEach((n=>{t[n]=(...t)=>{e&&a((()=>{i.console[n](`Sentry Logger [${n}]:`,...t)}))}})):o.forEach((e=>{t[e]=()=>{}})),t}let u;u="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,r.Y)("logger",s):s()},7451:(e,t,n)=>{"use strict";n.d(t,{DM:()=>o,Db:()=>u,EG:()=>c,YO:()=>l,jH:()=>s});var r=n(6727),i=n(9109);function o(){var e=(0,r.R)(),t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");var n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function s(e){const{message:t,event_id:n}=e;if(t)return t;var r=a(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function u(e,t,n){var r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function c(e,t){var n=a(e);if(n){var r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){var i={...r&&r.data,...t.data};n.mechanism.data=i}}}function l(e){if(e&&e.__sentry_captured__)return!0;try{(0,i.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}},2615:(e,t,n)=>{"use strict";n.d(t,{l$:()=>o,KV:()=>i,$y:()=>a}),e=n.hmd(e);var r=n(7061);function i(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==r?r:0)}function o(e,t){return e.require(t)}function a(t){let n;try{n=o(e,t)}catch(e){}try{const{cwd:r}=o(e,"process");n=o(e,`${r()}/node_modules/${t}`)}catch(e){}return n}},9109:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>u,HK:()=>c,Jr:()=>m,Sh:()=>f,_j:()=>l,hl:()=>a,xp:()=>s,zf:()=>h});var r=n(1495),i=n(6885),o=n(5268);function a(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{u(i,r)}catch(e){}e[t]=i}}function s(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function u(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,s(e,"__sentry_original__",t)}function c(e){return e.__sentry_original__}function l(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function f(e){if((0,i.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...p(e)};if((0,i.cO)(e)){var t={type:e.type,target:d(e.target),currentTarget:d(e.currentTarget),...p(e)};return"undefined"!=typeof CustomEvent&&(0,i.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function d(e){try{return(0,i.kK)(e)?(0,r.R)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function p(e){if("object"==typeof e&&null!==e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function h(e,t=40){var n=Object.keys(f(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,o.$G)(n[0],t);for(let e=n.length;e>0;e--){var r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:(0,o.$G)(r,t)}return""}function m(e){return v(e,new Map)}function v(e,t){if((0,i.PO)(e)){if(void 0!==(o=t.get(e)))return o;var n={};for(var r of(t.set(e,n),Object.keys(e)))void 0!==e[r]&&(n[r]=v(e[r],t));return n}if(Array.isArray(e)){var o;if(void 0!==(o=t.get(e)))return o;n=[];return t.set(e,n),e.forEach((e=>{n.push(v(e,t))})),n}return e}},5514:(e,t,n)=>{"use strict";n.d(t,{$P:()=>a,Sq:()=>i,pE:()=>r});function r(...e){var t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{var r=[];for(var i of e.split("\n").slice(n)){var o=i.replace(/\(error: (.*)\)/,"$1");for(var a of t){var s=a(o);if(s){r.push(s);break}}}return function(e){if(!e.length)return[];let t=e;var n=t[0].function||"",r=t[t.length-1].function||"";-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1));-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1));return t.slice(0,50).map((e=>({...e,filename:e.filename||t[0].filename,function:e.function||"?"}))).reverse()}(r)}}function i(e){return Array.isArray(e)?r(...e):e}var o="<anonymous>";function a(e){try{return e&&"function"==typeof e&&e.name||o}catch(e){return o}}},5268:(e,t,n)=>{"use strict";n.d(t,{$G:()=>i,nK:()=>o,zC:()=>a});var r=n(6885);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.substr(0,t)}...`}function o(e,t){if(!Array.isArray(e))return"";var n=[];for(let t=0;t<e.length;t++){var r=e[t];try{n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function a(e,t){return!!(0,r.HD)(e)&&((0,r.Kj)(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}},3589:(e,t,n)=>{"use strict";n.d(t,{Ak:()=>o,Bf:()=>u,Du:()=>a,t$:()=>s});var r=n(6727),i=n(6922);function o(){if(!("fetch"in(0,r.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function a(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function s(){if(!o())return!1;var e=(0,r.R)();if(a(e.fetch))return!0;let t=!1;var n=e.document;if(n&&"function"==typeof n.createElement)try{var s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s),s.contentWindow&&s.contentWindow.fetch&&(t=a(s.contentWindow.fetch)),n.head.removeChild(s)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t}function u(){var e=(0,r.R)(),t=e.chrome,n=t&&t.app&&t.app.runtime,i="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&i}},8894:(e,t,n)=>{"use strict";n.d(t,{$2:()=>a,WD:()=>o,cW:()=>s});var r,i=n(6885);function o(e){return new s((t=>{t(e)}))}function a(e){return new s(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(r||(r={}));class s{__init(){this._state=r.PENDING}__init2(){this._handlers=[]}constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),s.prototype.__init5.call(this),s.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new s(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init3(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===r.PENDING&&((0,i.J8)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state!==r.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)}))}}}}},4180:(e,t,n)=>{"use strict";n.d(t,{Z1:()=>d,_I:()=>l,ph:()=>c,yW:()=>u});var r=n(6727),i=n(2615);e=n.hmd(e);var o={nowSeconds:()=>Date.now()/1e3};var a=(0,i.KV)()?function(){try{return(0,i.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){const{performance:e}=(0,r.R)();if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},u=o.nowSeconds.bind(o),c=s.nowSeconds.bind(s),l=c;let f;var d=(()=>{const{performance:e}=(0,r.R)();if(e&&e.now){var t=36e5,n=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=o<t,s=e.timing&&e.timing.navigationStart,u="number"==typeof s?Math.abs(s+n-i):t;return a||u<t?o<=u?(f="timeOrigin",e.timeOrigin):(f="navigationStart",s):(f="dateNow",i)}f="none"})()},4206:(e,t,n)=>{e.exports=n(8057)},4387:(e,t,n)=>{"use strict";var r=n(7485),i=n(4570),o=n(2940),a=n(581),s=n(574),u=n(3845),c=n(8338),l=n(4832),f=n(7354),d=n(8870),p=n(4906);e.exports=function(e){return new Promise((function(t,n){var h,m=e.data,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete v["Content-Type"];var _=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+x)}var w=s(e.baseURL,e.url);function E(){if(_){var r="getAllResponseHeaders"in _?u(_.getAllResponseHeaders()):null,o={data:g&&"text"!==g&&"json"!==g?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:r,config:e,request:_};i((function(e){t(e),y()}),(function(e){n(e),y()}),o),_=null}}if(_.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),_.timeout=e.timeout,"onloadend"in _?_.onloadend=E:_.onreadystatechange=function(){_&&4===_.readyState&&(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout(E)},_.onabort=function(){_&&(n(new f("Request aborted",f.ECONNABORTED,e,_)),_=null)},_.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,_,_)),_=null},_.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,_)),_=null},r.isStandardBrowserEnv()){var S=(e.withCredentials||c(w))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;S&&(v[e.xsrfHeaderName]=S)}"setRequestHeader"in _&&r.forEach(v,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:_.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(_.withCredentials=!!e.withCredentials),g&&"json"!==g&&(_.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&_.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&_.upload&&_.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){_&&(n(!e||e&&e.type?new d:e),_.abort(),_=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),m||(m=null);var O=p(w);O&&-1===["http","https","file"].indexOf(O)?n(new f("Unsupported protocol "+O+":",f.ERR_BAD_REQUEST,e)):_.send(m)}))}},8057:(e,t,n)=>{"use strict";var r=n(7485),i=n(875),o=n(5029),a=n(4941);var s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(8396));s.Axios=o,s.CanceledError=n(8870),s.CancelToken=n(4603),s.isCancel=n(1475),s.VERSION=n(3345).version,s.toFormData=n(1020),s.AxiosError=n(7354),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(5739),s.isAxiosError=n(5835),e.exports=s,e.exports.default=s},4603:(e,t,n)=>{"use strict";var r=n(8870);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},8870:(e,t,n)=>{"use strict";var r=n(7354);function i(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(7485).inherits(i,r,{__CANCEL__:!0}),e.exports=i},1475:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5029:(e,t,n)=>{"use strict";var r=n(7485),i=n(581),o=n(8096),a=n(5009),s=n(4941),u=n(574),c=n(6144),l=c.validators;function f(e){this.defaults=e,this.interceptors={request:new o,response:new o}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!i){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(u),o=Promise.resolve(t);f.length;)o=o.then(f.shift(),f.shift());return o}for(var d=t;r.length;){var p=r.shift(),h=r.shift();try{d=p(d)}catch(e){h(e);break}}try{o=a(d)}catch(e){return Promise.reject(e)}for(;u.length;)o=o.then(u.shift(),u.shift());return o},f.prototype.getUri=function(e){e=s(this.defaults,e);var t=u(e.baseURL,e.url);return i(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(s(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},7354:(e,t,n)=>{"use strict";var r=n(7485);function i(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=function(e,t,n,a,s,u){var c=Object.create(o);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),i.call(c,e.message,t,n,a,s),c.name=e.name,u&&Object.assign(c,u),c},e.exports=i},8096:(e,t,n)=>{"use strict";var r=n(7485);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},574:(e,t,n)=>{"use strict";var r=n(2642),i=n(2288);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},5009:(e,t,n)=>{"use strict";var r=n(7485),i=n(9212),o=n(1475),a=n(8396),s=n(8870);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(u(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4941:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function u(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,i=t(e);r.isUndefined(i)&&t!==u||(n[e]=i)})),n}},4570:(e,t,n)=>{"use strict";var r=n(7354);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},9212:(e,t,n)=>{"use strict";var r=n(7485),i=n(8396);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},8396:(e,t,n)=>{"use strict";var r=n(7061),i=n(7485),o=n(1446),a=n(7354),s=n(4832),u=n(1020),c={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var f,d={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(f=n(4387)),f),transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e))return e;if(i.isArrayBufferView(e))return e.buffer;if(i.isURLSearchParams(e))return l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=i.isObject(e),a=t&&t["Content-Type"];if((n=i.isFileList(e))||r&&"multipart/form-data"===a){var s=this.env&&this.env.FormData;return u(n?{"files[]":e}:e,s&&new s)}return r||"application/json"===a?(l(t,"application/json"),function(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a.from(e,a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(8750)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){d.headers[e]=i.merge(c)})),e.exports=d},4832:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},3345:e=>{e.exports={version:"0.27.2"}},875:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},581:(e,t,n)=>{"use strict";var r=n(7485);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},2288:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2940:(e,t,n)=>{"use strict";var r=n(7485);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},2642:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5835:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},8338:(e,t,n)=>{"use strict";var r=n(7485);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},1446:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},8750:e=>{e.exports=null},3845:(e,t,n)=>{"use strict";var r=n(7485),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},4906:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5739:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1020:(e,t,n)=>{"use strict";var r=n(816).Buffer,i=n(7485);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return function e(r,a){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),i.forEach(r,(function(n,r){if(!i.isUndefined(n)){var s,u=a?a+"."+r:r;if(n&&!a&&"object"==typeof n)if(i.endsWith(r,"{}"))n=JSON.stringify(n);else if(i.endsWith(r,"[]")&&(s=i.toArray(n)))return void s.forEach((function(e){!i.isUndefined(e)&&t.append(u,o(e))}));e(n,u)}})),n.pop()}else t.append(a,o(r))}(e),t}},6144:(e,t,n)=>{"use strict";var r=n(3345).version,i=n(7354),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var u=e[a],c=void 0===u||s(u,a,e);if(!0!==c)throw new i("option "+a+" must be "+c,i.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},7485:(e,t,n)=>{"use strict";var r,i=n(875),o=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=o.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var l=s("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),h=s("File"),m=s("Blob"),v=s("FileList");function g(e){return"[object Function]"===o.call(e)}var y=s("URLSearchParams");function _(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var b,x=(b="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return b&&e instanceof b});e.exports={isArray:u,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||o.call(e)===t||g(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:c,isDate:p,isFile:h,isBlob:m,isFunction:g,isStream:function(e){return f(e)&&g(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:_,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):u(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)_(arguments[r],n);return t},extend:function(e,t,n){return _(t,(function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,i,o,a={};t=t||{};do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:x,isFileList:v}},4782:(e,t)=>{"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=u(e),a=o[0],s=o[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,u=r-i;s<u;s+=a)o.push(c(e,s,s+a>u?u:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},816:(e,t,n)=>{"use strict";var r=n(4782),i=n(8898),o=n(5182);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=s(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(r)return Y(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return R(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(c(e,o+d)!==c(t,d)){f=!1;break}if(f)return o}return-1}function _(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function b(e,t,n,r){return H(Y(t,e.length-n),e,n,r)}function x(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return x(e,t,n,r)}function E(e,t,n,r){return H($(t),e,n,r)}function S(e,t,n,r){return H(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function O(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,u,c=e[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=h,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):m.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),f=0;f<s;++f)if(c[f]!==l[f]){o=c[f],a=l[f];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function R(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function k(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=G(e[o]);return i}function D(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function A(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function U(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,r,o){return o||U(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return o||U(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||C(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||C(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):A(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);C(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);C(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):A(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=u.isBuffer(e)?e:Y(new u(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function G(e){return e<16?"0"+e.toString(16):e.toString(16)}function Y(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function $(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}},42:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=i.apply(null,n);a&&e.push(a)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},5839:(e,t,n)=>{"use strict";var r=n(9185),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=u(t),m=u(n),v=0;v<a.length;++v){var g=a[v];if(!(o[g]||r&&r[g]||m&&m[g]||s&&s[g])){var y=d(n,g);try{c(t,g,y)}catch(e){}}}}return t}},8898:(e,t)=>{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,c=u>>1,l=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*m}},5182:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},2525:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,s,u=i(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))n.call(a,l)&&(u[l]=a[l]);if(t){s=t(a);for(var f=0;f<s.length;f++)r.call(a,s[f])&&(u[s[f]]=a[s[f]])}}return u}},7061:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&d())}function d(){if(!c){var e=a(f);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||c||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},8702:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case f:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case v:case m:case u:return e;default:return t}}case i:return t}}}function w(e){return x(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||x(e)===l},t.isConcurrentMode=w,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d||e.$$typeof===y||e.$$typeof===_||e.$$typeof===b||e.$$typeof===g)},t.typeOf=x},9185:(e,t,n)=>{"use strict";e.exports=n(8702)},1426:(e,t,n)=>{"use strict";n(2525);var r=n(7363),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,r)&&!u.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:l,props:o,_owner:a.current}}t.jsx=c,t.jsxs=c},4246:(e,t,n)=>{"use strict";e.exports=n(1426)},6248:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),a=new R(r||[]);return o._invoke=function(e,t,n){var r=f;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return N()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?h:d,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",m={};function v(){}function g(){}function y(){}var _={};u(_,o,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(k([])));x&&x!==n&&r.call(x,o)&&(_=x);var w=y.prototype=v.prototype=Object.create(_);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function O(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function k(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:N}}function N(){return{value:t,done:!0}}return g.prototype=y,u(w,"constructor",y),u(y,"constructor",g),g.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(S.prototype),u(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new S(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),u(w,s,"Generator"),u(w,o,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},7363:e=>{"use strict";e.exports=React}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r](o,o.exports,n),o.loaded=!0,o.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 r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{FunctionToString:()=>de,InboundFilters:()=>ge});var t={};n.r(t),n.d(t,{Breadcrumbs:()=>Nt,Dedupe:()=>Mt,GlobalHandlers:()=>pt,HttpContext:()=>Lt,LinkedErrors:()=>At,TryCatch:()=>bt});var r={};n.r(r),n.d(r,{Breadcrumbs:()=>Nt,BrowserClient:()=>dn,Dedupe:()=>Mt,ErrorBoundary:()=>rr,FunctionToString:()=>de,GlobalHandlers:()=>pt,HttpContext:()=>Lt,Hub:()=>_e.Xb,InboundFilters:()=>ge,Integrations:()=>Fn,LinkedErrors:()=>At,Profiler:()=>Zn,SDK_VERSION:()=>be,Scope:()=>xe.s,TryCatch:()=>bt,addBreadcrumb:()=>Te,addGlobalEventProcessor:()=>xe.c,captureEvent:()=>Se,captureException:()=>we,captureMessage:()=>Ee,chromeStackLineParser:()=>_n,close:()=>Mn,configureScope:()=>Oe,createReduxEnhancer:()=>ar,createTransport:()=>Ve,defaultIntegrations:()=>Pn,defaultStackLineParsers:()=>kn,defaultStackParser:()=>Nn,flush:()=>Ln,forceLoad:()=>Un,geckoStackLineParser:()=>wn,getCurrentHub:()=>_e.Gd,getHubFromCarrier:()=>_e.vi,init:()=>qn,lastEventId:()=>An,makeFetchTransport:()=>pn,makeMain:()=>_e.pj,makeXHRTransport:()=>hn,onLoad:()=>Bn,opera10StackLineParser:()=>Tn,opera11StackLineParser:()=>Rn,reactRouterV3Instrumentation:()=>ur,reactRouterV4Instrumentation:()=>dr,reactRouterV5Instrumentation:()=>pr,reactRouterV6Instrumentation:()=>jr,setContext:()=>je,setExtra:()=>ke,setExtras:()=>Re,setTag:()=>De,setTags:()=>Ne,setUser:()=>Pe,showReportDialog:()=>In,startTransaction:()=>Ie,useProfiler:()=>Qn,winjsStackLineParser:()=>Sn,withErrorBoundary:()=>ir,withProfiler:()=>Kn,withScope:()=>Ce,withSentryReactRouterV6Routing:()=>kr,withSentryRouting:()=>vr,wrap:()=>Gn});const i=wp.element,o=wp.data;var a=n(7363),s=n.n(a);function u(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function c(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var l,f=function(){},d=f(),p=Object,h=function(e){return e===d},m=function(e){return"function"==typeof e},v=function(e,t){return p.assign({},e,t)},g="undefined",y=function(){return typeof window!=g},_=new WeakMap,b=0,x=function(e){var t,n,r=typeof e,i=e&&e.constructor,o=i==Date;if(p(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=_.get(e))return t;if(t=++b+"~",_.set(e,t),i==Array){for(t="@",n=0;n<e.length;n++)t+=x(e[n])+",";_.set(e,t)}if(i==p){t="#";for(var a=p.keys(e).sort();!h(n=a.pop());)h(e[n])||(t+=n+":"+x(e[n])+",");_.set(e,t)}}return t},w=!0,E=y(),S=typeof document!=g,O=E&&window.addEventListener?window.addEventListener.bind(window):f,T=S?document.addEventListener.bind(document):f,j=E&&window.removeEventListener?window.removeEventListener.bind(window):f,R=S?document.removeEventListener.bind(document):f,k={isOnline:function(){return w},isVisible:function(){var e=S&&document.visibilityState;return h(e)||"hidden"!==e}},N={initFocus:function(e){return T("visibilitychange",e),O("focus",e),function(){R("visibilitychange",e),j("focus",e)}},initReconnect:function(e){var t=function(){w=!0,e()},n=function(){w=!1};return O("online",t),O("offline",n),function(){j("online",t),j("offline",n)}}},D=!y()||"Deno"in window,P=function(e){return y()&&typeof window.requestAnimationFrame!=g?window.requestAnimationFrame(e):setTimeout(e,1)},C=D?a.useEffect:a.useLayoutEffect,I="undefined"!=typeof navigator&&navigator.connection,A=!D&&I&&(["slow-2g","2g"].includes(I.effectiveType)||I.saveData),U=function(e){if(m(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?x(e):"",t,e?"$swr$"+e:""]},B=new WeakMap,L=function(e,t,n,r,i,o,a){void 0===a&&(a=!0);var s=B.get(e),u=s[0],c=s[1],l=s[3],f=u[t],d=c[t];if(a&&d)for(var p=0;p<d.length;++p)d[p](n,r,i);return o&&(delete l[t],f&&f[0])?f[0](2).then((function(){return e.get(t)})):e.get(t)},M=0,G=function(){return++M},Y=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u(void 0,void 0,void 0,(function(){var t,n,r,i,o,a,s,u,l,f,p,g,y,_,b,x,w,E,S,O,T;return c(this,(function(c){switch(c.label){case 0:if(t=e[0],n=e[1],r=e[2],i=e[3],a=!!h((o="boolean"==typeof i?{revalidate:i}:i||{}).populateCache)||o.populateCache,s=!1!==o.revalidate,u=!1!==o.rollbackOnError,l=o.optimisticData,f=U(n),p=f[0],g=f[2],!p)return[2];if(y=B.get(t),_=y[2],e.length<3)return[2,L(t,p,t.get(p),d,d,s,!0)];if(b=r,w=G(),_[p]=[w,0],E=!h(l),S=t.get(p),E&&(O=m(l)?l(S):l,t.set(p,O),L(t,p,O)),m(b))try{b=b(t.get(p))}catch(e){x=e}return b&&m(b.then)?[4,b.catch((function(e){x=e}))]:[3,2];case 1:if(b=c.sent(),w!==_[p][0]){if(x)throw x;return[2,b]}x&&E&&u&&(a=!0,b=S,t.set(p,S)),c.label=2;case 2:return a&&(x||(m(a)&&(b=a(b,S)),t.set(p,b)),t.set(g,v(t.get(g),{error:x}))),_[p][1]=G(),[4,L(t,p,b,x,d,s,!!a)];case 3:if(T=c.sent(),x)throw x;return[2,a?T:b]}}))}))},$=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},H=function(e,t){if(!B.has(e)){var n=v(N,t),r={},i=Y.bind(d,e),o=f;if(B.set(e,[r,{},{},{},i]),!D){var a=n.initFocus(setTimeout.bind(d,$.bind(d,r,0))),s=n.initReconnect(setTimeout.bind(d,$.bind(d,r,1)));o=function(){a&&a(),s&&s(),B.delete(e)}}return[e,i,o]}return[e,B.get(e)[4]]},F=H(new Map),q=F[0],z=F[1],V=v({onLoadingSlow:f,onSuccess:f,onError:f,onErrorRetry:function(e,t,n,r,i){var o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!h(o)&&a>o||setTimeout(r,s,i)},onDiscarded:f,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:A?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:A?5e3:3e3,compare:function(e,t){return x(e)==x(t)},isPaused:function(){return!1},cache:q,mutate:z,fallback:{}},k),W=function(e,t){var n=v(e,t);if(t){var r=e.use,i=e.fallback,o=t.use,a=t.fallback;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=v(i,a))}return n},X=(0,a.createContext)({}),J=function(e){return m(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Z=function(){return v(V,(0,a.useContext)(X))},K=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},Q={dedupe:!0},ee=p.defineProperty((function(e){var t=e.value,n=W((0,a.useContext)(X),t),r=t&&t.provider,i=(0,a.useState)((function(){return r?H(r(n.cache||q),t):d}))[0];return i&&(n.cache=i[0],n.mutate=i[1]),C((function(){return i?i[2]:d}),[]),(0,a.createElement)(X.Provider,v(e,{value:n}))}),"default",{value:V}),te=(l=function(e,t,n){var r=n.cache,i=n.compare,o=n.fallbackData,s=n.suspense,l=n.revalidateOnMount,f=n.refreshInterval,p=n.refreshWhenHidden,g=n.refreshWhenOffline,y=B.get(r),_=y[0],b=y[1],x=y[2],w=y[3],E=U(e),S=E[0],O=E[1],T=E[2],j=(0,a.useRef)(!1),R=(0,a.useRef)(!1),k=(0,a.useRef)(S),N=(0,a.useRef)(t),I=(0,a.useRef)(n),A=function(){return I.current},M=function(){return A().isVisible()&&A().isOnline()},$=function(e){return r.set(T,v(r.get(T),e))},H=r.get(S),F=h(o)?n.fallback[S]:o,q=h(H)?F:H,z=r.get(T)||{},V=z.error,W=!j.current,X=function(){return W&&!h(l)?l:!A().isPaused()&&(s?!h(q)&&n.revalidateIfStale:h(q)||n.revalidateIfStale)},J=!(!S||!t)&&(!!z.isValidating||W&&X()),Z=function(e,t){var n=(0,a.useState)({})[1],r=(0,a.useRef)(e),i=(0,a.useRef)({data:!1,error:!1,isValidating:!1}),o=(0,a.useCallback)((function(e){var o=!1,a=r.current;for(var s in e){var u=s;a[u]!==e[u]&&(a[u]=e[u],i.current[u]&&(o=!0))}o&&!t.current&&n({})}),[]);return C((function(){r.current=e})),[r,i.current,o]}({data:q,error:V,isValidating:J},R),ee=Z[0],te=Z[1],ne=Z[2],re=(0,a.useCallback)((function(e){return u(void 0,void 0,void 0,(function(){var t,o,a,s,u,l,f,p,v,g,y,_,b;return c(this,(function(c){switch(c.label){case 0:if(t=N.current,!S||!t||R.current||A().isPaused())return[2,!1];s=!0,u=e||{},l=!w[S]||!u.dedupe,f=function(){return!R.current&&S===k.current&&j.current},p=function(){var e=w[S];e&&e[1]===a&&delete w[S]},v={isValidating:!1},g=function(){$({isValidating:!1}),f()&&ne(v)},$({isValidating:!0}),ne({isValidating:!0}),c.label=1;case 1:return c.trys.push([1,3,,4]),l&&(L(r,S,ee.current.data,ee.current.error,!0),n.loadingTimeout&&!r.get(S)&&setTimeout((function(){s&&f()&&A().onLoadingSlow(S,n)}),n.loadingTimeout),w[S]=[t.apply(void 0,O),G()]),b=w[S],o=b[0],a=b[1],[4,o];case 2:return o=c.sent(),l&&setTimeout(p,n.dedupingInterval),w[S]&&w[S][1]===a?($({error:d}),v.error=d,y=x[S],!h(y)&&(a<=y[0]||a<=y[1]||0===y[1])?(g(),l&&f()&&A().onDiscarded(S),[2,!1]):(i(ee.current.data,o)?v.data=ee.current.data:v.data=o,i(r.get(S),o)||r.set(S,o),l&&f()&&A().onSuccess(o,S,n),[3,4])):(l&&f()&&A().onDiscarded(S),[2,!1]);case 3:return _=c.sent(),p(),A().isPaused()||($({error:_}),v.error=_,l&&f()&&(A().onError(_,S,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||m(n.shouldRetryOnError)&&n.shouldRetryOnError(_))&&M()&&A().onErrorRetry(_,S,n,re,{retryCount:(u.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return s=!1,g(),f()&&l&&L(r,S,v.data,v.error,!1),[2,!0]}}))}))}),[S]),ie=(0,a.useCallback)(Y.bind(d,r,(function(){return k.current})),[]);if(C((function(){N.current=t,I.current=n})),C((function(){if(S){var e=S!==k.current,t=re.bind(d,Q),n=0,r=K(S,b,(function(e,t,n){ne(v({error:t,isValidating:n},i(ee.current.data,e)?d:{data:e}))})),o=K(S,_,(function(e){if(0==e){var r=Date.now();A().revalidateOnFocus&&r>n&&M()&&(n=r+A().focusThrottleInterval,t())}else if(1==e)A().revalidateOnReconnect&&M()&&t();else if(2==e)return re()}));return R.current=!1,k.current=S,j.current=!0,e&&ne({data:q,error:V,isValidating:J}),X()&&(h(q)||D?t():P(t)),function(){R.current=!0,r(),o()}}}),[S,re]),C((function(){var e;function t(){var t=m(f)?f(q):f;t&&-1!==e&&(e=setTimeout(n,t))}function n(){ee.current.error||!p&&!A().isVisible()||!g&&!A().isOnline()?t():re(Q).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[f,p,g,re]),(0,a.useDebugValue)(q),s&&h(q)&&S)throw N.current=t,I.current=n,R.current=!1,h(V)?re(Q):V;return{mutate:ie,get data(){return te.data=!0,q},get error(){return te.error=!0,V},get isValidating(){return te.isValidating=!0,J}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Z(),r=J(e),i=r[0],o=r[1],a=r[2],s=W(n,a),u=l,c=s.use;if(c)for(var f=c.length;f-- >0;)u=c[f](u);return u(i,o||s.fetcher,s)});const ne=wp.components,re=wp.i18n;var ie=n(4246),oe=function(){return(0,ie.jsx)("div",{className:"extendify-onboarding w-full fixed bottom-4 px-4 flex justify-end z-max",children:(0,ie.jsx)("div",{className:"shadow-2xl",children:(0,ie.jsx)(ne.Snackbar,{children:(0,re.__)("Just a moment, this is taking longer than expected.","extendify")})})})},ae=n(7135),se=n.n(ae),ue=n(4206),ce=n.n(ue),le=n(9109);let fe;class de{constructor(){de.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=de.id}setupOnce(){fe=Function.prototype.toString,Function.prototype.toString=function(...e){var t=(0,le.HK)(this)||this;return fe.apply(t,e)}}}de.__initStatic();var pe=n(6922),he=n(7451),me=n(5268),ve=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class ge{static __initStatic(){this.id="InboundFilters"}__init(){this.name=ge.id}constructor(e={}){this._options=e,ge.prototype.__init.call(this)}setupOnce(e,t){var n=e=>{var n=t();if(n){var r=n.getIntegration(ge);if(r){var i=n.getClient(),o=i?i.getOptions():{},a=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...ve],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(r._options,o);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,he.jH)(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;return function(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error(`Cannot extract message for event ${(0,he.jH)(e)}`),[]}return[]}(e).some((e=>t.some((t=>(0,me.zC)(e,t)))))}(e,t.ignoreErrors))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,he.jH)(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;var n=ye(e);return!!n&&t.some((e=>(0,me.zC)(n,e)))}(e,t.denyUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,he.jH)(e)}.\nUrl: ${ye(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;var n=ye(e);return!n||t.some((e=>(0,me.zC)(n,e)))}(e,t.allowUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,he.jH)(e)}.\nUrl: ${ye(e)}`),!0;return!1}(e,a)?null:e}}return e};n.id=this.name,e(n)}}function ye(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let n=e.length-1;n>=0;n--){var t=e[n];if(t&&"<anonymous>"!==t.filename&&"[native code]"!==t.filename)return t.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error(`Cannot extract url for event ${(0,he.jH)(e)}`),null}}ge.__initStatic();var _e=n(355),be="7.9.0",xe=n(36);function we(e,t){return(0,_e.Gd)().captureException(e,{captureContext:t})}function Ee(e,t){var n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return(0,_e.Gd)().captureMessage(e,n,r)}function Se(e,t){return(0,_e.Gd)().captureEvent(e,t)}function Oe(e){(0,_e.Gd)().configureScope(e)}function Te(e){(0,_e.Gd)().addBreadcrumb(e)}function je(e,t){(0,_e.Gd)().setContext(e,t)}function Re(e){(0,_e.Gd)().setExtras(e)}function ke(e,t){(0,_e.Gd)().setExtra(e,t)}function Ne(e){(0,_e.Gd)().setTags(e)}function De(e,t){(0,_e.Gd)().setTag(e,t)}function Pe(e){(0,_e.Gd)().setUser(e)}function Ce(e){(0,_e.Gd)().withScope(e)}function Ie(e,t){return(0,_e.Gd)().startTransaction({metadata:{source:"custom"},...e},t)}class Ae extends Error{constructor(e){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype)}}var Ue=n(8894);function Be(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return(0,Ue.$2)(new Ae("Not adding Promise due to buffer limit reached."));var i=r();return-1===t.indexOf(i)&&t.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new Ue.cW(((n,r)=>{let i=t.length;if(!i)return n(!0);var o=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{(0,Ue.WD)(e).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}function Le(e,t=[]){return[e,t]}function Me(e,t){const[n,r]=e;return[n,[...r,t]]}function Ge(e,t){e[1].forEach((e=>{var n=e[0].type;t(e,n)}))}function Ye(e,t){return(t||new TextEncoder).encode(e)}function $e(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[Ye(i,t),e]:i.push("string"==typeof e?Ye(e,t):e)}for(var a of r){const[e,t]=a;o(`\n${JSON.stringify(e)}\n`),o("string"==typeof t||t instanceof Uint8Array?t:JSON.stringify(t))}return"string"==typeof i?i:function(e){var t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(var i of e)n.set(i,r),r+=i.length;return n}(i)}function He(e,t){var n="string"==typeof e.data?Ye(e.data,t):e.data;return[(0,le.Jr)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var Fe={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function qe(e){return Fe[e]}function ze(e,{statusCode:t,headers:n},r=Date.now()){var i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(var s of o.trim().split(",")){const[e,t]=s.split(":",2);var u=parseInt(e,10),c=1e3*(isNaN(u)?60:u);if(t)for(var l of t.split(";"))i[l]=r+c;else i.all=r+c}else a?i.all=r+function(e,t=Date.now()){var n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}function Ve(e,t,n=Be(e.bufferSize||30)){let r={};return{send:function(i){var o=[];if(Ge(i,((t,n)=>{var i=qe(n);!function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)?o.push(t):e.recordDroppedEvent("ratelimit_backoff",i)})),0===o.length)return(0,Ue.WD)();var a=Le(i[0],o),s=t=>{Ge(a,((n,r)=>{e.recordDroppedEvent(t,qe(r))}))};return n.add((()=>t({body:$e(a,e.textEncoder)}).then((e=>{void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=ze(r,e)}),(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error("Failed while sending event:",e),s("network_error")})))).then((e=>e),(e=>{if(e instanceof Ae)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error("Skipped sending event due to full buffer"),s("queue_overflow"),(0,Ue.WD)();throw e}))},flush:e=>n.drain(e)}}var We=n(6727),Xe=n(9338),Je=n(6885),Ze=n(1495);var Ke=n(5514);function Qe(e,t=1/0,n=1/0){try{return tt("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function et(e,t=3,n=102400){var r,i=Qe(e,t);return r=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?et(e,t-1,n):i}function tt(e,t,r=1/0,i=1/0,o=function(){var e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[a,s]=o;if(null===t||["number","boolean","string"].includes(typeof t)&&!(0,Je.i2)(t))return t;var u=function(e,t){try{return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":void 0!==n.g&&t===n.g?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":(0,Je.Cy)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${(0,Ke.$P)(t)}]`:"symbol"==typeof t?`[${String(t)}]`:"bigint"==typeof t?`[BigInt: ${String(t)}]`:`[object ${Object.getPrototypeOf(t).constructor.name}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!u.startsWith("[object "))return u;if(t.__sentry_skip_normalization__)return t;if(0===r)return u.replace("object ","");if(a(t))return"[Circular ~]";var c=t;if(c&&"function"==typeof c.toJSON)try{return tt("",c.toJSON(),r-1,i,o)}catch(e){}var l=Array.isArray(t)?[]:{};let f=0;var d=(0,le.Sh)(t);for(var p in d)if(Object.prototype.hasOwnProperty.call(d,p)){if(f>=i){l[p]="[MaxProperties ~]";break}var h=d[p];l[p]=tt(p,h,r-1,i,o),f+=1}return s(t),l}function nt(e,t){var n=it(e,t),r={type:t&&t.name,value:at(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function rt(e,t){return{exception:{values:[nt(e,t)]}}}function it(e,t){var n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(ot.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}var ot=/Minified React error #\d+;/i;function at(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function st(e,t,n,r,i){let o;if((0,Je.VW)(t)&&t.error)return rt(e,t.error);if((0,Je.TX)(t)||(0,Je.fm)(t)){var a=t;if("stack"in t)o=rt(e,t);else{var s=a.name||((0,Je.TX)(a)?"DOMError":"DOMException"),u=a.message?`${s}: ${a.message}`:s;o=ut(e,u,n,r),(0,he.Db)(o,u)}return"code"in a&&(o.tags={...o.tags,"DOMException.code":`${a.code}`}),o}return(0,Je.VZ)(t)?rt(e,t):(0,Je.PO)(t)||(0,Je.cO)(t)?(o=function(e,t,n,r){var i={exception:{values:[{type:(0,Je.cO)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${(0,le.zf)(t)}`}]},extra:{__serialized__:et(t)}};if(n){var o=it(e,n);o.length&&(i.exception.values[0].stacktrace={frames:o})}return i}(e,t,n,i),(0,he.EG)(o,{synthetic:!0}),o):(o=ut(e,t,n,r),(0,he.Db)(o,`${t}`,void 0),(0,he.EG)(o,{synthetic:!0}),o)}function ut(e,t,n,r){var i={message:t};if(r&&n){var o=it(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}return i}let ct=0;function lt(){return ct>0}function ft(){ct+=1,setTimeout((()=>{ct-=1}))}function dt(e,t={},n){if("function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if((0,le.HK)(e))return e}catch(t){return e}var i=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map((e=>dt(e,t)));return e.apply(this,i)}catch(e){throw ft(),Ce((n=>{n.addEventProcessor((e=>(t.mechanism&&((0,he.Db)(e,void 0,void 0),(0,he.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),we(e)})),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch(e){}(0,le.$Q)(i,e),(0,le.xp)(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}class pt{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=pt.id}__init2(){this._installFunc={onerror:ht,onunhandledrejection:mt}}constructor(e){pt.prototype.__init.call(this),pt.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;var e,t=this._options;for(var n in t){var r=this._installFunc[n];r&&t[n]&&(e=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(`Global Handler attached: ${e}`),r(),this._installFunc[n]=void 0)}}}function ht(){(0,Xe.o)("error",(e=>{const[t,n,r]=yt();if(!t.getIntegration(pt))return;const{msg:i,url:o,line:a,column:s,error:u}=e;if(!(lt()||u&&u.__sentry_own_request__)){var c=void 0===u&&(0,Je.HD)(i)?function(e,t,n,r){var i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=(0,Je.VW)(e)?e.message:e,a="Error";var s=o.match(i);s&&(a=s[1],o=s[2]);return vt({exception:{values:[{type:a,value:o}]}},t,n,r)}(i,o,a,s):vt(st(n,u||i,void 0,r,!1),o,a,s);c.level="error",gt(t,u,c,"onerror")}}))}function mt(){(0,Xe.o)("unhandledrejection",(e=>{const[t,n,r]=yt();if(!t.getIntegration(pt))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(e){}if(lt()||i&&i.__sentry_own_request__)return!0;var o=(0,Je.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:st(n,i,void 0,r,!0);o.level="error",gt(t,i,o,"onunhandledrejection")}))}function vt(e,t,n,r){var i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,f=(0,Je.HD)(t)&&t.length>0?t:(0,Ze.l)();return 0===u.length&&u.push({colno:c,filename:f,function:"?",in_app:!0,lineno:l}),e}function gt(e,t,n,r){(0,he.EG)(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function yt(){var e=(0,_e.Gd)(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}pt.__initStatic();var _t=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class bt{static __initStatic(){this.id="TryCatch"}__init(){this.name=bt.id}constructor(e){bt.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){var e=(0,We.R)();this._options.setTimeout&&(0,le.hl)(e,"setTimeout",xt),this._options.setInterval&&(0,le.hl)(e,"setInterval",xt),this._options.requestAnimationFrame&&(0,le.hl)(e,"requestAnimationFrame",wt),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&(0,le.hl)(XMLHttpRequest.prototype,"send",Et);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:_t).forEach(St)}}function xt(e){return function(...t){var n=t[0];return t[0]=dt(n,{mechanism:{data:{function:(0,Ke.$P)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function wt(e){return function(t){return e.apply(this,[dt(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,Ke.$P)(e)},handled:!0,type:"instrument"}})])}}function Et(e){return function(...t){var n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&(0,le.hl)(n,e,(function(t){var n={mechanism:{data:{function:e,handler:(0,Ke.$P)(t)},handled:!0,type:"instrument"}},r=(0,le.HK)(t);return r&&(n.mechanism.data.handler=(0,Ke.$P)(r)),dt(t,n)}))})),e.apply(this,t)}}function St(e){var t=(0,We.R)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,le.hl)(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=dt(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,Ke.$P)(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,dt(r,{mechanism:{data:{function:"addEventListener",handler:(0,Ke.$P)(r),target:e},handled:!0,type:"instrument"}}),i])}})),(0,le.hl)(n,"removeEventListener",(function(e){return function(t,n,r){var i=n;try{var o=i&&i.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(e){}return e.call(this,t,i,r)}})))}bt.__initStatic();var Ot=["fatal","error","warning","log","info","debug"];function Tt(e){return"warn"===e?"warning":Ot.includes(e)?e:"log"}function jt(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function Rt(e){return e.split(/\\?\//).filter((e=>e.length>0&&","!==e)).length}var kt="Breadcrumbs";class Nt{static __initStatic(){this.id=kt}__init(){this.name=Nt.id}constructor(e){Nt.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){this.options.console&&(0,Xe.o)("console",Dt),this.options.dom&&(0,Xe.o)("dom",function(e){function t(t){let n,r="object"==typeof e?e.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=t.event.target?(0,Ze.R)(t.event.target,r):(0,Ze.R)(t.event,r)}catch(e){n="<unknown>"}0!==n.length&&(0,_e.Gd)().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})}return t}(this.options.dom)),this.options.xhr&&(0,Xe.o)("xhr",Pt),this.options.fetch&&(0,Xe.o)("fetch",Ct),this.options.history&&(0,Xe.o)("history",It)}}function Dt(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:Tt(e.level),message:(0,me.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message=`Assertion failed: ${(0,me.nK)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1)}(0,_e.Gd)().addBreadcrumb(t,{input:e.args,level:e.level})}function Pt(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;const{method:t,url:n,status_code:r,body:i}=e.xhr.__sentry_xhr__||{};(0,_e.Gd)().addBreadcrumb({category:"xhr",data:{method:t,url:n,status_code:r},type:"http"},{xhr:e.xhr,input:i})}else;}function Ct(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?(0,_e.Gd)().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):(0,_e.Gd)().addBreadcrumb({category:"fetch",data:{...e.fetchData,status_code:e.response.status},type:"http"},{input:e.args,response:e.response})))}function It(e){var t=(0,We.R)();let n=e.from,r=e.to;var i=jt(t.location.href);let o=jt(n);var a=jt(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),(0,_e.Gd)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}Nt.__initStatic();class At{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=At.id}constructor(e={}){At.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){var e=(0,_e.Gd)().getClient();e&&(0,xe.c)(((t,n)=>{var r=(0,_e.Gd)().getIntegration(At);return r?function(e,t,n,r,i){if(!(r.exception&&r.exception.values&&i&&(0,Je.V9)(i.originalException,Error)))return r;var o=Ut(e,n,i.originalException,t);return r.exception.values=[...o,...r.exception.values],r}(e.getOptions().stackParser,r._key,r._limit,t,n):t}))}}function Ut(e,t,n,r,i=[]){if(!(0,Je.V9)(n[r],Error)||i.length+1>=t)return i;var o=nt(e,n[r]);return Ut(e,t,n[r],r,[o,...i])}At.__initStatic();var Bt=(0,We.R)();class Lt{constructor(){Lt.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Lt.id}setupOnce(){(0,xe.c)((e=>{if((0,_e.Gd)().getIntegration(Lt)){if(!Bt.navigator&&!Bt.location&&!Bt.document)return e;var t=e.request&&e.request.url||Bt.location&&Bt.location.href;const{referrer:r}=Bt.document||{},{userAgent:i}=Bt.navigator||{};var n={...t&&{url:t},headers:{...e.request&&e.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}}};return{...e,request:n}}return e}))}}Lt.__initStatic();class Mt{constructor(){Mt.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Mt.id}setupOnce(e,t){var n=e=>{var n=t().getIntegration(Mt);if(n){try{if(function(e,t){if(!t)return!1;if(function(e,t){var n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!Yt(e,t))return!1;if(!Gt(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){var n=$t(t),r=$t(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!Yt(e,t))return!1;if(!Gt(e,t))return!1;return!0}(e,t))return!0;return!1}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function Gt(e,t){let n=Ht(e),r=Ht(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){var i=r[e],o=n[e];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function Yt(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function $t(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Ht(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}Mt.__initStatic();var Ft=n(3313),qt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function zt(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function Vt(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Wt(e){var t="string"==typeof e?function(e){var t=qt.exec(e);if(!t)throw new Ae(`Invalid Sentry Dsn: ${e}`);const[n,r,i="",o,a="",s]=t.slice(1);let u="",c=s;var l=c.split("/");if(l.length>1&&(u=l.slice(0,-1).join("/"),c=l.pop()),c){var f=c.match(/^\d+/);f&&(c=f[0])}return Vt({host:o,pass:i,path:u,projectId:c,port:a,protocol:n,publicKey:r})}(e):Vt(e);return function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach((t=>{if(!e[t])throw new Ae(`Invalid Sentry Dsn: ${t} missing`)})),!n.match(/^\d+$/))throw new Ae(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(e){return"http"===e||"https"===e}(r))throw new Ae(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new Ae(`Invalid Sentry Dsn: Invalid port ${t}`)}(t),t}var Xt=n(4180);function Jt(e){var t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Zt(e,t={}){var n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${Jt(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return(0,le._j)({sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,r)}`}var Kt=n(2456);function Qt(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function en(e,t,n,r){var i=Qt(n),o=e.type||"event";const{transactionSampling:a}=e.sdkProcessingMetadata||{},{method:s,rate:u}=a||{};!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);var c=function(e,t,n,r){var i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baggage,o=i&&(0,Kt.Hk)(i);return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:zt(r)},..."transaction"===e.type&&o&&{trace:(0,le.Jr)({...o})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,Le(c,[[{type:o,sample_rates:[{id:s,rate:u}]},e]])}var tn=[];function nn(e){return e.reduce(((e,t)=>(e.every((e=>t.name!==e.name))&&e.push(t),e)),[])}function rn(e){var t=e.defaultIntegrations&&[...e.defaultIntegrations]||[],n=e.integrations;let r=[...nn(t)];Array.isArray(n)?r=[...r.filter((e=>n.every((t=>t.name!==e.name)))),...nn(n)]:"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var i=r.map((e=>e.name)),o="Debug";return-1!==i.indexOf(o)&&r.push(...r.splice(i.indexOf(o),1)),r}var on="Not capturing exception because it's already been captured.";class an{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(an.prototype.__init.call(this),an.prototype.__init2.call(this),an.prototype.__init3.call(this),an.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=Wt(e.dsn);var t=Zt(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("No DSN provided, client will not do anything.")}captureException(e,t,n){if((0,he.YO)(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(on));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let i=n&&n.event_id;var o=(0,Je.pt)(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(o.then((e=>this._captureEvent(e,n,r))).then((e=>{i=e}))),i}captureEvent(e,t,n){if(t&&t.originalException&&(0,he.YO)(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(on));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,Ft.CT)(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getTransport(){return this._transport}flush(e){var t=this._transport;return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):(0,Ue.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}setupIntegrations(){var e,t;this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=(e=this._options.integrations,t={},e.forEach((e=>{t[e.name]=e,-1===tn.indexOf(e.name)&&(e.setupOnce(xe.c,_e.Gd),tn.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(`Integration installed: ${e.name}`))})),t),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}sendEvent(e,t={}){if(this._dsn){let r=en(e,this._dsn,this._options._metadata,this._options.tunnel);for(var n of t.attachments||[])r=Me(r,He(n,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(r)}}sendSession(e){if(this._dsn){var t=function(e,t,n,r){var i=Qt(n);return Le({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:zt(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t){if(this._options.sendClientReports){var n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(e,t){let n=!1,r=!1;var i=t.exception&&t.exception.values;if(i)for(var o of(r=!0,i)){var a=o.mechanism;if(a&&!1===a.handled){n=!0;break}}var s="ok"===e.status;(s&&0===e.errors||s&&n)&&((0,Ft.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Ue.cW((t=>{let n=0;var r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const{normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=this.getOptions();var o={...e,event_id:e.event_id||t.event_id||(0,he.DM)(),timestamp:e.timestamp||(0,Xt.yW)()};this._applyClientOptions(o),this._applyIntegrationsMetadata(o);let a=n;t.captureContext&&(a=xe.s.clone(a).update(t.captureContext));let s=(0,Ue.WD)(o);if(a){var u=[...t.attachments||[],...a.getAttachments()];u.length&&(t.attachments=u),s=a.applyToEvent(o,t)}return s.then((e=>"number"==typeof r&&r>0?this._normalizeEvent(e,r,i):e))}_normalizeEvent(e,t,n){if(!e)return null;var r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:Qe(e.data,t,n)}})))},...e.user&&{user:Qe(e.user,t,n)},...e.contexts&&{contexts:Qe(e.contexts,t,n)},...e.extra&&{extra:Qe(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Qe(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>(e.data&&(e.data=Qe(e.data,t,n)),e)))),r}_applyClientOptions(e){var t=this.getOptions();const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,me.$G)(e.message,o));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=(0,me.$G)(a.value,o));var s=e.request;s&&s.url&&(s.url=(0,me.$G)(s.url,o))}_applyIntegrationsMetadata(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn(e)}))}_processEvent(e,t,n){const{beforeSend:r,sampleRate:i}=this.getOptions();if(!this._isEnabled())return(0,Ue.$2)(new Ae("SDK not enabled, will not capture event."));var o="transaction"===e.type;return!o&&"number"==typeof i&&Math.random()>i?(this.recordDroppedEvent("sample_rate","error"),(0,Ue.$2)(new Ae(`Discarding event because it's not included in the random sample (sampling rate = ${i})`))):this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",e.type||"error"),new Ae("An event processor returned null, will not send event.");return t.data&&!0===t.data.__sentry__||o||!r?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if((0,Je.J8)(e))return e.then((e=>{if(!(0,Je.PO)(e)&&null!==e)throw new Ae(t);return e}),(e=>{throw new Ae(`beforeSend rejected with ${e}`)}));if(!(0,Je.PO)(e)&&null!==e)throw new Ae(t);return e}(r(n,t))})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",e.type||"error"),new Ae("`beforeSend` returned `null`, will not send event.");var i=n&&n.getSession();return!o&&i&&this._updateSessionFromEvent(i,r),this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof Ae)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Ae(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing+=1,e.then((e=>(this._numProcessing-=1,e)),(e=>(this._numProcessing-=1,e)))}_sendEnvelope(e){this._transport&&this._dsn?this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error("Error while sending event:",e)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error("Transport disabled")}_clearOutcomes(){var e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}var sn=n(3589),un=(0,We.R)();let cn;function ln(){if(cn)return cn;if((0,sn.Du)(un.fetch))return cn=un.fetch.bind(un);var e=un.document;let t=un.fetch;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return cn=t.bind(un)}var fn=(0,We.R)();class dn extends an{constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:be}],version:be},super(e),e.sendClientReports&&fn.document&&fn.document.addEventListener("visibilitychange",(()=>{"hidden"===fn.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){var i=st(e,t,n&&n.syntheticException||void 0,r);return(0,he.EG)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,Ue.WD)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){var o=ut(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),(0,Ue.WD)(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){var n=this.getIntegrationById(kt);n&&n.options&&n.options.sentry&&(0,_e.Gd)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,he.jH)(e)},{event:e}),super.sendEvent(e,t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){var e=this._clearOutcomes();if(0!==e.length)if(this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("Sending outcomes:",e);var t,n,r,i=Zt(this._dsn,this._options),o=(t=e,Le((n=this._options.tunnel&&zt(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:r||(0,Xt.yW)(),discarded_events:t}]]));try{!function(e,t){"[object Navigator]"===Object.prototype.toString.call(un&&un.navigator)&&"function"==typeof un.navigator.sendBeacon?un.navigator.sendBeacon.bind(un.navigator)(e,t):(0,sn.Ak)()&&ln()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error(e)}))}(i,$e(o))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error(e)}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("No dsn provided, will not send outcomes");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("No outcomes to send")}}function pn(e,t=ln()){return Ve(e,(function(n){var r={body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,...e.fetchOptions};return t(e.url,r).then((e=>({statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}))}function hn(e){return Ve(e,(function(t){return new Ue.cW(((n,r)=>{var i=new XMLHttpRequest;for(var o in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(t.body)}))}))}var mn="?";function vn(e,t,n,r){var i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var gn=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,yn=/\((\S*)(?::(\d+))(?::(\d+))\)/,_n=[30,e=>{var t=gn.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=yn.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}const[e,r]=Dn(t[1]||mn,t[2]);return vn(r,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],bn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,xn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,wn=[50,e=>{var t=bn.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=xn.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}let e=t[3],r=t[1]||mn;return[r,e]=Dn(r,e),vn(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],En=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Sn=[40,e=>{var t=En.exec(e);return t?vn(t[2],t[1]||mn,+t[3],t[4]?+t[4]:void 0):void 0}],On=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Tn=[10,e=>{var t=On.exec(e);return t?vn(t[2],t[3]||mn,+t[1]):void 0}],jn=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Rn=[20,e=>{var t=jn.exec(e);return t?vn(t[5],t[3]||t[4]||mn,+t[1],+t[2]):void 0}],kn=[_n,wn,Sn],Nn=(0,Ke.pE)(...kn),Dn=(e,t)=>{var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:mn,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var Pn=[new ge,new de,new bt,new Nt,new pt,new At,new Mt,new Lt];function Cn(e={}){if(void 0===e.defaultIntegrations&&(e.defaultIntegrations=Pn),void 0===e.release){var t=(0,We.R)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);var n={...e,stackParser:(0,Ke.Sq)(e.stackParser||Nn),integrations:rn(e),transport:e.transport||((0,sn.Ak)()?pn:hn)};!function(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?pe.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=(0,_e.Gd)(),r=n.getScope();r&&r.update(t.initialScope);var i=new e(t);n.bindClient(i)}(dn,n),e.autoSessionTracking&&function(){if(void 0===(0,We.R)().document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));var e=(0,_e.Gd)();if(!e.captureSession)return;Yn(e),(0,Xe.o)("history",(({from:e,to:t})=>{void 0!==e&&e!==t&&Yn((0,_e.Gd)())}))}()}function In(e={},t=(0,_e.Gd)()){var n=(0,We.R)();if(!n.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error("Global document not defined in showReportDialog call"));const{client:r,scope:i}=t.getStackTop();var o=e.dsn||r&&r.getDsn();if(o){i&&(e.user={...i.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());var a=n.document.createElement("script");a.async=!0,a.src=function(e,t){var n=Wt(e),r=`${Jt(n)}embed/error-page/`;let i=`dsn=${zt(n)}`;for(var o in t)if("dsn"!==o)if("user"===o){var a=t.user;if(!a)continue;a.name&&(i+=`&name=${encodeURIComponent(a.name)}`),a.email&&(i+=`&email=${encodeURIComponent(a.email)}`)}else i+=`&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;return`${r}?${i}`}(o,e),e.onLoad&&(a.onload=e.onLoad);var s=n.document.head||n.document.body;s?s.appendChild(a):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error("Not injecting report dialog. No injection point found in HTML")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error("DSN not configured for showReportDialog call")}function An(){return(0,_e.Gd)().lastEventId()}function Un(){}function Bn(e){e()}function Ln(e){var t=(0,_e.Gd)().getClient();return t?t.flush(e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("Cannot flush events. No client defined."),(0,Ue.WD)(!1))}function Mn(e){var t=(0,_e.Gd)().getClient();return t?t.close(e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("Cannot flush events and disable SDK. No client defined."),(0,Ue.WD)(!1))}function Gn(e){return dt(e)()}function Yn(e){e.startSession({ignoreDuration:!0}),e.captureSession()}let $n={};var Hn=(0,We.R)();Hn.Sentry&&Hn.Sentry.Integrations&&($n=Hn.Sentry.Integrations);var Fn={...$n,...e,...t};function qn(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:be}],version:be},Cn(e)}var zn=n(5839),Vn=n.n(zn),Wn="ui.react.render",Xn="ui.react.mount",Jn="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/profiler.tsx";class Zn extends a.Component{__init(){this._mountSpan=void 0}static __initStatic(){this.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0}}constructor(e){super(e),Zn.prototype.__init.call(this);const{name:t,disabled:n=!1}=this.props;if(!n){var r=er();r&&(this._mountSpan=r.startChild({description:`<${t}>`,op:Xn}))}}componentDidMount(){this._mountSpan&&this._mountSpan.finish()}componentDidUpdate({updateProps:e,includeUpdates:t=!0}){if(t&&this._mountSpan&&e!==this.props.updateProps){var n=Object.keys(e).filter((t=>e[t]!==this.props.updateProps[t]));if(n.length>0){var r=(0,Xt._I)();this._mountSpan.startChild({data:{changedProps:n},description:`<${this.props.name}>`,endTimestamp:r,op:"ui.react.update",startTimestamp:r})}}}componentWillUnmount(){const{name:e,includeRender:t=!0}=this.props;this._mountSpan&&t&&this._mountSpan.startChild({description:`<${e}>`,endTimestamp:(0,Xt._I)(),op:Wn,startTimestamp:this._mountSpan.endTimestamp})}render(){return this.props.children}}function Kn(e,t){var n=t&&t.name||e.displayName||e.name||"unknown",r=r=>a.createElement(Zn,{...t,name:n,updateProps:r,__self:this,__source:{fileName:Jn,lineNumber:133}},a.createElement(e,{...r,__self:this,__source:{fileName:Jn,lineNumber:134}}));return r.displayName=`profiler(${n})`,Vn()(r,e),r}function Qn(e,t={disabled:!1,hasRenderSpan:!0}){const[n]=a.useState((()=>{if(!t||!t.disabled){var n=er();return n?n.startChild({description:`<${e}>`,op:Xn}):void 0}}));a.useEffect((()=>(n&&n.finish(),()=>{n&&t.hasRenderSpan&&n.startChild({description:`<${e}>`,endTimestamp:(0,Xt._I)(),op:Wn,startTimestamp:n.endTimestamp})})),[])}function er(e=(0,_e.Gd)()){if(e){var t=e.getScope();if(t)return t.getTransaction()}}Zn.__initStatic();var tr="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/errorboundary.tsx";var nr={componentStack:null,error:null,eventId:null};class rr extends a.Component{constructor(...e){super(...e),rr.prototype.__init.call(this),rr.prototype.__init2.call(this)}__init(){this.state=nr}componentDidCatch(e,{componentStack:t}){const{beforeCapture:n,onError:r,showDialog:i,dialogOptions:o}=this.props;Ce((s=>{if(c=a.version,null!==(l=c.match(/^([^.]+)/))&&parseInt(l[0])>=17){var u=new Error(e.message);u.name=`React ErrorBoundary ${u.name}`,u.stack=t,e.cause=u}var c,l;n&&n(s,e,t);var f=we(e,{contexts:{react:{componentStack:t}}});r&&r(e,t,f),i&&In({...o,eventId:f}),this.setState({error:e,componentStack:t,eventId:f})}))}componentDidMount(){const{onMount:e}=this.props;e&&e()}componentWillUnmount(){const{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&r(e,t,n)}__init2(){this.resetErrorBoundary=()=>{const{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(nr)}}render(){const{fallback:e,children:t}=this.props,{error:n,componentStack:r,eventId:i}=this.state;if(n){let t;return t="function"==typeof e?e({error:n,componentStack:r,resetError:this.resetErrorBoundary,eventId:i}):e,a.isValidElement(t)?t:(e&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("fallback did not produce a valid ReactElement"),null)}return"function"==typeof t?t():t}}function ir(e,t){var n=e.displayName||e.name||"unknown",r=n=>a.createElement(rr,{...t,__self:this,__source:{fileName:tr,lineNumber:168}},a.createElement(e,{...n,__self:this,__source:{fileName:tr,lineNumber:169}}));return r.displayName=`errorBoundary(${n})`,Vn()(r,e),r}var or={actionTransformer:e=>e,stateTransformer:e=>e||null};function ar(e){var t={...or,...e};return e=>(n,r)=>e(((e,r)=>{var i=n(e,r);return Oe((e=>{var n=t.actionTransformer(r);null!=n&&e.addBreadcrumb({category:"redux.action",data:n,type:"info"});var o=t.stateTransformer(i);null!=o?e.setContext("state",{type:"redux",value:o}):e.setContext("state",null);const{configureScopeWithState:a}=t;"function"==typeof a&&a(e,i)})),i}),r)}var sr=(0,We.R)();function ur(e,t,n){return(r,i=!0,o=!0)=>{let a,s;i&&sr&&sr.location&&cr(t,sr.location,n,((e,t="url")=>{s=e,a=r({name:s,op:"pageload",tags:{"routing.instrumentation":"react-router-v3"},metadata:{source:t}})})),o&&e.listen&&e.listen((e=>{if("PUSH"===e.action||"POP"===e.action){a&&a.finish();var i={"routing.instrumentation":"react-router-v3"};s&&(i.from=s),cr(t,e,n,((e,t="url")=>{s=e,a=r({name:s,op:"navigation",tags:i,metadata:{source:t}})}))}}))}}function cr(e,t,n,r){let i=t.pathname;n({location:t,routes:e},((e,t,n)=>{if(e||!n)return r(i);var o=function(e){if(!Array.isArray(e)||0===e.length)return"";var t=e.filter((e=>!!e.path));let n=-1;for(let e=t.length-1;e>=0;e--){var r=t[e];if(r.path&&r.path.startsWith("/")){n=e;break}}return t.slice(n).filter((({path:e})=>!!e)).map((({path:e})=>e)).join("")}(n.routes||[]);return 0===o.length||"/*"===o?r(i):(i=o,r(i,"route"))}))}var lr=(0,We.R)();let fr;function dr(e,t,n){return hr(e,"react-router-v4",t,n)}function pr(e,t,n){return hr(e,"react-router-v5",t,n)}function hr(e,t,n=[],r){function i(e){if(0===n.length||!r)return[e,"url"];var t=mr(n,e,r);for(let e=0;e<t.length;e++)if(t[e].match.isExact)return[t[e].match.path,"route"];return[e,"url"]}var o={"routing.instrumentation":t};return(t,n=!0,r=!0)=>{var a=e&&e.location?e.location.pathname:lr&&lr.location?lr.location.pathname:void 0;if(n&&a){const[e,n]=i(a);fr=t({name:e,op:"pageload",tags:o,metadata:{source:n}})}r&&e.listen&&e.listen(((e,n)=>{if(n&&("PUSH"===n||"POP"===n)){fr&&fr.finish();const[n,r]=i(e.pathname);fr=t({name:n,op:"navigation",tags:o,metadata:{source:r}})}}))}}function mr(e,t,n,r=[]){return e.some((e=>{var i=e.path?n(t,e):r.length?r[r.length-1].match:function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}}(t);return i&&(r.push({route:e,match:i}),e.routes&&mr(e.routes,t,n,r)),!!i})),r}function vr(e){var t=e.displayName||e.name,n=t=>(fr&&t&&t.computedMatch&&t.computedMatch.isExact&&(fr.setName(t.computedMatch.path),fr.setMetadata({source:"route"})),a.createElement(e,{...t,__self:this,__source:{fileName:"/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/reactrouter.tsx",lineNumber:177}}));return n.displayName=`sentryRoute(${t})`,Vn()(n,e),n}let gr,yr,_r,br,xr,wr,Er,Sr;var Or=(0,We.R)(),Tr={"routing.instrumentation":"react-router-v6"};function jr(e,t,n,r,i){return(o,a=!0,s=!0)=>{var u=Or&&Or.location&&Or.location.pathname;a&&u&&(gr=o({name:u,op:"pageload",tags:Tr,metadata:{source:"url"}})),yr=e,_r=t,br=n,wr=i,xr=r,Er=o,Sr=s}}function Rr(e,t,n){if(!e||0===e.length||!n)return[t.pathname,"url"];var r=n(e,t);let i="";if(r)for(let e=0;e<r.length;e++){var o=r[e],a=o.route;if(a){if(a.index)return[o.pathname,"route"];var s=a.path;if(s){var u="/"===s[0]?s:`/${s}`;if(i+=u,o.pathname===t.pathname)return Rt(i)!==Rt(o.pathname)?[u,"route"]:[i,"route"]}}}return[t.pathname,"url"]}function kr(e){if(!(yr&&_r&&br&&xr&&wr&&Er))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters."),e;let t,n=!1;var r=r=>{var i=_r(),o=br();return yr((()=>{if(t=xr(r.children),n=!0,gr){const[e,n]=Rr(t,i,wr);gr.setName(e),gr.setMetadata({source:n})}}),[r.children]),yr((()=>{if(n)gr&&gr.finish();else if(Sr&&("PUSH"===o||"POP"===o)){gr&&gr.finish();const[e,n]=Rr(t,i,wr);gr=Er({name:e,op:"navigation",tags:Tr,metadata:{source:n}})}}),[r.children,i,o,n]),n=!1,s().createElement(e,{...r,__self:this,__source:{fileName:"/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/reactrouterv6.tsx",lineNumber:211}})};return Vn()(r,e),r}var Nr=n(4681),Dr=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");var Pr=n(4061),Cr=n(5498),Ir=(0,We.R)();var Ar=n(822),Ur=(e,t,n)=>{let r;return i=>{t.value>=0&&(i||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},Br=(e,t)=>({name:e,value:(0,Ar.h)(t,(()=>-1)),delta:0,entries:[],id:`v2-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`}),Lr=(e,t)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((e=>e.getEntries().map(t)));return n.observe({type:e,buffered:!0}),n}}catch(e){}},Mr=(e,t)=>{var n=r=>{"pagehide"!==r.type&&"hidden"!==(0,We.R)().document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)};let Gr=-1;var Yr=()=>(Gr<0&&(Gr="hidden"===(0,We.R)().document.visibilityState?0:1/0,Mr((({timeStamp:e})=>{Gr=e}),!0)),{get firstHiddenTime(){return Gr}}),$r={};function Hr(e){return"number"==typeof e&&isFinite(e)}function Fr(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}var qr=(0,We.R)();function zr(){return qr&&qr.addEventListener&&qr.performance}let Vr,Wr,Xr=0,Jr={};function Zr(e=!1){var t=zr();t&&Xt.Z1&&(t.mark&&qr.performance.mark("sentry-tracing-init"),((e,t)=>{var n=Br("CLS",0);let r,i=0,o=[];var a=e=>{if(e&&!e.hadRecentInput){var t=o[0],a=o[o.length-1];i&&0!==o.length&&e.startTime-a.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e]),i>n.value&&(n.value=i,n.entries=o,r&&r())}},s=Lr("layout-shift",a);s&&(r=Ur(e,n,t),Mr((()=>{s.takeRecords().map(a),r(!0)})))})((e=>{var t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("[Measurements] Adding CLS"),Jr.cls={value:e.value,unit:""},Wr=t)})),function(e){((e,t)=>{var n=Yr(),r=Br("LCP");let i;var o=e=>{var t=e.startTime;t<n.firstHiddenTime&&(r.value=t,r.entries.push(e)),i&&i()},a=Lr("largest-contentful-paint",o);if(a){i=Ur(e,r,t);var s=()=>{$r[r.id]||(a.takeRecords().map(o),a.disconnect(),$r[r.id]=!0,i(!0))};["keydown","click"].forEach((e=>{addEventListener(e,s,{once:!0,capture:!0})})),Mr(s,!0)}})((e=>{var t=e.entries.pop();if(t){var n=(0,Cr.XL)(Xt.Z1),r=(0,Cr.XL)(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("[Measurements] Adding LCP"),Jr.lcp={value:e.value,unit:"millisecond"},Jr["mark.lcp"]={value:n+r,unit:"second"},Vr=t}}),e)}(e),((e,t)=>{var n=Yr(),r=Br("FID");let i;var o=e=>{i&&e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),i(!0))},a=Lr("first-input",o);a&&(i=Ur(e,r,t),Mr((()=>{a.takeRecords().map(o),a.disconnect()}),!0))})((e=>{var t=e.entries.pop();if(t){var n=(0,Cr.XL)(Xt.Z1),r=(0,Cr.XL)(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("[Measurements] Adding FID"),Jr.fid={value:e.value,unit:"millisecond"},Jr["mark.fid"]={value:n+r,unit:"second"}}})))}function Kr(e){var t=zr();if(!t||!qr.performance.getEntries||!Xt.Z1)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("[Tracing] Adding & adjusting spans using Performance API");var n=(0,Cr.XL)(Xt.Z1),r=t.getEntries();let i,o;r.slice(Xr).forEach((t=>{var r=(0,Cr.XL)(t.startTime),a=(0,Cr.XL)(t.duration);if(!("navigation"===e.op&&n+r<e.startTimestamp))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{Qr(e,t,r,n)})),Qr(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Qr(e,t,"fetch",n,"cache","domainLookupStart"),Qr(e,t,"domainLookup",n,"DNS"),function(e,t,n){Fr(e,{op:"browser",description:"request",startTimestamp:n+(0,Cr.XL)(t.requestStart),endTimestamp:n+(0,Cr.XL)(t.responseEnd)}),Fr(e,{op:"browser",description:"response",startTimestamp:n+(0,Cr.XL)(t.responseStart),endTimestamp:n+(0,Cr.XL)(t.responseEnd)})}(e,t,n)}(e,t,n),i=n+(0,Cr.XL)(t.responseStart),o=n+(0,Cr.XL)(t.requestStart);break;case"mark":case"paint":case"measure":var s=function(e,t,n,r,i){var o=i+n,a=o+r;return Fr(e,{description:t.name,endTimestamp:a,op:t.entryType,startTimestamp:o}),o}(e,t,r,a,n),u=Yr(),c=t.startTime<u.firstHiddenTime;"first-paint"===t.name&&c&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("[Measurements] Adding FP"),Jr.fp={value:t.startTime,unit:"millisecond"},Jr["mark.fp"]={value:s,unit:"second"}),"first-contentful-paint"===t.name&&c&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("[Measurements] Adding FCP"),Jr.fcp={value:t.startTime,unit:"millisecond"},Jr["mark.fcp"]={value:s,unit:"second"});break;case"resource":var l=t.name.replace(qr.location.origin,"");!function(e,t,n,r,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;var a={};"transferSize"in t&&(a["Transfer Size"]=t.transferSize);"encodedBodySize"in t&&(a["Encoded Body Size"]=t.encodedBodySize);"decodedBodySize"in t&&(a["Decoded Body Size"]=t.decodedBodySize);var s=o+r;Fr(e,{description:n,endTimestamp:s+i,op:t.initiatorType?`resource.${t.initiatorType}`:"resource",startTimestamp:s,data:a})}(e,t,l,r,a,n)}})),Xr=Math.max(r.length-1,0),function(e){var t=qr.navigator;if(!t)return;var n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Hr(n.rtt)&&(Jr["connection.rtt"]={value:n.rtt,unit:"millisecond"}),Hr(n.downlink)&&(Jr["connection.downlink"]={value:n.downlink,unit:""}));Hr(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`);Hr(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===e.op&&("number"==typeof i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("[Measurements] Adding TTFB"),Jr.ttfb={value:1e3*(i-e.startTimestamp),unit:"millisecond"},"number"==typeof o&&o<=i&&(Jr["ttfb.requestTime"]={value:1e3*(i-o),unit:"millisecond"})),["fcp","fp","lcp"].forEach((t=>{if(Jr[t]&&!(n>=e.startTimestamp)){var r=Jr[t].value,i=n+(0,Cr.XL)(r),o=Math.abs(1e3*(i-e.startTimestamp)),a=o-r;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(`[Measurements] Normalized ${t} from ${r} to ${o} (${a})`),Jr[t].value=o}})),Jr["mark.fid"]&&Jr.fid&&Fr(e,{description:"first input delay",endTimestamp:Jr["mark.fid"].value+(0,Cr.XL)(Jr.fid.value),op:"web.vitals",startTimestamp:Jr["mark.fid"].value}),"fcp"in Jr||delete Jr.cls,Object.keys(Jr).forEach((t=>{e.setMeasurement(t,Jr[t].value,Jr[t].unit)})),function(e){Vr&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("[Measurements] Adding LCP Data"),Vr.element&&e.setTag("lcp.element",(0,Ze.R)(Vr.element)),Vr.id&&e.setTag("lcp.id",Vr.id),Vr.url&&e.setTag("lcp.url",Vr.url.trim().slice(0,200)),e.setTag("lcp.size",Vr.size));Wr&&Wr.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("[Measurements] Adding CLS Data"),Wr.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,(0,Ze.R)(t.node)))))}(e)),Vr=void 0,Wr=void 0,Jr={}}function Qr(e,t,n,r,i,o){var a=o?t[o]:t[`${n}End`],s=t[`${n}Start`];s&&a&&Fr(e,{op:"browser",description:(0,Ar.h)(i,(()=>n)),startTimestamp:r+(0,Cr.XL)(s),endTimestamp:r+(0,Cr.XL)(a)})}var ei={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function ti(e){const{traceFetch:t,traceXHR:n,tracingOrigins:r,shouldCreateSpanForRequest:i}={...ei,...e};var o={},a=e=>{if(o[e])return o[e];var t=r;return o[e]=t.some((t=>(0,me.zC)(e,t)))&&!(0,me.zC)(e,"sentry_key"),o[e]};let s=a;"function"==typeof i&&(s=e=>a(e)&&i(e));var u={};t&&(0,Xe.o)("fetch",(e=>{!function(e,t,n){if(!(0,Cr.zu)()||!e.fetchData||!t(e.fetchData.url))return;if(e.endTimestamp){var r=e.fetchData.__span;if(!r)return;return void((o=n[r])&&(e.response?o.setHttpStatus(e.response.status):e.error&&o.setStatus("internal_error"),o.finish(),delete n[r]))}var i=(0,Cr.x1)();if(i){var o=i.startChild({data:{...e.fetchData,type:"fetch"},description:`${e.fetchData.method} ${e.fetchData.url}`,op:"http.client"});e.fetchData.__span=o.spanId,n[o.spanId]=o;var a=e.args[0]=e.args[0],s=e.args[1]=e.args[1]||{};s.headers=function(e,t,n,r){let i=r.headers;(0,Je.V9)(e,Request)&&(i=e.headers);if(i)if("function"==typeof i.append)i.append("sentry-trace",n.toTraceparent()),i.append(Kt.bU,(0,Kt.J8)(t,i.get(Kt.bU)));else if(Array.isArray(i)){const[,e]=i.find((([e,t])=>e===Kt.bU));i=[...i,["sentry-trace",n.toTraceparent()],[Kt.bU,(0,Kt.J8)(t,e)]]}else i={...i,"sentry-trace":n.toTraceparent(),baggage:(0,Kt.J8)(t,i.baggage)};else i={"sentry-trace":n.toTraceparent(),baggage:(0,Kt.J8)(t)};return i}(a,i.getBaggage(),o,s)}}(e,s,u)})),n&&(0,Xe.o)("xhr",(e=>{!function(e,t,n){if(!(0,Cr.zu)()||e.xhr&&e.xhr.__sentry_own_request__||!(e.xhr&&e.xhr.__sentry_xhr__&&t(e.xhr.__sentry_xhr__.url)))return;var r=e.xhr.__sentry_xhr__;if(e.endTimestamp){var i=e.xhr.__sentry_xhr_span_id__;if(!i)return;return void((a=n[i])&&(a.setHttpStatus(r.status_code),a.finish(),delete n[i]))}var o=(0,Cr.x1)();if(o){var a=o.startChild({data:{...r.data,type:"xhr",method:r.method,url:r.url},description:`${r.method} ${r.url}`,op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=a.spanId,n[e.xhr.__sentry_xhr_span_id__]=a,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",a.toTraceparent());var s=e.xhr.getRequestHeader&&e.xhr.getRequestHeader(Kt.bU);e.xhr.setRequestHeader(Kt.bU,(0,Kt.J8)(o.getBaggage(),s))}catch(e){}}}(e,s,u)}))}var ni=(0,We.R)();var ri={idleTimeout:Pr.nT,finalTimeout:Pr.mg,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){if(!ni||!ni.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("Could not initialize routing instrumentation due to invalid location"));let r,i=ni.location.href;t&&(r=e({name:ni.location.pathname,op:"pageload",metadata:{source:"url"}})),n&&(0,Xe.o)("history",(({to:t,from:n})=>{void 0===n&&i&&-1!==i.indexOf(t)?i=void 0:n!==t&&(i=void 0,r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.finish()),r=e({name:ni.location.pathname,op:"navigation",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,...ei};class ii{__init(){this.name="BrowserTracing"}constructor(e){ii.prototype.__init.call(this);let t=ei.tracingOrigins;e&&(e.tracingOrigins&&Array.isArray(e.tracingOrigins)&&0!==e.tracingOrigins.length?t=e.tracingOrigins:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._emitOptionsWarning=!0)),this.options={...ri,...e,tracingOrigins:t};const{_metricOptions:n}=this.options;Zr(n&&n._reportAllChanges)}setupOnce(e,t){this._getCurrentHub=t,this._emitOptionsWarning&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn(`[Tracing] We added a reasonable default for you: ${ei.tracingOrigins}`));const{routingInstrumentation:n,startTransactionOnLocationChange:r,startTransactionOnPageLoad:i,markBackgroundTransactions:o,traceFetch:a,traceXHR:s,tracingOrigins:u,shouldCreateSpanForRequest:c}=this.options;n((e=>this._createRouteTransaction(e)),i,r),o&&(Ir&&Ir.document?Ir.document.addEventListener("visibilitychange",(()=>{var e=(0,Cr.x1)();if(Ir.document.hidden&&e){var t="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(`[Tracing] Transaction: cancelled -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),ti({traceFetch:a,traceXHR:s,tracingOrigins:u,shouldCreateSpanForRequest:c})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`));const{beforeNavigate:t,idleTimeout:n,finalTimeout:r}=this.options;var i="pageload"===e.op?function(){var e=oi("sentry-trace"),t=oi("baggage"),n=e?function(e){var t=e.match(Dr);if(t){let e;return"1"===t[3]?e=!0:"0"===t[3]&&(e=!1),{traceId:t[1],parentSampled:e,parentSpanId:t[2]}}}(e):void 0,r=(0,Kt.rg)(t,e);if(n||r)return{...n&&n,...r&&{metadata:{baggage:r}}};return}():void 0,o={...e,...i,...i&&{metadata:{...e.metadata,...i.metadata}},trimEnd:!0},a="function"==typeof t?t(o):o,s=void 0===a?{...o,sampled:!1}:a;s.metadata=s.name!==o.name?{...s.metadata,source:"custom"}:s.metadata,!1===s.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(`[Tracing] Will not send ${s.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(`[Tracing] Starting ${s.op} transaction on scope`);var u=this._getCurrentHub();const{location:c}=(0,We.R)();var l=(0,Nr.lb)(u,s,n,r,!0,{location:c});return l.registerBeforeFinishCallback((e=>{Kr(e),e.setTag("sentry_reportAllChanges",Boolean(this.options._metricOptions&&this.options._metricOptions._reportAllChanges))})),l}}function oi(e){var t=(0,We.R)();if(t.document&&t.document.querySelector){var n=t.document.querySelector(`meta[name=${e}]`);return n?n.getAttribute("content"):null}return null}function ai(e){let t;const n=new Set,r=(e,r)=>{const i="function"==typeof e?e(t):e;if(i!==t){const e=t;t=r?i:Object.assign({},t,i),n.forEach((n=>n(t,e)))}},i=()=>t,o={setState:r,getState:i,subscribe:(e,r,o)=>r||o?((e,r=i,o=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=r(t);function s(){const n=r(t);if(!o(a,n)){const t=a;e(a=n,t)}}return n.add(s),()=>n.delete(s)})(e,r,o):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,i,o),o}("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,Nr.ro)();const si="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?a.useEffect:a.useLayoutEffect;function ui(e){const t="function"==typeof e?ai(e):e,n=(e=t.getState,n=Object.is)=>{const[,r]=(0,a.useReducer)((e=>e+1),0),i=t.getState(),o=(0,a.useRef)(i),s=(0,a.useRef)(e),u=(0,a.useRef)(n),c=(0,a.useRef)(!1),l=(0,a.useRef)();let f;void 0===l.current&&(l.current=e(i));let d=!1;(o.current!==i||s.current!==e||u.current!==n||c.current)&&(f=e(i),d=!n(l.current,f)),si((()=>{d&&(l.current=f),o.current=i,s.current=e,u.current=n,c.current=!1}));const p=(0,a.useRef)(i);si((()=>{const e=()=>{try{const e=t.getState(),n=s.current(e);u.current(l.current,n)||(o.current=e,l.current=n,r())}catch(e){c.current=!0,r()}},n=t.subscribe(e);return t.getState()!==p.current&&e(),n}),[]);const h=d?f:l.current;return(0,a.useDebugValue)(h),h};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[n,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},n}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function ci(e,t){return(n,r,i)=>{var o;let a=!1;"string"!=typeof t||a||(console.warn("[zustand devtools middleware]: passing `name` as directly will be not allowed in next majorpass the `name` in an object `{ name: ... }` instead"),a=!0);const s=void 0===t?{name:void 0,anonymousActionType:void 0}:"string"==typeof t?{name:t}:t;let u;void 0!==(null==(o=null==s?void 0:s.serialize)?void 0:o.options)&&console.warn("[zustand devtools middleware]: `serialize.options` is deprecated, just use `serialize`");try{u=window.__REDUX_DEVTOOLS_EXTENSION__||window.top.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return"undefined"!=typeof window&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);let c=Object.create(u.connect(s)),l=!1;Object.defineProperty(i,"devtools",{get:()=>(l||(console.warn("[zustand devtools middleware] `devtools` property on the store is deprecated it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),l=!0),c),set:e=>{l||(console.warn("[zustand devtools middleware] `api.devtools` is deprecated, it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),l=!0),c=e}});let f=!1;Object.defineProperty(c,"prefix",{get:()=>(f||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),f=!0),""),set:()=>{f||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),f=!0)}});let d=!0;i.setState=(e,t,i)=>{n(e,t),d&&c.send(void 0===i?{type:s.anonymousActionType||"anonymous"}:"string"==typeof i?{type:i}:i,r())};const p=(...e)=>{const t=d;d=!1,n(...e),d=t},h=e(i.setState,r,i);if(c.init(h),i.dispatchFromDevtools&&"function"==typeof i.dispatch){let e=!1;const t=i.dispatch;i.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return c.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):li(e.payload,(e=>{"__setState"!==e.type?i.dispatchFromDevtools&&"function"==typeof i.dispatch&&i.dispatch(e):p(e.state)}));case"DISPATCH":switch(e.payload.type){case"RESET":return p(h),c.init(i.getState());case"COMMIT":return c.init(i.getState());case"ROLLBACK":return li(e.state,(e=>{p(e),c.init(i.getState())}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return li(e.state,(e=>{p(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return p(r),void c.send(null,n)}case"PAUSE_RECORDING":return d=!d}return}})),h}}const li=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)};var fi=Object.defineProperty,di=Object.getOwnPropertySymbols,pi=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,mi=(e,t,n)=>t in e?fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vi=(e,t)=>{for(var n in t||(t={}))pi.call(t,n)&&mi(e,n,t[n]);if(di)for(var n of di(t))hi.call(t,n)&&mi(e,n,t[n]);return e};const gi=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>gi(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>gi(t)(e)}}},yi=(e,t)=>(n,r,i)=>{let o=vi({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>vi(vi({},t),e)},t);(o.blacklist||o.whitelist)&&console.warn(`The ${o.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let a=!1;const s=new Set,u=new Set;let c;try{c=o.getStorage()}catch(e){}if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...e)}),r,i);c.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${o.name}' does not contain a 'removeItem' method, which will be required in v4.`);const l=gi(o.serialize),f=()=>{const e=o.partialize(vi({},r()));let t;o.whitelist&&Object.keys(e).forEach((t=>{var n;!(null==(n=o.whitelist)?void 0:n.includes(t))&&delete e[t]})),o.blacklist&&o.blacklist.forEach((t=>delete e[t]));const n=l({state:e,version:o.version}).then((e=>c.setItem(o.name,e))).catch((e=>{t=e}));if(t)throw t;return n},d=i.setState;i.setState=(e,t)=>{d(e,t),f()};const p=e(((...e)=>{n(...e),f()}),r,i);let h;const m=()=>{var e;if(!c)return;a=!1,s.forEach((e=>e(r())));const t=(null==(e=o.onRehydrateStorage)?void 0:e.call(o,r()))||void 0;return gi(c.getItem.bind(c))(o.name).then((e=>{if(e)return o.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return h=o.merge(e,null!=(t=r())?t:p),n(h,!0),f()})).then((()=>{null==t||t(h,void 0),a=!0,u.forEach((e=>e(h)))})).catch((e=>{null==t||t(void 0,e)}))};return i.persist={setOptions:e=>{o=vi(vi({},o),e),e.getStorage&&(c=e.getStorage())},clearStorage:()=>{var e;null==(e=null==c?void 0:c.removeItem)||e.call(c,o.name)},rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},m(),h||p};var _i=yi(ci((function(e){return{generating:!1,generatedPages:{},orderId:null,setOrderId:function(t){e({orderId:t})}}}),{name:"Extendify Launch Globals"}),{name:"extendify-launch-globals",getStorage:function(){return localStorage},partialize:function(e){var t;return{orderId:null!==(t=null==e?void 0:e.orderId)&&void 0!==t?t:null}}}),bi=ui(_i);function xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xi(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Si(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}var Oi=function(){var e,t=(e=se().mark((function e(t){var n,r,i,o,a;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ds.get("onboarding/styles",{params:t});case 2:return r=e.sent,e.next=5,js();case 5:return i=e.sent,o=i.headers,a=i.footers,e.abrupt("return",null==r||null===(n=r.data)||void 0===n?void 0:n.map((function(e){var t,n,r,i,s,u,c=null==o?void 0:o.find((function(t){var n;return null!==(n=(null==t?void 0:t.slug)===(null==e?void 0:e.headerSlug))&&void 0!==n?n:"header"})),l=null==a?void 0:a.find((function(t){var n;return null!==(n=(null==t?void 0:t.slug)===(null==e?void 0:e.footerSlug))&&void 0!==n?n:"footer"}));return wi(wi({},e),{},{headerCode:null!==(t=null==c||null===(n=c.content)||void 0===n||null===(r=n.raw)||void 0===r?void 0:r.trim())&&void 0!==t?t:"",footerCode:null!==(i=null==l||null===(s=l.content)||void 0===s||null===(u=s.raw)||void 0===u?void 0:u.trim())&&void 0!==i?i:""})})));case 9:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Si(o,r,i,a,s,"next",e)}function s(e){Si(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),Ti=function(e){return ds.get("onboarding/template",{params:e})},ji=["className"];function Ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ri(Object(n),!0).forEach((function(t){Ni(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ni(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Di(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const Pi=(0,i.memo)((function(e){var t=e.className,n=Di(e,ji);return(0,ie.jsx)("svg",ki(ki({className:t,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),{},{children:(0,ie.jsx)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"})}))}));var Ci=["className"];function Ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ii(Object(n),!0).forEach((function(t){Ui(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ii(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ui(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bi(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const Li=(0,i.memo)((function(e){var t=e.className,n=Bi(e,Ci);return(0,ie.jsx)("svg",Ai(Ai({className:"icon ".concat(t),width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),{},{children:(0,ie.jsx)("path",{d:"M10 17.5L15 12L10 6.5",stroke:"currentColor",strokeWidth:"1.75"})}))}));var Mi=["className"];function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gi(Object(n),!0).forEach((function(t){$i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hi(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const Fi=(0,i.memo)((function(e){var t=e.className,n=Hi(e,Mi);return(0,ie.jsxs)("svg",Yi(Yi({className:t,viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg"},n),{},{children:[(0,ie.jsx)("path",{d:"M609.404 378.5C585.07 378.5 563.404 373 544.404 362C525.737 350.667 511.07 335.333 500.404 316C489.737 296.333 484.404 273.833 484.404 248.5C484.404 222.833 489.57 200.167 499.904 180.5C510.237 160.833 524.737 145.5 543.404 134.5C562.07 123.167 583.404 117.5 607.404 117.5C632.404 117.5 653.904 122.833 671.904 133.5C689.904 143.833 703.737 158.333 713.404 177C723.404 195.667 728.404 218 728.404 244V262.5L516.404 263L517.404 224H667.904C667.904 207 662.404 193.333 651.404 183C640.737 172.667 626.237 167.5 607.904 167.5C593.57 167.5 581.404 170.5 571.404 176.5C561.737 182.5 554.404 191.5 549.404 203.5C544.404 215.5 541.904 230.167 541.904 247.5C541.904 274.167 547.57 294.333 558.904 308C570.57 321.667 587.737 328.5 610.404 328.5C627.07 328.5 640.737 325.333 651.404 319C662.404 312.667 669.57 303.667 672.904 292H729.404C724.07 319 710.737 340.167 689.404 355.5C668.404 370.833 641.737 378.5 609.404 378.5Z",fill:"currentColor"}),(0,ie.jsx)("path",{d:"M797.529 372H728.029L813.029 251L728.029 125H799.029L853.529 209L906.029 125H974.529L890.529 250.5L972.029 372H902.029L849.029 290.5L797.529 372Z",fill:"currentColor"}),(0,ie.jsx)("path",{d:"M994.142 125H1150.14V176H994.142V125ZM1102.64 372H1041.64V48H1102.64V372Z",fill:"currentColor"}),(0,ie.jsx)("path",{d:"M1278.62 378.5C1254.29 378.5 1232.62 373 1213.62 362C1194.96 350.667 1180.29 335.333 1169.62 316C1158.96 296.333 1153.62 273.833 1153.62 248.5C1153.62 222.833 1158.79 200.167 1169.12 180.5C1179.46 160.833 1193.96 145.5 1212.62 134.5C1231.29 123.167 1252.62 117.5 1276.62 117.5C1301.62 117.5 1323.12 122.833 1341.12 133.5C1359.12 143.833 1372.96 158.333 1382.62 177C1392.62 195.667 1397.62 218 1397.62 244V262.5L1185.62 263L1186.62 224H1337.12C1337.12 207 1331.62 193.333 1320.62 183C1309.96 172.667 1295.46 167.5 1277.12 167.5C1262.79 167.5 1250.62 170.5 1240.62 176.5C1230.96 182.5 1223.62 191.5 1218.62 203.5C1213.62 215.5 1211.12 230.167 1211.12 247.5C1211.12 274.167 1216.79 294.333 1228.12 308C1239.79 321.667 1256.96 328.5 1279.62 328.5C1296.29 328.5 1309.96 325.333 1320.62 319C1331.62 312.667 1338.79 303.667 1342.12 292H1398.62C1393.29 319 1379.96 340.167 1358.62 355.5C1337.62 370.833 1310.96 378.5 1278.62 378.5Z",fill:"currentColor"}),(0,ie.jsx)("path",{d:"M1484.44 372H1423.44V125H1479.94L1484.94 157C1492.61 144.667 1503.44 135 1517.44 128C1531.78 121 1547.28 117.5 1563.94 117.5C1594.94 117.5 1618.28 126.667 1633.94 145C1649.94 163.333 1657.94 188.333 1657.94 220V372H1596.94V234.5C1596.94 213.833 1592.28 198.5 1582.94 188.5C1573.61 178.167 1560.94 173 1544.94 173C1525.94 173 1511.11 179 1500.44 191C1489.78 203 1484.44 219 1484.44 239V372Z",fill:"currentColor"}),(0,ie.jsx)("path",{d:"M1798.38 378.5C1774.38 378.5 1753.71 373.167 1736.38 362.5C1719.38 351.5 1706.04 336.333 1696.38 317C1687.04 297.667 1682.38 275.167 1682.38 249.5C1682.38 223.833 1687.04 201.167 1696.38 181.5C1706.04 161.5 1719.88 145.833 1737.88 134.5C1755.88 123.167 1777.21 117.5 1801.88 117.5C1819.21 117.5 1835.04 121 1849.38 128C1863.71 134.667 1874.71 144.167 1882.38 156.5V0H1942.88V372H1886.88L1882.88 333.5C1875.54 347.5 1864.21 358.5 1848.88 366.5C1833.88 374.5 1817.04 378.5 1798.38 378.5ZM1811.88 322.5C1826.21 322.5 1838.54 319.5 1848.88 313.5C1859.21 307.167 1867.21 298.333 1872.88 287C1878.88 275.333 1881.88 262.167 1881.88 247.5C1881.88 232.5 1878.88 219.5 1872.88 208.5C1867.21 197.167 1859.21 188.333 1848.88 182C1838.54 175.333 1826.21 172 1811.88 172C1797.88 172 1785.71 175.333 1775.38 182C1765.04 188.333 1757.04 197.167 1751.38 208.5C1746.04 219.833 1743.38 232.833 1743.38 247.5C1743.38 262.167 1746.04 275.167 1751.38 286.5C1757.04 297.833 1765.04 306.667 1775.38 313C1785.71 319.333 1797.88 322.5 1811.88 322.5Z",fill:"currentColor"}),(0,ie.jsx)("path",{d:"M1996.45 372V125H2057.45V372H1996.45ZM2026.45 75.5C2016.11 75.5 2007.28 72 1999.95 65C1992.95 57.6667 1989.45 48.8333 1989.45 38.5C1989.45 28.1667 1992.95 19.5 1999.95 12.5C2007.28 5.50001 2016.11 2.00002 2026.45 2.00002C2036.78 2.00002 2045.45 5.50001 2052.45 12.5C2059.78 19.5 2063.45 28.1667 2063.45 38.5C2063.45 48.8333 2059.78 57.6667 2052.45 65C2045.45 72 2036.78 75.5 2026.45 75.5Z",fill:"currentColor"}),(0,ie.jsx)("path",{d:"M2085.97 125H2240.97V176H2085.97V125ZM2241.47 2.5V54.5C2238.14 54.5 2234.64 54.5 2230.97 54.5C2227.64 54.5 2224.14 54.5 2220.47 54.5C2205.14 54.5 2194.8 58.1667 2189.47 65.5C2184.47 72.8333 2181.97 82.6667 2181.97 95V372H2121.47V95C2121.47 72.3333 2125.14 54.1667 2132.47 40.5C2139.8 26.5 2150.14 16.3333 2163.47 10C2176.8 3.33334 2192.3 0 2209.97 0C2214.97 0 2220.14 0.166671 2225.47 0.5C2231.14 0.833329 2236.47 1.49999 2241.47 2.5Z",fill:"currentColor"}),(0,ie.jsx)("path",{d:"M2330.4 125L2410.9 353L2377.9 415.5L2265.9 125H2330.4ZM2272.4 486.5V436H2308.9C2316.9 436 2323.9 435 2329.9 433C2335.9 431.333 2341.24 428 2345.9 423C2350.9 418 2355.07 410.667 2358.4 401L2460.9 125H2523.9L2402.9 427C2393.9 449.667 2382.57 466.167 2368.9 476.5C2355.24 486.833 2338.24 492 2317.9 492C2309.24 492 2301.07 491.5 2293.4 490.5C2286.07 489.833 2279.07 488.5 2272.4 486.5Z",fill:"currentColor"}),(0,ie.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M226.926 25.1299H310.197C333.783 25.1299 342.32 27.5938 350.948 32.1932C359.576 36.8108 366.326 43.5822 370.941 52.1969C375.556 60.8298 378 69.3715 378 92.9707V176.289C378 199.888 375.537 208.43 370.941 217.063C366.326 225.696 359.558 232.449 350.948 237.066C347.091 239.131 343.244 240.83 338.064 242.047V308.355C338.064 344.802 334.261 357.994 327.162 371.327C320.034 384.66 309.583 395.09 296.285 402.221C282.96 409.353 269.775 413.13 233.349 413.13H104.744C68.3172 413.13 55.1327 409.325 41.8073 402.221C28.4819 395.09 18.0583 384.632 10.9308 371.327C3.80323 358.023 0 344.802 0 308.355V179.706C0 143.259 3.80323 130.067 10.9026 116.734C18.0301 103.401 28.4819 92.9431 41.8073 85.8116C55.1045 78.7082 68.3172 74.9028 104.744 74.9028H159.808C160.841 64.0747 162.996 58.1666 166.165 52.2151C170.78 43.5822 177.547 36.8108 186.175 32.1932C194.785 27.5938 203.34 25.1299 226.926 25.1299ZM184.128 78.1641C184.128 62.7001 196.658 50.1641 212.114 50.1641H324.991C340.448 50.1641 352.978 62.7001 352.978 78.1641V191.096C352.978 206.56 340.448 219.096 324.991 219.096H212.114C196.658 219.096 184.128 206.56 184.128 191.096V78.1641Z",fill:"currentColor"})]}))}));var qi=["className"];function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zi(Object(n),!0).forEach((function(t){Wi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xi(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const Ji=(0,i.memo)((function(e){var t=e.className,n=Xi(e,qi);return(0,ie.jsx)("svg",Vi(Vi({className:t,viewBox:"-4 -4 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),{},{children:(0,ie.jsx)("path",{stroke:"currentColor",d:"M6.5 0.5h0s6 0 6 6v0s0 6 -6 6h0s-6 0 -6 -6v0s0 -6 6 -6"})}))}));var Zi=["className"];function Ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ki(Object(n),!0).forEach((function(t){eo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ki(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function to(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(0,i.memo)((function(e){var t=e.className,n=to(e,Zi);return(0,ie.jsx)("svg",Qi(Qi({className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),{},{children:(0,ie.jsx)("path",{fill:"currentColor",d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"})}))}));var no=["className"];function ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ro(Object(n),!0).forEach((function(t){oo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ao(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const so=(0,i.memo)((function(e){var t=e.className,n=ao(e,no);return(0,ie.jsx)("svg",io(io({className:"icon ".concat(t),width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),{},{children:(0,ie.jsx)("path",{d:"M15 17.5L10 12L15 6.5",stroke:"currentColor",strokeWidth:"1.75"})}))}));var uo=["className"];function co(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?co(Object(n),!0).forEach((function(t){fo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function po(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const ho=(0,i.memo)((function(e){var t=e.className,n=po(e,uo);return(0,ie.jsxs)("svg",lo(lo({className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),{},{children:[(0,ie.jsx)("path",{d:"M8 18.5504L12 14.8899",stroke:"#1E1E1E",strokeWidth:"1.5"}),(0,ie.jsx)("path",{d:"M20.25 11.7523C20.25 14.547 18.092 16.7546 15.5 16.7546C12.908 16.7546 10.75 14.547 10.75 11.7523C10.75 8.95754 12.908 6.75 15.5 6.75C18.092 6.75 20.25 8.95754 20.25 11.7523Z",stroke:"#1E1E1E",strokeWidth:"1.5"})]}))}));var mo=["className"];function vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vo(Object(n),!0).forEach((function(t){yo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _o(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const bo=(0,i.memo)((function(e){var t=e.className,n=_o(e,mo);return(0,ie.jsxs)("svg",go(go({className:t,width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),{},{children:[(0,ie.jsx)("path",{d:"M87.5 48.8281H75V51.1719H87.5V48.8281Z",fill:"black"}),(0,ie.jsx)("path",{d:"M25 48.8281H12.5V51.1719H25V48.8281Z",fill:"black"}),(0,ie.jsx)("path",{d:"M51.1719 75H48.8281V87.5H51.1719V75Z",fill:"black"}),(0,ie.jsx)("path",{d:"M51.1719 12.5H48.8281V25H51.1719V12.5Z",fill:"black"}),(0,ie.jsx)("path",{d:"M77.3433 75.6868L69.4082 67.7517L67.7511 69.4088L75.6862 77.344L77.3433 75.6868Z",fill:"black"}),(0,ie.jsx)("path",{d:"M32.2457 30.5897L24.3105 22.6545L22.6534 24.3117L30.5885 32.2468L32.2457 30.5897Z",fill:"black"}),(0,ie.jsx)("path",{d:"M77.3407 24.3131L75.6836 22.656L67.7485 30.5911L69.4056 32.2483L77.3407 24.3131Z",fill:"black"}),(0,ie.jsx)("path",{d:"M32.2431 69.4074L30.5859 67.7502L22.6508 75.6854L24.3079 77.3425L32.2431 69.4074Z",fill:"black"})]}))}));var xo=function(e){var t=e.label,n=e.slug,r=e.description,i=e.checked,o=e.onChange;return(0,ie.jsxs)("label",{className:"flex hover:text-partner-primary-bg focus-within:text-partner-primary-bg",htmlFor:n,children:[(0,ie.jsxs)("span",{className:"mt-0.5 w-6 h-6 relative inline-block mr-3 align-middle",children:[(0,ie.jsx)("input",{id:n,className:"h-5 w-5 rounded-sm",type:"checkbox",onChange:o,defaultChecked:i}),(0,ie.jsx)(Pi,{className:"absolute components-checkbox-control__checked",style:{width:24,color:"#fff"},role:"presentation"})]}),(0,ie.jsxs)("span",{children:[(0,ie.jsx)("span",{className:"text-base",children:t}),r?(0,ie.jsx)("span",{className:"block pt-1",children:r}):(0,ie.jsx)("span",{})]})]})};function wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(n),!0).forEach((function(t){So(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function So(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oo=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=te(e,t,Eo({dedupingInterval:6e4,refreshInterval:0},r)),o=i.data,a=i.error,s=null!==(n=null==o?void 0:o.data)&&void 0!==n?n:o;return{data:s,loading:!s&&!a,error:a}},To=n(42),jo=n.n(To);function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ro(Object(n),!0).forEach((function(t){No(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function No(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Do,Po,Co=function(e){var t=e.disabled,n=void 0!==t&&t,r=cs().setPage,o=cs((function(e){return e.pages})),a=cs((function(e){return e.currentPageIndex})),s=(0,i.useMemo)((function(){return Array.from(o.values()).map((function(e,t){return ko(ko({},e),{},{pageIndex:t})})).filter((function(e){var t;return null==e||null===(t=e.state())||void 0===t?void 0:t.showInSidebar}))}),[o]),u=(0,i.useMemo)((function(){return s.reduce((function(e,t){return Math.min(e,t.pageIndex)}),1/0)}),[s]);return null==s||!s.length||a<u?null:(0,ie.jsxs)("div",{className:"hidden md:block mt-20",children:[(0,ie.jsx)("h3",{className:"text-sm text-partner-primary-text uppercase",children:(0,re.__)("Steps","extendify")}),(0,ie.jsx)("ul",{children:s.map((function(e){var t,i;return(0,ie.jsx)("li",{className:jo()("text-base",{hidden:e.pageIndex>a,"line-through opacity-60":e.pageIndex<a,"hover:opacity-100 hover:no-underline":!n}),children:(0,ie.jsxs)("button",{className:jo()("bg-transparent p-0 text-partner-primary-text flex items-center",{"cursor-pointer":e.pageIndex<a&&!n}),type:"button",disabled:n,onClick:function(){return r(null==e?void 0:e.pageIndex)},children:[e.pageIndex<a?(0,ie.jsx)(Pi,{className:"text-partner-primary-text h-6 w-6 mr-1"}):(0,ie.jsx)(Ji,{className:"text-partner-primary-text h-6 w-6 mr-1"}),null==e||null===(i=e.state())||void 0===i?void 0:i.title]})},null==e||null===(t=e.state())||void 0===t?void 0:t.title)}))})]})};function Io(e){return function(e){if(Array.isArray(e))return Ao(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ao(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ao(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ao(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uo(Object(n),!0).forEach((function(t){Lo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mo={siteType:{},siteInformation:{title:void 0},feedbackMissingSiteType:"",feedbackMissingGoal:"",siteTypeSearch:[],style:null,pages:[],plugins:[],goals:[]},Go=ci((function(e,t){return Bo(Bo({},Mo),{},{setSiteType:function(t){e({siteType:t})},setSiteInformation:function(n,r){var i=Bo(Bo({},t().siteInformation),{},Lo({},n,r));e({siteInformation:i})},setFeedbackMissingSiteType:function(t){e({feedbackMissingSiteType:t})},setFeedbackMissingGoal:function(t){e({feedbackMissingGoal:t})},has:function(e,n){return!(null==n||!n.id)&&t()[e].some((function(e){return e.id===n.id}))},add:function(n,r){t().has(n,r)||e(Lo({},n,[].concat(Io(t()[n]),[r])))},remove:function(n,r){e(Lo({},n,t()[n].filter((function(e){return e.id!==r.id}))))},reset:function(t){e(Lo({},t,[]))},toggle:function(e,n){t().has(e,n)?t().remove(e,n):t().add(e,n)},setStyle:function(t){e({style:t})},canLaunch:function(){var e,n,r,i,o,a,s,u;return(null===(e=Object.keys(null!==(n=null===(r=t())||void 0===r?void 0:r.siteType)&&void 0!==n?n:{}))||void 0===e?void 0:e.length)>0&&(null===(i=Object.keys(null!==(o=null===(a=t())||void 0===a?void 0:a.style)&&void 0!==o?o:{}))||void 0===i?void 0:i.length)>0&&(null===(s=t())||void 0===s||null===(u=s.pages)||void 0===u?void 0:u.length)>0},resetState:function(){e(Mo)}})}),{name:"Extendify Launch User Selection"}),Yo=yi(Go,{name:"extendify-site-selection",getStorage:function(){return localStorage},partialize:function(e){var t,n,r,i,o,a,s,u,c;return{siteType:null!==(t=null==e?void 0:e.siteType)&&void 0!==t?t:{},siteInformation:null!==(n=null==e?void 0:e.siteInformation)&&void 0!==n?n:{},feedbackMissingSiteType:null!==(r=null==e?void 0:e.feedbackMissingSiteType)&&void 0!==r?r:"",feedbackMissingGoal:null!==(i=null==e?void 0:e.feedbackMissingGoal)&&void 0!==i?i:"",siteTypeSearch:null!==(o=null==e?void 0:e.siteTypeSearch)&&void 0!==o?o:[],style:null!==(a=null==e?void 0:e.style)&&void 0!==a?a:null,pages:null!==(s=null==e?void 0:e.pages)&&void 0!==s?s:[],plugins:null!==(u=null==e?void 0:e.plugins)&&void 0!==u?u:[],goals:null!==(c=null==e?void 0:e.goals)&&void 0!==c?c:[]}}}),$o=null!==(Do=window)&&void 0!==Do&&null!==(Po=Do.extOnbData)&&void 0!==Po&&Po.devbuild?ui(Go):ui(Yo),Ho=function(){var e=cs(),t=e.previousPage,n=e.currentPageIndex,r=e.pages,i=0===n,o=Array.from(r.keys())[n];return(0,ie.jsx)("div",{className:"flex items-center space-x-2",children:(0,ie.jsxs)("div",{className:jo()("flex flex-1",{"justify-end":"welcome"===o,"justify-between":"welcome"!==o}),children:[i||(0,ie.jsxs)("button",{className:"flex items-center px-4 py-3 text-partner-primary-bg font-medium button-focus bg-gray-100 hover:bg-gray-200 focus:bg-gray-200",type:"button",onClick:t,children:[(0,ie.jsx)(so,{className:"h-5 w-5"}),(0,re.__)("Back","extendify")]}),(0,ie.jsx)(Fo,{})]})})},Fo=function(){var e=cs(),t=e.nextPage,n=e.currentPageIndex,r=e.pages,i=cs((function(e){return e.count()})),o=$o((function(e){return e.canLaunch()})),a=n===i-1,s=Array.from(r.keys())[n],u=r.get(s).state();return o&&a?(0,ie.jsx)("button",{className:"px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",onClick:function(){bi.setState({generating:!0})},type:"button",children:(0,re.__)("Launch site","extendify")}):(0,ie.jsxs)("button",{className:"flex items-center px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",onClick:t,disabled:!u.ready,type:"button",children:[(0,re.__)("Next","extendify"),(0,ie.jsx)(Li,{className:"h-5 w-5"})]})},qo=function(e){var t,n,r,i=e.children,o=e.includeNav,a=void 0===o||o;return(0,ie.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,ie.jsxs)("div",{className:"bg-partner-primary-bg text-partner-primary-text py-12 px-10 md:h-screen flex flex-col justify-between md:w-40vw md:max-w-md flex-shrink-0",children:[(0,ie.jsxs)("div",{className:"max-w-prose md:max-w-sm pr-8",children:[(0,ie.jsxs)("div",{className:"md:min-h-48",children:[(null===(t=window.extOnbData)||void 0===t?void 0:t.partnerLogo)&&(0,ie.jsx)("div",{className:"pb-8",children:(0,ie.jsx)("img",{style:{maxWidth:"200px"},src:window.extOnbData.partnerLogo,alt:null!==(n=null===(r=window.extOnbData)||void 0===r?void 0:r.partnerName)&&void 0!==n?n:""})}),i[0]]}),(0,ie.jsx)(Co,{disabled:!a})]}),(0,ie.jsxs)("div",{className:"hidden md:flex items-center space-x-3",children:[(0,ie.jsx)("span",{className:"opacity-70 text-xs",children:(0,re.__)("Powered by","extendify")}),(0,ie.jsxs)("span",{className:"relative",children:[(0,ie.jsx)(Fi,{className:"logo text-partner-primary-text w-28"}),(0,ie.jsx)("span",{className:"absolute -bottom-2 right-3 font-semibold tracking-tight",children:"Launch"})]})]})]}),(0,ie.jsxs)("div",{className:"flex-grow md:h-screen md:overflow-y-scroll",children:[a?(0,ie.jsx)("div",{className:"py-4 sticky top-0 bg-white z-50 max-w-onboarding-content mx-auto px-4 xl:px-0",children:(0,ie.jsx)(Ho,{})}):null,(0,ie.jsx)("div",{className:"mt-8 mb-8 xl:mb-12 flex justify-center max-w-onboarding-content mx-auto px-4 xl:px-0",children:i[1]})]})]})},zo=function(e,t){return ui(ci(t,{name:"Extendify Launch ".concat(e)}))},Vo=function(){return ds.get("onboarding/goals")},Wo=function(){return{key:"goals"}},Xo=zo("Goals",(function(){return{title:(0,re.__)("Goals","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:function(){var e=$o.getState(),t=e.feedbackMissingGoal,n=e.goals;return!(null!=t&&t.length)&&0===(null==n?void 0:n.length)}}}));function Jo(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}var Zo=zo("Welcome",(function(){return{title:(0,re.__)("Welcome","extendify"),default:void 0,ready:!0,isDefault:function(){return!0}}}));function Ko(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}var Qo=function(){var e,t=(e=se().mark((function e(){var t;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ws("blogname");case 2:return t=e.sent,e.abrupt("return",{title:t});case 4:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ko(o,r,i,a,s,"next",e)}function s(e){Ko(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),ea=function(){return{key:"site-info"}},ta=zo("Site Title",(function(e,t){return{title:(0,re.__)("Site Title","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:function(){var e,n;return t().default===(null===(e=$o.getState())||void 0===e||null===(n=e.siteInformation)||void 0===n?void 0:n.title)}}}));const na=wp.blockEditor,ra=wp.blocks;var ia=function(e){var t,n;return[null==e||null===(t=e.template)||void 0===t?void 0:t.code,null==e||null===(n=e.template)||void 0===n?void 0:n.code2].filter(Boolean).join("")};function oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oa(Object(n),!0).forEach((function(t){sa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ua(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ca(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ca(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ca(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function la(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}var fa=function(){var e,t=(e=se().mark((function e(t){var n,r;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return","{}");case 2:return e.next=4,bs(JSON.stringify(t));case 4:return r=e.sent,e.abrupt("return",null!==(n=null==r?void 0:r.styles)&&void 0!==n?n:"{}");case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){la(o,r,i,a,s,"next",e)}function s(e){la(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),da=function(e){var t,n,r=e.style,o=e.onSelect,a=e.blockHeight,s=e.context,u=e.active,c=void 0!==u&&u,l=e.onHover,f=void 0===l?null:l,d=$o((function(e){return e.siteType})),p=function(){var e=(0,i.useRef)(!1);return(0,i.useEffect)((function(){return e.current=!0,function(){return e.current=!1}})),e}(),h=ua((0,i.useState)(""),2),m=h[0],v=h[1],g=ua((0,i.useState)(!1),2),y=g[0],_=g[1],b=ua((0,i.useState)(!1),2),x=b[0],w=b[1],E=ua((0,i.useState)(null),2),S=E[0],O=E[1],T=ua((0,i.useState)(),2),j=T[0],R=T[1],k=(0,i.useRef)(null),N=(0,i.useRef)(null),D=(0,i.useRef)(null),P=(0,i.useRef)(null),C=(0,i.useRef)(!1),I=Oo(x&&j?j:null,fa).data,A=Oo("variations",ks).data,U=(0,i.useMemo)((function(){return(0,ra.rawHandler)({HTML:(e=m,e.replace(/\w+:\/\/\S*(w=(\d*))&\w+\S*"/g,(function(e,t,n){return e.replace(t,"w="+Math.floor(Number(n))+"&q=10")})))});var e}),[m]),B=(0,i.useMemo)((function(){return I?(0,na.transformStyles)([{css:I}],".editor-styles-wrapper"):null}),[I]);return(0,i.useLayoutEffect)((function(){if(x&&s.measure){var e="".concat(s.type,"-").concat(s.detail);if(y||C.current){var t=performance.measure(e,{start:e,detail:{context:s,extendify:!0}});C.current=t.duration;var n,r=new URLSearchParams(window.location.search);null!=r&&r.has("performance")&&console.info("🚀 ".concat((n=s.type,n.charAt(0).toUpperCase()+n.slice(1).toLowerCase())," (").concat(s.detail,") in ").concat(t.duration.toFixed(),"ms"))}else performance.mark(e)}}),[y,s,x]),(0,i.useEffect)((function(){if(null!=A&&A.length){var e=A.find((function(e){return e.title===r.label}));R(e)}}),[r,A]),(0,i.useEffect)((function(){if(I&&null!=r&&r.code){var e=[null==r?void 0:r.headerCode,null==r?void 0:r.code,null==r?void 0:r.footerCode].filter(Boolean).join("").replace(/<!-- wp:navigation[.\S\s]*?\/wp:navigation -->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Home | About | Contact</p >\x3c!-- /wp:paragraph --\x3e').replace(/<!-- wp:navigation.*\/-->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Home | About | Contact</p >\x3c!-- /wp:paragraph --\x3e');v(e)}}),[null==d?void 0:d.slug,I,r]),(0,i.useEffect)((function(){var e,t;if(N.current&&y){var n=k.current,r=n.offsetWidth/1400,i=N.current.contentDocument.body;null!=i&&i.style&&(i.style.transitionProperty="all",i.style.top=0);var o=function(){var t,n;if(i.offsetHeight){var o=(null!==(t=null==D||null===(n=D.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==t?t:a)-32,s=i.getBoundingClientRect().height-o/r;i.style.transitionDuration=Math.max(2*s,3e3)+"ms",e=window.requestAnimationFrame((function(){i.style.top=-1*Math.max(0,s)+"px"}))}},s=function(){var e,n;if(i.offsetHeight){var o=(null!==(e=null==D||null===(n=D.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==e?e:a)-32,s=i.offsetHeight-o/r;i.style.transitionDuration=s+"ms",t=window.requestAnimationFrame((function(){i.style.top=0}))}};return n.addEventListener("focus",o),n.addEventListener("mouseenter",o),n.addEventListener("blur",s),n.addEventListener("mouseleave",s),function(){window.cancelAnimationFrame(e),window.cancelAnimationFrame(t),n.removeEventListener("focus",o),n.removeEventListener("mouseenter",o),n.removeEventListener("blur",s),n.removeEventListener("mouseleave",s)}}}),[a,y]),(0,i.useEffect)((function(){if(null!=U&&U.length&&x){var e,t=function(){var t,n,r;null!==(t=e.contentDocument)&&void 0!==t&&t.getElementById("ext-tj")||(null===(n=e.contentDocument)||void 0===n||null===(r=n.head)||void 0===r||r.insertAdjacentHTML("beforeend",'<style id="ext-tj">'.concat(B,"</style>")));N.current=e,setTimeout((function(){p.current&&_(!0)}),100)},n=new MutationObserver((function(){(e=k.current.querySelector("iframe[title]")).addEventListener("load",t),setTimeout((function(){t()}),2e3),n.disconnect()}));return n.observe(k.current,{attributes:!1,childList:!0,subtree:!1}),function(){var r;n.disconnect(),null===(r=e)||void 0===r||r.removeEventListener("load",t)}}}),[U,B,p,x]),(0,i.useEffect)((function(){return P.current||(P.current=new IntersectionObserver((function(e){e[0].isIntersecting&&w(!0)}))),P.current.observe(D.current),function(){P.current.disconnect()}}),[]),(0,ie.jsxs)(ie.Fragment,{children:[y&&m?null:(0,ie.jsx)("div",{className:"absolute inset-0 z-20 bg-gray-50 flex items-center justify-center",children:(0,ie.jsx)(bo,{className:"spin w-8"})}),(0,ie.jsxs)("div",{ref:D,role:o?"button":void 0,tabIndex:o?0:void 0,"aria-label":o?(0,re.__)("Press to select","extendify"):void 0,className:jo()("group w-full overflow-hidden bg-transparent z-10",{"relative min-h-full":y,"absolute opacity-0":!y,"button-focus button-card p-2":o,"ring-partner-primary-bg ring-offset-2 ring-offset-white ring-wp":c}),onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&o&&o(aa(aa({},r),{},{variation:j}))},onMouseEnter:function(){f&&O(f)},onMouseLeave:function(){S&&(S(),O(null))},onClick:o?function(){return o(aa(aa({},r),{},{variation:j}))}:function(){},children:[null!==(t=window)&&void 0!==t&&null!==(n=t.extOnbData)&&void 0!==n&&n.devbuild?(0,ie.jsxs)("div",{className:"-m-px absolute bg-gray-900 border border-t border-white bottom-0 group-hover:opacity-100 left-0 opacity-0 p-1 px-4 text-left text-sm text-white z-30 transition duration-300",children:[null==r?void 0:r.label," - ",Number(C.current).toFixed(2),"ms"]}):null,(0,ie.jsx)("div",{ref:k,className:"relative rounded-lg",children:x?(0,ie.jsx)(na.BlockPreview,{blocks:U,viewportWidth:1400,live:!1}):null})]})]})};function pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ha(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pa(Object(n),!0).forEach((function(t){ma(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ma(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var va=function(e){return Ti(e)},ga=function(e){var t=e.page,n=e.blockHeight,r=e.required,i=void 0!==r&&r,o=e.displayOnly,a=void 0!==o&&o,s=e.title,u=void 0===s?"":s,c=$o(),l=c.siteType,f=c.style,d=c.toggle,p=c.has,h="home"===(null==t?void 0:t.slug),m=Oo({siteType:l.slug,layoutType:t.slug,baseLayout:h?null==f?void 0:f.homeBaseLayout:null,kit:"home"!==t.slug?null==f?void 0:f.kit:null},va).data;return a?(0,ie.jsxs)("div",{className:"text-base p-2 bg-transparent overflow-hidden rounded-lg border border-gray-100",style:{height:n},children:[u&&(0,ie.jsx)("div",{className:"p-3 pb-0 bg-white text-left",children:u}),(0,ie.jsx)(ya,{page:t,measure:!1,blockHeight:n,style:ha(ha({},f),{},{code:ia({template:m})})},null==f?void 0:f.recordId)]}):(0,ie.jsxs)("div",{role:"button",tabIndex:0,"aria-label":(0,re.__)("Press to select","extendify"),disabled:i,className:"text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100 button-focus",onClick:function(){return i||d("pages",t)},title:i&&u?(0,re.sprintf)((0,re.__)("%s page is required","extendify"),u):(0,re.sprintf)((0,re.__)("Toggle %s page","extendify"),u),onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&(i||d("pages",t))},children:[(0,ie.jsxs)("div",{className:"border-gray-100 border-b-0 min-w-sm z-30 relative bg-white pt-3 px-3 pb-1.5 flex justify-between items-center",children:[u&&(0,ie.jsxs)("div",{className:jo()("flex items-center",{"text-gray-700":!p("pages",t)}),children:[(0,ie.jsx)("span",{className:"text-left",children:u}),i&&(0,ie.jsx)("span",{className:"w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"})]}),p("pages",t)?(0,ie.jsx)("div",{className:jo()("w-5 h-5 rounded-sm",{"bg-gray-700":i,"bg-partner-primary-bg":!i}),children:(0,ie.jsx)(Pi,{className:"text-white w-5"})}):(0,ie.jsx)("div",{className:jo()("border w-5 h-5 rounded-sm",{"border-gray-700":i,"border-partner-primary-bg":!i})})]}),(0,ie.jsx)("div",{className:"p-2 relative",style:{height:n-44},children:(0,ie.jsx)(ya,{page:t,blockHeight:n,style:ha(ha({},f),{},{code:ia({template:m})})},null==f?void 0:f.recordId)})]})},ya=function(e){var t=e.page,n=e.style,r=e.measure,o=void 0===r||r,a=e.blockHeight,s=void 0!==a&&a,u=(0,i.useMemo)((function(){return{type:"page",detail:t.slug,measure:o}}),[t,o]);return(0,ie.jsx)(da,{style:n,context:u,blockHeight:s})};function _a(e){return _a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_a(e)}function ba(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ea(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function xa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||Ea(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wa(e){return function(e){if(Array.isArray(e))return Sa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ea(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ea(e,t){if(e){if("string"==typeof e)return Sa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sa(e,t):void 0}}function Sa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Oa(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function Ta(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Oa(o,r,i,a,s,"next",e)}function s(e){Oa(o,r,i,a,s,"throw",e)}a(void 0)}))}}var ja=function(){var e=Ta(se().mark((function e(){var t,n,r,i,o,a;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ds.get("onboarding/layout-types");case 2:if(r=e.sent,null!=(i=null!==(t=null==r?void 0:r.data)&&void 0!==t?t:[])&&i.length){e.next=6;break}throw new Error("Error fetching pages");case 6:return o=i[0],a=null===(n=i.slice(1))||void 0===n?void 0:n.sort((function(e,t){return e.title>t.title?1:-1})),e.abrupt("return",[o].concat(wa(null!=a?a:[])));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ra=function(){return{key:"layout-types"}},ka=zo("Pages",(function(e,t){return{title:(0,re.__)("Pages","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:function(){var e,n;return(null===(e=$o.getState().pages)||void 0===e?void 0:e.length)===(null===(n=t().default)||void 0===n?void 0:n.length)}}}));function Na(e){return function(e){if(Array.isArray(e))return Ua(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Aa(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Da(e){return Da="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Da(e)}function Pa(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Aa(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ca(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function Ia(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||Aa(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Aa(e,t){if(e){if("string"==typeof e)return Ua(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ua(e,t):void 0}}function Ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ba=function(e){return Oi(e)},La=function(e){var t,n,r,i,o;return{key:"site-style",siteType:null!==(n=null===(r=e=null!==(t=e)&&void 0!==t?t:null==$o?void 0:$o.getState().siteType)||void 0===r?void 0:r.slug)&&void 0!==n?n:"default",styles:null!==(i=null===(o=e)||void 0===o?void 0:o.styles)&&void 0!==i?i:[]}},Ma=zo("Design",(function(e,t){return{title:(0,re.__)("Design","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:function(){var e,n;return(null===(e=$o.getState().style)||void 0===e?void 0:e.slug)===(null===(n=t().default)||void 0===n?void 0:n.slug)}}})),Ga=function(e){var t,n,r=e.style,o=(0,i.useCallback)((function(e){$o.getState().setStyle(e)}),[]),a=(0,i.useMemo)((function(){return{type:"style",detail:r.slug,measure:!0}}),[r]);return(0,ie.jsx)("div",{className:"relative",style:{height:497,width:352},children:(0,ie.jsx)(da,{style:r,context:a,onSelect:o,active:(null===(t=$o.getState())||void 0===t||null===(n=t.style)||void 0===n?void 0:n.slug)===r.slug,blockHeight:497})})},Ya=function(){return ds.get("onboarding/suggested-plugins")},$a=function(){return{key:"plugins"}},Ha=function(){var e,t=Oo($a,Ya).data,n=$o(),r=n.goals,o=n.add,a=n.toggle,s=n.remove,u=(0,i.useMemo)((function(){return null==r||!r.length||!(null!=r&&r.find((function(e){return null==t?void 0:t.some((function(t){var n;return null==t||null===(n=t.goals)||void 0===n?void 0:n.includes(null==e?void 0:e.slug)}))})))}),[r,t]),c=(0,i.useCallback)((function(e){if(u)return!0;var t=r.map((function(e){return e.slug}));return null==e?void 0:e.goals.find((function(e){return t.includes(e)}))}),[r,u]);return(0,i.useEffect)((function(){var e;null==t||t.forEach((function(e){return s("plugins",e)})),u||null==t||null===(e=t.filter(c))||void 0===e||e.forEach((function(e){return o("plugins",e)}))}),[t,o,u,c,s]),(0,ie.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:null==t||null===(e=t.filter(c))||void 0===e?void 0:e.map((function(e){return(0,ie.jsx)("div",{children:(0,ie.jsx)(xo,{label:e.name,slug:e.wordpressSlug,description:e.description,checked:!u,onChange:function(){return a("plugins",e)}})},e.id)}))})},Fa=zo("Site Summary",(function(){return{title:(0,re.__)("Summary","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:function(){return!0}}}));function qa(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function za(e){return function(e){if(Array.isArray(e))return Xa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Wa(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Va(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||Wa(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wa(e,t){if(e){if("string"==typeof e)return Xa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xa(e,t):void 0}}function Xa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ja,Za,Ka,Qa,es,ts=function(){return ds.get("onboarding/site-types")},ns=function(){return{key:"site-types"}},rs=zo("Site Industry",(function(e,t){return{title:(0,re.__)("Site Industry","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:function(){var e,n,r;return(null===(e=$o.getState())||void 0===e||null===(n=e.siteType)||void 0===n?void 0:n.slug)===(null===(r=t().default)||void 0===r?void 0:r.slug)}}})),is=function(e){var t=e.option,n=e.selectSiteType,r=(0,i.useRef)(0);return(0,ie.jsxs)("button",{onClick:function(){n(t)},onMouseEnter:function(){window.clearTimeout(r.current),r.current=window.setTimeout((function(){var e=function(){return La(t)};z(e,(function(t){return null!=t&&t.length?t:Ba(e())}))}),100)},onMouseLeave:function(){window.clearTimeout(r.current)},className:"flex border border-gray-800 hover:text-partner-primary-bg focus:text-partner-primary-bg items-center justify-between mb-3 p-4 py-3 relative w-full button-focus",children:[(0,ie.jsx)("span",{className:"text-left",children:t.title}),(0,ie.jsx)(Li,{})]})},os=[["welcome",{component:function(){var e=cs((function(e){return e.nextPage})),t=(0,i.useRef)(null);(0,i.useEffect)((function(){var e=requestAnimationFrame((function(){return t.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[t]);var n=function(){var e,t=(e=se().mark((function e(t){return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,xs("extendify_onboarding_skipped",(new Date).toISOString());case 3:location.href=window.extOnbData.adminUrl;case 4:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Jo(o,r,i,a,s,"next",e)}function s(e){Jo(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return(0,ie.jsxs)(qo,{children:[(0,ie.jsxs)("div",{children:[(0,ie.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,re.__)("Welcome to Your WordPress Site","extendify")}),(0,ie.jsx)("p",{className:"text-base opacity-70 mb-0",children:(0,re.__)("Design and launch your site with this guided experience, or head right into the WordPress dashboard if you know your way around.","extendify")})]}),(0,ie.jsxs)("div",{children:[(0,ie.jsx)("h2",{className:"text-lg m-0 mb-4 text-gray-900",children:(0,re.__)("Pick one:","extendify")}),(0,ie.jsxs)("div",{className:"xl:flex xl:gap-x-6",children:[(0,ie.jsxs)("button",{onClick:e,ref:t,type:"button","aria-label":(0,re.__)("Press to continue","extendify"),className:"button-card max-w-sm button-focus mb-6 xl:mb-0",children:[(0,ie.jsx)("div",{className:"bg-gray-100 w-full h-64 bg-cover bg-center border border-gray-200",style:{backgroundImage:"url(".concat(window.extOnbData.pluginUrl,"/public/assets/extendify-preview.png)")}}),(0,ie.jsx)("p",{className:"font-bold text-lg text-gray-900",children:"Extendify Launch"}),(0,ie.jsx)("p",{className:"text-base text-gray-900",children:(0,re.__)("Create a super-fast, beautiful, and fully customized site in minutes. Simply answer a few questions and pick a design to get started. Then, everything can be fully customized in the core WordPress editor.","extendify")})]}),(0,ie.jsxs)("a",{onClick:function(e){return n(e)},className:"button-card max-w-sm button-focus",children:[(0,ie.jsx)("div",{className:"bg-gray-100 w-full h-64 bg-cover bg-center border border-gray-200",style:{backgroundImage:"url(".concat(window.extOnbData.pluginUrl,"/public/assets/wp-admin.png)")}}),(0,ie.jsx)("p",{className:"font-bold text-lg text-gray-900",children:(0,re.__)("WordPress Dashboard","extendify")}),(0,ie.jsx)("p",{className:"text-base text-gray-900",children:(0,re.__)("Are you a WordPress developer and want to go straight to the admin dashboard?","extendify")})]})]})]})]})},state:Zo.getState}],["goals",{component:function(){var e=Oo(Wo,Vo),t=e.data,n=e.loading,r=$o(),o=r.toggle,a=r.has,s=$o(),u=s.feedbackMissingGoal,c=s.setFeedbackMissingGoal,l=cs((function(e){return e.nextPage})),f=(0,i.useRef)();return(0,i.useEffect)((function(){Xo.setState({ready:!n})}),[n]),(0,i.useEffect)((function(){if(f.current){var e=requestAnimationFrame((function(){return f.current.querySelector("input").focus()}));return function(){return cancelAnimationFrame(e)}}}),[f]),(0,ie.jsxs)(qo,{children:[(0,ie.jsxs)("div",{children:[(0,ie.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,re.__)("What do you want to accomplish with this new site?","extendify")}),(0,ie.jsx)("p",{className:"text-base opacity-70 mb-0",children:(0,re.__)("You can change these later.","extendify")})]}),(0,ie.jsxs)("div",{className:"w-full",children:[(0,ie.jsx)("h2",{className:"text-lg m-0 mb-4 text-gray-900",children:(0,re.__)("Select the goals relevant to your site:","extendify")}),n?(0,ie.jsx)("p",{children:(0,re.__)("Loading...","extendify")}):(0,ie.jsxs)("form",{onSubmit:function(e){e.preventDefault(),l()},className:"w-full grid lg:grid-cols-2 gap-3 goal-select",children:[(0,ie.jsx)("input",{type:"submit",className:"hidden"}),t&&(null==t?void 0:t.length)>0?null==t?void 0:t.map((function(e,t){return(0,ie.jsx)("div",{className:"border border-gray-800 rounded-lg p-4",ref:0===t?f:void 0,children:(0,ie.jsx)(xo,{label:e.title,checked:a("goals",e),onChange:function(){o("goals",e)}})},e.id)})):null]}),!n&&(0,ie.jsxs)("div",{className:"max-w-onboarding-sm mx-auto",children:[(0,ie.jsx)("h2",{className:"text-lg mt-12 mb-4 text-gray-900",children:(0,re.__)("Don't see what you're looking for?","extendify")}),(0,ie.jsx)("div",{className:"search-panel flex items-center justify-center relative",children:(0,ie.jsx)("input",{type:"text",className:"w-full bg-gray-100 h-12 pl-4 input-focus rounded-none ring-offset-0 focus:bg-white",value:u,onChange:function(e){return c(e.target.value)},placeholder:(0,re.__)("Add your goals...","extendify")})})]})]})]})},fetcher:Vo,fetchData:Wo,state:Xo.getState}],["site-type",{component:function(){var e=$o((function(e){return e.siteType})),t=$o((function(e){return e.feedbackMissingSiteType})),n=Va((0,i.useState)([]),2),r=n[0],o=n[1],a=Va((0,i.useState)(""),2),s=a[0],u=a[1],c=Va((0,i.useState)(!0),2),l=c[0],f=c[1],d=(0,i.useRef)(null),p=Oo(ns,ts),h=p.data,m=p.loading;(0,i.useEffect)((function(){rs.setState({ready:!m})}),[m]),(0,i.useEffect)((function(){var e=requestAnimationFrame((function(){return d.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[d]),(0,i.useEffect)((function(){if(!(m||null!=e&&e.slug)){var t=null==h?void 0:h.find((function(e){return"default"===e.slug}));if(t){var n={label:t.title,recordId:t.id,slug:t.slug};$o.getState().setSiteType(n),rs.setState({default:n})}}}),[m,null==e?void 0:e.slug,h]),(0,i.useEffect)((function(){m||((null==s?void 0:s.length)>0?o(null==h?void 0:h.filter((function(e){var t=e.title,n=e.keywords,r=null==s?void 0:s.toLowerCase();return!r||(t.toLowerCase().indexOf(r)>-1||!(null==n||!n.length)&&n.find((function(e){return e.toLowerCase().indexOf(r)>-1})))}))):(o(null==h?void 0:h.filter((function(e){return e.featured}))),f(!0)))}),[h,s,m]),(0,i.useEffect)((function(){m||o(l?h.filter((function(e){return e.featured})):h.sort((function(e,t){return e.title.localeCompare(t.title)})))}),[h,l,m]),(0,i.useEffect)((function(){if(s){var e=setTimeout((function(){$o.setState({siteTypeSearch:[].concat(za($o.getState().siteTypeSearch),[s])})}),500);return function(){return clearTimeout(e)}}}),[s]);var v=function(){var e,t=(e=se().mark((function e(t){return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $o.getState().setSiteType({label:t.title,recordId:t.id,slug:t.slug,styles:t.styles}),e.next=3,xs("extendify_siteType",t);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){qa(o,r,i,a,s,"next",e)}function s(e){qa(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return(0,ie.jsxs)(qo,{children:[(0,ie.jsxs)("div",{children:[(0,ie.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,re.__)("What is your site about?","extendify")}),(0,ie.jsx)("p",{className:"text-base opacity-70 mb-0",children:(0,re.__)("Search for your site industry.","extendify")})]}),(0,ie.jsxs)("div",{className:"w-full relative max-w-onboarding-sm mx-auto",children:[(0,ie.jsxs)("div",{className:"sticky bg-white top-10 z-40 pt-9 pb-3 mb-2",children:[(0,ie.jsxs)("div",{className:"mx-auto flex justify-between mb-4",children:[(0,ie.jsx)("h2",{className:"text-lg m-0 text-gray-900",children:(0,re.__)("Choose an industry","extendify")}),(null==s?void 0:s.length)>0?null:(0,ie.jsx)("button",{type:"button",className:"bg-transparent hover:text-partner-primary-bg p-0 text-partner-primary-bg text-xs underline cursor-pointer",onClick:function(){f((function(e){return!e})),d.current.focus()},children:l?(0,re.sprintf)((0,re.__)("Show all %s","extendify"),m?"...":h.length):(0,re.__)("Show less","extendify")})]}),(0,ie.jsxs)("div",{className:"mx-auto search-panel flex items-center justify-center relative mb-6",children:[(0,ie.jsx)("input",{ref:d,type:"text",className:"w-full bg-gray-100 h-12 pl-4 input-focus rounded-none ring-offset-0 focus:bg-white",value:s,onChange:function(e){return u(e.target.value)},placeholder:(0,re.__)("Search...","extendify")}),(0,ie.jsx)(ho,{className:"icon-search"})]}),m&&(0,ie.jsx)("p",{children:(0,re.__)("Loading...","extendify")})]}),(null==r?void 0:r.length)>0&&(0,ie.jsx)("div",{className:"relative",children:r.map((function(e){return(0,ie.jsx)(is,{selectSiteType:v,option:e},e.id)}))}),!m&&0===(null==r?void 0:r.length)&&(0,ie.jsxs)("div",{className:"mx-auto w-full",children:[(0,ie.jsxs)("div",{className:"flex items-center justify-between uppercase",children:[(0,re.__)("No Results","extendify"),(0,ie.jsx)("button",{type:"button",className:"bg-transparent hover:text-partner-primary-bg p-0 text-partner-primary-bg text-xs underline cursor-pointer",onClick:function(){u(""),d.current.focus()},children:(0,re.sprintf)((0,re.__)("Show all %s","extendify"),m?"...":h.length)})]}),(0,ie.jsx)("h2",{className:"text-lg mt-12 mb-4 text-gray-900",children:(0,re.__)("Don't see what you're looking for?","extendify")}),(0,ie.jsx)("div",{className:"search-panel flex items-center justify-center relative",children:(0,ie.jsx)("input",{type:"text",className:"w-full bg-gray-100 h-12 pl-4 input-focus rounded-none ring-offset-0 focus:bg-white",value:t,onChange:function(e){return $o.getState().setFeedbackMissingSiteType(e.target.value)},placeholder:(0,re.__)("Describe your site...","extendify")})})]})]})]})},fetcher:ts,fetchData:ns,state:rs.getState}],["style",{component:function(){var e,t=$o((function(e){return e.siteType})),n=Oo(La,Ba),r=n.data,o=n.loading,a=(0,i.useRef)(!1),s=(0,i.useRef)(),u=function(){var e=(0,i.useRef)(!1);return(0,i.useLayoutEffect)((function(){return e.current=!0,function(){return e.current=!1}})),e}(),c=Ia((0,i.useState)([]),2),l=c[0],f=c[1];return(0,i.useEffect)((function(){Ma.setState({ready:!o})}),[o]),(0,i.useEffect)((function(){var e;null!=r&&r.length&&(e=se().mark((function e(){var t,n,i,o;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Pa(r),e.prev=1,i=se().mark((function e(){var t;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.value,u.current){e.next=3;break}return e.abrupt("return",{v:void 0});case 3:return f((function(e){return[].concat(Na(e),[t])})),e.next=6,new Promise((function(e){return setTimeout(e,1e3)}));case 6:case"end":return e.stop()}}),e)})),t.s();case 4:if((n=t.n()).done){e.next=11;break}return e.delegateYield(i(),"t0",6);case 6:if("object"!==Da(o=e.t0)){e.next=9;break}return e.abrupt("return",o.v);case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),t.e(e.t1);case 16:return e.prev=16,t.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,13,16,19]])})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ca(o,r,i,a,s,"next",e)}function s(e){Ca(o,r,i,a,s,"throw",e)}a(void 0)}))})()}),[r,u]),(0,i.useEffect)((function(){null!=l&&l.length&&!$o.getState().style&&($o.getState().setStyle(l[0]),Ma.setState({default:l[0]}))}),[l]),(0,i.useEffect)((function(){var e,t;null!=l&&l.length&&!a.current&&(a.current=!0,null==s||null===(e=s.current)||void 0===e||null===(t=e.querySelector("[role=button]"))||void 0===t||t.focus())}),[l]),(0,ie.jsxs)(qo,{children:[(0,ie.jsxs)("div",{children:[(0,ie.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,re.sprintf)((0,re.__)("Now pick a design for your new %s site.","extendify"),null==t||null===(e=t.label)||void 0===e?void 0:e.toLowerCase())}),(0,ie.jsx)("p",{className:"text-base opacity-70 mb-0",children:(0,re.__)("You can personalize this later.","extendify")})]}),(0,ie.jsxs)("div",{className:"w-full",children:[(0,ie.jsx)("h2",{className:"text-lg m-0 mb-4 text-gray-900",children:o?(0,re.__)("Please wait a moment while we generate style previews...","extendify"):(0,re.__)("Pick your style","extendify")}),(0,ie.jsxs)("div",{ref:s,className:"flex gap-6 flex-wrap justify-center",children:[null==l?void 0:l.map((function(e){return(0,ie.jsx)(Ga,{style:e},e.recordId)})),null==r?void 0:r.slice(null==l?void 0:l.length).map((function(e){return(0,ie.jsx)("div",{style:{height:497,width:352},className:"relative",children:(0,ie.jsx)("div",{className:"bg-gray-50 h-full w-full flex items-center justify-center",children:(0,ie.jsx)(bo,{className:"spin w-8"})})},e.slug)}))]})]})]})},state:Ma.getState}],["pages",{component:function(){var e=Oo(Ra,ja).data,t=xa((0,i.useState)([]),2),n=t[0],r=t[1],o=$o(),a=o.add,s=o.goals,u=o.reset,c=function(){var e=(0,i.useRef)(!1);return(0,i.useEffect)((function(){return e.current=!0,function(){return e.current=!1}})),e}();return(0,i.useEffect)((function(){(null==n?void 0:n.length)===(null==e?void 0:e.length)&&ka.setState({ready:!0})}),[null==e?void 0:e.length,null==n?void 0:n.length]),(0,i.useEffect)((function(){if(null!=e&&e.length){var t=e.filter((function(e){var t,n,r;return null==s||!s.length||(null==e||null===(t=e.goals)||void 0===t||!t.length||(null===(n=null==e||null===(r=e.goals)||void 0===r?void 0:r.some((function(e){return s.some((function(t){return e==t.id}))})))||void 0===n||n))}));Ta(se().mark((function e(){var n,i,o,a;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=ba(t),e.prev=1,o=se().mark((function e(){var t;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.value,c.current){e.next=3;break}return e.abrupt("return",{v:void 0});case 3:return r((function(e){return[].concat(wa(e),[t])})),e.next=6,new Promise((function(e){return setTimeout(e,100)}));case 6:case"end":return e.stop()}}),e)})),n.s();case 4:if((i=n.n()).done){e.next=11;break}return e.delegateYield(o(),"t0",6);case 6:if("object"!==_a(a=e.t0)){e.next=9;break}return e.abrupt("return",a.v);case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:ka.setState({ready:!0});case 20:case"end":return e.stop()}}),e,null,[[1,13,16,19]])})))()}}),[e,s,c]),(0,i.useEffect)((function(){u("pages"),null==n||n.map((function(e){return a("pages",e)})),ka.setState({default:n})}),[n,a,u]),(0,ie.jsxs)(qo,{children:[(0,ie.jsxs)("div",{children:[(0,ie.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,re.__)("What pages do you want on this site?","extendify")}),(0,ie.jsx)("p",{className:"text-base opacity-70 mb-0",children:(0,re.__)("You may add more later","extendify")})]}),(0,ie.jsxs)("div",{className:"w-full",children:[(0,ie.jsx)("h2",{className:"text-lg m-0 mb-4 text-gray-900",children:(0,re.__)("Pick the pages you'd like to add to your site","extendify")}),(0,ie.jsx)("div",{className:"flex gap-6 flex-wrap justify-center",children:null==n?void 0:n.map((function(e){if("home"!==e.slug)return(0,ie.jsx)("div",{className:"relative",style:{height:541,width:352},children:(0,ie.jsx)(ga,{required:"home"===(null==e?void 0:e.slug),page:e,title:null==e?void 0:e.title,blockHeight:541})},e.id)}))})]})]})},fetcher:ja,fetchData:Ra,state:ka.getState}],["site-title",{component:function(){var e,t=$o(),n=t.siteInformation,r=t.setSiteInformation,o=(0,i.useRef)(null),a=cs((function(e){return e.nextPage})),s=Oo(ea,Qo).data;return(0,i.useEffect)((function(){var e=requestAnimationFrame((function(){return o.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[o]),(0,i.useEffect)((function(){null!=s&&s.title&&void 0===(null==n?void 0:n.title)&&(r("title",s.title),ta.setState({default:s.title})),(null!=s&&s.title||null!=n&&n.title)&&ta.setState({ready:!0})}),[s,r,n]),(0,ie.jsxs)(qo,{children:[(0,ie.jsxs)("div",{children:[(0,ie.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,re.__)("What's the name of your new site?","extendify")}),(0,ie.jsx)("p",{className:"text-base opacity-70 mb-0",children:(0,re.__)("You can change this later.","extendify")})]}),(0,ie.jsx)("div",{className:"w-full max-w-onboarding-sm mx-auto",children:(0,ie.jsxs)("form",{onSubmit:function(e){e.preventDefault(),a()},children:[(0,ie.jsx)("label",{htmlFor:"extendify-site-title-input",className:"block text-lg m-0 mb-4 font-semibold text-gray-900",children:(0,re.__)("What's the name of your site?","extendify")}),(0,ie.jsx)("div",{className:"mb-8",children:(0,ie.jsx)("input",{autoComplete:"off",ref:o,type:"text",name:"site-title-input",id:"extendify-site-title-input",className:"w-96 max-w-full border h-12 input-focus",value:null!==(e=null==n?void 0:n.title)&&void 0!==e?e:"",onChange:function(e){r("title",e.target.value)},placeholder:(0,re.__)("Enter your preferred site title...","extendify")})})]})})]})},fetcher:Qo,fetchData:ea,state:ta.getState}],["confirmation",{component:function(){var e=$o(),t=e.siteType,n=e.style,r=e.pages,i=e.goals,o=cs((function(e){return e.setPage}));return(0,ie.jsxs)(qo,{children:[(0,ie.jsxs)("div",{children:[(0,ie.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,re.__)("Let's launch your site!","extendify")}),(0,ie.jsx)("p",{className:"text-base mb-0",children:(0,re.__)("Review your site configuration.","extendify")})]}),(0,ie.jsx)("div",{className:"w-full",children:(0,ie.jsxs)("div",{className:"flex flex-col gap-y-12",children:[(0,ie.jsxs)("div",{className:"block",children:[(0,ie.jsx)("h2",{className:"text-lg m-0 mb-4 text-gray-900",children:(0,re.__)("Design","extendify")}),null!=n&&n.label?(0,ie.jsxs)("div",{className:"overflow-hidden rounded-lg relative",children:[(0,ie.jsx)("span",{"aria-hidden":"true",className:"absolute top-0 bottom-0 left-3/4 right-0 z-40 bg-gradient-to-l from-white pointer-events-none"}),r.length>0&&(0,ie.jsx)("div",{className:"flex justify-center lg:justify-start w-full overflow-y-scroll lg:pr-52",children:(0,ie.jsx)("div",{className:"flex flex-col lg:flex-row lg:flex-no-wrap gap-4",children:null==r?void 0:r.map((function(e){return(0,ie.jsx)("div",{className:"relative pointer-events-none",style:{height:360,width:255},children:(0,ie.jsx)(ga,{displayOnly:!0,page:e,blockHeight:356})},e.id)}))})})]}):(0,ie.jsx)("button",{onClick:function(){return o("style")},className:"bg-transparent text-partner-primary underline text-base cursor-pointer",children:(0,re.__)("Press to change the style","extendify")})]}),(0,ie.jsxs)("div",{className:"block",children:[(0,ie.jsx)("h2",{className:"text-lg m-0 mb-4",children:(0,re.__)("Industry","extendify")}),null!=t&&t.label?(0,ie.jsxs)("div",{className:"flex items-center",children:[(0,ie.jsx)(Pi,{className:"text-extendify-main-dark",style:{width:24}}),(0,ie.jsx)("span",{className:"text-base pl-2",children:t.label})]}):(0,ie.jsx)("button",{onClick:function(){return o("site-type")},className:"bg-transparent text-partner-primary underline text-base cursor-pointer",children:(0,re.__)("Press to set a site type","extendify")})]}),(0,ie.jsxs)("div",{className:"block",children:[(0,ie.jsx)("h2",{className:"text-lg m-0 mb-4",children:(0,re.__)("Goals","extendify")}),i.length>0?(0,ie.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:null==i?void 0:i.map((function(e){return(0,ie.jsxs)("div",{className:"flex items-center",children:[(0,ie.jsx)(Pi,{className:"text-extendify-main-dark",style:{width:24}}),(0,ie.jsx)("span",{className:"text-base pl-2",children:e.title})]},e.id)}))}):(0,ie.jsx)("button",{onClick:function(){return o("goals")},className:"bg-transparent text-partner-primary underline text-base cursor-pointer",children:(0,re.__)("Press to set your goals","extendify")})]}),(0,ie.jsxs)("div",{className:"block",children:[(0,ie.jsx)("h2",{className:"text-lg m-0 mb-4",children:(0,re.__)("Pages","extendify")}),r.length>0?(0,ie.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:null==r?void 0:r.map((function(e){return(0,ie.jsxs)("div",{className:"flex items-center",children:[(0,ie.jsx)(Pi,{className:"text-extendify-main-dark",style:{width:24}}),(0,ie.jsx)("span",{className:"text-base pl-2",children:e.title})]},e.id)}))}):(0,ie.jsx)("button",{onClick:function(){return o("pages")},className:"bg-transparent text-partner-primary underline text-base cursor-pointer",children:(0,re.__)("Press to set your pages","extendify")})]}),(0,ie.jsxs)("div",{className:"block",children:[(0,ie.jsx)("h2",{className:"text-lg m-0 mb-4",children:(0,re.__)("Plugins","extendify")}),(0,ie.jsx)(Ha,{})]})]})})]})},state:Fa.getState}]],as=os.filter((function(e){var t,n;return!(null!==(t=window.extOnbData)&&void 0!==t&&null!==(n=t.partnerSkipSteps)&&void 0!==n&&n.includes(e[0]))})),ss=ci((function(e,t){return{pages:new Map(as),currentPageIndex:0,count:function(){return t().pages.size},pageOrder:function(){return Array.from(t().pages.keys())},currentPageData:function(){return t().pages.get(t().currentPageSlug())},currentPageSlug:function(){return t().pageOrder()[t().currentPageIndex]},nextPageData:function(){var e=t().currentPageIndex+1;return e>t().count()-1?{}:t().pages.get(t().pageOrder()[e])},setPage:function(n){"string"==typeof n&&(n=t().pageOrder().indexOf(n)),n>t().count()-1||n<0||e({currentPageIndex:n})},nextPage:function(){t().setPage(t().currentPageIndex+1)},previousPage:function(){t().setPage(t().currentPageIndex-1)}}}),{name:"Extendify Launch Pages",serialize:!0}),us=yi(ss,{name:"extendify-pages",getStorage:function(){return localStorage},partialize:function(e){var t;return{currentPageIndex:null!==(t=null==e?void 0:e.currentPageIndex)&&void 0!==t?t:0}}}),cs=null!==(Ja=window)&&void 0!==Ja&&null!==(Za=Ja.extOnbData)&&void 0!==Za&&Za.devbuild?ui(ss):ui(us);function ls(e){return function(e){if(Array.isArray(e))return fs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return fs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fs(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}window.extOnbData.insightsEnabled&&qn({dsn:"https://c5c1aec4298743d399e86509ee4cef9c@o1352321.ingest.sentry.io/6633543",integrations:[new ii],release:null===(Ka=window.extOnbData)||void 0===Ka?void 0:Ka.version,environment:null!==(Qa=window)&&void 0!==Qa&&null!==(es=Qa.extOnbData)&&void 0!==es&&es.devbuild?"dev":"production",tracesSampleRate:1,beforeSend:function(e){return e.exception&&In({eventId:e.event_id}),e}});var ds=ce().create({baseURL:window.extOnbData.root,headers:{"X-WP-Nonce":window.extOnbData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Onboarding":!0,"X-Extendify":!0}});ds.interceptors.request.use((function(e){return ms(vs(e))}),(function(e){return e})),ds.interceptors.response.use((function(e){return ps(gs(e))}),(function(e){return hs(e)}));var ps=function(e){return Object.prototype.hasOwnProperty.call(e,"data")?e.data:e},hs=function(e){if(e.response)return we(e),console.error(e.response),Promise.reject(ps(e.response))},ms=function(e){return e.headers["X-Extendify-Onboarding-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Onboarding-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e},vs=function(e){try{var t,n,r=null==e||null===(t=e.url)||void 0===t||null===(n=t.split("/"))||void 0===n?void 0:n.pop();if(!r)return e;performance.mark("".concat(r,"-extendify"))}catch(e){}return e},gs=function(e){try{var t,n,r,i=new URL(null==e||null===(t=e.request)||void 0===t?void 0:t.responseURL),o=null===(n=i.pathname)||void 0===n||null===(r=n.split("/"))||void 0===r?void 0:r.pop();if(!o)return e;var a=performance.measure("".concat(o,"-extendify"),{start:"".concat(o,"-extendify"),detail:{context:{type:"request"},extendify:!0}}),s=new URLSearchParams(window.location.search);null!=s&&s.has("performance")&&console.info("~> Endpoint /".concat(o," ").concat("styles"===o?"(".concat(i.searchParams.get("siteType"),") "):"","in ").concat(a.duration.toFixed(),"ms"))}catch(e){}return e};function ys(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function _s(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){ys(o,r,i,a,s,"next",e)}function s(e){ys(o,r,i,a,s,"throw",e)}a(void 0)}))}}var bs=function(e){return ds.post("onboarding/parse-theme-json",{themeJson:e})},xs=function(e,t){return ds.post("onboarding/options",{option:e,value:t})},ws=function(){var e=_s(se().mark((function e(t){var n,r;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ds.get("onboarding/options",{params:{option:t}});case 2:return n=e.sent,r=n.data,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Es=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"post";return ds.get("".concat(window.extOnbData.wpRoot,"wp/v2/").concat(t,"s?slug=").concat(e))},Ss=function(){var e=_s(se().mark((function e(t){var n;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t&&t.wordpressSlug){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,ds.post("".concat(window.extOnbData.wpRoot,"wp/v2/plugins"),{slug:t.wordpressSlug,status:"active"});case 5:if((n=e.sent).ok){e.next=8;break}return e.abrupt("return",n);case 8:e.next=12;break;case 10:e.prev=10,e.t0=e.catch(2);case 12:return e.prev=12,e.next=15,Os(t);case 15:return e.abrupt("return",e.sent);case 18:e.prev=18,e.t1=e.catch(12);case 20:case"end":return e.stop()}}),e,null,[[2,10],[12,18]])})));return function(t){return e.apply(this,arguments)}}(),Os=function(){var e=_s(se().mark((function e(t){var n,r,i,o;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(window.extOnbData.wpRoot,"wp/v2/plugins"),e.next=3,ds.get("".concat(r,"?search=").concat(t.wordpressSlug));case 3:if(i=e.sent,o=null==i||null===(n=i[0])||void 0===n?void 0:n.plugin){e.next=7;break}throw new Error("Plugin not found");case 7:return e.next=9,ds.post("".concat(r,"/").concat(o),{status:"active"});case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ts=function(e,t){return ds.post("".concat(window.extOnbData.wpRoot,"wp/v2/template-parts/").concat(e),{slug:"".concat(e),theme:"extendable",type:"wp_template_part",status:"publish",description:(0,re.sprintf)((0,re.__)("Added by %s","extendify"),"Extendify Launch"),content:t})},js=function(){var e=_s(se().mark((function e(){var t,n,r,i,o,a;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Rs();case 2:return i=e.sent,i=null===(t=i)||void 0===t?void 0:t.filter((function(e){return"extendable"===e.theme})),o=null===(n=i)||void 0===n?void 0:n.filter((function(e){var t;return null==e||null===(t=e.slug)||void 0===t?void 0:t.includes("header")})),a=null===(r=i)||void 0===r?void 0:r.filter((function(e){var t;return null==e||null===(t=e.slug)||void 0===t?void 0:t.includes("footer")})),e.abrupt("return",{headers:o,footers:a});case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Rs=function(){return ds.get(window.extOnbData.wpRoot+"wp/v2/template-parts")},ks=function(){return ds.get(window.extOnbData.wpRoot+"wp/v2/global-styles/themes/extendable/variations")};function Ns(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ds(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ds(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ds(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ps(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function Cs(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ps(o,r,i,a,s,"next",e)}function s(e){Ps(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Is=function(){var e=Cs(se().mark((function e(t,n,r){var i,o,a,s,u,c,l,f,d,p;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i={},o=Ns(t),e.prev=2,o.s();case 4:if((a=o.n()).done){e.next=18;break}return s=a.value,e.next=8,Ti({siteType:n.slug,layoutType:s.slug,baseLayout:"home"===s.slug?null==r?void 0:r.homeBaseLayout:null,kit:"home"!==s.slug?null==r?void 0:r.kit:null});case 8:return u=e.sent,c="",null!=u&&u.data&&(c=[null==u||null===(l=u.data)||void 0===l?void 0:l.code,null==u||null===(f=u.data)||void 0===f?void 0:f.code2].filter(Boolean).join("")),d=s.slug,e.next=14,h={title:s.title,name:d,status:"publish",content:c,template:"no-title",meta:{made_with_extendify_launch:!0}},ds.post("".concat(window.extOnbData.wpRoot,"wp/v2/pages"),h);case 14:p=e.sent,i[d]={id:p.id,title:s.title};case 16:e.next=4;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(2),o.e(e.t0);case 23:return e.prev=23,o.f(),e.finish(23);case 26:if(null==i||!i.home){e.next=34;break}return e.next=29,xs("show_on_front","page");case 29:return e.next=31,xs("page_on_front",i.home.id);case 31:if(null==i||!i.blog){e.next=34;break}return e.next=34,xs("page_for_posts",i.blog);case 34:return e.next=36,xs("extendify_onboarding_completed",(new Date).toISOString());case 36:return e.abrupt("return",i);case 37:case"end":return e.stop()}var h}),e,null,[[2,20,23,26]])})));return function(t,n,r){return e.apply(this,arguments)}}(),As=function(e){return function(e,t){return ds.post("".concat(window.extOnbData.wpRoot,"wp/v2/global-styles/").concat(e),{id:e,settings:t.settings,styles:t.styles})}(window.extOnbData.globalStylesPostID,e)};function Us(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ys(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Bs(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function Ls(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Bs(o,r,i,a,s,"next",e)}function s(e){Bs(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Ms(e){return function(e){if(Array.isArray(e))return $s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ys(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||Ys(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ys(e,t){if(e){if("string"==typeof e)return $s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$s(e,t):void 0}}function $s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Hs=function(){var e=$o((function(e){return e.canLaunch()})),t=$o(),n=t.siteType,r=t.siteInformation,o=t.pages,a=t.style,s=t.plugins,u=Gs((0,i.useState)([]),2),c=u[0],l=u[1],f=function(e){return l((function(t){return[e].concat(Ms(t))}))};(0,i.useEffect)((function(){var e=function(e){return e.preventDefault(),e.returnValue=""},t={capture:!0};return window.addEventListener("beforeunload",e,t),function(){window.removeEventListener("beforeunload",e,t)}}),[]);var d=(0,i.useCallback)(Ls(se().mark((function t(){var i,u,c,l,d,p,h;return se().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}throw new Error((0,re.__)("Site is not ready to launch.","extendify"));case 2:return f((0,re.__)("Preparing your website","extendify")),t.prev=3,t.next=6,xs("blogname",r.title);case 6:t.next=10;break;case 8:t.prev=8,t.t0=t.catch(3);case 10:return t.next=12,new Promise((function(e){return setTimeout(e,2e3)}));case 12:return f((0,re.__)("Installing your theme","extendify")),t.prev=13,t.next=16,As(null!==(i=null==a?void 0:a.variation)&&void 0!==i?i:{});case 16:t.next=20;break;case 18:t.prev=18,t.t1=t.catch(13);case 20:if(null==s||!s.length){t.next=47;break}return f((0,re._n)("Getting ready to install ".concat(s.length," plugin"),"Getting ready to install ".concat(s.length," plugins"),s.length,"extendify")),t.next=24,new Promise((function(e){return setTimeout(e,2e3)}));case 24:u=Us(s.entries()),t.prev=25,u.s();case 27:if((c=u.n()).done){t.next=39;break}return l=Gs(c.value,2),d=l[0],p=l[1],f((0,re.__)("Installing (".concat(d+1,"/").concat(s.length,"): ").concat(p.name),"extendify")),t.prev=30,t.next=33,Ss(p);case 33:t.next=37;break;case 35:t.prev=35,t.t2=t.catch(30);case 37:t.next=27;break;case 39:t.next=44;break;case 41:t.prev=41,t.t3=t.catch(25),u.e(t.t3);case 44:return t.prev=44,u.f(),t.finish(44);case 47:return t.next=49,new Promise((function(e){return setTimeout(e,2e3)}));case 49:return f((0,re.__)("Inserting header area","extendify")),t.prev=50,t.next=53,Ts("extendable//header",null==a?void 0:a.headerCode);case 53:t.next=57;break;case 55:t.prev=55,t.t4=t.catch(50);case 57:return t.next=59,new Promise((function(e){return setTimeout(e,2e3)}));case 59:return f((0,re.__)("Generating page content","extendify")),t.prev=60,t.next=63,Is(o,n,a);case 63:h=t.sent,t.next=68;break;case 66:t.prev=66,t.t5=t.catch(60);case 68:return t.next=70,new Promise((function(e){return setTimeout(e,2e3)}));case 70:return f((0,re.__)("Inserting footer area","extendify")),t.prev=71,t.next=74,Ts("extendable//footer",null==a?void 0:a.footerCode);case 74:t.next=78;break;case 76:t.prev=76,t.t6=t.catch(71);case 78:return t.next=80,new Promise((function(e){return setTimeout(e,2e3)}));case 80:return f((0,re.__)("Finalizing your site","extendify")),t.prev=81,t.next=84,void[{slug:"hello-world",type:"post"},{slug:"sample-page",type:"page"}].forEach(function(){var e=Cs(se().mark((function e(t){var n;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Es(t.slug,t.type);case 2:if(null==(n=e.sent)||!n.length||"trash"===n[0].status){e.next=6;break}return e.next=6,r=n[0].id,i=t.type,ds.delete("".concat(window.extOnbData.wpRoot,"wp/v2/").concat(i,"s/").concat(r));case 6:case"end":return e.stop()}var r,i}),e)})));return function(t){return e.apply(this,arguments)}}());case 84:t.next=88;break;case 86:t.prev=86,t.t7=t.catch(81);case 88:return t.abrupt("return",h);case 89:case"end":return t.stop()}}),t,null,[[3,8],[13,18],[25,41,44,47],[30,35],[50,55],[60,66],[71,76],[81,86]])}))),[o,s,n,a,e,r.title]);return(0,i.useEffect)((function(){d().then((function(e){bi.setState({generatedPages:e})}))}),[d]),(0,ie.jsxs)(qo,{includeNav:!1,children:[(0,ie.jsxs)("div",{children:[(0,ie.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,re.__)("Building your site now!","extendify")}),(0,ie.jsx)("p",{className:"text-base mb-0",children:(0,re.__)("Please don't close the window.","extendify")})]}),(0,ie.jsx)("div",{className:"w-full",children:(0,ie.jsx)("div",{className:"flex flex-col items-start space-y-4",children:c.map((function(e,t){return t?(0,ie.jsxs)("div",{className:"ml-12 text-base text-gray-500 flex",children:[(0,ie.jsx)(Pi,{className:"text-green-500 w-6 mr-1"}),(0,re.sprintf)(e,"...")]},e):(0,ie.jsxs)("div",{className:"text-4xl flex space-x-4 items-center",children:[(0,ie.jsx)(bo,{className:"spin w-10 mr-2"}),(0,re.sprintf)(e,"...")]},e)}))})})]})};function Fs(e){return(function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[n,r=""]=t.split("=").filter(Boolean).map(decodeURIComponent);if(n){!function(e,t,n){const r=t.length,i=r-1;for(let o=0;o<r;o++){let r=t[o];!r&&Array.isArray(e)&&(r=e.length.toString()),r=["__proto__","constructor","prototype"].includes(r)?r.toUpperCase():r;const a=!isNaN(Number(t[o+1]));e[r]=o===i?n:e[r]||(a?[]:{}),Array.isArray(e[r])&&!a&&(e[r]={...e[r]}),e=e[r]}}(e,n.replace(/\]/g,"").split("["),r)}return e}),Object.create(null))}function qs(e){let t="";const n=Object.entries(e);let r;for(;r=n.shift();){let[e,i]=r;if(Array.isArray(i)||i&&i.constructor===Object){const t=Object.entries(i).reverse();for(const[r,i]of t)n.unshift([`${e}[${r}]`,i])}else void 0!==i&&(null===i&&(i=""),t+="&"+[e,i].map(encodeURIComponent).join("="))}return t.substr(1)}function zs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;let n=e;const r=e.indexOf("?");return-1!==r&&(t=Object.assign(Fs(e),t),n=n.substr(0,r)),n+"?"+qs(t)}var Vs={};!function e(t,n,r,i){var o=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function a(){}function s(e){var r=n.exports.Promise,i=void 0!==r?r:t.Promise;return"function"==typeof i?new i(e):(e(a,a),null)}var u,c,l,f,d,p,h,m,v,g=(l=Math.floor(1e3/60),f={},d=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(u=function(e){var t=Math.random();return f[t]=requestAnimationFrame((function n(r){d===r||d+l-1<r?(d=r,delete f[t],e()):f[t]=requestAnimationFrame(n)})),t},c=function(e){f[e]&&cancelAnimationFrame(f[e])}):(u=function(e){return setTimeout(e,l)},c=function(e){return clearTimeout(e)}),{frame:u,cancel:c}),y=(m={},function(){if(p)return p;if(!r&&o){var t=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{p=new Worker(URL.createObjectURL(new Blob([t])))}catch(e){return void 0!==typeof console&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",e),null}!function(e){function t(t,n){e.postMessage({options:t||{},callback:n})}e.init=function(t){var n=t.transferControlToOffscreen();e.postMessage({canvas:n},[n])},e.fire=function(n,r,i){if(h)return t(n,null),h;var o=Math.random().toString(36).slice(2);return h=s((function(r){function a(t){t.data.callback===o&&(delete m[o],e.removeEventListener("message",a),h=null,i(),r())}e.addEventListener("message",a),t(n,o),m[o]=a.bind(null,{data:{callback:o}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),m)m[t](),delete m[t]}}(p)}return p}),_={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function b(e,t,n){return function(e,t){return t?t(e):e}(e&&null!=e[t]?e[t]:_[t],n)}function x(e){return e<0?0:Math.floor(e)}function w(e){return parseInt(e,16)}function E(e){return e.map(S)}function S(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:w(t.substring(0,2)),g:w(t.substring(2,4)),b:w(t.substring(4,6))}}function O(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function T(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function j(e,t,n,o,a){var u,c,l=t.slice(),f=e.getContext("2d"),d=s((function(t){function s(){u=c=null,f.clearRect(0,0,o.width,o.height),a(),t()}u=g.frame((function t(){!r||o.width===i.width&&o.height===i.height||(o.width=e.width=i.width,o.height=e.height=i.height),o.width||o.height||(n(e),o.width=e.width,o.height=e.height),f.clearRect(0,0,o.width,o.height),l=l.filter((function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.wobble+=t.wobbleSpeed,t.velocity*=t.decay,t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble);var n=t.tick++/t.totalTicks,r=t.x+t.random*t.tiltCos,i=t.y+t.random*t.tiltSin,o=t.wobbleX+t.random*t.tiltCos,a=t.wobbleY+t.random*t.tiltSin;return e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-n)+")",e.beginPath(),"circle"===t.shape?e.ellipse?e.ellipse(t.x,t.y,Math.abs(o-r)*t.ovalScalar,Math.abs(a-i)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,n,r,i,o,a,s,u){e.save(),e.translate(t,n),e.rotate(o),e.scale(r,i),e.arc(0,0,1,a,s,u),e.restore()}(e,t.x,t.y,Math.abs(o-r)*t.ovalScalar,Math.abs(a-i)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):(e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(i)),e.lineTo(Math.floor(o),Math.floor(a)),e.lineTo(Math.floor(r),Math.floor(t.wobbleY))),e.closePath(),e.fill(),t.tick<t.totalTicks}(f,e)})),l.length?u=g.frame(t):s()})),c=s}));return{addFettis:function(e){return l=l.concat(e),d},canvas:e,promise:d,reset:function(){u&&g.cancel(u),c&&c()}}}function R(e,n){var r,i=!e,a=!!b(n||{},"resize"),u=b(n,"disableForReducedMotion",Boolean),c=o&&!!b(n||{},"useWorker")?y():null,l=i?O:T,f=!(!e||!c)&&!!e.__confetti_initialized,d="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function p(t,n,i){for(var o,a,s,u,c,f=b(t,"particleCount",x),d=b(t,"angle",Number),p=b(t,"spread",Number),h=b(t,"startVelocity",Number),m=b(t,"decay",Number),v=b(t,"gravity",Number),g=b(t,"drift",Number),y=b(t,"colors",E),_=b(t,"ticks",Number),w=b(t,"shapes"),S=b(t,"scalar"),O=function(e){var t=b(e,"origin",Object);return t.x=b(t,"x",Number),t.y=b(t,"y",Number),t}(t),T=f,R=[],k=e.width*O.x,N=e.height*O.y;T--;)R.push((o={x:k,y:N,angle:d,spread:p,startVelocity:h,color:y[T%y.length],shape:w[(u=0,c=w.length,Math.floor(Math.random()*(c-u))+u)],ticks:_,decay:m,gravity:v,drift:g,scalar:S},a=void 0,s=void 0,a=o.angle*(Math.PI/180),s=o.spread*(Math.PI/180),{x:o.x,y:o.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*o.startVelocity+Math.random()*o.startVelocity,angle2D:-a+(.5*s-Math.random()*s),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:o.color,shape:o.shape,tick:0,totalTicks:o.ticks,decay:o.decay,drift:o.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*o.gravity,ovalScalar:.6,scalar:o.scalar}));return r?r.addFettis(R):(r=j(e,R,l,n,i)).promise}function h(n){var o=u||b(n,"disableForReducedMotion",Boolean),h=b(n,"zIndex",Number);if(o&&d)return s((function(e){e()}));i&&r?e=r.canvas:i&&!e&&(e=function(e){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=e,t}(h),document.body.appendChild(e)),a&&!f&&l(e);var m={width:e.width,height:e.height};function v(){if(c){var t={getBoundingClientRect:function(){if(!i)return e.getBoundingClientRect()}};return l(t),void c.postMessage({resize:{width:t.width,height:t.height}})}m.width=m.height=null}function g(){r=null,a&&t.removeEventListener("resize",v),i&&e&&(document.body.removeChild(e),e=null,f=!1)}return c&&!f&&c.init(e),f=!0,c&&(e.__confetti_initialized=!0),a&&t.addEventListener("resize",v,!1),c?c.fire(n,m,g):p(n,m,g)}return h.reset=function(){c&&c.reset(),r&&r.reset()},h}function k(){return v||(v=R(null,{useWorker:!0,resize:!0})),v}n.exports=function(){return k().apply(this,arguments)},n.exports.reset=function(){k().reset()},n.exports.create=R}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),Vs,!1);const Ws=Vs.exports;Vs.exports.create;function Xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Js(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xs(Object(n),!0).forEach((function(t){Zs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ks=function(){var e,t,n=bi((function(e){return e.generatedPages})),r=$o((function(e){return e.siteType}));return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,i.useEffect)((function(){var n=Date.now()+t;!function t(){Ws(Js(Js({},e),{},{disableForReducedMotion:!0,zIndex:1e5})),Date.now()<n&&requestAnimationFrame(t)}()}),[e,t])}({particleCount:2,angle:60,spread:55,origin:{x:0,y:.7},colors:["var(--ext-partner-theme-primary-text, #ffffff)"]},3e3),(0,ie.jsxs)(qo,{includeNav:!1,children:[(0,ie.jsx)("div",{children:(0,ie.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,re.sprintf)((0,re.__)("Your site has been successfully created. Enjoy!","extendify"),null==r||null===(e=r.label)||void 0===e?void 0:e.toLowerCase())})}),(0,ie.jsxs)("div",{className:"w-full",children:[(0,ie.jsx)("p",{className:"mt-0 mb-8 text-base text-center",children:(0,re.__)("Your site is ready! You can now go to your site and start editing content.","extendify")}),(0,ie.jsxs)("div",{className:"text-center w-360 flex flex-col justify-center items-center -mt-150",children:[(0,ie.jsx)(Pi,{className:"w-16 bg-partner-primary-bg text-partner-primary-text rounded-full"}),(0,ie.jsx)("h3",{className:"mb-8",children:(0,re.__)("All Done","extendify")}),(0,ie.jsx)("div",{className:"flex space-x-4",children:(0,ie.jsx)("a",{className:"px-4 py-3 rounded-md bg-gray-200 text-black no-underline hover:bg-partner-primary-bg hover:text-partner-primary-text font-medium",target:"_blank",rel:"noreferrer",href:window.extOnbData.home,children:(0,re.__)("View Site","extendify")})}),(0,ie.jsxs)("div",{className:"text-left self-start px-10 py-4 w-full",children:[(0,ie.jsx)("h4",{className:"",children:(0,re.__)("New Pages:","extendify")}),(0,ie.jsx)("div",{className:"",children:null===(t=Object.values(n))||void 0===t?void 0:t.map((function(e){return(0,ie.jsxs)("div",{className:"flex items-center mb-2",children:[(0,ie.jsx)(Pi,{className:"w-6 text-green-500"}),(0,ie.jsx)("a",{target:"_blank",href:zs("post.php",{post:e.id,action:"edit"}),className:"text-primary no-underline hover:underline ml-2 text-base",rel:"noreferrer",children:e.title})]},e.id)}))})]})]})]})]})};function Qs(e){return function(e){if(Array.isArray(e))return nu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||tu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||tu(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tu(e,t){if(e){if("string"==typeof e)return nu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nu(e,t):void 0}}function nu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ru=function(){var e=$o(),t=e.goals,n=e.pages,r=e.plugins,o=e.siteType,a=e.style,s=e.feedbackMissingSiteType,u=e.feedbackMissingGoal,c=e.siteTypeSearch,l=bi(),f=l.orderId,d=l.setOrderId,p=l.generating,h=cs(),m=h.pages,v=h.currentPageIndex,g=eu((0,i.useState)(),2),y=g[0],_=g[1],b=eu((0,i.useState)([]),2),x=b[0],w=b[1],E=eu((0,i.useState)(new Set),2),S=E[0],O=E[1];(0,i.useEffect)((function(){var e=Qs(m).map((function(e){return e[0]}));w((function(t){return(null==t?void 0:t.at(-1))===e[v]?t:[].concat(Qs(t),[e[v]])}))}),[v,m]),(0,i.useEffect)((function(){p&&w((function(e){return[].concat(Qs(e),["launched"])}))}),[p]),(0,i.useEffect)((function(){var e;null!==(e=Object.keys(null!=a?a:{}))&&void 0!==e&&e.length&&O((function(e){var t=new Set(e);return t.add(a.recordId),t}))}),[a]),(0,i.useEffect)((function(){var e,t,n,r,i="onboarding",o=null===(e=window.location)||void 0===e?void 0:e.search;i=(null==o?void 0:o.indexOf("DEVMODE"))>-1?"onboarding-dev":i,i=(null==o?void 0:o.indexOf("LOCALMODE"))>-1?"onboarding-local":i,_(null===(t=window)||void 0===t||null===(n=t.extOnbData)||void 0===n||null===(r=n.config)||void 0===r?void 0:r.api[i])}),[]),(0,i.useEffect)((function(){!y||null!=f&&f.length||ds.post("onboarding/create-order").then((function(e){d(e.data.id)}))}),[y,d,f]),(0,i.useEffect)((function(){if(y&&f){var e;return e=window.setTimeout((function(){var e;fetch("".concat(y,"/progress"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({orderId:f,selectedGoals:null==t?void 0:t.map((function(e){return e.id})),selectedPages:null==n?void 0:n.map((function(e){return e.id})),selectedPlugins:r,selectedSiteType:null!=o&&o.recordId?[o.recordId]:[],selectedStyle:null!=a&&a.recordId?[a.recordId]:[],stepProgress:x,pages:m,viewedStyles:Qs(S).slice(1),feedbackMissingSiteType:s,feedbackMissingGoal:u,siteTypeSearch:c,perfStyles:iu("style"),perfPages:iu("page"),insightsId:null===(e=window.extOnbData)||void 0===e?void 0:e.insightsId})})}),1e3),function(){return window.clearTimeout(e)}}}),[y,t,n,r,o,a,m,f,x,S,s,u,c])},iu=function(e){return performance.getEntriesByType("measure").filter((function(t){return t.detail.extendify&&t.detail.context.type===e})).map((function(e){return t={},n=e.name,r=e.duration,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t;var t,n,r}))},ou=function(){return(0,ie.jsxs)(qo,{includeNav:!1,children:[(0,ie.jsx)("div",{children:(0,ie.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,re.__)("Hey, one more thing before we start.","extendify")})}),(0,ie.jsxs)("div",{className:"w-full",children:[(0,ie.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,re.__)("Hey there, Launch is powered by Extendable and is required to proceed. You can install it from the link below and start over once activated.","extendify")}),(0,ie.jsx)("div",{className:"flex flex-col items-start space-y-4 text-base",children:(0,ie.jsx)("a",{href:"".concat(window.extOnbData.site,"/wp-admin/theme-install.php?theme=extendable"),children:(0,re.__)("Take me there")})})]})]})};function au(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return su(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return su(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function su(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var uu,cu=function(){var e,t=au((0,i.useState)(!1),2),n=t[0],a=t[1],s=cs((function(e){return e.currentPageData()})),u=s.component,c=cs((function(e){return e.nextPageData()})),l=c.fetcher,f=c.fetchData,d=Z().mutate,p=bi((function(e){return e.generating})),h=bi((function(e){return e.generatedPages})),m=au((0,i.useState)(!1),2),v=m[0],g=m[1],y=au((0,i.useState)(!1),2),_=y[0],b=y[1],x=(0,o.useSelect)((function(e){return e("core").getCurrentTheme()})),w=function(){var e=bi((function(e){return e.orderId})),t=cs(),n=t.pages,o=t.currentPageIndex;return(0,i.useEffect)((function(){var t;Pe({id:null===(t=window.extOnbData)||void 0===t?void 0:t.insightsId}),Oe((function(t){var n,r,i;t.setExtra("Partner",null===(n=window.extOnbData)||void 0===n?void 0:n.partnerName),t.setExtra("Site",null===(r=window.extOnbData)||void 0===r?void 0:r.home),t.setExtra("Order ID",e),t.setExtra("Insights ID",null===(i=window.extOnbData)||void 0===i?void 0:i.insightsId)}))}),[e]),(0,i.useEffect)((function(){var e=ls(n).map((function(e){return e[0]}));Te({type:"navigation",category:"step",message:"Navigated to ".concat(e[o])})}),[o,n]),{Sentry:r}}(),E=w.Sentry;e=(0,o.useSelect)((function(e){return e("core/edit-post").isFeatureActive("welcomeGuide")}),[]),(0,i.useEffect)((function(){e&&(0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide")}),[e]),(0,i.useLayoutEffect)((function(){var e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){return document.body.style.overflow=e}}),[]),ru();var S;return(0,i.useEffect)((function(){null!=x&&x.textdomain&&"extendable"!==(null==x?void 0:x.textdomain)&&b(!0)}),[x]),(0,i.useEffect)((function(){if(v){var e=setTimeout((function(){window.dispatchEvent(new CustomEvent("extendify::close-library",{bubbles:!0}))}),0);return document.title="Extendify Launch",function(){return clearTimeout(e)}}}),[v]),(0,i.useEffect)((function(){var e=new URLSearchParams(window.location.search);["onboarding"].includes(e.get("extendify"))&&(g(!0),xs("extendify_launch_loaded",(new Date).toISOString()))}),[]),(0,i.useEffect)((function(){l&&d(f,l)}),[l,d,f]),v?(0,ie.jsxs)(ee,{value:{errorRetryInterval:1e3,onErrorRetry:function(e,t,r,i,o){var s,u,c=o.retryCount;if(403!==(null==e||null===(s=e.data)||void 0===s?void 0:s.status)){if(!n){var l;if(c>=5)throw console.error("Encountered unrecoverable error",e),new Error(null!==(l=null==e?void 0:e.message)&&void 0!==l?l:"Unknown error");console.error(t,e),E.captureException(new Error(null!==(u=null==e?void 0:e.message)&&void 0!==u?u:"Unknown error"),{tags:{retrying:!0},extra:{cacheKey:t}}),a(!0),setTimeout((function(){a(!1),i({retryCount:c})}),5e3)}}else window.location.reload()}},children:[(0,ie.jsx)("div",{style:{zIndex:1e5},className:"h-screen w-screen fixed inset-0 overflow-y-auto md:overflow-hidden bg-white",children:_?(0,ie.jsx)(ou,{}):null!==(S=Object.keys(h))&&void 0!==S&&S.length?(0,ie.jsx)(Ks,{}):p?(0,ie.jsx)(Hs,{}):(0,ie.jsx)(u,{})}),n&&(0,ie.jsx)(oe,{})]}):null},lu=Object.assign(document.createElement("div"),{id:"extendify-onboarding-root",className:"extendify-onboarding"});document.body.append(lu),uu=function(){window._wpLoadBlockEditor&&(0,i.render)((0,ie.jsx)(cu,{}),lu)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",uu):uu())})()})();
1
  /*! For license information please see extendify-onboarding.js.LICENSE.txt */
2
+ (()=>{var e={7135:(e,t,n)=>{e.exports=n(6248)},355:(e,t,n)=>{"use strict";n.d(t,{Gd:()=>h,Xb:()=>f,cu:()=>d,pj:()=>p,vi:()=>v});var r=n(7451),i=n(4180),o=n(6922),a=n(6727),s=n(2615),u=n(36),c=n(3313),l=100;class f{__init(){this._stack=[{}]}constructor(e,t=new u.s,n=4){this._version=n,f.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){var e=u.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:(0,r.DM)(),i=new Error("Sentry syntheticException");return this._withClient(((r,o)=>{r.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},o)})),n}captureMessage(e,t,n){var i=this._lastEventId=n&&n.event_id?n.event_id:(0,r.DM)(),o=new Error(e);return this._withClient(((r,a)=>{r.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:i},a)})),i}captureEvent(e,t){var n=t&&t.event_id?t.event_id:(0,r.DM)();return"transaction"!==e.type&&(this._lastEventId=n),this._withClient(((r,i)=>{r.captureEvent(e,{...t,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=l}=r.getOptions&&r.getOptions()||{};if(!(s<=0)){var u={timestamp:(0,i.yW)(),...e},c=a?(0,o.Cf)((()=>a(u,t))):u;null!==c&&n.addBreadcrumb(c,s)}}setUser(e){var t=this.getScope();t&&t.setUser(e)}setTags(e){var t=this.getScope();t&&t.setTags(e)}setExtras(e){var t=this.getScope();t&&t.setExtras(e)}setTag(e,t){var n=this.getScope();n&&n.setTag(e,t)}setExtra(e,t){var n=this.getScope();n&&n.setExtra(e,t)}setContext(e,t){var n=this.getScope();n&&n.setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();t&&n&&e(t)}run(e){var t=p(this);try{e(this)}finally{p(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&(0,c.RJ)(n),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i}=n&&n.getOptions()||{};var o=(0,a.R)();const{userAgent:s}=o.navigator||{};var u=(0,c.Hv)({release:r,environment:i,...t&&{user:t.getUser()},...s&&{userAgent:s},...e});if(t){var l=t.getSession&&t.getSession();l&&"ok"===l.status&&(0,c.CT)(l,{status:"exited"}),this.endSession(),t.setSession(u)}return u}shouldSendDefaultPii(){var e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();if(e){var n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){var n=d().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function d(){var e=(0,a.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function p(e){var t=d(),n=v(t);return g(t,e),n}function h(){var e=d();return m(e)&&!v(e).isOlderThan(4)||g(e,new f),(0,s.KV)()?function(e){try{var t=d().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return v(e);if(!m(n)||v(n).isOlderThan(4)){var r=v(e).getStackTop();g(n,new f(r.client,u.s.clone(r.scope)))}return v(n)}catch(t){return v(e)}}(e):v(e)}function m(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function v(e){return(0,a.Y)("hub",(()=>new f),e)}function g(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},36:(e,t,n)=>{"use strict";n.d(t,{c:()=>f,s:()=>c});var r=n(6885),i=n(4180),o=n(8894),a=n(6922),s=n(6727),u=n(3313);class c{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){var t=new c;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments]),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&(0,u.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts={...this._contexts,[e]:t},this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){var t=e(this);return t instanceof c?t:this}return e instanceof c?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,r.PO)(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r={timestamp:(0,i.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags={transaction:n,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...l(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,i=0){return new o.cW(((o,s)=>{var u=e[i];if(null===t||"function"!=typeof u)o(t);else{var c=u({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.id&&null===c&&a.kg.log(`Event processor "${u.id}" dropped event`),(0,r.J8)(c)?c.then((t=>this._notifyEventProcessors(e,t,n,i+1).then(o))).then(null,s):this._notifyEventProcessors(e,c,n,i+1).then(o).then(null,s)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function l(){return(0,s.Y)("globalEventProcessors",(()=>[]))}function f(e){l().push(e)}},3313:(e,t,n)=>{"use strict";n.d(t,{CT:()=>s,Hv:()=>a,RJ:()=>u});var r=n(4180),i=n(7451),o=n(9109);function a(e){var t=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,o.Jr)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&s(n,e),n}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,r.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function u(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},4681:(e,t,n)=>{"use strict";n.d(t,{ro:()=>v,lb:()=>m});var r=n(355),i=n(6922),o=n(6885),a=n(2615),s=n(9338),u=n(5498);function c(){var e=(0,u.x1)();if(e){var t="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}var l=n(4061),f=n(6590);function d(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function p(e,t,n){if(!(0,u.zu)(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setMetadata({transactionSampling:{method:"explicitly_set"}}),e;let r;return"function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(r)}})):void 0!==n.parentSampled?(r=n.parentSampled,e.setMetadata({transactionSampling:{method:"inheritance"}})):(r=t.tracesSampleRate,e.setMetadata({transactionSampling:{method:"client_rate",rate:Number(r)}})),function(e){if((0,o.i2)(e)||"number"!=typeof e&&"boolean"!=typeof e)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1;if(e<0||e>1)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1;return!0}(r)?r?(e.sampled=Math.random()<r,e.sampled?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] starting ${e.op} transaction - ${e.name}`),e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function h(e,t){var n=this.getClient(),r=n&&n.getOptions()||{};let i=new f.Y(e,this);return i=p(i,r,{parentSampled:e.parentSampled,transactionContext:e,...t}),i.sampled&&i.initSpanRecorder(r._experiments&&r._experiments.maxSpans),i}function m(e,t,n,r,i,o){var a=e.getClient(),s=a&&a.getOptions()||{};let u=new l.io(t,e,n,r,i);return u=p(u,s,{parentSampled:t.parentSampled,transactionContext:t,...o}),u.sampled&&u.initSpanRecorder(s._experiments&&s._experiments.maxSpans),u}function v(){var t;(t=(0,r.cu)()).__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=h),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=d)),(0,a.KV)()&&function(){var t=(0,r.cu)();if(t.__SENTRY__){var n={mongodb:()=>new((0,a.l$)(e,"./integrations/node/mongo").Mongo),mongoose:()=>new((0,a.l$)(e,"./integrations/node/mongo").Mongo)({mongoose:!0}),mysql:()=>new((0,a.l$)(e,"./integrations/node/mysql").Mysql),pg:()=>new((0,a.l$)(e,"./integrations/node/postgres").Postgres)},i=Object.keys(n).filter((e=>!!(0,a.$y)(e))).map((e=>{try{return n[e]()}catch(e){return}})).filter((e=>e));i.length>0&&(t.__SENTRY__.integrations=[...t.__SENTRY__.integrations||[],...i])}}(),(0,s.o)("error",c),(0,s.o)("unhandledrejection",c)}e=n.hmd(e)},4061:(e,t,n)=>{"use strict";n.d(t,{io:()=>l,mg:()=>u,nT:()=>s});var r=n(4180),i=n(6922),o=n(92),a=n(6590),s=1e3,u=3e4;class c extends o.gB{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:(0,r._I)(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}}class l extends a.Y{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._beforeFinishCallbacks=[]}constructor(e,t,n=s,r=u,o=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._onScope=o,l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),l.prototype.__init4.call(this),o&&(f(t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),t.configureScope((e=>e.setSpan(this)))),this._startIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this.finish())}),this._finalTimeout)}finish(e=(0,r._I)()){if(this._finished=!0,this.activities={},this.spanRecorder){for(var t of(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op),this._beforeFinishCallbacks))t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));var n=t.startTimestamp<e;return n||("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(t,void 0,2)),n})),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] No active IdleTransaction");return this._onScope&&f(this._idleHub),super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){this.spanRecorder=new c((e=>{this._finished||this._pushActivity(e)}),(e=>{this._finished||this._popActivity(e)}),this.spanId,e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}_cancelIdleTimeout(){this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0)}_startIdleTimeout(e){this._cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||this.finish(e)}),this._idleTimeout)}_pushActivity(e){this._cancelIdleTimeout(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] popActivity ${e}`),delete this.activities[e],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var t=(0,r._I)()+this._idleTimeout/1e3;this._startIdleTimeout(t)}}_beat(){if(!this._finished){var e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.finish()):this._pingHeartbeat()}}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),5e3)}}function f(e){var t=e.getScope();t&&(t.getTransaction()&&t.setSpan(void 0))}},92:(e,t,n)=>{"use strict";n.d(t,{Dr:()=>c,gB:()=>u});var r=n(822),i=n(7451),o=n(4180),a=n(6922),s=n(9109);class u{__init(){this.spans=[]}constructor(e=1e3){u.prototype.__init.call(this),this._maxlen=e}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class c{__init2(){this.traceId=(0,i.DM)()}__init3(){this.spanId=(0,i.DM)().substring(16)}__init4(){this.startTimestamp=(0,o._I)()}__init5(){this.tags={}}__init6(){this.data={}}constructor(e){if(c.prototype.__init2.call(this),c.prototype.__init3.call(this),c.prototype.__init4.call(this),c.prototype.__init5.call(this),c.prototype.__init6.call(this),!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}startChild(e){var t=new c({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.transaction){var n=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${t.transaction.name||"< unknown name >"}' (${t.transaction.spanId}).`;t.transaction.metadata.spanMetadata[t.spanId]={logMessage:n},a.kg.log(n)}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e));var t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this}isSuccess(){return"ok"===this.status}finish(e){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:e}=this.transaction.metadata.spanMetadata[this.spanId];e&&a.kg.log(e.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof e?e:(0,o._I)()}toTraceparent(){let e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${e}`}toContext(){return(0,s.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=(0,r.h)(e.data,(()=>({}))),this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=(0,r.h)(e.spanId,(()=>this.spanId)),this.startTimestamp=(0,r.h)(e.startTimestamp,(()=>this.startTimestamp)),this.status=e.status,this.tags=(0,r.h)(e.tags,(()=>({}))),this.traceId=(0,r.h)(e.traceId,(()=>this.traceId)),this}getTraceContext(){return(0,s.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return(0,s.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}},6590:(e,t,n)=>{"use strict";n.d(t,{Y:()=>c});var r=n(822),i=n(355),o=n(6922),a=n(9109),s=n(2456),u=n(92);class c extends u.Dr{__init(){this._measurements={}}constructor(e,t){super(e),c.prototype.__init.call(this),this._hub=t||(0,i.Gd)(),this._name=e.name||"",this.metadata={...e.metadata,spanMetadata:{}},this._trimEnd=e.trimEnd,this.transaction=this}get name(){return this._name}set name(e){this._name=e,this.metadata.source="custom"}setName(e,t="custom"){this.name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new u.gB(e)),this.spanRecorder.add(this)}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){if(void 0===this.endTimestamp){if(this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(e),!0===this.sampled){var t=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&e.endTimestamp)):[];this._trimEnd&&t.length>0&&(this.endTimestamp=t.reduce(((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e)).endTimestamp);var n=this.metadata,r={contexts:{trace:this.getTraceContext()},spans:t,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...n,baggage:this.getBaggage()},...n.source&&{transaction_info:{source:n.source}}};return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),r.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(r)}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var i=this._hub.getClient();i&&i.recordDroppedEvent("sample_rate","transaction")}}toContext(){var e=super.toContext();return(0,a.Jr)({...e,name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=(0,r.h)(e.name,(()=>"")),this._trimEnd=e.trimEnd,this}getBaggage(){var e=this.metadata.baggage,t=!e||(0,s.Gp)(e)?this._populateBaggageWithSentryValues(e):e;return this.metadata.baggage=t,t}_populateBaggageWithSentryValues(e=(0,s.Hn)({})){var t=this._hub||(0,i.Gd)(),n=t&&t.getClient();if(!n)return e;const{environment:r,release:o}=n.getOptions()||{},{publicKey:u}=n.getDsn()||{};var c=this.metadata&&this.metadata.transactionSampling&&this.metadata.transactionSampling.rate&&this.metadata.transactionSampling.rate.toString(),l=t.getScope();const{segment:f}=l&&l.getUser()||{};var d=this.metadata.source,p=d&&"url"!==d?this.name:void 0;return(0,s.Hn)((0,a.Jr)({environment:r,release:o,transaction:p,user_segment:f,public_key:u,trace_id:this.traceId,sample_rate:c,...(0,s.Hk)(e)}),"",!1)}}},5498:(e,t,n)=>{"use strict";n.d(t,{XL:()=>a,x1:()=>o,zu:()=>i});var r=n(355);function i(e){var t=(0,r.Gd)().getClient(),n=e||t&&t.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function o(e){var t=(e||(0,r.Gd)()).getScope();return t&&t.getTransaction()}function a(e){return e/1e3}},2456:(e,t,n)=>{"use strict";n.d(t,{Gp:()=>c,Hk:()=>u,Hn:()=>s,J8:()=>f,bU:()=>o,rg:()=>d});var r=n(6885),i=n(6922),o="baggage",a=/^sentry-/;function s(e,t="",n=!0){return[{...e},t,n]}function u(e){return e[0]}function c(e){return e[2]}function l(e,t=!1){return!Array.isArray(e)&&!(0,r.HD)(e)||"number"==typeof e?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn("[parseBaggageHeader] Received input value of incompatible type: ",typeof e,e),s({},"")):((0,r.HD)(e)?e:e.join(",")).split(",").map((e=>e.trim())).filter((e=>""!==e&&(t||a.test(e)))).reduce((([e,t],n)=>{const[r,i]=n.split("=");if(a.test(r)){var o=decodeURIComponent(r.split("-")[1]);return[{...e,[o]:decodeURIComponent(i)},t,!0]}return[e,""===t?n:`${t},${n}`,!0]}),[{},"",!0])}function f(e,t){if(!e&&!t)return"";var n=t&&l(t,!0)||void 0,r=n&&n[1];return function(e){return Object.keys(e[0]).reduce(((t,n)=>{var r=e[0][n],o=`sentry-${encodeURIComponent(n)}=${encodeURIComponent(r)}`,a=""===t?o:`${t},${o}`;return a.length>8192?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn(`Not adding key: ${n} with val: ${r} to baggage due to exceeding baggage size limits.`),t):a}),e[1])}(s(e&&e[0]||{},r||""))}function d(e,t){var n=l(e||"");return(t||!function(e){return 0===Object.keys(e[0]).length}(n))&&function(e){e[2]=!1}(n),n}},1495:(e,t,n)=>{"use strict";n.d(t,{R:()=>o,l:()=>s});var r=n(6727),i=n(6885);function o(e,t){try{let i=e;var n=[];let o=0,s=0;var r=" > ".length;let u;for(;i&&o++<5&&(u=a(i,t),!("html"===u||o>1&&s+n.length*r+u.length>=80));)n.push(u),s+=u.length,i=i.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function a(e,t){var n=e,r=[];let o,a,s,u,c;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());var l=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(l&&l.length)l.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&(0,i.HD)(o))for(a=o.split(/\s+/),c=0;c<a.length;c++)r.push(`.${a[c]}`);var f=["type","name","title","alt"];for(c=0;c<f.length;c++)s=f[c],u=n.getAttribute(s),u&&r.push(`[${s}="${u}"]`);return r.join("")}function s(){var e=(0,r.R)();try{return e.document.location.href}catch(e){return""}}},822:(e,t,n)=>{"use strict";function r(e,t){return null!=e?e:t()}n.d(t,{h:()=>r})},6727:(e,t,n)=>{"use strict";n.d(t,{R:()=>o,Y:()=>a});var r=n(2615),i={};function o(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(e,t,n){var r=n||o(),i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},9338:(e,t,n)=>{"use strict";n.d(t,{o:()=>p});var r=n(6727),i=n(6885),o=n(6922),a=n(9109),s=n(5514),u=n(3589),c=(0,r.R)(),l={},f={};function d(e){if(!f[e])switch(f[e]=!0,e){case"console":!function(){if(!("console"in c))return;o.RU.forEach((function(e){e in c.console&&(0,a.hl)(c.console,e,(function(t){return function(...n){h("console",{args:n,level:e}),t&&t.apply(c.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in c))return;var e=h.bind(null,"dom"),t=b(e,!0);c.document.addEventListener("click",t,!1),c.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{var n=c[t]&&c[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,a.hl)(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this,a=o.__sentry_instrumentation_handlers__=o.__sentry_instrumentation_handlers__||{},s=a[n]=a[n]||{refCount:0};if(!s.handler){var u=b(e);s.handler=u,t.call(this,n,u,i)}s.refCount+=1}catch(e){}return t.call(this,n,r,i)}})),(0,a.hl)(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var i=this,o=i.__sentry_instrumentation_handlers__||{},a=o[t];a&&(a.refCount-=1,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete i.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in c))return;var e=XMLHttpRequest.prototype;(0,a.hl)(e,"open",(function(e){return function(...t){var n=this,r=t[1],o=n.__sentry_xhr__={method:(0,i.HD)(t[0])?t[0].toUpperCase():t[0],url:t[1]};(0,i.HD)(r)&&"POST"===o.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);var s=function(){if(4===n.readyState){try{o.status_code=n.status}catch(e){}h("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?(0,a.hl)(n,"onreadystatechange",(function(e){return function(...t){return s(),e.apply(n,t)}})):n.addEventListener("readystatechange",s),e.apply(n,t)}})),(0,a.hl)(e,"send",(function(e){return function(...t){return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),h("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!(0,u.t$)())return;(0,a.hl)(c,"fetch",(function(e){return function(...t){var n={args:t,fetchData:{method:m(t),url:v(t)},startTimestamp:Date.now()};return h("fetch",{...n}),e.apply(c,t).then((e=>(h("fetch",{...n,endTimestamp:Date.now(),response:e}),e)),(e=>{throw h("fetch",{...n,endTimestamp:Date.now(),error:e}),e}))}}))}();break;case"history":!function(){if(!(0,u.Bf)())return;var e=c.onpopstate;function t(e){return function(...t){var n=t.length>2?t[2]:void 0;if(n){var r=g,i=String(n);g=i,h("history",{from:r,to:i})}return e.apply(this,t)}}c.onpopstate=function(...t){var n=c.location.href,r=g;if(g=n,h("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},(0,a.hl)(c.history,"pushState",t),(0,a.hl)(c.history,"replaceState",t)}();break;case"error":x=c.onerror,c.onerror=function(e,t,n,r,i){return h("error",{column:r,error:i,line:n,msg:e,url:t}),!!x&&x.apply(this,arguments)};break;case"unhandledrejection":w=c.onunhandledrejection,c.onunhandledrejection=function(e){return h("unhandledrejection",e),!w||w.apply(this,arguments)};break;default:return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("unknown instrumentation type:",e))}}function p(e,t){l[e]=l[e]||[],l[e].push(t),d(e)}function h(e,t){if(e&&l[e])for(var n of l[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,s.$P)(n)}\nError:`,t)}}function m(e=[]){return"Request"in c&&(0,i.V9)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function v(e=[]){return"string"==typeof e[0]?e[0]:"Request"in c&&(0,i.V9)(e[0],Request)?e[0].url:String(e[0])}let g;let y,_;function b(e,t=!1){return n=>{if(n&&_!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===y||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(_,n))&&(e({event:n,name:r,global:t}),_=n),clearTimeout(y),y=c.setTimeout((()=>{y=void 0}),1e3)}}}let x=null;let w=null},6885:(e,t,n)=>{"use strict";n.d(t,{Cy:()=>v,HD:()=>c,J8:()=>m,Kj:()=>h,PO:()=>f,TX:()=>s,V9:()=>y,VW:()=>a,VZ:()=>i,cO:()=>d,fm:()=>u,i2:()=>g,kK:()=>p,pt:()=>l});var r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function o(e,t){return r.call(e)===`[object ${t}]`}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function u(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function l(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function f(e){return o(e,"Object")}function d(e){return"undefined"!=typeof Event&&y(e,Event)}function p(e){return"undefined"!=typeof Element&&y(e,Element)}function h(e){return o(e,"RegExp")}function m(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function v(e){return f(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function g(e){return"number"==typeof e&&e!=e}function y(e,t){try{return e instanceof t}catch(e){return!1}}},6922:(e,t,n)=>{"use strict";n.d(t,{Cf:()=>a,RU:()=>o,kg:()=>u});var r=n(6727),i=(0,r.R)(),o=["debug","info","warn","error","log","assert","trace"];function a(e){var t=(0,r.R)();if(!("console"in t))return e();var n=t.console,i={};o.forEach((e=>{var r=n[e]&&n[e].__sentry_original__;e in t.console&&r&&(i[e]=n[e],n[e]=r)}));try{return e()}finally{Object.keys(i).forEach((e=>{n[e]=i[e]}))}}function s(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?o.forEach((n=>{t[n]=(...t)=>{e&&a((()=>{i.console[n](`Sentry Logger [${n}]:`,...t)}))}})):o.forEach((e=>{t[e]=()=>{}})),t}let u;u="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,r.Y)("logger",s):s()},7451:(e,t,n)=>{"use strict";n.d(t,{DM:()=>o,Db:()=>u,EG:()=>c,YO:()=>l,jH:()=>s});var r=n(6727),i=n(9109);function o(){var e=(0,r.R)(),t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");var n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function s(e){const{message:t,event_id:n}=e;if(t)return t;var r=a(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function u(e,t,n){var r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function c(e,t){var n=a(e);if(n){var r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){var i={...r&&r.data,...t.data};n.mechanism.data=i}}}function l(e){if(e&&e.__sentry_captured__)return!0;try{(0,i.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}},2615:(e,t,n)=>{"use strict";n.d(t,{l$:()=>o,KV:()=>i,$y:()=>a}),e=n.hmd(e);var r=n(7061);function i(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==r?r:0)}function o(e,t){return e.require(t)}function a(t){let n;try{n=o(e,t)}catch(e){}try{const{cwd:r}=o(e,"process");n=o(e,`${r()}/node_modules/${t}`)}catch(e){}return n}},9109:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>u,HK:()=>c,Jr:()=>m,Sh:()=>f,_j:()=>l,hl:()=>a,xp:()=>s,zf:()=>h});var r=n(1495),i=n(6885),o=n(5268);function a(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{u(i,r)}catch(e){}e[t]=i}}function s(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function u(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,s(e,"__sentry_original__",t)}function c(e){return e.__sentry_original__}function l(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function f(e){if((0,i.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...p(e)};if((0,i.cO)(e)){var t={type:e.type,target:d(e.target),currentTarget:d(e.currentTarget),...p(e)};return"undefined"!=typeof CustomEvent&&(0,i.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function d(e){try{return(0,i.kK)(e)?(0,r.R)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function p(e){if("object"==typeof e&&null!==e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function h(e,t=40){var n=Object.keys(f(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,o.$G)(n[0],t);for(let e=n.length;e>0;e--){var r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:(0,o.$G)(r,t)}return""}function m(e){return v(e,new Map)}function v(e,t){if((0,i.PO)(e)){if(void 0!==(o=t.get(e)))return o;var n={};for(var r of(t.set(e,n),Object.keys(e)))void 0!==e[r]&&(n[r]=v(e[r],t));return n}if(Array.isArray(e)){var o;if(void 0!==(o=t.get(e)))return o;n=[];return t.set(e,n),e.forEach((e=>{n.push(v(e,t))})),n}return e}},5514:(e,t,n)=>{"use strict";n.d(t,{$P:()=>a,Sq:()=>i,pE:()=>r});function r(...e){var t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{var r=[];for(var i of e.split("\n").slice(n)){var o=i.replace(/\(error: (.*)\)/,"$1");for(var a of t){var s=a(o);if(s){r.push(s);break}}}return function(e){if(!e.length)return[];let t=e;var n=t[0].function||"",r=t[t.length-1].function||"";-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1));-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1));return t.slice(0,50).map((e=>({...e,filename:e.filename||t[0].filename,function:e.function||"?"}))).reverse()}(r)}}function i(e){return Array.isArray(e)?r(...e):e}var o="<anonymous>";function a(e){try{return e&&"function"==typeof e&&e.name||o}catch(e){return o}}},5268:(e,t,n)=>{"use strict";n.d(t,{$G:()=>i,nK:()=>o,zC:()=>a});var r=n(6885);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.substr(0,t)}...`}function o(e,t){if(!Array.isArray(e))return"";var n=[];for(let t=0;t<e.length;t++){var r=e[t];try{n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function a(e,t){return!!(0,r.HD)(e)&&((0,r.Kj)(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}},3589:(e,t,n)=>{"use strict";n.d(t,{Ak:()=>o,Bf:()=>u,Du:()=>a,t$:()=>s});var r=n(6727),i=n(6922);function o(){if(!("fetch"in(0,r.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function a(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function s(){if(!o())return!1;var e=(0,r.R)();if(a(e.fetch))return!0;let t=!1;var n=e.document;if(n&&"function"==typeof n.createElement)try{var s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s),s.contentWindow&&s.contentWindow.fetch&&(t=a(s.contentWindow.fetch)),n.head.removeChild(s)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t}function u(){var e=(0,r.R)(),t=e.chrome,n=t&&t.app&&t.app.runtime,i="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&i}},8894:(e,t,n)=>{"use strict";n.d(t,{$2:()=>a,WD:()=>o,cW:()=>s});var r,i=n(6885);function o(e){return new s((t=>{t(e)}))}function a(e){return new s(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(r||(r={}));class s{__init(){this._state=r.PENDING}__init2(){this._handlers=[]}constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),s.prototype.__init5.call(this),s.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new s(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init3(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===r.PENDING&&((0,i.J8)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state!==r.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)}))}}}}},4180:(e,t,n)=>{"use strict";n.d(t,{Z1:()=>d,_I:()=>l,ph:()=>c,yW:()=>u});var r=n(6727),i=n(2615);e=n.hmd(e);var o={nowSeconds:()=>Date.now()/1e3};var a=(0,i.KV)()?function(){try{return(0,i.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){const{performance:e}=(0,r.R)();if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},u=o.nowSeconds.bind(o),c=s.nowSeconds.bind(s),l=c;let f;var d=(()=>{const{performance:e}=(0,r.R)();if(e&&e.now){var t=36e5,n=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=o<t,s=e.timing&&e.timing.navigationStart,u="number"==typeof s?Math.abs(s+n-i):t;return a||u<t?o<=u?(f="timeOrigin",e.timeOrigin):(f="navigationStart",s):(f="dateNow",i)}f="none"})()},4206:(e,t,n)=>{e.exports=n(8057)},4387:(e,t,n)=>{"use strict";var r=n(7485),i=n(4570),o=n(2940),a=n(581),s=n(574),u=n(3845),c=n(8338),l=n(4832),f=n(7354),d=n(8870),p=n(4906);e.exports=function(e){return new Promise((function(t,n){var h,m=e.data,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete v["Content-Type"];var _=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+x)}var w=s(e.baseURL,e.url);function E(){if(_){var r="getAllResponseHeaders"in _?u(_.getAllResponseHeaders()):null,o={data:g&&"text"!==g&&"json"!==g?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:r,config:e,request:_};i((function(e){t(e),y()}),(function(e){n(e),y()}),o),_=null}}if(_.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),_.timeout=e.timeout,"onloadend"in _?_.onloadend=E:_.onreadystatechange=function(){_&&4===_.readyState&&(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout(E)},_.onabort=function(){_&&(n(new f("Request aborted",f.ECONNABORTED,e,_)),_=null)},_.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,_,_)),_=null},_.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,_)),_=null},r.isStandardBrowserEnv()){var S=(e.withCredentials||c(w))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;S&&(v[e.xsrfHeaderName]=S)}"setRequestHeader"in _&&r.forEach(v,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:_.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(_.withCredentials=!!e.withCredentials),g&&"json"!==g&&(_.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&_.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&_.upload&&_.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){_&&(n(!e||e&&e.type?new d:e),_.abort(),_=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),m||(m=null);var O=p(w);O&&-1===["http","https","file"].indexOf(O)?n(new f("Unsupported protocol "+O+":",f.ERR_BAD_REQUEST,e)):_.send(m)}))}},8057:(e,t,n)=>{"use strict";var r=n(7485),i=n(875),o=n(5029),a=n(4941);var s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(8396));s.Axios=o,s.CanceledError=n(8870),s.CancelToken=n(4603),s.isCancel=n(1475),s.VERSION=n(3345).version,s.toFormData=n(1020),s.AxiosError=n(7354),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(5739),s.isAxiosError=n(5835),e.exports=s,e.exports.default=s},4603:(e,t,n)=>{"use strict";var r=n(8870);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},8870:(e,t,n)=>{"use strict";var r=n(7354);function i(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(7485).inherits(i,r,{__CANCEL__:!0}),e.exports=i},1475:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5029:(e,t,n)=>{"use strict";var r=n(7485),i=n(581),o=n(8096),a=n(5009),s=n(4941),u=n(574),c=n(6144),l=c.validators;function f(e){this.defaults=e,this.interceptors={request:new o,response:new o}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!i){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(u),o=Promise.resolve(t);f.length;)o=o.then(f.shift(),f.shift());return o}for(var d=t;r.length;){var p=r.shift(),h=r.shift();try{d=p(d)}catch(e){h(e);break}}try{o=a(d)}catch(e){return Promise.reject(e)}for(;u.length;)o=o.then(u.shift(),u.shift());return o},f.prototype.getUri=function(e){e=s(this.defaults,e);var t=u(e.baseURL,e.url);return i(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(s(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},7354:(e,t,n)=>{"use strict";var r=n(7485);function i(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=function(e,t,n,a,s,u){var c=Object.create(o);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),i.call(c,e.message,t,n,a,s),c.name=e.name,u&&Object.assign(c,u),c},e.exports=i},8096:(e,t,n)=>{"use strict";var r=n(7485);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},574:(e,t,n)=>{"use strict";var r=n(2642),i=n(2288);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},5009:(e,t,n)=>{"use strict";var r=n(7485),i=n(9212),o=n(1475),a=n(8396),s=n(8870);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(u(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4941:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function u(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,i=t(e);r.isUndefined(i)&&t!==u||(n[e]=i)})),n}},4570:(e,t,n)=>{"use strict";var r=n(7354);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},9212:(e,t,n)=>{"use strict";var r=n(7485),i=n(8396);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},8396:(e,t,n)=>{"use strict";var r=n(7061),i=n(7485),o=n(1446),a=n(7354),s=n(4832),u=n(1020),c={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var f,d={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(f=n(4387)),f),transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e))return e;if(i.isArrayBufferView(e))return e.buffer;if(i.isURLSearchParams(e))return l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=i.isObject(e),a=t&&t["Content-Type"];if((n=i.isFileList(e))||r&&"multipart/form-data"===a){var s=this.env&&this.env.FormData;return u(n?{"files[]":e}:e,s&&new s)}return r||"application/json"===a?(l(t,"application/json"),function(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a.from(e,a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(8750)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){d.headers[e]=i.merge(c)})),e.exports=d},4832:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},3345:e=>{e.exports={version:"0.27.2"}},875:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},581:(e,t,n)=>{"use strict";var r=n(7485);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},2288:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2940:(e,t,n)=>{"use strict";var r=n(7485);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},2642:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5835:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},8338:(e,t,n)=>{"use strict";var r=n(7485);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},1446:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},8750:e=>{e.exports=null},3845:(e,t,n)=>{"use strict";var r=n(7485),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},4906:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5739:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1020:(e,t,n)=>{"use strict";var r=n(816).Buffer,i=n(7485);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return function e(r,a){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),i.forEach(r,(function(n,r){if(!i.isUndefined(n)){var s,u=a?a+"."+r:r;if(n&&!a&&"object"==typeof n)if(i.endsWith(r,"{}"))n=JSON.stringify(n);else if(i.endsWith(r,"[]")&&(s=i.toArray(n)))return void s.forEach((function(e){!i.isUndefined(e)&&t.append(u,o(e))}));e(n,u)}})),n.pop()}else t.append(a,o(r))}(e),t}},6144:(e,t,n)=>{"use strict";var r=n(3345).version,i=n(7354),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var u=e[a],c=void 0===u||s(u,a,e);if(!0!==c)throw new i("option "+a+" must be "+c,i.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},7485:(e,t,n)=>{"use strict";var r,i=n(875),o=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=o.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var l=s("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),h=s("File"),m=s("Blob"),v=s("FileList");function g(e){return"[object Function]"===o.call(e)}var y=s("URLSearchParams");function _(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var b,x=(b="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return b&&e instanceof b});e.exports={isArray:u,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||o.call(e)===t||g(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:c,isDate:p,isFile:h,isBlob:m,isFunction:g,isStream:function(e){return f(e)&&g(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:_,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):u(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)_(arguments[r],n);return t},extend:function(e,t,n){return _(t,(function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,i,o,a={};t=t||{};do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:x,isFileList:v}},4782:(e,t)=>{"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=u(e),a=o[0],s=o[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,u=r-i;s<u;s+=a)o.push(c(e,s,s+a>u?u:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},816:(e,t,n)=>{"use strict";var r=n(4782),i=n(8898),o=n(5182);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=s(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(r)return Y(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return R(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(c(e,o+d)!==c(t,d)){f=!1;break}if(f)return o}return-1}function _(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function b(e,t,n,r){return H(Y(t,e.length-n),e,n,r)}function x(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return x(e,t,n,r)}function E(e,t,n,r){return H($(t),e,n,r)}function S(e,t,n,r){return H(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function O(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,u,c=e[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=h,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):m.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),f=0;f<s;++f)if(c[f]!==l[f]){o=c[f],a=l[f];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function R(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function k(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=G(e[o]);return i}function D(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function A(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function U(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,r,o){return o||U(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return o||U(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||C(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||C(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):A(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);C(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);C(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):A(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=u.isBuffer(e)?e:Y(new u(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function G(e){return e<16?"0"+e.toString(16):e.toString(16)}function Y(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function $(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}},42:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=i.apply(null,n);a&&e.push(a)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},5839:(e,t,n)=>{"use strict";var r=n(9185),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=u(t),m=u(n),v=0;v<a.length;++v){var g=a[v];if(!(o[g]||r&&r[g]||m&&m[g]||s&&s[g])){var y=d(n,g);try{c(t,g,y)}catch(e){}}}}return t}},8898:(e,t)=>{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,c=u>>1,l=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*m}},5182:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},2525:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,s,u=i(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))n.call(a,l)&&(u[l]=a[l]);if(t){s=t(a);for(var f=0;f<s.length;f++)r.call(a,s[f])&&(u[s[f]]=a[s[f]])}}return u}},7061:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&d())}function d(){if(!c){var e=a(f);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||c||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},8702:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case f:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case v:case m:case u:return e;default:return t}}case i:return t}}}function w(e){return x(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||x(e)===l},t.isConcurrentMode=w,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d||e.$$typeof===y||e.$$typeof===_||e.$$typeof===b||e.$$typeof===g)},t.typeOf=x},9185:(e,t,n)=>{"use strict";e.exports=n(8702)},1426:(e,t,n)=>{"use strict";n(2525);var r=n(7363),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,r)&&!u.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:l,props:o,_owner:a.current}}t.jsx=c,t.jsxs=c},4246:(e,t,n)=>{"use strict";e.exports=n(1426)},6248:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),a=new R(r||[]);return o._invoke=function(e,t,n){var r=f;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return N()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?h:d,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",m={};function v(){}function g(){}function y(){}var _={};u(_,o,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(k([])));x&&x!==n&&r.call(x,o)&&(_=x);var w=y.prototype=v.prototype=Object.create(_);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function O(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function k(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:N}}function N(){return{value:t,done:!0}}return g.prototype=y,u(w,"constructor",y),u(y,"constructor",g),g.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(S.prototype),u(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new S(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),u(w,s,"Generator"),u(w,o,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},7363:e=>{"use strict";e.exports=React}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r](o,o.exports,n),o.loaded=!0,o.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 r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{FunctionToString:()=>de,InboundFilters:()=>ge});var t={};n.r(t),n.d(t,{Breadcrumbs:()=>Nt,Dedupe:()=>Mt,GlobalHandlers:()=>pt,HttpContext:()=>Lt,LinkedErrors:()=>At,TryCatch:()=>bt});var r={};n.r(r),n.d(r,{Breadcrumbs:()=>Nt,BrowserClient:()=>dn,Dedupe:()=>Mt,ErrorBoundary:()=>rr,FunctionToString:()=>de,GlobalHandlers:()=>pt,HttpContext:()=>Lt,Hub:()=>_e.Xb,InboundFilters:()=>ge,Integrations:()=>Fn,LinkedErrors:()=>At,Profiler:()=>Zn,SDK_VERSION:()=>be,Scope:()=>xe.s,TryCatch:()=>bt,addBreadcrumb:()=>Te,addGlobalEventProcessor:()=>xe.c,captureEvent:()=>Se,captureException:()=>we,captureMessage:()=>Ee,chromeStackLineParser:()=>_n,close:()=>Mn,configureScope:()=>Oe,createReduxEnhancer:()=>ar,createTransport:()=>Ve,defaultIntegrations:()=>Pn,defaultStackLineParsers:()=>kn,defaultStackParser:()=>Nn,flush:()=>Ln,forceLoad:()=>Un,geckoStackLineParser:()=>wn,getCurrentHub:()=>_e.Gd,getHubFromCarrier:()=>_e.vi,init:()=>qn,lastEventId:()=>An,makeFetchTransport:()=>pn,makeMain:()=>_e.pj,makeXHRTransport:()=>hn,onLoad:()=>Bn,opera10StackLineParser:()=>Tn,opera11StackLineParser:()=>Rn,reactRouterV3Instrumentation:()=>ur,reactRouterV4Instrumentation:()=>dr,reactRouterV5Instrumentation:()=>pr,reactRouterV6Instrumentation:()=>jr,setContext:()=>je,setExtra:()=>ke,setExtras:()=>Re,setTag:()=>De,setTags:()=>Ne,setUser:()=>Pe,showReportDialog:()=>In,startTransaction:()=>Ie,useProfiler:()=>Qn,winjsStackLineParser:()=>Sn,withErrorBoundary:()=>ir,withProfiler:()=>Kn,withScope:()=>Ce,withSentryReactRouterV6Routing:()=>kr,withSentryRouting:()=>vr,wrap:()=>Gn});const i=wp.element,o=wp.data;var a=n(7363),s=n.n(a);function u(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function c(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var l,f=function(){},d=f(),p=Object,h=function(e){return e===d},m=function(e){return"function"==typeof e},v=function(e,t){return p.assign({},e,t)},g="undefined",y=function(){return typeof window!=g},_=new WeakMap,b=0,x=function(e){var t,n,r=typeof e,i=e&&e.constructor,o=i==Date;if(p(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=_.get(e))return t;if(t=++b+"~",_.set(e,t),i==Array){for(t="@",n=0;n<e.length;n++)t+=x(e[n])+",";_.set(e,t)}if(i==p){t="#";for(var a=p.keys(e).sort();!h(n=a.pop());)h(e[n])||(t+=n+":"+x(e[n])+",");_.set(e,t)}}return t},w=!0,E=y(),S=typeof document!=g,O=E&&window.addEventListener?window.addEventListener.bind(window):f,T=S?document.addEventListener.bind(document):f,j=E&&window.removeEventListener?window.removeEventListener.bind(window):f,R=S?document.removeEventListener.bind(document):f,k={isOnline:function(){return w},isVisible:function(){var e=S&&document.visibilityState;return h(e)||"hidden"!==e}},N={initFocus:function(e){return T("visibilitychange",e),O("focus",e),function(){R("visibilitychange",e),j("focus",e)}},initReconnect:function(e){var t=function(){w=!0,e()},n=function(){w=!1};return O("online",t),O("offline",n),function(){j("online",t),j("offline",n)}}},D=!y()||"Deno"in window,P=function(e){return y()&&typeof window.requestAnimationFrame!=g?window.requestAnimationFrame(e):setTimeout(e,1)},C=D?a.useEffect:a.useLayoutEffect,I="undefined"!=typeof navigator&&navigator.connection,A=!D&&I&&(["slow-2g","2g"].includes(I.effectiveType)||I.saveData),U=function(e){if(m(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?x(e):"",t,e?"$swr$"+e:""]},B=new WeakMap,L=function(e,t,n,r,i,o,a){void 0===a&&(a=!0);var s=B.get(e),u=s[0],c=s[1],l=s[3],f=u[t],d=c[t];if(a&&d)for(var p=0;p<d.length;++p)d[p](n,r,i);return o&&(delete l[t],f&&f[0])?f[0](2).then((function(){return e.get(t)})):e.get(t)},M=0,G=function(){return++M},Y=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u(void 0,void 0,void 0,(function(){var t,n,r,i,o,a,s,u,l,f,p,g,y,_,b,x,w,E,S,O,T;return c(this,(function(c){switch(c.label){case 0:if(t=e[0],n=e[1],r=e[2],i=e[3],a=!!h((o="boolean"==typeof i?{revalidate:i}:i||{}).populateCache)||o.populateCache,s=!1!==o.revalidate,u=!1!==o.rollbackOnError,l=o.optimisticData,f=U(n),p=f[0],g=f[2],!p)return[2];if(y=B.get(t),_=y[2],e.length<3)return[2,L(t,p,t.get(p),d,d,s,!0)];if(b=r,w=G(),_[p]=[w,0],E=!h(l),S=t.get(p),E&&(O=m(l)?l(S):l,t.set(p,O),L(t,p,O)),m(b))try{b=b(t.get(p))}catch(e){x=e}return b&&m(b.then)?[4,b.catch((function(e){x=e}))]:[3,2];case 1:if(b=c.sent(),w!==_[p][0]){if(x)throw x;return[2,b]}x&&E&&u&&(a=!0,b=S,t.set(p,S)),c.label=2;case 2:return a&&(x||(m(a)&&(b=a(b,S)),t.set(p,b)),t.set(g,v(t.get(g),{error:x}))),_[p][1]=G(),[4,L(t,p,b,x,d,s,!!a)];case 3:if(T=c.sent(),x)throw x;return[2,a?T:b]}}))}))},$=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},H=function(e,t){if(!B.has(e)){var n=v(N,t),r={},i=Y.bind(d,e),o=f;if(B.set(e,[r,{},{},{},i]),!D){var a=n.initFocus(setTimeout.bind(d,$.bind(d,r,0))),s=n.initReconnect(setTimeout.bind(d,$.bind(d,r,1)));o=function(){a&&a(),s&&s(),B.delete(e)}}return[e,i,o]}return[e,B.get(e)[4]]},F=H(new Map),q=F[0],z=F[1],V=v({onLoadingSlow:f,onSuccess:f,onError:f,onErrorRetry:function(e,t,n,r,i){var o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!h(o)&&a>o||setTimeout(r,s,i)},onDiscarded:f,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:A?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:A?5e3:3e3,compare:function(e,t){return x(e)==x(t)},isPaused:function(){return!1},cache:q,mutate:z,fallback:{}},k),W=function(e,t){var n=v(e,t);if(t){var r=e.use,i=e.fallback,o=t.use,a=t.fallback;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=v(i,a))}return n},X=(0,a.createContext)({}),J=function(e){return m(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Z=function(){return v(V,(0,a.useContext)(X))},K=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},Q={dedupe:!0},ee=p.defineProperty((function(e){var t=e.value,n=W((0,a.useContext)(X),t),r=t&&t.provider,i=(0,a.useState)((function(){return r?H(r(n.cache||q),t):d}))[0];return i&&(n.cache=i[0],n.mutate=i[1]),C((function(){return i?i[2]:d}),[]),(0,a.createElement)(X.Provider,v(e,{value:n}))}),"default",{value:V}),te=(l=function(e,t,n){var r=n.cache,i=n.compare,o=n.fallbackData,s=n.suspense,l=n.revalidateOnMount,f=n.refreshInterval,p=n.refreshWhenHidden,g=n.refreshWhenOffline,y=B.get(r),_=y[0],b=y[1],x=y[2],w=y[3],E=U(e),S=E[0],O=E[1],T=E[2],j=(0,a.useRef)(!1),R=(0,a.useRef)(!1),k=(0,a.useRef)(S),N=(0,a.useRef)(t),I=(0,a.useRef)(n),A=function(){return I.current},M=function(){return A().isVisible()&&A().isOnline()},$=function(e){return r.set(T,v(r.get(T),e))},H=r.get(S),F=h(o)?n.fallback[S]:o,q=h(H)?F:H,z=r.get(T)||{},V=z.error,W=!j.current,X=function(){return W&&!h(l)?l:!A().isPaused()&&(s?!h(q)&&n.revalidateIfStale:h(q)||n.revalidateIfStale)},J=!(!S||!t)&&(!!z.isValidating||W&&X()),Z=function(e,t){var n=(0,a.useState)({})[1],r=(0,a.useRef)(e),i=(0,a.useRef)({data:!1,error:!1,isValidating:!1}),o=(0,a.useCallback)((function(e){var o=!1,a=r.current;for(var s in e){var u=s;a[u]!==e[u]&&(a[u]=e[u],i.current[u]&&(o=!0))}o&&!t.current&&n({})}),[]);return C((function(){r.current=e})),[r,i.current,o]}({data:q,error:V,isValidating:J},R),ee=Z[0],te=Z[1],ne=Z[2],re=(0,a.useCallback)((function(e){return u(void 0,void 0,void 0,(function(){var t,o,a,s,u,l,f,p,v,g,y,_,b;return c(this,(function(c){switch(c.label){case 0:if(t=N.current,!S||!t||R.current||A().isPaused())return[2,!1];s=!0,u=e||{},l=!w[S]||!u.dedupe,f=function(){return!R.current&&S===k.current&&j.current},p=function(){var e=w[S];e&&e[1]===a&&delete w[S]},v={isValidating:!1},g=function(){$({isValidating:!1}),f()&&ne(v)},$({isValidating:!0}),ne({isValidating:!0}),c.label=1;case 1:return c.trys.push([1,3,,4]),l&&(L(r,S,ee.current.data,ee.current.error,!0),n.loadingTimeout&&!r.get(S)&&setTimeout((function(){s&&f()&&A().onLoadingSlow(S,n)}),n.loadingTimeout),w[S]=[t.apply(void 0,O),G()]),b=w[S],o=b[0],a=b[1],[4,o];case 2:return o=c.sent(),l&&setTimeout(p,n.dedupingInterval),w[S]&&w[S][1]===a?($({error:d}),v.error=d,y=x[S],!h(y)&&(a<=y[0]||a<=y[1]||0===y[1])?(g(),l&&f()&&A().onDiscarded(S),[2,!1]):(i(ee.current.data,o)?v.data=ee.current.data:v.data=o,i(r.get(S),o)||r.set(S,o),l&&f()&&A().onSuccess(o,S,n),[3,4])):(l&&f()&&A().onDiscarded(S),[2,!1]);case 3:return _=c.sent(),p(),A().isPaused()||($({error:_}),v.error=_,l&&f()&&(A().onError(_,S,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||m(n.shouldRetryOnError)&&n.shouldRetryOnError(_))&&M()&&A().onErrorRetry(_,S,n,re,{retryCount:(u.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return s=!1,g(),f()&&l&&L(r,S,v.data,v.error,!1),[2,!0]}}))}))}),[S]),ie=(0,a.useCallback)(Y.bind(d,r,(function(){return k.current})),[]);if(C((function(){N.current=t,I.current=n})),C((function(){if(S){var e=S!==k.current,t=re.bind(d,Q),n=0,r=K(S,b,(function(e,t,n){ne(v({error:t,isValidating:n},i(ee.current.data,e)?d:{data:e}))})),o=K(S,_,(function(e){if(0==e){var r=Date.now();A().revalidateOnFocus&&r>n&&M()&&(n=r+A().focusThrottleInterval,t())}else if(1==e)A().revalidateOnReconnect&&M()&&t();else if(2==e)return re()}));return R.current=!1,k.current=S,j.current=!0,e&&ne({data:q,error:V,isValidating:J}),X()&&(h(q)||D?t():P(t)),function(){R.current=!0,r(),o()}}}),[S,re]),C((function(){var e;function t(){var t=m(f)?f(q):f;t&&-1!==e&&(e=setTimeout(n,t))}function n(){ee.current.error||!p&&!A().isVisible()||!g&&!A().isOnline()?t():re(Q).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[f,p,g,re]),(0,a.useDebugValue)(q),s&&h(q)&&S)throw N.current=t,I.current=n,R.current=!1,h(V)?re(Q):V;return{mutate:ie,get data(){return te.data=!0,q},get error(){return te.error=!0,V},get isValidating(){return te.isValidating=!0,J}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Z(),r=J(e),i=r[0],o=r[1],a=r[2],s=W(n,a),u=l,c=s.use;if(c)for(var f=c.length;f-- >0;)u=c[f](u);return u(i,o||s.fetcher,s)});const ne=wp.components,re=wp.i18n;var ie=n(4246),oe=function(){return(0,ie.jsx)("div",{className:"extendify-onboarding w-full fixed bottom-4 px-4 flex justify-end z-max",children:(0,ie.jsx)("div",{className:"shadow-2xl",children:(0,ie.jsx)(ne.Snackbar,{children:(0,re.__)("Just a moment, this is taking longer than expected.","extendify")})})})},ae=n(7135),se=n.n(ae),ue=n(4206),ce=n.n(ue),le=n(9109);let fe;class de{constructor(){de.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=de.id}setupOnce(){fe=Function.prototype.toString,Function.prototype.toString=function(...e){var t=(0,le.HK)(this)||this;return fe.apply(t,e)}}}de.__initStatic();var pe=n(6922),he=n(7451),me=n(5268),ve=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class ge{static __initStatic(){this.id="InboundFilters"}__init(){this.name=ge.id}constructor(e={}){this._options=e,ge.prototype.__init.call(this)}setupOnce(e,t){var n=e=>{var n=t();if(n){var r=n.getIntegration(ge);if(r){var i=n.getClient(),o=i?i.getOptions():{},a=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...ve],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(r._options,o);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,he.jH)(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;return function(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error(`Cannot extract message for event ${(0,he.jH)(e)}`),[]}return[]}(e).some((e=>t.some((t=>(0,me.zC)(e,t)))))}(e,t.ignoreErrors))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,he.jH)(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;var n=ye(e);return!!n&&t.some((e=>(0,me.zC)(n,e)))}(e,t.denyUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,he.jH)(e)}.\nUrl: ${ye(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;var n=ye(e);return!n||t.some((e=>(0,me.zC)(n,e)))}(e,t.allowUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,he.jH)(e)}.\nUrl: ${ye(e)}`),!0;return!1}(e,a)?null:e}}return e};n.id=this.name,e(n)}}function ye(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let n=e.length-1;n>=0;n--){var t=e[n];if(t&&"<anonymous>"!==t.filename&&"[native code]"!==t.filename)return t.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error(`Cannot extract url for event ${(0,he.jH)(e)}`),null}}ge.__initStatic();var _e=n(355),be="7.9.0",xe=n(36);function we(e,t){return(0,_e.Gd)().captureException(e,{captureContext:t})}function Ee(e,t){var n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return(0,_e.Gd)().captureMessage(e,n,r)}function Se(e,t){return(0,_e.Gd)().captureEvent(e,t)}function Oe(e){(0,_e.Gd)().configureScope(e)}function Te(e){(0,_e.Gd)().addBreadcrumb(e)}function je(e,t){(0,_e.Gd)().setContext(e,t)}function Re(e){(0,_e.Gd)().setExtras(e)}function ke(e,t){(0,_e.Gd)().setExtra(e,t)}function Ne(e){(0,_e.Gd)().setTags(e)}function De(e,t){(0,_e.Gd)().setTag(e,t)}function Pe(e){(0,_e.Gd)().setUser(e)}function Ce(e){(0,_e.Gd)().withScope(e)}function Ie(e,t){return(0,_e.Gd)().startTransaction({metadata:{source:"custom"},...e},t)}class Ae extends Error{constructor(e){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype)}}var Ue=n(8894);function Be(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return(0,Ue.$2)(new Ae("Not adding Promise due to buffer limit reached."));var i=r();return-1===t.indexOf(i)&&t.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new Ue.cW(((n,r)=>{let i=t.length;if(!i)return n(!0);var o=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{(0,Ue.WD)(e).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}function Le(e,t=[]){return[e,t]}function Me(e,t){const[n,r]=e;return[n,[...r,t]]}function Ge(e,t){e[1].forEach((e=>{var n=e[0].type;t(e,n)}))}function Ye(e,t){return(t||new TextEncoder).encode(e)}function $e(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[Ye(i,t),e]:i.push("string"==typeof e?Ye(e,t):e)}for(var a of r){const[e,t]=a;o(`\n${JSON.stringify(e)}\n`),o("string"==typeof t||t instanceof Uint8Array?t:JSON.stringify(t))}return"string"==typeof i?i:function(e){var t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(var i of e)n.set(i,r),r+=i.length;return n}(i)}function He(e,t){var n="string"==typeof e.data?Ye(e.data,t):e.data;return[(0,le.Jr)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var Fe={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function qe(e){return Fe[e]}function ze(e,{statusCode:t,headers:n},r=Date.now()){var i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(var s of o.trim().split(",")){const[e,t]=s.split(":",2);var u=parseInt(e,10),c=1e3*(isNaN(u)?60:u);if(t)for(var l of t.split(";"))i[l]=r+c;else i.all=r+c}else a?i.all=r+function(e,t=Date.now()){var n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}function Ve(e,t,n=Be(e.bufferSize||30)){let r={};return{send:function(i){var o=[];if(Ge(i,((t,n)=>{var i=qe(n);!function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)?o.push(t):e.recordDroppedEvent("ratelimit_backoff",i)})),0===o.length)return(0,Ue.WD)();var a=Le(i[0],o),s=t=>{Ge(a,((n,r)=>{e.recordDroppedEvent(t,qe(r))}))};return n.add((()=>t({body:$e(a,e.textEncoder)}).then((e=>{void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=ze(r,e)}),(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error("Failed while sending event:",e),s("network_error")})))).then((e=>e),(e=>{if(e instanceof Ae)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error("Skipped sending event due to full buffer"),s("queue_overflow"),(0,Ue.WD)();throw e}))},flush:e=>n.drain(e)}}var We=n(6727),Xe=n(9338),Je=n(6885),Ze=n(1495);var Ke=n(5514);function Qe(e,t=1/0,n=1/0){try{return tt("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function et(e,t=3,n=102400){var r,i=Qe(e,t);return r=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?et(e,t-1,n):i}function tt(e,t,r=1/0,i=1/0,o=function(){var e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[a,s]=o;if(null===t||["number","boolean","string"].includes(typeof t)&&!(0,Je.i2)(t))return t;var u=function(e,t){try{return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":void 0!==n.g&&t===n.g?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":(0,Je.Cy)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${(0,Ke.$P)(t)}]`:"symbol"==typeof t?`[${String(t)}]`:"bigint"==typeof t?`[BigInt: ${String(t)}]`:`[object ${Object.getPrototypeOf(t).constructor.name}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!u.startsWith("[object "))return u;if(t.__sentry_skip_normalization__)return t;if(0===r)return u.replace("object ","");if(a(t))return"[Circular ~]";var c=t;if(c&&"function"==typeof c.toJSON)try{return tt("",c.toJSON(),r-1,i,o)}catch(e){}var l=Array.isArray(t)?[]:{};let f=0;var d=(0,le.Sh)(t);for(var p in d)if(Object.prototype.hasOwnProperty.call(d,p)){if(f>=i){l[p]="[MaxProperties ~]";break}var h=d[p];l[p]=tt(p,h,r-1,i,o),f+=1}return s(t),l}function nt(e,t){var n=it(e,t),r={type:t&&t.name,value:at(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function rt(e,t){return{exception:{values:[nt(e,t)]}}}function it(e,t){var n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(ot.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}var ot=/Minified React error #\d+;/i;function at(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function st(e,t,n,r,i){let o;if((0,Je.VW)(t)&&t.error)return rt(e,t.error);if((0,Je.TX)(t)||(0,Je.fm)(t)){var a=t;if("stack"in t)o=rt(e,t);else{var s=a.name||((0,Je.TX)(a)?"DOMError":"DOMException"),u=a.message?`${s}: ${a.message}`:s;o=ut(e,u,n,r),(0,he.Db)(o,u)}return"code"in a&&(o.tags={...o.tags,"DOMException.code":`${a.code}`}),o}return(0,Je.VZ)(t)?rt(e,t):(0,Je.PO)(t)||(0,Je.cO)(t)?(o=function(e,t,n,r){var i={exception:{values:[{type:(0,Je.cO)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${(0,le.zf)(t)}`}]},extra:{__serialized__:et(t)}};if(n){var o=it(e,n);o.length&&(i.exception.values[0].stacktrace={frames:o})}return i}(e,t,n,i),(0,he.EG)(o,{synthetic:!0}),o):(o=ut(e,t,n,r),(0,he.Db)(o,`${t}`,void 0),(0,he.EG)(o,{synthetic:!0}),o)}function ut(e,t,n,r){var i={message:t};if(r&&n){var o=it(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}return i}let ct=0;function lt(){return ct>0}function ft(){ct+=1,setTimeout((()=>{ct-=1}))}function dt(e,t={},n){if("function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if((0,le.HK)(e))return e}catch(t){return e}var i=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map((e=>dt(e,t)));return e.apply(this,i)}catch(e){throw ft(),Ce((n=>{n.addEventProcessor((e=>(t.mechanism&&((0,he.Db)(e,void 0,void 0),(0,he.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),we(e)})),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch(e){}(0,le.$Q)(i,e),(0,le.xp)(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}class pt{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=pt.id}__init2(){this._installFunc={onerror:ht,onunhandledrejection:mt}}constructor(e){pt.prototype.__init.call(this),pt.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;var e,t=this._options;for(var n in t){var r=this._installFunc[n];r&&t[n]&&(e=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(`Global Handler attached: ${e}`),r(),this._installFunc[n]=void 0)}}}function ht(){(0,Xe.o)("error",(e=>{const[t,n,r]=yt();if(!t.getIntegration(pt))return;const{msg:i,url:o,line:a,column:s,error:u}=e;if(!(lt()||u&&u.__sentry_own_request__)){var c=void 0===u&&(0,Je.HD)(i)?function(e,t,n,r){var i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=(0,Je.VW)(e)?e.message:e,a="Error";var s=o.match(i);s&&(a=s[1],o=s[2]);return vt({exception:{values:[{type:a,value:o}]}},t,n,r)}(i,o,a,s):vt(st(n,u||i,void 0,r,!1),o,a,s);c.level="error",gt(t,u,c,"onerror")}}))}function mt(){(0,Xe.o)("unhandledrejection",(e=>{const[t,n,r]=yt();if(!t.getIntegration(pt))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(e){}if(lt()||i&&i.__sentry_own_request__)return!0;var o=(0,Je.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:st(n,i,void 0,r,!0);o.level="error",gt(t,i,o,"onunhandledrejection")}))}function vt(e,t,n,r){var i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,f=(0,Je.HD)(t)&&t.length>0?t:(0,Ze.l)();return 0===u.length&&u.push({colno:c,filename:f,function:"?",in_app:!0,lineno:l}),e}function gt(e,t,n,r){(0,he.EG)(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function yt(){var e=(0,_e.Gd)(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}pt.__initStatic();var _t=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class bt{static __initStatic(){this.id="TryCatch"}__init(){this.name=bt.id}constructor(e){bt.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){var e=(0,We.R)();this._options.setTimeout&&(0,le.hl)(e,"setTimeout",xt),this._options.setInterval&&(0,le.hl)(e,"setInterval",xt),this._options.requestAnimationFrame&&(0,le.hl)(e,"requestAnimationFrame",wt),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&(0,le.hl)(XMLHttpRequest.prototype,"send",Et);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:_t).forEach(St)}}function xt(e){return function(...t){var n=t[0];return t[0]=dt(n,{mechanism:{data:{function:(0,Ke.$P)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function wt(e){return function(t){return e.apply(this,[dt(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,Ke.$P)(e)},handled:!0,type:"instrument"}})])}}function Et(e){return function(...t){var n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&(0,le.hl)(n,e,(function(t){var n={mechanism:{data:{function:e,handler:(0,Ke.$P)(t)},handled:!0,type:"instrument"}},r=(0,le.HK)(t);return r&&(n.mechanism.data.handler=(0,Ke.$P)(r)),dt(t,n)}))})),e.apply(this,t)}}function St(e){var t=(0,We.R)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,le.hl)(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=dt(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,Ke.$P)(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,dt(r,{mechanism:{data:{function:"addEventListener",handler:(0,Ke.$P)(r),target:e},handled:!0,type:"instrument"}}),i])}})),(0,le.hl)(n,"removeEventListener",(function(e){return function(t,n,r){var i=n;try{var o=i&&i.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(e){}return e.call(this,t,i,r)}})))}bt.__initStatic();var Ot=["fatal","error","warning","log","info","debug"];function Tt(e){return"warn"===e?"warning":Ot.includes(e)?e:"log"}function jt(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function Rt(e){return e.split(/\\?\//).filter((e=>e.length>0&&","!==e)).length}var kt="Breadcrumbs";class Nt{static __initStatic(){this.id=kt}__init(){this.name=Nt.id}constructor(e){Nt.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){this.options.console&&(0,Xe.o)("console",Dt),this.options.dom&&(0,Xe.o)("dom",function(e){function t(t){let n,r="object"==typeof e?e.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=t.event.target?(0,Ze.R)(t.event.target,r):(0,Ze.R)(t.event,r)}catch(e){n="<unknown>"}0!==n.length&&(0,_e.Gd)().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})}return t}(this.options.dom)),this.options.xhr&&(0,Xe.o)("xhr",Pt),this.options.fetch&&(0,Xe.o)("fetch",Ct),this.options.history&&(0,Xe.o)("history",It)}}function Dt(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:Tt(e.level),message:(0,me.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message=`Assertion failed: ${(0,me.nK)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1)}(0,_e.Gd)().addBreadcrumb(t,{input:e.args,level:e.level})}function Pt(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;const{method:t,url:n,status_code:r,body:i}=e.xhr.__sentry_xhr__||{};(0,_e.Gd)().addBreadcrumb({category:"xhr",data:{method:t,url:n,status_code:r},type:"http"},{xhr:e.xhr,input:i})}else;}function Ct(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?(0,_e.Gd)().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):(0,_e.Gd)().addBreadcrumb({category:"fetch",data:{...e.fetchData,status_code:e.response.status},type:"http"},{input:e.args,response:e.response})))}function It(e){var t=(0,We.R)();let n=e.from,r=e.to;var i=jt(t.location.href);let o=jt(n);var a=jt(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),(0,_e.Gd)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}Nt.__initStatic();class At{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=At.id}constructor(e={}){At.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){var e=(0,_e.Gd)().getClient();e&&(0,xe.c)(((t,n)=>{var r=(0,_e.Gd)().getIntegration(At);return r?function(e,t,n,r,i){if(!(r.exception&&r.exception.values&&i&&(0,Je.V9)(i.originalException,Error)))return r;var o=Ut(e,n,i.originalException,t);return r.exception.values=[...o,...r.exception.values],r}(e.getOptions().stackParser,r._key,r._limit,t,n):t}))}}function Ut(e,t,n,r,i=[]){if(!(0,Je.V9)(n[r],Error)||i.length+1>=t)return i;var o=nt(e,n[r]);return Ut(e,t,n[r],r,[o,...i])}At.__initStatic();var Bt=(0,We.R)();class Lt{constructor(){Lt.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Lt.id}setupOnce(){(0,xe.c)((e=>{if((0,_e.Gd)().getIntegration(Lt)){if(!Bt.navigator&&!Bt.location&&!Bt.document)return e;var t=e.request&&e.request.url||Bt.location&&Bt.location.href;const{referrer:r}=Bt.document||{},{userAgent:i}=Bt.navigator||{};var n={...t&&{url:t},headers:{...e.request&&e.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}}};return{...e,request:n}}return e}))}}Lt.__initStatic();class Mt{constructor(){Mt.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Mt.id}setupOnce(e,t){var n=e=>{var n=t().getIntegration(Mt);if(n){try{if(function(e,t){if(!t)return!1;if(function(e,t){var n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!Yt(e,t))return!1;if(!Gt(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){var n=$t(t),r=$t(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!Yt(e,t))return!1;if(!Gt(e,t))return!1;return!0}(e,t))return!0;return!1}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function Gt(e,t){let n=Ht(e),r=Ht(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){var i=r[e],o=n[e];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function Yt(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function $t(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Ht(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}Mt.__initStatic();var Ft=n(3313),qt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function zt(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function Vt(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Wt(e){var t="string"==typeof e?function(e){var t=qt.exec(e);if(!t)throw new Ae(`Invalid Sentry Dsn: ${e}`);const[n,r,i="",o,a="",s]=t.slice(1);let u="",c=s;var l=c.split("/");if(l.length>1&&(u=l.slice(0,-1).join("/"),c=l.pop()),c){var f=c.match(/^\d+/);f&&(c=f[0])}return Vt({host:o,pass:i,path:u,projectId:c,port:a,protocol:n,publicKey:r})}(e):Vt(e);return function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach((t=>{if(!e[t])throw new Ae(`Invalid Sentry Dsn: ${t} missing`)})),!n.match(/^\d+$/))throw new Ae(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(e){return"http"===e||"https"===e}(r))throw new Ae(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new Ae(`Invalid Sentry Dsn: Invalid port ${t}`)}(t),t}var Xt=n(4180);function Jt(e){var t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Zt(e,t={}){var n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${Jt(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return(0,le._j)({sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,r)}`}var Kt=n(2456);function Qt(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function en(e,t,n,r){var i=Qt(n),o=e.type||"event";const{transactionSampling:a}=e.sdkProcessingMetadata||{},{method:s,rate:u}=a||{};!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);var c=function(e,t,n,r){var i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baggage,o=i&&(0,Kt.Hk)(i);return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:zt(r)},..."transaction"===e.type&&o&&{trace:(0,le.Jr)({...o})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,Le(c,[[{type:o,sample_rates:[{id:s,rate:u}]},e]])}var tn=[];function nn(e){return e.reduce(((e,t)=>(e.every((e=>t.name!==e.name))&&e.push(t),e)),[])}function rn(e){var t=e.defaultIntegrations&&[...e.defaultIntegrations]||[],n=e.integrations;let r=[...nn(t)];Array.isArray(n)?r=[...r.filter((e=>n.every((t=>t.name!==e.name)))),...nn(n)]:"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var i=r.map((e=>e.name)),o="Debug";return-1!==i.indexOf(o)&&r.push(...r.splice(i.indexOf(o),1)),r}var on="Not capturing exception because it's already been captured.";class an{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(an.prototype.__init.call(this),an.prototype.__init2.call(this),an.prototype.__init3.call(this),an.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=Wt(e.dsn);var t=Zt(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("No DSN provided, client will not do anything.")}captureException(e,t,n){if((0,he.YO)(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(on));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let i=n&&n.event_id;var o=(0,Je.pt)(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(o.then((e=>this._captureEvent(e,n,r))).then((e=>{i=e}))),i}captureEvent(e,t,n){if(t&&t.originalException&&(0,he.YO)(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(on));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,Ft.CT)(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getTransport(){return this._transport}flush(e){var t=this._transport;return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):(0,Ue.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}setupIntegrations(){var e,t;this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=(e=this._options.integrations,t={},e.forEach((e=>{t[e.name]=e,-1===tn.indexOf(e.name)&&(e.setupOnce(xe.c,_e.Gd),tn.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(`Integration installed: ${e.name}`))})),t),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}sendEvent(e,t={}){if(this._dsn){let r=en(e,this._dsn,this._options._metadata,this._options.tunnel);for(var n of t.attachments||[])r=Me(r,He(n,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(r)}}sendSession(e){if(this._dsn){var t=function(e,t,n,r){var i=Qt(n);return Le({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:zt(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t){if(this._options.sendClientReports){var n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(e,t){let n=!1,r=!1;var i=t.exception&&t.exception.values;if(i)for(var o of(r=!0,i)){var a=o.mechanism;if(a&&!1===a.handled){n=!0;break}}var s="ok"===e.status;(s&&0===e.errors||s&&n)&&((0,Ft.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Ue.cW((t=>{let n=0;var r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const{normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=this.getOptions();var o={...e,event_id:e.event_id||t.event_id||(0,he.DM)(),timestamp:e.timestamp||(0,Xt.yW)()};this._applyClientOptions(o),this._applyIntegrationsMetadata(o);let a=n;t.captureContext&&(a=xe.s.clone(a).update(t.captureContext));let s=(0,Ue.WD)(o);if(a){var u=[...t.attachments||[],...a.getAttachments()];u.length&&(t.attachments=u),s=a.applyToEvent(o,t)}return s.then((e=>"number"==typeof r&&r>0?this._normalizeEvent(e,r,i):e))}_normalizeEvent(e,t,n){if(!e)return null;var r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:Qe(e.data,t,n)}})))},...e.user&&{user:Qe(e.user,t,n)},...e.contexts&&{contexts:Qe(e.contexts,t,n)},...e.extra&&{extra:Qe(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Qe(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>(e.data&&(e.data=Qe(e.data,t,n)),e)))),r}_applyClientOptions(e){var t=this.getOptions();const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,me.$G)(e.message,o));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=(0,me.$G)(a.value,o));var s=e.request;s&&s.url&&(s.url=(0,me.$G)(s.url,o))}_applyIntegrationsMetadata(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn(e)}))}_processEvent(e,t,n){const{beforeSend:r,sampleRate:i}=this.getOptions();if(!this._isEnabled())return(0,Ue.$2)(new Ae("SDK not enabled, will not capture event."));var o="transaction"===e.type;return!o&&"number"==typeof i&&Math.random()>i?(this.recordDroppedEvent("sample_rate","error"),(0,Ue.$2)(new Ae(`Discarding event because it's not included in the random sample (sampling rate = ${i})`))):this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",e.type||"error"),new Ae("An event processor returned null, will not send event.");return t.data&&!0===t.data.__sentry__||o||!r?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if((0,Je.J8)(e))return e.then((e=>{if(!(0,Je.PO)(e)&&null!==e)throw new Ae(t);return e}),(e=>{throw new Ae(`beforeSend rejected with ${e}`)}));if(!(0,Je.PO)(e)&&null!==e)throw new Ae(t);return e}(r(n,t))})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",e.type||"error"),new Ae("`beforeSend` returned `null`, will not send event.");var i=n&&n.getSession();return!o&&i&&this._updateSessionFromEvent(i,r),this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof Ae)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Ae(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing+=1,e.then((e=>(this._numProcessing-=1,e)),(e=>(this._numProcessing-=1,e)))}_sendEnvelope(e){this._transport&&this._dsn?this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error("Error while sending event:",e)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error("Transport disabled")}_clearOutcomes(){var e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}var sn=n(3589),un=(0,We.R)();let cn;function ln(){if(cn)return cn;if((0,sn.Du)(un.fetch))return cn=un.fetch.bind(un);var e=un.document;let t=un.fetch;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return cn=t.bind(un)}var fn=(0,We.R)();class dn extends an{constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:be}],version:be},super(e),e.sendClientReports&&fn.document&&fn.document.addEventListener("visibilitychange",(()=>{"hidden"===fn.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){var i=st(e,t,n&&n.syntheticException||void 0,r);return(0,he.EG)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,Ue.WD)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){var o=ut(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),(0,Ue.WD)(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){var n=this.getIntegrationById(kt);n&&n.options&&n.options.sentry&&(0,_e.Gd)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,he.jH)(e)},{event:e}),super.sendEvent(e,t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){var e=this._clearOutcomes();if(0!==e.length)if(this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("Sending outcomes:",e);var t,n,r,i=Zt(this._dsn,this._options),o=(t=e,Le((n=this._options.tunnel&&zt(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:r||(0,Xt.yW)(),discarded_events:t}]]));try{!function(e,t){"[object Navigator]"===Object.prototype.toString.call(un&&un.navigator)&&"function"==typeof un.navigator.sendBeacon?un.navigator.sendBeacon.bind(un.navigator)(e,t):(0,sn.Ak)()&&ln()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error(e)}))}(i,$e(o))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error(e)}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("No dsn provided, will not send outcomes");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("No outcomes to send")}}function pn(e,t=ln()){return Ve(e,(function(n){var r={body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,...e.fetchOptions};return t(e.url,r).then((e=>({statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}))}function hn(e){return Ve(e,(function(t){return new Ue.cW(((n,r)=>{var i=new XMLHttpRequest;for(var o in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(t.body)}))}))}var mn="?";function vn(e,t,n,r){var i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var gn=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,yn=/\((\S*)(?::(\d+))(?::(\d+))\)/,_n=[30,e=>{var t=gn.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=yn.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}const[e,r]=Dn(t[1]||mn,t[2]);return vn(r,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],bn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,xn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,wn=[50,e=>{var t=bn.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=xn.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}let e=t[3],r=t[1]||mn;return[r,e]=Dn(r,e),vn(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],En=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Sn=[40,e=>{var t=En.exec(e);return t?vn(t[2],t[1]||mn,+t[3],t[4]?+t[4]:void 0):void 0}],On=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Tn=[10,e=>{var t=On.exec(e);return t?vn(t[2],t[3]||mn,+t[1]):void 0}],jn=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Rn=[20,e=>{var t=jn.exec(e);return t?vn(t[5],t[3]||t[4]||mn,+t[1],+t[2]):void 0}],kn=[_n,wn,Sn],Nn=(0,Ke.pE)(...kn),Dn=(e,t)=>{var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:mn,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var Pn=[new ge,new de,new bt,new Nt,new pt,new At,new Mt,new Lt];function Cn(e={}){if(void 0===e.defaultIntegrations&&(e.defaultIntegrations=Pn),void 0===e.release){var t=(0,We.R)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);var n={...e,stackParser:(0,Ke.Sq)(e.stackParser||Nn),integrations:rn(e),transport:e.transport||((0,sn.Ak)()?pn:hn)};!function(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?pe.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=(0,_e.Gd)(),r=n.getScope();r&&r.update(t.initialScope);var i=new e(t);n.bindClient(i)}(dn,n),e.autoSessionTracking&&function(){if(void 0===(0,We.R)().document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));var e=(0,_e.Gd)();if(!e.captureSession)return;Yn(e),(0,Xe.o)("history",(({from:e,to:t})=>{void 0!==e&&e!==t&&Yn((0,_e.Gd)())}))}()}function In(e={},t=(0,_e.Gd)()){var n=(0,We.R)();if(!n.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error("Global document not defined in showReportDialog call"));const{client:r,scope:i}=t.getStackTop();var o=e.dsn||r&&r.getDsn();if(o){i&&(e.user={...i.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());var a=n.document.createElement("script");a.async=!0,a.src=function(e,t){var n=Wt(e),r=`${Jt(n)}embed/error-page/`;let i=`dsn=${zt(n)}`;for(var o in t)if("dsn"!==o)if("user"===o){var a=t.user;if(!a)continue;a.name&&(i+=`&name=${encodeURIComponent(a.name)}`),a.email&&(i+=`&email=${encodeURIComponent(a.email)}`)}else i+=`&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;return`${r}?${i}`}(o,e),e.onLoad&&(a.onload=e.onLoad);var s=n.document.head||n.document.body;s?s.appendChild(a):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error("Not injecting report dialog. No injection point found in HTML")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.error("DSN not configured for showReportDialog call")}function An(){return(0,_e.Gd)().lastEventId()}function Un(){}function Bn(e){e()}function Ln(e){var t=(0,_e.Gd)().getClient();return t?t.flush(e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("Cannot flush events. No client defined."),(0,Ue.WD)(!1))}function Mn(e){var t=(0,_e.Gd)().getClient();return t?t.close(e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("Cannot flush events and disable SDK. No client defined."),(0,Ue.WD)(!1))}function Gn(e){return dt(e)()}function Yn(e){e.startSession({ignoreDuration:!0}),e.captureSession()}let $n={};var Hn=(0,We.R)();Hn.Sentry&&Hn.Sentry.Integrations&&($n=Hn.Sentry.Integrations);var Fn={...$n,...e,...t};function qn(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:be}],version:be},Cn(e)}var zn=n(5839),Vn=n.n(zn),Wn="ui.react.render",Xn="ui.react.mount",Jn="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/profiler.tsx";class Zn extends a.Component{__init(){this._mountSpan=void 0}static __initStatic(){this.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0}}constructor(e){super(e),Zn.prototype.__init.call(this);const{name:t,disabled:n=!1}=this.props;if(!n){var r=er();r&&(this._mountSpan=r.startChild({description:`<${t}>`,op:Xn}))}}componentDidMount(){this._mountSpan&&this._mountSpan.finish()}componentDidUpdate({updateProps:e,includeUpdates:t=!0}){if(t&&this._mountSpan&&e!==this.props.updateProps){var n=Object.keys(e).filter((t=>e[t]!==this.props.updateProps[t]));if(n.length>0){var r=(0,Xt._I)();this._mountSpan.startChild({data:{changedProps:n},description:`<${this.props.name}>`,endTimestamp:r,op:"ui.react.update",startTimestamp:r})}}}componentWillUnmount(){const{name:e,includeRender:t=!0}=this.props;this._mountSpan&&t&&this._mountSpan.startChild({description:`<${e}>`,endTimestamp:(0,Xt._I)(),op:Wn,startTimestamp:this._mountSpan.endTimestamp})}render(){return this.props.children}}function Kn(e,t){var n=t&&t.name||e.displayName||e.name||"unknown",r=r=>a.createElement(Zn,{...t,name:n,updateProps:r,__self:this,__source:{fileName:Jn,lineNumber:133}},a.createElement(e,{...r,__self:this,__source:{fileName:Jn,lineNumber:134}}));return r.displayName=`profiler(${n})`,Vn()(r,e),r}function Qn(e,t={disabled:!1,hasRenderSpan:!0}){const[n]=a.useState((()=>{if(!t||!t.disabled){var n=er();return n?n.startChild({description:`<${e}>`,op:Xn}):void 0}}));a.useEffect((()=>(n&&n.finish(),()=>{n&&t.hasRenderSpan&&n.startChild({description:`<${e}>`,endTimestamp:(0,Xt._I)(),op:Wn,startTimestamp:n.endTimestamp})})),[])}function er(e=(0,_e.Gd)()){if(e){var t=e.getScope();if(t)return t.getTransaction()}}Zn.__initStatic();var tr="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/errorboundary.tsx";var nr={componentStack:null,error:null,eventId:null};class rr extends a.Component{constructor(...e){super(...e),rr.prototype.__init.call(this),rr.prototype.__init2.call(this)}__init(){this.state=nr}componentDidCatch(e,{componentStack:t}){const{beforeCapture:n,onError:r,showDialog:i,dialogOptions:o}=this.props;Ce((s=>{if(c=a.version,null!==(l=c.match(/^([^.]+)/))&&parseInt(l[0])>=17){var u=new Error(e.message);u.name=`React ErrorBoundary ${u.name}`,u.stack=t,e.cause=u}var c,l;n&&n(s,e,t);var f=we(e,{contexts:{react:{componentStack:t}}});r&&r(e,t,f),i&&In({...o,eventId:f}),this.setState({error:e,componentStack:t,eventId:f})}))}componentDidMount(){const{onMount:e}=this.props;e&&e()}componentWillUnmount(){const{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&r(e,t,n)}__init2(){this.resetErrorBoundary=()=>{const{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(nr)}}render(){const{fallback:e,children:t}=this.props,{error:n,componentStack:r,eventId:i}=this.state;if(n){let t;return t="function"==typeof e?e({error:n,componentStack:r,resetError:this.resetErrorBoundary,eventId:i}):e,a.isValidElement(t)?t:(e&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("fallback did not produce a valid ReactElement"),null)}return"function"==typeof t?t():t}}function ir(e,t){var n=e.displayName||e.name||"unknown",r=n=>a.createElement(rr,{...t,__self:this,__source:{fileName:tr,lineNumber:168}},a.createElement(e,{...n,__self:this,__source:{fileName:tr,lineNumber:169}}));return r.displayName=`errorBoundary(${n})`,Vn()(r,e),r}var or={actionTransformer:e=>e,stateTransformer:e=>e||null};function ar(e){var t={...or,...e};return e=>(n,r)=>e(((e,r)=>{var i=n(e,r);return Oe((e=>{var n=t.actionTransformer(r);null!=n&&e.addBreadcrumb({category:"redux.action",data:n,type:"info"});var o=t.stateTransformer(i);null!=o?e.setContext("state",{type:"redux",value:o}):e.setContext("state",null);const{configureScopeWithState:a}=t;"function"==typeof a&&a(e,i)})),i}),r)}var sr=(0,We.R)();function ur(e,t,n){return(r,i=!0,o=!0)=>{let a,s;i&&sr&&sr.location&&cr(t,sr.location,n,((e,t="url")=>{s=e,a=r({name:s,op:"pageload",tags:{"routing.instrumentation":"react-router-v3"},metadata:{source:t}})})),o&&e.listen&&e.listen((e=>{if("PUSH"===e.action||"POP"===e.action){a&&a.finish();var i={"routing.instrumentation":"react-router-v3"};s&&(i.from=s),cr(t,e,n,((e,t="url")=>{s=e,a=r({name:s,op:"navigation",tags:i,metadata:{source:t}})}))}}))}}function cr(e,t,n,r){let i=t.pathname;n({location:t,routes:e},((e,t,n)=>{if(e||!n)return r(i);var o=function(e){if(!Array.isArray(e)||0===e.length)return"";var t=e.filter((e=>!!e.path));let n=-1;for(let e=t.length-1;e>=0;e--){var r=t[e];if(r.path&&r.path.startsWith("/")){n=e;break}}return t.slice(n).filter((({path:e})=>!!e)).map((({path:e})=>e)).join("")}(n.routes||[]);return 0===o.length||"/*"===o?r(i):(i=o,r(i,"route"))}))}var lr=(0,We.R)();let fr;function dr(e,t,n){return hr(e,"react-router-v4",t,n)}function pr(e,t,n){return hr(e,"react-router-v5",t,n)}function hr(e,t,n=[],r){function i(e){if(0===n.length||!r)return[e,"url"];var t=mr(n,e,r);for(let e=0;e<t.length;e++)if(t[e].match.isExact)return[t[e].match.path,"route"];return[e,"url"]}var o={"routing.instrumentation":t};return(t,n=!0,r=!0)=>{var a=e&&e.location?e.location.pathname:lr&&lr.location?lr.location.pathname:void 0;if(n&&a){const[e,n]=i(a);fr=t({name:e,op:"pageload",tags:o,metadata:{source:n}})}r&&e.listen&&e.listen(((e,n)=>{if(n&&("PUSH"===n||"POP"===n)){fr&&fr.finish();const[n,r]=i(e.pathname);fr=t({name:n,op:"navigation",tags:o,metadata:{source:r}})}}))}}function mr(e,t,n,r=[]){return e.some((e=>{var i=e.path?n(t,e):r.length?r[r.length-1].match:function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}}(t);return i&&(r.push({route:e,match:i}),e.routes&&mr(e.routes,t,n,r)),!!i})),r}function vr(e){var t=e.displayName||e.name,n=t=>(fr&&t&&t.computedMatch&&t.computedMatch.isExact&&(fr.setName(t.computedMatch.path),fr.setMetadata({source:"route"})),a.createElement(e,{...t,__self:this,__source:{fileName:"/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/reactrouter.tsx",lineNumber:177}}));return n.displayName=`sentryRoute(${t})`,Vn()(n,e),n}let gr,yr,_r,br,xr,wr,Er,Sr;var Or=(0,We.R)(),Tr={"routing.instrumentation":"react-router-v6"};function jr(e,t,n,r,i){return(o,a=!0,s=!0)=>{var u=Or&&Or.location&&Or.location.pathname;a&&u&&(gr=o({name:u,op:"pageload",tags:Tr,metadata:{source:"url"}})),yr=e,_r=t,br=n,wr=i,xr=r,Er=o,Sr=s}}function Rr(e,t,n){if(!e||0===e.length||!n)return[t.pathname,"url"];var r=n(e,t);let i="";if(r)for(let e=0;e<r.length;e++){var o=r[e],a=o.route;if(a){if(a.index)return[o.pathname,"route"];var s=a.path;if(s){var u="/"===s[0]?s:`/${s}`;if(i+=u,o.pathname===t.pathname)return Rt(i)!==Rt(o.pathname)?[u,"route"]:[i,"route"]}}}return[t.pathname,"url"]}function kr(e){if(!(yr&&_r&&br&&xr&&wr&&Er))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters."),e;let t,n=!1;var r=r=>{var i=_r(),o=br();return yr((()=>{if(t=xr(r.children),n=!0,gr){const[e,n]=Rr(t,i,wr);gr.setName(e),gr.setMetadata({source:n})}}),[r.children]),yr((()=>{if(n)gr&&gr.finish();else if(Sr&&("PUSH"===o||"POP"===o)){gr&&gr.finish();const[e,n]=Rr(t,i,wr);gr=Er({name:e,op:"navigation",tags:Tr,metadata:{source:n}})}}),[r.children,i,o,n]),n=!1,s().createElement(e,{...r,__self:this,__source:{fileName:"/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/reactrouterv6.tsx",lineNumber:211}})};return Vn()(r,e),r}var Nr=n(4681),Dr=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");var Pr=n(4061),Cr=n(5498),Ir=(0,We.R)();var Ar=n(822),Ur=(e,t,n)=>{let r;return i=>{t.value>=0&&(i||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},Br=(e,t)=>({name:e,value:(0,Ar.h)(t,(()=>-1)),delta:0,entries:[],id:`v2-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`}),Lr=(e,t)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((e=>e.getEntries().map(t)));return n.observe({type:e,buffered:!0}),n}}catch(e){}},Mr=(e,t)=>{var n=r=>{"pagehide"!==r.type&&"hidden"!==(0,We.R)().document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)};let Gr=-1;var Yr=()=>(Gr<0&&(Gr="hidden"===(0,We.R)().document.visibilityState?0:1/0,Mr((({timeStamp:e})=>{Gr=e}),!0)),{get firstHiddenTime(){return Gr}}),$r={};function Hr(e){return"number"==typeof e&&isFinite(e)}function Fr(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}var qr=(0,We.R)();function zr(){return qr&&qr.addEventListener&&qr.performance}let Vr,Wr,Xr=0,Jr={};function Zr(e=!1){var t=zr();t&&Xt.Z1&&(t.mark&&qr.performance.mark("sentry-tracing-init"),((e,t)=>{var n=Br("CLS",0);let r,i=0,o=[];var a=e=>{if(e&&!e.hadRecentInput){var t=o[0],a=o[o.length-1];i&&0!==o.length&&e.startTime-a.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e]),i>n.value&&(n.value=i,n.entries=o,r&&r())}},s=Lr("layout-shift",a);s&&(r=Ur(e,n,t),Mr((()=>{s.takeRecords().map(a),r(!0)})))})((e=>{var t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("[Measurements] Adding CLS"),Jr.cls={value:e.value,unit:""},Wr=t)})),function(e){((e,t)=>{var n=Yr(),r=Br("LCP");let i;var o=e=>{var t=e.startTime;t<n.firstHiddenTime&&(r.value=t,r.entries.push(e)),i&&i()},a=Lr("largest-contentful-paint",o);if(a){i=Ur(e,r,t);var s=()=>{$r[r.id]||(a.takeRecords().map(o),a.disconnect(),$r[r.id]=!0,i(!0))};["keydown","click"].forEach((e=>{addEventListener(e,s,{once:!0,capture:!0})})),Mr(s,!0)}})((e=>{var t=e.entries.pop();if(t){var n=(0,Cr.XL)(Xt.Z1),r=(0,Cr.XL)(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("[Measurements] Adding LCP"),Jr.lcp={value:e.value,unit:"millisecond"},Jr["mark.lcp"]={value:n+r,unit:"second"},Vr=t}}),e)}(e),((e,t)=>{var n=Yr(),r=Br("FID");let i;var o=e=>{i&&e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),i(!0))},a=Lr("first-input",o);a&&(i=Ur(e,r,t),Mr((()=>{a.takeRecords().map(o),a.disconnect()}),!0))})((e=>{var t=e.entries.pop();if(t){var n=(0,Cr.XL)(Xt.Z1),r=(0,Cr.XL)(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("[Measurements] Adding FID"),Jr.fid={value:e.value,unit:"millisecond"},Jr["mark.fid"]={value:n+r,unit:"second"}}})))}function Kr(e){var t=zr();if(!t||!qr.performance.getEntries||!Xt.Z1)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("[Tracing] Adding & adjusting spans using Performance API");var n=(0,Cr.XL)(Xt.Z1),r=t.getEntries();let i,o;r.slice(Xr).forEach((t=>{var r=(0,Cr.XL)(t.startTime),a=(0,Cr.XL)(t.duration);if(!("navigation"===e.op&&n+r<e.startTimestamp))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{Qr(e,t,r,n)})),Qr(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Qr(e,t,"fetch",n,"cache","domainLookupStart"),Qr(e,t,"domainLookup",n,"DNS"),function(e,t,n){Fr(e,{op:"browser",description:"request",startTimestamp:n+(0,Cr.XL)(t.requestStart),endTimestamp:n+(0,Cr.XL)(t.responseEnd)}),Fr(e,{op:"browser",description:"response",startTimestamp:n+(0,Cr.XL)(t.responseStart),endTimestamp:n+(0,Cr.XL)(t.responseEnd)})}(e,t,n)}(e,t,n),i=n+(0,Cr.XL)(t.responseStart),o=n+(0,Cr.XL)(t.requestStart);break;case"mark":case"paint":case"measure":var s=function(e,t,n,r,i){var o=i+n,a=o+r;return Fr(e,{description:t.name,endTimestamp:a,op:t.entryType,startTimestamp:o}),o}(e,t,r,a,n),u=Yr(),c=t.startTime<u.firstHiddenTime;"first-paint"===t.name&&c&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("[Measurements] Adding FP"),Jr.fp={value:t.startTime,unit:"millisecond"},Jr["mark.fp"]={value:s,unit:"second"}),"first-contentful-paint"===t.name&&c&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("[Measurements] Adding FCP"),Jr.fcp={value:t.startTime,unit:"millisecond"},Jr["mark.fcp"]={value:s,unit:"second"});break;case"resource":var l=t.name.replace(qr.location.origin,"");!function(e,t,n,r,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;var a={};"transferSize"in t&&(a["Transfer Size"]=t.transferSize);"encodedBodySize"in t&&(a["Encoded Body Size"]=t.encodedBodySize);"decodedBodySize"in t&&(a["Decoded Body Size"]=t.decodedBodySize);var s=o+r;Fr(e,{description:n,endTimestamp:s+i,op:t.initiatorType?`resource.${t.initiatorType}`:"resource",startTimestamp:s,data:a})}(e,t,l,r,a,n)}})),Xr=Math.max(r.length-1,0),function(e){var t=qr.navigator;if(!t)return;var n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Hr(n.rtt)&&(Jr["connection.rtt"]={value:n.rtt,unit:"millisecond"}),Hr(n.downlink)&&(Jr["connection.downlink"]={value:n.downlink,unit:""}));Hr(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`);Hr(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===e.op&&("number"==typeof i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("[Measurements] Adding TTFB"),Jr.ttfb={value:1e3*(i-e.startTimestamp),unit:"millisecond"},"number"==typeof o&&o<=i&&(Jr["ttfb.requestTime"]={value:1e3*(i-o),unit:"millisecond"})),["fcp","fp","lcp"].forEach((t=>{if(Jr[t]&&!(n>=e.startTimestamp)){var r=Jr[t].value,i=n+(0,Cr.XL)(r),o=Math.abs(1e3*(i-e.startTimestamp)),a=o-r;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(`[Measurements] Normalized ${t} from ${r} to ${o} (${a})`),Jr[t].value=o}})),Jr["mark.fid"]&&Jr.fid&&Fr(e,{description:"first input delay",endTimestamp:Jr["mark.fid"].value+(0,Cr.XL)(Jr.fid.value),op:"web.vitals",startTimestamp:Jr["mark.fid"].value}),"fcp"in Jr||delete Jr.cls,Object.keys(Jr).forEach((t=>{e.setMeasurement(t,Jr[t].value,Jr[t].unit)})),function(e){Vr&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("[Measurements] Adding LCP Data"),Vr.element&&e.setTag("lcp.element",(0,Ze.R)(Vr.element)),Vr.id&&e.setTag("lcp.id",Vr.id),Vr.url&&e.setTag("lcp.url",Vr.url.trim().slice(0,200)),e.setTag("lcp.size",Vr.size));Wr&&Wr.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log("[Measurements] Adding CLS Data"),Wr.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,(0,Ze.R)(t.node)))))}(e)),Vr=void 0,Wr=void 0,Jr={}}function Qr(e,t,n,r,i,o){var a=o?t[o]:t[`${n}End`],s=t[`${n}Start`];s&&a&&Fr(e,{op:"browser",description:(0,Ar.h)(i,(()=>n)),startTimestamp:r+(0,Cr.XL)(s),endTimestamp:r+(0,Cr.XL)(a)})}var ei={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function ti(e){const{traceFetch:t,traceXHR:n,tracingOrigins:r,shouldCreateSpanForRequest:i}={...ei,...e};var o={},a=e=>{if(o[e])return o[e];var t=r;return o[e]=t.some((t=>(0,me.zC)(e,t)))&&!(0,me.zC)(e,"sentry_key"),o[e]};let s=a;"function"==typeof i&&(s=e=>a(e)&&i(e));var u={};t&&(0,Xe.o)("fetch",(e=>{!function(e,t,n){if(!(0,Cr.zu)()||!e.fetchData||!t(e.fetchData.url))return;if(e.endTimestamp){var r=e.fetchData.__span;if(!r)return;return void((o=n[r])&&(e.response?o.setHttpStatus(e.response.status):e.error&&o.setStatus("internal_error"),o.finish(),delete n[r]))}var i=(0,Cr.x1)();if(i){var o=i.startChild({data:{...e.fetchData,type:"fetch"},description:`${e.fetchData.method} ${e.fetchData.url}`,op:"http.client"});e.fetchData.__span=o.spanId,n[o.spanId]=o;var a=e.args[0]=e.args[0],s=e.args[1]=e.args[1]||{};s.headers=function(e,t,n,r){let i=r.headers;(0,Je.V9)(e,Request)&&(i=e.headers);if(i)if("function"==typeof i.append)i.append("sentry-trace",n.toTraceparent()),i.append(Kt.bU,(0,Kt.J8)(t,i.get(Kt.bU)));else if(Array.isArray(i)){const[,e]=i.find((([e,t])=>e===Kt.bU));i=[...i,["sentry-trace",n.toTraceparent()],[Kt.bU,(0,Kt.J8)(t,e)]]}else i={...i,"sentry-trace":n.toTraceparent(),baggage:(0,Kt.J8)(t,i.baggage)};else i={"sentry-trace":n.toTraceparent(),baggage:(0,Kt.J8)(t)};return i}(a,i.getBaggage(),o,s)}}(e,s,u)})),n&&(0,Xe.o)("xhr",(e=>{!function(e,t,n){if(!(0,Cr.zu)()||e.xhr&&e.xhr.__sentry_own_request__||!(e.xhr&&e.xhr.__sentry_xhr__&&t(e.xhr.__sentry_xhr__.url)))return;var r=e.xhr.__sentry_xhr__;if(e.endTimestamp){var i=e.xhr.__sentry_xhr_span_id__;if(!i)return;return void((a=n[i])&&(a.setHttpStatus(r.status_code),a.finish(),delete n[i]))}var o=(0,Cr.x1)();if(o){var a=o.startChild({data:{...r.data,type:"xhr",method:r.method,url:r.url},description:`${r.method} ${r.url}`,op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=a.spanId,n[e.xhr.__sentry_xhr_span_id__]=a,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",a.toTraceparent());var s=e.xhr.getRequestHeader&&e.xhr.getRequestHeader(Kt.bU);e.xhr.setRequestHeader(Kt.bU,(0,Kt.J8)(o.getBaggage(),s))}catch(e){}}}(e,s,u)}))}var ni=(0,We.R)();var ri={idleTimeout:Pr.nT,finalTimeout:Pr.mg,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){if(!ni||!ni.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("Could not initialize routing instrumentation due to invalid location"));let r,i=ni.location.href;t&&(r=e({name:ni.location.pathname,op:"pageload",metadata:{source:"url"}})),n&&(0,Xe.o)("history",(({to:t,from:n})=>{void 0===n&&i&&-1!==i.indexOf(t)?i=void 0:n!==t&&(i=void 0,r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.finish()),r=e({name:ni.location.pathname,op:"navigation",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,...ei};class ii{__init(){this.name="BrowserTracing"}constructor(e){ii.prototype.__init.call(this);let t=ei.tracingOrigins;e&&(e.tracingOrigins&&Array.isArray(e.tracingOrigins)&&0!==e.tracingOrigins.length?t=e.tracingOrigins:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._emitOptionsWarning=!0)),this.options={...ri,...e,tracingOrigins:t};const{_metricOptions:n}=this.options;Zr(n&&n._reportAllChanges)}setupOnce(e,t){this._getCurrentHub=t,this._emitOptionsWarning&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn(`[Tracing] We added a reasonable default for you: ${ei.tracingOrigins}`));const{routingInstrumentation:n,startTransactionOnLocationChange:r,startTransactionOnPageLoad:i,markBackgroundTransactions:o,traceFetch:a,traceXHR:s,tracingOrigins:u,shouldCreateSpanForRequest:c}=this.options;n((e=>this._createRouteTransaction(e)),i,r),o&&(Ir&&Ir.document?Ir.document.addEventListener("visibilitychange",(()=>{var e=(0,Cr.x1)();if(Ir.document.hidden&&e){var t="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(`[Tracing] Transaction: cancelled -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),ti({traceFetch:a,traceXHR:s,tracingOrigins:u,shouldCreateSpanForRequest:c})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`));const{beforeNavigate:t,idleTimeout:n,finalTimeout:r}=this.options;var i="pageload"===e.op?function(){var e=oi("sentry-trace"),t=oi("baggage"),n=e?function(e){var t=e.match(Dr);if(t){let e;return"1"===t[3]?e=!0:"0"===t[3]&&(e=!1),{traceId:t[1],parentSampled:e,parentSpanId:t[2]}}}(e):void 0,r=(0,Kt.rg)(t,e);if(n||r)return{...n&&n,...r&&{metadata:{baggage:r}}};return}():void 0,o={...e,...i,...i&&{metadata:{...e.metadata,...i.metadata}},trimEnd:!0},a="function"==typeof t?t(o):o,s=void 0===a?{...o,sampled:!1}:a;s.metadata=s.name!==o.name?{...s.metadata,source:"custom"}:s.metadata,!1===s.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(`[Tracing] Will not send ${s.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&pe.kg.log(`[Tracing] Starting ${s.op} transaction on scope`);var u=this._getCurrentHub();const{location:c}=(0,We.R)();var l=(0,Nr.lb)(u,s,n,r,!0,{location:c});return l.registerBeforeFinishCallback((e=>{Kr(e),e.setTag("sentry_reportAllChanges",Boolean(this.options._metricOptions&&this.options._metricOptions._reportAllChanges))})),l}}function oi(e){var t=(0,We.R)();if(t.document&&t.document.querySelector){var n=t.document.querySelector(`meta[name=${e}]`);return n?n.getAttribute("content"):null}return null}function ai(e){let t;const n=new Set,r=(e,r)=>{const i="function"==typeof e?e(t):e;if(i!==t){const e=t;t=r?i:Object.assign({},t,i),n.forEach((n=>n(t,e)))}},i=()=>t,o={setState:r,getState:i,subscribe:(e,r,o)=>r||o?((e,r=i,o=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=r(t);function s(){const n=r(t);if(!o(a,n)){const t=a;e(a=n,t)}}return n.add(s),()=>n.delete(s)})(e,r,o):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,i,o),o}("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,Nr.ro)();const si="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?a.useEffect:a.useLayoutEffect;function ui(e){const t="function"==typeof e?ai(e):e,n=(e=t.getState,n=Object.is)=>{const[,r]=(0,a.useReducer)((e=>e+1),0),i=t.getState(),o=(0,a.useRef)(i),s=(0,a.useRef)(e),u=(0,a.useRef)(n),c=(0,a.useRef)(!1),l=(0,a.useRef)();let f;void 0===l.current&&(l.current=e(i));let d=!1;(o.current!==i||s.current!==e||u.current!==n||c.current)&&(f=e(i),d=!n(l.current,f)),si((()=>{d&&(l.current=f),o.current=i,s.current=e,u.current=n,c.current=!1}));const p=(0,a.useRef)(i);si((()=>{const e=()=>{try{const e=t.getState(),n=s.current(e);u.current(l.current,n)||(o.current=e,l.current=n,r())}catch(e){c.current=!0,r()}},n=t.subscribe(e);return t.getState()!==p.current&&e(),n}),[]);const h=d?f:l.current;return(0,a.useDebugValue)(h),h};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[n,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},n}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function ci(e,t){return(n,r,i)=>{var o;let a=!1;"string"!=typeof t||a||(console.warn("[zustand devtools middleware]: passing `name` as directly will be not allowed in next majorpass the `name` in an object `{ name: ... }` instead"),a=!0);const s=void 0===t?{name:void 0,anonymousActionType:void 0}:"string"==typeof t?{name:t}:t;let u;void 0!==(null==(o=null==s?void 0:s.serialize)?void 0:o.options)&&console.warn("[zustand devtools middleware]: `serialize.options` is deprecated, just use `serialize`");try{u=window.__REDUX_DEVTOOLS_EXTENSION__||window.top.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return"undefined"!=typeof window&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);let c=Object.create(u.connect(s)),l=!1;Object.defineProperty(i,"devtools",{get:()=>(l||(console.warn("[zustand devtools middleware] `devtools` property on the store is deprecated it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),l=!0),c),set:e=>{l||(console.warn("[zustand devtools middleware] `api.devtools` is deprecated, it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),l=!0),c=e}});let f=!1;Object.defineProperty(c,"prefix",{get:()=>(f||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),f=!0),""),set:()=>{f||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),f=!0)}});let d=!0;i.setState=(e,t,i)=>{n(e,t),d&&c.send(void 0===i?{type:s.anonymousActionType||"anonymous"}:"string"==typeof i?{type:i}:i,r())};const p=(...e)=>{const t=d;d=!1,n(...e),d=t},h=e(i.setState,r,i);if(c.init(h),i.dispatchFromDevtools&&"function"==typeof i.dispatch){let e=!1;const t=i.dispatch;i.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return c.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):li(e.payload,(e=>{"__setState"!==e.type?i.dispatchFromDevtools&&"function"==typeof i.dispatch&&i.dispatch(e):p(e.state)}));case"DISPATCH":switch(e.payload.type){case"RESET":return p(h),c.init(i.getState());case"COMMIT":return c.init(i.getState());case"ROLLBACK":return li(e.state,(e=>{p(e),c.init(i.getState())}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return li(e.state,(e=>{p(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return p(r),void c.send(null,n)}case"PAUSE_RECORDING":return d=!d}return}})),h}}const li=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)};var fi=Object.defineProperty,di=Object.getOwnPropertySymbols,pi=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,mi=(e,t,n)=>t in e?fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vi=(e,t)=>{for(var n in t||(t={}))pi.call(t,n)&&mi(e,n,t[n]);if(di)for(var n of di(t))hi.call(t,n)&&mi(e,n,t[n]);return e};const gi=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>gi(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>gi(t)(e)}}},yi=(e,t)=>(n,r,i)=>{let o=vi({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>vi(vi({},t),e)},t);(o.blacklist||o.whitelist)&&console.warn(`The ${o.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let a=!1;const s=new Set,u=new Set;let c;try{c=o.getStorage()}catch(e){}if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...e)}),r,i);c.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${o.name}' does not contain a 'removeItem' method, which will be required in v4.`);const l=gi(o.serialize),f=()=>{const e=o.partialize(vi({},r()));let t;o.whitelist&&Object.keys(e).forEach((t=>{var n;!(null==(n=o.whitelist)?void 0:n.includes(t))&&delete e[t]})),o.blacklist&&o.blacklist.forEach((t=>delete e[t]));const n=l({state:e,version:o.version}).then((e=>c.setItem(o.name,e))).catch((e=>{t=e}));if(t)throw t;return n},d=i.setState;i.setState=(e,t)=>{d(e,t),f()};const p=e(((...e)=>{n(...e),f()}),r,i);let h;const m=()=>{var e;if(!c)return;a=!1,s.forEach((e=>e(r())));const t=(null==(e=o.onRehydrateStorage)?void 0:e.call(o,r()))||void 0;return gi(c.getItem.bind(c))(o.name).then((e=>{if(e)return o.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return h=o.merge(e,null!=(t=r())?t:p),n(h,!0),f()})).then((()=>{null==t||t(h,void 0),a=!0,u.forEach((e=>e(h)))})).catch((e=>{null==t||t(void 0,e)}))};return i.persist={setOptions:e=>{o=vi(vi({},o),e),e.getStorage&&(c=e.getStorage())},clearStorage:()=>{var e;null==(e=null==c?void 0:c.removeItem)||e.call(c,o.name)},rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},m(),h||p};var _i=yi(ci((function(e){return{generating:!1,generatedPages:{},orderId:null,setOrderId:function(t){e({orderId:t})}}}),{name:"Extendify Launch Globals"}),{name:"extendify-launch-globals",getStorage:function(){return localStorage},partialize:function(e){var t;return{orderId:null!==(t=null==e?void 0:e.orderId)&&void 0!==t?t:null}}}),bi=ui(_i);function xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xi(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Si(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}var Oi=function(){var e,t=(e=se().mark((function e(t){var n,r,i,o,a;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ps.get("onboarding/styles",{params:t});case 2:return r=e.sent,e.next=5,Rs();case 5:return i=e.sent,o=i.headers,a=i.footers,e.abrupt("return",null==r||null===(n=r.data)||void 0===n?void 0:n.map((function(e){var t,n,r,i,s,u,c=null==o?void 0:o.find((function(t){var n;return null!==(n=(null==t?void 0:t.slug)===(null==e?void 0:e.headerSlug))&&void 0!==n?n:"header"})),l=null==a?void 0:a.find((function(t){var n;return null!==(n=(null==t?void 0:t.slug)===(null==e?void 0:e.footerSlug))&&void 0!==n?n:"footer"}));return wi(wi({},e),{},{headerCode:null!==(t=null==c||null===(n=c.content)||void 0===n||null===(r=n.raw)||void 0===r?void 0:r.trim())&&void 0!==t?t:"",footerCode:null!==(i=null==l||null===(s=l.content)||void 0===s||null===(u=s.raw)||void 0===u?void 0:u.trim())&&void 0!==i?i:""})})));case 9:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Si(o,r,i,a,s,"next",e)}function s(e){Si(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),Ti=function(e){return ps.get("onboarding/template",{params:e})},ji=["className"];function Ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ri(Object(n),!0).forEach((function(t){Ni(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ni(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Di(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const Pi=(0,i.memo)((function(e){var t=e.className,n=Di(e,ji);return(0,ie.jsx)("svg",ki(ki({className:t,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),{},{children:(0,ie.jsx)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"})}))}));var Ci=["className"];function Ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ii(Object(n),!0).forEach((function(t){Ui(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ii(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ui(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bi(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const Li=(0,i.memo)((function(e){var t=e.className,n=Bi(e,Ci);return(0,ie.jsx)("svg",Ai(Ai({className:"icon ".concat(t),width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),{},{children:(0,ie.jsx)("path",{d:"M10 17.5L15 12L10 6.5",stroke:"currentColor",strokeWidth:"1.75"})}))}));var Mi=["className"];function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gi(Object(n),!0).forEach((function(t){$i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hi(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const Fi=(0,i.memo)((function(e){var t=e.className,n=Hi(e,Mi);return(0,ie.jsxs)("svg",Yi(Yi({className:t,viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg"},n),{},{children:[(0,ie.jsx)("path",{d:"M609.404 378.5C585.07 378.5 563.404 373 544.404 362C525.737 350.667 511.07 335.333 500.404 316C489.737 296.333 484.404 273.833 484.404 248.5C484.404 222.833 489.57 200.167 499.904 180.5C510.237 160.833 524.737 145.5 543.404 134.5C562.07 123.167 583.404 117.5 607.404 117.5C632.404 117.5 653.904 122.833 671.904 133.5C689.904 143.833 703.737 158.333 713.404 177C723.404 195.667 728.404 218 728.404 244V262.5L516.404 263L517.404 224H667.904C667.904 207 662.404 193.333 651.404 183C640.737 172.667 626.237 167.5 607.904 167.5C593.57 167.5 581.404 170.5 571.404 176.5C561.737 182.5 554.404 191.5 549.404 203.5C544.404 215.5 541.904 230.167 541.904 247.5C541.904 274.167 547.57 294.333 558.904 308C570.57 321.667 587.737 328.5 610.404 328.5C627.07 328.5 640.737 325.333 651.404 319C662.404 312.667 669.57 303.667 672.904 292H729.404C724.07 319 710.737 340.167 689.404 355.5C668.404 370.833 641.737 378.5 609.404 378.5Z",fill:"currentColor"}),(0,ie.jsx)("path",{d:"M797.529 372H728.029L813.029 251L728.029 125H799.029L853.529 209L906.029 125H974.529L890.529 250.5L972.029 372H902.029L849.029 290.5L797.529 372Z",fill:"currentColor"}),(0,ie.jsx)("path",{d:"M994.142 125H1150.14V176H994.142V125ZM1102.64 372H1041.64V48H1102.64V372Z",fill:"currentColor"}),(0,ie.jsx)("path",{d:"M1278.62 378.5C1254.29 378.5 1232.62 373 1213.62 362C1194.96 350.667 1180.29 335.333 1169.62 316C1158.96 296.333 1153.62 273.833 1153.62 248.5C1153.62 222.833 1158.79 200.167 1169.12 180.5C1179.46 160.833 1193.96 145.5 1212.62 134.5C1231.29 123.167 1252.62 117.5 1276.62 117.5C1301.62 117.5 1323.12 122.833 1341.12 133.5C1359.12 143.833 1372.96 158.333 1382.62 177C1392.62 195.667 1397.62 218 1397.62 244V262.5L1185.62 263L1186.62 224H1337.12C1337.12 207 1331.62 193.333 1320.62 183C1309.96 172.667 1295.46 167.5 1277.12 167.5C1262.79 167.5 1250.62 170.5 1240.62 176.5C1230.96 182.5 1223.62 191.5 1218.62 203.5C1213.62 215.5 1211.12 230.167 1211.12 247.5C1211.12 274.167 1216.79 294.333 1228.12 308C1239.79 321.667 1256.96 328.5 1279.62 328.5C1296.29 328.5 1309.96 325.333 1320.62 319C1331.62 312.667 1338.79 303.667 1342.12 292H1398.62C1393.29 319 1379.96 340.167 1358.62 355.5C1337.62 370.833 1310.96 378.5 1278.62 378.5Z",fill:"currentColor"}),(0,ie.jsx)("path",{d:"M1484.44 372H1423.44V125H1479.94L1484.94 157C1492.61 144.667 1503.44 135 1517.44 128C1531.78 121 1547.28 117.5 1563.94 117.5C1594.94 117.5 1618.28 126.667 1633.94 145C1649.94 163.333 1657.94 188.333 1657.94 220V372H1596.94V234.5C1596.94 213.833 1592.28 198.5 1582.94 188.5C1573.61 178.167 1560.94 173 1544.94 173C1525.94 173 1511.11 179 1500.44 191C1489.78 203 1484.44 219 1484.44 239V372Z",fill:"currentColor"}),(0,ie.jsx)("path",{d:"M1798.38 378.5C1774.38 378.5 1753.71 373.167 1736.38 362.5C1719.38 351.5 1706.04 336.333 1696.38 317C1687.04 297.667 1682.38 275.167 1682.38 249.5C1682.38 223.833 1687.04 201.167 1696.38 181.5C1706.04 161.5 1719.88 145.833 1737.88 134.5C1755.88 123.167 1777.21 117.5 1801.88 117.5C1819.21 117.5 1835.04 121 1849.38 128C1863.71 134.667 1874.71 144.167 1882.38 156.5V0H1942.88V372H1886.88L1882.88 333.5C1875.54 347.5 1864.21 358.5 1848.88 366.5C1833.88 374.5 1817.04 378.5 1798.38 378.5ZM1811.88 322.5C1826.21 322.5 1838.54 319.5 1848.88 313.5C1859.21 307.167 1867.21 298.333 1872.88 287C1878.88 275.333 1881.88 262.167 1881.88 247.5C1881.88 232.5 1878.88 219.5 1872.88 208.5C1867.21 197.167 1859.21 188.333 1848.88 182C1838.54 175.333 1826.21 172 1811.88 172C1797.88 172 1785.71 175.333 1775.38 182C1765.04 188.333 1757.04 197.167 1751.38 208.5C1746.04 219.833 1743.38 232.833 1743.38 247.5C1743.38 262.167 1746.04 275.167 1751.38 286.5C1757.04 297.833 1765.04 306.667 1775.38 313C1785.71 319.333 1797.88 322.5 1811.88 322.5Z",fill:"currentColor"}),(0,ie.jsx)("path",{d:"M1996.45 372V125H2057.45V372H1996.45ZM2026.45 75.5C2016.11 75.5 2007.28 72 1999.95 65C1992.95 57.6667 1989.45 48.8333 1989.45 38.5C1989.45 28.1667 1992.95 19.5 1999.95 12.5C2007.28 5.50001 2016.11 2.00002 2026.45 2.00002C2036.78 2.00002 2045.45 5.50001 2052.45 12.5C2059.78 19.5 2063.45 28.1667 2063.45 38.5C2063.45 48.8333 2059.78 57.6667 2052.45 65C2045.45 72 2036.78 75.5 2026.45 75.5Z",fill:"currentColor"}),(0,ie.jsx)("path",{d:"M2085.97 125H2240.97V176H2085.97V125ZM2241.47 2.5V54.5C2238.14 54.5 2234.64 54.5 2230.97 54.5C2227.64 54.5 2224.14 54.5 2220.47 54.5C2205.14 54.5 2194.8 58.1667 2189.47 65.5C2184.47 72.8333 2181.97 82.6667 2181.97 95V372H2121.47V95C2121.47 72.3333 2125.14 54.1667 2132.47 40.5C2139.8 26.5 2150.14 16.3333 2163.47 10C2176.8 3.33334 2192.3 0 2209.97 0C2214.97 0 2220.14 0.166671 2225.47 0.5C2231.14 0.833329 2236.47 1.49999 2241.47 2.5Z",fill:"currentColor"}),(0,ie.jsx)("path",{d:"M2330.4 125L2410.9 353L2377.9 415.5L2265.9 125H2330.4ZM2272.4 486.5V436H2308.9C2316.9 436 2323.9 435 2329.9 433C2335.9 431.333 2341.24 428 2345.9 423C2350.9 418 2355.07 410.667 2358.4 401L2460.9 125H2523.9L2402.9 427C2393.9 449.667 2382.57 466.167 2368.9 476.5C2355.24 486.833 2338.24 492 2317.9 492C2309.24 492 2301.07 491.5 2293.4 490.5C2286.07 489.833 2279.07 488.5 2272.4 486.5Z",fill:"currentColor"}),(0,ie.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M226.926 25.1299H310.197C333.783 25.1299 342.32 27.5938 350.948 32.1932C359.576 36.8108 366.326 43.5822 370.941 52.1969C375.556 60.8298 378 69.3715 378 92.9707V176.289C378 199.888 375.537 208.43 370.941 217.063C366.326 225.696 359.558 232.449 350.948 237.066C347.091 239.131 343.244 240.83 338.064 242.047V308.355C338.064 344.802 334.261 357.994 327.162 371.327C320.034 384.66 309.583 395.09 296.285 402.221C282.96 409.353 269.775 413.13 233.349 413.13H104.744C68.3172 413.13 55.1327 409.325 41.8073 402.221C28.4819 395.09 18.0583 384.632 10.9308 371.327C3.80323 358.023 0 344.802 0 308.355V179.706C0 143.259 3.80323 130.067 10.9026 116.734C18.0301 103.401 28.4819 92.9431 41.8073 85.8116C55.1045 78.7082 68.3172 74.9028 104.744 74.9028H159.808C160.841 64.0747 162.996 58.1666 166.165 52.2151C170.78 43.5822 177.547 36.8108 186.175 32.1932C194.785 27.5938 203.34 25.1299 226.926 25.1299ZM184.128 78.1641C184.128 62.7001 196.658 50.1641 212.114 50.1641H324.991C340.448 50.1641 352.978 62.7001 352.978 78.1641V191.096C352.978 206.56 340.448 219.096 324.991 219.096H212.114C196.658 219.096 184.128 206.56 184.128 191.096V78.1641Z",fill:"currentColor"})]}))}));var qi=["className"];function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zi(Object(n),!0).forEach((function(t){Wi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xi(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const Ji=(0,i.memo)((function(e){var t=e.className,n=Xi(e,qi);return(0,ie.jsx)("svg",Vi(Vi({className:t,viewBox:"-4 -4 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),{},{children:(0,ie.jsx)("path",{stroke:"currentColor",d:"M6.5 0.5h0s6 0 6 6v0s0 6 -6 6h0s-6 0 -6 -6v0s0 -6 6 -6"})}))}));var Zi=["className"];function Ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ki(Object(n),!0).forEach((function(t){eo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ki(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function to(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(0,i.memo)((function(e){var t=e.className,n=to(e,Zi);return(0,ie.jsx)("svg",Qi(Qi({className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),{},{children:(0,ie.jsx)("path",{fill:"currentColor",d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"})}))}));var no=["className"];function ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ro(Object(n),!0).forEach((function(t){oo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ao(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const so=(0,i.memo)((function(e){var t=e.className,n=ao(e,no);return(0,ie.jsx)("svg",io(io({className:"icon ".concat(t),width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),{},{children:(0,ie.jsx)("path",{d:"M15 17.5L10 12L15 6.5",stroke:"currentColor",strokeWidth:"1.75"})}))}));var uo=["className"];function co(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?co(Object(n),!0).forEach((function(t){fo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function po(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const ho=(0,i.memo)((function(e){var t=e.className,n=po(e,uo);return(0,ie.jsxs)("svg",lo(lo({className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),{},{children:[(0,ie.jsx)("path",{d:"M8 18.5504L12 14.8899",stroke:"#1E1E1E",strokeWidth:"1.5"}),(0,ie.jsx)("path",{d:"M20.25 11.7523C20.25 14.547 18.092 16.7546 15.5 16.7546C12.908 16.7546 10.75 14.547 10.75 11.7523C10.75 8.95754 12.908 6.75 15.5 6.75C18.092 6.75 20.25 8.95754 20.25 11.7523Z",stroke:"#1E1E1E",strokeWidth:"1.5"})]}))}));var mo=["className"];function vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vo(Object(n),!0).forEach((function(t){yo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _o(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const bo=(0,i.memo)((function(e){var t=e.className,n=_o(e,mo);return(0,ie.jsxs)("svg",go(go({className:t,width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),{},{children:[(0,ie.jsx)("path",{d:"M87.5 48.8281H75V51.1719H87.5V48.8281Z",fill:"black"}),(0,ie.jsx)("path",{d:"M25 48.8281H12.5V51.1719H25V48.8281Z",fill:"black"}),(0,ie.jsx)("path",{d:"M51.1719 75H48.8281V87.5H51.1719V75Z",fill:"black"}),(0,ie.jsx)("path",{d:"M51.1719 12.5H48.8281V25H51.1719V12.5Z",fill:"black"}),(0,ie.jsx)("path",{d:"M77.3433 75.6868L69.4082 67.7517L67.7511 69.4088L75.6862 77.344L77.3433 75.6868Z",fill:"black"}),(0,ie.jsx)("path",{d:"M32.2457 30.5897L24.3105 22.6545L22.6534 24.3117L30.5885 32.2468L32.2457 30.5897Z",fill:"black"}),(0,ie.jsx)("path",{d:"M77.3407 24.3131L75.6836 22.656L67.7485 30.5911L69.4056 32.2483L77.3407 24.3131Z",fill:"black"}),(0,ie.jsx)("path",{d:"M32.2431 69.4074L30.5859 67.7502L22.6508 75.6854L24.3079 77.3425L32.2431 69.4074Z",fill:"black"})]}))}));var xo=function(e){var t=e.label,n=e.slug,r=e.description,i=e.checked,o=e.onChange;return(0,ie.jsxs)("label",{className:"flex hover:text-partner-primary-bg focus-within:text-partner-primary-bg",htmlFor:n,children:[(0,ie.jsxs)("span",{className:"mt-0.5 w-6 h-6 relative inline-block mr-3 align-middle",children:[(0,ie.jsx)("input",{id:n,className:"h-5 w-5 rounded-sm",type:"checkbox",onChange:o,defaultChecked:i}),(0,ie.jsx)(Pi,{className:"absolute components-checkbox-control__checked",style:{width:24,color:"#fff"},role:"presentation"})]}),(0,ie.jsxs)("span",{children:[(0,ie.jsx)("span",{className:"text-base",children:t}),r?(0,ie.jsx)("span",{className:"block pt-1",children:r}):(0,ie.jsx)("span",{})]})]})};function wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(n),!0).forEach((function(t){So(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function So(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oo=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=te(e,t,Eo({dedupingInterval:6e4,refreshInterval:0},r)),o=i.data,a=i.error,s=null!==(n=null==o?void 0:o.data)&&void 0!==n?n:o;return{data:s,loading:!s&&!a,error:a}},To=n(42),jo=n.n(To);function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ro(Object(n),!0).forEach((function(t){No(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function No(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Do,Po,Co=function(e){var t=e.disabled,n=void 0!==t&&t,r=ls().setPage,o=ls((function(e){return e.pages})),a=ls((function(e){return e.currentPageIndex})),s=(0,i.useMemo)((function(){return Array.from(o.values()).map((function(e,t){return ko(ko({},e),{},{pageIndex:t})})).filter((function(e){var t;return null==e||null===(t=e.state())||void 0===t?void 0:t.showInSidebar}))}),[o]),u=(0,i.useMemo)((function(){return s.reduce((function(e,t){return Math.min(e,t.pageIndex)}),1/0)}),[s]);return null==s||!s.length||a<u?null:(0,ie.jsxs)("div",{className:"hidden md:block mt-20",children:[(0,ie.jsx)("h3",{className:"text-sm text-partner-primary-text uppercase",children:(0,re.__)("Steps","extendify")}),(0,ie.jsx)("ul",{children:s.map((function(e){var t,i;return(0,ie.jsx)("li",{className:jo()("text-base",{hidden:e.pageIndex>a,"line-through opacity-60":e.pageIndex<a,"hover:opacity-100 hover:no-underline":!n}),children:(0,ie.jsxs)("button",{className:jo()("bg-transparent p-0 text-partner-primary-text flex items-center",{"cursor-pointer":e.pageIndex<a&&!n}),type:"button",disabled:n,onClick:function(){return r(null==e?void 0:e.pageIndex)},children:[e.pageIndex<a?(0,ie.jsx)(Pi,{className:"text-partner-primary-text h-6 w-6 mr-1"}):(0,ie.jsx)(Ji,{className:"text-partner-primary-text h-6 w-6 mr-1"}),null==e||null===(i=e.state())||void 0===i?void 0:i.title]})},null==e||null===(t=e.state())||void 0===t?void 0:t.title)}))})]})};function Io(e){return function(e){if(Array.isArray(e))return Ao(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ao(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ao(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ao(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uo(Object(n),!0).forEach((function(t){Lo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mo={siteType:{},siteInformation:{title:void 0},feedbackMissingSiteType:"",feedbackMissingGoal:"",siteTypeSearch:[],style:null,pages:[],plugins:[],goals:[]},Go=ci((function(e,t){return Bo(Bo({},Mo),{},{setSiteType:function(t){e({siteType:t})},setSiteInformation:function(n,r){var i=Bo(Bo({},t().siteInformation),{},Lo({},n,r));e({siteInformation:i})},setFeedbackMissingSiteType:function(t){e({feedbackMissingSiteType:t})},setFeedbackMissingGoal:function(t){e({feedbackMissingGoal:t})},has:function(e,n){return!(null==n||!n.id)&&t()[e].some((function(e){return e.id===n.id}))},add:function(n,r){t().has(n,r)||e(Lo({},n,[].concat(Io(t()[n]),[r])))},remove:function(n,r){e(Lo({},n,t()[n].filter((function(e){return e.id!==r.id}))))},reset:function(t){e(Lo({},t,[]))},toggle:function(e,n){t().has(e,n)?t().remove(e,n):t().add(e,n)},setStyle:function(t){e({style:t})},canLaunch:function(){var e,n,r,i,o,a,s,u;return(null===(e=Object.keys(null!==(n=null===(r=t())||void 0===r?void 0:r.siteType)&&void 0!==n?n:{}))||void 0===e?void 0:e.length)>0&&(null===(i=Object.keys(null!==(o=null===(a=t())||void 0===a?void 0:a.style)&&void 0!==o?o:{}))||void 0===i?void 0:i.length)>0&&(null===(s=t())||void 0===s||null===(u=s.pages)||void 0===u?void 0:u.length)>0},resetState:function(){e(Mo)}})}),{name:"Extendify Launch User Selection"}),Yo=yi(Go,{name:"extendify-site-selection",getStorage:function(){return localStorage},partialize:function(e){var t,n,r,i,o,a,s,u,c;return{siteType:null!==(t=null==e?void 0:e.siteType)&&void 0!==t?t:{},siteInformation:null!==(n=null==e?void 0:e.siteInformation)&&void 0!==n?n:{},feedbackMissingSiteType:null!==(r=null==e?void 0:e.feedbackMissingSiteType)&&void 0!==r?r:"",feedbackMissingGoal:null!==(i=null==e?void 0:e.feedbackMissingGoal)&&void 0!==i?i:"",siteTypeSearch:null!==(o=null==e?void 0:e.siteTypeSearch)&&void 0!==o?o:[],style:null!==(a=null==e?void 0:e.style)&&void 0!==a?a:null,pages:null!==(s=null==e?void 0:e.pages)&&void 0!==s?s:[],plugins:null!==(u=null==e?void 0:e.plugins)&&void 0!==u?u:[],goals:null!==(c=null==e?void 0:e.goals)&&void 0!==c?c:[]}}}),$o=null!==(Do=window)&&void 0!==Do&&null!==(Po=Do.extOnbData)&&void 0!==Po&&Po.devbuild?ui(Go):ui(Yo),Ho=function(){var e=ls(),t=e.previousPage,n=e.currentPageIndex,r=e.pages,i=0===n,o=Array.from(r.keys())[n];return(0,ie.jsx)("div",{className:"flex items-center space-x-2",children:(0,ie.jsxs)("div",{className:jo()("flex flex-1",{"justify-end":"welcome"===o,"justify-between":"welcome"!==o}),children:[i||(0,ie.jsxs)("button",{className:"flex items-center px-4 py-3 text-partner-primary-bg font-medium button-focus bg-gray-100 hover:bg-gray-200 focus:bg-gray-200",type:"button",onClick:t,children:[(0,ie.jsx)(so,{className:"h-5 w-5"}),(0,re.__)("Back","extendify")]}),(0,ie.jsx)(Fo,{})]})})},Fo=function(){var e=ls(),t=e.nextPage,n=e.currentPageIndex,r=e.pages,i=ls((function(e){return e.count()})),o=$o((function(e){return e.canLaunch()})),a=n===i-1,s=Array.from(r.keys())[n],u=r.get(s).state();return o&&a?(0,ie.jsx)("button",{className:"px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",onClick:function(){bi.setState({generating:!0})},type:"button",children:(0,re.__)("Launch site","extendify")}):(0,ie.jsxs)("button",{className:"flex items-center px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",onClick:t,disabled:!u.ready,type:"button",children:[(0,re.__)("Next","extendify"),(0,ie.jsx)(Li,{className:"h-5 w-5"})]})},qo=function(e){var t,n,r,i=e.children,o=e.includeNav,a=void 0===o||o;return(0,ie.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,ie.jsxs)("div",{className:"bg-partner-primary-bg text-partner-primary-text py-12 px-10 md:h-screen flex flex-col justify-between md:w-40vw md:max-w-md flex-shrink-0",children:[(0,ie.jsxs)("div",{className:"max-w-prose md:max-w-sm pr-8",children:[(0,ie.jsxs)("div",{className:"md:min-h-48",children:[(null===(t=window.extOnbData)||void 0===t?void 0:t.partnerLogo)&&(0,ie.jsx)("div",{className:"pb-8",children:(0,ie.jsx)("img",{style:{maxWidth:"200px"},src:window.extOnbData.partnerLogo,alt:null!==(n=null===(r=window.extOnbData)||void 0===r?void 0:r.partnerName)&&void 0!==n?n:""})}),i[0]]}),(0,ie.jsx)(Co,{disabled:!a})]}),(0,ie.jsxs)("div",{className:"hidden md:flex items-center space-x-3",children:[(0,ie.jsx)("span",{className:"opacity-70 text-xs",children:(0,re.__)("Powered by","extendify")}),(0,ie.jsxs)("span",{className:"relative",children:[(0,ie.jsx)(Fi,{className:"logo text-partner-primary-text w-28"}),(0,ie.jsx)("span",{className:"absolute -bottom-2 right-3 font-semibold tracking-tight",children:"Launch"})]})]})]}),(0,ie.jsxs)("div",{className:"flex-grow md:h-screen md:overflow-y-scroll",children:[a?(0,ie.jsx)("div",{className:"py-4 sticky top-0 bg-white z-50 max-w-onboarding-content mx-auto px-4 xl:px-0",children:(0,ie.jsx)(Ho,{})}):null,(0,ie.jsx)("div",{className:"mt-8 mb-8 xl:mb-12 flex justify-center max-w-onboarding-content mx-auto px-4 xl:px-0",children:i[1]})]})]})},zo=function(e,t){return ui(ci(t,{name:"Extendify Launch ".concat(e)}))};function Vo(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}var Wo=function(){var e,t=(e=se().mark((function e(){var t;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ps.get("onboarding/goals");case 2:if(t=e.sent,Array.isArray(null==t?void 0:t.data)){e.next=5;break}throw new Error("Goals data is not an array",t);case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Vo(o,r,i,a,s,"next",e)}function s(e){Vo(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),Xo=function(){return{key:"goals"}},Jo=zo("Goals",(function(){return{title:(0,re.__)("Goals","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:function(){var e=$o.getState(),t=e.feedbackMissingGoal,n=e.goals;return!(null!=t&&t.length)&&0===(null==n?void 0:n.length)}}}));function Zo(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}var Ko=zo("Welcome",(function(){return{title:(0,re.__)("Welcome","extendify"),default:void 0,ready:!0,isDefault:function(){return!0}}}));function Qo(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}var ea=function(){var e,t=(e=se().mark((function e(){var t;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Es("blogname");case 2:return t=e.sent,e.abrupt("return",{title:t});case 4:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Qo(o,r,i,a,s,"next",e)}function s(e){Qo(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),ta=function(){return{key:"site-info"}},na=zo("Site Title",(function(e,t){return{title:(0,re.__)("Site Title","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:function(){var e,n;return t().default===(null===(e=$o.getState())||void 0===e||null===(n=e.siteInformation)||void 0===n?void 0:n.title)}}}));const ra=wp.blockEditor,ia=wp.blocks;var oa=function(e){var t,n;return[null==e||null===(t=e.template)||void 0===t?void 0:t.code,null==e||null===(n=e.template)||void 0===n?void 0:n.code2].filter(Boolean).join("")};function aa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aa(Object(n),!0).forEach((function(t){ua(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ua(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return la(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return la(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function la(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fa(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}var da=function(){var e,t=(e=se().mark((function e(t){var n,r;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return","{}");case 2:return e.next=4,xs(JSON.stringify(t));case 4:return r=e.sent,e.abrupt("return",null!==(n=null==r?void 0:r.styles)&&void 0!==n?n:"{}");case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){fa(o,r,i,a,s,"next",e)}function s(e){fa(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),pa=function(e){var t,n,r=e.style,o=e.onSelect,a=e.blockHeight,s=e.context,u=e.active,c=void 0!==u&&u,l=e.onHover,f=void 0===l?null:l,d=$o((function(e){return e.siteType})),p=function(){var e=(0,i.useRef)(!1);return(0,i.useEffect)((function(){return e.current=!0,function(){return e.current=!1}})),e}(),h=ca((0,i.useState)(""),2),m=h[0],v=h[1],g=ca((0,i.useState)(!1),2),y=g[0],_=g[1],b=ca((0,i.useState)(!1),2),x=b[0],w=b[1],E=ca((0,i.useState)(null),2),S=E[0],O=E[1],T=ca((0,i.useState)(),2),j=T[0],R=T[1],k=(0,i.useRef)(null),N=(0,i.useRef)(null),D=(0,i.useRef)(null),P=(0,i.useRef)(null),C=(0,i.useRef)(!1),I=Oo(x&&j?j:null,da).data,A=Oo("variations",Ns).data,U=(0,i.useMemo)((function(){return(0,ia.rawHandler)({HTML:(e=m,e.replace(/\w+:\/\/\S*(w=(\d*))&\w+\S*"/g,(function(e,t,n){return e.replace(t,"w="+Math.floor(Number(n))+"&q=10")})))});var e}),[m]),B=(0,i.useMemo)((function(){return I?(0,ra.transformStyles)([{css:I}],".editor-styles-wrapper"):null}),[I]);return(0,i.useLayoutEffect)((function(){if(x&&s.measure){var e="".concat(s.type,"-").concat(s.detail);if(y||C.current){var t=performance.measure(e,{start:e,detail:{context:s,extendify:!0}});C.current=t.duration;var n,r=new URLSearchParams(window.location.search);null!=r&&r.has("performance")&&console.info("🚀 ".concat((n=s.type,n.charAt(0).toUpperCase()+n.slice(1).toLowerCase())," (").concat(s.detail,") in ").concat(t.duration.toFixed(),"ms"))}else performance.mark(e)}}),[y,s,x]),(0,i.useEffect)((function(){if(null!=A&&A.length){var e=A.find((function(e){return e.title===r.label}));R(e)}}),[r,A]),(0,i.useEffect)((function(){if(I&&null!=r&&r.code){var e=[null==r?void 0:r.headerCode,null==r?void 0:r.code,null==r?void 0:r.footerCode].filter(Boolean).join("").replace(/<!-- wp:navigation[.\S\s]*?\/wp:navigation -->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Home | About | Contact</p >\x3c!-- /wp:paragraph --\x3e').replace(/<!-- wp:navigation.*\/-->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Home | About | Contact</p >\x3c!-- /wp:paragraph --\x3e');v(e)}}),[null==d?void 0:d.slug,I,r]),(0,i.useEffect)((function(){var e,t;if(N.current&&y){var n=k.current,r=n.offsetWidth/1400,i=N.current.contentDocument.body;null!=i&&i.style&&(i.style.transitionProperty="all",i.style.top=0);var o=function(){var t,n;if(i.offsetHeight){var o=(null!==(t=null==D||null===(n=D.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==t?t:a)-32,s=i.getBoundingClientRect().height-o/r;i.style.transitionDuration=Math.max(2*s,3e3)+"ms",e=window.requestAnimationFrame((function(){i.style.top=-1*Math.max(0,s)+"px"}))}},s=function(){var e,n;if(i.offsetHeight){var o=(null!==(e=null==D||null===(n=D.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==e?e:a)-32,s=i.offsetHeight-o/r;i.style.transitionDuration=s+"ms",t=window.requestAnimationFrame((function(){i.style.top=0}))}};return n.addEventListener("focus",o),n.addEventListener("mouseenter",o),n.addEventListener("blur",s),n.addEventListener("mouseleave",s),function(){window.cancelAnimationFrame(e),window.cancelAnimationFrame(t),n.removeEventListener("focus",o),n.removeEventListener("mouseenter",o),n.removeEventListener("blur",s),n.removeEventListener("mouseleave",s)}}}),[a,y]),(0,i.useEffect)((function(){if(null!=U&&U.length&&x){var e,t=function(){var t,n,r;null!==(t=e.contentDocument)&&void 0!==t&&t.getElementById("ext-tj")||(null===(n=e.contentDocument)||void 0===n||null===(r=n.head)||void 0===r||r.insertAdjacentHTML("beforeend",'<style id="ext-tj">'.concat(B,"</style>")));N.current=e,setTimeout((function(){p.current&&_(!0)}),100)},n=new MutationObserver((function(){(e=k.current.querySelector("iframe[title]")).addEventListener("load",t),setTimeout((function(){t()}),2e3),n.disconnect()}));return n.observe(k.current,{attributes:!1,childList:!0,subtree:!1}),function(){var r;n.disconnect(),null===(r=e)||void 0===r||r.removeEventListener("load",t)}}}),[U,B,p,x]),(0,i.useEffect)((function(){return P.current||(P.current=new IntersectionObserver((function(e){e[0].isIntersecting&&w(!0)}))),P.current.observe(D.current),function(){P.current.disconnect()}}),[]),(0,ie.jsxs)(ie.Fragment,{children:[y&&m?null:(0,ie.jsx)("div",{className:"absolute inset-0 z-20 bg-gray-50 flex items-center justify-center",children:(0,ie.jsx)(bo,{className:"spin w-8"})}),(0,ie.jsxs)("div",{ref:D,role:o?"button":void 0,tabIndex:o?0:void 0,"aria-label":o?(0,re.__)("Press to select","extendify"):void 0,className:jo()("group w-full overflow-hidden bg-transparent z-10",{"relative min-h-full":y,"absolute opacity-0":!y,"button-focus button-card p-2":o,"ring-partner-primary-bg ring-offset-2 ring-offset-white ring-wp":c}),onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&o&&o(sa(sa({},r),{},{variation:j}))},onMouseEnter:function(){f&&O(f)},onMouseLeave:function(){S&&(S(),O(null))},onClick:o?function(){return o(sa(sa({},r),{},{variation:j}))}:function(){},children:[null!==(t=window)&&void 0!==t&&null!==(n=t.extOnbData)&&void 0!==n&&n.devbuild?(0,ie.jsxs)("div",{className:"-m-px absolute bg-gray-900 border border-t border-white bottom-0 group-hover:opacity-100 left-0 opacity-0 p-1 px-4 text-left text-sm text-white z-30 transition duration-300",children:[null==r?void 0:r.label," - ",Number(C.current).toFixed(2),"ms"]}):null,(0,ie.jsx)("div",{ref:k,className:"relative rounded-lg",children:x?(0,ie.jsx)(ra.BlockPreview,{blocks:U,viewportWidth:1400,live:!1}):null})]})]})};function ha(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ma(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ha(Object(n),!0).forEach((function(t){va(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ha(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function va(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ga=function(e){return Ti(e)},ya=function(e){var t=e.page,n=e.blockHeight,r=e.required,i=void 0!==r&&r,o=e.displayOnly,a=void 0!==o&&o,s=e.title,u=void 0===s?"":s,c=$o(),l=c.siteType,f=c.style,d=c.toggle,p=c.has,h="home"===(null==t?void 0:t.slug),m=Oo({siteType:l.slug,layoutType:t.slug,baseLayout:h?null==f?void 0:f.homeBaseLayout:null,kit:"home"!==t.slug?null==f?void 0:f.kit:null},ga).data;return a?(0,ie.jsxs)("div",{className:"text-base p-2 bg-transparent overflow-hidden rounded-lg border border-gray-100",style:{height:n},children:[u&&(0,ie.jsx)("div",{className:"p-3 pb-0 bg-white text-left",children:u}),(0,ie.jsx)(_a,{page:t,measure:!1,blockHeight:n,style:ma(ma({},f),{},{code:oa({template:m})})},null==f?void 0:f.recordId)]}):(0,ie.jsxs)("div",{role:"button",tabIndex:0,"aria-label":(0,re.__)("Press to select","extendify"),disabled:i,className:"text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100 button-focus",onClick:function(){return i||d("pages",t)},title:i&&u?(0,re.sprintf)((0,re.__)("%s page is required","extendify"),u):(0,re.sprintf)((0,re.__)("Toggle %s page","extendify"),u),onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&(i||d("pages",t))},children:[(0,ie.jsxs)("div",{className:"border-gray-100 border-b-0 min-w-sm z-30 relative bg-white pt-3 px-3 pb-1.5 flex justify-between items-center",children:[u&&(0,ie.jsxs)("div",{className:jo()("flex items-center",{"text-gray-700":!p("pages",t)}),children:[(0,ie.jsx)("span",{className:"text-left",children:u}),i&&(0,ie.jsx)("span",{className:"w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"})]}),p("pages",t)?(0,ie.jsx)("div",{className:jo()("w-5 h-5 rounded-sm",{"bg-gray-700":i,"bg-partner-primary-bg":!i}),children:(0,ie.jsx)(Pi,{className:"text-white w-5"})}):(0,ie.jsx)("div",{className:jo()("border w-5 h-5 rounded-sm",{"border-gray-700":i,"border-partner-primary-bg":!i})})]}),(0,ie.jsx)("div",{className:"p-2 relative",style:{height:n-44},children:(0,ie.jsx)(_a,{page:t,blockHeight:n,style:ma(ma({},f),{},{code:oa({template:m})})},null==f?void 0:f.recordId)})]})},_a=function(e){var t=e.page,n=e.style,r=e.measure,o=void 0===r||r,a=e.blockHeight,s=void 0!==a&&a,u=(0,i.useMemo)((function(){return{type:"page",detail:t.slug,measure:o}}),[t,o]);return(0,ie.jsx)(pa,{style:n,context:u,blockHeight:s})};function ba(e){return ba="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ba(e)}function xa(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Sa(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function wa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||Sa(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ea(e){return function(e){if(Array.isArray(e))return Oa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Sa(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sa(e,t){if(e){if("string"==typeof e)return Oa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oa(e,t):void 0}}function Oa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ta(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function ja(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ta(o,r,i,a,s,"next",e)}function s(e){Ta(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Ra=function(){var e=ja(se().mark((function e(){var t,n,r,i,o,a;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ps.get("onboarding/layout-types");case 2:if(r=e.sent,null!=(i=null!==(t=null==r?void 0:r.data)&&void 0!==t?t:[])&&i.length){e.next=6;break}throw new Error("Error fetching pages");case 6:return o=i[0],a=null===(n=i.slice(1))||void 0===n?void 0:n.sort((function(e,t){return e.title>t.title?1:-1})),e.abrupt("return",[o].concat(Ea(null!=a?a:[])));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ka=function(){return{key:"layout-types"}},Na=zo("Pages",(function(e,t){return{title:(0,re.__)("Pages","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:function(){var e,n;return(null===(e=$o.getState().pages)||void 0===e?void 0:e.length)===(null===(n=t().default)||void 0===n?void 0:n.length)}}}));function Da(e){return function(e){if(Array.isArray(e))return Ba(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ua(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pa(e){return Pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pa(e)}function Ca(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ua(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ia(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function Aa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||Ua(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ua(e,t){if(e){if("string"==typeof e)return Ba(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ba(e,t):void 0}}function Ba(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var La=function(e){return Oi(e)},Ma=function(e){var t,n,r,i,o;return{key:"site-style",siteType:null!==(n=null===(r=e=null!==(t=e)&&void 0!==t?t:null==$o?void 0:$o.getState().siteType)||void 0===r?void 0:r.slug)&&void 0!==n?n:"default",styles:null!==(i=null===(o=e)||void 0===o?void 0:o.styles)&&void 0!==i?i:[]}},Ga=zo("Design",(function(e,t){return{title:(0,re.__)("Design","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:function(){var e,n;return(null===(e=$o.getState().style)||void 0===e?void 0:e.slug)===(null===(n=t().default)||void 0===n?void 0:n.slug)}}})),Ya=function(e){var t,n,r=e.style,o=(0,i.useCallback)((function(e){$o.getState().setStyle(e)}),[]),a=(0,i.useMemo)((function(){return{type:"style",detail:r.slug,measure:!0}}),[r]);return(0,ie.jsx)("div",{className:"relative",style:{height:497,width:352},children:(0,ie.jsx)(pa,{style:r,context:a,onSelect:o,active:(null===(t=$o.getState())||void 0===t||null===(n=t.style)||void 0===n?void 0:n.slug)===r.slug,blockHeight:497})})},$a=function(){return ps.get("onboarding/suggested-plugins")},Ha=function(){return{key:"plugins"}},Fa=function(){var e,t=Oo(Ha,$a).data,n=$o(),r=n.goals,o=n.add,a=n.toggle,s=n.remove,u=(0,i.useMemo)((function(){return null==r||!r.length||!(null!=r&&r.find((function(e){return null==t?void 0:t.some((function(t){var n;return null==t||null===(n=t.goals)||void 0===n?void 0:n.includes(null==e?void 0:e.slug)}))})))}),[r,t]),c=(0,i.useCallback)((function(e){if(u)return!0;var t=r.map((function(e){return e.slug}));return null==e?void 0:e.goals.find((function(e){return t.includes(e)}))}),[r,u]);return(0,i.useEffect)((function(){var e;null==t||t.forEach((function(e){return s("plugins",e)})),u||null==t||null===(e=t.filter(c))||void 0===e||e.forEach((function(e){return o("plugins",e)}))}),[t,o,u,c,s]),(0,ie.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:null==t||null===(e=t.filter(c))||void 0===e?void 0:e.map((function(e){return(0,ie.jsx)("div",{children:(0,ie.jsx)(xo,{label:e.name,slug:e.wordpressSlug,description:e.description,checked:!u,onChange:function(){return a("plugins",e)}})},e.id)}))})},qa=zo("Site Summary",(function(){return{title:(0,re.__)("Summary","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:function(){return!0}}}));function za(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function Va(e){return function(e){if(Array.isArray(e))return Ja(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Xa(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||Xa(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xa(e,t){if(e){if("string"==typeof e)return Ja(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ja(e,t):void 0}}function Ja(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Za,Ka,Qa,es,ts,ns=function(){return ps.get("onboarding/site-types")},rs=function(){return{key:"site-types"}},is=zo("Site Industry",(function(e,t){return{title:(0,re.__)("Site Industry","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:function(){var e,n,r;return(null===(e=$o.getState())||void 0===e||null===(n=e.siteType)||void 0===n?void 0:n.slug)===(null===(r=t().default)||void 0===r?void 0:r.slug)}}})),os=function(e){var t=e.option,n=e.selectSiteType,r=(0,i.useRef)(0);return(0,ie.jsxs)("button",{onClick:function(){n(t)},onMouseEnter:function(){window.clearTimeout(r.current),r.current=window.setTimeout((function(){var e=function(){return Ma(t)};z(e,(function(t){return null!=t&&t.length?t:La(e())}))}),100)},onMouseLeave:function(){window.clearTimeout(r.current)},className:"flex border border-gray-800 hover:text-partner-primary-bg focus:text-partner-primary-bg items-center justify-between mb-3 p-4 py-3 relative w-full button-focus",children:[(0,ie.jsx)("span",{className:"text-left",children:t.title}),(0,ie.jsx)(Li,{})]})},as=[["welcome",{component:function(){var e=ls((function(e){return e.nextPage})),t=(0,i.useRef)(null);(0,i.useEffect)((function(){var e=requestAnimationFrame((function(){return t.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[t]);var n=function(){var e,t=(e=se().mark((function e(t){return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,ws("extendify_onboarding_skipped",(new Date).toISOString());case 3:location.href=window.extOnbData.adminUrl;case 4:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Zo(o,r,i,a,s,"next",e)}function s(e){Zo(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return(0,ie.jsxs)(qo,{children:[(0,ie.jsxs)("div",{children:[(0,ie.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,re.__)("Welcome to Your WordPress Site","extendify")}),(0,ie.jsx)("p",{className:"text-base opacity-70 mb-0",children:(0,re.__)("Design and launch your site with this guided experience, or head right into the WordPress dashboard if you know your way around.","extendify")})]}),(0,ie.jsxs)("div",{children:[(0,ie.jsx)("h2",{className:"text-lg m-0 mb-4 text-gray-900",children:(0,re.__)("Pick one:","extendify")}),(0,ie.jsxs)("div",{className:"xl:flex xl:gap-x-6",children:[(0,ie.jsxs)("button",{onClick:e,ref:t,type:"button","aria-label":(0,re.__)("Press to continue","extendify"),className:"button-card max-w-sm button-focus mb-6 xl:mb-0",children:[(0,ie.jsx)("div",{className:"bg-gray-100 w-full h-64 bg-cover bg-center border border-gray-200",style:{backgroundImage:"url(".concat(window.extOnbData.pluginUrl,"/public/assets/extendify-preview.png)")}}),(0,ie.jsx)("p",{className:"font-bold text-lg text-gray-900",children:"Extendify Launch"}),(0,ie.jsx)("p",{className:"text-base text-gray-900",children:(0,re.__)("Create a super-fast, beautiful, and fully customized site in minutes. Simply answer a few questions and pick a design to get started. Then, everything can be fully customized in the core WordPress editor.","extendify")})]}),(0,ie.jsxs)("a",{onClick:function(e){return n(e)},className:"button-card max-w-sm button-focus",children:[(0,ie.jsx)("div",{className:"bg-gray-100 w-full h-64 bg-cover bg-center border border-gray-200",style:{backgroundImage:"url(".concat(window.extOnbData.pluginUrl,"/public/assets/wp-admin.png)")}}),(0,ie.jsx)("p",{className:"font-bold text-lg text-gray-900",children:(0,re.__)("WordPress Dashboard","extendify")}),(0,ie.jsx)("p",{className:"text-base text-gray-900",children:(0,re.__)("Are you a WordPress developer and want to go straight to the admin dashboard?","extendify")})]})]})]})]})},state:Ko.getState}],["goals",{component:function(){var e=Oo(Xo,Wo),t=e.data,n=e.loading,r=$o(),o=r.toggle,a=r.has,s=$o(),u=s.feedbackMissingGoal,c=s.setFeedbackMissingGoal,l=ls((function(e){return e.nextPage})),f=(0,i.useRef)();return(0,i.useEffect)((function(){Jo.setState({ready:!n})}),[n]),(0,i.useEffect)((function(){if(f.current){var e=requestAnimationFrame((function(){return f.current.querySelector("input").focus()}));return function(){return cancelAnimationFrame(e)}}}),[f]),(0,ie.jsxs)(qo,{children:[(0,ie.jsxs)("div",{children:[(0,ie.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,re.__)("What do you want to accomplish with this new site?","extendify")}),(0,ie.jsx)("p",{className:"text-base opacity-70 mb-0",children:(0,re.__)("You can change these later.","extendify")})]}),(0,ie.jsxs)("div",{className:"w-full",children:[(0,ie.jsx)("h2",{className:"text-lg m-0 mb-4 text-gray-900",children:(0,re.__)("Select the goals relevant to your site:","extendify")}),n?(0,ie.jsx)("p",{children:(0,re.__)("Loading...","extendify")}):(0,ie.jsxs)("form",{onSubmit:function(e){e.preventDefault(),l()},className:"w-full grid lg:grid-cols-2 gap-3 goal-select",children:[(0,ie.jsx)("input",{type:"submit",className:"hidden"}),null==t?void 0:t.map((function(e,t){return(0,ie.jsx)("div",{className:"border border-gray-800 rounded-lg p-4",ref:0===t?f:void 0,children:(0,ie.jsx)(xo,{label:e.title,checked:a("goals",e),onChange:function(){o("goals",e)}})},e.id)}))]}),!n&&(0,ie.jsxs)("div",{className:"max-w-onboarding-sm mx-auto",children:[(0,ie.jsx)("h2",{className:"text-lg mt-12 mb-4 text-gray-900",children:(0,re.__)("Don't see what you're looking for?","extendify")}),(0,ie.jsx)("div",{className:"search-panel flex items-center justify-center relative",children:(0,ie.jsx)("input",{type:"text",className:"w-full bg-gray-100 h-12 pl-4 input-focus rounded-none ring-offset-0 focus:bg-white",value:u,onChange:function(e){return c(e.target.value)},placeholder:(0,re.__)("Add your goals...","extendify")})})]})]})]})},fetcher:Wo,fetchData:Xo,state:Jo.getState}],["site-type",{component:function(){var e=$o((function(e){return e.siteType})),t=$o((function(e){return e.feedbackMissingSiteType})),n=Wa((0,i.useState)([]),2),r=n[0],o=n[1],a=Wa((0,i.useState)(""),2),s=a[0],u=a[1],c=Wa((0,i.useState)(!0),2),l=c[0],f=c[1],d=(0,i.useRef)(null),p=Oo(rs,ns),h=p.data,m=p.loading;(0,i.useEffect)((function(){is.setState({ready:!m})}),[m]),(0,i.useEffect)((function(){var e=requestAnimationFrame((function(){var e;return null===(e=d.current)||void 0===e?void 0:e.focus()}));return function(){return cancelAnimationFrame(e)}}),[d]),(0,i.useEffect)((function(){if(!(m||null!=e&&e.slug)){var t=null==h?void 0:h.find((function(e){return"default"===e.slug}));if(t){var n={label:t.title,recordId:t.id,slug:t.slug};$o.getState().setSiteType(n),is.setState({default:n})}}}),[m,null==e?void 0:e.slug,h]),(0,i.useEffect)((function(){m||((null==s?void 0:s.length)>0?o(null==h?void 0:h.filter((function(e){var t=e.title,n=e.keywords,r=null==s?void 0:s.toLowerCase();return!r||(t.toLowerCase().indexOf(r)>-1||!(null==n||!n.length)&&n.find((function(e){return e.toLowerCase().indexOf(r)>-1})))}))):(o(null==h?void 0:h.filter((function(e){return e.featured}))),f(!0)))}),[h,s,m]),(0,i.useEffect)((function(){m||o(l?h.filter((function(e){return e.featured})):h.sort((function(e,t){return e.title.localeCompare(t.title)})))}),[h,l,m]),(0,i.useEffect)((function(){if(s){var e=setTimeout((function(){$o.setState({siteTypeSearch:[].concat(Va($o.getState().siteTypeSearch),[s])})}),500);return function(){return clearTimeout(e)}}}),[s]);var v=function(){var e,t=(e=se().mark((function e(t){return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $o.getState().setSiteType({label:t.title,recordId:t.id,slug:t.slug,styles:t.styles}),e.next=3,ws("extendify_siteType",t);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){za(o,r,i,a,s,"next",e)}function s(e){za(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return(0,ie.jsxs)(qo,{children:[(0,ie.jsxs)("div",{children:[(0,ie.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,re.__)("What is your site about?","extendify")}),(0,ie.jsx)("p",{className:"text-base opacity-70 mb-0",children:(0,re.__)("Search for your site industry.","extendify")})]}),(0,ie.jsxs)("div",{className:"w-full relative max-w-onboarding-sm mx-auto",children:[(0,ie.jsxs)("div",{className:"sticky bg-white top-10 z-40 pt-9 pb-3 mb-2",children:[(0,ie.jsxs)("div",{className:"mx-auto flex justify-between mb-4",children:[(0,ie.jsx)("h2",{className:"text-lg m-0 text-gray-900",children:(0,re.__)("Choose an industry","extendify")}),(null==s?void 0:s.length)>0?null:(0,ie.jsx)("button",{type:"button",className:"bg-transparent hover:text-partner-primary-bg p-0 text-partner-primary-bg text-xs underline cursor-pointer",onClick:function(){var e;f((function(e){return!e})),null===(e=d.current)||void 0===e||e.focus()},children:l?(0,re.sprintf)((0,re.__)("Show all %s","extendify"),m?"...":h.length):(0,re.__)("Show less","extendify")})]}),(0,ie.jsxs)("div",{className:"mx-auto search-panel flex items-center justify-center relative mb-6",children:[(0,ie.jsx)("input",{ref:d,type:"text",className:"w-full bg-gray-100 h-12 pl-4 input-focus rounded-none ring-offset-0 focus:bg-white",value:s,onChange:function(e){return u(e.target.value)},placeholder:(0,re.__)("Search...","extendify")}),(0,ie.jsx)(ho,{className:"icon-search"})]}),m&&(0,ie.jsx)("p",{children:(0,re.__)("Loading...","extendify")})]}),(null==r?void 0:r.length)>0&&(0,ie.jsx)("div",{className:"relative",children:r.map((function(e){return(0,ie.jsx)(os,{selectSiteType:v,option:e},e.id)}))}),!m&&0===(null==r?void 0:r.length)&&(0,ie.jsxs)("div",{className:"mx-auto w-full",children:[(0,ie.jsxs)("div",{className:"flex items-center justify-between uppercase",children:[(0,re.__)("No Results","extendify"),(0,ie.jsx)("button",{type:"button",className:"bg-transparent hover:text-partner-primary-bg p-0 text-partner-primary-bg text-xs underline cursor-pointer",onClick:function(){var e;u(""),null===(e=d.current)||void 0===e||e.focus()},children:(0,re.sprintf)((0,re.__)("Show all %s","extendify"),m?"...":h.length)})]}),(0,ie.jsx)("h2",{className:"text-lg mt-12 mb-4 text-gray-900",children:(0,re.__)("Don't see what you're looking for?","extendify")}),(0,ie.jsx)("div",{className:"search-panel flex items-center justify-center relative",children:(0,ie.jsx)("input",{type:"text",className:"w-full bg-gray-100 h-12 pl-4 input-focus rounded-none ring-offset-0 focus:bg-white",value:t,onChange:function(e){return $o.getState().setFeedbackMissingSiteType(e.target.value)},placeholder:(0,re.__)("Describe your site...","extendify")})})]})]})]})},fetcher:ns,fetchData:rs,state:is.getState}],["style",{component:function(){var e,t=$o((function(e){return e.siteType})),n=Oo(Ma,La),r=n.data,o=n.loading,a=(0,i.useRef)(!1),s=(0,i.useRef)(),u=function(){var e=(0,i.useRef)(!1);return(0,i.useLayoutEffect)((function(){return e.current=!0,function(){return e.current=!1}})),e}(),c=Aa((0,i.useState)([]),2),l=c[0],f=c[1];return(0,i.useEffect)((function(){Ga.setState({ready:!o})}),[o]),(0,i.useEffect)((function(){var e;null!=r&&r.length&&(e=se().mark((function e(){var t,n,i,o;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ca(r),e.prev=1,i=se().mark((function e(){var t;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.value,u.current){e.next=3;break}return e.abrupt("return",{v:void 0});case 3:return f((function(e){return[].concat(Da(e),[t])})),e.next=6,new Promise((function(e){return setTimeout(e,1e3)}));case 6:case"end":return e.stop()}}),e)})),t.s();case 4:if((n=t.n()).done){e.next=11;break}return e.delegateYield(i(),"t0",6);case 6:if("object"!==Pa(o=e.t0)){e.next=9;break}return e.abrupt("return",o.v);case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),t.e(e.t1);case 16:return e.prev=16,t.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,13,16,19]])})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ia(o,r,i,a,s,"next",e)}function s(e){Ia(o,r,i,a,s,"throw",e)}a(void 0)}))})()}),[r,u]),(0,i.useEffect)((function(){null!=l&&l.length&&!$o.getState().style&&($o.getState().setStyle(l[0]),Ga.setState({default:l[0]}))}),[l]),(0,i.useEffect)((function(){var e,t;null!=l&&l.length&&!a.current&&(a.current=!0,null==s||null===(e=s.current)||void 0===e||null===(t=e.querySelector("[role=button]"))||void 0===t||t.focus())}),[l]),(0,ie.jsxs)(qo,{children:[(0,ie.jsxs)("div",{children:[(0,ie.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,re.sprintf)((0,re.__)("Now pick a design for your new %s site.","extendify"),null==t||null===(e=t.label)||void 0===e?void 0:e.toLowerCase())}),(0,ie.jsx)("p",{className:"text-base opacity-70 mb-0",children:(0,re.__)("You can personalize this later.","extendify")})]}),(0,ie.jsxs)("div",{className:"w-full",children:[(0,ie.jsx)("h2",{className:"text-lg m-0 mb-4 text-gray-900",children:o?(0,re.__)("Please wait a moment while we generate style previews...","extendify"):(0,re.__)("Pick your style","extendify")}),(0,ie.jsxs)("div",{ref:s,className:"flex gap-6 flex-wrap justify-center",children:[null==l?void 0:l.map((function(e){return(0,ie.jsx)(Ya,{style:e},e.recordId)})),null==r?void 0:r.slice(null==l?void 0:l.length).map((function(e){return(0,ie.jsx)("div",{style:{height:497,width:352},className:"relative",children:(0,ie.jsx)("div",{className:"bg-gray-50 h-full w-full flex items-center justify-center",children:(0,ie.jsx)(bo,{className:"spin w-8"})})},e.slug)}))]})]})]})},state:Ga.getState}],["pages",{component:function(){var e=Oo(ka,Ra).data,t=wa((0,i.useState)([]),2),n=t[0],r=t[1],o=$o(),a=o.add,s=o.goals,u=o.reset,c=function(){var e=(0,i.useRef)(!1);return(0,i.useEffect)((function(){return e.current=!0,function(){return e.current=!1}})),e}();return(0,i.useEffect)((function(){(null==n?void 0:n.length)===(null==e?void 0:e.length)&&Na.setState({ready:!0})}),[null==e?void 0:e.length,null==n?void 0:n.length]),(0,i.useEffect)((function(){if(null!=e&&e.length){var t=e.filter((function(e){var t,n,r;return null==s||!s.length||(null==e||null===(t=e.goals)||void 0===t||!t.length||(null===(n=null==e||null===(r=e.goals)||void 0===r?void 0:r.some((function(e){return s.some((function(t){return e==t.id}))})))||void 0===n||n))}));ja(se().mark((function e(){var n,i,o,a;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=xa(t),e.prev=1,o=se().mark((function e(){var t;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.value,c.current){e.next=3;break}return e.abrupt("return",{v:void 0});case 3:return r((function(e){return[].concat(Ea(e),[t])})),e.next=6,new Promise((function(e){return setTimeout(e,100)}));case 6:case"end":return e.stop()}}),e)})),n.s();case 4:if((i=n.n()).done){e.next=11;break}return e.delegateYield(o(),"t0",6);case 6:if("object"!==ba(a=e.t0)){e.next=9;break}return e.abrupt("return",a.v);case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:Na.setState({ready:!0});case 20:case"end":return e.stop()}}),e,null,[[1,13,16,19]])})))()}}),[e,s,c]),(0,i.useEffect)((function(){u("pages"),null==n||n.map((function(e){return a("pages",e)})),Na.setState({default:n})}),[n,a,u]),(0,ie.jsxs)(qo,{children:[(0,ie.jsxs)("div",{children:[(0,ie.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,re.__)("What pages do you want on this site?","extendify")}),(0,ie.jsx)("p",{className:"text-base opacity-70 mb-0",children:(0,re.__)("You may add more later","extendify")})]}),(0,ie.jsxs)("div",{className:"w-full",children:[(0,ie.jsx)("h2",{className:"text-lg m-0 mb-4 text-gray-900",children:(0,re.__)("Pick the pages you'd like to add to your site","extendify")}),(0,ie.jsx)("div",{className:"flex gap-6 flex-wrap justify-center",children:null==n?void 0:n.map((function(e){if("home"!==e.slug)return(0,ie.jsx)("div",{className:"relative",style:{height:541,width:352},children:(0,ie.jsx)(ya,{required:"home"===(null==e?void 0:e.slug),page:e,title:null==e?void 0:e.title,blockHeight:541})},e.id)}))})]})]})},fetcher:Ra,fetchData:ka,state:Na.getState}],["site-title",{component:function(){var e,t=$o(),n=t.siteInformation,r=t.setSiteInformation,o=(0,i.useRef)(null),a=ls((function(e){return e.nextPage})),s=Oo(ta,ea).data;return(0,i.useEffect)((function(){var e=requestAnimationFrame((function(){return o.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[o]),(0,i.useEffect)((function(){null!=s&&s.title&&void 0===(null==n?void 0:n.title)&&(r("title",s.title),na.setState({default:s.title})),(null!=s&&s.title||null!=n&&n.title)&&na.setState({ready:!0})}),[s,r,n]),(0,ie.jsxs)(qo,{children:[(0,ie.jsxs)("div",{children:[(0,ie.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,re.__)("What's the name of your new site?","extendify")}),(0,ie.jsx)("p",{className:"text-base opacity-70 mb-0",children:(0,re.__)("You can change this later.","extendify")})]}),(0,ie.jsx)("div",{className:"w-full max-w-onboarding-sm mx-auto",children:(0,ie.jsxs)("form",{onSubmit:function(e){e.preventDefault(),a()},children:[(0,ie.jsx)("label",{htmlFor:"extendify-site-title-input",className:"block text-lg m-0 mb-4 font-semibold text-gray-900",children:(0,re.__)("What's the name of your site?","extendify")}),(0,ie.jsx)("div",{className:"mb-8",children:(0,ie.jsx)("input",{autoComplete:"off",ref:o,type:"text",name:"site-title-input",id:"extendify-site-title-input",className:"w-96 max-w-full border h-12 input-focus",value:null!==(e=null==n?void 0:n.title)&&void 0!==e?e:"",onChange:function(e){r("title",e.target.value)},placeholder:(0,re.__)("Enter your preferred site title...","extendify")})})]})})]})},fetcher:ea,fetchData:ta,state:na.getState}],["confirmation",{component:function(){var e=$o(),t=e.siteType,n=e.style,r=e.pages,i=e.goals,o=ls((function(e){return e.setPage}));return(0,ie.jsxs)(qo,{children:[(0,ie.jsxs)("div",{children:[(0,ie.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,re.__)("Let's launch your site!","extendify")}),(0,ie.jsx)("p",{className:"text-base mb-0",children:(0,re.__)("Review your site configuration.","extendify")})]}),(0,ie.jsx)("div",{className:"w-full",children:(0,ie.jsxs)("div",{className:"flex flex-col gap-y-12",children:[(0,ie.jsxs)("div",{className:"block",children:[(0,ie.jsx)("h2",{className:"text-lg m-0 mb-4 text-gray-900",children:(0,re.__)("Design","extendify")}),null!=n&&n.label?(0,ie.jsxs)("div",{className:"overflow-hidden rounded-lg relative",children:[(0,ie.jsx)("span",{"aria-hidden":"true",className:"absolute top-0 bottom-0 left-3/4 right-0 z-40 bg-gradient-to-l from-white pointer-events-none"}),r.length>0&&(0,ie.jsx)("div",{className:"flex justify-center lg:justify-start w-full overflow-y-scroll lg:pr-52",children:(0,ie.jsx)("div",{className:"flex flex-col lg:flex-row lg:flex-no-wrap gap-4",children:null==r?void 0:r.map((function(e){return(0,ie.jsx)("div",{className:"relative pointer-events-none",style:{height:360,width:255},children:(0,ie.jsx)(ya,{displayOnly:!0,page:e,blockHeight:356})},e.id)}))})})]}):(0,ie.jsx)("button",{onClick:function(){return o("style")},className:"bg-transparent text-partner-primary underline text-base cursor-pointer",children:(0,re.__)("Press to change the style","extendify")})]}),(0,ie.jsxs)("div",{className:"block",children:[(0,ie.jsx)("h2",{className:"text-lg m-0 mb-4",children:(0,re.__)("Industry","extendify")}),null!=t&&t.label?(0,ie.jsxs)("div",{className:"flex items-center",children:[(0,ie.jsx)(Pi,{className:"text-extendify-main-dark",style:{width:24}}),(0,ie.jsx)("span",{className:"text-base pl-2",children:t.label})]}):(0,ie.jsx)("button",{onClick:function(){return o("site-type")},className:"bg-transparent text-partner-primary underline text-base cursor-pointer",children:(0,re.__)("Press to set a site type","extendify")})]}),(0,ie.jsxs)("div",{className:"block",children:[(0,ie.jsx)("h2",{className:"text-lg m-0 mb-4",children:(0,re.__)("Goals","extendify")}),i.length>0?(0,ie.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:null==i?void 0:i.map((function(e){return(0,ie.jsxs)("div",{className:"flex items-center",children:[(0,ie.jsx)(Pi,{className:"text-extendify-main-dark",style:{width:24}}),(0,ie.jsx)("span",{className:"text-base pl-2",children:e.title})]},e.id)}))}):(0,ie.jsx)("button",{onClick:function(){return o("goals")},className:"bg-transparent text-partner-primary underline text-base cursor-pointer",children:(0,re.__)("Press to set your goals","extendify")})]}),(0,ie.jsxs)("div",{className:"block",children:[(0,ie.jsx)("h2",{className:"text-lg m-0 mb-4",children:(0,re.__)("Pages","extendify")}),r.length>0?(0,ie.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:null==r?void 0:r.map((function(e){return(0,ie.jsxs)("div",{className:"flex items-center",children:[(0,ie.jsx)(Pi,{className:"text-extendify-main-dark",style:{width:24}}),(0,ie.jsx)("span",{className:"text-base pl-2",children:e.title})]},e.id)}))}):(0,ie.jsx)("button",{onClick:function(){return o("pages")},className:"bg-transparent text-partner-primary underline text-base cursor-pointer",children:(0,re.__)("Press to set your pages","extendify")})]}),(0,ie.jsxs)("div",{className:"block",children:[(0,ie.jsx)("h2",{className:"text-lg m-0 mb-4",children:(0,re.__)("Plugins","extendify")}),(0,ie.jsx)(Fa,{})]})]})})]})},state:qa.getState}]],ss=as.filter((function(e){var t,n;return!(null!==(t=window.extOnbData)&&void 0!==t&&null!==(n=t.partnerSkipSteps)&&void 0!==n&&n.includes(e[0]))})),us=ci((function(e,t){return{pages:new Map(ss),currentPageIndex:0,count:function(){return t().pages.size},pageOrder:function(){return Array.from(t().pages.keys())},currentPageData:function(){return t().pages.get(t().currentPageSlug())},currentPageSlug:function(){return t().pageOrder()[t().currentPageIndex]},nextPageData:function(){var e=t().currentPageIndex+1;return e>t().count()-1?{}:t().pages.get(t().pageOrder()[e])},setPage:function(n){"string"==typeof n&&(n=t().pageOrder().indexOf(n)),n>t().count()-1||n<0||e({currentPageIndex:n})},nextPage:function(){t().setPage(t().currentPageIndex+1)},previousPage:function(){t().setPage(t().currentPageIndex-1)}}}),{name:"Extendify Launch Pages",serialize:!0}),cs=yi(us,{name:"extendify-pages",getStorage:function(){return localStorage},partialize:function(e){var t;return{currentPageIndex:null!==(t=null==e?void 0:e.currentPageIndex)&&void 0!==t?t:0}}}),ls=null!==(Za=window)&&void 0!==Za&&null!==(Ka=Za.extOnbData)&&void 0!==Ka&&Ka.devbuild?ui(us):ui(cs);function fs(e){return function(e){if(Array.isArray(e))return ds(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ds(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ds(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ds(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}window.extOnbData.insightsEnabled&&qn({dsn:"https://c5c1aec4298743d399e86509ee4cef9c@o1352321.ingest.sentry.io/6633543",integrations:[new ii],release:null===(Qa=window.extOnbData)||void 0===Qa?void 0:Qa.version,environment:null!==(es=window)&&void 0!==es&&null!==(ts=es.extOnbData)&&void 0!==ts&&ts.devbuild?"dev":"production",tracesSampleRate:1,beforeSend:function(e){return e.exception&&In({eventId:e.event_id}),e}});var ps=ce().create({baseURL:window.extOnbData.root,headers:{"X-WP-Nonce":window.extOnbData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Onboarding":!0,"X-Extendify":!0}});ps.interceptors.request.use((function(e){return vs(gs(e))}),(function(e){return e})),ps.interceptors.response.use((function(e){return hs(ys(e))}),(function(e){return ms(e)}));var hs=function(e){return Object.prototype.hasOwnProperty.call(e,"data")?e.data:e},ms=function(e){if(e.response)return we(e),console.error(e.response),Promise.reject(hs(e.response))},vs=function(e){return e.headers["X-Extendify-Onboarding-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Onboarding-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e},gs=function(e){try{var t,n,r=null==e||null===(t=e.url)||void 0===t||null===(n=t.split("/"))||void 0===n?void 0:n.pop();if(!r)return e;performance.mark("".concat(r,"-extendify"))}catch(e){}return e},ys=function(e){try{var t,n,r,i=new URL(null==e||null===(t=e.request)||void 0===t?void 0:t.responseURL),o=null===(n=i.pathname)||void 0===n||null===(r=n.split("/"))||void 0===r?void 0:r.pop();if(!o)return e;var a=performance.measure("".concat(o,"-extendify"),{start:"".concat(o,"-extendify"),detail:{context:{type:"request"},extendify:!0}}),s=new URLSearchParams(window.location.search);null!=s&&s.has("performance")&&console.info("~> Endpoint /".concat(o," ").concat("styles"===o?"(".concat(i.searchParams.get("siteType"),") "):"","in ").concat(a.duration.toFixed(),"ms"))}catch(e){}return e};function _s(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function bs(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){_s(o,r,i,a,s,"next",e)}function s(e){_s(o,r,i,a,s,"throw",e)}a(void 0)}))}}var xs=function(e){return ps.post("onboarding/parse-theme-json",{themeJson:e})},ws=function(e,t){return ps.post("onboarding/options",{option:e,value:t})},Es=function(){var e=bs(se().mark((function e(t){var n,r;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ps.get("onboarding/options",{params:{option:t}});case 2:return n=e.sent,r=n.data,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ss=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"post";return ps.get("".concat(window.extOnbData.wpRoot,"wp/v2/").concat(t,"s?slug=").concat(e))},Os=function(){var e=bs(se().mark((function e(t){var n;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t&&t.wordpressSlug){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,ps.post("".concat(window.extOnbData.wpRoot,"wp/v2/plugins"),{slug:t.wordpressSlug,status:"active"});case 5:if((n=e.sent).ok){e.next=8;break}return e.abrupt("return",n);case 8:e.next=12;break;case 10:e.prev=10,e.t0=e.catch(2);case 12:return e.prev=12,e.next=15,Ts(t);case 15:return e.abrupt("return",e.sent);case 18:e.prev=18,e.t1=e.catch(12);case 20:case"end":return e.stop()}}),e,null,[[2,10],[12,18]])})));return function(t){return e.apply(this,arguments)}}(),Ts=function(){var e=bs(se().mark((function e(t){var n,r,i,o;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(window.extOnbData.wpRoot,"wp/v2/plugins"),e.next=3,ps.get("".concat(r,"?search=").concat(t.wordpressSlug));case 3:if(i=e.sent,o=null==i||null===(n=i[0])||void 0===n?void 0:n.plugin){e.next=7;break}throw new Error("Plugin not found");case 7:return e.next=9,ps.post("".concat(r,"/").concat(o),{status:"active"});case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),js=function(e,t){return ps.post("".concat(window.extOnbData.wpRoot,"wp/v2/template-parts/").concat(e),{slug:"".concat(e),theme:"extendable",type:"wp_template_part",status:"publish",description:(0,re.sprintf)((0,re.__)("Added by %s","extendify"),"Extendify Launch"),content:t})},Rs=function(){var e=bs(se().mark((function e(){var t,n,r,i,o,a;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ks();case 2:return i=e.sent,i=null===(t=i)||void 0===t?void 0:t.filter((function(e){return"extendable"===e.theme})),o=null===(n=i)||void 0===n?void 0:n.filter((function(e){var t;return null==e||null===(t=e.slug)||void 0===t?void 0:t.includes("header")})),a=null===(r=i)||void 0===r?void 0:r.filter((function(e){var t;return null==e||null===(t=e.slug)||void 0===t?void 0:t.includes("footer")})),e.abrupt("return",{headers:o,footers:a});case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ks=function(){return ps.get(window.extOnbData.wpRoot+"wp/v2/template-parts")},Ns=function(){return ps.get(window.extOnbData.wpRoot+"wp/v2/global-styles/themes/extendable/variations")};function Ds(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ps(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ps(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ps(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cs(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function Is(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Cs(o,r,i,a,s,"next",e)}function s(e){Cs(o,r,i,a,s,"throw",e)}a(void 0)}))}}var As=function(){var e=Is(se().mark((function e(t,n,r){var i,o,a,s,u,c,l,f,d,p;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i={},o=Ds(t),e.prev=2,o.s();case 4:if((a=o.n()).done){e.next=18;break}return s=a.value,e.next=8,Ti({siteType:n.slug,layoutType:s.slug,baseLayout:"home"===s.slug?null==r?void 0:r.homeBaseLayout:null,kit:"home"!==s.slug?null==r?void 0:r.kit:null});case 8:return u=e.sent,c="",null!=u&&u.data&&(c=[null==u||null===(l=u.data)||void 0===l?void 0:l.code,null==u||null===(f=u.data)||void 0===f?void 0:f.code2].filter(Boolean).join("")),d=s.slug,e.next=14,h={title:s.title,name:d,status:"publish",content:c,template:"no-title",meta:{made_with_extendify_launch:!0}},ps.post("".concat(window.extOnbData.wpRoot,"wp/v2/pages"),h);case 14:p=e.sent,i[d]={id:p.id,title:s.title};case 16:e.next=4;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(2),o.e(e.t0);case 23:return e.prev=23,o.f(),e.finish(23);case 26:if(null==i||!i.home){e.next=34;break}return e.next=29,ws("show_on_front","page");case 29:return e.next=31,ws("page_on_front",i.home.id);case 31:if(null==i||!i.blog){e.next=34;break}return e.next=34,ws("page_for_posts",i.blog);case 34:return e.next=36,ws("extendify_onboarding_completed",(new Date).toISOString());case 36:return e.abrupt("return",i);case 37:case"end":return e.stop()}var h}),e,null,[[2,20,23,26]])})));return function(t,n,r){return e.apply(this,arguments)}}(),Us=function(e){return function(e,t){return ps.post("".concat(window.extOnbData.wpRoot,"wp/v2/global-styles/").concat(e),{id:e,settings:t.settings,styles:t.styles})}(window.extOnbData.globalStylesPostID,e)};function Bs(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=$s(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ls(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function Ms(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ls(o,r,i,a,s,"next",e)}function s(e){Ls(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Gs(e){return function(e){if(Array.isArray(e))return Hs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ys(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||$s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $s(e,t){if(e){if("string"==typeof e)return Hs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hs(e,t):void 0}}function Hs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Fs=function(){var e=$o((function(e){return e.canLaunch()})),t=$o(),n=t.siteType,r=t.siteInformation,o=t.pages,a=t.style,s=t.plugins,u=Ys((0,i.useState)([]),2),c=u[0],l=u[1],f=function(e){return l((function(t){return[e].concat(Gs(t))}))};(0,i.useEffect)((function(){var e=function(e){return e.preventDefault(),e.returnValue=""},t={capture:!0};return window.addEventListener("beforeunload",e,t),function(){window.removeEventListener("beforeunload",e,t)}}),[]);var d=(0,i.useCallback)(Ms(se().mark((function t(){var i,u,c,l,d,p,h;return se().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}throw new Error((0,re.__)("Site is not ready to launch.","extendify"));case 2:return f((0,re.__)("Preparing your website","extendify")),t.prev=3,t.next=6,ws("blogname",r.title);case 6:t.next=10;break;case 8:t.prev=8,t.t0=t.catch(3);case 10:return t.next=12,new Promise((function(e){return setTimeout(e,2e3)}));case 12:return f((0,re.__)("Installing your theme","extendify")),t.prev=13,t.next=16,Us(null!==(i=null==a?void 0:a.variation)&&void 0!==i?i:{});case 16:t.next=20;break;case 18:t.prev=18,t.t1=t.catch(13);case 20:if(null==s||!s.length){t.next=47;break}return f((0,re._n)("Getting ready to install ".concat(s.length," plugin"),"Getting ready to install ".concat(s.length," plugins"),s.length,"extendify")),t.next=24,new Promise((function(e){return setTimeout(e,2e3)}));case 24:u=Bs(s.entries()),t.prev=25,u.s();case 27:if((c=u.n()).done){t.next=39;break}return l=Ys(c.value,2),d=l[0],p=l[1],f((0,re.__)("Installing (".concat(d+1,"/").concat(s.length,"): ").concat(p.name),"extendify")),t.prev=30,t.next=33,Os(p);case 33:t.next=37;break;case 35:t.prev=35,t.t2=t.catch(30);case 37:t.next=27;break;case 39:t.next=44;break;case 41:t.prev=41,t.t3=t.catch(25),u.e(t.t3);case 44:return t.prev=44,u.f(),t.finish(44);case 47:return t.next=49,new Promise((function(e){return setTimeout(e,2e3)}));case 49:return f((0,re.__)("Inserting header area","extendify")),t.prev=50,t.next=53,js("extendable//header",null==a?void 0:a.headerCode);case 53:t.next=57;break;case 55:t.prev=55,t.t4=t.catch(50);case 57:return t.next=59,new Promise((function(e){return setTimeout(e,2e3)}));case 59:return f((0,re.__)("Generating page content","extendify")),t.prev=60,t.next=63,As(o,n,a);case 63:h=t.sent,t.next=68;break;case 66:t.prev=66,t.t5=t.catch(60);case 68:return t.next=70,new Promise((function(e){return setTimeout(e,2e3)}));case 70:return f((0,re.__)("Inserting footer area","extendify")),t.prev=71,t.next=74,js("extendable//footer",null==a?void 0:a.footerCode);case 74:t.next=78;break;case 76:t.prev=76,t.t6=t.catch(71);case 78:return t.next=80,new Promise((function(e){return setTimeout(e,2e3)}));case 80:return f((0,re.__)("Finalizing your site","extendify")),t.prev=81,t.next=84,void[{slug:"hello-world",type:"post"},{slug:"sample-page",type:"page"}].forEach(function(){var e=Is(se().mark((function e(t){var n;return se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ss(t.slug,t.type);case 2:if(null==(n=e.sent)||!n.length||"trash"===n[0].status){e.next=6;break}return e.next=6,r=n[0].id,i=t.type,ps.delete("".concat(window.extOnbData.wpRoot,"wp/v2/").concat(i,"s/").concat(r));case 6:case"end":return e.stop()}var r,i}),e)})));return function(t){return e.apply(this,arguments)}}());case 84:t.next=88;break;case 86:t.prev=86,t.t7=t.catch(81);case 88:return t.abrupt("return",h);case 89:case"end":return t.stop()}}),t,null,[[3,8],[13,18],[25,41,44,47],[30,35],[50,55],[60,66],[71,76],[81,86]])}))),[o,s,n,a,e,r.title]);return(0,i.useEffect)((function(){d().then((function(e){bi.setState({generatedPages:e})}))}),[d]),(0,ie.jsxs)(qo,{includeNav:!1,children:[(0,ie.jsxs)("div",{children:[(0,ie.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,re.__)("Building your site now!","extendify")}),(0,ie.jsx)("p",{className:"text-base mb-0",children:(0,re.__)("Please don't close the window.","extendify")})]}),(0,ie.jsx)("div",{className:"w-full",children:(0,ie.jsx)("div",{className:"flex flex-col items-start space-y-4",children:c.map((function(e,t){return t?(0,ie.jsxs)("div",{className:"ml-12 text-base text-gray-500 flex",children:[(0,ie.jsx)(Pi,{className:"text-green-500 w-6 mr-1"}),(0,re.sprintf)(e,"...")]},e):(0,ie.jsxs)("div",{className:"text-4xl flex space-x-4 items-center",children:[(0,ie.jsx)(bo,{className:"spin w-10 mr-2"}),(0,re.sprintf)(e,"...")]},e)}))})})]})};function qs(e){return(function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[n,r=""]=t.split("=").filter(Boolean).map(decodeURIComponent);if(n){!function(e,t,n){const r=t.length,i=r-1;for(let o=0;o<r;o++){let r=t[o];!r&&Array.isArray(e)&&(r=e.length.toString()),r=["__proto__","constructor","prototype"].includes(r)?r.toUpperCase():r;const a=!isNaN(Number(t[o+1]));e[r]=o===i?n:e[r]||(a?[]:{}),Array.isArray(e[r])&&!a&&(e[r]={...e[r]}),e=e[r]}}(e,n.replace(/\]/g,"").split("["),r)}return e}),Object.create(null))}function zs(e){let t="";const n=Object.entries(e);let r;for(;r=n.shift();){let[e,i]=r;if(Array.isArray(i)||i&&i.constructor===Object){const t=Object.entries(i).reverse();for(const[r,i]of t)n.unshift([`${e}[${r}]`,i])}else void 0!==i&&(null===i&&(i=""),t+="&"+[e,i].map(encodeURIComponent).join("="))}return t.substr(1)}function Vs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;let n=e;const r=e.indexOf("?");return-1!==r&&(t=Object.assign(qs(e),t),n=n.substr(0,r)),n+"?"+zs(t)}var Ws={};!function e(t,n,r,i){var o=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function a(){}function s(e){var r=n.exports.Promise,i=void 0!==r?r:t.Promise;return"function"==typeof i?new i(e):(e(a,a),null)}var u,c,l,f,d,p,h,m,v,g=(l=Math.floor(1e3/60),f={},d=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(u=function(e){var t=Math.random();return f[t]=requestAnimationFrame((function n(r){d===r||d+l-1<r?(d=r,delete f[t],e()):f[t]=requestAnimationFrame(n)})),t},c=function(e){f[e]&&cancelAnimationFrame(f[e])}):(u=function(e){return setTimeout(e,l)},c=function(e){return clearTimeout(e)}),{frame:u,cancel:c}),y=(m={},function(){if(p)return p;if(!r&&o){var t=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{p=new Worker(URL.createObjectURL(new Blob([t])))}catch(e){return void 0!==typeof console&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",e),null}!function(e){function t(t,n){e.postMessage({options:t||{},callback:n})}e.init=function(t){var n=t.transferControlToOffscreen();e.postMessage({canvas:n},[n])},e.fire=function(n,r,i){if(h)return t(n,null),h;var o=Math.random().toString(36).slice(2);return h=s((function(r){function a(t){t.data.callback===o&&(delete m[o],e.removeEventListener("message",a),h=null,i(),r())}e.addEventListener("message",a),t(n,o),m[o]=a.bind(null,{data:{callback:o}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),m)m[t](),delete m[t]}}(p)}return p}),_={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function b(e,t,n){return function(e,t){return t?t(e):e}(e&&null!=e[t]?e[t]:_[t],n)}function x(e){return e<0?0:Math.floor(e)}function w(e){return parseInt(e,16)}function E(e){return e.map(S)}function S(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:w(t.substring(0,2)),g:w(t.substring(2,4)),b:w(t.substring(4,6))}}function O(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function T(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function j(e,t,n,o,a){var u,c,l=t.slice(),f=e.getContext("2d"),d=s((function(t){function s(){u=c=null,f.clearRect(0,0,o.width,o.height),a(),t()}u=g.frame((function t(){!r||o.width===i.width&&o.height===i.height||(o.width=e.width=i.width,o.height=e.height=i.height),o.width||o.height||(n(e),o.width=e.width,o.height=e.height),f.clearRect(0,0,o.width,o.height),l=l.filter((function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.wobble+=t.wobbleSpeed,t.velocity*=t.decay,t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble);var n=t.tick++/t.totalTicks,r=t.x+t.random*t.tiltCos,i=t.y+t.random*t.tiltSin,o=t.wobbleX+t.random*t.tiltCos,a=t.wobbleY+t.random*t.tiltSin;return e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-n)+")",e.beginPath(),"circle"===t.shape?e.ellipse?e.ellipse(t.x,t.y,Math.abs(o-r)*t.ovalScalar,Math.abs(a-i)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,n,r,i,o,a,s,u){e.save(),e.translate(t,n),e.rotate(o),e.scale(r,i),e.arc(0,0,1,a,s,u),e.restore()}(e,t.x,t.y,Math.abs(o-r)*t.ovalScalar,Math.abs(a-i)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):(e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(i)),e.lineTo(Math.floor(o),Math.floor(a)),e.lineTo(Math.floor(r),Math.floor(t.wobbleY))),e.closePath(),e.fill(),t.tick<t.totalTicks}(f,e)})),l.length?u=g.frame(t):s()})),c=s}));return{addFettis:function(e){return l=l.concat(e),d},canvas:e,promise:d,reset:function(){u&&g.cancel(u),c&&c()}}}function R(e,n){var r,i=!e,a=!!b(n||{},"resize"),u=b(n,"disableForReducedMotion",Boolean),c=o&&!!b(n||{},"useWorker")?y():null,l=i?O:T,f=!(!e||!c)&&!!e.__confetti_initialized,d="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function p(t,n,i){for(var o,a,s,u,c,f=b(t,"particleCount",x),d=b(t,"angle",Number),p=b(t,"spread",Number),h=b(t,"startVelocity",Number),m=b(t,"decay",Number),v=b(t,"gravity",Number),g=b(t,"drift",Number),y=b(t,"colors",E),_=b(t,"ticks",Number),w=b(t,"shapes"),S=b(t,"scalar"),O=function(e){var t=b(e,"origin",Object);return t.x=b(t,"x",Number),t.y=b(t,"y",Number),t}(t),T=f,R=[],k=e.width*O.x,N=e.height*O.y;T--;)R.push((o={x:k,y:N,angle:d,spread:p,startVelocity:h,color:y[T%y.length],shape:w[(u=0,c=w.length,Math.floor(Math.random()*(c-u))+u)],ticks:_,decay:m,gravity:v,drift:g,scalar:S},a=void 0,s=void 0,a=o.angle*(Math.PI/180),s=o.spread*(Math.PI/180),{x:o.x,y:o.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*o.startVelocity+Math.random()*o.startVelocity,angle2D:-a+(.5*s-Math.random()*s),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:o.color,shape:o.shape,tick:0,totalTicks:o.ticks,decay:o.decay,drift:o.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*o.gravity,ovalScalar:.6,scalar:o.scalar}));return r?r.addFettis(R):(r=j(e,R,l,n,i)).promise}function h(n){var o=u||b(n,"disableForReducedMotion",Boolean),h=b(n,"zIndex",Number);if(o&&d)return s((function(e){e()}));i&&r?e=r.canvas:i&&!e&&(e=function(e){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=e,t}(h),document.body.appendChild(e)),a&&!f&&l(e);var m={width:e.width,height:e.height};function v(){if(c){var t={getBoundingClientRect:function(){if(!i)return e.getBoundingClientRect()}};return l(t),void c.postMessage({resize:{width:t.width,height:t.height}})}m.width=m.height=null}function g(){r=null,a&&t.removeEventListener("resize",v),i&&e&&(document.body.removeChild(e),e=null,f=!1)}return c&&!f&&c.init(e),f=!0,c&&(e.__confetti_initialized=!0),a&&t.addEventListener("resize",v,!1),c?c.fire(n,m,g):p(n,m,g)}return h.reset=function(){c&&c.reset(),r&&r.reset()},h}function k(){return v||(v=R(null,{useWorker:!0,resize:!0})),v}n.exports=function(){return k().apply(this,arguments)},n.exports.reset=function(){k().reset()},n.exports.create=R}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),Ws,!1);const Xs=Ws.exports;Ws.exports.create;function Js(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Js(Object(n),!0).forEach((function(t){Ks(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Js(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ks(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qs=function(){var e,t,n=bi((function(e){return e.generatedPages})),r=$o((function(e){return e.siteType}));return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,i.useEffect)((function(){var n=Date.now()+t;!function t(){Xs(Zs(Zs({},e),{},{disableForReducedMotion:!0,zIndex:1e5})),Date.now()<n&&requestAnimationFrame(t)}()}),[e,t])}({particleCount:2,angle:60,spread:55,origin:{x:0,y:.7},colors:["var(--ext-partner-theme-primary-text, #ffffff)"]},3e3),(0,ie.jsxs)(qo,{includeNav:!1,children:[(0,ie.jsx)("div",{children:(0,ie.jsx)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0",children:(0,re.sprintf)((0,re.__)("Your site has been successfully created. Enjoy!","extendify"),null==r||null===(e=r.label)||void 0===e?void 0:e.toLowerCase())})}),(0,ie.jsxs)("div",{className:"w-full",children:[(0,ie.jsx)("p",{className:"mt-0 mb-8 text-base text-center",children:(0,re.__)("Your site is ready! You can now go to your site and start editing content.","extendify")}),(0,ie.jsxs)("div",{className:"text-center w-360 flex flex-col justify-center items-center -mt-150",children:[(0,ie.jsx)(Pi,{className:"w-16 bg-partner-primary-bg text-partner-primary-text rounded-full"}),(0,ie.jsx)("h3",{className:"mb-8",children:(0,re.__)("All Done","extendify")}),(0,ie.jsx)("div",{className:"flex space-x-4",children:(0,ie.jsx)("a",{className:"px-4 py-3 rounded-md bg-gray-200 text-black no-underline hover:bg-partner-primary-bg hover:text-partner-primary-text font-medium",target:"_blank",rel:"noreferrer",href:window.extOnbData.home,children:(0,re.__)("View Site","extendify")})}),(0,ie.jsxs)("div",{className:"text-left self-start px-10 py-4 w-full",children:[(0,ie.jsx)("h4",{className:"",children:(0,re.__)("New Pages:","extendify")}),(0,ie.jsx)("div",{className:"",children:null===(t=Object.values(n))||void 0===t?void 0:t.map((function(e){return(0,ie.jsxs)("div",{className:"flex items-center mb-2",children:[(0,ie.jsx)(Pi,{className:"w-6 text-green-500"}),(0,ie.jsx)("a",{target:"_blank",href:Vs("post.php",{post:e.id,action:"edit"}),className:"text-primary no-underline hover:underline ml-2 text-base",rel:"noreferrer",children:e.title})]},e.id)}))})]})]})]})]})};function eu(e){return function(e){if(Array.isArray(e))return ru(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||nu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||nu(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nu(e,t){if(e){if("string"==typeof e)return ru(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ru(e,t):void 0}}function ru(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var iu=function(){var e=$o(),t=e.goals,n=e.pages,r=e.plugins,o=e.siteType,a=e.style,s=e.feedbackMissingSiteType,u=e.feedbackMissingGoal,c=e.siteTypeSearch,l=bi(),f=l.orderId,d=l.setOrderId,p=l.generating,h=ls(),m=h.pages,v=h.currentPageIndex,g=tu((0,i.useState)(),2),y=g[0],_=g[1],b=tu((0,i.useState)([]),2),x=b[0],w=b[1],E=tu((0,i.useState)(new Set),2),S=E[0],O=E[1];(0,i.useEffect)((function(){var e=eu(m).map((function(e){return e[0]}));w((function(t){return(null==t?void 0:t.at(-1))===e[v]?t:[].concat(eu(t),[e[v]])}))}),[v,m]),(0,i.useEffect)((function(){p&&w((function(e){return[].concat(eu(e),["launched"])}))}),[p]),(0,i.useEffect)((function(){var e;null!==(e=Object.keys(null!=a?a:{}))&&void 0!==e&&e.length&&O((function(e){var t=new Set(e);return t.add(a.recordId),t}))}),[a]),(0,i.useEffect)((function(){var e,t,n,r,i="onboarding",o=null===(e=window.location)||void 0===e?void 0:e.search;i=(null==o?void 0:o.indexOf("DEVMODE"))>-1?"onboarding-dev":i,i=(null==o?void 0:o.indexOf("LOCALMODE"))>-1?"onboarding-local":i,_(null===(t=window)||void 0===t||null===(n=t.extOnbData)||void 0===n||null===(r=n.config)||void 0===r?void 0:r.api[i])}),[]),(0,i.useEffect)((function(){!y||null!=f&&f.length||ps.post("onboarding/create-order").then((function(e){d(e.data.id)}))}),[y,d,f]),(0,i.useEffect)((function(){if(y&&f){var e;return e=window.setTimeout((function(){var e;fetch("".concat(y,"/progress"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({orderId:f,selectedGoals:null==t?void 0:t.map((function(e){return e.id})),selectedPages:null==n?void 0:n.map((function(e){return e.id})),selectedPlugins:r,selectedSiteType:null!=o&&o.recordId?[o.recordId]:[],selectedStyle:null!=a&&a.recordId?[a.recordId]:[],stepProgress:x,pages:m,viewedStyles:eu(S).slice(1),feedbackMissingSiteType:s,feedbackMissingGoal:u,siteTypeSearch:c,perfStyles:ou("style"),perfPages:ou("page"),insightsId:null===(e=window.extOnbData)||void 0===e?void 0:e.insightsId})})}),1e3),function(){return window.clearTimeout(e)}}}),[y,t,n,r,o,a,m,f,x,S,s,u,c])},ou=function(e){return performance.getEntriesByType("measure").filter((function(t){return t.detail.extendify&&t.detail.context.type===e})).map((function(e){return t={},n=e.name,r=e.duration,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t;var t,n,r}))},au=function(){return(0,ie.jsxs)(qo,{includeNav:!1,children:[(0,ie.jsx)("div",{children:(0,ie.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,re.__)("Hey, one more thing before we start.","extendify")})}),(0,ie.jsxs)("div",{className:"w-full",children:[(0,ie.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,re.__)("Hey there, Launch is powered by Extendable and is required to proceed. You can install it from the link below and start over once activated.","extendify")}),(0,ie.jsx)("div",{className:"flex flex-col items-start space-y-4 text-base",children:(0,ie.jsx)("a",{href:"".concat(window.extOnbData.site,"/wp-admin/theme-install.php?theme=extendable"),children:(0,re.__)("Take me there")})})]})]})};function su(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return uu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uu(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var cu,lu=function(){var e,t=su((0,i.useState)(!1),2),n=t[0],a=t[1],s=ls((function(e){return e.currentPageData()})),u=s.component,c=ls((function(e){return e.nextPageData()})),l=c.fetcher,f=c.fetchData,d=Z().mutate,p=bi((function(e){return e.generating})),h=bi((function(e){return e.generatedPages})),m=su((0,i.useState)(!1),2),v=m[0],g=m[1],y=su((0,i.useState)(!1),2),_=y[0],b=y[1],x=(0,o.useSelect)((function(e){return e("core").getCurrentTheme()})),w=function(){var e=bi((function(e){return e.orderId})),t=ls(),n=t.pages,o=t.currentPageIndex;return(0,i.useEffect)((function(){var t;Pe({id:null===(t=window.extOnbData)||void 0===t?void 0:t.insightsId}),Oe((function(t){var n,r,i;t.setExtra("Partner",null===(n=window.extOnbData)||void 0===n?void 0:n.partnerName),t.setExtra("Site",null===(r=window.extOnbData)||void 0===r?void 0:r.home),t.setExtra("Order ID",e),t.setExtra("Insights ID",null===(i=window.extOnbData)||void 0===i?void 0:i.insightsId)}))}),[e]),(0,i.useEffect)((function(){var e=fs(n).map((function(e){return e[0]}));Te({type:"navigation",category:"step",message:"Navigated to ".concat(e[o])})}),[o,n]),{Sentry:r}}(),E=w.Sentry;e=(0,o.useSelect)((function(e){return e("core/edit-post").isFeatureActive("welcomeGuide")}),[]),(0,i.useEffect)((function(){e&&(0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide")}),[e]),(0,i.useLayoutEffect)((function(){var e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){return document.body.style.overflow=e}}),[]),iu();var S;return(0,i.useEffect)((function(){null!=x&&x.textdomain&&"extendable"!==(null==x?void 0:x.textdomain)&&b(!0)}),[x]),(0,i.useEffect)((function(){if(v){var e=setTimeout((function(){window.dispatchEvent(new CustomEvent("extendify::close-library",{bubbles:!0}))}),0);return document.title="Extendify Launch",function(){return clearTimeout(e)}}}),[v]),(0,i.useEffect)((function(){var e=new URLSearchParams(window.location.search);["onboarding"].includes(e.get("extendify"))&&(g(!0),ws("extendify_launch_loaded",(new Date).toISOString()))}),[]),(0,i.useEffect)((function(){l&&d(f,l)}),[l,d,f]),v?(0,ie.jsxs)(ee,{value:{errorRetryInterval:1e3,onErrorRetry:function(e,t,r,i,o){var s,u,c=o.retryCount;403!==(null==e||null===(s=e.data)||void 0===s?void 0:s.status)?n||(console.error(t,e),E.captureException(new Error(null!==(u=null==e?void 0:e.message)&&void 0!==u?u:"Unknown error"),{tags:{retrying:!0},extra:{cacheKey:t}}),a(!0),setTimeout((function(){a(!1),i({retryCount:c})}),5e3)):window.location.reload()}},children:[(0,ie.jsx)("div",{style:{zIndex:1e5},className:"h-screen w-screen fixed inset-0 overflow-y-auto md:overflow-hidden bg-white",children:_?(0,ie.jsx)(au,{}):null!==(S=Object.keys(h))&&void 0!==S&&S.length?(0,ie.jsx)(Qs,{}):p?(0,ie.jsx)(Fs,{}):(0,ie.jsx)(u,{})}),n&&(0,ie.jsx)(oe,{})]}):null},fu=Object.assign(document.createElement("div"),{id:"extendify-onboarding-root",className:"extendify-onboarding"});document.body.append(fu),cu=function(){window._wpLoadBlockEditor&&(0,i.render)((0,ie.jsx)(lu,{}),fu)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",cu):cu())})()})();
public/build/extendify.js CHANGED
@@ -1,2 +1,2 @@
1
  /*! For license information please see extendify.js.LICENSE.txt */
2
- (()=>{var e,t={7135:(e,t,n)=>{e.exports=n(6248)},4206:(e,t,n)=>{e.exports=n(8057)},4387:(e,t,n)=>{"use strict";var r=n(7485),o=n(4570),i=n(2940),a=n(581),s=n(574),l=n(3845),u=n(8338),c=n(4832),f=n(7354),d=n(8870),p=n(4906);e.exports=function(e){return new Promise((function(t,n){var h,m=e.data,x=e.headers,y=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete x["Content-Type"];var g=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";x.Authorization="Basic "+btoa(b+":"+w)}var j=s(e.baseURL,e.url);function k(){if(g){var r="getAllResponseHeaders"in g?l(g.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g};o((function(e){t(e),v()}),(function(e){n(e),v()}),i),g=null}}if(g.open(e.method.toUpperCase(),a(j,e.params,e.paramsSerializer),!0),g.timeout=e.timeout,"onloadend"in g?g.onloadend=k:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(k)},g.onabort=function(){g&&(n(new f("Request aborted",f.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,g,g)),g=null},g.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,g)),g=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||u(j))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;E&&(x[e.xsrfHeaderName]=E)}"setRequestHeader"in g&&r.forEach(x,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete x[t]:g.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),y&&"json"!==y&&(g.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&g.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){g&&(n(!e||e&&e.type?new d:e),g.abort(),g=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),m||(m=null);var _=p(j);_&&-1===["http","https","file"].indexOf(_)?n(new f("Unsupported protocol "+_+":",f.ERR_BAD_REQUEST,e)):g.send(m)}))}},8057:(e,t,n)=>{"use strict";var r=n(7485),o=n(875),i=n(5029),a=n(4941);var s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(8396));s.Axios=i,s.CanceledError=n(8870),s.CancelToken=n(4603),s.isCancel=n(1475),s.VERSION=n(3345).version,s.toFormData=n(1020),s.AxiosError=n(7354),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(5739),s.isAxiosError=n(5835),e.exports=s,e.exports.default=s},4603:(e,t,n)=>{"use strict";var r=n(8870);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},8870:(e,t,n)=>{"use strict";var r=n(7354);function o(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(7485).inherits(o,r,{__CANCEL__:!0}),e.exports=o},1475:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5029:(e,t,n)=>{"use strict";var r=n(7485),o=n(581),i=n(8096),a=n(5009),s=n(4941),l=n(574),u=n(6144),c=u.validators;function f(e){this.defaults=e,this.interceptors={request:new i,response:new i}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!o){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(l),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var d=t;r.length;){var p=r.shift(),h=r.shift();try{d=p(d)}catch(e){h(e);break}}try{i=a(d)}catch(e){return Promise.reject(e)}for(;l.length;)i=i.then(l.shift(),l.shift());return i},f.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},7354:(e,t,n)=>{"use strict";var r=n(7485);function o(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,n,a,s,l){var u=Object.create(i);return r.toFlatObject(e,u,(function(e){return e!==Error.prototype})),o.call(u,e.message,t,n,a,s),u.name=e.name,l&&Object.assign(u,l),u},e.exports=o},8096:(e,t,n)=>{"use strict";var r=n(7485);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},574:(e,t,n)=>{"use strict";var r=n(2642),o=n(2288);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},5009:(e,t,n)=>{"use strict";var r=n(7485),o=n(9212),i=n(1475),a=n(8396),s=n(8870);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4941:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function l(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,o=t(e);r.isUndefined(o)&&t!==l||(n[e]=o)})),n}},4570:(e,t,n)=>{"use strict";var r=n(7354);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},9212:(e,t,n)=>{"use strict";var r=n(7485),o=n(8396);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},8396:(e,t,n)=>{"use strict";var r=n(7061),o=n(7485),i=n(1446),a=n(7354),s=n(4832),l=n(1020),u={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var f,d={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(f=n(4387)),f),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))return e;if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=o.isObject(e),a=t&&t["Content-Type"];if((n=o.isFileList(e))||r&&"multipart/form-data"===a){var s=this.env&&this.env.FormData;return l(n?{"files[]":e}:e,s&&new s)}return r||"application/json"===a?(c(t,"application/json"),function(e,t,n){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a.from(e,a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(8750)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){d.headers[e]=o.merge(u)})),e.exports=d},4832:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},3345:e=>{e.exports={version:"0.27.2"}},875:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},581:(e,t,n)=>{"use strict";var r=n(7485);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},2288:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2940:(e,t,n)=>{"use strict";var r=n(7485);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},2642:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5835:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},8338:(e,t,n)=>{"use strict";var r=n(7485);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},1446:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},8750:e=>{e.exports=null},3845:(e,t,n)=>{"use strict";var r=n(7485),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},4906:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5739:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1020:(e,t,n)=>{"use strict";var r=n(816).Buffer,o=n(7485);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":o.isDate(e)?e.toISOString():o.isArrayBuffer(e)||o.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return function e(r,a){if(o.isPlainObject(r)||o.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),o.forEach(r,(function(n,r){if(!o.isUndefined(n)){var s,l=a?a+"."+r:r;if(n&&!a&&"object"==typeof n)if(o.endsWith(r,"{}"))n=JSON.stringify(n);else if(o.endsWith(r,"[]")&&(s=o.toArray(n)))return void s.forEach((function(e){!o.isUndefined(e)&&t.append(l,i(e))}));e(n,l)}})),n.pop()}else t.append(a,i(r))}(e),t}},6144:(e,t,n)=>{"use strict";var r=n(3345).version,o=n(7354),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new o(i(r," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new o("option "+a+" must be "+u,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},7485:(e,t,n)=>{"use strict";var r,o=n(875),i=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function l(e){return Array.isArray(e)}function u(e){return void 0===e}var c=s("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),h=s("File"),m=s("Blob"),x=s("FileList");function y(e){return"[object Function]"===i.call(e)}var v=s("URLSearchParams");function g(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var b,w=(b="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return b&&e instanceof b});e.exports={isArray:l,isArrayBuffer:c,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||y(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:u,isDate:p,isFile:h,isBlob:m,isFunction:y,isStream:function(e){return f(e)&&y(e.pipe)},isURLSearchParams:v,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:g,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):l(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)g(arguments[r],n);return t},extend:function(e,t,n){return g(t,(function(t,r){e[r]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,a={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=r[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:x}},4330:(e,t,n)=>{"use strict";const r=wp.blocks,o=wp.element;var i=n(7135),a=n.n(i),s=n(7363),l=n.n(s);function u(e){let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(o!==t){const e=t;t=r?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:(e,r,i)=>r||i?((e,r=o,i=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=r(t);function s(){const n=r(t);if(!i(a,n)){const t=a;e(a=n,t)}}return n.add(s),()=>n.delete(s)})(e,r,i):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,i),i}const c="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?s.useEffect:s.useLayoutEffect;function f(e){const t="function"==typeof e?u(e):e,n=(e=t.getState,n=Object.is)=>{const[,r]=(0,s.useReducer)((e=>e+1),0),o=t.getState(),i=(0,s.useRef)(o),a=(0,s.useRef)(e),l=(0,s.useRef)(n),u=(0,s.useRef)(!1),f=(0,s.useRef)();let d;void 0===f.current&&(f.current=e(o));let p=!1;(i.current!==o||a.current!==e||l.current!==n||u.current)&&(d=e(o),p=!n(f.current,d)),c((()=>{p&&(f.current=d),i.current=o,a.current=e,l.current=n,u.current=!1}));const h=(0,s.useRef)(o);c((()=>{const e=()=>{try{const e=t.getState(),n=a.current(e);l.current(f.current,n)||(i.current=e,f.current=n,r())}catch(e){u.current=!0,r()}},n=t.subscribe(e);return t.getState()!==h.current&&e(),n}),[]);const m=p?d:f.current;return(0,s.useDebugValue)(m),m};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[n,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},n}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const d=e=>(t,n,r)=>{const o=r.subscribe;r.subscribe=(e,t,n)=>{let i=e;if(t){const o=(null==n?void 0:n.equalityFn)||Object.is;let a=e(r.getState());i=n=>{const r=e(n);if(!o(a,r)){const e=a;t(a=r,e)}},(null==n?void 0:n.fireImmediately)&&t(a,a)}return o(i)};return e(t,n,r)};var p=Object.defineProperty,h=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,y=(e,t,n)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))m.call(t,n)&&y(e,n,t[n]);if(h)for(var n of h(t))x.call(t,n)&&y(e,n,t[n]);return e};const g=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>g(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>g(t)(e)}}},b=(e,t)=>(n,r,o)=>{let i=v({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>v(v({},t),e)},t);(i.blacklist||i.whitelist)&&console.warn(`The ${i.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let a=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch(e){}if(!u)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)}),r,o);u.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${i.name}' does not contain a 'removeItem' method, which will be required in v4.`);const c=g(i.serialize),f=()=>{const e=i.partialize(v({},r()));let t;i.whitelist&&Object.keys(e).forEach((t=>{var n;!(null==(n=i.whitelist)?void 0:n.includes(t))&&delete e[t]})),i.blacklist&&i.blacklist.forEach((t=>delete e[t]));const n=c({state:e,version:i.version}).then((e=>u.setItem(i.name,e))).catch((e=>{t=e}));if(t)throw t;return n},d=o.setState;o.setState=(e,t)=>{d(e,t),f()};const p=e(((...e)=>{n(...e),f()}),r,o);let h;const m=()=>{var e;if(!u)return;a=!1,s.forEach((e=>e(r())));const t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,r()))||void 0;return g(u.getItem.bind(u))(i.name).then((e=>{if(e)return i.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return h=i.merge(e,null!=(t=r())?t:p),n(h,!0),f()})).then((()=>{null==t||t(h,void 0),a=!0,l.forEach((e=>e(h)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{i=v(v({},i),e),e.getStorage&&(u=e.getStorage())},clearStorage:()=>{var e;null==(e=null==u?void 0:u.removeItem)||e.call(u,i.name)},rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),h||p};function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var S=f(d(b((function(e,t){return{open:!1,ready:!1,metaData:{},currentTaxonomies:{},currentType:"pattern",modals:[],pushModal:function(n){return e({modals:[n].concat(E(t().modals))})},popModal:function(){return e({modals:t().modals.slice(1)})},removeAllModals:function(){return e({modals:[]})},updateCurrentTaxonomies:function(t){return e({currentTaxonomies:j({},t)})},updateCurrentType:function(t){return e({currentType:t})},setOpen:function(t){return e({open:t})},setReady:function(t){return e({ready:t})}}}),{name:"extendify-global-state",partialize:function(e){return delete e.modals,delete e.ready,e}}))),C=n(4206),O=n.n(C);const A=lodash;function P(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var T=function(){return(e=a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(window.extendifyData.root,"/user"),{method:"GET",headers:{"X-WP-Nonce":window.extendifyData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify":!0}});case 2:return t=e.sent,e.next=5,t.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){P(i,r,o,a,s,"next",e)}function s(e){P(i,r,o,a,s,"throw",e)}a(void 0)}))})();var e},N=function(e,t){var n=new FormData;return n.append("email",e),n.append("key",t),K.post("login",n,{headers:{"Content-Type":"multipart/form-data"}})},R=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),K.post("user",t,{headers:{"Content-Type":"multipart/form-data"}})},I=function(){return K.post("clear-user")},L=function(){return K.get("max-free-imports")};function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){U(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function $(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){z(i,r,o,a,s,"next",e)}function s(e){z(i,r,o,a,s,"throw",e)}a(void 0)}))}}var V,W,q,H={getItem:(q=$(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return q.apply(this,arguments)}),setItem:(W=$(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,R(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e,t){return W.apply(this,arguments)}),removeItem:(V=$(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return V.apply(this,arguments)})},Y=function(){var e,t,n;return null===window.extendifyData.sitesettings||(null===(e=window.extendifyData)||void 0===e||null===(t=e.sitesettings)||void 0===t||null===(n=t.state)||void 0===n?void 0:n.enabled)},G=U({},"main-button-text2","0007"),J=f(b((function(e,t){return{_hasHydrated:!1,firstLoadedOn:(new Date).toISOString(),email:"",apiKey:"",uuid:"",sdkPartner:"",noticesDismissedAt:{},modalNoticesDismissedAt:{},imports:0,runningImports:0,allowedImports:0,freebieImports:0,entryPoint:"not-set",enabled:Y(),canInstallPlugins:!1,canActivatePlugins:!1,participatingTestsGroups:{},incrementImports:function(){var n=Number(t().freebieImports)>0?Number(t().freebieImports)-1:Number(t().freebieImports),r=Number(t().runningImports)+ +(n<1);e({imports:Number(t().imports)+1,runningImports:r,freebieImports:n})},giveFreebieImports:function(n){e({freebieImports:t().freebieImports+n})},totalAvailableImports:function(){return Number(t().allowedImports)+Number(t().freebieImports)},testGroup:function(n,r){if(Object.keys(G).includes(n)){var o=t().participatingTestsGroups;return o[n]||e({participatingTestsGroups:Object.assign({},o,U({},n,(0,A.sample)(r)))}),(o=t().participatingTestsGroups)[n]}},activeTestGroups:function(){return Object.entries(t().participatingTestsGroups).filter((function(e){var t=B(e,1)[0];return Object.keys(G).includes(t)})).reduce((function(e,t){var n=B(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})},activeTestGroupsUtmValue:function(){var e=Object.entries(t().activeTestGroups()).map((function(e){var t=B(e,2),n=t[0],r=t[1];return"".concat(G[n],"=").concat(r)}),"").join(":");return encodeURIComponent(e)},hasAvailableImports:function(){return!!t().apiKey||Number(t().runningImports)<Number(t().totalAvailableImports())},remainingImports:function(){var e=Number(t().totalAvailableImports())-Number(t().runningImports);return t().allowedImports?e>0?e:0:null},markNoticeSeen:function(n,r){e(U({},"".concat(r,"DismissedAt"),D(D({},t()["".concat(r,"DismissedAt")]),{},U({},n,(new Date).toISOString()))))}}}),{name:"extendify-user",getStorage:function(){return H},onRehydrateStorage:function(){return function(){J.setState({_hasHydrated:!0})}},partialize:function(e){return delete e._hasHydrated,e}})),K=O().create({baseURL:window.extendifyData.root,headers:{"X-WP-Nonce":window.extendifyData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Library":!0,"X-Extendify":!0}});function X(e){return Object.prototype.hasOwnProperty.call(e,"data")?e.data:e}K.interceptors.response.use((function(e){return function(e){return Object.prototype.hasOwnProperty.call(e,"soft_error")&&window.dispatchEvent(new CustomEvent("extendify::softerror-encountered",{detail:e.soft_error,bubbles:!0})),e}(X(e))}),(function(e){return function(e){if(e.response)return console.error(e.response),Promise.reject(X(e.response))}(e)})),K.interceptors.request.use((function(e){return function(e){return e.headers["X-Extendify-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e}(function(e){var t=J.getState(),n=t.apiKey?"unlimited":t.remainingImports();return e.data&&(e.data.remaining_imports=n,e.data.entry_point=t.entryPoint,e.data.total_imports=t.imports,e.data.participating_tests=t.activeTestGroups()),e}(e))}),(function(e){return e}));var Z=function(){return K.get("site-settings")},Q=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),K.post("site-settings",t,{headers:{"Content-Type":"multipart/form-data"}})},ee=function(e,t){return K.post("site-settings/options",{option:e,value:t})};function te(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ne(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){te(i,r,o,a,s,"next",e)}function s(e){te(i,r,o,a,s,"throw",e)}a(void 0)}))}}var re={getItem:function(){var e=ne(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),setItem:function(){var e=ne(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),removeItem:function(){}},oe=f(b((function(e){return{enabled:!0,siteType:{},setSiteType:(t=ne(a().mark((function t(n){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e({siteType:n}),t.next=3,ee("extendify_siteType",n);case 3:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})};var t}),{name:"extendify-sitesettings",getStorage:function(){return re}}));function ie(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var ae=function(){return(e=a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K.get("taxonomies");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ie(i,r,o,a,s,"next",e)}function s(e){ie(i,r,o,a,s,"throw",e)}a(void 0)}))})();var e};function se(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var le=f(b((function(e,t){return{taxonomies:{},setTaxonomies:function(t){return e({taxonomies:t})},fetchTaxonomies:(n=a().mark((function e(){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ae();case 2:if(r=e.sent,r=Object.keys(r).reduce((function(e,t){return e[t]=r[t],e}),{}),null!==(n=Object.keys(r))&&void 0!==n&&n.length){e.next=6;break}return e.abrupt("return");case 6:t().setTaxonomies(r);case 7:case"end":return e.stop()}}),e)})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){se(i,r,o,a,s,"next",e)}function s(e){se(i,r,o,a,s,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})};var n,r}),{name:"extendify-taxonomies"}));function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function de(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||he(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=he(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function he(e,t){if(e){if("string"==typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(e,t):void 0}}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xe(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var ye=f(d((function(e,t){return{templates:[],skipNextFetch:!1,fetchToken:null,taxonomyDefaultState:{},nextPage:"",searchParams:{taxonomies:{},type:"pattern"},initTemplateData:function(){e({activeTemplate:{}}),t().setupDefaultTaxonomies(),t().updateType(S.getState().currentType)},appendTemplates:(n=a().mark((function n(r){var o,i,s;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:o=pe(r),n.prev=1,s=a().mark((function n(){var r;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=i.value,!t().templates.find((function(e){return e.id===r.id}))){n.next=3;break}return n.abrupt("return","continue");case 3:return n.next=5,new Promise((function(e){return setTimeout(e,5)}));case 5:requestAnimationFrame((function(){var n=[].concat(de(t().templates),[r]);e({templates:n})}));case 6:case"end":return n.stop()}}),n)})),o.s();case 4:if((i=o.n()).done){n.next=11;break}return n.delegateYield(s(),"t0",6);case 6:if("continue"!==n.t0){n.next=9;break}return n.abrupt("continue",9);case 9:n.next=4;break;case 11:n.next=16;break;case 13:n.prev=13,n.t1=n.catch(1),o.e(n.t1);case 16:return n.prev=16,o.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[1,13,16,19]])})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){xe(i,r,o,a,s,"next",e)}function s(e){xe(i,r,o,a,s,"throw",e)}a(void 0)}))},function(e){return r.apply(this,arguments)}),setupDefaultTaxonomies:function(){var t,n,r=le.getState().taxonomies,o=Object.entries(r).reduce((function(e,t){return e[t[0]]={slug:"",title:"Featured"},e}),{}),i={taxonomies:ce(ce(ce({},o),null!==(t=null===(n=S.getState())||void 0===n?void 0:n.currentTaxonomies)&&void 0!==t?t:{}),{},{siteType:oe.getState().siteType})};e((function(e){return{taxonomyDefaultState:o,searchParams:ce(ce({},e.searchParams),i)}})),S.getState().updateCurrentTaxonomies(i.taxonomies)},updateTaxonomies:function(e){var n={};n.taxonomies=Object.assign({},t().searchParams.taxonomies,e),S.getState().updateCurrentTaxonomies(null==n?void 0:n.taxonomies),t().updateSearchParams(n)},updateType:function(e){S.getState().updateCurrentType(e),t().updateSearchParams({type:e})},updateSearchParams:function(n){null!=n&&n.taxonomies&&!Object.keys(n.taxonomies).length&&(n.taxonomies=t().taxonomyDefaultState);var r=Object.assign({},t().searchParams,n);JSON.stringify(r)!==JSON.stringify(t().searchParams)&&e({templates:[],nextPage:"",searchParams:r})},resetTemplates:function(){return e({templates:[],nextPage:""})}};var n,r}))),ve=function(){return K.get("meta-data")},ge=function(e){var t,n,r,o,i,a=null!==(t=null===(n=ye.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return K.post("simple-ping",{action:e,categories:a,sdk_partner:null!==(o=null===(i=J.getState())||void 0===i?void 0:i.sdkPartner)&&void 0!==o?o:""})};function be(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,be),r}var we,je=((we=je||{})[we.None=0]="None",we[we.RenderStrategy=1]="RenderStrategy",we[we.Static=2]="Static",we),ke=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ke||{});function Ee({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let s=Se(t,e);if(i)return _e(s,n,r,a);let l=null!=o?o:0;if(2&l){let{static:e=!1,...t}=s;if(e)return _e(t,n,r,a)}if(1&l){let{unmount:e=!0,...t}=s;return be(e?0:1,{0:()=>null,1:()=>_e({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return _e(s,n,r,a)}function _e(e,t={},n,r){let{as:o=n,children:i,refName:a="ref",...l}=Ae(e,["unmount","static"]),u=void 0!==e.ref?{[a]:e.ref}:{},c="function"==typeof i?i(t):i;if(l.className&&"function"==typeof l.className&&(l.className=l.className(t)),o===s.Fragment&&Object.keys(Oe(l)).length>0){if(!(0,s.isValidElement)(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return(0,s.cloneElement)(c,Object.assign({},Se(c.props,Oe(Ae(l,["ref"]))),u))}return(0,s.createElement)(o,Object.assign({},Ae(l,["ref"]),o!==s.Fragment&&u),c)}function Se(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t){let r=n[e];for(let e of r){if(t.defaultPrevented)return;e(t)}}});return t}function Ce(e){var t;return Object.assign((0,s.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Oe(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function Ae(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}let Pe=Symbol();function Te(e,t=!0){return Object.assign(e,{[Pe]:t})}function Ne(...e){let t=(0,s.useRef)(e);(0,s.useEffect)((()=>{t.current=e}),[e]);let n=(0,s.useCallback)((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}),[t]);return e.every((e=>null==e||(null==e?void 0:e[Pe])))?void 0:n}var Re=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Re||{});function Ie(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}const Le="undefined"!=typeof window?s.useLayoutEffect:s.useEffect;let Me={serverHandoffComplete:!1};function De(){let[e,t]=(0,s.useState)(Me.serverHandoffComplete);return(0,s.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,s.useEffect)((()=>{!1===Me.serverHandoffComplete&&(Me.serverHandoffComplete=!0)}),[]),e}var Be;let Fe=0;function Ue(){return++Fe}let ze=null!=(Be=s.useId)?Be:function(){let e=De(),[t,n]=s.useState(e?Ue:null);return Le((()=>{null===t&&n(Ue())}),[t]),null!=t?""+t:void 0},$e=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Ve,We=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(We||{}),qe=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(qe||{}),He=((Ve=He||{})[Ve.Previous=-1]="Previous",Ve[Ve.Next=1]="Next",Ve);var Ye=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ye||{});function Ge(e){null==e||e.focus({preventScroll:!0})}let Je=["textarea","input"].join(",");function Ke(e,t){let n,r=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(e):function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll($e))}(e),i=r.activeElement,a=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,o.indexOf(i))-1;if(4&t)return Math.max(0,o.indexOf(i))+1;if(8&t)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=32&t?{preventScroll:!0}:{},u=0,c=o.length;do{if(u>=c||u+c<=0)return 0;let e=s+u;if(16&t)e=(e+c)%c;else{if(e<0)return 3;if(e>=c)return 1}n=o[e],null==n||n.focus(l),u+=a}while(n!==r.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Je))&&n}(n)&&n.select(),n.hasAttribute("tabindex")||n.setAttribute("tabindex","0"),2}function Xe(e){let t=(0,s.useRef)(e);return Le((()=>{t.current=e}),[e]),t}function Ze(e,t,n,r){let o=Xe(n);(0,s.useEffect)((()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}),[e,t,r])}function Qe(){let e=(0,s.useRef)(!1);return Le((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function et(e){return"undefined"==typeof window?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function tt(...e){return(0,s.useMemo)((()=>et(...e)),[...e])}var nt=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(nt||{});function rt(e,t=30,{initialFocus:n,containers:r}={}){let o=(0,s.useRef)(null),i=(0,s.useRef)(null),a=Qe(),l=Boolean(16&t),u=Boolean(2&t),c=tt(e);return(0,s.useEffect)((()=>{!l||o.current||(o.current=null==c?void 0:c.activeElement)}),[l,c]),(0,s.useEffect)((()=>{if(l)return()=>{Ge(o.current),o.current=null}}),[l]),(0,s.useEffect)((()=>{if(!u)return;let t=e.current;if(!t)return;let r=null==c?void 0:c.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===r)return void(i.current=r)}else if(t.contains(r))return void(i.current=r);null!=n&&n.current?Ge(n.current):Ke(t,We.First)===qe.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),i.current=null==c?void 0:c.activeElement}),[e,n,u,c]),Ze(null==c?void 0:c.defaultView,"keydown",(n=>{!(4&t)||!e.current||n.key===Re.Tab&&(n.preventDefault(),Ke(e.current,(n.shiftKey?We.Previous:We.Next)|We.WrapAround)===qe.Success&&(i.current=null==c?void 0:c.activeElement))})),Ze(null==c?void 0:c.defaultView,"focus",(n=>{if(!(8&t))return;let o=new Set(null==r?void 0:r.current);if(o.add(e),!o.size)return;let s=i.current;if(!s||!a.current)return;let l=n.target;l&&l instanceof HTMLElement?function(e,t){var n;for(let r of e)if(null!=(n=r.current)&&n.contains(t))return!0;return!1}(o,l)?(i.current=l,Ge(l)):(n.preventDefault(),n.stopPropagation(),Ge(s)):Ge(i.current)}),!0),o}let ot=new Set,it=new Map;function at(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function st(e){let t=it.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}const lt=ReactDOM;let ut=(0,s.createContext)(!1);function ct(){return(0,s.useContext)(ut)}function ft(e){return s.createElement(ut.Provider,{value:e.force},e.children)}let dt=s.Fragment,pt=Ce((function(e,t){let n=e,r=(0,s.useRef)(null),o=Ne(Te((e=>{r.current=e})),t),i=tt(r),a=function(e){let t=ct(),n=(0,s.useContext)(mt),r=tt(e),[o,i]=(0,s.useState)((()=>{if(!t&&null!==n||"undefined"==typeof window)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)}));return(0,s.useEffect)((()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))}),[o,r]),(0,s.useEffect)((()=>{t||null!==n&&i(n.current)}),[n,i,t]),o}(r),[l]=(0,s.useState)((()=>{var e;return"undefined"==typeof window?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null})),u=De();return Le((()=>{if(a&&l)return a.appendChild(l),()=>{var e;!a||!l||(a.removeChild(l),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))}}),[a,l]),u&&a&&l?(0,lt.createPortal)(Ee({ourProps:{ref:o},theirProps:n,defaultTag:dt,name:"Portal"}),l):null})),ht=s.Fragment,mt=(0,s.createContext)(null),xt=Ce((function(e,t){let{target:n,...r}=e,o={ref:Ne(t)};return s.createElement(mt.Provider,{value:n},Ee({ourProps:o,theirProps:r,defaultTag:ht,name:"Popover.Group"}))})),yt=Object.assign(pt,{Group:xt}),vt=(0,s.createContext)(null);function gt(){let e=(0,s.useContext)(vt);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,gt),e}return e}function bt(){let[e,t]=(0,s.useState)([]);return[e.length>0?e.join(" "):void 0,(0,s.useMemo)((()=>function(e){let n=(0,s.useCallback)((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n})))),[]),r=(0,s.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return s.createElement(vt.Provider,{value:r},e.children)}),[t])]}let wt=Ce((function(e,t){let n=gt(),r=`headlessui-description-${ze()}`,o=Ne(t);Le((()=>n.register(r)),[r,n.register]);let i=e;return Ee({ourProps:{ref:o,...n.props,id:r},theirProps:i,slot:n.slot||{},defaultTag:"p",name:n.name||"Description"})})),jt=(0,s.createContext)(null);jt.displayName="OpenClosedContext";var kt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(kt||{});function Et(){return(0,s.useContext)(jt)}function _t({value:e,children:t}){return s.createElement(jt.Provider,{value:e},t)}let St=(0,s.createContext)((()=>{}));St.displayName="StackContext";var Ct=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Ct||{});function Ot({children:e,onUpdate:t,type:n,element:r}){let o=(0,s.useContext)(St),i=(0,s.useCallback)(((...e)=>{null==t||t(...e),o(...e)}),[o,t]);return Le((()=>(i(0,n,r),()=>i(1,n,r))),[i,n,r]),s.createElement(St.Provider,{value:i},e)}function At(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Pt(e,t,n){let r=Xe(t);(0,s.useEffect)((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}var Tt=(e=>(e[e.None=1]="None",e[e.IgnoreScrollbars=2]="IgnoreScrollbars",e))(Tt||{});var Nt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Nt||{}),Rt=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Rt||{});let It={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},Lt=(0,s.createContext)(null);function Mt(e){let t=(0,s.useContext)(Lt);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Mt),t}return t}function Dt(e,t){return be(t.type,It,e,t)}Lt.displayName="DialogContext";let Bt=je.RenderStrategy|je.Static,Ft=Ce((function(e,t){let{open:n,onClose:r,initialFocus:o,__demoMode:i=!1,...a}=e,[l,u]=(0,s.useState)(0),c=Et();void 0===n&&null!==c&&(n=be(c,{[kt.Open]:!0,[kt.Closed]:!1}));let f=(0,s.useRef)(new Set),d=(0,s.useRef)(null),p=Ne(d,t),h=tt(d),m=e.hasOwnProperty("open")||null!==c,x=e.hasOwnProperty("onClose");if(!m&&!x)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!m)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!x)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof n)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${n}`);if("function"!=typeof r)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${r}`);let y=n?0:1,[v,g]=(0,s.useReducer)(Dt,{titleId:null,descriptionId:null,panelRef:(0,s.createRef)()}),b=(0,s.useCallback)((()=>r(!1)),[r]),w=(0,s.useCallback)((e=>g({type:0,id:e})),[g]),j=!!De()&&(!i&&0===y),k=l>1,E=null!==(0,s.useContext)(Lt),_=rt(d,j?be(k?"parent":"leaf",{parent:nt.RestoreFocus,leaf:nt.All&~nt.FocusLock}):nt.None,{initialFocus:o,containers:f});(function(e,t=!0){Le((()=>{if(!t||!e.current)return;let n=e.current,r=et(n);if(r){ot.add(n);for(let e of it.keys())e.contains(n)&&(st(e),it.delete(e));return r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement){for(let t of ot)if(e.contains(t))return;1===ot.size&&(it.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),at(e))}})),()=>{if(ot.delete(n),ot.size>0)r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement&&!it.has(e)){for(let t of ot)if(e.contains(t))return;it.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),at(e)}}));else for(let e of it.keys())st(e),it.delete(e)}}}),[t])})(d,!!k&&j),function(e,t,n=1){let r=(0,s.useRef)(!1),o=Xe((o=>{if(r.current)return;r.current=!0,At((()=>{r.current=!1}));let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),a=o.target;if(a.ownerDocument.documentElement.contains(a)){if(2==(2&n)){let e=20,t=a.ownerDocument.documentElement;if(o.clientX>t.clientWidth-e||o.clientX<e||o.clientY>t.clientHeight-e||o.clientY<e)return}for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a))return}return t(o,a)}}));Pt("pointerdown",((...e)=>o.current(...e))),Pt("mousedown",((...e)=>o.current(...e)))}((()=>{var e,t;return[...Array.from(null!=(e=null==h?void 0:h.querySelectorAll("body > *"))?e:[]).filter((e=>!(!(e instanceof HTMLElement)||e.contains(_.current)||v.panelRef.current&&e.contains(v.panelRef.current)))),null!=(t=v.panelRef.current)?t:d.current]}),(()=>{0===y&&(k||b())}),Tt.IgnoreScrollbars),Ze(null==h?void 0:h.defaultView,"keydown",(e=>{e.key===Re.Escape&&0===y&&(k||(e.preventDefault(),e.stopPropagation(),b()))})),(0,s.useEffect)((()=>{var e;if(0!==y||E)return;let t=et(d);if(!t)return;let n=t.documentElement,r=null!=(e=t.defaultView)?e:window,o=n.style.overflow,i=n.style.paddingRight,a=r.innerWidth-n.clientWidth;return n.style.overflow="hidden",n.style.paddingRight=`${a}px`,()=>{n.style.overflow=o,n.style.paddingRight=i}}),[y,E]),(0,s.useEffect)((()=>{if(0!==y||!d.current)return;let e=new IntersectionObserver((e=>{for(let t of e)0===t.boundingClientRect.x&&0===t.boundingClientRect.y&&0===t.boundingClientRect.width&&0===t.boundingClientRect.height&&b()}));return e.observe(d.current),()=>e.disconnect()}),[y,d,b]);let[S,C]=bt(),O=`headlessui-dialog-${ze()}`,A=(0,s.useMemo)((()=>[{dialogState:y,close:b,setTitleId:w},v]),[y,v,b,w]),P=(0,s.useMemo)((()=>({open:0===y})),[y]),T={ref:p,id:O,role:"dialog","aria-modal":0===y||void 0,"aria-labelledby":v.titleId,"aria-describedby":S,onClick(e){e.stopPropagation()}};return s.createElement(Ot,{type:"Dialog",element:d,onUpdate:(0,s.useCallback)(((e,t,n)=>{"Dialog"===t&&be(e,{[Ct.Add](){f.current.add(n),u((e=>e+1))},[Ct.Remove](){f.current.add(n),u((e=>e-1))}})}),[])},s.createElement(ft,{force:!0},s.createElement(yt,null,s.createElement(Lt.Provider,{value:A},s.createElement(yt.Group,{target:d},s.createElement(ft,{force:!1},s.createElement(C,{slot:P,name:"Dialog.Description"},Ee({ourProps:T,theirProps:a,slot:P,defaultTag:"div",features:Bt,visible:0===y,name:"Dialog"}))))))))})),Ut=Ce((function(e,t){let[{dialogState:n,close:r}]=Mt("Dialog.Overlay"),o=Ne(t),i=`headlessui-dialog-overlay-${ze()}`,a=(0,s.useCallback)((e=>{if(e.target===e.currentTarget){if(Ie(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),r()}}),[r]);return Ee({ourProps:{ref:o,id:i,"aria-hidden":!0,onClick:a},theirProps:e,slot:(0,s.useMemo)((()=>({open:0===n})),[n]),defaultTag:"div",name:"Dialog.Overlay"})})),zt=Ce((function(e,t){let[{dialogState:n},r]=Mt("Dialog.Backdrop"),o=Ne(t),i=`headlessui-dialog-backdrop-${ze()}`;(0,s.useEffect)((()=>{if(null===r.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[r.panelRef]);let a=(0,s.useMemo)((()=>({open:0===n})),[n]);return s.createElement(ft,{force:!0},s.createElement(yt,null,Ee({ourProps:{ref:o,id:i,"aria-hidden":!0},theirProps:e,slot:a,defaultTag:"div",name:"Dialog.Backdrop"})))})),$t=Ce((function(e,t){let[{dialogState:n},r]=Mt("Dialog.Panel");return Ee({ourProps:{ref:Ne(t,r.panelRef),id:`headlessui-dialog-panel-${ze()}`},theirProps:e,slot:(0,s.useMemo)((()=>({open:0===n})),[n]),defaultTag:"div",name:"Dialog.Panel"})})),Vt=Ce((function(e,t){let[{dialogState:n,setTitleId:r}]=Mt("Dialog.Title"),o=`headlessui-dialog-title-${ze()}`,i=Ne(t);(0,s.useEffect)((()=>(r(o),()=>r(null))),[o,r]);let a=(0,s.useMemo)((()=>({open:0===n})),[n]);return Ee({ourProps:{ref:i,id:o},theirProps:e,slot:a,defaultTag:"h2",name:"Dialog.Title"})})),Wt=Object.assign(Ft,{Backdrop:zt,Panel:$t,Overlay:Ut,Title:Vt,Description:wt});const qt=wp.components,Ht=wp.i18n;const Yt=function(e){let{icon:t,size:n=24,...r}=e;return(0,o.cloneElement)(t,{width:n,height:n,...r})};var Gt=n(42),Jt=n.n(Gt);const Kt=e=>(0,o.createElement)("circle",e),Xt=e=>(0,o.createElement)("g",e),Zt=e=>(0,o.createElement)("path",e),Qt=e=>(0,o.createElement)("rect",e),en=e=>{let{className:t,isPressed:n,...r}=e;const i={...r,className:Jt()(t,{"is-pressed":n})||void 0,"aria-hidden":!0,focusable:!1};return(0,o.createElement)("svg",i)},tn=(0,o.createElement)(en,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Zt,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));var nn=n(4246);function rn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function on(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){rn(i,r,o,a,s,"next",e)}function s(e){rn(i,r,o,a,s,"throw",e)}a(void 0)}))}}var an=function(){return K.get("plugins")},sn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=new FormData;return t.append("plugins",JSON.stringify(e)),K.post("plugins",t,{headers:{"Content-Type":"multipart/form-data"}})},ln=function(){return K.get("active-plugins")};function un(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function cn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){un(i,r,o,a,s,"next",e)}function s(e){un(i,r,o,a,s,"throw",e)}a(void 0)}))}}function fn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return dn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function hn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){pn(i,r,o,a,s,"next",e)}function s(e){pn(i,r,o,a,s,"throw",e)}a(void 0)}))}}function mn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function xn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var vn={promotion:function(e){var t,n=e.promotionData;return(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)("span",{className:"text-black",children:null!==(t=null==n?void 0:n.text)&&void 0!==t?t:""}),(0,nn.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,nn.jsx)("div",{className:"flex items-center justify-center space-x-2",children:(null==n?void 0:n.url)&&(0,nn.jsx)(qt.Button,{variant:"link",className:"h-auto p-0 text-black underline hover:no-underline",href:"".concat(n.url,"&utm_source=").concat(window.extendifyData.sdk_partner,"&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),onClick:hn(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("promotion-notice-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),target:"_blank",children:null==n?void 0:n.button_text})})]})},feedback:function(){return(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)("span",{className:"text-black",children:(0,Ht.__)("Tell us how to make the Extendify Library work better for you","extendify")}),(0,nn.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,nn.jsx)("div",{className:"flex items-center justify-center space-x-2",children:(0,nn.jsx)(qt.Button,{variant:"link",className:"h-auto p-0 text-black underline hover:no-underline",href:"https://extendify.com/feedback/?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=feedback-notice&utm_content=give-feedback&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),onClick:on(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("feedback-notice-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),target:"_blank",children:(0,Ht.__)("Give feedback","extendify")})})]})},standalone:function(){var e=fn((0,o.useState)(""),2),t=e[0],n=e[1],r=J((function(e){return e.giveFreebieImports}));return(0,nn.jsxs)("div",{children:[(0,nn.jsx)("span",{className:"text-black",children:(0,Ht.__)("Install the new Extendify Library plugin to get the latest we have to offer","extendify")}),(0,nn.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,nn.jsxs)("div",{className:"relative inline-flex items-center space-x-2",children:[(0,nn.jsx)(qt.Button,{variant:"link",className:Jt()("h-auto p-0 text-black underline hover:no-underline",{"opacity-0":t}),onClick:function(){n((0,Ht.__)("Installing...","extendify")),Promise.all([ge("stln-footer-install"),sn(["extendify"]),new Promise((function(e){return setTimeout(e,1e3)}))]).then(cn(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(10),n((0,Ht.__)("Success! Reloading...","extendify")),e.next=4,ge("stln-footer-success");case 4:window.location.reload();case 5:case"end":return e.stop()}}),e)})))).catch(function(){var e=cn(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.error(t),n((0,Ht.__)("Error. See console.","extendify")),e.next=4,ge("stln-footer-fail");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},children:(0,Ht.__)("Install Extendify standalone plugin","extendify")}),t?(0,nn.jsx)(qt.Button,{variant:"link",disabled:!0,className:"absolute left-0 h-auto p-0 text-black underline opacity-100 hover:no-underline",onClick:function(){},children:t}):null]})]})}};function gn(e){var t,n=e.className,r=void 0===n?"":n,i=xn((0,o.useState)(null),2),s=i[0],l=i[1],u=(0,o.useRef)(!1),c=S((function(e){var t,n;return null===(t=e.metaData)||void 0===t||null===(n=t.banners)||void 0===n?void 0:n.footer})),f=null!==(t=Object.keys(vn).find((function(e){var t,n,r,o,i,a,s;return"promotion"===e?!(null!==(t=J.getState().apiKey)&&void 0!==t&&t.length)&&(null==c?void 0:c.key)&&!J.getState().noticesDismissedAt[c.key]:"feedback"===e?(i=null!==(n=J.getState().imports)&&void 0!==n?n:0,a=null!==(r=null===(o=J.getState())||void 0===o?void 0:o.firstLoadedOn)&&void 0!==r?r:new Date,s=(new Date).getTime()-new Date(a).getTime(),i>=3&&s/864e5>3&&!J.getState().noticesDismissedAt[e]):"standalone"===e?!window.extendifyData.standalone&&!J.getState().noticesDismissedAt[e]:!J.getState().noticesDismissedAt[e]})))&&void 0!==t?t:null,d=vn[f],p=function(){var e,t=(e=a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l(!1),t="promotion"===f?c.key:f,J.getState().markNoticeSeen(t,"notices"),e.next=5,ge("footer-notice-x-".concat(t));case 5:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){mn(i,r,o,a,s,"next",e)}function s(e){mn(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){vn[f]&&!u.current&&(l(!0),u.current=!0)}),[f]),s&&d?(0,nn.jsxs)("div",{className:"".concat(r," relative mx-auto hidden max-w-screen-4xl items-center justify-center space-x-4 bg-extendify-secondary py-3 px-5 lg:flex"),children:[(0,nn.jsx)(d,{promotionData:c}),(0,nn.jsx)("div",{className:"absolute right-1",children:(0,nn.jsx)(qt.Button,{className:"text-extendify-black opacity-50 hover:opacity-100 focus:opacity-100",icon:(0,nn.jsx)(Yt,{icon:tn}),label:(0,Ht.__)("Dismiss this notice","extendify"),onClick:p,showTooltip:!1})})]}):null}function bn(e){const{body:t}=document.implementation.createHTMLDocument("");t.innerHTML=e;const n=t.getElementsByTagName("*");let r=n.length;for(;r--;){const e=n[r];if("SCRIPT"===e.tagName)(o=e).parentNode,o.parentNode.removeChild(o);else{let t=e.attributes.length;for(;t--;){const{name:n}=e.attributes[t];n.startsWith("on")&&e.removeAttribute(n)}}}var o;return t.innerHTML}const wn=(0,nn.jsxs)(en,{viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)(Zt,{d:"M7.32457 0.907043C3.98785 0.907043 1.2829 3.61199 1.2829 6.94871C1.2829 10.2855 3.98785 12.9904 7.32457 12.9904C10.6613 12.9904 13.3663 10.2855 13.3663 6.94871C13.3663 3.61199 10.6613 0.907043 7.32457 0.907043V0.907043Z",stroke:"currentColor",strokeWidth:"1.25",fill:"none"}),(0,nn.jsx)(Zt,{d:"M6.34684 9.72526C6.34684 9.18224 6.77716 8.74168 7.32018 8.74168C7.8632 8.74168 8.30377 9.18224 8.30377 9.72526C8.30377 10.2683 7.8632 10.6986 7.32018 10.6986C6.77716 10.6986 6.34684 10.2683 6.34684 9.72526Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{d:"M7.9759 7.11261C7.93492 7.47121 7.67878 7.76834 7.32018 7.76834C6.95134 7.76834 6.70544 7.46097 6.6747 7.11261L6.34684 4.1721C6.28537 3.67006 6.81814 3.19876 7.32018 3.19876C7.82222 3.19876 8.35499 3.67006 8.30377 4.1721L7.9759 7.11261Z",fill:"currentColor"})]});const jn=(0,nn.jsx)(en,{fill:"none",viewBox:"0 0 25 24",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)(Zt,{clipRule:"evenodd",d:"m14.4063 2h4.1856c1.1856 0 1.6147.12701 2.0484.36409.4336.23802.7729.58706 1.0049 1.03111.2319.445.3548.8853.3548 2.10175v4.29475c0 1.2165-.1238 1.6567-.3548 2.1017-.232.445-.5722.7931-1.0049 1.0312-.1939.1064-.3873.1939-.6476.2567v3.4179c0 1.8788-.1912 2.5588-.5481 3.246-.3582.6873-.8836 1.2249-1.552 1.5925-.6697.3676-1.3325.5623-3.1634.5623h-6.46431c-1.83096 0-2.49367-.1962-3.16346-.5623-.6698-.3676-1.19374-.9067-1.552-1.5925s-.54943-1.3672-.54943-3.246v-6.63138c0-1.87871.19117-2.55871.54801-3.24597.35827-.68727.88362-1.22632 1.55342-1.59393.66837-.36615 1.3325-.56231 3.16346-.56231h2.76781c.0519-.55814.1602-.86269.3195-1.16946.232-.445.5721-.79404 1.0058-1.03206.4328-.23708.8628-.36409 2.0483-.36409zm-2.1512 2.73372c0-.79711.6298-1.4433 1.4067-1.4433h5.6737c.777 0 1.4068.64619 1.4068 1.4433v5.82118c0 .7971-.6298 1.4433-1.4068 1.4433h-5.6737c-.7769 0-1.4067-.6462-1.4067-1.4433z",fill:"currentColor",fillRule:"evenodd"})});const kn=(0,nn.jsx)(en,{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)(Zt,{clipRule:"evenodd",d:"m13.505 4h3.3044c.936 0 1.2747.10161 1.6171.29127.3424.19042.6102.46965.7934.82489.1831.356.2801.70824.2801 1.6814v3.43584c0 .9731-.0977 1.3254-.2801 1.6814-.1832.356-.4517.6344-.7934.8248-.153.0852-.3057.1552-.5112.2054v2.7344c0 1.503-.151 2.047-.4327 2.5968-.2828.5498-.6976.9799-1.2252 1.274-.5288.294-1.052.4498-2.4975.4498h-5.10341c-1.44549 0-1.96869-.1569-2.49747-.4498-.52878-.2941-.94242-.7254-1.22526-1.274-.28284-.5487-.43376-1.0938-.43376-2.5968v-5.3051c0-1.50301.15092-2.04701.43264-2.59682.28284-.54981.6976-.98106 1.22638-1.27514.52767-.29293 1.05198-.44985 2.49747-.44985h2.18511c.041-.44652.1265-.69015.2522-.93557.1832-.356.4517-.63523.7941-.82565.3417-.18966.6812-.29127 1.6171-.29127zm-1.6984 2.18698c0-.63769.4973-1.15464 1.1106-1.15464h4.4793c.6133 0 1.1106.51695 1.1106 1.15464v4.65692c0 .6377-.4973 1.1547-1.1106 1.1547h-4.4793c-.6133 0-1.1106-.517-1.1106-1.1547z",fill:"currentColor",fillRule:"evenodd"})});const En=(0,nn.jsx)(en,{fill:"none",width:"150",height:"30",viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsxs)(Xt,{fill:"currentColor",children:[(0,nn.jsx)(Zt,{d:"m609.404 378.5c-24.334 0-46-5.5-65-16.5-18.667-11.333-33.334-26.667-44-46-10.667-19.667-16-42.167-16-67.5 0-25.667 5.166-48.333 15.5-68 10.333-19.667 24.833-35 43.5-46 18.666-11.333 40-17 64-17 25 0 46.5 5.333 64.5 16 18 10.333 31.833 24.833 41.5 43.5 10 18.667 15 41 15 67v18.5l-212 .5 1-39h150.5c0-17-5.5-30.667-16.5-41-10.667-10.333-25.167-15.5-43.5-15.5-14.334 0-26.5 3-36.5 9-9.667 6-17 15-22 27s-7.5 26.667-7.5 44c0 26.667 5.666 46.833 17 60.5 11.666 13.667 28.833 20.5 51.5 20.5 16.666 0 30.333-3.167 41-9.5 11-6.333 18.166-15.333 21.5-27h56.5c-5.334 27-18.667 48.167-40 63.5-21 15.333-47.667 23-80 23z"}),(0,nn.jsx)("path",{d:"m797.529 372h-69.5l85-121-85-126h71l54.5 84 52.5-84h68.5l-84 125.5 81.5 121.5h-70l-53-81.5z"}),(0,nn.jsx)("path",{d:"m994.142 125h155.998v51h-155.998zm108.498 247h-61v-324h61z"}),(0,nn.jsx)("path",{d:"m1278.62 378.5c-24.33 0-46-5.5-65-16.5-18.66-11.333-33.33-26.667-44-46-10.66-19.667-16-42.167-16-67.5 0-25.667 5.17-48.333 15.5-68 10.34-19.667 24.84-35 43.5-46 18.67-11.333 40-17 64-17 25 0 46.5 5.333 64.5 16 18 10.333 31.84 24.833 41.5 43.5 10 18.667 15 41 15 67v18.5l-212 .5 1-39h150.5c0-17-5.5-30.667-16.5-41-10.66-10.333-25.16-15.5-43.5-15.5-14.33 0-26.5 3-36.5 9-9.66 6-17 15-22 27s-7.5 26.667-7.5 44c0 26.667 5.67 46.833 17 60.5 11.67 13.667 28.84 20.5 51.5 20.5 16.67 0 30.34-3.167 41-9.5 11-6.333 18.17-15.333 21.5-27h56.5c-5.33 27-18.66 48.167-40 63.5-21 15.333-47.66 23-80 23z"}),(0,nn.jsx)("path",{d:"m1484.44 372h-61v-247h56.5l5 32c7.67-12.333 18.5-22 32.5-29 14.34-7 29.84-10.5 46.5-10.5 31 0 54.34 9.167 70 27.5 16 18.333 24 43.333 24 75v152h-61v-137.5c0-20.667-4.66-36-14-46-9.33-10.333-22-15.5-38-15.5-19 0-33.83 6-44.5 18-10.66 12-16 28-16 48z"}),(0,nn.jsx)("path",{d:"m1798.38 378.5c-24 0-44.67-5.333-62-16-17-11-30.34-26.167-40-45.5-9.34-19.333-14-41.833-14-67.5s4.66-48.333 14-68c9.66-20 23.5-35.667 41.5-47s39.33-17 64-17c17.33 0 33.16 3.5 47.5 10.5 14.33 6.667 25.33 16.167 33 28.5v-156.5h60.5v372h-56l-4-38.5c-7.34 14-18.67 25-34 33-15 8-31.84 12-50.5 12zm13.5-56c14.33 0 26.66-3 37-9 10.33-6.333 18.33-15.167 24-26.5 6-11.667 9-24.833 9-39.5 0-15-3-28-9-39-5.67-11.333-13.67-20.167-24-26.5-10.34-6.667-22.67-10-37-10-14 0-26.17 3.333-36.5 10-10.34 6.333-18.34 15.167-24 26.5-5.34 11.333-8 24.333-8 39s2.66 27.667 8 39c5.66 11.333 13.66 20.167 24 26.5 10.33 6.333 22.5 9.5 36.5 9.5z"}),(0,nn.jsx)("path",{d:"m1996.45 372v-247h61v247zm30-296.5c-10.34 0-19.17-3.5-26.5-10.5-7-7.3333-10.5-16.1667-10.5-26.5s3.5-19 10.5-26c7.33-6.99999 16.16-10.49998 26.5-10.49998 10.33 0 19 3.49999 26 10.49998 7.33 7 11 15.6667 11 26s-3.67 19.1667-11 26.5c-7 7-15.67 10.5-26 10.5z"}),(0,nn.jsx)("path",{d:"m2085.97 125h155v51h-155zm155.5-122.5v52c-3.33 0-6.83 0-10.5 0-3.33 0-6.83 0-10.5 0-15.33 0-25.67 3.6667-31 11-5 7.3333-7.5 17.1667-7.5 29.5v277h-60.5v-277c0-22.6667 3.67-40.8333 11-54.5 7.33-14 17.67-24.1667 31-30.5 13.33-6.66666 28.83-10 46.5-10 5 0 10.17.166671 15.5.5 5.67.333329 11 .99999 16 2z"}),(0,nn.jsx)("path",{d:"m2330.4 125 80.5 228-33 62.5-112-290.5zm-58 361.5v-50.5h36.5c8 0 15-1 21-3 6-1.667 11.34-5 16-10 5-5 9.17-12.333 12.5-22l102.5-276h63l-121 302c-9 22.667-20.33 39.167-34 49.5-13.66 10.333-30.66 15.5-51 15.5-8.66 0-16.83-.5-24.5-1.5-7.33-.667-14.33-2-21-4z"}),(0,nn.jsx)("path",{clipRule:"evenodd",d:"m226.926 25.1299h83.271c23.586 0 32.123 2.4639 40.751 7.0633 8.628 4.6176 15.378 11.389 19.993 20.0037 4.615 8.6329 7.059 17.1746 7.059 40.7738v83.3183c0 23.599-2.463 32.141-7.059 40.774-4.615 8.633-11.383 15.386-19.993 20.003-3.857 2.065-7.704 3.764-12.884 4.981v66.308c0 36.447-3.803 49.639-10.902 62.972-7.128 13.333-17.579 23.763-30.877 30.894-13.325 7.132-26.51 10.909-62.936 10.909h-128.605c-36.4268 0-49.6113-3.805-62.9367-10.909-13.3254-7.131-23.749-17.589-30.8765-30.894-7.12757-13.304-10.9308-26.525-10.9308-62.972v-128.649c0-36.447 3.80323-49.639 10.9026-62.972 7.1275-13.333 17.5793-23.7909 30.9047-30.9224 13.2972-7.1034 26.5099-10.9088 62.9367-10.9088h55.064c1.033-10.8281 3.188-16.7362 6.357-22.6877 4.615-8.6329 11.382-15.4043 20.01-20.0219 8.61-4.5994 17.165-7.0633 40.751-7.0633zm-42.798 53.0342c0-15.464 12.53-28 27.986-28h112.877c15.457 0 27.987 12.536 27.987 28v112.9319c0 15.464-12.53 28-27.987 28h-112.877c-15.456 0-27.986-12.536-27.986-28z",fillRule:"evenodd"})]})});const _n=(0,nn.jsx)(en,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)("path",{d:"m11.9893 2.59931c-.1822.00285-.3558.07789-.4827.20864s-.1967.30653-.1941.48871v1.375c-.0013.0911.0156.18155.0495.26609.034.08454.0844.16149.1484.22637s.1402.11639.2242.15156c.0841.03516.1743.05327.2654.05327s.1813-.01811.2654-.05327c.084-.03517.1603-.08668.2242-.15156.064-.06488.1144-.14183.1484-.22637s.0508-.17499.0495-.26609v-1.375c.0013-.09202-.0158-.18337-.0505-.26863-.0346-.08526-.086-.1627-.1511-.22773s-.1426-.11633-.2279-.15085c-.0853-.03453-.1767-.05158-.2687-.05014zm-5.72562.46013c-.1251.00033-.24775.0348-.35471.09968-.10697.06488-.19421.15771-.25232.2685-.05812.1108-.0849.23534-.07747.36023.00744.12488.0488.24537.11964.34849l.91667 1.375c.04939.07667.11354.14274.18872.19437.07517.05164.15987.0878.24916.10639.08928.01858.18137.01922.27091.00187.08953-.01734.17472-.05233.2506-.10292.07589-.05059.14095-.11577.1914-.19174.05045-.07598.08528-.16123.10246-.2508.01719-.08956.01638-.18165-.00237-.2709s-.05507-.17388-.10684-.24897l-.91666-1.375c-.06252-.09667-.14831-.1761-.2495-.231-.1012-.0549-.21456-.08351-.32969-.0832zm11.45212 0c-.1117.00307-.2209.03329-.3182.08804-.0973.05474-.1798.13237-.2404.22616l-.9167 1.375c-.0518.07509-.0881.15972-.1068.24897-.0188.08925-.0196.18134-.0024.2709.0172.08957.052.17482.1024.2508.0505.07597.1156.14115.1914.19174.0759.05059.1611.08558.2506.10292.0896.01735.1817.01671.271-.00187.0892-.01859.1739-.05475.2491-.10639.0752-.05163.1393-.1177.1887-.19437l.9167-1.375c.0719-.10456.1135-.22698.1201-.3537s-.022-.25281-.0826-.36429c-.0606-.11149-.1508-.20403-.2608-.26738-.11-.06334-.2353-.09502-.3621-.09153zm-9.61162 3.67472c-.09573-.00001-.1904.01998-.27795.05867-.08756.03869-.16607.09524-.23052.16602l-4.58333 5.04165c-.11999.1319-.18407.3052-.17873.4834.00535.1782.0797.3473.20738.4718l8.47917 8.25c.1284.1251.3006.1951.4798.1951.1793 0 .3514-.07.4798-.1951l8.4792-8.25c.1277-.1245.202-.2936.2074-.4718.0053-.1782-.0588-.3515-.1788-.4834l-4.5833-5.04165c-.0644-.07078-.1429-.12733-.2305-.16602s-.1822-.05868-.278-.05867h-3.877zm.30436 1.375h2.21646l-2.61213 3.48314c-.04258.0557-.07639.1176-.10026.1835h-2.83773zm4.96646 0h2.2165l3.3336 3.66664h-2.8368c-.0241-.066-.0582-.1278-.1011-.1835zm-1.375.45833 2.4063 3.20831h-4.81254zm-6.78637 4.58331h2.70077c.00665.0188.01412.0374.02238.0555l2.11442 4.6505zm4.20826 0h5.15621l-2.5781 5.6719zm6.66371 0h2.7008l-4.8376 4.706 2.1144-4.6505c.0083-.0181.0158-.0367.0224-.0555z",fill:"#000"})});const Sn=(0,nn.jsxs)(en,{viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)(Zt,{d:"M7.32457 0.907043C3.98785 0.907043 1.2829 3.61199 1.2829 6.94871C1.2829 10.2855 3.98785 12.9904 7.32457 12.9904C10.6613 12.9904 13.3663 10.2855 13.3663 6.94871C13.3663 3.61199 10.6613 0.907043 7.32457 0.907043V0.907043Z",stroke:"white",strokeWidth:"1.25"}),(0,nn.jsx)(Zt,{d:"M7.32458 10.0998L4.82458 7.59977M7.32458 10.0998V3.79764V10.0998ZM7.32458 10.0998L9.82458 7.59977L7.32458 10.0998Z",stroke:"white",strokeWidth:"1.25"})]});const Cn=(0,nn.jsxs)(en,{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)("path",{d:"M7.93298 20.2773L17.933 20.2773C18.1982 20.2773 18.4526 20.172 18.6401 19.9845C18.8276 19.7969 18.933 19.5426 18.933 19.2773C18.933 19.0121 18.8276 18.7578 18.6401 18.5702C18.4526 18.3827 18.1982 18.2773 17.933 18.2773L7.93298 18.2773C7.66777 18.2773 7.41341 18.3827 7.22588 18.5702C7.03834 18.7578 6.93298 19.0121 6.93298 19.2773C6.93298 19.5426 7.03834 19.7969 7.22588 19.9845C7.41341 20.172 7.66777 20.2773 7.93298 20.2773Z",fill:"white"}),(0,nn.jsx)("path",{d:"M12.933 4.27734C12.6678 4.27734 12.4134 4.3827 12.2259 4.57024C12.0383 4.75777 11.933 5.01213 11.933 5.27734L11.933 12.8673L9.64298 10.5773C9.55333 10.4727 9.44301 10.3876 9.31895 10.3276C9.19488 10.2676 9.05975 10.2339 8.92203 10.2285C8.78431 10.2232 8.64698 10.2464 8.51865 10.2967C8.39033 10.347 8.27378 10.4232 8.17632 10.5207C8.07887 10.6181 8.00261 10.7347 7.95234 10.863C7.90206 10.9913 7.87886 11.1287 7.88418 11.2664C7.8895 11.4041 7.92323 11.5392 7.98325 11.6633C8.04327 11.7874 8.12829 11.8977 8.23297 11.9873L12.233 15.9873C12.3259 16.0811 12.4365 16.1555 12.5584 16.2062C12.6803 16.257 12.811 16.2831 12.943 16.2831C13.075 16.2831 13.2057 16.257 13.3276 16.2062C13.4494 16.1555 13.56 16.0811 13.653 15.9873L17.653 11.9873C17.8168 11.796 17.9024 11.55 17.8927 11.2983C17.883 11.0466 17.7786 10.8079 17.6005 10.6298C17.4224 10.4517 17.1837 10.3474 16.932 10.3376C16.6804 10.3279 16.4343 10.4135 16.243 10.5773L13.933 12.8673L13.933 5.27734C13.933 5.01213 13.8276 4.75777 13.6401 4.57024C13.4525 4.3827 13.1982 4.27734 12.933 4.27734Z",fill:"white"})]});const On=(0,nn.jsxs)(en,{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)(Zt,{d:"m11.2721 16.9866.6041 2.2795.6042-2.2795.6213-2.3445c.0001-.0002.0001-.0004.0002-.0006.2404-.9015.8073-1.5543 1.4638-1.8165.0005-.0002.0009-.0004.0013-.0006l1.9237-.7555 1.4811-.5818-1.4811-.5817-1.9264-.7566c0-.0001-.0001-.0001-.0001-.0001-.0001 0-.0001 0-.0001 0-.654-.25727-1.2213-.90816-1.4621-1.81563-.0001-.00006-.0001-.00011-.0001-.00017l-.6215-2.34519-.6042-2.27947-.6041 2.27947-.6216 2.34519v.00017c-.2409.90747-.80819 1.55836-1.46216 1.81563-.00002 0-.00003 0-.00005 0-.00006 0-.00011 0-.00017.0001l-1.92637.7566-1.48108.5817 1.48108.5818 1.92637.7566c.00007 0 .00015.0001.00022.0001.65397.2572 1.22126.9082 1.46216 1.8156v.0002z",stroke:"currentColor",strokeWidth:"1.25",fill:"none"}),(0,nn.jsxs)(Xt,{fill:"currentColor",children:[(0,nn.jsx)(Zt,{d:"m18.1034 18.3982-.2787.8625-.2787-.8625c-.1314-.4077-.4511-.7275-.8589-.8589l-.8624-.2786.8624-.2787c.4078-.1314.7275-.4512.8589-.8589l.2787-.8624.2787.8624c.1314.4077.4511.7275.8589.8589l.8624.2787-.8624.2786c-.4078.1314-.7269.4512-.8589.8589z"}),(0,nn.jsx)(Zt,{d:"m6.33141 6.97291-.27868.86242-.27867-.86242c-.13142-.40775-.45116-.72749-.8589-.85891l-.86243-.27867.86243-.27868c.40774-.13141.72748-.45115.8589-.8589l.27867-.86242.27868.86242c.13142.40775.45116.72749.8589.8589l.86242.27868-.86242.27867c-.40774.13142-.7269.45116-.8589.85891z"})]})]});const An=(0,nn.jsx)(en,{fill:"none",height:"25",viewBox:"0 0 25 25",width:"25",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)(Zt,{d:"m16.2382 9.17969.7499.00645.0066-.75988-.7599.00344zm-5.5442.77506 5.5475-.02507-.0067-1.49998-5.5476.02506zm4.7942-.78152-.0476 5.52507 1.5.0129.0475-5.52506zm.2196-.52387-7.68099 7.68104 1.06066 1.0606 7.68103-7.68098z",fill:"currentColor"})});const Pn=(0,nn.jsx)(en,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsxs)(Xt,{stroke:"currentColor",strokeWidth:"1.5",children:[(0,nn.jsx)(Zt,{d:"m6 4.75h12c.6904 0 1.25.55964 1.25 1.25v12c0 .6904-.5596 1.25-1.25 1.25h-12c-.69036 0-1.25-.5596-1.25-1.25v-12c0-.69036.55964-1.25 1.25-1.25z"}),(0,nn.jsx)(Zt,{d:"m9.25 19v-14"})]})});const Tn=(0,nn.jsxs)(en,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)(Zt,{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49271 18.0092C6.97815 17.1176 7.28413 15.9755 8.17569 15.4609C9.06724 14.946 10.2094 15.252 10.7243 16.1435C11.2389 17.0355 10.9329 18.1772 10.0413 18.6922C9.14978 19.2071 8.00764 18.9011 7.49271 18.0092V18.0092Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5073 6.12747C17.0218 7.01903 16.7158 8.16117 15.8243 8.67573C14.9327 9.19066 13.7906 8.88467 13.2757 7.99312C12.7611 7.10119 13.0671 5.95942 13.9586 5.44449C14.8502 4.92956 15.9923 5.23555 16.5073 6.12747V6.12747Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.60135 11.1355C5.11628 10.2439 6.25805 9.93793 7.14998 10.4525C8.04153 10.9674 8.34752 12.1096 7.83296 13.0011C7.31803 13.8927 6.17588 14.1987 5.28433 13.6841C4.39278 13.1692 4.08679 12.0274 4.60135 11.1355V11.1355Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.3986 13.0011C18.8837 13.8927 17.7419 14.1987 16.85 13.6841C15.9584 13.1692 15.6525 12.027 16.167 11.1355C16.682 10.2439 17.8241 9.93793 18.7157 10.4525C19.6072 10.9674 19.9132 12.1092 19.3986 13.0011V13.0011Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{d:"M9.10857 8.92594C10.1389 8.92594 10.9742 8.09066 10.9742 7.06029C10.9742 6.02992 10.1389 5.19464 9.10857 5.19464C8.0782 5.19464 7.24292 6.02992 7.24292 7.06029C7.24292 8.09066 8.0782 8.92594 9.10857 8.92594Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{d:"M14.8913 18.942C15.9217 18.942 16.7569 18.1067 16.7569 17.0763C16.7569 16.046 15.9217 15.2107 14.8913 15.2107C13.8609 15.2107 13.0256 16.046 13.0256 17.0763C13.0256 18.1067 13.8609 18.942 14.8913 18.942Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3841 13.0011C9.86951 12.1096 10.1755 10.9674 11.067 10.4525C11.9586 9.93793 13.1007 10.2439 13.6157 11.1355C14.1302 12.0274 13.8242 13.1692 12.9327 13.6841C12.0411 14.1987 10.899 13.8927 10.3841 13.0011V13.0011Z",fill:"currentColor"})]});const Nn=(0,nn.jsxs)(en,{fill:"none",viewBox:"0 0 151 148",width:"151",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)(Kt,{cx:"65.6441",cy:"66.6114",fill:"#0b4a43",r:"65.3897"}),(0,nn.jsxs)(Xt,{fill:"#cbc3f5",stroke:"#0b4a43",children:[(0,nn.jsx)(Zt,{d:"m61.73 11.3928 3.0825 8.3304.1197.3234.3234.1197 8.3304 3.0825-8.3304 3.0825-.3234.1197-.1197.3234-3.0825 8.3304-3.0825-8.3304-.1197-.3234-.3234-.1197-8.3304-3.0825 8.3304-3.0825.3234-.1197.1197-.3234z",strokeWidth:"1.5"}),(0,nn.jsx)(Zt,{d:"m84.3065 31.2718c0 5.9939-12.4614 22.323-18.6978 22.323h-17.8958v56.1522c3.5249.9 11.6535 0 17.8958 0h6.2364c11.2074 3.33 36.0089 7.991 45.5529 0l-9.294-62.1623c-2.267-1.7171-5.949-6.6968-2.55-12.8786 3.4-6.1817 2.55-18.0406 0-24.5756-1.871-4.79616-8.3289-8.90882-14.4482-8.90882s-7.0825 4.00668-6.7993 6.01003z",strokeWidth:"1.75"}),(0,nn.jsx)(Qt,{height:"45.5077",rx:"9.13723",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 191.5074 -96.0026)",width:"18.2745",x:"143.755",y:"47.7524"}),(0,nn.jsx)(Qt,{height:"42.3038",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 241.97 -50.348)",width:"17.4735",x:"146.159",y:"95.811"}),(0,nn.jsx)(Qt,{height:"55.9204",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 213.1347 -85.5913)",width:"17.4735",x:"149.363",y:"63.7717"}),(0,nn.jsx)(Qt,{height:"51.1145",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 229.1545 -69.5715)",width:"17.4735",x:"149.363",y:"79.7915"}),(0,nn.jsx)(Zt,{d:"m75.7483 105.349c.9858-25.6313-19.2235-42.0514-32.8401-44.0538v12.0146c8.5438 1.068 24.8303 9.7642 24.8303 36.0442 0 23.228 19.4905 33.374 29.6362 33.641v-10.413s-22.6122-1.602-21.6264-27.233z",strokeWidth:"1.75"}),(0,nn.jsx)(Zt,{d:"m68.5388 109.354c.9858-25.6312-19.2234-42.0513-32.8401-44.0537v12.0147c8.5438 1.0679 24.8303 9.7641 24.8303 36.044 0 23.228 19.4905 33.374 29.6362 33.641v-10.413s-22.6122-1.602-21.6264-27.233z",strokeWidth:"1.75"})]})]});const Rn=(0,nn.jsxs)(en,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)(Kt,{cx:"12",cy:"12",r:"7.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,nn.jsx)(Kt,{cx:"12",cy:"12",r:"4.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,nn.jsx)(Kt,{cx:"11.9999",cy:"12.2",r:"6",transform:"rotate(-45 11.9999 12.2)",stroke:"currentColor",strokeWidth:"3",strokeDasharray:"1.5 4"})]});const In=(0,nn.jsx)(en,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)(Zt,{d:"m11.7758 3.45425c.0917-.18582.3567-.18581.4484 0l2.3627 4.78731c.0364.07379.1068.12493.1882.13676l5.2831.76769c.2051.02979.287.28178.1386.42642l-3.8229 3.72637c-.0589.0575-.0858.1402-.0719.2213l.9024 5.2618c.0351.2042-.1793.36-.3627.2635l-4.7254-2.4842c-.0728-.0383-.1598-.0383-.2326 0l-4.7254 2.4842c-.18341.0965-.39776-.0593-.36274-.2635l.90247-5.2618c.01391-.0811-.01298-.1638-.0719-.2213l-3.8229-3.72637c-.14838-.14464-.0665-.39663.13855-.42642l5.28312-.76769c.08143-.01183.15182-.06297.18823-.13676z",fill:"currentColor"})});const Ln=(0,nn.jsx)(en,{fill:"none",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)(Zt,{clipRule:"evenodd",d:"m13 4c4.9545 0 9 4.04545 9 9 0 4.9545-4.0455 9-9 9-4.95455 0-9-4.0455-9-9 0-4.95455 4.04545-9 9-9zm5.0909 13.4545c-1.9545 3.8637-8.22726 3.8637-10.22726 0-.04546-.1818-.04546-.3636 0-.5454 2-3.8636 8.27276-3.8636 10.22726 0 .0909.1818.0909.3636 0 .5454zm-5.0909-8.90905c-1.2727 0-2.3182 1.04546-2.3182 2.31815 0 1.2728 1.0455 2.3182 2.3182 2.3182s2.3182-1.0454 2.3182-2.3182c0-1.27269-1.0455-2.31815-2.3182-2.31815z",fill:"currentColor",fillRule:"evenodd"})}),Mn=(0,o.createElement)(en,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Zt,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function Dn(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add((()=>e.removeEventListener(t,r,o)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>n.requestAnimationFrame((()=>n.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}function Bn(e,...t){e&&t.length>0&&e.classList.add(...t)}function Fn(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Un=(e=>(e.Ended="ended",e.Cancelled="cancelled",e))(Un||{});function zn(e,t,n,r){let o=n?"enter":"leave",i=Dn(),a=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{},s=be(o,{enter:()=>t.enter,leave:()=>t.leave}),l=be(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=be(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Fn(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Bn(e,...s,...u),i.nextFrame((()=>{Fn(e,...u),Bn(e,...l),function(e,t){let n=Dn();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(i+a!==0){let r=[];r.push(n.addEventListener(e,"transitionrun",(()=>{r.splice(0).forEach((e=>e())),r.push(n.addEventListener(e,"transitionend",(()=>{t("ended"),r.splice(0).forEach((e=>e()))}),{once:!0}),n.addEventListener(e,"transitioncancel",(()=>{t("cancelled"),r.splice(0).forEach((e=>e()))}),{once:!0}))}),{once:!0}))}else t("ended");n.add((()=>t("cancelled"))),n.dispose}(e,(n=>("ended"===n&&(Fn(e,...s),Bn(e,...t.entered)),a(n))))})),i.dispose}function $n({container:e,direction:t,classes:n,events:r,onStart:o,onStop:i}){let a=Qe(),l=function(){let[e]=(0,s.useState)(Dn);return(0,s.useEffect)((()=>()=>e.dispose()),[e]),e}(),u=Xe(t),c=Xe((()=>be(u.current,{enter:()=>r.current.beforeEnter(),leave:()=>r.current.beforeLeave(),idle:()=>{}}))),f=Xe((()=>be(u.current,{enter:()=>r.current.afterEnter(),leave:()=>r.current.afterLeave(),idle:()=>{}})));Le((()=>{let t=Dn();l.add(t.dispose);let r=e.current;if(r&&"idle"!==u.current&&a.current)return t.dispose(),c.current(),o.current(u.current),t.add(zn(r,n.current,"enter"===u.current,(e=>{t.dispose(),be(e,{[Un.Ended](){f.current(),i.current(u.current)},[Un.Cancelled]:()=>{}})}))),t.dispose}),[t])}function Vn(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let Wn=(0,s.createContext)(null);Wn.displayName="TransitionContext";var qn=(e=>(e.Visible="visible",e.Hidden="hidden",e))(qn||{});let Hn=(0,s.createContext)(null);function Yn(e){return"children"in e?Yn(e.children):e.current.filter((({state:e})=>"visible"===e)).length>0}function Gn(e){let t=Xe(e),n=(0,s.useRef)([]),r=Qe(),o=Xe(((e,o=ke.Hidden)=>{let i=n.current.findIndex((({id:t})=>t===e));-1!==i&&(be(o,{[ke.Unmount](){n.current.splice(i,1)},[ke.Hidden](){n.current[i].state="hidden"}}),At((()=>{var e;!Yn(n)&&r.current&&(null==(e=t.current)||e.call(t))})))})),i=Xe((e=>{let t=n.current.find((({id:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):n.current.push({id:e,state:"visible"}),()=>o.current(e,ke.Unmount)}));return(0,s.useMemo)((()=>({children:n,register:i,unregister:o})),[i,o,n])}function Jn(){}Hn.displayName="NestingContext";let Kn=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Xn(e){var t;let n={};for(let r of Kn)n[r]=null!=(t=e[r])?t:Jn;return n}let Zn=je.RenderStrategy,Qn=Ce((function(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i,enter:a,enterFrom:l,enterTo:u,entered:c,leave:f,leaveFrom:d,leaveTo:p,...h}=e,m=(0,s.useRef)(null),x=Ne(m,t),[y,v]=(0,s.useState)("visible"),g=h.unmount?ke.Unmount:ke.Hidden,{show:b,appear:w,initial:j}=function(){let e=(0,s.useContext)(Wn);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:k,unregister:E}=function(){let e=(0,s.useContext)(Hn);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),_=(0,s.useRef)(null),S=ze(),C=(0,s.useRef)(!1),O=Gn((()=>{C.current||(v("hidden"),E.current(S))}));(0,s.useEffect)((()=>{if(S)return k.current(S)}),[k,S]),(0,s.useEffect)((()=>{if(g===ke.Hidden&&S){if(b&&"visible"!==y)return void v("visible");be(y,{hidden:()=>E.current(S),visible:()=>k.current(S)})}}),[y,S,k,E,b,g]);let A=Xe({enter:Vn(a),enterFrom:Vn(l),enterTo:Vn(u),entered:Vn(c),leave:Vn(f),leaveFrom:Vn(d),leaveTo:Vn(p)}),P=function(e){let t=(0,s.useRef)(Xn(e));return(0,s.useEffect)((()=>{t.current=Xn(e)}),[e]),t}({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i}),T=De();(0,s.useEffect)((()=>{if(T&&"visible"===y&&null===m.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[m,y,T]);let N=j&&!w,R=!T||N||_.current===b?"idle":b?"enter":"leave";$n({container:m,classes:A,events:P,direction:R,onStart:Xe((()=>{})),onStop:Xe((e=>{"leave"===e&&!Yn(O)&&(v("hidden"),E.current(S))}))}),(0,s.useEffect)((()=>{!N||(g===ke.Hidden?_.current=null:_.current=b)}),[b,N,y]);let I=h,L={ref:x};return s.createElement(Hn.Provider,{value:O},s.createElement(_t,{value:be(y,{visible:kt.Open,hidden:kt.Closed})},Ee({ourProps:L,theirProps:I,defaultTag:"div",features:Zn,visible:"visible"===y,name:"Transition.Child"})))})),er=Ce((function(e,t){let{show:n,appear:r=!1,unmount:o,...i}=e,a=Ne(t);De();let l=Et();if(void 0===n&&null!==l&&(n=be(l,{[kt.Open]:!0,[kt.Closed]:!1})),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,c]=(0,s.useState)(n?"visible":"hidden"),f=Gn((()=>{c("hidden")})),[d,p]=(0,s.useState)(!0),h=(0,s.useRef)([n]);Le((()=>{!1!==d&&h.current[h.current.length-1]!==n&&(h.current.push(n),p(!1))}),[h,n]);let m=(0,s.useMemo)((()=>({show:n,appear:r,initial:d})),[n,r,d]);(0,s.useEffect)((()=>{n?c("visible"):Yn(f)||c("hidden")}),[n,f]);let x={unmount:o};return s.createElement(Hn.Provider,{value:f},s.createElement(Wn.Provider,{value:m},Ee({ourProps:{...x,as:s.Fragment,children:s.createElement(Qn,{ref:a,...x,...i})},theirProps:{},defaultTag:s.Fragment,features:Zn,visible:"visible"===u,name:"Transition"})))}));let tr=Object.assign(er,{Child:function(e){let t=null!==(0,s.useContext)(Wn),n=null!==Et();return s.createElement(s.Fragment,null,!t&&n?s.createElement(er,{...e}):s.createElement(Qn,{...e}))},Root:er});var nr=(0,o.forwardRef)((function(e,t){var n,r=e.onClose,i=e.isOpen,a=e.invertedButtonColor,s=e.children,l=e.leftContainerBgColor,u=void 0===l?"bg-white":l,c=e.rightContainerBgColor,f=void 0===c?"bg-gray-100":c,d=(0,o.useRef)(null),p=S((function(e){return e.removeAllModals}));return r=null!==(n=r)&&void 0!==n?n:p,(0,nn.jsx)(tr.Root,{appear:!0,show:!0,as:o.Fragment,children:(0,nn.jsx)(Wt,{as:"div",static:!0,open:i,className:"extendify",initialFocus:null!=t?t:d,onClose:r,children:(0,nn.jsxs)("div",{className:"fixed inset-0 z-high flex",children:[(0,nn.jsx)(tr.Child,{as:o.Fragment,enter:"ease-out duration-50 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,nn.jsx)(Wt.Overlay,{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity"})}),(0,nn.jsx)(tr.Child,{as:o.Fragment,enter:"ease-out duration-300 translate transform",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,nn.jsx)("div",{className:"m-auto",children:(0,nn.jsxs)("div",{className:"relative m-8 max-w-md justify-between rounded-sm shadow-modal md:m-0 md:flex md:max-w-2xl",children:[(0,nn.jsxs)("button",{onClick:r,ref:d,className:"absolute top-0 right-0 block cursor-pointer rounded-md bg-transparent p-4 text-gray-700 opacity-30 hover:opacity-100",style:a&&{filter:"invert(1)"},children:[(0,nn.jsx)("span",{className:"sr-only",children:(0,Ht.__)("Close","extendify")}),(0,nn.jsx)(Yt,{icon:Mn})]}),(0,nn.jsx)("div",{className:"w-7/12 p-12 ".concat(u),children:s[0]}),(0,nn.jsx)("div",{className:"hidden w-6/12 md:block ".concat(f),children:s[1]})]})})})]})})})}));function rr(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function or(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){rr(i,r,o,a,s,"next",e)}function s(e){rr(i,r,o,a,s,"throw",e)}a(void 0)}))}}function ir(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ar(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ar(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ar(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sr=function(){var e=ir((0,o.useState)((0,Ht.__)("Install Extendify","extendify")),2),t=e[0],n=e[1],r=ir((0,o.useState)(!1),2),i=r[0],s=r[1],l=ir((0,o.useState)(!1),2),u=l[0],c=l[1],f=(0,o.useRef)(null),d=J((function(e){return e.markNoticeSeen})),p=J((function(e){return e.giveFreebieImports})),h=S((function(e){return e.removeAllModals})),m=function(){var e=or(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(),d("standalone","modalNotices"),e.next=4,ge("stln-modal-x");case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,nn.jsxs)(nr,{ref:f,onClose:m,children:[(0,nn.jsxs)("div",{children:[(0,nn.jsx)("div",{className:"mb-10 flex items-center space-x-2 text-extendify-black",children:En}),(0,nn.jsx)("h3",{className:"text-xl",children:(0,Ht.__)("Get the brand new Extendify plugin today!","extendify")}),(0,nn.jsx)("p",{className:"text-sm text-black",dangerouslySetInnerHTML:{__html:bn((0,Ht.sprintf)((0,Ht.__)("Install the new Extendify Library plugin to get the latest we have to offer — right from WordPress.org. Plus, well send you %1$s10 more imports%2$s. Nice.","extendify"),"<strong>","</strong>"))}}),(0,nn.jsx)("div",{children:(0,nn.jsxs)("button",{onClick:function(){n((0,Ht.__)("Installing...","extendify")),c(!0),Promise.all([ge("stln-modal-install"),sn(["extendify"]),new Promise((function(e){return setTimeout(e,1e3)}))]).then(or(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n((0,Ht.__)("Success! Reloading...","extendify")),s(!0),p(10),e.next=5,ge("stln-modal-success");case 5:window.location.reload();case 6:case"end":return e.stop()}}),e)})))).catch(function(){var e=or(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.error(t),n((0,Ht.__)("Error. See console.","extendify")),e.next=4,ge("stln-modal-fail");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},ref:f,disabled:u,className:"button-extendify-main button-focus mt-2 inline-flex justify-center px-4 py-3",style:{minWidth:"225px"},children:[t,i||(0,nn.jsx)(qt.Icon,{icon:Cn,size:24,className:"ml-2 w-6 flex-grow-0"})]})})]}),(0,nn.jsx)("div",{className:"flex w-full justify-end rounded-tr-sm rounded-br-sm bg-extendify-secondary",children:(0,nn.jsx)("img",{alt:(0,Ht.__)("Upgrade Now","extendify"),className:"rounded-br-sm max-w-full rounded-tr-sm",src:window.extendifyData.asset_path+"/modal-extendify-purple.png"})})]})};function lr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ur(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ur(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ur(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cr(){return cr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cr.apply(this,arguments)}function fr(e,t){return fr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fr(e,t)}var dr=new Map,pr=new WeakMap,hr=0,mr=void 0;function xr(e){return Object.keys(e).sort().filter((function(t){return void 0!==e[t]})).map((function(t){return t+"_"+("root"===t?(n=e.root)?(pr.has(n)||(hr+=1,pr.set(n,hr.toString())),pr.get(n)):"0":e[t]);var n})).toString()}function yr(e,t,n,r){if(void 0===n&&(n={}),void 0===r&&(r=mr),void 0===window.IntersectionObserver&&void 0!==r){var o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),function(){}}var i=function(e){var t=xr(e),n=dr.get(t);if(!n){var r,o=new Map,i=new IntersectionObserver((function(t){t.forEach((function(t){var n,i=t.isIntersecting&&r.some((function(e){return t.intersectionRatio>=e}));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=o.get(t.target))||n.forEach((function(e){e(i,t)}))}))}),e);r=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:o},dr.set(t,n)}return n}(n),a=i.id,s=i.observer,l=i.elements,u=l.get(e)||[];return l.has(e)||l.set(e,u),u.push(t),s.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(l.delete(e),s.unobserve(e)),0===l.size&&(s.disconnect(),dr.delete(a))}}var vr=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function gr(e){return"function"!=typeof e.children}var br=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){n.node&&(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),gr(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,fr(t,n);var o=r.prototype;return o.componentDidUpdate=function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())},o.componentWillUnmount=function(){this.unobserve(),this.node=null},o.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin,o=e.trackVisibility,i=e.delay,a=e.fallbackInView;this._unobserveCb=yr(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r,trackVisibility:o,delay:i},a)}},o.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},o.render=function(){if(!gr(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var r=this.props,o=r.children,i=r.as,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,vr);return s.createElement(i||"div",cr({ref:this.handleNode},a),o)},r}(s.Component);function wr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function jr(){return jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jr.apply(this,arguments)}function kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kr(Object(n),!0).forEach((function(t){_r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}br.displayName="InView",br.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};const Sr={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};class Cr extends l().Component{constructor(e){let t;super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this),t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||2,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){window&&window.requestAnimationFrame?(window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame((()=>{this.reCalculateColumnCount()}))):this.reCalculateColumnCount()}reCalculateColumnCount(){const e=window&&window.innerWidth||1/0;let t=this.props.breakpointCols;"object"!=typeof t&&(t={default:parseInt(t)||2});let n=1/0,r=t.default||2;for(let o in t){const i=parseInt(o);i>0&&e<=i&&i<n&&(n=i,r=t[o])}r=Math.max(1,parseInt(r)||1),this.state.columnCount!==r&&this.setState({columnCount:r})}itemsInColumns(){const e=this.state.columnCount,t=new Array(e),n=l().Children.toArray(this.props.children);for(let r=0;r<n.length;r++){const o=r%e;t[o]||(t[o]=[]),t[o].push(n[r])}return t}renderColumns(){const{column:e,columnAttrs:t={},columnClassName:n}=this.props,r=this.itemsInColumns(),o=100/r.length+"%";let i=n;i&&"string"!=typeof i&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===i&&(i="my-masonry-grid_column"));const a=Er(Er(Er({},e),t),{},{style:Er(Er({},t.style),{},{width:o}),className:i});return r.map(((e,t)=>l().createElement("div",jr({},a,{key:t}),e)))}logDeprecated(e){console.error("[Masonry]",e)}render(){const e=this.props,{children:t,breakpointCols:n,columnClassName:r,columnAttrs:o,column:i,className:a}=e,s=wr(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let u=a;return"string"!=typeof a&&(this.logDeprecated('The property "className" requires a string'),void 0===a&&(u="my-masonry-grid")),l().createElement("div",jr({},s,{className:u}),this.renderColumns())}}Cr.defaultProps=Sr;const Or=Cr;function Ar(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Pr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ar(i,r,o,a,s,"next",e)}function s(e){Ar(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Tr=0,Nr=function(e){var t=arguments;return Pr(a().mark((function n(){var r,o,i,s,l;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t.length>1&&void 0!==t[1]?t[1]:{},Tr++,i="pattern"===e.type?"8":"4",s="pattern"===e.type?"patternType":"layoutType",l=Object.assign({filterByFormula:Lr(e,s),pageSize:i,categories:e.taxonomies,search:e.search,type:e.type,offset:"",initial:1===Tr,request_count:Tr,sdk_partner:null!==(r=J.getState().sdkPartner)&&void 0!==r?r:""},o),n.next=7,K.post("templates",l);case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),n)})))()},Rr=function(e){var t,n,r,o,i,a,s=null!==(t=null===(n=ye.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return K.post("templates/".concat(e.id),{template_id:null==e?void 0:e.id,categories:s,maybe_import:!0,type:null===(o=e.fields)||void 0===o?void 0:o.type,sdk_partner:null!==(i=J.getState().sdkPartner)&&void 0!==i?i:"",pageSize:"1",template_name:null===(a=e.fields)||void 0===a?void 0:a.title})},Ir=function(e){var t,n,r,o,i,a,s,l,u,c=null!==(t=null===(n=ye.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return K.post("templates/".concat(e.id),{template_id:e.id,categories:c,imported:!0,basePattern:null!==(o=null!==(i=null===(a=e.fields)||void 0===a?void 0:a.basePattern)&&void 0!==i?i:null===(s=e.fields)||void 0===s?void 0:s.baseLayout)&&void 0!==o?o:"",type:e.fields.type,sdk_partner:null!==(l=J.getState().sdkPartner)&&void 0!==l?l:"",pageSize:"1",template_name:null===(u=e.fields)||void 0===u?void 0:u.title})},Lr=function(e,t){var n,r,o=e.taxonomies,i=null==o||null===(n=o.siteType)||void 0===n?void 0:n.slug,a=['{type}="'.concat(t.replace("Type",""),'"'),'{siteType}="'.concat(i,'"')];return null!==(r=o[t])&&void 0!==r&&r.slug&&a.push("{".concat(t,'}="').concat(o[t].slug,'"')),"AND(".concat(a.join(", "),")").replace(/\r?\n|\r/g,"")};const Mr=wp.blockEditor;function Dr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Br(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Br(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Br(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Fr=function(){var e=Dr((0,o.useState)(!1),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){var e=function(){return n(window.location.search.indexOf("DEVMODE")>-1||window.location.search.indexOf("LOCALMODE")>-1)};return e(),window.addEventListener("popstate",e),function(){window.removeEventListener("popstate",e)}}),[]),t};function Ur(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function zr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ur(i,r,o,a,s,"next",e)}function s(e){Ur(i,r,o,a,s,"throw",e)}a(void 0)}))}}var $r=[],Vr=[];function Wr(e){return qr.apply(this,arguments)}function qr(){return qr=zr(a().mark((function e(t){var n,r,o,i,s,l,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=(l=null!==(n=null==t||null===(r=t.fields)||void 0===r?void 0:r.required_plugins)&&void 0!==n?n:[]).filter((function(e){return"editorplus"!==e})),null!==(o=l)&&void 0!==o&&o.length){e.next=4;break}return e.abrupt("return",!1);case 4:if(null!==(i=$r)&&void 0!==i&&i.length){e.next=10;break}return e.t0=Object,e.next=8,an();case 8:e.t1=e.sent,$r=e.t0.keys.call(e.t0,e.t1);case 10:return u=!(null===(s=l)||void 0===s||!s.length)&&l.filter((function(e){return!$r.some((function(t){return t.includes(e)}))})),e.abrupt("return",u.length);case 12:case"end":return e.stop()}}),e)}))),qr.apply(this,arguments)}function Hr(e){return Yr.apply(this,arguments)}function Yr(){return Yr=zr(a().mark((function e(t){var n,r,o,i,s,l,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=(l=null!==(n=null==t||null===(r=t.fields)||void 0===r?void 0:r.required_plugins)&&void 0!==n?n:[]).filter((function(e){return"editorplus"!==e})),null!==(o=l)&&void 0!==o&&o.length){e.next=4;break}return e.abrupt("return",!1);case 4:if(null!==(i=Vr)&&void 0!==i&&i.length){e.next=10;break}return e.t0=Object,e.next=8,ln();case 8:e.t1=e.sent,Vr=e.t0.values.call(e.t0,e.t1);case 10:if(u=!(null===(s=l)||void 0===s||!s.length)&&l.filter((function(e){return!Vr.some((function(t){return t.includes(e)}))})),!u){e.next=16;break}return e.next=14,Wr(t);case 14:if(!e.sent){e.next=16;break}return e.abrupt("return",!1);case 16:return e.abrupt("return",null==u?void 0:u.length);case 17:case"end":return e.stop()}}),e)}))),Yr.apply(this,arguments)}var Gr=f(b((function(e){return{wantedTemplate:{},importOnLoad:!1,setWanted:function(t){return e({wantedTemplate:t})},removeWanted:function(){return e({wantedTemplate:{}})}}}),{name:"extendify-wanted-template"}));var Jr=function(e){return Kr(e,"open")};function Kr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"broken-event",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"open";J.setState({entryPoint:e}),window.dispatchEvent(new CustomEvent("extendify::".concat(t,"-library"),{detail:e,bubbles:!0}))}function Xr(e){switch(e){case"editorplus":return"Editor Plus";case"ml-slider":return"MetaSlider"}return e}function Zr(e){switch(e){case"siteType":return(0,Ht.__)("Site Type","extendify");case"patternType":return(0,Ht.__)("Content","extendify");case"layoutType":return(0,Ht.__)("Page Types","extendify")}return e}function Qr(){var e,t,n,r=Gr((function(e){return e.wantedTemplate})),i=(null==r||null===(e=r.fields)||void 0===e?void 0:e.required_plugins)||[];return(0,nn.jsxs)(qt.Modal,{title:(0,Ht.__)("Plugins required","extendify"),isDismissible:!1,children:[(0,nn.jsx)("p",{style:{maxWidth:"400px"},children:(0,Ht.sprintf)((0,Ht.__)("In order to add this %s to your site, the following plugins are required to be installed and activated.","extendify"),null!==(t=null==r||null===(n=r.fields)||void 0===n?void 0:n.type)&&void 0!==t?t:"template")}),(0,nn.jsx)("ul",{children:i.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,nn.jsx)("li",{children:Xr(e)},e)}))}),(0,nn.jsx)("p",{style:{maxWidth:"400px",fontWeight:"bold"},children:(0,Ht.__)("Please contact a site admin for assistance in adding these plugins to your site.","extendify")}),(0,nn.jsx)(qt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,nn.jsx)(Ma,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none"},children:(0,Ht.__)("Return to library","extendify")})]})}const eo=wp.data;function to(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return no(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return no(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function no(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ro(){var e=to((0,o.useState)(!1),2),t=e[0],n=e[1],r=function(){};return(0,(0,eo.select)("core/editor").isEditedPostDirty)()?(0,nn.jsxs)(qt.Modal,{title:(0,Ht.__)("Reload required","extendify"),isDismissible:!1,children:[(0,nn.jsx)("p",{style:{maxWidth:"400px"},children:(0,Ht.__)("Just one more thing! We need to reload the page to continue.","extendify")}),(0,nn.jsxs)(qt.ButtonGroup,{children:[(0,nn.jsx)(qt.Button,{isPrimary:!0,onClick:r,disabled:t,children:(0,Ht.__)("Reload page","extendify")}),(0,nn.jsx)(qt.Button,{isSecondary:!0,onClick:function(){n(!0),(0,eo.dispatch)("core/editor").savePost(),n(!1)},isBusy:t,style:{margin:"0 4px"},children:(0,Ht.__)("Save changes","extendify")})]})]}):null}function oo(e){var t=e.msg;return(0,nn.jsxs)(qt.Modal,{style:{maxWidth:"500px"},title:(0,Ht.__)("Error Activating plugins","extendify"),isDismissible:!1,children:[(0,Ht.__)("You have encountered an error that we cannot recover from. Please try again.","extendify"),(0,nn.jsx)("br",{}),(0,nn.jsx)(qt.Notice,{isDismissible:!1,status:"error",children:t}),(0,nn.jsx)(qt.Button,{isPrimary:!0,onClick:function(){(0,o.render)((0,nn.jsx)(co,{}),document.getElementById("extendify-root"))},children:(0,Ht.__)("Go back","extendify")})]})}function io(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ao(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){io(i,r,o,a,s,"next",e)}function s(e){io(i,r,o,a,s,"throw",e)}a(void 0)}))}}function so(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return lo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uo(){var e,t=so((0,o.useState)(""),2),n=t[0],r=t[1],i=Gr((function(e){return e.wantedTemplate})),s=null==i||null===(e=i.fields)||void 0===e?void 0:e.required_plugins.filter((function(e){return"editorplus"!==e}));return sn(s).then((function(){Gr.setState({importOnLoad:!0})})).then(ao(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){return setTimeout(e,1e3)}));case 2:(0,o.render)((0,nn.jsx)(ro,{}),document.getElementById("extendify-root"));case 3:case"end":return e.stop()}}),e)})))).catch((function(e){var t=e.response;r(t.data.message)})),n?(0,nn.jsx)(oo,{msg:n}):(0,nn.jsx)(qt.Modal,{title:(0,Ht.__)("Activating plugins","extendify"),isDismissible:!1,children:(0,nn.jsx)(qt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,Ht.__)("Activating...","extendify")})})}function co(e){var t,n,r,i,a,s=Gr((function(e){return e.wantedTemplate})),l=(null==s||null===(t=s.fields)||void 0===t?void 0:t.required_plugins)||[];return null!==(n=J.getState())&&void 0!==n&&n.canActivatePlugins?(0,nn.jsx)(qt.Modal,{title:(0,Ht.__)("Activate required plugins","extendify"),isDismissible:!1,children:(0,nn.jsxs)("div",{children:[(0,nn.jsx)("p",{style:{maxWidth:"400px"},children:null!==(r=e.message)&&void 0!==r?r:(0,Ht.__)((0,Ht.sprintf)("There is just one more step. This %s requires the following plugins to be installed and activated:",null!==(i=null==s||null===(a=s.fields)||void 0===a?void 0:a.type)&&void 0!==i?i:"template"),"extendify")}),(0,nn.jsx)("ul",{children:l.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,nn.jsx)("li",{children:Xr(e)},e)}))}),(0,nn.jsxs)(qt.ButtonGroup,{children:[(0,nn.jsx)(qt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,nn.jsx)(uo,{}),document.getElementById("extendify-root"))},children:(0,Ht.__)("Activate Plugins","extendify")}),e.showClose&&(0,nn.jsx)(qt.Button,{isTertiary:!0,onClick:function(){return(0,o.render)((0,nn.jsx)(Ma,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,Ht.__)("No thanks, return to library","extendify")})]})]})}):(0,nn.jsx)(Qr,{})}function fo(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var po=function(){var e,t=(e=a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Hr(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,o.render)((0,nn.jsx)(co,{showClose:!0}),document.getElementById("extendify-root"))}))},e.abrupt("return",{id:"hasPluginsActivated",pass:e.t0,allow:e.t1,deny:e.t2});case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){fo(i,r,o,a,s,"next",e)}function s(e){fo(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function ho(e){var t=e.msg;return(0,nn.jsxs)(qt.Modal,{style:{maxWidth:"500px"},title:(0,Ht.__)("Error installing plugins","extendify"),isDismissible:!1,children:[(0,Ht.__)("You have encountered an error that we cannot recover from. Please try again.","extendify"),(0,nn.jsx)("br",{}),(0,nn.jsx)(qt.Notice,{isDismissible:!1,status:"error",children:t}),(0,nn.jsx)(qt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,nn.jsx)(vo,{}),document.getElementById("extendify-root"))},children:(0,Ht.__)("Go back","extendify")})]})}function mo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yo(e){var t,n=e.requiredPlugins,r=mo((0,o.useState)(""),2),i=r[0],a=r[1],s=Gr((function(e){return e.wantedTemplate})),l=null!=n?n:null==s||null===(t=s.fields)||void 0===t?void 0:t.required_plugins.filter((function(e){return"editorplus"!==e}));return sn(l).then((function(){Gr.setState({importOnLoad:!0}),(0,o.render)((0,nn.jsx)(ro,{}),document.getElementById("extendify-root"))})).catch((function(e){var t=e.message;a(t)})),i?(0,nn.jsx)(ho,{msg:i}):(0,nn.jsx)(qt.Modal,{title:(0,Ht.__)("Installing plugins","extendify"),isDismissible:!1,children:(0,nn.jsx)(qt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,Ht.__)("Installing...","extendify")})})}function vo(e){var t,n,r,i,a,s=e.forceOpen,l=e.buttonLabel,u=e.title,c=e.message,f=e.requiredPlugins,d=Gr((function(e){return e.wantedTemplate}));f=null!==(t=f)&&void 0!==t?t:null==d||null===(n=d.fields)||void 0===n?void 0:n.required_plugins;return null!==(r=J.getState())&&void 0!==r&&r.canInstallPlugins?(0,nn.jsxs)(qt.Modal,{title:null!=u?u:(0,Ht.__)("Install required plugins","extendify"),isDismissible:!1,children:[(0,nn.jsx)("p",{style:{maxWidth:"400px"},children:null!=c?c:(0,Ht.__)((0,Ht.sprintf)("There is just one more step. This %s requires the following to be automatically installed and activated:",null!==(i=null==d||null===(a=d.fields)||void 0===a?void 0:a.type)&&void 0!==i?i:"template"),"extendify")}),(null==c?void 0:c.length)>0||(0,nn.jsx)("ul",{children:f.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,nn.jsx)("li",{children:Xr(e)},e)}))}),(0,nn.jsxs)(qt.ButtonGroup,{children:[(0,nn.jsx)(qt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,nn.jsx)(yo,{requiredPlugins:f}),document.getElementById("extendify-root"))},children:null!=l?l:(0,Ht.__)("Install Plugins","extendify")}),s||(0,nn.jsx)(qt.Button,{isTertiary:!0,onClick:function(){s||(0,o.render)((0,nn.jsx)(Ma,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,Ht.__)("No thanks, take me back","extendify")})]})]}):(0,nn.jsx)(Qr,{})}function go(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var bo=function(){var e,t=(e=a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Wr(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,o.render)((0,nn.jsx)(vo,{}),document.getElementById("extendify-root"))}))},e.abrupt("return",{id:"hasRequiredPlugins",pass:e.t0,allow:e.t1,deny:e.t2});case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){go(i,r,o,a,s,"next",e)}function s(e){go(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function wo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return jo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function jo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ko(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Eo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ko(i,r,o,a,s,"next",e)}function s(e){ko(i,r,o,a,s,"throw",e)}a(void 0)}))}}function _o(e){return new Oo(e)}function So(e){return function(){return new Co(e.apply(this,arguments))}}function Co(e){var t,n;function r(t,n){try{var i=e[t](n),a=i.value,s=a instanceof Oo;Promise.resolve(s?a.wrapped:a).then((function(e){s?r("return"===t?"return":"next",e):o(i.done?"return":"normal",e)}),(function(e){r("throw",e)}))}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise((function(i,a){var s={key:e,arg:o,resolve:i,reject:a,next:null};n?n=n.next=s:(t=n=s,r(e,o))}))},"function"!=typeof e.return&&(this.return=void 0)}function Oo(e){this.wrapped=e}Co.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Co.prototype.next=function(e){return this._invoke("next",e)},Co.prototype.throw=function(e){return this._invoke("throw",e)},Co.prototype.return=function(e){return this._invoke("return",e)};function Ao(e){return Po.apply(this,arguments)}function Po(){return(Po=Eo(a().mark((function e(t){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=To(t.stack);case 1:return r=void 0,e.prev=3,e.next=6,n.next();case 6:r=e.sent,e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(3),t.reset(),"Middleware exited";case 13:if(!r.done){e.next=15;break}return e.abrupt("break",17);case 15:e.next=1;break;case 17:case"end":return e.stop()}}),e,null,[[3,9]])})))).apply(this,arguments)}function To(e){return No.apply(this,arguments)}function No(){return(No=So(a().mark((function e(t){var n,r,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=wo(t),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}return o=r.value,e.next=7,_o(o());case 7:return e.next=9,e.sent;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),n.e(e.t0);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,13,16,19]])})))).apply(this,arguments)}function Ro(e,t){var n=(0,eo.dispatch)("core/block-editor"),r=n.insertBlocks,o=n.replaceBlock,i=(0,eo.select)("core/block-editor"),a=i.getSelectedBlock,s=i.getBlockHierarchyRootClientId,l=i.getBlockIndex,u=i.getGlobalBlockCount,c=a()||{},f=c.clientId,d=c.name,p=c.attributes,h=f?s(f):"",m=(h?l(h):u())+1;return("core/paragraph"===d&&""===(null==p?void 0:p.content)?o(f,e):r(e,m)).then((function(){return window.dispatchEvent(new CustomEvent("extendify::template-inserted",{detail:{template:t},bubbles:!0}))}))}var Io=n(4306);function Lo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Do=function(e){var t,n,r,i,a,s=e.template,l=null!=s&&null!==(t=s.fields)&&void 0!==t&&null!==(n=t.basePattern)&&void 0!==n&&n.length?null==s||null===(r=s.fields)||void 0===r?void 0:r.basePattern[0]:"",u=Lo((0,o.useState)(l),2),c=u[0],f=u[1];return(0,o.useEffect)((function(){null!=l&&l.length&&c!==l&&setTimeout((function(){return f(l)}),1e3)}),[c,l]),l?(0,nn.jsxs)("div",{className:"absolute bottom-0 left-0 z-50 mb-4 ml-4 flex items-center space-x-2 opacity-0 transition duration-100 group-hover:opacity-100 space-x-0.5",children:[(0,nn.jsx)(Io.CopyToClipboard,{text:null==s||null===(i=s.fields)||void 0===i?void 0:i.basePattern,onCopy:function(){return f((0,Ht.__)("Copied!","extendify"))},children:(0,nn.jsx)("button",{className:"text-sm rounded-md border border-black bg-white py-1 px-2.5 font-medium text-black no-underline m-0 cursor-pointer",children:(0,Ht.sprintf)((0,Ht.__)("Base: %s","extendify"),c)})}),(0,nn.jsx)("a",{target:"_blank",className:"text-sm rounded-md border border-black bg-white py-1 px-2.5 font-medium text-black no-underline m-0",href:null==s||null===(a=s.fields)||void 0===a?void 0:a.editURL,rel:"noreferrer",children:(0,Ht.__)("Edit","extendify")})]}):null};function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach((function(t){Uo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Uo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zo=(0,o.forwardRef)((function(e,t){var n,r=e.isOpen,i=e.heading,a=e.onClose,s=e.children,l=(0,o.useRef)(null),u=S((function(e){return e.removeAllModals}));return a=null!==(n=a)&&void 0!==n?n:u,(0,nn.jsx)(tr,{appear:!0,show:r,as:o.Fragment,className:"extendify",children:(0,nn.jsx)(Wt,{initialFocus:null!=t?t:l,onClose:a,children:(0,nn.jsxs)("div",{className:"fixed inset-0 z-high flex",children:[(0,nn.jsx)(tr.Child,{as:o.Fragment,enter:"ease-out duration-200 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,nn.jsx)(Wt.Overlay,{className:"fixed inset-0 bg-black bg-opacity-40"})}),(0,nn.jsx)(tr.Child,{as:o.Fragment,enter:"ease-out duration-300 translate transform",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,nn.jsx)("div",{className:"relative m-auto w-full",children:(0,nn.jsxs)("div",{className:"relative m-auto w-full max-w-lg items-center justify-center rounded-sm bg-white shadow-modal",children:[i?(0,nn.jsxs)("div",{className:"flex items-center justify-between border-b py-2 pl-6 pr-3 leading-none",children:[(0,nn.jsx)("span",{className:"whitespace-nowrap text-base text-extendify-black",children:i}),(0,nn.jsx)($o,{onClick:a})]}):(0,nn.jsx)("div",{className:"absolute top-0 right-0 block px-4 py-4 ",children:(0,nn.jsx)($o,{ref:l,onClick:a})}),(0,nn.jsx)("div",{children:s})]})})})]})})})})),$o=(0,o.forwardRef)((function(e,t){return(0,nn.jsx)(qt.Button,Fo(Fo({},e),{},{icon:(0,nn.jsx)(Yt,{icon:Mn}),ref:t,className:"text-extendify-black opacity-75 hover:opacity-100",showTooltip:!1,label:(0,Ht.__)("Close dialog","extendify")}))}));function Vo(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Wo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Vo(i,r,o,a,s,"next",e)}function s(e){Vo(i,r,o,a,s,"throw",e)}a(void 0)}))}}function qo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ho(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ho(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ho(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Yo=function(){var e=qo((0,o.useState)(!1),2),t=e[0],n=e[1],r=qo((0,o.useState)(!1),2),i=r[0],s=r[1],l=Fr(),u=function(){var e=Wo(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=2;break}return e.abrupt("return");case 2:if(n(!0),!i){e.next=11;break}return s(!1),J.setState({participatingTestsGroups:[]}),e.next=8,J.persist.rehydrate();case 8:return window.extendifyData._canRehydrate=!1,n(!1),e.abrupt("return");case 11:return J.persist.clearStorage(),S.persist.clearStorage(),e.next=15,new Promise((function(e){return setTimeout(e,1e3)}));case 15:window.extendifyData._canRehydrate=!0,s(!0),n(!1);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),c=function(){var e=Wo(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new URLSearchParams(window.location.search)).delete("LOCALMODE",1),t[t.has("DEVMODE")||l?"delete":"append"]("DEVMODE",1),window.history.replaceState(null,null,window.location.pathname+"?"+t.toString()),e.next=6,new Promise((function(e){return setTimeout(e,500)}));case 6:window.dispatchEvent(new Event("popstate")),ye.getState().resetTemplates(),ye.getState().updateSearchParams({}),le.persist.clearStorage(),le.persist.rehydrate(),ye.setState({taxonomyDefaultState:{}}),le.getState().fetchTaxonomies().then((function(){ye.getState().setupDefaultTaxonomies()}));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return window.extendifyData.devbuild?(0,nn.jsxs)("section",{className:"p-6 flex flex-col space-y-6 border-l-8 border-extendify-secondary",children:[(0,nn.jsxs)("div",{children:[(0,nn.jsx)("p",{className:"text-base m-0 text-extendify-black",children:"Development Settings"}),(0,nn.jsx)("p",{className:"text-sm italic m-0 text-gray-500",children:"Only available on dev builds"})]}),(0,nn.jsxs)("div",{className:"flex space-x-2",children:[(0,nn.jsxs)(qt.Button,{isSecondary:!0,onClick:c,children:["Switch to ",l?"Live":"Dev"," Server"]}),(0,nn.jsx)(qt.Button,{isSecondary:!0,onClick:u,children:t?"Processing...":i?"OK! Press to rehydrate app":"Reset User Data"})]})]}):null};function Go(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Jo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Go(i,r,o,a,s,"next",e)}function s(e){Go(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Ko(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zo(e){var t=e.actionCallback,n=e.initialFocus,r=J((function(e){return e.apiKey.length})),i=Ko((0,o.useState)(""),2),s=i[0],l=i[1],u=Ko((0,o.useState)(""),2),c=u[0],f=u[1],d=Ko((0,o.useState)(""),2),p=d[0],h=d[1],m=Ko((0,o.useState)("info"),2),x=m[0],y=m[1],v=Ko((0,o.useState)(!1),2),g=v[0],b=v[1],w=Ko((0,o.useState)(!1),2),j=w[0],k=w[1],E=(0,o.useRef)(null),_=(0,o.useRef)(null),S=Fr();(0,o.useEffect)((function(){return l(J.getState().email),function(){return y("info")}}),[]),(0,o.useEffect)((function(){var e;j&&(null==E||null===(e=E.current)||void 0===e||e.focus())}),[j]);var C=function(){var e=Jo(a().mark((function e(t){var n,r,o,i,l;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),b(!0),h(""),e.next=5,N(s,c);case 5:if(n=e.sent,r=n.token,o=n.error,i=n.exception,void 0===(l=n.message)){e.next=15;break}return y("error"),b(!1),h(null!=l&&l.length?l:"Error: Are you interacting with the wrong server?"),e.abrupt("return");case 15:if(!o&&!i){e.next=20;break}return y("error"),b(!1),h(null!=o&&o.length?o:i),e.abrupt("return");case 20:if(r&&"string"==typeof r){e.next=25;break}return y("error"),b(!1),h((0,Ht.__)("Something went wrong","extendify")),e.abrupt("return");case 25:y("success"),h("Success!"),k(!0),b(!1),J.setState({email:s,apiKey:r});case 30:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return j?(0,nn.jsxs)("section",{className:"space-y-6 p-6 text-center flex flex-col items-center",children:[(0,nn.jsx)(Yt,{icon:Nn,size:148}),(0,nn.jsx)("p",{className:"text-center text-lg font-semibold m-0 text-extendify-black",children:(0,Ht.__)("You've signed in to Extendify","extendify")}),(0,nn.jsx)(qt.Button,{ref:E,className:"cursor-pointer rounded bg-extendify-main p-2 px-4 text-center text-white",onClick:t,children:(0,Ht.__)("View patterns","extendify")})]}):r?(0,nn.jsxs)("section",{className:"w-full space-y-6 p-6",children:[(0,nn.jsx)("p",{className:"text-base m-0 text-extendify-black",children:(0,Ht.__)("Account","extendify")}),(0,nn.jsxs)("div",{className:"flex items-center justify-between",children:[(0,nn.jsxs)("div",{className:"-ml-2 flex items-center space-x-2",children:[(0,nn.jsx)(Yt,{icon:Ln,size:48}),(0,nn.jsx)("p",{className:"text-extendify-black",children:null!=s&&s.length?s:(0,Ht.__)("Logged In","extendify")})]}),S&&(0,nn.jsx)(qt.Button,{className:"cursor-pointer rounded bg-extendify-main px-4 py-3 text-center text-white hover:bg-extendify-main-dark",onClick:function(){f(""),J.setState({apiKey:""}),setTimeout((function(){var e;null==_||null===(e=_.current)||void 0===e||e.focus()}),0)},children:(0,Ht.__)("Sign out","extendify")})]})]}):(0,nn.jsxs)("section",{className:"space-y-6 p-6 text-left",children:[(0,nn.jsxs)("div",{children:[(0,nn.jsx)("p",{className:"text-center text-lg font-semibold m-0 text-extendify-black",children:(0,Ht.__)("Sign in to Extendify","extendify")}),(0,nn.jsxs)("p",{className:"space-x-1 text-center text-sm m-0 text-extendify-gray",children:[(0,nn.jsx)("span",{children:(0,Ht.__)("Don't have an account?","extendify")}),(0,nn.jsx)("a",{href:"https://extendify.com/pricing?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=sign-in-form&utm_content=sign-up&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),target:"_blank",onClick:Jo(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("sign-up-link-from-login-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),className:"underline hover:no-underline text-extendify-gray",rel:"noreferrer",children:(0,Ht.__)("Sign up","extendify")})]})]}),(0,nn.jsxs)("form",{onSubmit:C,className:"flex flex-col items-center justify-center space-y-2",children:[(0,nn.jsxs)("div",{className:"flex items-center",children:[(0,nn.jsx)("label",{className:"sr-only",htmlFor:"extendify-login-email",children:(0,Ht.__)("Email address","extendify")}),(0,nn.jsx)("input",{ref:n,id:"extendify-login-email",name:"extendify-login-email",style:{minWidth:"320px"},type:"email",className:"w-full rounded border-2 p-2",placeholder:(0,Ht.__)("Email address","extendify"),value:s.length?s:"",onChange:function(e){return l(e.target.value)}})]}),(0,nn.jsxs)("div",{className:"flex items-center",children:[(0,nn.jsx)("label",{className:"sr-only",htmlFor:"extendify-login-license",children:(0,Ht.__)("License key","extendify")}),(0,nn.jsx)("input",{ref:_,id:"extendify-login-license",name:"extendify-login-license",style:{minWidth:"320px"},type:"text",className:"w-full rounded border-2 p-2",placeholder:(0,Ht.__)("License key","extendify"),value:c,onChange:function(e){return f(e.target.value)}})]}),(0,nn.jsx)("div",{className:"flex justify-center pt-2",children:(0,nn.jsxs)("button",{type:"submit",className:"relative flex w-72 max-w-full cursor-pointer justify-center rounded bg-extendify-main p-2 py-3 text-center text-base text-white hover:bg-extendify-main-dark ",children:[(0,nn.jsx)("span",{children:(0,Ht.__)("Sign In","extendify")}),g&&(0,nn.jsx)("div",{className:"absolute right-2.5",children:(0,nn.jsx)(qt.Spinner,{})})]})}),p&&(0,nn.jsx)("div",{className:Jt()({"border-gray-900 text-gray-900":"info"===x,"border-wp-alert-red text-wp-alert-red":"error"===x,"border-extendify-main text-extendify-main":"success"===x}),children:p}),(0,nn.jsx)("div",{className:"pt-4 text-center",children:(0,nn.jsx)("a",{target:"_blank",rel:"noreferrer",href:"https://extendify.com/guides/sign-in?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=sign-in-form&utm_content=need-help&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),onClick:Jo(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("need-help-link-from-login-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),className:"underline hover:no-underline text-sm text-extendify-gray",children:(0,Ht.__)("Need Help?","extendify")})})]})]})}var Qo=function(){var e=(0,o.useRef)(null),t=S((function(e){return e.removeAllModals}));return(0,nn.jsx)(zo,{heading:(0,Ht.__)("Settings","extendify"),isOpen:!0,ref:e,children:(0,nn.jsxs)("div",{className:"flex justify-center flex-col divide-y",children:[(0,nn.jsx)(Yo,{}),(0,nn.jsx)(Zo,{initialFocus:e,actionCallback:t})]})})};function ei(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ti(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ei(i,r,o,a,s,"next",e)}function s(e){ei(i,r,o,a,s,"throw",e)}a(void 0)}))}}var ni=function(){var e=S((function(e){return e.pushModal})),t=(0,o.useRef)(null);return(0,nn.jsxs)(nr,{isOpen:!0,ref:t,leftContainerBgColor:"bg-white",children:[(0,nn.jsxs)("div",{children:[(0,nn.jsx)("div",{className:"mb-5 flex items-center space-x-2 text-extendify-black",children:En}),(0,nn.jsx)("h3",{className:"mt-0 text-xl",children:(0,Ht.__)("You're out of imports","extendify")}),(0,nn.jsx)("p",{className:"text-sm text-black",children:(0,Ht.__)("Sign up today and get unlimited access to our entire collection of patterns and page layouts.","extendify")}),(0,nn.jsxs)("div",{children:[(0,nn.jsxs)("a",{target:"_blank",ref:t,className:"button-extendify-main button-focus mt-2 inline-flex justify-center px-4 py-3",style:{minWidth:"225px"},href:"https://extendify.com/pricing/?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=no-imports-modal&utm_content=get-unlimited-imports&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),onClick:ti(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("no-imports-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),rel:"noreferrer",children:[(0,Ht.__)("Get Unlimited Imports","extendify"),(0,nn.jsx)(qt.Icon,{icon:An,size:24,className:"-mr-1"})]}),(0,nn.jsxs)("p",{className:"mb-0 text-left text-sm text-extendify-gray",children:[(0,Ht.__)("Have an account?","extendify"),(0,nn.jsx)(qt.Button,{onClick:function(){return e((0,nn.jsx)(Qo,{}))},className:"pl-2 text-sm text-extendify-gray underline hover:no-underline",children:(0,Ht.__)("Sign in","extendify")})]})]})]}),(0,nn.jsxs)("div",{className:"flex h-full flex-col justify-center space-y-2 p-10 text-black",children:[(0,nn.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,nn.jsx)(qt.Icon,{icon:Tn,size:24}),(0,nn.jsx)("span",{className:"text-sm leading-none",children:(0,Ht.__)("Access to 100's of Patterns","extendify")})]}),(0,nn.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,nn.jsx)(qt.Icon,{icon:_n,size:24}),(0,nn.jsx)("span",{className:"text-sm leading-none",children:(0,Ht.__)('Access to "Pro" catalog',"extendify")})]}),(0,nn.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,nn.jsx)(qt.Icon,{icon:Pn,size:24}),(0,nn.jsx)("span",{className:"text-sm leading-none",children:(0,Ht.__)("Beautiful full page layouts","extendify")})]}),(0,nn.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,nn.jsx)(qt.Icon,{icon:Rn,size:24}),(0,nn.jsx)("span",{className:"text-sm leading-none",children:(0,Ht.__)("Fast and friendly support","extendify")})]}),(0,nn.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,nn.jsx)(qt.Icon,{icon:In,size:24}),(0,nn.jsx)("span",{className:"text-sm leading-none",children:(0,Ht.__)("14-Day guarantee","extendify")})]})]})]})};function ri(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function oi(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ri(i,r,o,a,s,"next",e)}function s(e){ri(i,r,o,a,s,"throw",e)}a(void 0)}))}}var ii=function(){var e=(0,o.useRef)(null);return(0,nn.jsxs)(nr,{isOpen:!0,invertedButtonColor:!0,ref:e,children:[(0,nn.jsxs)("div",{children:[(0,nn.jsx)("div",{className:"mb-5 flex items-center space-x-2 text-extendify-black",children:En}),(0,nn.jsx)("h3",{className:"mt-0 text-xl",children:(0,Ht.__)("Get unlimited access to all our Pro patterns & layouts","extendify")}),(0,nn.jsx)("p",{className:"text-sm text-black",children:(0,Ht.__)("Upgrade to Extendify Pro and use all the patterns and layouts you'd like, including our exclusive Pro catalog.","extendify")}),(0,nn.jsx)("div",{children:(0,nn.jsxs)("a",{target:"_blank",ref:e,className:"button-extendify-main button-focus mt-2 inline-flex justify-center px-4 py-3",style:{minWidth:"225px"},href:"https://extendify.com/pricing/?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=pro-modal&utm_content=upgrade-now&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),onClick:oi(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("pro-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),rel:"noreferrer",children:[(0,Ht.__)("Upgrade Now","extendify"),(0,nn.jsx)(qt.Icon,{icon:An,size:24,className:"-mr-1"})]})})]}),(0,nn.jsx)("div",{className:"justify-endrounded-tr-sm flex w-full rounded-br-sm bg-black",children:(0,nn.jsx)("img",{alt:(0,Ht.__)("Upgrade Now","extendify"),className:"max-w-full rounded-tr-sm rounded-br-sm",src:window.extendifyData.asset_path+"/modal-extendify-black.png"})})]})};function ai(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function si(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function li(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ui(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ui(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ui(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ci=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{hasRequiredPlugins:bo,hasPluginsActivated:po,stack:[],check:function(t){var n=this;return Eo(a().mark((function r(){var o,i,s,l;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=wo(e),r.prev=1,o.s();case 3:if((i=o.n()).done){r.next=11;break}return s=i.value,r.next=7,n["".concat(s)](t);case 7:l=r.sent,n.stack.push(l.pass?l.allow:l.deny);case 9:r.next=3;break;case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(1),o.e(r.t0);case 16:return r.prev=16,o.f(),r.finish(16);case 19:case"end":return r.stop()}}),r,null,[[1,13,16,19]])})))()},reset:function(){this.stack=[]}}}(["hasRequiredPlugins","hasPluginsActivated"]);function fi(e){var t,n,i,s,l,u,c=e.template,f=e.maxHeight,d=(0,o.useRef)(null),p=J((function(e){return e.hasAvailableImports})),h=J((function(e){return e.apiKey.length})),m=S((function(e){return e.setOpen})),x=S((function(e){return e.pushModal})),y=S((function(e){return e.removeAllModals})),v=li((0,o.useState)(0),2),g=v[0],b=v[1],w=Array.isArray(null==c||null===(t=c.fields)||void 0===t?void 0:t.type)?c.fields.type[0]:null==c||null===(n=c.fields)||void 0===n?void 0:n.type,j=(0,o.useMemo)((function(){return(0,r.rawHandler)({HTML:di(c.fields.code)})}),[c.fields.code]),k=(0,o.useMemo)((function(){return(0,r.rawHandler)({HTML:c.fields.code})}),[c.fields.code]),E=Fr(),_=function(){var e,t=(e=a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ci.check(c);case 2:Ao(ci).then((function(){setTimeout((function(){Ro(k,c).then((function(){return y()})).then((function(){return m(!1)})).then((function(){return ci.reset()}))}),100)})).catch((function(){}));case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){si(i,r,o,a,s,"next",e)}function s(e){si(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),C=function(){var e;Rr(c),null==c||null===(e=c.fields)||void 0===e||!e.pro||h?p()?_():x((0,nn.jsx)(ni,{})):x((0,nn.jsx)(ii,{}))};return(0,o.useEffect)((function(){if(Number.isInteger(f)&&"layout"===w){var e=d.current,t=function(){var t=e.offsetHeight;e.style.transitionDuration=1.5*t+"ms",b(-1*Math.abs(t-f))},n=function(){var t=e.offsetHeight;e.style.transitionDuration=t/1.5+"ms",b(0)};return e.addEventListener("focus",t),e.addEventListener("mouseenter",t),e.addEventListener("blur",n),e.addEventListener("mouseleave",n),function(){e.removeEventListener("focus",t),e.removeEventListener("mouseenter",t),e.removeEventListener("blur",n),e.removeEventListener("mouseleave",n)}}}),[f,w]),(0,nn.jsxs)("div",{className:"group relative",children:[(0,nn.jsx)("div",{role:"button",tabIndex:"0","aria-label":(0,Ht.sprintf)((0,Ht.__)("Press to import %s","extendify"),null==c||null===(i=c.fields)||void 0===i?void 0:i.type),style:{maxHeight:f},className:"button-focus relative m-0 cursor-pointer overflow-hidden bg-gray-100 ease-in-out",onClick:C,onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&(e.stopPropagation(),e.preventDefault(),C())},children:(0,nn.jsx)("div",{ref:d,style:{top:g,transitionProperty:"all"},className:Jt()("with-light-shadow relative",(l={},ai(l,"is-template--".concat(c.fields.status),(null==c||null===(s=c.fields)||void 0===s?void 0:s.status)&&E),ai(l,"p-6 md:p-8",Number.isInteger(f)),l)),children:(0,nn.jsx)(Mr.BlockPreview,{blocks:j,live:!1,viewportWidth:1400})})}),E&&(0,nn.jsx)(Do,{template:c}),(null==c||null===(u=c.fields)||void 0===u?void 0:u.pro)&&(0,nn.jsx)("div",{className:"pointer-events-none absolute top-4 right-4 z-20 rounded-md border border-none bg-white bg-wp-theme-500 py-1 px-2.5 font-medium text-white no-underline shadow-sm",children:(0,Ht.__)("Pro","extendify")})]})}var di=function(e){return e.replace(/\w+:\/\/\S*(w=(\d*))&(h=(\d*))&\w+\S*"/g,(function(e,t,n,r,o){return e.replace(t,"w="+Math.floor(Number(n)/2)).replace(r,"h="+Math.floor(Number(o)/2))}))};function pi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return hi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mi=(0,o.memo)((function(){var e=function(){var e=(0,o.useRef)(!1);return(0,o.useEffect)((function(){return e.current=!0,function(){return e.current=!1}})),e}(),t=ye((function(e){return e.templates})),n=pi((0,o.useState)(0),2),r=n[0],i=n[1],a=ye((function(e){return e.appendTemplates})),l=pi((0,o.useState)(""),2),u=l[0],c=l[1],f=(0,o.useRef)(!1),d=pi((0,o.useState)(!1),2),p=d[0],h=d[1],m=pi((0,o.useState)(!1),2),x=m[0],y=m[1],v=function(e){var t=void 0===e?{}:e,n=t.threshold,r=t.delay,o=t.trackVisibility,i=t.rootMargin,a=t.root,l=t.triggerOnce,u=t.skip,c=t.initialInView,f=t.fallbackInView,d=s.useRef(),p=s.useState({inView:!!c}),h=p[0],m=p[1],x=s.useCallback((function(e){void 0!==d.current&&(d.current(),d.current=void 0),u||e&&(d.current=yr(e,(function(e,t){m({inView:e,entry:t}),t.isIntersecting&&l&&d.current&&(d.current(),d.current=void 0)}),{root:a,rootMargin:i,threshold:n,trackVisibility:o,delay:r},f))}),[Array.isArray(n)?n.toString():n,a,i,l,u,o,f,r]);(0,s.useEffect)((function(){d.current||!h.entry||l||u||m({inView:!!c})}));var y=[x,h.inView,h.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}(),g=pi(v,2),b=g[0],w=g[1],j=ye((function(e){return e.searchParams})),k=S((function(e){return e.currentType})),E=ye((function(e){return e.resetTemplates})),_=S((function(e){return e.open})),C=le((function(e){return e.taxonomies})),O=ye((function(e){return e.updateType})),P=ye((function(e){return e.updateTaxonomies})),T=(0,o.useRef)(ye.getState().nextPage),N=(0,o.useRef)(ye.getState().searchParams),R="pattern"===N.current.type?"patternType":"layoutType",I=N.current.taxonomies[R];(0,o.useEffect)((function(){return ye.subscribe((function(e){return e.nextPage}),(function(e){return T.current=e}))}),[]),(0,o.useEffect)((function(){return ye.subscribe((function(e){return e.searchParams}),(function(e){return N.current=e}))}),[]);var L,M=(0,o.useCallback)((function(){var t,n,r;c(""),h(!1);var o=(0,Ht.__)("Unknown error occurred. Check browser console or contact support.","extendify"),s={offset:T.current},l=null!==(t=N.current.taxonomies)&&void 0!==t&&null!==(n=t.siteType)&&void 0!==n&&null!==(r=n.slug)&&void 0!==r&&r.length?N.current.taxonomies.siteType:{slug:"default"},u=(0,A.cloneDeep)(N.current);u.taxonomies.siteType=l,Nr(u,s).then((function(t){var n,r,o,s;e.current&&(null!=t&&null!==(n=t.error)&&void 0!==n&&n.length?c(null==t?void 0:t.error):(null==t||null===(r=t.records)||void 0===r?void 0:r.length)<=0?h(!0):j===N.current&&null!=t&&null!==(o=t.records)&&void 0!==o&&o.length&&(ye.setState({nextPage:null!==(s=null==t?void 0:t.offset)&&void 0!==s?s:""}),a(t.records),i((function(e){return t.records.length+e})),y(!1)))})).catch((function(t){e.current&&(console.error(t),c(o))}))}),[a,e,j]);return(0,o.useEffect)((function(){0!==(null==t?void 0:t.length)||y(!0)}),[null==t?void 0:t.length,j]),(0,o.useEffect)((function(){!f.current&&u.length&&(f.current=!0,M())}),[u,M]),(0,o.useEffect)((function(){var e;if(_&&null!=C&&null!==(e=C.patternType)&&void 0!==e&&e.length){var t=new URLSearchParams(window.location.search);if(t.has("ext-patternType")){var n=t.get("ext-patternType");t.delete("ext-patternType"),window.history.replaceState(null,null,window.location.pathname+"?"+t.toString());var r=C.patternType.find((function(e){return e.slug===n}));r&&(P({patternType:r}),O("pattern"))}}}),[_,C,O,P]),(0,o.useEffect)((function(){var e,t;if(null!==(e=Object.keys(null===(t=N.current)||void 0===t?void 0:t.taxonomies))&&void 0!==e&&e.length){if(!ye.getState().skipNextFetch)return M(),function(){return E()};ye.setState({skipNextFetch:!1})}}),[M,N,E]),(0,o.useEffect)((function(){T.current&&w&&M()}),[w,M,r]),u.length&&f.current?(0,nn.jsxs)("div",{className:"text-left",children:[(0,nn.jsx)("h2",{className:"text-left",children:(0,Ht.__)("Server error","extendify")}),(0,nn.jsx)("code",{className:"mb-4 block max-w-xl p-4",style:{minHeight:"10rem"},children:u}),(0,nn.jsx)(qt.Button,{isTertiary:!0,onClick:function(){f.current=!1,M()},children:(0,Ht.__)("Press here to reload")})]}):p?(0,nn.jsx)("div",{className:"-mt-2 flex h-full w-full items-center justify-center sm:mt-0",children:(0,nn.jsx)("h2",{className:"text-sm font-normal text-extendify-gray",children:(0,Ht.sprintf)("template"===N.current.type?(0,Ht.__)('We couldn\'t find any layouts in the "%s" category.',"extendify"):(0,Ht.__)('We couldn\'t find any patterns in the "%s" category.',"extendify"),null!==(L=null==I?void 0:I.title)&&void 0!==L?L:I.slug)})}):(0,nn.jsxs)(nn.Fragment,{children:[x&&(0,nn.jsx)("div",{className:"-mt-2 flex h-full w-full items-center justify-center sm:mt-0",children:(0,nn.jsx)(qt.Spinner,{})}),(0,nn.jsx)(xi,{type:k,templates:t,children:t.map((function(e){return(0,nn.jsx)(fi,{maxHeight:"template"===k?520:"none",template:e},e.id)}))}),T.current&&(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)("div",{className:"mt-8",children:(0,nn.jsx)(qt.Spinner,{})}),(0,nn.jsx)("div",{className:"relative flex flex-col items-end justify-end -top-1/4 h-4",ref:b,style:{zIndex:-1}})]})]})})),xi=function(e){var t=e.type,n=e.children,r="relative min-h-screen z-10 pb-40 pt-0.5";if("template"===t)return(0,nn.jsx)("div",{className:"grid gap-6 md:gap-8 lg:grid-cols-2 ".concat(r),children:n});return(0,nn.jsx)(Or,{breakpointCols:{default:3,1600:2,860:1,599:2,400:1},className:"-ml-6 flex w-auto px-0.5 md:-ml-8 ".concat(r),columnClassName:"pl-6 md:pl-8 bg-clip-padding space-y-6 md:space-y-8",children:n})};function yi(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function vi(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){yi(i,r,o,a,s,"next",e)}function s(e){yi(i,r,o,a,s,"throw",e)}a(void 0)}))}}var gi=(0,o.memo)((function(){var e=J((function(e){return e.remainingImports})),t=J((function(e){return e.allowedImports})),n=e(),r=n>0?"has-imports":"no-imports",i=(0,o.useRef)();return(0,o.useEffect)((function(){if(t<1||!t){L().then((function(e){e=/^[1-9]\d*$/.test(e)?e:5,J.setState({allowedImports:e})})).catch((function(){return J.setState({allowedImports:5})}))}}),[t]),t?(0,nn.jsxs)("div",{tabIndex:"0",className:"group relative mb-5",children:[(0,nn.jsxs)("a",{target:"_blank",ref:i,rel:"noreferrer",className:Jt()("button-focus hidden w-full justify-between rounded py-3 px-4 text-sm text-white no-underline sm:flex",{"bg-wp-theme-500 hover:bg-wp-theme-600":n>0,"bg-extendify-alert":!n}),onClick:vi(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("import-counter-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),href:"https://www.extendify.com/pricing/?utm_source=".concat(encodeURIComponent(window.extendifyData.sdk_partner),"&utm_medium=library&utm_campaign=import-counter&utm_content=get-more&utm_term=").concat(r,"&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),children:[(0,nn.jsxs)("span",{className:"flex items-center space-x-2 text-xs no-underline",children:[(0,nn.jsx)(Yt,{icon:n>0?Sn:wn,size:14}),(0,nn.jsx)("span",{children:(0,Ht.sprintf)((0,Ht._n)("%s Import","%s Imports",n,"extendify"),n)})]}),(0,nn.jsxs)("span",{className:"outline-none flex items-center text-sm font-medium text-white no-underline",children:[(0,Ht.__)("Get more","extendify"),(0,nn.jsx)(Yt,{icon:An,size:24,className:"-mr-1.5"})]})]}),(0,nn.jsx)("div",{className:"extendify-bottom-arrow invisible absolute top-0 w-full -translate-y-full transform opacity-0 shadow-md transition-all delay-200 duration-300 ease-in-out group-hover:visible group-hover:-top-2.5 group-hover:opacity-100 group-focus:visible group-focus:-top-2.5 group-focus:opacity-100",tabIndex:"-1",children:(0,nn.jsx)("a",{href:"https://www.extendify.com/pricing/?utm_source=".concat(encodeURIComponent(window.extendifyData.sdk_partner),"&utm_medium=library&utm_campaign=import-counter-tooltip&utm_content=get-50-off&utm_term=").concat(r,"&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),className:"block bg-gray-900 text-white p-4 no-underline rounded bg-cover",onClick:vi(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("import-counter-tooltip-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),style:{backgroundImage:"url(".concat(window.extendifyData.asset_path,"/logo-tips.png)"),backgroundSize:"100% 100%"},children:(0,nn.jsx)("span",{dangerouslySetInnerHTML:{__html:bn((0,Ht.sprintf)((0,Ht.__)("%1$sGet %2$s off%3$s Extendify Pro when you upgrade today!","extendify"),"<strong>","50%","</strong>"))}})})})]}):null}));function bi(e){return Array.isArray?Array.isArray(e):"[object Array]"===Ci(e)}function wi(e){return"string"==typeof e}function ji(e){return"number"==typeof e}function ki(e){return!0===e||!1===e||function(e){return Ei(e)&&null!==e}(e)&&"[object Boolean]"==Ci(e)}function Ei(e){return"object"==typeof e}function _i(e){return null!=e}function Si(e){return!e.trim().length}function Ci(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Oi=Object.prototype.hasOwnProperty;class Ai{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=Pi(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Pi(e){let t=null,n=null,r=null,o=1,i=null;if(wi(e)||bi(e))r=e,t=Ti(e),n=Ni(e);else{if(!Oi.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const a=e.name;if(r=a,Oi.call(e,"weight")&&(o=e.weight,o<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(a));t=Ti(a),n=Ni(a),i=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:i}}function Ti(e){return bi(e)?e:e.split(".")}function Ni(e){return bi(e)?e.join("."):e}const Ri={useExtendedSearch:!1,getFn:function(e,t){let n=[],r=!1;const o=(e,t,i)=>{if(_i(e))if(t[i]){const a=e[t[i]];if(!_i(a))return;if(i===t.length-1&&(wi(a)||ji(a)||ki(a)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(a));else if(bi(a)){r=!0;for(let e=0,n=a.length;e<n;e+=1)o(a[e],t,i+1)}else t.length&&o(a,t,i+1)}else n.push(e)};return o(e,wi(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Ii={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...Ri};const Li=/[^ ]+/g;class Mi{constructor({getFn:e=Ii.getFn,fieldNormWeight:t=Ii.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){const o=t.match(Li).length;if(n.has(o))return n.get(o);const i=1/Math.pow(o,.5*e),a=parseFloat(Math.round(i*r)/r);return n.set(o,a),a},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,wi(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();wi(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!_i(e)||Si(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach(((t,r)=>{let o=t.getFn?t.getFn(e):this.getFn(e,t.path);if(_i(o))if(bi(o)){let e=[];const t=[{nestedArrIndex:-1,value:o}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(_i(r))if(wi(r)&&!Si(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else bi(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(wi(o)&&!Si(o)){let e={v:o,n:this.norm.get(o)};n.$[r]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function Di(e,t,{getFn:n=Ii.getFn,fieldNormWeight:r=Ii.fieldNormWeight}={}){const o=new Mi({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(Pi)),o.setSources(t),o.create(),o}function Bi(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=Ii.distance,ignoreLocation:i=Ii.ignoreLocation}={}){const a=t/e.length;if(i)return a;const s=Math.abs(r-n);return o?a+s/o:s?1:a}const Fi=32;function Ui(e,t,n,{location:r=Ii.location,distance:o=Ii.distance,threshold:i=Ii.threshold,findAllMatches:a=Ii.findAllMatches,minMatchCharLength:s=Ii.minMatchCharLength,includeMatches:l=Ii.includeMatches,ignoreLocation:u=Ii.ignoreLocation}={}){if(t.length>Fi)throw new Error(`Pattern length exceeds max of ${Fi}.`);const c=t.length,f=e.length,d=Math.max(0,Math.min(r,f));let p=i,h=d;const m=s>1||l,x=m?Array(f):[];let y;for(;(y=e.indexOf(t,h))>-1;){let e=Bi(t,{currentLocation:y,expectedLocation:d,distance:o,ignoreLocation:u});if(p=Math.min(e,p),h=y+c,m){let e=0;for(;e<c;)x[y+e]=1,e+=1}}h=-1;let v=[],g=1,b=c+f;const w=1<<c-1;for(let r=0;r<c;r+=1){let i=0,s=b;for(;i<s;){Bi(t,{errors:r,currentLocation:d+s,expectedLocation:d,distance:o,ignoreLocation:u})<=p?i=s:b=s,s=Math.floor((b-i)/2+i)}b=s;let l=Math.max(1,d-s+1),y=a?f:Math.min(d+s,f)+c,j=Array(y+2);j[y+1]=(1<<r)-1;for(let i=y;i>=l;i-=1){let a=i-1,s=n[e.charAt(a)];if(m&&(x[a]=+!!s),j[i]=(j[i+1]<<1|1)&s,r&&(j[i]|=(v[i+1]|v[i])<<1|1|v[i+1]),j[i]&w&&(g=Bi(t,{errors:r,currentLocation:a,expectedLocation:d,distance:o,ignoreLocation:u}),g<=p)){if(p=g,h=a,h<=d)break;l=Math.max(1,2*d-h)}}if(Bi(t,{errors:r+1,currentLocation:d,expectedLocation:d,distance:o,ignoreLocation:u})>p)break;v=j}const j={isMatch:h>=0,score:Math.max(.001,g)};if(m){const e=function(e=[],t=Ii.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let a=e.length;i<a;i+=1){let a=e[i];a&&-1===r?r=i:a||-1===r||(o=i-1,o-r+1>=t&&n.push([r,o]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}(x,s);e.length?l&&(j.indices=e):j.isMatch=!1}return j}function zi(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}return t}class $i{constructor(e,{location:t=Ii.location,threshold:n=Ii.threshold,distance:r=Ii.distance,includeMatches:o=Ii.includeMatches,findAllMatches:i=Ii.findAllMatches,minMatchCharLength:a=Ii.minMatchCharLength,isCaseSensitive:s=Ii.isCaseSensitive,ignoreLocation:l=Ii.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:l},this.pattern=s?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const u=(e,t)=>{this.chunks.push({pattern:e,alphabet:zi(e),startIndex:t})},c=this.pattern.length;if(c>Fi){let e=0;const t=c%Fi,n=c-t;for(;e<n;)u(this.pattern.substr(e,Fi),e),e+=Fi;if(t){const e=c-Fi;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,includeMatches:n}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:r,distance:o,threshold:i,findAllMatches:a,minMatchCharLength:s,ignoreLocation:l}=this.options;let u=[],c=0,f=!1;this.chunks.forEach((({pattern:t,alphabet:d,startIndex:p})=>{const{isMatch:h,score:m,indices:x}=Ui(e,t,d,{location:r+p,distance:o,threshold:i,findAllMatches:a,minMatchCharLength:s,includeMatches:n,ignoreLocation:l});h&&(f=!0),c+=m,h&&x&&(u=[...u,...x])}));let d={isMatch:f,score:f?c/this.chunks.length:1};return f&&n&&(d.indices=u),d}}class Vi{constructor(e){this.pattern=e}static isMultiMatch(e){return Wi(e,this.multiRegex)}static isSingleMatch(e){return Wi(e,this.singleRegex)}search(){}}function Wi(e,t){const n=e.match(t);return n?n[1]:null}class qi extends Vi{constructor(e,{location:t=Ii.location,threshold:n=Ii.threshold,distance:r=Ii.distance,includeMatches:o=Ii.includeMatches,findAllMatches:i=Ii.findAllMatches,minMatchCharLength:a=Ii.minMatchCharLength,isCaseSensitive:s=Ii.isCaseSensitive,ignoreLocation:l=Ii.ignoreLocation}={}){super(e),this._bitapSearch=new $i(e,{location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Hi extends Vi{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],o=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+o,r.push([t,n-1]);const i=!!r.length;return{isMatch:i,score:i?0:1,indices:r}}}const Yi=[class extends Vi{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},Hi,class extends Vi{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends Vi{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Vi{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Vi{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends Vi{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},qi],Gi=Yi.length,Ji=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const Ki=new Set([qi.type,Hi.type]);class Xi{constructor(e,{isCaseSensitive:t=Ii.isCaseSensitive,includeMatches:n=Ii.includeMatches,minMatchCharLength:r=Ii.minMatchCharLength,ignoreLocation:o=Ii.ignoreLocation,findAllMatches:i=Ii.findAllMatches,location:a=Ii.location,threshold:s=Ii.threshold,distance:l=Ii.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:i,ignoreLocation:o,location:a,threshold:s,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(Ji).filter((e=>e&&!!e.trim())),r=[];for(let e=0,o=n.length;e<o;e+=1){const o=n[e];let i=!1,a=-1;for(;!i&&++a<Gi;){const e=Yi[a];let n=e.isMultiMatch(o);n&&(r.push(new e(n,t)),i=!0)}if(!i)for(a=-1;++a<Gi;){const e=Yi[a];let n=e.isSingleMatch(o);if(n){r.push(new e(n,t));break}}}return r}))}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let o=0,i=[],a=0;for(let r=0,s=t.length;r<s;r+=1){const s=t[r];i.length=0,o=0;for(let t=0,r=s.length;t<r;t+=1){const r=s[t],{isMatch:l,indices:u,score:c}=r.search(e);if(!l){a=0,o=0,i.length=0;break}if(o+=1,a+=c,n){const e=r.constructor.type;Ki.has(e)?i=[...i,...u]:i.push(u)}}if(o){let e={isMatch:!0,score:a/o};return n&&(e.indices=i),e}}return{isMatch:!1,score:1}}}const Zi=[];function Qi(e,t){for(let n=0,r=Zi.length;n<r;n+=1){let r=Zi[n];if(r.condition(e,t))return new r(e,t)}return new $i(e,t)}const ea="$and",ta="$or",na="$path",ra="$val",oa=e=>!(!e[ea]&&!e[ta]),ia=e=>({[ea]:Object.keys(e).map((t=>({[t]:e[t]})))});function aa(e,t,{auto:n=!0}={}){const r=e=>{let o=Object.keys(e);const i=(e=>!!e[na])(e);if(!i&&o.length>1&&!oa(e))return r(ia(e));if((e=>!bi(e)&&Ei(e)&&!oa(e))(e)){const r=i?e[na]:o[0],a=i?e[ra]:e[r];if(!wi(a))throw new Error((e=>`Invalid value for key ${e}`)(r));const s={keyId:Ni(r),pattern:a};return n&&(s.searcher=Qi(a,t)),s}let a={children:[],operator:o[0]};return o.forEach((t=>{const n=e[t];bi(n)&&n.forEach((e=>{a.children.push(r(e))}))})),a};return oa(e)||(e=ia(e)),r(e)}function sa(e,t){const n=e.matches;t.matches=[],_i(n)&&n.forEach((e=>{if(!_i(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let o={indices:n,value:r};e.key&&(o.key=e.key.src),e.idx>-1&&(o.refIndex=e.idx),t.matches.push(o)}))}function la(e,t){t.score=e.score}class ua{constructor(e,t={},n){this.options={...Ii,...t},this.options.useExtendedSearch,this._keyStore=new Ai(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Mi))throw new Error("Incorrect 'index' type");this._myIndex=t||Di(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){_i(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let n=0,r=this._docs.length;n<r;n+=1){const o=this._docs[n];e(o,n)&&(this.removeAt(n),n-=1,r-=1,t.push(o))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:o,sortFn:i,ignoreFieldNorm:a}=this.options;let s=wi(e)?wi(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=Ii.ignoreFieldNorm}){e.forEach((e=>{let n=1;e.matches.forEach((({key:e,norm:r,score:o})=>{const i=e?e.weight:null;n*=Math.pow(0===o&&i?Number.EPSILON:o,(i||1)*(t?1:r))})),e.score=n}))}(s,{ignoreFieldNorm:a}),o&&s.sort(i),ji(t)&&t>-1&&(s=s.slice(0,t)),function(e,t,{includeMatches:n=Ii.includeMatches,includeScore:r=Ii.includeScore}={}){const o=[];return n&&o.push(sa),r&&o.push(la),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return o.length&&o.forEach((t=>{t(e,r)})),r}))}(s,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=Qi(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:o})=>{if(!_i(e))return;const{isMatch:i,score:a,indices:s}=t.searchIn(e);i&&r.push({item:e,idx:n,matches:[{score:a,value:e,norm:o,indices:s}]})})),r}_searchLogical(e){const t=aa(e,this.options),n=(e,t,r)=>{if(!e.children){const{keyId:n,searcher:o}=e,i=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:o});return i&&i.length?[{idx:r,item:t,matches:i}]:[]}const o=[];for(let i=0,a=e.children.length;i<a;i+=1){const a=e.children[i],s=n(a,t,r);if(s.length)o.push(...s);else if(e.operator===ea)return[]}return o},r=this._myIndex.records,o={},i=[];return r.forEach((({$:e,i:r})=>{if(_i(e)){let a=n(t,e,r);a.length&&(o[r]||(o[r]={idx:r,item:e,matches:[]},i.push(o[r])),a.forEach((({matches:e})=>{o[r].matches.push(...e)})))}})),i}_searchObjectList(e){const t=Qi(e,this.options),{keys:n,records:r}=this._myIndex,o=[];return r.forEach((({$:e,i:r})=>{if(!_i(e))return;let i=[];n.forEach(((n,r)=>{i.push(...this._findMatches({key:n,value:e[r],searcher:t}))})),i.length&&o.push({idx:r,item:e,matches:i})})),o}_findMatches({key:e,value:t,searcher:n}){if(!_i(t))return[];let r=[];if(bi(t))t.forEach((({v:t,i:o,n:i})=>{if(!_i(t))return;const{isMatch:a,score:s,indices:l}=n.searchIn(t);a&&r.push({score:s,key:e,value:t,idx:o,norm:i,indices:l})}));else{const{v:o,n:i}=t,{isMatch:a,score:s,indices:l}=n.searchIn(o);a&&r.push({score:s,key:e,value:o,norm:i,indices:l})}return r}}function ca(e){return function(e){if(Array.isArray(e))return pa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||da(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||da(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function da(e,t){if(e){if("string"==typeof e)return pa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pa(e,t):void 0}}function pa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}ua.version="6.6.2",ua.createIndex=Di,ua.parseIndex=function(e,{getFn:t=Ii.getFn,fieldNormWeight:n=Ii.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new Mi({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i},ua.config=Ii,ua.parseQuery=aa,function(...e){Zi.push(...e)}(Xi);var ha=new Map,ma=function(e){var t,n,r=e.value,i=e.setValue,a=e.terms,s=ye((function(e){return e.searchParams})),l=fa((0,o.useState)(!1),2),u=l[0],c=l[1],f=(0,o.useRef)(),d=fa((0,o.useState)({}),2),p=d[0],h=d[1],m=fa((0,o.useState)(""),2),x=m[0],y=m[1],v=fa((0,o.useState)([]),2),g=v[0],b=v[1],w=fa((0,o.useState)(!0),2),j=w[0],k=w[1],E=(0,o.useMemo)((function(){return ca(a).sort((function(e,t){return e.slug<t.slug?-1:e.slug>t.slug?1:0}))}),[a]),_=(0,o.useMemo)((function(){return E.filter((function(e){return null==e?void 0:e.featured}))}),[E]),S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(ha.has(e))b(ha.get(e));else{var t=p.search(e);ha.set(e,null!=t&&t.length?t.map((function(e){return e.item})):_),b(ha.get(e))}};(0,o.useEffect)((function(){h(new ua(a,{keys:["slug","title","keywords"],minMatchCharLength:1,threshold:.3}))}),[a]),(0,o.useEffect)((function(){null!=x&&x.length||b(j?_:E)}),[_,x,E,j]),(0,o.useEffect)((function(){u&&f.current.focus()}),[u]),(0,o.useEffect)((function(){r.slug||c(!0)}),[r.slug]);var C,O,A;return(0,nn.jsxs)("div",{className:"w-full rounded bg-gray-50 border border-gray-900",children:[(0,nn.jsx)("button",{type:"button",onClick:function(){return c((function(e){return!e}))},className:"button-focus m-0 flex w-full cursor-pointer items-center justify-between rounded bg-transparent p-4 text-gray-800",children:(O=u?(0,Ht.__)("Choose a site industry","extendify"):null!==(t=null!==(n=null==r?void 0:r.title)&&void 0!==n?n:r.slug)&&void 0!==t?t:"Not set",(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsxs)("span",{className:"flex flex-col text-left",children:[(0,nn.jsx)("span",{className:Jt()("mb-1",{"text-base font-normal":!r.slug,"text-sm font-normal":null===(A=r.slug)||void 0===A?void 0:A.length}),children:(0,Ht.__)("Site Type","extendify")}),(0,nn.jsx)("span",{className:"text-xs font-light",children:O})]}),(0,nn.jsxs)("span",{className:"flex items-center space-x-4",children:[!u&&!r.slug&&(0,nn.jsxs)("svg",{className:"text-wp-alert-red","aria-hidden":"true",focusable:"false",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)("title",{children:(0,Ht.__)("Click to select a preferred site industry","extendify")}),(0,nn.jsx)("path",{className:"stroke-current",d:"M10.9982 4.05371C7.66149 4.05371 4.95654 6.75866 4.95654 10.0954C4.95654 13.4321 7.66149 16.137 10.9982 16.137C14.3349 16.137 17.0399 13.4321 17.0399 10.0954C17.0399 6.75866 14.3349 4.05371 10.9982 4.05371V4.05371Z",strokeWidth:"1.25"}),(0,nn.jsx)("path",{className:"fill-current",d:"M10.0205 12.8717C10.0205 12.3287 10.4508 11.8881 10.9938 11.8881C11.5368 11.8881 11.9774 12.3287 11.9774 12.8717C11.9774 13.4147 11.5368 13.8451 10.9938 13.8451C10.4508 13.8451 10.0205 13.4147 10.0205 12.8717Z"}),(0,nn.jsx)("path",{className:"fill-current",d:"M11.6495 10.2591C11.6086 10.6177 11.3524 10.9148 10.9938 10.9148C10.625 10.9148 10.3791 10.6074 10.3483 10.2591L10.0205 7.31855C9.95901 6.81652 10.4918 6.34521 10.9938 6.34521C11.4959 6.34521 12.0286 6.81652 11.9774 7.31855L11.6495 10.2591Z"})]}),(0,nn.jsx)("svg",{className:Jt()("stroke-current text-gray-900",{"-translate-x-1 rotate-90 transform":u}),"aria-hidden":"true",focusable:"false",width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)("path",{d:"M1.24194 11.5952L6.24194 6.09519L1.24194 0.595215",strokeWidth:"1.5"})})]})]}))}),u&&(0,nn.jsxs)("div",{className:"max-h-96 overflow-y-auto px-4 py-0",children:[(0,nn.jsx)("div",{className:"sticky top-0 pt-0.5 pb-2 bg-gray-50",children:(0,nn.jsxs)("div",{className:"relative",children:[(0,nn.jsx)("label",{htmlFor:"site-type-search",className:"sr-only",children:(0,Ht.__)("Search","extendify")}),(0,nn.jsx)("input",{ref:f,id:"site-type-search",value:null!=x?x:"",onChange:function(e){return t=e.target.value,y(t),void S(t);var t},type:"text",className:"button-focus m-0 w-full bg-white p-3.5 py-2.5 text-sm border border-gray-900",placeholder:(0,Ht.__)("Search","extendify")}),(0,nn.jsx)("svg",{className:"pointer-events-none absolute top-2 right-2 hidden lg:block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false",children:(0,nn.jsx)("path",{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})})]})}),(null==x?void 0:x.length)>1&&g===_&&(0,nn.jsx)("p",{className:"text-left",children:(0,Ht.__)("Nothing found...","extendify")}),(null==g?void 0:g.length)>0&&(0,nn.jsx)("div",{children:(C=g,(0,nn.jsx)(nn.Fragment,{children:(0,nn.jsx)("ul",{className:"mt-4 mb-0",children:C.map((function(e){var t,n,r,o=null!==(t=null==e?void 0:e.title)&&void 0!==t?t:e.slug,a=(null==s||null===(n=s.taxonomies)||void 0===n||null===(r=n.siteType)||void 0===r?void 0:r.slug)===e.slug;return(0,nn.jsx)("li",{className:"m-0 mb-1",children:(0,nn.jsx)("button",{type:"button",className:Jt()("m-0 w-full cursor-pointer bg-transparent pl-0 text-left text-sm font-normal hover:text-wp-theme-500",{"text-gray-800":!a}),onClick:function(){c(!1),i(e)},children:o})},e.slug+(null==e?void 0:e.title))}))})}))})]}),x||!u?null:(0,nn.jsx)("button",{type:"button",className:"w-full cursor-pointer bg-transparent p-4 py-2 text-left text-sm text-wp-theme-500 hover:text-wp-theme-500",onClick:function(){return k((function(e){return!e}))},children:j?(0,Ht.__)("Show all","extendify"):(0,Ht.__)("Close","extendify")})]})};var xa=function(e){var t,n=e.active,r=e.tax,o=e.update;return(0,nn.jsx)("li",{className:"m-0 w-full",children:(0,nn.jsx)("button",{type:"button",className:"group m-0 p-0 flex w-full cursor-pointer text-left text-sm leading-none my-px bg-transparent",onClick:o,children:(0,nn.jsx)("span",{className:Jt()("w-full group-hover:bg-gray-900 p-2 group-hover:text-gray-50 rounded",{"bg-transparent text-gray-900":!n,"bg-gray-900 text-gray-50":n}),children:null!==(t=null==r?void 0:r.title)&&void 0!==t?t:r.slug})})},r.slug)},ya=function(e){var t=e.taxType,n=e.taxonomies,r=e.taxLabel,o=ye((function(e){return e.searchParams})),i=ye((function(e){return e.updateTaxonomies}));return!(null!=n&&n.length)>0?null:(0,nn.jsx)(qt.PanelBody,{title:Zr(null!=r?r:t),className:"ext-type-control p-0",initialOpen:!0,children:(0,nn.jsx)(qt.PanelRow,{children:(0,nn.jsx)("div",{className:"relative w-full overflow-hidden",children:(0,nn.jsx)("ul",{className:"m-0 w-full px-5 py-1",children:n.map((function(e){var n,r=(null==o||null===(n=o.taxonomies[t])||void 0===n?void 0:n.slug)===(null==e?void 0:e.slug);return(0,nn.jsx)(xa,{active:r,tax:e,update:function(){return i((o=e,(r=t)in(n={})?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));var n,r,o}},null==e?void 0:e.slug)}))})})})})},va=function(e){var t=e.className,n=ye((function(e){return e.updateType})),r=S((function(e){var t;return null!==(t=null==e?void 0:e.currentType)&&void 0!==t?t:"pattern"}));return(0,nn.jsxs)("div",{className:t,children:[(0,nn.jsx)("h4",{className:"sr-only",children:(0,Ht.__)("Type select","extendify")}),(0,nn.jsxs)("div",{className:"flex justify-evenly border border-gray-900 p-0.5 rounded",children:[(0,nn.jsx)("button",{type:"button",className:Jt()({"w-full m-0 min-w-sm cursor-pointer rounded py-2.5 px-4 text-xs leading-none":!0,"bg-gray-900 text-white":"pattern"===r,"bg-transparent text-black":"pattern"!==r}),onClick:function(){return n("pattern")},children:(0,nn.jsx)("span",{className:"",children:(0,Ht.__)("Patterns","extendify")})}),(0,nn.jsx)("button",{type:"button",className:Jt()({"outline-none w-full m-0 -ml-px min-w-sm cursor-pointer items-center rounded py-2.5 px-4 text-xs leading-none":!0,"bg-gray-900 text-white":"template"===r,"bg-transparent text-black":"template"!==r}),onClick:function(){return n("template")},children:(0,nn.jsx)("span",{className:"",children:(0,Ht.__)("Templates","extendify")})})]})]})};function ga(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ba(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ba(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ba(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wa=(0,o.memo)((function(){var e,t,n,r,o=le((function(e){return e.taxonomies})),i=ye((function(e){return e.searchParams})),a=ye((function(e){return e.updateTaxonomies})),s=J((function(e){return e.apiKey})),l="pattern"===i.type?"patternType":"layoutType",u=!(null!=i&&null!==(e=i.taxonomies[l])&&void 0!==e&&null!==(t=e.slug)&&void 0!==t&&t.length),c=S((function(e){return e.setOpen})),f=ga(oe((function(e){var t;return[(null===(t=Object.keys(null==e?void 0:e.siteType))||void 0===t?void 0:t.length)>0?null==e?void 0:e.siteType:{slug:"",title:"Not set"},e.setSiteType]})),2),d=f[0],p=f[1];return(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)("div",{className:"-ml-1.5 hidden px-5 text-extendify-black sm:flex",children:(0,nn.jsx)(Yt,{icon:kn,size:40})}),(0,nn.jsx)("div",{className:"flex md:hidden items-center justify-end -mt-5 mx-1",children:(0,nn.jsx)(qt.Button,{onClick:function(){return c(!1)},icon:(0,nn.jsx)(Yt,{icon:Mn,size:24}),label:(0,Ht.__)("Close library","extendify")})}),(0,nn.jsx)("div",{className:"px-5 hidden md:block",children:(0,nn.jsxs)("button",{onClick:function(){return a((n={slug:"",title:"Featured"},(t=l)in(e={})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e));var e,t,n},className:Jt()("m-0 flex w-full cursor-pointer items-center space-x-1 bg-transparent px-0 py-2 text-left text-sm leading-none transition duration-200 hover:text-wp-theme-500",{"text-wp-theme-500":u}),children:[(0,nn.jsx)(Yt,{icon:On,size:24}),(0,nn.jsx)("span",{className:"text-sm",children:(0,Ht.__)("Featured","extendify")})]})}),(0,nn.jsx)("div",{className:"mx-6 px-5 pt-0.5 sm:mx-0 sm:mb-8 sm:mt-0",children:Object.keys(d).length>0&&(0,nn.jsx)(ma,{value:d,setValue:function(e){p(e),a({siteType:e})},terms:o.siteType})}),(0,nn.jsx)(va,{className:"mx-6 px-5 pt-0.5 sm:mx-0 sm:mb-8 sm:mt-0"}),(0,nn.jsxs)("div",{className:"mt-px hidden flex-grow overflow-y-auto overflow-x-hidden pb-36 pt-px sm:block space-y-6",children:[(0,nn.jsx)(qt.Panel,{className:"bg-transparent",children:(0,nn.jsx)(ya,{taxType:l,taxonomies:null===(n=o[l])||void 0===n?void 0:n.filter((function(e){return!(null!=e&&e.designType)}))})}),(0,nn.jsx)(qt.Panel,{className:"bg-transparent",children:(0,nn.jsx)(ya,{taxLabel:(0,Ht.__)("Design","extendify"),taxType:l,taxonomies:null===(r=o[l])||void 0===r?void 0:r.filter((function(e){return Boolean(null==e?void 0:e.designType)}))})})]}),!s.length&&(0,nn.jsx)("div",{className:"px-5",children:(0,nn.jsx)(gi,{})})]})}));function ja(e){var t=e.children,n=S((function(e){return e.ready}));return(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)("aside",{className:"relative flex-shrink-0 border-r border-extendify-transparent-black-100 bg-extendify-transparent-white py-0 backdrop-blur-xl backdrop-saturate-200 backdrop-filter sm:pt-5",children:(0,nn.jsx)("div",{className:"flex h-full flex-col py-6 sm:w-72 sm:space-y-6 sm:py-0",children:n?t[0]:null})}),(0,nn.jsx)("main",{id:"extendify-templates",className:"h-full w-full overflow-hidden bg-gray-50 pt-6 sm:pt-0",children:n?t[1]:null})]})}var ka=(0,o.memo)((function(e){var t=e.className,n=S((function(e){return e.setOpen})),r=S((function(e){return e.pushModal})),o=J((function(e){return e.apiKey.length}));return(0,nn.jsx)("div",{className:t,children:(0,nn.jsx)("div",{className:"flex h-full items-center justify-between",children:(0,nn.jsxs)("div",{className:"flex flex-1 items-center justify-end lg:-mr-1",children:[(0,nn.jsx)(qt.Button,{onClick:function(){return r((0,nn.jsx)(Qo,{}))},icon:(0,nn.jsx)(Yt,{icon:Ln,size:24}),label:(0,Ht.__)("Login and settings area","extendify"),children:o?"":(0,Ht.__)("Sign in","extendify")}),(0,nn.jsx)(qt.Button,{onClick:function(){return n(!1)},icon:(0,nn.jsx)(Yt,{icon:Mn,size:24}),label:(0,Ht.__)("Close library","extendify")})]})})})})),Ea=function(e){var t=e.setOpen,n=(0,o.useRef)(),r=ye((function(e){return e.searchParams}));return(0,o.useEffect)((function(){n.current&&(n.current.scrollTop=0)}),[r]),(0,nn.jsx)("div",{className:"relative mx-auto flex h-full max-w-screen-4xl flex-col items-center",children:(0,nn.jsxs)("div",{className:"w-full flex-grow overflow-hidden",children:[(0,nn.jsx)("button",{onClick:function(){return document.getElementById("extendify-templates").querySelector("button").focus()},className:"extendify-skip-to-sr-link sr-only focus:not-sr-only focus:text-blue-500",children:(0,Ht.__)("Skip to templates","extendify")}),(0,nn.jsx)("div",{className:"relative mx-auto h-full sm:flex",children:(0,nn.jsxs)(ja,{children:[(0,nn.jsx)(wa,{}),(0,nn.jsxs)("div",{className:"relative z-30 flex h-full flex-col",children:[(0,nn.jsx)(ka,{className:"hidden h-12 w-full flex-shrink-0 px-6 sm:block md:px-8",hideLibrary:function(){return t(!1)}}),(0,nn.jsx)("div",{ref:n,className:"z-20 flex-grow overflow-y-auto px-6 md:px-8",children:(0,nn.jsx)(mi,{})})]})]})})]})})};function _a(){var e=(0,o.useRef)(null),t=S((function(e){return e.open})),n=S((function(e){return e.setOpen})),r=function(){var e=lr((0,o.useState)(null),2),t=e[0],n=e[1],r=S((function(e){return e.open})),i=S((function(e){return e.pushModal})),a=S((function(e){return e.removeAllModals}));return(0,o.useEffect)((function(){return S.subscribe((function(e){return e.modals}),(function(e){return n((null==e?void 0:e.length)>0?e[0]:null)}))}),[]),(0,o.useEffect)((function(){var e;if(r){var t={standalone:sr},n=t[null!==(e=Object.keys(t).find((function(e){return"standalone"===e?!window.extendifyData.standalone&&!J.getState().modalNoticesDismissedAt[e]:!J.getState().modalNoticesDismissedAt[e]})))&&void 0!==e?e:null];n&&i((0,nn.jsx)(n,{}))}else a()}),[r,i,a]),t}(),i=S((function(e){return e.ready}));return(0,nn.jsxs)(Wt,{as:"div",className:"extendify",initialFocus:e,open:t,onClose:function(){return n(!1)},children:[(0,nn.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity"}),(0,nn.jsx)("div",{className:"fixed inset-0 z-high m-auto h-screen w-screen overflow-y-auto sm:h-auto sm:w-auto",children:(0,nn.jsx)("div",{className:"flex min-h-screen items-end justify-center px-4 pt-4 pb-20 text-center sm:block sm:p-0",children:(0,nn.jsxs)("div",{ref:e,tabIndex:"0",onClick:function(e){return e.target===e.currentTarget&&n(!1)},className:"fixed inset-0 transform p-2 transition-all lg:absolute lg:overflow-hidden lg:p-16",children:[(0,nn.jsx)(Ea,{}),i?(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)(gn,{}),r]}):null]})})})]})}const Sa=wp.compose,Ca=wp.hooks,Oa=JSON.parse('{"t":["ext-absolute","ext-relative","ext-top-base","ext-top-lg","ext--top-base","ext--top-lg","ext-right-base","ext-right-lg","ext--right-base","ext--right-lg","ext-bottom-base","ext-bottom-lg","ext--bottom-base","ext--bottom-lg","ext-left-base","ext-left-lg","ext--left-base","ext--left-lg","ext-order-1","ext-order-2","ext-col-auto","ext-col-span-1","ext-col-span-2","ext-col-span-3","ext-col-span-4","ext-col-span-5","ext-col-span-6","ext-col-span-7","ext-col-span-8","ext-col-span-9","ext-col-span-10","ext-col-span-11","ext-col-span-12","ext-col-span-full","ext-col-start-1","ext-col-start-2","ext-col-start-3","ext-col-start-4","ext-col-start-5","ext-col-start-6","ext-col-start-7","ext-col-start-8","ext-col-start-9","ext-col-start-10","ext-col-start-11","ext-col-start-12","ext-col-start-13","ext-col-start-auto","ext-col-end-1","ext-col-end-2","ext-col-end-3","ext-col-end-4","ext-col-end-5","ext-col-end-6","ext-col-end-7","ext-col-end-8","ext-col-end-9","ext-col-end-10","ext-col-end-11","ext-col-end-12","ext-col-end-13","ext-col-end-auto","ext-row-auto","ext-row-span-1","ext-row-span-2","ext-row-span-3","ext-row-span-4","ext-row-span-5","ext-row-span-6","ext-row-span-full","ext-row-start-1","ext-row-start-2","ext-row-start-3","ext-row-start-4","ext-row-start-5","ext-row-start-6","ext-row-start-7","ext-row-start-auto","ext-row-end-1","ext-row-end-2","ext-row-end-3","ext-row-end-4","ext-row-end-5","ext-row-end-6","ext-row-end-7","ext-row-end-auto","ext-m-0","ext-m-auto","ext-m-base","ext-m-lg","ext--m-base","ext--m-lg","ext-mx-0","ext-mx-auto","ext-mx-base","ext-mx-lg","ext--mx-base","ext--mx-lg","ext-my-0","ext-my-auto","ext-my-base","ext-my-lg","ext--my-base","ext--my-lg","ext-mt-0","ext-mt-auto","ext-mt-base","ext-mt-lg","ext--mt-base","ext--mt-lg","ext-mr-0","ext-mr-auto","ext-mr-base","ext-mr-lg","ext--mr-base","ext--mr-lg","ext-mb-0","ext-mb-auto","ext-mb-base","ext-mb-lg","ext--mb-base","ext--mb-lg","ext-ml-0","ext-ml-auto","ext-ml-base","ext-ml-lg","ext--ml-base","ext--ml-lg","ext-block","ext-inline-block","ext-inline","ext-flex","ext-inline-flex","ext-grid","ext-inline-grid","ext-hidden","ext-w-auto","ext-w-full","ext-max-w-full","ext-flex-1","ext-flex-auto","ext-flex-initial","ext-flex-none","ext-flex-shrink-0","ext-flex-shrink","ext-flex-grow-0","ext-flex-grow","ext-list-none","ext-grid-cols-1","ext-grid-cols-2","ext-grid-cols-3","ext-grid-cols-4","ext-grid-cols-5","ext-grid-cols-6","ext-grid-cols-7","ext-grid-cols-8","ext-grid-cols-9","ext-grid-cols-10","ext-grid-cols-11","ext-grid-cols-12","ext-grid-cols-none","ext-grid-rows-1","ext-grid-rows-2","ext-grid-rows-3","ext-grid-rows-4","ext-grid-rows-5","ext-grid-rows-6","ext-grid-rows-none","ext-flex-row","ext-flex-row-reverse","ext-flex-col","ext-flex-col-reverse","ext-flex-wrap","ext-flex-wrap-reverse","ext-flex-nowrap","ext-items-start","ext-items-end","ext-items-center","ext-items-baseline","ext-items-stretch","ext-justify-start","ext-justify-end","ext-justify-center","ext-justify-between","ext-justify-around","ext-justify-evenly","ext-justify-items-start","ext-justify-items-end","ext-justify-items-center","ext-justify-items-stretch","ext-gap-0","ext-gap-base","ext-gap-lg","ext-gap-x-0","ext-gap-x-base","ext-gap-x-lg","ext-gap-y-0","ext-gap-y-base","ext-gap-y-lg","ext-justify-self-auto","ext-justify-self-start","ext-justify-self-end","ext-justify-self-center","ext-justify-self-stretch","ext-rounded-none","ext-rounded-full","ext-rounded-t-none","ext-rounded-t-full","ext-rounded-r-none","ext-rounded-r-full","ext-rounded-b-none","ext-rounded-b-full","ext-rounded-l-none","ext-rounded-l-full","ext-rounded-tl-none","ext-rounded-tl-full","ext-rounded-tr-none","ext-rounded-tr-full","ext-rounded-br-none","ext-rounded-br-full","ext-rounded-bl-none","ext-rounded-bl-full","ext-border-0","ext-border-t-0","ext-border-r-0","ext-border-b-0","ext-border-l-0","ext-p-0","ext-p-base","ext-p-lg","ext-px-0","ext-px-base","ext-px-lg","ext-py-0","ext-py-base","ext-py-lg","ext-pt-0","ext-pt-base","ext-pt-lg","ext-pr-0","ext-pr-base","ext-pr-lg","ext-pb-0","ext-pb-base","ext-pb-lg","ext-pl-0","ext-pl-base","ext-pl-lg","ext-text-left","ext-text-center","ext-text-right","ext-leading-none","ext-leading-tight","ext-leading-snug","ext-leading-normal","ext-leading-relaxed","ext-leading-loose","clip-path--rhombus","clip-path--diamond","clip-path--rhombus-alt","tablet\\\\:fullwidth-cols","desktop\\\\:fullwidth-cols","direction-rtl","direction-ltr","bring-to-front","text-stroke","text-stroke--primary","text-stroke--secondary","editor\\\\:no-caption","editor\\\\:no-inserter","editor\\\\:no-resize","editor\\\\:pointer-events-none","tablet\\\\:ext-absolute","tablet\\\\:ext-relative","tablet\\\\:ext-top-base","tablet\\\\:ext-top-lg","tablet\\\\:ext--top-base","tablet\\\\:ext--top-lg","tablet\\\\:ext-right-base","tablet\\\\:ext-right-lg","tablet\\\\:ext--right-base","tablet\\\\:ext--right-lg","tablet\\\\:ext-bottom-base","tablet\\\\:ext-bottom-lg","tablet\\\\:ext--bottom-base","tablet\\\\:ext--bottom-lg","tablet\\\\:ext-left-base","tablet\\\\:ext-left-lg","tablet\\\\:ext--left-base","tablet\\\\:ext--left-lg","tablet\\\\:ext-order-1","tablet\\\\:ext-order-2","tablet\\\\:ext-m-0","tablet\\\\:ext-m-auto","tablet\\\\:ext-m-base","tablet\\\\:ext-m-lg","tablet\\\\:ext--m-base","tablet\\\\:ext--m-lg","tablet\\\\:ext-mx-0","tablet\\\\:ext-mx-auto","tablet\\\\:ext-mx-base","tablet\\\\:ext-mx-lg","tablet\\\\:ext--mx-base","tablet\\\\:ext--mx-lg","tablet\\\\:ext-my-0","tablet\\\\:ext-my-auto","tablet\\\\:ext-my-base","tablet\\\\:ext-my-lg","tablet\\\\:ext--my-base","tablet\\\\:ext--my-lg","tablet\\\\:ext-mt-0","tablet\\\\:ext-mt-auto","tablet\\\\:ext-mt-base","tablet\\\\:ext-mt-lg","tablet\\\\:ext--mt-base","tablet\\\\:ext--mt-lg","tablet\\\\:ext-mr-0","tablet\\\\:ext-mr-auto","tablet\\\\:ext-mr-base","tablet\\\\:ext-mr-lg","tablet\\\\:ext--mr-base","tablet\\\\:ext--mr-lg","tablet\\\\:ext-mb-0","tablet\\\\:ext-mb-auto","tablet\\\\:ext-mb-base","tablet\\\\:ext-mb-lg","tablet\\\\:ext--mb-base","tablet\\\\:ext--mb-lg","tablet\\\\:ext-ml-0","tablet\\\\:ext-ml-auto","tablet\\\\:ext-ml-base","tablet\\\\:ext-ml-lg","tablet\\\\:ext--ml-base","tablet\\\\:ext--ml-lg","tablet\\\\:ext-block","tablet\\\\:ext-inline-block","tablet\\\\:ext-inline","tablet\\\\:ext-flex","tablet\\\\:ext-inline-flex","tablet\\\\:ext-grid","tablet\\\\:ext-inline-grid","tablet\\\\:ext-hidden","tablet\\\\:ext-w-auto","tablet\\\\:ext-w-full","tablet\\\\:ext-max-w-full","tablet\\\\:ext-flex-1","tablet\\\\:ext-flex-auto","tablet\\\\:ext-flex-initial","tablet\\\\:ext-flex-none","tablet\\\\:ext-flex-shrink-0","tablet\\\\:ext-flex-shrink","tablet\\\\:ext-flex-grow-0","tablet\\\\:ext-flex-grow","tablet\\\\:ext-list-none","tablet\\\\:ext-grid-cols-1","tablet\\\\:ext-grid-cols-2","tablet\\\\:ext-grid-cols-3","tablet\\\\:ext-grid-cols-4","tablet\\\\:ext-grid-cols-5","tablet\\\\:ext-grid-cols-6","tablet\\\\:ext-grid-cols-7","tablet\\\\:ext-grid-cols-8","tablet\\\\:ext-grid-cols-9","tablet\\\\:ext-grid-cols-10","tablet\\\\:ext-grid-cols-11","tablet\\\\:ext-grid-cols-12","tablet\\\\:ext-grid-cols-none","tablet\\\\:ext-flex-row","tablet\\\\:ext-flex-row-reverse","tablet\\\\:ext-flex-col","tablet\\\\:ext-flex-col-reverse","tablet\\\\:ext-flex-wrap","tablet\\\\:ext-flex-wrap-reverse","tablet\\\\:ext-flex-nowrap","tablet\\\\:ext-items-start","tablet\\\\:ext-items-end","tablet\\\\:ext-items-center","tablet\\\\:ext-items-baseline","tablet\\\\:ext-items-stretch","tablet\\\\:ext-justify-start","tablet\\\\:ext-justify-end","tablet\\\\:ext-justify-center","tablet\\\\:ext-justify-between","tablet\\\\:ext-justify-around","tablet\\\\:ext-justify-evenly","tablet\\\\:ext-justify-items-start","tablet\\\\:ext-justify-items-end","tablet\\\\:ext-justify-items-center","tablet\\\\:ext-justify-items-stretch","tablet\\\\:ext-justify-self-auto","tablet\\\\:ext-justify-self-start","tablet\\\\:ext-justify-self-end","tablet\\\\:ext-justify-self-center","tablet\\\\:ext-justify-self-stretch","tablet\\\\:ext-p-0","tablet\\\\:ext-p-base","tablet\\\\:ext-p-lg","tablet\\\\:ext-px-0","tablet\\\\:ext-px-base","tablet\\\\:ext-px-lg","tablet\\\\:ext-py-0","tablet\\\\:ext-py-base","tablet\\\\:ext-py-lg","tablet\\\\:ext-pt-0","tablet\\\\:ext-pt-base","tablet\\\\:ext-pt-lg","tablet\\\\:ext-pr-0","tablet\\\\:ext-pr-base","tablet\\\\:ext-pr-lg","tablet\\\\:ext-pb-0","tablet\\\\:ext-pb-base","tablet\\\\:ext-pb-lg","tablet\\\\:ext-pl-0","tablet\\\\:ext-pl-base","tablet\\\\:ext-pl-lg","tablet\\\\:ext-text-left","tablet\\\\:ext-text-center","tablet\\\\:ext-text-right","desktop\\\\:ext-absolute","desktop\\\\:ext-relative","desktop\\\\:ext-top-base","desktop\\\\:ext-top-lg","desktop\\\\:ext--top-base","desktop\\\\:ext--top-lg","desktop\\\\:ext-right-base","desktop\\\\:ext-right-lg","desktop\\\\:ext--right-base","desktop\\\\:ext--right-lg","desktop\\\\:ext-bottom-base","desktop\\\\:ext-bottom-lg","desktop\\\\:ext--bottom-base","desktop\\\\:ext--bottom-lg","desktop\\\\:ext-left-base","desktop\\\\:ext-left-lg","desktop\\\\:ext--left-base","desktop\\\\:ext--left-lg","desktop\\\\:ext-order-1","desktop\\\\:ext-order-2","desktop\\\\:ext-m-0","desktop\\\\:ext-m-auto","desktop\\\\:ext-m-base","desktop\\\\:ext-m-lg","desktop\\\\:ext--m-base","desktop\\\\:ext--m-lg","desktop\\\\:ext-mx-0","desktop\\\\:ext-mx-auto","desktop\\\\:ext-mx-base","desktop\\\\:ext-mx-lg","desktop\\\\:ext--mx-base","desktop\\\\:ext--mx-lg","desktop\\\\:ext-my-0","desktop\\\\:ext-my-auto","desktop\\\\:ext-my-base","desktop\\\\:ext-my-lg","desktop\\\\:ext--my-base","desktop\\\\:ext--my-lg","desktop\\\\:ext-mt-0","desktop\\\\:ext-mt-auto","desktop\\\\:ext-mt-base","desktop\\\\:ext-mt-lg","desktop\\\\:ext--mt-base","desktop\\\\:ext--mt-lg","desktop\\\\:ext-mr-0","desktop\\\\:ext-mr-auto","desktop\\\\:ext-mr-base","desktop\\\\:ext-mr-lg","desktop\\\\:ext--mr-base","desktop\\\\:ext--mr-lg","desktop\\\\:ext-mb-0","desktop\\\\:ext-mb-auto","desktop\\\\:ext-mb-base","desktop\\\\:ext-mb-lg","desktop\\\\:ext--mb-base","desktop\\\\:ext--mb-lg","desktop\\\\:ext-ml-0","desktop\\\\:ext-ml-auto","desktop\\\\:ext-ml-base","desktop\\\\:ext-ml-lg","desktop\\\\:ext--ml-base","desktop\\\\:ext--ml-lg","desktop\\\\:ext-block","desktop\\\\:ext-inline-block","desktop\\\\:ext-inline","desktop\\\\:ext-flex","desktop\\\\:ext-inline-flex","desktop\\\\:ext-grid","desktop\\\\:ext-inline-grid","desktop\\\\:ext-hidden","desktop\\\\:ext-w-auto","desktop\\\\:ext-w-full","desktop\\\\:ext-max-w-full","desktop\\\\:ext-flex-1","desktop\\\\:ext-flex-auto","desktop\\\\:ext-flex-initial","desktop\\\\:ext-flex-none","desktop\\\\:ext-flex-shrink-0","desktop\\\\:ext-flex-shrink","desktop\\\\:ext-flex-grow-0","desktop\\\\:ext-flex-grow","desktop\\\\:ext-list-none","desktop\\\\:ext-grid-cols-1","desktop\\\\:ext-grid-cols-2","desktop\\\\:ext-grid-cols-3","desktop\\\\:ext-grid-cols-4","desktop\\\\:ext-grid-cols-5","desktop\\\\:ext-grid-cols-6","desktop\\\\:ext-grid-cols-7","desktop\\\\:ext-grid-cols-8","desktop\\\\:ext-grid-cols-9","desktop\\\\:ext-grid-cols-10","desktop\\\\:ext-grid-cols-11","desktop\\\\:ext-grid-cols-12","desktop\\\\:ext-grid-cols-none","desktop\\\\:ext-flex-row","desktop\\\\:ext-flex-row-reverse","desktop\\\\:ext-flex-col","desktop\\\\:ext-flex-col-reverse","desktop\\\\:ext-flex-wrap","desktop\\\\:ext-flex-wrap-reverse","desktop\\\\:ext-flex-nowrap","desktop\\\\:ext-items-start","desktop\\\\:ext-items-end","desktop\\\\:ext-items-center","desktop\\\\:ext-items-baseline","desktop\\\\:ext-items-stretch","desktop\\\\:ext-justify-start","desktop\\\\:ext-justify-end","desktop\\\\:ext-justify-center","desktop\\\\:ext-justify-between","desktop\\\\:ext-justify-around","desktop\\\\:ext-justify-evenly","desktop\\\\:ext-justify-items-start","desktop\\\\:ext-justify-items-end","desktop\\\\:ext-justify-items-center","desktop\\\\:ext-justify-items-stretch","desktop\\\\:ext-justify-self-auto","desktop\\\\:ext-justify-self-start","desktop\\\\:ext-justify-self-end","desktop\\\\:ext-justify-self-center","desktop\\\\:ext-justify-self-stretch","desktop\\\\:ext-p-0","desktop\\\\:ext-p-base","desktop\\\\:ext-p-lg","desktop\\\\:ext-px-0","desktop\\\\:ext-px-base","desktop\\\\:ext-px-lg","desktop\\\\:ext-py-0","desktop\\\\:ext-py-base","desktop\\\\:ext-py-lg","desktop\\\\:ext-pt-0","desktop\\\\:ext-pt-base","desktop\\\\:ext-pt-lg","desktop\\\\:ext-pr-0","desktop\\\\:ext-pr-base","desktop\\\\:ext-pr-lg","desktop\\\\:ext-pb-0","desktop\\\\:ext-pb-base","desktop\\\\:ext-pb-lg","desktop\\\\:ext-pl-0","desktop\\\\:ext-pl-base","desktop\\\\:ext-pl-lg","desktop\\\\:ext-text-left","desktop\\\\:ext-text-center","desktop\\\\:ext-text-right"]}');function Aa(e){return function(e){if(Array.isArray(e))return Pa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Pa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pa(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ta(Object(n),!0).forEach((function(t){Ra(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ta(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ra(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ia=(0,Sa.createHigherOrderComponent)((function(e){return function(t){var n,r,o=null!==(n=null==t||null===(r=t.attributes)||void 0===r?void 0:r.extUtilities)&&void 0!==n?n:[],i=Oa.t.map((function(e){return e.replace(".","").replace(new RegExp("\\\\","g"),"")}));return(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)(e,Na({},t)),o&&(0,nn.jsx)(Mr.InspectorAdvancedControls,{children:(0,nn.jsx)(qt.FormTokenField,{label:(0,Ht.__)("Extendify Utilities","extendify"),tokenizeOnSpace:!0,value:o,suggestions:i,onChange:function(e){t.setAttributes({extUtilities:e})}})})]})}}),"utilityClassEdit");function La(e,t,n){var r,o,i,a=null!==(r=null==e?void 0:e.className)&&void 0!==r?r:[],s=null!==(o=null==n?void 0:n.extUtilities)&&void 0!==o?o:[],l=null!==(i=null==n?void 0:n.className)&&void 0!==i?i:[];if(!s||!Object.keys(s).length)return e;var u=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return e.split(" ");case"[object Array]":return e;default:return[]}},c=new Set([].concat(Aa(u(l)),Aa(u(a)),Aa(u(s))));return Object.assign({},e,{className:Aa(c).join(" ")})}function Ma(e){var t=e.show,n=void 0!==t&&t,r=S((function(e){return e.open})),i=S((function(e){return e.setReady})),a=S((function(e){return e.setOpen})),s=(0,o.useCallback)((function(){return a(!0)}),[a]),l=(0,o.useCallback)((function(){return a(!1)}),[a]),u=ye((function(e){return e.initTemplateData})),c=le((function(e){return e.fetchTaxonomies})),f=J((function(e){return e._hasHydrated})),d=ye((function(e){return Object.keys(e.taxonomyDefaultState).length>0}));return(0,o.useEffect)((function(){r&&c().then((function(){ye.getState().setupDefaultTaxonomies()}))}),[r,c]),(0,o.useEffect)((function(){f&&d&&(u(),i(!0))}),[f,d,u,i]),(0,o.useEffect)((function(){var e=new URLSearchParams(window.location.search);(n||e.has("ext-open"))&&a(!0)}),[n,a]),(0,o.useEffect)((function(){ve().then((function(e){S.setState({metaData:e})}))}),[]),(0,o.useEffect)((function(){return window.addEventListener("extendify::open-library",s),window.addEventListener("extendify::close-library",l),function(){window.removeEventListener("extendify::open-library",s),window.removeEventListener("extendify::close-library",l)}}),[l,s]),(0,nn.jsx)(_a,{})}function Da(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}(0,Ca.addFilter)("blocks.registerBlockType","extendify/utilities/attributes",(function(e){return Na(Na({},e),{},{attributes:Na(Na({},e.attributes),{},{extUtilities:{type:"array",default:[]}})})})),(0,Ca.addFilter)("blocks.registerBlockType","extendify/utilities/addEditProps",(function(e){var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),La(r,e,n)},e})),(0,Ca.addFilter)("editor.BlockEdit","extendify/utilities/advancedClassControls",Ia),(0,Ca.addFilter)("blocks.getSaveContent.extraProps","extendify/utilities/extra-props",La);var Ba,Fa=(0,eo.select)("core/blocks").getCategories();(0,r.setCategories)([{slug:"extendify",title:"Extendify",icon:null}].concat(function(e){if(Array.isArray(e))return Da(e)}(Ba=Fa)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(Ba)||function(e,t){if(e){if("string"==typeof e)return Da(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Da(e,t):void 0}}(Ba)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),(0,r.registerBlockCollection)("extendify",{title:"Extendify",icon:(0,nn.jsx)(qt.Icon,{icon:jn})});const Ua=(0,o.createElement)(en,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(Zt,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"})),za=(0,o.createElement)(en,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(Zt,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})),$a=(0,o.createElement)(en,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Zt,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"})),Va=(0,o.createElement)(en,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Zt,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"})),Wa=(0,o.createElement)(en,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Zt,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})),qa=(0,o.createElement)(en,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(Zt,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 12.8h8v-1.5H8v1.5z"})),Ha=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"extendify/library","title":"Pattern Library","description":"Add block patterns and full page layouts with the Extendify Library.","keywords":["template","layouts"],"textdomain":"extendify","attributes":{"preview":{"type":"string"},"search":{"type":"string"}}}');(0,r.registerBlockType)(Ha,{icon:jn,category:"extendify",example:{attributes:{preview:window.extendifyData.asset_path+"/preview.png"}},variations:[{name:"gallery",icon:(0,nn.jsx)(Yt,{icon:Ua}),category:"extendify",attributes:{search:"gallery"},title:(0,Ht.__)("Gallery Patterns","extendify"),description:(0,Ht.__)("Add gallery patterns and layouts.","extendify"),keywords:[(0,Ht.__)("slideshow","extendify"),(0,Ht.__)("images","extendify")]},{name:"team",icon:(0,nn.jsx)(Yt,{icon:za}),category:"extendify",attributes:{search:"team"},title:(0,Ht.__)("Team Patterns","extendify"),description:(0,Ht.__)("Add team patterns and layouts.","extendify"),keywords:[(0,Ht._x)("crew","As in team","extendify"),(0,Ht.__)("colleagues","extendify"),(0,Ht.__)("members","extendify")]},{name:"hero",icon:(0,nn.jsx)(Yt,{icon:$a}),category:"extendify",attributes:{search:"hero"},title:(0,Ht._x)("Hero Patterns","Hero being a hero/top section of a webpage","extendify"),description:(0,Ht.__)("Add hero patterns and layouts.","extendify"),keywords:[(0,Ht.__)("heading","extendify"),(0,Ht.__)("headline","extendify")]},{name:"text",icon:(0,nn.jsx)(Yt,{icon:Va}),category:"extendify",attributes:{search:"text"},title:(0,Ht._x)("Text Patterns","Relating to patterns that feature text only","extendify"),description:(0,Ht.__)("Add text patterns and layouts.","extendify"),keywords:[(0,Ht.__)("simple","extendify"),(0,Ht.__)("paragraph","extendify")]},{name:"about",icon:(0,nn.jsx)(Yt,{icon:Wa}),category:"extendify",attributes:{search:"about"},title:(0,Ht._x)("About Page Patterns","Add patterns relating to an about us page","extendify"),description:(0,Ht.__)("About patterns and layouts.","extendify"),keywords:[(0,Ht.__)("who we are","extendify"),(0,Ht.__)("team","extendify")]},{name:"call-to-action",icon:(0,nn.jsx)(Yt,{icon:qa}),category:"extendify",attributes:{search:"call-to-action"},title:(0,Ht.__)("Call to Action Patterns","extendify"),description:(0,Ht.__)("Add call to action patterns and layouts.","extendify"),keywords:[(0,Ht._x)("cta","Initialism for call to action","extendify"),(0,Ht.__)("callout","extendify"),(0,Ht.__)("buttons","extendify")]}],edit:function(e){var t=e.clientId,n=e.attributes,r=(0,eo.useDispatch)("core/block-editor").removeBlock;return(0,o.useEffect)((function(){n.preview||(n.search&&Ya(n.search),Kr("library-block","open"),r(t))}),[t,n,r]),(0,nn.jsx)("img",{style:{display:"block",maxWidth:"100%"},src:n.preview,alt:(0,Ht.sprintf)((0,Ht.__)("%s Pattern Library","extendify"),"Extendify")})}});var Ya=function(e){var t=new URLSearchParams(window.location.search);t.append("ext-patternType",e),window.history.replaceState(null,null,window.location.pathname+"?"+t.toString())};const Ga=wp.editPost,Ja=wp.plugins;function Ka(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Xa(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ka(i,r,o,a,s,"next",e)}function s(e){Ka(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Za(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qa(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const es=function(){var e=(0,eo.useSelect)((function(e){return e("core").canUser("create","users")})),t=Za((0,o.useState)(J.getState().enabled),2),n=t[0],r=t[1],i=Za((0,o.useState)(oe.getState().enabled),2),s=i[0],l=i[1];function u(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=document.getElementById("extendify-templates-inserter-btn");t&&(e?t.classList.add("hidden"):t.classList.remove("hidden"))}function c(e){return f.apply(this,arguments)}function f(){return(f=Xa(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,J.setState({enabled:t});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(e){return p.apply(this,arguments)}function p(){return(p=Xa(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oe.setState({enabled:t});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e,t){return m.apply(this,arguments)}function m(){return(m=Xa(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("global"!==n){e.next=5;break}return e.next=3,d(t);case 3:e.next=7;break;case 5:return e.next=7,c(t);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){"global"===e?l((function(t){return h(!t,e),!t})):r((function(t){return u(!t),h(!t,e),!t}))}return(0,o.useEffect)((function(){u(!n)}),[n]),(0,nn.jsxs)(qt.Modal,{title:(0,Ht.__)("Extendify Settings","extendify"),onRequestClose:function(){var e=document.getElementById("extendify-util");(0,o.unmountComponentAtNode)(e)},children:[(0,nn.jsx)(qt.ToggleControl,{label:e?(0,Ht.__)("Enable the library for myself","extendify"):(0,Ht.__)("Enable the library","extendify"),help:(0,Ht.__)("Publish with hundreds of patterns & page layouts","extendify"),checked:n,onChange:function(){return x("user")}}),e&&(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)("br",{}),(0,nn.jsx)(qt.ToggleControl,{label:(0,Ht.__)("Allow all users to publish with the library"),help:(0,Ht.__)("Everyone publishes with patterns & page layouts","extendify"),checked:s,onChange:function(){return x("global")}})]})]})};function ts(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ns(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ns(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ns(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var rs=function(e){var t=e.anchorRef,n=e.onPressX,r=e.onClick,o=e.onClickOutside;return t.current?(0,nn.jsx)(qt.Popover,{anchorRef:t.current,shouldAnchorIncludePadding:!0,className:"extendify-tooltip-default",focusOnMount:!1,onFocusOutside:o,onClick:r,position:"bottom center",noArrow:!1,children:(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"0.5rem"},children:[(0,nn.jsx)("span",{style:{textTransform:"uppercase",color:"#8b8b8b"},children:(0,Ht.__)("Monthly Imports","extendify")}),(0,nn.jsx)(qt.Button,{style:{color:"white",position:"relative",right:"-5px",padding:"0",minWidth:"0",height:"20px",width:"20px"},onClick:function(e){e.stopPropagation(),n()},icon:(0,nn.jsx)(Yt,{icon:Mn,size:12}),showTooltip:!1,label:(0,Ht.__)("Close callout","extendify")})]}),(0,nn.jsx)("div",{dangerouslySetInnerHTML:{__html:bn((0,Ht.sprintf)((0,Ht.__)("%1$sGood news!%2$s We've added more imports to your library. Enjoy!","extendify"),"<strong>","</strong>"))}})]})}):null};function os(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function is(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){os(i,r,o,a,s,"next",e)}function s(e){os(i,r,o,a,s,"throw",e)}a(void 0)}))}}function as(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ss(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ss(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ss(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ls,us,cs,fs,ds,ps,hs,ms,xs,ys,vs=function(){var e=as((0,o.useState)(!1),2),t=e[0],n=e[1],r=(0,o.useRef)(!1),i=(0,o.useRef)(),s=J((function(e){return e.apiKey.length})),l=J((function(e){return e.imports>0})),u=S((function(e){return e.open})),c=J((function(e){return 0===e.allowedImports})),f=J((function(e){return e.uuid})),d=function(e,t,n){var r=ts((0,o.useState)(),2),i=r[0],a=r[1],s=S((function(e){return e.ready}));return(0,o.useLayoutEffect)((function(){if(n||s&&!i||window.extendifyData._canRehydrate){var r=J.getState().testGroup(e,t);a(r)}}),[e,t,i,s,n]),i}("main-button-text2",["A","B"],!0),p=as((0,o.useState)(),2),h=p[0],m=p[1],x=function(){var e=is(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("mb-tooltip-closed");case 2:n(!1),J.setState({allowedImports:-1});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,o.useEffect)((function(){if(f){m(function(){switch(d){case"A":return(0,Ht.__)("Add template","extendify");case"B":return(0,Ht.__)("Design Library","extendify")}}())}}),[d,f]),(0,o.useEffect)((function(){u&&(n(!1),r.current=!0),!s&&c&&l&&(r.current||n(!0),r.current=!0)}),[s,c,l,u]),(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)(gs,{buttonRef:i,text:h}),t&&(0,nn.jsx)(rs,{anchorRef:i,onClick:is(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("mb-tooltip-pressed");case 2:Jr("main-button-tooltip");case 3:case"end":return e.stop()}}),e)}))),onPressX:x})]})},gs=function(e){var t=e.buttonRef,n=e.text;return(0,nn.jsx)("div",{className:"extendify",children:(0,nn.jsx)(qt.Button,{isPrimary:!0,ref:t,className:"h-8 xs:h-9 px-1 min-w-0 xs:pl-2 xs:pr-3 sm:ml-2",onClick:function(){return Jr("main-button")},id:"extendify-templates-inserter-btn",icon:(0,nn.jsx)(Yt,{icon:kn,size:24,style:{marginRight:0}}),children:(0,nn.jsx)("span",{className:"hidden xs:inline ml-1",children:n})})})},bs=function(){return(0,nn.jsx)(qt.Button,{id:"extendify-cta-button",style:{margin:"1rem 1rem 0",width:"calc(100% - 2rem)",justifyContent:" center"},onClick:function(){return Jr("patterns-cta")},isSecondary:!0,children:(0,Ht.__)("Discover patterns in Extendify Library","extendify")})},ws=null===(ls=window.extendifyData)||void 0===ls||null===(us=ls.user)||void 0===us?void 0:us.state,js=function(){return null===window.extendifyData.user||(null==ws?void 0:ws.isAdmin)},ks=function(){var e,t,n;return null===window.extendifyData.sitesettings||(null===(e=window.extendifyData)||void 0===e||null===(t=e.sitesettings)||void 0===t||null===(n=t.state)||void 0===n?void 0:n.enabled)},Es=null===(cs=window)||void 0===cs||null===(fs=cs.wp)||void 0===fs||null===(ds=fs.data)||void 0===ds?void 0:ds.subscribe((function(){requestAnimationFrame((function(){var e,t;if((ks()||js())&&!document.getElementById("extendify-templates-inserter")&&(document.querySelector(".edit-post-header-toolbar")||document.querySelector(".edit-site-header_start"))){var n=Object.assign(document.createElement("div"),{id:"extendify-templates-inserter"});null===(e=document.querySelector(".edit-post-header-toolbar"))||void 0===e||e.append(n),null===(t=document.querySelector(".edit-site-header_start"))||void 0===t||t.append(n),(0,o.render)((0,nn.jsx)(vs,{}),n),(null===window.extendifyData.user?ks():null==ws?void 0:ws.enabled)||document.getElementById("extendify-templates-inserter-btn").classList.add("hidden"),Es()}}))})),_s=null===(ps=window)||void 0===ps||null===(hs=ps.wp)||void 0===hs||null===(ms=hs.data)||void 0===ms?void 0:ms.subscribe((function(){requestAnimationFrame((function(){if((ks()||js())&&document.querySelector("[id$=patterns-view]")&&!document.getElementById("extendify-cta-button")){var e=Object.assign(document.createElement("div"),{id:"extendify-cta-button-container"});document.querySelector("[id$=patterns-view]").prepend(e),(0,o.render)((0,nn.jsx)(bs,{}),e),_s()}}))}));try{(0,Ja.registerPlugin)("extendify-settings-enable-disable",{render:function(){return(0,nn.jsx)(nn.Fragment,{children:(0,nn.jsxs)(Ga.PluginSidebarMoreMenuItem,{onClick:function(){var e=document.getElementById("extendify-util");(0,o.render)((0,nn.jsx)(es,{}),e)},icon:(0,nn.jsx)(Yt,{icon:kn,size:24}),children:[" ",(0,Ht.__)("Extendify","extendify")]})})}})}catch(ut){console.error("registerPlugin not supported? (error handled gracefully)",ut.message)}[{register:function(){var e=(0,eo.dispatch)("core/notices").createNotice,t=J.getState().incrementImports;window.addEventListener("extendify::template-inserted",(function(n){e("info",(0,Ht.__)("Page layout added"),{isDismissible:!0,type:"snackbar"}),setTimeout((function(){var e;t(),Ir(null===(e=n.detail)||void 0===e?void 0:e.template)}),0)}))}},{register:function(){var e=this;window.addEventListener("extendify::softerror-encountered",(function(t){e[(0,A.camelCase)(t.detail.type)](t.detail)}))},versionOutdated:function(e){(0,o.render)((0,nn.jsx)(vo,{title:e.data.title,requiredPlugins:["extendify"],message:e.data.message,buttonLabel:e.data.buttonLabel,forceOpen:!0}),document.getElementById("extendify-root"))}}].forEach((function(e){return e.register()})),null===(xs=window)||void 0===xs||null===(ys=xs.wp)||void 0===ys||ys.domReady((function(){var e=Object.assign(document.createElement("div"),{id:"extendify-root"});if(document.body.append(e),(0,o.render)((0,nn.jsx)(Ma,{}),e),e.parentNode.insertBefore(Object.assign(document.createElement("div"),{id:"extendify-util"}),e.nextSibling),Gr.getState().importOnLoad){var t=Gr.getState().wantedTemplate;setTimeout((function(){Ro((0,r.rawHandler)({HTML:t.fields.code}),t)}),0)}Gr.setState({importOnLoad:!1,wantedTemplate:{}})}))},4782:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=l(e),a=i[0],s=i[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),c=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,l=r-o;s<l;s+=a)i.push(u(e,s,s+a>l?l:s+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var o,i,a=[],s=t;s<r;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},816:(e,t,n)=>{"use strict";var r=n(4782),o=n(8898),i=n(5182);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),o=(e=s(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(c(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return _(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=n;i<s;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*a}else-1!==c&&(i-=i-c),c=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var f=!0,d=0;d<l;d++)if(u(e,i+d)!==u(t,d)){f=!1;break}if(f)return i}return-1}function g(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function b(e,t,n,r){return V(z(t,e.length-n),e,n,r)}function w(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function j(e,t,n,r){return w(e,t,n,r)}function k(e,t,n,r){return V($(t),e,n,r)}function E(e,t,n,r){return V(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function _(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,l,u=e[o],c=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&u)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=f}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=C));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return f(null,e)},l.allocUnsafeSlow=function(e){return f(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)x(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),u=this.slice(r,o),c=e.slice(t,n),f=0;f<s;++f)if(u[f]!==c[f]){i=u[f],a=c[f];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return g(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return j(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function O(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function P(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=U(e[i]);return o}function T(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function M(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return i||M(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return i||M(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;n=new l(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=l.isBuffer(e)?e:z(new l(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function $(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}},42:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},6012:(e,t,n)=>{"use strict";var r=n(3185),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,l,u,c=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return c}},8898:(e,t)=>{t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=s;c>0;i=256*i+e[t+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=u}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,u=8*i-o-1,c=(1<<u)-1,f=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*m}},5182:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},7721:()=>{},1461:()=>{},9086:()=>{},2525:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,l=o(e),u=1;u<arguments.length;u++){for(var c in a=Object(arguments[u]))n.call(a,c)&&(l[c]=a[c]);if(t){s=t(a);for(var f=0;f<s.length;f++)r.call(a,s[f])&&(l[s[f]]=a[s[f]])}}return l}},7061:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,l=[],u=!1,c=-1;function f(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length&&d())}function d(){if(!u){var e=a(f);u=!0;for(var t=l.length;t;){for(s=l,l=[];++c<t;)s&&s[c].run();c=-1,t=l.length}s=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||u||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},4218:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=s(n(7363)),i=s(n(6012)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return x(e)}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(l,e);var t,n,r,s=h(l);function l(){var e;f(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(x(e=s.call.apply(s,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,a=n.onCopy,s=n.children,l=n.options,u=o.default.Children.only(s),c=(0,i.default)(r,l);a&&a(r,c),u&&u.props&&"function"==typeof u.props.onClick&&u.props.onClick(t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=c(e,a),r=o.default.Children.only(t);return o.default.cloneElement(r,u(u({},n),{},{onClick:this.onClick}))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.default.PureComponent);t.CopyToClipboard=g,v(g,"defaultProps",{onCopy:void 0,options:void 0})},4306:(e,t,n)=>{"use strict";var r=n(4218).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},1426:(e,t,n)=>{"use strict";n(2525);var r=n(7363),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:a.current}}t.jsx=u,t.jsxs=u},4246:(e,t,n)=>{"use strict";e.exports=n(1426)},6248:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof x?t:x,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?h:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",m={};function x(){}function y(){}function v(){}var g={};l(g,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(A([])));w&&w!==n&&r.call(w,i)&&(g=w);var j=v.prototype=x.prototype=Object.create(g);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,s){var l=c(e[o],e,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function _(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,_(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=c(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:P}}function P(){return{value:t,done:!0}}return y.prototype=v,l(j,"constructor",v),l(v,"constructor",y),y.displayName=l(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,s,"GeneratorFunction")),e.prototype=Object.create(j),e},e.awrap=function(e){return{__await:e}},k(E.prototype),l(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(j),l(j,s,"Generator"),l(j,i,(function(){return this})),l(j,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=A,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},3185:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},7363:e=>{"use strict";e.exports=React}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.m=t,e=[],r.O=(t,n,o,i)=>{if(!n){var a=1/0;for(c=0;c<e.length;c++){for(var[n,o,i]=e[c],s=!0,l=0;l<n.length;l++)(!1&i||a>=i)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(s=!1,i<a&&(a=i));if(s){e.splice(c--,1);var u=o();void 0!==u&&(t=u)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[n,o,i]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={76:0,885:0,394:0,786:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,i,[a,s,l]=n,u=0;if(a.some((t=>0!==e[t]))){for(o in s)r.o(s,o)&&(r.m[o]=s[o]);if(l)var c=l(r)}for(t&&t(n);u<a.length;u++)i=a[u],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(c)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),r.O(void 0,[885,394,786],(()=>r(4330))),r.O(void 0,[885,394,786],(()=>r(7721))),r.O(void 0,[885,394,786],(()=>r(1461)));var o=r.O(void 0,[885,394,786],(()=>r(9086)));o=r.O(o)})();
1
  /*! For license information please see extendify.js.LICENSE.txt */
2
+ (()=>{var e,t={7135:(e,t,n)=>{e.exports=n(6248)},4206:(e,t,n)=>{e.exports=n(8057)},4387:(e,t,n)=>{"use strict";var r=n(7485),o=n(4570),i=n(2940),a=n(581),s=n(574),l=n(3845),u=n(8338),c=n(4832),f=n(7354),d=n(8870),p=n(4906);e.exports=function(e){return new Promise((function(t,n){var h,m=e.data,x=e.headers,y=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete x["Content-Type"];var g=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";x.Authorization="Basic "+btoa(b+":"+w)}var j=s(e.baseURL,e.url);function k(){if(g){var r="getAllResponseHeaders"in g?l(g.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g};o((function(e){t(e),v()}),(function(e){n(e),v()}),i),g=null}}if(g.open(e.method.toUpperCase(),a(j,e.params,e.paramsSerializer),!0),g.timeout=e.timeout,"onloadend"in g?g.onloadend=k:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(k)},g.onabort=function(){g&&(n(new f("Request aborted",f.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,g,g)),g=null},g.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,g)),g=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||u(j))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;E&&(x[e.xsrfHeaderName]=E)}"setRequestHeader"in g&&r.forEach(x,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete x[t]:g.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),y&&"json"!==y&&(g.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&g.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){g&&(n(!e||e&&e.type?new d:e),g.abort(),g=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),m||(m=null);var S=p(j);S&&-1===["http","https","file"].indexOf(S)?n(new f("Unsupported protocol "+S+":",f.ERR_BAD_REQUEST,e)):g.send(m)}))}},8057:(e,t,n)=>{"use strict";var r=n(7485),o=n(875),i=n(5029),a=n(4941);var s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(8396));s.Axios=i,s.CanceledError=n(8870),s.CancelToken=n(4603),s.isCancel=n(1475),s.VERSION=n(3345).version,s.toFormData=n(1020),s.AxiosError=n(7354),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(5739),s.isAxiosError=n(5835),e.exports=s,e.exports.default=s},4603:(e,t,n)=>{"use strict";var r=n(8870);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},8870:(e,t,n)=>{"use strict";var r=n(7354);function o(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(7485).inherits(o,r,{__CANCEL__:!0}),e.exports=o},1475:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5029:(e,t,n)=>{"use strict";var r=n(7485),o=n(581),i=n(8096),a=n(5009),s=n(4941),l=n(574),u=n(6144),c=u.validators;function f(e){this.defaults=e,this.interceptors={request:new i,response:new i}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!o){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(l),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var d=t;r.length;){var p=r.shift(),h=r.shift();try{d=p(d)}catch(e){h(e);break}}try{i=a(d)}catch(e){return Promise.reject(e)}for(;l.length;)i=i.then(l.shift(),l.shift());return i},f.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},7354:(e,t,n)=>{"use strict";var r=n(7485);function o(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,n,a,s,l){var u=Object.create(i);return r.toFlatObject(e,u,(function(e){return e!==Error.prototype})),o.call(u,e.message,t,n,a,s),u.name=e.name,l&&Object.assign(u,l),u},e.exports=o},8096:(e,t,n)=>{"use strict";var r=n(7485);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},574:(e,t,n)=>{"use strict";var r=n(2642),o=n(2288);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},5009:(e,t,n)=>{"use strict";var r=n(7485),o=n(9212),i=n(1475),a=n(8396),s=n(8870);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4941:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function l(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,o=t(e);r.isUndefined(o)&&t!==l||(n[e]=o)})),n}},4570:(e,t,n)=>{"use strict";var r=n(7354);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},9212:(e,t,n)=>{"use strict";var r=n(7485),o=n(8396);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},8396:(e,t,n)=>{"use strict";var r=n(7061),o=n(7485),i=n(1446),a=n(7354),s=n(4832),l=n(1020),u={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var f,d={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(f=n(4387)),f),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))return e;if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=o.isObject(e),a=t&&t["Content-Type"];if((n=o.isFileList(e))||r&&"multipart/form-data"===a){var s=this.env&&this.env.FormData;return l(n?{"files[]":e}:e,s&&new s)}return r||"application/json"===a?(c(t,"application/json"),function(e,t,n){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a.from(e,a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(8750)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){d.headers[e]=o.merge(u)})),e.exports=d},4832:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},3345:e=>{e.exports={version:"0.27.2"}},875:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},581:(e,t,n)=>{"use strict";var r=n(7485);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},2288:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2940:(e,t,n)=>{"use strict";var r=n(7485);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},2642:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5835:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},8338:(e,t,n)=>{"use strict";var r=n(7485);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},1446:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},8750:e=>{e.exports=null},3845:(e,t,n)=>{"use strict";var r=n(7485),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},4906:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5739:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1020:(e,t,n)=>{"use strict";var r=n(816).Buffer,o=n(7485);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":o.isDate(e)?e.toISOString():o.isArrayBuffer(e)||o.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return function e(r,a){if(o.isPlainObject(r)||o.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),o.forEach(r,(function(n,r){if(!o.isUndefined(n)){var s,l=a?a+"."+r:r;if(n&&!a&&"object"==typeof n)if(o.endsWith(r,"{}"))n=JSON.stringify(n);else if(o.endsWith(r,"[]")&&(s=o.toArray(n)))return void s.forEach((function(e){!o.isUndefined(e)&&t.append(l,i(e))}));e(n,l)}})),n.pop()}else t.append(a,i(r))}(e),t}},6144:(e,t,n)=>{"use strict";var r=n(3345).version,o=n(7354),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new o(i(r," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new o("option "+a+" must be "+u,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},7485:(e,t,n)=>{"use strict";var r,o=n(875),i=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function l(e){return Array.isArray(e)}function u(e){return void 0===e}var c=s("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),h=s("File"),m=s("Blob"),x=s("FileList");function y(e){return"[object Function]"===i.call(e)}var v=s("URLSearchParams");function g(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var b,w=(b="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return b&&e instanceof b});e.exports={isArray:l,isArrayBuffer:c,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||y(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:u,isDate:p,isFile:h,isBlob:m,isFunction:y,isStream:function(e){return f(e)&&y(e.pipe)},isURLSearchParams:v,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:g,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):l(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)g(arguments[r],n);return t},extend:function(e,t,n){return g(t,(function(t,r){e[r]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,a={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=r[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:x}},4330:(e,t,n)=>{"use strict";const r=wp.blocks,o=wp.element;var i=n(7135),a=n.n(i),s=n(7363),l=n.n(s);function u(e){let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(o!==t){const e=t;t=r?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:(e,r,i)=>r||i?((e,r=o,i=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=r(t);function s(){const n=r(t);if(!i(a,n)){const t=a;e(a=n,t)}}return n.add(s),()=>n.delete(s)})(e,r,i):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,i),i}const c="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?s.useEffect:s.useLayoutEffect;function f(e){const t="function"==typeof e?u(e):e,n=(e=t.getState,n=Object.is)=>{const[,r]=(0,s.useReducer)((e=>e+1),0),o=t.getState(),i=(0,s.useRef)(o),a=(0,s.useRef)(e),l=(0,s.useRef)(n),u=(0,s.useRef)(!1),f=(0,s.useRef)();let d;void 0===f.current&&(f.current=e(o));let p=!1;(i.current!==o||a.current!==e||l.current!==n||u.current)&&(d=e(o),p=!n(f.current,d)),c((()=>{p&&(f.current=d),i.current=o,a.current=e,l.current=n,u.current=!1}));const h=(0,s.useRef)(o);c((()=>{const e=()=>{try{const e=t.getState(),n=a.current(e);l.current(f.current,n)||(i.current=e,f.current=n,r())}catch(e){u.current=!0,r()}},n=t.subscribe(e);return t.getState()!==h.current&&e(),n}),[]);const m=p?d:f.current;return(0,s.useDebugValue)(m),m};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[n,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},n}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const d=e=>(t,n,r)=>{const o=r.subscribe;r.subscribe=(e,t,n)=>{let i=e;if(t){const o=(null==n?void 0:n.equalityFn)||Object.is;let a=e(r.getState());i=n=>{const r=e(n);if(!o(a,r)){const e=a;t(a=r,e)}},(null==n?void 0:n.fireImmediately)&&t(a,a)}return o(i)};return e(t,n,r)};var p=Object.defineProperty,h=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,y=(e,t,n)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))m.call(t,n)&&y(e,n,t[n]);if(h)for(var n of h(t))x.call(t,n)&&y(e,n,t[n]);return e};const g=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>g(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>g(t)(e)}}},b=(e,t)=>(n,r,o)=>{let i=v({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>v(v({},t),e)},t);(i.blacklist||i.whitelist)&&console.warn(`The ${i.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let a=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch(e){}if(!u)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)}),r,o);u.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${i.name}' does not contain a 'removeItem' method, which will be required in v4.`);const c=g(i.serialize),f=()=>{const e=i.partialize(v({},r()));let t;i.whitelist&&Object.keys(e).forEach((t=>{var n;!(null==(n=i.whitelist)?void 0:n.includes(t))&&delete e[t]})),i.blacklist&&i.blacklist.forEach((t=>delete e[t]));const n=c({state:e,version:i.version}).then((e=>u.setItem(i.name,e))).catch((e=>{t=e}));if(t)throw t;return n},d=o.setState;o.setState=(e,t)=>{d(e,t),f()};const p=e(((...e)=>{n(...e),f()}),r,o);let h;const m=()=>{var e;if(!u)return;a=!1,s.forEach((e=>e(r())));const t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,r()))||void 0;return g(u.getItem.bind(u))(i.name).then((e=>{if(e)return i.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return h=i.merge(e,null!=(t=r())?t:p),n(h,!0),f()})).then((()=>{null==t||t(h,void 0),a=!0,l.forEach((e=>e(h)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{i=v(v({},i),e),e.getStorage&&(u=e.getStorage())},clearStorage:()=>{var e;null==(e=null==u?void 0:u.removeItem)||e.call(u,i.name)},rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),h||p};function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _=f(d(b((function(e,t){return{open:!1,ready:!1,metaData:{},currentTaxonomies:{},currentType:"pattern",modals:[],pushModal:function(n){return e({modals:[n].concat(E(t().modals))})},popModal:function(){return e({modals:t().modals.slice(1)})},removeAllModals:function(){return e({modals:[]})},updateCurrentTaxonomies:function(t){return e({currentTaxonomies:j({},t)})},updateCurrentType:function(t){return e({currentType:t})},setOpen:function(t){return e({open:t})},setReady:function(t){return e({ready:t})}}}),{name:"extendify-global-state",partialize:function(e){return delete e.modals,delete e.ready,e}}))),C=n(4206),O=n.n(C);const A=lodash;function P(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var T=function(){return(e=a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(window.extendifyData.root,"/user"),{method:"GET",headers:{"X-WP-Nonce":window.extendifyData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify":!0}});case 2:return t=e.sent,e.next=5,t.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){P(i,r,o,a,s,"next",e)}function s(e){P(i,r,o,a,s,"throw",e)}a(void 0)}))})();var e},N=function(e,t){var n=new FormData;return n.append("email",e),n.append("key",t),K.post("login",n,{headers:{"Content-Type":"multipart/form-data"}})},R=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),K.post("user",t,{headers:{"Content-Type":"multipart/form-data"}})},I=function(){return K.post("clear-user")},L=function(){return K.get("max-free-imports")};function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){U(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function $(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){z(i,r,o,a,s,"next",e)}function s(e){z(i,r,o,a,s,"throw",e)}a(void 0)}))}}var V,W,q,H={getItem:(q=$(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return q.apply(this,arguments)}),setItem:(W=$(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,R(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e,t){return W.apply(this,arguments)}),removeItem:(V=$(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return V.apply(this,arguments)})},Y=function(){var e,t,n;return null===window.extendifyData.sitesettings||(null===(e=window.extendifyData)||void 0===e||null===(t=e.sitesettings)||void 0===t||null===(n=t.state)||void 0===n?void 0:n.enabled)},G=U({},"main-button-text2","0007"),J=f(b((function(e,t){return{_hasHydrated:!1,firstLoadedOn:(new Date).toISOString(),email:"",apiKey:"",uuid:"",sdkPartner:"",noticesDismissedAt:{},modalNoticesDismissedAt:{},imports:0,runningImports:0,allowedImports:0,freebieImports:0,entryPoint:"not-set",enabled:Y(),canInstallPlugins:!1,canActivatePlugins:!1,participatingTestsGroups:{},incrementImports:function(){var n=Number(t().freebieImports)>0?Number(t().freebieImports)-1:Number(t().freebieImports),r=Number(t().runningImports)+ +(n<1);e({imports:Number(t().imports)+1,runningImports:r,freebieImports:n})},giveFreebieImports:function(n){e({freebieImports:t().freebieImports+n})},totalAvailableImports:function(){return Number(t().allowedImports)+Number(t().freebieImports)},testGroup:function(n,r){if(Object.keys(G).includes(n)){var o=t().participatingTestsGroups;return o[n]||e({participatingTestsGroups:Object.assign({},o,U({},n,(0,A.sample)(r)))}),(o=t().participatingTestsGroups)[n]}},activeTestGroups:function(){return Object.entries(t().participatingTestsGroups).filter((function(e){var t=B(e,1)[0];return Object.keys(G).includes(t)})).reduce((function(e,t){var n=B(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})},activeTestGroupsUtmValue:function(){var e=Object.entries(t().activeTestGroups()).map((function(e){var t=B(e,2),n=t[0],r=t[1];return"".concat(G[n],"=").concat(r)}),"").join(":");return encodeURIComponent(e)},hasAvailableImports:function(){return!!t().apiKey||Number(t().runningImports)<Number(t().totalAvailableImports())},remainingImports:function(){var e=Number(t().totalAvailableImports())-Number(t().runningImports);return t().allowedImports?e>0?e:0:null},markNoticeSeen:function(n,r){e(U({},"".concat(r,"DismissedAt"),D(D({},t()["".concat(r,"DismissedAt")]),{},U({},n,(new Date).toISOString()))))}}}),{name:"extendify-user",getStorage:function(){return H},onRehydrateStorage:function(){return function(){J.setState({_hasHydrated:!0})}},partialize:function(e){return delete e._hasHydrated,e}})),K=O().create({baseURL:window.extendifyData.root,headers:{"X-WP-Nonce":window.extendifyData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Library":!0,"X-Extendify":!0}});function X(e){return Object.prototype.hasOwnProperty.call(e,"data")?e.data:e}K.interceptors.response.use((function(e){return function(e){return Object.prototype.hasOwnProperty.call(e,"soft_error")&&window.dispatchEvent(new CustomEvent("extendify::softerror-encountered",{detail:e.soft_error,bubbles:!0})),e}(X(e))}),(function(e){return function(e){if(e.response)return console.error(e.response),Promise.reject(X(e.response))}(e)})),K.interceptors.request.use((function(e){var t=new URLSearchParams(window.location.search);if(["onboarding"].includes(t.get("extendify")))throw new(O().Cancel)("Library is not available while running Launch");return function(e){return e.headers["X-Extendify-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e}(function(e){var t=J.getState(),n=t.apiKey?"unlimited":t.remainingImports();return e.data&&(e.data.remaining_imports=n,e.data.entry_point=t.entryPoint,e.data.total_imports=t.imports,e.data.participating_tests=t.activeTestGroups()),e}(e))}),(function(e){return e}));var Z=function(){return K.get("site-settings")},Q=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),K.post("site-settings",t,{headers:{"Content-Type":"multipart/form-data"}})},ee=function(e,t){return K.post("site-settings/options",{option:e,value:t})};function te(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ne(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){te(i,r,o,a,s,"next",e)}function s(e){te(i,r,o,a,s,"throw",e)}a(void 0)}))}}var re={getItem:function(){var e=ne(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),setItem:function(){var e=ne(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),removeItem:function(){}},oe=f(b((function(e){return{enabled:!0,siteType:{},setSiteType:(t=ne(a().mark((function t(n){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e({siteType:n}),t.next=3,ee("extendify_siteType",n);case 3:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})};var t}),{name:"extendify-sitesettings",getStorage:function(){return re}}));function ie(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var ae=function(){return(e=a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K.get("taxonomies");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ie(i,r,o,a,s,"next",e)}function s(e){ie(i,r,o,a,s,"throw",e)}a(void 0)}))})();var e};function se(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var le=f(b((function(e,t){return{taxonomies:{},setTaxonomies:function(t){return e({taxonomies:t})},fetchTaxonomies:(n=a().mark((function e(){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ae();case 2:if(r=e.sent,r=Object.keys(r).reduce((function(e,t){return e[t]=r[t],e}),{}),null!==(n=Object.keys(r))&&void 0!==n&&n.length){e.next=6;break}return e.abrupt("return");case 6:t().setTaxonomies(r);case 7:case"end":return e.stop()}}),e)})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){se(i,r,o,a,s,"next",e)}function s(e){se(i,r,o,a,s,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})};var n,r}),{name:"extendify-taxonomies"}));function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function de(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||he(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=he(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function he(e,t){if(e){if("string"==typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(e,t):void 0}}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xe(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var ye=f(d((function(e,t){return{templates:[],skipNextFetch:!1,fetchToken:null,taxonomyDefaultState:{},nextPage:"",searchParams:{taxonomies:{},type:"pattern"},initTemplateData:function(){e({activeTemplate:{}}),t().setupDefaultTaxonomies(),t().updateType(_.getState().currentType)},appendTemplates:(n=a().mark((function n(r){var o,i,s;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:o=pe(r),n.prev=1,s=a().mark((function n(){var r;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=i.value,!t().templates.find((function(e){return e.id===r.id}))){n.next=3;break}return n.abrupt("return","continue");case 3:return n.next=5,new Promise((function(e){return setTimeout(e,5)}));case 5:requestAnimationFrame((function(){var n=[].concat(de(t().templates),[r]);e({templates:n})}));case 6:case"end":return n.stop()}}),n)})),o.s();case 4:if((i=o.n()).done){n.next=11;break}return n.delegateYield(s(),"t0",6);case 6:if("continue"!==n.t0){n.next=9;break}return n.abrupt("continue",9);case 9:n.next=4;break;case 11:n.next=16;break;case 13:n.prev=13,n.t1=n.catch(1),o.e(n.t1);case 16:return n.prev=16,o.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[1,13,16,19]])})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){xe(i,r,o,a,s,"next",e)}function s(e){xe(i,r,o,a,s,"throw",e)}a(void 0)}))},function(e){return r.apply(this,arguments)}),setupDefaultTaxonomies:function(){var t,n,r=le.getState().taxonomies,o=Object.entries(r).reduce((function(e,t){return e[t[0]]={slug:"",title:"Featured"},e}),{}),i={taxonomies:ce(ce(ce({},o),null!==(t=null===(n=_.getState())||void 0===n?void 0:n.currentTaxonomies)&&void 0!==t?t:{}),{},{siteType:oe.getState().siteType})};e((function(e){return{taxonomyDefaultState:o,searchParams:ce(ce({},e.searchParams),i)}})),_.getState().updateCurrentTaxonomies(i.taxonomies)},updateTaxonomies:function(e){var n={};n.taxonomies=Object.assign({},t().searchParams.taxonomies,e),_.getState().updateCurrentTaxonomies(null==n?void 0:n.taxonomies),t().updateSearchParams(n)},updateType:function(e){_.getState().updateCurrentType(e),t().updateSearchParams({type:e})},updateSearchParams:function(n){null!=n&&n.taxonomies&&!Object.keys(n.taxonomies).length&&(n.taxonomies=t().taxonomyDefaultState);var r=Object.assign({},t().searchParams,n);JSON.stringify(r)!==JSON.stringify(t().searchParams)&&e({templates:[],nextPage:"",searchParams:r})},resetTemplates:function(){return e({templates:[],nextPage:""})}};var n,r}))),ve=function(){return K.get("meta-data")},ge=function(e){var t,n,r,o,i,a=null!==(t=null===(n=ye.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return K.post("simple-ping",{action:e,categories:a,sdk_partner:null!==(o=null===(i=J.getState())||void 0===i?void 0:i.sdkPartner)&&void 0!==o?o:""})};function be(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,be),r}var we,je=((we=je||{})[we.None=0]="None",we[we.RenderStrategy=1]="RenderStrategy",we[we.Static=2]="Static",we),ke=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ke||{});function Ee({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let s=_e(t,e);if(i)return Se(s,n,r,a);let l=null!=o?o:0;if(2&l){let{static:e=!1,...t}=s;if(e)return Se(t,n,r,a)}if(1&l){let{unmount:e=!0,...t}=s;return be(e?0:1,{0:()=>null,1:()=>Se({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return Se(s,n,r,a)}function Se(e,t={},n,r){let{as:o=n,children:i,refName:a="ref",...l}=Ae(e,["unmount","static"]),u=void 0!==e.ref?{[a]:e.ref}:{},c="function"==typeof i?i(t):i;if(l.className&&"function"==typeof l.className&&(l.className=l.className(t)),o===s.Fragment&&Object.keys(Oe(l)).length>0){if(!(0,s.isValidElement)(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return(0,s.cloneElement)(c,Object.assign({},_e(c.props,Oe(Ae(l,["ref"]))),u))}return(0,s.createElement)(o,Object.assign({},Ae(l,["ref"]),o!==s.Fragment&&u),c)}function _e(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t){let r=n[e];for(let e of r){if(t.defaultPrevented)return;e(t)}}});return t}function Ce(e){var t;return Object.assign((0,s.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Oe(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function Ae(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}let Pe=Symbol();function Te(e,t=!0){return Object.assign(e,{[Pe]:t})}function Ne(...e){let t=(0,s.useRef)(e);(0,s.useEffect)((()=>{t.current=e}),[e]);let n=(0,s.useCallback)((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}),[t]);return e.every((e=>null==e||(null==e?void 0:e[Pe])))?void 0:n}var Re=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Re||{});function Ie(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}const Le="undefined"!=typeof window?s.useLayoutEffect:s.useEffect;let Me={serverHandoffComplete:!1};function De(){let[e,t]=(0,s.useState)(Me.serverHandoffComplete);return(0,s.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,s.useEffect)((()=>{!1===Me.serverHandoffComplete&&(Me.serverHandoffComplete=!0)}),[]),e}var Be;let Fe=0;function Ue(){return++Fe}let ze=null!=(Be=s.useId)?Be:function(){let e=De(),[t,n]=s.useState(e?Ue:null);return Le((()=>{null===t&&n(Ue())}),[t]),null!=t?""+t:void 0},$e=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Ve,We=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(We||{}),qe=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(qe||{}),He=((Ve=He||{})[Ve.Previous=-1]="Previous",Ve[Ve.Next=1]="Next",Ve);var Ye=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ye||{});function Ge(e){null==e||e.focus({preventScroll:!0})}let Je=["textarea","input"].join(",");function Ke(e,t){let n,r=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(e):function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll($e))}(e),i=r.activeElement,a=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,o.indexOf(i))-1;if(4&t)return Math.max(0,o.indexOf(i))+1;if(8&t)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=32&t?{preventScroll:!0}:{},u=0,c=o.length;do{if(u>=c||u+c<=0)return 0;let e=s+u;if(16&t)e=(e+c)%c;else{if(e<0)return 3;if(e>=c)return 1}n=o[e],null==n||n.focus(l),u+=a}while(n!==r.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Je))&&n}(n)&&n.select(),n.hasAttribute("tabindex")||n.setAttribute("tabindex","0"),2}function Xe(e){let t=(0,s.useRef)(e);return Le((()=>{t.current=e}),[e]),t}function Ze(e,t,n,r){let o=Xe(n);(0,s.useEffect)((()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}),[e,t,r])}function Qe(){let e=(0,s.useRef)(!1);return Le((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function et(e){return"undefined"==typeof window?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function tt(...e){return(0,s.useMemo)((()=>et(...e)),[...e])}var nt=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(nt||{});function rt(e,t=30,{initialFocus:n,containers:r}={}){let o=(0,s.useRef)(null),i=(0,s.useRef)(null),a=Qe(),l=Boolean(16&t),u=Boolean(2&t),c=tt(e);return(0,s.useEffect)((()=>{!l||o.current||(o.current=null==c?void 0:c.activeElement)}),[l,c]),(0,s.useEffect)((()=>{if(l)return()=>{Ge(o.current),o.current=null}}),[l]),(0,s.useEffect)((()=>{if(!u)return;let t=e.current;if(!t)return;let r=null==c?void 0:c.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===r)return void(i.current=r)}else if(t.contains(r))return void(i.current=r);null!=n&&n.current?Ge(n.current):Ke(t,We.First)===qe.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),i.current=null==c?void 0:c.activeElement}),[e,n,u,c]),Ze(null==c?void 0:c.defaultView,"keydown",(n=>{!(4&t)||!e.current||n.key===Re.Tab&&(n.preventDefault(),Ke(e.current,(n.shiftKey?We.Previous:We.Next)|We.WrapAround)===qe.Success&&(i.current=null==c?void 0:c.activeElement))})),Ze(null==c?void 0:c.defaultView,"focus",(n=>{if(!(8&t))return;let o=new Set(null==r?void 0:r.current);if(o.add(e),!o.size)return;let s=i.current;if(!s||!a.current)return;let l=n.target;l&&l instanceof HTMLElement?function(e,t){var n;for(let r of e)if(null!=(n=r.current)&&n.contains(t))return!0;return!1}(o,l)?(i.current=l,Ge(l)):(n.preventDefault(),n.stopPropagation(),Ge(s)):Ge(i.current)}),!0),o}let ot=new Set,it=new Map;function at(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function st(e){let t=it.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}const lt=ReactDOM;let ut=(0,s.createContext)(!1);function ct(){return(0,s.useContext)(ut)}function ft(e){return s.createElement(ut.Provider,{value:e.force},e.children)}let dt=s.Fragment,pt=Ce((function(e,t){let n=e,r=(0,s.useRef)(null),o=Ne(Te((e=>{r.current=e})),t),i=tt(r),a=function(e){let t=ct(),n=(0,s.useContext)(mt),r=tt(e),[o,i]=(0,s.useState)((()=>{if(!t&&null!==n||"undefined"==typeof window)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)}));return(0,s.useEffect)((()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))}),[o,r]),(0,s.useEffect)((()=>{t||null!==n&&i(n.current)}),[n,i,t]),o}(r),[l]=(0,s.useState)((()=>{var e;return"undefined"==typeof window?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null})),u=De();return Le((()=>{if(a&&l)return a.appendChild(l),()=>{var e;!a||!l||(a.removeChild(l),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))}}),[a,l]),u&&a&&l?(0,lt.createPortal)(Ee({ourProps:{ref:o},theirProps:n,defaultTag:dt,name:"Portal"}),l):null})),ht=s.Fragment,mt=(0,s.createContext)(null),xt=Ce((function(e,t){let{target:n,...r}=e,o={ref:Ne(t)};return s.createElement(mt.Provider,{value:n},Ee({ourProps:o,theirProps:r,defaultTag:ht,name:"Popover.Group"}))})),yt=Object.assign(pt,{Group:xt}),vt=(0,s.createContext)(null);function gt(){let e=(0,s.useContext)(vt);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,gt),e}return e}function bt(){let[e,t]=(0,s.useState)([]);return[e.length>0?e.join(" "):void 0,(0,s.useMemo)((()=>function(e){let n=(0,s.useCallback)((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n})))),[]),r=(0,s.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return s.createElement(vt.Provider,{value:r},e.children)}),[t])]}let wt=Ce((function(e,t){let n=gt(),r=`headlessui-description-${ze()}`,o=Ne(t);Le((()=>n.register(r)),[r,n.register]);let i=e;return Ee({ourProps:{ref:o,...n.props,id:r},theirProps:i,slot:n.slot||{},defaultTag:"p",name:n.name||"Description"})})),jt=(0,s.createContext)(null);jt.displayName="OpenClosedContext";var kt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(kt||{});function Et(){return(0,s.useContext)(jt)}function St({value:e,children:t}){return s.createElement(jt.Provider,{value:e},t)}let _t=(0,s.createContext)((()=>{}));_t.displayName="StackContext";var Ct=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Ct||{});function Ot({children:e,onUpdate:t,type:n,element:r}){let o=(0,s.useContext)(_t),i=(0,s.useCallback)(((...e)=>{null==t||t(...e),o(...e)}),[o,t]);return Le((()=>(i(0,n,r),()=>i(1,n,r))),[i,n,r]),s.createElement(_t.Provider,{value:i},e)}function At(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Pt(e,t,n){let r=Xe(t);(0,s.useEffect)((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}var Tt=(e=>(e[e.None=1]="None",e[e.IgnoreScrollbars=2]="IgnoreScrollbars",e))(Tt||{});var Nt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Nt||{}),Rt=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Rt||{});let It={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},Lt=(0,s.createContext)(null);function Mt(e){let t=(0,s.useContext)(Lt);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Mt),t}return t}function Dt(e,t){return be(t.type,It,e,t)}Lt.displayName="DialogContext";let Bt=je.RenderStrategy|je.Static,Ft=Ce((function(e,t){let{open:n,onClose:r,initialFocus:o,__demoMode:i=!1,...a}=e,[l,u]=(0,s.useState)(0),c=Et();void 0===n&&null!==c&&(n=be(c,{[kt.Open]:!0,[kt.Closed]:!1}));let f=(0,s.useRef)(new Set),d=(0,s.useRef)(null),p=Ne(d,t),h=tt(d),m=e.hasOwnProperty("open")||null!==c,x=e.hasOwnProperty("onClose");if(!m&&!x)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!m)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!x)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof n)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${n}`);if("function"!=typeof r)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${r}`);let y=n?0:1,[v,g]=(0,s.useReducer)(Dt,{titleId:null,descriptionId:null,panelRef:(0,s.createRef)()}),b=(0,s.useCallback)((()=>r(!1)),[r]),w=(0,s.useCallback)((e=>g({type:0,id:e})),[g]),j=!!De()&&(!i&&0===y),k=l>1,E=null!==(0,s.useContext)(Lt),S=rt(d,j?be(k?"parent":"leaf",{parent:nt.RestoreFocus,leaf:nt.All&~nt.FocusLock}):nt.None,{initialFocus:o,containers:f});(function(e,t=!0){Le((()=>{if(!t||!e.current)return;let n=e.current,r=et(n);if(r){ot.add(n);for(let e of it.keys())e.contains(n)&&(st(e),it.delete(e));return r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement){for(let t of ot)if(e.contains(t))return;1===ot.size&&(it.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),at(e))}})),()=>{if(ot.delete(n),ot.size>0)r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement&&!it.has(e)){for(let t of ot)if(e.contains(t))return;it.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),at(e)}}));else for(let e of it.keys())st(e),it.delete(e)}}}),[t])})(d,!!k&&j),function(e,t,n=1){let r=(0,s.useRef)(!1),o=Xe((o=>{if(r.current)return;r.current=!0,At((()=>{r.current=!1}));let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),a=o.target;if(a.ownerDocument.documentElement.contains(a)){if(2==(2&n)){let e=20,t=a.ownerDocument.documentElement;if(o.clientX>t.clientWidth-e||o.clientX<e||o.clientY>t.clientHeight-e||o.clientY<e)return}for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a))return}return t(o,a)}}));Pt("pointerdown",((...e)=>o.current(...e))),Pt("mousedown",((...e)=>o.current(...e)))}((()=>{var e,t;return[...Array.from(null!=(e=null==h?void 0:h.querySelectorAll("body > *"))?e:[]).filter((e=>!(!(e instanceof HTMLElement)||e.contains(S.current)||v.panelRef.current&&e.contains(v.panelRef.current)))),null!=(t=v.panelRef.current)?t:d.current]}),(()=>{0===y&&(k||b())}),Tt.IgnoreScrollbars),Ze(null==h?void 0:h.defaultView,"keydown",(e=>{e.key===Re.Escape&&0===y&&(k||(e.preventDefault(),e.stopPropagation(),b()))})),(0,s.useEffect)((()=>{var e;if(0!==y||E)return;let t=et(d);if(!t)return;let n=t.documentElement,r=null!=(e=t.defaultView)?e:window,o=n.style.overflow,i=n.style.paddingRight,a=r.innerWidth-n.clientWidth;return n.style.overflow="hidden",n.style.paddingRight=`${a}px`,()=>{n.style.overflow=o,n.style.paddingRight=i}}),[y,E]),(0,s.useEffect)((()=>{if(0!==y||!d.current)return;let e=new IntersectionObserver((e=>{for(let t of e)0===t.boundingClientRect.x&&0===t.boundingClientRect.y&&0===t.boundingClientRect.width&&0===t.boundingClientRect.height&&b()}));return e.observe(d.current),()=>e.disconnect()}),[y,d,b]);let[_,C]=bt(),O=`headlessui-dialog-${ze()}`,A=(0,s.useMemo)((()=>[{dialogState:y,close:b,setTitleId:w},v]),[y,v,b,w]),P=(0,s.useMemo)((()=>({open:0===y})),[y]),T={ref:p,id:O,role:"dialog","aria-modal":0===y||void 0,"aria-labelledby":v.titleId,"aria-describedby":_,onClick(e){e.stopPropagation()}};return s.createElement(Ot,{type:"Dialog",element:d,onUpdate:(0,s.useCallback)(((e,t,n)=>{"Dialog"===t&&be(e,{[Ct.Add](){f.current.add(n),u((e=>e+1))},[Ct.Remove](){f.current.add(n),u((e=>e-1))}})}),[])},s.createElement(ft,{force:!0},s.createElement(yt,null,s.createElement(Lt.Provider,{value:A},s.createElement(yt.Group,{target:d},s.createElement(ft,{force:!1},s.createElement(C,{slot:P,name:"Dialog.Description"},Ee({ourProps:T,theirProps:a,slot:P,defaultTag:"div",features:Bt,visible:0===y,name:"Dialog"}))))))))})),Ut=Ce((function(e,t){let[{dialogState:n,close:r}]=Mt("Dialog.Overlay"),o=Ne(t),i=`headlessui-dialog-overlay-${ze()}`,a=(0,s.useCallback)((e=>{if(e.target===e.currentTarget){if(Ie(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),r()}}),[r]);return Ee({ourProps:{ref:o,id:i,"aria-hidden":!0,onClick:a},theirProps:e,slot:(0,s.useMemo)((()=>({open:0===n})),[n]),defaultTag:"div",name:"Dialog.Overlay"})})),zt=Ce((function(e,t){let[{dialogState:n},r]=Mt("Dialog.Backdrop"),o=Ne(t),i=`headlessui-dialog-backdrop-${ze()}`;(0,s.useEffect)((()=>{if(null===r.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[r.panelRef]);let a=(0,s.useMemo)((()=>({open:0===n})),[n]);return s.createElement(ft,{force:!0},s.createElement(yt,null,Ee({ourProps:{ref:o,id:i,"aria-hidden":!0},theirProps:e,slot:a,defaultTag:"div",name:"Dialog.Backdrop"})))})),$t=Ce((function(e,t){let[{dialogState:n},r]=Mt("Dialog.Panel");return Ee({ourProps:{ref:Ne(t,r.panelRef),id:`headlessui-dialog-panel-${ze()}`},theirProps:e,slot:(0,s.useMemo)((()=>({open:0===n})),[n]),defaultTag:"div",name:"Dialog.Panel"})})),Vt=Ce((function(e,t){let[{dialogState:n,setTitleId:r}]=Mt("Dialog.Title"),o=`headlessui-dialog-title-${ze()}`,i=Ne(t);(0,s.useEffect)((()=>(r(o),()=>r(null))),[o,r]);let a=(0,s.useMemo)((()=>({open:0===n})),[n]);return Ee({ourProps:{ref:i,id:o},theirProps:e,slot:a,defaultTag:"h2",name:"Dialog.Title"})})),Wt=Object.assign(Ft,{Backdrop:zt,Panel:$t,Overlay:Ut,Title:Vt,Description:wt});const qt=wp.components,Ht=wp.i18n;const Yt=function(e){let{icon:t,size:n=24,...r}=e;return(0,o.cloneElement)(t,{width:n,height:n,...r})};var Gt=n(42),Jt=n.n(Gt);const Kt=e=>(0,o.createElement)("circle",e),Xt=e=>(0,o.createElement)("g",e),Zt=e=>(0,o.createElement)("path",e),Qt=e=>(0,o.createElement)("rect",e),en=e=>{let{className:t,isPressed:n,...r}=e;const i={...r,className:Jt()(t,{"is-pressed":n})||void 0,"aria-hidden":!0,focusable:!1};return(0,o.createElement)("svg",i)},tn=(0,o.createElement)(en,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Zt,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));var nn=n(4246);function rn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function on(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){rn(i,r,o,a,s,"next",e)}function s(e){rn(i,r,o,a,s,"throw",e)}a(void 0)}))}}var an=function(){return K.get("plugins")},sn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=new FormData;return t.append("plugins",JSON.stringify(e)),K.post("plugins",t,{headers:{"Content-Type":"multipart/form-data"}})},ln=function(){return K.get("active-plugins")};function un(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function cn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){un(i,r,o,a,s,"next",e)}function s(e){un(i,r,o,a,s,"throw",e)}a(void 0)}))}}function fn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return dn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function hn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){pn(i,r,o,a,s,"next",e)}function s(e){pn(i,r,o,a,s,"throw",e)}a(void 0)}))}}function mn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function xn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var vn={promotion:function(e){var t,n=e.promotionData;return(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)("span",{className:"text-black",children:null!==(t=null==n?void 0:n.text)&&void 0!==t?t:""}),(0,nn.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,nn.jsx)("div",{className:"flex items-center justify-center space-x-2",children:(null==n?void 0:n.url)&&(0,nn.jsx)(qt.Button,{variant:"link",className:"h-auto p-0 text-black underline hover:no-underline",href:"".concat(n.url,"&utm_source=").concat(window.extendifyData.sdk_partner,"&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),onClick:hn(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("promotion-notice-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),target:"_blank",children:null==n?void 0:n.button_text})})]})},feedback:function(){return(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)("span",{className:"text-black",children:(0,Ht.__)("Tell us how to make the Extendify Library work better for you","extendify")}),(0,nn.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,nn.jsx)("div",{className:"flex items-center justify-center space-x-2",children:(0,nn.jsx)(qt.Button,{variant:"link",className:"h-auto p-0 text-black underline hover:no-underline",href:"https://extendify.com/feedback/?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=feedback-notice&utm_content=give-feedback&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),onClick:on(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("feedback-notice-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),target:"_blank",children:(0,Ht.__)("Give feedback","extendify")})})]})},standalone:function(){var e=fn((0,o.useState)(""),2),t=e[0],n=e[1],r=J((function(e){return e.giveFreebieImports}));return(0,nn.jsxs)("div",{children:[(0,nn.jsx)("span",{className:"text-black",children:(0,Ht.__)("Install the new Extendify Library plugin to get the latest we have to offer","extendify")}),(0,nn.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,nn.jsxs)("div",{className:"relative inline-flex items-center space-x-2",children:[(0,nn.jsx)(qt.Button,{variant:"link",className:Jt()("h-auto p-0 text-black underline hover:no-underline",{"opacity-0":t}),onClick:function(){n((0,Ht.__)("Installing...","extendify")),Promise.all([ge("stln-footer-install"),sn(["extendify"]),new Promise((function(e){return setTimeout(e,1e3)}))]).then(cn(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(10),n((0,Ht.__)("Success! Reloading...","extendify")),e.next=4,ge("stln-footer-success");case 4:window.location.reload();case 5:case"end":return e.stop()}}),e)})))).catch(function(){var e=cn(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.error(t),n((0,Ht.__)("Error. See console.","extendify")),e.next=4,ge("stln-footer-fail");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},children:(0,Ht.__)("Install Extendify standalone plugin","extendify")}),t?(0,nn.jsx)(qt.Button,{variant:"link",disabled:!0,className:"absolute left-0 h-auto p-0 text-black underline opacity-100 hover:no-underline",onClick:function(){},children:t}):null]})]})}};function gn(e){var t,n=e.className,r=void 0===n?"":n,i=xn((0,o.useState)(null),2),s=i[0],l=i[1],u=(0,o.useRef)(!1),c=_((function(e){var t,n;return null===(t=e.metaData)||void 0===t||null===(n=t.banners)||void 0===n?void 0:n.footer})),f=null!==(t=Object.keys(vn).find((function(e){var t,n,r,o,i,a,s;return"promotion"===e?!(null!==(t=J.getState().apiKey)&&void 0!==t&&t.length)&&(null==c?void 0:c.key)&&!J.getState().noticesDismissedAt[c.key]:"feedback"===e?(i=null!==(n=J.getState().imports)&&void 0!==n?n:0,a=null!==(r=null===(o=J.getState())||void 0===o?void 0:o.firstLoadedOn)&&void 0!==r?r:new Date,s=(new Date).getTime()-new Date(a).getTime(),i>=3&&s/864e5>3&&!J.getState().noticesDismissedAt[e]):"standalone"===e?!window.extendifyData.standalone&&!J.getState().noticesDismissedAt[e]:!J.getState().noticesDismissedAt[e]})))&&void 0!==t?t:null,d=vn[f],p=function(){var e,t=(e=a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l(!1),t="promotion"===f?c.key:f,J.getState().markNoticeSeen(t,"notices"),e.next=5,ge("footer-notice-x-".concat(t));case 5:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){mn(i,r,o,a,s,"next",e)}function s(e){mn(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){vn[f]&&!u.current&&(l(!0),u.current=!0)}),[f]),s&&d?(0,nn.jsxs)("div",{className:"".concat(r," relative mx-auto hidden max-w-screen-4xl items-center justify-center space-x-4 bg-extendify-secondary py-3 px-5 lg:flex"),children:[(0,nn.jsx)(d,{promotionData:c}),(0,nn.jsx)("div",{className:"absolute right-1",children:(0,nn.jsx)(qt.Button,{className:"text-extendify-black opacity-50 hover:opacity-100 focus:opacity-100",icon:(0,nn.jsx)(Yt,{icon:tn}),label:(0,Ht.__)("Dismiss this notice","extendify"),onClick:p,showTooltip:!1})})]}):null}function bn(e){const{body:t}=document.implementation.createHTMLDocument("");t.innerHTML=e;const n=t.getElementsByTagName("*");let r=n.length;for(;r--;){const e=n[r];if("SCRIPT"===e.tagName)(o=e).parentNode,o.parentNode.removeChild(o);else{let t=e.attributes.length;for(;t--;){const{name:n}=e.attributes[t];n.startsWith("on")&&e.removeAttribute(n)}}}var o;return t.innerHTML}const wn=(0,nn.jsxs)(en,{viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)(Zt,{d:"M7.32457 0.907043C3.98785 0.907043 1.2829 3.61199 1.2829 6.94871C1.2829 10.2855 3.98785 12.9904 7.32457 12.9904C10.6613 12.9904 13.3663 10.2855 13.3663 6.94871C13.3663 3.61199 10.6613 0.907043 7.32457 0.907043V0.907043Z",stroke:"currentColor",strokeWidth:"1.25",fill:"none"}),(0,nn.jsx)(Zt,{d:"M6.34684 9.72526C6.34684 9.18224 6.77716 8.74168 7.32018 8.74168C7.8632 8.74168 8.30377 9.18224 8.30377 9.72526C8.30377 10.2683 7.8632 10.6986 7.32018 10.6986C6.77716 10.6986 6.34684 10.2683 6.34684 9.72526Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{d:"M7.9759 7.11261C7.93492 7.47121 7.67878 7.76834 7.32018 7.76834C6.95134 7.76834 6.70544 7.46097 6.6747 7.11261L6.34684 4.1721C6.28537 3.67006 6.81814 3.19876 7.32018 3.19876C7.82222 3.19876 8.35499 3.67006 8.30377 4.1721L7.9759 7.11261Z",fill:"currentColor"})]});const jn=(0,nn.jsx)(en,{fill:"none",viewBox:"0 0 25 24",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)(Zt,{clipRule:"evenodd",d:"m14.4063 2h4.1856c1.1856 0 1.6147.12701 2.0484.36409.4336.23802.7729.58706 1.0049 1.03111.2319.445.3548.8853.3548 2.10175v4.29475c0 1.2165-.1238 1.6567-.3548 2.1017-.232.445-.5722.7931-1.0049 1.0312-.1939.1064-.3873.1939-.6476.2567v3.4179c0 1.8788-.1912 2.5588-.5481 3.246-.3582.6873-.8836 1.2249-1.552 1.5925-.6697.3676-1.3325.5623-3.1634.5623h-6.46431c-1.83096 0-2.49367-.1962-3.16346-.5623-.6698-.3676-1.19374-.9067-1.552-1.5925s-.54943-1.3672-.54943-3.246v-6.63138c0-1.87871.19117-2.55871.54801-3.24597.35827-.68727.88362-1.22632 1.55342-1.59393.66837-.36615 1.3325-.56231 3.16346-.56231h2.76781c.0519-.55814.1602-.86269.3195-1.16946.232-.445.5721-.79404 1.0058-1.03206.4328-.23708.8628-.36409 2.0483-.36409zm-2.1512 2.73372c0-.79711.6298-1.4433 1.4067-1.4433h5.6737c.777 0 1.4068.64619 1.4068 1.4433v5.82118c0 .7971-.6298 1.4433-1.4068 1.4433h-5.6737c-.7769 0-1.4067-.6462-1.4067-1.4433z",fill:"currentColor",fillRule:"evenodd"})});const kn=(0,nn.jsx)(en,{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)(Zt,{clipRule:"evenodd",d:"m13.505 4h3.3044c.936 0 1.2747.10161 1.6171.29127.3424.19042.6102.46965.7934.82489.1831.356.2801.70824.2801 1.6814v3.43584c0 .9731-.0977 1.3254-.2801 1.6814-.1832.356-.4517.6344-.7934.8248-.153.0852-.3057.1552-.5112.2054v2.7344c0 1.503-.151 2.047-.4327 2.5968-.2828.5498-.6976.9799-1.2252 1.274-.5288.294-1.052.4498-2.4975.4498h-5.10341c-1.44549 0-1.96869-.1569-2.49747-.4498-.52878-.2941-.94242-.7254-1.22526-1.274-.28284-.5487-.43376-1.0938-.43376-2.5968v-5.3051c0-1.50301.15092-2.04701.43264-2.59682.28284-.54981.6976-.98106 1.22638-1.27514.52767-.29293 1.05198-.44985 2.49747-.44985h2.18511c.041-.44652.1265-.69015.2522-.93557.1832-.356.4517-.63523.7941-.82565.3417-.18966.6812-.29127 1.6171-.29127zm-1.6984 2.18698c0-.63769.4973-1.15464 1.1106-1.15464h4.4793c.6133 0 1.1106.51695 1.1106 1.15464v4.65692c0 .6377-.4973 1.1547-1.1106 1.1547h-4.4793c-.6133 0-1.1106-.517-1.1106-1.1547z",fill:"currentColor",fillRule:"evenodd"})});const En=(0,nn.jsx)(en,{fill:"none",width:"150",height:"30",viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsxs)(Xt,{fill:"currentColor",children:[(0,nn.jsx)(Zt,{d:"m609.404 378.5c-24.334 0-46-5.5-65-16.5-18.667-11.333-33.334-26.667-44-46-10.667-19.667-16-42.167-16-67.5 0-25.667 5.166-48.333 15.5-68 10.333-19.667 24.833-35 43.5-46 18.666-11.333 40-17 64-17 25 0 46.5 5.333 64.5 16 18 10.333 31.833 24.833 41.5 43.5 10 18.667 15 41 15 67v18.5l-212 .5 1-39h150.5c0-17-5.5-30.667-16.5-41-10.667-10.333-25.167-15.5-43.5-15.5-14.334 0-26.5 3-36.5 9-9.667 6-17 15-22 27s-7.5 26.667-7.5 44c0 26.667 5.666 46.833 17 60.5 11.666 13.667 28.833 20.5 51.5 20.5 16.666 0 30.333-3.167 41-9.5 11-6.333 18.166-15.333 21.5-27h56.5c-5.334 27-18.667 48.167-40 63.5-21 15.333-47.667 23-80 23z"}),(0,nn.jsx)("path",{d:"m797.529 372h-69.5l85-121-85-126h71l54.5 84 52.5-84h68.5l-84 125.5 81.5 121.5h-70l-53-81.5z"}),(0,nn.jsx)("path",{d:"m994.142 125h155.998v51h-155.998zm108.498 247h-61v-324h61z"}),(0,nn.jsx)("path",{d:"m1278.62 378.5c-24.33 0-46-5.5-65-16.5-18.66-11.333-33.33-26.667-44-46-10.66-19.667-16-42.167-16-67.5 0-25.667 5.17-48.333 15.5-68 10.34-19.667 24.84-35 43.5-46 18.67-11.333 40-17 64-17 25 0 46.5 5.333 64.5 16 18 10.333 31.84 24.833 41.5 43.5 10 18.667 15 41 15 67v18.5l-212 .5 1-39h150.5c0-17-5.5-30.667-16.5-41-10.66-10.333-25.16-15.5-43.5-15.5-14.33 0-26.5 3-36.5 9-9.66 6-17 15-22 27s-7.5 26.667-7.5 44c0 26.667 5.67 46.833 17 60.5 11.67 13.667 28.84 20.5 51.5 20.5 16.67 0 30.34-3.167 41-9.5 11-6.333 18.17-15.333 21.5-27h56.5c-5.33 27-18.66 48.167-40 63.5-21 15.333-47.66 23-80 23z"}),(0,nn.jsx)("path",{d:"m1484.44 372h-61v-247h56.5l5 32c7.67-12.333 18.5-22 32.5-29 14.34-7 29.84-10.5 46.5-10.5 31 0 54.34 9.167 70 27.5 16 18.333 24 43.333 24 75v152h-61v-137.5c0-20.667-4.66-36-14-46-9.33-10.333-22-15.5-38-15.5-19 0-33.83 6-44.5 18-10.66 12-16 28-16 48z"}),(0,nn.jsx)("path",{d:"m1798.38 378.5c-24 0-44.67-5.333-62-16-17-11-30.34-26.167-40-45.5-9.34-19.333-14-41.833-14-67.5s4.66-48.333 14-68c9.66-20 23.5-35.667 41.5-47s39.33-17 64-17c17.33 0 33.16 3.5 47.5 10.5 14.33 6.667 25.33 16.167 33 28.5v-156.5h60.5v372h-56l-4-38.5c-7.34 14-18.67 25-34 33-15 8-31.84 12-50.5 12zm13.5-56c14.33 0 26.66-3 37-9 10.33-6.333 18.33-15.167 24-26.5 6-11.667 9-24.833 9-39.5 0-15-3-28-9-39-5.67-11.333-13.67-20.167-24-26.5-10.34-6.667-22.67-10-37-10-14 0-26.17 3.333-36.5 10-10.34 6.333-18.34 15.167-24 26.5-5.34 11.333-8 24.333-8 39s2.66 27.667 8 39c5.66 11.333 13.66 20.167 24 26.5 10.33 6.333 22.5 9.5 36.5 9.5z"}),(0,nn.jsx)("path",{d:"m1996.45 372v-247h61v247zm30-296.5c-10.34 0-19.17-3.5-26.5-10.5-7-7.3333-10.5-16.1667-10.5-26.5s3.5-19 10.5-26c7.33-6.99999 16.16-10.49998 26.5-10.49998 10.33 0 19 3.49999 26 10.49998 7.33 7 11 15.6667 11 26s-3.67 19.1667-11 26.5c-7 7-15.67 10.5-26 10.5z"}),(0,nn.jsx)("path",{d:"m2085.97 125h155v51h-155zm155.5-122.5v52c-3.33 0-6.83 0-10.5 0-3.33 0-6.83 0-10.5 0-15.33 0-25.67 3.6667-31 11-5 7.3333-7.5 17.1667-7.5 29.5v277h-60.5v-277c0-22.6667 3.67-40.8333 11-54.5 7.33-14 17.67-24.1667 31-30.5 13.33-6.66666 28.83-10 46.5-10 5 0 10.17.166671 15.5.5 5.67.333329 11 .99999 16 2z"}),(0,nn.jsx)("path",{d:"m2330.4 125 80.5 228-33 62.5-112-290.5zm-58 361.5v-50.5h36.5c8 0 15-1 21-3 6-1.667 11.34-5 16-10 5-5 9.17-12.333 12.5-22l102.5-276h63l-121 302c-9 22.667-20.33 39.167-34 49.5-13.66 10.333-30.66 15.5-51 15.5-8.66 0-16.83-.5-24.5-1.5-7.33-.667-14.33-2-21-4z"}),(0,nn.jsx)("path",{clipRule:"evenodd",d:"m226.926 25.1299h83.271c23.586 0 32.123 2.4639 40.751 7.0633 8.628 4.6176 15.378 11.389 19.993 20.0037 4.615 8.6329 7.059 17.1746 7.059 40.7738v83.3183c0 23.599-2.463 32.141-7.059 40.774-4.615 8.633-11.383 15.386-19.993 20.003-3.857 2.065-7.704 3.764-12.884 4.981v66.308c0 36.447-3.803 49.639-10.902 62.972-7.128 13.333-17.579 23.763-30.877 30.894-13.325 7.132-26.51 10.909-62.936 10.909h-128.605c-36.4268 0-49.6113-3.805-62.9367-10.909-13.3254-7.131-23.749-17.589-30.8765-30.894-7.12757-13.304-10.9308-26.525-10.9308-62.972v-128.649c0-36.447 3.80323-49.639 10.9026-62.972 7.1275-13.333 17.5793-23.7909 30.9047-30.9224 13.2972-7.1034 26.5099-10.9088 62.9367-10.9088h55.064c1.033-10.8281 3.188-16.7362 6.357-22.6877 4.615-8.6329 11.382-15.4043 20.01-20.0219 8.61-4.5994 17.165-7.0633 40.751-7.0633zm-42.798 53.0342c0-15.464 12.53-28 27.986-28h112.877c15.457 0 27.987 12.536 27.987 28v112.9319c0 15.464-12.53 28-27.987 28h-112.877c-15.456 0-27.986-12.536-27.986-28z",fillRule:"evenodd"})]})});const Sn=(0,nn.jsx)(en,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)("path",{d:"m11.9893 2.59931c-.1822.00285-.3558.07789-.4827.20864s-.1967.30653-.1941.48871v1.375c-.0013.0911.0156.18155.0495.26609.034.08454.0844.16149.1484.22637s.1402.11639.2242.15156c.0841.03516.1743.05327.2654.05327s.1813-.01811.2654-.05327c.084-.03517.1603-.08668.2242-.15156.064-.06488.1144-.14183.1484-.22637s.0508-.17499.0495-.26609v-1.375c.0013-.09202-.0158-.18337-.0505-.26863-.0346-.08526-.086-.1627-.1511-.22773s-.1426-.11633-.2279-.15085c-.0853-.03453-.1767-.05158-.2687-.05014zm-5.72562.46013c-.1251.00033-.24775.0348-.35471.09968-.10697.06488-.19421.15771-.25232.2685-.05812.1108-.0849.23534-.07747.36023.00744.12488.0488.24537.11964.34849l.91667 1.375c.04939.07667.11354.14274.18872.19437.07517.05164.15987.0878.24916.10639.08928.01858.18137.01922.27091.00187.08953-.01734.17472-.05233.2506-.10292.07589-.05059.14095-.11577.1914-.19174.05045-.07598.08528-.16123.10246-.2508.01719-.08956.01638-.18165-.00237-.2709s-.05507-.17388-.10684-.24897l-.91666-1.375c-.06252-.09667-.14831-.1761-.2495-.231-.1012-.0549-.21456-.08351-.32969-.0832zm11.45212 0c-.1117.00307-.2209.03329-.3182.08804-.0973.05474-.1798.13237-.2404.22616l-.9167 1.375c-.0518.07509-.0881.15972-.1068.24897-.0188.08925-.0196.18134-.0024.2709.0172.08957.052.17482.1024.2508.0505.07597.1156.14115.1914.19174.0759.05059.1611.08558.2506.10292.0896.01735.1817.01671.271-.00187.0892-.01859.1739-.05475.2491-.10639.0752-.05163.1393-.1177.1887-.19437l.9167-1.375c.0719-.10456.1135-.22698.1201-.3537s-.022-.25281-.0826-.36429c-.0606-.11149-.1508-.20403-.2608-.26738-.11-.06334-.2353-.09502-.3621-.09153zm-9.61162 3.67472c-.09573-.00001-.1904.01998-.27795.05867-.08756.03869-.16607.09524-.23052.16602l-4.58333 5.04165c-.11999.1319-.18407.3052-.17873.4834.00535.1782.0797.3473.20738.4718l8.47917 8.25c.1284.1251.3006.1951.4798.1951.1793 0 .3514-.07.4798-.1951l8.4792-8.25c.1277-.1245.202-.2936.2074-.4718.0053-.1782-.0588-.3515-.1788-.4834l-4.5833-5.04165c-.0644-.07078-.1429-.12733-.2305-.16602s-.1822-.05868-.278-.05867h-3.877zm.30436 1.375h2.21646l-2.61213 3.48314c-.04258.0557-.07639.1176-.10026.1835h-2.83773zm4.96646 0h2.2165l3.3336 3.66664h-2.8368c-.0241-.066-.0582-.1278-.1011-.1835zm-1.375.45833 2.4063 3.20831h-4.81254zm-6.78637 4.58331h2.70077c.00665.0188.01412.0374.02238.0555l2.11442 4.6505zm4.20826 0h5.15621l-2.5781 5.6719zm6.66371 0h2.7008l-4.8376 4.706 2.1144-4.6505c.0083-.0181.0158-.0367.0224-.0555z",fill:"#000"})});const _n=(0,nn.jsxs)(en,{viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)(Zt,{d:"M7.32457 0.907043C3.98785 0.907043 1.2829 3.61199 1.2829 6.94871C1.2829 10.2855 3.98785 12.9904 7.32457 12.9904C10.6613 12.9904 13.3663 10.2855 13.3663 6.94871C13.3663 3.61199 10.6613 0.907043 7.32457 0.907043V0.907043Z",stroke:"white",strokeWidth:"1.25"}),(0,nn.jsx)(Zt,{d:"M7.32458 10.0998L4.82458 7.59977M7.32458 10.0998V3.79764V10.0998ZM7.32458 10.0998L9.82458 7.59977L7.32458 10.0998Z",stroke:"white",strokeWidth:"1.25"})]});const Cn=(0,nn.jsxs)(en,{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)("path",{d:"M7.93298 20.2773L17.933 20.2773C18.1982 20.2773 18.4526 20.172 18.6401 19.9845C18.8276 19.7969 18.933 19.5426 18.933 19.2773C18.933 19.0121 18.8276 18.7578 18.6401 18.5702C18.4526 18.3827 18.1982 18.2773 17.933 18.2773L7.93298 18.2773C7.66777 18.2773 7.41341 18.3827 7.22588 18.5702C7.03834 18.7578 6.93298 19.0121 6.93298 19.2773C6.93298 19.5426 7.03834 19.7969 7.22588 19.9845C7.41341 20.172 7.66777 20.2773 7.93298 20.2773Z",fill:"white"}),(0,nn.jsx)("path",{d:"M12.933 4.27734C12.6678 4.27734 12.4134 4.3827 12.2259 4.57024C12.0383 4.75777 11.933 5.01213 11.933 5.27734L11.933 12.8673L9.64298 10.5773C9.55333 10.4727 9.44301 10.3876 9.31895 10.3276C9.19488 10.2676 9.05975 10.2339 8.92203 10.2285C8.78431 10.2232 8.64698 10.2464 8.51865 10.2967C8.39033 10.347 8.27378 10.4232 8.17632 10.5207C8.07887 10.6181 8.00261 10.7347 7.95234 10.863C7.90206 10.9913 7.87886 11.1287 7.88418 11.2664C7.8895 11.4041 7.92323 11.5392 7.98325 11.6633C8.04327 11.7874 8.12829 11.8977 8.23297 11.9873L12.233 15.9873C12.3259 16.0811 12.4365 16.1555 12.5584 16.2062C12.6803 16.257 12.811 16.2831 12.943 16.2831C13.075 16.2831 13.2057 16.257 13.3276 16.2062C13.4494 16.1555 13.56 16.0811 13.653 15.9873L17.653 11.9873C17.8168 11.796 17.9024 11.55 17.8927 11.2983C17.883 11.0466 17.7786 10.8079 17.6005 10.6298C17.4224 10.4517 17.1837 10.3474 16.932 10.3376C16.6804 10.3279 16.4343 10.4135 16.243 10.5773L13.933 12.8673L13.933 5.27734C13.933 5.01213 13.8276 4.75777 13.6401 4.57024C13.4525 4.3827 13.1982 4.27734 12.933 4.27734Z",fill:"white"})]});const On=(0,nn.jsxs)(en,{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)(Zt,{d:"m11.2721 16.9866.6041 2.2795.6042-2.2795.6213-2.3445c.0001-.0002.0001-.0004.0002-.0006.2404-.9015.8073-1.5543 1.4638-1.8165.0005-.0002.0009-.0004.0013-.0006l1.9237-.7555 1.4811-.5818-1.4811-.5817-1.9264-.7566c0-.0001-.0001-.0001-.0001-.0001-.0001 0-.0001 0-.0001 0-.654-.25727-1.2213-.90816-1.4621-1.81563-.0001-.00006-.0001-.00011-.0001-.00017l-.6215-2.34519-.6042-2.27947-.6041 2.27947-.6216 2.34519v.00017c-.2409.90747-.80819 1.55836-1.46216 1.81563-.00002 0-.00003 0-.00005 0-.00006 0-.00011 0-.00017.0001l-1.92637.7566-1.48108.5817 1.48108.5818 1.92637.7566c.00007 0 .00015.0001.00022.0001.65397.2572 1.22126.9082 1.46216 1.8156v.0002z",stroke:"currentColor",strokeWidth:"1.25",fill:"none"}),(0,nn.jsxs)(Xt,{fill:"currentColor",children:[(0,nn.jsx)(Zt,{d:"m18.1034 18.3982-.2787.8625-.2787-.8625c-.1314-.4077-.4511-.7275-.8589-.8589l-.8624-.2786.8624-.2787c.4078-.1314.7275-.4512.8589-.8589l.2787-.8624.2787.8624c.1314.4077.4511.7275.8589.8589l.8624.2787-.8624.2786c-.4078.1314-.7269.4512-.8589.8589z"}),(0,nn.jsx)(Zt,{d:"m6.33141 6.97291-.27868.86242-.27867-.86242c-.13142-.40775-.45116-.72749-.8589-.85891l-.86243-.27867.86243-.27868c.40774-.13141.72748-.45115.8589-.8589l.27867-.86242.27868.86242c.13142.40775.45116.72749.8589.8589l.86242.27868-.86242.27867c-.40774.13142-.7269.45116-.8589.85891z"})]})]});const An=(0,nn.jsx)(en,{fill:"none",height:"25",viewBox:"0 0 25 25",width:"25",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)(Zt,{d:"m16.2382 9.17969.7499.00645.0066-.75988-.7599.00344zm-5.5442.77506 5.5475-.02507-.0067-1.49998-5.5476.02506zm4.7942-.78152-.0476 5.52507 1.5.0129.0475-5.52506zm.2196-.52387-7.68099 7.68104 1.06066 1.0606 7.68103-7.68098z",fill:"currentColor"})});const Pn=(0,nn.jsx)(en,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsxs)(Xt,{stroke:"currentColor",strokeWidth:"1.5",children:[(0,nn.jsx)(Zt,{d:"m6 4.75h12c.6904 0 1.25.55964 1.25 1.25v12c0 .6904-.5596 1.25-1.25 1.25h-12c-.69036 0-1.25-.5596-1.25-1.25v-12c0-.69036.55964-1.25 1.25-1.25z"}),(0,nn.jsx)(Zt,{d:"m9.25 19v-14"})]})});const Tn=(0,nn.jsxs)(en,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)(Zt,{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49271 18.0092C6.97815 17.1176 7.28413 15.9755 8.17569 15.4609C9.06724 14.946 10.2094 15.252 10.7243 16.1435C11.2389 17.0355 10.9329 18.1772 10.0413 18.6922C9.14978 19.2071 8.00764 18.9011 7.49271 18.0092V18.0092Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5073 6.12747C17.0218 7.01903 16.7158 8.16117 15.8243 8.67573C14.9327 9.19066 13.7906 8.88467 13.2757 7.99312C12.7611 7.10119 13.0671 5.95942 13.9586 5.44449C14.8502 4.92956 15.9923 5.23555 16.5073 6.12747V6.12747Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.60135 11.1355C5.11628 10.2439 6.25805 9.93793 7.14998 10.4525C8.04153 10.9674 8.34752 12.1096 7.83296 13.0011C7.31803 13.8927 6.17588 14.1987 5.28433 13.6841C4.39278 13.1692 4.08679 12.0274 4.60135 11.1355V11.1355Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.3986 13.0011C18.8837 13.8927 17.7419 14.1987 16.85 13.6841C15.9584 13.1692 15.6525 12.027 16.167 11.1355C16.682 10.2439 17.8241 9.93793 18.7157 10.4525C19.6072 10.9674 19.9132 12.1092 19.3986 13.0011V13.0011Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{d:"M9.10857 8.92594C10.1389 8.92594 10.9742 8.09066 10.9742 7.06029C10.9742 6.02992 10.1389 5.19464 9.10857 5.19464C8.0782 5.19464 7.24292 6.02992 7.24292 7.06029C7.24292 8.09066 8.0782 8.92594 9.10857 8.92594Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{d:"M14.8913 18.942C15.9217 18.942 16.7569 18.1067 16.7569 17.0763C16.7569 16.046 15.9217 15.2107 14.8913 15.2107C13.8609 15.2107 13.0256 16.046 13.0256 17.0763C13.0256 18.1067 13.8609 18.942 14.8913 18.942Z",fill:"currentColor"}),(0,nn.jsx)(Zt,{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3841 13.0011C9.86951 12.1096 10.1755 10.9674 11.067 10.4525C11.9586 9.93793 13.1007 10.2439 13.6157 11.1355C14.1302 12.0274 13.8242 13.1692 12.9327 13.6841C12.0411 14.1987 10.899 13.8927 10.3841 13.0011V13.0011Z",fill:"currentColor"})]});const Nn=(0,nn.jsxs)(en,{fill:"none",viewBox:"0 0 151 148",width:"151",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)(Kt,{cx:"65.6441",cy:"66.6114",fill:"#0b4a43",r:"65.3897"}),(0,nn.jsxs)(Xt,{fill:"#cbc3f5",stroke:"#0b4a43",children:[(0,nn.jsx)(Zt,{d:"m61.73 11.3928 3.0825 8.3304.1197.3234.3234.1197 8.3304 3.0825-8.3304 3.0825-.3234.1197-.1197.3234-3.0825 8.3304-3.0825-8.3304-.1197-.3234-.3234-.1197-8.3304-3.0825 8.3304-3.0825.3234-.1197.1197-.3234z",strokeWidth:"1.5"}),(0,nn.jsx)(Zt,{d:"m84.3065 31.2718c0 5.9939-12.4614 22.323-18.6978 22.323h-17.8958v56.1522c3.5249.9 11.6535 0 17.8958 0h6.2364c11.2074 3.33 36.0089 7.991 45.5529 0l-9.294-62.1623c-2.267-1.7171-5.949-6.6968-2.55-12.8786 3.4-6.1817 2.55-18.0406 0-24.5756-1.871-4.79616-8.3289-8.90882-14.4482-8.90882s-7.0825 4.00668-6.7993 6.01003z",strokeWidth:"1.75"}),(0,nn.jsx)(Qt,{height:"45.5077",rx:"9.13723",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 191.5074 -96.0026)",width:"18.2745",x:"143.755",y:"47.7524"}),(0,nn.jsx)(Qt,{height:"42.3038",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 241.97 -50.348)",width:"17.4735",x:"146.159",y:"95.811"}),(0,nn.jsx)(Qt,{height:"55.9204",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 213.1347 -85.5913)",width:"17.4735",x:"149.363",y:"63.7717"}),(0,nn.jsx)(Qt,{height:"51.1145",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 229.1545 -69.5715)",width:"17.4735",x:"149.363",y:"79.7915"}),(0,nn.jsx)(Zt,{d:"m75.7483 105.349c.9858-25.6313-19.2235-42.0514-32.8401-44.0538v12.0146c8.5438 1.068 24.8303 9.7642 24.8303 36.0442 0 23.228 19.4905 33.374 29.6362 33.641v-10.413s-22.6122-1.602-21.6264-27.233z",strokeWidth:"1.75"}),(0,nn.jsx)(Zt,{d:"m68.5388 109.354c.9858-25.6312-19.2234-42.0513-32.8401-44.0537v12.0147c8.5438 1.0679 24.8303 9.7641 24.8303 36.044 0 23.228 19.4905 33.374 29.6362 33.641v-10.413s-22.6122-1.602-21.6264-27.233z",strokeWidth:"1.75"})]})]});const Rn=(0,nn.jsxs)(en,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)(Kt,{cx:"12",cy:"12",r:"7.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,nn.jsx)(Kt,{cx:"12",cy:"12",r:"4.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,nn.jsx)(Kt,{cx:"11.9999",cy:"12.2",r:"6",transform:"rotate(-45 11.9999 12.2)",stroke:"currentColor",strokeWidth:"3",strokeDasharray:"1.5 4"})]});const In=(0,nn.jsx)(en,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)(Zt,{d:"m11.7758 3.45425c.0917-.18582.3567-.18581.4484 0l2.3627 4.78731c.0364.07379.1068.12493.1882.13676l5.2831.76769c.2051.02979.287.28178.1386.42642l-3.8229 3.72637c-.0589.0575-.0858.1402-.0719.2213l.9024 5.2618c.0351.2042-.1793.36-.3627.2635l-4.7254-2.4842c-.0728-.0383-.1598-.0383-.2326 0l-4.7254 2.4842c-.18341.0965-.39776-.0593-.36274-.2635l.90247-5.2618c.01391-.0811-.01298-.1638-.0719-.2213l-3.8229-3.72637c-.14838-.14464-.0665-.39663.13855-.42642l5.28312-.76769c.08143-.01183.15182-.06297.18823-.13676z",fill:"currentColor"})});const Ln=(0,nn.jsx)(en,{fill:"none",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)(Zt,{clipRule:"evenodd",d:"m13 4c4.9545 0 9 4.04545 9 9 0 4.9545-4.0455 9-9 9-4.95455 0-9-4.0455-9-9 0-4.95455 4.04545-9 9-9zm5.0909 13.4545c-1.9545 3.8637-8.22726 3.8637-10.22726 0-.04546-.1818-.04546-.3636 0-.5454 2-3.8636 8.27276-3.8636 10.22726 0 .0909.1818.0909.3636 0 .5454zm-5.0909-8.90905c-1.2727 0-2.3182 1.04546-2.3182 2.31815 0 1.2728 1.0455 2.3182 2.3182 2.3182s2.3182-1.0454 2.3182-2.3182c0-1.27269-1.0455-2.31815-2.3182-2.31815z",fill:"currentColor",fillRule:"evenodd"})}),Mn=(0,o.createElement)(en,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Zt,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function Dn(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add((()=>e.removeEventListener(t,r,o)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>n.requestAnimationFrame((()=>n.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}function Bn(e,...t){e&&t.length>0&&e.classList.add(...t)}function Fn(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Un=(e=>(e.Ended="ended",e.Cancelled="cancelled",e))(Un||{});function zn(e,t,n,r){let o=n?"enter":"leave",i=Dn(),a=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{},s=be(o,{enter:()=>t.enter,leave:()=>t.leave}),l=be(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=be(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Fn(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Bn(e,...s,...u),i.nextFrame((()=>{Fn(e,...u),Bn(e,...l),function(e,t){let n=Dn();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(i+a!==0){let r=[];r.push(n.addEventListener(e,"transitionrun",(()=>{r.splice(0).forEach((e=>e())),r.push(n.addEventListener(e,"transitionend",(()=>{t("ended"),r.splice(0).forEach((e=>e()))}),{once:!0}),n.addEventListener(e,"transitioncancel",(()=>{t("cancelled"),r.splice(0).forEach((e=>e()))}),{once:!0}))}),{once:!0}))}else t("ended");n.add((()=>t("cancelled"))),n.dispose}(e,(n=>("ended"===n&&(Fn(e,...s),Bn(e,...t.entered)),a(n))))})),i.dispose}function $n({container:e,direction:t,classes:n,events:r,onStart:o,onStop:i}){let a=Qe(),l=function(){let[e]=(0,s.useState)(Dn);return(0,s.useEffect)((()=>()=>e.dispose()),[e]),e}(),u=Xe(t),c=Xe((()=>be(u.current,{enter:()=>r.current.beforeEnter(),leave:()=>r.current.beforeLeave(),idle:()=>{}}))),f=Xe((()=>be(u.current,{enter:()=>r.current.afterEnter(),leave:()=>r.current.afterLeave(),idle:()=>{}})));Le((()=>{let t=Dn();l.add(t.dispose);let r=e.current;if(r&&"idle"!==u.current&&a.current)return t.dispose(),c.current(),o.current(u.current),t.add(zn(r,n.current,"enter"===u.current,(e=>{t.dispose(),be(e,{[Un.Ended](){f.current(),i.current(u.current)},[Un.Cancelled]:()=>{}})}))),t.dispose}),[t])}function Vn(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let Wn=(0,s.createContext)(null);Wn.displayName="TransitionContext";var qn=(e=>(e.Visible="visible",e.Hidden="hidden",e))(qn||{});let Hn=(0,s.createContext)(null);function Yn(e){return"children"in e?Yn(e.children):e.current.filter((({state:e})=>"visible"===e)).length>0}function Gn(e){let t=Xe(e),n=(0,s.useRef)([]),r=Qe(),o=Xe(((e,o=ke.Hidden)=>{let i=n.current.findIndex((({id:t})=>t===e));-1!==i&&(be(o,{[ke.Unmount](){n.current.splice(i,1)},[ke.Hidden](){n.current[i].state="hidden"}}),At((()=>{var e;!Yn(n)&&r.current&&(null==(e=t.current)||e.call(t))})))})),i=Xe((e=>{let t=n.current.find((({id:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):n.current.push({id:e,state:"visible"}),()=>o.current(e,ke.Unmount)}));return(0,s.useMemo)((()=>({children:n,register:i,unregister:o})),[i,o,n])}function Jn(){}Hn.displayName="NestingContext";let Kn=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Xn(e){var t;let n={};for(let r of Kn)n[r]=null!=(t=e[r])?t:Jn;return n}let Zn=je.RenderStrategy,Qn=Ce((function(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i,enter:a,enterFrom:l,enterTo:u,entered:c,leave:f,leaveFrom:d,leaveTo:p,...h}=e,m=(0,s.useRef)(null),x=Ne(m,t),[y,v]=(0,s.useState)("visible"),g=h.unmount?ke.Unmount:ke.Hidden,{show:b,appear:w,initial:j}=function(){let e=(0,s.useContext)(Wn);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:k,unregister:E}=function(){let e=(0,s.useContext)(Hn);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),S=(0,s.useRef)(null),_=ze(),C=(0,s.useRef)(!1),O=Gn((()=>{C.current||(v("hidden"),E.current(_))}));(0,s.useEffect)((()=>{if(_)return k.current(_)}),[k,_]),(0,s.useEffect)((()=>{if(g===ke.Hidden&&_){if(b&&"visible"!==y)return void v("visible");be(y,{hidden:()=>E.current(_),visible:()=>k.current(_)})}}),[y,_,k,E,b,g]);let A=Xe({enter:Vn(a),enterFrom:Vn(l),enterTo:Vn(u),entered:Vn(c),leave:Vn(f),leaveFrom:Vn(d),leaveTo:Vn(p)}),P=function(e){let t=(0,s.useRef)(Xn(e));return(0,s.useEffect)((()=>{t.current=Xn(e)}),[e]),t}({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i}),T=De();(0,s.useEffect)((()=>{if(T&&"visible"===y&&null===m.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[m,y,T]);let N=j&&!w,R=!T||N||S.current===b?"idle":b?"enter":"leave";$n({container:m,classes:A,events:P,direction:R,onStart:Xe((()=>{})),onStop:Xe((e=>{"leave"===e&&!Yn(O)&&(v("hidden"),E.current(_))}))}),(0,s.useEffect)((()=>{!N||(g===ke.Hidden?S.current=null:S.current=b)}),[b,N,y]);let I=h,L={ref:x};return s.createElement(Hn.Provider,{value:O},s.createElement(St,{value:be(y,{visible:kt.Open,hidden:kt.Closed})},Ee({ourProps:L,theirProps:I,defaultTag:"div",features:Zn,visible:"visible"===y,name:"Transition.Child"})))})),er=Ce((function(e,t){let{show:n,appear:r=!1,unmount:o,...i}=e,a=Ne(t);De();let l=Et();if(void 0===n&&null!==l&&(n=be(l,{[kt.Open]:!0,[kt.Closed]:!1})),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,c]=(0,s.useState)(n?"visible":"hidden"),f=Gn((()=>{c("hidden")})),[d,p]=(0,s.useState)(!0),h=(0,s.useRef)([n]);Le((()=>{!1!==d&&h.current[h.current.length-1]!==n&&(h.current.push(n),p(!1))}),[h,n]);let m=(0,s.useMemo)((()=>({show:n,appear:r,initial:d})),[n,r,d]);(0,s.useEffect)((()=>{n?c("visible"):Yn(f)||c("hidden")}),[n,f]);let x={unmount:o};return s.createElement(Hn.Provider,{value:f},s.createElement(Wn.Provider,{value:m},Ee({ourProps:{...x,as:s.Fragment,children:s.createElement(Qn,{ref:a,...x,...i})},theirProps:{},defaultTag:s.Fragment,features:Zn,visible:"visible"===u,name:"Transition"})))}));let tr=Object.assign(er,{Child:function(e){let t=null!==(0,s.useContext)(Wn),n=null!==Et();return s.createElement(s.Fragment,null,!t&&n?s.createElement(er,{...e}):s.createElement(Qn,{...e}))},Root:er});var nr=(0,o.forwardRef)((function(e,t){var n,r=e.onClose,i=e.isOpen,a=e.invertedButtonColor,s=e.children,l=e.leftContainerBgColor,u=void 0===l?"bg-white":l,c=e.rightContainerBgColor,f=void 0===c?"bg-gray-100":c,d=(0,o.useRef)(null),p=_((function(e){return e.removeAllModals}));return r=null!==(n=r)&&void 0!==n?n:p,(0,nn.jsx)(tr.Root,{appear:!0,show:!0,as:o.Fragment,children:(0,nn.jsx)(Wt,{as:"div",static:!0,open:i,className:"extendify",initialFocus:null!=t?t:d,onClose:r,children:(0,nn.jsxs)("div",{className:"fixed inset-0 z-high flex",children:[(0,nn.jsx)(tr.Child,{as:o.Fragment,enter:"ease-out duration-50 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,nn.jsx)(Wt.Overlay,{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity"})}),(0,nn.jsx)(tr.Child,{as:o.Fragment,enter:"ease-out duration-300 translate transform",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,nn.jsx)("div",{className:"m-auto",children:(0,nn.jsxs)("div",{className:"relative m-8 max-w-md justify-between rounded-sm shadow-modal md:m-0 md:flex md:max-w-2xl",children:[(0,nn.jsxs)("button",{onClick:r,ref:d,className:"absolute top-0 right-0 block cursor-pointer rounded-md bg-transparent p-4 text-gray-700 opacity-30 hover:opacity-100",style:a&&{filter:"invert(1)"},children:[(0,nn.jsx)("span",{className:"sr-only",children:(0,Ht.__)("Close","extendify")}),(0,nn.jsx)(Yt,{icon:Mn})]}),(0,nn.jsx)("div",{className:"w-7/12 p-12 ".concat(u),children:s[0]}),(0,nn.jsx)("div",{className:"hidden w-6/12 md:block ".concat(f),children:s[1]})]})})})]})})})}));function rr(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function or(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){rr(i,r,o,a,s,"next",e)}function s(e){rr(i,r,o,a,s,"throw",e)}a(void 0)}))}}function ir(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ar(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ar(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ar(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sr=function(){var e=ir((0,o.useState)((0,Ht.__)("Install Extendify","extendify")),2),t=e[0],n=e[1],r=ir((0,o.useState)(!1),2),i=r[0],s=r[1],l=ir((0,o.useState)(!1),2),u=l[0],c=l[1],f=(0,o.useRef)(null),d=J((function(e){return e.markNoticeSeen})),p=J((function(e){return e.giveFreebieImports})),h=_((function(e){return e.removeAllModals})),m=function(){var e=or(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(),d("standalone","modalNotices"),e.next=4,ge("stln-modal-x");case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,nn.jsxs)(nr,{ref:f,onClose:m,children:[(0,nn.jsxs)("div",{children:[(0,nn.jsx)("div",{className:"mb-10 flex items-center space-x-2 text-extendify-black",children:En}),(0,nn.jsx)("h3",{className:"text-xl",children:(0,Ht.__)("Get the brand new Extendify plugin today!","extendify")}),(0,nn.jsx)("p",{className:"text-sm text-black",dangerouslySetInnerHTML:{__html:bn((0,Ht.sprintf)((0,Ht.__)("Install the new Extendify Library plugin to get the latest we have to offer — right from WordPress.org. Plus, well send you %1$s10 more imports%2$s. Nice.","extendify"),"<strong>","</strong>"))}}),(0,nn.jsx)("div",{children:(0,nn.jsxs)("button",{onClick:function(){n((0,Ht.__)("Installing...","extendify")),c(!0),Promise.all([ge("stln-modal-install"),sn(["extendify"]),new Promise((function(e){return setTimeout(e,1e3)}))]).then(or(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n((0,Ht.__)("Success! Reloading...","extendify")),s(!0),p(10),e.next=5,ge("stln-modal-success");case 5:window.location.reload();case 6:case"end":return e.stop()}}),e)})))).catch(function(){var e=or(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.error(t),n((0,Ht.__)("Error. See console.","extendify")),e.next=4,ge("stln-modal-fail");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},ref:f,disabled:u,className:"button-extendify-main button-focus mt-2 inline-flex justify-center px-4 py-3",style:{minWidth:"225px"},children:[t,i||(0,nn.jsx)(qt.Icon,{icon:Cn,size:24,className:"ml-2 w-6 flex-grow-0"})]})})]}),(0,nn.jsx)("div",{className:"flex w-full justify-end rounded-tr-sm rounded-br-sm bg-extendify-secondary",children:(0,nn.jsx)("img",{alt:(0,Ht.__)("Upgrade Now","extendify"),className:"rounded-br-sm max-w-full rounded-tr-sm",src:window.extendifyData.asset_path+"/modal-extendify-purple.png"})})]})};function lr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ur(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ur(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ur(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cr(){return cr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cr.apply(this,arguments)}function fr(e,t){return fr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fr(e,t)}var dr=new Map,pr=new WeakMap,hr=0,mr=void 0;function xr(e){return Object.keys(e).sort().filter((function(t){return void 0!==e[t]})).map((function(t){return t+"_"+("root"===t?(n=e.root)?(pr.has(n)||(hr+=1,pr.set(n,hr.toString())),pr.get(n)):"0":e[t]);var n})).toString()}function yr(e,t,n,r){if(void 0===n&&(n={}),void 0===r&&(r=mr),void 0===window.IntersectionObserver&&void 0!==r){var o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),function(){}}var i=function(e){var t=xr(e),n=dr.get(t);if(!n){var r,o=new Map,i=new IntersectionObserver((function(t){t.forEach((function(t){var n,i=t.isIntersecting&&r.some((function(e){return t.intersectionRatio>=e}));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=o.get(t.target))||n.forEach((function(e){e(i,t)}))}))}),e);r=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:o},dr.set(t,n)}return n}(n),a=i.id,s=i.observer,l=i.elements,u=l.get(e)||[];return l.has(e)||l.set(e,u),u.push(t),s.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(l.delete(e),s.unobserve(e)),0===l.size&&(s.disconnect(),dr.delete(a))}}var vr=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function gr(e){return"function"!=typeof e.children}var br=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){n.node&&(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),gr(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,fr(t,n);var o=r.prototype;return o.componentDidUpdate=function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())},o.componentWillUnmount=function(){this.unobserve(),this.node=null},o.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin,o=e.trackVisibility,i=e.delay,a=e.fallbackInView;this._unobserveCb=yr(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r,trackVisibility:o,delay:i},a)}},o.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},o.render=function(){if(!gr(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var r=this.props,o=r.children,i=r.as,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,vr);return s.createElement(i||"div",cr({ref:this.handleNode},a),o)},r}(s.Component);function wr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function jr(){return jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jr.apply(this,arguments)}function kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kr(Object(n),!0).forEach((function(t){Sr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}br.displayName="InView",br.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};const _r={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};class Cr extends l().Component{constructor(e){let t;super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this),t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||2,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){window&&window.requestAnimationFrame?(window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame((()=>{this.reCalculateColumnCount()}))):this.reCalculateColumnCount()}reCalculateColumnCount(){const e=window&&window.innerWidth||1/0;let t=this.props.breakpointCols;"object"!=typeof t&&(t={default:parseInt(t)||2});let n=1/0,r=t.default||2;for(let o in t){const i=parseInt(o);i>0&&e<=i&&i<n&&(n=i,r=t[o])}r=Math.max(1,parseInt(r)||1),this.state.columnCount!==r&&this.setState({columnCount:r})}itemsInColumns(){const e=this.state.columnCount,t=new Array(e),n=l().Children.toArray(this.props.children);for(let r=0;r<n.length;r++){const o=r%e;t[o]||(t[o]=[]),t[o].push(n[r])}return t}renderColumns(){const{column:e,columnAttrs:t={},columnClassName:n}=this.props,r=this.itemsInColumns(),o=100/r.length+"%";let i=n;i&&"string"!=typeof i&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===i&&(i="my-masonry-grid_column"));const a=Er(Er(Er({},e),t),{},{style:Er(Er({},t.style),{},{width:o}),className:i});return r.map(((e,t)=>l().createElement("div",jr({},a,{key:t}),e)))}logDeprecated(e){console.error("[Masonry]",e)}render(){const e=this.props,{children:t,breakpointCols:n,columnClassName:r,columnAttrs:o,column:i,className:a}=e,s=wr(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let u=a;return"string"!=typeof a&&(this.logDeprecated('The property "className" requires a string'),void 0===a&&(u="my-masonry-grid")),l().createElement("div",jr({},s,{className:u}),this.renderColumns())}}Cr.defaultProps=_r;const Or=Cr;function Ar(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Pr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ar(i,r,o,a,s,"next",e)}function s(e){Ar(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Tr=0,Nr=function(e){var t=arguments;return Pr(a().mark((function n(){var r,o,i,s,l;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t.length>1&&void 0!==t[1]?t[1]:{},Tr++,i="pattern"===e.type?"8":"4",s="pattern"===e.type?"patternType":"layoutType",l=Object.assign({filterByFormula:Lr(e,s),pageSize:i,categories:e.taxonomies,search:e.search,type:e.type,offset:"",initial:1===Tr,request_count:Tr,sdk_partner:null!==(r=J.getState().sdkPartner)&&void 0!==r?r:""},o),n.next=7,K.post("templates",l);case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}}),n)})))()},Rr=function(e){var t,n,r,o,i,a,s=null!==(t=null===(n=ye.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return K.post("templates/".concat(e.id),{template_id:null==e?void 0:e.id,categories:s,maybe_import:!0,type:null===(o=e.fields)||void 0===o?void 0:o.type,sdk_partner:null!==(i=J.getState().sdkPartner)&&void 0!==i?i:"",pageSize:"1",template_name:null===(a=e.fields)||void 0===a?void 0:a.title})},Ir=function(e){var t,n,r,o,i,a,s,l,u,c=null!==(t=null===(n=ye.getState())||void 0===n||null===(r=n.searchParams)||void 0===r?void 0:r.taxonomies)&&void 0!==t?t:[];return K.post("templates/".concat(e.id),{template_id:e.id,categories:c,imported:!0,basePattern:null!==(o=null!==(i=null===(a=e.fields)||void 0===a?void 0:a.basePattern)&&void 0!==i?i:null===(s=e.fields)||void 0===s?void 0:s.baseLayout)&&void 0!==o?o:"",type:e.fields.type,sdk_partner:null!==(l=J.getState().sdkPartner)&&void 0!==l?l:"",pageSize:"1",template_name:null===(u=e.fields)||void 0===u?void 0:u.title})},Lr=function(e,t){var n,r,o=e.taxonomies,i=null==o||null===(n=o.siteType)||void 0===n?void 0:n.slug,a=['{type}="'.concat(t.replace("Type",""),'"'),'{siteType}="'.concat(i,'"')];return null!==(r=o[t])&&void 0!==r&&r.slug&&a.push("{".concat(t,'}="').concat(o[t].slug,'"')),"AND(".concat(a.join(", "),")").replace(/\r?\n|\r/g,"")};const Mr=wp.blockEditor;function Dr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Br(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Br(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Br(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Fr=function(){var e=Dr((0,o.useState)(!1),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){var e=function(){return n(window.location.search.indexOf("DEVMODE")>-1||window.location.search.indexOf("LOCALMODE")>-1)};return e(),window.addEventListener("popstate",e),function(){window.removeEventListener("popstate",e)}}),[]),t};function Ur(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function zr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ur(i,r,o,a,s,"next",e)}function s(e){Ur(i,r,o,a,s,"throw",e)}a(void 0)}))}}var $r=[],Vr=[];function Wr(e){return qr.apply(this,arguments)}function qr(){return qr=zr(a().mark((function e(t){var n,r,o,i,s,l,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=(l=null!==(n=null==t||null===(r=t.fields)||void 0===r?void 0:r.required_plugins)&&void 0!==n?n:[]).filter((function(e){return"editorplus"!==e})),null!==(o=l)&&void 0!==o&&o.length){e.next=4;break}return e.abrupt("return",!1);case 4:if(null!==(i=$r)&&void 0!==i&&i.length){e.next=10;break}return e.t0=Object,e.next=8,an();case 8:e.t1=e.sent,$r=e.t0.keys.call(e.t0,e.t1);case 10:return u=!(null===(s=l)||void 0===s||!s.length)&&l.filter((function(e){return!$r.some((function(t){return t.includes(e)}))})),e.abrupt("return",u.length);case 12:case"end":return e.stop()}}),e)}))),qr.apply(this,arguments)}function Hr(e){return Yr.apply(this,arguments)}function Yr(){return Yr=zr(a().mark((function e(t){var n,r,o,i,s,l,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=(l=null!==(n=null==t||null===(r=t.fields)||void 0===r?void 0:r.required_plugins)&&void 0!==n?n:[]).filter((function(e){return"editorplus"!==e})),null!==(o=l)&&void 0!==o&&o.length){e.next=4;break}return e.abrupt("return",!1);case 4:if(null!==(i=Vr)&&void 0!==i&&i.length){e.next=10;break}return e.t0=Object,e.next=8,ln();case 8:e.t1=e.sent,Vr=e.t0.values.call(e.t0,e.t1);case 10:if(u=!(null===(s=l)||void 0===s||!s.length)&&l.filter((function(e){return!Vr.some((function(t){return t.includes(e)}))})),!u){e.next=16;break}return e.next=14,Wr(t);case 14:if(!e.sent){e.next=16;break}return e.abrupt("return",!1);case 16:return e.abrupt("return",null==u?void 0:u.length);case 17:case"end":return e.stop()}}),e)}))),Yr.apply(this,arguments)}var Gr=f(b((function(e){return{wantedTemplate:{},importOnLoad:!1,setWanted:function(t){return e({wantedTemplate:t})},removeWanted:function(){return e({wantedTemplate:{}})}}}),{name:"extendify-wanted-template"}));var Jr=function(e){return Kr(e,"open")};function Kr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"broken-event",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"open";J.setState({entryPoint:e}),window.dispatchEvent(new CustomEvent("extendify::".concat(t,"-library"),{detail:e,bubbles:!0}))}function Xr(e){switch(e){case"editorplus":return"Editor Plus";case"ml-slider":return"MetaSlider"}return e}function Zr(e){switch(e){case"siteType":return(0,Ht.__)("Site Type","extendify");case"patternType":return(0,Ht.__)("Content","extendify");case"layoutType":return(0,Ht.__)("Page Types","extendify")}return e}function Qr(){var e,t,n,r=Gr((function(e){return e.wantedTemplate})),i=(null==r||null===(e=r.fields)||void 0===e?void 0:e.required_plugins)||[];return(0,nn.jsxs)(qt.Modal,{title:(0,Ht.__)("Plugins required","extendify"),isDismissible:!1,children:[(0,nn.jsx)("p",{style:{maxWidth:"400px"},children:(0,Ht.sprintf)((0,Ht.__)("In order to add this %s to your site, the following plugins are required to be installed and activated.","extendify"),null!==(t=null==r||null===(n=r.fields)||void 0===n?void 0:n.type)&&void 0!==t?t:"template")}),(0,nn.jsx)("ul",{children:i.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,nn.jsx)("li",{children:Xr(e)},e)}))}),(0,nn.jsx)("p",{style:{maxWidth:"400px",fontWeight:"bold"},children:(0,Ht.__)("Please contact a site admin for assistance in adding these plugins to your site.","extendify")}),(0,nn.jsx)(qt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,nn.jsx)(Ma,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none"},children:(0,Ht.__)("Return to library","extendify")})]})}const eo=wp.data;function to(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return no(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return no(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function no(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ro(){var e=to((0,o.useState)(!1),2),t=e[0],n=e[1],r=function(){};return(0,(0,eo.select)("core/editor").isEditedPostDirty)()?(0,nn.jsxs)(qt.Modal,{title:(0,Ht.__)("Reload required","extendify"),isDismissible:!1,children:[(0,nn.jsx)("p",{style:{maxWidth:"400px"},children:(0,Ht.__)("Just one more thing! We need to reload the page to continue.","extendify")}),(0,nn.jsxs)(qt.ButtonGroup,{children:[(0,nn.jsx)(qt.Button,{isPrimary:!0,onClick:r,disabled:t,children:(0,Ht.__)("Reload page","extendify")}),(0,nn.jsx)(qt.Button,{isSecondary:!0,onClick:function(){n(!0),(0,eo.dispatch)("core/editor").savePost(),n(!1)},isBusy:t,style:{margin:"0 4px"},children:(0,Ht.__)("Save changes","extendify")})]})]}):null}function oo(e){var t=e.msg;return(0,nn.jsxs)(qt.Modal,{style:{maxWidth:"500px"},title:(0,Ht.__)("Error Activating plugins","extendify"),isDismissible:!1,children:[(0,Ht.__)("You have encountered an error that we cannot recover from. Please try again.","extendify"),(0,nn.jsx)("br",{}),(0,nn.jsx)(qt.Notice,{isDismissible:!1,status:"error",children:t}),(0,nn.jsx)(qt.Button,{isPrimary:!0,onClick:function(){(0,o.render)((0,nn.jsx)(co,{}),document.getElementById("extendify-root"))},children:(0,Ht.__)("Go back","extendify")})]})}function io(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ao(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){io(i,r,o,a,s,"next",e)}function s(e){io(i,r,o,a,s,"throw",e)}a(void 0)}))}}function so(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return lo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uo(){var e,t=so((0,o.useState)(""),2),n=t[0],r=t[1],i=Gr((function(e){return e.wantedTemplate})),s=null==i||null===(e=i.fields)||void 0===e?void 0:e.required_plugins.filter((function(e){return"editorplus"!==e}));return sn(s).then((function(){Gr.setState({importOnLoad:!0})})).then(ao(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){return setTimeout(e,1e3)}));case 2:(0,o.render)((0,nn.jsx)(ro,{}),document.getElementById("extendify-root"));case 3:case"end":return e.stop()}}),e)})))).catch((function(e){var t=e.response;r(t.data.message)})),n?(0,nn.jsx)(oo,{msg:n}):(0,nn.jsx)(qt.Modal,{title:(0,Ht.__)("Activating plugins","extendify"),isDismissible:!1,children:(0,nn.jsx)(qt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,Ht.__)("Activating...","extendify")})})}function co(e){var t,n,r,i,a,s=Gr((function(e){return e.wantedTemplate})),l=(null==s||null===(t=s.fields)||void 0===t?void 0:t.required_plugins)||[];return null!==(n=J.getState())&&void 0!==n&&n.canActivatePlugins?(0,nn.jsx)(qt.Modal,{title:(0,Ht.__)("Activate required plugins","extendify"),isDismissible:!1,children:(0,nn.jsxs)("div",{children:[(0,nn.jsx)("p",{style:{maxWidth:"400px"},children:null!==(r=e.message)&&void 0!==r?r:(0,Ht.__)((0,Ht.sprintf)("There is just one more step. This %s requires the following plugins to be installed and activated:",null!==(i=null==s||null===(a=s.fields)||void 0===a?void 0:a.type)&&void 0!==i?i:"template"),"extendify")}),(0,nn.jsx)("ul",{children:l.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,nn.jsx)("li",{children:Xr(e)},e)}))}),(0,nn.jsxs)(qt.ButtonGroup,{children:[(0,nn.jsx)(qt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,nn.jsx)(uo,{}),document.getElementById("extendify-root"))},children:(0,Ht.__)("Activate Plugins","extendify")}),e.showClose&&(0,nn.jsx)(qt.Button,{isTertiary:!0,onClick:function(){return(0,o.render)((0,nn.jsx)(Ma,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,Ht.__)("No thanks, return to library","extendify")})]})]})}):(0,nn.jsx)(Qr,{})}function fo(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var po=function(){var e,t=(e=a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Hr(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,o.render)((0,nn.jsx)(co,{showClose:!0}),document.getElementById("extendify-root"))}))},e.abrupt("return",{id:"hasPluginsActivated",pass:e.t0,allow:e.t1,deny:e.t2});case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){fo(i,r,o,a,s,"next",e)}function s(e){fo(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function ho(e){var t=e.msg;return(0,nn.jsxs)(qt.Modal,{style:{maxWidth:"500px"},title:(0,Ht.__)("Error installing plugins","extendify"),isDismissible:!1,children:[(0,Ht.__)("You have encountered an error that we cannot recover from. Please try again.","extendify"),(0,nn.jsx)("br",{}),(0,nn.jsx)(qt.Notice,{isDismissible:!1,status:"error",children:t}),(0,nn.jsx)(qt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,nn.jsx)(vo,{}),document.getElementById("extendify-root"))},children:(0,Ht.__)("Go back","extendify")})]})}function mo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yo(e){var t,n=e.requiredPlugins,r=mo((0,o.useState)(""),2),i=r[0],a=r[1],s=Gr((function(e){return e.wantedTemplate})),l=null!=n?n:null==s||null===(t=s.fields)||void 0===t?void 0:t.required_plugins.filter((function(e){return"editorplus"!==e}));return sn(l).then((function(){Gr.setState({importOnLoad:!0}),(0,o.render)((0,nn.jsx)(ro,{}),document.getElementById("extendify-root"))})).catch((function(e){var t=e.message;a(t)})),i?(0,nn.jsx)(ho,{msg:i}):(0,nn.jsx)(qt.Modal,{title:(0,Ht.__)("Installing plugins","extendify"),isDismissible:!1,children:(0,nn.jsx)(qt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,Ht.__)("Installing...","extendify")})})}function vo(e){var t,n,r,i,a,s=e.forceOpen,l=e.buttonLabel,u=e.title,c=e.message,f=e.requiredPlugins,d=Gr((function(e){return e.wantedTemplate}));f=null!==(t=f)&&void 0!==t?t:null==d||null===(n=d.fields)||void 0===n?void 0:n.required_plugins;return null!==(r=J.getState())&&void 0!==r&&r.canInstallPlugins?(0,nn.jsxs)(qt.Modal,{title:null!=u?u:(0,Ht.__)("Install required plugins","extendify"),isDismissible:!1,children:[(0,nn.jsx)("p",{style:{maxWidth:"400px"},children:null!=c?c:(0,Ht.__)((0,Ht.sprintf)("There is just one more step. This %s requires the following to be automatically installed and activated:",null!==(i=null==d||null===(a=d.fields)||void 0===a?void 0:a.type)&&void 0!==i?i:"template"),"extendify")}),(null==c?void 0:c.length)>0||(0,nn.jsx)("ul",{children:f.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,nn.jsx)("li",{children:Xr(e)},e)}))}),(0,nn.jsxs)(qt.ButtonGroup,{children:[(0,nn.jsx)(qt.Button,{isPrimary:!0,onClick:function(){return(0,o.render)((0,nn.jsx)(yo,{requiredPlugins:f}),document.getElementById("extendify-root"))},children:null!=l?l:(0,Ht.__)("Install Plugins","extendify")}),s||(0,nn.jsx)(qt.Button,{isTertiary:!0,onClick:function(){s||(0,o.render)((0,nn.jsx)(Ma,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,Ht.__)("No thanks, take me back","extendify")})]})]}):(0,nn.jsx)(Qr,{})}function go(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var bo=function(){var e,t=(e=a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Wr(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,o.render)((0,nn.jsx)(vo,{}),document.getElementById("extendify-root"))}))},e.abrupt("return",{id:"hasRequiredPlugins",pass:e.t0,allow:e.t1,deny:e.t2});case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){go(i,r,o,a,s,"next",e)}function s(e){go(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function wo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return jo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function jo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ko(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Eo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ko(i,r,o,a,s,"next",e)}function s(e){ko(i,r,o,a,s,"throw",e)}a(void 0)}))}}function So(e){return new Oo(e)}function _o(e){return function(){return new Co(e.apply(this,arguments))}}function Co(e){var t,n;function r(t,n){try{var i=e[t](n),a=i.value,s=a instanceof Oo;Promise.resolve(s?a.wrapped:a).then((function(e){s?r("return"===t?"return":"next",e):o(i.done?"return":"normal",e)}),(function(e){r("throw",e)}))}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise((function(i,a){var s={key:e,arg:o,resolve:i,reject:a,next:null};n?n=n.next=s:(t=n=s,r(e,o))}))},"function"!=typeof e.return&&(this.return=void 0)}function Oo(e){this.wrapped=e}Co.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Co.prototype.next=function(e){return this._invoke("next",e)},Co.prototype.throw=function(e){return this._invoke("throw",e)},Co.prototype.return=function(e){return this._invoke("return",e)};function Ao(e){return Po.apply(this,arguments)}function Po(){return(Po=Eo(a().mark((function e(t){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=To(t.stack);case 1:return r=void 0,e.prev=3,e.next=6,n.next();case 6:r=e.sent,e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(3),t.reset(),"Middleware exited";case 13:if(!r.done){e.next=15;break}return e.abrupt("break",17);case 15:e.next=1;break;case 17:case"end":return e.stop()}}),e,null,[[3,9]])})))).apply(this,arguments)}function To(e){return No.apply(this,arguments)}function No(){return(No=_o(a().mark((function e(t){var n,r,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=wo(t),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}return o=r.value,e.next=7,So(o());case 7:return e.next=9,e.sent;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),n.e(e.t0);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,13,16,19]])})))).apply(this,arguments)}function Ro(e,t){var n=(0,eo.dispatch)("core/block-editor"),r=n.insertBlocks,o=n.replaceBlock,i=(0,eo.select)("core/block-editor"),a=i.getSelectedBlock,s=i.getBlockHierarchyRootClientId,l=i.getBlockIndex,u=i.getGlobalBlockCount,c=a()||{},f=c.clientId,d=c.name,p=c.attributes,h=f?s(f):"",m=(h?l(h):u())+1;return("core/paragraph"===d&&""===(null==p?void 0:p.content)?o(f,e):r(e,m)).then((function(){return window.dispatchEvent(new CustomEvent("extendify::template-inserted",{detail:{template:t},bubbles:!0}))}))}var Io=n(4306);function Lo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Do=function(e){var t,n,r,i,a,s=e.template,l=null!=s&&null!==(t=s.fields)&&void 0!==t&&null!==(n=t.basePattern)&&void 0!==n&&n.length?null==s||null===(r=s.fields)||void 0===r?void 0:r.basePattern[0]:"",u=Lo((0,o.useState)(l),2),c=u[0],f=u[1];return(0,o.useEffect)((function(){null!=l&&l.length&&c!==l&&setTimeout((function(){return f(l)}),1e3)}),[c,l]),l?(0,nn.jsxs)("div",{className:"absolute bottom-0 left-0 z-50 mb-4 ml-4 flex items-center space-x-2 opacity-0 transition duration-100 group-hover:opacity-100 space-x-0.5",children:[(0,nn.jsx)(Io.CopyToClipboard,{text:null==s||null===(i=s.fields)||void 0===i?void 0:i.basePattern,onCopy:function(){return f((0,Ht.__)("Copied!","extendify"))},children:(0,nn.jsx)("button",{className:"text-sm rounded-md border border-black bg-white py-1 px-2.5 font-medium text-black no-underline m-0 cursor-pointer",children:(0,Ht.sprintf)((0,Ht.__)("Base: %s","extendify"),c)})}),(0,nn.jsx)("a",{target:"_blank",className:"text-sm rounded-md border border-black bg-white py-1 px-2.5 font-medium text-black no-underline m-0",href:null==s||null===(a=s.fields)||void 0===a?void 0:a.editURL,rel:"noreferrer",children:(0,Ht.__)("Edit","extendify")})]}):null};function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach((function(t){Uo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Uo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zo=(0,o.forwardRef)((function(e,t){var n,r=e.isOpen,i=e.heading,a=e.onClose,s=e.children,l=(0,o.useRef)(null),u=_((function(e){return e.removeAllModals}));return a=null!==(n=a)&&void 0!==n?n:u,(0,nn.jsx)(tr,{appear:!0,show:r,as:o.Fragment,className:"extendify",children:(0,nn.jsx)(Wt,{initialFocus:null!=t?t:l,onClose:a,children:(0,nn.jsxs)("div",{className:"fixed inset-0 z-high flex",children:[(0,nn.jsx)(tr.Child,{as:o.Fragment,enter:"ease-out duration-200 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,nn.jsx)(Wt.Overlay,{className:"fixed inset-0 bg-black bg-opacity-40"})}),(0,nn.jsx)(tr.Child,{as:o.Fragment,enter:"ease-out duration-300 translate transform",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,nn.jsx)("div",{className:"relative m-auto w-full",children:(0,nn.jsxs)("div",{className:"relative m-auto w-full max-w-lg items-center justify-center rounded-sm bg-white shadow-modal",children:[i?(0,nn.jsxs)("div",{className:"flex items-center justify-between border-b py-2 pl-6 pr-3 leading-none",children:[(0,nn.jsx)("span",{className:"whitespace-nowrap text-base text-extendify-black",children:i}),(0,nn.jsx)($o,{onClick:a})]}):(0,nn.jsx)("div",{className:"absolute top-0 right-0 block px-4 py-4 ",children:(0,nn.jsx)($o,{ref:l,onClick:a})}),(0,nn.jsx)("div",{children:s})]})})})]})})})})),$o=(0,o.forwardRef)((function(e,t){return(0,nn.jsx)(qt.Button,Fo(Fo({},e),{},{icon:(0,nn.jsx)(Yt,{icon:Mn}),ref:t,className:"text-extendify-black opacity-75 hover:opacity-100",showTooltip:!1,label:(0,Ht.__)("Close dialog","extendify")}))}));function Vo(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Wo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Vo(i,r,o,a,s,"next",e)}function s(e){Vo(i,r,o,a,s,"throw",e)}a(void 0)}))}}function qo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ho(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ho(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ho(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Yo=function(){var e=qo((0,o.useState)(!1),2),t=e[0],n=e[1],r=qo((0,o.useState)(!1),2),i=r[0],s=r[1],l=Fr(),u=function(){var e=Wo(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=2;break}return e.abrupt("return");case 2:if(n(!0),!i){e.next=11;break}return s(!1),J.setState({participatingTestsGroups:[]}),e.next=8,J.persist.rehydrate();case 8:return window.extendifyData._canRehydrate=!1,n(!1),e.abrupt("return");case 11:return J.persist.clearStorage(),_.persist.clearStorage(),e.next=15,new Promise((function(e){return setTimeout(e,1e3)}));case 15:window.extendifyData._canRehydrate=!0,s(!0),n(!1);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),c=function(){var e=Wo(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new URLSearchParams(window.location.search)).delete("LOCALMODE",1),t[t.has("DEVMODE")||l?"delete":"append"]("DEVMODE",1),window.history.replaceState(null,null,window.location.pathname+"?"+t.toString()),e.next=6,new Promise((function(e){return setTimeout(e,500)}));case 6:window.dispatchEvent(new Event("popstate")),ye.getState().resetTemplates(),ye.getState().updateSearchParams({}),le.persist.clearStorage(),le.persist.rehydrate(),ye.setState({taxonomyDefaultState:{}}),le.getState().fetchTaxonomies().then((function(){ye.getState().setupDefaultTaxonomies()}));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return window.extendifyData.devbuild?(0,nn.jsxs)("section",{className:"p-6 flex flex-col space-y-6 border-l-8 border-extendify-secondary",children:[(0,nn.jsxs)("div",{children:[(0,nn.jsx)("p",{className:"text-base m-0 text-extendify-black",children:"Development Settings"}),(0,nn.jsx)("p",{className:"text-sm italic m-0 text-gray-500",children:"Only available on dev builds"})]}),(0,nn.jsxs)("div",{className:"flex space-x-2",children:[(0,nn.jsxs)(qt.Button,{isSecondary:!0,onClick:c,children:["Switch to ",l?"Live":"Dev"," Server"]}),(0,nn.jsx)(qt.Button,{isSecondary:!0,onClick:u,children:t?"Processing...":i?"OK! Press to rehydrate app":"Reset User Data"})]})]}):null};function Go(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Jo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Go(i,r,o,a,s,"next",e)}function s(e){Go(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Ko(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zo(e){var t=e.actionCallback,n=e.initialFocus,r=J((function(e){return e.apiKey.length})),i=Ko((0,o.useState)(""),2),s=i[0],l=i[1],u=Ko((0,o.useState)(""),2),c=u[0],f=u[1],d=Ko((0,o.useState)(""),2),p=d[0],h=d[1],m=Ko((0,o.useState)("info"),2),x=m[0],y=m[1],v=Ko((0,o.useState)(!1),2),g=v[0],b=v[1],w=Ko((0,o.useState)(!1),2),j=w[0],k=w[1],E=(0,o.useRef)(null),S=(0,o.useRef)(null),_=Fr();(0,o.useEffect)((function(){return l(J.getState().email),function(){return y("info")}}),[]),(0,o.useEffect)((function(){var e;j&&(null==E||null===(e=E.current)||void 0===e||e.focus())}),[j]);var C=function(){var e=Jo(a().mark((function e(t){var n,r,o,i,l;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),b(!0),h(""),e.next=5,N(s,c);case 5:if(n=e.sent,r=n.token,o=n.error,i=n.exception,void 0===(l=n.message)){e.next=15;break}return y("error"),b(!1),h(null!=l&&l.length?l:"Error: Are you interacting with the wrong server?"),e.abrupt("return");case 15:if(!o&&!i){e.next=20;break}return y("error"),b(!1),h(null!=o&&o.length?o:i),e.abrupt("return");case 20:if(r&&"string"==typeof r){e.next=25;break}return y("error"),b(!1),h((0,Ht.__)("Something went wrong","extendify")),e.abrupt("return");case 25:y("success"),h("Success!"),k(!0),b(!1),J.setState({email:s,apiKey:r});case 30:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return j?(0,nn.jsxs)("section",{className:"space-y-6 p-6 text-center flex flex-col items-center",children:[(0,nn.jsx)(Yt,{icon:Nn,size:148}),(0,nn.jsx)("p",{className:"text-center text-lg font-semibold m-0 text-extendify-black",children:(0,Ht.__)("You've signed in to Extendify","extendify")}),(0,nn.jsx)(qt.Button,{ref:E,className:"cursor-pointer rounded bg-extendify-main p-2 px-4 text-center text-white",onClick:t,children:(0,Ht.__)("View patterns","extendify")})]}):r?(0,nn.jsxs)("section",{className:"w-full space-y-6 p-6",children:[(0,nn.jsx)("p",{className:"text-base m-0 text-extendify-black",children:(0,Ht.__)("Account","extendify")}),(0,nn.jsxs)("div",{className:"flex items-center justify-between",children:[(0,nn.jsxs)("div",{className:"-ml-2 flex items-center space-x-2",children:[(0,nn.jsx)(Yt,{icon:Ln,size:48}),(0,nn.jsx)("p",{className:"text-extendify-black",children:null!=s&&s.length?s:(0,Ht.__)("Logged In","extendify")})]}),_&&(0,nn.jsx)(qt.Button,{className:"cursor-pointer rounded bg-extendify-main px-4 py-3 text-center text-white hover:bg-extendify-main-dark",onClick:function(){f(""),J.setState({apiKey:""}),setTimeout((function(){var e;null==S||null===(e=S.current)||void 0===e||e.focus()}),0)},children:(0,Ht.__)("Sign out","extendify")})]})]}):(0,nn.jsxs)("section",{className:"space-y-6 p-6 text-left",children:[(0,nn.jsxs)("div",{children:[(0,nn.jsx)("p",{className:"text-center text-lg font-semibold m-0 text-extendify-black",children:(0,Ht.__)("Sign in to Extendify","extendify")}),(0,nn.jsxs)("p",{className:"space-x-1 text-center text-sm m-0 text-extendify-gray",children:[(0,nn.jsx)("span",{children:(0,Ht.__)("Don't have an account?","extendify")}),(0,nn.jsx)("a",{href:"https://extendify.com/pricing?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=sign-in-form&utm_content=sign-up&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),target:"_blank",onClick:Jo(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("sign-up-link-from-login-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),className:"underline hover:no-underline text-extendify-gray",rel:"noreferrer",children:(0,Ht.__)("Sign up","extendify")})]})]}),(0,nn.jsxs)("form",{onSubmit:C,className:"flex flex-col items-center justify-center space-y-2",children:[(0,nn.jsxs)("div",{className:"flex items-center",children:[(0,nn.jsx)("label",{className:"sr-only",htmlFor:"extendify-login-email",children:(0,Ht.__)("Email address","extendify")}),(0,nn.jsx)("input",{ref:n,id:"extendify-login-email",name:"extendify-login-email",style:{minWidth:"320px"},type:"email",className:"w-full rounded border-2 p-2",placeholder:(0,Ht.__)("Email address","extendify"),value:s.length?s:"",onChange:function(e){return l(e.target.value)}})]}),(0,nn.jsxs)("div",{className:"flex items-center",children:[(0,nn.jsx)("label",{className:"sr-only",htmlFor:"extendify-login-license",children:(0,Ht.__)("License key","extendify")}),(0,nn.jsx)("input",{ref:S,id:"extendify-login-license",name:"extendify-login-license",style:{minWidth:"320px"},type:"text",className:"w-full rounded border-2 p-2",placeholder:(0,Ht.__)("License key","extendify"),value:c,onChange:function(e){return f(e.target.value)}})]}),(0,nn.jsx)("div",{className:"flex justify-center pt-2",children:(0,nn.jsxs)("button",{type:"submit",className:"relative flex w-72 max-w-full cursor-pointer justify-center rounded bg-extendify-main p-2 py-3 text-center text-base text-white hover:bg-extendify-main-dark ",children:[(0,nn.jsx)("span",{children:(0,Ht.__)("Sign In","extendify")}),g&&(0,nn.jsx)("div",{className:"absolute right-2.5",children:(0,nn.jsx)(qt.Spinner,{})})]})}),p&&(0,nn.jsx)("div",{className:Jt()({"border-gray-900 text-gray-900":"info"===x,"border-wp-alert-red text-wp-alert-red":"error"===x,"border-extendify-main text-extendify-main":"success"===x}),children:p}),(0,nn.jsx)("div",{className:"pt-4 text-center",children:(0,nn.jsx)("a",{target:"_blank",rel:"noreferrer",href:"https://extendify.com/guides/sign-in?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=sign-in-form&utm_content=need-help&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),onClick:Jo(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("need-help-link-from-login-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),className:"underline hover:no-underline text-sm text-extendify-gray",children:(0,Ht.__)("Need Help?","extendify")})})]})]})}var Qo=function(){var e=(0,o.useRef)(null),t=_((function(e){return e.removeAllModals}));return(0,nn.jsx)(zo,{heading:(0,Ht.__)("Settings","extendify"),isOpen:!0,ref:e,children:(0,nn.jsxs)("div",{className:"flex justify-center flex-col divide-y",children:[(0,nn.jsx)(Yo,{}),(0,nn.jsx)(Zo,{initialFocus:e,actionCallback:t})]})})};function ei(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ti(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ei(i,r,o,a,s,"next",e)}function s(e){ei(i,r,o,a,s,"throw",e)}a(void 0)}))}}var ni=function(){var e=_((function(e){return e.pushModal})),t=(0,o.useRef)(null);return(0,nn.jsxs)(nr,{isOpen:!0,ref:t,leftContainerBgColor:"bg-white",children:[(0,nn.jsxs)("div",{children:[(0,nn.jsx)("div",{className:"mb-5 flex items-center space-x-2 text-extendify-black",children:En}),(0,nn.jsx)("h3",{className:"mt-0 text-xl",children:(0,Ht.__)("You're out of imports","extendify")}),(0,nn.jsx)("p",{className:"text-sm text-black",children:(0,Ht.__)("Sign up today and get unlimited access to our entire collection of patterns and page layouts.","extendify")}),(0,nn.jsxs)("div",{children:[(0,nn.jsxs)("a",{target:"_blank",ref:t,className:"button-extendify-main button-focus mt-2 inline-flex justify-center px-4 py-3",style:{minWidth:"225px"},href:"https://extendify.com/pricing/?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=no-imports-modal&utm_content=get-unlimited-imports&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),onClick:ti(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("no-imports-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),rel:"noreferrer",children:[(0,Ht.__)("Get Unlimited Imports","extendify"),(0,nn.jsx)(qt.Icon,{icon:An,size:24,className:"-mr-1"})]}),(0,nn.jsxs)("p",{className:"mb-0 text-left text-sm text-extendify-gray",children:[(0,Ht.__)("Have an account?","extendify"),(0,nn.jsx)(qt.Button,{onClick:function(){return e((0,nn.jsx)(Qo,{}))},className:"pl-2 text-sm text-extendify-gray underline hover:no-underline",children:(0,Ht.__)("Sign in","extendify")})]})]})]}),(0,nn.jsxs)("div",{className:"flex h-full flex-col justify-center space-y-2 p-10 text-black",children:[(0,nn.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,nn.jsx)(qt.Icon,{icon:Tn,size:24}),(0,nn.jsx)("span",{className:"text-sm leading-none",children:(0,Ht.__)("Access to 100's of Patterns","extendify")})]}),(0,nn.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,nn.jsx)(qt.Icon,{icon:Sn,size:24}),(0,nn.jsx)("span",{className:"text-sm leading-none",children:(0,Ht.__)('Access to "Pro" catalog',"extendify")})]}),(0,nn.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,nn.jsx)(qt.Icon,{icon:Pn,size:24}),(0,nn.jsx)("span",{className:"text-sm leading-none",children:(0,Ht.__)("Beautiful full page layouts","extendify")})]}),(0,nn.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,nn.jsx)(qt.Icon,{icon:Rn,size:24}),(0,nn.jsx)("span",{className:"text-sm leading-none",children:(0,Ht.__)("Fast and friendly support","extendify")})]}),(0,nn.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,nn.jsx)(qt.Icon,{icon:In,size:24}),(0,nn.jsx)("span",{className:"text-sm leading-none",children:(0,Ht.__)("14-Day guarantee","extendify")})]})]})]})};function ri(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function oi(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ri(i,r,o,a,s,"next",e)}function s(e){ri(i,r,o,a,s,"throw",e)}a(void 0)}))}}var ii=function(){var e=(0,o.useRef)(null);return(0,nn.jsxs)(nr,{isOpen:!0,invertedButtonColor:!0,ref:e,children:[(0,nn.jsxs)("div",{children:[(0,nn.jsx)("div",{className:"mb-5 flex items-center space-x-2 text-extendify-black",children:En}),(0,nn.jsx)("h3",{className:"mt-0 text-xl",children:(0,Ht.__)("Get unlimited access to all our Pro patterns & layouts","extendify")}),(0,nn.jsx)("p",{className:"text-sm text-black",children:(0,Ht.__)("Upgrade to Extendify Pro and use all the patterns and layouts you'd like, including our exclusive Pro catalog.","extendify")}),(0,nn.jsx)("div",{children:(0,nn.jsxs)("a",{target:"_blank",ref:e,className:"button-extendify-main button-focus mt-2 inline-flex justify-center px-4 py-3",style:{minWidth:"225px"},href:"https://extendify.com/pricing/?utm_source=".concat(window.extendifyData.sdk_partner,"&utm_medium=library&utm_campaign=pro-modal&utm_content=upgrade-now&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),onClick:oi(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("pro-modal-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),rel:"noreferrer",children:[(0,Ht.__)("Upgrade Now","extendify"),(0,nn.jsx)(qt.Icon,{icon:An,size:24,className:"-mr-1"})]})})]}),(0,nn.jsx)("div",{className:"justify-endrounded-tr-sm flex w-full rounded-br-sm bg-black",children:(0,nn.jsx)("img",{alt:(0,Ht.__)("Upgrade Now","extendify"),className:"max-w-full rounded-tr-sm rounded-br-sm",src:window.extendifyData.asset_path+"/modal-extendify-black.png"})})]})};function ai(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function si(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function li(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ui(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ui(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ui(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ci=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{hasRequiredPlugins:bo,hasPluginsActivated:po,stack:[],check:function(t){var n=this;return Eo(a().mark((function r(){var o,i,s,l;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=wo(e),r.prev=1,o.s();case 3:if((i=o.n()).done){r.next=11;break}return s=i.value,r.next=7,n["".concat(s)](t);case 7:l=r.sent,n.stack.push(l.pass?l.allow:l.deny);case 9:r.next=3;break;case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(1),o.e(r.t0);case 16:return r.prev=16,o.f(),r.finish(16);case 19:case"end":return r.stop()}}),r,null,[[1,13,16,19]])})))()},reset:function(){this.stack=[]}}}(["hasRequiredPlugins","hasPluginsActivated"]);function fi(e){var t,n,i,s,l,u,c=e.template,f=e.maxHeight,d=(0,o.useRef)(null),p=J((function(e){return e.hasAvailableImports})),h=J((function(e){return e.apiKey.length})),m=_((function(e){return e.setOpen})),x=_((function(e){return e.pushModal})),y=_((function(e){return e.removeAllModals})),v=li((0,o.useState)(0),2),g=v[0],b=v[1],w=Array.isArray(null==c||null===(t=c.fields)||void 0===t?void 0:t.type)?c.fields.type[0]:null==c||null===(n=c.fields)||void 0===n?void 0:n.type,j=(0,o.useMemo)((function(){return(0,r.rawHandler)({HTML:di(c.fields.code)})}),[c.fields.code]),k=(0,o.useMemo)((function(){return(0,r.rawHandler)({HTML:c.fields.code})}),[c.fields.code]),E=Fr(),S=function(){var e,t=(e=a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ci.check(c);case 2:Ao(ci).then((function(){setTimeout((function(){Ro(k,c).then((function(){return y()})).then((function(){return m(!1)})).then((function(){return ci.reset()}))}),100)})).catch((function(){}));case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){si(i,r,o,a,s,"next",e)}function s(e){si(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),C=function(){var e;Rr(c),null==c||null===(e=c.fields)||void 0===e||!e.pro||h?p()?S():x((0,nn.jsx)(ni,{})):x((0,nn.jsx)(ii,{}))};return(0,o.useEffect)((function(){if(Number.isInteger(f)&&"layout"===w){var e=d.current,t=function(){var t=e.offsetHeight;e.style.transitionDuration=1.5*t+"ms",b(-1*Math.abs(t-f))},n=function(){var t=e.offsetHeight;e.style.transitionDuration=t/1.5+"ms",b(0)};return e.addEventListener("focus",t),e.addEventListener("mouseenter",t),e.addEventListener("blur",n),e.addEventListener("mouseleave",n),function(){e.removeEventListener("focus",t),e.removeEventListener("mouseenter",t),e.removeEventListener("blur",n),e.removeEventListener("mouseleave",n)}}}),[f,w]),(0,nn.jsxs)("div",{className:"group relative",children:[(0,nn.jsx)("div",{role:"button",tabIndex:"0","aria-label":(0,Ht.sprintf)((0,Ht.__)("Press to import %s","extendify"),null==c||null===(i=c.fields)||void 0===i?void 0:i.type),style:{maxHeight:f},className:"button-focus relative m-0 cursor-pointer overflow-hidden bg-gray-100 ease-in-out",onClick:C,onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&(e.stopPropagation(),e.preventDefault(),C())},children:(0,nn.jsx)("div",{ref:d,style:{top:g,transitionProperty:"all"},className:Jt()("with-light-shadow relative",(l={},ai(l,"is-template--".concat(c.fields.status),(null==c||null===(s=c.fields)||void 0===s?void 0:s.status)&&E),ai(l,"p-6 md:p-8",Number.isInteger(f)),l)),children:(0,nn.jsx)(Mr.BlockPreview,{blocks:j,live:!1,viewportWidth:1400})})}),E&&(0,nn.jsx)(Do,{template:c}),(null==c||null===(u=c.fields)||void 0===u?void 0:u.pro)&&(0,nn.jsx)("div",{className:"pointer-events-none absolute top-4 right-4 z-20 rounded-md border border-none bg-white bg-wp-theme-500 py-1 px-2.5 font-medium text-white no-underline shadow-sm",children:(0,Ht.__)("Pro","extendify")})]})}var di=function(e){return e.replace(/\w+:\/\/\S*(w=(\d*))&(h=(\d*))&\w+\S*"/g,(function(e,t,n,r,o){return e.replace(t,"w="+Math.floor(Number(n)/2)).replace(r,"h="+Math.floor(Number(o)/2))}))};function pi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return hi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mi=(0,o.memo)((function(){var e=function(){var e=(0,o.useRef)(!1);return(0,o.useEffect)((function(){return e.current=!0,function(){return e.current=!1}})),e}(),t=ye((function(e){return e.templates})),n=pi((0,o.useState)(0),2),r=n[0],i=n[1],a=ye((function(e){return e.appendTemplates})),l=pi((0,o.useState)(""),2),u=l[0],c=l[1],f=(0,o.useRef)(!1),d=pi((0,o.useState)(!1),2),p=d[0],h=d[1],m=pi((0,o.useState)(!1),2),x=m[0],y=m[1],v=function(e){var t=void 0===e?{}:e,n=t.threshold,r=t.delay,o=t.trackVisibility,i=t.rootMargin,a=t.root,l=t.triggerOnce,u=t.skip,c=t.initialInView,f=t.fallbackInView,d=s.useRef(),p=s.useState({inView:!!c}),h=p[0],m=p[1],x=s.useCallback((function(e){void 0!==d.current&&(d.current(),d.current=void 0),u||e&&(d.current=yr(e,(function(e,t){m({inView:e,entry:t}),t.isIntersecting&&l&&d.current&&(d.current(),d.current=void 0)}),{root:a,rootMargin:i,threshold:n,trackVisibility:o,delay:r},f))}),[Array.isArray(n)?n.toString():n,a,i,l,u,o,f,r]);(0,s.useEffect)((function(){d.current||!h.entry||l||u||m({inView:!!c})}));var y=[x,h.inView,h.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}(),g=pi(v,2),b=g[0],w=g[1],j=ye((function(e){return e.searchParams})),k=_((function(e){return e.currentType})),E=ye((function(e){return e.resetTemplates})),S=_((function(e){return e.open})),C=le((function(e){return e.taxonomies})),O=ye((function(e){return e.updateType})),P=ye((function(e){return e.updateTaxonomies})),T=(0,o.useRef)(ye.getState().nextPage),N=(0,o.useRef)(ye.getState().searchParams),R="pattern"===N.current.type?"patternType":"layoutType",I=N.current.taxonomies[R];(0,o.useEffect)((function(){return ye.subscribe((function(e){return e.nextPage}),(function(e){return T.current=e}))}),[]),(0,o.useEffect)((function(){return ye.subscribe((function(e){return e.searchParams}),(function(e){return N.current=e}))}),[]);var L,M=(0,o.useCallback)((function(){var t,n,r;c(""),h(!1);var o=(0,Ht.__)("Unknown error occurred. Check browser console or contact support.","extendify"),s={offset:T.current},l=null!==(t=N.current.taxonomies)&&void 0!==t&&null!==(n=t.siteType)&&void 0!==n&&null!==(r=n.slug)&&void 0!==r&&r.length?N.current.taxonomies.siteType:{slug:"default"},u=(0,A.cloneDeep)(N.current);u.taxonomies.siteType=l,Nr(u,s).then((function(t){var n,r,o,s;e.current&&(null!=t&&null!==(n=t.error)&&void 0!==n&&n.length?c(null==t?void 0:t.error):(null==t||null===(r=t.records)||void 0===r?void 0:r.length)<=0?h(!0):j===N.current&&null!=t&&null!==(o=t.records)&&void 0!==o&&o.length&&(ye.setState({nextPage:null!==(s=null==t?void 0:t.offset)&&void 0!==s?s:""}),a(t.records),i((function(e){return t.records.length+e})),y(!1)))})).catch((function(t){e.current&&(console.error(t),c(o))}))}),[a,e,j]);return(0,o.useEffect)((function(){0!==(null==t?void 0:t.length)||y(!0)}),[null==t?void 0:t.length,j]),(0,o.useEffect)((function(){!f.current&&u.length&&(f.current=!0,M())}),[u,M]),(0,o.useEffect)((function(){var e;if(S&&null!=C&&null!==(e=C.patternType)&&void 0!==e&&e.length){var t=new URLSearchParams(window.location.search);if(t.has("ext-patternType")){var n=t.get("ext-patternType");t.delete("ext-patternType"),window.history.replaceState(null,null,window.location.pathname+"?"+t.toString());var r=C.patternType.find((function(e){return e.slug===n}));r&&(P({patternType:r}),O("pattern"))}}}),[S,C,O,P]),(0,o.useEffect)((function(){var e,t;if(null!==(e=Object.keys(null===(t=N.current)||void 0===t?void 0:t.taxonomies))&&void 0!==e&&e.length){if(!ye.getState().skipNextFetch)return M(),function(){return E()};ye.setState({skipNextFetch:!1})}}),[M,N,E]),(0,o.useEffect)((function(){T.current&&w&&M()}),[w,M,r]),u.length&&f.current?(0,nn.jsxs)("div",{className:"text-left",children:[(0,nn.jsx)("h2",{className:"text-left",children:(0,Ht.__)("Server error","extendify")}),(0,nn.jsx)("code",{className:"mb-4 block max-w-xl p-4",style:{minHeight:"10rem"},children:u}),(0,nn.jsx)(qt.Button,{isTertiary:!0,onClick:function(){f.current=!1,M()},children:(0,Ht.__)("Press here to reload")})]}):p?(0,nn.jsx)("div",{className:"-mt-2 flex h-full w-full items-center justify-center sm:mt-0",children:(0,nn.jsx)("h2",{className:"text-sm font-normal text-extendify-gray",children:(0,Ht.sprintf)("template"===N.current.type?(0,Ht.__)('We couldn\'t find any layouts in the "%s" category.',"extendify"):(0,Ht.__)('We couldn\'t find any patterns in the "%s" category.',"extendify"),null!==(L=null==I?void 0:I.title)&&void 0!==L?L:I.slug)})}):(0,nn.jsxs)(nn.Fragment,{children:[x&&(0,nn.jsx)("div",{className:"-mt-2 flex h-full w-full items-center justify-center sm:mt-0",children:(0,nn.jsx)(qt.Spinner,{})}),(0,nn.jsx)(xi,{type:k,templates:t,children:t.map((function(e){return(0,nn.jsx)(fi,{maxHeight:"template"===k?520:"none",template:e},e.id)}))}),T.current&&(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)("div",{className:"mt-8",children:(0,nn.jsx)(qt.Spinner,{})}),(0,nn.jsx)("div",{className:"relative flex flex-col items-end justify-end -top-1/4 h-4",ref:b,style:{zIndex:-1}})]})]})})),xi=function(e){var t=e.type,n=e.children,r="relative min-h-screen z-10 pb-40 pt-0.5";if("template"===t)return(0,nn.jsx)("div",{className:"grid gap-6 md:gap-8 lg:grid-cols-2 ".concat(r),children:n});return(0,nn.jsx)(Or,{breakpointCols:{default:3,1600:2,860:1,599:2,400:1},className:"-ml-6 flex w-auto px-0.5 md:-ml-8 ".concat(r),columnClassName:"pl-6 md:pl-8 bg-clip-padding space-y-6 md:space-y-8",children:n})};function yi(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function vi(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){yi(i,r,o,a,s,"next",e)}function s(e){yi(i,r,o,a,s,"throw",e)}a(void 0)}))}}var gi=(0,o.memo)((function(){var e=J((function(e){return e.remainingImports})),t=J((function(e){return e.allowedImports})),n=e(),r=n>0?"has-imports":"no-imports",i=(0,o.useRef)();return(0,o.useEffect)((function(){if(t<1||!t){L().then((function(e){e=/^[1-9]\d*$/.test(e)?e:5,J.setState({allowedImports:e})})).catch((function(){return J.setState({allowedImports:5})}))}}),[t]),t?(0,nn.jsxs)("div",{tabIndex:"0",className:"group relative mb-5",children:[(0,nn.jsxs)("a",{target:"_blank",ref:i,rel:"noreferrer",className:Jt()("button-focus hidden w-full justify-between rounded py-3 px-4 text-sm text-white no-underline sm:flex",{"bg-wp-theme-500 hover:bg-wp-theme-600":n>0,"bg-extendify-alert":!n}),onClick:vi(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("import-counter-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),href:"https://www.extendify.com/pricing/?utm_source=".concat(encodeURIComponent(window.extendifyData.sdk_partner),"&utm_medium=library&utm_campaign=import-counter&utm_content=get-more&utm_term=").concat(r,"&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),children:[(0,nn.jsxs)("span",{className:"flex items-center space-x-2 text-xs no-underline",children:[(0,nn.jsx)(Yt,{icon:n>0?_n:wn,size:14}),(0,nn.jsx)("span",{children:(0,Ht.sprintf)((0,Ht._n)("%s Import","%s Imports",n,"extendify"),n)})]}),(0,nn.jsxs)("span",{className:"outline-none flex items-center text-sm font-medium text-white no-underline",children:[(0,Ht.__)("Get more","extendify"),(0,nn.jsx)(Yt,{icon:An,size:24,className:"-mr-1.5"})]})]}),(0,nn.jsx)("div",{className:"extendify-bottom-arrow invisible absolute top-0 w-full -translate-y-full transform opacity-0 shadow-md transition-all delay-200 duration-300 ease-in-out group-hover:visible group-hover:-top-2.5 group-hover:opacity-100 group-focus:visible group-focus:-top-2.5 group-focus:opacity-100",tabIndex:"-1",children:(0,nn.jsx)("a",{href:"https://www.extendify.com/pricing/?utm_source=".concat(encodeURIComponent(window.extendifyData.sdk_partner),"&utm_medium=library&utm_campaign=import-counter-tooltip&utm_content=get-50-off&utm_term=").concat(r,"&utm_group=").concat(J.getState().activeTestGroupsUtmValue()),className:"block bg-gray-900 text-white p-4 no-underline rounded bg-cover",onClick:vi(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("import-counter-tooltip-click");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),style:{backgroundImage:"url(".concat(window.extendifyData.asset_path,"/logo-tips.png)"),backgroundSize:"100% 100%"},children:(0,nn.jsx)("span",{dangerouslySetInnerHTML:{__html:bn((0,Ht.sprintf)((0,Ht.__)("%1$sGet %2$s off%3$s Extendify Pro when you upgrade today!","extendify"),"<strong>","50%","</strong>"))}})})})]}):null}));function bi(e){return Array.isArray?Array.isArray(e):"[object Array]"===Ci(e)}function wi(e){return"string"==typeof e}function ji(e){return"number"==typeof e}function ki(e){return!0===e||!1===e||function(e){return Ei(e)&&null!==e}(e)&&"[object Boolean]"==Ci(e)}function Ei(e){return"object"==typeof e}function Si(e){return null!=e}function _i(e){return!e.trim().length}function Ci(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Oi=Object.prototype.hasOwnProperty;class Ai{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=Pi(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Pi(e){let t=null,n=null,r=null,o=1,i=null;if(wi(e)||bi(e))r=e,t=Ti(e),n=Ni(e);else{if(!Oi.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const a=e.name;if(r=a,Oi.call(e,"weight")&&(o=e.weight,o<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(a));t=Ti(a),n=Ni(a),i=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:i}}function Ti(e){return bi(e)?e:e.split(".")}function Ni(e){return bi(e)?e.join("."):e}const Ri={useExtendedSearch:!1,getFn:function(e,t){let n=[],r=!1;const o=(e,t,i)=>{if(Si(e))if(t[i]){const a=e[t[i]];if(!Si(a))return;if(i===t.length-1&&(wi(a)||ji(a)||ki(a)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(a));else if(bi(a)){r=!0;for(let e=0,n=a.length;e<n;e+=1)o(a[e],t,i+1)}else t.length&&o(a,t,i+1)}else n.push(e)};return o(e,wi(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Ii={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...Ri};const Li=/[^ ]+/g;class Mi{constructor({getFn:e=Ii.getFn,fieldNormWeight:t=Ii.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){const o=t.match(Li).length;if(n.has(o))return n.get(o);const i=1/Math.pow(o,.5*e),a=parseFloat(Math.round(i*r)/r);return n.set(o,a),a},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,wi(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();wi(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!Si(e)||_i(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach(((t,r)=>{let o=t.getFn?t.getFn(e):this.getFn(e,t.path);if(Si(o))if(bi(o)){let e=[];const t=[{nestedArrIndex:-1,value:o}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(Si(r))if(wi(r)&&!_i(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else bi(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(wi(o)&&!_i(o)){let e={v:o,n:this.norm.get(o)};n.$[r]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function Di(e,t,{getFn:n=Ii.getFn,fieldNormWeight:r=Ii.fieldNormWeight}={}){const o=new Mi({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(Pi)),o.setSources(t),o.create(),o}function Bi(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=Ii.distance,ignoreLocation:i=Ii.ignoreLocation}={}){const a=t/e.length;if(i)return a;const s=Math.abs(r-n);return o?a+s/o:s?1:a}const Fi=32;function Ui(e,t,n,{location:r=Ii.location,distance:o=Ii.distance,threshold:i=Ii.threshold,findAllMatches:a=Ii.findAllMatches,minMatchCharLength:s=Ii.minMatchCharLength,includeMatches:l=Ii.includeMatches,ignoreLocation:u=Ii.ignoreLocation}={}){if(t.length>Fi)throw new Error(`Pattern length exceeds max of ${Fi}.`);const c=t.length,f=e.length,d=Math.max(0,Math.min(r,f));let p=i,h=d;const m=s>1||l,x=m?Array(f):[];let y;for(;(y=e.indexOf(t,h))>-1;){let e=Bi(t,{currentLocation:y,expectedLocation:d,distance:o,ignoreLocation:u});if(p=Math.min(e,p),h=y+c,m){let e=0;for(;e<c;)x[y+e]=1,e+=1}}h=-1;let v=[],g=1,b=c+f;const w=1<<c-1;for(let r=0;r<c;r+=1){let i=0,s=b;for(;i<s;){Bi(t,{errors:r,currentLocation:d+s,expectedLocation:d,distance:o,ignoreLocation:u})<=p?i=s:b=s,s=Math.floor((b-i)/2+i)}b=s;let l=Math.max(1,d-s+1),y=a?f:Math.min(d+s,f)+c,j=Array(y+2);j[y+1]=(1<<r)-1;for(let i=y;i>=l;i-=1){let a=i-1,s=n[e.charAt(a)];if(m&&(x[a]=+!!s),j[i]=(j[i+1]<<1|1)&s,r&&(j[i]|=(v[i+1]|v[i])<<1|1|v[i+1]),j[i]&w&&(g=Bi(t,{errors:r,currentLocation:a,expectedLocation:d,distance:o,ignoreLocation:u}),g<=p)){if(p=g,h=a,h<=d)break;l=Math.max(1,2*d-h)}}if(Bi(t,{errors:r+1,currentLocation:d,expectedLocation:d,distance:o,ignoreLocation:u})>p)break;v=j}const j={isMatch:h>=0,score:Math.max(.001,g)};if(m){const e=function(e=[],t=Ii.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let a=e.length;i<a;i+=1){let a=e[i];a&&-1===r?r=i:a||-1===r||(o=i-1,o-r+1>=t&&n.push([r,o]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}(x,s);e.length?l&&(j.indices=e):j.isMatch=!1}return j}function zi(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}return t}class $i{constructor(e,{location:t=Ii.location,threshold:n=Ii.threshold,distance:r=Ii.distance,includeMatches:o=Ii.includeMatches,findAllMatches:i=Ii.findAllMatches,minMatchCharLength:a=Ii.minMatchCharLength,isCaseSensitive:s=Ii.isCaseSensitive,ignoreLocation:l=Ii.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:l},this.pattern=s?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const u=(e,t)=>{this.chunks.push({pattern:e,alphabet:zi(e),startIndex:t})},c=this.pattern.length;if(c>Fi){let e=0;const t=c%Fi,n=c-t;for(;e<n;)u(this.pattern.substr(e,Fi),e),e+=Fi;if(t){const e=c-Fi;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,includeMatches:n}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:r,distance:o,threshold:i,findAllMatches:a,minMatchCharLength:s,ignoreLocation:l}=this.options;let u=[],c=0,f=!1;this.chunks.forEach((({pattern:t,alphabet:d,startIndex:p})=>{const{isMatch:h,score:m,indices:x}=Ui(e,t,d,{location:r+p,distance:o,threshold:i,findAllMatches:a,minMatchCharLength:s,includeMatches:n,ignoreLocation:l});h&&(f=!0),c+=m,h&&x&&(u=[...u,...x])}));let d={isMatch:f,score:f?c/this.chunks.length:1};return f&&n&&(d.indices=u),d}}class Vi{constructor(e){this.pattern=e}static isMultiMatch(e){return Wi(e,this.multiRegex)}static isSingleMatch(e){return Wi(e,this.singleRegex)}search(){}}function Wi(e,t){const n=e.match(t);return n?n[1]:null}class qi extends Vi{constructor(e,{location:t=Ii.location,threshold:n=Ii.threshold,distance:r=Ii.distance,includeMatches:o=Ii.includeMatches,findAllMatches:i=Ii.findAllMatches,minMatchCharLength:a=Ii.minMatchCharLength,isCaseSensitive:s=Ii.isCaseSensitive,ignoreLocation:l=Ii.ignoreLocation}={}){super(e),this._bitapSearch=new $i(e,{location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Hi extends Vi{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],o=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+o,r.push([t,n-1]);const i=!!r.length;return{isMatch:i,score:i?0:1,indices:r}}}const Yi=[class extends Vi{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},Hi,class extends Vi{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends Vi{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Vi{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Vi{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends Vi{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},qi],Gi=Yi.length,Ji=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const Ki=new Set([qi.type,Hi.type]);class Xi{constructor(e,{isCaseSensitive:t=Ii.isCaseSensitive,includeMatches:n=Ii.includeMatches,minMatchCharLength:r=Ii.minMatchCharLength,ignoreLocation:o=Ii.ignoreLocation,findAllMatches:i=Ii.findAllMatches,location:a=Ii.location,threshold:s=Ii.threshold,distance:l=Ii.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:i,ignoreLocation:o,location:a,threshold:s,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(Ji).filter((e=>e&&!!e.trim())),r=[];for(let e=0,o=n.length;e<o;e+=1){const o=n[e];let i=!1,a=-1;for(;!i&&++a<Gi;){const e=Yi[a];let n=e.isMultiMatch(o);n&&(r.push(new e(n,t)),i=!0)}if(!i)for(a=-1;++a<Gi;){const e=Yi[a];let n=e.isSingleMatch(o);if(n){r.push(new e(n,t));break}}}return r}))}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let o=0,i=[],a=0;for(let r=0,s=t.length;r<s;r+=1){const s=t[r];i.length=0,o=0;for(let t=0,r=s.length;t<r;t+=1){const r=s[t],{isMatch:l,indices:u,score:c}=r.search(e);if(!l){a=0,o=0,i.length=0;break}if(o+=1,a+=c,n){const e=r.constructor.type;Ki.has(e)?i=[...i,...u]:i.push(u)}}if(o){let e={isMatch:!0,score:a/o};return n&&(e.indices=i),e}}return{isMatch:!1,score:1}}}const Zi=[];function Qi(e,t){for(let n=0,r=Zi.length;n<r;n+=1){let r=Zi[n];if(r.condition(e,t))return new r(e,t)}return new $i(e,t)}const ea="$and",ta="$or",na="$path",ra="$val",oa=e=>!(!e[ea]&&!e[ta]),ia=e=>({[ea]:Object.keys(e).map((t=>({[t]:e[t]})))});function aa(e,t,{auto:n=!0}={}){const r=e=>{let o=Object.keys(e);const i=(e=>!!e[na])(e);if(!i&&o.length>1&&!oa(e))return r(ia(e));if((e=>!bi(e)&&Ei(e)&&!oa(e))(e)){const r=i?e[na]:o[0],a=i?e[ra]:e[r];if(!wi(a))throw new Error((e=>`Invalid value for key ${e}`)(r));const s={keyId:Ni(r),pattern:a};return n&&(s.searcher=Qi(a,t)),s}let a={children:[],operator:o[0]};return o.forEach((t=>{const n=e[t];bi(n)&&n.forEach((e=>{a.children.push(r(e))}))})),a};return oa(e)||(e=ia(e)),r(e)}function sa(e,t){const n=e.matches;t.matches=[],Si(n)&&n.forEach((e=>{if(!Si(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let o={indices:n,value:r};e.key&&(o.key=e.key.src),e.idx>-1&&(o.refIndex=e.idx),t.matches.push(o)}))}function la(e,t){t.score=e.score}class ua{constructor(e,t={},n){this.options={...Ii,...t},this.options.useExtendedSearch,this._keyStore=new Ai(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Mi))throw new Error("Incorrect 'index' type");this._myIndex=t||Di(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Si(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let n=0,r=this._docs.length;n<r;n+=1){const o=this._docs[n];e(o,n)&&(this.removeAt(n),n-=1,r-=1,t.push(o))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:o,sortFn:i,ignoreFieldNorm:a}=this.options;let s=wi(e)?wi(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=Ii.ignoreFieldNorm}){e.forEach((e=>{let n=1;e.matches.forEach((({key:e,norm:r,score:o})=>{const i=e?e.weight:null;n*=Math.pow(0===o&&i?Number.EPSILON:o,(i||1)*(t?1:r))})),e.score=n}))}(s,{ignoreFieldNorm:a}),o&&s.sort(i),ji(t)&&t>-1&&(s=s.slice(0,t)),function(e,t,{includeMatches:n=Ii.includeMatches,includeScore:r=Ii.includeScore}={}){const o=[];return n&&o.push(sa),r&&o.push(la),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return o.length&&o.forEach((t=>{t(e,r)})),r}))}(s,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=Qi(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:o})=>{if(!Si(e))return;const{isMatch:i,score:a,indices:s}=t.searchIn(e);i&&r.push({item:e,idx:n,matches:[{score:a,value:e,norm:o,indices:s}]})})),r}_searchLogical(e){const t=aa(e,this.options),n=(e,t,r)=>{if(!e.children){const{keyId:n,searcher:o}=e,i=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:o});return i&&i.length?[{idx:r,item:t,matches:i}]:[]}const o=[];for(let i=0,a=e.children.length;i<a;i+=1){const a=e.children[i],s=n(a,t,r);if(s.length)o.push(...s);else if(e.operator===ea)return[]}return o},r=this._myIndex.records,o={},i=[];return r.forEach((({$:e,i:r})=>{if(Si(e)){let a=n(t,e,r);a.length&&(o[r]||(o[r]={idx:r,item:e,matches:[]},i.push(o[r])),a.forEach((({matches:e})=>{o[r].matches.push(...e)})))}})),i}_searchObjectList(e){const t=Qi(e,this.options),{keys:n,records:r}=this._myIndex,o=[];return r.forEach((({$:e,i:r})=>{if(!Si(e))return;let i=[];n.forEach(((n,r)=>{i.push(...this._findMatches({key:n,value:e[r],searcher:t}))})),i.length&&o.push({idx:r,item:e,matches:i})})),o}_findMatches({key:e,value:t,searcher:n}){if(!Si(t))return[];let r=[];if(bi(t))t.forEach((({v:t,i:o,n:i})=>{if(!Si(t))return;const{isMatch:a,score:s,indices:l}=n.searchIn(t);a&&r.push({score:s,key:e,value:t,idx:o,norm:i,indices:l})}));else{const{v:o,n:i}=t,{isMatch:a,score:s,indices:l}=n.searchIn(o);a&&r.push({score:s,key:e,value:o,norm:i,indices:l})}return r}}function ca(e){return function(e){if(Array.isArray(e))return pa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||da(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||da(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function da(e,t){if(e){if("string"==typeof e)return pa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pa(e,t):void 0}}function pa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}ua.version="6.6.2",ua.createIndex=Di,ua.parseIndex=function(e,{getFn:t=Ii.getFn,fieldNormWeight:n=Ii.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new Mi({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i},ua.config=Ii,ua.parseQuery=aa,function(...e){Zi.push(...e)}(Xi);var ha=new Map,ma=function(e){var t,n,r=e.value,i=e.setValue,a=e.terms,s=ye((function(e){return e.searchParams})),l=fa((0,o.useState)(!1),2),u=l[0],c=l[1],f=(0,o.useRef)(),d=fa((0,o.useState)({}),2),p=d[0],h=d[1],m=fa((0,o.useState)(""),2),x=m[0],y=m[1],v=fa((0,o.useState)([]),2),g=v[0],b=v[1],w=fa((0,o.useState)(!0),2),j=w[0],k=w[1],E=(0,o.useMemo)((function(){return ca(a).sort((function(e,t){return e.slug<t.slug?-1:e.slug>t.slug?1:0}))}),[a]),S=(0,o.useMemo)((function(){return E.filter((function(e){return null==e?void 0:e.featured}))}),[E]),_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(ha.has(e))b(ha.get(e));else{var t=p.search(e);ha.set(e,null!=t&&t.length?t.map((function(e){return e.item})):S),b(ha.get(e))}};(0,o.useEffect)((function(){h(new ua(a,{keys:["slug","title","keywords"],minMatchCharLength:1,threshold:.3}))}),[a]),(0,o.useEffect)((function(){null!=x&&x.length||b(j?S:E)}),[S,x,E,j]),(0,o.useEffect)((function(){var e;u&&(null===(e=f.current)||void 0===e||e.focus())}),[u]),(0,o.useEffect)((function(){r.slug||c(!0)}),[r.slug]);var C,O,A;return(0,nn.jsxs)("div",{className:"w-full rounded bg-gray-50 border border-gray-900",children:[(0,nn.jsx)("button",{type:"button",onClick:function(){return c((function(e){return!e}))},className:"button-focus m-0 flex w-full cursor-pointer items-center justify-between rounded bg-transparent p-4 text-gray-800",children:(O=u?(0,Ht.__)("Choose a site industry","extendify"):null!==(t=null!==(n=null==r?void 0:r.title)&&void 0!==n?n:r.slug)&&void 0!==t?t:"Not set",(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsxs)("span",{className:"flex flex-col text-left",children:[(0,nn.jsx)("span",{className:Jt()("mb-1",{"text-base font-normal":!r.slug,"text-sm font-normal":null===(A=r.slug)||void 0===A?void 0:A.length}),children:(0,Ht.__)("Site Type","extendify")}),(0,nn.jsx)("span",{className:"text-xs font-light",children:O})]}),(0,nn.jsxs)("span",{className:"flex items-center space-x-4",children:[!u&&!r.slug&&(0,nn.jsxs)("svg",{className:"text-wp-alert-red","aria-hidden":"true",focusable:"false",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)("title",{children:(0,Ht.__)("Click to select a preferred site industry","extendify")}),(0,nn.jsx)("path",{className:"stroke-current",d:"M10.9982 4.05371C7.66149 4.05371 4.95654 6.75866 4.95654 10.0954C4.95654 13.4321 7.66149 16.137 10.9982 16.137C14.3349 16.137 17.0399 13.4321 17.0399 10.0954C17.0399 6.75866 14.3349 4.05371 10.9982 4.05371V4.05371Z",strokeWidth:"1.25"}),(0,nn.jsx)("path",{className:"fill-current",d:"M10.0205 12.8717C10.0205 12.3287 10.4508 11.8881 10.9938 11.8881C11.5368 11.8881 11.9774 12.3287 11.9774 12.8717C11.9774 13.4147 11.5368 13.8451 10.9938 13.8451C10.4508 13.8451 10.0205 13.4147 10.0205 12.8717Z"}),(0,nn.jsx)("path",{className:"fill-current",d:"M11.6495 10.2591C11.6086 10.6177 11.3524 10.9148 10.9938 10.9148C10.625 10.9148 10.3791 10.6074 10.3483 10.2591L10.0205 7.31855C9.95901 6.81652 10.4918 6.34521 10.9938 6.34521C11.4959 6.34521 12.0286 6.81652 11.9774 7.31855L11.6495 10.2591Z"})]}),(0,nn.jsx)("svg",{className:Jt()("stroke-current text-gray-900",{"-translate-x-1 rotate-90 transform":u}),"aria-hidden":"true",focusable:"false",width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,nn.jsx)("path",{d:"M1.24194 11.5952L6.24194 6.09519L1.24194 0.595215",strokeWidth:"1.5"})})]})]}))}),u&&(0,nn.jsxs)("div",{className:"max-h-96 overflow-y-auto px-4 py-0",children:[(0,nn.jsx)("div",{className:"sticky top-0 pt-0.5 pb-2 bg-gray-50",children:(0,nn.jsxs)("div",{className:"relative",children:[(0,nn.jsx)("label",{htmlFor:"site-type-search",className:"sr-only",children:(0,Ht.__)("Search","extendify")}),(0,nn.jsx)("input",{ref:f,id:"site-type-search",value:null!=x?x:"",onChange:function(e){return t=e.target.value,y(t),void _(t);var t},type:"text",className:"button-focus m-0 w-full bg-white p-3.5 py-2.5 text-sm border border-gray-900",placeholder:(0,Ht.__)("Search","extendify")}),(0,nn.jsx)("svg",{className:"pointer-events-none absolute top-2 right-2 hidden lg:block",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false",children:(0,nn.jsx)("path",{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})})]})}),(null==x?void 0:x.length)>1&&g===S&&(0,nn.jsx)("p",{className:"text-left",children:(0,Ht.__)("Nothing found...","extendify")}),(null==g?void 0:g.length)>0&&(0,nn.jsx)("div",{children:(C=g,(0,nn.jsx)(nn.Fragment,{children:(0,nn.jsx)("ul",{className:"mt-4 mb-0",children:C.map((function(e){var t,n,r,o=null!==(t=null==e?void 0:e.title)&&void 0!==t?t:e.slug,a=(null==s||null===(n=s.taxonomies)||void 0===n||null===(r=n.siteType)||void 0===r?void 0:r.slug)===e.slug;return(0,nn.jsx)("li",{className:"m-0 mb-1",children:(0,nn.jsx)("button",{type:"button",className:Jt()("m-0 w-full cursor-pointer bg-transparent pl-0 text-left text-sm font-normal hover:text-wp-theme-500",{"text-gray-800":!a}),onClick:function(){c(!1),i(e)},children:o})},e.slug+(null==e?void 0:e.title))}))})}))})]}),x||!u?null:(0,nn.jsx)("button",{type:"button",className:"w-full cursor-pointer bg-transparent p-4 py-2 text-left text-sm text-wp-theme-500 hover:text-wp-theme-500",onClick:function(){return k((function(e){return!e}))},children:j?(0,Ht.__)("Show all","extendify"):(0,Ht.__)("Close","extendify")})]})};var xa=function(e){var t,n=e.active,r=e.tax,o=e.update;return(0,nn.jsx)("li",{className:"m-0 w-full",children:(0,nn.jsx)("button",{type:"button",className:"group m-0 p-0 flex w-full cursor-pointer text-left text-sm leading-none my-px bg-transparent",onClick:o,children:(0,nn.jsx)("span",{className:Jt()("w-full group-hover:bg-gray-900 p-2 group-hover:text-gray-50 rounded",{"bg-transparent text-gray-900":!n,"bg-gray-900 text-gray-50":n}),children:null!==(t=null==r?void 0:r.title)&&void 0!==t?t:r.slug})})},r.slug)},ya=function(e){var t=e.taxType,n=e.taxonomies,r=e.taxLabel,o=ye((function(e){return e.searchParams})),i=ye((function(e){return e.updateTaxonomies}));return!(null!=n&&n.length)>0?null:(0,nn.jsx)(qt.PanelBody,{title:Zr(null!=r?r:t),className:"ext-type-control p-0",initialOpen:!0,children:(0,nn.jsx)(qt.PanelRow,{children:(0,nn.jsx)("div",{className:"relative w-full overflow-hidden",children:(0,nn.jsx)("ul",{className:"m-0 w-full px-5 py-1",children:n.map((function(e){var n,r=(null==o||null===(n=o.taxonomies[t])||void 0===n?void 0:n.slug)===(null==e?void 0:e.slug);return(0,nn.jsx)(xa,{active:r,tax:e,update:function(){return i((o=e,(r=t)in(n={})?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));var n,r,o}},null==e?void 0:e.slug)}))})})})})},va=function(e){var t=e.className,n=ye((function(e){return e.updateType})),r=_((function(e){var t;return null!==(t=null==e?void 0:e.currentType)&&void 0!==t?t:"pattern"}));return(0,nn.jsxs)("div",{className:t,children:[(0,nn.jsx)("h4",{className:"sr-only",children:(0,Ht.__)("Type select","extendify")}),(0,nn.jsxs)("div",{className:"flex justify-evenly border border-gray-900 p-0.5 rounded",children:[(0,nn.jsx)("button",{type:"button",className:Jt()({"w-full m-0 min-w-sm cursor-pointer rounded py-2.5 px-4 text-xs leading-none":!0,"bg-gray-900 text-white":"pattern"===r,"bg-transparent text-black":"pattern"!==r}),onClick:function(){return n("pattern")},children:(0,nn.jsx)("span",{className:"",children:(0,Ht.__)("Patterns","extendify")})}),(0,nn.jsx)("button",{type:"button",className:Jt()({"outline-none w-full m-0 -ml-px min-w-sm cursor-pointer items-center rounded py-2.5 px-4 text-xs leading-none":!0,"bg-gray-900 text-white":"template"===r,"bg-transparent text-black":"template"!==r}),onClick:function(){return n("template")},children:(0,nn.jsx)("span",{className:"",children:(0,Ht.__)("Templates","extendify")})})]})]})};function ga(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ba(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ba(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ba(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wa=(0,o.memo)((function(){var e,t,n,r,o=le((function(e){return e.taxonomies})),i=ye((function(e){return e.searchParams})),a=ye((function(e){return e.updateTaxonomies})),s=J((function(e){return e.apiKey})),l="pattern"===i.type?"patternType":"layoutType",u=!(null!=i&&null!==(e=i.taxonomies[l])&&void 0!==e&&null!==(t=e.slug)&&void 0!==t&&t.length),c=_((function(e){return e.setOpen})),f=ga(oe((function(e){var t;return[(null===(t=Object.keys(null==e?void 0:e.siteType))||void 0===t?void 0:t.length)>0?null==e?void 0:e.siteType:{slug:"",title:"Not set"},e.setSiteType]})),2),d=f[0],p=f[1];return(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)("div",{className:"-ml-1.5 hidden px-5 text-extendify-black sm:flex",children:(0,nn.jsx)(Yt,{icon:kn,size:40})}),(0,nn.jsx)("div",{className:"flex md:hidden items-center justify-end -mt-5 mx-1",children:(0,nn.jsx)(qt.Button,{onClick:function(){return c(!1)},icon:(0,nn.jsx)(Yt,{icon:Mn,size:24}),label:(0,Ht.__)("Close library","extendify")})}),(0,nn.jsx)("div",{className:"px-5 hidden md:block",children:(0,nn.jsxs)("button",{onClick:function(){return a((n={slug:"",title:"Featured"},(t=l)in(e={})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e));var e,t,n},className:Jt()("m-0 flex w-full cursor-pointer items-center space-x-1 bg-transparent px-0 py-2 text-left text-sm leading-none transition duration-200 hover:text-wp-theme-500",{"text-wp-theme-500":u}),children:[(0,nn.jsx)(Yt,{icon:On,size:24}),(0,nn.jsx)("span",{className:"text-sm",children:(0,Ht.__)("Featured","extendify")})]})}),(0,nn.jsx)("div",{className:"mx-6 px-5 pt-0.5 sm:mx-0 sm:mb-8 sm:mt-0",children:Object.keys(d).length>0&&(0,nn.jsx)(ma,{value:d,setValue:function(e){p(e),a({siteType:e})},terms:o.siteType})}),(0,nn.jsx)(va,{className:"mx-6 px-5 pt-0.5 sm:mx-0 sm:mb-8 sm:mt-0"}),(0,nn.jsxs)("div",{className:"mt-px hidden flex-grow overflow-y-auto overflow-x-hidden pb-36 pt-px sm:block space-y-6",children:[(0,nn.jsx)(qt.Panel,{className:"bg-transparent",children:(0,nn.jsx)(ya,{taxType:l,taxonomies:null===(n=o[l])||void 0===n?void 0:n.filter((function(e){return!(null!=e&&e.designType)}))})}),(0,nn.jsx)(qt.Panel,{className:"bg-transparent",children:(0,nn.jsx)(ya,{taxLabel:(0,Ht.__)("Design","extendify"),taxType:l,taxonomies:null===(r=o[l])||void 0===r?void 0:r.filter((function(e){return Boolean(null==e?void 0:e.designType)}))})})]}),!s.length&&(0,nn.jsx)("div",{className:"px-5",children:(0,nn.jsx)(gi,{})})]})}));function ja(e){var t=e.children,n=_((function(e){return e.ready}));return(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)("aside",{className:"relative flex-shrink-0 border-r border-extendify-transparent-black-100 bg-extendify-transparent-white py-0 backdrop-blur-xl backdrop-saturate-200 backdrop-filter sm:pt-5",children:(0,nn.jsx)("div",{className:"flex h-full flex-col py-6 sm:w-72 sm:space-y-6 sm:py-0",children:n?t[0]:null})}),(0,nn.jsx)("main",{id:"extendify-templates",className:"h-full w-full overflow-hidden bg-gray-50 pt-6 sm:pt-0",children:n?t[1]:null})]})}var ka=(0,o.memo)((function(e){var t=e.className,n=_((function(e){return e.setOpen})),r=_((function(e){return e.pushModal})),o=J((function(e){return e.apiKey.length}));return(0,nn.jsx)("div",{className:t,children:(0,nn.jsx)("div",{className:"flex h-full items-center justify-between",children:(0,nn.jsxs)("div",{className:"flex flex-1 items-center justify-end lg:-mr-1",children:[(0,nn.jsx)(qt.Button,{onClick:function(){return r((0,nn.jsx)(Qo,{}))},icon:(0,nn.jsx)(Yt,{icon:Ln,size:24}),label:(0,Ht.__)("Login and settings area","extendify"),children:o?"":(0,Ht.__)("Sign in","extendify")}),(0,nn.jsx)(qt.Button,{onClick:function(){return n(!1)},icon:(0,nn.jsx)(Yt,{icon:Mn,size:24}),label:(0,Ht.__)("Close library","extendify")})]})})})})),Ea=function(e){var t=e.setOpen,n=(0,o.useRef)(),r=ye((function(e){return e.searchParams}));return(0,o.useEffect)((function(){n.current&&(n.current.scrollTop=0)}),[r]),(0,nn.jsx)("div",{className:"relative mx-auto flex h-full max-w-screen-4xl flex-col items-center",children:(0,nn.jsxs)("div",{className:"w-full flex-grow overflow-hidden",children:[(0,nn.jsx)("button",{onClick:function(){return document.getElementById("extendify-templates").querySelector("button").focus()},className:"extendify-skip-to-sr-link sr-only focus:not-sr-only focus:text-blue-500",children:(0,Ht.__)("Skip to templates","extendify")}),(0,nn.jsx)("div",{className:"relative mx-auto h-full sm:flex",children:(0,nn.jsxs)(ja,{children:[(0,nn.jsx)(wa,{}),(0,nn.jsxs)("div",{className:"relative z-30 flex h-full flex-col",children:[(0,nn.jsx)(ka,{className:"hidden h-12 w-full flex-shrink-0 px-6 sm:block md:px-8",hideLibrary:function(){return t(!1)}}),(0,nn.jsx)("div",{ref:n,className:"z-20 flex-grow overflow-y-auto px-6 md:px-8",children:(0,nn.jsx)(mi,{})})]})]})})]})})};function Sa(){var e=(0,o.useRef)(null),t=_((function(e){return e.open})),n=_((function(e){return e.setOpen})),r=function(){var e=lr((0,o.useState)(null),2),t=e[0],n=e[1],r=_((function(e){return e.open})),i=_((function(e){return e.pushModal})),a=_((function(e){return e.removeAllModals}));return(0,o.useEffect)((function(){return _.subscribe((function(e){return e.modals}),(function(e){return n((null==e?void 0:e.length)>0?e[0]:null)}))}),[]),(0,o.useEffect)((function(){var e;if(r){var t={standalone:sr},n=t[null!==(e=Object.keys(t).find((function(e){return"standalone"===e?!window.extendifyData.standalone&&!J.getState().modalNoticesDismissedAt[e]:!J.getState().modalNoticesDismissedAt[e]})))&&void 0!==e?e:null];n&&i((0,nn.jsx)(n,{}))}else a()}),[r,i,a]),t}(),i=_((function(e){return e.ready}));return(0,nn.jsxs)(Wt,{as:"div",className:"extendify",initialFocus:e,open:t,onClose:function(){return n(!1)},children:[(0,nn.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity"}),(0,nn.jsx)("div",{className:"fixed inset-0 z-high m-auto h-screen w-screen overflow-y-auto sm:h-auto sm:w-auto",children:(0,nn.jsx)("div",{className:"flex min-h-screen items-end justify-center px-4 pt-4 pb-20 text-center sm:block sm:p-0",children:(0,nn.jsxs)("div",{ref:e,tabIndex:"0",onClick:function(e){return e.target===e.currentTarget&&n(!1)},className:"fixed inset-0 transform p-2 transition-all lg:absolute lg:overflow-hidden lg:p-16",children:[(0,nn.jsx)(Ea,{}),i?(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)(gn,{}),r]}):null]})})})]})}const _a=wp.compose,Ca=wp.hooks,Oa=JSON.parse('{"t":["ext-absolute","ext-relative","ext-top-base","ext-top-lg","ext--top-base","ext--top-lg","ext-right-base","ext-right-lg","ext--right-base","ext--right-lg","ext-bottom-base","ext-bottom-lg","ext--bottom-base","ext--bottom-lg","ext-left-base","ext-left-lg","ext--left-base","ext--left-lg","ext-order-1","ext-order-2","ext-col-auto","ext-col-span-1","ext-col-span-2","ext-col-span-3","ext-col-span-4","ext-col-span-5","ext-col-span-6","ext-col-span-7","ext-col-span-8","ext-col-span-9","ext-col-span-10","ext-col-span-11","ext-col-span-12","ext-col-span-full","ext-col-start-1","ext-col-start-2","ext-col-start-3","ext-col-start-4","ext-col-start-5","ext-col-start-6","ext-col-start-7","ext-col-start-8","ext-col-start-9","ext-col-start-10","ext-col-start-11","ext-col-start-12","ext-col-start-13","ext-col-start-auto","ext-col-end-1","ext-col-end-2","ext-col-end-3","ext-col-end-4","ext-col-end-5","ext-col-end-6","ext-col-end-7","ext-col-end-8","ext-col-end-9","ext-col-end-10","ext-col-end-11","ext-col-end-12","ext-col-end-13","ext-col-end-auto","ext-row-auto","ext-row-span-1","ext-row-span-2","ext-row-span-3","ext-row-span-4","ext-row-span-5","ext-row-span-6","ext-row-span-full","ext-row-start-1","ext-row-start-2","ext-row-start-3","ext-row-start-4","ext-row-start-5","ext-row-start-6","ext-row-start-7","ext-row-start-auto","ext-row-end-1","ext-row-end-2","ext-row-end-3","ext-row-end-4","ext-row-end-5","ext-row-end-6","ext-row-end-7","ext-row-end-auto","ext-m-0","ext-m-auto","ext-m-base","ext-m-lg","ext--m-base","ext--m-lg","ext-mx-0","ext-mx-auto","ext-mx-base","ext-mx-lg","ext--mx-base","ext--mx-lg","ext-my-0","ext-my-auto","ext-my-base","ext-my-lg","ext--my-base","ext--my-lg","ext-mt-0","ext-mt-auto","ext-mt-base","ext-mt-lg","ext--mt-base","ext--mt-lg","ext-mr-0","ext-mr-auto","ext-mr-base","ext-mr-lg","ext--mr-base","ext--mr-lg","ext-mb-0","ext-mb-auto","ext-mb-base","ext-mb-lg","ext--mb-base","ext--mb-lg","ext-ml-0","ext-ml-auto","ext-ml-base","ext-ml-lg","ext--ml-base","ext--ml-lg","ext-block","ext-inline-block","ext-inline","ext-flex","ext-inline-flex","ext-grid","ext-inline-grid","ext-hidden","ext-w-auto","ext-w-full","ext-max-w-full","ext-flex-1","ext-flex-auto","ext-flex-initial","ext-flex-none","ext-flex-shrink-0","ext-flex-shrink","ext-flex-grow-0","ext-flex-grow","ext-list-none","ext-grid-cols-1","ext-grid-cols-2","ext-grid-cols-3","ext-grid-cols-4","ext-grid-cols-5","ext-grid-cols-6","ext-grid-cols-7","ext-grid-cols-8","ext-grid-cols-9","ext-grid-cols-10","ext-grid-cols-11","ext-grid-cols-12","ext-grid-cols-none","ext-grid-rows-1","ext-grid-rows-2","ext-grid-rows-3","ext-grid-rows-4","ext-grid-rows-5","ext-grid-rows-6","ext-grid-rows-none","ext-flex-row","ext-flex-row-reverse","ext-flex-col","ext-flex-col-reverse","ext-flex-wrap","ext-flex-wrap-reverse","ext-flex-nowrap","ext-items-start","ext-items-end","ext-items-center","ext-items-baseline","ext-items-stretch","ext-justify-start","ext-justify-end","ext-justify-center","ext-justify-between","ext-justify-around","ext-justify-evenly","ext-justify-items-start","ext-justify-items-end","ext-justify-items-center","ext-justify-items-stretch","ext-gap-0","ext-gap-base","ext-gap-lg","ext-gap-x-0","ext-gap-x-base","ext-gap-x-lg","ext-gap-y-0","ext-gap-y-base","ext-gap-y-lg","ext-justify-self-auto","ext-justify-self-start","ext-justify-self-end","ext-justify-self-center","ext-justify-self-stretch","ext-rounded-none","ext-rounded-full","ext-rounded-t-none","ext-rounded-t-full","ext-rounded-r-none","ext-rounded-r-full","ext-rounded-b-none","ext-rounded-b-full","ext-rounded-l-none","ext-rounded-l-full","ext-rounded-tl-none","ext-rounded-tl-full","ext-rounded-tr-none","ext-rounded-tr-full","ext-rounded-br-none","ext-rounded-br-full","ext-rounded-bl-none","ext-rounded-bl-full","ext-border-0","ext-border-t-0","ext-border-r-0","ext-border-b-0","ext-border-l-0","ext-p-0","ext-p-base","ext-p-lg","ext-px-0","ext-px-base","ext-px-lg","ext-py-0","ext-py-base","ext-py-lg","ext-pt-0","ext-pt-base","ext-pt-lg","ext-pr-0","ext-pr-base","ext-pr-lg","ext-pb-0","ext-pb-base","ext-pb-lg","ext-pl-0","ext-pl-base","ext-pl-lg","ext-text-left","ext-text-center","ext-text-right","ext-leading-none","ext-leading-tight","ext-leading-snug","ext-leading-normal","ext-leading-relaxed","ext-leading-loose","clip-path--rhombus","clip-path--diamond","clip-path--rhombus-alt","tablet\\\\:fullwidth-cols","desktop\\\\:fullwidth-cols","direction-rtl","direction-ltr","bring-to-front","text-stroke","text-stroke--primary","text-stroke--secondary","editor\\\\:no-caption","editor\\\\:no-inserter","editor\\\\:no-resize","editor\\\\:pointer-events-none","tablet\\\\:ext-absolute","tablet\\\\:ext-relative","tablet\\\\:ext-top-base","tablet\\\\:ext-top-lg","tablet\\\\:ext--top-base","tablet\\\\:ext--top-lg","tablet\\\\:ext-right-base","tablet\\\\:ext-right-lg","tablet\\\\:ext--right-base","tablet\\\\:ext--right-lg","tablet\\\\:ext-bottom-base","tablet\\\\:ext-bottom-lg","tablet\\\\:ext--bottom-base","tablet\\\\:ext--bottom-lg","tablet\\\\:ext-left-base","tablet\\\\:ext-left-lg","tablet\\\\:ext--left-base","tablet\\\\:ext--left-lg","tablet\\\\:ext-order-1","tablet\\\\:ext-order-2","tablet\\\\:ext-m-0","tablet\\\\:ext-m-auto","tablet\\\\:ext-m-base","tablet\\\\:ext-m-lg","tablet\\\\:ext--m-base","tablet\\\\:ext--m-lg","tablet\\\\:ext-mx-0","tablet\\\\:ext-mx-auto","tablet\\\\:ext-mx-base","tablet\\\\:ext-mx-lg","tablet\\\\:ext--mx-base","tablet\\\\:ext--mx-lg","tablet\\\\:ext-my-0","tablet\\\\:ext-my-auto","tablet\\\\:ext-my-base","tablet\\\\:ext-my-lg","tablet\\\\:ext--my-base","tablet\\\\:ext--my-lg","tablet\\\\:ext-mt-0","tablet\\\\:ext-mt-auto","tablet\\\\:ext-mt-base","tablet\\\\:ext-mt-lg","tablet\\\\:ext--mt-base","tablet\\\\:ext--mt-lg","tablet\\\\:ext-mr-0","tablet\\\\:ext-mr-auto","tablet\\\\:ext-mr-base","tablet\\\\:ext-mr-lg","tablet\\\\:ext--mr-base","tablet\\\\:ext--mr-lg","tablet\\\\:ext-mb-0","tablet\\\\:ext-mb-auto","tablet\\\\:ext-mb-base","tablet\\\\:ext-mb-lg","tablet\\\\:ext--mb-base","tablet\\\\:ext--mb-lg","tablet\\\\:ext-ml-0","tablet\\\\:ext-ml-auto","tablet\\\\:ext-ml-base","tablet\\\\:ext-ml-lg","tablet\\\\:ext--ml-base","tablet\\\\:ext--ml-lg","tablet\\\\:ext-block","tablet\\\\:ext-inline-block","tablet\\\\:ext-inline","tablet\\\\:ext-flex","tablet\\\\:ext-inline-flex","tablet\\\\:ext-grid","tablet\\\\:ext-inline-grid","tablet\\\\:ext-hidden","tablet\\\\:ext-w-auto","tablet\\\\:ext-w-full","tablet\\\\:ext-max-w-full","tablet\\\\:ext-flex-1","tablet\\\\:ext-flex-auto","tablet\\\\:ext-flex-initial","tablet\\\\:ext-flex-none","tablet\\\\:ext-flex-shrink-0","tablet\\\\:ext-flex-shrink","tablet\\\\:ext-flex-grow-0","tablet\\\\:ext-flex-grow","tablet\\\\:ext-list-none","tablet\\\\:ext-grid-cols-1","tablet\\\\:ext-grid-cols-2","tablet\\\\:ext-grid-cols-3","tablet\\\\:ext-grid-cols-4","tablet\\\\:ext-grid-cols-5","tablet\\\\:ext-grid-cols-6","tablet\\\\:ext-grid-cols-7","tablet\\\\:ext-grid-cols-8","tablet\\\\:ext-grid-cols-9","tablet\\\\:ext-grid-cols-10","tablet\\\\:ext-grid-cols-11","tablet\\\\:ext-grid-cols-12","tablet\\\\:ext-grid-cols-none","tablet\\\\:ext-flex-row","tablet\\\\:ext-flex-row-reverse","tablet\\\\:ext-flex-col","tablet\\\\:ext-flex-col-reverse","tablet\\\\:ext-flex-wrap","tablet\\\\:ext-flex-wrap-reverse","tablet\\\\:ext-flex-nowrap","tablet\\\\:ext-items-start","tablet\\\\:ext-items-end","tablet\\\\:ext-items-center","tablet\\\\:ext-items-baseline","tablet\\\\:ext-items-stretch","tablet\\\\:ext-justify-start","tablet\\\\:ext-justify-end","tablet\\\\:ext-justify-center","tablet\\\\:ext-justify-between","tablet\\\\:ext-justify-around","tablet\\\\:ext-justify-evenly","tablet\\\\:ext-justify-items-start","tablet\\\\:ext-justify-items-end","tablet\\\\:ext-justify-items-center","tablet\\\\:ext-justify-items-stretch","tablet\\\\:ext-justify-self-auto","tablet\\\\:ext-justify-self-start","tablet\\\\:ext-justify-self-end","tablet\\\\:ext-justify-self-center","tablet\\\\:ext-justify-self-stretch","tablet\\\\:ext-p-0","tablet\\\\:ext-p-base","tablet\\\\:ext-p-lg","tablet\\\\:ext-px-0","tablet\\\\:ext-px-base","tablet\\\\:ext-px-lg","tablet\\\\:ext-py-0","tablet\\\\:ext-py-base","tablet\\\\:ext-py-lg","tablet\\\\:ext-pt-0","tablet\\\\:ext-pt-base","tablet\\\\:ext-pt-lg","tablet\\\\:ext-pr-0","tablet\\\\:ext-pr-base","tablet\\\\:ext-pr-lg","tablet\\\\:ext-pb-0","tablet\\\\:ext-pb-base","tablet\\\\:ext-pb-lg","tablet\\\\:ext-pl-0","tablet\\\\:ext-pl-base","tablet\\\\:ext-pl-lg","tablet\\\\:ext-text-left","tablet\\\\:ext-text-center","tablet\\\\:ext-text-right","desktop\\\\:ext-absolute","desktop\\\\:ext-relative","desktop\\\\:ext-top-base","desktop\\\\:ext-top-lg","desktop\\\\:ext--top-base","desktop\\\\:ext--top-lg","desktop\\\\:ext-right-base","desktop\\\\:ext-right-lg","desktop\\\\:ext--right-base","desktop\\\\:ext--right-lg","desktop\\\\:ext-bottom-base","desktop\\\\:ext-bottom-lg","desktop\\\\:ext--bottom-base","desktop\\\\:ext--bottom-lg","desktop\\\\:ext-left-base","desktop\\\\:ext-left-lg","desktop\\\\:ext--left-base","desktop\\\\:ext--left-lg","desktop\\\\:ext-order-1","desktop\\\\:ext-order-2","desktop\\\\:ext-m-0","desktop\\\\:ext-m-auto","desktop\\\\:ext-m-base","desktop\\\\:ext-m-lg","desktop\\\\:ext--m-base","desktop\\\\:ext--m-lg","desktop\\\\:ext-mx-0","desktop\\\\:ext-mx-auto","desktop\\\\:ext-mx-base","desktop\\\\:ext-mx-lg","desktop\\\\:ext--mx-base","desktop\\\\:ext--mx-lg","desktop\\\\:ext-my-0","desktop\\\\:ext-my-auto","desktop\\\\:ext-my-base","desktop\\\\:ext-my-lg","desktop\\\\:ext--my-base","desktop\\\\:ext--my-lg","desktop\\\\:ext-mt-0","desktop\\\\:ext-mt-auto","desktop\\\\:ext-mt-base","desktop\\\\:ext-mt-lg","desktop\\\\:ext--mt-base","desktop\\\\:ext--mt-lg","desktop\\\\:ext-mr-0","desktop\\\\:ext-mr-auto","desktop\\\\:ext-mr-base","desktop\\\\:ext-mr-lg","desktop\\\\:ext--mr-base","desktop\\\\:ext--mr-lg","desktop\\\\:ext-mb-0","desktop\\\\:ext-mb-auto","desktop\\\\:ext-mb-base","desktop\\\\:ext-mb-lg","desktop\\\\:ext--mb-base","desktop\\\\:ext--mb-lg","desktop\\\\:ext-ml-0","desktop\\\\:ext-ml-auto","desktop\\\\:ext-ml-base","desktop\\\\:ext-ml-lg","desktop\\\\:ext--ml-base","desktop\\\\:ext--ml-lg","desktop\\\\:ext-block","desktop\\\\:ext-inline-block","desktop\\\\:ext-inline","desktop\\\\:ext-flex","desktop\\\\:ext-inline-flex","desktop\\\\:ext-grid","desktop\\\\:ext-inline-grid","desktop\\\\:ext-hidden","desktop\\\\:ext-w-auto","desktop\\\\:ext-w-full","desktop\\\\:ext-max-w-full","desktop\\\\:ext-flex-1","desktop\\\\:ext-flex-auto","desktop\\\\:ext-flex-initial","desktop\\\\:ext-flex-none","desktop\\\\:ext-flex-shrink-0","desktop\\\\:ext-flex-shrink","desktop\\\\:ext-flex-grow-0","desktop\\\\:ext-flex-grow","desktop\\\\:ext-list-none","desktop\\\\:ext-grid-cols-1","desktop\\\\:ext-grid-cols-2","desktop\\\\:ext-grid-cols-3","desktop\\\\:ext-grid-cols-4","desktop\\\\:ext-grid-cols-5","desktop\\\\:ext-grid-cols-6","desktop\\\\:ext-grid-cols-7","desktop\\\\:ext-grid-cols-8","desktop\\\\:ext-grid-cols-9","desktop\\\\:ext-grid-cols-10","desktop\\\\:ext-grid-cols-11","desktop\\\\:ext-grid-cols-12","desktop\\\\:ext-grid-cols-none","desktop\\\\:ext-flex-row","desktop\\\\:ext-flex-row-reverse","desktop\\\\:ext-flex-col","desktop\\\\:ext-flex-col-reverse","desktop\\\\:ext-flex-wrap","desktop\\\\:ext-flex-wrap-reverse","desktop\\\\:ext-flex-nowrap","desktop\\\\:ext-items-start","desktop\\\\:ext-items-end","desktop\\\\:ext-items-center","desktop\\\\:ext-items-baseline","desktop\\\\:ext-items-stretch","desktop\\\\:ext-justify-start","desktop\\\\:ext-justify-end","desktop\\\\:ext-justify-center","desktop\\\\:ext-justify-between","desktop\\\\:ext-justify-around","desktop\\\\:ext-justify-evenly","desktop\\\\:ext-justify-items-start","desktop\\\\:ext-justify-items-end","desktop\\\\:ext-justify-items-center","desktop\\\\:ext-justify-items-stretch","desktop\\\\:ext-justify-self-auto","desktop\\\\:ext-justify-self-start","desktop\\\\:ext-justify-self-end","desktop\\\\:ext-justify-self-center","desktop\\\\:ext-justify-self-stretch","desktop\\\\:ext-p-0","desktop\\\\:ext-p-base","desktop\\\\:ext-p-lg","desktop\\\\:ext-px-0","desktop\\\\:ext-px-base","desktop\\\\:ext-px-lg","desktop\\\\:ext-py-0","desktop\\\\:ext-py-base","desktop\\\\:ext-py-lg","desktop\\\\:ext-pt-0","desktop\\\\:ext-pt-base","desktop\\\\:ext-pt-lg","desktop\\\\:ext-pr-0","desktop\\\\:ext-pr-base","desktop\\\\:ext-pr-lg","desktop\\\\:ext-pb-0","desktop\\\\:ext-pb-base","desktop\\\\:ext-pb-lg","desktop\\\\:ext-pl-0","desktop\\\\:ext-pl-base","desktop\\\\:ext-pl-lg","desktop\\\\:ext-text-left","desktop\\\\:ext-text-center","desktop\\\\:ext-text-right"]}');function Aa(e){return function(e){if(Array.isArray(e))return Pa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Pa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pa(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ta(Object(n),!0).forEach((function(t){Ra(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ta(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ra(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ia=(0,_a.createHigherOrderComponent)((function(e){return function(t){var n,r,o=null!==(n=null==t||null===(r=t.attributes)||void 0===r?void 0:r.extUtilities)&&void 0!==n?n:[],i=Oa.t.map((function(e){return e.replace(".","").replace(new RegExp("\\\\","g"),"")}));return(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)(e,Na({},t)),o&&(0,nn.jsx)(Mr.InspectorAdvancedControls,{children:(0,nn.jsx)(qt.FormTokenField,{label:(0,Ht.__)("Extendify Utilities","extendify"),tokenizeOnSpace:!0,value:o,suggestions:i,onChange:function(e){t.setAttributes({extUtilities:e})}})})]})}}),"utilityClassEdit");function La(e,t,n){var r,o,i,a=null!==(r=null==e?void 0:e.className)&&void 0!==r?r:[],s=null!==(o=null==n?void 0:n.extUtilities)&&void 0!==o?o:[],l=null!==(i=null==n?void 0:n.className)&&void 0!==i?i:[];if(!s||!Object.keys(s).length)return e;var u=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return e.split(" ");case"[object Array]":return e;default:return[]}},c=new Set([].concat(Aa(u(l)),Aa(u(a)),Aa(u(s))));return Object.assign({},e,{className:Aa(c).join(" ")})}function Ma(e){var t=e.show,n=void 0!==t&&t,r=_(),i=r.open,a=r.setReady,s=r.setOpen,l=(0,o.useCallback)((function(){return s(!0)}),[s]),u=(0,o.useCallback)((function(){return s(!1)}),[s]),c=ye().initTemplateData,f=le((function(e){return e.fetchTaxonomies})),d=J((function(e){return e._hasHydrated})),p=ye((function(e){return Object.keys(e.taxonomyDefaultState).length>0}));return(0,o.useEffect)((function(){i&&f().then((function(){ye.getState().setupDefaultTaxonomies()}))}),[i,f]),(0,o.useEffect)((function(){d&&p&&(c(),a(!0))}),[d,p,c,a]),(0,o.useEffect)((function(){var e=new URLSearchParams(window.location.search);(n||e.has("ext-open"))&&s(!0)}),[n,s]),(0,o.useEffect)((function(){ve().then((function(e){_.setState({metaData:e})}))}),[]),(0,o.useEffect)((function(){return window.addEventListener("extendify::open-library",l),window.addEventListener("extendify::close-library",u),function(){window.removeEventListener("extendify::open-library",l),window.removeEventListener("extendify::close-library",u)}}),[u,l]),(0,nn.jsx)(Sa,{})}function Da(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}(0,Ca.addFilter)("blocks.registerBlockType","extendify/utilities/attributes",(function(e){return Na(Na({},e),{},{attributes:Na(Na({},e.attributes),{},{extUtilities:{type:"array",default:[]}})})})),(0,Ca.addFilter)("blocks.registerBlockType","extendify/utilities/addEditProps",(function(e){var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),La(r,e,n)},e})),(0,Ca.addFilter)("editor.BlockEdit","extendify/utilities/advancedClassControls",Ia),(0,Ca.addFilter)("blocks.getSaveContent.extraProps","extendify/utilities/extra-props",La);var Ba,Fa=(0,eo.select)("core/blocks").getCategories();(0,r.setCategories)([{slug:"extendify",title:"Extendify",icon:null}].concat(function(e){if(Array.isArray(e))return Da(e)}(Ba=Fa)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(Ba)||function(e,t){if(e){if("string"==typeof e)return Da(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Da(e,t):void 0}}(Ba)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),(0,r.registerBlockCollection)("extendify",{title:"Extendify",icon:(0,nn.jsx)(qt.Icon,{icon:jn})});const Ua=(0,o.createElement)(en,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(Zt,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"})),za=(0,o.createElement)(en,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(Zt,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})),$a=(0,o.createElement)(en,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Zt,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"})),Va=(0,o.createElement)(en,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Zt,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"})),Wa=(0,o.createElement)(en,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(Zt,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})),qa=(0,o.createElement)(en,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(Zt,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 12.8h8v-1.5H8v1.5z"})),Ha=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"extendify/library","title":"Pattern Library","description":"Add block patterns and full page layouts with the Extendify Library.","keywords":["template","layouts"],"textdomain":"extendify","attributes":{"preview":{"type":"string"},"search":{"type":"string"}}}');(0,r.registerBlockType)(Ha,{icon:jn,category:"extendify",example:{attributes:{preview:window.extendifyData.asset_path+"/preview.png"}},variations:[{name:"gallery",icon:(0,nn.jsx)(Yt,{icon:Ua}),category:"extendify",attributes:{search:"gallery"},title:(0,Ht.__)("Gallery Patterns","extendify"),description:(0,Ht.__)("Add gallery patterns and layouts.","extendify"),keywords:[(0,Ht.__)("slideshow","extendify"),(0,Ht.__)("images","extendify")]},{name:"team",icon:(0,nn.jsx)(Yt,{icon:za}),category:"extendify",attributes:{search:"team"},title:(0,Ht.__)("Team Patterns","extendify"),description:(0,Ht.__)("Add team patterns and layouts.","extendify"),keywords:[(0,Ht._x)("crew","As in team","extendify"),(0,Ht.__)("colleagues","extendify"),(0,Ht.__)("members","extendify")]},{name:"hero",icon:(0,nn.jsx)(Yt,{icon:$a}),category:"extendify",attributes:{search:"hero"},title:(0,Ht._x)("Hero Patterns","Hero being a hero/top section of a webpage","extendify"),description:(0,Ht.__)("Add hero patterns and layouts.","extendify"),keywords:[(0,Ht.__)("heading","extendify"),(0,Ht.__)("headline","extendify")]},{name:"text",icon:(0,nn.jsx)(Yt,{icon:Va}),category:"extendify",attributes:{search:"text"},title:(0,Ht._x)("Text Patterns","Relating to patterns that feature text only","extendify"),description:(0,Ht.__)("Add text patterns and layouts.","extendify"),keywords:[(0,Ht.__)("simple","extendify"),(0,Ht.__)("paragraph","extendify")]},{name:"about",icon:(0,nn.jsx)(Yt,{icon:Wa}),category:"extendify",attributes:{search:"about"},title:(0,Ht._x)("About Page Patterns","Add patterns relating to an about us page","extendify"),description:(0,Ht.__)("About patterns and layouts.","extendify"),keywords:[(0,Ht.__)("who we are","extendify"),(0,Ht.__)("team","extendify")]},{name:"call-to-action",icon:(0,nn.jsx)(Yt,{icon:qa}),category:"extendify",attributes:{search:"call-to-action"},title:(0,Ht.__)("Call to Action Patterns","extendify"),description:(0,Ht.__)("Add call to action patterns and layouts.","extendify"),keywords:[(0,Ht._x)("cta","Initialism for call to action","extendify"),(0,Ht.__)("callout","extendify"),(0,Ht.__)("buttons","extendify")]}],edit:function(e){var t=e.clientId,n=e.attributes,r=(0,eo.useDispatch)("core/block-editor").removeBlock;return(0,o.useEffect)((function(){n.preview||(n.search&&Ya(n.search),Kr("library-block","open"),r(t))}),[t,n,r]),(0,nn.jsx)("img",{style:{display:"block",maxWidth:"100%"},src:n.preview,alt:(0,Ht.sprintf)((0,Ht.__)("%s Pattern Library","extendify"),"Extendify")})}});var Ya=function(e){var t=new URLSearchParams(window.location.search);t.append("ext-patternType",e),window.history.replaceState(null,null,window.location.pathname+"?"+t.toString())};const Ga=wp.editPost,Ja=wp.plugins;function Ka(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Xa(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ka(i,r,o,a,s,"next",e)}function s(e){Ka(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Za(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qa(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const es=function(){var e=(0,eo.useSelect)((function(e){return e("core").canUser("create","users")})),t=Za((0,o.useState)(J.getState().enabled),2),n=t[0],r=t[1],i=Za((0,o.useState)(oe.getState().enabled),2),s=i[0],l=i[1];function u(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=document.getElementById("extendify-templates-inserter-btn");t&&(e?t.classList.add("hidden"):t.classList.remove("hidden"))}function c(e){return f.apply(this,arguments)}function f(){return(f=Xa(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,J.setState({enabled:t});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(e){return p.apply(this,arguments)}function p(){return(p=Xa(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oe.setState({enabled:t});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e,t){return m.apply(this,arguments)}function m(){return(m=Xa(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("global"!==n){e.next=5;break}return e.next=3,d(t);case 3:e.next=7;break;case 5:return e.next=7,c(t);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){"global"===e?l((function(t){return h(!t,e),!t})):r((function(t){return u(!t),h(!t,e),!t}))}return(0,o.useEffect)((function(){u(!n)}),[n]),(0,nn.jsxs)(qt.Modal,{title:(0,Ht.__)("Extendify Settings","extendify"),onRequestClose:function(){var e=document.getElementById("extendify-util");(0,o.unmountComponentAtNode)(e)},children:[(0,nn.jsx)(qt.ToggleControl,{label:e?(0,Ht.__)("Enable the library for myself","extendify"):(0,Ht.__)("Enable the library","extendify"),help:(0,Ht.__)("Publish with hundreds of patterns & page layouts","extendify"),checked:n,onChange:function(){return x("user")}}),e&&(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)("br",{}),(0,nn.jsx)(qt.ToggleControl,{label:(0,Ht.__)("Allow all users to publish with the library"),help:(0,Ht.__)("Everyone publishes with patterns & page layouts","extendify"),checked:s,onChange:function(){return x("global")}})]})]})};function ts(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ns(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ns(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ns(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var rs=function(e){var t=e.anchorRef,n=e.onPressX,r=e.onClick,o=e.onClickOutside;return t.current?(0,nn.jsx)(qt.Popover,{anchorRef:t.current,shouldAnchorIncludePadding:!0,className:"extendify-tooltip-default",focusOnMount:!1,onFocusOutside:o,onClick:r,position:"bottom center",noArrow:!1,children:(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"0.5rem"},children:[(0,nn.jsx)("span",{style:{textTransform:"uppercase",color:"#8b8b8b"},children:(0,Ht.__)("Monthly Imports","extendify")}),(0,nn.jsx)(qt.Button,{style:{color:"white",position:"relative",right:"-5px",padding:"0",minWidth:"0",height:"20px",width:"20px"},onClick:function(e){e.stopPropagation(),n()},icon:(0,nn.jsx)(Yt,{icon:Mn,size:12}),showTooltip:!1,label:(0,Ht.__)("Close callout","extendify")})]}),(0,nn.jsx)("div",{dangerouslySetInnerHTML:{__html:bn((0,Ht.sprintf)((0,Ht.__)("%1$sGood news!%2$s We've added more imports to your library. Enjoy!","extendify"),"<strong>","</strong>"))}})]})}):null};function os(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function is(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){os(i,r,o,a,s,"next",e)}function s(e){os(i,r,o,a,s,"throw",e)}a(void 0)}))}}function as(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ss(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ss(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ss(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ls,us,cs,fs,ds,ps,hs,ms,xs,ys,vs=function(){var e=as((0,o.useState)(!1),2),t=e[0],n=e[1],r=(0,o.useRef)(!1),i=(0,o.useRef)(),s=J((function(e){return e.apiKey.length})),l=J((function(e){return e.imports>0})),u=_((function(e){return e.open})),c=J((function(e){return 0===e.allowedImports})),f=J((function(e){return e.uuid})),d=function(e,t,n){var r=ts((0,o.useState)(),2),i=r[0],a=r[1],s=_((function(e){return e.ready}));return(0,o.useLayoutEffect)((function(){if(n||s&&!i||window.extendifyData._canRehydrate){var r=J.getState().testGroup(e,t);a(r)}}),[e,t,i,s,n]),i}("main-button-text2",["A","B"],!0),p=as((0,o.useState)(),2),h=p[0],m=p[1],x=function(){var e=is(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("mb-tooltip-closed");case 2:n(!1),J.setState({allowedImports:-1});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,o.useEffect)((function(){if(f){m(function(){switch(d){case"A":return(0,Ht.__)("Add template","extendify");case"B":return(0,Ht.__)("Design Library","extendify")}}())}}),[d,f]),(0,o.useEffect)((function(){u&&(n(!1),r.current=!0),!s&&c&&l&&(r.current||n(!0),r.current=!0)}),[s,c,l,u]),(0,nn.jsxs)(nn.Fragment,{children:[(0,nn.jsx)(gs,{buttonRef:i,text:h}),t&&(0,nn.jsx)(rs,{anchorRef:i,onClick:is(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ge("mb-tooltip-pressed");case 2:Jr("main-button-tooltip");case 3:case"end":return e.stop()}}),e)}))),onPressX:x})]})},gs=function(e){var t=e.buttonRef,n=e.text;return(0,nn.jsx)("div",{className:"extendify",children:(0,nn.jsx)(qt.Button,{isPrimary:!0,ref:t,className:"h-8 xs:h-9 px-1 min-w-0 xs:pl-2 xs:pr-3 sm:ml-2",onClick:function(){return Jr("main-button")},id:"extendify-templates-inserter-btn",icon:(0,nn.jsx)(Yt,{icon:kn,size:24,style:{marginRight:0}}),children:(0,nn.jsx)("span",{className:"hidden xs:inline ml-1",children:n})})})},bs=function(){return(0,nn.jsx)(qt.Button,{id:"extendify-cta-button",style:{margin:"1rem 1rem 0",width:"calc(100% - 2rem)",justifyContent:" center"},onClick:function(){return Jr("patterns-cta")},isSecondary:!0,children:(0,Ht.__)("Discover patterns in Extendify Library","extendify")})},ws=null===(ls=window.extendifyData)||void 0===ls||null===(us=ls.user)||void 0===us?void 0:us.state,js=function(){return null===window.extendifyData.user||(null==ws?void 0:ws.isAdmin)},ks=function(){var e,t,n;return null===window.extendifyData.sitesettings||(null===(e=window.extendifyData)||void 0===e||null===(t=e.sitesettings)||void 0===t||null===(n=t.state)||void 0===n?void 0:n.enabled)},Es=null===(cs=window)||void 0===cs||null===(fs=cs.wp)||void 0===fs||null===(ds=fs.data)||void 0===ds?void 0:ds.subscribe((function(){requestAnimationFrame((function(){var e,t;if((ks()||js())&&!document.getElementById("extendify-templates-inserter")&&(document.querySelector(".edit-post-header-toolbar")||document.querySelector(".edit-site-header_start"))){var n=Object.assign(document.createElement("div"),{id:"extendify-templates-inserter"});null===(e=document.querySelector(".edit-post-header-toolbar"))||void 0===e||e.append(n),null===(t=document.querySelector(".edit-site-header_start"))||void 0===t||t.append(n),(0,o.render)((0,nn.jsx)(vs,{}),n),(null===window.extendifyData.user?ks():null==ws?void 0:ws.enabled)||document.getElementById("extendify-templates-inserter-btn").classList.add("hidden"),Es()}}))})),Ss=null===(ps=window)||void 0===ps||null===(hs=ps.wp)||void 0===hs||null===(ms=hs.data)||void 0===ms?void 0:ms.subscribe((function(){requestAnimationFrame((function(){if((ks()||js())&&document.querySelector("[id$=patterns-view]")&&!document.getElementById("extendify-cta-button")){var e=Object.assign(document.createElement("div"),{id:"extendify-cta-button-container"});document.querySelector("[id$=patterns-view]").prepend(e),(0,o.render)((0,nn.jsx)(bs,{}),e),Ss()}}))}));try{(0,Ja.registerPlugin)("extendify-settings-enable-disable",{render:function(){return(0,nn.jsx)(nn.Fragment,{children:(0,nn.jsxs)(Ga.PluginSidebarMoreMenuItem,{onClick:function(){var e=document.getElementById("extendify-util");(0,o.render)((0,nn.jsx)(es,{}),e)},icon:(0,nn.jsx)(Yt,{icon:kn,size:24}),children:[" ",(0,Ht.__)("Extendify","extendify")]})})}})}catch(ut){console.error("registerPlugin not supported? (error handled gracefully)",ut.message)}[{register:function(){var e=(0,eo.dispatch)("core/notices").createNotice,t=J.getState().incrementImports;window.addEventListener("extendify::template-inserted",(function(n){e("info",(0,Ht.__)("Page layout added"),{isDismissible:!0,type:"snackbar"}),setTimeout((function(){var e;t(),Ir(null===(e=n.detail)||void 0===e?void 0:e.template)}),0)}))}},{register:function(){var e=this;window.addEventListener("extendify::softerror-encountered",(function(t){e[(0,A.camelCase)(t.detail.type)](t.detail)}))},versionOutdated:function(e){(0,o.render)((0,nn.jsx)(vo,{title:e.data.title,requiredPlugins:["extendify"],message:e.data.message,buttonLabel:e.data.buttonLabel,forceOpen:!0}),document.getElementById("extendify-root"))}}].forEach((function(e){return e.register()})),null===(xs=window)||void 0===xs||null===(ys=xs.wp)||void 0===ys||ys.domReady((function(){var e=Object.assign(document.createElement("div"),{id:"extendify-root"});if(document.body.append(e),(0,o.render)((0,nn.jsx)(Ma,{}),e),e.parentNode.insertBefore(Object.assign(document.createElement("div"),{id:"extendify-util"}),e.nextSibling),Gr.getState().importOnLoad){var t=Gr.getState().wantedTemplate;setTimeout((function(){Ro((0,r.rawHandler)({HTML:t.fields.code}),t)}),0)}Gr.setState({importOnLoad:!1,wantedTemplate:{}})}))},4782:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=l(e),a=i[0],s=i[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),c=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,l=r-o;s<l;s+=a)i.push(u(e,s,s+a>l?l:s+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var o,i,a=[],s=t;s<r;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},816:(e,t,n)=>{"use strict";var r=n(4782),o=n(8898),i=n(5182);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),o=(e=s(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(c(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=n;i<s;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*a}else-1!==c&&(i-=i-c),c=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var f=!0,d=0;d<l;d++)if(u(e,i+d)!==u(t,d)){f=!1;break}if(f)return i}return-1}function g(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function b(e,t,n,r){return V(z(t,e.length-n),e,n,r)}function w(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function j(e,t,n,r){return w(e,t,n,r)}function k(e,t,n,r){return V($(t),e,n,r)}function E(e,t,n,r){return V(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function _(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,l,u=e[o],c=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&u)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=f}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=C));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return f(null,e)},l.allocUnsafeSlow=function(e){return f(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)x(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?_(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),u=this.slice(r,o),c=e.slice(t,n),f=0;f<s;++f)if(u[f]!==c[f]){i=u[f],a=c[f];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return g(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return j(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function O(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function P(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=U(e[i]);return o}function T(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,